From 687f5cb494cd2379a21d81e61858b217d61ff19e Mon Sep 17 00:00:00 2001 From: JulianKimmig Date: Tue, 2 Sep 2025 13:35:49 +0200 Subject: [PATCH 1/6] add empty line --- pyproject.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/pyproject.toml b/pyproject.toml index 89ac744..0256417 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -54,6 +54,7 @@ tag_format = "v$version" version_scheme = "pep440" version_provider = "uv" update_changelog_on_bump = true + [project.entry-points."funcnodes.module"] module = "funcnodes_plotly" shelf = "funcnodes_plotly:NODE_SHELF" From 990f050858fc031ac99065ba09d29a85a2e4d8af Mon Sep 17 00:00:00 2001 From: JulianKimmig Date: Tue, 2 Sep 2025 13:36:34 +0200 Subject: [PATCH 2/6] chore: update .gitignore to include Yarn PnP files and directory --- src/react_plugin/.gitignore | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/react_plugin/.gitignore b/src/react_plugin/.gitignore index 4d29575..6ea8fc8 100644 --- a/src/react_plugin/.gitignore +++ b/src/react_plugin/.gitignore @@ -21,3 +21,6 @@ npm-debug.log* yarn-debug.log* yarn-error.log* + +.pnp.* +.yarn/ \ No newline at end of file From e2a65eb0ec937b387ffe67a478609c6a859e6188 Mon Sep 17 00:00:00 2001 From: JulianKimmig Date: Mon, 3 Nov 2025 21:31:33 +0100 Subject: [PATCH 3/6] chore: update pre-commit hooks to latest versions - Bumped pre-commit-hooks from v5.0.0 to v6.0.0. - Updated uv-pre-commit from 0.6.10 to 0.9.4. - Upgraded ruff-pre-commit from v0.11.2 to v0.14.1. - Increased flake8 version from 7.1.2 to 7.3.0. --- .pre-commit-config.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 7cd907e..eabfaa4 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v5.0.0 + rev: v6.0.0 hooks: - id: check-yaml - id: end-of-file-fixer @@ -10,14 +10,14 @@ repos: - repo: https://github.com/astral-sh/uv-pre-commit # uv version. - rev: "0.6.10" + rev: "0.9.4" hooks: # Update the uv lockfile - id: uv-lock - repo: https://github.com/astral-sh/ruff-pre-commit # Ruff version. - rev: v0.11.2 + rev: v0.14.1 hooks: # Run the linter. - id: ruff @@ -26,7 +26,7 @@ repos: - id: ruff-format - repo: https://github.com/pycqa/flake8 - rev: 7.1.2 # pick a git hash / tag to point to + rev: 7.3.0 # pick a git hash / tag to point to hooks: - id: flake8 args: ["--config=.flake8"] From a39d936ff981e5da27f97791ffbb74cc0829e394 Mon Sep 17 00:00:00 2001 From: JulianKimmig Date: Mon, 3 Nov 2025 21:33:03 +0100 Subject: [PATCH 4/6] refactor(react_plugin): optimize Plotly rendering with CDN loading - Changed Plotly import to a type-only import to prevent bundling. - Implemented dynamic loading of Plotly from a CDN at runtime. - Refactored rendering logic to improve responsiveness and cleanup. - Enhanced the usePlotlyDivRenderer hook for better performance and error handling. - Updated PreviewPlotlyImageRenderer and PlotlyImageRenderer components to utilize the new rendering logic. --- src/funcnodes_plotly/__init__.py | 9 +- .../react_plugin/index.iife.js | 3861 +--------------- .../react_plugin/plotly-3.1.0.min.js | 3882 +++++++++++++++++ src/react_plugin/src/index.tsx | 261 +- src/react_plugin/vite.config.ts | 8 +- 5 files changed, 4069 insertions(+), 3952 deletions(-) create mode 100644 src/funcnodes_plotly/react_plugin/plotly-3.1.0.min.js diff --git a/src/funcnodes_plotly/__init__.py b/src/funcnodes_plotly/__init__.py index e72452f..1e6dd33 100644 --- a/src/funcnodes_plotly/__init__.py +++ b/src/funcnodes_plotly/__init__.py @@ -85,7 +85,14 @@ def figure_byte_encoder(figure: go.Figure, preview) -> fn.BytesEncdata: REACT_PLUGIN = { "module": os.path.join(os.path.dirname(__file__), "react_plugin", "index.iife.js"), - "css": [os.path.join(os.path.dirname(__file__), "react_plugin", "plugin-custom-renders.css")], + "css": [ + os.path.join( + os.path.dirname(__file__), "react_plugin", "plugin-custom-renders.css" + ) + ], + "js": [ + os.path.join(os.path.dirname(__file__), "react_plugin", "plotly-3.1.0.min.js") + ], } diff --git a/src/funcnodes_plotly/react_plugin/index.iife.js b/src/funcnodes_plotly/react_plugin/index.iife.js index 2e3d98e..058d5d7 100644 --- a/src/funcnodes_plotly/react_plugin/index.iife.js +++ b/src/funcnodes_plotly/react_plugin/index.iife.js @@ -1,4 +1,4 @@ -var FuncNodesPlugin=function(cb,fb){"use strict";function uS(zl){const mu=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(zl){for(const Oc in zl)if(Oc!=="default"){const Es=Object.getOwnPropertyDescriptor(zl,Oc);Object.defineProperty(mu,Oc,Es.get?Es:{enumerable:!0,get:()=>zl[Oc]})}}return mu.default=zl,Object.freeze(mu)}const Wh=uS(cb);function cS(zl){return zl&&zl.__esModule&&Object.prototype.hasOwnProperty.call(zl,"default")?zl.default:zl}var Zy={exports:{}},C0={};/** +var FuncNodesPlugin=function(g,w){"use strict";function j(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const o in e)if(o!=="default"){const c=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,c.get?c:{enumerable:!0,get:()=>e[o]})}}return t.default=e,Object.freeze(t)}const s=j(g);var R={exports:{}},f={};/** * @license React * react-jsx-runtime.production.js * @@ -6,3861 +6,4 @@ var FuncNodesPlugin=function(cb,fb){"use strict";function uS(zl){const mu=Object * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var hb;function fS(){if(hb)return C0;hb=1;var zl=Symbol.for("react.transitional.element"),mu=Symbol.for("react.fragment");function Oc(Es,Ul,Bc){var Bf=null;if(Bc!==void 0&&(Bf=""+Bc),Ul.key!==void 0&&(Bf=""+Ul.key),"key"in Ul){Bc={};for(var Rh in Ul)Rh!=="key"&&(Bc[Rh]=Ul[Rh])}else Bc=Ul;return Ul=Bc.ref,{$$typeof:zl,type:Es,key:Bf,ref:Ul!==void 0?Ul:null,props:Bc}}return C0.Fragment=mu,C0.jsx=Oc,C0.jsxs=Oc,C0}var vb;function hS(){return vb||(vb=1,Zy.exports=fS()),Zy.exports}var Eh=hS(),Yy={},$y={},Ky={exports:{}},Jy,db;function vS(){if(db)return Jy;db=1;var zl="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Jy=zl,Jy}var Qy,pb;function dS(){if(pb)return Qy;pb=1;var zl=vS();function mu(){}function Oc(){}return Oc.resetWarningCache=mu,Qy=function(){function Es(Bf,Rh,Fv,nd,ev,Ov){if(Ov!==zl){var tv=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw tv.name="Invariant Violation",tv}}Es.isRequired=Es;function Ul(){return Es}var Bc={array:Es,bigint:Es,bool:Es,func:Es,number:Es,object:Es,string:Es,symbol:Es,any:Es,arrayOf:Ul,element:Es,elementType:Es,instanceOf:Ul,node:Es,objectOf:Ul,oneOf:Ul,oneOfType:Ul,shape:Ul,exact:Ul,checkPropTypes:Oc,resetWarningCache:mu};return Bc.PropTypes=Bc,Bc},Qy}var gb;function pS(){return gb||(gb=1,Ky.exports=dS()()),Ky.exports}var mb;function gS(){return mb||(mb=1,function(zl){function mu(ps){"@babel/helpers - typeof";return mu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ol){return typeof ol}:function(ol){return ol&&typeof Symbol=="function"&&ol.constructor===Symbol&&ol!==Symbol.prototype?"symbol":typeof ol},mu(ps)}Object.defineProperty(zl,"__esModule",{value:!0}),zl.default=Bv;var Oc=Bf(cb),Es=Ul(pS());function Ul(ps){return ps&&ps.__esModule?ps:{default:ps}}function Bc(ps){if(typeof WeakMap!="function")return null;var ol=new WeakMap,yi=new WeakMap;return(Bc=function(gf){return gf?yi:ol})(ps)}function Bf(ps,ol){if(ps&&ps.__esModule)return ps;if(ps===null||mu(ps)!=="object"&&typeof ps!="function")return{default:ps};var yi=Bc(ol);if(yi&&yi.has(ps))return yi.get(ps);var Cc={},gf=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var sc in ps)if(sc!=="default"&&Object.prototype.hasOwnProperty.call(ps,sc)){var Eo=gf?Object.getOwnPropertyDescriptor(ps,sc):null;Eo&&(Eo.get||Eo.set)?Object.defineProperty(Cc,sc,Eo):Cc[sc]=ps[sc]}return Cc.default=ps,yi&&yi.set(ps,Cc),Cc}function Rh(ps,ol){if(!(ps instanceof ol))throw new TypeError("Cannot call a class as a function")}function Fv(ps,ol){for(var yi=0;yi"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function He(ps){return He=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(yi){return yi.__proto__||Object.getPrototypeOf(yi)},He(ps)}var L0=["AfterExport","AfterPlot","Animated","AnimatingFrame","AnimationInterrupted","AutoSize","BeforeExport","BeforeHover","ButtonClicked","Click","ClickAnnotation","Deselect","DoubleClick","Framework","Hover","LegendClick","LegendDoubleClick","Relayout","Relayouting","Restyle","Redraw","Selected","Selecting","SliderChange","SliderEnd","SliderStart","SunburstClick","Transitioning","TransitionInterrupted","Unhover","WebGlContextLost"],P0=["plotly_restyle","plotly_redraw","plotly_relayout","plotly_relayouting","plotly_doubleclick","plotly_animated","plotly_sunburstclick"],I0=typeof window<"u";function Bv(ps){var ol=function(yi){ev(gf,yi);var Cc=tv(gf);function gf(sc){var Eo;return Rh(this,gf),Eo=Cc.call(this,sc),Eo.p=Promise.resolve(),Eo.resizeHandler=null,Eo.handlers={},Eo.syncWindowResize=Eo.syncWindowResize.bind(pv(Eo)),Eo.syncEventHandlers=Eo.syncEventHandlers.bind(pv(Eo)),Eo.attachUpdateEvents=Eo.attachUpdateEvents.bind(pv(Eo)),Eo.getRef=Eo.getRef.bind(pv(Eo)),Eo.handleUpdate=Eo.handleUpdate.bind(pv(Eo)),Eo.figureCallback=Eo.figureCallback.bind(pv(Eo)),Eo.updatePlotly=Eo.updatePlotly.bind(pv(Eo)),Eo}return nd(gf,[{key:"updatePlotly",value:function(Eo,Vi,qo){var Nc=this;this.p=this.p.then(function(){if(!Nc.unmounting){if(!Nc.el)throw new Error("Missing element reference");return ps.react(Nc.el,{data:Nc.props.data,layout:Nc.props.layout,config:Nc.props.config,frames:Nc.props.frames})}}).then(function(){Nc.unmounting||(Nc.syncWindowResize(Eo),Nc.syncEventHandlers(),Nc.figureCallback(Vi),qo&&Nc.attachUpdateEvents())}).catch(function(Nf){Nc.props.onError&&Nc.props.onError(Nf)})}},{key:"componentDidMount",value:function(){this.unmounting=!1,this.updatePlotly(!0,this.props.onInitialized,!0)}},{key:"componentDidUpdate",value:function(Eo){this.unmounting=!1;var Vi=Eo.frames&&Eo.frames.length?Eo.frames.length:0,qo=this.props.frames&&this.props.frames.length?this.props.frames.length:0,Nc=!(Eo.layout===this.props.layout&&Eo.data===this.props.data&&Eo.config===this.props.config&&qo===Vi),Nf=Eo.revision!==void 0,Lf=Eo.revision!==this.props.revision;!Nc&&(!Nf||Nf&&!Lf)||this.updatePlotly(!1,this.props.onUpdate,!1)}},{key:"componentWillUnmount",value:function(){this.unmounting=!0,this.figureCallback(this.props.onPurge),this.resizeHandler&&I0&&(window.removeEventListener("resize",this.resizeHandler),this.resizeHandler=null),this.removeUpdateEvents(),ps.purge(this.el)}},{key:"attachUpdateEvents",value:function(){var Eo=this;!this.el||!this.el.removeListener||P0.forEach(function(Vi){Eo.el.on(Vi,Eo.handleUpdate)})}},{key:"removeUpdateEvents",value:function(){var Eo=this;!this.el||!this.el.removeListener||P0.forEach(function(Vi){Eo.el.removeListener(Vi,Eo.handleUpdate)})}},{key:"handleUpdate",value:function(){this.figureCallback(this.props.onUpdate)}},{key:"figureCallback",value:function(Eo){if(typeof Eo=="function"){var Vi=this.el,qo=Vi.data,Nc=Vi.layout,Nf=this.el._transitionData?this.el._transitionData._frames:null,Lf={data:qo,layout:Nc,frames:Nf};Eo(Lf,this.el)}}},{key:"syncWindowResize",value:function(Eo){var Vi=this;I0&&(this.props.useResizeHandler&&!this.resizeHandler?(this.resizeHandler=function(){return ps.Plots.resize(Vi.el)},window.addEventListener("resize",this.resizeHandler),Eo&&this.resizeHandler()):!this.props.useResizeHandler&&this.resizeHandler&&(window.removeEventListener("resize",this.resizeHandler),this.resizeHandler=null))}},{key:"getRef",value:function(Eo){this.el=Eo,this.props.debug&&I0&&(window.gd=this.el)}},{key:"syncEventHandlers",value:function(){var Eo=this;L0.forEach(function(Vi){var qo=Eo.props["on"+Vi],Nc=Eo.handlers[Vi],Nf=!!Nc;qo&&!Nf?Eo.addEventHandler(Vi,qo):!qo&&Nf?Eo.removeEventHandler(Vi):qo&&Nf&&qo!==Nc&&(Eo.removeEventHandler(Vi),Eo.addEventHandler(Vi,qo))})}},{key:"addEventHandler",value:function(Eo,Vi){this.handlers[Eo]=Vi,this.el.on(this.getPlotlyEventName(Eo),this.handlers[Eo])}},{key:"removeEventHandler",value:function(Eo){this.el.removeListener(this.getPlotlyEventName(Eo),this.handlers[Eo]),delete this.handlers[Eo]}},{key:"getPlotlyEventName",value:function(Eo){return"plotly_"+Eo.toLowerCase()}},{key:"render",value:function(){return Oc.default.createElement("div",{id:this.props.divId,style:this.props.style,ref:this.getRef,className:this.props.className})}}]),gf}(Oc.Component);return ol.propTypes={data:Es.default.arrayOf(Es.default.object),config:Es.default.object,layout:Es.default.object,frames:Es.default.arrayOf(Es.default.object),revision:Es.default.number,onInitialized:Es.default.func,onPurge:Es.default.func,onError:Es.default.func,onUpdate:Es.default.func,debug:Es.default.bool,style:Es.default.object,className:Es.default.string,useResizeHandler:Es.default.bool,divId:Es.default.string},L0.forEach(function(yi){ol.propTypes["on"+yi]=Es.default.func}),ol.defaultProps={debug:!1,useResizeHandler:!1,data:[],style:{position:"relative",display:"inline-block"}},ol}}($y)),$y}var Xg={exports:{}},mS=Xg.exports,yb;function yS(){return yb||(yb=1,function(zl){(function(mu,Oc){zl.exports?zl.exports=Oc():mu.moduleName=Oc()})(typeof self<"u"?self:mS,()=>{var mu=(()=>{var Oc=Object.create,Es=Object.defineProperty,Ul=Object.defineProperties,Bc=Object.getOwnPropertyDescriptor,Bf=Object.getOwnPropertyDescriptors,Rh=Object.getOwnPropertyNames,Fv=Object.getOwnPropertySymbols,nd=Object.getPrototypeOf,ev=Object.prototype.hasOwnProperty,Ov=Object.prototype.propertyIsEnumerable,tv=(Y,H,h)=>H in Y?Es(Y,H,{enumerable:!0,configurable:!0,writable:!0,value:h}):Y[H]=h,Od=(Y,H)=>{for(var h in H||(H={}))ev.call(H,h)&&tv(Y,h,H[h]);if(Fv)for(var h of Fv(H))Ov.call(H,h)&&tv(Y,h,H[h]);return Y},pv=(Y,H)=>Ul(Y,Bf(H)),bl=(Y,H)=>function(){return Y&&(H=(0,Y[Rh(Y)[0]])(Y=0)),H},He=(Y,H)=>function(){return H||(0,Y[Rh(Y)[0]])((H={exports:{}}).exports,H),H.exports},L0=(Y,H)=>{for(var h in H)Es(Y,h,{get:H[h],enumerable:!0})},P0=(Y,H,h,x)=>{if(H&&typeof H=="object"||typeof H=="function")for(let A of Rh(H))!ev.call(Y,A)&&A!==h&&Es(Y,A,{get:()=>H[A],enumerable:!(x=Bc(H,A))||x.enumerable});return Y},I0=(Y,H,h)=>(h=Y!=null?Oc(nd(Y)):{},P0(Es(h,"default",{value:Y,enumerable:!0}),Y)),Bv=Y=>P0(Es({},"__esModule",{value:!0}),Y),ps=He({"src/version.js"(Y){Y.version="3.1.0"}}),ol=He({"node_modules/native-promise-only/lib/npo.src.js"(Y,H){(function(x,A,E){A[x]=A[x]||E(),typeof H<"u"&&H.exports&&(H.exports=A[x])})("Promise",typeof window<"u"?window:Y,function(){var x,A,E,e=Object.prototype.toString,t=typeof setImmediate<"u"?function(m){return setImmediate(m)}:setTimeout;try{Object.defineProperty({},"x",{}),x=function(m,w,S,M){return Object.defineProperty(m,w,{value:S,writable:!0,configurable:M!==!1})}}catch{x=function(w,S,M){return w[S]=M,w}}E=function(){var m,w,S;function M(_,b){this.fn=_,this.self=b,this.next=void 0}return{add:function(b,d){S=new M(b,d),w?w.next=S:m=S,w=S,S=void 0},drain:function(){var b=m;for(m=w=A=void 0;b;)b.fn.call(b.self),b=b.next}}}();function r(l,m){E.add(l,m),A||(A=t(E.drain))}function i(l){var m,w=typeof l;return l!=null&&(w=="object"||w=="function")&&(m=l.then),typeof m=="function"?m:!1}function a(){for(var l=0;l0&&r(a,w))}catch(S){s.call(new f(w),S)}}}function s(l){var m=this;m.triggered||(m.triggered=!0,m.def&&(m=m.def),m.msg=l,m.state=2,m.chain.length>0&&r(a,m))}function c(l,m,w,S){for(var M=0;MLe?1:pe>=Le?0:NaN}h.descending=function(pe,Le){return Lepe?1:Le>=pe?0:NaN},h.min=function(pe,Le){var $e=-1,dt=pe.length,gt,Tt;if(arguments.length===1){for(;++$e=Tt){gt=Tt;break}for(;++$eTt&&(gt=Tt)}else{for(;++$e=Tt){gt=Tt;break}for(;++$eTt&&(gt=Tt)}return gt},h.max=function(pe,Le){var $e=-1,dt=pe.length,gt,Tt;if(arguments.length===1){for(;++$e=Tt){gt=Tt;break}for(;++$egt&&(gt=Tt)}else{for(;++$e=Tt){gt=Tt;break}for(;++$egt&&(gt=Tt)}return gt},h.extent=function(pe,Le){var $e=-1,dt=pe.length,gt,Tt,Vt;if(arguments.length===1){for(;++$e=Tt){gt=Vt=Tt;break}for(;++$eTt&&(gt=Tt),Vt=Tt){gt=Vt=Tt;break}for(;++$eTt&&(gt=Tt),Vt1)return Vt/(sr-1)},h.deviation=function(){var pe=h.variance.apply(this,arguments);return pe&&Math.sqrt(pe)};function p(pe){return{left:function(Le,$e,dt,gt){for(arguments.length<3&&(dt=0),arguments.length<4&&(gt=Le.length);dt>>1;pe(Le[Tt],$e)<0?dt=Tt+1:gt=Tt}return dt},right:function(Le,$e,dt,gt){for(arguments.length<3&&(dt=0),arguments.length<4&&(gt=Le.length);dt>>1;pe(Le[Tt],$e)>0?gt=Tt:dt=Tt+1}return dt}}}var v=p(s);h.bisectLeft=v.left,h.bisect=h.bisectRight=v.right,h.bisector=function(pe){return p(pe.length===1?function(Le,$e){return s(pe(Le),$e)}:pe)},h.shuffle=function(pe,Le,$e){(dt=arguments.length)<3&&($e=pe.length,dt<2&&(Le=0));for(var dt=$e-Le,gt,Tt;dt;)Tt=Math.random()*dt--|0,gt=pe[dt+Le],pe[dt+Le]=pe[Tt+Le],pe[Tt+Le]=gt;return pe},h.permute=function(pe,Le){for(var $e=Le.length,dt=new Array($e);$e--;)dt[$e]=pe[Le[$e]];return dt},h.pairs=function(pe){for(var Le=0,$e=pe.length-1,dt=pe[0],gt=new Array($e<0?0:$e);Le<$e;)gt[Le]=[dt,dt=pe[++Le]];return gt},h.transpose=function(pe){if(!(Tt=pe.length))return[];for(var Le=-1,$e=h.min(pe,T),dt=new Array($e);++Le<$e;)for(var gt=-1,Tt,Vt=dt[Le]=new Array(Tt);++gt=0;)for(Vt=pe[Le],$e=Vt.length;--$e>=0;)Tt[--gt]=Vt[$e];return Tt};var l=Math.abs;h.range=function(pe,Le,$e){if(arguments.length<3&&($e=1,arguments.length<2&&(Le=pe,pe=0)),(Le-pe)/$e===1/0)throw new Error("infinite range");var dt=[],gt=m(l($e)),Tt=-1,Vt;if(pe*=gt,Le*=gt,$e*=gt,$e<0)for(;(Vt=pe+$e*++Tt)>Le;)dt.push(Vt/gt);else for(;(Vt=pe+$e*++Tt)=Le.length)return gt?gt.call(pe,sr):dt?sr.sort(dt):sr;for(var kr=-1,Zr=sr.length,la=Le[Pr++],ca,nn,pa,Pa=new S,Na;++kr=Le.length)return jt;var Pr=[],kr=$e[sr++];return jt.forEach(function(Zr,la){Pr.push({key:Zr,values:Vt(la,sr)})}),kr?Pr.sort(function(Zr,la){return kr(Zr.key,la.key)}):Pr}return pe.map=function(jt,sr){return Tt(sr,jt,0)},pe.entries=function(jt){return Vt(Tt(h.map,jt,0),0)},pe.key=function(jt){return Le.push(jt),pe},pe.sortKeys=function(jt){return $e[Le.length-1]=jt,pe},pe.sortValues=function(jt){return dt=jt,pe},pe.rollup=function(jt){return gt=jt,pe},pe},h.set=function(pe){var Le=new z;if(pe)for(var $e=0,dt=pe.length;$e=0&&(dt=pe.slice($e+1),pe=pe.slice(0,$e)),pe)return arguments.length<2?this[pe].on(dt):this[pe].on(dt,Le);if(arguments.length===2){if(Le==null)for(pe in this)this.hasOwnProperty(pe)&&this[pe].on(dt,null);return this}};function X(pe){var Le=[],$e=new S;function dt(){for(var gt=Le,Tt=-1,Vt=gt.length,jt;++Tt=0&&($e=pe.slice(0,Le))!=="xmlns"&&(pe=pe.slice(Le+1)),fe.hasOwnProperty($e)?{space:fe[$e],local:pe}:pe}},Q.attr=function(pe,Le){if(arguments.length<2){if(typeof pe=="string"){var $e=this.node();return pe=h.ns.qualify(pe),pe.local?$e.getAttributeNS(pe.space,pe.local):$e.getAttribute(pe)}for(Le in pe)this.each(xe(Le,pe[Le]));return this}return this.each(xe(pe,Le))};function xe(pe,Le){pe=h.ns.qualify(pe);function $e(){this.removeAttribute(pe)}function dt(){this.removeAttributeNS(pe.space,pe.local)}function gt(){this.setAttribute(pe,Le)}function Tt(){this.setAttributeNS(pe.space,pe.local,Le)}function Vt(){var sr=Le.apply(this,arguments);sr==null?this.removeAttribute(pe):this.setAttribute(pe,sr)}function jt(){var sr=Le.apply(this,arguments);sr==null?this.removeAttributeNS(pe.space,pe.local):this.setAttributeNS(pe.space,pe.local,sr)}return Le==null?pe.local?dt:$e:typeof Le=="function"?pe.local?jt:Vt:pe.local?Tt:gt}function Ae(pe){return pe.trim().replace(/\s+/g," ")}Q.classed=function(pe,Le){if(arguments.length<2){if(typeof pe=="string"){var $e=this.node(),dt=(pe=Ce(pe)).length,gt=-1;if(Le=$e.classList){for(;++gt=0;)(Tt=$e[dt])&&(gt&>!==Tt.nextSibling&>.parentNode.insertBefore(Tt,gt),gt=Tt);return this},Q.sort=function(pe){pe=De.apply(this,arguments);for(var Le=-1,$e=this.length;++Le<$e;)this[Le].sort(pe);return this.order()};function De(pe){return arguments.length||(pe=s),function(Le,$e){return Le&&$e?pe(Le.__data__,$e.__data__):!Le-!$e}}Q.each=function(pe){return et(this,function(Le,$e,dt){pe.call(Le,Le.__data__,$e,dt)})};function et(pe,Le){for(var $e=0,dt=pe.length;$e=Le&&(Le=gt+1);!(sr=Vt[Le])&&++Le0&&(pe=pe.slice(0,gt));var Vt=Ut.get(pe);Vt&&(pe=Vt,Tt=vr);function jt(){var kr=this[dt];kr&&(this.removeEventListener(pe,kr,kr.$),delete this[dt])}function sr(){var kr=Tt(Le,A(arguments));jt.call(this),this.addEventListener(pe,this[dt]=kr,kr.$=$e),kr._=Le}function Pr(){var kr=new RegExp("^__on([^.]+)"+h.requote(pe)+"$"),Zr;for(var la in this)if(Zr=la.match(kr)){var ca=this[la];this.removeEventListener(Zr[1],ca,ca.$),delete this[la]}}return gt?Le?sr:jt:Le?N:Pr}var Ut=h.map({mouseenter:"mouseover",mouseleave:"mouseout"});E&&Ut.forEach(function(pe){"on"+pe in E&&Ut.remove(pe)});function Yt(pe,Le){return function($e){var dt=h.event;h.event=$e,Le[0]=this.__data__;try{pe.apply(this,Le)}finally{h.event=dt}}}function vr(pe,Le){var $e=Yt(pe,Le);return function(dt){var gt=this,Tt=dt.relatedTarget;(!Tt||Tt!==gt&&!(Tt.compareDocumentPosition(gt)&8))&&$e.call(gt,dt)}}var hr,Rr=0;function dr(pe){var Le=".dragsuppress-"+ ++Rr,$e="click"+Le,dt=h.select(t(pe)).on("touchmove"+Le,te).on("dragstart"+Le,te).on("selectstart"+Le,te);if(hr==null&&(hr="onselectstart"in pe?!1:O(pe.style,"userSelect")),hr){var gt=e(pe).style,Tt=gt[hr];gt[hr]="none"}return function(Vt){if(dt.on(Le,null),hr&&(gt[hr]=Tt),Vt){var jt=function(){dt.on($e,null)};dt.on($e,function(){te(),jt()},!0),setTimeout(jt,0)}}}h.mouse=function(pe){return yt(pe,ue())};var wr=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function yt(pe,Le){Le.changedTouches&&(Le=Le.changedTouches[0]);var $e=pe.ownerSVGElement||pe;if($e.createSVGPoint){var dt=$e.createSVGPoint();if(wr<0){var gt=t(pe);if(gt.scrollX||gt.scrollY){$e=h.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var Tt=$e[0][0].getScreenCTM();wr=!(Tt.f||Tt.e),$e.remove()}}return wr?(dt.x=Le.pageX,dt.y=Le.pageY):(dt.x=Le.clientX,dt.y=Le.clientY),dt=dt.matrixTransform(pe.getScreenCTM().inverse()),[dt.x,dt.y]}var Vt=pe.getBoundingClientRect();return[Le.clientX-Vt.left-pe.clientLeft,Le.clientY-Vt.top-pe.clientTop]}h.touch=function(pe,Le,$e){if(arguments.length<3&&($e=Le,Le=ue().changedTouches),Le){for(var dt=0,gt=Le.length,Tt;dt1?Ie:pe<-1?-Ie:Math.asin(pe)}function Zt(pe){return((pe=Math.exp(pe))-1/pe)/2}function Wt(pe){return((pe=Math.exp(pe))+1/pe)/2}function rr(pe){return((pe=Math.exp(2*pe))-1)/(pe+1)}var Jt=Math.SQRT2,mr=2,ia=4;h.interpolateZoom=function(pe,Le){var $e=pe[0],dt=pe[1],gt=pe[2],Tt=Le[0],Vt=Le[1],jt=Le[2],sr=Tt-$e,Pr=Vt-dt,kr=sr*sr+Pr*Pr,Zr,la;if(kr0&&(di=di.transition().duration(Vt)),di.call(sn.event)}function Ti(){Pa&&Pa.domain(pa.range().map(function(di){return(di-pe.x)/pe.k}).map(pa.invert)),rn&&rn.domain(Na.range().map(function(di){return(di-pe.y)/pe.k}).map(Na.invert))}function ki(di){jt++||di({type:"zoomstart"})}function Vo(di){Ti(),di({type:"zoom",scale:pe.k,translate:[pe.x,pe.y]})}function Ii(di){--jt||(di({type:"zoomend"}),$e=null)}function lo(){var di=this,Lo=nn.of(di,arguments),Wo=0,Ds=h.select(t(di)).on(Pr,ds).on(kr,zs),Ts=Ba(h.mouse(di)),Kl=dr(di);en.call(di),ki(Lo);function ds(){Wo=1,Zn(h.mouse(di),Ts),Vo(Lo)}function zs(){Ds.on(Pr,null).on(kr,null),Kl(Wo),Ii(Lo)}}function $o(){var di=this,Lo=nn.of(di,arguments),Wo={},Ds=0,Ts,Kl=".zoom-"+h.event.changedTouches[0].identifier,ds="touchmove"+Kl,zs="touchend"+Kl,pu=[],ul=h.select(di),lt=dr(di);ur(),ki(Lo),ul.on(sr,null).on(la,ur);function ir(){var Jr=h.touches(di);return Ts=pe.k,Jr.forEach(function(Kr){Kr.identifier in Wo&&(Wo[Kr.identifier]=Ba(Kr))}),Jr}function ur(){var Jr=h.event.target;h.select(Jr).on(ds,fa).on(zs,Va),pu.push(Jr);for(var Kr=h.event.changedTouches,cn=0,ln=Kr.length;cn1){var Jn=un[0],jn=un[1],xn=Jn[0]-jn[0],Za=Jn[1]-jn[1];Ds=xn*xn+Za*Za}}function fa(){var Jr=h.touches(di),Kr,cn,ln,un;en.call(di);for(var wn=0,Jn=Jr.length;wn1?1:Le,$e=$e<0?0:$e>1?1:$e,gt=$e<=.5?$e*(1+Le):$e+Le-$e*Le,dt=2*$e-gt;function Tt(jt){return jt>360?jt-=360:jt<0&&(jt+=360),jt<60?dt+(gt-dt)*jt/60:jt<180?gt:jt<240?dt+(gt-dt)*(240-jt)/60:dt}function Vt(jt){return Math.round(Tt(jt)*255)}return new ot(Vt(pe+120),Vt(pe),Vt(pe-120))}h.hcl=Kt;function Kt(pe,Le,$e){return this instanceof Kt?(this.h=+pe,this.c=+Le,void(this.l=+$e)):arguments.length<2?pe instanceof Kt?new Kt(pe.h,pe.c,pe.l):pe instanceof Ht?Ya(pe.l,pe.a,pe.b):Ya((pe=Dr((pe=h.rgb(pe)).r,pe.g,pe.b)).l,pe.a,pe.b):new Kt(pe,Le,$e)}var zt=Kt.prototype=new Ga;zt.brighter=function(pe){return new Kt(this.h,this.c,Math.min(100,this.l+Tr*(arguments.length?pe:1)))},zt.darker=function(pe){return new Kt(this.h,this.c,Math.max(0,this.l-Tr*(arguments.length?pe:1)))},zt.rgb=function(){return $t(this.h,this.c,this.l).rgb()};function $t(pe,Le,$e){return isNaN(pe)&&(pe=0),isNaN(Le)&&(Le=0),new Ht($e,Math.cos(pe*=Xe)*Le,Math.sin(pe)*Le)}h.lab=Ht;function Ht(pe,Le,$e){return this instanceof Ht?(this.l=+pe,this.a=+Le,void(this.b=+$e)):arguments.length<2?pe instanceof Ht?new Ht(pe.l,pe.a,pe.b):pe instanceof Kt?$t(pe.h,pe.c,pe.l):Dr((pe=ot(pe)).r,pe.g,pe.b):new Ht(pe,Le,$e)}var Tr=18,qr=.95047,ha=1,Gr=1.08883,wa=Ht.prototype=new Ga;wa.brighter=function(pe){return new Ht(Math.min(100,this.l+Tr*(arguments.length?pe:1)),this.a,this.b)},wa.darker=function(pe){return new Ht(Math.max(0,this.l-Tr*(arguments.length?pe:1)),this.a,this.b)},wa.rgb=function(){return Da(this.l,this.a,this.b)};function Da(pe,Le,$e){var dt=(pe+16)/116,gt=dt+Le/500,Tt=dt-$e/200;return gt=Ka(gt)*qr,dt=Ka(dt)*ha,Tt=Ka(Tt)*Gr,new ot(mt(3.2404542*gt-1.5371385*dt-.4985314*Tt),mt(-.969266*gt+1.8760108*dt+.041556*Tt),mt(.0556434*gt-.2040259*dt+1.0572252*Tt))}function Ya(pe,Le,$e){return pe>0?new Kt(Math.atan2($e,Le)*ht,Math.sqrt(Le*Le+$e*$e),pe):new Kt(NaN,NaN,pe)}function Ka(pe){return pe>.206893034?pe*pe*pe:(pe-4/29)/7.787037}function an(pe){return pe>.008856?Math.pow(pe,1/3):7.787037*pe+4/29}function mt(pe){return Math.round(255*(pe<=.00304?12.92*pe:1.055*Math.pow(pe,1/2.4)-.055))}h.rgb=ot;function ot(pe,Le,$e){return this instanceof ot?(this.r=~~pe,this.g=~~Le,void(this.b=~~$e)):arguments.length<2?pe instanceof ot?new ot(pe.r,pe.g,pe.b):Or(""+pe,ot,yn):new ot(pe,Le,$e)}function Lr(pe){return new ot(pe>>16,pe>>8&255,pe&255)}function Er(pe){return Lr(pe)+""}var Mr=ot.prototype=new Ga;Mr.brighter=function(pe){pe=Math.pow(.7,arguments.length?pe:1);var Le=this.r,$e=this.g,dt=this.b,gt=30;return!Le&&!$e&&!dt?new ot(gt,gt,gt):(Le&&Le>4,dt=dt>>4|dt,gt=sr&240,gt=gt>>4|gt,Tt=sr&15,Tt=Tt<<4|Tt):pe.length===7&&(dt=(sr&16711680)>>16,gt=(sr&65280)>>8,Tt=sr&255)),Le(dt,gt,Tt))}function jr(pe,Le,$e){var dt=Math.min(pe/=255,Le/=255,$e/=255),gt=Math.max(pe,Le,$e),Tt=gt-dt,Vt,jt,sr=(gt+dt)/2;return Tt?(jt=sr<.5?Tt/(gt+dt):Tt/(2-gt-dt),pe==gt?Vt=(Le-$e)/Tt+(Le<$e?6:0):Le==gt?Vt=($e-pe)/Tt+2:Vt=(pe-Le)/Tt+4,Vt*=60):(Vt=NaN,jt=sr>0&&sr<1?0:Vt),new ba(Vt,jt,sr)}function Dr(pe,Le,$e){pe=Hr(pe),Le=Hr(Le),$e=Hr($e);var dt=an((.4124564*pe+.3575761*Le+.1804375*$e)/qr),gt=an((.2126729*pe+.7151522*Le+.072175*$e)/ha),Tt=an((.0193339*pe+.119192*Le+.9503041*$e)/Gr);return Ht(116*gt-16,500*(dt-gt),200*(gt-Tt))}function Hr(pe){return(pe/=255)<=.04045?pe/12.92:Math.pow((pe+.055)/1.055,2.4)}function na(pe){var Le=parseFloat(pe);return pe.charAt(pe.length-1)==="%"?Math.round(Le*2.55):Le}var ta=h.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});ta.forEach(function(pe,Le){ta.set(pe,Lr(Le))});function At(pe){return typeof pe=="function"?pe:function(){return pe}}h.functor=At,h.xhr=or(F);function or(pe){return function(Le,$e,dt){return arguments.length===2&&typeof $e=="function"&&(dt=$e,$e=null),Ar(Le,$e,pe,dt)}}function Ar(pe,Le,$e,dt){var gt={},Tt=h.dispatch("beforesend","progress","load","error"),Vt={},jt=new XMLHttpRequest,sr=null;self.XDomainRequest&&!("withCredentials"in jt)&&/^(http(s)?:)?\/\//.test(pe)&&(jt=new XDomainRequest),"onload"in jt?jt.onload=jt.onerror=Pr:jt.onreadystatechange=function(){jt.readyState>3&&Pr()};function Pr(){var kr=jt.status,Zr;if(!kr&&ga(jt)||kr>=200&&kr<300||kr===304){try{Zr=$e.call(gt,jt)}catch(la){Tt.error.call(gt,la);return}Tt.load.call(gt,Zr)}else Tt.error.call(gt,jt)}return jt.onprogress=function(kr){var Zr=h.event;h.event=kr;try{Tt.progress.call(gt,jt)}finally{h.event=Zr}},gt.header=function(kr,Zr){return kr=(kr+"").toLowerCase(),arguments.length<2?Vt[kr]:(Zr==null?delete Vt[kr]:Vt[kr]=Zr+"",gt)},gt.mimeType=function(kr){return arguments.length?(Le=kr==null?null:kr+"",gt):Le},gt.responseType=function(kr){return arguments.length?(sr=kr,gt):sr},gt.response=function(kr){return $e=kr,gt},["get","post"].forEach(function(kr){gt[kr]=function(){return gt.send.apply(gt,[kr].concat(A(arguments)))}}),gt.send=function(kr,Zr,la){if(arguments.length===2&&typeof Zr=="function"&&(la=Zr,Zr=null),jt.open(kr,pe,!0),Le!=null&&!("accept"in Vt)&&(Vt.accept=Le+",*/*"),jt.setRequestHeader)for(var ca in Vt)jt.setRequestHeader(ca,Vt[ca]);return Le!=null&&jt.overrideMimeType&&jt.overrideMimeType(Le),sr!=null&&(jt.responseType=sr),la!=null&>.on("error",la).on("load",function(nn){la(null,nn)}),Tt.beforesend.call(gt,jt),jt.send(Zr??null),gt},gt.abort=function(){return jt.abort(),gt},h.rebind(gt,Tt,"on"),dt==null?gt:gt.get(oa(dt))}function oa(pe){return pe.length===1?function(Le,$e){pe(Le==null?$e:null)}:pe}function ga(pe){var Le=pe.responseType;return Le&&Le!=="text"?pe.response:pe.responseText}h.dsv=function(pe,Le){var $e=new RegExp('["'+pe+` -]`),dt=pe.charCodeAt(0);function gt(Pr,kr,Zr){arguments.length<3&&(Zr=kr,kr=null);var la=Ar(Pr,Le,kr==null?Tt:Vt(kr),Zr);return la.row=function(ca){return arguments.length?la.response((kr=ca)==null?Tt:Vt(ca)):kr},la}function Tt(Pr){return gt.parse(Pr.responseText)}function Vt(Pr){return function(kr){return gt.parse(kr.responseText,Pr)}}gt.parse=function(Pr,kr){var Zr;return gt.parseRows(Pr,function(la,ca){if(Zr)return Zr(la,ca-1);var nn=function(pa){for(var Pa={},Na=la.length,rn=0;rn=nn)return la;if(rn)return rn=!1,Zr;var Rn=pa;if(Pr.charCodeAt(Rn)===34){for(var ni=Rn;ni++24?(isFinite(Le)&&(clearTimeout(Ta),Ta=setTimeout(Kn,Le)),ra=0):(ra=1,Fn(Kn))}h.timer.flush=function(){ui(),pi()};function ui(){for(var pe=Date.now(),Le=Sa;Le;)pe>=Le.t&&Le.c(pe-Le.t)&&(Le.c=null),Le=Le.n;return pe}function pi(){for(var pe,Le=Sa,$e=1/0;Le;)Le.c?(Le.t<$e&&($e=Le.t),Le=(pe=Le).n):Le=pe?pe.n=Le.n:Sa=Le.n;return za=pe,$e}h.round=function(pe,Le){return Le?Math.round(pe*(Le=Math.pow(10,Le)))/Le:Math.round(pe)},h.geom={};function vi(pe){return pe[0]}function Li(pe){return pe[1]}h.geom.hull=function(pe){var Le=vi,$e=Li;if(arguments.length)return dt(pe);function dt(gt){if(gt.length<3)return[];var Tt=At(Le),Vt=At($e),jt,sr=gt.length,Pr=[],kr=[];for(jt=0;jt=0;--jt)pa.push(gt[Pr[Zr[jt]][2]]);for(jt=+ca;jt1&&bt(pe[$e[dt-2]],pe[$e[dt-1]],pe[gt])<=0;)--dt;$e[dt++]=gt}return $e.slice(0,dt)}function ci(pe,Le){return pe[0]-Le[0]||pe[1]-Le[1]}h.geom.polygon=function(pe){return q(pe,bi),pe};var bi=h.geom.polygon.prototype=[];bi.area=function(){for(var pe=-1,Le=this.length,$e,dt=this[Le-1],gt=0;++peWe)jt=jt.L;else if(Vt=Le-fi(jt,$e),Vt>We){if(!jt.R){dt=jt;break}jt=jt.R}else{Tt>-We?(dt=jt.P,gt=jt):Vt>-We?(dt=jt,gt=jt.N):dt=gt=jt;break}var sr=cs(pe);if(Ri.insert(dt,sr),!(!dt&&!gt)){if(dt===gt){es(dt),gt=cs(dt.site),Ri.insert(sr,gt),sr.edge=gt.edge=Zo(dt.site,sr.site),No(dt),No(gt);return}if(!gt){sr.edge=Zo(dt.site,sr.site);return}es(dt),es(gt);var Pr=dt.site,kr=Pr.x,Zr=Pr.y,la=pe.x-kr,ca=pe.y-Zr,nn=gt.site,pa=nn.x-kr,Pa=nn.y-Zr,Na=2*(la*Pa-ca*pa),rn=la*la+ca*ca,sn=pa*pa+Pa*Pa,Ba={x:(Pa*rn-ca*sn)/Na+kr,y:(la*sn-pa*rn)/Na+Zr};Di(gt.edge,Pr,nn,Ba),sr.edge=Zo(Pr,pe,null,Ba),gt.edge=Zo(pe,nn,null,Ba),No(dt),No(gt)}}function kn(pe,Le){var $e=pe.site,dt=$e.x,gt=$e.y,Tt=gt-Le;if(!Tt)return dt;var Vt=pe.P;if(!Vt)return-1/0;$e=Vt.site;var jt=$e.x,sr=$e.y,Pr=sr-Le;if(!Pr)return jt;var kr=jt-dt,Zr=1/Tt-1/Pr,la=kr/Pr;return Zr?(-la+Math.sqrt(la*la-2*Zr*(kr*kr/(-2*Pr)-sr+Pr/2+gt-Tt/2)))/Zr+dt:(dt+jt)/2}function fi(pe,Le){var $e=pe.N;if($e)return kn($e,Le);var dt=pe.site;return dt.y===Le?dt.x:1/0}function Fs(pe){this.site=pe,this.edges=[]}Fs.prototype.prepare=function(){for(var pe=this.edges,Le=pe.length,$e;Le--;)$e=pe[Le].edge,(!$e.b||!$e.a)&&pe.splice(Le,1);return pe.sort(Gi),pe.length};function Ss(pe){for(var Le=pe[0][0],$e=pe[1][0],dt=pe[0][1],gt=pe[1][1],Tt,Vt,jt,sr,Pr=Ei,kr=Pr.length,Zr,la,ca,nn,pa,Pa;kr--;)if(Zr=Pr[kr],!(!Zr||!Zr.prepare()))for(ca=Zr.edges,nn=ca.length,la=0;laWe||l(sr-Vt)>We)&&(ca.splice(la,0,new ys(qs(Zr.site,Pa,l(jt-Le)We?{x:Le,y:l(Tt-Le)We?{x:l(Vt-gt)We?{x:$e,y:l(Tt-$e)We?{x:l(Vt-dt)=-Oe)){var la=sr*sr+Pr*Pr,ca=kr*kr+Pa*Pa,nn=(Pa*la-Pr*ca)/Zr,pa=(sr*ca-kr*la)/Zr,Pa=pa+jt,Na=Ui.pop()||new js;Na.arc=pe,Na.site=gt,Na.x=nn+Vt,Na.y=Pa+Math.sqrt(nn*nn+pa*pa),Na.cy=Pa,pe.circle=Na;for(var rn=null,sn=bo._;sn;)if(Na.y0)){if(pa/=ca,ca<0){if(pa0){if(pa>la)return;pa>Zr&&(Zr=pa)}if(pa=$e-jt,!(!ca&&pa<0)){if(pa/=ca,ca<0){if(pa>la)return;pa>Zr&&(Zr=pa)}else if(ca>0){if(pa0)){if(pa/=nn,nn<0){if(pa0){if(pa>la)return;pa>Zr&&(Zr=pa)}if(pa=dt-sr,!(!nn&&pa<0)){if(pa/=nn,nn<0){if(pa>la)return;pa>Zr&&(Zr=pa)}else if(nn>0){if(pa0&&(gt.a={x:jt+Zr*ca,y:sr+Zr*nn}),la<1&&(gt.b={x:jt+la*ca,y:sr+la*nn}),gt}}}}}}function hi(pe){for(var Le=ro,$e=Vs(pe[0][0],pe[0][1],pe[1][0],pe[1][1]),dt=Le.length,gt;dt--;)gt=Le[dt],(!so(gt,pe)||!$e(gt)||l(gt.a.x-gt.b.x)=Tt)return;if(kr>la){if(!dt)dt={x:nn,y:Vt};else if(dt.y>=jt)return;$e={x:nn,y:jt}}else{if(!dt)dt={x:nn,y:jt};else if(dt.y1)if(kr>la){if(!dt)dt={x:(Vt-Na)/Pa,y:Vt};else if(dt.y>=jt)return;$e={x:(jt-Na)/Pa,y:jt}}else{if(!dt)dt={x:(jt-Na)/Pa,y:jt};else if(dt.y=Tt)return;$e={x:Tt,y:Pa*Tt+Na}}else{if(!dt)dt={x:Tt,y:Pa*Tt+Na};else if(dt.x=kr&&Na.x<=la&&Na.y>=Zr&&Na.y<=ca?[[kr,ca],[la,ca],[la,Zr],[kr,Zr]]:[];rn.point=sr[pa]}),Pr}function jt(sr){return sr.map(function(Pr,kr){return{x:Math.round(dt(Pr,kr)/We)*We,y:Math.round(gt(Pr,kr)/We)*We,i:kr}})}return Vt.links=function(sr){return ql(jt(sr)).edges.filter(function(Pr){return Pr.l&&Pr.r}).map(function(Pr){return{source:sr[Pr.l.i],target:sr[Pr.r.i]}})},Vt.triangles=function(sr){var Pr=[];return ql(jt(sr)).cells.forEach(function(kr,Zr){for(var la=kr.site,ca=kr.edges.sort(Gi),nn=-1,pa=ca.length,Pa,Na=ca[pa-1].edge,rn=Na.l===la?Na.r:Na.l;++nnsn&&(sn=kr.x),kr.y>Ba&&(Ba=kr.y),ca.push(kr.x),nn.push(kr.y);else for(pa=0;pasn&&(sn=Rn),ni>Ba&&(Ba=ni),ca.push(Rn),nn.push(ni)}var Zn=sn-Na,ri=Ba-rn;Zn>ri?Ba=rn+Zn:sn=Na+ri;function Ti(Ii,lo,$o,hl,Ns,di,Lo,Wo){if(!(isNaN($o)||isNaN(hl)))if(Ii.leaf){var Ds=Ii.x,Ts=Ii.y;if(Ds!=null)if(l(Ds-$o)+l(Ts-hl)<.01)ki(Ii,lo,$o,hl,Ns,di,Lo,Wo);else{var Kl=Ii.point;Ii.x=Ii.y=Ii.point=null,ki(Ii,Kl,Ds,Ts,Ns,di,Lo,Wo),ki(Ii,lo,$o,hl,Ns,di,Lo,Wo)}else Ii.x=$o,Ii.y=hl,Ii.point=lo}else ki(Ii,lo,$o,hl,Ns,di,Lo,Wo)}function ki(Ii,lo,$o,hl,Ns,di,Lo,Wo){var Ds=(Ns+Lo)*.5,Ts=(di+Wo)*.5,Kl=$o>=Ds,ds=hl>=Ts,zs=ds<<1|Kl;Ii.leaf=!1,Ii=Ii.nodes[zs]||(Ii.nodes[zs]=_s()),Kl?Ns=Ds:Lo=Ds,ds?di=Ts:Wo=Ts,Ti(Ii,lo,$o,hl,Ns,di,Lo,Wo)}var Vo=_s();if(Vo.add=function(Ii){Ti(Vo,Ii,+Zr(Ii,++pa),+la(Ii,pa),Na,rn,sn,Ba)},Vo.visit=function(Ii){Cu(Ii,Vo,Na,rn,sn,Ba)},Vo.find=function(Ii){return Vc(Vo,Ii[0],Ii[1],Na,rn,sn,Ba)},pa=-1,Le==null){for(;++paTt||la>Vt||ca=Rn,ri=$e>=ni,Ti=ri<<1|Zn,ki=Ti+4;Ti$e&&(Tt=Le.slice($e,Tt),jt[Vt]?jt[Vt]+=Tt:jt[++Vt]=Tt),(dt=dt[0])===(gt=gt[0])?jt[Vt]?jt[Vt]+=gt:jt[++Vt]=gt:(jt[++Vt]=null,sr.push({i:Vt,x:Il(dt,gt)})),$e=Al.lastIndex;return $e=0&&!(dt=h.interpolators[$e](pe,Le)););return dt}h.interpolators=[function(pe,Le){var $e=typeof Le;return($e==="string"?ta.has(Le.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(Le)?Pl:_u:Le instanceof Ga?Pl:Array.isArray(Le)?bs:$e==="object"&&isNaN(Le)?Tl:Il)(pe,Le)}],h.interpolateArray=bs;function bs(pe,Le){var $e=[],dt=[],gt=pe.length,Tt=Le.length,Vt=Math.min(pe.length,Le.length),jt;for(jt=0;jt=0?pe.slice(0,Le):pe,dt=Le>=0?pe.slice(Le+1):"in";return $e=Zl.get($e)||qu,dt=Ju.get(dt)||F,Zs(dt($e.apply(null,x.call(arguments,1))))};function Zs(pe){return function(Le){return Le<=0?0:Le>=1?1:pe(Le)}}function _f(pe){return function(Le){return 1-pe(1-Le)}}function zo(pe){return function(Le){return .5*(Le<.5?pe(2*Le):2-pe(2-2*Le))}}function Rf(pe){return pe*pe}function is(pe){return pe*pe*pe}function Bi(pe){if(pe<=0)return 0;if(pe>=1)return 1;var Le=pe*pe,$e=Le*pe;return 4*(pe<.5?$e:3*(pe-Le)+$e-.75)}function hc(pe){return function(Le){return Math.pow(Le,pe)}}function xu(pe){return 1-Math.cos(pe*Ie)}function dl(pe){return Math.pow(2,10*(pe-1))}function qc(pe){return 1-Math.sqrt(1-pe*pe)}function Qu(pe,Le){var $e;return arguments.length<2&&(Le=.45),arguments.length?$e=Le/me*Math.asin(1/pe):(pe=1,$e=Le/4),function(dt){return 1+pe*Math.pow(2,-10*dt)*Math.sin((dt-$e)*me/Le)}}function wc(pe){return pe||(pe=1.70158),function(Le){return Le*Le*((pe+1)*Le-pe)}}function Sl(pe){return pe<1/2.75?7.5625*pe*pe:pe<2/2.75?7.5625*(pe-=1.5/2.75)*pe+.75:pe<2.5/2.75?7.5625*(pe-=2.25/2.75)*pe+.9375:7.5625*(pe-=2.625/2.75)*pe+.984375}h.interpolateHcl=hf;function hf(pe,Le){pe=h.hcl(pe),Le=h.hcl(Le);var $e=pe.h,dt=pe.c,gt=pe.l,Tt=Le.h-$e,Vt=Le.c-dt,jt=Le.l-gt;return isNaN(Vt)&&(Vt=0,dt=isNaN(dt)?Le.c:dt),isNaN(Tt)?(Tt=0,$e=isNaN($e)?Le.h:$e):Tt>180?Tt-=360:Tt<-180&&(Tt+=360),function(sr){return $t($e+Tt*sr,dt+Vt*sr,gt+jt*sr)+""}}h.interpolateHsl=Yc;function Yc(pe,Le){pe=h.hsl(pe),Le=h.hsl(Le);var $e=pe.h,dt=pe.s,gt=pe.l,Tt=Le.h-$e,Vt=Le.s-dt,jt=Le.l-gt;return isNaN(Vt)&&(Vt=0,dt=isNaN(dt)?Le.s:dt),isNaN(Tt)?(Tt=0,$e=isNaN($e)?Le.h:$e):Tt>180?Tt-=360:Tt<-180&&(Tt+=360),function(sr){return yn($e+Tt*sr,dt+Vt*sr,gt+jt*sr)+""}}h.interpolateLab=Tc;function Tc(pe,Le){pe=h.lab(pe),Le=h.lab(Le);var $e=pe.l,dt=pe.a,gt=pe.b,Tt=Le.l-$e,Vt=Le.a-dt,jt=Le.b-gt;return function(sr){return Da($e+Tt*sr,dt+Vt*sr,gt+jt*sr)+""}}h.interpolateRound=ec;function ec(pe,Le){return Le-=pe,function($e){return Math.round(pe+Le*$e)}}h.transform=function(pe){var Le=E.createElementNS(h.ns.prefix.svg,"g");return(h.transform=function($e){if($e!=null){Le.setAttribute("transform",$e);var dt=Le.transform.baseVal.consolidate()}return new Gc(dt?dt.matrix:Gu)})(pe)};function Gc(pe){var Le=[pe.a,pe.b],$e=[pe.c,pe.d],dt=bu(Le),gt=Hc(Le,$e),Tt=bu($c($e,Le,-gt))||0;Le[0]*$e[1]<$e[0]*Le[1]&&(Le[0]*=-1,Le[1]*=-1,dt*=-1,gt*=-1),this.rotate=(dt?Math.atan2(Le[1],Le[0]):Math.atan2(-$e[0],$e[1]))*ht,this.translate=[pe.e,pe.f],this.scale=[dt,Tt],this.skew=Tt?Math.atan2(gt,Tt)*ht:0}Gc.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};function Hc(pe,Le){return pe[0]*Le[0]+pe[1]*Le[1]}function bu(pe){var Le=Math.sqrt(Hc(pe,pe));return Le&&(pe[0]/=Le,pe[1]/=Le),Le}function $c(pe,Le,$e){return pe[0]+=$e*Le[0],pe[1]+=$e*Le[1],pe}var Gu={a:1,b:0,c:0,d:1,e:0,f:0};h.interpolateTransform=Lc;function Lu(pe){return pe.length?pe.pop()+",":""}function Ml(pe,Le,$e,dt){if(pe[0]!==Le[0]||pe[1]!==Le[1]){var gt=$e.push("translate(",null,",",null,")");dt.push({i:gt-4,x:Il(pe[0],Le[0])},{i:gt-2,x:Il(pe[1],Le[1])})}else(Le[0]||Le[1])&&$e.push("translate("+Le+")")}function lc(pe,Le,$e,dt){pe!==Le?(pe-Le>180?Le+=360:Le-pe>180&&(pe+=360),dt.push({i:$e.push(Lu($e)+"rotate(",null,")")-2,x:Il(pe,Le)})):Le&&$e.push(Lu($e)+"rotate("+Le+")")}function Wc(pe,Le,$e,dt){pe!==Le?dt.push({i:$e.push(Lu($e)+"skewX(",null,")")-2,x:Il(pe,Le)}):Le&&$e.push(Lu($e)+"skewX("+Le+")")}function Ms(pe,Le,$e,dt){if(pe[0]!==Le[0]||pe[1]!==Le[1]){var gt=$e.push(Lu($e)+"scale(",null,",",null,")");dt.push({i:gt-4,x:Il(pe[0],Le[0])},{i:gt-2,x:Il(pe[1],Le[1])})}else(Le[0]!==1||Le[1]!==1)&&$e.push(Lu($e)+"scale("+Le+")")}function Lc(pe,Le){var $e=[],dt=[];return pe=h.transform(pe),Le=h.transform(Le),Ml(pe.translate,Le.translate,$e,dt),lc(pe.rotate,Le.rotate,$e,dt),Wc(pe.skew,Le.skew,$e,dt),Ms(pe.scale,Le.scale,$e,dt),pe=Le=null,function(gt){for(var Tt=-1,Vt=dt.length,jt;++Tt0?Tt=Ba:($e.c=null,$e.t=NaN,$e=null,Le.end({type:"end",alpha:Tt=0})):Ba>0&&(Le.start({type:"start",alpha:Tt=Ba}),$e=mn(pe.tick)),pe):Tt},pe.start=function(){var Ba,Rn=ca.length,ni=nn.length,Zn=dt[0],ri=dt[1],Ti,ki;for(Ba=0;Ba=0;)Tt.push(kr=Pr[sr]),kr.parent=jt,kr.depth=jt.depth+1;$e&&(jt.value=0),jt.children=Pr}else $e&&(jt.value=+$e.call(dt,jt,jt.depth)||0),delete jt.children;return Pu(gt,function(Zr){var la,ca;pe&&(la=Zr.children)&&la.sort(pe),$e&&(ca=Zr.parent)&&(ca.value+=Zr.value)}),Vt}return dt.sort=function(gt){return arguments.length?(pe=gt,dt):pe},dt.children=function(gt){return arguments.length?(Le=gt,dt):Le},dt.value=function(gt){return arguments.length?($e=gt,dt):$e},dt.revalue=function(gt){return $e&&(vc(gt,function(Tt){Tt.children&&(Tt.value=0)}),Pu(gt,function(Tt){var Vt;Tt.children||(Tt.value=+$e.call(dt,Tt,Tt.depth)||0),(Vt=Tt.parent)&&(Vt.value+=Tt.value)})),gt},dt};function Ys(pe,Le){return h.rebind(pe,Le,"sort","children","value"),pe.nodes=pe,pe.links=Vf,pe}function vc(pe,Le){for(var $e=[pe];(pe=$e.pop())!=null;)if(Le(pe),(gt=pe.children)&&(dt=gt.length))for(var dt,gt;--dt>=0;)$e.push(gt[dt])}function Pu(pe,Le){for(var $e=[pe],dt=[];(pe=$e.pop())!=null;)if(dt.push(pe),(Vt=pe.children)&&(Tt=Vt.length))for(var gt=-1,Tt,Vt;++gtgt&&(gt=jt),dt.push(jt)}for(Vt=0;Vt<$e;++Vt)sr[Vt]=(gt-dt[Vt])/2;return sr},wiggle:function(pe){var Le=pe.length,$e=pe[0],dt=$e.length,gt,Tt,Vt,jt,sr,Pr,kr,Zr,la,ca=[];for(ca[0]=Zr=la=0,Tt=1;Ttdt&&($e=Le,dt=gt);return $e}function nu(pe){return pe.reduce(wu,0)}function wu(pe,Le){return pe+Le[1]}h.layout.histogram=function(){var pe=!0,Le=Number,$e=Sc,dt=Xc;function gt(Tt,la){for(var jt=[],sr=Tt.map(Le,this),Pr=$e.call(this,sr,la),kr=dt.call(this,Pr,sr,la),Zr,la=-1,ca=sr.length,nn=kr.length-1,pa=pe?1:1/ca,Pa;++la0)for(la=-1;++la=Pr[0]&&Pa<=Pr[1]&&(Zr=jt[h.bisect(kr,Pa,1,nn)-1],Zr.y+=pa,Zr.push(Tt[la]));return jt}return gt.value=function(Tt){return arguments.length?(Le=Tt,gt):Le},gt.range=function(Tt){return arguments.length?($e=At(Tt),gt):$e},gt.bins=function(Tt){return arguments.length?(dt=typeof Tt=="number"?function(Vt){return Ws(Vt,Tt)}:At(Tt),gt):dt},gt.frequency=function(Tt){return arguments.length?(pe=!!Tt,gt):pe},gt};function Xc(pe,Le){return Ws(pe,Math.ceil(Math.log(Le.length)/Math.LN2+1))}function Ws(pe,Le){for(var $e=-1,dt=+pe[0],gt=(pe[1]-dt)/Le,Tt=[];++$e<=Le;)Tt[$e]=gt*$e+dt;return Tt}function Sc(pe){return[h.min(pe),h.max(pe)]}h.layout.pack=function(){var pe=h.layout.hierarchy().sort(ac),Le=0,$e=[1,1],dt;function gt(Tt,Vt){var jt=pe.call(this,Tt,Vt),sr=jt[0],Pr=$e[0],kr=$e[1],Zr=dt==null?Math.sqrt:typeof dt=="function"?dt:function(){return dt};if(sr.x=sr.y=0,Pu(sr,function(ca){ca.r=+Zr(ca.value)}),Pu(sr,Ec),Le){var la=Le*(dt?1:Math.max(2*sr.r/Pr,2*sr.r/kr))/2;Pu(sr,function(ca){ca.r+=la}),Pu(sr,Ec),Pu(sr,function(ca){ca.r-=la})}return tf(sr,Pr/2,kr/2,dt?1:1/Math.max(2*sr.r/Pr,2*sr.r/kr)),jt}return gt.size=function(Tt){return arguments.length?($e=Tt,gt):$e},gt.radius=function(Tt){return arguments.length?(dt=Tt==null||typeof Tt=="function"?Tt:+Tt,gt):dt},gt.padding=function(Tt){return arguments.length?(Le=+Tt,gt):Le},Ys(gt,pe)};function ac(pe,Le){return pe.value-Le.value}function hu(pe,Le){var $e=pe._pack_next;pe._pack_next=Le,Le._pack_prev=pe,Le._pack_next=$e,$e._pack_prev=Le}function Mc(pe,Le){pe._pack_next=Le,Le._pack_prev=pe}function Iu(pe,Le){var $e=Le.x-pe.x,dt=Le.y-pe.y,gt=pe.r+Le.r;return .999*gt*gt>$e*$e+dt*dt}function Ec(pe){if(!(Le=pe.children)||!(la=Le.length))return;var Le,$e=1/0,dt=-1/0,gt=1/0,Tt=-1/0,Vt,jt,sr,Pr,kr,Zr,la;function ca(Ba){$e=Math.min(Ba.x-Ba.r,$e),dt=Math.max(Ba.x+Ba.r,dt),gt=Math.min(Ba.y-Ba.r,gt),Tt=Math.max(Ba.y+Ba.r,Tt)}if(Le.forEach(wf),Vt=Le[0],Vt.x=-Vt.r,Vt.y=0,ca(Vt),la>1&&(jt=Le[1],jt.x=jt.r,jt.y=0,ca(jt),la>2))for(sr=Le[2],vu(Vt,jt,sr),ca(sr),hu(Vt,sr),Vt._pack_prev=sr,hu(sr,jt),jt=Vt._pack_next,Pr=3;PrPa.x&&(Pa=Rn),Rn.depth>Na.depth&&(Na=Rn)});var rn=Le(pa,Pa)/2-pa.x,sn=$e[0]/(Pa.x+Le(Pa,pa)/2+rn),Ba=$e[1]/(Na.depth||1);vc(ca,function(Rn){Rn.x=(Rn.x+rn)*sn,Rn.y=Rn.depth*Ba})}return la}function Tt(kr){for(var Zr={A:null,children:[kr]},la=[Zr],ca;(ca=la.pop())!=null;)for(var nn=ca.children,pa,Pa=0,Na=nn.length;Pa0&&(Yl(nc(pa,kr,la),kr,Rn),Na+=Rn,rn+=Rn),sn+=pa.m,Na+=ca.m,Ba+=Pa.m,rn+=nn.m;pa&&!al(nn)&&(nn.t=pa,nn.m+=sn-rn),ca&&!Ru(Pa)&&(Pa.t=ca,Pa.m+=Na-Ba,la=kr)}return la}function Pr(kr){kr.x*=$e[0],kr.y=kr.depth*$e[1]}return gt.separation=function(kr){return arguments.length?(Le=kr,gt):Le},gt.size=function(kr){return arguments.length?(dt=($e=kr)==null?Pr:null,gt):dt?null:$e},gt.nodeSize=function(kr){return arguments.length?(dt=($e=kr)==null?null:Pr,gt):dt?$e:null},Ys(gt,pe)};function Wu(pe,Le){return pe.parent==Le.parent?1:2}function Ru(pe){var Le=pe.children;return Le.length?Le[0]:pe.t}function al(pe){var Le=pe.children,$e;return($e=Le.length)?Le[$e-1]:pe.t}function Yl(pe,Le,$e){var dt=$e/(Le.i-pe.i);Le.c-=dt,Le.s+=$e,pe.c+=dt,Le.z+=$e,Le.m+=$e}function Ks(pe){for(var Le=0,$e=0,dt=pe.children,gt=dt.length,Tt;--gt>=0;)Tt=dt[gt],Tt.z+=Le,Tt.m+=Le,Le+=Tt.s+($e+=Tt.c)}function nc(pe,Le,$e){return pe.a.parent===Le.parent?pe.a:$e}h.layout.cluster=function(){var pe=h.layout.hierarchy().sort(null).value(null),Le=Wu,$e=[1,1],dt=!1;function gt(Tt,Vt){var jt=pe.call(this,Tt,Vt),sr=jt[0],Pr,kr=0;Pu(sr,function(pa){var Pa=pa.children;Pa&&Pa.length?(pa.x=Zc(Pa),pa.y=Du(Pa)):(pa.x=Pr?kr+=Le(pa,Pr):0,pa.y=0,Pr=pa)});var Zr=Qt(sr),la=yr(sr),ca=Zr.x-Le(Zr,la)/2,nn=la.x+Le(la,Zr)/2;return Pu(sr,dt?function(pa){pa.x=(pa.x-sr.x)*$e[0],pa.y=(sr.y-pa.y)*$e[1]}:function(pa){pa.x=(pa.x-ca)/(nn-ca)*$e[0],pa.y=(1-(sr.y?pa.y/sr.y:1))*$e[1]}),jt}return gt.separation=function(Tt){return arguments.length?(Le=Tt,gt):Le},gt.size=function(Tt){return arguments.length?(dt=($e=Tt)==null,gt):dt?null:$e},gt.nodeSize=function(Tt){return arguments.length?(dt=($e=Tt)!=null,gt):dt?$e:null},Ys(gt,pe)};function Du(pe){return 1+h.max(pe,function(Le){return Le.y})}function Zc(pe){return pe.reduce(function(Le,$e){return Le+$e.x},0)/pe.length}function Qt(pe){var Le=pe.children;return Le&&Le.length?Qt(Le[0]):pe}function yr(pe){var Le=pe.children,$e;return Le&&($e=Le.length)?yr(Le[$e-1]):pe}h.layout.treemap=function(){var pe=h.layout.hierarchy(),Le=Math.round,$e=[1,1],dt=null,gt=$r,Tt=!1,Vt,jt="squarify",sr=.5*(1+Math.sqrt(5));function Pr(pa,Pa){for(var Na=-1,rn=pa.length,sn,Ba;++Na0;)rn.push(Ba=sn[ri-1]),rn.area+=Ba.area,jt!=="squarify"||(ni=la(rn,Zn))<=Rn?(sn.pop(),Rn=ni):(rn.area-=rn.pop().area,ca(rn,Zn,Na,!1),Zn=Math.min(Na.dx,Na.dy),rn.length=rn.area=0,Rn=1/0);rn.length&&(ca(rn,Zn,Na,!0),rn.length=rn.area=0),Pa.forEach(kr)}}function Zr(pa){var Pa=pa.children;if(Pa&&Pa.length){var Na=gt(pa),rn=Pa.slice(),sn,Ba=[];for(Pr(rn,Na.dx*Na.dy/pa.value),Ba.area=0;sn=rn.pop();)Ba.push(sn),Ba.area+=sn.area,sn.z!=null&&(ca(Ba,sn.z?Na.dx:Na.dy,Na,!rn.length),Ba.length=Ba.area=0);Pa.forEach(Zr)}}function la(pa,Pa){for(var Na=pa.area,rn,sn=0,Ba=1/0,Rn=-1,ni=pa.length;++Rnsn&&(sn=rn));return Na*=Na,Pa*=Pa,Na?Math.max(Pa*sn*sr/Na,Na/(Pa*Ba*sr)):1/0}function ca(pa,Pa,Na,rn){var sn=-1,Ba=pa.length,Rn=Na.x,ni=Na.y,Zn=Pa?Le(pa.area/Pa):0,ri;if(Pa==Na.dx){for((rn||Zn>Na.dy)&&(Zn=Na.dy);++snNa.dx)&&(Zn=Na.dx);++sn1);return pe+Le*dt*Math.sqrt(-2*Math.log(Tt)/Tt)}},logNormal:function(){var pe=h.random.normal.apply(h,arguments);return function(){return Math.exp(pe())}},bates:function(pe){var Le=h.random.irwinHall(pe);return function(){return Le()/pe}},irwinHall:function(pe){return function(){for(var Le=0,$e=0;$e2?_n:Ja,Pr=dt?Kc:xf;return gt=sr(pe,Le,Pr,$e),Tt=sr(Le,pe,Pr,Uo),jt}function jt(sr){return gt(sr)}return jt.invert=function(sr){return Tt(sr)},jt.domain=function(sr){return arguments.length?(pe=sr.map(Number),Vt()):pe},jt.range=function(sr){return arguments.length?(Le=sr,Vt()):Le},jt.rangeRound=function(sr){return jt.range(sr).interpolate(ec)},jt.clamp=function(sr){return arguments.length?(dt=sr,Vt()):dt},jt.interpolate=function(sr){return arguments.length?($e=sr,Vt()):$e},jt.ticks=function(sr){return Hi(pe,sr)},jt.tickFormat=function(sr,Pr){return d3_scale_linearTickFormat(pe,sr,Pr)},jt.nice=function(sr){return dn(pe,sr),Vt()},jt.copy=function(){return qn(pe,Le,$e,dt)},Vt()}function En(pe,Le){return h.rebind(pe,Le,"range","rangeRound","interpolate","clamp")}function dn(pe,Le){return Ln(pe,On(ai(pe,Le)[2])),Ln(pe,On(ai(pe,Le)[2])),pe}function ai(pe,Le){Le==null&&(Le=10);var $e=ma(pe),dt=$e[1]-$e[0],gt=Math.pow(10,Math.floor(Math.log(dt/Le)/Math.LN10)),Tt=Le/dt*gt;return Tt<=.15?gt*=10:Tt<=.35?gt*=5:Tt<=.75&&(gt*=2),$e[0]=Math.ceil($e[0]/gt)*gt,$e[1]=Math.floor($e[1]/gt)*gt+gt*.5,$e[2]=gt,$e}function Hi(pe,Le){return h.range.apply(h,ai(pe,Le))}h.scale.log=function(){return Fi(h.scale.linear().domain([0,1]),10,!0,[1,10])};function Fi(pe,Le,$e,dt){function gt(jt){return($e?Math.log(jt<0?0:jt):-Math.log(jt>0?0:-jt))/Math.log(Le)}function Tt(jt){return $e?Math.pow(Le,jt):-Math.pow(Le,-jt)}function Vt(jt){return pe(gt(jt))}return Vt.invert=function(jt){return Tt(pe.invert(jt))},Vt.domain=function(jt){return arguments.length?($e=jt[0]>=0,pe.domain((dt=jt.map(Number)).map(gt)),Vt):dt},Vt.base=function(jt){return arguments.length?(Le=+jt,pe.domain(dt.map(gt)),Vt):Le},Vt.nice=function(){var jt=Ln(dt.map(gt),$e?Math:Zi);return pe.domain(jt),dt=jt.map(Tt),Vt},Vt.ticks=function(){var jt=ma(dt),sr=[],Pr=jt[0],kr=jt[1],Zr=Math.floor(gt(Pr)),la=Math.ceil(gt(kr)),ca=Le%1?2:Le;if(isFinite(la-Zr)){if($e){for(;Zr0;nn--)sr.push(Tt(Zr)*nn);for(Zr=0;sr[Zr]kr;la--);sr=sr.slice(Zr,la)}return sr},Vt.copy=function(){return Fi(pe.copy(),Le,$e,dt)},En(Vt,pe)}var Zi={floor:function(pe){return-Math.ceil(-pe)},ceil:function(pe){return-Math.floor(-pe)}};h.scale.pow=function(){return Wi(h.scale.linear(),1,[0,1])};function Wi(pe,Le,$e){var dt=ii(Le),gt=ii(1/Le);function Tt(Vt){return pe(dt(Vt))}return Tt.invert=function(Vt){return gt(pe.invert(Vt))},Tt.domain=function(Vt){return arguments.length?(pe.domain(($e=Vt.map(Number)).map(dt)),Tt):$e},Tt.ticks=function(Vt){return Hi($e,Vt)},Tt.tickFormat=function(Vt,jt){return d3_scale_linearTickFormat($e,Vt,jt)},Tt.nice=function(Vt){return Tt.domain(dn($e,Vt))},Tt.exponent=function(Vt){return arguments.length?(dt=ii(Le=Vt),gt=ii(1/Le),pe.domain($e.map(dt)),Tt):Le},Tt.copy=function(){return Wi(pe.copy(),Le,$e)},En(Tt,pe)}function ii(pe){return function(Le){return Le<0?-Math.pow(-Le,pe):Math.pow(Le,pe)}}h.scale.sqrt=function(){return h.scale.pow().exponent(.5)},h.scale.ordinal=function(){return Wn([],{t:"range",a:[[]]})};function Wn(pe,Le){var $e,dt,gt;function Tt(jt){return dt[(($e.get(jt)||(Le.t==="range"?$e.set(jt,pe.push(jt)):NaN))-1)%dt.length]}function Vt(jt,sr){return h.range(pe.length).map(function(Pr){return jt+sr*Pr})}return Tt.domain=function(jt){if(!arguments.length)return pe;pe=[],$e=new S;for(var sr=-1,Pr=jt.length,kr;++sr0?$e[Tt-1]:pe[0],Tt<$e.length?$e[Tt]:pe[pe.length-1]]},gt.copy=function(){return vs(pe,Le)},dt()}h.scale.quantize=function(){return Rs(0,1,[0,1])};function Rs(pe,Le,$e){var dt,gt;function Tt(jt){return $e[Math.max(0,Math.min(gt,Math.floor(dt*(jt-pe))))]}function Vt(){return dt=$e.length/(Le-pe),gt=$e.length-1,Tt}return Tt.domain=function(jt){return arguments.length?(pe=+jt[0],Le=+jt[jt.length-1],Vt()):[pe,Le]},Tt.range=function(jt){return arguments.length?($e=jt,Vt()):$e},Tt.invertExtent=function(jt){return jt=$e.indexOf(jt),jt=jt<0?NaN:jt/dt+pe,[jt,jt+1/dt]},Tt.copy=function(){return Rs(pe,Le,$e)},Vt()}h.scale.threshold=function(){return Yo([.5],[0,1])};function Yo(pe,Le){function $e(dt){if(dt<=dt)return Le[h.bisect(pe,dt)]}return $e.domain=function(dt){return arguments.length?(pe=dt,$e):pe},$e.range=function(dt){return arguments.length?(Le=dt,$e):Le},$e.invertExtent=function(dt){return dt=Le.indexOf(dt),[pe[dt-1],pe[dt]]},$e.copy=function(){return Yo(pe,Le)},$e}h.scale.identity=function(){return sl([0,1])};function sl(pe){function Le($e){return+$e}return Le.invert=Le,Le.domain=Le.range=function($e){return arguments.length?(pe=$e.map(Le),Le):pe},Le.ticks=function($e){return Hi(pe,$e)},Le.tickFormat=function($e,dt){return d3_scale_linearTickFormat(pe,$e,dt)},Le.copy=function(){return sl(pe)},Le}h.svg={};function nl(){return 0}h.svg.arc=function(){var pe=wi,Le=go,$e=nl,dt=Ls,gt=ws,Tt=os,Vt=Hl;function jt(){var Pr=Math.max(0,+pe.apply(this,arguments)),kr=Math.max(0,+Le.apply(this,arguments)),Zr=gt.apply(this,arguments)-Ie,la=Tt.apply(this,arguments)-Ie,ca=Math.abs(la-Zr),nn=Zr>la?0:1;if(kr=be)return sr(kr,nn)+(Pr?sr(Pr,1-nn):"")+"Z";var pa,Pa,Na,rn,sn=0,Ba=0,Rn,ni,Zn,ri,Ti,ki,Vo,Ii,lo=[];if((rn=(+Vt.apply(this,arguments)||0)/2)&&(Na=dt===Ls?Math.sqrt(Pr*Pr+kr*kr):+dt.apply(this,arguments),nn||(Ba*=-1),kr&&(Ba=Ct(Na/kr*Math.sin(rn))),Pr&&(sn=Ct(Na/Pr*Math.sin(rn)))),kr){Rn=kr*Math.cos(Zr+Ba),ni=kr*Math.sin(Zr+Ba),Zn=kr*Math.cos(la-Ba),ri=kr*Math.sin(la-Ba);var $o=Math.abs(la-Zr-2*Ba)<=de?0:1;if(Ba&&Wl(Rn,ni,Zn,ri)===nn^$o){var hl=(Zr+la)/2;Rn=kr*Math.cos(hl),ni=kr*Math.sin(hl),Zn=ri=null}}else Rn=ni=0;if(Pr){Ti=Pr*Math.cos(la-sn),ki=Pr*Math.sin(la-sn),Vo=Pr*Math.cos(Zr+sn),Ii=Pr*Math.sin(Zr+sn);var Ns=Math.abs(Zr-la+2*sn)<=de?0:1;if(sn&&Wl(Ti,ki,Vo,Ii)===1-nn^Ns){var di=(Zr+la)/2;Ti=Pr*Math.cos(di),ki=Pr*Math.sin(di),Vo=Ii=null}}else Ti=ki=0;if(ca>We&&(pa=Math.min(Math.abs(kr-Pr)/2,+$e.apply(this,arguments)))>.001){Pa=Pr0?0:1}function $l(pe,Le,$e,dt,gt){var Tt=pe[0]-Le[0],Vt=pe[1]-Le[1],jt=(gt?dt:-dt)/Math.sqrt(Tt*Tt+Vt*Vt),sr=jt*Vt,Pr=-jt*Tt,kr=pe[0]+sr,Zr=pe[1]+Pr,la=Le[0]+sr,ca=Le[1]+Pr,nn=(kr+la)/2,pa=(Zr+ca)/2,Pa=la-kr,Na=ca-Zr,rn=Pa*Pa+Na*Na,sn=$e-dt,Ba=kr*ca-la*Zr,Rn=(Na<0?-1:1)*Math.sqrt(Math.max(0,sn*sn*rn-Ba*Ba)),ni=(Ba*Na-Pa*Rn)/rn,Zn=(-Ba*Pa-Na*Rn)/rn,ri=(Ba*Na+Pa*Rn)/rn,Ti=(-Ba*Pa+Na*Rn)/rn,ki=ni-nn,Vo=Zn-pa,Ii=ri-nn,lo=Ti-pa;return ki*ki+Vo*Vo>Ii*Ii+lo*lo&&(ni=ri,Zn=Ti),[[ni-sr,Zn-Pr],[ni*$e/sn,Zn*$e/sn]]}function uc(){return!0}function Xl(pe){var Le=vi,$e=Li,dt=uc,gt=ll,Tt=gt.key,Vt=.7;function jt(sr){var Pr=[],kr=[],Zr=-1,la=sr.length,ca,nn=At(Le),pa=At($e);function Pa(){Pr.push("M",gt(pe(kr),Vt))}for(;++Zr1?pe.join("L"):pe+"Z"}function Zu(pe){return pe.join("L")+"Z"}function Yi(pe){for(var Le=0,$e=pe.length,dt=pe[0],gt=[dt[0],",",dt[1]];++Le<$e;)gt.push("H",(dt[0]+(dt=pe[Le])[0])/2,"V",dt[1]);return $e>1&>.push("H",dt[0]),gt.join("")}function io(pe){for(var Le=0,$e=pe.length,dt=pe[0],gt=[dt[0],",",dt[1]];++Le<$e;)gt.push("V",(dt=pe[Le])[1],"H",dt[0]);return gt.join("")}function Yu(pe){for(var Le=0,$e=pe.length,dt=pe[0],gt=[dt[0],",",dt[1]];++Le<$e;)gt.push("H",(dt=pe[Le])[0],"V",dt[1]);return gt.join("")}function du(pe,Le){return pe.length<4?ll(pe):pe[1]+L(pe.slice(1,-1),ne(pe,Le))}function iu(pe,Le){return pe.length<3?Zu(pe):pe[0]+L((pe.push(pe[0]),pe),ne([pe[pe.length-2]].concat(pe,[pe[1]]),Le))}function ze(pe,Le){return pe.length<3?ll(pe):pe[0]+L(pe,ne(pe,Le))}function L(pe,Le){if(Le.length<1||pe.length!=Le.length&&pe.length!=Le.length+2)return ll(pe);var $e=pe.length!=Le.length,dt="",gt=pe[0],Tt=pe[1],Vt=Le[0],jt=Vt,sr=1;if($e&&(dt+="Q"+(Tt[0]-Vt[0]*2/3)+","+(Tt[1]-Vt[1]*2/3)+","+Tt[0]+","+Tt[1],gt=pe[1],sr=2),Le.length>1){jt=Le[1],Tt=pe[sr],sr++,dt+="C"+(gt[0]+Vt[0])+","+(gt[1]+Vt[1])+","+(Tt[0]-jt[0])+","+(Tt[1]-jt[1])+","+Tt[0]+","+Tt[1];for(var Pr=2;Pr9&&(Tt=$e*3/Math.sqrt(Tt),Vt[jt]=Tt*dt,Vt[jt+1]=Tt*gt));for(jt=-1;++jt<=sr;)Tt=(pe[Math.min(sr,jt+1)][0]-pe[Math.max(0,jt-1)][0])/(6*(1+Vt[jt]*Vt[jt])),Le.push([Tt||0,Vt[jt]*Tt||0]);return Le}function Ye(pe){return pe.length<3?ll(pe):pe[0]+L(pe,Ve(pe))}h.svg.line.radial=function(){var pe=Xl(it);return pe.radius=pe.x,delete pe.x,pe.angle=pe.y,delete pe.y,pe};function it(pe){for(var Le,$e=-1,dt=pe.length,gt,Tt;++$ede)+",1 "+Zr}function Pr(kr,Zr,la,ca){return"Q 0,0 "+ca}return Tt.radius=function(kr){return arguments.length?($e=At(kr),Tt):$e},Tt.source=function(kr){return arguments.length?(pe=At(kr),Tt):pe},Tt.target=function(kr){return arguments.length?(Le=At(kr),Tt):Le},Tt.startAngle=function(kr){return arguments.length?(dt=At(kr),Tt):dt},Tt.endAngle=function(kr){return arguments.length?(gt=At(kr),Tt):gt},Tt};function Lt(pe){return pe.radius}h.svg.diagonal=function(){var pe=St,Le=_t,$e=nr;function dt(gt,Tt){var Vt=pe.call(this,gt,Tt),jt=Le.call(this,gt,Tt),sr=(Vt.y+jt.y)/2,Pr=[Vt,{x:Vt.x,y:sr},{x:jt.x,y:sr},jt];return Pr=Pr.map($e),"M"+Pr[0]+"C"+Pr[1]+" "+Pr[2]+" "+Pr[3]}return dt.source=function(gt){return arguments.length?(pe=At(gt),dt):pe},dt.target=function(gt){return arguments.length?(Le=At(gt),dt):Le},dt.projection=function(gt){return arguments.length?($e=gt,dt):$e},dt};function nr(pe){return[pe.x,pe.y]}h.svg.diagonal.radial=function(){var pe=h.svg.diagonal(),Le=nr,$e=pe.projection;return pe.projection=function(dt){return arguments.length?$e(cr(Le=dt)):Le},pe};function cr(pe){return function(){var Le=pe.apply(this,arguments),$e=Le[0],dt=Le[1]-Ie;return[$e*Math.cos(dt),$e*Math.sin(dt)]}}h.svg.symbol=function(){var pe=Cr,Le=gr;function $e(dt,gt){return(ua.get(pe.call(this,dt,gt))||Wr)(Le.call(this,dt,gt))}return $e.type=function(dt){return arguments.length?(pe=At(dt),$e):pe},$e.size=function(dt){return arguments.length?(Le=At(dt),$e):Le},$e};function gr(){return 64}function Cr(){return"circle"}function Wr(pe){var Le=Math.sqrt(pe/de);return"M0,"+Le+"A"+Le+","+Le+" 0 1,1 0,"+-Le+"A"+Le+","+Le+" 0 1,1 0,"+Le+"Z"}var ua=h.map({circle:Wr,cross:function(pe){var Le=Math.sqrt(pe/5)/2;return"M"+-3*Le+","+-Le+"H"+-Le+"V"+-3*Le+"H"+Le+"V"+-Le+"H"+3*Le+"V"+Le+"H"+Le+"V"+3*Le+"H"+-Le+"V"+Le+"H"+-3*Le+"Z"},diamond:function(pe){var Le=Math.sqrt(pe/(2*Ma)),$e=Le*Ma;return"M0,"+-Le+"L"+$e+",0 0,"+Le+" "+-$e+",0Z"},square:function(pe){var Le=Math.sqrt(pe)/2;return"M"+-Le+","+-Le+"L"+Le+","+-Le+" "+Le+","+Le+" "+-Le+","+Le+"Z"},"triangle-down":function(pe){var Le=Math.sqrt(pe/va),$e=Le*va/2;return"M0,"+$e+"L"+Le+","+-$e+" "+-Le+","+-$e+"Z"},"triangle-up":function(pe){var Le=Math.sqrt(pe/va),$e=Le*va/2;return"M0,"+-$e+"L"+Le+","+$e+" "+-Le+","+$e+"Z"}});h.svg.symbolTypes=ua.keys();var va=Math.sqrt(3),Ma=Math.tan(30*Xe);Q.transition=function(pe){for(var Le=Si||++oi,$e=Ho(pe),dt=[],gt,Tt,Vt=_i||{time:Date.now(),ease:Bi,delay:0,duration:250},jt=-1,sr=this.length;++jt0;)Zr[--rn].call(pe,Na);if(Pa>=1)return Vt.event&&Vt.event.end.call(pe,pe.__data__,Le),--Tt.count?delete Tt[dt]:delete pe[$e],1}Vt||(jt=gt.time,sr=mn(la,0,jt),Vt=Tt[dt]={tween:new S,time:jt,timer:sr,delay:gt.delay,duration:gt.duration,ease:gt.ease,index:Le},gt=null,++Tt.count)}h.svg.axis=function(){var pe=h.scale.linear(),Le=Ko,$e=6,dt=6,gt=3,Tt=[10],Vt=null,jt;function sr(Pr){Pr.each(function(){var kr=h.select(this),Zr=this.__chart__||pe,la=this.__chart__=pe.copy(),ca=Vt??(la.ticks?la.ticks.apply(la,Tt):la.domain()),nn=jt??(la.tickFormat?la.tickFormat.apply(la,Tt):F),pa=kr.selectAll(".tick").data(ca,la),Pa=pa.enter().insert("g",".domain").attr("class","tick").style("opacity",We),Na=h.transition(pa.exit()).style("opacity",We).remove(),rn=h.transition(pa.order()).style("opacity",1),sn=Math.max($e,0)+gt,Ba,Rn=tn(la),ni=kr.selectAll(".domain").data([0]),Zn=(ni.enter().append("path").attr("class","domain"),h.transition(ni));Pa.append("line"),Pa.append("text");var ri=Pa.select("line"),Ti=rn.select("line"),ki=pa.select("text").text(nn),Vo=Pa.select("text"),Ii=rn.select("text"),lo=Le==="top"||Le==="left"?-1:1,$o,hl,Ns,di;if(Le==="bottom"||Le==="top"?(Ba=Hs,$o="x",Ns="y",hl="x2",di="y2",ki.attr("dy",lo<0?"0em":".71em").style("text-anchor","middle"),Zn.attr("d","M"+Rn[0]+","+lo*dt+"V0H"+Rn[1]+"V"+lo*dt)):(Ba=ko,$o="y",Ns="x",hl="y2",di="x2",ki.attr("dy",".32em").style("text-anchor",lo<0?"end":"start"),Zn.attr("d","M"+lo*dt+","+Rn[0]+"H0V"+Rn[1]+"H"+lo*dt)),ri.attr(di,lo*$e),Vo.attr(Ns,lo*sn),Ti.attr(hl,0).attr(di,lo*$e),Ii.attr($o,0).attr(Ns,lo*sn),la.rangeBand){var Lo=la,Wo=Lo.rangeBand()/2;Zr=la=function(Ds){return Lo(Ds)+Wo}}else Zr.rangeBand?Zr=la:Na.call(Ba,la,Zr);Pa.call(Ba,Zr,la),rn.call(Ba,la,la)})}return sr.scale=function(Pr){return arguments.length?(pe=Pr,sr):pe},sr.orient=function(Pr){return arguments.length?(Le=Pr in Js?Pr+"":Ko,sr):Le},sr.ticks=function(){return arguments.length?(Tt=A(arguments),sr):Tt},sr.tickValues=function(Pr){return arguments.length?(Vt=Pr,sr):Vt},sr.tickFormat=function(Pr){return arguments.length?(jt=Pr,sr):jt},sr.tickSize=function(Pr){var kr=arguments.length;return kr?($e=+Pr,dt=+arguments[kr-1],sr):$e},sr.innerTickSize=function(Pr){return arguments.length?($e=+Pr,sr):$e},sr.outerTickSize=function(Pr){return arguments.length?(dt=+Pr,sr):dt},sr.tickPadding=function(Pr){return arguments.length?(gt=+Pr,sr):gt},sr.tickSubdivide=function(){return arguments.length&&sr},sr};var Ko="bottom",Js={top:1,right:1,bottom:1,left:1};function Hs(pe,Le,$e){pe.attr("transform",function(dt){var gt=Le(dt);return"translate("+(isFinite(gt)?gt:$e(dt))+",0)"})}function ko(pe,Le,$e){pe.attr("transform",function(dt){var gt=Le(dt);return"translate(0,"+(isFinite(gt)?gt:$e(dt))+")"})}h.svg.brush=function(){var pe=ie(kr,"brushstart","brush","brushend"),Le=null,$e=null,dt=[0,0],gt=[0,0],Tt,Vt,jt=!0,sr=!0,Pr=fl[0];function kr(pa){pa.each(function(){var Pa=h.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",nn).on("touchstart.brush",nn),Na=Pa.selectAll(".background").data([0]);Na.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),Pa.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var rn=Pa.selectAll(".resize").data(Pr,F);rn.exit().remove(),rn.enter().append("g").attr("class",function(ni){return"resize "+ni}).style("cursor",function(ni){return Co[ni]}).append("rect").attr("x",function(ni){return/[ew]$/.test(ni)?-3:null}).attr("y",function(ni){return/^[ns]/.test(ni)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),rn.style("display",kr.empty()?"none":null);var sn=h.transition(Pa),Ba=h.transition(Na),Rn;Le&&(Rn=tn(Le),Ba.attr("x",Rn[0]).attr("width",Rn[1]-Rn[0]),la(sn)),$e&&(Rn=tn($e),Ba.attr("y",Rn[0]).attr("height",Rn[1]-Rn[0]),ca(sn)),Zr(sn)})}kr.event=function(pa){pa.each(function(){var Pa=pe.of(this,arguments),Na={x:dt,y:gt,i:Tt,j:Vt},rn=this.__chart__||Na;this.__chart__=Na,Si?h.select(this).transition().each("start.brush",function(){Tt=rn.i,Vt=rn.j,dt=rn.x,gt=rn.y,Pa({type:"brushstart"})}).tween("brush:brush",function(){var sn=bs(dt,Na.x),Ba=bs(gt,Na.y);return Tt=Vt=null,function(Rn){dt=Na.x=sn(Rn),gt=Na.y=Ba(Rn),Pa({type:"brush",mode:"resize"})}}).each("end.brush",function(){Tt=Na.i,Vt=Na.j,Pa({type:"brush",mode:"resize"}),Pa({type:"brushend"})}):(Pa({type:"brushstart"}),Pa({type:"brush",mode:"resize"}),Pa({type:"brushend"}))})};function Zr(pa){pa.selectAll(".resize").attr("transform",function(Pa){return"translate("+dt[+/e$/.test(Pa)]+","+gt[+/^s/.test(Pa)]+")"})}function la(pa){pa.select(".extent").attr("x",dt[0]),pa.selectAll(".extent,.n>rect,.s>rect").attr("width",dt[1]-dt[0])}function ca(pa){pa.select(".extent").attr("y",gt[0]),pa.selectAll(".extent,.e>rect,.w>rect").attr("height",gt[1]-gt[0])}function nn(){var pa=this,Pa=h.select(h.event.target),Na=pe.of(pa,arguments),rn=h.select(pa),sn=Pa.datum(),Ba=!/^(n|s)$/.test(sn)&&Le,Rn=!/^(e|w)$/.test(sn)&&$e,ni=Pa.classed("extent"),Zn=dr(pa),ri,Ti=h.mouse(pa),ki,Vo=h.select(t(pa)).on("keydown.brush",$o).on("keyup.brush",hl);if(h.event.changedTouches?Vo.on("touchmove.brush",Ns).on("touchend.brush",Lo):Vo.on("mousemove.brush",Ns).on("mouseup.brush",Lo),rn.interrupt().selectAll("*").interrupt(),ni)Ti[0]=dt[0]-Ti[0],Ti[1]=gt[0]-Ti[1];else if(sn){var Ii=+/w$/.test(sn),lo=+/^n/.test(sn);ki=[dt[1-Ii]-Ti[0],gt[1-lo]-Ti[1]],Ti[0]=dt[Ii],Ti[1]=gt[lo]}else h.event.altKey&&(ri=Ti.slice());rn.style("pointer-events","none").selectAll(".resize").style("display",null),h.select("body").style("cursor",Pa.style("cursor")),Na({type:"brushstart"}),Ns();function $o(){h.event.keyCode==32&&(ni||(ri=null,Ti[0]-=dt[1],Ti[1]-=gt[1],ni=2),te())}function hl(){h.event.keyCode==32&&ni==2&&(Ti[0]+=dt[1],Ti[1]+=gt[1],ni=0,te())}function Ns(){var Wo=h.mouse(pa),Ds=!1;ki&&(Wo[0]+=ki[0],Wo[1]+=ki[1]),ni||(h.event.altKey?(ri||(ri=[(dt[0]+dt[1])/2,(gt[0]+gt[1])/2]),Ti[0]=dt[+(Wo[0]0))return Yt;do Yt.push(vr=new Date(+Et)),De(Et,Ut),he(Et);while(vr=kt)for(;he(kt),!Et(kt);)kt.setTime(kt-1)},function(kt,Ut){if(kt>=kt)if(Ut<0)for(;++Ut<=0;)for(;De(kt,-1),!Et(kt););else for(;--Ut>=0;)for(;De(kt,1),!Et(kt););})},et&&(Ke.count=function(Et,kt){return x.setTime(+Et),A.setTime(+kt),he(x),he(A),Math.floor(et(x,A))},Ke.every=function(Et){return Et=Math.floor(Et),!isFinite(Et)||!(Et>0)?null:Et>1?Ke.filter(nt?function(kt){return nt(kt)%Et===0}:function(kt){return Ke.count(0,kt)%Et===0}):Ke}),Ke}var e=E(function(){},function(he,De){he.setTime(+he+De)},function(he,De){return De-he});e.every=function(he){return he=Math.floor(he),!isFinite(he)||!(he>0)?null:he>1?E(function(De){De.setTime(Math.floor(De/he)*he)},function(De,et){De.setTime(+De+et*he)},function(De,et){return(et-De)/he}):e};var t=e.range,r=1e3,i=6e4,a=36e5,o=864e5,n=6048e5,s=E(function(he){he.setTime(he-he.getMilliseconds())},function(he,De){he.setTime(+he+De*r)},function(he,De){return(De-he)/r},function(he){return he.getUTCSeconds()}),c=s.range,f=E(function(he){he.setTime(he-he.getMilliseconds()-he.getSeconds()*r)},function(he,De){he.setTime(+he+De*i)},function(he,De){return(De-he)/i},function(he){return he.getMinutes()}),p=f.range,v=E(function(he){he.setTime(he-he.getMilliseconds()-he.getSeconds()*r-he.getMinutes()*i)},function(he,De){he.setTime(+he+De*a)},function(he,De){return(De-he)/a},function(he){return he.getHours()}),T=v.range,l=E(function(he){he.setHours(0,0,0,0)},function(he,De){he.setDate(he.getDate()+De)},function(he,De){return(De-he-(De.getTimezoneOffset()-he.getTimezoneOffset())*i)/o},function(he){return he.getDate()-1}),m=l.range;function w(he){return E(function(De){De.setDate(De.getDate()-(De.getDay()+7-he)%7),De.setHours(0,0,0,0)},function(De,et){De.setDate(De.getDate()+et*7)},function(De,et){return(et-De-(et.getTimezoneOffset()-De.getTimezoneOffset())*i)/n})}var S=w(0),M=w(1),_=w(2),b=w(3),d=w(4),u=w(5),g=w(6),y=S.range,R=M.range,I=_.range,z=b.range,F=d.range,B=u.range,O=g.range,P=E(function(he){he.setDate(1),he.setHours(0,0,0,0)},function(he,De){he.setMonth(he.getMonth()+De)},function(he,De){return De.getMonth()-he.getMonth()+(De.getFullYear()-he.getFullYear())*12},function(he){return he.getMonth()}),N=P.range,U=E(function(he){he.setMonth(0,1),he.setHours(0,0,0,0)},function(he,De){he.setFullYear(he.getFullYear()+De)},function(he,De){return De.getFullYear()-he.getFullYear()},function(he){return he.getFullYear()});U.every=function(he){return!isFinite(he=Math.floor(he))||!(he>0)?null:E(function(De){De.setFullYear(Math.floor(De.getFullYear()/he)*he),De.setMonth(0,1),De.setHours(0,0,0,0)},function(De,et){De.setFullYear(De.getFullYear()+et*he)})};var X=U.range,te=E(function(he){he.setUTCSeconds(0,0)},function(he,De){he.setTime(+he+De*i)},function(he,De){return(De-he)/i},function(he){return he.getUTCMinutes()}),ue=te.range,ie=E(function(he){he.setUTCMinutes(0,0,0)},function(he,De){he.setTime(+he+De*a)},function(he,De){return(De-he)/a},function(he){return he.getUTCHours()}),le=ie.range,q=E(function(he){he.setUTCHours(0,0,0,0)},function(he,De){he.setUTCDate(he.getUTCDate()+De)},function(he,De){return(De-he)/o},function(he){return he.getUTCDate()-1}),J=q.range;function ee(he){return E(function(De){De.setUTCDate(De.getUTCDate()-(De.getUTCDay()+7-he)%7),De.setUTCHours(0,0,0,0)},function(De,et){De.setUTCDate(De.getUTCDate()+et*7)},function(De,et){return(et-De)/n})}var Z=ee(0),se=ee(1),Q=ee(2),V=ee(3),re=ee(4),ae=ee(5),fe=ee(6),xe=Z.range,Ae=se.range,Pe=Q.range,Ce=V.range,je=re.range,at=ae.range,tt=fe.range,Je=E(function(he){he.setUTCDate(1),he.setUTCHours(0,0,0,0)},function(he,De){he.setUTCMonth(he.getUTCMonth()+De)},function(he,De){return De.getUTCMonth()-he.getUTCMonth()+(De.getUTCFullYear()-he.getUTCFullYear())*12},function(he){return he.getUTCMonth()}),Ze=Je.range,Me=E(function(he){he.setUTCMonth(0,1),he.setUTCHours(0,0,0,0)},function(he,De){he.setUTCFullYear(he.getUTCFullYear()+De)},function(he,De){return De.getUTCFullYear()-he.getUTCFullYear()},function(he){return he.getUTCFullYear()});Me.every=function(he){return!isFinite(he=Math.floor(he))||!(he>0)?null:E(function(De){De.setUTCFullYear(Math.floor(De.getUTCFullYear()/he)*he),De.setUTCMonth(0,1),De.setUTCHours(0,0,0,0)},function(De,et){De.setUTCFullYear(De.getUTCFullYear()+et*he)})};var we=Me.range;h.timeDay=l,h.timeDays=m,h.timeFriday=u,h.timeFridays=B,h.timeHour=v,h.timeHours=T,h.timeInterval=E,h.timeMillisecond=e,h.timeMilliseconds=t,h.timeMinute=f,h.timeMinutes=p,h.timeMonday=M,h.timeMondays=R,h.timeMonth=P,h.timeMonths=N,h.timeSaturday=g,h.timeSaturdays=O,h.timeSecond=s,h.timeSeconds=c,h.timeSunday=S,h.timeSundays=y,h.timeThursday=d,h.timeThursdays=F,h.timeTuesday=_,h.timeTuesdays=I,h.timeWednesday=b,h.timeWednesdays=z,h.timeWeek=S,h.timeWeeks=y,h.timeYear=U,h.timeYears=X,h.utcDay=q,h.utcDays=J,h.utcFriday=ae,h.utcFridays=at,h.utcHour=ie,h.utcHours=le,h.utcMillisecond=e,h.utcMilliseconds=t,h.utcMinute=te,h.utcMinutes=ue,h.utcMonday=se,h.utcMondays=Ae,h.utcMonth=Je,h.utcMonths=Ze,h.utcSaturday=fe,h.utcSaturdays=tt,h.utcSecond=s,h.utcSeconds=c,h.utcSunday=Z,h.utcSundays=xe,h.utcThursday=re,h.utcThursdays=je,h.utcTuesday=Q,h.utcTuesdays=Pe,h.utcWednesday=V,h.utcWednesdays=Ce,h.utcWeek=Z,h.utcWeeks=xe,h.utcYear=Me,h.utcYears=we,Object.defineProperty(h,"__esModule",{value:!0})})}}),gf=He({"node_modules/d3-time-format/dist/d3-time-format.js"(Y,H){(function(h,x){typeof Y=="object"&&typeof H<"u"?x(Y,Cc()):(h=h||self,x(h.d3=h.d3||{},h.d3))})(Y,function(h,x){function A(Fe){if(0<=Fe.y&&Fe.y<100){var We=new Date(-1,Fe.m,Fe.d,Fe.H,Fe.M,Fe.S,Fe.L);return We.setFullYear(Fe.y),We}return new Date(Fe.y,Fe.m,Fe.d,Fe.H,Fe.M,Fe.S,Fe.L)}function E(Fe){if(0<=Fe.y&&Fe.y<100){var We=new Date(Date.UTC(-1,Fe.m,Fe.d,Fe.H,Fe.M,Fe.S,Fe.L));return We.setUTCFullYear(Fe.y),We}return new Date(Date.UTC(Fe.y,Fe.m,Fe.d,Fe.H,Fe.M,Fe.S,Fe.L))}function e(Fe,We,Oe){return{y:Fe,m:We,d:Oe,H:0,M:0,S:0,L:0}}function t(Fe){var We=Fe.dateTime,Oe=Fe.date,de=Fe.time,me=Fe.periods,be=Fe.days,Ie=Fe.shortDays,Xe=Fe.months,ht=Fe.shortMonths,bt=c(me),Ct=f(me),Zt=c(be),Wt=f(be),rr=c(Ie),Jt=f(Ie),mr=c(Xe),ia=f(Xe),Ia=c(ht),La=f(ht),Aa={a:Da,A:Ya,b:Ka,B:an,c:null,d:P,e:P,f:ue,H:N,I:U,j:X,L:te,m:ie,M:le,p:mt,q:ot,Q:kt,s:Ut,S:q,u:J,U:ee,V:Z,w:se,W:Q,x:null,X:null,y:V,Y:re,Z:ae,"%":Et},Ga={a:Lr,A:Er,b:Mr,B:br,c:null,d:fe,e:fe,f:je,H:xe,I:Ae,j:Pe,L:Ce,m:at,M:tt,p:Or,q:jr,Q:kt,s:Ut,S:Je,u:Ze,U:Me,V:we,w:he,W:De,x:null,X:null,y:et,Y:nt,Z:Ke,"%":Et},ba={a:$t,A:Ht,b:Tr,B:qr,c:ha,d,e:d,f:z,H:g,I:g,j:u,L:I,m:b,M:y,p:zt,q:_,Q:B,s:O,S:R,u:v,U:T,V:l,w:p,W:m,x:Gr,X:wa,y:S,Y:w,Z:M,"%":F};Aa.x=Xa(Oe,Aa),Aa.X=Xa(de,Aa),Aa.c=Xa(We,Aa),Ga.x=Xa(Oe,Ga),Ga.X=Xa(de,Ga),Ga.c=Xa(We,Ga);function Xa(Dr,Hr){return function(na){var ta=[],At=-1,or=0,Ar=Dr.length,oa,ga,Sa;for(na instanceof Date||(na=new Date(+na));++At53)return null;"w"in ta||(ta.w=1),"Z"in ta?(or=E(e(ta.y,0,1)),Ar=or.getUTCDay(),or=Ar>4||Ar===0?x.utcMonday.ceil(or):x.utcMonday(or),or=x.utcDay.offset(or,(ta.V-1)*7),ta.y=or.getUTCFullYear(),ta.m=or.getUTCMonth(),ta.d=or.getUTCDate()+(ta.w+6)%7):(or=A(e(ta.y,0,1)),Ar=or.getDay(),or=Ar>4||Ar===0?x.timeMonday.ceil(or):x.timeMonday(or),or=x.timeDay.offset(or,(ta.V-1)*7),ta.y=or.getFullYear(),ta.m=or.getMonth(),ta.d=or.getDate()+(ta.w+6)%7)}else("W"in ta||"U"in ta)&&("w"in ta||(ta.w="u"in ta?ta.u%7:"W"in ta?1:0),Ar="Z"in ta?E(e(ta.y,0,1)).getUTCDay():A(e(ta.y,0,1)).getDay(),ta.m=0,ta.d="W"in ta?(ta.w+6)%7+ta.W*7-(Ar+5)%7:ta.w+ta.U*7-(Ar+6)%7);return"Z"in ta?(ta.H+=ta.Z/100|0,ta.M+=ta.Z%100,E(ta)):A(ta)}}function Kt(Dr,Hr,na,ta){for(var At=0,or=Hr.length,Ar=na.length,oa,ga;At=Ar)return-1;if(oa=Hr.charCodeAt(At++),oa===37){if(oa=Hr.charAt(At++),ga=ba[oa in r?Hr.charAt(At++):oa],!ga||(ta=ga(Dr,na,ta))<0)return-1}else if(oa!=na.charCodeAt(ta++))return-1}return ta}function zt(Dr,Hr,na){var ta=bt.exec(Hr.slice(na));return ta?(Dr.p=Ct[ta[0].toLowerCase()],na+ta[0].length):-1}function $t(Dr,Hr,na){var ta=rr.exec(Hr.slice(na));return ta?(Dr.w=Jt[ta[0].toLowerCase()],na+ta[0].length):-1}function Ht(Dr,Hr,na){var ta=Zt.exec(Hr.slice(na));return ta?(Dr.w=Wt[ta[0].toLowerCase()],na+ta[0].length):-1}function Tr(Dr,Hr,na){var ta=Ia.exec(Hr.slice(na));return ta?(Dr.m=La[ta[0].toLowerCase()],na+ta[0].length):-1}function qr(Dr,Hr,na){var ta=mr.exec(Hr.slice(na));return ta?(Dr.m=ia[ta[0].toLowerCase()],na+ta[0].length):-1}function ha(Dr,Hr,na){return Kt(Dr,We,Hr,na)}function Gr(Dr,Hr,na){return Kt(Dr,Oe,Hr,na)}function wa(Dr,Hr,na){return Kt(Dr,de,Hr,na)}function Da(Dr){return Ie[Dr.getDay()]}function Ya(Dr){return be[Dr.getDay()]}function Ka(Dr){return ht[Dr.getMonth()]}function an(Dr){return Xe[Dr.getMonth()]}function mt(Dr){return me[+(Dr.getHours()>=12)]}function ot(Dr){return 1+~~(Dr.getMonth()/3)}function Lr(Dr){return Ie[Dr.getUTCDay()]}function Er(Dr){return be[Dr.getUTCDay()]}function Mr(Dr){return ht[Dr.getUTCMonth()]}function br(Dr){return Xe[Dr.getUTCMonth()]}function Or(Dr){return me[+(Dr.getUTCHours()>=12)]}function jr(Dr){return 1+~~(Dr.getUTCMonth()/3)}return{format:function(Dr){var Hr=Xa(Dr+="",Aa);return Hr.toString=function(){return Dr},Hr},parse:function(Dr){var Hr=yn(Dr+="",!1);return Hr.toString=function(){return Dr},Hr},utcFormat:function(Dr){var Hr=Xa(Dr+="",Ga);return Hr.toString=function(){return Dr},Hr},utcParse:function(Dr){var Hr=yn(Dr+="",!0);return Hr.toString=function(){return Dr},Hr}}}var r={"-":"",_:" ",0:"0"},i=/^\s*\d+/,a=/^%/,o=/[\\^$*+?|[\]().{}]/g;function n(Fe,We,Oe){var de=Fe<0?"-":"",me=(de?-Fe:Fe)+"",be=me.length;return de+(be68?1900:2e3),Oe+de[0].length):-1}function M(Fe,We,Oe){var de=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(We.slice(Oe,Oe+6));return de?(Fe.Z=de[1]?0:-(de[2]+(de[3]||"00")),Oe+de[0].length):-1}function _(Fe,We,Oe){var de=i.exec(We.slice(Oe,Oe+1));return de?(Fe.q=de[0]*3-3,Oe+de[0].length):-1}function b(Fe,We,Oe){var de=i.exec(We.slice(Oe,Oe+2));return de?(Fe.m=de[0]-1,Oe+de[0].length):-1}function d(Fe,We,Oe){var de=i.exec(We.slice(Oe,Oe+2));return de?(Fe.d=+de[0],Oe+de[0].length):-1}function u(Fe,We,Oe){var de=i.exec(We.slice(Oe,Oe+3));return de?(Fe.m=0,Fe.d=+de[0],Oe+de[0].length):-1}function g(Fe,We,Oe){var de=i.exec(We.slice(Oe,Oe+2));return de?(Fe.H=+de[0],Oe+de[0].length):-1}function y(Fe,We,Oe){var de=i.exec(We.slice(Oe,Oe+2));return de?(Fe.M=+de[0],Oe+de[0].length):-1}function R(Fe,We,Oe){var de=i.exec(We.slice(Oe,Oe+2));return de?(Fe.S=+de[0],Oe+de[0].length):-1}function I(Fe,We,Oe){var de=i.exec(We.slice(Oe,Oe+3));return de?(Fe.L=+de[0],Oe+de[0].length):-1}function z(Fe,We,Oe){var de=i.exec(We.slice(Oe,Oe+6));return de?(Fe.L=Math.floor(de[0]/1e3),Oe+de[0].length):-1}function F(Fe,We,Oe){var de=a.exec(We.slice(Oe,Oe+1));return de?Oe+de[0].length:-1}function B(Fe,We,Oe){var de=i.exec(We.slice(Oe));return de?(Fe.Q=+de[0],Oe+de[0].length):-1}function O(Fe,We,Oe){var de=i.exec(We.slice(Oe));return de?(Fe.s=+de[0],Oe+de[0].length):-1}function P(Fe,We){return n(Fe.getDate(),We,2)}function N(Fe,We){return n(Fe.getHours(),We,2)}function U(Fe,We){return n(Fe.getHours()%12||12,We,2)}function X(Fe,We){return n(1+x.timeDay.count(x.timeYear(Fe),Fe),We,3)}function te(Fe,We){return n(Fe.getMilliseconds(),We,3)}function ue(Fe,We){return te(Fe,We)+"000"}function ie(Fe,We){return n(Fe.getMonth()+1,We,2)}function le(Fe,We){return n(Fe.getMinutes(),We,2)}function q(Fe,We){return n(Fe.getSeconds(),We,2)}function J(Fe){var We=Fe.getDay();return We===0?7:We}function ee(Fe,We){return n(x.timeSunday.count(x.timeYear(Fe)-1,Fe),We,2)}function Z(Fe,We){var Oe=Fe.getDay();return Fe=Oe>=4||Oe===0?x.timeThursday(Fe):x.timeThursday.ceil(Fe),n(x.timeThursday.count(x.timeYear(Fe),Fe)+(x.timeYear(Fe).getDay()===4),We,2)}function se(Fe){return Fe.getDay()}function Q(Fe,We){return n(x.timeMonday.count(x.timeYear(Fe)-1,Fe),We,2)}function V(Fe,We){return n(Fe.getFullYear()%100,We,2)}function re(Fe,We){return n(Fe.getFullYear()%1e4,We,4)}function ae(Fe){var We=Fe.getTimezoneOffset();return(We>0?"-":(We*=-1,"+"))+n(We/60|0,"0",2)+n(We%60,"0",2)}function fe(Fe,We){return n(Fe.getUTCDate(),We,2)}function xe(Fe,We){return n(Fe.getUTCHours(),We,2)}function Ae(Fe,We){return n(Fe.getUTCHours()%12||12,We,2)}function Pe(Fe,We){return n(1+x.utcDay.count(x.utcYear(Fe),Fe),We,3)}function Ce(Fe,We){return n(Fe.getUTCMilliseconds(),We,3)}function je(Fe,We){return Ce(Fe,We)+"000"}function at(Fe,We){return n(Fe.getUTCMonth()+1,We,2)}function tt(Fe,We){return n(Fe.getUTCMinutes(),We,2)}function Je(Fe,We){return n(Fe.getUTCSeconds(),We,2)}function Ze(Fe){var We=Fe.getUTCDay();return We===0?7:We}function Me(Fe,We){return n(x.utcSunday.count(x.utcYear(Fe)-1,Fe),We,2)}function we(Fe,We){var Oe=Fe.getUTCDay();return Fe=Oe>=4||Oe===0?x.utcThursday(Fe):x.utcThursday.ceil(Fe),n(x.utcThursday.count(x.utcYear(Fe),Fe)+(x.utcYear(Fe).getUTCDay()===4),We,2)}function he(Fe){return Fe.getUTCDay()}function De(Fe,We){return n(x.utcMonday.count(x.utcYear(Fe)-1,Fe),We,2)}function et(Fe,We){return n(Fe.getUTCFullYear()%100,We,2)}function nt(Fe,We){return n(Fe.getUTCFullYear()%1e4,We,4)}function Ke(){return"+0000"}function Et(){return"%"}function kt(Fe){return+Fe}function Ut(Fe){return Math.floor(+Fe/1e3)}var Yt;vr({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 vr(Fe){return Yt=t(Fe),h.timeFormat=Yt.format,h.timeParse=Yt.parse,h.utcFormat=Yt.utcFormat,h.utcParse=Yt.utcParse,Yt}var hr="%Y-%m-%dT%H:%M:%S.%LZ";function Rr(Fe){return Fe.toISOString()}var dr=Date.prototype.toISOString?Rr:h.utcFormat(hr);function wr(Fe){var We=new Date(Fe);return isNaN(We)?null:We}var yt=+new Date("2000-01-01T00:00:00.000Z")?wr:h.utcParse(hr);h.isoFormat=dr,h.isoParse=yt,h.timeFormatDefaultLocale=vr,h.timeFormatLocale=t,Object.defineProperty(h,"__esModule",{value:!0})})}}),sc=He({"node_modules/d3-format/dist/d3-format.js"(Y,H){(function(h,x){typeof Y=="object"&&typeof H<"u"?x(Y):(h=typeof globalThis<"u"?globalThis:h||self,x(h.d3=h.d3||{}))})(Y,function(h){function x(b){return Math.abs(b=Math.round(b))>=1e21?b.toLocaleString("en").replace(/,/g,""):b.toString(10)}function A(b,d){if((u=(b=d?b.toExponential(d-1):b.toExponential()).indexOf("e"))<0)return null;var u,g=b.slice(0,u);return[g.length>1?g[0]+g.slice(2):g,+b.slice(u+1)]}function E(b){return b=A(Math.abs(b)),b?b[1]:NaN}function e(b,d){return function(u,g){for(var y=u.length,R=[],I=0,z=b[0],F=0;y>0&&z>0&&(F+z+1>g&&(z=Math.max(1,g-F)),R.push(u.substring(y-=z,y+z)),!((F+=z+1)>g));)z=b[I=(I+1)%b.length];return R.reverse().join(d)}}function t(b){return function(d){return d.replace(/[0-9]/g,function(u){return b[+u]})}}var r=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function i(b){if(!(d=r.exec(b)))throw new Error("invalid format: "+b);var d;return new a({fill:d[1],align:d[2],sign:d[3],symbol:d[4],zero:d[5],width:d[6],comma:d[7],precision:d[8]&&d[8].slice(1),trim:d[9],type:d[10]})}i.prototype=a.prototype;function a(b){this.fill=b.fill===void 0?" ":b.fill+"",this.align=b.align===void 0?">":b.align+"",this.sign=b.sign===void 0?"-":b.sign+"",this.symbol=b.symbol===void 0?"":b.symbol+"",this.zero=!!b.zero,this.width=b.width===void 0?void 0:+b.width,this.comma=!!b.comma,this.precision=b.precision===void 0?void 0:+b.precision,this.trim=!!b.trim,this.type=b.type===void 0?"":b.type+""}a.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 o(b){e:for(var d=b.length,u=1,g=-1,y;u0&&(g=0);break}return g>0?b.slice(0,g)+b.slice(y+1):b}var n;function s(b,d){var u=A(b,d);if(!u)return b+"";var g=u[0],y=u[1],R=y-(n=Math.max(-8,Math.min(8,Math.floor(y/3)))*3)+1,I=g.length;return R===I?g:R>I?g+new Array(R-I+1).join("0"):R>0?g.slice(0,R)+"."+g.slice(R):"0."+new Array(1-R).join("0")+A(b,Math.max(0,d+R-1))[0]}function c(b,d){var u=A(b,d);if(!u)return b+"";var g=u[0],y=u[1];return y<0?"0."+new Array(-y).join("0")+g:g.length>y+1?g.slice(0,y+1)+"."+g.slice(y+1):g+new Array(y-g.length+2).join("0")}var f={"%":function(b,d){return(b*100).toFixed(d)},b:function(b){return Math.round(b).toString(2)},c:function(b){return b+""},d:x,e:function(b,d){return b.toExponential(d)},f:function(b,d){return b.toFixed(d)},g:function(b,d){return b.toPrecision(d)},o:function(b){return Math.round(b).toString(8)},p:function(b,d){return c(b*100,d)},r:c,s,X:function(b){return Math.round(b).toString(16).toUpperCase()},x:function(b){return Math.round(b).toString(16)}};function p(b){return b}var v=Array.prototype.map,T=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function l(b){var d=b.grouping===void 0||b.thousands===void 0?p:e(v.call(b.grouping,Number),b.thousands+""),u=b.currency===void 0?"":b.currency[0]+"",g=b.currency===void 0?"":b.currency[1]+"",y=b.decimal===void 0?".":b.decimal+"",R=b.numerals===void 0?p:t(v.call(b.numerals,String)),I=b.percent===void 0?"%":b.percent+"",z=b.minus===void 0?"-":b.minus+"",F=b.nan===void 0?"NaN":b.nan+"";function B(P){P=i(P);var N=P.fill,U=P.align,X=P.sign,te=P.symbol,ue=P.zero,ie=P.width,le=P.comma,q=P.precision,J=P.trim,ee=P.type;ee==="n"?(le=!0,ee="g"):f[ee]||(q===void 0&&(q=12),J=!0,ee="g"),(ue||N==="0"&&U==="=")&&(ue=!0,N="0",U="=");var Z=te==="$"?u:te==="#"&&/[boxX]/.test(ee)?"0"+ee.toLowerCase():"",se=te==="$"?g:/[%p]/.test(ee)?I:"",Q=f[ee],V=/[defgprs%]/.test(ee);q=q===void 0?6:/[gprs]/.test(ee)?Math.max(1,Math.min(21,q)):Math.max(0,Math.min(20,q));function re(ae){var fe=Z,xe=se,Ae,Pe,Ce;if(ee==="c")xe=Q(ae)+xe,ae="";else{ae=+ae;var je=ae<0||1/ae<0;if(ae=isNaN(ae)?F:Q(Math.abs(ae),q),J&&(ae=o(ae)),je&&+ae==0&&X!=="+"&&(je=!1),fe=(je?X==="("?X:z:X==="-"||X==="("?"":X)+fe,xe=(ee==="s"?T[8+n/3]:"")+xe+(je&&X==="("?")":""),V){for(Ae=-1,Pe=ae.length;++AeCe||Ce>57){xe=(Ce===46?y+ae.slice(Ae+1):ae.slice(Ae))+xe,ae=ae.slice(0,Ae);break}}}le&&!ue&&(ae=d(ae,1/0));var at=fe.length+ae.length+xe.length,tt=at>1)+fe+ae+xe+tt.slice(at);break;default:ae=tt+fe+ae+xe;break}return R(ae)}return re.toString=function(){return P+""},re}function O(P,N){var U=B((P=i(P),P.type="f",P)),X=Math.max(-8,Math.min(8,Math.floor(E(N)/3)))*3,te=Math.pow(10,-X),ue=T[8+X/3];return function(ie){return U(te*ie)+ue}}return{format:B,formatPrefix:O}}var m;w({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function w(b){return m=l(b),h.format=m.format,h.formatPrefix=m.formatPrefix,m}function S(b){return Math.max(0,-E(Math.abs(b)))}function M(b,d){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(E(d)/3)))*3-E(Math.abs(b)))}function _(b,d){return b=Math.abs(b),d=Math.abs(d)-b,Math.max(0,E(d)-E(b))+1}h.FormatSpecifier=a,h.formatDefaultLocale=w,h.formatLocale=l,h.formatSpecifier=i,h.precisionFixed=S,h.precisionPrefix=M,h.precisionRound=_,Object.defineProperty(h,"__esModule",{value:!0})})}}),Eo=He({"node_modules/is-string-blank/index.js"(Y,H){H.exports=function(h){for(var x=h.length,A,E=0;E13)&&A!==32&&A!==133&&A!==160&&A!==5760&&A!==6158&&(A<8192||A>8205)&&A!==8232&&A!==8233&&A!==8239&&A!==8287&&A!==8288&&A!==12288&&A!==65279)return!1;return!0}}}),Vi=He({"node_modules/fast-isnumeric/index.js"(Y,H){var h=Eo();H.exports=function(x){var A=typeof x;if(A==="string"){var E=x;if(x=+x,x===0&&h(E))return!1}else if(A!=="number")return!1;return x-x<1}}}),qo=He({"src/constants/numerical.js"(Y,H){H.exports={BADNUM:void 0,FP_SAFE:Number.MAX_VALUE*1e-4,ONEMAXYEAR:316224e5,ONEAVGYEAR:315576e5,ONEMINYEAR:31536e6,ONEMAXQUARTER:79488e5,ONEAVGQUARTER:78894e5,ONEMINQUARTER:76896e5,ONEMAXMONTH:26784e5,ONEAVGMONTH:26298e5,ONEMINMONTH:24192e5,ONEWEEK:6048e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,ONEMILLI:1,ONEMICROSEC:.001,EPOCHJD:24405875e-1,ALMOST_EQUAL:1-1e-6,LOG_CLIP:10,MINUS_SIGN:"−"}}}),Nc=He({"node_modules/base64-arraybuffer/dist/base64-arraybuffer.umd.js"(Y,H){(function(h,x){typeof Y=="object"&&typeof H<"u"?x(Y):(h=typeof globalThis<"u"?globalThis:h||self,x(h["base64-arraybuffer"]={}))})(Y,function(h){for(var x="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",A=typeof Uint8Array>"u"?[]:new Uint8Array(256),E=0;E>2],n+=x[(i[a]&3)<<4|i[a+1]>>4],n+=x[(i[a+1]&15)<<2|i[a+2]>>6],n+=x[i[a+2]&63];return o%3===2?n=n.substring(0,n.length-1)+"=":o%3===1&&(n=n.substring(0,n.length-2)+"=="),n},t=function(r){var i=r.length*.75,a=r.length,o,n=0,s,c,f,p;r[r.length-1]==="="&&(i--,r[r.length-2]==="="&&i--);var v=new ArrayBuffer(i),T=new Uint8Array(v);for(o=0;o>4,T[n++]=(c&15)<<4|f>>2,T[n++]=(f&3)<<6|p&63;return v};h.decode=t,h.encode=e,Object.defineProperty(h,"__esModule",{value:!0})})}}),Nf=He({"src/lib/is_plain_object.js"(Y,H){H.exports=function(x){return window&&window.process&&window.process.versions?Object.prototype.toString.call(x)==="[object Object]":Object.prototype.toString.call(x)==="[object Object]"&&Object.getPrototypeOf(x).hasOwnProperty("hasOwnProperty")}}}),Lf=He({"src/lib/array.js"(Y){var H=Nc().decode,h=Nf(),x=Array.isArray,A=ArrayBuffer,E=DataView;function e(s){return A.isView(s)&&!(s instanceof E)}Y.isTypedArray=e;function t(s){return x(s)||e(s)}Y.isArrayOrTypedArray=t;function r(s){return!t(s[0])}Y.isArray1D=r,Y.ensureArray=function(s,c){return x(s)||(s=[]),s.length=c,s};var i={u1c:typeof Uint8ClampedArray>"u"?void 0:Uint8ClampedArray,i1:typeof Int8Array>"u"?void 0:Int8Array,u1:typeof Uint8Array>"u"?void 0:Uint8Array,i2:typeof Int16Array>"u"?void 0:Int16Array,u2:typeof Uint16Array>"u"?void 0:Uint16Array,i4:typeof Int32Array>"u"?void 0:Int32Array,u4:typeof Uint32Array>"u"?void 0:Uint32Array,f4:typeof Float32Array>"u"?void 0:Float32Array,f8:typeof Float64Array>"u"?void 0:Float64Array};i.uint8c=i.u1c,i.uint8=i.u1,i.int8=i.i1,i.uint16=i.u2,i.int16=i.i2,i.uint32=i.u4,i.int32=i.i4,i.float32=i.f4,i.float64=i.f8;function a(s){return s.constructor===ArrayBuffer}Y.isArrayBuffer=a,Y.decodeTypedArraySpec=function(s){var c=[],f=o(s),p=f.dtype,v=i[p];if(!v)throw new Error('Error in dtype: "'+p+'"');var T=v.BYTES_PER_ELEMENT,l=f.bdata;a(l)||(l=H(l));var m=f.shape===void 0?[l.byteLength/T]:(""+f.shape).split(",");m.reverse();var w=m.length,S,M,_=+m[0],b=T*_,d=0;if(w===1)c=new v(l);else if(w===2)for(S=+m[1],M=0;M2)return v[S]=v[S]|e,m.set(w,null);if(l){for(c=S;c0)return Math.log(A)/Math.LN10;var e=Math.log(Math.min(E[0],E[1]))/Math.LN10;return h(e)||(e=Math.log(Math.max(E[0],E[1]))/Math.LN10-6),e}}}),SS=He({"src/lib/relink_private.js"(Y,H){var h=Lf().isArrayOrTypedArray,x=Nf();H.exports=function A(E,e){for(var t in e){var r=e[t],i=E[t];if(i!==r)if(t.charAt(0)==="_"||typeof r=="function"){if(t in E)continue;E[t]=r}else if(h(r)&&h(i)&&x(r[0])){if(t==="customdata"||t==="ids")continue;for(var a=Math.min(r.length,i.length),o=0;oE/2?A-Math.round(A/E)*E:A}H.exports={mod:h,modHalf:x}}}),Uf=He({"node_modules/tinycolor2/tinycolor.js"(Y,H){(function(h){var x=/^\s+/,A=/\s+$/,E=0,e=h.round,t=h.min,r=h.max,i=h.random;function a(V,re){if(V=V||"",re=re||{},V instanceof a)return V;if(!(this instanceof a))return new a(V,re);var ae=o(V);this._originalInput=V,this._r=ae.r,this._g=ae.g,this._b=ae.b,this._a=ae.a,this._roundA=e(100*this._a)/100,this._format=re.format||ae.format,this._gradientType=re.gradientType,this._r<1&&(this._r=e(this._r)),this._g<1&&(this._g=e(this._g)),this._b<1&&(this._b=e(this._b)),this._ok=ae.ok,this._tc_id=E++}a.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var V=this.toRgb();return(V.r*299+V.g*587+V.b*114)/1e3},getLuminance:function(){var V=this.toRgb(),re,ae,fe,xe,Ae,Pe;return re=V.r/255,ae=V.g/255,fe=V.b/255,re<=.03928?xe=re/12.92:xe=h.pow((re+.055)/1.055,2.4),ae<=.03928?Ae=ae/12.92:Ae=h.pow((ae+.055)/1.055,2.4),fe<=.03928?Pe=fe/12.92:Pe=h.pow((fe+.055)/1.055,2.4),.2126*xe+.7152*Ae+.0722*Pe},setAlpha:function(V){return this._a=P(V),this._roundA=e(100*this._a)/100,this},toHsv:function(){var V=f(this._r,this._g,this._b);return{h:V.h*360,s:V.s,v:V.v,a:this._a}},toHsvString:function(){var V=f(this._r,this._g,this._b),re=e(V.h*360),ae=e(V.s*100),fe=e(V.v*100);return this._a==1?"hsv("+re+", "+ae+"%, "+fe+"%)":"hsva("+re+", "+ae+"%, "+fe+"%, "+this._roundA+")"},toHsl:function(){var V=s(this._r,this._g,this._b);return{h:V.h*360,s:V.s,l:V.l,a:this._a}},toHslString:function(){var V=s(this._r,this._g,this._b),re=e(V.h*360),ae=e(V.s*100),fe=e(V.l*100);return this._a==1?"hsl("+re+", "+ae+"%, "+fe+"%)":"hsla("+re+", "+ae+"%, "+fe+"%, "+this._roundA+")"},toHex:function(V){return v(this._r,this._g,this._b,V)},toHexString:function(V){return"#"+this.toHex(V)},toHex8:function(V){return T(this._r,this._g,this._b,this._a,V)},toHex8String:function(V){return"#"+this.toHex8(V)},toRgb:function(){return{r:e(this._r),g:e(this._g),b:e(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+e(this._r)+", "+e(this._g)+", "+e(this._b)+")":"rgba("+e(this._r)+", "+e(this._g)+", "+e(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:e(N(this._r,255)*100)+"%",g:e(N(this._g,255)*100)+"%",b:e(N(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+e(N(this._r,255)*100)+"%, "+e(N(this._g,255)*100)+"%, "+e(N(this._b,255)*100)+"%)":"rgba("+e(N(this._r,255)*100)+"%, "+e(N(this._g,255)*100)+"%, "+e(N(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:B[v(this._r,this._g,this._b,!0)]||!1},toFilter:function(V){var re="#"+l(this._r,this._g,this._b,this._a),ae=re,fe=this._gradientType?"GradientType = 1, ":"";if(V){var xe=a(V);ae="#"+l(xe._r,xe._g,xe._b,xe._a)}return"progid:DXImageTransform.Microsoft.gradient("+fe+"startColorstr="+re+",endColorstr="+ae+")"},toString:function(V){var re=!!V;V=V||this._format;var ae=!1,fe=this._a<1&&this._a>=0,xe=!re&&fe&&(V==="hex"||V==="hex6"||V==="hex3"||V==="hex4"||V==="hex8"||V==="name");return xe?V==="name"&&this._a===0?this.toName():this.toRgbString():(V==="rgb"&&(ae=this.toRgbString()),V==="prgb"&&(ae=this.toPercentageRgbString()),(V==="hex"||V==="hex6")&&(ae=this.toHexString()),V==="hex3"&&(ae=this.toHexString(!0)),V==="hex4"&&(ae=this.toHex8String(!0)),V==="hex8"&&(ae=this.toHex8String()),V==="name"&&(ae=this.toName()),V==="hsl"&&(ae=this.toHslString()),V==="hsv"&&(ae=this.toHsvString()),ae||this.toHexString())},clone:function(){return a(this.toString())},_applyModification:function(V,re){var ae=V.apply(null,[this].concat([].slice.call(re)));return this._r=ae._r,this._g=ae._g,this._b=ae._b,this.setAlpha(ae._a),this},lighten:function(){return this._applyModification(M,arguments)},brighten:function(){return this._applyModification(_,arguments)},darken:function(){return this._applyModification(b,arguments)},desaturate:function(){return this._applyModification(m,arguments)},saturate:function(){return this._applyModification(w,arguments)},greyscale:function(){return this._applyModification(S,arguments)},spin:function(){return this._applyModification(d,arguments)},_applyCombination:function(V,re){return V.apply(null,[this].concat([].slice.call(re)))},analogous:function(){return this._applyCombination(I,arguments)},complement:function(){return this._applyCombination(u,arguments)},monochromatic:function(){return this._applyCombination(z,arguments)},splitcomplement:function(){return this._applyCombination(R,arguments)},triad:function(){return this._applyCombination(g,arguments)},tetrad:function(){return this._applyCombination(y,arguments)}},a.fromRatio=function(V,re){if(typeof V=="object"){var ae={};for(var fe in V)V.hasOwnProperty(fe)&&(fe==="a"?ae[fe]=V[fe]:ae[fe]=le(V[fe]));V=ae}return a(V,re)};function o(V){var re={r:0,g:0,b:0},ae=1,fe=null,xe=null,Ae=null,Pe=!1,Ce=!1;return typeof V=="string"&&(V=se(V)),typeof V=="object"&&(Z(V.r)&&Z(V.g)&&Z(V.b)?(re=n(V.r,V.g,V.b),Pe=!0,Ce=String(V.r).substr(-1)==="%"?"prgb":"rgb"):Z(V.h)&&Z(V.s)&&Z(V.v)?(fe=le(V.s),xe=le(V.v),re=p(V.h,fe,xe),Pe=!0,Ce="hsv"):Z(V.h)&&Z(V.s)&&Z(V.l)&&(fe=le(V.s),Ae=le(V.l),re=c(V.h,fe,Ae),Pe=!0,Ce="hsl"),V.hasOwnProperty("a")&&(ae=V.a)),ae=P(ae),{ok:Pe,format:V.format||Ce,r:t(255,r(re.r,0)),g:t(255,r(re.g,0)),b:t(255,r(re.b,0)),a:ae}}function n(V,re,ae){return{r:N(V,255)*255,g:N(re,255)*255,b:N(ae,255)*255}}function s(V,re,ae){V=N(V,255),re=N(re,255),ae=N(ae,255);var fe=r(V,re,ae),xe=t(V,re,ae),Ae,Pe,Ce=(fe+xe)/2;if(fe==xe)Ae=Pe=0;else{var je=fe-xe;switch(Pe=Ce>.5?je/(2-fe-xe):je/(fe+xe),fe){case V:Ae=(re-ae)/je+(re1&&(Je-=1),Je<1/6?at+(tt-at)*6*Je:Je<1/2?tt:Je<2/3?at+(tt-at)*(2/3-Je)*6:at}if(re===0)fe=xe=Ae=ae;else{var Ce=ae<.5?ae*(1+re):ae+re-ae*re,je=2*ae-Ce;fe=Pe(je,Ce,V+1/3),xe=Pe(je,Ce,V),Ae=Pe(je,Ce,V-1/3)}return{r:fe*255,g:xe*255,b:Ae*255}}function f(V,re,ae){V=N(V,255),re=N(re,255),ae=N(ae,255);var fe=r(V,re,ae),xe=t(V,re,ae),Ae,Pe,Ce=fe,je=fe-xe;if(Pe=fe===0?0:je/fe,fe==xe)Ae=0;else{switch(fe){case V:Ae=(re-ae)/je+(re>1)+720)%360;--re;)fe.h=(fe.h+xe)%360,Ae.push(a(fe));return Ae}function z(V,re){re=re||6;for(var ae=a(V).toHsv(),fe=ae.h,xe=ae.s,Ae=ae.v,Pe=[],Ce=1/re;re--;)Pe.push(a({h:fe,s:xe,v:Ae})),Ae=(Ae+Ce)%1;return Pe}a.mix=function(V,re,ae){ae=ae===0?0:ae||50;var fe=a(V).toRgb(),xe=a(re).toRgb(),Ae=ae/100,Pe={r:(xe.r-fe.r)*Ae+fe.r,g:(xe.g-fe.g)*Ae+fe.g,b:(xe.b-fe.b)*Ae+fe.b,a:(xe.a-fe.a)*Ae+fe.a};return a(Pe)},a.readability=function(V,re){var ae=a(V),fe=a(re);return(h.max(ae.getLuminance(),fe.getLuminance())+.05)/(h.min(ae.getLuminance(),fe.getLuminance())+.05)},a.isReadable=function(V,re,ae){var fe=a.readability(V,re),xe,Ae;switch(Ae=!1,xe=Q(ae),xe.level+xe.size){case"AAsmall":case"AAAlarge":Ae=fe>=4.5;break;case"AAlarge":Ae=fe>=3;break;case"AAAsmall":Ae=fe>=7;break}return Ae},a.mostReadable=function(V,re,ae){var fe=null,xe=0,Ae,Pe,Ce,je;ae=ae||{},Pe=ae.includeFallbackColors,Ce=ae.level,je=ae.size;for(var at=0;atxe&&(xe=Ae,fe=a(re[at]));return a.isReadable(V,fe,{level:Ce,size:je})||!Pe?fe:(ae.includeFallbackColors=!1,a.mostReadable(V,["#fff","#000"],ae))};var F=a.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},B=a.hexNames=O(F);function O(V){var re={};for(var ae in V)V.hasOwnProperty(ae)&&(re[V[ae]]=ae);return re}function P(V){return V=parseFloat(V),(isNaN(V)||V<0||V>1)&&(V=1),V}function N(V,re){te(V)&&(V="100%");var ae=ue(V);return V=t(re,r(0,parseFloat(V))),ae&&(V=parseInt(V*re,10)/100),h.abs(V-re)<1e-6?1:V%re/parseFloat(re)}function U(V){return t(1,r(0,V))}function X(V){return parseInt(V,16)}function te(V){return typeof V=="string"&&V.indexOf(".")!=-1&&parseFloat(V)===1}function ue(V){return typeof V=="string"&&V.indexOf("%")!=-1}function ie(V){return V.length==1?"0"+V:""+V}function le(V){return V<=1&&(V=V*100+"%"),V}function q(V){return h.round(parseFloat(V)*255).toString(16)}function J(V){return X(V)/255}var ee=function(){var V="[-\\+]?\\d+%?",re="[-\\+]?\\d*\\.\\d+%?",ae="(?:"+re+")|(?:"+V+")",fe="[\\s|\\(]+("+ae+")[,|\\s]+("+ae+")[,|\\s]+("+ae+")\\s*\\)?",xe="[\\s|\\(]+("+ae+")[,|\\s]+("+ae+")[,|\\s]+("+ae+")[,|\\s]+("+ae+")\\s*\\)?";return{CSS_UNIT:new RegExp(ae),rgb:new RegExp("rgb"+fe),rgba:new RegExp("rgba"+xe),hsl:new RegExp("hsl"+fe),hsla:new RegExp("hsla"+xe),hsv:new RegExp("hsv"+fe),hsva:new RegExp("hsva"+xe),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function Z(V){return!!ee.CSS_UNIT.exec(V)}function se(V){V=V.replace(x,"").replace(A,"").toLowerCase();var re=!1;if(F[V])V=F[V],re=!0;else if(V=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var ae;return(ae=ee.rgb.exec(V))?{r:ae[1],g:ae[2],b:ae[3]}:(ae=ee.rgba.exec(V))?{r:ae[1],g:ae[2],b:ae[3],a:ae[4]}:(ae=ee.hsl.exec(V))?{h:ae[1],s:ae[2],l:ae[3]}:(ae=ee.hsla.exec(V))?{h:ae[1],s:ae[2],l:ae[3],a:ae[4]}:(ae=ee.hsv.exec(V))?{h:ae[1],s:ae[2],v:ae[3]}:(ae=ee.hsva.exec(V))?{h:ae[1],s:ae[2],v:ae[3],a:ae[4]}:(ae=ee.hex8.exec(V))?{r:X(ae[1]),g:X(ae[2]),b:X(ae[3]),a:J(ae[4]),format:re?"name":"hex8"}:(ae=ee.hex6.exec(V))?{r:X(ae[1]),g:X(ae[2]),b:X(ae[3]),format:re?"name":"hex"}:(ae=ee.hex4.exec(V))?{r:X(ae[1]+""+ae[1]),g:X(ae[2]+""+ae[2]),b:X(ae[3]+""+ae[3]),a:J(ae[4]+""+ae[4]),format:re?"name":"hex8"}:(ae=ee.hex3.exec(V))?{r:X(ae[1]+""+ae[1]),g:X(ae[2]+""+ae[2]),b:X(ae[3]+""+ae[3]),format:re?"name":"hex"}:!1}function Q(V){var re,ae;return V=V||{level:"AA",size:"small"},re=(V.level||"AA").toUpperCase(),ae=(V.size||"small").toLowerCase(),re!=="AA"&&re!=="AAA"&&(re="AA"),ae!=="small"&&ae!=="large"&&(ae="small"),{level:re,size:ae}}typeof H<"u"&&H.exports?H.exports=a:window.tinycolor=a})(Math)}}),Po=He({"src/lib/extend.js"(Y){var H=Nf(),h=Array.isArray;function x(E,e){var t,r;for(t=0;t=0)))return a;if(f===3)s[f]>1&&(s[f]=1);else if(s[f]>=1)return a}var p=Math.round(s[0]*255)+", "+Math.round(s[1]*255)+", "+Math.round(s[2]*255);return c?"rgba("+p+", "+s[3]+")":"rgb("+p+")"}}}),Nd=He({"src/constants/interactions.js"(Y,H){H.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}}}),z0=He({"src/lib/regex.js"(Y){Y.counter=function(H,h,x,A){var E=(h||"")+(x?"":"$"),e=A===!1?"":"^";return H==="xy"?new RegExp(e+"x([2-9]|[1-9][0-9]+)?y([2-9]|[1-9][0-9]+)?"+E):new RegExp(e+H+"([2-9]|[1-9][0-9]+)?"+E)}}}),MS=He({"src/lib/coerce.js"(Y){var H=Vi(),h=Uf(),x=Po().extendFlat,A=Ll(),E=Tp(),e=zi(),t=Nd().DESELECTDIM,r=Zg(),i=z0().counter,a=R0().modHalf,o=Lf().isArrayOrTypedArray,n=Lf().isTypedArraySpec,s=Lf().decodeTypedArraySpec;Y.valObjectMeta={data_array:{coerceFunction:function(f,p,v){p.set(o(f)?f:n(f)?s(f):v)}},enumerated:{coerceFunction:function(f,p,v,T){T.coerceNumber&&(f=+f),T.values.indexOf(f)===-1?p.set(v):p.set(f)},validateFunction:function(f,p){p.coerceNumber&&(f=+f);for(var v=p.values,T=0;TT.max?p.set(v):p.set(+f)}},integer:{coerceFunction:function(f,p,v,T){if((T.extras||[]).indexOf(f)!==-1){p.set(f);return}n(f)&&(f=s(f)),f%1||!H(f)||T.min!==void 0&&fT.max?p.set(v):p.set(+f)}},string:{coerceFunction:function(f,p,v,T){if(typeof f!="string"){var l=typeof f=="number";T.strict===!0||!l?p.set(v):p.set(String(f))}else T.noBlank&&!f?p.set(v):p.set(f)}},color:{coerceFunction:function(f,p,v){n(f)&&(f=s(f)),h(f).isValid()?p.set(f):p.set(v)}},colorlist:{coerceFunction:function(f,p,v){function T(l){return h(l).isValid()}!Array.isArray(f)||!f.length?p.set(v):f.every(T)?p.set(f):p.set(v)}},colorscale:{coerceFunction:function(f,p,v){p.set(E.get(f,v))}},angle:{coerceFunction:function(f,p,v){n(f)&&(f=s(f)),f==="auto"?p.set("auto"):H(f)?p.set(a(+f,360)):p.set(v)}},subplotid:{coerceFunction:function(f,p,v,T){var l=T.regex||i(v);if(typeof f=="string"&&l.test(f)){p.set(f);return}p.set(v)},validateFunction:function(f,p){var v=p.dflt;return f===v?!0:typeof f!="string"?!1:!!i(v).test(f)}},flaglist:{coerceFunction:function(f,p,v,T){if((T.extras||[]).indexOf(f)!==-1){p.set(f);return}if(typeof f!="string"){p.set(v);return}for(var l=f.split("+"),m=0;m/g),f=0;f1){var e=["LOG:"];for(E=0;E1){var t=[];for(E=0;E"),"long")}},A.warn=function(){var E;if(h.logging>0){var e=["WARN:"];for(E=0;E0){var t=[];for(E=0;E"),"stick")}},A.error=function(){var E;if(h.logging>0){var e=["ERROR:"];for(E=0;E0){var t=[];for(E=0;E"),"stick")}}}}),t1=He({"src/lib/noop.js"(Y,H){H.exports=function(){}}}),Tb=He({"src/lib/push_unique.js"(Y,H){H.exports=function(x,A){if(A instanceof RegExp){for(var E=A.toString(),e=0;e0){for(var i=[],a=0;a=l&&F<=m?F:e}if(typeof F!="string"&&typeof F!="number")return e;F=String(F);var U=v(B),X=F.charAt(0);U&&(X==="G"||X==="g")&&(F=F.substr(1),B="");var te=U&&B.substr(0,7)==="chinese",ue=F.match(te?f:c);if(!ue)return e;var ie=ue[1],le=ue[3]||"1",q=Number(ue[5]||1),J=Number(ue[7]||0),ee=Number(ue[9]||0),Z=Number(ue[11]||0);if(U){if(ie.length===2)return e;ie=Number(ie);var se;try{var Q=n.getComponentMethod("calendars","getCal")(B);if(te){var V=le.charAt(le.length-1)==="i";le=parseInt(le,10),se=Q.newDate(ie,Q.toMonthIndex(ie,le,V),q)}else se=Q.newDate(ie,Number(le),q)}catch{return e}return se?(se.toJD()-o)*t+J*r+ee*i+Z*a:e}ie.length===2?ie=(Number(ie)+2e3-p)%100+p:ie=Number(ie),le-=1;var re=new Date(Date.UTC(2e3,le,q,J,ee));return re.setUTCFullYear(ie),re.getUTCMonth()!==le||re.getUTCDate()!==q?e:re.getTime()+Z*a},l=Y.MIN_MS=Y.dateTime2ms("-9999"),m=Y.MAX_MS=Y.dateTime2ms("9999-12-31 23:59:59.9999"),Y.isDateTime=function(F,B){return Y.dateTime2ms(F,B)!==e};function w(F,B){return String(F+Math.pow(10,B)).substr(1)}var S=90*t,M=3*r,_=5*i;Y.ms2DateTime=function(F,B,O){if(typeof F!="number"||!(F>=l&&F<=m))return e;B||(B=0);var P=Math.floor(A(F+.05,1)*10),N=Math.round(F-P/10),U,X,te,ue,ie,le;if(v(O)){var q=Math.floor(N/t)+o,J=Math.floor(A(F,t));try{U=n.getComponentMethod("calendars","getCal")(O).fromJD(q).formatDate("yyyy-mm-dd")}catch{U=s("G%Y-%m-%d")(new Date(N))}if(U.charAt(0)==="-")for(;U.length<11;)U="-0"+U.substr(1);else for(;U.length<10;)U="0"+U;X=B=l+t&&F<=m-t))return e;var B=Math.floor(A(F+.05,1)*10),O=new Date(Math.round(F-B/10)),P=H("%Y-%m-%d")(O),N=O.getHours(),U=O.getMinutes(),X=O.getSeconds(),te=O.getUTCMilliseconds()*10+B;return b(P,N,U,X,te)};function b(F,B,O,P,N){if((B||O||P||N)&&(F+=" "+w(B,2)+":"+w(O,2),(P||N)&&(F+=":"+w(P,2),N))){for(var U=4;N%10===0;)U-=1,N/=10;F+="."+w(N,U)}return F}Y.cleanDate=function(F,B,O){if(F===e)return B;if(Y.isJSDate(F)||typeof F=="number"&&isFinite(F)){if(v(O))return x.error("JS Dates and milliseconds are incompatible with world calendars",F),B;if(F=Y.ms2DateTimeLocal(+F),!F&&B!==void 0)return B}else if(!Y.isDateTime(F,O))return x.error("unrecognized date",F),B;return F};var d=/%\d?f/g,u=/%h/g,g={1:"1",2:"1",3:"2",4:"2"};function y(F,B,O,P){F=F.replace(d,function(U){var X=Math.min(+U.charAt(1)||6,6),te=(B/1e3%1+2).toFixed(X).substr(2).replace(/0+$/,"")||"0";return te});var N=new Date(Math.floor(B+.05));if(F=F.replace(u,function(){return g[O("%q")(N)]}),v(P))try{F=n.getComponentMethod("calendars","worldCalFmt")(F,B,P)}catch{return"Invalid"}return O(F)(N)}var R=[59,59.9,59.99,59.999,59.9999];function I(F,B){var O=A(F+.05,t),P=w(Math.floor(O/r),2)+":"+w(A(Math.floor(O/i),60),2);if(B!=="M"){h(B)||(B=0);var N=Math.min(A(F/a,60),R[B]),U=(100+N).toFixed(B).substr(1);B>0&&(U=U.replace(/0+$/,"").replace(/[\.]$/,"")),P+=":"+U}return P}Y.formatDate=function(F,B,O,P,N,U){if(N=v(N)&&N,!B)if(O==="y")B=U.year;else if(O==="m")B=U.month;else if(O==="d")B=U.dayMonth+` -`+U.year;else return I(F,O)+` -`+y(U.dayMonthYear,F,P,N);return y(B,F,P,N)};var z=3*t;Y.incrementMonth=function(F,B,O){O=v(O)&&O;var P=A(F,t);if(F=Math.round(F-P),O)try{var N=Math.round(F/t)+o,U=n.getComponentMethod("calendars","getCal")(O),X=U.fromJD(N);return B%12?U.add(X,B,"m"):U.add(X,B/12,"y"),(X.toJD()-o)*t+P}catch{x.error("invalid ms "+F+" in calendar "+O)}var te=new Date(F+z);return te.setUTCMonth(te.getUTCMonth()+B)+P-z},Y.findExactDates=function(F,B){for(var O=0,P=0,N=0,U=0,X,te,ue=v(B)&&n.getComponentMethod("calendars","getCal")(B),ie=0;ie1?(o[c-1]-o[0])/(c-1):1,v,T;for(p>=0?T=n?e:t:T=n?i:r,a+=p*E*(n?-1:1)*(p>=0?1:-1);s90&&h.log("Long binary search..."),s-1};function e(a,o){return ao}function i(a,o){return a>=o}Y.sorterAsc=function(a,o){return a-o},Y.sorterDes=function(a,o){return o-a},Y.distinctVals=function(a){var o=a.slice();o.sort(Y.sorterAsc);var n;for(n=o.length-1;n>-1&&o[n]===A;n--);for(var s=o[n]-o[0]||1,c=s/(n||1)/1e4,f=[],p,v=0;v<=n;v++){var T=o[v],l=T-p;p===void 0?(f.push(T),p=T):l>c&&(s=Math.min(s,l),f.push(T),p=T)}return{vals:f,minDiff:s}},Y.roundUp=function(a,o,n){for(var s=0,c=o.length-1,f,p=0,v=n?0:1,T=n?1:0,l=n?Math.ceil:Math.floor;s0&&(s=1),n&&s)return a.sort(o)}return s?a:a.reverse()},Y.findIndexOfMin=function(a,o){o=o||x;for(var n=1/0,s,c=0;cE.length)&&(e=E.length),H(A)||(A=!1),h(E[0])){for(r=new Array(e),t=0;tx.length-1)return x[x.length-1];var E=A%1;return E*x[Math.ceil(A)]+(1-E)*x[Math.floor(A)]}}}),oM=He({"src/lib/angles.js"(Y,H){var h=R0(),x=h.mod,A=h.modHalf,E=Math.PI,e=2*E;function t(T){return T/180*E}function r(T){return T/E*180}function i(T){return Math.abs(T[1]-T[0])>e-1e-14}function a(T,l){return A(l-T,e)}function o(T,l){return Math.abs(a(T,l))}function n(T,l){if(i(l))return!0;var m,w;l[0]w&&(w+=e);var S=x(T,e),M=S+e;return S>=m&&S<=w||M>=m&&M<=w}function s(T,l,m,w){if(!n(l,w))return!1;var S,M;return m[0]=S&&T<=M}function c(T,l,m,w,S,M,_){S=S||0,M=M||0;var b=i([m,w]),d,u,g,y,R;b?(d=0,u=E,g=e):m1/3&&h.x<2/3},Y.isRightAnchor=function(h){return h.xanchor==="right"||h.xanchor==="auto"&&h.x>=2/3},Y.isTopAnchor=function(h){return h.yanchor==="top"||h.yanchor==="auto"&&h.y>=2/3},Y.isMiddleAnchor=function(h){return h.yanchor==="middle"||h.yanchor==="auto"&&h.y>1/3&&h.y<2/3},Y.isBottomAnchor=function(h){return h.yanchor==="bottom"||h.yanchor==="auto"&&h.y<=1/3}}}),lM=He({"src/lib/geometry2d.js"(Y){var H=R0().mod;Y.segmentsIntersect=h;function h(t,r,i,a,o,n,s,c){var f=i-t,p=o-t,v=s-o,T=a-r,l=n-r,m=c-n,w=f*m-v*T;if(w===0)return null;var S=(p*m-v*l)/w,M=(p*T-f*l)/w;return M<0||M>1||S<0||S>1?null:{x:t+f*S,y:r+T*S}}Y.segmentDistance=function(r,i,a,o,n,s,c,f){if(h(r,i,a,o,n,s,c,f))return 0;var p=a-r,v=o-i,T=c-n,l=f-s,m=p*p+v*v,w=T*T+l*l,S=Math.min(x(p,v,m,n-r,s-i),x(p,v,m,c-r,f-i),x(T,l,w,r-n,i-s),x(T,l,w,a-n,o-s));return Math.sqrt(S)};function x(t,r,i,a,o){var n=a*t+o*r;if(n<0)return a*a+o*o;if(n>i){var s=a-t,c=o-r;return s*s+c*c}else{var f=a*r-o*t;return f*f/i}}var A,E,e;Y.getTextLocation=function(r,i,a,o){if((r!==E||o!==e)&&(A={},E=r,e=o),A[a])return A[a];var n=r.getPointAtLength(H(a-o/2,i)),s=r.getPointAtLength(H(a+o/2,i)),c=Math.atan((s.y-n.y)/(s.x-n.x)),f=r.getPointAtLength(H(a,i)),p=(f.x*4+n.x+s.x)/6,v=(f.y*4+n.y+s.y)/6,T={x:p,y:v,theta:c};return A[a]=T,T},Y.clearLocationCache=function(){E=null},Y.getVisibleSegment=function(r,i,a){var o=i.left,n=i.right,s=i.top,c=i.bottom,f=0,p=r.getTotalLength(),v=p,T,l;function m(S){var M=r.getPointAtLength(S);S===0?T=M:S===p&&(l=M);var _=M.xn?M.x-n:0,b=M.yc?M.y-c:0;return Math.sqrt(_*_+b*b)}for(var w=m(f);w;){if(f+=w+a,f>v)return;w=m(f)}for(w=m(v);w;){if(v-=w+a,f>v)return;w=m(v)}return{min:f,max:v,len:v-f,total:p,isClosed:f===0&&v===p&&Math.abs(T.x-l.x)<.1&&Math.abs(T.y-l.y)<.1}},Y.findPointOnPath=function(r,i,a,o){o=o||{};for(var n=o.pathLength||r.getTotalLength(),s=o.tolerance||.001,c=o.iterationLimit||30,f=r.getPointAtLength(0)[a]>r.getPointAtLength(n)[a]?-1:1,p=0,v=0,T=n,l,m,w;p0?T=l:v=l,p++}return m}}}),o1=He({"src/lib/throttle.js"(Y){var H={};Y.throttle=function(A,E,e){var t=H[A],r=Date.now();if(!t){for(var i in H)H[i].tst.ts+E){a();return}t.timer=setTimeout(function(){a(),t.timer=null},E)},Y.done=function(x){var A=H[x];return!A||!A.timer?Promise.resolve():new Promise(function(E){var e=A.onDone;A.onDone=function(){e&&e(),E(),A.onDone=null}})},Y.clear=function(x){if(x)h(H[x]),delete H[x];else for(var A in H)Y.clear(A)};function h(x){x&&x.timer!==null&&(clearTimeout(x.timer),x.timer=null)}}}),uM=He({"src/lib/clear_responsive.js"(Y,H){H.exports=function(x){x._responsiveChartHandler&&(window.removeEventListener("resize",x._responsiveChartHandler),delete x._responsiveChartHandler)}}}),cM=He({"node_modules/is-mobile/index.js"(Y,H){H.exports=E,H.exports.isMobile=E,H.exports.default=E;var h=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,x=/CrOS/,A=/android|ipad|playbook|silk/i;function E(e){e||(e={});let t=e.ua;if(!t&&typeof navigator<"u"&&(t=navigator.userAgent),t&&t.headers&&typeof t.headers["user-agent"]=="string"&&(t=t.headers["user-agent"]),typeof t!="string")return!1;let r=h.test(t)&&!x.test(t)||!!e.tablet&&A.test(t);return!r&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&t.indexOf("Macintosh")!==-1&&t.indexOf("Safari")!==-1&&(r=!0),r}}}),fM=He({"src/lib/preserve_drawing_buffer.js"(Y,H){var h=Vi(),x=cM();H.exports=function(e){var t;if(e&&e.hasOwnProperty("userAgent")?t=e.userAgent:t=A(),typeof t!="string")return!0;var r=x({ua:{headers:{"user-agent":t}},tablet:!0,featureDetect:!1});if(!r)for(var i=t.split(" "),a=1;a-1;n--){var s=i[n];if(s.substr(0,8)==="Version/"){var c=s.substr(8).split(".")[0];if(h(c)&&(c=+c),c>=13)return!0}}}return r};function A(){var E;return typeof navigator<"u"&&(E=navigator.userAgent),E&&E.headers&&typeof E.headers["user-agent"]=="string"&&(E=E.headers["user-agent"]),E}}}),hM=He({"src/lib/make_trace_groups.js"(Y,H){var h=yi();H.exports=function(A,E,e){var t=A.selectAll("g."+e.replace(/\s/g,".")).data(E,function(i){return i[0].trace.uid});t.exit().remove(),t.enter().append("g").attr("class",e),t.order();var r=A.classed("rangeplot")?"nodeRangePlot3":"node3";return t.each(function(i){i[0][r]=h.select(this)}),t}}}),vM=He({"src/lib/localize.js"(Y,H){var h=qi();H.exports=function(A,E){for(var e=A._context.locale,t=0;t<2;t++){for(var r=A._context.locales,i=0;i<2;i++){var a=(r[e]||{}).dictionary;if(a){var o=a[E];if(o)return o}r=h.localeRegistry}var n=e.split("-")[0];if(n===e)break;e=n}return E}}}),kb=He({"src/lib/filter_unique.js"(Y,H){H.exports=function(x){for(var A={},E=[],e=0,t=0;t1?(E*x+E*A)/E:x+A,t=String(e).length;if(t>16){var r=String(A).length,i=String(x).length;if(t>=i+r){var a=parseFloat(e).toPrecision(12);a.indexOf("e+")===-1&&(e=+a)}}return e}}}),gM=He({"src/lib/clean_number.js"(Y,H){var h=Vi(),x=qo().BADNUM,A=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;H.exports=function(e){return typeof e=="string"&&(e=e.replace(A,"")),h(e)?Number(e):x}}}),Qr=He({"src/lib/index.js"(Y,H){var h=yi(),x=gf().utcFormat,A=sc().format,E=Vi(),e=qo(),t=e.FP_SAFE,r=-t,i=e.BADNUM,a=H.exports={};a.adjustFormat=function(V){return!V||/^\d[.]\df/.test(V)||/[.]\d%/.test(V)?V:V==="0.f"?"~f":/^\d%/.test(V)?"~%":/^\ds/.test(V)?"~s":!/^[~,.0$]/.test(V)&&/[&fps]/.test(V)?"~"+V:V};var o={};a.warnBadFormat=function(Q){var V=String(Q);o[V]||(o[V]=1,a.warn('encountered bad format: "'+V+'"'))},a.noFormat=function(Q){return String(Q)},a.numberFormat=function(Q){var V;try{V=A(a.adjustFormat(Q))}catch{return a.warnBadFormat(Q),a.noFormat}return V},a.nestedProperty=Zg(),a.keyedContainer=TS(),a.relativeAttr=AS(),a.isPlainObject=Nf(),a.toLogRange=e1(),a.relinkPrivateKeys=SS();var n=Lf();a.isArrayBuffer=n.isArrayBuffer,a.isTypedArray=n.isTypedArray,a.isArrayOrTypedArray=n.isArrayOrTypedArray,a.isArray1D=n.isArray1D,a.ensureArray=n.ensureArray,a.concat=n.concat,a.maxRowLength=n.maxRowLength,a.minRowLength=n.minRowLength;var s=R0();a.mod=s.mod,a.modHalf=s.modHalf;var c=MS();a.valObjectMeta=c.valObjectMeta,a.coerce=c.coerce,a.coerce2=c.coerce2,a.coerceFont=c.coerceFont,a.coercePattern=c.coercePattern,a.coerceHoverinfo=c.coerceHoverinfo,a.coerceSelectionMarkerOpacity=c.coerceSelectionMarkerOpacity,a.validate=c.validate;var f=nM();a.dateTime2ms=f.dateTime2ms,a.isDateTime=f.isDateTime,a.ms2DateTime=f.ms2DateTime,a.ms2DateTimeLocal=f.ms2DateTimeLocal,a.cleanDate=f.cleanDate,a.isJSDate=f.isJSDate,a.formatDate=f.formatDate,a.incrementMonth=f.incrementMonth,a.dateTick0=f.dateTick0,a.dfltRange=f.dfltRange,a.findExactDates=f.findExactDates,a.MIN_MS=f.MIN_MS,a.MAX_MS=f.MAX_MS;var p=i1();a.findBin=p.findBin,a.sorterAsc=p.sorterAsc,a.sorterDes=p.sorterDes,a.distinctVals=p.distinctVals,a.roundUp=p.roundUp,a.sort=p.sort,a.findIndexOfMin=p.findIndexOfMin,a.sortObjectKeys=jd();var v=iM();a.aggNums=v.aggNums,a.len=v.len,a.mean=v.mean,a.geometricMean=v.geometricMean,a.median=v.median,a.midRange=v.midRange,a.variance=v.variance,a.stdev=v.stdev,a.interp=v.interp;var T=r1();a.init2dArray=T.init2dArray,a.transposeRagged=T.transposeRagged,a.dot=T.dot,a.translationMatrix=T.translationMatrix,a.rotationMatrix=T.rotationMatrix,a.rotationXYMatrix=T.rotationXYMatrix,a.apply3DTransform=T.apply3DTransform,a.apply2DTransform=T.apply2DTransform,a.apply2DTransform2=T.apply2DTransform2,a.convertCssMatrix=T.convertCssMatrix,a.inverseTransformMatrix=T.inverseTransformMatrix;var l=oM();a.deg2rad=l.deg2rad,a.rad2deg=l.rad2deg,a.angleDelta=l.angleDelta,a.angleDist=l.angleDist,a.isFullCircle=l.isFullCircle,a.isAngleInsideSector=l.isAngleInsideSector,a.isPtInsideSector=l.isPtInsideSector,a.pathArc=l.pathArc,a.pathSector=l.pathSector,a.pathAnnulus=l.pathAnnulus;var m=sM();a.isLeftAnchor=m.isLeftAnchor,a.isCenterAnchor=m.isCenterAnchor,a.isRightAnchor=m.isRightAnchor,a.isTopAnchor=m.isTopAnchor,a.isMiddleAnchor=m.isMiddleAnchor,a.isBottomAnchor=m.isBottomAnchor;var w=lM();a.segmentsIntersect=w.segmentsIntersect,a.segmentDistance=w.segmentDistance,a.getTextLocation=w.getTextLocation,a.clearLocationCache=w.clearLocationCache,a.getVisibleSegment=w.getVisibleSegment,a.findPointOnPath=w.findPointOnPath;var S=Po();a.extendFlat=S.extendFlat,a.extendDeep=S.extendDeep,a.extendDeepAll=S.extendDeepAll,a.extendDeepNoArrays=S.extendDeepNoArrays;var M=Ud();a.log=M.log,a.warn=M.warn,a.error=M.error;var _=z0();a.counterRegex=_.counter;var b=o1();a.throttle=b.throttle,a.throttleDone=b.done,a.clearThrottle=b.clear;var d=$g();a.getGraphDiv=d.getGraphDiv,a.isPlotDiv=d.isPlotDiv,a.removeElement=d.removeElement,a.addStyleRule=d.addStyleRule,a.addRelatedStyleRule=d.addRelatedStyleRule,a.deleteRelatedStyleRule=d.deleteRelatedStyleRule,a.setStyleOnHover=d.setStyleOnHover,a.getFullTransformMatrix=d.getFullTransformMatrix,a.getElementTransformMatrix=d.getElementTransformMatrix,a.getElementAndAncestors=d.getElementAndAncestors,a.equalDomRects=d.equalDomRects,a.clearResponsive=uM(),a.preserveDrawingBuffer=fM(),a.makeTraceGroups=hM(),a._=vM(),a.notifier=wb(),a.filterUnique=kb(),a.filterVisible=dM(),a.pushUnique=Tb(),a.increment=pM(),a.cleanNumber=gM(),a.ensureNumber=function(V){return E(V)?(V=Number(V),V>t||V=V?!1:E(Q)&&Q>=0&&Q%1===0},a.noop=t1(),a.identity=Jg(),a.repeat=function(Q,V){for(var re=new Array(V),ae=0;aere?Math.max(re,Math.min(V,Q)):Math.max(V,Math.min(re,Q))},a.bBoxIntersect=function(Q,V,re){return re=re||0,Q.left<=V.right+re&&V.left<=Q.right+re&&Q.top<=V.bottom+re&&V.top<=Q.bottom+re},a.simpleMap=function(Q,V,re,ae,fe){for(var xe=Q.length,Ae=new Array(xe),Pe=0;Pe=Math.pow(2,re)?fe>10?(a.warn("randstr failed uniqueness"),Ae):Q(V,re,ae,(fe||0)+1):Ae},a.OptionControl=function(Q,V){Q||(Q={}),V||(V="opt");var re={};return re.optionList=[],re._newoption=function(ae){ae[V]=Q,re[ae.name]=ae,re.optionList.push(ae)},re["_"+V]=Q,re},a.smooth=function(Q,V){if(V=Math.round(V)||0,V<2)return Q;var re=Q.length,ae=2*re,fe=2*V-1,xe=new Array(fe),Ae=new Array(re),Pe,Ce,je,at;for(Pe=0;Pe=ae&&(je-=ae*Math.floor(je/ae)),je<0?je=-1-je:je>=re&&(je=ae-1-je),at+=Q[je]*xe[Ce];Ae[Pe]=at}return Ae},a.syncOrAsync=function(Q,V,re){var ae,fe;function xe(){return a.syncOrAsync(Q,V,re)}for(;Q.length;)if(fe=Q.splice(0,1)[0],ae=fe(V),ae&&ae.then)return ae.then(xe);return re&&re(V)},a.stripTrailingSlash=function(Q){return Q.substr(-1)==="/"?Q.substr(0,Q.length-1):Q},a.noneOrAll=function(Q,V,re){if(Q){var ae=!1,fe=!0,xe,Ae;for(xe=0;xe0?fe:0})},a.fillArray=function(Q,V,re,ae){if(ae=ae||a.identity,a.isArrayOrTypedArray(Q))for(var fe=0;feI.test(window.navigator.userAgent);var z=/Firefox\/(\d+)\.\d+/;a.getFirefoxVersion=function(){var Q=z.exec(window.navigator.userAgent);if(Q&&Q.length===2){var V=parseInt(Q[1]);if(!isNaN(V))return V}return null},a.isD3Selection=function(Q){return Q instanceof h.selection},a.ensureSingle=function(Q,V,re,ae){var fe=Q.select(V+(re?"."+re:""));if(fe.size())return fe;var xe=Q.append(V);return re&&xe.classed(re,!0),ae&&xe.call(ae),xe},a.ensureSingleById=function(Q,V,re,ae){var fe=Q.select(V+"#"+re);if(fe.size())return fe;var xe=Q.append(V).attr("id",re);return ae&&xe.call(ae),xe},a.objectFromPath=function(Q,V){for(var re=Q.split("."),ae,fe=ae={},xe=0;xe1?fe+Ae[1]:"";if(xe&&(Ae.length>1||Pe.length>4||re))for(;ae.test(Pe);)Pe=Pe.replace(ae,"$1"+xe+"$2");return Pe+Ce},a.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var P=/^\w*$/;a.templateString=function(Q,V){var re={};return Q.replace(a.TEMPLATE_STRING_REGEX,function(ae,fe){var xe;return P.test(fe)?xe=V[fe]:(re[fe]=re[fe]||a.nestedProperty(V,fe).get,xe=re[fe](!0)),xe!==void 0?xe:""})};var N={max:10,count:0,name:"hovertemplate"};a.hovertemplateString=function(){return le.apply(N,arguments)};var U={max:10,count:0,name:"texttemplate"};a.texttemplateString=function(){return le.apply(U,arguments)};var X=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;function te(Q){var V=Q.match(X);return V?{key:V[1],op:V[2],number:Number(V[3])}:{key:Q,op:null,number:null}}var ue={max:10,count:0,name:"texttemplate",parseMultDiv:!0};a.texttemplateStringForShapes=function(){return le.apply(ue,arguments)};var ie=/^[:|\|]/;function le(Q,V,re){var ae=this,fe=arguments;return V||(V={}),Q.replace(a.TEMPLATE_STRING_REGEX,function(xe,Ae,Pe){var Ce=Ae==="xother"||Ae==="yother",je=Ae==="_xother"||Ae==="_yother",at=Ae==="_xother_"||Ae==="_yother_",tt=Ae==="xother_"||Ae==="yother_",Je=Ce||je||tt||at,Ze=Ae;(je||at)&&(Ze=Ze.substring(1)),(tt||at)&&(Ze=Ze.substring(0,Ze.length-1));var Me=null,we=null;if(ae.parseMultDiv){var he=te(Ze);Ze=he.key,Me=he.op,we=he.number}var De;if(Je){if(De=V[Ze],De===void 0)return""}else{var et,nt;for(nt=3;nt=q&&Ae<=J,je=Pe>=q&&Pe<=J;if(Ce&&(ae=10*ae+Ae-q),je&&(fe=10*fe+Pe-q),!Ce||!je){if(ae!==fe)return ae-fe;if(Ae!==Pe)return Ae-Pe}}return fe-ae};var ee=2e9;a.seedPseudoRandom=function(){ee=2e9},a.pseudoRandom=function(){var Q=ee;return ee=(69069*ee+1)%4294967296,Math.abs(ee-Q)<429496729?a.pseudoRandom():ee/4294967296},a.fillText=function(Q,V,re){var ae=Array.isArray(re)?function(Ae){re.push(Ae)}:function(Ae){re.text=Ae},fe=a.extractOption(Q,V,"htx","hovertext");if(a.isValidTextValue(fe))return ae(fe);var xe=a.extractOption(Q,V,"tx","text");if(a.isValidTextValue(xe))return ae(xe)},a.isValidTextValue=function(Q){return Q||Q===0},a.formatPercent=function(Q,V){V=V||0;for(var re=(Math.round(100*Q*Math.pow(10,V))*Math.pow(.1,V)).toFixed(V)+"%",ae=0;ae1&&(je=1):je=0,a.strTranslate(fe-je*(re+Ae),xe-je*(ae+Pe))+a.strScale(je)+(Ce?"rotate("+Ce+(V?"":" "+re+" "+ae)+")":"")},a.setTransormAndDisplay=function(Q,V){Q.attr("transform",a.getTextTransform(V)),Q.style("display",V.scale?null:"none")},a.ensureUniformFontSize=function(Q,V){var re=a.extendFlat({},V);return re.size=Math.max(V.size,Q._fullLayout.uniformtext.minsize||0),re},a.join2=function(Q,V,re){var ae=Q.length;return ae>1?Q.slice(0,-1).join(V)+re+Q[ae-1]:Q.join(V)},a.bigFont=function(Q){return Math.round(1.2*Q)};var Z=a.getFirefoxVersion(),se=Z!==null&&Z<86;a.getPositionFromD3Event=function(){return se?[h.event.layerX,h.event.layerY]:[h.event.offsetX,h.event.offsetY]}}}),mM=He({"build/plotcss.js"(){var Y=Qr(),H={"X,X div":'direction:ltr;font-family:"Open Sans",verdana,arial,sans-serif;margin:0;padding:0;',"X input,X button":'font-family:"Open Sans",verdana,arial,sans-serif;',"X input:focus,X button:focus":"outline:none;","X a":"text-decoration:none;","X a:hover":"text-decoration:none;","X .crisp":"shape-rendering:crispEdges;","X .user-select-none":"-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;","X svg 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;",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(x in H)h=x.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier"),Y.addStyleRule(h,H[x]);var h,x}}),Cb=He({"node_modules/is-browser/client.js"(Y,H){H.exports=!0}}),Lb=He({"node_modules/has-hover/index.js"(Y,H){var h=Cb(),x;typeof window.matchMedia=="function"?x=!window.matchMedia("(hover: none)").matches:x=h,H.exports=x}}),Sp=He({"node_modules/events/events.js"(Y,H){var h=typeof Reflect=="object"?Reflect:null,x=h&&typeof h.apply=="function"?h.apply:function(M,_,b){return Function.prototype.apply.call(M,_,b)},A;h&&typeof h.ownKeys=="function"?A=h.ownKeys:Object.getOwnPropertySymbols?A=function(M){return Object.getOwnPropertyNames(M).concat(Object.getOwnPropertySymbols(M))}:A=function(M){return Object.getOwnPropertyNames(M)};function E(S){console&&console.warn&&console.warn(S)}var e=Number.isNaN||function(M){return M!==M};function t(){t.init.call(this)}H.exports=t,H.exports.once=l,t.EventEmitter=t,t.prototype._events=void 0,t.prototype._eventsCount=0,t.prototype._maxListeners=void 0;var r=10;function i(S){if(typeof S!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof S)}Object.defineProperty(t,"defaultMaxListeners",{enumerable:!0,get:function(){return r},set:function(S){if(typeof S!="number"||S<0||e(S))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+S+".");r=S}}),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(M){if(typeof M!="number"||M<0||e(M))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+M+".");return this._maxListeners=M,this};function a(S){return S._maxListeners===void 0?t.defaultMaxListeners:S._maxListeners}t.prototype.getMaxListeners=function(){return a(this)},t.prototype.emit=function(M){for(var _=[],b=1;b0&&(g=_[0]),g instanceof Error)throw g;var y=new Error("Unhandled error."+(g?" ("+g.message+")":""));throw y.context=g,y}var R=u[M];if(R===void 0)return!1;if(typeof R=="function")x(R,this,_);else for(var I=R.length,z=p(R,I),b=0;b0&&g.length>d&&!g.warned){g.warned=!0;var y=new Error("Possible EventEmitter memory leak detected. "+g.length+" "+String(M)+" listeners added. Use emitter.setMaxListeners() to increase limit");y.name="MaxListenersExceededWarning",y.emitter=S,y.type=M,y.count=g.length,E(y)}return S}t.prototype.addListener=function(M,_){return o(this,M,_,!1)},t.prototype.on=t.prototype.addListener,t.prototype.prependListener=function(M,_){return o(this,M,_,!0)};function n(){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 s(S,M,_){var b={fired:!1,wrapFn:void 0,target:S,type:M,listener:_},d=n.bind(b);return d.listener=_,b.wrapFn=d,d}t.prototype.once=function(M,_){return i(_),this.on(M,s(this,M,_)),this},t.prototype.prependOnceListener=function(M,_){return i(_),this.prependListener(M,s(this,M,_)),this},t.prototype.removeListener=function(M,_){var b,d,u,g,y;if(i(_),d=this._events,d===void 0)return this;if(b=d[M],b===void 0)return this;if(b===_||b.listener===_)--this._eventsCount===0?this._events=Object.create(null):(delete d[M],d.removeListener&&this.emit("removeListener",M,b.listener||_));else if(typeof b!="function"){for(u=-1,g=b.length-1;g>=0;g--)if(b[g]===_||b[g].listener===_){y=b[g].listener,u=g;break}if(u<0)return this;u===0?b.shift():v(b,u),b.length===1&&(d[M]=b[0]),d.removeListener!==void 0&&this.emit("removeListener",M,y||_)}return this},t.prototype.off=t.prototype.removeListener,t.prototype.removeAllListeners=function(M){var _,b,d;if(b=this._events,b===void 0)return this;if(b.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):b[M]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete b[M]),this;if(arguments.length===0){var u=Object.keys(b),g;for(d=0;d=0;d--)this.removeListener(M,_[d]);return this};function c(S,M,_){var b=S._events;if(b===void 0)return[];var d=b[M];return d===void 0?[]:typeof d=="function"?_?[d.listener||d]:[d]:_?T(d):p(d,d.length)}t.prototype.listeners=function(M){return c(this,M,!0)},t.prototype.rawListeners=function(M){return c(this,M,!1)},t.listenerCount=function(S,M){return typeof S.listenerCount=="function"?S.listenerCount(M):f.call(S,M)},t.prototype.listenerCount=f;function f(S){var M=this._events;if(M!==void 0){var _=M[S];if(typeof _=="function")return 1;if(_!==void 0)return _.length}return 0}t.prototype.eventNames=function(){return this._eventsCount>0?A(this._events):[]};function p(S,M){for(var _=new Array(M),b=0;b{}),A},triggerHandler:function(A,E,e){var t,r=A._ev;if(!r)return;var i=r._events[E];if(!i)return;function a(n){if(n.listener){if(r.removeListener(E,n.listener),!n.fired)return n.fired=!0,n.listener.apply(r,[e])}else return n.apply(r,[e])}i=Array.isArray(i)?i:[i];var o;for(o=0;ox.queueLength&&(e.undoQueue.queue.shift(),e.undoQueue.index--)},E.startSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!0,e.undoQueue.beginSequence=!0},E.stopSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!1,e.undoQueue.beginSequence=!1},E.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=P.length)return!1;if(I.dimensions===2){if(F++,z.length===F)return I;var N=z[F];if(!w(N))return!1;I=P[O][N]}else I=P[O]}else I=P}}return I}function w(I){return I===Math.round(I)&&I>=0}function S(I){var z,F;z=H.modules[I]._module,F=z.basePlotModule;var B={};B.type=null;var O=i({},x),P=i({},z.attributes);Y.crawl(P,function(X,te,ue,ie,le){n(O,le).set(void 0),X===void 0&&n(P,le).set(void 0)}),i(B,O),H.traceIs(I,"noOpacity")&&delete B.opacity,H.traceIs(I,"showLegend")||(delete B.showlegend,delete B.legendgroup),H.traceIs(I,"noHover")&&(delete B.hoverinfo,delete B.hoverlabel),z.selectPoints||delete B.selectedpoints,i(B,P),F.attributes&&i(B,F.attributes),B.type=I;var N={meta:z.meta||{},categories:z.categories||{},animatable:!!z.animatable,type:I,attributes:b(B)};if(z.layoutAttributes){var U={};i(U,z.layoutAttributes),N.layoutAttributes=b(U)}return z.animatable||Y.crawl(N,function(X){Y.isValObject(X)&&"anim"in X&&delete X.anim}),N}function M(){var I={},z,F;i(I,A);for(z in H.subplotsRegistry)if(F=H.subplotsRegistry[z],!!F.layoutAttributes)if(Array.isArray(F.attr))for(var B=0;B=a&&(i._input||{})._templateitemname;n&&(o=a);var s=r+"["+o+"]",c;function f(){c={},n&&(c[s]={},c[s][x]=n)}f();function p(m,w){c[m]=w}function v(m,w){n?H.nestedProperty(c[s],m).set(w):c[s+"."+m]=w}function T(){var m=c;return f(),m}function l(m,w){m&&v(m,w);var S=T();for(var M in S)H.nestedProperty(t,M).set(S[M])}return{modifyBase:p,modifyItem:v,getUpdateObj:T,applyUpdate:l}}}}),jf=He({"src/plots/cartesian/constants.js"(Y,H){var h=z0().counter;H.exports={idRegex:{x:h("x","( domain)?"),y:h("y","( domain)?")},attrRegex:h("[xy]axis"),xAxisMatch:h("xaxis"),yAxisMatch:h("yaxis"),AX_ID_PATTERN:/^[xyz][0-9]*( domain)?$/,AX_NAME_PATTERN:/^[xyz]axis[0-9]*$/,SUBPLOT_PATTERN:/^x([0-9]*)y([0-9]*)$/,HOUR_PATTERN:"hour",WEEKDAY_PATTERN:"day of week",MINDRAG:8,MINZOOM:20,DRAGGERSIZE:20,REDRAWDELAY:50,DFLTRANGEX:[-1,6],DFLTRANGEY:[-1,4],traceLayerClasses:["imagelayer","heatmaplayer","contourcarpetlayer","contourlayer","funnellayer","waterfalllayer","barlayer","carpetlayer","violinlayer","boxlayer","ohlclayer","scattercarpetlayer","scatterlayer"],clipOnAxisFalseQuery:[".scatterlayer",".barlayer",".funnellayer",".waterfalllayer"],layerValue2layerClass:{"above traces":"above","below traces":"below"},zindexSeparator:"z"}}}),yc=He({"src/plots/cartesian/axis_ids.js"(Y){var H=qi(),h=jf();Y.id2name=function(E){if(!(typeof E!="string"||!E.match(h.AX_ID_PATTERN))){var e=E.split(" ")[0].substr(1);return e==="1"&&(e=""),E.charAt(0)+"axis"+e}},Y.name2id=function(E){if(E.match(h.AX_NAME_PATTERN)){var e=E.substr(5);return e==="1"&&(e=""),E.charAt(0)+e}},Y.cleanId=function(E,e,t){var r=/( domain)$/.test(E);if(!(typeof E!="string"||!E.match(h.AX_ID_PATTERN))&&!(e&&E.charAt(0)!==e)&&!(r&&!t)){var i=E.split(" ")[0].substr(1).replace(/^0+/,"");return i==="1"&&(i=""),E.charAt(0)+i+(r&&t?" domain":"")}},Y.list=function(A,E,e){var t=A._fullLayout;if(!t)return[];var r=Y.listIds(A,E),i=new Array(r.length),a;for(a=0;at?1:-1:+(A.substr(1)||1)-+(E.substr(1)||1)},Y.ref2id=function(A){return/^[xyz]/.test(A)?A.split(" ")[0]:!1};function x(A,E){if(E&&E.length){for(var e=0;e0?".":"")+n;h.isPlainObject(s)?t(s,i,c,o+1):i(c,n,s)}})}}}),$u=He({"src/plots/plots.js"(Y,H){var h=yi(),x=gf().timeFormatLocale,A=sc().formatLocale,E=Vi(),e=Nc(),t=qi(),r=B0(),i=cl(),a=Qr(),o=zi(),n=qo().BADNUM,s=yc(),c=Vd().clearOutline,f=s1(),p=Kg(),v=Pb(),T=$f().getModuleCalcData,l=a.relinkPrivateKeys,m=a._,w=H.exports={};a.extendFlat(w,t),w.attributes=Ll(),w.attributes.type.values=w.allTypes,w.fontAttrs=Mu(),w.layoutAttributes=F0();var S=_M();w.executeAPICommand=S.executeAPICommand,w.computeAPICommandBindings=S.computeAPICommandBindings,w.manageCommandObserver=S.manageCommandObserver,w.hasSimpleAPICommandBindings=S.hasSimpleAPICommandBindings,w.redrawText=function(q){return q=a.getGraphDiv(q),new Promise(function(J){setTimeout(function(){q._fullLayout&&(t.getComponentMethod("annotations","draw")(q),t.getComponentMethod("legend","draw")(q),t.getComponentMethod("colorbar","draw")(q),J(w.previousPromises(q)))},300)})},w.resize=function(q){q=a.getGraphDiv(q);var J,ee=new Promise(function(Z,se){(!q||a.isHidden(q))&&se(new Error("Resize must be passed a displayed plot div element.")),q._redrawTimer&&clearTimeout(q._redrawTimer),q._resolveResize&&(J=q._resolveResize),q._resolveResize=Z,q._redrawTimer=setTimeout(function(){if(!q.layout||q.layout.width&&q.layout.height||a.isHidden(q)){Z(q);return}delete q.layout.width,delete q.layout.height;var Q=q.changed;q.autoplay=!0,t.call("relayout",q,{autosize:!0}).then(function(){q.changed=Q,q._resolveResize===Z&&(delete q._resolveResize,Z(q))})},100)});return J&&J(ee),ee},w.previousPromises=function(q){if((q._promises||[]).length)return Promise.all(q._promises).then(function(){q._promises=[]})},w.addLinks=function(q){if(!(!q._context.showLink&&!q._context.showSources)){var J=q._fullLayout,ee=a.ensureSingle(J._paper,"text","js-plot-link-container",function(ae){ae.style({"font-family":'"Open Sans", Arial, sans-serif',"font-size":"12px",fill:o.defaultLine,"pointer-events":"all"}).each(function(){var fe=h.select(this);fe.append("tspan").classed("js-link-to-tool",!0),fe.append("tspan").classed("js-link-spacer",!0),fe.append("tspan").classed("js-sourcelinks",!0)})}),Z=ee.node(),se={y:J._paper.attr("height")-9};document.body.contains(Z)&&Z.getComputedTextLength()>=J.width-20?(se["text-anchor"]="start",se.x=5):(se["text-anchor"]="end",se.x=J._paper.attr("width")-7),ee.attr(se);var Q=ee.select(".js-link-to-tool"),V=ee.select(".js-link-spacer"),re=ee.select(".js-sourcelinks");q._context.showSources&&q._context.showSources(q),q._context.showLink&&M(q,Q),V.text(Q.text()&&re.text()?" - ":"")}};function M(q,J){J.text("");var ee=J.append("a").attr({"xlink:xlink:href":"#",class:"link--impt link--embedview","font-weight":"bold"}).text(q._context.linkText+" »");if(q._context.sendData)ee.on("click",function(){w.sendDataToCloud(q)});else{var Z=window.location.pathname.split("/"),se=window.location.search;ee.attr({"xlink:xlink:show":"new","xlink:xlink:href":"/"+Z[2].split(".")[0]+"/"+Z[1]+se})}}w.sendDataToCloud=function(q){var J=(window.PLOTLYENV||{}).BASE_URL||q._context.plotlyServerURL;if(J){q.emit("plotly_beforeexport");var ee=h.select(q).append("div").attr("id","hiddenform").style("display","none"),Z=ee.append("form").attr({action:J+"/external",method:"post",target:"_blank"}),se=Z.append("input").attr({type:"text",name:"data"});return se.node().value=w.graphJson(q,!1,"keepdata"),Z.node().submit(),ee.remove(),q.emit("plotly_afterexport"),!1}};var _=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],b=["year","month","dayMonth","dayMonthYear"];w.supplyDefaults=function(q,J){var ee=J&&J.skipUpdateCalc,Z=q._fullLayout||{};if(Z._skipDefaults){delete Z._skipDefaults;return}var se=q._fullLayout={},Q=q.layout||{},V=q._fullData||[],re=q._fullData=[],ae=q.data||[],fe=q.calcdata||[],xe=q._context||{},Ae;q._transitionData||w.createTransitionData(q),se._dfltTitle={plot:m(q,"Click to enter Plot title"),subtitle:m(q,"Click to enter Plot subtitle"),x:m(q,"Click to enter X axis title"),y:m(q,"Click to enter Y axis title"),colorbar:m(q,"Click to enter Colorscale title"),annotation:m(q,"new text")},se._traceWord=m(q,"trace");var Pe=g(q,_);if(se._mapboxAccessToken=xe.mapboxAccessToken,Z._initialAutoSizeIsDone){var Ce=Z.width,je=Z.height;w.supplyLayoutGlobalDefaults(Q,se,Pe),Q.width||(se.width=Ce),Q.height||(se.height=je),w.sanitizeMargins(se)}else{w.supplyLayoutGlobalDefaults(Q,se,Pe);var at=!Q.width||!Q.height,tt=se.autosize,Je=xe.autosizable,Ze=at&&(tt||Je);Ze?w.plotAutoSize(q,Q,se):at&&w.sanitizeMargins(se),!tt&&at&&(Q.width=se.width,Q.height=se.height)}se._d3locale=y(Pe,se.separators),se._extraFormat=g(q,b),se._initialAutoSizeIsDone=!0,se._dataLength=ae.length,se._modules=[],se._visibleModules=[],se._basePlotModules=[];var Me=se._subplots=u(),we=se._splomAxes={x:{},y:{}},he=se._splomSubplots={};se._splomGridDflt={},se._scatterStackOpts={},se._firstScatter={},se._alignmentOpts={},se._colorAxes={},se._requestRangeslider={},se._traceUids=d(V,ae),w.supplyDataDefaults(ae,re,Q,se);var De=Object.keys(we.x),et=Object.keys(we.y);if(De.length>1&&et.length>1){for(t.getComponentMethod("grid","sizeDefaults")(Q,se),Ae=0;Ae15&&et.length>15&&se.shapes.length===0&&se.images.length===0,w.linkSubplots(re,se,V,Z),w.cleanPlot(re,se,V,Z);var Ut=!!(Z._has&&Z._has("cartesian")),Yt=!!(se._has&&se._has("cartesian")),vr=Ut,hr=Yt;vr&&!hr?Z._bgLayer.remove():hr&&!vr&&(se._shouldCreateBgLayer=!0),Z._zoomlayer&&!q._dragging&&c({_fullLayout:Z}),R(re,se),l(se,Z),t.getComponentMethod("colorscale","crossTraceDefaults")(re,se),se._preGUI||(se._preGUI={}),se._tracePreGUI||(se._tracePreGUI={});var Rr=se._tracePreGUI,dr={},wr;for(wr in Rr)dr[wr]="old";for(Ae=0;Ae0){var xe=1-2*Q;V=Math.round(xe*V),re=Math.round(xe*re)}}var Ae=w.layoutAttributes.width.min,Pe=w.layoutAttributes.height.min;V1,je=!ee.height&&Math.abs(Z.height-re)>1;(je||Ce)&&(Ce&&(Z.width=V),je&&(Z.height=re)),J._initialAutoSize||(J._initialAutoSize={width:V,height:re}),w.sanitizeMargins(Z)},w.supplyLayoutModuleDefaults=function(q,J,ee,Z){var se=t.componentsRegistry,Q=J._basePlotModules,V,re,ae,fe=t.subplotsRegistry.cartesian;for(V in se)ae=se[V],ae.includeBasePlot&&ae.includeBasePlot(q,J);Q.length||Q.push(fe),J._has("cartesian")&&(t.getComponentMethod("grid","contentDefaults")(q,J),fe.finalizeSubplots(q,J));for(var xe in J._subplots)J._subplots[xe].sort(a.subplotSort);for(re=0;re1&&(ee.l/=tt,ee.r/=tt)}if(Pe){var Je=(ee.t+ee.b)/Pe;Je>1&&(ee.t/=Je,ee.b/=Je)}var Ze=ee.xl!==void 0?ee.xl:ee.x,Me=ee.xr!==void 0?ee.xr:ee.x,we=ee.yt!==void 0?ee.yt:ee.y,he=ee.yb!==void 0?ee.yb:ee.y;Ce[J]={l:{val:Ze,size:ee.l+at},r:{val:Me,size:ee.r+at},b:{val:he,size:ee.b+at},t:{val:we,size:ee.t+at}},je[J]=1}if(!Z._replotting)return w.doAutoMargin(q)}};function P(q){if("_redrawFromAutoMarginCount"in q._fullLayout)return!1;var J=s.list(q,"",!0);for(var ee in J)if(J[ee].autoshift||J[ee].shift)return!0;return!1}w.doAutoMargin=function(q){var J=q._fullLayout,ee=J.width,Z=J.height;J._size||(J._size={}),F(J);var se=J._size,Q=J.margin,V={t:0,b:0,l:0,r:0},re=a.extendFlat({},se),ae=Q.l,fe=Q.r,xe=Q.t,Ae=Q.b,Pe=J._pushmargin,Ce=J._pushmarginIds,je=J.minreducedwidth,at=J.minreducedheight;if(Q.autoexpand!==!1){for(var tt in Pe)Ce[tt]||delete Pe[tt];var Je=q._fullLayout._reservedMargin;for(var Ze in Je)for(var Me in Je[Ze]){var we=Je[Ze][Me];V[Me]=Math.max(V[Me],we)}Pe.base={l:{val:0,size:ae},r:{val:1,size:fe},t:{val:1,size:xe},b:{val:0,size:Ae}};for(var he in V){var De=0;for(var et in Pe)et!=="base"&&E(Pe[et][he].size)&&(De=Pe[et][he].size>De?Pe[et][he].size:De);var nt=Math.max(0,Q[he]-De);V[he]=Math.max(0,V[he]-nt)}for(var Ke in Pe){var Et=Pe[Ke].l||{},kt=Pe[Ke].b||{},Ut=Et.val,Yt=Et.size,vr=kt.val,hr=kt.size,Rr=ee-V.r-V.l,dr=Z-V.t-V.b;for(var wr in Pe){if(E(Yt)&&Pe[wr].r){var yt=Pe[wr].r.val,Fe=Pe[wr].r.size;if(yt>Ut){var We=(Yt*yt+(Fe-Rr)*Ut)/(yt-Ut),Oe=(Fe*(1-Ut)+(Yt-Rr)*(1-yt))/(yt-Ut);We+Oe>ae+fe&&(ae=We,fe=Oe)}}if(E(hr)&&Pe[wr].t){var de=Pe[wr].t.val,me=Pe[wr].t.size;if(de>vr){var be=(hr*de+(me-dr)*vr)/(de-vr),Ie=(me*(1-vr)+(hr-dr)*(1-de))/(de-vr);be+Ie>Ae+xe&&(Ae=be,xe=Ie)}}}}}var Xe=a.constrain(ee-Q.l-Q.r,B,je),ht=a.constrain(Z-Q.t-Q.b,O,at),bt=Math.max(0,ee-Xe),Ct=Math.max(0,Z-ht);if(bt){var Zt=(ae+fe)/bt;Zt>1&&(ae/=Zt,fe/=Zt)}if(Ct){var Wt=(Ae+xe)/Ct;Wt>1&&(Ae/=Wt,xe/=Wt)}if(se.l=Math.round(ae)+V.l,se.r=Math.round(fe)+V.r,se.t=Math.round(xe)+V.t,se.b=Math.round(Ae)+V.b,se.p=Math.round(Q.pad),se.w=Math.round(ee)-se.l-se.r,se.h=Math.round(Z)-se.t-se.b,!J._replotting&&(w.didMarginChange(re,se)||P(q))){"_redrawFromAutoMarginCount"in J?J._redrawFromAutoMarginCount++:J._redrawFromAutoMarginCount=1;var rr=3*(1+Object.keys(Ce).length);if(J._redrawFromAutoMarginCount1)return!0}return!1},w.graphJson=function(q,J,ee,Z,se,Q){(se&&J&&!q._fullData||se&&!J&&!q._fullLayout)&&w.supplyDefaults(q);var V=se?q._fullData:q.data,re=se?q._fullLayout:q.layout,ae=(q._transitionData||{})._frames;function fe(Pe,Ce){if(typeof Pe=="function")return Ce?"_function_":null;if(a.isPlainObject(Pe)){var je={},at;return Object.keys(Pe).sort().forEach(function(Me){if(["_","["].indexOf(Me.charAt(0))===-1){if(typeof Pe[Me]=="function"){Ce&&(je[Me]="_function");return}if(ee==="keepdata"){if(Me.substr(Me.length-3)==="src")return}else if(ee==="keepstream"){if(at=Pe[Me+"src"],typeof at=="string"&&at.indexOf(":")>0&&!a.isPlainObject(Pe.stream))return}else if(ee!=="keepall"&&(at=Pe[Me+"src"],typeof at=="string"&&at.indexOf(":")>0))return;je[Me]=fe(Pe[Me],Ce)}}),je}var tt=Array.isArray(Pe),Je=a.isTypedArray(Pe);if((tt||Je)&&Pe.dtype&&Pe.shape){var Ze=Pe.bdata;return fe({dtype:Pe.dtype,shape:Pe.shape,bdata:a.isArrayBuffer(Ze)?e.encode(Ze):Ze},Ce)}return tt?Pe.map(function(Me){return fe(Me,Ce)}):Je?a.simpleMap(Pe,a.identity):a.isJSDate(Pe)?a.ms2DateTimeLocal(+Pe):Pe}var xe={data:(V||[]).map(function(Pe){var Ce=fe(Pe);return J&&delete Ce.fit,Ce})};if(!J&&(xe.layout=fe(re),se)){var Ae=re._size;xe.layout.computed={margin:{b:Ae.b,l:Ae.l,r:Ae.r,t:Ae.t}}}return ae&&(xe.frames=fe(ae)),Q&&(xe.config=fe(q._context,!0)),Z==="object"?xe:JSON.stringify(xe)},w.modifyFrames=function(q,J){var ee,Z,se,Q=q._transitionData._frames,V=q._transitionData._frameHash;for(ee=0;ee0&&(q._transitioningWithDuration=!0),q._transitionData._interruptCallbacks.push(function(){Z=!0}),ee.redraw&&q._transitionData._interruptCallbacks.push(function(){return t.call("redraw",q)}),q._transitionData._interruptCallbacks.push(function(){q.emit("plotly_transitioninterrupted",[])});var Pe=0,Ce=0;function je(){return Pe++,function(){Ce++,!Z&&Ce===Pe&&re(Ae)}}ee.runFn(je),setTimeout(je())})}function re(Ae){if(q._transitionData)return Q(q._transitionData._interruptCallbacks),Promise.resolve().then(function(){if(ee.redraw)return t.call("redraw",q)}).then(function(){q._transitioning=!1,q._transitioningWithDuration=!1,q.emit("plotly_transitioned",[])}).then(Ae)}function ae(){if(q._transitionData)return q._transitioning=!1,se(q._transitionData._interruptCallbacks)}var fe=[w.previousPromises,ae,ee.prepareFn,w.rehover,w.reselect,V],xe=a.syncOrAsync(fe,q);return(!xe||!xe.then)&&(xe=Promise.resolve()),xe.then(function(){return q})}w.doCalcdata=function(q,J){var ee=s.list(q),Z=q._fullData,se=q._fullLayout,Q,V,re,ae,fe=new Array(Z.length),xe=(q.calcdata||[]).slice();for(q.calcdata=fe,se._numBoxes=0,se._numViolins=0,se._violinScaleGroupStats={},q._hmpixcount=0,q._hmlumcount=0,se._piecolormap={},se._sunburstcolormap={},se._treemapcolormap={},se._iciclecolormap={},se._funnelareacolormap={},re=0;re=0;ae--)if(he[ae].enabled){Q._indexToPoints=he[ae]._indexToPoints;break}V&&V.calc&&(we=V.calc(q,Q))}(!Array.isArray(we)||!we[0])&&(we=[{x:n,y:n}]),we[0].t||(we[0].t={}),we[0].trace=Q,fe[Ze]=we}}for(ie(ee,Z,se),re=0;rere||Ce>ae)&&(Q.style("overflow","hidden"),Ae=Q.node().getBoundingClientRect(),Pe=Ae.width,Ce=Ae.height);var je=+O.attr("x"),at=+O.attr("y"),tt=q||O.node().getBoundingClientRect().height,Je=-tt/4;if(ue[0]==="y")V.attr({transform:"rotate("+[-90,je,at]+")"+x(-Pe/2,Je-Ce/2)});else if(ue[0]==="l")at=Je-Ce/2;else if(ue[0]==="a"&&ue.indexOf("atitle")!==0)je=0,at=Je;else{var Ze=O.attr("text-anchor");je=je-Pe*(Ze==="middle"?.5:Ze==="end"?1:0),at=at+Je-Ce/2}Q.attr({x:je,y:at}),N&&N.call(O,V),le(V)})})):ie(),O};var t=/(<|<|<)/g,r=/(>|>|>)/g;function i(O){return O.replace(t,"\\lt ").replace(r,"\\gt ")}var a=[["$","$"],["\\(","\\)"]];function o(O,P,N){var U=parseInt((MathJax.version||"").split(".")[0]);if(U!==2&&U!==3){h.warn("No MathJax version:",MathJax.version);return}var X,te,ue,ie,le=function(){return te=h.extendDeepAll({},MathJax.Hub.config),ue=MathJax.Hub.processSectionDelay,MathJax.Hub.processSectionDelay!==void 0&&(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:"none",tex2jax:{inlineMath:a},displayAlign:"left"})},q=function(){te=h.extendDeepAll({},MathJax.config),MathJax.config.tex||(MathJax.config.tex={}),MathJax.config.tex.inlineMath=a},J=function(){if(X=MathJax.Hub.config.menuSettings.renderer,X!=="SVG")return MathJax.Hub.setRenderer("SVG")},ee=function(){X=MathJax.config.startup.output,X!=="svg"&&(MathJax.config.startup.output="svg")},Z=function(){var fe="math-output-"+h.randstr({},64);ie=H.select("body").append("div").attr({id:fe}).style({visibility:"hidden",position:"absolute","font-size":P.fontSize+"px"}).text(i(O));var xe=ie.node();return U===2?MathJax.Hub.Typeset(xe):MathJax.typeset([xe])},se=function(){var fe=ie.select(U===2?".MathJax_SVG":".MathJax"),xe=!fe.empty()&&ie.select("svg").node();if(!xe)h.log("There was an error in the tex syntax.",O),N();else{var Ae=xe.getBoundingClientRect(),Pe;U===2?Pe=H.select("body").select("#MathJax_SVG_glyphs"):Pe=fe.select("defs"),N(fe,Pe,Ae)}ie.remove()},Q=function(){if(X!=="SVG")return MathJax.Hub.setRenderer(X)},V=function(){X!=="svg"&&(MathJax.config.startup.output=X)},re=function(){return ue!==void 0&&(MathJax.Hub.processSectionDelay=ue),MathJax.Hub.Config(te)},ae=function(){MathJax.config=te};U===2?MathJax.Hub.Queue(le,J,Z,se,Q,re):U===3&&(q(),ee(),MathJax.startup.defaultReady(),MathJax.startup.promise.then(function(){Z(),se(),V(),ae()}))}var n={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"},s={sub:"0.3em",sup:"-0.6em"},c={sub:"-0.21em",sup:"0.42em"},f="​",p=["http:","https:","mailto:","",void 0,":"],v=Y.NEWLINES=/(\r\n?|\n)/g,T=/(<[^<>]*>)/,l=/<(\/?)([^ >]*)(\s+(.*))?>/i,m=//i;Y.BR_TAG_ALL=//gi;var w=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,S=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,M=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,_=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function b(O,P){if(!O)return null;var N=O.match(P),U=N&&(N[3]||N[4]);return U&&y(U)}var d=/(^|;)\s*color:/;Y.plainText=function(O,P){P=P||{};for(var N=P.len!==void 0&&P.len!==-1?P.len:1/0,U=P.allowedTags!==void 0?P.allowedTags:["br"],X="...",te=X.length,ue=O.split(T),ie=[],le="",q=0,J=0;Jte?ie.push(ee.substr(0,V-te)+X):ie.push(ee.substr(0,V));break}le=""}}return ie.join("")};var u={mu:"μ",amp:"&",lt:"<",gt:">",nbsp:" ",times:"×",plusmn:"±",deg:"°"},g=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function y(O){return O.replace(g,function(P,N){var U;return N.charAt(0)==="#"?U=R(N.charAt(1)==="x"?parseInt(N.substr(2),16):parseInt(N.substr(1),10)):U=u[N],U||P})}Y.convertEntities=y;function R(O){if(!(O>1114111)){var P=String.fromCodePoint;if(P)return P(O);var N=String.fromCharCode;return O<=65535?N(O):N((O>>10)+55232,O%1024+56320)}}function I(O,P){P=P.replace(v," ");var N=!1,U=[],X,te=-1;function ue(){te++;var Ce=document.createElementNS(A.svg,"tspan");H.select(Ce).attr({class:"line",dy:te*E+"em"}),O.appendChild(Ce),X=Ce;var je=U;if(U=[{node:Ce}],je.length>1)for(var at=1;at.",P);return}var je=U.pop();Ce!==je.type&&h.log("Start tag <"+je.type+"> doesnt match end tag <"+Ce+">. Pretending it did match.",P),X=U[U.length-1].node}var J=m.test(P);J?ue():(X=O,U=[{node:O}]);for(var ee=P.split(T),Z=0;Z=0;m--,w++){var S=v[m];l[w]=[1-S[0],S[1]]}return l}function c(v,T){T=T||{};for(var l=v.domain,m=v.range,w=m.length,S=new Array(w),M=0;Mv-f?f=v-(p-v):p-v=0?m=i.colorscale.sequential:m=i.colorscale.sequentialminus,s._sync("colorscale",m)}}}}),Eu=He({"src/components/colorscale/index.js"(Y,H){var h=Tp(),x=kh();H.exports={moduleType:"component",name:"colorscale",attributes:eu(),layoutAttributes:Ib(),supplyLayoutDefaults:xM(),handleDefaults:If(),crossTraceDefaults:bM(),calc:Ch(),scales:h.scales,defaultScale:h.defaultScale,getScale:h.get,isValidScale:h.isValid,hasColorscale:x.hasColorscale,extractOpts:x.extractOpts,extractScale:x.extractScale,flipScale:x.flipScale,makeColorScaleFunc:x.makeColorScaleFunc,makeColorScaleFuncFromTrace:x.makeColorScaleFuncFromTrace}}}),cu=He({"src/traces/scatter/subtypes.js"(Y,H){var h=Qr(),x=Lf().isTypedArraySpec;H.exports={hasLines:function(A){return A.visible&&A.mode&&A.mode.indexOf("lines")!==-1},hasMarkers:function(A){return A.visible&&(A.mode&&A.mode.indexOf("markers")!==-1||A.type==="splom")},hasText:function(A){return A.visible&&A.mode&&A.mode.indexOf("text")!==-1},isBubble:function(A){var E=A.marker;return h.isPlainObject(E)&&(h.isArrayOrTypedArray(E.size)||x(E.size))}}}}),U0=He({"src/traces/scatter/make_bubble_size_func.js"(Y,H){var h=Vi();H.exports=function(A,E){E||(E=2);var e=A.marker,t=e.sizeref||1,r=e.sizemin||0,i=e.sizemode==="area"?function(a){return Math.sqrt(a/t)}:function(a){return a/t};return function(a){var o=i(a/E);return h(o)&&o>0?Math.max(o,r):0}}}}),Dh=He({"src/components/fx/helpers.js"(Y){var H=Qr();Y.getSubplot=function(t){return t.subplot||t.xaxis+t.yaxis||t.geo},Y.isTraceInSubplots=function(t,r){if(t.type==="splom"){for(var i=t.xaxes||[],a=t.yaxes||[],o=0;o=0&&i.index2&&(r.push([a].concat(o.splice(0,2))),n="l",a=a=="m"?"l":"L");;){if(o.length==h[n])return o.unshift(a),r.push(o);if(o.length0&&(we=100,Me=Me.replace("-open","")),Me.indexOf("-dot")>0&&(we+=200,Me=Me.replace("-dot","")),Me=l.symbolNames.indexOf(Me),Me>=0&&(Me+=we)}return Me%100>=d||Me>=400?0:Math.floor(Math.max(Me,0))};function g(Me,we,he,De){var et=Me%100;return l.symbolFuncs[et](we,he,De)+(Me>=200?u:"")}var y=A("~f"),R={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}};l.gradient=function(Me,we,he,De,et,nt){var Ke=R[De];return I(Me,we,he,Ke.type,et,nt,Ke.start,Ke.stop,!1,Ke.reversed)};function I(Me,we,he,De,et,nt,Ke,Et,kt,Ut){var Yt=et.length,vr;De==="linear"?vr={node:"linearGradient",attrs:{x1:Ke.x,y1:Ke.y,x2:Et.x,y2:Et.y,gradientUnits:kt?"userSpaceOnUse":"objectBoundingBox"},reversed:Ut}:De==="radial"&&(vr={node:"radialGradient",reversed:Ut});for(var hr=new Array(Yt),Rr=0;Rr=0&&Me.i===void 0&&(Me.i=nt.i),we.style("opacity",De.selectedOpacityFn?De.selectedOpacityFn(Me):Me.mo===void 0?Ke.opacity:Me.mo),De.ms2mrc){var kt;Me.ms==="various"||Ke.size==="various"?kt=3:kt=De.ms2mrc(Me.ms),Me.mrc=kt,De.selectedSizeFn&&(kt=Me.mrc=De.selectedSizeFn(Me));var Ut=l.symbolNumber(Me.mx||Ke.symbol)||0;Me.om=Ut%200>=100;var Yt=Ze(Me,he),vr=re(Me,he);we.attr("d",g(Ut,kt,Yt,vr))}var hr=!1,Rr,dr,wr;if(Me.so)wr=Et.outlierwidth,dr=Et.outliercolor,Rr=Ke.outliercolor;else{var yt=(Et||{}).width;wr=(Me.mlw+1||yt+1||(Me.trace?(Me.trace.marker.line||{}).width:0)+1)-1||0,"mlc"in Me?dr=Me.mlcc=De.lineScale(Me.mlc):x.isArrayOrTypedArray(Et.color)?dr=r.defaultLine:dr=Et.color,x.isArrayOrTypedArray(Ke.color)&&(Rr=r.defaultLine,hr=!0),"mc"in Me?Rr=Me.mcc=De.markerScale(Me.mc):Rr=Ke.color||Ke.colors||"rgba(0,0,0,0)",De.selectedColorFn&&(Rr=De.selectedColorFn(Me))}if(Me.om)we.call(r.stroke,Rr).style({"stroke-width":(wr||1)+"px",fill:"none"});else{we.style("stroke-width",(Me.isBlank?0:wr)+"px");var Fe=Ke.gradient,We=Me.mgt;We?hr=!0:We=Fe&&Fe.type,x.isArrayOrTypedArray(We)&&(We=We[0],R[We]||(We=0));var Oe=Ke.pattern,de=l.getPatternAttr,me=Oe&&(de(Oe.shape,Me.i,"")||de(Oe.path,Me.i,""));if(We&&We!=="none"){var be=Me.mgc;be?hr=!0:be=Fe.color;var Ie=he.uid;hr&&(Ie+="-"+Me.i),l.gradient(we,et,Ie,We,[[0,be],[1,Rr]],"fill")}else if(me){var Xe=!1,ht=Oe.fgcolor;!ht&&nt&&nt.color&&(ht=nt.color,Xe=!0);var bt=de(ht,Me.i,nt&&nt.color||null),Ct=de(Oe.bgcolor,Me.i,null),Zt=Oe.fgopacity,Wt=de(Oe.size,Me.i,8),rr=de(Oe.solidity,Me.i,.3);Xe=Xe||Me.mcc||x.isArrayOrTypedArray(Oe.shape)||x.isArrayOrTypedArray(Oe.path)||x.isArrayOrTypedArray(Oe.bgcolor)||x.isArrayOrTypedArray(Oe.fgcolor)||x.isArrayOrTypedArray(Oe.size)||x.isArrayOrTypedArray(Oe.solidity);var Jt=he.uid;Xe&&(Jt+="-"+Me.i),l.pattern(we,"point",et,Jt,me,Wt,rr,Me.mcc,Oe.fillmode,Ct,bt,Zt)}else x.isArrayOrTypedArray(Rr)?r.fill(we,Rr[Me.i]):r.fill(we,Rr);wr&&r.stroke(we,dr)}},l.makePointStyleFns=function(Me){var we={},he=Me.marker;return we.markerScale=l.tryColorscale(he,""),we.lineScale=l.tryColorscale(he,"line"),t.traceIs(Me,"symbols")&&(we.ms2mrc=p.isBubble(Me)?v(Me):function(){return(he.size||6)/2}),Me.selectedpoints&&x.extendFlat(we,l.makeSelectedPointStyleFns(Me)),we},l.makeSelectedPointStyleFns=function(Me){var we={},he=Me.selected||{},De=Me.unselected||{},et=Me.marker||{},nt=he.marker||{},Ke=De.marker||{},Et=et.opacity,kt=nt.opacity,Ut=Ke.opacity,Yt=kt!==void 0,vr=Ut!==void 0;(x.isArrayOrTypedArray(Et)||Yt||vr)&&(we.selectedOpacityFn=function(de){var me=de.mo===void 0?et.opacity:de.mo;return de.selected?Yt?kt:me:vr?Ut:f*me});var hr=et.color,Rr=nt.color,dr=Ke.color;(Rr||dr)&&(we.selectedColorFn=function(de){var me=de.mcc||hr;return de.selected?Rr||me:dr||me});var wr=et.size,yt=nt.size,Fe=Ke.size,We=yt!==void 0,Oe=Fe!==void 0;return t.traceIs(Me,"symbols")&&(We||Oe)&&(we.selectedSizeFn=function(de){var me=de.mrc||wr/2;return de.selected?We?yt/2:me:Oe?Fe/2:me}),we},l.makeSelectedTextStyleFns=function(Me){var we={},he=Me.selected||{},De=Me.unselected||{},et=Me.textfont||{},nt=he.textfont||{},Ke=De.textfont||{},Et=et.color,kt=nt.color,Ut=Ke.color;return we.selectedTextColorFn=function(Yt){var vr=Yt.tc||Et;return Yt.selected?kt||vr:Ut||(kt?vr:r.addOpacity(vr,f))},we},l.selectedPointStyle=function(Me,we){if(!(!Me.size()||!we.selectedpoints)){var he=l.makeSelectedPointStyleFns(we),De=we.marker||{},et=[];he.selectedOpacityFn&&et.push(function(nt,Ke){nt.style("opacity",he.selectedOpacityFn(Ke))}),he.selectedColorFn&&et.push(function(nt,Ke){r.fill(nt,he.selectedColorFn(Ke))}),he.selectedSizeFn&&et.push(function(nt,Ke){var Et=Ke.mx||De.symbol||0,kt=he.selectedSizeFn(Ke);nt.attr("d",g(l.symbolNumber(Et),kt,Ze(Ke,we),re(Ke,we))),Ke.mrc2=kt}),et.length&&Me.each(function(nt){for(var Ke=h.select(this),Et=0;Et0?he:0}l.textPointStyle=function(Me,we,he){if(Me.size()){var De;if(we.selectedpoints){var et=l.makeSelectedTextStyleFns(we);De=et.selectedTextColorFn}var nt=we.texttemplate,Ke=he._fullLayout;Me.each(function(Et){var kt=h.select(this),Ut=nt?x.extractOption(Et,we,"txt","texttemplate"):x.extractOption(Et,we,"tx","text");if(!Ut&&Ut!==0){kt.remove();return}if(nt){var Yt=we._module.formatLabels,vr=Yt?Yt(Et,we,Ke):{},hr={};T(hr,we,Et.i);var Rr=we._meta||{};Ut=x.texttemplateString(Ut,vr,Ke._d3locale,hr,Et,Rr)}var dr=Et.tp||we.textposition,wr=B(Et,we),yt=De?De(Et):Et.tc||we.textfont.color;kt.call(l.font,{family:Et.tf||we.textfont.family,weight:Et.tw||we.textfont.weight,style:Et.ty||we.textfont.style,variant:Et.tv||we.textfont.variant,textcase:Et.tC||we.textfont.textcase,lineposition:Et.tE||we.textfont.lineposition,shadow:Et.tS||we.textfont.shadow,size:wr,color:yt}).text(Ut).call(o.convertToTspans,he).call(F,dr,wr,Et.mrc)})}},l.selectedTextStyle=function(Me,we){if(!(!Me.size()||!we.selectedpoints)){var he=l.makeSelectedTextStyleFns(we);Me.each(function(De){var et=h.select(this),nt=he.selectedTextColorFn(De),Ke=De.tp||we.textposition,Et=B(De,we);r.fill(et,nt);var kt=t.traceIs(we,"bar-like");F(et,Ke,Et,De.mrc2||De.mrc,kt)})}};var O=.5;l.smoothopen=function(Me,we){if(Me.length<3)return"M"+Me.join("L");var he="M"+Me[0],De=[],et;for(et=1;et=kt||de>=Yt&&de<=kt)&&(me<=vr&&me>=Ut||me>=vr&&me<=Ut)&&(Me=[de,me])}return Me}l.applyBackoff=q,l.makeTester=function(){var Me=x.ensureSingleById(h.select("body"),"svg","js-plotly-tester",function(he){he.attr(n.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})}),we=x.ensureSingle(Me,"path","js-reference-point",function(he){he.attr("d","M0,0H1V1H0Z").style({"stroke-width":0,fill:"black"})});l.tester=Me,l.testref=we},l.savedBBoxes={};var J=0,ee=1e4;l.bBox=function(Me,we,he){he||(he=Z(Me));var De;if(he){if(De=l.savedBBoxes[he],De)return x.extendFlat({},De)}else if(Me.childNodes.length===1){var et=Me.childNodes[0];if(he=Z(et),he){var nt=+et.getAttribute("x")||0,Ke=+et.getAttribute("y")||0,Et=et.getAttribute("transform");if(!Et){var kt=l.bBox(et,!1,he);return nt&&(kt.left+=nt,kt.right+=nt),Ke&&(kt.top+=Ke,kt.bottom+=Ke),kt}if(he+="~"+nt+"~"+Ke+"~"+Et,De=l.savedBBoxes[he],De)return x.extendFlat({},De)}}var Ut,Yt;we?Ut=Me:(Yt=l.tester.node(),Ut=Me.cloneNode(!0),Yt.appendChild(Ut)),h.select(Ut).attr("transform",null).call(o.positionText,0,0);var vr=Ut.getBoundingClientRect(),hr=l.testref.node().getBoundingClientRect();we||Yt.removeChild(Ut);var Rr={height:vr.height,width:vr.width,left:vr.left-hr.left,top:vr.top-hr.top,right:vr.right-hr.left,bottom:vr.bottom-hr.top};return J>=ee&&(l.savedBBoxes={},J=0),he&&(l.savedBBoxes[he]=Rr),J++,x.extendFlat({},Rr)};function Z(Me){var we=Me.getAttribute("data-unformatted");if(we!==null)return we+Me.getAttribute("data-math")+Me.getAttribute("text-anchor")+Me.getAttribute("style")}l.setClipUrl=function(Me,we,he){Me.attr("clip-path",se(we,he))};function se(Me,we){if(!Me)return null;var he=we._context,De=he._exportedPlot?"":he._baseUrl||"";return De?"url('"+De+"#"+Me+"')":"url(#"+Me+")"}l.getTranslate=function(Me){var we=/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,he=Me.attr?"attr":"getAttribute",De=Me[he]("transform")||"",et=De.replace(we,function(nt,Ke,Et){return[Ke,Et].join(" ")}).split(" ");return{x:+et[0]||0,y:+et[1]||0}},l.setTranslate=function(Me,we,he){var De=/(\btranslate\(.*?\);?)/,et=Me.attr?"attr":"getAttribute",nt=Me.attr?"attr":"setAttribute",Ke=Me[et]("transform")||"";return we=we||0,he=he||0,Ke=Ke.replace(De,"").trim(),Ke+=a(we,he),Ke=Ke.trim(),Me[nt]("transform",Ke),Ke},l.getScale=function(Me){var we=/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,he=Me.attr?"attr":"getAttribute",De=Me[he]("transform")||"",et=De.replace(we,function(nt,Ke,Et){return[Ke,Et].join(" ")}).split(" ");return{x:+et[0]||1,y:+et[1]||1}},l.setScale=function(Me,we,he){var De=/(\bscale\(.*?\);?)/,et=Me.attr?"attr":"getAttribute",nt=Me.attr?"attr":"setAttribute",Ke=Me[et]("transform")||"";return we=we||1,he=he||1,Ke=Ke.replace(De,"").trim(),Ke+="scale("+we+","+he+")",Ke=Ke.trim(),Me[nt]("transform",Ke),Ke};var Q=/\s*sc.*/;l.setPointGroupScale=function(Me,we,he){if(we=we||1,he=he||1,!!Me){var De=we===1&&he===1?"":"scale("+we+","+he+")";Me.each(function(){var et=(this.getAttribute("transform")||"").replace(Q,"");et+=De,et=et.trim(),this.setAttribute("transform",et)})}};var V=/translate\([^)]*\)\s*$/;l.setTextPointsScale=function(Me,we,he){Me&&Me.each(function(){var De,et=h.select(this),nt=et.select("text");if(nt.node()){var Ke=parseFloat(nt.attr("x")||0),Et=parseFloat(nt.attr("y")||0),kt=(et.attr("transform")||"").match(V);we===1&&he===1?De=[]:De=[a(Ke,Et),"scale("+we+","+he+")",a(-Ke,-Et)],kt&&De.push(kt),et.attr("transform",De.join(""))}})};function re(Me,we){var he;return Me&&(he=Me.mf),he===void 0&&(he=we.marker&&we.marker.standoff||0),!we._geo&&!we._xA?-he:he}l.getMarkerStandoff=re;var ae=Math.atan2,fe=Math.cos,xe=Math.sin;function Ae(Me,we){var he=we[0],De=we[1];return[he*fe(Me)-De*xe(Me),he*xe(Me)+De*fe(Me)]}var Pe,Ce,je,at,tt,Je;function Ze(Me,we){var he=Me.ma;he===void 0&&(he=we.marker.angle,(!he||x.isArrayOrTypedArray(he))&&(he=0));var De,et,nt=we.marker.angleref;if(nt==="previous"||nt==="north"){if(we._geo){var Ke=we._geo.project(Me.lonlat);De=Ke[0],et=Ke[1]}else{var Et=we._xA,kt=we._yA;if(Et&&kt)De=Et.c2p(Me.x),et=kt.c2p(Me.y);else return 90}if(we._geo){var Ut=Me.lonlat[0],Yt=Me.lonlat[1],vr=we._geo.project([Ut,Yt+1e-5]),hr=we._geo.project([Ut+1e-5,Yt]),Rr=ae(hr[1]-et,hr[0]-De),dr=ae(vr[1]-et,vr[0]-De),wr;if(nt==="north")wr=he/180*Math.PI;else if(nt==="previous"){var yt=Ut/180*Math.PI,Fe=Yt/180*Math.PI,We=Pe/180*Math.PI,Oe=Ce/180*Math.PI,de=We-yt,me=fe(Oe)*xe(de),be=xe(Oe)*fe(Fe)-fe(Oe)*xe(Fe)*fe(de);wr=-ae(me,be)-Math.PI,Pe=Ut,Ce=Yt}var Ie=Ae(Rr,[fe(wr),0]),Xe=Ae(dr,[xe(wr),0]);he=ae(Ie[1]+Xe[1],Ie[0]+Xe[0])/Math.PI*180,nt==="previous"&&!(Je===we.uid&&Me.i===tt+1)&&(he=null)}if(nt==="previous"&&!we._geo)if(Je===we.uid&&Me.i===tt+1&&E(De)&&E(et)){var ht=De-je,bt=et-at,Ct=we.line&&we.line.shape||"",Zt=Ct.slice(Ct.length-1);Zt==="h"&&(bt=0),Zt==="v"&&(ht=0),he+=ae(bt,ht)/Math.PI*180+90}else he=null}return je=De,at=et,tt=Me.i,Je=we.uid,he}l.getMarkerAngle=Ze}}),Ep=He({"src/components/titles/index.js"(Y,H){var h=yi(),x=Vi(),A=$u(),E=qi(),e=Qr(),t=e.strTranslate,r=Io(),i=zi(),a=jl(),o=Nd(),n=Pf().OPPOSITE_SIDE,s=/ [XY][0-9]* /,c=1.6,f=1.6;function p(v,T,l){var m=v._fullLayout,w=l.propContainer,S=l.propName,M=l.placeholder,_=l.traceIndex,b=l.avoid||{},d=l.attributes,u=l.transform,g=l.containerGroup,y=1,R=w.title,I=(R&&R.text?R.text:"").trim(),z=!1,F=R&&R.font?R.font:{},B=F.family,O=F.size,P=F.color,N=F.weight,U=F.style,X=F.variant,te=F.textcase,ue=F.lineposition,ie=F.shadow,le=l.subtitlePropName,q=!!le,J=l.subtitlePlaceholder,ee=(w.title||{}).subtitle||{text:"",font:{}},Z=ee.text.trim(),se=!1,Q=1,V=ee.font,re=V.family,ae=V.size,fe=V.color,xe=V.weight,Ae=V.style,Pe=V.variant,Ce=V.textcase,je=V.lineposition,at=V.shadow,tt;S==="title.text"?tt="titleText":S.indexOf("axis")!==-1?tt="axisTitleText":S.indexOf("colorbar")!==-1&&(tt="colorbarTitleText");var Je=v._context.edits[tt];function Ze(hr,Rr){return hr===void 0||Rr===void 0?!1:hr.replace(s," % ")===Rr.replace(s," % ")}I===""?y=0:Ze(I,M)&&(Je||(I=""),y=.2,z=!0),q&&(Z===""?Q=0:Ze(Z,J)&&(Je||(Z=""),Q=.2,se=!0)),l._meta?I=e.templateString(I,l._meta):m._meta&&(I=e.templateString(I,m._meta));var Me=I||Z||Je,we;g||(g=e.ensureSingle(m._infolayer,"g","g-"+T),we=m._hColorbarMoveTitle);var he=g.selectAll("text."+T).data(Me?[0]:[]);he.enter().append("text"),he.text(I).attr("class",T),he.exit().remove();var De=null,et=T+"-subtitle",nt=Z||Je;if(q&&nt&&(De=g.selectAll("text."+et).data(nt?[0]:[]),De.enter().append("text"),De.text(Z).attr("class",et),De.exit().remove()),!Me)return g;function Ke(hr,Rr){e.syncOrAsync([Et,kt],{title:hr,subtitle:Rr})}function Et(hr){var Rr=hr.title,dr=hr.subtitle,wr;!u&&we&&(u={}),u?(wr="",u.rotate&&(wr+="rotate("+[u.rotate,d.x,d.y]+")"),(u.offset||we)&&(wr+=t(0,(u.offset||0)-(we||0)))):wr=null,Rr.attr("transform",wr);function yt(be){if(be){var Ie=h.select(be.node().parentNode).select("."+et);if(!Ie.empty()){var Xe=be.node().getBBox();if(Xe.height){var ht=Xe.y+Xe.height+c*ae;Ie.attr("y",ht)}}}}if(Rr.style("opacity",y*i.opacity(P)).call(r.font,{color:i.rgb(P),size:h.round(O,2),family:B,weight:N,style:U,variant:X,textcase:te,shadow:ie,lineposition:ue}).attr(d).call(a.convertToTspans,v,yt),dr){var Fe=g.select("."+T+"-math-group"),We=Rr.node().getBBox(),Oe=Fe.node()?Fe.node().getBBox():void 0,de=Oe?Oe.y+Oe.height+c*ae:We.y+We.height+f*ae,me=e.extendFlat({},d,{y:de});dr.attr("transform",wr),dr.style("opacity",Q*i.opacity(fe)).call(r.font,{color:i.rgb(fe),size:h.round(ae,2),family:re,weight:xe,style:Ae,variant:Pe,textcase:Ce,shadow:at,lineposition:je}).attr(me).call(a.convertToTspans,v)}return A.previousPromises(v)}function kt(hr){var Rr=hr.title,dr=h.select(Rr.node().parentNode);if(b&&b.selection&&b.side&&I){dr.attr("transform",null);var wr=n[b.side],yt=b.side==="left"||b.side==="top"?-1:1,Fe=x(b.pad)?b.pad:2,We=r.bBox(dr.node()),Oe={t:0,b:0,l:0,r:0},de=v._fullLayout._reservedMargin;for(var me in de)for(var be in de[me]){var Ie=de[me][be];Oe[be]=Math.max(Oe[be],Ie)}var Xe={left:Oe.l,top:Oe.t,right:m.width-Oe.r,bottom:m.height-Oe.b},ht=b.maxShift||yt*(Xe[b.side]-We[b.side]),bt=0;if(ht<0)bt=ht;else{var Ct=b.offsetLeft||0,Zt=b.offsetTop||0;We.left-=Ct,We.right-=Ct,We.top-=Zt,We.bottom-=Zt,b.selection.each(function(){var rr=r.bBox(this);e.bBoxIntersect(We,rr,Fe)&&(bt=Math.max(bt,yt*(rr[b.side]-We[wr])+Fe))}),bt=Math.min(ht,bt),w._titleScoot=Math.abs(bt)}if(bt>0||ht<0){var Wt={left:[-bt,0],right:[bt,0],top:[0,-bt],bottom:[0,bt]}[b.side];dr.attr("transform",t(Wt[0],Wt[1]))}}}he.call(Ke,De);function Ut(hr,Rr){hr.text(Rr).on("mouseover.opacity",function(){h.select(this).transition().duration(o.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){h.select(this).transition().duration(o.HIDE_PLACEHOLDER).style("opacity",0)})}if(Je&&(I?he.on(".opacity",null):(Ut(he,M),z=!0),he.call(a.makeEditable,{gd:v}).on("edit",function(hr){_!==void 0?E.call("_guiRestyle",v,S,hr,_):E.call("_guiRelayout",v,S,hr)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(Ke)}).on("input",function(hr){this.text(hr||" ").call(a.positionText,d.x,d.y)}),q)){if(q&&!I){var Yt=he.node().getBBox(),vr=Yt.y+Yt.height+f*ae;De.attr("y",vr)}Z?De.on(".opacity",null):(Ut(De,J),se=!0),De.call(a.makeEditable,{gd:v}).on("edit",function(hr){E.call("_guiRelayout",v,"title.subtitle.text",hr)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(Ke)}).on("input",function(hr){this.text(hr||" ").call(a.positionText,De.attr("x"),De.attr("y"))})}return he.classed("js-placeholder",z),De&&De.classed("js-placeholder",se),g}H.exports={draw:p,SUBTITLE_PADDING_EM:f,SUBTITLE_PADDING_MATHJAX_EM:c}}}),Nv=He({"src/plots/cartesian/set_convert.js"(Y,H){var h=yi(),x=gf().utcFormat,A=Qr(),E=A.numberFormat,e=Vi(),t=A.cleanNumber,r=A.ms2DateTime,i=A.dateTime2ms,a=A.ensureNumber,o=A.isArrayOrTypedArray,n=qo(),s=n.FP_SAFE,c=n.BADNUM,f=n.LOG_CLIP,p=n.ONEWEEK,v=n.ONEDAY,T=n.ONEHOUR,l=n.ONEMIN,m=n.ONESEC,w=yc(),S=jf(),M=S.HOUR_PATTERN,_=S.WEEKDAY_PATTERN;function b(u){return Math.pow(10,u)}function d(u){return u!=null}H.exports=function(g,y){y=y||{};var R=g._id||"x",I=R.charAt(0);function z(Z,se){if(Z>0)return Math.log(Z)/Math.LN10;if(Z<=0&&se&&g.range&&g.range.length===2){var Q=g.range[0],V=g.range[1];return .5*(Q+V-2*f*Math.abs(Q-V))}else return c}function F(Z,se,Q,V){if((V||{}).msUTC&&e(Z))return+Z;var re=i(Z,Q||g.calendar);if(re===c)if(e(Z)){Z=+Z;var ae=Math.floor(A.mod(Z+.05,1)*10),fe=Math.round(Z-ae/10);re=i(new Date(fe))+ae/10}else return c;return re}function B(Z,se,Q){return r(Z,se,Q||g.calendar)}function O(Z){return g._categories[Math.round(Z)]}function P(Z){if(d(Z)){if(g._categoriesMap===void 0&&(g._categoriesMap={}),g._categoriesMap[Z]!==void 0)return g._categoriesMap[Z];g._categories.push(typeof Z=="number"?String(Z):Z);var se=g._categories.length-1;return g._categoriesMap[Z]=se,se}return c}function N(Z,se){for(var Q=new Array(se),V=0;Vg.range[1]&&(Q=!Q);for(var V=Q?-1:1,re=V*Z,ae=0,fe=0;feAe)ae=fe+1;else{ae=re<(xe+Ae)/2?fe:fe+1;break}}var Pe=g._B[ae]||0;return isFinite(Pe)?ue(Z,g._m2,Pe):0},q=function(Z){var se=g._rangebreaks.length;if(!se)return ie(Z,g._m,g._b);for(var Q=0,V=0;Vg._rangebreaks[V].pmax&&(Q=V+1);return ie(Z,g._m2,g._B[Q])}}g.c2l=g.type==="log"?z:a,g.l2c=g.type==="log"?b:a,g.l2p=le,g.p2l=q,g.c2p=g.type==="log"?function(Z,se){return le(z(Z,se))}:le,g.p2c=g.type==="log"?function(Z){return b(q(Z))}:q,["linear","-"].indexOf(g.type)!==-1?(g.d2r=g.r2d=g.d2c=g.r2c=g.d2l=g.r2l=t,g.c2d=g.c2r=g.l2d=g.l2r=a,g.d2p=g.r2p=function(Z){return g.l2p(t(Z))},g.p2d=g.p2r=q,g.cleanPos=a):g.type==="log"?(g.d2r=g.d2l=function(Z,se){return z(t(Z),se)},g.r2d=g.r2c=function(Z){return b(t(Z))},g.d2c=g.r2l=t,g.c2d=g.l2r=a,g.c2r=z,g.l2d=b,g.d2p=function(Z,se){return g.l2p(g.d2r(Z,se))},g.p2d=function(Z){return b(q(Z))},g.r2p=function(Z){return g.l2p(t(Z))},g.p2r=q,g.cleanPos=a):g.type==="date"?(g.d2r=g.r2d=A.identity,g.d2c=g.r2c=g.d2l=g.r2l=F,g.c2d=g.c2r=g.l2d=g.l2r=B,g.d2p=g.r2p=function(Z,se,Q){return g.l2p(F(Z,0,Q))},g.p2d=g.p2r=function(Z,se,Q){return B(q(Z),se,Q)},g.cleanPos=function(Z){return A.cleanDate(Z,c,g.calendar)}):g.type==="category"?(g.d2c=g.d2l=P,g.r2d=g.c2d=g.l2d=O,g.d2r=g.d2l_noadd=X,g.r2c=function(Z){var se=te(Z);return se!==void 0?se:g.fraction2r(.5)},g.l2r=g.c2r=a,g.r2l=te,g.d2p=function(Z){return g.l2p(g.r2c(Z))},g.p2d=function(Z){return O(q(Z))},g.r2p=g.d2p,g.p2r=q,g.cleanPos=function(Z){return typeof Z=="string"&&Z!==""?Z:a(Z)}):g.type==="multicategory"&&(g.r2d=g.c2d=g.l2d=O,g.d2r=g.d2l_noadd=X,g.r2c=function(Z){var se=X(Z);return se!==void 0?se:g.fraction2r(.5)},g.r2c_just_indices=U,g.l2r=g.c2r=a,g.r2l=X,g.d2p=function(Z){return g.l2p(g.r2c(Z))},g.p2d=function(Z){return O(q(Z))},g.r2p=g.d2p,g.p2r=q,g.cleanPos=function(Z){return Array.isArray(Z)||typeof Z=="string"&&Z!==""?Z:a(Z)},g.setupMultiCategory=function(Z){var se=g._traceIndices,Q,V,re=g._matchGroup;if(re&&g._categories.length===0){for(var ae in re)if(ae!==R){var fe=y[w.id2name(ae)];se=se.concat(fe._traceIndices)}}var xe=[[0,{}],[0,{}]],Ae=[];for(Q=0;Qfe[1]&&(V[ae?0:1]=Q),V[0]===V[1]){var xe=g.l2r(se),Ae=g.l2r(Q);if(se!==void 0){var Pe=xe+1;Q!==void 0&&(Pe=Math.min(Pe,Ae)),V[ae?1:0]=Pe}if(Q!==void 0){var Ce=Ae+1;se!==void 0&&(Ce=Math.max(Ce,xe)),V[ae?0:1]=Ce}}}},g.cleanRange=function(Z,se){g._cleanRange(Z,se),g.limitRange(Z)},g._cleanRange=function(Z,se){se||(se={}),Z||(Z="range");var Q=A.nestedProperty(g,Z).get(),V,re;if(g.type==="date"?re=A.dfltRange(g.calendar):I==="y"?re=S.DFLTRANGEY:g._name==="realaxis"?re=[0,1]:re=se.dfltRange||S.DFLTRANGEX,re=re.slice(),(g.rangemode==="tozero"||g.rangemode==="nonnegative")&&(re[0]=0),!Q||Q.length!==2){A.nestedProperty(g,Z).set(re);return}var ae=Q[0]===null,fe=Q[1]===null;for(g.type==="date"&&!g.autorange&&(Q[0]=A.cleanDate(Q[0],c,g.calendar),Q[1]=A.cleanDate(Q[1],c,g.calendar)),V=0;V<2;V++)if(g.type==="date"){if(!A.isDateTime(Q[V],g.calendar)){g[Z]=re;break}if(g.r2l(Q[0])===g.r2l(Q[1])){var xe=A.constrain(g.r2l(Q[0]),A.MIN_MS+1e3,A.MAX_MS-1e3);Q[0]=g.l2r(xe-1e3),Q[1]=g.l2r(xe+1e3);break}}else{if(!e(Q[V]))if(!(ae||fe)&&e(Q[1-V]))Q[V]=Q[1-V]*(V?10:.1);else{g[Z]=re;break}if(Q[V]<-s?Q[V]=-s:Q[V]>s&&(Q[V]=s),Q[0]===Q[1]){var Ae=Math.max(1,Math.abs(Q[0]*1e-6));Q[0]-=Ae,Q[1]+=Ae}}},g.setScale=function(Z){var se=y._size;if(g.overlaying){var Q=w.getFromId({_fullLayout:y},g.overlaying);g.domain=Q.domain}var V=Z&&g._r?"_r":"range",re=g.calendar;g.cleanRange(V);var ae=g.r2l(g[V][0],re),fe=g.r2l(g[V][1],re),xe=I==="y";if(xe?(g._offset=se.t+(1-g.domain[1])*se.h,g._length=se.h*(g.domain[1]-g.domain[0]),g._m=g._length/(ae-fe),g._b=-g._m*fe):(g._offset=se.l+g.domain[0]*se.w,g._length=se.w*(g.domain[1]-g.domain[0]),g._m=g._length/(fe-ae),g._b=-g._m*ae),g._rangebreaks=[],g._lBreaks=0,g._m2=0,g._B=[],g.rangebreaks){var Ae,Pe;if(g._rangebreaks=g.locateBreaks(Math.min(ae,fe),Math.max(ae,fe)),g._rangebreaks.length){for(Ae=0;Aefe&&(Ce=!Ce),Ce&&g._rangebreaks.reverse();var je=Ce?-1:1;for(g._m2=je*g._length/(Math.abs(fe-ae)-g._lBreaks),g._B.push(-g._m2*(xe?fe:ae)),Ae=0;Aere&&(re+=7,aere&&(re+=24,ae=V&&ae=V&&Z=Ke.min&&(heKe.max&&(Ke.max=De),et=!1)}et&&fe.push({min:he,max:De})}};for(Q=0;Qm*2}function n(f){return Math.max(1,(f-1)/1e3)}function s(f,p){for(var v=f.length,T=n(v),l=0,m=0,w={},S=0;Sl*2}function c(f){return E(f[0])&&E(f[1])}}}),gv=He({"src/plots/cartesian/autorange.js"(Y,H){var h=yi(),x=Vi(),A=Qr(),E=qo().FP_SAFE,e=qi(),t=Io(),r=yc(),i=r.getFromId,a=r.isLinked;H.exports={applyAutorangeOptions:g,getAutoRange:o,makePadFn:s,doAutoRange:v,findExtremes:T,concatExtremes:p};function o(y,R){var I,z,F=[],B=y._fullLayout,O=s(B,R,0),P=s(B,R,1),N=p(y,R),U=N.min,X=N.max;if(U.length===0||X.length===0)return A.simpleMap(R.range,R.r2l);var te=U[0].val,ue=X[0].val;for(I=1;I0&&(Ae=se-O(re)-P(ae),Ae>Q?Pe/Ae>V&&(fe=re,xe=ae,V=Pe/Ae):Pe/se>V&&(fe={val:re.val,nopad:1},xe={val:ae.val,nopad:1},V=Pe/se));function Ce(Ze,Me){return Math.max(Ze,P(Me))}if(te===ue){var je=te-1,at=te+1;if(ee)if(te===0)F=[0,1];else{var tt=(te>0?X:U).reduce(Ce,0),Je=te/(1-Math.min(.5,tt/se));F=te>0?[0,Je]:[Je,0]}else Z?F=[Math.max(0,je),Math.max(1,at)]:F=[je,at]}else ee?(fe.val>=0&&(fe={val:0,nopad:1}),xe.val<=0&&(xe={val:0,nopad:1})):Z&&(fe.val-V*O(fe)<0&&(fe={val:0,nopad:1}),xe.val<=0&&(xe={val:1,nopad:1})),V=(xe.val-fe.val-n(R,re.val,ae.val))/(se-O(fe)-P(xe)),F=[fe.val-V*O(fe),xe.val+V*P(xe)];return F=g(F,R),R.limitRange&&R.limitRange(),le&&F.reverse(),A.simpleMap(F,R.l2r||Number)}function n(y,R,I){var z=0;if(y.rangebreaks)for(var F=y.locateBreaks(R,I),B=0;B0?I.ppadplus:I.ppadminus)||I.ppad||0),re=Q((y._m>0?I.ppadminus:I.ppadplus)||I.ppad||0),ae=Q(I.vpadplus||I.vpad),fe=Q(I.vpadminus||I.vpad);if(!U){if(Z=1/0,se=-1/0,N)for(te=0;te0&&(Z=ue),ue>se&&ue-E&&(Z=ue),ue>se&&ue=Pe;te--)Ae(te);return{min:z,max:F,opts:I}}function l(y,R,I,z){w(y,R,I,z,M)}function m(y,R,I,z){w(y,R,I,z,_)}function w(y,R,I,z,F){for(var B=z.tozero,O=z.extrapad,P=!0,N=0;N=I&&(U.extrapad||!O)){P=!1;break}else F(R,U.val)&&U.pad<=I&&(O||!U.extrapad)&&(y.splice(N,1),N--)}if(P){var X=B&&R===0;y.push({val:R,pad:X?0:I,extrapad:X?!1:O})}}function S(y){return x(y)&&Math.abs(y)=R}function b(y,R){var I=R.autorangeoptions;return I&&I.minallowed!==void 0&&u(R,I.minallowed,I.maxallowed)?I.minallowed:I&&I.clipmin!==void 0&&u(R,I.clipmin,I.clipmax)?Math.max(y,R.d2l(I.clipmin)):y}function d(y,R){var I=R.autorangeoptions;return I&&I.maxallowed!==void 0&&u(R,I.minallowed,I.maxallowed)?I.maxallowed:I&&I.clipmax!==void 0&&u(R,I.clipmin,I.clipmax)?Math.min(y,R.d2l(I.clipmax)):y}function u(y,R,I){return R!==void 0&&I!==void 0?(R=y.d2l(R),I=y.d2l(I),R=N&&(B=N,I=N),O<=N&&(O=N,z=N)}}return I=b(I,R),z=d(z,R),[I,z]}}}),wo=He({"src/plots/cartesian/axes.js"(Y,H){var h=yi(),x=Vi(),A=$u(),E=qi(),e=Qr(),t=e.strTranslate,r=jl(),i=Ep(),a=zi(),o=Io(),n=Kf(),s=Db(),c=qo(),f=c.ONEMAXYEAR,p=c.ONEAVGYEAR,v=c.ONEMINYEAR,T=c.ONEMAXQUARTER,l=c.ONEAVGQUARTER,m=c.ONEMINQUARTER,w=c.ONEMAXMONTH,S=c.ONEAVGMONTH,M=c.ONEMINMONTH,_=c.ONEWEEK,b=c.ONEDAY,d=b/2,u=c.ONEHOUR,g=c.ONEMIN,y=c.ONESEC,R=c.ONEMILLI,I=c.ONEMICROSEC,z=c.MINUS_SIGN,F=c.BADNUM,B={K:"zeroline"},O={K:"gridline",L:"path"},P={K:"minor-gridline",L:"path"},N={K:"tick",L:"path"},U={K:"tick",L:"text"},X={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},te=Pf(),ue=te.MID_SHIFT,ie=te.CAP_SHIFT,le=te.LINE_SPACING,q=te.OPPOSITE_SIDE,J=3,ee=H.exports={};ee.setConvert=Nv();var Z=j0(),se=yc(),Q=se.idSort,V=se.isLinked;ee.id2name=se.id2name,ee.name2id=se.name2id,ee.cleanId=se.cleanId,ee.list=se.list,ee.listIds=se.listIds,ee.getFromId=se.getFromId,ee.getFromTrace=se.getFromTrace;var re=gv();ee.getAutoRange=re.getAutoRange,ee.findExtremes=re.findExtremes;var ae=1e-4;function fe(mt){var ot=(mt[1]-mt[0])*ae;return[mt[0]-ot,mt[1]+ot]}ee.coerceRef=function(mt,ot,Lr,Er,Mr,br){var Or=Er.charAt(Er.length-1),jr=Lr._fullLayout._subplots[Or+"axis"],Dr=Er+"ref",Hr={};return Mr||(Mr=jr[0]||(typeof br=="string"?br:br[0])),br||(br=Mr),jr=jr.concat(jr.map(function(na){return na+" domain"})),Hr[Dr]={valType:"enumerated",values:jr.concat(br?typeof br=="string"?[br]:br:[]),dflt:Mr},e.coerce(mt,ot,Hr,Dr)},ee.getRefType=function(mt){return mt===void 0?mt:mt==="paper"?"paper":mt==="pixel"?"pixel":/( domain)$/.test(mt)?"domain":"range"},ee.coercePosition=function(mt,ot,Lr,Er,Mr,br){var Or,jr,Dr=ee.getRefType(Er);if(Dr!=="range")Or=e.ensureNumber,jr=Lr(Mr,br);else{var Hr=ee.getFromId(ot,Er);br=Hr.fraction2r(br),jr=Lr(Mr,br),Or=Hr.cleanPos}mt[Mr]=Or(jr)},ee.cleanPosition=function(mt,ot,Lr){var Er=Lr==="paper"||Lr==="pixel"?e.ensureNumber:ee.getFromId(ot,Lr).cleanPos;return Er(mt)},ee.redrawComponents=function(mt,ot){ot=ot||ee.listIds(mt);var Lr=mt._fullLayout;function Er(Mr,br,Or,jr){for(var Dr=E.getComponentMethod(Mr,br),Hr={},na=0;na2e-6||((Lr-mt._forceTick0)/mt._minDtick%1+1.000001)%1>2e-6)&&(mt._minDtick=0))},ee.saveRangeInitial=function(mt,ot){for(var Lr=ee.list(mt,"",!0),Er=!1,Mr=0;Mrta*.3||Hr(Er)||Hr(Mr))){var At=Lr.dtick/2;mt+=mt+AtOr){var jr=Number(Lr.substr(1));br.exactYears>Or&&jr%12===0?mt=ee.tickIncrement(mt,"M6","reverse")+b*1.5:br.exactMonths>Or?mt=ee.tickIncrement(mt,"M1","reverse")+b*15.5:mt-=d;var Dr=ee.tickIncrement(mt,Lr);if(Dr<=Er)return Dr}return mt}ee.prepMinorTicks=function(mt,ot,Lr){if(!ot.minor.dtick){delete mt.dtick;var Er=ot.dtick&&x(ot._tmin),Mr;if(Er){var br=ee.tickIncrement(ot._tmin,ot.dtick,!0);Mr=[ot._tmin,br*.99+ot._tmin*.01]}else{var Or=e.simpleMap(ot.range,ot.r2l);Mr=[Or[0],.8*Or[0]+.2*Or[1]]}if(mt.range=e.simpleMap(Mr,ot.l2r),mt._isMinor=!0,ee.prepTicks(mt,Lr),Er){var jr=x(ot.dtick),Dr=x(mt.dtick),Hr=jr?ot.dtick:+ot.dtick.substring(1),na=Dr?mt.dtick:+mt.dtick.substring(1);jr&&Dr?at(Hr,na)?Hr===2*_&&na===2*b&&(mt.dtick=_):Hr===2*_&&na===3*b?mt.dtick=_:Hr===_&&!(ot._input.minor||{}).nticks?mt.dtick=b:tt(Hr/na,2.5)?mt.dtick=Hr/2:mt.dtick=Hr:String(ot.dtick).charAt(0)==="M"?Dr?mt.dtick="M1":at(Hr,na)?Hr>=12&&na===2&&(mt.dtick="M3"):mt.dtick=ot.dtick:String(mt.dtick).charAt(0)==="L"?String(ot.dtick).charAt(0)==="L"?at(Hr,na)||(mt.dtick=tt(Hr/na,2.5)?ot.dtick/2:ot.dtick):mt.dtick="D1":mt.dtick==="D2"&&+ot.dtick>1&&(mt.dtick=1)}mt.range=ot.range}ot.minor._tick0Init===void 0&&(mt.tick0=ot.tick0)};function at(mt,ot){return Math.abs((mt/ot+.5)%1-.5)<.001}function tt(mt,ot){return Math.abs(mt/ot-1)<.001}ee.prepTicks=function(mt,ot){var Lr=e.simpleMap(mt.range,mt.r2l,void 0,void 0,ot);if(mt.tickmode==="auto"||!mt.dtick){var Er=mt.nticks,Mr;Er||(mt.type==="category"||mt.type==="multicategory"?(Mr=mt.tickfont?e.bigFont(mt.tickfont.size||12):15,Er=mt._length/Mr):(Mr=mt._id.charAt(0)==="y"?40:80,Er=e.constrain(mt._length/Mr,4,9)+1),mt._name==="radialaxis"&&(Er*=2)),mt.minor&&mt.minor.tickmode!=="array"||mt.tickmode==="array"&&(Er*=100),mt._roughDTick=Math.abs(Lr[1]-Lr[0])/Er,ee.autoTicks(mt,mt._roughDTick),mt._minDtick>0&&mt.dtick0?(br=Er-1,Or=Er):(br=Er,Or=Er);var jr=mt[br].value,Dr=mt[Or].value,Hr=Math.abs(Dr-jr),na=Lr||Hr,ta=0;na>=v?Hr>=v&&Hr<=f?ta=Hr:ta=p:Lr===l&&na>=m?Hr>=m&&Hr<=T?ta=Hr:ta=l:na>=M?Hr>=M&&Hr<=w?ta=Hr:ta=S:Lr===_&&na>=_?ta=_:na>=b?ta=b:Lr===d&&na>=d?ta=d:Lr===u&&na>=u&&(ta=u);var At;ta>=Hr&&(ta=Hr,At=!0);var or=Mr+ta;if(ot.rangebreaks&&ta>0){for(var Ar=84,oa=0,ga=0;ga_&&(ta=Hr)}(ta>0||Er===0)&&(mt[Er].periodX=Mr+ta/2)}}ee.calcTicks=function(ot,Lr){for(var Er=ot.type,Mr=ot.calendar,br=ot.ticklabelstep,Or=ot.ticklabelmode==="period",jr=ot.range[0]>ot.range[1],Dr=!ot.ticklabelindex||e.isArrayOrTypedArray(ot.ticklabelindex)?ot.ticklabelindex:[ot.ticklabelindex],Hr=e.simpleMap(ot.range,ot.r2l,void 0,void 0,Lr),na=Hr[1]=(ra?0:1);Ta--){var Fn=!Ta;Ta?(ot._dtickInit=ot.dtick,ot._tick0Init=ot.tick0):(ot.minor._dtickInit=ot.minor.dtick,ot.minor._tick0Init=ot.minor.tick0);var mn=Ta?ot:e.extendFlat({},ot,ot.minor);if(Fn?ee.prepMinorTicks(mn,ot,Lr):ee.prepTicks(mn,Lr),mn.tickmode==="array"){Ta?(ga=[],Ar=De(ot,!Fn)):(Sa=[],oa=De(ot,!Fn));continue}if(mn.tickmode==="sync"){ga=[],Ar=he(ot);continue}var Kn=fe(Hr),ui=Kn[0],pi=Kn[1],vi=x(mn.dtick),Li=Er==="log"&&!(vi||mn.dtick.charAt(0)==="L"),Ni=ee.tickFirst(mn,Lr);if(Ta){if(ot._tmin=Ni,Ni=pi:bi<=pi;bi=ee.tickIncrement(bi,gs,na,Mr)){if(Ta&&ho++,mn.rangebreaks&&!na){if(bi=At)break}if(ga.length>or||bi===ci)break;ci=bi;var ro={value:bi};Ta?(Li&&bi!==(bi|0)&&(ro.simpleLabel=!0),br>1&&ho%br&&(ro.skipLabel=!0),ga.push(ro)):(ro.minor=!0,Sa.push(ro))}}if(!Sa||Sa.length<2)Dr=!1;else{var Ei=(Sa[1].value-Sa[0].value)*(jr?-1:1);an(Ei,ot.tickformat)||(Dr=!1)}if(!Dr)za=ga;else{var Ri=ga.concat(Sa);Or&&ga.length&&(Ri=Ri.slice(1)),Ri=Ri.sort(function(Oi,Zo){return Oi.value-Zo.value}).filter(function(Oi,Zo,qs){return Zo===0||Oi.value!==qs[Zo-1].value});var xo=Ri.map(function(Oi,Zo){return Oi.minor===void 0&&!Oi.skipLabel?Zo:null}).filter(function(Oi){return Oi!==null});xo.forEach(function(Oi){Dr.map(function(Zo){var qs=Oi+Zo;qs>=0&&qs-1;kn--){if(ga[kn].drop){ga.splice(kn,1);continue}ga[kn].value=Gr(ga[kn].value,ot);var Gi=ot.c2p(ga[kn].value);(fi?Ss>Gi-Fs:SsAt||DiAt&&(qs.periodX=At),DiMr&&Atp)ot/=p,Er=Mr(10),mt.dtick="M"+12*vr(ot,Er,et);else if(br>S)ot/=S,mt.dtick="M"+vr(ot,1,nt);else if(br>b){if(mt.dtick=vr(ot,b,mt._hasDayOfWeekBreaks?[1,2,7,14]:Et),!Lr){var Or=ee.getTickFormat(mt),jr=mt.ticklabelmode==="period";jr&&(mt._rawTick0=mt.tick0),/%[uVW]/.test(Or)?mt.tick0=e.dateTick0(mt.calendar,2):mt.tick0=e.dateTick0(mt.calendar,1),jr&&(mt._dowTick0=mt.tick0)}}else br>u?mt.dtick=vr(ot,u,nt):br>g?mt.dtick=vr(ot,g,Ke):br>y?mt.dtick=vr(ot,y,Ke):(Er=Mr(10),mt.dtick=vr(ot,Er,et))}else if(mt.type==="log"){mt.tick0=0;var Dr=e.simpleMap(mt.range,mt.r2l);if(mt._isMinor&&(ot*=1.5),ot>.7)mt.dtick=Math.ceil(ot);else if(Math.abs(Dr[1]-Dr[0])<1){var Hr=1.5*Math.abs((Dr[1]-Dr[0])/ot);ot=Math.abs(Math.pow(10,Dr[1])-Math.pow(10,Dr[0]))/Hr,Er=Mr(10),mt.dtick="L"+vr(ot,Er,et)}else mt.dtick=ot>.3?"D2":"D1"}else mt.type==="category"||mt.type==="multicategory"?(mt.tick0=0,mt.dtick=Math.ceil(Math.max(ot,1))):ha(mt)?(mt.tick0=0,Er=1,mt.dtick=vr(ot,Er,Yt)):(mt.tick0=0,Er=Mr(10),mt.dtick=vr(ot,Er,et));if(mt.dtick===0&&(mt.dtick=1),!x(mt.dtick)&&typeof mt.dtick!="string"){var na=mt.dtick;throw mt.dtick=1,"ax.dtick error: "+String(na)}};function hr(mt){var ot=mt.dtick;if(mt._tickexponent=0,!x(ot)&&typeof ot!="string"&&(ot=1),(mt.type==="category"||mt.type==="multicategory")&&(mt._tickround=null),mt.type==="date"){var Lr=mt.r2l(mt.tick0),Er=mt.l2r(Lr).replace(/(^-|i)/g,""),Mr=Er.length;if(String(ot).charAt(0)==="M")Mr>10||Er.substr(5)!=="01-01"?mt._tickround="d":mt._tickround=+ot.substr(1)%12===0?"y":"m";else if(ot>=b&&Mr<=10||ot>=b*15)mt._tickround="d";else if(ot>=g&&Mr<=16||ot>=u)mt._tickround="M";else if(ot>=y&&Mr<=19||ot>=g)mt._tickround="S";else{var br=mt.l2r(Lr+ot).replace(/^-/,"").length;mt._tickround=Math.max(Mr,br)-20,mt._tickround<0&&(mt._tickround=4)}}else if(x(ot)||ot.charAt(0)==="L"){var Or=mt.range.map(mt.r2d||Number);x(ot)||(ot=Number(ot.substr(1))),mt._tickround=2-Math.floor(Math.log(ot)/Math.LN10+.01);var jr=Math.max(Math.abs(Or[0]),Math.abs(Or[1])),Dr=Math.floor(Math.log(jr)/Math.LN10+.01),Hr=mt.minexponent===void 0?3:mt.minexponent;Math.abs(Dr)>Hr&&(be(mt.exponentformat)&&!Ie(Dr)?mt._tickexponent=3*Math.round((Dr-1)/3):mt._tickexponent=Dr)}else mt._tickround=null}ee.tickIncrement=function(mt,ot,Lr,Er){var Mr=Lr?-1:1;if(x(ot))return e.increment(mt,Mr*ot);var br=ot.charAt(0),Or=Mr*Number(ot.substr(1));if(br==="M")return e.incrementMonth(mt,Or,Er);if(br==="L")return Math.log(Math.pow(10,mt)+Or)/Math.LN10;if(br==="D"){var jr=ot==="D2"?Ut:kt,Dr=mt+Mr*.01,Hr=e.roundUp(e.mod(Dr,1),jr,Lr);return Math.floor(Dr)+Math.log(h.round(Math.pow(10,Hr),1))/Math.LN10}throw"unrecognized dtick "+String(ot)},ee.tickFirst=function(mt,ot){var Lr=mt.r2l||Number,Er=e.simpleMap(mt.range,Lr,void 0,void 0,ot),Mr=Er[1]=0&&Sa<=mt._length?ga:null};if(br&&e.isArrayOrTypedArray(mt.ticktext)){var ta=e.simpleMap(mt.range,mt.r2l),At=(Math.abs(ta[1]-ta[0])-(mt._lBreaks||0))/1e4;for(Hr=0;Hr"+jr;else{var Hr=wa(mt),na=mt._trueSide||mt.side;(!Hr&&na==="top"||Hr&&na==="bottom")&&(Or+="
")}ot.text=Or}function wr(mt,ot,Lr,Er,Mr){var br=mt.dtick,Or=ot.x,jr=mt.tickformat,Dr=typeof br=="string"&&br.charAt(0);if(Mr==="never"&&(Mr=""),Er&&Dr!=="L"&&(br="L3",Dr="L"),jr||Dr==="L")ot.text=Xe(Math.pow(10,Or),mt,Mr,Er);else if(x(br)||Dr==="D"&&(mt.minorloglabels==="complete"||e.mod(Or+.01,1)<.1)){mt.minorloglabels==="complete"&&!(e.mod(Or+.01,1)<.1)&&(ot.fontSize*=.75);var Hr=Math.pow(10,Or).toExponential(0),na=Hr.split("e"),ta=+na[1],At=Math.abs(ta),or=mt.exponentformat;or==="power"||be(or)&&Ie(ta)?(ot.text=na[0],At>0&&(ot.text+="x10"),ot.text==="1x10"&&(ot.text="10"),ta!==0&&ta!==1&&(ot.text+=""+(ta>0?"":z)+At+""),ot.fontSize*=1.25):(or==="e"||or==="E")&&At>2?ot.text=na[0]+or+(ta>0?"+":z)+At:(ot.text=Xe(Math.pow(10,Or),mt,"","fakehover"),br==="D1"&&mt._id.charAt(0)==="y"&&(ot.dy-=ot.fontSize/6))}else if(Dr==="D")ot.text=mt.minorloglabels==="none"?"":String(Math.round(Math.pow(10,e.mod(Or,1)))),ot.fontSize*=.75;else throw"unrecognized dtick "+String(br);if(mt.dtick==="D1"){var Ar=String(ot.text).charAt(0);(Ar==="0"||Ar==="1")&&(mt._id.charAt(0)==="y"?ot.dx-=ot.fontSize/4:(ot.dy+=ot.fontSize/2,ot.dx+=(mt.range[1]>mt.range[0]?1:-1)*ot.fontSize*(Or<0?.5:.25)))}}function yt(mt,ot){var Lr=mt._categories[Math.round(ot.x)];Lr===void 0&&(Lr=""),ot.text=String(Lr)}function Fe(mt,ot,Lr){var Er=Math.round(ot.x),Mr=mt._categories[Er]||[],br=Mr[1]===void 0?"":String(Mr[1]),Or=Mr[0]===void 0?"":String(Mr[0]);Lr?ot.text=Or+" - "+br:(ot.text=br,ot.text2=Or)}function We(mt,ot,Lr,Er,Mr){Mr==="never"?Mr="":mt.showexponent==="all"&&Math.abs(ot.x/mt.dtick)<1e-6&&(Mr="hide"),ot.text=Xe(ot.x,mt,Mr,Er)}function Oe(mt,ot,Lr,Er,Mr){if(mt.thetaunit==="radians"&&!Lr){var br=ot.x/180;if(br===0)ot.text="0";else{var Or=de(br);if(Or[1]>=100)ot.text=Xe(e.deg2rad(ot.x),mt,Mr,Er);else{var jr=ot.x<0;Or[1]===1?Or[0]===1?ot.text="π":ot.text=Or[0]+"π":ot.text=["",Or[0],"","⁄","",Or[1],"","π"].join(""),jr&&(ot.text=z+ot.text)}}}else ot.text=Xe(ot.x,mt,Mr,Er)}function de(mt){function ot(jr,Dr){return Math.abs(jr-Dr)<=1e-6}function Lr(jr,Dr){return ot(Dr,0)?jr:Lr(Dr,jr%Dr)}function Er(jr){for(var Dr=1;!ot(Math.round(jr*Dr)/Dr,jr);)Dr*=10;return Dr}var Mr=Er(mt),br=mt*Mr,Or=Math.abs(Lr(br,Mr));return[Math.round(br/Or),Math.round(Mr/Or)]}var me=["f","p","n","μ","m","","k","M","G","T"];function be(mt){return mt==="SI"||mt==="B"}function Ie(mt){return mt>14||mt<-15}function Xe(mt,ot,Lr,Er){var Mr=mt<0,br=ot._tickround,Or=Lr||ot.exponentformat||"B",jr=ot._tickexponent,Dr=ee.getTickFormat(ot),Hr=ot.separatethousands;if(Er){var na={exponentformat:Or,minexponent:ot.minexponent,dtick:ot.showexponent==="none"?ot.dtick:x(mt)&&Math.abs(mt)||1,range:ot.showexponent==="none"?ot.range.map(ot.r2d):[0,mt||1]};hr(na),br=(Number(na._tickround)||0)+4,jr=na._tickexponent,ot.hoverformat&&(Dr=ot.hoverformat)}if(Dr)return ot._numFormat(Dr)(mt).replace(/-/g,z);var ta=Math.pow(10,-br)/2;if(Or==="none"&&(jr=0),mt=Math.abs(mt),mt"+Ar+"":Or==="B"&&jr===9?mt+="B":be(Or)&&(mt+=me[jr/3+5])}return Mr?z+mt:mt}ee.getTickFormat=function(mt){var ot;function Lr(Dr){return typeof Dr!="string"?Dr:Number(Dr.replace("M",""))*S}function Er(Dr,Hr){var na=["L","D"];if(typeof Dr==typeof Hr){if(typeof Dr=="number")return Dr-Hr;var ta=na.indexOf(Dr.charAt(0)),At=na.indexOf(Hr.charAt(0));return ta===At?Number(Dr.replace(/(L|D)/g,""))-Number(Hr.replace(/(L|D)/g,"")):ta-At}else return typeof Dr=="number"?1:-1}function Mr(Dr,Hr,na){var ta=na||function(Ar){return Ar},At=Hr[0],or=Hr[1];return(!At&&typeof At!="number"||ta(At)<=ta(Dr))&&(!or&&typeof or!="number"||ta(or)>=ta(Dr))}function br(Dr,Hr){var na=Hr[0]===null,ta=Hr[1]===null,At=Er(Dr,Hr[0])>=0,or=Er(Dr,Hr[1])<=0;return(na||At)&&(ta||or)}var Or,jr;if(mt.tickformatstops&&mt.tickformatstops.length>0)switch(mt.type){case"date":case"linear":{for(ot=0;ot=0&&Mr.unshift(Mr.splice(na,1).shift())}});var jr={false:{left:0,right:0}};return e.syncOrAsync(Mr.map(function(Dr){return function(){if(Dr){var Hr=ee.getFromId(mt,Dr);Lr||(Lr={}),Lr.axShifts=jr,Lr.overlayingShiftedAx=Or;var na=ee.drawOne(mt,Hr,Lr);return Hr._shiftPusher&&Ya(Hr,Hr._fullDepth||0,jr,!0),Hr._r=Hr.range.slice(),Hr._rl=e.simpleMap(Hr._r,Hr.r2l),na}}}))},ee.drawOne=function(mt,ot,Lr){Lr=Lr||{};var Er=Lr.axShifts||{},Mr=Lr.overlayingShiftedAx||[],br,Or,jr;ot.setScale();var Dr=mt._fullLayout,Hr=ot._id,na=Hr.charAt(0),ta=ee.counterLetter(Hr),At=Dr._plots[ot._mainSubplot],or=ot.zerolinelayer==="above traces";if(!At)return;if(ot._shiftPusher=ot.autoshift||Mr.indexOf(ot._id)!==-1||Mr.indexOf(ot.overlaying)!==-1,ot._shiftPusher&ot.anchor==="free"){var Ar=ot.linewidth/2||0;ot.ticks==="inside"&&(Ar+=ot.ticklen),Ya(ot,Ar,Er,!0),Ya(ot,ot.shift||0,Er,!1)}(Lr.skipTitle!==!0||ot._shift===void 0)&&(ot._shift=Ka(ot,Er));var oa=At[na+"axislayer"],ga=ot._mainLinePosition,Sa=ga+=ot._shift,za=ot._mainMirrorPosition,ra=ot._vals=ee.calcTicks(ot),Ta=[ot.mirror,Sa,za].join("_");for(br=0;br0?Di.bottom-Zo:0,qs))));var Vl=0,rl=0;if(ot._shiftPusher&&(Vl=Math.max(qs,Di.height>0?so==="l"?Zo-Di.left:Di.right-Zo:0),ot.title.text!==Dr._dfltTitle[na]&&(rl=(ot._titleStandoff||0)+(ot._titleScoot||0),so==="l"&&(rl+=Ia(ot))),ot._fullDepth=Math.max(Vl,rl)),ot.automargin){ys={x:0,y:0,r:0,l:0,t:0,b:0};var Cs=[0,1],ql=typeof ot._shift=="number"?ot._shift:0;if(na==="x"){if(so==="b"?ys[so]=ot._depth:(ys[so]=ot._depth=Math.max(Di.width>0?Zo-Di.top:0,qs),Cs.reverse()),Di.width>0){var ju=Di.right-(ot._offset+ot._length);ju>0&&(ys.xr=1,ys.r=ju);var Vu=ot._offset-Di.left;Vu>0&&(ys.xl=0,ys.l=Vu)}}else if(so==="l"?(ot._depth=Math.max(Di.height>0?Zo-Di.left:0,qs),ys[so]=ot._depth-ql):(ot._depth=Math.max(Di.height>0?Di.right-Zo:0,qs),ys[so]=ot._depth+ql,Cs.reverse()),Di.height>0){var yu=Di.bottom-(ot._offset+ot._length);yu>0&&(ys.yb=0,ys.b=yu);var jc=ot._offset-Di.top;jc>0&&(ys.yt=1,ys.t=jc)}ys[ta]=ot.anchor==="free"?ot.position:ot._anchorAxis.domain[Cs[0]],ot.title.text!==Dr._dfltTitle[na]&&(ys[so]+=Ia(ot)+(ot.title.standoff||0)),ot.mirror&&ot.anchor!=="free"&&(wl={x:0,y:0,r:0,l:0,t:0,b:0},wl[Oi]=ot.linewidth,ot.mirror&&ot.mirror!==!0&&(wl[Oi]+=qs),ot.mirror===!0||ot.mirror==="ticks"?wl[ta]=ot._anchorAxis.domain[Cs[1]]:(ot.mirror==="all"||ot.mirror==="allticks")&&(wl[ta]=[ot._counterDomainMin,ot._counterDomainMax][Cs[1]]))}hi&&(Xs=E.getComponentMethod("rangeslider","autoMarginOpts")(mt,ot)),typeof ot.automargin=="string"&&(ht(ys,ot.automargin),ht(wl,ot.automargin)),A.autoMargin(mt,yn(ot),ys),A.autoMargin(mt,Kt(ot),wl),A.autoMargin(mt,zt(ot),Xs)}),e.syncOrAsync(es)}};function ht(mt,ot){if(mt){var Lr=Object.keys(X).reduce(function(Er,Mr){return ot.indexOf(Mr)!==-1&&X[Mr].forEach(function(br){Er[br]=1}),Er},{});Object.keys(mt).forEach(function(Er){Lr[Er]||(Er.length===1?mt[Er]=0:delete mt[Er])})}}function bt(mt,ot){var Lr=[],Er,Mr=function(br,Or){var jr=br.xbnd[Or];jr!==null&&Lr.push(e.extendFlat({},br,{x:jr}))};if(ot.length){for(Er=0;Ermt.range[1],jr=mt.ticklabelposition&&mt.ticklabelposition.indexOf("inside")!==-1,Dr=!jr;if(Lr){var Hr=Or?-1:1;Lr=Lr*Hr}if(Er){var na=mt.side,ta=jr&&(na==="top"||na==="left")||Dr&&(na==="bottom"||na==="right")?1:-1;Er=Er*ta}return mt._id.charAt(0)==="x"?function(At){return t(Mr+mt._offset+mt.l2p(rr(At))+Lr,br+Er)}:function(At){return t(br+Er,Mr+mt._offset+mt.l2p(rr(At))+Lr)}};function rr(mt){return mt.periodX!==void 0?mt.periodX:mt.x}function Jt(mt){var ot=mt.ticklabelposition||"",Lr=mt.tickson||"",Er=function(Ar){return ot.indexOf(Ar)!==-1},Mr=Er("top"),br=Er("left"),Or=Er("right"),jr=Er("bottom"),Dr=Er("inside"),Hr=Lr!=="boundaries"&&(jr||br||Mr||Or);if(!Hr&&!Dr)return[0,0];var na=mt.side,ta=Hr?(mt.tickwidth||0)/2:0,At=J,or=mt.tickfont?mt.tickfont.size:12;return(jr||Mr)&&(ta+=or*ie,At+=(mt.linewidth||0)/2),(br||Or)&&(ta+=(mt.linewidth||0)/2,At+=J),Dr&&na==="top"&&(At-=or*(1-ie)),(br||Mr)&&(ta=-ta),(na==="bottom"||na==="right")&&(At=-At),[Hr?ta:0,Dr?At:0]}ee.makeTickPath=function(mt,ot,Lr,Er){Er||(Er={});var Mr=Er.minor;if(Mr&&!mt.minor)return"";var br=Er.len!==void 0?Er.len:Mr?mt.minor.ticklen:mt.ticklen,Or=mt._id.charAt(0),jr=(mt.linewidth||1)/2;return Or==="x"?"M0,"+(ot+jr*Lr)+"v"+br*Lr:"M"+(ot+jr*Lr)+",0h"+br*Lr},ee.makeLabelFns=function(mt,ot,Lr){var Er=mt.ticklabelposition||"",Mr=mt.tickson||"",br=function(ci){return Er.indexOf(ci)!==-1},Or=br("top"),jr=br("left"),Dr=br("right"),Hr=br("bottom"),na=Mr!=="boundaries"&&(Hr||jr||Or||Dr),ta=br("inside"),At=Er==="inside"&&mt.ticks==="inside"||!ta&&mt.ticks==="outside"&&Mr!=="boundaries",or=0,Ar=0,oa=At?mt.ticklen:0;if(ta?oa*=-1:na&&(oa=0),At&&(or+=oa,Lr)){var ga=e.deg2rad(Lr);or=oa*Math.cos(ga)+1,Ar=oa*Math.sin(ga)}mt.showticklabels&&(At||mt.showline)&&(or+=.2*mt.tickfont.size),or+=(mt.linewidth||1)/2*(ta?-1:1);var Sa={labelStandoff:or,labelShift:Ar},za,ra,Ta,Fn,mn=0,Kn=mt.side,ui=mt._id.charAt(0),pi=mt.tickangle,vi;if(ui==="x")vi=!ta&&Kn==="bottom"||ta&&Kn==="top",Fn=vi?1:-1,ta&&(Fn*=-1),za=Ar*Fn,ra=ot+or*Fn,Ta=vi?1:-.2,Math.abs(pi)===90&&(ta?Ta+=ue:pi===-90&&Kn==="bottom"?Ta=ie:pi===90&&Kn==="top"?Ta=ue:Ta=.5,mn=ue/2*(pi/90)),Sa.xFn=function(ci){return ci.dx+za+mn*ci.fontSize},Sa.yFn=function(ci){return ci.dy+ra+ci.fontSize*Ta},Sa.anchorFn=function(ci,bi){if(na){if(jr)return"end";if(Dr)return"start"}return!x(bi)||bi===0||bi===180?"middle":bi*Fn<0!==ta?"end":"start"},Sa.heightFn=function(ci,bi,ho){return bi<-60||bi>60?-.5*ho:mt.side==="top"!==ta?-ho:0};else if(ui==="y"){if(vi=!ta&&Kn==="left"||ta&&Kn==="right",Fn=vi?1:-1,ta&&(Fn*=-1),za=or,ra=Ar*Fn,Ta=0,!ta&&Math.abs(pi)===90&&(pi===-90&&Kn==="left"||pi===90&&Kn==="right"?Ta=ie:Ta=.5),ta){var Li=x(pi)?+pi:0;if(Li!==0){var Ni=e.deg2rad(Li);mn=Math.abs(Math.sin(Ni))*ie*Fn,Ta=0}}Sa.xFn=function(ci){return ci.dx+ot-(za+ci.fontSize*Ta)*Fn+mn*ci.fontSize},Sa.yFn=function(ci){return ci.dy+ra+ci.fontSize*ue},Sa.anchorFn=function(ci,bi){return x(bi)&&Math.abs(bi)===90?"middle":vi?"end":"start"},Sa.heightFn=function(ci,bi,ho){return mt.side==="right"&&(bi*=-1),bi<-30?-ho:bi<30?-.5*ho:0}}return Sa};function mr(mt){return[mt.text,mt.x,mt.axInfo,mt.font,mt.fontSize,mt.fontColor].join("_")}ee.drawTicks=function(mt,ot,Lr){Lr=Lr||{};var Er=ot._id+"tick",Mr=[].concat(ot.minor&&ot.minor.ticks?Lr.vals.filter(function(Or){return Or.minor&&!Or.noTick}):[]).concat(ot.ticks?Lr.vals.filter(function(Or){return!Or.minor&&!Or.noTick}):[]),br=Lr.layer.selectAll("path."+Er).data(Mr,mr);br.exit().remove(),br.enter().append("path").classed(Er,1).classed("ticks",1).classed("crisp",Lr.crisp!==!1).each(function(Or){return a.stroke(h.select(this),Or.minor?ot.minor.tickcolor:ot.tickcolor)}).style("stroke-width",function(Or){return o.crispRound(mt,Or.minor?ot.minor.tickwidth:ot.tickwidth,1)+"px"}).attr("d",Lr.path).style("display",null),Da(ot,[N]),br.attr("transform",Lr.transFn)},ee.drawGrid=function(mt,ot,Lr){if(Lr=Lr||{},ot.tickmode!=="sync"){var Er=ot._id+"grid",Mr=ot.minor&&ot.minor.showgrid,br=Mr?Lr.vals.filter(function(Sa){return Sa.minor}):[],Or=ot.showgrid?Lr.vals.filter(function(Sa){return!Sa.minor}):[],jr=Lr.counterAxis;if(jr&&ee.shouldShowZeroLine(mt,ot,jr))for(var Dr=ot.tickmode==="array",Hr=0;Hr=0;Ar--){var oa=Ar?At:or;if(oa){var ga=oa.selectAll("path."+Er).data(Ar?Or:br,mr);ga.exit().remove(),ga.enter().append("path").classed(Er,1).classed("crisp",Lr.crisp!==!1),ga.attr("transform",Lr.transFn).attr("d",Lr.path).each(function(Sa){return a.stroke(h.select(this),Sa.minor?ot.minor.gridcolor:ot.gridcolor||"#ddd")}).style("stroke-dasharray",function(Sa){return o.dashStyle(Sa.minor?ot.minor.griddash:ot.griddash,Sa.minor?ot.minor.gridwidth:ot.gridwidth)}).style("stroke-width",function(Sa){return(Sa.minor?ta:ot._gw)+"px"}).style("display",null),typeof Lr.path=="function"&&ga.attr("d",Lr.path)}}Da(ot,[O,P])}},ee.drawZeroLine=function(mt,ot,Lr){Lr=Lr||Lr;var Er=ot._id+"zl",Mr=ee.shouldShowZeroLine(mt,ot,Lr.counterAxis),br=Lr.layer.selectAll("path."+Er).data(Mr?[{x:0,id:ot._id}]:[]);br.exit().remove(),br.enter().append("path").classed(Er,1).classed("zl",1).classed("crisp",Lr.crisp!==!1).each(function(){Lr.layer.selectAll("path").sort(function(Or,jr){return Q(Or.id,jr.id)})}),br.attr("transform",Lr.transFn).attr("d",Lr.path).call(a.stroke,ot.zerolinecolor||a.defaultLine).style("stroke-width",o.crispRound(mt,ot.zerolinewidth,ot._gw||1)+"px").style("display",null),Da(ot,[B])},ee.drawLabels=function(mt,ot,Lr){Lr=Lr||{};var Er=mt._fullLayout,Mr=ot._id,br=ot.zerolinelayer==="above traces",Or=Lr.cls||Mr+"tick",jr=Lr.vals.filter(function(Ei){return Ei.text}),Dr=Lr.labelFns,Hr=Lr.secondary?0:ot.tickangle,na=(ot._prevTickAngles||{})[Or],ta=Lr.layer.selectAll("g."+Or).data(ot.showticklabels?jr:[],mr),At=[];ta.enter().append("g").classed(Or,1).append("text").attr("text-anchor","middle").each(function(Ei){var Ri=h.select(this),xo=mt._promises.length;Ri.call(r.positionText,Dr.xFn(Ei),Dr.yFn(Ei)).call(o.font,{family:Ei.font,size:Ei.fontSize,color:Ei.fontColor,weight:Ei.fontWeight,style:Ei.fontStyle,variant:Ei.fontVariant,textcase:Ei.fontTextcase,lineposition:Ei.fontLineposition,shadow:Ei.fontShadow}).text(Ei.text).call(r.convertToTspans,mt),mt._promises[xo]?At.push(mt._promises.pop().then(function(){or(Ri,Hr)})):or(Ri,Hr)}),Da(ot,[U]),ta.exit().remove(),Lr.repositionOnUpdate&&ta.each(function(Ei){h.select(this).select("text").call(r.positionText,Dr.xFn(Ei),Dr.yFn(Ei))});function or(Ei,Ri){Ei.each(function(xo){var So=h.select(this),bo=So.select(".text-math-group"),Ui=Dr.anchorFn(xo,Ri),no=Lr.transFn.call(So.node(),xo)+(x(Ri)&&+Ri!=0?" rotate("+Ri+","+Dr.xFn(xo)+","+(Dr.yFn(xo)-xo.fontSize/2)+")":""),cs=r.lineCount(So),ks=le*xo.fontSize,ms=Dr.heightFn(xo,x(Ri)?+Ri:0,(cs-1)*ks);if(ms&&(no+=t(0,ms)),bo.empty()){var Mo=So.select("text");Mo.attr({transform:no,"text-anchor":Ui}),Mo.style("display",null),ot._adjustTickLabelsOverflow&&ot._adjustTickLabelsOverflow()}else{var kn=o.bBox(bo.node()).width,fi=kn*{end:-.5,start:.5}[Ui];bo.attr("transform",no+t(fi,0))}})}ot._adjustTickLabelsOverflow=function(){var Ei=ot.ticklabeloverflow;if(!(!Ei||Ei==="allow")){var Ri=Ei.indexOf("hide")!==-1,xo=ot._id.charAt(0)==="x",So=0,bo=xo?mt._fullLayout.width:mt._fullLayout.height;if(Ei.indexOf("domain")!==-1){var Ui=e.simpleMap(ot.range,ot.r2l);So=ot.l2p(Ui[0])+ot._offset,bo=ot.l2p(Ui[1])+ot._offset}var no=Math.min(So,bo),cs=Math.max(So,bo),ks=ot.side,ms=1/0,Mo=-1/0;ta.each(function(Ss){var Gi=h.select(this),js=Gi.select(".text-math-group");if(js.empty()){var No=o.bBox(Gi.node()),es=0;xo?(No.right>cs||No.leftcs||No.top+(ot.tickangle?0:Ss.fontSize/4)ot["_visibleLabelMin_"+Ui._id]?Gi.style("display","none"):cs.K==="tick"&&!no&&Gi.node().style.display!=="none"&&Gi.style("display",null)})})})})},or(ta,na+1?na:Hr);function Ar(){return At.length&&Promise.all(At)}var oa=null;function ga(){if(or(ta,Hr),jr.length&&ot.autotickangles&&(ot.type!=="log"||String(ot.dtick).charAt(0)!=="D")){oa=ot.autotickangles[0];var Ei=0,Ri=[],xo,So=1;ta.each(function(ys){Ei=Math.max(Ei,ys.fontSize);var wl=ot.l2p(ys.x),Xs=Xa(this),Vl=o.bBox(Xs.node());So=Math.max(So,r.lineCount(Xs)),Ri.push({top:0,bottom:10,height:10,left:wl-Vl.width/2,right:wl+Vl.width/2+2,width:Vl.width+2})});var bo=(ot.tickson==="boundaries"||ot.showdividers)&&!Lr.secondary,Ui=jr.length,no=Math.abs((jr[Ui-1].x-jr[0].x)*ot._m)/(Ui-1),cs=bo?no/2:no,ks=bo?ot.ticklen:Ei*1.25*So,ms=Math.sqrt(Math.pow(cs,2)+Math.pow(ks,2)),Mo=cs/ms,kn=ot.autotickangles.map(function(ys){return ys*Math.PI/180}),fi=kn.find(function(ys){return Math.abs(Math.cos(ys))<=Mo});fi===void 0&&(fi=kn.reduce(function(ys,wl){return Math.abs(Math.cos(ys))Bo*ho&&(Ni=ho,pi[ui]=vi[ui]=ci[ui])}var gs=Math.abs(Ni-Li);gs-Fn>0?(gs-=Fn,Fn*=1+Fn/gs):Fn=0,ot._id.charAt(0)!=="y"&&(Fn=-Fn),pi[Kn]=ra.p2r(ra.r2p(vi[Kn])+mn*Fn),ra.autorange==="min"||ra.autorange==="max reversed"?(pi[0]=null,ra._rangeInitial0=void 0,ra._rangeInitial1=void 0):(ra.autorange==="max"||ra.autorange==="min reversed")&&(pi[1]=null,ra._rangeInitial0=void 0,ra._rangeInitial1=void 0),Er._insideTickLabelsUpdaterange[ra._name+".range"]=pi}var ro=e.syncOrAsync(Sa);return ro&&ro.then&&mt._promises.push(ro),ro};function ia(mt,ot,Lr){var Er=ot._id+"divider",Mr=Lr.vals,br=Lr.layer.selectAll("path."+Er).data(Mr,mr);br.exit().remove(),br.enter().insert("path",":first-child").classed(Er,1).classed("crisp",1).call(a.stroke,ot.dividercolor).style("stroke-width",o.crispRound(mt,ot.dividerwidth,1)+"px"),br.attr("transform",Lr.transFn).attr("d",Lr.path)}ee.getPxPosition=function(mt,ot){var Lr=mt._fullLayout._size,Er=ot._id.charAt(0),Mr=ot.side,br;if(ot.anchor!=="free"?br=ot._anchorAxis:Er==="x"?br={_offset:Lr.t+(1-(ot.position||0))*Lr.h,_length:0}:Er==="y"&&(br={_offset:Lr.l+(ot.position||0)*Lr.w+ot._shift,_length:0}),Mr==="top"||Mr==="left")return br._offset;if(Mr==="bottom"||Mr==="right")return br._offset+br._length};function Ia(mt){var ot=mt.title.font.size,Lr=(mt.title.text.match(r.BR_TAG_ALL)||[]).length;return mt.title.hasOwnProperty("standoff")?ot*(ie+Lr*le):Lr?ot*(Lr+1)*le:ot}function La(mt,ot){var Lr=mt._fullLayout,Er=ot._id,Mr=Er.charAt(0),br=ot.title.font.size,Or,jr=(ot.title.text.match(r.BR_TAG_ALL)||[]).length;if(ot.title.hasOwnProperty("standoff"))ot.side==="bottom"||ot.side==="right"?Or=ot._depth+ot.title.standoff+br*ie:(ot.side==="top"||ot.side==="left")&&(Or=ot._depth+ot.title.standoff+br*(ue+jr*le));else{var Dr=wa(ot);if(ot.type==="multicategory")Or=ot._depth;else{var Hr=1.5*br;Dr&&(Hr=.5*br,ot.ticks==="outside"&&(Hr+=ot.ticklen)),Or=10+Hr+(ot.linewidth?ot.linewidth-1:0)}Dr||(Mr==="x"?Or+=ot.side==="top"?br*(ot.showticklabels?1:0):br*(ot.showticklabels?1.5:.5):Or+=ot.side==="right"?br*(ot.showticklabels?1:.5):br*(ot.showticklabels?.5:0))}var na=ee.getPxPosition(mt,ot),ta,At,or;Mr==="x"?(At=ot._offset+ot._length/2,or=ot.side==="top"?na-Or:na+Or):(or=ot._offset+ot._length/2,At=ot.side==="right"?na+Or:na-Or,ta={rotate:"-90",offset:0});var Ar;if(ot.type!=="multicategory"){var oa=ot._selections[ot._id+"tick"];if(Ar={selection:oa,side:ot.side},oa&&oa.node()&&oa.node().parentNode){var ga=o.getTranslate(oa.node().parentNode);Ar.offsetLeft=ga.x,Ar.offsetTop=ga.y}ot.title.hasOwnProperty("standoff")&&(Ar.pad=0)}return ot._titleStandoff=Or,i.draw(mt,Er+"title",{propContainer:ot,propName:ot._name+".title.text",placeholder:Lr._dfltTitle[Mr],avoid:Ar,transform:ta,attributes:{x:At,y:or,"text-anchor":"middle"}})}ee.shouldShowZeroLine=function(mt,ot,Lr){var Er=e.simpleMap(ot.range,ot.r2l);return Er[0]*Er[1]<=0&&ot.zeroline&&(ot.type==="linear"||ot.type==="-")&&!(ot.rangebreaks&&ot.maskBreaks(0)===F)&&(Aa(ot,0)||!Ga(mt,ot,Lr,Er)||ba(mt,ot))},ee.clipEnds=function(mt,ot){return ot.filter(function(Lr){return Aa(mt,Lr.x)})};function Aa(mt,ot){var Lr=mt.l2p(ot);return Lr>1&&Lr1)for(Mr=1;Mr=Mr.min&&mt=I:/%L/.test(ot)?mt>=R:/%[SX]/.test(ot)?mt>=y:/%M/.test(ot)?mt>=g:/%[HI]/.test(ot)?mt>=u:/%p/.test(ot)?mt>=d:/%[Aadejuwx]/.test(ot)?mt>=b:/%[UVW]/.test(ot)?mt>=_:/%[Bbm]/.test(ot)?mt>=M:/%[q]/.test(ot)?mt>=m:/%[Yy]/.test(ot)?mt>=v:!0}}}),Ob=He({"src/plots/cartesian/autorange_options_defaults.js"(Y,H){H.exports=function(x,A,E){var e,t;if(E){var r=A==="reversed"||A==="min reversed"||A==="max reversed";e=E[r?1:0],t=E[r?0:1]}var i=x("autorangeoptions.minallowed",t===null?e:void 0),a=x("autorangeoptions.maxallowed",e===null?t:void 0);i===void 0&&x("autorangeoptions.clipmin"),a===void 0&&x("autorangeoptions.clipmax"),x("autorangeoptions.include")}}}),Bb=He({"src/plots/cartesian/range_defaults.js"(Y,H){var h=Ob();H.exports=function(A,E,e,t){var r=E._template||{},i=E.type||r.type||"-";e("minallowed"),e("maxallowed");var a=e("range");if(!a){var o;!t.noInsiderange&&i!=="log"&&(o=e("insiderange"),o&&(o[0]===null||o[1]===null)&&(E.insiderange=!1,o=void 0),o&&(a=e("range",o)))}var n=E.getAutorangeDflt(a,t),s=e("autorange",n),c;a&&(a[0]===null&&a[1]===null||(a[0]===null||a[1]===null)&&(s==="reversed"||s===!0)||a[0]!==null&&(s==="min"||s==="max reversed")||a[1]!==null&&(s==="max"||s==="min reversed"))&&(a=void 0,delete E.range,E.autorange=!0,c=!0),c||(n=E.getAutorangeDflt(a,t),s=e("autorange",n)),s&&(h(e,s,a),(i==="linear"||i==="-")&&e("rangemode")),E.cleanRange()}}}),TM=He({"node_modules/mouse-event-offset/index.js"(Y,H){var h={left:0,top:0};H.exports=x;function x(E,e,t){e=e||E.currentTarget||E.srcElement,Array.isArray(t)||(t=[0,0]);var r=E.clientX||0,i=E.clientY||0,a=A(e);return t[0]=r-a.left,t[1]=i-a.top,t}function A(E){return E===window||E===document||E===document.body?h:E.getBoundingClientRect()}}}),u1=He({"node_modules/has-passive-events/index.js"(Y,H){var h=Cb();function x(){var A=!1;try{var E=Object.defineProperty({},"passive",{get:function(){A=!0}});window.addEventListener("test",null,E),window.removeEventListener("test",null,E)}catch{A=!1}return A}H.exports=h&&x()}}),AM=He({"src/components/dragelement/align.js"(Y,H){H.exports=function(x,A,E,e,t){var r=(x-E)/(e-E),i=r+A/(e-E),a=(r+i)/2;return t==="left"||t==="bottom"?r:t==="center"||t==="middle"?a:t==="right"||t==="top"?i:r<2/3-a?r:i>4/3-a?i:a}}}),SM=He({"src/components/dragelement/cursor.js"(Y,H){var h=Qr(),x=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];H.exports=function(E,e,t,r){return t==="left"?E=0:t==="center"?E=1:t==="right"?E=2:E=h.constrain(Math.floor(E*3),0,2),r==="bottom"?e=0:r==="middle"?e=1:r==="top"?e=2:e=h.constrain(Math.floor(e*3),0,2),x[e][E]}}}),MM=He({"src/components/dragelement/unhover.js"(Y,H){var h=O0(),x=o1(),A=$g().getGraphDiv,E=Yg(),e=H.exports={};e.wrapped=function(t,r,i){t=A(t),t._fullLayout&&x.clear(t._fullLayout._uid+E.HOVERID),e.raw(t,r,i)},e.raw=function(r,i){var a=r._fullLayout,o=r._hoverdata;i||(i={}),!(i.target&&!r._dragged&&h.triggerHandler(r,"plotly_beforehover",i)===!1)&&(a._hoverlayer.selectAll("g").remove(),a._hoverlayer.selectAll("line").remove(),a._hoverlayer.selectAll("circle").remove(),r._hoverdata=void 0,i.target&&o&&r.emit("plotly_unhover",{event:i,points:o}))}}}),ph=He({"src/components/dragelement/index.js"(Y,H){var h=TM(),x=Lb(),A=u1(),E=Qr().removeElement,e=jf(),t=H.exports={};t.align=AM(),t.getCursor=SM();var r=MM();t.unhover=r.wrapped,t.unhoverRaw=r.raw,t.init=function(n){var s=n.gd,c=1,f=s._context.doubleClickDelay,p=n.element,v,T,l,m,w,S,M,_;s._mouseDownTime||(s._mouseDownTime=0),p.style.pointerEvents="all",p.onmousedown=u,A?(p._ontouchstart&&p.removeEventListener("touchstart",p._ontouchstart),p._ontouchstart=u,p.addEventListener("touchstart",u,{passive:!1})):p.ontouchstart=u;function b(R,I,z){return Math.abs(R)"u"&&typeof R.clientY>"u"&&(R.clientX=v,R.clientY=T),l=new Date().getTime(),l-s._mouseDownTimef&&(c=Math.max(c-1,1)),s._dragged)n.doneFn&&n.doneFn();else{var I;S.target===M?I=S:(I={target:M,srcElement:M,toElement:M},Object.keys(S).concat(Object.keys(S.__proto__)).forEach(z=>{var F=S[z];!I[z]&&typeof F!="function"&&(I[z]=F)})),n.clickFn&&n.clickFn(c,I),_||M.dispatchEvent(new MouseEvent("click",R))}s._dragging=!1,s._dragged=!1}};function i(){var o=document.createElement("div");o.className="dragcover";var n=o.style;return n.position="fixed",n.left=0,n.right=0,n.top=0,n.bottom=0,n.zIndex=999999999,n.background="none",document.body.appendChild(o),o}t.coverSlip=i;function a(o){return h(o.changedTouches?o.changedTouches[0]:o,document.body)}}}),mv=He({"src/lib/setcursor.js"(Y,H){H.exports=function(x,A){(x.attr("class")||"").split(" ").forEach(function(E){E.indexOf("cursor-")===0&&x.classed(E,!1)}),A&&x.classed("cursor-"+A,!0)}}}),EM=He({"src/lib/override_cursor.js"(Y,H){var h=mv(),x="data-savedcursor",A="!!";H.exports=function(e,t){var r=e.attr(x);if(t){if(!r){for(var i=(e.attr("class")||"").split(" "),a=0;a(a==="legend"?1:0));if(R===!1&&(n[a]=void 0),!(R===!1&&!c.uirevision)&&(p("uirevision",n.uirevision),R!==!1)){p("borderwidth");var I=p("orientation"),z=p("yref"),F=p("xref"),B=I==="h",O=z==="paper",P=F==="paper",N,U,X,te="left";B?(N=0,h.getComponentMethod("rangeslider","isVisible")(o.xaxis)?O?(U=1.1,X="bottom"):(U=1,X="top"):O?(U=-.1,X="top"):(U=0,X="bottom")):(U=1,X="auto",P?N=1.02:(N=1,te="right")),x.coerce(c,f,{x:{valType:"number",editType:"legend",min:P?-2:0,max:P?3:1,dflt:N}},"x"),x.coerce(c,f,{y:{valType:"number",editType:"legend",min:O?-2:0,max:O?3:1,dflt:U}},"y"),p("traceorder",b),r.isGrouped(n[a])&&p("tracegroupgap"),p("entrywidth"),p("entrywidthmode"),p("indentation"),p("itemsizing"),p("itemwidth"),p("itemclick"),p("itemdoubleclick"),p("groupclick"),p("xanchor",te),p("yanchor",X),p("maxheight"),p("valign"),x.noneOrAll(c,f,["x","y"]);var ue=p("title.text");if(ue){p("title.side",B?"left":"top");var ie=x.extendFlat({},v,{size:x.bigFont(v.size)});x.coerceFont(p,"title.font",ie)}}}}H.exports=function(o,n,s){var c,f=s.slice(),p=n.shapes;if(p)for(c=0;cR&&(y=R)}u[v][0]._groupMinRank=y,u[v][0]._preGroupSort=v}var I=function(N,U){return N[0]._groupMinRank-U[0]._groupMinRank||N[0]._preGroupSort-U[0]._preGroupSort},z=function(N,U){return N.trace.legendrank-U.trace.legendrank||N._preSort-U._preSort};for(u.forEach(function(N,U){N[0]._preGroupSort=U}),u.sort(I),v=0;v0)se=J.width;else return 0;return d?Z:Math.min(se,ee)};S.each(function(q){var J=h.select(this),ee=A.ensureSingle(J,"g","layers");ee.style("opacity",q[0].trace.opacity);var Z=_.indentation,se=_.valign,Q=q[0].lineHeight,V=q[0].height;if(se==="middle"&&Z===0||!Q||!V)ee.attr("transform",null);else{var re={top:1,bottom:-1}[se],ae=re*(.5*(Q-V+3))||0,fe=_.indentation;ee.attr("transform",E(fe,ae))}var xe=ee.selectAll("g.legendfill").data([q]);xe.enter().append("g").classed("legendfill",!0);var Ae=ee.selectAll("g.legendlines").data([q]);Ae.enter().append("g").classed("legendlines",!0);var Pe=ee.selectAll("g.legendsymbols").data([q]);Pe.enter().append("g").classed("legendsymbols",!0),Pe.selectAll("g.legendpoints").data([q]).enter().append("g").classed("legendpoints",!0)}).each(le).each(F).each(O).each(B).each(N).each(ue).each(te).each(I).each(z).each(U).each(X);function I(q){var J=l(q),ee=J.showFill,Z=J.showLine,se=J.showGradientLine,Q=J.showGradientFill,V=J.anyFill,re=J.anyLine,ae=q[0],fe=ae.trace,xe,Ae,Pe=r(fe),Ce=Pe.colorscale,je=Pe.reversescale,at=function(De){if(De.size())if(ee)e.fillGroupStyle(De,M,!0);else{var et="legendfill-"+fe.uid;e.gradient(De,M,et,T(je),Ce,"fill")}},tt=function(De){if(De.size()){var et="legendline-"+fe.uid;e.lineGroupStyle(De),e.gradient(De,M,et,T(je),Ce,"stroke")}},Je=i.hasMarkers(fe)||!V?"M5,0":re?"M5,-2":"M5,-3",Ze=h.select(this),Me=Ze.select(".legendfill").selectAll("path").data(ee||Q?[q]:[]);if(Me.enter().append("path").classed("js-fill",!0),Me.exit().remove(),Me.attr("d",Je+"h"+u+"v6h-"+u+"z").call(at),Z||se){var we=R(void 0,fe.line,p,c);Ae=A.minExtend(fe,{line:{width:we}}),xe=[A.minExtend(ae,{trace:Ae})]}var he=Ze.select(".legendlines").selectAll("path").data(Z||se?[xe]:[]);he.enter().append("path").classed("js-line",!0),he.exit().remove(),he.attr("d",Je+(se?"l"+u+",0.0001":"h"+u)).call(Z?e.lineGroupStyle:tt)}function z(q){var J=l(q),ee=J.anyFill,Z=J.anyLine,se=J.showLine,Q=J.showMarker,V=q[0],re=V.trace,ae=!Q&&!Z&&!ee&&i.hasText(re),fe,xe;function Ae(Me,we,he,De){var et=A.nestedProperty(re,Me).get(),nt=A.isArrayOrTypedArray(et)&&we?we(et):et;if(d&&nt&&De!==void 0&&(nt=De),he){if(nthe[1])return he[1]}return nt}function Pe(Me){return V._distinct&&V.index&&Me[V.index]?Me[V.index]:Me[0]}if(Q||ae||se){var Ce={},je={};if(Q){Ce.mc=Ae("marker.color",Pe),Ce.mx=Ae("marker.symbol",Pe),Ce.mo=Ae("marker.opacity",A.mean,[.2,1]),Ce.mlc=Ae("marker.line.color",Pe),Ce.mlw=Ae("marker.line.width",A.mean,[0,5],f),je.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var at=Ae("marker.size",A.mean,[2,16],s);Ce.ms=at,je.marker.size=at}se&&(je.line={width:Ae("line.width",Pe,[0,10],c)}),ae&&(Ce.tx="Aa",Ce.tp=Ae("textposition",Pe),Ce.ts=10,Ce.tc=Ae("textfont.color",Pe),Ce.tf=Ae("textfont.family",Pe),Ce.tw=Ae("textfont.weight",Pe),Ce.ty=Ae("textfont.style",Pe),Ce.tv=Ae("textfont.variant",Pe),Ce.tC=Ae("textfont.textcase",Pe),Ce.tE=Ae("textfont.lineposition",Pe),Ce.tS=Ae("textfont.shadow",Pe)),fe=[A.minExtend(V,Ce)],xe=A.minExtend(re,je),xe.selectedpoints=null,xe.texttemplate=null}var tt=h.select(this).select("g.legendpoints"),Je=tt.selectAll("path.scatterpts").data(Q?fe:[]);Je.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",y),Je.exit().remove(),Je.call(e.pointStyle,xe,M),Q&&(fe[0].mrc=3);var Ze=tt.selectAll("g.pointtext").data(ae?fe:[]);Ze.enter().append("g").classed("pointtext",!0).append("text").attr("transform",y),Ze.exit().remove(),Ze.selectAll("text").call(e.textPointStyle,xe,M)}function F(q){var J=q[0].trace,ee=J.type==="waterfall";if(q[0]._distinct&&ee){var Z=q[0].trace[q[0].dir].marker;return q[0].mc=Z.color,q[0].mlw=Z.line.width,q[0].mlc=Z.line.color,P(q,this,"waterfall")}var se=[];J.visible&&ee&&(se=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 Q=h.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(se);Q.enter().append("path").classed("legendwaterfall",!0).attr("transform",y).style("stroke-miterlimit",1),Q.exit().remove(),Q.each(function(V){var re=h.select(this),ae=J[V[0]].marker,fe=R(void 0,ae.line,v,f);re.attr("d",V[1]).style("stroke-width",fe+"px").call(t.fill,ae.color),fe&&re.call(t.stroke,ae.line.color)})}function B(q){P(q,this)}function O(q){P(q,this,"funnel")}function P(q,J,ee){var Z=q[0].trace,se=Z.marker||{},Q=se.line||{},V=se.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",re=ee?Z.visible&&Z.type===ee:x.traceIs(Z,"bar"),ae=h.select(J).select("g.legendpoints").selectAll("path.legend"+ee).data(re?[q]:[]);ae.enter().append("path").classed("legend"+ee,!0).attr("d",V).attr("transform",y),ae.exit().remove(),ae.each(function(fe){var xe=h.select(this),Ae=fe[0],Pe=R(Ae.mlw,se.line,v,f);xe.style("stroke-width",Pe+"px");var Ce=Ae.mcc;if(!_._inHover&&"mc"in Ae){var je=r(se),at=je.mid;at===void 0&&(at=(je.max+je.min)/2),Ce=e.tryColorscale(se,"")(at)}var tt=Ce||Ae.mc||se.color,Je=se.pattern,Ze=e.getPatternAttr,Me=Je&&(Ze(Je.shape,0,"")||Ze(Je.path,0,""));if(Me){var we=Ze(Je.bgcolor,0,null),he=Ze(Je.fgcolor,0,null),De=Je.fgopacity,et=m(Je.size,8,10),nt=m(Je.solidity,.5,1),Ke="legend-"+Z.uid;xe.call(e.pattern,"legend",M,Ke,Me,et,nt,Ce,Je.fillmode,we,he,De)}else xe.call(t.fill,tt);Pe&&t.stroke(xe,Ae.mlc||Q.color)})}function N(q){var J=q[0].trace,ee=h.select(this).select("g.legendpoints").selectAll("path.legendbox").data(J.visible&&x.traceIs(J,"box-violin")?[q]:[]);ee.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",y),ee.exit().remove(),ee.each(function(){var Z=h.select(this);if((J.boxpoints==="all"||J.points==="all")&&t.opacity(J.fillcolor)===0&&t.opacity((J.line||{}).color)===0){var se=A.minExtend(J,{marker:{size:d?s:A.constrain(J.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});ee.call(e.pointStyle,se,M)}else{var Q=R(void 0,J.line,v,f);Z.style("stroke-width",Q+"px").call(t.fill,J.fillcolor),Q&&t.stroke(Z,J.line.color)}})}function U(q){var J=q[0].trace,ee=h.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(J.visible&&J.type==="candlestick"?[q,q]:[]);ee.enter().append("path").classed("legendcandle",!0).attr("d",function(Z,se){return se?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",y).style("stroke-miterlimit",1),ee.exit().remove(),ee.each(function(Z,se){var Q=h.select(this),V=J[se?"increasing":"decreasing"],re=R(void 0,V.line,v,f);Q.style("stroke-width",re+"px").call(t.fill,V.fillcolor),re&&t.stroke(Q,V.line.color)})}function X(q){var J=q[0].trace,ee=h.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(J.visible&&J.type==="ohlc"?[q,q]:[]);ee.enter().append("path").classed("legendohlc",!0).attr("d",function(Z,se){return se?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",y).style("stroke-miterlimit",1),ee.exit().remove(),ee.each(function(Z,se){var Q=h.select(this),V=J[se?"increasing":"decreasing"],re=R(void 0,V.line,v,f);Q.style("fill","none").call(e.dashLine,V.line.dash,re),re&&t.stroke(Q,V.line.color)})}function te(q){ie(q,this,"pie")}function ue(q){ie(q,this,"funnelarea")}function ie(q,J,ee){var Z=q[0],se=Z.trace,Q=ee?se.visible&&se.type===ee:x.traceIs(se,ee),V=h.select(J).select("g.legendpoints").selectAll("path.legend"+ee).data(Q?[q]:[]);if(V.enter().append("path").classed("legend"+ee,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",y),V.exit().remove(),V.size()){var re=se.marker||{},ae=R(o(re.line.width,Z.pts),re.line,v,f),fe="pieLike",xe=A.minExtend(se,{marker:{line:{width:ae}}},fe),Ae=A.minExtend(Z,{trace:xe},fe);a(V,Ae,xe,M)}}function le(q){var J=q[0].trace,ee,Z=[];if(J.visible)switch(J.type){case"histogram2d":case"heatmap":Z=[["M-15,-2V4H15V-2Z"]],ee=!0;break;case"choropleth":case"choroplethmapbox":case"choroplethmap":Z=[["M-6,-6V6H6V-6Z"]],ee=!0;break;case"densitymapbox":case"densitymap":Z=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],ee="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"]],ee=!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"]],ee=!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"]],ee=!0;break;case"mesh3d":Z=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],ee=!1;break;case"volume":Z=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],ee=!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"]],ee=!1;break}var se=h.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(Z);se.enter().append("path").classed("legend3dandfriends",!0).attr("transform",y).style("stroke-miterlimit",1),se.exit().remove(),se.each(function(Q,V){var re=h.select(this),ae=r(J),fe=ae.colorscale,xe=ae.reversescale,Ae=function(at){if(at.size()){var tt="legendfill-"+J.uid;e.gradient(at,M,tt,T(xe,ee==="radial"),fe,"fill")}},Pe;if(fe){if(!ee){var je=fe.length;Pe=V===0?fe[xe?je-1:0][1]:V===1?fe[xe?0:je-1][1]:fe[Math.floor((je-1)/2)][1]}}else{var Ce=J.vertexcolor||J.facecolor||J.color;Pe=A.isArrayOrTypedArray(Ce)?Ce[V]||Ce[0]:Ce}re.attr("d",Q[0]),Pe?re.call(t.fill,Pe):re.call(Ae)})}};function T(w,S){var M=S?"radial":"horizontal";return M+(w?"":"reversed")}function l(w){var S=w[0].trace,M=S.contours,_=i.hasLines(S),b=i.hasMarkers(S),d=S.visible&&S.fill&&S.fill!=="none",u=!1,g=!1;if(M){var y=M.coloring;y==="lines"?u=!0:_=y==="none"||y==="heatmap"||M.showlines,M.type==="constraint"?d=M._operation!=="=":(y==="fill"||y==="heatmap")&&(g=!0)}return{showMarker:b,showLine:_,showFill:d,showGradientLine:u,showGradientFill:g,anyLine:_||u,anyFill:d||g}}function m(w,S,M){return w&&A.isArrayOrTypedArray(w)?S:w>M?M:w}}}),qb=He({"src/components/legend/draw.js"(Y,H){var h=yi(),x=Qr(),A=$u(),E=qi(),e=O0(),t=ph(),r=Io(),i=zi(),a=jl(),o=kM(),n=jb(),s=Pf(),c=s.LINE_SPACING,f=s.FROM_TL,p=s.FROM_BR,v=CM(),T=Vb(),l=c1(),m=1,w=/^legend[0-9]*$/;H.exports=function(U,X){if(X)M(U,X);else{var te=U._fullLayout,ue=te._legends,ie=te._infolayer.selectAll('[class^="legend"]');ie.each(function(){var ee=h.select(this),Z=ee.attr("class"),se=Z.split(" ")[0];se.match(w)&&ue.indexOf(se)===-1&&ee.remove()});for(var le=0;le1)}var re=te.hiddenlabels||[];if(!q&&(!te.showlegend||!J.length))return le.selectAll("."+ue).remove(),te._topdefs.select("#"+ie).remove(),A.autoMargin(N,ue);var ae=x.ensureSingle(le,"g",ue,function(Je){q||Je.attr("pointer-events","all")}),fe=x.ensureSingleById(te._topdefs,"clipPath",ie,function(Je){Je.append("rect")}),xe=x.ensureSingle(ae,"rect","bg",function(Je){Je.attr("shape-rendering","crispEdges")});xe.call(i.stroke,X.bordercolor).call(i.fill,X.bgcolor).style("stroke-width",X.borderwidth+"px");var Ae=x.ensureSingle(ae,"g","scrollbox"),Pe=X.title;X._titleWidth=0,X._titleHeight=0;var Ce;Pe.text?(Ce=x.ensureSingle(Ae,"text",ue+"titletext"),Ce.attr("text-anchor","start").call(r.font,Pe.font).text(Pe.text),y(Ce,Ae,N,X,m)):Ae.selectAll("."+ue+"titletext").remove();var je=x.ensureSingle(ae,"rect","scrollbar",function(Je){Je.attr(n.scrollBarEnterAttrs).call(i.fill,n.scrollBarColor)}),at=Ae.selectAll("g.groups").data(J);at.enter().append("g").attr("class","groups"),at.exit().remove();var tt=at.selectAll("g.traces").data(x.identity);tt.enter().append("g").attr("class","traces"),tt.exit().remove(),tt.style("opacity",function(Je){var Ze=Je[0].trace;return E.traceIs(Ze,"pie-like")?re.indexOf(Je[0].label)!==-1?.5:1:Ze.visible==="legendonly"?.5:1}).each(function(){h.select(this).call(d,N,X)}).call(T,N,X).each(function(){q||h.select(this).call(g,N,ue)}),x.syncOrAsync([A.previousPromises,function(){return z(N,at,tt,X)},function(){var Je=te._size,Ze=X.borderwidth,Me=X.xref==="paper",we=X.yref==="paper";if(Pe.text&&S(Ce,X,Ze),!q){var he,De;Me?he=Je.l+Je.w*X.x-f[B(X)]*X._width:he=te.width*X.x-f[B(X)]*X._width,we?De=Je.t+Je.h*(1-X.y)-f[O(X)]*X._effHeight:De=te.height*(1-X.y)-f[O(X)]*X._effHeight;var et=F(N,ue,he,De);if(et)return;if(te.margin.autoexpand){var nt=he,Ke=De;he=Me?x.constrain(he,0,te.width-X._width):nt,De=we?x.constrain(De,0,te.height-X._effHeight):Ke,he!==nt&&x.log("Constrain "+ue+".x to make legend fit inside graph"),De!==Ke&&x.log("Constrain "+ue+".y to make legend fit inside graph")}r.setTranslate(ae,he,De)}if(je.on(".drag",null),ae.on("wheel",null),q||X._height<=X._maxHeight||N._context.staticPlot){var Et=X._effHeight;q&&(Et=X._height),xe.attr({width:X._width-Ze,height:Et-Ze,x:Ze/2,y:Ze/2}),r.setTranslate(Ae,0,0),fe.select("rect").attr({width:X._width-2*Ze,height:Et-2*Ze,x:Ze,y:Ze}),r.setClipUrl(Ae,ie,N),r.setRect(je,0,0,0,0),delete X._scrollY}else{var kt=Math.max(n.scrollBarMinHeight,X._effHeight*X._effHeight/X._height),Ut=X._effHeight-kt-2*n.scrollBarMargin,Yt=X._height-X._effHeight,vr=Ut/Yt,hr=Math.min(X._scrollY||0,Yt);xe.attr({width:X._width-2*Ze+n.scrollBarWidth+n.scrollBarMargin,height:X._effHeight-Ze,x:Ze/2,y:Ze/2}),fe.select("rect").attr({width:X._width-2*Ze+n.scrollBarWidth+n.scrollBarMargin,height:X._effHeight-2*Ze,x:Ze,y:Ze+hr}),r.setClipUrl(Ae,ie,N),de(hr,kt,vr),ae.on("wheel",function(){hr=x.constrain(X._scrollY+h.event.deltaY/Ut*Yt,0,Yt),de(hr,kt,vr),hr!==0&&hr!==Yt&&h.event.preventDefault()});var Rr,dr,wr,yt=function(ht,bt,Ct){var Zt=(Ct-bt)/vr+ht;return x.constrain(Zt,0,Yt)},Fe=function(ht,bt,Ct){var Zt=(bt-Ct)/vr+ht;return x.constrain(Zt,0,Yt)},We=h.behavior.drag().on("dragstart",function(){var ht=h.event.sourceEvent;ht.type==="touchstart"?Rr=ht.changedTouches[0].clientY:Rr=ht.clientY,wr=hr}).on("drag",function(){var ht=h.event.sourceEvent;ht.buttons===2||ht.ctrlKey||(ht.type==="touchmove"?dr=ht.changedTouches[0].clientY:dr=ht.clientY,hr=yt(wr,Rr,dr),de(hr,kt,vr))});je.call(We);var Oe=h.behavior.drag().on("dragstart",function(){var ht=h.event.sourceEvent;ht.type==="touchstart"&&(Rr=ht.changedTouches[0].clientY,wr=hr)}).on("drag",function(){var ht=h.event.sourceEvent;ht.type==="touchmove"&&(dr=ht.changedTouches[0].clientY,hr=Fe(wr,Rr,dr),de(hr,kt,vr))});Ae.call(Oe)}function de(ht,bt,Ct){X._scrollY=N._fullLayout[ue]._scrollY=ht,r.setTranslate(Ae,0,-ht),r.setRect(je,X._width,n.scrollBarMargin+ht*Ct,n.scrollBarWidth,bt),fe.select("rect").attr("y",Ze+ht)}if(N._context.edits.legendPosition){var me,be,Ie,Xe;ae.classed("cursor-move",!0),t.init({element:ae.node(),gd:N,prepFn:function(ht){if(ht.target!==je.node()){var bt=r.getTranslate(ae);Ie=bt.x,Xe=bt.y}},moveFn:function(ht,bt){if(Ie!==void 0&&Xe!==void 0){var Ct=Ie+ht,Zt=Xe+bt;r.setTranslate(ae,Ct,Zt),me=t.align(Ct,X._width,Je.l,Je.l+Je.w,X.xanchor),be=t.align(Zt+X._height,-X._height,Je.t+Je.h,Je.t,X.yanchor)}},doneFn:function(){if(me!==void 0&&be!==void 0){var ht={};ht[ue+".x"]=me,ht[ue+".y"]=be,E.call("_guiRelayout",N,ht)}},clickFn:function(ht,bt){var Ct=le.selectAll("g.traces").filter(function(){var Zt=this.getBoundingClientRect();return bt.clientX>=Zt.left&&bt.clientX<=Zt.right&&bt.clientY>=Zt.top&&bt.clientY<=Zt.bottom});Ct.size()>0&&b(N,ae,Ct,ht,bt)}})}}],N)}}function _(N,U,X){var te=N[0],ue=te.width,ie=U.entrywidthmode,le=te.trace.legendwidth||U.entrywidth;return ie==="fraction"?U._maxWidth*le:X+(le||ue)}function b(N,U,X,te,ue){var ie=X.data()[0][0].trace,le={event:ue,node:X.node(),curveNumber:ie.index,expandedIndex:ie.index,data:N.data,layout:N.layout,frames:N._transitionData._frames,config:N._context,fullData:N._fullData,fullLayout:N._fullLayout};ie._group&&(le.group=ie._group),E.traceIs(ie,"pie-like")&&(le.label=X.datum()[0].label);var q=e.triggerHandler(N,"plotly_legendclick",le);if(te===1){if(q===!1)return;U._clickTimeout=setTimeout(function(){N._fullLayout&&o(X,N,te)},N._context.doubleClickDelay)}else if(te===2){U._clickTimeout&&clearTimeout(U._clickTimeout),N._legendMouseDownTime=0;var J=e.triggerHandler(N,"plotly_legenddoubleclick",le);J!==!1&&q!==!1&&o(X,N,te)}}function d(N,U,X){var te=P(X),ue=N.data()[0][0],ie=ue.trace,le=E.traceIs(ie,"pie-like"),q=!X._inHover&&U._context.edits.legendText&&!le,J=X._maxNameLength,ee,Z;ue.groupTitle?(ee=ue.groupTitle.text,Z=ue.groupTitle.font):(Z=X.font,X.entries?ee=ue.text:(ee=le?ue.label:ie.name,ie._meta&&(ee=x.templateString(ee,ie._meta))));var se=x.ensureSingle(N,"text",te+"text");se.attr("text-anchor","start").call(r.font,Z).text(q?u(ee,J):ee);var Q=X.indentation+X.itemwidth+n.itemGap*2;a.positionText(se,Q,0),q?se.call(a.makeEditable,{gd:U,text:ee}).call(y,N,U,X).on("edit",function(V){this.text(u(V,J)).call(y,N,U,X);var re=ue.trace._fullInput||{},ae={};return ae.name=V,re._isShape?E.call("_guiRelayout",U,"shapes["+ie.index+"].name",ae.name):E.call("_guiRestyle",U,ae,ie.index)}):y(se,N,U,X)}function u(N,U){var X=Math.max(4,U);if(N&&N.trim().length>=X/2)return N;N=N||"";for(var te=X-N.length;te>0;te--)N+=" ";return N}function g(N,U,X){var te=U._context.doubleClickDelay,ue,ie=1,le=x.ensureSingle(N,"rect",X+"toggle",function(q){U._context.staticPlot||q.style("cursor","pointer").attr("pointer-events","all"),q.call(i.fill,"rgba(0,0,0,0)")});U._context.staticPlot||(le.on("mousedown",function(){ue=new Date().getTime(),ue-U._legendMouseDownTimete&&(ie=Math.max(ie-1,1)),b(U,q,N,ie,h.event)}}))}function y(N,U,X,te,ue){te._inHover&&N.attr("data-notex",!0),a.convertToTspans(N,X,function(){R(U,X,te,ue)})}function R(N,U,X,te){var ue=N.data()[0][0];if(!X._inHover&&ue&&!ue.trace.showlegend){N.remove();return}var ie=N.select("g[class*=math-group]"),le=ie.node(),q=P(X);X||(X=U._fullLayout[q]);var J=X.borderwidth,ee;te===m?ee=X.title.font:ue.groupTitle?ee=ue.groupTitle.font:ee=X.font;var Z=ee.size*c,se,Q;if(le){var V=r.bBox(le);se=V.height,Q=V.width,te===m?r.setTranslate(ie,J,J+se*.75):r.setTranslate(ie,0,se*.25)}else{var re="."+q+(te===m?"title":"")+"text",ae=N.select(re),fe=a.lineCount(ae),xe=ae.node();if(se=Z*fe,Q=xe?r.bBox(xe).width:0,te===m)X.title.side==="left"&&(Q+=n.itemGap*2),a.positionText(ae,J+n.titlePad,J+Z);else{var Ae=n.itemGap*2+X.indentation+X.itemwidth;ue.groupTitle&&(Ae=n.itemGap,Q-=X.indentation+X.itemwidth),a.positionText(ae,Ae,-Z*((fe-1)/2-.3))}}te===m?(X._titleWidth=Q,X._titleHeight=se):(ue.lineHeight=Z,ue.height=Math.max(se,16)+3,ue.width=Q)}function I(N){var U=0,X=0,te=N.title.side;return te&&(te.indexOf("left")!==-1&&(U=N._titleWidth),te.indexOf("top")!==-1&&(X=N._titleHeight)),[U,X]}function z(N,U,X,te){var ue=N._fullLayout,ie=P(te);te||(te=ue[ie]);var le=ue._size,q=l.isVertical(te),J=l.isGrouped(te),ee=te.entrywidthmode==="fraction",Z=te.borderwidth,se=2*Z,Q=n.itemGap,V=te.indentation+te.itemwidth+Q*2,re=2*(Z+Q),ae=O(te),fe=te.y<0||te.y===0&&ae==="top",xe=te.y>1||te.y===1&&ae==="bottom",Ae=te.tracegroupgap,Pe={};const{orientation:Ce,yref:je}=te;let{maxheight:at}=te;const tt=fe||xe||Ce!=="v"||je!=="paper";at||(at=tt?.5:1);const Je=tt?ue.height:le.h;te._maxHeight=Math.max(at>1?at:at*Je,30);var Ze=0;te._width=0,te._height=0;var Me=I(te);if(q)X.each(function(de){var me=de[0].height;r.setTranslate(this,Z+Me[0],Z+Me[1]+te._height+me/2+Q),te._height+=me,te._width=Math.max(te._width,de[0].width)}),Ze=V+te._width,te._width+=Q+V+se,te._height+=re,J&&(U.each(function(de,me){r.setTranslate(this,0,me*te.tracegroupgap)}),te._height+=(te._lgroupsLength-1)*te.tracegroupgap);else{var we=B(te),he=te.x<0||te.x===0&&we==="right",De=te.x>1||te.x===1&&we==="left",et=xe||fe,nt=ue.width/2;te._maxWidth=Math.max(he?et&&we==="left"?le.l+le.w:nt:De?et&&we==="right"?le.r+le.w:nt:le.w,2*V);var Ke=0,Et=0;X.each(function(de){var me=_(de,te,V);Ke=Math.max(Ke,me),Et+=me}),Ze=null;var kt=0;if(J){var Ut=0,Yt=0,vr=0;U.each(function(){var de=0,me=0;h.select(this).selectAll("g.traces").each(function(Ie){var Xe=_(Ie,te,V),ht=Ie[0].height;r.setTranslate(this,Me[0],Me[1]+Z+Q+ht/2+me),me+=ht,de=Math.max(de,Xe),Pe[Ie[0].trace.legendgroup]=de});var be=de+Q;Yt>0&&be+Z+Yt>te._maxWidth?(kt=Math.max(kt,Yt),Yt=0,vr+=Ut+Ae,Ut=me):Ut=Math.max(Ut,me),r.setTranslate(this,Yt,vr),Yt+=be}),te._width=Math.max(kt,Yt)+Z,te._height=vr+Ut+re}else{var hr=X.size(),Rr=Et+se+(hr-1)*Q=te._maxWidth&&(kt=Math.max(kt,Fe),wr=0,yt+=dr,te._height+=dr,dr=0),r.setTranslate(this,Me[0]+Z+wr,Me[1]+Z+yt+me/2+Q),Fe=wr+be+Q,wr+=Ie,dr=Math.max(dr,me)}),Rr?(te._width=wr+se,te._height=dr+re):(te._width=Math.max(kt,Fe)+se,te._height+=dr+re)}}te._width=Math.ceil(Math.max(te._width+Me[0],te._titleWidth+2*(Z+n.titlePad))),te._height=Math.ceil(Math.max(te._height+Me[1],te._titleHeight+2*(Z+n.itemGap))),te._effHeight=Math.min(te._height,te._maxHeight);var We=N._context.edits,Oe=We.legendText||We.legendPosition;X.each(function(de){var me=h.select(this).select("."+ie+"toggle"),be=de[0].height,Ie=de[0].trace.legendgroup,Xe=_(de,te,V);J&&Ie!==""&&(Xe=Pe[Ie]);var ht=Oe?V:Ze||Xe;!q&&!ee&&(ht+=Q/2),r.setRect(me,0,-be/2,ht,be)})}function F(N,U,X,te){var ue=N._fullLayout,ie=ue[U],le=B(ie),q=O(ie),J=ie.xref==="paper",ee=ie.yref==="paper";N._fullLayout._reservedMargin[U]={};var Z=ie.y<.5?"b":"t",se=ie.x<.5?"l":"r",Q={r:ue.width-X,l:X+ie._width,b:ue.height-te,t:te+ie._effHeight};if(J&&ee)return A.autoMargin(N,U,{x:ie.x,y:ie.y,l:ie._width*f[le],r:ie._width*p[le],b:ie._effHeight*p[q],t:ie._effHeight*f[q]});J?N._fullLayout._reservedMargin[U][Z]=Q[Z]:ee||ie.orientation==="v"?N._fullLayout._reservedMargin[U][se]=Q[se]:N._fullLayout._reservedMargin[U][Z]=Q[Z]}function B(N){return x.isRightAnchor(N)?"right":x.isCenterAnchor(N)?"center":"left"}function O(N){return x.isBottomAnchor(N)?"bottom":x.isMiddleAnchor(N)?"middle":"top"}function P(N){return N._id||"legend"}}}),Gb=He({"src/components/fx/hover.js"(Y){var H=yi(),h=Vi(),x=Uf(),A=Qr(),E=A.pushUnique,e=A.strTranslate,t=A.strRotate,r=O0(),i=jl(),a=EM(),o=Io(),n=zi(),s=ph(),c=wo(),f=jf().zindexSeparator,p=qi(),v=Dh(),T=Yg(),l=Ub(),m=qb(),w=T.YANGLE,S=Math.PI*w/180,M=1/Math.sin(S),_=Math.cos(S),b=Math.sin(S),d=T.HOVERARROWSIZE,u=T.HOVERTEXTPAD,g={box:!0,ohlc:!0,violin:!0,candlestick:!0},y={scatter:!0,scattergl:!0,splom:!0};function R(V,re){return V.distance-re.distance}Y.hover=function(re,ae,fe,xe){re=A.getGraphDiv(re);var Ae=ae.target;A.throttle(re._fullLayout._uid+T.HOVERID,T.HOVERMINTIME,function(){I(re,ae,fe,xe,Ae)})},Y.loneHover=function(re,ae){var fe=!0;Array.isArray(re)||(fe=!1,re=[re]);var xe=ae.gd,Ae=Z(xe),Pe=se(xe),Ce=re.map(function(De){var et=De._x0||De.x0||De.x||0,nt=De._x1||De.x1||De.x||0,Ke=De._y0||De.y0||De.y||0,Et=De._y1||De.y1||De.y||0,kt=De.eventData;if(kt){var Ut=Math.min(et,nt),Yt=Math.max(et,nt),vr=Math.min(Ke,Et),hr=Math.max(Ke,Et),Rr=De.trace;if(p.traceIs(Rr,"gl3d")){var dr=xe._fullLayout[Rr.scene]._scene.container,wr=dr.offsetLeft,yt=dr.offsetTop;Ut+=wr,Yt+=wr,vr+=yt,hr+=yt}kt.bbox={x0:Ut+Pe,x1:Yt+Pe,y0:vr+Ae,y1:hr+Ae},ae.inOut_bbox&&ae.inOut_bbox.push(kt.bbox)}else kt=!1;return{color:De.color||n.defaultLine,x0:De.x0||De.x||0,x1:De.x1||De.x||0,y0:De.y0||De.y||0,y1:De.y1||De.y||0,xLabel:De.xLabel,yLabel:De.yLabel,zLabel:De.zLabel,text:De.text,name:De.name,idealAlign:De.idealAlign,borderColor:De.borderColor,fontFamily:De.fontFamily,fontSize:De.fontSize,fontColor:De.fontColor,fontWeight:De.fontWeight,fontStyle:De.fontStyle,fontVariant:De.fontVariant,nameLength:De.nameLength,textAlign:De.textAlign,trace:De.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:De.hovertemplate||!1,hovertemplateLabels:De.hovertemplateLabels||!1,eventData:kt}}),je=!1,at=B(Ce,{gd:xe,hovermode:"closest",rotateLabels:je,bgColor:ae.bgColor||n.background,container:H.select(ae.container),outerContainer:ae.outerContainer||ae.container}),tt=at.hoverLabels,Je=5,Ze=0,Me=0;tt.sort(function(De,et){return De.y0-et.y0}).each(function(De,et){var nt=De.y0-De.by/2;nt-JeYt[0]._length||Ga<0||Ga>vr[0]._length)return s.unhoverRaw(V,re)}if(re.pointerX=Aa+Yt[0]._offset,re.pointerY=Ga+vr[0]._offset,"xval"in re?Oe=v.flat(Ae,re.xval):Oe=v.p2c(Yt,Aa),"yval"in re?de=v.flat(Ae,re.yval):de=v.p2c(vr,Ga),!h(Oe[0])||!h(de[0]))return A.warn("Fx.hover failed",re,V),s.unhoverRaw(V,re)}var yn=1/0;function Kt(ci,bi){for(be=0;beJt&&(Fe.splice(0,Jt),yn=Fe[0].distance),Je&&yt!==0&&Fe.length===0){rr.distance=yt,rr.index=!1;var Ei=Xe._module.hoverPoints(rr,Zt,Wt,"closest",{hoverLayer:Ce._hoverlayer});if(Ei&&(Ei=Ei.filter(function(no){return no.spikeDistance<=yt})),Ei&&Ei.length){var Ri,xo=Ei.filter(function(no){return no.xa.showspikes&&no.xa.spikesnap!=="hovered data"});if(xo.length){var So=xo[0];h(So.x0)&&h(So.y0)&&(Ri=$t(So),(!mr.vLinePoint||mr.vLinePoint.spikeDistance>Ri.spikeDistance)&&(mr.vLinePoint=Ri))}var bo=Ei.filter(function(no){return no.ya.showspikes&&no.ya.spikesnap!=="hovered data"});if(bo.length){var Ui=bo[0];h(Ui.x0)&&h(Ui.y0)&&(Ri=$t(Ui),(!mr.hLinePoint||mr.hLinePoint.spikeDistance>Ri.spikeDistance)&&(mr.hLinePoint=Ri))}}}}}Kt();function zt(ci,bi,ho){for(var Bo=null,gs=1/0,ro,Ei=0;Ei0&&Math.abs(ci.distance)ot-1;Dr--)jr(Fe[Dr]);Fe=Mr,qr()}var Hr=V._hoverdata,na=[],ta=Z(V),At=se(V);for(me=0;me1||Fe.length>1)||Ze==="closest"&&ia&&Fe.length>1,pi=n.combine(Ce.plot_bgcolor||n.background,Ce.paper_bgcolor),vi=B(Fe,{gd:V,hovermode:Ze,rotateLabels:ui,bgColor:pi,container:Ce._hoverlayer,outerContainer:Ce._paper.node(),commonLabelOpts:Ce.hoverlabel,hoverdistance:Ce.hoverdistance}),Li=vi.hoverLabels;if(v.isUnifiedHover(Ze)||(P(Li,ui,Ce,vi.commonLabelBoundingBox),X(Li,ui,Ce._invScaleX,Ce._invScaleY)),xe&&xe.tagName){var Ni=p.getComponentMethod("annotations","hasClickToShow")(V,na);a(H.select(xe),Ni?"pointer":"")}!xe||fe||!ie(V,re,Hr)||(Hr&&V.emit("plotly_unhover",{event:re,points:Hr}),V.emit("plotly_hover",{event:re,points:V._hoverdata,xaxes:Yt,yaxes:vr,xvals:Oe,yvals:de}))}function z(V){return[V.trace.index,V.index,V.x0,V.y0,V.name,V.attr,V.xa?V.xa._id:"",V.ya?V.ya._id:""].join(",")}var F=/([\s\S]*)<\/extra>/;function B(V,re){var ae=re.gd,fe=ae._fullLayout,xe=re.hovermode,Ae=re.rotateLabels,Pe=re.bgColor,Ce=re.container,je=re.outerContainer,at=re.commonLabelOpts||{};if(V.length===0)return[[]];var tt=re.fontFamily||T.HOVERFONT,Je=re.fontSize||T.HOVERFONTSIZE,Ze=re.fontWeight||fe.font.weight,Me=re.fontStyle||fe.font.style,we=re.fontVariant||fe.font.variant,he=re.fontTextcase||fe.font.textcase,De=re.fontLineposition||fe.font.lineposition,et=re.fontShadow||fe.font.shadow,nt=V[0],Ke=nt.xa,Et=nt.ya,kt=xe.charAt(0),Ut=kt+"Label",Yt=nt[Ut];if(Yt===void 0&&Ke.type==="multicategory")for(var vr=0;vrfe.width-or&&(Ar=fe.width-or),Lr.attr("d","M"+(na-Ar)+",0L"+(na-Ar+d)+","+At+d+"H"+or+"v"+At+(u*2+Hr.height)+"H"+-or+"V"+At+d+"H"+(na-Ar-d)+"Z"),na=Ar,be.minX=na-or,be.maxX=na+or,Ke.side==="top"?(be.minY=ta-(u*2+Hr.height),be.maxY=ta-u):(be.minY=ta+u,be.maxY=ta+(u*2+Hr.height))}else{var oa,ga,Sa;Et.side==="right"?(oa="start",ga=1,Sa="",na=Ke._offset+Ke._length):(oa="end",ga=-1,Sa="-",na=Ke._offset),ta=Et._offset+(nt.y0+nt.y1)/2,Er.attr("text-anchor",oa),Lr.attr("d","M0,0L"+Sa+d+","+d+"V"+(u+Hr.height/2)+"h"+Sa+(u*2+Hr.width)+"V-"+(u+Hr.height/2)+"H"+Sa+d+"V-"+d+"Z"),be.minY=ta-(u+Hr.height/2),be.maxY=ta+(u+Hr.height/2),Et.side==="right"?(be.minX=na+d,be.maxX=na+d+(u*2+Hr.width)):(be.minX=na-d-(u*2+Hr.width),be.maxX=na-d);var za=Hr.height/2,ra=Rr-Hr.top-za,Ta="clip"+fe._uid+"commonlabel"+Et._id,Fn;if(na=0?Ka=Gr:wa+yn=0?Ka=wa:Da+yn=0?an=qr:ha+Kt=0?an=ha:Ya+Kt=0,(ot.idealAlign==="top"||!ui)&&pi?(Sa-=ra/2,ot.anchor="end"):ui?(Sa+=ra/2,ot.anchor="start"):ot.anchor="middle",ot.crossPos=Sa;else{if(ot.pos=Sa,ui=ga+za/2+Kn<=dr,pi=ga-za/2-Kn>=0,(ot.idealAlign==="left"||!ui)&&pi)ga-=za/2,ot.anchor="end";else if(ui)ga+=za/2,ot.anchor="start";else{ot.anchor="middle";var vi=Kn/2,Li=ga+vi-dr,Ni=ga-vi;Li>0&&(ga-=Li),Ni<0&&(ga+=-Ni)}ot.crossPos=ga}ta.attr("text-anchor",ot.anchor),or&&At.attr("text-anchor",ot.anchor),Lr.attr("transform",e(ga,Sa)+(Ae?t(w):""))}),{hoverLabels:mt,commonLabelBoundingBox:be}}function O(V,re,ae,fe,xe,Ae){var Pe="",Ce="";V.nameOverride!==void 0&&(V.name=V.nameOverride),V.name&&(V.trace._meta&&(V.name=A.templateString(V.name,V.trace._meta)),Pe=q(V.name,V.nameLength));var je=ae.charAt(0),at=je==="x"?"y":"x";V.zLabel!==void 0?(V.xLabel!==void 0&&(Ce+="x: "+V.xLabel+"
"),V.yLabel!==void 0&&(Ce+="y: "+V.yLabel+"
"),V.trace.type!=="choropleth"&&V.trace.type!=="choroplethmapbox"&&V.trace.type!=="choroplethmap"&&(Ce+=(Ce?"z: ":"")+V.zLabel)):re&&V[je+"Label"]===xe?Ce=V[at+"Label"]||"":V.xLabel===void 0?V.yLabel!==void 0&&V.trace.type!=="scattercarpet"&&(Ce=V.yLabel):V.yLabel===void 0?Ce=V.xLabel:Ce="("+V.xLabel+", "+V.yLabel+")",(V.text||V.text===0)&&!Array.isArray(V.text)&&(Ce+=(Ce?"
":"")+V.text),V.extraText!==void 0&&(Ce+=(Ce?"
":"")+V.extraText),Ae&&Ce===""&&!V.hovertemplate&&(Pe===""&&Ae.remove(),Ce=Pe);var tt=V.hovertemplate||!1;if(tt){var Je=V.hovertemplateLabels||V;V[je+"Label"]!==xe&&(Je[je+"other"]=Je[je+"Val"],Je[je+"otherLabel"]=Je[je+"Label"]),Ce=A.hovertemplateString(tt,Je,fe._d3locale,V.eventData[0]||{},V.trace._meta),Ce=Ce.replace(F,function(Ze,Me){return Pe=q(Me,V.nameLength),""})}return[Ce,Pe]}function P(V,re,ae,fe){var xe=re?"xa":"ya",Ae=re?"ya":"xa",Pe=0,Ce=1,je=V.size(),at=new Array(je),tt=0,Je=fe.minX,Ze=fe.maxX,Me=fe.minY,we=fe.maxY,he=function(Oe){return Oe*ae._invScaleX},De=function(Oe){return Oe*ae._invScaleY};V.each(function(Oe){var de=Oe[xe],me=Oe[Ae],be=de._id.charAt(0)==="x",Ie=de.range;tt===0&&Ie&&Ie[0]>Ie[1]!==be&&(Ce=-1);var Xe=0,ht=be?ae.width:ae.height;if(ae.hovermode==="x"||ae.hovermode==="y"){var bt=N(Oe,re),Ct=Oe.anchor,Zt=Ct==="end"?-1:1,Wt,rr;if(Ct==="middle")Wt=Oe.crossPos+(be?De(bt.y-Oe.by/2):he(Oe.bx/2+Oe.tx2width/2)),rr=Wt+(be?De(Oe.by):he(Oe.bx));else if(be)Wt=Oe.crossPos+De(d+bt.y)-De(Oe.by/2-d),rr=Wt+De(Oe.by);else{var Jt=he(Zt*d+bt.x),mr=Jt+he(Zt*Oe.bx);Wt=Oe.crossPos+Math.min(Jt,mr),rr=Oe.crossPos+Math.max(Jt,mr)}be?Me!==void 0&&we!==void 0&&Math.min(rr,we)-Math.max(Wt,Me)>1&&(me.side==="left"?(Xe=me._mainLinePosition,ht=ae.width):ht=me._mainLinePosition):Je!==void 0&&Ze!==void 0&&Math.min(rr,Ze)-Math.max(Wt,Je)>1&&(me.side==="top"?(Xe=me._mainLinePosition,ht=ae.height):ht=me._mainLinePosition)}at[tt++]=[{datum:Oe,traceIndex:Oe.trace.index,dp:0,pos:Oe.pos,posref:Oe.posref,size:Oe.by*(be?M:1)/2,pmin:Xe,pmax:ht}]}),at.sort(function(Oe,de){return Oe[0].posref-de[0].posref||Ce*(de[0].traceIndex-Oe[0].traceIndex)});var et,nt,Ke,Et,kt,Ut,Yt;function vr(Oe){var de=Oe[0],me=Oe[Oe.length-1];if(nt=de.pmin-de.pos-de.dp+de.size,Ke=me.pos+me.dp+me.size-de.pmax,nt>.01){for(kt=Oe.length-1;kt>=0;kt--)Oe[kt].dp+=nt;et=!1}if(!(Ke<.01)){if(nt<-.01){for(kt=Oe.length-1;kt>=0;kt--)Oe[kt].dp-=Ke;et=!1}if(et){var be=0;for(Et=0;Etde.pmax&&be++;for(Et=Oe.length-1;Et>=0&&!(be<=0);Et--)Ut=Oe[Et],Ut.pos>de.pmax-1&&(Ut.del=!0,be--);for(Et=0;Et=0;kt--)Oe[kt].dp-=Ke;for(Et=Oe.length-1;Et>=0&&!(be<=0);Et--)Ut=Oe[Et],Ut.pos+Ut.dp+Ut.size>de.pmax&&(Ut.del=!0,be--)}}}for(;!et&&Pe<=je;){for(Pe++,et=!0,Et=0;Et.01){for(kt=Rr.length-1;kt>=0;kt--)Rr[kt].dp+=nt;for(hr.push.apply(hr,Rr),at.splice(Et+1,1),Yt=0,kt=hr.length-1;kt>=0;kt--)Yt+=hr[kt].dp;for(Ke=Yt/hr.length,kt=hr.length-1;kt>=0;kt--)hr[kt].dp-=Ke;et=!1}else Et++}at.forEach(vr)}for(Et=at.length-1;Et>=0;Et--){var yt=at[Et];for(kt=yt.length-1;kt>=0;kt--){var Fe=yt[kt],We=Fe.datum;We.offset=Fe.dp,We.del=Fe.del}}}function N(V,re){var ae=0,fe=V.offset;return re&&(fe*=-b,ae=V.offset*_),{x:ae,y:fe}}function U(V){var re={start:1,end:-1,middle:0}[V.anchor],ae=re*(d+u),fe=ae+re*(V.txwidth+u),xe=V.anchor==="middle";return xe&&(ae-=V.tx2width/2,fe+=V.txwidth/2+u),{alignShift:re,textShiftX:ae,text2ShiftX:fe}}function X(V,re,ae,fe){var xe=function(Pe){return Pe*ae},Ae=function(Pe){return Pe*fe};V.each(function(Pe){var Ce=H.select(this);if(Pe.del)return Ce.remove();var je=Ce.select("text.nums"),at=Pe.anchor,tt=at==="end"?-1:1,Je=U(Pe),Ze=N(Pe,re),Me=Ze.x,we=Ze.y,he=at==="middle",De="hoverlabel"in Pe.trace?Pe.trace.hoverlabel.showarrow:!0,et;he?et="M-"+xe(Pe.bx/2+Pe.tx2width/2)+","+Ae(we-Pe.by/2)+"h"+xe(Pe.bx)+"v"+Ae(Pe.by)+"h-"+xe(Pe.bx)+"Z":De?et="M0,0L"+xe(tt*d+Me)+","+Ae(d+we)+"v"+Ae(Pe.by/2-d)+"h"+xe(tt*Pe.bx)+"v-"+Ae(Pe.by)+"H"+xe(tt*d+Me)+"V"+Ae(we-d)+"Z":et="M"+xe(tt*d+Me)+","+Ae(we-Pe.by/2)+"h"+xe(tt*Pe.bx)+"v"+Ae(Pe.by)+"h"+xe(-tt*Pe.bx)+"Z",Ce.select("path").attr("d",et);var nt=Me+Je.textShiftX,Ke=we+Pe.ty0-Pe.by/2+u,Et=Pe.textAlign||"auto";Et!=="auto"&&(Et==="left"&&at!=="start"?(je.attr("text-anchor","start"),nt=he?-Pe.bx/2-Pe.tx2width/2+u:-Pe.bx-u):Et==="right"&&at!=="end"&&(je.attr("text-anchor","end"),nt=he?Pe.bx/2-Pe.tx2width/2-u:Pe.bx+u)),je.call(i.positionText,xe(nt),Ae(Ke)),Pe.tx2width&&(Ce.select("text.name").call(i.positionText,xe(Je.text2ShiftX+Je.alignShift*u+Me),Ae(we+Pe.ty0-Pe.by/2+u)),Ce.select("rect").call(o.setRect,xe(Je.text2ShiftX+(Je.alignShift-1)*Pe.tx2width/2+Me),Ae(we-Pe.by/2-1),xe(Pe.tx2width),Ae(Pe.by+2)))})}function te(V,re){var ae=V.index,fe=V.trace||{},xe=V.cd[0],Ae=V.cd[ae]||{};function Pe(Ze){return Ze||h(Ze)&&Ze===0}var Ce=Array.isArray(ae)?function(Ze,Me){var we=A.castOption(xe,ae,Ze);return Pe(we)?we:A.extractOption({},fe,"",Me)}:function(Ze,Me){return A.extractOption(Ae,fe,Ze,Me)};function je(Ze,Me,we){var he=Ce(Me,we);Pe(he)&&(V[Ze]=he)}if(je("hoverinfo","hi","hoverinfo"),je("bgcolor","hbg","hoverlabel.bgcolor"),je("borderColor","hbc","hoverlabel.bordercolor"),je("fontFamily","htf","hoverlabel.font.family"),je("fontSize","hts","hoverlabel.font.size"),je("fontColor","htc","hoverlabel.font.color"),je("fontWeight","htw","hoverlabel.font.weight"),je("fontStyle","hty","hoverlabel.font.style"),je("fontVariant","htv","hoverlabel.font.variant"),je("nameLength","hnl","hoverlabel.namelength"),je("textAlign","hta","hoverlabel.align"),V.posref=re==="y"||re==="closest"&&fe.orientation==="h"?V.xa._offset+(V.x0+V.x1)/2:V.ya._offset+(V.y0+V.y1)/2,V.x0=A.constrain(V.x0,0,V.xa._length),V.x1=A.constrain(V.x1,0,V.xa._length),V.y0=A.constrain(V.y0,0,V.ya._length),V.y1=A.constrain(V.y1,0,V.ya._length),V.xLabelVal!==void 0&&(V.xLabel="xLabel"in V?V.xLabel:c.hoverLabelText(V.xa,V.xLabelVal,fe.xhoverformat),V.xVal=V.xa.c2d(V.xLabelVal)),V.yLabelVal!==void 0&&(V.yLabel="yLabel"in V?V.yLabel:c.hoverLabelText(V.ya,V.yLabelVal,fe.yhoverformat),V.yVal=V.ya.c2d(V.yLabelVal)),V.zLabelVal!==void 0&&V.zLabel===void 0&&(V.zLabel=String(V.zLabelVal)),!isNaN(V.xerr)&&!(V.xa.type==="log"&&V.xerr<=0)){var at=c.tickText(V.xa,V.xa.c2l(V.xerr),"hover").text;V.xerrneg!==void 0?V.xLabel+=" +"+at+" / -"+c.tickText(V.xa,V.xa.c2l(V.xerrneg),"hover").text:V.xLabel+=" ± "+at,re==="x"&&(V.distance+=1)}if(!isNaN(V.yerr)&&!(V.ya.type==="log"&&V.yerr<=0)){var tt=c.tickText(V.ya,V.ya.c2l(V.yerr),"hover").text;V.yerrneg!==void 0?V.yLabel+=" +"+tt+" / -"+c.tickText(V.ya,V.ya.c2l(V.yerrneg),"hover").text:V.yLabel+=" ± "+tt,re==="y"&&(V.distance+=1)}var Je=V.hoverinfo||V.trace.hoverinfo;return Je&&Je!=="all"&&(Je=Array.isArray(Je)?Je:Je.split("+"),Je.indexOf("x")===-1&&(V.xLabel=void 0),Je.indexOf("y")===-1&&(V.yLabel=void 0),Je.indexOf("z")===-1&&(V.zLabel=void 0),Je.indexOf("text")===-1&&(V.text=void 0),Je.indexOf("name")===-1&&(V.name=void 0)),V}function ue(V,re,ae){var fe=ae.container,xe=ae.fullLayout,Ae=xe._size,Pe=ae.event,Ce=!!re.hLinePoint,je=!!re.vLinePoint,at,tt;if(fe.selectAll(".spikeline").remove(),!!(je||Ce)){var Je=n.combine(xe.plot_bgcolor,xe.paper_bgcolor);if(Ce){var Ze=re.hLinePoint,Me,we;at=Ze&&Ze.xa,tt=Ze&&Ze.ya;var he=tt.spikesnap;he==="cursor"?(Me=Pe.pointerX,we=Pe.pointerY):(Me=at._offset+Ze.x,we=tt._offset+Ze.y);var De=x.readability(Ze.color,Je)<1.5?n.contrast(Je):Ze.color,et=tt.spikemode,nt=tt.spikethickness,Ke=tt.spikecolor||De,Et=c.getPxPosition(V,tt),kt,Ut;if(et.indexOf("toaxis")!==-1||et.indexOf("across")!==-1){if(et.indexOf("toaxis")!==-1&&(kt=Et,Ut=Me),et.indexOf("across")!==-1){var Yt=tt._counterDomainMin,vr=tt._counterDomainMax;tt.anchor==="free"&&(Yt=Math.min(Yt,tt.position),vr=Math.max(vr,tt.position)),kt=Ae.l+Yt*Ae.w,Ut=Ae.l+vr*Ae.w}fe.insert("line",":first-child").attr({x1:kt,x2:Ut,y1:we,y2:we,"stroke-width":nt,stroke:Ke,"stroke-dasharray":o.dashStyle(tt.spikedash,nt)}).classed("spikeline",!0).classed("crisp",!0),fe.insert("line",":first-child").attr({x1:kt,x2:Ut,y1:we,y2:we,"stroke-width":nt+2,stroke:Je}).classed("spikeline",!0).classed("crisp",!0)}et.indexOf("marker")!==-1&&fe.insert("circle",":first-child").attr({cx:Et+(tt.side!=="right"?nt:-nt),cy:we,r:nt,fill:Ke}).classed("spikeline",!0)}if(je){var hr=re.vLinePoint,Rr,dr;at=hr&&hr.xa,tt=hr&&hr.ya;var wr=at.spikesnap;wr==="cursor"?(Rr=Pe.pointerX,dr=Pe.pointerY):(Rr=at._offset+hr.x,dr=tt._offset+hr.y);var yt=x.readability(hr.color,Je)<1.5?n.contrast(Je):hr.color,Fe=at.spikemode,We=at.spikethickness,Oe=at.spikecolor||yt,de=c.getPxPosition(V,at),me,be;if(Fe.indexOf("toaxis")!==-1||Fe.indexOf("across")!==-1){if(Fe.indexOf("toaxis")!==-1&&(me=de,be=dr),Fe.indexOf("across")!==-1){var Ie=at._counterDomainMin,Xe=at._counterDomainMax;at.anchor==="free"&&(Ie=Math.min(Ie,at.position),Xe=Math.max(Xe,at.position)),me=Ae.t+(1-Xe)*Ae.h,be=Ae.t+(1-Ie)*Ae.h}fe.insert("line",":first-child").attr({x1:Rr,x2:Rr,y1:me,y2:be,"stroke-width":We,stroke:Oe,"stroke-dasharray":o.dashStyle(at.spikedash,We)}).classed("spikeline",!0).classed("crisp",!0),fe.insert("line",":first-child").attr({x1:Rr,x2:Rr,y1:me,y2:be,"stroke-width":We+2,stroke:Je}).classed("spikeline",!0).classed("crisp",!0)}Fe.indexOf("marker")!==-1&&fe.insert("circle",":first-child").attr({cx:Rr,cy:de-(at.side!=="top"?We:-We),r:We,fill:Oe}).classed("spikeline",!0)}}}function ie(V,re,ae){if(!ae||ae.length!==V._hoverdata.length)return!0;for(var fe=ae.length-1;fe>=0;fe--){var xe=ae[fe],Ae=V._hoverdata[fe];if(xe.curveNumber!==Ae.curveNumber||String(xe.pointNumber)!==String(Ae.pointNumber)||String(xe.pointNumbers)!==String(Ae.pointNumbers)||xe.binNumber!==Ae.binNumber)return!0}return!1}function le(V,re){return!0}function q(V,re){return i.plainText(V||"",{len:re,allowedTags:["br","sub","sup","b","i","em","s","u"]})}function J(V,re){for(var ae=re.charAt(0),fe=[],xe=[],Ae=[],Pe=0;Pe"," plotly-logomark"," "," "," "," "," "," "," "," "," "," "," "," "," ",""].join("")}}}}),h1=He({"src/components/shapes/draw_newshape/constants.js"(Y,H){var h=32;H.exports={CIRCLE_SIDES:h,i000:0,i090:h/4,i180:h/2,i270:h/4*3,cos45:Math.cos(Math.PI/4),sin45:Math.sin(Math.PI/4),SQRT2:Math.sqrt(2)}}}),v1=He({"src/components/selections/helpers.js"(Y,H){var h=Qr().strTranslate;function x(t,r){switch(t.type){case"log":return t.p2d(r);case"date":return t.p2r(r,0,t.calendar);default:return t.p2r(r)}}function A(t,r){switch(t.type){case"log":return t.d2p(r);case"date":return t.r2p(r,0,t.calendar);default:return t.r2p(r)}}function E(t){var r=t._id.charAt(0)==="y"?1:0;return function(i){return x(t,i[r])}}function e(t){return h(t.xaxis._offset,t.yaxis._offset)}H.exports={p2r:x,r2p:A,axValue:E,getTransform:e}}}),Wd=He({"src/components/shapes/draw_newshape/helpers.js"(Y){var H=Qg(),h=h1(),x=h.CIRCLE_SIDES,A=h.SQRT2,E=v1(),e=E.p2r,t=E.r2p,r=[0,3,4,5,6,1,2],i=[0,3,4,1,2];Y.writePaths=function(n){var s=n.length;if(!s)return"M0,0Z";for(var c="",f=0;f0&&ml&&(w="X"),w});return f>l&&(m=m.replace(/[\s,]*X.*/,""),h.log("Ignoring extra params in segment "+c)),p+m})}function E(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}}}),Xb=He({"src/components/shapes/display_labels.js"(Y,H){var h=Qr(),x=wo(),A=jl(),E=Io(),e=Wd().readPaths,t=Xd(),r=t.getPathString,i=a1(),a=Pf().FROM_TL;H.exports=function(c,f,p,v){if(v.selectAll(".shape-label").remove(),!!(p.label.text||p.label.texttemplate)){var T;if(p.label.texttemplate){var l={};if(p.type!=="path"){var m=x.getFromId(c,p.xref),w=x.getFromId(c,p.yref);for(var S in i){var M=i[S](p,m,w);M!==void 0&&(l[S]=M)}}T=h.texttemplateStringForShapes(p.label.texttemplate,{},c._fullLayout._d3locale,l)}else T=p.label.text;var _={"data-index":f},b=p.label.font,d={"data-notex":1},u=v.append("g").attr(_).classed("shape-label",!0),g=u.append("text").attr(d).classed("shape-label-text",!0).text(T),y,R,I,z;if(p.path){var F=r(c,p),B=e(F,c);y=1/0,I=1/0,R=-1/0,z=-1/0;for(var O=0;O=s?v=c-p:v=p-c,-180/Math.PI*Math.atan2(v,T)}function n(s,c,f,p,v,T,l){var m=v.label.textposition,w=v.label.textangle,S=v.label.padding,M=v.type,_=Math.PI/180*T,b=Math.sin(_),d=Math.cos(_),u=v.label.xanchor,g=v.label.yanchor,y,R,I,z;if(M==="line"){m==="start"?(y=s,R=c):m==="end"?(y=f,R=p):(y=(s+f)/2,R=(c+p)/2),u==="auto"&&(m==="start"?w==="auto"?f>s?u="left":fs?u="right":fs?u="right":fs?u="left":f1&&!(Je.length===2&&Je[1][0]==="Z")&&(q===0&&(Je[0][0]="M"),y[le]=Je,B(),O())}}function fe(Je,Ze){if(Je===2){le=+Ze.srcElement.getAttribute("data-i"),q=+Ze.srcElement.getAttribute("data-j");var Me=y[le];!T(Me)&&!l(Me)&&ae()}}function xe(Je){ue=[];for(var Ze=0;ZeB&&Ie>O&&!de.shiftKey?s.getCursor(Xe/be,1-ht/Ie):"move";c(y,bt),kt=bt.split("-")[0]}}function hr(de){l(g)||(P&&(J=he(R.xanchor)),N&&(ee=De(R.yanchor)),R.type==="path"?Ae=R.path:(ue=P?R.x0:he(R.x0),ie=N?R.y0:De(R.y0),le=P?R.x1:he(R.x1),q=N?R.y1:De(R.y1)),ueq?(Z=ie,re="y0",se=q,ae="y1"):(Z=q,re="y1",se=ie,ae="y0"),vr(de),Fe(z,R),Oe(y,R,g),Et.moveFn=kt==="move"?wr:yt,Et.altKey=de.altKey)}function Rr(){l(g)||(c(y),We(z),S(y,g,R),x.call("_guiRelayout",g,F.getUpdateObj()))}function dr(){l(g)||We(z)}function wr(de,me){if(R.type==="path"){var be=function(ht){return ht},Ie=be,Xe=be;P?te("xanchor",R.xanchor=et(J+de)):(Ie=function(bt){return et(he(bt)+de)},Ce&&Ce.type==="date"&&(Ie=p.encodeDate(Ie))),N?te("yanchor",R.yanchor=nt(ee+me)):(Xe=function(bt){return nt(De(bt)+me)},at&&at.type==="date"&&(Xe=p.encodeDate(Xe))),te("path",R.path=_(Ae,Ie,Xe))}else P?te("xanchor",R.xanchor=et(J+de)):(te("x0",R.x0=et(ue+de)),te("x1",R.x1=et(le+de))),N?te("yanchor",R.yanchor=nt(ee+me)):(te("y0",R.y0=nt(ie+me)),te("y1",R.y1=nt(q+me)));y.attr("d",v(g,R)),Fe(z,R),r(g,I,R,Pe)}function yt(de,me){if(X){var be=function(ba){return ba},Ie=be,Xe=be;P?te("xanchor",R.xanchor=et(J+de)):(Ie=function(Xa){return et(he(Xa)+de)},Ce&&Ce.type==="date"&&(Ie=p.encodeDate(Ie))),N?te("yanchor",R.yanchor=nt(ee+me)):(Xe=function(Xa){return nt(De(Xa)+me)},at&&at.type==="date"&&(Xe=p.encodeDate(Xe))),te("path",R.path=_(Ae,Ie,Xe))}else if(U){if(kt==="resize-over-start-point"){var ht=ue+de,bt=N?ie-me:ie+me;te("x0",R.x0=P?ht:et(ht)),te("y0",R.y0=N?bt:nt(bt))}else if(kt==="resize-over-end-point"){var Ct=le+de,Zt=N?q-me:q+me;te("x1",R.x1=P?Ct:et(Ct)),te("y1",R.y1=N?Zt:nt(Zt))}}else{var Wt=function(ba){return kt.indexOf(ba)!==-1},rr=Wt("n"),Jt=Wt("s"),mr=Wt("w"),ia=Wt("e"),Ia=rr?Z+me:Z,La=Jt?se+me:se,Aa=mr?Q+de:Q,Ga=ia?V+de:V;N&&(rr&&(Ia=Z-me),Jt&&(La=se-me)),(!N&&La-Ia>O||N&&Ia-La>O)&&(te(re,R[re]=N?Ia:nt(Ia)),te(ae,R[ae]=N?La:nt(La))),Ga-Aa>B&&(te(fe,R[fe]=P?Aa:et(Aa)),te(xe,R[xe]=P?Ga:et(Ga)))}y.attr("d",v(g,R)),Fe(z,R),r(g,I,R,Pe)}function Fe(de,me){(P||N)&&be();function be(){var Ie=me.type!=="path",Xe=de.selectAll(".visual-cue").data([0]),ht=1;Xe.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":ht}).classed("visual-cue",!0);var bt=he(P?me.xanchor:A.midRange(Ie?[me.x0,me.x1]:p.extractPathCoords(me.path,f.paramIsX))),Ct=De(N?me.yanchor:A.midRange(Ie?[me.y0,me.y1]:p.extractPathCoords(me.path,f.paramIsY)));if(bt=p.roundPositionForSharpStrokeRendering(bt,ht),Ct=p.roundPositionForSharpStrokeRendering(Ct,ht),P&&N){var Zt="M"+(bt-1-ht)+","+(Ct-1-ht)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";Xe.attr("d",Zt)}else if(P){var Wt="M"+(bt-1-ht)+","+(Ct-9-ht)+"v18 h2 v-18 Z";Xe.attr("d",Wt)}else{var rr="M"+(bt-9-ht)+","+(Ct-1-ht)+"h18 v2 h-18 Z";Xe.attr("d",rr)}}}function We(de){de.selectAll(".visual-cue").remove()}function Oe(de,me,be){var Ie=me.xref,Xe=me.yref,ht=E.getFromId(be,Ie),bt=E.getFromId(be,Xe),Ct="";Ie!=="paper"&&!ht.autorange&&(Ct+=Ie),Xe!=="paper"&&!bt.autorange&&(Ct+=Xe),o.setClipUrl(de,Ct?"clip"+be._fullLayout._uid+Ct:null,be)}}function _(g,y,R){return g.replace(f.segmentRE,function(I){var z=0,F=I.charAt(0),B=f.paramIsX[F],O=f.paramIsY[F],P=f.numParams[F],N=I.substr(1).replace(f.paramRE,function(U){return z>=P||(B[z]?U=y(U):O[z]&&(U=R(U)),z++),U});return F+N})}function b(g,y){if(m(g)){var R=y.node(),I=+R.getAttribute("data-index");if(I>=0){if(I===g._fullLayout._activeShapeIndex){d(g);return}g._fullLayout._activeShapeIndex=I,g._fullLayout._deactivateShape=d,T(g)}}}function d(g){if(m(g)){var y=g._fullLayout._activeShapeIndex;y>=0&&(i(g),delete g._fullLayout._activeShapeIndex,T(g))}}function u(g){if(m(g)){i(g);var y=g._fullLayout._activeShapeIndex,R=(g.layout||{}).shapes||[];if(y1?(ie=["toggleHover"],le=["resetViews"]):u?(ue=["zoomInGeo","zoomOutGeo"],ie=["hoverClosestGeo"],le=["resetGeo"]):d?(ie=["hoverClosest3d"],le=["resetCameraDefault3d","resetCameraLastSave3d"]):I?(ue=["zoomInMapbox","zoomOutMapbox"],ie=["toggleHover"],le=["resetViewMapbox"]):z?(ue=["zoomInMap","zoomOutMap"],ie=["toggleHover"],le=["resetViewMap"]):g?ie=["hoverClosestPie"]:O?(ie=["hoverClosestCartesian","hoverCompareCartesian"],le=["resetViewSankey"]):ie=["toggleHover"],b&&ie.push("toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"),(s(T)||N)&&(ie=[]),b&&!P&&(ue=["zoomIn2d","zoomOut2d","autoScale2d"],le[0]!=="resetViews"&&(le=["resetScale2d"])),d?q=["zoom3d","pan3d","orbitRotation","tableRotation"]:b&&!P||R?q=["zoom2d","pan2d"]:I||z||u?q=["pan2d"]:F&&(q=["zoom2d"]),n(T)&&q.push("select2d","lasso2d");var J=[],ee=function(V){J.indexOf(V)===-1&&ie.indexOf(V)!==-1&&J.push(V)};if(Array.isArray(M)){for(var Z=[],se=0;sew?T.substr(w):l.substr(m))+S}function c(p,v){for(var T=v._size,l=T.h/T.w,m={},w=Object.keys(p),S=0;St*R&&!B)){for(w=0;wq&&aeie&&(ie=ae);var xe=(ie-ue)/(2*le);u/=xe,ue=_.l2r(ue),ie=_.l2r(ie),_.range=_._input.range=U=O[1]||X[1]<=O[0])&&te[0]P[0])return!0}return!1}function S(O){var P=O._fullLayout,N=P._size,U=N.p,X=o.list(O,"",!0),te,ue,ie,le,q,J;if(P._paperdiv.style({width:O._context.responsive&&P.autosize&&!O._context._hasZeroWidth&&!O.layout.width?"100%":P.width+"px",height:O._context.responsive&&P.autosize&&!O._context._hasZeroHeight&&!O.layout.height?"100%":P.height+"px"}).selectAll(".main-svg").call(r.setSize,P.width,P.height),O._context.setBackground(O,P.paper_bgcolor),Y.drawMainTitle(O),a.manage(O),!P._has("cartesian"))return x.previousPromises(O);function ee(Oe,de,me){var be=Oe._lw/2;if(Oe._id.charAt(0)==="x"){if(de){if(me==="top")return de._offset-U-be}else return N.t+N.h*(1-(Oe.position||0))+be%1;return de._offset+de._length+U+be}if(de){if(me==="right")return de._offset+de._length+U+be}else return N.l+N.w*(Oe.position||0)+be%1;return de._offset-U-be}for(te=0;te0){y(O,te,q,le),ie.attr({x:ue,y:te,"text-anchor":U,dy:z(P.yanchor)}).call(E.positionText,ue,te);var J=(P.text.match(E.BR_TAG_ALL)||[]).length;if(J){var ee=n.LINE_SPACING*J+n.MID_SHIFT;P.y===0&&(ee=-ee),ie.selectAll(".line").each(function(){var re=+this.getAttribute("dy").slice(0,-2)-ee+"em";this.setAttribute("dy",re)})}var Z=H.selectAll(".gtitle-subtitle");if(Z.node()){var se=ie.node().getBBox(),Q=se.y+se.height,V=Q+i.SUBTITLE_PADDING_EM*P.subtitle.font.size;Z.attr({x:ue,y:V,"text-anchor":U,dy:z(P.yanchor)}).call(E.positionText,ue,V)}}}};function d(O,P,N,U,X){var te=P.yref==="paper"?O._fullLayout._size.h:O._fullLayout.height,ue=A.isTopAnchor(P)?U:U-X,ie=N==="b"?te-ue:ue;return A.isTopAnchor(P)&&N==="t"||A.isBottomAnchor(P)&&N==="b"?!1:ie.5?"t":"b",ue=O._fullLayout.margin[te],ie=0;return P.yref==="paper"?ie=N+P.pad.t+P.pad.b:P.yref==="container"&&(ie=u(te,U,X,O._fullLayout.height,N)+P.pad.t+P.pad.b),ie>ue?ie:0}function y(O,P,N,U){var X="title.automargin",te=O._fullLayout.title,ue=te.y>.5?"t":"b",ie={x:te.x,y:te.y,t:0,b:0},le={};te.yref==="paper"&&d(O,te,ue,P,U)?ie[ue]=N:te.yref==="container"&&(le[ue]=N,O._fullLayout._reservedMargin[X]=le),x.allowAutoMargin(O,X),x.autoMargin(O,X,ie)}function R(O,P){var N=O.title,U=O._size,X=0;switch(P===v?X=N.pad.l:P===l&&(X=-N.pad.r),N.xref){case"paper":return U.l+U.w*N.x+X;case"container":default:return O.width*N.x+X}}function I(O,P){var N=O.title,U=O._size,X=0;if(P==="0em"||!P?X=-N.pad.b:P===n.CAP_SHIFT+"em"&&(X=N.pad.t),N.y==="auto")return U.t/2;switch(N.yref){case"paper":return U.t+U.h-U.h*N.y+X;case"container":default:return O.height-O.height*N.y+X}}function z(O){return O==="top"?n.CAP_SHIFT+.3+"em":O==="bottom"?"-0.3em":n.MID_SHIFT+"em"}function F(O){var P=O.title,N=T;return A.isRightAnchor(P)?N=l:A.isLeftAnchor(P)&&(N=v),N}function B(O){var P=O.title,N="0em";return A.isTopAnchor(P)?N=n.CAP_SHIFT+"em":A.isMiddleAnchor(P)&&(N=n.MID_SHIFT+"em"),N}Y.doTraceStyle=function(O){var P=O.calcdata,N=[],U;for(U=0;U=0;F--){var B=M.append("path").attr(b).style("opacity",F?.1:d).call(E.stroke,g).call(E.fill,u).call(e.dashLine,F?"solid":R,F?4+y:y);if(s(B,v,m),I){var O=t(v.layout,"selections",m);B.style({cursor:"move"});var P={element:B.node(),plotinfo:w,gd:v,editHelpers:O,isActiveSelection:!0},N=h(_,v);x(N,B,P)}else B.style("pointer-events",F?"all":"none");z[F]=B}var U=z[0],X=z[1];X.node().addEventListener("click",function(){return c(v,U)})}}function s(v,T,l){var m=l.xref+l.yref;e.setClipUrl(v,"clip"+T._fullLayout._uid+m,T)}function c(v,T){if(o(v)){var l=T.node(),m=+l.getAttribute("data-index");if(m>=0){if(m===v._fullLayout._activeSelectionIndex){p(v);return}v._fullLayout._activeSelectionIndex=m,v._fullLayout._deactivateSelection=p,a(v)}}}function f(v){if(o(v)){var T=v._fullLayout.selections.length-1;v._fullLayout._activeSelectionIndex=T,v._fullLayout._deactivateSelection=p,a(v)}}function p(v){if(o(v)){var T=v._fullLayout._activeSelectionIndex;T>=0&&(A(v),delete v._fullLayout._activeSelectionIndex,a(v))}}}}),NM=He({"node_modules/polybooljs/lib/build-log.js"(Y,H){function h(){var x,A=0,E=!1;function e(t,r){return x.list.push({type:t,data:r?JSON.parse(JSON.stringify(r)):void 0}),x}return x={list:[],segmentId:function(){return A++},checkIntersection:function(t,r){return e("check",{seg1:t,seg2:r})},segmentChop:function(t,r){return e("div_seg",{seg:t,pt:r}),e("chop",{seg:t,pt:r})},statusRemove:function(t){return e("pop_seg",{seg:t})},segmentUpdate:function(t){return e("seg_update",{seg:t})},segmentNew:function(t,r){return e("new_seg",{seg:t,primary:r})},segmentRemove:function(t){return e("rem_seg",{seg:t})},tempStatus:function(t,r,i){return e("temp_status",{seg:t,above:r,below:i})},rewind:function(t){return e("rewind",{seg:t})},status:function(t,r,i){return e("status",{seg:t,above:r,below:i})},vert:function(t){return t===E?x:(E=t,e("vert",{x:t}))},log:function(t){return typeof t!="string"&&(t=JSON.stringify(t,!1," ")),e("log",{txt:t})},reset:function(){return e("reset")},selected:function(t){return e("selected",{segs:t})},chainStart:function(t){return e("chain_start",{seg:t})},chainRemoveHead:function(t,r){return e("chain_rem_head",{index:t,pt:r})},chainRemoveTail:function(t,r){return e("chain_rem_tail",{index:t,pt:r})},chainNew:function(t,r){return e("chain_new",{pt1:t,pt2:r})},chainMatch:function(t){return e("chain_match",{index:t})},chainClose:function(t){return e("chain_close",{index:t})},chainAddHead:function(t,r){return e("chain_add_head",{index:t,pt:r})},chainAddTail:function(t,r){return e("chain_add_tail",{index:t,pt:r})},chainConnect:function(t,r){return e("chain_con",{index1:t,index2:r})},chainReverse:function(t){return e("chain_rev",{index:t})},chainJoin:function(t,r){return e("chain_join",{index1:t,index2:r})},done:function(){return e("done")}},x}H.exports=h}}),UM=He({"node_modules/polybooljs/lib/epsilon.js"(Y,H){function h(x){typeof x!="number"&&(x=1e-10);var A={epsilon:function(E){return typeof E=="number"&&(x=E),x},pointAboveOrOnLine:function(E,e,t){var r=e[0],i=e[1],a=t[0],o=t[1],n=E[0],s=E[1];return(a-r)*(s-i)-(o-i)*(n-r)>=-x},pointBetween:function(E,e,t){var r=E[1]-e[1],i=t[0]-e[0],a=E[0]-e[0],o=t[1]-e[1],n=a*i+r*o;if(n-x)},pointsSameX:function(E,e){return Math.abs(E[0]-e[0])x!=a-r>x&&(i-s)*(r-c)/(a-c)+s-t>x&&(o=!o),i=s,a=c}return o}};return A}H.exports=h}}),jM=He({"node_modules/polybooljs/lib/linked-list.js"(Y,H){var h={create:function(){var x={root:{root:!0,next:null},exists:function(A){return!(A===null||A===x.root)},isEmpty:function(){return x.root.next===null},getHead:function(){return x.root.next},insertBefore:function(A,E){for(var e=x.root,t=x.root.next;t!==null;){if(E(t)){A.prev=t.prev,A.next=t,t.prev.next=A,t.prev=A;return}e=t,t=t.next}e.next=A,A.prev=e,A.next=null},findTransition:function(A){for(var E=x.root,e=x.root.next;e!==null&&!A(e);)E=e,e=e.next;return{before:E===x.root?null:E,after:e,insert:function(t){return t.prev=E,t.next=e,E.next=t,e!==null&&(e.prev=t),t}}}};return x},node:function(x){return x.prev=null,x.next=null,x.remove=function(){x.prev.next=x.next,x.next&&(x.next.prev=x.prev),x.prev=null,x.next=null},x}};H.exports=h}}),VM=He({"node_modules/polybooljs/lib/intersecter.js"(Y,H){var h=jM();function x(A,E,e){function t(T,l){return{id:e?e.segmentId():-1,start:T,end:l,myFill:{above:null,below:null},otherFill:null}}function r(T,l,m){return{id:e?e.segmentId():-1,start:T,end:l,myFill:{above:m.myFill.above,below:m.myFill.below},otherFill:null}}var i=h.create();function a(T,l,m,w,S,M){var _=E.pointsCompare(l,S);return _!==0?_:E.pointsSame(m,M)?0:T!==w?T?1:-1:E.pointAboveOrOnLine(m,w?S:M,w?M:S)?1:-1}function o(T,l){i.insertBefore(T,function(m){var w=a(T.isStart,T.pt,l,m.isStart,m.pt,m.other.pt);return w<0})}function n(T,l){var m=h.node({isStart:!0,pt:T.start,seg:T,primary:l,other:null,status:null});return o(m,T.end),m}function s(T,l,m){var w=h.node({isStart:!1,pt:l.end,seg:l,primary:m,other:T,status:null});T.other=w,o(w,T.pt)}function c(T,l){var m=n(T,l);return s(m,T,l),m}function f(T,l){e&&e.segmentChop(T.seg,l),T.other.remove(),T.seg.end=l,T.other.pt=l,o(T.other,T.pt)}function p(T,l){var m=r(l,T.seg.end,T.seg);return f(T,l),c(m,T.primary)}function v(T,l){var m=h.create();function w(B,O){var P=B.seg.start,N=B.seg.end,U=O.seg.start,X=O.seg.end;return E.pointsCollinear(P,U,X)?E.pointsCollinear(N,U,X)||E.pointAboveOrOnLine(N,U,X)?1:-1:E.pointAboveOrOnLine(P,U,X)?1:-1}function S(B){return m.findTransition(function(O){var P=w(B,O.ev);return P>0})}function M(B,O){var P=B.seg,N=O.seg,U=P.start,X=P.end,te=N.start,ue=N.end;e&&e.checkIntersection(P,N);var ie=E.linesIntersect(U,X,te,ue);if(ie===!1){if(!E.pointsCollinear(U,X,te)||E.pointsSame(U,ue)||E.pointsSame(X,te))return!1;var le=E.pointsSame(U,te),q=E.pointsSame(X,ue);if(le&&q)return O;var J=!le&&E.pointBetween(U,te,ue),ee=!q&&E.pointBetween(X,te,ue);if(le)return ee?p(O,X):p(B,ue),O;J&&(q||(ee?p(O,X):p(B,ue)),p(O,U))}else ie.alongA===0&&(ie.alongB===-1?p(B,te):ie.alongB===0?p(B,ie.pt):ie.alongB===1&&p(B,ue)),ie.alongB===0&&(ie.alongA===-1?p(O,U):ie.alongA===0?p(O,ie.pt):ie.alongA===1&&p(O,X));return!1}for(var _=[];!i.isEmpty();){var b=i.getHead();if(e&&e.vert(b.pt[0]),b.isStart){let B=function(){if(u){var O=M(b,u);if(O)return O}return g?M(b,g):!1};e&&e.segmentNew(b.seg,b.primary);var d=S(b),u=d.before?d.before.ev:null,g=d.after?d.after.ev:null;e&&e.tempStatus(b.seg,u?u.seg:!1,g?g.seg:!1);var y=B();if(y){if(A){var R;b.seg.myFill.below===null?R=!0:R=b.seg.myFill.above!==b.seg.myFill.below,R&&(y.seg.myFill.above=!y.seg.myFill.above)}else y.seg.otherFill=b.seg.myFill;e&&e.segmentUpdate(y.seg),b.other.remove(),b.remove()}if(i.getHead()!==b){e&&e.rewind(b.seg);continue}if(A){var R;b.seg.myFill.below===null?R=!0:R=b.seg.myFill.above!==b.seg.myFill.below,g?b.seg.myFill.below=g.seg.myFill.above:b.seg.myFill.below=T,R?b.seg.myFill.above=!b.seg.myFill.below:b.seg.myFill.above=b.seg.myFill.below}else if(b.seg.otherFill===null){var I;g?b.primary===g.primary?I=g.seg.otherFill.above:I=g.seg.myFill.above:I=b.primary?l:T,b.seg.otherFill={above:I,below:I}}e&&e.status(b.seg,u?u.seg:!1,g?g.seg:!1),b.other.status=d.insert(h.node({ev:b}))}else{var z=b.status;if(z===null)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(m.exists(z.prev)&&m.exists(z.next)&&M(z.prev.ev,z.next.ev),e&&e.statusRemove(z.ev.seg),z.remove(),!b.primary){var F=b.seg.myFill;b.seg.myFill=b.seg.otherFill,b.seg.otherFill=F}_.push(b.seg)}i.getHead().remove()}return e&&e.done(),_}return A?{addRegion:function(T){for(var l,m=T[T.length-1],w=0;wr!=p>r&&t<(f-s)*(r-c)/(p-c)+s;v&&(i=!i)}return i}}}),nm=He({"src/lib/polygon.js"(Y,H){var h=r1().dot,x=qo().BADNUM,A=H.exports={};A.tester=function(e){var t=e.slice(),r=t[0][0],i=r,a=t[0][1],o=a,n;for((t[t.length-1][0]!==t[0][0]||t[t.length-1][1]!==t[0][1])&&t.push(t[0]),n=1;ni||S===x||So||m&&c(l))}function p(l,m){var w=l[0],S=l[1];if(w===x||wi||S===x||So)return!1;var M=t.length,_=t[0][0],b=t[0][1],d=0,u,g,y,R,I;for(u=1;uMath.max(g,_)||S>Math.max(y,b)))if(Sn||Math.abs(h(p,c))>i)return!0;return!1},A.filter=function(e,t){var r=[e[0]],i=0,a=0;function o(s){e.push(s);var c=r.length,f=i;r.splice(a+1);for(var p=f+1;p1){var n=e.pop();o(n)}return{addPt:o,raw:e,filtered:r}}}}),ZM=He({"src/components/selections/constants.js"(Y,H){H.exports={BENDPX:1.5,MINSELECT:12,SELECTDELAY:100,SELECTID:"-select"}}}),YM=He({"src/components/selections/select.js"(Y,H){var h=WM(),x=XM(),A=qi(),E=Io().dashStyle,e=zi(),t=xc(),r=Dh().makeEventData,i=yv(),a=i.freeMode,o=i.rectMode,n=i.drawMode,s=i.openMode,c=i.selectMode,f=Xd(),p=rm(),v=p1(),T=Vd().clearOutline,l=Wd(),m=l.handleEllipse,w=l.readPaths,S=d1().newShapes,M=Wb(),_=Qb().activateLastSelection,b=Qr(),d=b.sorterAsc,u=nm(),g=o1(),y=yc().getFromId,R=tm(),I=am().redrawReglTraces,z=ZM(),F=z.MINSELECT,B=u.filter,O=u.tester,P=v1(),N=P.p2r,U=P.axValue,X=P.getTransform;function te(Fe){return Fe.subplot!==void 0}function ue(Fe,We,Oe,de,me){var be=!te(de),Ie=a(me),Xe=o(me),ht=s(me),bt=n(me),Ct=c(me),Zt=me==="drawline",Wt=me==="drawcircle",rr=Zt||Wt,Jt=de.gd,mr=Jt._fullLayout,ia=Ct&&mr.newselection.mode==="immediate"&&be,Ia=mr._zoomlayer,La=de.element.getBoundingClientRect(),Aa=de.plotinfo,Ga=X(Aa),ba=We-La.left,Xa=Oe-La.top;mr._calcInverseTransform(Jt);var yn=b.apply3DTransform(mr._invTransform)(ba,Xa);ba=yn[0],Xa=yn[1];var Kt=mr._invScaleX,zt=mr._invScaleY,$t=ba,Ht=Xa,Tr="M"+ba+","+Xa,qr=de.xaxes[0],ha=de.yaxes[0],Gr=qr._length,wa=ha._length,Da=Fe.altKey&&!(n(me)&&ht),Ya,Ka,an,mt,ot,Lr,Er;Z(Fe,Jt,de),Ie&&(Ya=B([[ba,Xa]],z.BENDPX));var Mr=Ia.selectAll("path.select-outline-"+Aa.id).data([1]),br=bt?mr.newshape:mr.newselection;bt&&(de.hasText=br.label.text||br.label.texttemplate);var Or=bt&&!ht?br.fillcolor:"rgba(0,0,0,0)",jr=br.line.color||(be?e.contrast(Jt._fullLayout.plot_bgcolor):"#7f7f7f");Mr.enter().append("path").attr("class","select-outline select-outline-"+Aa.id).style({opacity:bt?br.opacity/2:1,"stroke-dasharray":E(br.line.dash,br.line.width),"stroke-width":br.line.width+"px","shape-rendering":"crispEdges"}).call(e.stroke,jr).call(e.fill,Or).attr("fill-rule","evenodd").classed("cursor-move",!!bt).attr("transform",Ga).attr("d",Tr+"Z");var Dr=Ia.append("path").attr("class","zoombox-corners").style({fill:e.background,stroke:e.defaultLine,"stroke-width":1}).attr("transform",Ga).attr("d","M0,0Z");if(bt&&de.hasText){var Hr=Ia.select(".label-temp");Hr.empty()&&(Hr=Ia.append("g").classed("label-temp",!0).classed("select-outline",!0).style({opacity:.8}))}var na=mr._uid+z.SELECTID,ta=[],At=ae(Jt,de.xaxes,de.yaxes,de.subplot);ia&&!Fe.shiftKey&&(de._clearSubplotSelections=function(){if(be){var Ar=qr._id,oa=ha._id;nt(Jt,Ar,oa,At);for(var ga=(Jt.layout||{}).selections||[],Sa=[],za=!1,ra=0;ra=0){Jt._fullLayout._deactivateShape(Jt);return}if(!bt){var ga=mr.clickmode;g.done(na).then(function(){if(g.clear(na),Ar===2){for(Mr.remove(),ot=0;ot-1&&ie(oa,Jt,de.xaxes,de.yaxes,de.subplot,de,Mr),ga==="event"&&wr(Jt,void 0);t.click(Jt,oa,Aa.id)}).catch(b.error)}},de.doneFn=function(){Dr.remove(),g.done(na).then(function(){g.clear(na),!ia&&mt&&de.selectionDefs&&(mt.subtract=Da,de.selectionDefs.push(mt),de.mergedPolygons.length=0,[].push.apply(de.mergedPolygons,an)),(ia||bt)&&V(de,ia),de.doneFnCompleted&&de.doneFnCompleted(ta),Ct&&wr(Jt,Er)}).catch(b.error)}}function ie(Fe,We,Oe,de,me,be,Ie){var Xe=We._hoverdata,ht=We._fullLayout,bt=ht.clickmode,Ct=bt.indexOf("event")>-1,Zt=[],Wt,rr,Jt,mr,ia,Ia,La,Aa,Ga,ba;if(xe(Xe)){Z(Fe,We,be),Wt=ae(We,Oe,de,me);var Xa=Ae(Xe,Wt),yn=Xa.pointNumbers.length>0;if(yn?Ce(Wt,Xa):je(Wt)&&(La=Pe(Xa))){for(Ie&&Ie.remove(),ba=0;ba=0}function Q(Fe){return Fe._fullLayout._activeSelectionIndex>=0}function V(Fe,We){var Oe=Fe.dragmode,de=Fe.plotinfo,me=Fe.gd;se(me)&&me._fullLayout._deactivateShape(me),Q(me)&&me._fullLayout._deactivateSelection(me);var be=me._fullLayout,Ie=be._zoomlayer,Xe=n(Oe),ht=c(Oe);if(Xe||ht){var bt=Ie.selectAll(".select-outline-"+de.id);if(bt&&me._fullLayout._outlining){var Ct;Xe&&(Ct=S(bt,Fe)),Ct&&A.call("_guiRelayout",me,{shapes:Ct});var Zt;ht&&!te(Fe)&&(Zt=M(bt,Fe)),Zt&&(me._fullLayout._noEmitSelectedAtStart=!0,A.call("_guiRelayout",me,{selections:Zt}).then(function(){We&&_(me)})),me._fullLayout._outlining=!1}}de.selection={},de.selection.selectionDefs=Fe.selectionDefs=[],de.selection.mergedPolygons=Fe.mergedPolygons=[]}function re(Fe){return Fe._id}function ae(Fe,We,Oe,de){if(!Fe.calcdata)return[];var me=[],be=We.map(re),Ie=Oe.map(re),Xe,ht,bt;for(bt=0;bt0,be=me?de[0]:Oe;return We.selectedpoints?We.selectedpoints.indexOf(be)>-1:!1}function Ce(Fe,We){var Oe=[],de,me,be,Ie;for(Ie=0;Ie0&&Oe.push(de);if(Oe.length===1&&(be=Oe[0]===We.searchInfo,be&&(me=We.searchInfo.cd[0].trace,me.selectedpoints.length===We.pointNumbers.length))){for(Ie=0;Ie1||(We+=de.selectedpoints.length,We>1)))return!1;return We===1}function at(Fe,We,Oe){var de;for(de=0;de-1&&We;if(!Ie&&We){var Ar=Et(Fe,!0);if(Ar.length){var oa=Ar[0].xref,ga=Ar[0].yref;if(oa&&ga){var Sa=Yt(Ar),za=hr([y(Fe,oa,"x"),y(Fe,ga,"y")]);za(ta,Sa)}}Fe._fullLayout._noEmitSelectedAtStart?Fe._fullLayout._noEmitSelectedAtStart=!1:or&&wr(Fe,ta),Wt._reselect=!1}if(!Ie&&Wt._deselect){var ra=Wt._deselect;Xe=ra.xref,ht=ra.yref,et(Xe,ht,Ct)||nt(Fe,Xe,ht,de),or&&(ta.points.length?wr(Fe,ta):yt(Fe)),Wt._deselect=!1}return{eventData:ta,selectionTesters:Oe}}function De(Fe){var We=Fe.calcdata;if(We)for(var Oe=0;Oe=0){Or._fullLayout._deactivateShape(Or);return}var jr=Or._fullLayout.clickmode;if(J(Or),Mr===2&&!Me&&Ka(),Ze)jr.indexOf("select")>-1&&d(br,Or,nt,Ke,xe.id,Ct),jr.indexOf("event")>-1&&n.click(Or,br,xe.id);else if(Mr===1&&Me){var Dr=at?he:we,Hr=at==="s"||tt==="w"?0:1,na=Dr._name+".range["+Hr+"]",ta=P(Dr,Hr),At="left",or="middle";if(Dr.fixedrange)return;at?(or=at==="n"?"top":"bottom",Dr.side==="right"&&(At="right")):tt==="e"&&(At="right"),Or._context.showAxisRangeEntryBoxes&&h.select(bt).call(i.makeEditable,{gd:Or,immediate:!0,background:Or._fullLayout.paper_bgcolor,text:String(ta),fill:Dr.tickfont?Dr.tickfont.color:"#444",horizontalAlign:At,verticalAlign:or}).on("edit",function(Ar){var oa=Dr.d2r(Ar);oa!==void 0&&t.call("_guiRelayout",Or,na,oa)})}}f.init(Ct);var rr,Jt,mr,ia,Ia,La,Aa,Ga,ba,Xa;function yn(Mr,br,Or){var jr=bt.getBoundingClientRect();rr=br-jr.left,Jt=Or-jr.top,fe._fullLayout._calcInverseTransform(fe);var Dr=x.apply3DTransform(fe._fullLayout._invTransform)(rr,Jt);rr=Dr[0],Jt=Dr[1],mr={l:rr,r:rr,w:0,t:Jt,b:Jt,h:0},ia=fe._hmpixcount?fe._hmlumcount/fe._hmpixcount:E(fe._fullLayout.plot_bgcolor).getLuminance(),Ia="M0,0H"+Ut+"V"+Yt+"H0V0",La=!1,Aa="xy",Xa=!1,Ga=ue(Je,ia,Et,kt,Ia),ba=ie(Je,Et,kt)}function Kt(Mr,br){if(fe._transitioningWithDuration)return!1;var Or=Math.max(0,Math.min(Ut,be*Mr+rr)),jr=Math.max(0,Math.min(Yt,Ie*br+Jt)),Dr=Math.abs(Or-rr),Hr=Math.abs(jr-Jt);mr.l=Math.min(rr,Or),mr.r=Math.max(rr,Or),mr.t=Math.min(Jt,jr),mr.b=Math.max(Jt,jr);function na(){Aa="",mr.r=mr.l,mr.t=mr.b,ba.attr("d","M0,0Z")}if(vr.isSubplotConstrained)Dr>R||Hr>R?(Aa="xy",Dr/Ut>Hr/Yt?(Hr=Dr*Yt/Ut,Jt>jr?mr.t=Jt-Hr:mr.b=Jt+Hr):(Dr=Hr*Ut/Yt,rr>Or?mr.l=rr-Dr:mr.r=rr+Dr),ba.attr("d",Q(mr))):na();else if(hr.isSubplotConstrained)if(Dr>R||Hr>R){Aa="xy";var ta=Math.min(mr.l/Ut,(Yt-mr.b)/Yt),At=Math.max(mr.r/Ut,(Yt-mr.t)/Yt);mr.l=ta*Ut,mr.r=At*Ut,mr.b=(1-ta)*Yt,mr.t=(1-At)*Yt,ba.attr("d",Q(mr))}else na();else!dr||Hr0){var Ar;if(hr.isSubplotConstrained||!Rr&&dr.length===1){for(Ar=0;Ar1&&(na.maxallowed!==void 0&&yt===(na.range[0]1&&(ta.maxallowed!==void 0&&Fe===(ta.range[0]=0?Math.min(fe,.9):1/(1/Math.max(fe,-.3)+3.222))}function te(fe,xe,Ae){return fe?fe==="nsew"?Ae?"":xe==="pan"?"move":"crosshair":fe.toLowerCase()+"-resize":"pointer"}function ue(fe,xe,Ae,Pe,Ce){return fe.append("path").attr("class","zoombox").style({fill:xe>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform",r(Ae,Pe)).attr("d",Ce+"Z")}function ie(fe,xe,Ae){return fe.append("path").attr("class","zoombox-corners").style({fill:a.background,stroke:a.defaultLine,"stroke-width":1,opacity:0}).attr("transform",r(xe,Ae)).attr("d","M0,0Z")}function le(fe,xe,Ae,Pe,Ce,je){fe.attr("d",Pe+"M"+Ae.l+","+Ae.t+"v"+Ae.h+"h"+Ae.w+"v-"+Ae.h+"h-"+Ae.w+"Z"),q(fe,xe,Ce,je)}function q(fe,xe,Ae,Pe){Ae||(fe.transition().style("fill",Pe>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),xe.transition().style("opacity",1).duration(200))}function J(fe){h.select(fe).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function ee(fe){I&&fe.data&&fe._context.showTips&&(x.notifier(x._(fe,"Double-click to zoom back out"),"long"),I=!1)}function Z(fe,xe){return"M"+(fe.l-.5)+","+(xe-R-.5)+"h-3v"+(2*R+1)+"h3ZM"+(fe.r+.5)+","+(xe-R-.5)+"h3v"+(2*R+1)+"h-3Z"}function se(fe,xe){return"M"+(xe-R-.5)+","+(fe.t-.5)+"v-3h"+(2*R+1)+"v3ZM"+(xe-R-.5)+","+(fe.b+.5)+"v3h"+(2*R+1)+"v-3Z"}function Q(fe){var xe=Math.floor(Math.min(fe.b-fe.t,fe.r-fe.l,R)/2);return"M"+(fe.l-3.5)+","+(fe.t-.5+xe)+"h3v"+-xe+"h"+xe+"v-3h-"+(xe+3)+"ZM"+(fe.r+3.5)+","+(fe.t-.5+xe)+"h-3v"+-xe+"h"+-xe+"v-3h"+(xe+3)+"ZM"+(fe.r+3.5)+","+(fe.b+.5-xe)+"h-3v"+xe+"h"+-xe+"v3h"+(xe+3)+"ZM"+(fe.l-3.5)+","+(fe.b+.5-xe)+"h3v"+xe+"h"+xe+"v3h-"+(xe+3)+"Z"}function V(fe,xe,Ae,Pe,Ce){for(var je=!1,at={},tt={},Je,Ze,Me,we,he=(Ce||{}).xaHash,De=(Ce||{}).yaHash,et=0;et1&&x.warn("Full array edits are incompatible with other edits",c);var w=o[""][""];if(t(w))a.set(null);else if(Array.isArray(w))a.set(w);else return x.warn("Unrecognized full array edit value",c,w),!0;return T?!1:(f(l,m),p(i),!0)}var S=Object.keys(o).map(Number).sort(A),M=a.get(),_=M||[],b=s(m,c).get(),d=[],u=-1,g=_.length,y,R,I,z,F,B,O,P;for(y=0;y_.length-(O?0:1)){x.warn("index out of range",c,I);continue}if(B!==void 0)F.length>1&&x.warn("Insertion & removal are incompatible with edits to the same index.",c,I),t(B)?d.push(I):O?(B==="add"&&(B={}),_.splice(I,0,B),b&&b.splice(I,0,{})):x.warn("Unrecognized full object edit value",c,I,B),u===-1&&(u=I);else for(R=0;R=0;y--)_.splice(d[y],1),b&&b.splice(d[y],1);if(_.length?M||a.set(_):a.set(null),T)return!1;if(f(l,m),v!==h){var N;if(u===-1)N=S;else{for(g=Math.max(_.length,g),N=[],y=0;y=u));y++)N.push(I);for(y=u;y0&&x.log("Clearing previous rejected promises from queue."),T._promises=[]},Y.cleanLayout=function(T){var l;T||(T={}),T.xaxis1&&(T.xaxis||(T.xaxis=T.xaxis1),delete T.xaxis1),T.yaxis1&&(T.yaxis||(T.yaxis=T.yaxis1),delete T.yaxis1),T.scene1&&(T.scene||(T.scene=T.scene1),delete T.scene1);var m=(A.subplotsRegistry.cartesian||{}).attrRegex;(A.subplotsRegistry.polar||{}).attrRegex,(A.subplotsRegistry.ternary||{}).attrRegex,(A.subplotsRegistry.gl3d||{}).attrRegex;var w=Object.keys(T);for(l=0;l3?(R.x=1.02,R.xanchor="left"):R.x<-2&&(R.x=-.02,R.xanchor="right"),R.y>3?(R.y=1.02,R.yanchor="bottom"):R.y<-2&&(R.y=-.02,R.yanchor="top")),T.dragmode==="rotate"&&(T.dragmode="orbit"),e.clean(T),T.template&&T.template.layout&&Y.cleanLayout(T.template.layout),T};function a(T,l){var m=T[l],w=l.charAt(0);m&&m!=="paper"&&(T[l]=t(m,w,!0))}Y.cleanData=function(T){for(var l=0;l0)return T.substr(0,l)}Y.hasParent=function(T,l){for(var m=p(l);m;){if(m in T)return!0;m=p(m)}return!1};var v=["x","y","z"];Y.clearAxisTypes=function(T,l,m){for(var w=0;w=de.data.length||Xe<-de.data.length)throw new Error(be+" must be valid indices for gd.data.");if(me.indexOf(Xe,Ie+1)>-1||Xe>=0&&me.indexOf(-de.data.length+Xe)>-1||Xe<0&&me.indexOf(de.data.length+Xe)>-1)throw new Error("each index in "+be+" must be unique.")}}function N(de,me,be){if(!Array.isArray(de.data))throw new Error("gd.data must be an array.");if(typeof me>"u")throw new Error("currentIndices is a required argument.");if(Array.isArray(me)||(me=[me]),P(de,me,"currentIndices"),typeof be<"u"&&!Array.isArray(be)&&(be=[be]),typeof be<"u"&&P(de,be,"newIndices"),typeof be<"u"&&me.length!==be.length)throw new Error("current and new indices must be of equal length.")}function U(de,me,be){var Ie,Xe;if(!Array.isArray(de.data))throw new Error("gd.data must be an array.");if(typeof me>"u")throw new Error("traces must be defined.");for(Array.isArray(me)||(me=[me]),Ie=0;Ie"u")throw new Error("indices must be an integer or array of integers");P(de,be,"indices");for(var ht in me){if(!Array.isArray(me[ht])||me[ht].length!==be.length)throw new Error("attribute "+ht+" must be an array of length equal to indices array length");if(Xe&&(!(ht in Ie)||!Array.isArray(Ie[ht])||Ie[ht].length!==me[ht].length))throw new Error("when maxPoints is set as a key:value object it must contain a 1:1 corrispondence with the keys and number of traces in the update object")}}function te(de,me,be,Ie){var Xe=A.isPlainObject(Ie),ht=[],bt,Ct,Zt,Wt,rr;Array.isArray(be)||(be=[be]),be=O(be,de.data.length-1);for(var Jt in me)for(var mr=0;mr=0&&rr=0&&rr"u")return Wt=Y.redraw(de),t.add(de,Xe,bt,ht,Ct),Wt;Array.isArray(be)||(be=[be]);try{N(de,Ie,be)}catch(rr){throw de.data.splice(de.data.length-me.length,me.length),rr}return t.startSequence(de),t.add(de,Xe,bt,ht,Ct),Wt=Y.moveTraces(de,Ie,be),t.stopSequence(de),Wt}function ee(de,me){de=A.getGraphDiv(de);var be=[],Ie=Y.addTraces,Xe=ee,ht=[de,be,me],bt=[de,me],Ct,Zt;if(typeof me>"u")throw new Error("indices must be an integer or array of integers.");for(Array.isArray(me)||(me=[me]),P(de,me,"indices"),me=O(me,de.data.length-1),me.sort(A.sorterDes),Ct=0;Ct"u")for(be=[],Wt=0;Wt0&&typeof Ht.parts[ha]!="string";)ha--;var Gr=Ht.parts[ha],wa=Ht.parts[ha-1]+"."+Gr,Da=Ht.parts.slice(0,ha).join("."),Ya=E(de.layout,Da).get(),Ka=E(Ie,Da).get(),an=Ht.get();if(Tr!==void 0){Ga[$t]=Tr,ba[$t]=Gr==="reverse"?Tr:Q(an);var mt=i.getLayoutValObject(Ie,Ht.parts);if(mt&&mt.impliedEdits&&Tr!==null)for(var ot in mt.impliedEdits)Xa(A.relativeAttr($t,ot),mt.impliedEdits[ot]);if(["width","height"].indexOf($t)!==-1)if(Tr){Xa("autosize",null);var Lr=$t==="height"?"width":"height";Xa(Lr,Ie[Lr])}else Ie[$t]=de._initialAutoSize[$t];else if($t==="autosize")Xa("width",Tr?null:Ie.width),Xa("height",Tr?null:Ie.height);else if(wa.match(Ce))zt(wa),E(Ie,Da+"._inputRange").set(null);else if(wa.match(je)){zt(wa),E(Ie,Da+"._inputRange").set(null);var Er=E(Ie,Da).get();Er._inputDomain&&(Er._input.domain=Er._inputDomain.slice())}else wa.match(at)&&E(Ie,Da+"._inputDomain").set(null);if(Gr==="type"){Kt=Ya;var Mr=Ka.type==="linear"&&Tr==="log",br=Ka.type==="log"&&Tr==="linear";if(Mr||br){if(!Kt||!Kt.range)Xa(Da+".autorange",!0);else if(Ka.autorange)Mr&&(Kt.range=Kt.range[1]>Kt.range[0]?[1,2]:[2,1]);else{var Or=Kt.range[0],jr=Kt.range[1];Mr?(Or<=0&&jr<=0&&Xa(Da+".autorange",!0),Or<=0?Or=jr/1e6:jr<=0&&(jr=Or/1e6),Xa(Da+".range[0]",Math.log(Or)/Math.LN10),Xa(Da+".range[1]",Math.log(jr)/Math.LN10)):(Xa(Da+".range[0]",Math.pow(10,Or)),Xa(Da+".range[1]",Math.pow(10,jr)))}Array.isArray(Ie._subplots.polar)&&Ie._subplots.polar.length&&Ie[Ht.parts[0]]&&Ht.parts[1]==="radialaxis"&&delete Ie[Ht.parts[0]]._subplot.viewInitial["radialaxis.range"],r.getComponentMethod("annotations","convertCoords")(de,Ka,Tr,Xa),r.getComponentMethod("images","convertCoords")(de,Ka,Tr,Xa)}else Xa(Da+".autorange",!0),Xa(Da+".range",null);E(Ie,Da+"._inputRange").set(null)}else if(Gr.match(_)){var Dr=E(Ie,$t).get(),Hr=(Tr||{}).type;(!Hr||Hr==="-")&&(Hr="linear"),r.getComponentMethod("annotations","convertCoords")(de,Dr,Hr,Xa),r.getComponentMethod("images","convertCoords")(de,Dr,Hr,Xa)}var na=m.containerArrayMatch($t);if(na){rr=na.array,Jt=na.index;var ta=na.property,At=mt||{editType:"calc"};Jt!==""&&ta===""&&(m.isAddVal(Tr)?ba[$t]=null:m.isRemoveVal(Tr)?ba[$t]=(E(be,rr).get()||[])[Jt]:A.warn("unrecognized full object value",me)),M.update(Aa,At),Wt[rr]||(Wt[rr]={});var or=Wt[rr][Jt];or||(or=Wt[rr][Jt]={}),or[ta]=Tr,delete me[$t]}else Gr==="reverse"?(Ya.range?Ya.range.reverse():(Xa(Da+".autorange",!0),Ya.range=[1,0]),Ka.autorange?Aa.calc=!0:Aa.plot=!0):($t==="dragmode"&&(Tr===!1&&an!==!1||Tr!==!1&&an===!1)||Ie._has("scatter-like")&&Ie._has("regl")&&$t==="dragmode"&&(Tr==="lasso"||Tr==="select")&&!(an==="lasso"||an==="select")?Aa.plot=!0:mt?M.update(Aa,mt):Aa.calc=!0,Ht.set(Tr))}}for(rr in Wt){var Ar=m.applyContainerArrayChanges(de,ht(be,rr),Wt[rr],Aa,ht);Ar||(Aa.plot=!0)}for(var oa in yn){Kt=o.getFromId(de,oa);var ga=Kt&&Kt._constraintGroup;if(ga){Aa.calc=!0;for(var Sa in ga)yn[Sa]||(o.getFromId(de,Sa)._constraintShrinkable=!0)}}(Je(de)||me.height||me.width)&&(Aa.plot=!0);var za=Ie.shapes;for(Jt=0;Jt1;)if(Ie.pop(),be=E(me,Ie.join(".")+".uirevision").get(),be!==void 0)return be;return me.uirevision}function nt(de,me){for(var be=0;be=Xe.length?Xe[0]:Xe[Wt]:Xe}function Ct(Wt){return Array.isArray(ht)?Wt>=ht.length?ht[0]:ht[Wt]:ht}function Zt(Wt,rr){var Jt=0;return function(){if(Wt&&++Jt===rr)return Wt()}}return new Promise(function(Wt,rr){function Jt(){if(Ie._frameQueue.length!==0){for(;Ie._frameQueue.length;){var Gr=Ie._frameQueue.pop();Gr.onInterrupt&&Gr.onInterrupt()}de.emit("plotly_animationinterrupted",[])}}function mr(Gr){if(Gr.length!==0){for(var wa=0;waIe._timeToNext&&Ia()};Gr()}var Aa=0;function Ga(Gr){return Array.isArray(Xe)?Aa>=Xe.length?Gr.transitionOpts=Xe[Aa]:Gr.transitionOpts=Xe[0]:Gr.transitionOpts=Xe,Aa++,Gr}var ba,Xa,yn=[],Kt=me==null,zt=Array.isArray(me),$t=!Kt&&!zt&&A.isPlainObject(me);if($t)yn.push({type:"object",data:Ga(A.extendFlat({},me))});else if(Kt||["string","number"].indexOf(typeof me)!==-1)for(ba=0;ba0&&qrqr)&&ha.push(Xa);yn=ha}}yn.length>0?mr(yn):(de.emit("plotly_animated"),Wt())})}function wr(de,me,be){if(de=A.getGraphDiv(de),me==null)return Promise.resolve();if(!A.isPlotDiv(de))throw new Error("This element is not a Plotly plot: "+de+". It's likely that you've failed to create a plot before adding frames. For more details, see https://plotly.com/javascript/animations/");var Ie,Xe,ht,bt,Ct=de._transitionData._frames,Zt=de._transitionData._frameHash;if(!Array.isArray(me))throw new Error("addFrames failure: frameList must be an Array of frame definitions"+me);var Wt=Ct.length+me.length*2,rr=[],Jt={};for(Ie=me.length-1;Ie>=0;Ie--)if(A.isPlainObject(me[Ie])){var mr=me[Ie].name,ia=(Zt[mr]||Jt[mr]||{}).name,Ia=me[Ie].name,La=Zt[ia]||Jt[ia];ia&&Ia&&typeof Ia=="number"&&La&&bHt.index?-1:$t.index=0;Ie--){if(Xe=rr[Ie].frame,typeof Xe.name=="number"&&A.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!Xe.name)for(;Zt[Xe.name="frame "+de._transitionData._counter++];);if(Zt[Xe.name]){for(ht=0;ht=0;be--)Ie=me[be],ht.push({type:"delete",index:Ie}),bt.unshift({type:"insert",index:Ie,value:Xe[Ie]});var Ct=a.modifyFrames,Zt=a.modifyFrames,Wt=[de,bt],rr=[de,ht];return t&&t.add(de,Ct,Wt,Zt,rr),a.modifyFrames(de,ht)}function Fe(de){de=A.getGraphDiv(de);var me=de._fullLayout||{},be=de._fullData||[];return a.cleanPlot([],{},be,me),a.purge(de),e.purge(de),me._container&&me._container.remove(),delete de._context,de}function We(de){var me=de._fullLayout,be=de.getBoundingClientRect();if(!A.equalDomRects(be,me._lastBBox)){var Ie=me._invTransform=A.inverseTransformMatrix(A.getFullTransformMatrix(de));me._invScaleX=Math.sqrt(Ie[0][0]*Ie[0][0]+Ie[0][1]*Ie[0][1]+Ie[0][2]*Ie[0][2]),me._invScaleY=Math.sqrt(Ie[1][0]*Ie[1][0]+Ie[1][1]*Ie[1][1]+Ie[1][2]*Ie[1][2]),me._lastBBox=be}}function Oe(de){var me=H.select(de),be=de._fullLayout;if(be._calcInverseTransform=We,be._calcInverseTransform(de),be._container=me.selectAll(".plot-container").data([0]),be._container.enter().insert("div",":first-child").classed("plot-container",!0).classed("plotly",!0).style({width:"100%",height:"100%"}),be._paperdiv=be._container.selectAll(".svg-container").data([0]),be._paperdiv.enter().append("div").classed("user-select-none",!0).classed("svg-container",!0).style("position","relative"),be._glcontainer=be._paperdiv.selectAll(".gl-container").data([{}]),be._glcontainer.enter().append("div").classed("gl-container",!0),be._paperdiv.selectAll(".main-svg").remove(),be._paperdiv.select(".modebar-container").remove(),be._paper=be._paperdiv.insert("svg",":first-child").classed("main-svg",!0),be._toppaper=be._paperdiv.append("svg").classed("main-svg",!0),be._modebardiv=be._paperdiv.append("div"),delete be._modeBar,be._hoverpaper=be._paperdiv.append("svg").classed("main-svg",!0),!be._uid){var Ie={};H.selectAll("defs").each(function(){this.id&&(Ie[this.id.split("-")[1]]=1)}),be._uid=A.randstr(Ie)}be._paperdiv.selectAll(".main-svg").attr(v.svgAttrs),be._defs=be._paper.append("defs").attr("id","defs-"+be._uid),be._clips=be._defs.append("g").classed("clips",!0),be._topdefs=be._toppaper.append("defs").attr("id","topdefs-"+be._uid),be._topclips=be._topdefs.append("g").classed("clips",!0),be._bgLayer=be._paper.append("g").classed("bglayer",!0),be._draggers=be._paper.append("g").classed("draglayer",!0);var Xe=be._paper.append("g").classed("layer-below",!0);be._imageLowerLayer=Xe.append("g").classed("imagelayer",!0),be._shapeLowerLayer=Xe.append("g").classed("shapelayer",!0),be._cartesianlayer=be._paper.append("g").classed("cartesianlayer",!0),be._polarlayer=be._paper.append("g").classed("polarlayer",!0),be._smithlayer=be._paper.append("g").classed("smithlayer",!0),be._ternarylayer=be._paper.append("g").classed("ternarylayer",!0),be._geolayer=be._paper.append("g").classed("geolayer",!0),be._funnelarealayer=be._paper.append("g").classed("funnelarealayer",!0),be._pielayer=be._paper.append("g").classed("pielayer",!0),be._iciclelayer=be._paper.append("g").classed("iciclelayer",!0),be._treemaplayer=be._paper.append("g").classed("treemaplayer",!0),be._sunburstlayer=be._paper.append("g").classed("sunburstlayer",!0),be._indicatorlayer=be._toppaper.append("g").classed("indicatorlayer",!0),be._glimages=be._paper.append("g").classed("glimages",!0);var ht=be._toppaper.append("g").classed("layer-above",!0);be._imageUpperLayer=ht.append("g").classed("imagelayer",!0),be._shapeUpperLayer=ht.append("g").classed("shapelayer",!0),be._selectionLayer=be._toppaper.append("g").classed("selectionlayer",!0),be._infolayer=be._toppaper.append("g").classed("infolayer",!0),be._menulayer=be._toppaper.append("g").classed("menulayer",!0),be._zoomlayer=be._toppaper.append("g").classed("zoomlayer",!0),be._hoverlayer=be._hoverpaper.append("g").classed("hoverlayer",!0),be._modebardiv.classed("modebar-container",!0).style("position","absolute").style("top","0px").style("right","0px"),de.emit("plotly_framework")}Y.animate=dr,Y.addFrames=wr,Y.deleteFrames=yt,Y.addTraces=J,Y.deleteTraces=ee,Y.extendTraces=le,Y.moveTraces=Z,Y.prependTraces=q,Y.newPlot=B,Y._doPlot=u,Y.purge=Fe,Y.react=Ut,Y.redraw=F,Y.relayout=xe,Y.restyle=se,Y.setPlotConfig=y,Y.update=Ze,Y._guiRelayout=Me(xe),Y._guiRestyle=Me(se),Y._guiUpdate=Me(Ze),Y._storeDirectGUIEdit=ae}}),id=He({"src/snapshot/helpers.js"(Y){var H=qi();Y.getDelay=function(A){return A._has&&(A._has("gl3d")||A._has("mapbox")||A._has("map"))?500:0},Y.getRedrawFunc=function(A){return function(){H.getComponentMethod("colorbar","draw")(A)}},Y.encodeSVG=function(A){return"data:image/svg+xml,"+encodeURIComponent(A)},Y.encodeJSON=function(A){return"data:application/json,"+encodeURIComponent(A)};var h=window.URL||window.webkitURL;Y.createObjectURL=function(A){return h.createObjectURL(A)},Y.revokeObjectURL=function(A){return h.revokeObjectURL(A)},Y.createBlob=function(A,E){if(E==="svg")return new window.Blob([A],{type:"image/svg+xml;charset=utf-8"});if(E==="full-json")return new window.Blob([A],{type:"application/json;charset=utf-8"});var e=x(window.atob(A));return new window.Blob([e],{type:"image/"+E})},Y.octetStream=function(A){document.location.href="data:application/octet-stream"+A};function x(A){for(var E=A.length,e=new ArrayBuffer(E),t=new Uint8Array(e),r=0;r")!==-1?"":o.html(s).text()});return o.remove(),n}function i(a){return a.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")}H.exports=function(o,n,s){var c=o._fullLayout,f=c._paper,p=c._toppaper,v=c.width,T=c.height,l;f.insert("rect",":first-child").call(x.setRect,0,0,v,T).call(A.fill,c.paper_bgcolor);var m=c._basePlotModules||[];for(l=0;l1&&M.push(s("object","layout"))),x.supplyDefaults(_);for(var u=_._fullData,g=b.length,y=0;yR.length&&S.push(s("unused",M,g.concat(R.length)));var P=R.length,N=Array.isArray(O);N&&(P=Math.min(P,O.length));var U,X,te,ue,ie;if(I.dimensions===2)for(X=0;XR[X].length&&S.push(s("unused",M,g.concat(X,R[X].length)));var le=R[X].length;for(U=0;U<(N?Math.min(le,O[X].length):le);U++)te=N?O[X][U]:O,ue=y[X][U],ie=R[X][U],h.validate(ue,te)?ie!==ue&&ie!==+ue&&S.push(s("dynamic",M,g.concat(X,U),ue,ie)):S.push(s("value",M,g.concat(X,U),ue))}else S.push(s("array",M,g.concat(X),y[X]));else for(X=0;XF?S.push({code:"unused",traceType:y,templateCount:z,dataCount:F}):F>z&&S.push({code:"reused",traceType:y,templateCount:z,dataCount:F})}}function B(O,P){for(var N in O)if(N.charAt(0)!=="_"){var U=O[N],X=s(O,N,P);h(U)?(Array.isArray(O)&&U._template===!1&&U.templateitemname&&S.push({code:"missing",path:X,templateitemname:U.templateitemname}),B(U,X)):Array.isArray(U)&&c(U)&&B(U,X)}}if(B({data:_,layout:M},""),S.length)return S.map(f)};function c(p){for(var v=0;v=0;f--){var p=e[f];if(p.type==="scatter"&&p.xaxis===s.xaxis&&p.yaxis===s.yaxis){p.opacity=void 0;break}}}}}}}),sE=He({"src/traces/scatter/layout_defaults.js"(Y,H){var h=Qr(),x=s1();H.exports=function(A,E){function e(r,i){return h.coerce(A,E,x,r,i)}var t=E.barmode==="group";E.scattermode==="group"&&e("scattergap",t?E.bargap:.2)}}}),wv=He({"src/plots/cartesian/align_period.js"(Y,H){var h=Vi(),x=Qr(),A=x.dateTime2ms,E=x.incrementMonth,e=qo(),t=e.ONEAVGMONTH;H.exports=function(i,a,o,n){if(a.type!=="date")return{vals:n};var s=i[o+"periodalignment"];if(!s)return{vals:n};var c=i[o+"period"],f;if(h(c)){if(c=+c,c<=0)return{vals:n}}else if(typeof c=="string"&&c.charAt(0)==="M"){var p=+c.substring(1);if(p>0&&Math.round(p)===p)f=p;else return{vals:n}}for(var v=a.calendar,T=s==="start",l=s==="end",m=i[o+"period0"],w=A(m,v)||0,S=[],M=[],_=[],b=n.length,d=0;du;)R=E(R,-f,v);for(;R<=u;)R=E(R,f,v);y=E(R,-f,v)}else{for(g=Math.round((u-w)/c),R=w+g*c;R>u;)R-=c;for(;R<=u;)R+=c;y=R-c}S[d]=T?y:l?R:(y+R)/2,M[d]=y,_[d]=R}return{vals:S,starts:M,ends:_}}}}),nv=He({"src/traces/scatter/colorscale_calc.js"(Y,H){var h=kh().hasColorscale,x=Ch(),A=cu();H.exports=function(e,t){A.hasLines(t)&&h(t,"line")&&x(e,t,{vals:t.line.color,containerStr:"line",cLetter:"c"}),A.hasMarkers(t)&&(h(t,"marker")&&x(e,t,{vals:t.marker.color,containerStr:"marker",cLetter:"c"}),h(t,"marker.line")&&x(e,t,{vals:t.marker.line.color,containerStr:"marker.line",cLetter:"c"}))}}}),jv=He({"src/traces/scatter/arrays_to_calcdata.js"(Y,H){var h=Qr();H.exports=function(A,E){for(var e=0;eB&&y[P].gap;)P--;for(U=y[P].s,O=y.length-1;O>P;O--)y[O].s=U;for(;BN+O||!h(P))}for(var X=0;Xz[v]&&v0?e:t)/(v._m*m*(v._m>0?e:t)))),Zt*=1e3}if(Wt===A){if(l&&(Wt=v.c2p(Ct.y,!0)),Wt===A)return!1;Wt*=1e3}return[Zt,Wt]}function re(bt,Ct,Zt,Wt){var rr=Zt-bt,Jt=Wt-Ct,mr=.5-bt,ia=.5-Ct,Ia=rr*rr+Jt*Jt,La=rr*mr+Jt*ia;if(La>0&&La1||Math.abs(mr.y-Zt[0][1])>1)&&(mr=[mr.x,mr.y],Wt&&Ae(mr,bt)je||bt[1]tt)return[a(bt[0],Ce,je),a(bt[1],at,tt)]}function Et(bt,Ct){if(bt[0]===Ct[0]&&(bt[0]===Ce||bt[0]===je)||bt[1]===Ct[1]&&(bt[1]===at||bt[1]===tt))return!0}function kt(bt,Ct){var Zt=[],Wt=Ke(bt),rr=Ke(Ct);return Wt&&rr&&Et(Wt,rr)||(Wt&&Zt.push(Wt),rr&&Zt.push(rr)),Zt}function Ut(bt,Ct,Zt){return function(Wt,rr){var Jt=Ke(Wt),mr=Ke(rr),ia=[];if(Jt&&mr&&Et(Jt,mr))return ia;Jt&&ia.push(Jt),mr&&ia.push(mr);var Ia=2*r.constrain((Wt[bt]+rr[bt])/2,Ct,Zt)-((Jt||Wt)[bt]+(mr||rr)[bt]);if(Ia){var La;Jt&&mr?La=Ia>0==Jt[bt]>mr[bt]?Jt:mr:La=Jt||mr,La[bt]+=Ia}return ia}}var Yt;d==="linear"||d==="spline"?Yt=nt:d==="hv"||d==="vh"?Yt=kt:d==="hvh"?Yt=Ut(0,Ce,je):d==="vhv"&&(Yt=Ut(1,at,tt));function vr(bt,Ct){var Zt=Ct[0]-bt[0],Wt=(Ct[1]-bt[1])/Zt,rr=(bt[1]*Ct[0]-Ct[1]*bt[0])/Zt;return rr>0?[Wt>0?Ce:je,tt]:[Wt>0?je:Ce,at]}function hr(bt){var Ct=bt[0],Zt=bt[1],Wt=Ct===z[F-1][0],rr=Zt===z[F-1][1];if(!(Wt&&rr))if(F>1){var Jt=Ct===z[F-2][0],mr=Zt===z[F-2][1];Wt&&(Ct===Ce||Ct===je)&&Jt?mr?F--:z[F-1]=bt:rr&&(Zt===at||Zt===tt)&&mr?Jt?F--:z[F-1]=bt:z[F++]=bt}else z[F++]=bt}function Rr(bt){z[F-1][0]!==bt[0]&&z[F-1][1]!==bt[1]&&hr([we,he]),hr(bt),De=null,we=he=0}var dr=r.isArrayOrTypedArray(M);function wr(bt){if(bt&&S&&(bt.i=B,bt.d=s,bt.trace=f,bt.marker=dr?M[bt.i]:M,bt.backoff=S),ae=bt[0]/m,fe=bt[1]/w,Ze=bt[0]je?je:0,Me=bt[1]tt?tt:0,Ze||Me){if(!F)z[F++]=[Ze||bt[0],Me||bt[1]];else if(De){var Ct=Yt(De,bt);Ct.length>1&&(Rr(Ct[0]),z[F++]=Ct[1])}else et=Yt(z[F-1],bt)[0],z[F++]=et;var Zt=z[F-1];Ze&&Me&&(Zt[0]!==Ze||Zt[1]!==Me)?(De&&(we!==Ze&&he!==Me?hr(we&&he?vr(De,bt):[we||Ze,he||Me]):we&&he&&hr([we,he])),hr([Ze,Me])):we-Ze&&he-Me&&hr([Ze||we,Me||he]),De=bt,we=Ze,he=Me}else De&&Rr(Yt(De,bt)[0]),z[F++]=bt}for(B=0;Bxe(X,yt))break;P=X,ee=ie[0]*ue[0]+ie[1]*ue[1],ee>q?(q=ee,N=X,te=!1):ee=s.length||!X)break;wr(X),O=X}}De&&hr([we||De[0],he||De[1]]),y.push(z.slice(0,F))}var Fe=d.slice(d.length-1);if(S&&Fe!=="h"&&Fe!=="v"){for(var We=!1,Oe=-1,de=[],me=0;me=0?o=p:(o=p=f,f++),o0,d=a(p,v,T);if(S=l.selectAll("g.trace").data(d,function(g){return g[0].trace.uid}),S.enter().append("g").attr("class",function(g){return"trace scatter trace"+g[0].trace.uid}).style("stroke-miterlimit",2),S.order(),n(p,S,v),b){w&&(M=w());var u=h.transition().duration(m.duration).ease(m.easing).each("end",function(){M&&M()}).each("interrupt",function(){M&&M()});u.each(function(){l.selectAll("g.trace").each(function(g,y){s(p,y,v,g,d,this,m)})})}else S.each(function(g,y){s(p,y,v,g,d,this,m)});_&&S.exit().remove(),l.selectAll("path:not([d])").remove()};function n(f,p,v){p.each(function(T){var l=E(h.select(this),"g","fills");t.setClipUrl(l,v.layerClipId,f);var m=T[0].trace,w=[];m._ownfill&&w.push("_ownFill"),m._nexttrace&&w.push("_nextFill");var S=l.selectAll("g").data(w,e);S.enter().append("g"),S.exit().each(function(M){m[M]=null}).remove(),S.order().each(function(M){m[M]=E(h.select(this),"path","js-fill")})})}function s(f,p,v,T,l,m,w){var S=f._context.staticPlot,M;c(f,p,v,T,l);var _=!!w&&w.duration>0;function b(hr){return _?hr.transition():hr}var d=v.xaxis,u=v.yaxis,g=T[0].trace,y=g.line,R=h.select(m),I=E(R,"g","errorbars"),z=E(R,"g","lines"),F=E(R,"g","points"),B=E(R,"g","text");if(x.getComponentMethod("errorbars","plot")(f,I,v,w),g.visible!==!0)return;b(R).style("opacity",g.opacity);var O,P,N=g.fill.charAt(g.fill.length-1);N!=="x"&&N!=="y"&&(N="");var U,X;N==="y"?(U=1,X=u.c2p(0,!0)):N==="x"&&(U=0,X=d.c2p(0,!0)),T[0][v.isRangePlot?"nodeRangePlot3":"node3"]=R;var te="",ue=[],ie=g._prevtrace,le=null,q=null;ie&&(te=ie._prevRevpath||"",P=ie._nextFill,ue=ie._ownPolygons,le=ie._fillsegments,q=ie._fillElement);var J,ee,Z="",se="",Q,V,re,ae,fe,xe,Ae=[];g._polygons=[];var Pe=[],Ce=[],je=A.noop;if(O=g._ownFill,r.hasLines(g)||g.fill!=="none"){P&&P.datum(T),["hv","vh","hvh","vhv"].indexOf(y.shape)!==-1?(Q=t.steps(y.shape),V=t.steps(y.shape.split("").reverse().join(""))):y.shape==="spline"?Q=V=function(hr){var Rr=hr[hr.length-1];return hr.length>1&&hr[0][0]===Rr[0]&&hr[0][1]===Rr[1]?t.smoothclosed(hr.slice(1),y.smoothing):t.smoothopen(hr,y.smoothing)}:Q=V=function(hr){return"M"+hr.join("L")},re=function(hr){return V(hr.reverse())},Ce=i(T,{xaxis:d,yaxis:u,trace:g,connectGaps:g.connectgaps,baseTolerance:Math.max(y.width||1,3)/4,shape:y.shape,backoff:y.backoff,simplify:y.simplify,fill:g.fill}),Pe=new Array(Ce.length);var at=0;for(M=0;M=S[0]&&R.x<=S[1]&&R.y>=M[0]&&R.y<=M[1]}),u=Math.ceil(d.length/b),g=0;l.forEach(function(R,I){var z=R[0].trace;r.hasMarkers(z)&&z.marker.maxdisplayed>0&&I=Math.min(ie,le)&&v<=Math.max(ie,le)?0:1/0}var q=Math.max(3,ue.mrc||0),J=1-1/q,ee=Math.abs(f.c2p(ue.x)-v);return ee=Math.min(ie,le)&&T<=Math.max(ie,le)?0:1/0}var q=Math.max(3,ue.mrc||0),J=1-1/q,ee=Math.abs(p.c2p(ue.y)-T);return eese!=Pe>=se&&(fe=re[V-1][0],xe=re[V][0],Pe-Ae&&(ae=fe+(xe-fe)*(se-Ae)/(Pe-Ae),q=Math.min(q,ae),J=Math.max(J,ae)));return q=Math.max(q,0),J=Math.min(J,f._length),{x0:q,x1:J,y0:se,y1:se}}if(m.indexOf("fills")!==-1&&c._fillElement){var U=P(c._fillElement)&&!P(c._fillExclusionElement);if(U){var X=N(c._polygons);X===null&&(X={x0:l[0],x1:l[0],y0:l[1],y1:l[1]});var te=e.defaultLine;return e.opacity(c.fillcolor)?te=c.fillcolor:e.opacity((c.line||{}).color)&&(te=c.line.color),h.extendFlat(i,{distance:i.maxHoverDistance,x0:X.x0,x1:X.x1,y0:X.y0,y1:X.y1,color:te,hovertemplate:!1}),delete i.index,c.text&&!h.isArrayOrTypedArray(c.text)?i.text=String(c.text):i.text=c.name,[i]}}}}}),Z0=He({"src/traces/scatter/select.js"(Y,H){var h=cu();H.exports=function(A,E){var e=A.cd,t=A.xaxis,r=A.yaxis,i=[],a=e[0].trace,o,n,s,c,f=!h.hasMarkers(a)&&!h.hasText(a);if(f)return[];if(E===!1)for(o=0;o0&&(n["_"+a+"axes"]||{})[i])return n;if((n[a+"axis"]||a)===i){if(t(n,a))return n;if((n[a]||[]).length||n[a+"0"])return n}}}function e(r){return{v:"x",h:"y"}[r.orientation||"v"]}function t(r,i){var a=e(r),o=h(r,"box-violin"),n=h(r._fullInput||{},"candlestick");return o&&!n&&i===a&&r[a]===void 0&&r[a+"0"]===void 0}}}),b1=He({"src/plots/cartesian/category_order_defaults.js"(Y,H){var h=Lf().isTypedArraySpec;function x(A,E){var e=E.dataAttr||A._id.charAt(0),t={},r,i,a;if(E.axData)r=E.axData;else for(r=[],i=0;i0||h(i),o;a&&(o="array");var n=t("categoryorder",o),s;n==="array"&&(s=t("categoryarray")),!a&&n==="array"&&(n=e.categoryorder="trace"),n==="trace"?e._initialCategories=[]:n==="array"?e._initialCategories=s.slice():(s=x(e,r).sort(),n==="category ascending"?e._initialCategories=s:n==="category descending"&&(e._initialCategories=s.reverse()))}}}}),sm=He({"src/plots/cartesian/line_grid_defaults.js"(Y,H){var h=Uf().mix,x=mf(),A=Qr();H.exports=function(e,t,r,i){i=i||{};var a=i.dfltColor;function o(g,y){return A.coerce2(e,t,i.attributes,g,y)}var n=o("linecolor",a),s=o("linewidth"),c=r("showline",i.showLine||!!n||!!s);c||(delete t.linecolor,delete t.linewidth);var f=h(a,i.bgColor,i.blend||x.lightFraction).toRgbString(),p=o("gridcolor",f),v=o("gridwidth"),T=o("griddash"),l=r("showgrid",i.showGrid||!!p||!!v||!!T);if(l||(delete t.gridcolor,delete t.gridwidth,delete t.griddash),i.hasMinor){var m=h(t.gridcolor,i.bgColor,67).toRgbString(),w=o("minor.gridcolor",m),S=o("minor.gridwidth",t.gridwidth||1),M=o("minor.griddash",t.griddash||"solid"),_=r("minor.showgrid",!!w||!!S||!!M);_||(delete t.minor.gridcolor,delete t.minor.gridwidth,delete t.minor.griddash)}if(!i.noZeroLine){o("zerolinelayer");var b=o("zerolinecolor",a),d=o("zerolinewidth"),u=r("zeroline",i.showGrid||!!b||!!d);u||(delete t.zerolinelayer,delete t.zerolinecolor,delete t.zerolinewidth)}}}}),lm=He({"src/plots/cartesian/axis_defaults.js"(Y,H){var h=Vi(),x=qi(),A=Qr(),E=cl(),e=uh(),t=Kf(),r=Mp(),i=N0(),a=qd(),o=Gd(),n=b1(),s=sm(),c=Bb(),f=Nv(),p=jf().WEEKDAY_PATTERN,v=jf().HOUR_PATTERN;H.exports=function(S,M,_,b,d){var u=b.letter,g=b.font||{},y=b.splomStash||{},R=_("visible",!b.visibleDflt),I=M._template||{},z=M.type||I.type||"-",F;if(z==="date"){var B=x.getComponentMethod("calendars","handleDefaults");B(S,M,"calendar",b.calendar),b.noTicklabelmode||(F=_("ticklabelmode"))}!b.noTicklabelindex&&(z==="date"||z==="linear")&&_("ticklabelindex");var O="";(!b.noTicklabelposition||z==="multicategory")&&(O=A.coerce(S,M,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:F==="period"?["outside","inside"]:u==="x"?["outside","inside","outside left","inside left","outside right","inside right"]:["outside","inside","outside top","inside top","outside bottom","inside bottom"]}},"ticklabelposition")),b.noTicklabeloverflow||_("ticklabeloverflow",O.indexOf("inside")!==-1?"hide past domain":z==="category"||z==="multicategory"?"allow":"hide past div"),f(M,d),c(S,M,_,b),n(S,M,_,b),b.noHover||(z!=="category"&&_("hoverformat"),b.noUnifiedhovertitle||_("unifiedhovertitle.text"));var P=_("color"),N=P!==t.color.dflt?P:g.color,U=y.label||d._dfltTitle[u];if(o(S,M,_,z,b),!R)return M;_("title.text",U),A.coerceFont(_,"title.font",g,{overrideDflt:{size:A.bigFont(g.size),color:N}}),r(S,M,_,z);var X=b.hasMinor;if(X&&(E.newContainer(M,"minor"),r(S,M,_,z,{isMinor:!0})),a(S,M,_,z,b),i(S,M,_,b),X){var te=b.isMinor;b.isMinor=!0,i(S,M,_,b),b.isMinor=te}s(S,M,_,{dfltColor:P,bgColor:b.bgColor,showGrid:b.showGrid,hasMinor:X,attributes:t}),X&&!M.minor.ticks&&!M.minor.showgrid&&delete M.minor,(M.showline||M.ticks)&&_("mirror");var ue=z==="multicategory";if(!b.noTickson&&(z==="category"||ue)&&(M.ticks||M.showgrid)&&(ue?(_("tickson","boundaries"),delete M.ticklabelposition):_("tickson")),ue){var ie=_("showdividers");ie&&(_("dividercolor"),_("dividerwidth"))}if(z==="date")if(e(S,M,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:T}),!M.rangebreaks.length)delete M.rangebreaks;else{for(var le=0;le=2){var u="",g,y;if(d.length===2){for(g=0;g<2;g++)if(y=m(d[g]),y){u=p;break}}var R=_("pattern",u);if(R===p)for(g=0;g<2;g++)y=m(d[g]),y&&(S.bounds[g]=d[g]=y-1);if(R)for(g=0;g<2;g++)switch(y=d[g],R){case p:if(!h(y)){S.enabled=!1;return}if(y=+y,y!==Math.floor(y)||y<0||y>=7){S.enabled=!1;return}S.bounds[g]=d[g]=y;break;case v:if(!h(y)){S.enabled=!1;return}if(y=+y,y<0||y>24){S.enabled=!1;return}S.bounds[g]=d[g]=y;break}if(M.autorange===!1){var I=M.range;if(I[0]I[1]){S.enabled=!1;return}}else if(d[0]>I[0]&&d[1]_[1]-1/4096&&(e.domain=f),x.noneOrAll(E.domain,e.domain,f),e.tickmode==="sync"&&(e.tickmode="auto")}return t("layer"),e}}}),fE=He({"src/plots/cartesian/layout_defaults.js"(Y,H){var h=Qr(),x=zi(),A=Dh().isUnifiedHover,E=Hb(),e=cl(),t=F0(),r=Kf(),i=uw(),a=lm(),o=kp(),n=w1(),s=yc(),c=s.id2name,f=s.name2id,p=jf().AX_ID_PATTERN,v=qi(),T=v.traceIs,l=v.getComponentMethod;function m(w,S,M){Array.isArray(w[S])?w[S].push(M):w[S]=[M]}H.exports=function(S,M,_){var b=M.autotypenumbers,d={},u={},g={},y={},R={},I={},z={},F={},B={},O={},P,N;for(P=0;P<_.length;P++){var U=_[P];if(T(U,"cartesian")){var X;if(U.xaxis)X=c(U.xaxis),m(d,X,U);else if(U.xaxes)for(N=0;N rect").call(E.setTranslate,0,0).call(E.setScale,1,1),M.plot.call(E.setTranslate,_._offset,b._offset).call(E.setScale,1,1);var d=M.plot.selectAll(".scatterlayer .trace");d.selectAll(".point").call(E.setPointGroupScale,1,1),d.selectAll(".textpoint").call(E.setTextPointsScale,1,1),d.call(E.hideOutsideRangePoints,M)}function c(M,_){var b=M.plotinfo,d=b.xaxis,u=b.yaxis,g=d._length,y=u._length,R=!!M.xr1,I=!!M.yr1,z=[];if(R){var F=A.simpleMap(M.xr0,d.r2l),B=A.simpleMap(M.xr1,d.r2l),O=F[1]-F[0],P=B[1]-B[0];z[0]=(F[0]*(1-_)+_*B[0]-F[0])/(F[1]-F[0])*g,z[2]=g*(1-_+_*P/O),d.range[0]=d.l2r(F[0]*(1-_)+_*B[0]),d.range[1]=d.l2r(F[1]*(1-_)+_*B[1])}else z[0]=0,z[2]=g;if(I){var N=A.simpleMap(M.yr0,u.r2l),U=A.simpleMap(M.yr1,u.r2l),X=N[1]-N[0],te=U[1]-U[0];z[1]=(N[1]*(1-_)+_*U[1]-N[1])/(N[0]-N[1])*y,z[3]=y*(1-_+_*te/X),u.range[0]=d.l2r(N[0]*(1-_)+_*U[0]),u.range[1]=u.l2r(N[1]*(1-_)+_*U[1])}else z[1]=0,z[3]=y;e.drawOne(r,d,{skipTitle:!0}),e.drawOne(r,u,{skipTitle:!0}),e.redrawComponents(r,[d._id,u._id]);var ue=R?g/z[2]:1,ie=I?y/z[3]:1,le=R?z[0]:0,q=I?z[1]:0,J=R?z[0]/z[2]*g:0,ee=I?z[1]/z[3]*y:0,Z=d._offset-J,se=u._offset-ee;b.clipRect.call(E.setTranslate,le,q).call(E.setScale,1/ue,1/ie),b.plot.call(E.setTranslate,Z,se).call(E.setScale,ue,ie),E.setPointGroupScale(b.zoomScalePts,1/ue,1/ie),E.setTextPointsScale(b.zoomScaleTxt,1/ue,1/ie)}var f;o&&(f=o());function p(){for(var M={},_=0;_a.duration?(p(),m=window.cancelAnimationFrame(S)):m=window.requestAnimationFrame(S)}return T=Date.now(),m=window.requestAnimationFrame(S),Promise.resolve()}}}),cf=He({"src/plots/cartesian/index.js"(Y){var H=yi(),h=qi(),x=Qr(),A=$u(),E=Io(),e=$f().getModuleCalcData,t=yc(),r=jf(),i=Xh(),a=x.ensureSingle;function o(T,l,m){return x.ensureSingle(T,l,m,function(w){w.datum(m)})}var n=r.zindexSeparator;Y.name="cartesian",Y.attr=["xaxis","yaxis"],Y.idRoot=["x","y"],Y.idRegex=r.idRegex,Y.attrRegex=r.attrRegex,Y.attributes=cE(),Y.layoutAttributes=Kf(),Y.supplyLayoutDefaults=fE(),Y.transitionAxes=hE(),Y.finalizeSubplots=function(T,l){var m=l._subplots,w=m.xaxis,S=m.yaxis,M=m.cartesian,_=M,b={},d={},u,g,y;for(u=0;u<_.length;u++){var R=_[u].split("y");b[R[0]]=1,d["y"+R[1]]=1}for(u=0;u0){var I=R.id;if(I.indexOf(n)!==-1)continue;I+=n+(u+1),R=x.extendFlat({},R,{id:I,plot:S._cartesianlayer.selectAll(".subplot").select("."+I)})}for(var z=[],F,B=0;B<_.length;B++){var O=_[B],P=O[0].trace;g===(P.zorder||0)&&P.xaxis+P.yaxis===y&&((l.indexOf(P.index)!==-1||P.carpet)&&(F&&F[0].trace.xaxis+F[0].trace.yaxis===y&&["tonextx","tonexty","tonext"].indexOf(P.fill)!==-1&&z.indexOf(F)===-1&&z.push(F),z.push(O)),F=O)}s(T,R,z,m,w)}}};function s(T,l,m,w,S){for(var M=r.traceLayerClasses,_=T._fullLayout,b=_._zindices,d=_._modules,u,g,y,R=[],I=[],z=0;z1&&(X+=n+U),N.push(b+X),_=0;_1,y=l.mainplotinfo;if(!l.mainplot||g)if(u)l.xlines=a(w,"path","xlines-above"),l.ylines=a(w,"path","ylines-above"),l.xaxislayer=a(w,"g","xaxislayer-above"),l.yaxislayer=a(w,"g","yaxislayer-above");else{if(!_){var R=a(w,"g","layer-subplot");l.shapelayer=a(R,"g","shapelayer"),l.imagelayer=a(R,"g","imagelayer"),y&&g?(l.minorGridlayer=y.minorGridlayer,l.gridlayer=y.gridlayer,l.zerolinelayer=y.zerolinelayer):(l.minorGridlayer=a(w,"g","minor-gridlayer"),l.gridlayer=a(w,"g","gridlayer"),l.zerolinelayer=a(w,"g","zerolinelayer"));var I=a(w,"g","layer-between");l.shapelayerBetween=a(I,"g","shapelayer"),l.imagelayerBetween=a(I,"g","imagelayer"),a(w,"path","xlines-below"),a(w,"path","ylines-below"),l.overlinesBelow=a(w,"g","overlines-below"),a(w,"g","xaxislayer-below"),a(w,"g","yaxislayer-below"),l.overaxesBelow=a(w,"g","overaxes-below")}l.overplot=a(w,"g","overplot"),l.plot=a(l.overplot,"g",S),y&&g?l.zerolinelayerAbove=y.zerolinelayerAbove:l.zerolinelayerAbove=a(w,"g","zerolinelayer-above"),_||(l.xlines=a(w,"path","xlines-above"),l.ylines=a(w,"path","ylines-above"),l.overlinesAbove=a(w,"g","overlines-above"),a(w,"g","xaxislayer-above"),a(w,"g","yaxislayer-above"),l.overaxesAbove=a(w,"g","overaxes-above"),l.xlines=w.select(".xlines-"+b),l.ylines=w.select(".ylines-"+d),l.xaxislayer=w.select(".xaxislayer-"+b),l.yaxislayer=w.select(".yaxislayer-"+d))}else{var z=y.plotgroup,F=S+"-x",B=S+"-y";l.minorGridlayer=y.minorGridlayer,l.gridlayer=y.gridlayer,l.zerolinelayer=y.zerolinelayer,l.zerolinelayerAbove=y.zerolinelayerAbove,a(y.overlinesBelow,"path",F),a(y.overlinesBelow,"path",B),a(y.overaxesBelow,"g",F),a(y.overaxesBelow,"g",B),l.plot=a(y.overplot,"g",S),a(y.overlinesAbove,"path",F),a(y.overlinesAbove,"path",B),a(y.overaxesAbove,"g",F),a(y.overaxesAbove,"g",B),l.xlines=z.select(".overlines-"+b).select("."+F),l.ylines=z.select(".overlines-"+d).select("."+B),l.xaxislayer=z.select(".overaxes-"+b).select("."+F),l.yaxislayer=z.select(".overaxes-"+d).select("."+B)}_||(u||(o(l.minorGridlayer,"g",l.xaxis._id),o(l.minorGridlayer,"g",l.yaxis._id),l.minorGridlayer.selectAll("g").map(function(O){return O[0]}).sort(t.idSort),o(l.gridlayer,"g",l.xaxis._id),o(l.gridlayer,"g",l.yaxis._id),l.gridlayer.selectAll("g").map(function(O){return O[0]}).sort(t.idSort)),l.xlines.style("fill","none").classed("crisp",!0),l.ylines.style("fill","none").classed("crisp",!0))}function p(T,l){if(T){var m={};T.each(function(d){var u=d[0],g=H.select(this);g.remove(),v(u,l),m[u]=!0});for(var w in l._plots)for(var S=l._plots[w],M=S.overlays||[],_=0;_=0,l=o.indexOf("end")>=0,m=c.backoff*p+n.standoff,w=f.backoff*v+n.startstandoff,S,M,_,b;if(s.nodeName==="line"){S={x:+a.attr("x1"),y:+a.attr("y1")},M={x:+a.attr("x2"),y:+a.attr("y2")};var d=S.x-M.x,u=S.y-M.y;if(_=Math.atan2(u,d),b=_+Math.PI,m&&w&&m+w>Math.sqrt(d*d+u*u)){X();return}if(m){if(m*m>d*d+u*u){X();return}var g=m*Math.cos(_),y=m*Math.sin(_);M.x+=g,M.y+=y,a.attr({x2:M.x,y2:M.y})}if(w){if(w*w>d*d+u*u){X();return}var R=w*Math.cos(_),I=w*Math.sin(_);S.x-=R,S.y-=I,a.attr({x1:S.x,y1:S.y})}}else if(s.nodeName==="path"){var z=s.getTotalLength(),F="";if(z2/3?ba="right":ba="center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[ba]}for(var et=!1,nt=["x","y"],Ke=0;Ke1)&&(Ut===kt?(Xe=Yt.r2fraction(w["a"+Et]),(Xe<0||Xe>1)&&(et=!0)):et=!0),We=Yt._offset+Yt.r2p(w[Et]),me=.5}else{var ht=Ie==="domain";Et==="x"?(de=w[Et],We=ht?Yt._offset+Yt._length*de:We=u.l+u.w*de):(de=1-w[Et],We=ht?Yt._offset+Yt._length*de:We=u.t+u.h*de),me=w.showarrow?.5:de}if(w.showarrow){Fe.head=We;var bt=w["a"+Et];if(be=hr*De(.5,w.xanchor)-Rr*De(.5,w.yanchor),Ut===kt){var Ct=t.getRefType(Ut);Ct==="domain"?(Et==="y"&&(bt=1-bt),Fe.tail=Yt._offset+Yt._length*bt):Ct==="paper"?Et==="y"?(bt=1-bt,Fe.tail=u.t+u.h*bt):Fe.tail=u.l+u.w*bt:Fe.tail=Yt._offset+Yt.r2p(bt),Oe=be}else Fe.tail=We+bt,Oe=be+bt;Fe.text=Fe.tail+be;var Zt=d[Et==="x"?"width":"height"];if(kt==="paper"&&(Fe.head=E.constrain(Fe.head,1,Zt-1)),Ut==="pixel"){var Wt=-Math.max(Fe.tail-3,Fe.text),rr=Math.min(Fe.tail+3,Fe.text)-Zt;Wt>0?(Fe.tail+=Wt,Fe.text+=Wt):rr>0&&(Fe.tail-=rr,Fe.text-=rr)}Fe.tail+=yt,Fe.head+=yt}else be=dr*De(me,wr),Oe=be,Fe.text=We+be;Fe.text+=yt,be+=yt,Oe+=yt,w["_"+Et+"padplus"]=dr/2+Oe,w["_"+Et+"padminus"]=dr/2-Oe,w["_"+Et+"size"]=dr,w["_"+Et+"shift"]=be}if(et){le.remove();return}var Jt=0,mr=0;if(w.align!=="left"&&(Jt=(Ze-tt)*(w.align==="center"?.5:1)),w.valign!=="top"&&(mr=(Me-Je)*(w.valign==="middle"?.5:1)),je)Ce.select("svg").attr({x:ee+Jt-1,y:ee+mr}).call(i.setClipUrl,se?O:null,m);else{var ia=ee+mr-at.top,Ia=ee+Jt-at.left;ae.call(o.positionText,Ia,ia).call(i.setClipUrl,se?O:null,m)}Q.select("rect").call(i.setRect,ee,ee,Ze,Me),Z.call(i.setRect,q/2,q/2,we-q,he-q),le.call(i.setTranslate,Math.round(P.x.text-we/2),Math.round(P.y.text-he/2)),X.attr({transform:"rotate("+N+","+P.x.text+","+P.y.text+")"});var La=function(Ga,ba){U.selectAll(".annotation-arrow-g").remove();var Xa=P.x.head,yn=P.y.head,Kt=P.x.tail+Ga,zt=P.y.tail+ba,$t=P.x.text+Ga,Ht=P.y.text+ba,Tr=E.rotationXYMatrix(N,$t,Ht),qr=E.apply2DTransform(Tr),ha=E.apply2DTransform2(Tr),Gr=+Z.attr("width"),wa=+Z.attr("height"),Da=$t-.5*Gr,Ya=Da+Gr,Ka=Ht-.5*wa,an=Ka+wa,mt=[[Da,Ka,Da,an],[Da,an,Ya,an],[Ya,an,Ya,Ka],[Ya,Ka,Da,Ka]].map(ha);if(!mt.reduce(function(At,or){return At^!!E.segmentsIntersect(Xa,yn,Xa+1e6,yn+1e6,or[0],or[1],or[2],or[3])},!1)){mt.forEach(function(At){var or=E.segmentsIntersect(Kt,zt,Xa,yn,At[0],At[1],At[2],At[3]);or&&(Kt=or.x,zt=or.y)});var ot=w.arrowwidth,Lr=w.arrowcolor,Er=w.arrowside,Mr=U.append("g").style({opacity:r.opacity(Lr)}).classed("annotation-arrow-g",!0),br=Mr.append("path").attr("d","M"+Kt+","+zt+"L"+Xa+","+yn).style("stroke-width",ot+"px").call(r.stroke,r.rgb(Lr));if(f(br,Er,w),g.annotationPosition&&br.node().parentNode&&!M){var Or=Xa,jr=yn;if(w.standoff){var Dr=Math.sqrt(Math.pow(Xa-Kt,2)+Math.pow(yn-zt,2));Or+=w.standoff*(Kt-Xa)/Dr,jr+=w.standoff*(zt-yn)/Dr}var Hr=Mr.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(Kt-Or)+","+(zt-jr),transform:e(Or,jr)}).style("stroke-width",ot+6+"px").call(r.stroke,"rgba(0,0,0,0)").call(r.fill,"rgba(0,0,0,0)"),na,ta;s.init({element:Hr.node(),gd:m,prepFn:function(){var At=i.getTranslate(le);na=At.x,ta=At.y,_&&_.autorange&&z(_._name+".autorange",!0),b&&b.autorange&&z(b._name+".autorange",!0)},moveFn:function(At,or){var Ar=qr(na,ta),oa=Ar[0]+At,ga=Ar[1]+or;le.call(i.setTranslate,oa,ga),F("x",T(_,At,"x",u,w)),F("y",T(b,or,"y",u,w)),w.axref===w.xref&&F("ax",T(_,At,"ax",u,w)),w.ayref===w.yref&&F("ay",T(b,or,"ay",u,w)),Mr.attr("transform",e(At,or)),X.attr({transform:"rotate("+N+","+oa+","+ga+")"})},doneFn:function(){x.call("_guiRelayout",m,B());var At=document.querySelector(".js-notes-box-panel");At&&At.redraw(At.selectedObj)}})}}};if(w.showarrow&&La(0,0),te){var Aa;s.init({element:le.node(),gd:m,prepFn:function(){Aa=X.attr("transform")},moveFn:function(Ga,ba){var Xa="pointer";if(w.showarrow)w.axref===w.xref?F("ax",T(_,Ga,"ax",u,w)):F("ax",w.ax+Ga),w.ayref===w.yref?F("ay",T(b,ba,"ay",u.w,w)):F("ay",w.ay+ba),La(Ga,ba);else{if(M)return;var yn,Kt;if(_)yn=T(_,Ga,"x",u,w);else{var zt=w._xsize/u.w,$t=w.x+(w._xshift-w.xshift)/u.w-zt/2;yn=s.align($t+Ga/u.w,zt,0,1,w.xanchor)}if(b)Kt=T(b,ba,"y",u,w);else{var Ht=w._ysize/u.h,Tr=w.y-(w._yshift+w.yshift)/u.h-Ht/2;Kt=s.align(Tr-ba/u.h,Ht,0,1,w.yanchor)}F("x",yn),F("y",Kt),(!_||!b)&&(Xa=s.getCursor(_?.5:yn,b?.5:Kt,w.xanchor,w.yanchor))}X.attr({transform:e(Ga,ba)+Aa}),n(le,Xa)},clickFn:function(Ga,ba){w.captureevents&&m.emit("plotly_clickannotation",ie(ba))},doneFn:function(){n(le),x.call("_guiRelayout",m,B());var Ga=document.querySelector(".js-notes-box-panel");Ga&&Ga.redraw(Ga.selectedObj)}})}}g.annotationText?ae.call(o.makeEditable,{delegate:le,gd:m}).call(fe).on("edit",function(Ae){w.text=Ae,this.call(fe),F("text",Ae),_&&_.autorange&&z(_._name+".autorange",!0),b&&b.autorange&&z(b._name+".autorange",!0),x.call("_guiRelayout",m,B())}):ae.call(fe)}}}),pE=He({"src/components/annotations/click.js"(Y,H){var h=Qr(),x=qi(),A=cl().arrayEditor;H.exports={hasClickToShow:E,onClick:e};function E(i,a){var o=t(i,a);return o.on.length>0||o.explicitOff.length>0}function e(i,a){var o=t(i,a),n=o.on,s=o.off.concat(o.explicitOff),c={},f=i._fullLayout.annotations,p,v;if(n.length||s.length){for(p=0;p1){n=!0;break}}n?e.fullLayout._infolayer.select(".annotation-"+e.id+'[data-index="'+a+'"]').remove():(o._pdata=x(e.glplot.cameraParams,[t.xaxis.r2l(o.x)*r[0],t.yaxis.r2l(o.y)*r[1],t.zaxis.r2l(o.z)*r[2]]),h(e.graphDiv,o,a,e.id,o._xa,o._ya))}}}}),TE=He({"src/components/annotations3d/index.js"(Y,H){var h=qi(),x=Qr();H.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:A1()}}},layoutAttributes:A1(),handleDefaults:xE(),includeBasePlot:A,convert:bE(),draw:wE()};function A(E,e){var t=h.subplotsRegistry.gl3d;if(t)for(var r=t.attrRegex,i=Object.keys(E),a=0;a0?l+p:p;return{ppad:p,ppadplus:v?w:S,ppadminus:v?S:w}}else return{ppad:p}}function i(a,o,n){var s=a._id.charAt(0)==="x"?"x":"y",c=a.type==="category"||a.type==="multicategory",f,p,v=0,T=0,l=c?a.r2c:a.d2c,m=o[s+"sizemode"]==="scaled";if(m?(f=o[s+"0"],p=o[s+"1"],c&&(v=o[s+"0shift"],T=o[s+"1shift"])):(f=o[s+"anchor"],p=o[s+"anchor"]),f!==void 0)return[l(f)+v,l(p)+T];if(o.path){var w=1/0,S=-1/0,M=o.path.match(A.segmentRE),_,b,d,u,g;for(a.type==="date"&&(l=E.decodeDate(l)),_=0;_S&&(S=g)));if(S>=w)return[w,S]}}}}),EE=He({"src/components/shapes/index.js"(Y,H){var h=g1();H.exports={moduleType:"component",name:"shapes",layoutAttributes:hw(),supplyLayoutDefaults:AE(),supplyDrawNewShapeDefaults:SE(),includeBasePlot:om()("shapes"),calcAutorange:ME(),draw:h.draw,drawOne:h.drawOne}}}),vw=He({"src/components/images/attributes.js"(Y,H){var h=jf(),x=cl().templatedArray;im(),H.exports=x("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",h.idRegex.x.toString()],dflt:"paper",editType:"arraydraw"},yref:{valType:"enumerated",values:["paper",h.idRegex.y.toString()],dflt:"paper",editType:"arraydraw"},editType:"arraydraw"})}}),kE=He({"src/components/images/defaults.js"(Y,H){var h=Qr(),x=wo(),A=uh(),E=vw(),e="images";H.exports=function(i,a){var o={name:e,handleItemDefaults:t};A(i,a,o)};function t(r,i,a){function o(m,w){return h.coerce(r,i,E,m,w)}var n=o("source"),s=o("visible",!!n);if(!s)return i;o("layer"),o("xanchor"),o("yanchor"),o("sizex"),o("sizey"),o("sizing"),o("opacity");for(var c={_fullLayout:a},f=["x","y"],p=0;p<2;p++){var v=f[p],T=x.coerceRef(r,i,c,v,"paper",void 0);if(T!=="paper"){var l=x.getFromId(c,T);l._imgIndices.push(i._index)}x.coercePosition(i,c,o,T,v,0)}return i}}}),CE=He({"src/components/images/draw.js"(Y,H){var h=yi(),x=Io(),A=wo(),E=yc(),e=Xh();H.exports=function(r){var i=r._fullLayout,a=[],o={},n=[],s,c;for(c=0;c0);f&&(s("active"),s("direction"),s("type"),s("showactive"),s("x"),s("y"),h.noneOrAll(a,o,["x","y"]),s("xanchor"),s("yanchor"),s("pad.t"),s("pad.r"),s("pad.b"),s("pad.l"),h.coerceFont(s,"font",n.font),s("bgcolor",n.paper_bgcolor),s("bordercolor"),s("borderwidth"))}function i(a,o){function n(c,f){return h.coerce(a,o,t,c,f)}var s=n("visible",a.method==="skip"||Array.isArray(a.args));s&&(n("method"),n("args"),n("args2"),n("label"),n("execute"))}}}),RE=He({"src/components/updatemenus/scrollbox.js"(Y,H){H.exports=e;var h=yi(),x=zi(),A=Io(),E=Qr();function e(t,r,i){this.gd=t,this.container=r,this.id=i,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})}e.barWidth=2,e.barLength=20,e.barRadius=2,e.barPad=1,e.barColor="#808BA4",e.prototype.enable=function(r,i,a){var o=this.gd._fullLayout,n=o.width,s=o.height;this.position=r;var c=this.position.l,f=this.position.w,p=this.position.t,v=this.position.h,T=this.position.direction,l=T==="down",m=T==="left",w=T==="right",S=T==="up",M=f,_=v,b,d,u,g;!l&&!m&&!w&&!S&&(this.position.direction="down",l=!0);var y=l||S;y?(b=c,d=b+M,l?(u=p,g=Math.min(u+_,s),_=g-u):(g=p+_,u=Math.max(g-_,0),_=g-u)):(u=p,g=u+_,m?(d=c+M,b=Math.max(d-M,0),M=d-b):(b=c,d=Math.min(b+M,n),M=d-b)),this._box={l:b,t:u,w:M,h:_};var R=f>M,I=e.barLength+2*e.barPad,z=e.barWidth+2*e.barPad,F=c,B=p+v;B+z>s&&(B=s-z);var O=this.container.selectAll("rect.scrollbar-horizontal").data(R?[0]:[]);O.exit().on(".drag",null).remove(),O.enter().append("rect").classed("scrollbar-horizontal",!0).call(x.fill,e.barColor),R?(this.hbar=O.attr({rx:e.barRadius,ry:e.barRadius,x:F,y:B,width:I,height:z}),this._hbarXMin=F+I/2,this._hbarTranslateMax=M-I):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var P=v>_,N=e.barWidth+2*e.barPad,U=e.barLength+2*e.barPad,X=c+f,te=p;X+N>n&&(X=n-N);var ue=this.container.selectAll("rect.scrollbar-vertical").data(P?[0]:[]);ue.exit().on(".drag",null).remove(),ue.enter().append("rect").classed("scrollbar-vertical",!0).call(x.fill,e.barColor),P?(this.vbar=ue.attr({rx:e.barRadius,ry:e.barRadius,x:X,y:te,width:N,height:U}),this._vbarYMin=te+U/2,this._vbarTranslateMax=_-U):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var ie=this.id,le=b-.5,q=P?d+N+.5:d+.5,J=u-.5,ee=R?g+z+.5:g+.5,Z=o._topdefs.selectAll("#"+ie).data(R||P?[0]:[]);if(Z.exit().remove(),Z.enter().append("clipPath").attr("id",ie).append("rect"),R||P?(this._clipRect=Z.select("rect").attr({x:Math.floor(le),y:Math.floor(J),width:Math.ceil(q)-Math.floor(le),height:Math.ceil(ee)-Math.floor(J)}),this.container.call(A.setClipUrl,ie,this.gd),this.bg.attr({x:c,y:p,width:f,height:v})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(A.setClipUrl,null),delete this._clipRect),R||P){var se=h.behavior.drag().on("dragstart",function(){h.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(se);var Q=h.behavior.drag().on("dragstart",function(){h.event.sourceEvent.preventDefault(),h.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));R&&this.hbar.on(".drag",null).call(Q),P&&this.vbar.on(".drag",null).call(Q)}this.setTranslate(i,a)},e.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(A.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)},e.prototype._onBoxDrag=function(){var r=this.translateX,i=this.translateY;this.hbar&&(r-=h.event.dx),this.vbar&&(i-=h.event.dy),this.setTranslate(r,i)},e.prototype._onBoxWheel=function(){var r=this.translateX,i=this.translateY;this.hbar&&(r+=h.event.deltaY),this.vbar&&(i+=h.event.deltaY),this.setTranslate(r,i)},e.prototype._onBarDrag=function(){var r=this.translateX,i=this.translateY;if(this.hbar){var a=r+this._hbarXMin,o=a+this._hbarTranslateMax,n=E.constrain(h.event.x,a,o),s=(n-a)/(o-a),c=this.position.w-this._box.w;r=s*c}if(this.vbar){var f=i+this._vbarYMin,p=f+this._vbarTranslateMax,v=E.constrain(h.event.y,f,p),T=(v-f)/(p-f),l=this.position.h-this._box.h;i=T*l}this.setTranslate(r,i)},e.prototype.setTranslate=function(r,i){var a=this.position.w-this._box.w,o=this.position.h-this._box.h;if(r=E.constrain(r||0,0,a),i=E.constrain(i||0,0,o),this.translateX=r,this.translateY=i,this.container.call(A.setTranslate,this._box.l-this.position.l-r,this._box.t-this.position.t-i),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+r-.5),y:Math.floor(this.position.t+i-.5)}),this.hbar){var n=r/a;this.hbar.call(A.setTranslate,r+n*this._hbarTranslateMax,i)}if(this.vbar){var s=i/o;this.vbar.call(A.setTranslate,r,i+s*this._vbarTranslateMax)}}}}),DE=He({"src/components/updatemenus/draw.js"(Y,H){var h=yi(),x=$u(),A=zi(),E=Io(),e=Qr(),t=jl(),r=cl().arrayEditor,i=Pf().LINE_SPACING,a=S1(),o=RE();H.exports=function(I){var z=I._fullLayout,F=e.filterVisible(z[a.name]);function B(ie){x.autoMargin(I,u(ie))}var O=z._menulayer.selectAll("g."+a.containerClassName).data(F.length>0?[0]:[]);if(O.enter().append("g").classed(a.containerClassName,!0).style("cursor","pointer"),O.exit().each(function(){h.select(this).selectAll("g."+a.headerGroupClassName).each(B)}).remove(),F.length!==0){var P=O.selectAll("g."+a.headerGroupClassName).data(F,n);P.enter().append("g").classed(a.headerGroupClassName,!0);for(var N=e.ensureSingle(O,"g",a.dropdownButtonGroupClassName,function(ie){ie.style("pointer-events","all")}),U=0;U0?[0]:[]);X.enter().append("g").classed(a.containerClassName,!0).style("cursor",P?null:"ew-resize");function te(q){q._commandObserver&&(q._commandObserver.remove(),delete q._commandObserver),x.autoMargin(O,f(q))}if(X.exit().each(function(){h.select(this).selectAll("g."+a.groupClassName).each(te)}).remove(),U.length!==0){var ue=X.selectAll("g."+a.groupClassName).data(U,v);ue.enter().append("g").classed(a.groupClassName,!0),ue.exit().each(te).remove();for(var ie=0;ie0&&(ue=ue.transition().duration(O.transition.duration).ease(O.transition.easing)),ue.attr("transform",t(te-a.gripWidth*.5,O._dims.currentValueTotalHeight))}}function R(B,O){var P=B._dims;return P.inputAreaStart+a.stepInset+(P.inputAreaLength-2*a.stepInset)*Math.min(1,Math.max(0,O))}function I(B,O){var P=B._dims;return Math.min(1,Math.max(0,(O-a.stepInset-P.inputAreaStart)/(P.inputAreaLength-2*a.stepInset-2*P.inputAreaStart)))}function z(B,O,P){var N=P._dims,U=e.ensureSingle(B,"rect",a.railTouchRectClass,function(X){X.call(d,O,B,P).style("pointer-events","all")});U.attr({width:N.inputAreaLength,height:Math.max(N.inputAreaWidth,a.tickOffset+P.ticklen+N.labelHeight)}).call(A.fill,P.bgcolor).attr("opacity",0),E.setTranslate(U,0,N.currentValueTotalHeight)}function F(B,O){var P=O._dims,N=P.inputAreaLength-a.railInset*2,U=e.ensureSingle(B,"rect",a.railRectClass);U.attr({width:N,height:a.railWidth,rx:a.railRadius,ry:a.railRadius,"shape-rendering":"crispEdges"}).call(A.stroke,O.bordercolor).call(A.fill,O.bgcolor).style("stroke-width",O.borderwidth+"px"),E.setTranslate(U,a.railInset,(P.inputAreaWidth-a.railWidth)*.5+P.currentValueTotalHeight)}}}),BE=He({"src/components/sliders/index.js"(Y,H){var h=um();H.exports={moduleType:"component",name:h.name,layoutAttributes:pw(),supplyLayoutDefaults:FE(),draw:OE()}}}),M1=He({"src/components/rangeslider/attributes.js"(Y,H){var h=mf();H.exports={bgcolor:{valType:"color",dflt:h.background,editType:"plot"},bordercolor:{valType:"color",dflt:h.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"}}}),gw=He({"src/components/rangeslider/oppaxis_attributes.js"(Y,H){H.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"}}}),E1=He({"src/components/rangeslider/constants.js"(Y,H){H.exports={name:"rangeslider",containerClassName:"rangeslider-container",bgClassName:"rangeslider-bg",rangePlotClassName:"rangeslider-rangeplot",maskMinClassName:"rangeslider-mask-min",maskMaxClassName:"rangeslider-mask-max",slideBoxClassName:"rangeslider-slidebox",grabberMinClassName:"rangeslider-grabber-min",grabAreaMinClassName:"rangeslider-grabarea-min",handleMinClassName:"rangeslider-handle-min",grabberMaxClassName:"rangeslider-grabber-max",grabAreaMaxClassName:"rangeslider-grabarea-max",handleMaxClassName:"rangeslider-handle-max",maskMinOppAxisClassName:"rangeslider-mask-min-opp-axis",maskMaxOppAxisClassName:"rangeslider-mask-max-opp-axis",maskColor:"rgba(0,0,0,0.4)",maskOppAxisColor:"rgba(0,0,0,0.2)",slideBoxFill:"transparent",slideBoxCursor:"ew-resize",grabAreaFill:"transparent",grabAreaCursor:"col-resize",grabAreaWidth:10,handleWidth:4,handleRadius:1,handleStrokeWidth:1,extraPad:15}}}),NE=He({"src/components/rangeslider/helpers.js"(Y){var H=yc(),h=jl(),x=E1(),A=Pf().LINE_SPACING,E=x.name;function e(t){var r=t&&t[E];return r&&r.visible}Y.isVisible=e,Y.makeData=function(t){for(var r=H.list({_fullLayout:t},"x",!0),i=t.margin,a=[],o=0;o=tt.max)je=fe[at+1];else if(Ce=tt.pmax)je=fe[at+1];else if(Ce0?d.touches[0].clientX:0}function p(d,u,g,y){if(u._context.staticPlot)return;var R=d.select("rect."+c.slideBoxClassName).node(),I=d.select("rect."+c.grabAreaMinClassName).node(),z=d.select("rect."+c.grabAreaMaxClassName).node();function F(){var B=h.event,O=B.target,P=f(B),N=P-d.node().getBoundingClientRect().left,U=y.d2p(g._rl[0]),X=y.d2p(g._rl[1]),te=n.coverSlip();this.addEventListener("touchmove",ue),this.addEventListener("touchend",ie),te.addEventListener("mousemove",ue),te.addEventListener("mouseup",ie);function ue(le){var q=f(le),J=+q-P,ee,Z,se;switch(O){case R:if(se="ew-resize",U+J>g._length||X+J<0)return;ee=U+J,Z=X+J;break;case I:if(se="col-resize",U+J>g._length)return;ee=U+J,Z=X;break;case z:if(se="col-resize",X+J<0)return;ee=U,Z=X+J;break;default:se="ew-resize",ee=N,Z=N+J;break}if(Z0);if(m){var w=i(n,s,c);T("x",w[0]),T("y",w[1]),h.noneOrAll(o,n,["x","y"]),T("xanchor"),T("yanchor"),h.coerceFont(T,"font",s.font);var S=T("bgcolor");T("activecolor",x.contrast(S,t.lightAmount,t.darkAmount)),T("bordercolor"),T("borderwidth")}};function r(a,o,n,s){var c=s.calendar;function f(T,l){return h.coerce(a,o,e.buttons,T,l)}var p=f("visible");if(p){var v=f("step");v!=="all"&&(c&&c!=="gregorian"&&(v==="month"||v==="year")?o.stepmode="backward":f("stepmode"),f("count")),f("label")}}function i(a,o,n){for(var s=n.filter(function(v){return o[v].anchor===a._id}),c=0,f=0;f1)){delete c.grid;return}if(!T&&!l&&!m){var g=b("pattern")==="independent";g&&(T=!0)}_._hasSubplotGrid=T;var y=b("roworder"),R=y==="top to bottom",I=T?.2:.1,z=T?.3:.1,F,B;w&&c._splomGridDflt&&(F=c._splomGridDflt.xside,B=c._splomGridDflt.yside),_._domains={x:a("x",b,I,F,u),y:a("y",b,z,B,d,R)}}function a(s,c,f,p,v,T){var l=c(s+"gap",f),m=c("domain."+s);c(s+"side",p);for(var w=new Array(v),S=m[0],M=(m[1]-S)/(v-l),_=M*(1-l),b=0;b0,p=r._context.staticPlot;i.each(function(v){var T=v[0].trace,l=T.error_x||{},m=T.error_y||{},w;T.ids&&(w=function(b){return b.id});var S=E.hasMarkers(T)&&T.marker.maxdisplayed>0;!m.visible&&!l.visible&&(v=[]);var M=h.select(this).selectAll("g.errorbar").data(v,w);if(M.exit().remove(),!!v.length){l.visible||M.selectAll("path.xerror").remove(),m.visible||M.selectAll("path.yerror").remove(),M.style("opacity",1);var _=M.enter().append("g").classed("errorbar",!0);f&&_.style("opacity",0).transition().duration(o.duration).style("opacity",1),A.setClipUrl(M,a.layerClipId,r),M.each(function(b){var d=h.select(this),u=e(b,s,c);if(!(S&&!b.vis)){var g,y=d.select("path.yerror");if(m.visible&&x(u.x)&&x(u.yh)&&x(u.ys)){var R=m.width;g="M"+(u.x-R)+","+u.yh+"h"+2*R+"m-"+R+",0V"+u.ys,u.noYS||(g+="m-"+R+",0h"+2*R),n=!y.size(),n?y=d.append("path").style("vector-effect",p?"none":"non-scaling-stroke").classed("yerror",!0):f&&(y=y.transition().duration(o.duration).ease(o.easing)),y.attr("d",g)}else y.remove();var I=d.select("path.xerror");if(l.visible&&x(u.y)&&x(u.xh)&&x(u.xs)){var z=(l.copy_ystyle?m:l).width;g="M"+u.xh+","+(u.y-z)+"v"+2*z+"m0,-"+z+"H"+u.xs,u.noXS||(g+="m0,-"+z+"v"+2*z),n=!I.size(),n?I=d.append("path").style("vector-effect",p?"none":"non-scaling-stroke").classed("xerror",!0):f&&(I=I.transition().duration(o.duration).ease(o.easing)),I.attr("d",g)}else I.remove()}})}})};function e(t,r,i){var a={x:r.c2p(t.x),y:i.c2p(t.y)};return t.yh!==void 0&&(a.yh=i.c2p(t.yh),a.ys=i.c2p(t.ys),x(a.ys)||(a.noYS=!0,a.ys=i.c2p(t.ys,!0))),t.xh!==void 0&&(a.xh=r.c2p(t.xh),a.xs=r.c2p(t.xs),x(a.xs)||(a.noXS=!0,a.xs=r.c2p(t.xs,!0))),a}}}),KE=He({"src/components/errorbars/style.js"(Y,H){var h=yi(),x=zi();H.exports=function(E){E.each(function(e){var t=e[0].trace,r=t.error_y||{},i=t.error_x||{},a=h.select(this);a.selectAll("path.yerror").style("stroke-width",r.thickness+"px").call(x.stroke,r.color),i.copy_ystyle&&(i=r),a.selectAll("path.xerror").style("stroke-width",i.thickness+"px").call(x.stroke,i.color)})}}}),JE=He({"src/components/errorbars/index.js"(Y,H){var h=Qr(),x=Uu().overrideAll,A=_w(),E={error_x:h.extendFlat({},A),error_y:h.extendFlat({},A)};delete E.error_x.copy_zstyle,delete E.error_y.copy_zstyle,delete E.error_y.copy_ystyle;var e={error_x:h.extendFlat({},A),error_y:h.extendFlat({},A),error_z:h.extendFlat({},A)};delete e.error_x.copy_ystyle,delete e.error_y.copy_ystyle,delete e.error_z.copy_ystyle,delete e.error_z.copy_zstyle,H.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:E,bar:E,histogram:E,scatter3d:x(e,"calc","nested"),scattergl:x(E,"calc","nested")}},supplyDefaults:ZE(),calc:YE(),makeComputeError:xw(),plot:$E(),style:KE(),hoverInfo:t};function t(r,i,a){(i.error_y||{}).visible&&(a.yerr=r.yh-r.y,i.error_y.symmetric||(a.yerrneg=r.y-r.ys)),(i.error_x||{}).visible&&(a.xerr=r.xh-r.x,i.error_x.symmetric||(a.xerrneg=r.x-r.xs))}}}),QE=He({"src/components/colorbar/constants.js"(Y,H){H.exports={cn:{colorbar:"colorbar",cbbg:"cbbg",cbfill:"cbfill",cbfills:"cbfills",cbline:"cbline",cblines:"cblines",cbaxis:"cbaxis",cbtitleunshift:"cbtitleunshift",cbtitle:"cbtitle",cboutline:"cboutline",crisp:"crisp",jsPlaceholder:"js-placeholder"}}}}),e5=He({"src/components/colorbar/draw.js"(Y,H){var h=yi(),x=Uf(),A=$u(),E=qi(),e=wo(),t=ph(),r=Qr(),i=r.strTranslate,a=Po().extendFlat,o=mv(),n=Io(),s=zi(),c=Ep(),f=jl(),p=kh().flipScale,v=lm(),T=w1(),l=Kf(),m=Pf(),w=m.LINE_SPACING,S=m.FROM_TL,M=m.FROM_BR,_=QE().cn;function b(I){var z=I._fullLayout,F=z._infolayer.selectAll("g."+_.colorbar).data(d(I),function(B){return B._id});F.enter().append("g").attr("class",function(B){return B._id}).classed(_.colorbar,!0),F.each(function(B){var O=h.select(this);r.ensureSingle(O,"rect",_.cbbg),r.ensureSingle(O,"g",_.cbfills),r.ensureSingle(O,"g",_.cblines),r.ensureSingle(O,"g",_.cbaxis,function(N){N.classed(_.crisp,!0)}),r.ensureSingle(O,"g",_.cbtitleunshift,function(N){N.append("g").classed(_.cbtitle,!0)}),r.ensureSingle(O,"rect",_.cboutline);var P=u(O,B,I);P&&P.then&&(I._promises||[]).push(P),I._context.edits.colorbarPosition&&g(O,B,I)}),F.exit().each(function(B){A.autoMargin(I,B._id)}).remove(),F.order()}function d(I){var z=I._fullLayout,F=I.calcdata,B=[],O,P,N,U;function X(V){return a(V,{_fillcolor:null,_line:{color:null,width:null,dash:null},_levels:{start:null,end:null,size:null},_filllevels:null,_fillgradient:null,_zrange:null})}function te(){typeof U.calc=="function"?U.calc(I,N,O):(O._fillgradient=P.reversescale?p(P.colorscale):P.colorscale,O._zrange=[P[U.min],P[U.max]])}for(var ue=0;ue1){var Fe=Math.pow(10,Math.floor(Math.log(yt)/Math.LN10));dr*=Fe*r.roundUp(yt/Fe,[2,5,10]),(Math.abs(at.start)/at.size+1e-6)%1<2e-6&&(hr.tick0=0)}hr.dtick=dr}hr.domain=B?[Yt+J/re.h,Yt+De-J/re.h]:[Yt+q/re.w,Yt+De-q/re.w],hr.setScale(),I.attr("transform",i(Math.round(re.l),Math.round(re.t)));var We=I.select("."+_.cbtitleunshift).attr("transform",i(-Math.round(re.l),-Math.round(re.t))),Oe=hr.ticklabelposition,de=hr.title.font.size,me=I.select("."+_.cbaxis),be,Ie=0,Xe=0;function ht(rr,Jt){var mr={propContainer:hr,propName:z._propPrefix+"title",traceIndex:z._traceIndex,_meta:z._meta,placeholder:V._dfltTitle.colorbar,containerGroup:I.select("."+_.cbtitle)},ia=rr.charAt(0)==="h"?rr.substr(1):"h"+rr;I.selectAll("."+ia+",."+ia+"-math-group").remove(),c.draw(F,rr,a(mr,Jt||{}))}function bt(){if(B&&Rr||!B&&!Rr){var rr,Jt;Ae==="top"&&(rr=q+re.l+et*ee,Jt=J+re.t+nt*(1-Yt-De)+3+de*.75),Ae==="bottom"&&(rr=q+re.l+et*ee,Jt=J+re.t+nt*(1-Yt)-3-de*.25),Ae==="right"&&(Jt=J+re.t+nt*Z+3+de*.75,rr=q+re.l+et*Yt),ht(hr._id+"title",{attributes:{x:rr,y:Jt,"text-anchor":B?"start":"middle"}})}}function Ct(){if(B&&!Rr||!B&&Rr){var rr=hr.position||0,Jt=hr._offset+hr._length/2,mr,ia;if(Ae==="right")ia=Jt,mr=re.l+et*rr+10+de*(hr.showticklabels?1:.5);else if(mr=Jt,Ae==="bottom"&&(ia=re.t+nt*rr+10+(Oe.indexOf("inside")===-1?hr.tickfont.size:0)+(hr.ticks!=="intside"&&z.ticklen||0)),Ae==="top"){var Ia=xe.text.split("
").length;ia=re.t+nt*rr+10-Me-w*de*Ia}ht((B?"h":"v")+hr._id+"title",{avoid:{selection:h.select(F).selectAll("g."+hr._id+"tick"),side:Ae,offsetTop:B?0:re.t,offsetLeft:B?re.l:0,maxShift:B?V.width:V.height},attributes:{x:mr,y:ia,"text-anchor":"middle"},transform:{rotate:B?-90:0,offset:0}})}}function Zt(){if(!B&&!Rr||B&&Rr){var rr=I.select("."+_.cbtitle),Jt=rr.select("text"),mr=[-X/2,X/2],ia=rr.select(".h"+hr._id+"title-math-group").node(),Ia=15.6;Jt.node()&&(Ia=parseInt(Jt.node().style.fontSize,10)*w);var La;if(ia?(La=n.bBox(ia),Xe=La.width,Ie=La.height,Ie>Ia&&(mr[1]-=(Ie-Ia)/2)):Jt.node()&&!Jt.classed(_.jsPlaceholder)&&(La=n.bBox(Jt.node()),Xe=La.width,Ie=La.height),B){if(Ie){if(Ie+=5,Ae==="top")hr.domain[1]-=Ie/re.h,mr[1]*=-1;else{hr.domain[0]+=Ie/re.h;var Aa=f.lineCount(Jt);mr[1]+=(1-Aa)*Ia}rr.attr("transform",i(mr[0],mr[1])),hr.setScale()}}else Xe&&(Ae==="right"&&(hr.domain[0]+=(Xe+de/2)/re.w),rr.attr("transform",i(mr[0],mr[1])),hr.setScale())}I.selectAll("."+_.cbfills+",."+_.cblines).attr("transform",B?i(0,Math.round(re.h*(1-hr.domain[1]))):i(Math.round(re.w*hr.domain[0]),0)),me.attr("transform",B?i(0,Math.round(-re.t)):i(Math.round(-re.l),0));var Ga=I.select("."+_.cbfills).selectAll("rect."+_.cbfill).attr("style","").data(Je);Ga.enter().append("rect").classed(_.cbfill,!0).attr("style",""),Ga.exit().remove();var ba=Pe.map(hr.c2p).map(Math.round).sort(function($t,Ht){return $t-Ht});Ga.each(function($t,Ht){var Tr=[Ht===0?Pe[0]:(Je[Ht]+Je[Ht-1])/2,Ht===Je.length-1?Pe[1]:(Je[Ht]+Je[Ht+1])/2].map(hr.c2p).map(Math.round);B&&(Tr[1]=r.constrain(Tr[1]+(Tr[1]>Tr[0])?1:-1,ba[0],ba[1]));var qr=h.select(this).attr(B?"x":"y",Ke).attr(B?"y":"x",h.min(Tr)).attr(B?"width":"height",Math.max(Me,2)).attr(B?"height":"width",Math.max(h.max(Tr)-h.min(Tr),2));if(z._fillgradient)n.gradient(qr,F,z._id,B?"vertical":"horizontalreversed",z._fillgradient,"fill");else{var ha=je($t).replace("e-","");qr.attr("fill",x(ha).toHexString())}});var Xa=I.select("."+_.cblines).selectAll("path."+_.cbline).data(fe.color&&fe.width?Ze:[]);Xa.enter().append("path").classed(_.cbline,!0),Xa.exit().remove(),Xa.each(function($t){var Ht=Ke,Tr=Math.round(hr.c2p($t))+fe.width/2%1;h.select(this).attr("d","M"+(B?Ht+","+Tr:Tr+","+Ht)+(B?"h":"v")+Me).call(n.lineGroupStyle,fe.width,Ce($t),fe.dash)}),me.selectAll("g."+hr._id+"tick,path").remove();var yn=Ke+Me+(X||0)/2-(z.ticks==="outside"?1:0),Kt=e.calcTicks(hr),zt=e.getTickSigns(hr)[2];return e.drawTicks(F,hr,{vals:hr.ticks==="inside"?e.clipEnds(hr,Kt):Kt,layer:me,path:e.makeTickPath(hr,yn,zt),transFn:e.makeTransTickFn(hr)}),e.drawLabels(F,hr,{vals:Kt,layer:me,transFn:e.makeTransTickLabelFn(hr),labelFns:e.makeLabelFns(hr,yn)})}function Wt(){var rr,Jt=Me+X/2;Oe.indexOf("inside")===-1&&(rr=n.bBox(me.node()),Jt+=B?rr.width:rr.height),be=We.select("text");var mr=0,ia=B&&Ae==="top",Ia=!B&&Ae==="right",La=0;if(be.node()&&!be.classed(_.jsPlaceholder)){var Aa,Ga=We.select(".h"+hr._id+"title-math-group").node();Ga&&(B&&Rr||!B&&!Rr)?(rr=n.bBox(Ga),mr=rr.width,Aa=rr.height):(rr=n.bBox(We.node()),mr=rr.right-re.l-(B?Ke:vr),Aa=rr.bottom-re.t-(B?vr:Ke),!B&&Ae==="top"&&(Jt+=rr.height,La=rr.height)),Ia&&(be.attr("transform",i(mr/2+de/2,0)),mr*=2),Jt=Math.max(Jt,B?mr:Aa)}var ba=(B?q:J)*2+Jt+te+X/2,Xa=0;!B&&xe.text&&le==="bottom"&&Z<=0&&(Xa=ba/2,ba+=Xa,La+=Xa),V._hColorbarMoveTitle=Xa,V._hColorbarMoveCBTitle=La;var yn=te+X,Kt=(B?Ke:vr)-yn/2-(B?q:0),zt=(B?vr:Ke)-(B?he:J+La-Xa);I.select("."+_.cbbg).attr("x",Kt).attr("y",zt).attr(B?"width":"height",Math.max(ba-Xa,2)).attr(B?"height":"width",Math.max(he+yn,2)).call(s.fill,ue).call(s.stroke,z.bordercolor).style("stroke-width",te);var $t=Ia?Math.max(mr-10,0):0;I.selectAll("."+_.cboutline).attr("x",(B?Ke:vr+q)+$t).attr("y",(B?vr+J-he:Ke)+(ia?Ie:0)).attr(B?"width":"height",Math.max(Me,2)).attr(B?"height":"width",Math.max(he-(B?2*J+Ie:2*q+$t),2)).call(s.stroke,z.outlinecolor).style({fill:"none","stroke-width":X});var Ht=B?Et*ba:0,Tr=B?0:(1-kt)*ba-La;if(Ht=Q?re.l-Ht:-Ht,Tr=se?re.t-Tr:-Tr,I.attr("transform",i(Ht,Tr)),!B&&(te||x(ue).getAlpha()&&!x.equals(V.paper_bgcolor,ue))){var qr=me.selectAll("text"),ha=qr[0].length,Gr=I.select("."+_.cbbg).node(),wa=n.bBox(Gr),Da=n.getTranslate(I),Ya=2;qr.each(function(jr,Dr){var Hr=0,na=ha-1;if(Dr===Hr||Dr===na){var ta=n.bBox(this),At=n.getTranslate(this),or;if(Dr===na){var Ar=ta.right+At.x,oa=wa.right+Da.x+vr-te-Ya+ee;or=oa-Ar,or>0&&(or=0)}else if(Dr===Hr){var ga=ta.left+At.x,Sa=wa.left+Da.x+vr+te+Ya;or=Sa-ga,or<0&&(or=0)}or&&(ha<3?this.setAttribute("transform","translate("+or+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var Ka={},an=S[ie],mt=M[ie],ot=S[le],Lr=M[le],Er=ba-Me;B?(P==="pixels"?(Ka.y=Z,Ka.t=he*ot,Ka.b=he*Lr):(Ka.t=Ka.b=0,Ka.yt=Z+O*ot,Ka.yb=Z-O*Lr),U==="pixels"?(Ka.x=ee,Ka.l=ba*an,Ka.r=ba*mt):(Ka.l=Er*an,Ka.r=Er*mt,Ka.xl=ee-N*an,Ka.xr=ee+N*mt)):(P==="pixels"?(Ka.x=ee,Ka.l=he*an,Ka.r=he*mt):(Ka.l=Ka.r=0,Ka.xl=ee+O*an,Ka.xr=ee-O*mt),U==="pixels"?(Ka.y=1-Z,Ka.t=ba*ot,Ka.b=ba*Lr):(Ka.t=Er*ot,Ka.b=Er*Lr,Ka.yt=Z-N*ot,Ka.yb=Z+N*Lr));var Mr=z.y<.5?"b":"t",br=z.x<.5?"l":"r";F._fullLayout._reservedMargin[z._id]={};var Or={r:V.width-Kt-Ht,l:Kt+Ka.r,b:V.height-zt-Tr,t:zt+Ka.b};Q&&se?A.autoMargin(F,z._id,Ka):Q?F._fullLayout._reservedMargin[z._id][Mr]=Or[Mr]:se||B?F._fullLayout._reservedMargin[z._id][br]=Or[br]:F._fullLayout._reservedMargin[z._id][Mr]=Or[Mr]}return r.syncOrAsync([A.previousPromises,bt,Zt,Ct,A.previousPromises,Wt],F)}function g(I,z,F){var B=z.orientation==="v",O=F._fullLayout,P=O._size,N,U,X;t.init({element:I.node(),gd:F,prepFn:function(){N=I.attr("transform"),o(I)},moveFn:function(te,ue){I.attr("transform",N+i(te,ue)),U=t.align((B?z._uFrac:z._vFrac)+te/P.w,B?z._thickFrac:z._lenFrac,0,1,z.xanchor),X=t.align((B?z._vFrac:1-z._uFrac)-ue/P.h,B?z._lenFrac:z._thickFrac,0,1,z.yanchor);var ie=t.getCursor(U,X,z.xanchor,z.yanchor);o(I,ie)},doneFn:function(){if(o(I),U!==void 0&&X!==void 0){var te={};te[z._propPrefix+"x"]=U,te[z._propPrefix+"y"]=X,z._traceIndex!==void 0?E.call("_guiRestyle",F,te,z._traceIndex):E.call("_guiRelayout",F,te)}}})}function y(I,z,F){var B=z._levels,O=[],P=[],N,U,X=B.end+B.size/100,te=B.size,ue=1.001*F[0]-.001*F[1],ie=1.001*F[1]-.001*F[0];for(U=0;U<1e5&&(N=B.start+U*te,!(te>0?N>=X:N<=X));U++)N>ue&&N0?N>=X:N<=X));U++)N>F[0]&&N-1}H.exports=function(i,a){var o,n=i.data,s=i.layout,c=E([],n),f=E({},s,e(a.tileClass)),p=i._context||{};if(a.width&&(f.width=a.width),a.height&&(f.height=a.height),a.tileClass==="thumbnail"||a.tileClass==="themes__thumb"){f.annotations=[];var v=Object.keys(f);for(o=0;o=0)return p}else if(typeof p=="string"&&(p=p.trim(),p.slice(-1)==="%"&&h(p.slice(0,-1))&&(p=+p.slice(0,-1),p>=0)))return p+"%"}function f(p,v,T,l,m,w){w=w||{};var S=w.moduleHasSelected!==!1,M=w.moduleHasUnselected!==!1,_=w.moduleHasConstrain!==!1,b=w.moduleHasCliponaxis!==!1,d=w.moduleHasTextangle!==!1,u=w.moduleHasInsideanchor!==!1,g=!!w.hasPathbar,y=Array.isArray(m)||m==="auto",R=y||m==="inside",I=y||m==="outside";if(R||I){var z=o(l,"textfont",T.font),F=x.extendFlat({},z),B=p.textfont&&p.textfont.color,O=!B;if(O&&delete F.color,o(l,"insidetextfont",F),g){var P=x.extendFlat({},z);O&&delete P.color,o(l,"pathbar.textfont",P)}I&&o(l,"outsidetextfont",z),S&&l("selected.textfont.color"),M&&l("unselected.textfont.color"),_&&l("constraintext"),b&&l("cliponaxis"),d&&l("textangle"),l("texttemplate")}R&&u&&l("insidetextanchor")}H.exports={supplyDefaults:n,crossTraceDefaults:s,handleText:f,validateCornerradius:c}}}),ww=He({"src/traces/bar/layout_defaults.js"(Y,H){var h=qi(),x=wo(),A=Qr(),E=C1(),e=Yh().validateCornerradius;H.exports=function(t,r,i){function a(S,M){return A.coerce(t,r,E,S,M)}for(var o=!1,n=!1,s=!1,c={},f=a("barmode"),p=f==="group",v=0;v0&&!c[l]&&(s=!0),c[l]=!0),T.visible&&T.type==="histogram"){var m=x.getFromId({_fullLayout:r},T[T.orientation==="v"?"xaxis":"yaxis"]);m.type!=="category"&&(n=!0)}}if(!o){delete r.barmode;return}f!=="overlay"&&a("barnorm"),a("bargap",n&&!s?0:.2),a("bargroupgap");var w=a("barcornerradius");r.barcornerradius=e(w)}}}),cm=He({"src/traces/bar/arrays_to_calcdata.js"(Y,H){var h=Qr();H.exports=function(A,E){for(var e=0;er;if(!i)return E}return e!==void 0?e:A.dflt},Y.coerceColor=function(A,E,e){return h(E).isValid()?E:e!==void 0?e:A.dflt},Y.coerceEnumerated=function(A,E,e){return A.coerceNumber&&(E=+E),A.values.indexOf(E)!==-1?E:e!==void 0?e:A.dflt},Y.getValue=function(A,E){var e;return x(A)?E1||g.bargap===0&&g.bargroupgap===0&&!y[0].trace.marker.line.width)&&h.select(this).attr("shape-rendering","crispEdges")}),d.selectAll("g.points").each(function(y){var R=h.select(this),I=y[0].trace;c(R,I,b)}),e.getComponentMethod("errorbars","style")(d)}function c(b,d,u){A.pointStyle(b.selectAll("path"),d,u),f(b,d,u)}function f(b,d,u){b.selectAll("text").each(function(g){var y=h.select(this),R=E.ensureUniformFontSize(u,l(y,g,d,u));A.font(y,R)})}function p(b,d,u){var g=d[0].trace;g.selectedpoints?v(u,g,b):(c(u,g,b),e.getComponentMethod("errorbars","style")(u))}function v(b,d,u){A.selectedPointStyle(b.selectAll("path"),d),T(b.selectAll("text"),d,u)}function T(b,d,u){b.each(function(g){var y=h.select(this),R;if(g.selected){R=E.ensureUniformFontSize(u,l(y,g,d,u));var I=d.selected.textfont&&d.selected.textfont.color;I&&(R.color=I),A.font(y,R)}else A.selectedTextStyle(y,d)})}function l(b,d,u,g){var y=g._fullLayout.font,R=u.textfont;if(b.classed("bartext-inside")){var I=_(d,u);R=w(u,d.i,y,I)}else b.classed("bartext-outside")&&(R=S(u,d.i,y));return R}function m(b,d,u){return M(i,b.textfont,d,u)}function w(b,d,u,g){var y=m(b,d,u),R=b._input.textfont===void 0||b._input.textfont.color===void 0||Array.isArray(b.textfont.color)&&b.textfont.color[d]===void 0;return R&&(y={color:x.contrast(g),family:y.family,size:y.size,weight:y.weight,style:y.style,variant:y.variant,textcase:y.textcase,lineposition:y.lineposition,shadow:y.shadow}),M(a,b.insidetextfont,d,y)}function S(b,d,u){var g=m(b,d,u);return M(o,b.outsidetextfont,d,g)}function M(b,d,u,g){d=d||{};var y=n.getValue(d.family,u),R=n.getValue(d.size,u),I=n.getValue(d.color,u),z=n.getValue(d.weight,u),F=n.getValue(d.style,u),B=n.getValue(d.variant,u),O=n.getValue(d.textcase,u),P=n.getValue(d.lineposition,u),N=n.getValue(d.shadow,u);return{family:n.coerceString(b.family,y,g.family),size:n.coerceNumber(b.size,R,g.size),color:n.coerceColor(b.color,I,g.color),weight:n.coerceString(b.weight,z,g.weight),style:n.coerceString(b.style,F,g.style),variant:n.coerceString(b.variant,B,g.variant),textcase:n.coerceString(b.variant,O,g.textcase),lineposition:n.coerceString(b.variant,P,g.lineposition),shadow:n.coerceString(b.variant,N,g.shadow)}}function _(b,d){return d.type==="waterfall"?d[b.dir].marker.color:b.mcc||b.mc||d.marker.color}H.exports={style:s,styleTextPoints:f,styleOnSelect:p,getInsideTextFont:w,getOutsideTextFont:S,getBarColor:_,resizeText:t}}}),Rp=He({"src/traces/bar/plot.js"(Y,H){var h=yi(),x=Vi(),A=Qr(),E=jl(),e=zi(),t=Io(),r=qi(),i=wo().tickText,a=gh(),o=a.recordMinTextSize,n=a.clearMinTextSize,s=sv(),c=P1(),f=Ip(),p=Vv(),v=p.text,T=p.textposition,l=Dh().appendArrayPointValue,m=f.TEXTPAD;function w(te){return te.id}function S(te){if(te.ids)return w}function M(te){return(te>0)-(te<0)}function _(te,ue){return te0}function g(te,ue,ie,le,q,J){var ee=ue.xaxis,Z=ue.yaxis,se=te._fullLayout,Q=te._context.staticPlot;q||(q={mode:se.barmode,norm:se.barmode,gap:se.bargap,groupgap:se.bargroupgap},n("bar",se));var V=A.makeTraceGroups(le,ie,"trace bars").each(function(re){var ae=h.select(this),fe=re[0].trace,xe=re[0].t,Ae=fe.type==="waterfall",Pe=fe.type==="funnel",Ce=fe.type==="histogram",je=fe.type==="bar",at=je||Pe,tt=0;Ae&&fe.connector.visible&&fe.connector.mode==="between"&&(tt=fe.connector.line.width/2);var Je=fe.orientation==="h",Ze=u(q),Me=A.ensureSingle(ae,"g","points"),we=S(fe),he=Me.selectAll("g.point").data(A.identity,we);he.enter().append("g").classed("point",!0),he.exit().remove(),he.each(function(et,nt){var Ke=h.select(this),Et=b(et,ee,Z,Je),kt=Et[0][0],Ut=Et[0][1],Yt=Et[1][0],vr=Et[1][1],hr=(Je?Ut-kt:vr-Yt)===0;hr&&at&&c.getLineWidth(fe,et)&&(hr=!1),hr||(hr=!x(kt)||!x(Ut)||!x(Yt)||!x(vr)),et.isBlank=hr,hr&&(Je?Ut=kt:vr=Yt),tt&&!hr&&(Je?(kt-=_(kt,Ut)*tt,Ut+=_(kt,Ut)*tt):(Yt-=_(Yt,vr)*tt,vr+=_(Yt,vr)*tt));var Rr,dr;if(fe.type==="waterfall"){if(!hr){var wr=fe[et.dir].marker;Rr=wr.line.width,dr=wr.color}}else Rr=c.getLineWidth(fe,et),dr=et.mc||fe.marker.color;function yt(yn){var Kt=h.round(Rr/2%1,2);return q.gap===0&&q.groupgap===0?h.round(Math.round(yn)-Kt,2):yn}function Fe(yn,Kt,zt){return zt&&yn===Kt?yn:Math.abs(yn-Kt)>=2?yt(yn):yn>Kt?Math.ceil(yn):Math.floor(yn)}var We=e.opacity(dr),Oe=We<1||Rr>.01?yt:Fe;te._context.staticPlot||(kt=Oe(kt,Ut,Je),Ut=Oe(Ut,kt,Je),Yt=Oe(Yt,vr,!Je),vr=Oe(vr,Yt,!Je));var de=Je?ee.c2p:Z.c2p,me;et.s0>0?me=et._sMax:et.s0<0?me=et._sMin:me=et.s1>0?et._sMax:et._sMin;function be(yn,Kt){if(!yn)return 0;var zt=Math.abs(Je?vr-Yt:Ut-kt),$t=Math.abs(Je?Ut-kt:vr-Yt),Ht=Oe(Math.abs(de(me,!0)-de(0,!0))),Tr=et.hasB?Math.min(zt/2,$t/2):Math.min(zt/2,Ht),qr;if(Kt==="%"){var ha=Math.min(50,yn);qr=zt*(ha/100)}else qr=yn;return Oe(Math.max(Math.min(qr,Tr),0))}var Ie=je||Ce?be(xe.cornerradiusvalue,xe.cornerradiusform):0,Xe,ht,bt="M"+kt+","+Yt+"V"+vr+"H"+Ut+"V"+Yt+"Z",Ct=0;if(Ie&&et.s){var Zt=M(et.s0)===0||M(et.s)===M(et.s0)?et.s1:et.s0;if(Ct=Oe(et.hasB?0:Math.abs(de(me,!0)-de(Zt,!0))),Ct0?Math.sqrt(Ct*(2*Ie-Ct)):0,Ia=Wt>0?Math.max:Math.min;Xe="M"+kt+","+Yt+"V"+(vr-mr*rr)+"H"+Ia(Ut-(Ie-Ct)*Wt,kt)+"A "+Ie+","+Ie+" 0 0 "+Jt+" "+Ut+","+(vr-Ie*rr-ia)+"V"+(Yt+Ie*rr+ia)+"A "+Ie+","+Ie+" 0 0 "+Jt+" "+Ia(Ut-(Ie-Ct)*Wt,kt)+","+(Yt+mr*rr)+"Z"}else if(et.hasB)Xe="M"+(kt+Ie*Wt)+","+Yt+"A "+Ie+","+Ie+" 0 0 "+Jt+" "+kt+","+(Yt+Ie*rr)+"V"+(vr-Ie*rr)+"A "+Ie+","+Ie+" 0 0 "+Jt+" "+(kt+Ie*Wt)+","+vr+"H"+(Ut-Ie*Wt)+"A "+Ie+","+Ie+" 0 0 "+Jt+" "+Ut+","+(vr-Ie*rr)+"V"+(Yt+Ie*rr)+"A "+Ie+","+Ie+" 0 0 "+Jt+" "+(Ut-Ie*Wt)+","+Yt+"Z";else{ht=Math.abs(vr-Yt)+Ct;var La=ht0?Math.sqrt(Ct*(2*Ie-Ct)):0,Ga=rr>0?Math.max:Math.min;Xe="M"+(kt+La*Wt)+","+Yt+"V"+Ga(vr-(Ie-Ct)*rr,Yt)+"A "+Ie+","+Ie+" 0 0 "+Jt+" "+(kt+Ie*Wt-Aa)+","+vr+"H"+(Ut-Ie*Wt+Aa)+"A "+Ie+","+Ie+" 0 0 "+Jt+" "+(Ut-La*Wt)+","+Ga(vr-(Ie-Ct)*rr,Yt)+"V"+Yt+"Z"}}else Xe=bt}else Xe=bt;var ba=d(A.ensureSingle(Ke,"path"),se,q,J);if(ba.style("vector-effect",Q?"none":"non-scaling-stroke").attr("d",isNaN((Ut-kt)*(vr-Yt))||hr&&te._context.staticPlot?"M0,0Z":Xe).call(t.setClipUrl,ue.layerClipId,te),!se.uniformtext.mode&&Ze){var Xa=t.makePointStyleFns(fe);t.singlePointStyle(et,ba,fe,Xa,te)}y(te,ue,Ke,re,nt,kt,Ut,Yt,vr,Ie,Ct,q,J),ue.layerClipId&&t.hideOutsideRangePoint(et,Ke.select("text"),ee,Z,fe.xcalendar,fe.ycalendar)});var De=fe.cliponaxis===!1;t.setClipUrl(ae,De?null:ue.layerClipId,te)});r.getComponentMethod("errorbars","plot")(te,V,ue,q)}function y(te,ue,ie,le,q,J,ee,Z,se,Q,V,re,ae){var fe=ue.xaxis,xe=ue.yaxis,Ae=te._fullLayout,Pe;function Ce(ht,bt,Ct){var Zt=A.ensureSingle(ht,"text").text(bt).attr({class:"bartext bartext-"+Pe,"text-anchor":"middle","data-notex":1}).call(t.font,Ct).call(E.convertToTspans,te);return Zt}var je=le[0].trace,at=je.orientation==="h",tt=P(Ae,le,q,fe,xe);Pe=N(je,q);var Je=re.mode==="stack"||re.mode==="relative",Ze=le[q],Me=!Je||Ze._outmost,we=Ze.hasB,he=Q&&Q-V>m;if(!tt||Pe==="none"||(Ze.isBlank||J===ee||Z===se)&&(Pe==="auto"||Pe==="inside")){ie.select("text").remove();return}var De=Ae.font,et=s.getBarColor(le[q],je),nt=s.getInsideTextFont(je,q,De,et),Ke=s.getOutsideTextFont(je,q,De),Et=je.insidetextanchor||"end",kt=ie.datum();at?fe.type==="log"&&kt.s0<=0&&(fe.range[0]0&&yt>0,Oe;he?we?Oe=R(vr-2*Q,hr,wr,yt,at)||R(vr,hr-2*Q,wr,yt,at):at?Oe=R(vr-(Q-V),hr,wr,yt,at)||R(vr,hr-2*(Q-V),wr,yt,at):Oe=R(vr,hr-(Q-V),wr,yt,at)||R(vr-2*(Q-V),hr,wr,yt,at):Oe=R(vr,hr,wr,yt,at),We&&Oe?Pe="inside":(Pe="outside",Rr.remove(),Rr=null)}else Pe="inside";if(!Rr){Fe=A.ensureUniformFontSize(te,Pe==="outside"?Ke:nt),Rr=Ce(ie,tt,Fe);var de=Rr.attr("transform");if(Rr.attr("transform",""),dr=t.bBox(Rr.node()),wr=dr.width,yt=dr.height,Rr.attr("transform",de),wr<=0||yt<=0){Rr.remove();return}}var me=je.textangle,be,Ie;Pe==="outside"?(Ie=je.constraintext==="both"||je.constraintext==="outside",be=O(J,ee,Z,se,dr,{isHorizontal:at,constrained:Ie,angle:me})):(Ie=je.constraintext==="both"||je.constraintext==="inside",be=F(J,ee,Z,se,dr,{isHorizontal:at,constrained:Ie,angle:me,anchor:Et,hasB:we,r:Q,overhead:V})),be.fontSize=Fe.size,o(je.type==="histogram"?"bar":je.type,be,Ae),Ze.transform=be;var Xe=d(Rr,Ae,re,ae);A.setTransormAndDisplay(Xe,be)}function R(te,ue,ie,le,q){if(te<0||ue<0)return!1;var J=ie<=te&&le<=ue,ee=ie<=ue&&le<=te,Z=q?te>=ie*(ue/le):ue>=le*(te/ie);return J||ee||Z}function I(te){return te==="auto"?0:te}function z(te,ue){var ie=Math.PI/180*ue,le=Math.abs(Math.sin(ie)),q=Math.abs(Math.cos(ie));return{x:te.width*q+te.height*le,y:te.width*le+te.height*q}}function F(te,ue,ie,le,q,J){var ee=!!J.isHorizontal,Z=!!J.constrained,se=J.angle||0,Q=J.anchor,V=Q==="end",re=Q==="start",ae=J.leftToRight||0,fe=(ae+1)/2,xe=1-fe,Ae=J.hasB,Pe=J.r,Ce=J.overhead,je=q.width,at=q.height,tt=Math.abs(ue-te),Je=Math.abs(le-ie),Ze=tt>2*m&&Je>2*m?m:0;tt-=2*Ze,Je-=2*Ze;var Me=I(se);se==="auto"&&!(je<=tt&&at<=Je)&&(je>tt||at>Je)&&(!(je>Je||at>tt)||jem){var et=B(te,ue,ie,le,we,Pe,Ce,ee,Ae);he=et.scale,De=et.pad}else he=1,Z&&(he=Math.min(1,tt/we.x,Je/we.y)),De=0;var nt=q.left*xe+q.right*fe,Ke=(q.top+q.bottom)/2,Et=(te+m)*xe+(ue-m)*fe,kt=(ie+le)/2,Ut=0,Yt=0;if(re||V){var vr=(ee?we.x:we.y)/2;Pe&&(V||Ae)&&(Ze+=De);var hr=ee?_(te,ue):_(ie,le);ee?re?(Et=te+hr*Ze,Ut=-hr*vr):(Et=ue-hr*Ze,Ut=hr*vr):re?(kt=ie+hr*Ze,Yt=-hr*vr):(kt=le-hr*Ze,Yt=hr*vr)}return{textX:nt,textY:Ke,targetX:Et,targetY:kt,anchorX:Ut,anchorY:Yt,scale:he,rotate:Me}}function B(te,ue,ie,le,q,J,ee,Z,se){var Q=Math.max(0,Math.abs(ue-te)-2*m),V=Math.max(0,Math.abs(le-ie)-2*m),re=J-m,ae=ee?re-Math.sqrt(re*re-(re-ee)*(re-ee)):re,fe=se?re*2:Z?re-ee:2*ae,xe=se?re*2:Z?2*ae:re-ee,Ae,Pe,Ce,je,at;return q.y/q.x>=V/(Q-fe)?je=V/q.y:q.y/q.x<=(V-xe)/Q?je=Q/q.x:!se&&Z?(Ae=q.x*q.x+q.y*q.y/4,Pe=-2*q.x*(Q-re)-q.y*(V/2-re),Ce=(Q-re)*(Q-re)+(V/2-re)*(V/2-re)-re*re,je=(-Pe+Math.sqrt(Pe*Pe-4*Ae*Ce))/(2*Ae)):se?(Ae=(q.x*q.x+q.y*q.y)/4,Pe=-q.x*(Q/2-re)-q.y*(V/2-re),Ce=(Q/2-re)*(Q/2-re)+(V/2-re)*(V/2-re)-re*re,je=(-Pe+Math.sqrt(Pe*Pe-4*Ae*Ce))/(2*Ae)):(Ae=q.x*q.x/4+q.y*q.y,Pe=-q.x*(Q/2-re)-2*q.y*(V-re),Ce=(Q/2-re)*(Q/2-re)+(V-re)*(V-re)-re*re,je=(-Pe+Math.sqrt(Pe*Pe-4*Ae*Ce))/(2*Ae)),je=Math.min(1,je),Z?at=Math.max(0,re-Math.sqrt(Math.max(0,re*re-(re-(V-q.y*je)/2)*(re-(V-q.y*je)/2)))-ee):at=Math.max(0,re-Math.sqrt(Math.max(0,re*re-(re-(Q-q.x*je)/2)*(re-(Q-q.x*je)/2)))-ee),{scale:je,pad:at}}function O(te,ue,ie,le,q,J){var ee=!!J.isHorizontal,Z=!!J.constrained,se=J.angle||0,Q=q.width,V=q.height,re=Math.abs(ue-te),ae=Math.abs(le-ie),fe;ee?fe=ae>2*m?m:0:fe=re>2*m?m:0;var xe=1;Z&&(xe=ee?Math.min(1,ae/V):Math.min(1,re/Q));var Ae=I(se),Pe=z(q,Ae),Ce=(ee?Pe.x:Pe.y)/2,je=(q.left+q.right)/2,at=(q.top+q.bottom)/2,tt=(te+ue)/2,Je=(ie+le)/2,Ze=0,Me=0,we=ee?_(ue,te):_(ie,le);return ee?(tt=ue-we*fe,Ze=we*Ce):(Je=le+we*fe,Me=-we*Ce),{textX:je,textY:at,targetX:tt,targetY:Je,anchorX:Ze,anchorY:Me,scale:xe,rotate:Ae}}function P(te,ue,ie,le,q){var J=ue[0].trace,ee=J.texttemplate,Z;return ee?Z=U(te,ue,ie,le,q):J.textinfo?Z=X(ue,ie,le,q):Z=c.getValue(J.text,ie),c.coerceString(v,Z)}function N(te,ue){var ie=c.getValue(te.textposition,ue);return c.coerceEnumerated(T,ie)}function U(te,ue,ie,le,q){var J=ue[0].trace,ee=A.castOption(J,ie,"texttemplate");if(!ee)return"";var Z=J.type==="histogram",se=J.type==="waterfall",Q=J.type==="funnel",V=J.orientation==="h",re,ae,fe,xe;V?(re="y",ae=q,fe="x",xe=le):(re="x",ae=le,fe="y",xe=q);function Ae(Ze){return i(ae,ae.c2l(Ze),!0).text}function Pe(Ze){return i(xe,xe.c2l(Ze),!0).text}var Ce=ue[ie],je={};je.label=Ce.p,je.labelLabel=je[re+"Label"]=Ae(Ce.p);var at=A.castOption(J,Ce.i,"text");(at===0||at)&&(je.text=at),je.value=Ce.s,je.valueLabel=je[fe+"Label"]=Pe(Ce.s);var tt={};l(tt,J,Ce.i),(Z||tt.x===void 0)&&(tt.x=V?je.value:je.label),(Z||tt.y===void 0)&&(tt.y=V?je.label:je.value),(Z||tt.xLabel===void 0)&&(tt.xLabel=V?je.valueLabel:je.labelLabel),(Z||tt.yLabel===void 0)&&(tt.yLabel=V?je.labelLabel:je.valueLabel),se&&(je.delta=+Ce.rawS||Ce.s,je.deltaLabel=Pe(je.delta),je.final=Ce.v,je.finalLabel=Pe(je.final),je.initial=je.final-je.delta,je.initialLabel=Pe(je.initial)),Q&&(je.value=Ce.s,je.valueLabel=Pe(je.value),je.percentInitial=Ce.begR,je.percentInitialLabel=A.formatPercent(Ce.begR),je.percentPrevious=Ce.difR,je.percentPreviousLabel=A.formatPercent(Ce.difR),je.percentTotal=Ce.sumR,je.percenTotalLabel=A.formatPercent(Ce.sumR));var Je=A.castOption(J,Ce.i,"customdata");return Je&&(je.customdata=Je),A.texttemplateString(ee,je,te._d3locale,tt,je,J._meta||{})}function X(te,ue,ie,le){var q=te[0].trace,J=q.orientation==="h",ee=q.type==="waterfall",Z=q.type==="funnel";function se(Je){var Ze=J?le:ie;return i(Ze,Je,!0).text}function Q(Je){var Ze=J?ie:le;return i(Ze,+Je,!0).text}var V=q.textinfo,re=te[ue],ae=V.split("+"),fe=[],xe,Ae=function(Je){return ae.indexOf(Je)!==-1};if(Ae("label")&&fe.push(se(te[ue].p)),Ae("text")&&(xe=A.castOption(q,re.i,"text"),(xe===0||xe)&&fe.push(xe)),ee){var Pe=+re.rawS||re.s,Ce=re.v,je=Ce-Pe;Ae("initial")&&fe.push(Q(je)),Ae("delta")&&fe.push(Q(Pe)),Ae("final")&&fe.push(Q(Ce))}if(Z){Ae("value")&&fe.push(Q(re.s));var at=0;Ae("percent initial")&&at++,Ae("percent previous")&&at++,Ae("percent total")&&at++;var tt=at>1;Ae("percent initial")&&(xe=A.formatPercent(re.begR),tt&&(xe+=" of initial"),fe.push(xe)),Ae("percent previous")&&(xe=A.formatPercent(re.difR),tt&&(xe+=" of previous"),fe.push(xe)),Ae("percent total")&&(xe=A.formatPercent(re.sumR),tt&&(xe+=" of total"),fe.push(xe))}return fe.join("
")}H.exports={plot:g,toMoveInsideBar:F}}}),Y0=He({"src/traces/bar/hover.js"(Y,H){var h=xc(),x=qi(),A=zi(),E=Qr().fillText,e=P1().getLineWidth,t=wo().hoverLabelText,r=qo().BADNUM;function i(n,s,c,f,p){var v=a(n,s,c,f,p);if(v){var T=v.cd,l=T[0].trace,m=T[v.index];return v.color=o(l,m),x.getComponentMethod("errorbars","hoverInfo")(m,l,v),[v]}}function a(n,s,c,f,p){var v=n.cd,T=v[0].trace,l=v[0].t,m=f==="closest",w=T.type==="waterfall",S=n.maxHoverDistance,M=n.maxSpikeDistance,_,b,d,u,g,y,R;T.orientation==="h"?(_=c,b=s,d="y",u="x",g=le,y=te):(_=s,b=c,d="x",u="y",y=le,g=te);var I=T[d+"period"],z=m||I;function F(xe){return O(xe,-1)}function B(xe){return O(xe,1)}function O(xe,Ae){var Pe=xe.w;return xe[d]+Ae*Pe/2}function P(xe){return xe[d+"End"]-xe[d+"Start"]}var N=m?F:I?function(xe){return xe.p-P(xe)/2}:function(xe){return Math.min(F(xe),xe.p-l.bardelta/2)},U=m?B:I?function(xe){return xe.p+P(xe)/2}:function(xe){return Math.max(B(xe),xe.p+l.bardelta/2)};function X(xe,Ae,Pe){return p.finiteRange&&(Pe=0),h.inbox(xe-_,Ae-_,Pe+Math.min(1,Math.abs(Ae-xe)/R)-1)}function te(xe){return X(N(xe),U(xe),S)}function ue(xe){return X(F(xe),B(xe),M)}function ie(xe){var Ae=xe[u];if(w){var Pe=Math.abs(xe.rawS)||0;b>0?Ae+=Pe:b<0&&(Ae-=Pe)}return Ae}function le(xe){var Ae=b,Pe=xe.b,Ce=ie(xe);return h.inbox(Pe-Ae,Ce-Ae,S+(Ce-Ae)/(Ce-Pe)-1)}function q(xe){var Ae=b,Pe=xe.b,Ce=ie(xe);return h.inbox(Pe-Ae,Ce-Ae,M+(Ce-Ae)/(Ce-Pe)-1)}var J=n[d+"a"],ee=n[u+"a"];R=Math.abs(J.r2c(J.range[1])-J.r2c(J.range[0]));function Z(xe){return(g(xe)+y(xe))/2}var se=h.getDistanceFunction(f,g,y,Z);if(h.getClosest(v,se,n),n.index!==!1&&v[n.index].p!==r){z||(N=function(xe){return Math.min(F(xe),xe.p-l.bargroupwidth/2)},U=function(xe){return Math.max(B(xe),xe.p+l.bargroupwidth/2)});var Q=n.index,V=v[Q],re=T.base?V.b+V.s:V.s;n[u+"0"]=n[u+"1"]=ee.c2p(V[u],!0),n[u+"LabelVal"]=re;var ae=l.extents[l.extents.round(V.p)];n[d+"0"]=J.c2p(m?N(V):ae[0],!0),n[d+"1"]=J.c2p(m?U(V):ae[1],!0);var fe=V.orig_p!==void 0;return n[d+"LabelVal"]=fe?V.orig_p:V.p,n.labelLabel=t(J,n[d+"LabelVal"],T[d+"hoverformat"]),n.valueLabel=t(ee,n[u+"LabelVal"],T[u+"hoverformat"]),n.baseLabel=t(ee,V.b,T[u+"hoverformat"]),n.spikeDistance=(q(V)+ue(V))/2,n[d+"Spike"]=J.c2p(V.p,!0),E(V,T,n),n.hovertemplate=T.hovertemplate,n}}function o(n,s){var c=s.mcc||n.marker.color,f=s.mlcc||n.marker.line.color,p=e(n,s);if(A.opacity(c))return c;if(A.opacity(f)&&p)return f}H.exports={hoverPoints:i,hoverOnBars:a,getTraceColor:o}}}),c5=He({"src/traces/bar/event_data.js"(Y,H){H.exports=function(x,A,E){return x.x="xVal"in A?A.xVal:A.x,x.y="yVal"in A?A.yVal:A.y,A.xa&&(x.xaxis=A.xa),A.ya&&(x.yaxis=A.ya),E.orientation==="h"?(x.label=x.y,x.value=x.x):(x.label=x.x,x.value=x.y),x}}}),$0=He({"src/traces/bar/select.js"(Y,H){H.exports=function(A,E){var e=A.cd,t=A.xaxis,r=A.yaxis,i=e[0].trace,a=i.type==="funnel",o=i.orientation==="h",n=[],s;if(E===!1)for(s=0;s0?(I="v",d>0?z=Math.min(g,u):z=Math.min(u)):d>0?(I="h",z=Math.min(g)):z=0;if(!z){c.visible=!1;return}c._length=z;var N=f("orientation",I);c._hasPreCompStats?N==="v"&&d===0?(f("x0",0),f("dx",1)):N==="h"&&b===0&&(f("y0",0),f("dy",1)):N==="v"&&d===0?f("x0"):N==="h"&&b===0&&f("y0");var U=x.getComponentMethod("calendars","handleTraceDefaults");U(s,c,["x","y"],p)}function o(s,c,f,p){var v=p.prefix,T=h.coerce2(s,c,r,"marker.outliercolor"),l=f("marker.line.outliercolor"),m="outliers";c._hasPreCompStats?m="all":(T||l)&&(m="suspectedoutliers");var w=f(v+"points",m);w?(f("jitter",w==="all"?.3:0),f("pointpos",w==="all"?-1.5:0),f("marker.symbol"),f("marker.opacity"),f("marker.size"),f("marker.angle"),f("marker.color",c.line.color),f("marker.line.color"),f("marker.line.width"),w==="suspectedoutliers"&&(f("marker.line.outliercolor",c.marker.color),f("marker.line.outlierwidth")),f("selected.marker.color"),f("unselected.marker.color"),f("selected.marker.size"),f("unselected.marker.size"),f("text"),f("hovertext")):delete c.marker;var S=f("hoveron");(S==="all"||S.indexOf("points")!==-1)&&f("hovertemplate"),h.coerceSelectionMarkerOpacity(c,f)}function n(s,c){var f,p;function v(w){return h.coerce(p._input,p,r,w)}for(var T=0;Tie.uf};if(M._hasPreCompStats){var Q=M[z],V=function(hr){return I.d2c((M[hr]||[])[y])},re=1/0,ae=-1/0;for(y=0;y=ie.q1&&ie.q3>=ie.med){var xe=V("lowerfence");ie.lf=xe!==e&&xe<=ie.q1?xe:p(ie,q,J);var Ae=V("upperfence");ie.uf=Ae!==e&&Ae>=ie.q3?Ae:v(ie,q,J);var Pe=V("mean");ie.mean=Pe!==e?Pe:J?E.mean(q,J):(ie.q1+ie.q3)/2;var Ce=V("sd");ie.sd=Pe!==e&&Ce>=0?Ce:J?E.stdev(q,J,ie.mean):ie.q3-ie.q1,ie.lo=T(ie),ie.uo=l(ie);var je=V("notchspan");je=je!==e&&je>0?je:m(ie,J),ie.ln=ie.med-je,ie.un=ie.med+je;var at=ie.lf,tt=ie.uf;M.boxpoints&&q.length&&(at=Math.min(at,q[0]),tt=Math.max(tt,q[J-1])),M.notched&&(at=Math.min(at,ie.ln),tt=Math.max(tt,ie.un)),ie.min=at,ie.max=tt}else{E.warn(["Invalid input - make sure that q1 <= median <= q3","q1 = "+ie.q1,"median = "+ie.med,"q3 = "+ie.q3].join(` -`));var Je;ie.med!==e?Je=ie.med:ie.q1!==e?ie.q3!==e?Je=(ie.q1+ie.q3)/2:Je=ie.q1:ie.q3!==e?Je=ie.q3:Je=0,ie.med=Je,ie.q1=ie.q3=Je,ie.lf=ie.uf=Je,ie.mean=ie.sd=Je,ie.ln=ie.un=Je,ie.min=ie.max=Je}re=Math.min(re,ie.min),ae=Math.max(ae,ie.max),ie.pts2=le.filter(se),u.push(ie)}}M._extremes[I._id]=x.findExtremes(I,[re,ae],{padded:!0})}else{var Ze=I.makeCalcdata(M,z),Me=i(te,ue),we=te.length,he=a(we);for(y=0;y=0&&De0){if(ie={},ie.pos=ie[B]=te[y],le=ie.pts=he[y].sort(c),q=ie[z]=le.map(f),J=q.length,ie.min=q[0],ie.max=q[J-1],ie.mean=E.mean(q,J),ie.sd=E.stdev(q,J,ie.mean)*M.sdmultiple,ie.med=E.interp(q,.5),J%2&&(Et||kt)){var Ut,Yt;Et?(Ut=q.slice(0,J/2),Yt=q.slice(J/2+1)):kt&&(Ut=q.slice(0,J/2+1),Yt=q.slice(J/2)),ie.q1=E.interp(Ut,.5),ie.q3=E.interp(Yt,.5)}else ie.q1=E.interp(q,.25),ie.q3=E.interp(q,.75);ie.lf=p(ie,q,J),ie.uf=v(ie,q,J),ie.lo=T(ie),ie.uo=l(ie);var vr=m(ie,J);ie.ln=ie.med-vr,ie.un=ie.med+vr,et=Math.min(et,ie.ln),nt=Math.max(nt,ie.un),ie.pts2=le.filter(se),u.push(ie)}M.notched&&E.isTypedArray(Ze)&&(Ze=Array.from(Ze)),M._extremes[I._id]=x.findExtremes(I,M.notched?Ze.concat([et,nt]):Ze,{padded:!0})}return s(u,M),u.length>0?(u[0].t={num:_[g],dPos:ue,posLetter:B,valLetter:z,labels:{med:t(S,"median:"),min:t(S,"min:"),q1:t(S,"q1:"),q3:t(S,"q3:"),max:t(S,"max:"),mean:M.boxmean==="sd"||M.sizemode==="sd"?t(S,"mean ± σ:").replace("σ",M.sdmultiple===1?"σ":M.sdmultiple+"σ"):t(S,"mean:"),lf:t(S,"lower fence:"),uf:t(S,"upper fence:")}},_[g]++,u):[{t:{empty:!0}}]};function r(w,S,M,_){var b=S in w,d=S+"0"in w,u="d"+S in w;if(b||d&&u){var g=M.makeCalcdata(w,S),y=A(w,M,S,g).vals;return[y,g]}var R;d?R=w[S+"0"]:"name"in w&&(M.type==="category"||h(w.name)&&["linear","log"].indexOf(M.type)!==-1||E.isDateTime(w.name)&&M.type==="date")?R=w.name:R=_;for(var I=M.type==="multicategory"?M.r2c_just_indices(R):M.d2c(R,0,w[S+"calendar"]),z=w._length,F=new Array(z),B=0;B1,d=1-s[r+"gap"],u=1-s[r+"groupgap"];for(p=0;p0;if(I==="positive"?(ie=z*(R?1:.5),J=q,le=J=B):I==="negative"?(ie=J=B,le=z*(R?1:.5),ee=q):(ie=le=z,J=ee=q),ae){var fe=g.pointpos,xe=g.jitter,Ae=g.marker.size/2,Pe=0;fe+xe>=0&&(Pe=q*(fe+xe),Pe>ie?(re=!0,Q=Ae,Z=Pe):Pe>J&&(Q=Ae,Z=ie)),Pe<=ie&&(Z=ie);var Ce=0;fe-xe<=0&&(Ce=-q*(fe-xe),Ce>le?(re=!0,V=Ae,se=Ce):Ce>ee&&(V=Ae,se=le)),Ce<=le&&(se=le)}else Z=ie,se=le;var je=new Array(T.length);for(v=0;vM.lo&&(N.so=!0)}return b});S.enter().append("path").classed("point",!0),S.exit().remove(),S.call(A.translatePoints,f,p)}function a(o,n,s,c){var f=n.val,p=n.pos,v=!!p.rangebreaks,T=c.bPos,l=c.bPosPxOffset||0,m=s.boxmean||(s.meanline||{}).visible,w,S;Array.isArray(c.bdPos)?(w=c.bdPos[0],S=c.bdPos[1]):(w=c.bdPos,S=c.bdPos);var M=o.selectAll("path.mean").data(s.type==="box"&&s.boxmean||s.type==="violin"&&s.box.visible&&s.meanline.visible?x.identity:[]);M.enter().append("path").attr("class","mean").style({fill:"none","vector-effect":"non-scaling-stroke"}),M.exit().remove(),M.each(function(_){var b=p.c2l(_.pos+T,!0),d=p.l2p(b-w)+l,u=p.l2p(b+S)+l,g=v?(d+u)/2:p.l2p(b)+l,y=f.c2p(_.mean,!0),R=f.c2p(_.mean-_.sd,!0),I=f.c2p(_.mean+_.sd,!0);s.orientation==="h"?h.select(this).attr("d","M"+y+","+d+"V"+u+(m==="sd"?"m0,0L"+R+","+g+"L"+y+","+d+"L"+I+","+g+"Z":"")):h.select(this).attr("d","M"+d+","+y+"H"+u+(m==="sd"?"m0,0L"+g+","+R+"L"+d+","+y+"L"+g+","+I+"Z":""))})}H.exports={plot:t,plotBoxAndWhiskers:r,plotPoints:i,plotBoxMean:a}}}),z1=He({"src/traces/box/style.js"(Y,H){var h=yi(),x=zi(),A=Io();function E(t,r,i){var a=i||h.select(t).selectAll("g.trace.boxes");a.style("opacity",function(o){return o[0].trace.opacity}),a.each(function(o){var n=h.select(this),s=o[0].trace,c=s.line.width;function f(T,l,m,w){T.style("stroke-width",l+"px").call(x.stroke,m).call(x.fill,w)}var p=n.selectAll("path.box");if(s.type==="candlestick")p.each(function(T){if(!T.empty){var l=h.select(this),m=s[T.dir];f(l,m.line.width,m.line.color,m.fillcolor),l.style("opacity",s.selectedpoints&&!T.selected?.3:1)}});else{f(p,c,s.line.color,s.fillcolor),n.selectAll("path.mean").style({"stroke-width":c,"stroke-dasharray":2*c+"px,"+c+"px"}).call(x.stroke,s.line.color);var v=n.selectAll("path.point");A.pointStyle(v,s,t)}})}function e(t,r,i){var a=r[0].trace,o=i.selectAll("path.point");a.selectedpoints?A.selectedPointStyle(o,a):A.pointStyle(o,a,t)}H.exports={style:E,styleOnSelect:e}}}),Aw=He({"src/traces/box/hover.js"(Y,H){var h=wo(),x=Qr(),A=xc(),E=zi(),e=x.fillText;function t(a,o,n,s){var c=a.cd,f=c[0].trace,p=f.hoveron,v=[],T;return p.indexOf("boxes")!==-1&&(v=v.concat(r(a,o,n,s))),p.indexOf("points")!==-1&&(T=i(a,o,n)),s==="closest"?T?[T]:v:(T&&v.push(T),v)}function r(a,o,n,s){var c=a.cd,f=a.xa,p=a.ya,v=c[0].trace,T=c[0].t,l=v.type==="violin",m,w,S,M,_,b,d,u,g,y,R,I=T.bdPos,z,F,B=T.wHover,O=function(Ce){return S.c2l(Ce.pos)+T.bPos-S.c2l(b)};l&&v.side!=="both"?(v.side==="positive"&&(g=function(Ce){var je=O(Ce);return A.inbox(je,je+B,y)},z=I,F=0),v.side==="negative"&&(g=function(Ce){var je=O(Ce);return A.inbox(je-B,je,y)},z=0,F=I)):(g=function(Ce){var je=O(Ce);return A.inbox(je-B,je+B,y)},z=F=I);var P;l?P=function(Ce){return A.inbox(Ce.span[0]-_,Ce.span[1]-_,y)}:P=function(Ce){return A.inbox(Ce.min-_,Ce.max-_,y)},v.orientation==="h"?(_=o,b=n,d=P,u=g,m="y",S=p,w="x",M=f):(_=n,b=o,d=g,u=P,m="x",S=f,w="y",M=p);var N=Math.min(1,I/Math.abs(S.r2c(S.range[1])-S.r2c(S.range[0])));y=a.maxHoverDistance-N,R=a.maxSpikeDistance-N;function U(Ce){return(d(Ce)+u(Ce))/2}var X=A.getDistanceFunction(s,d,u,U);if(A.getClosest(c,X,a),a.index===!1)return[];var te=c[a.index],ue=v.line.color,ie=(v.marker||{}).color;E.opacity(ue)&&v.line.width?a.color=ue:E.opacity(ie)&&v.boxpoints?a.color=ie:a.color=v.fillcolor,a[m+"0"]=S.c2p(te.pos+T.bPos-F,!0),a[m+"1"]=S.c2p(te.pos+T.bPos+z,!0),a[m+"LabelVal"]=te.orig_p!==void 0?te.orig_p:te.pos;var le=m+"Spike";a.spikeDistance=U(te)*R/y,a[le]=S.c2p(te.pos,!0);var q=v.boxmean||v.sizemode==="sd"||(v.meanline||{}).visible,J=v.boxpoints||v.points,ee=J&&q?["max","uf","q3","med","mean","q1","lf","min"]:J&&!q?["max","uf","q3","med","q1","lf","min"]:!J&&q?["max","q3","med","mean","q1","min"]:["max","q3","med","q1","min"],Z=M.range[1]0&&(i=!0);for(var s=0;st){var r=t-E[x];return E[x]=t,r}}else return E[x]=t,t;return 0},max:function(x,A,E,e){var t=e[A];if(h(t))if(t=Number(t),h(E[x])){if(E[x]d&&dE){var y=u===x?1:6,R=u===x?"M12":"M1";return function(I,z){var F=T.c2d(I,x,l),B=F.indexOf("-",y);B>0&&(F=F.substr(0,B));var O=T.d2c(F,0,l);if(Or?c>E?c>x*1.1?x:c>A*1.1?A:E:c>e?e:c>t?t:r:Math.pow(10,Math.floor(Math.log(c)/Math.LN10))}function n(c,f,p,v,T,l){if(v&&c>E){var m=s(f,T,l),w=s(p,T,l),S=c===x?0:1;return m[S]!==w[S]}return Math.floor(p/c)-Math.floor(f/c)>.1}function s(c,f,p){var v=f.c2d(c,x,p).split("-");return v[0]===""&&(v.unshift(),v[0]="-"+v[0]),v}}}),Pw=He({"src/traces/histogram/calc.js"(Y,H){var h=Vi(),x=Qr(),A=qi(),E=wo(),e=cm(),t=Ew(),r=kw(),i=Cw(),a=Lw();function o(p,v){var T=[],l=[],m=v.orientation==="h",w=E.getFromId(p,m?v.yaxis:v.xaxis),S=m?"y":"x",M={x:"y",y:"x"}[S],_=v[S+"calendar"],b=v.cumulative,d,u=n(p,v,w,S),g=u[0],y=u[1],R=typeof g.size=="string",I=[],z=R?I:g,F=[],B=[],O=[],P=0,N=v.histnorm,U=v.histfunc,X=N.indexOf("density")!==-1,te,ue,ie;b.enabled&&X&&(N=N.replace(/ ?density$/,""),X=!1);var le=U==="max"||U==="min",q=le?null:0,J=t.count,ee=r[N],Z=!1,se=function(we){return w.r2c(we,0,_)},Q;for(x.isArrayOrTypedArray(v[M])&&U!=="count"&&(Q=v[M],Z=U==="avg",J=t[U]),d=se(g.start),ue=se(g.end)+(d-E.tickIncrement(d,g.size,!1,_))/1e6;d=0&&ie=Je;d--)if(l[d]){Ze=d;break}for(d=Je;d<=Ze;d++)if(h(T[d])&&h(l[d])){var Me={p:T[d],s:l[d],b:0};b.enabled||(Me.pts=O[d],fe?Me.ph0=Me.ph1=O[d].length?y[O[d][0]]:T[d]:(v._computePh=!0,Me.ph0=je(I[d]),Me.ph1=je(I[d+1],!0))),tt.push(Me)}return tt.length===1&&(tt[0].width1=E.tickIncrement(tt[0].p,g.size,!1,_)-tt[0].p),e(tt,v),x.isArrayOrTypedArray(v.selectedpoints)&&x.tagSelected(tt,v,Pe),tt}function n(p,v,T,l,m){var w=l+"bins",S=p._fullLayout,M=v["_"+l+"bingroup"],_=S._histogramBinOpts[M],b=S.barmode==="overlay",d,u,g,y,R,I,z,F=function(Ce){return T.r2c(Ce,0,y)},B=function(Ce){return T.c2r(Ce,0,y)},O=T.type==="date"?function(Ce){return Ce||Ce===0?x.cleanDate(Ce,null,y):null}:function(Ce){return h(Ce)?Number(Ce):null};function P(Ce,je,at){je[Ce+"Found"]?(je[Ce]=O(je[Ce]),je[Ce]===null&&(je[Ce]=at[Ce])):(I[Ce]=je[Ce]=at[Ce],x.nestedProperty(u[0],w+"."+Ce).set(at[Ce]))}if(v["_"+l+"autoBinFinished"])delete v["_"+l+"autoBinFinished"];else{u=_.traces;var N=[],U=!0,X=!1,te=!1;for(d=0;d"u"){if(m)return[ie,R,!0];ie=s(p,v,T,l,w)}z=g.cumulative||{},z.enabled&&z.currentbin!=="include"&&(z.direction==="decreasing"?ie.start=B(E.tickIncrement(F(ie.start),ie.size,!0,y)):ie.end=B(E.tickIncrement(F(ie.end),ie.size,!1,y))),_.size=ie.size,_.sizeFound||(I.size=ie.size,x.nestedProperty(u[0],w+".size").set(ie.size)),P("start",_,ie),P("end",_,ie)}R=v["_"+l+"pos0"],delete v["_"+l+"pos0"];var q=v._input[w]||{},J=x.extendFlat({},_),ee=_.start,Z=T.r2l(q.start),se=Z!==void 0;if((_.startFound||se)&&Z!==T.r2l(ee)){var Q=se?Z:x.aggNums(Math.min,null,R),V={type:T.type==="category"||T.type==="multicategory"?"linear":T.type,r2l:T.r2l,dtick:_.size,tick0:ee,calendar:y,range:[Q,E.tickIncrement(Q,_.size,!1,y)].map(T.l2r)},re=E.tickFirst(V);re>T.r2l(Q)&&(re=E.tickIncrement(re,_.size,!0,y)),J.start=T.l2r(re),se||x.nestedProperty(v,w+".start").set(J.start)}var ae=_.end,fe=T.r2l(q.end),xe=fe!==void 0;if((_.endFound||xe)&&fe!==T.r2l(ae)){var Ae=xe?fe:x.aggNums(Math.max,null,R);J.end=T.l2r(Ae),xe||x.nestedProperty(v,w+".start").set(J.end)}var Pe="autobin"+l;return v._input[Pe]===!1&&(v._input[w]=x.extendFlat({},v[w]||{}),delete v._input[Pe],delete v[Pe]),[J,R]}function s(p,v,T,l,m){var w=p._fullLayout,S=c(p,v),M=!1,_=1/0,b=[v],d,u,g;for(d=0;d=0;l--)M(l);else if(v==="increasing"){for(l=1;l=0;l--)p[l]+=p[l+1];T==="exclude"&&(p.push(0),p.shift())}}H.exports={calc:o,calcAllAutoBins:n}}}),m5=He({"src/traces/histogram2d/calc.js"(Y,H){var h=Qr(),x=wo(),A=Ew(),E=kw(),e=Cw(),t=Lw(),r=Pw().calcAllAutoBins;H.exports=function(s,c){var f=x.getFromId(s,c.xaxis),p=x.getFromId(s,c.yaxis),v=c.xcalendar,T=c.ycalendar,l=function(Fe){return f.r2c(Fe,0,v)},m=function(Fe){return p.r2c(Fe,0,T)},w=function(Fe){return f.c2r(Fe,0,v)},S=function(Fe){return p.c2r(Fe,0,T)},M,_,b,d,u=r(s,c,f,"x"),g=u[0],y=u[1],R=r(s,c,p,"y"),I=R[0],z=R[1],F=c._length;y.length>F&&y.splice(F,y.length-F),z.length>F&&z.splice(F,z.length-F);var B=[],O=[],P=[],N=typeof g.size=="string",U=typeof I.size=="string",X=[],te=[],ue=N?X:g,ie=U?te:I,le=0,q=[],J=[],ee=c.histnorm,Z=c.histfunc,se=ee.indexOf("density")!==-1,Q=Z==="max"||Z==="min",V=Q?null:0,re=A.count,ae=E[ee],fe=!1,xe=[],Ae=[],Pe="z"in c?c.z:"marker"in c&&Array.isArray(c.marker.color)?c.marker.color:"";Pe&&Z!=="count"&&(fe=Z==="avg",re=A[Z]);var Ce=g.size,je=l(g.start),at=l(g.end)+(je-x.tickIncrement(je,Ce,!1,v))/1e6;for(M=je;M=0&&b=0&&dx;o++)a=e(r,i,E(a));return a>x&&h.log("interp2d didn't converge quickly",a),r};function e(t,r,i){var a=0,o,n,s,c,f,p,v,T,l,m,w,S,M;for(c=0;cS&&(a=Math.max(a,Math.abs(t[n][s]-w)/(M-S))))}return a}}}),U1=He({"src/traces/heatmap/find_empties.js"(Y,H){var h=Qr().maxRowLength;H.exports=function(A){var E=[],e={},t=[],r=A[0],i=[],a=[0,0,0],o=h(A),n,s,c,f,p,v,T,l;for(s=0;s=0;p--)f=t[p],s=f[0],c=f[1],v=((e[[s-1,c]]||a)[2]+(e[[s+1,c]]||a)[2]+(e[[s,c-1]]||a)[2]+(e[[s,c+1]]||a)[2])/20,v&&(T[f]=[s,c,v],t.splice(p,1),l=!0);if(!l)throw"findEmpties iterated with no new neighbors";for(f in T)e[f]=T[f],E.push(T[f])}return E.sort(function(m,w){return w[2]-m[2]})}}}),Iw=He({"src/traces/heatmap/make_bound_array.js"(Y,H){var h=qi(),x=Qr().isArrayOrTypedArray;H.exports=function(E,e,t,r,i,a){var o=[],n=h.traceIs(E,"contour"),s=h.traceIs(E,"histogram"),c,f,p,v=x(e)&&e.length>1;if(v&&!s&&a.type!=="category"){var T=e.length;if(T<=i){if(n)o=Array.from(e).slice(0,i);else if(i===1)a.type==="log"?o=[.5*e[0],2*e[0]]:o=[e[0]-.5,e[0]+.5];else if(a.type==="log"){for(o=[Math.pow(e[0],1.5)/Math.pow(e[1],.5)],p=1;p1){var ee=(J[J.length-1]-J[0])/(J.length-1),Z=Math.abs(ee/100);for(F=0;FZ)return!1}return!0}T._islinear=!1,l.type==="log"||m.type==="log"?M==="fast"&&P("log axis found"):N(_)?N(g)?T._islinear=!0:M==="fast"&&P("y scale is not linear"):M==="fast"&&P("x scale is not linear");var U=x.maxRowLength(z),X=T.xtype==="scaled"?"":_,te=n(T,X,b,d,U,l),ue=T.ytype==="scaled"?"":g,ie=n(T,ue,y,R,z.length,m);T._extremes[l._id]=A.findExtremes(l,te),T._extremes[m._id]=A.findExtremes(m,ie);var le={x:te,y:ie,z,text:T._text||T.text,hovertext:T._hovertext||T.hovertext};if(T.xperiodalignment&&u&&(le.orig_x=u),T.yperiodalignment&&I&&(le.orig_y=I),X&&X.length===te.length-1&&(le.xCenter=X),ue&&ue.length===ie.length-1&&(le.yCenter=ue),S&&(le.xRanges=B.xRanges,le.yRanges=B.yRanges,le.pts=B.pts),w||t(v,T,{vals:z,cLetter:"z"}),w&&T.contours&&T.contours.coloring==="heatmap"){var q={type:T.type==="contour"?"heatmap":"histogram2d",xcalendar:T.xcalendar,ycalendar:T.ycalendar};le.xfill=n(q,X,b,d,U,l),le.yfill=n(q,ue,y,R,z.length,m)}return[le]};function c(p){for(var v=[],T=p.length,l=0;l0;)se=g.c2p(N[ae]),ae--;for(se0;)re=y.c2p(U[ae]),ae--;re=g._length||se<=0||V>=y._length||re<=0;if(at){var tt=I.selectAll("image").data([]);tt.exit().remove(),m(I);return}var Je,Ze;Ae==="fast"?(Je=q,Ze=le):(Je=Ce,Ze=je);var Me=document.createElement("canvas");Me.width=Je,Me.height=Ze;var we=Me.getContext("2d",{willReadFrequently:!0}),he=n(F,{noNumericCheck:!0,returnArray:!0}),De,et;Ae==="fast"?(De=J?function(Ta){return q-1-Ta}:t.identity,et=ee?function(Ta){return le-1-Ta}:t.identity):(De=function(Ta){return t.constrain(Math.round(g.c2p(N[Ta])-Z),0,Ce)},et=function(Ta){return t.constrain(Math.round(y.c2p(U[Ta])-V),0,je)});var nt=et(0),Ke=[nt,nt],Et=J?0:1,kt=ee?0:1,Ut=0,Yt=0,vr=0,hr=0,Rr,dr,wr,yt,Fe;function We(Ta,Fn){if(Ta!==void 0){var mn=he(Ta);return mn[0]=Math.round(mn[0]),mn[1]=Math.round(mn[1]),mn[2]=Math.round(mn[2]),Ut+=Fn,Yt+=mn[0]*Fn,vr+=mn[1]*Fn,hr+=mn[2]*Fn,mn}return[0,0,0,0]}function Oe(Ta,Fn,mn,Kn){var ui=Ta[mn.bin0];if(ui===void 0)return We(void 0,1);var pi=Ta[mn.bin1],vi=Fn[mn.bin0],Li=Fn[mn.bin1],Ni=pi-ui||0,ci=vi-ui||0,bi;return pi===void 0?Li===void 0?bi=0:vi===void 0?bi=2*(Li-ui):bi=(2*Li-vi-ui)*2/3:Li===void 0?vi===void 0?bi=0:bi=(2*ui-pi-vi)*2/3:vi===void 0?bi=(2*Li-pi-ui)*2/3:bi=Li+ui-pi-vi,We(ui+mn.frac*Ni+Kn.frac*(ci+mn.frac*bi))}if(Ae!=="default"){var de=0,me;try{me=new Uint8Array(Je*Ze*4)}catch{me=new Array(Je*Ze*4)}if(Ae==="smooth"){var be=X||N,Ie=te||U,Xe=new Array(be.length),ht=new Array(Ie.length),bt=new Array(Ce),Ct=X?S:w,Zt=te?S:w,Wt,rr,Jt;for(ae=0;aeDa||Da>y._length))for(fe=qr;feKa||Ka>g._length)){var an=i({x:Ya,y:wa},F,_._fullLayout);an.x=Ya,an.y=wa;var mt=z.z[ae][fe];mt===void 0?(an.z="",an.zLabel=""):(an.z=mt,an.zLabel=e.tickText(Kt,mt,"hover").text);var ot=z.text&&z.text[ae]&&z.text[ae][fe];(ot===void 0||ot===!1)&&(ot=""),an.text=ot;var Lr=t.texttemplateString(Xa,an,_._fullLayout._d3locale,an,F._meta||{});if(Lr){var Er=Lr.split("
"),Mr=Er.length,br=0;for(xe=0;xe=m[0].length||R<0||R>m.length)return}else{if(h.inbox(i-T[0],i-T[T.length-1],0)>0||h.inbox(a-l[0],a-l[l.length-1],0)>0)return;if(s){var I;for(b=[2*T[0]-T[1]],I=1;I=",">","<="],COMPARISON_OPS2:["=","<",">=",">","<="],INTERVAL_OPS:["[]","()","[)","(]","][",")(","](",")["],SET_OPS:["{}","}{"],CONSTRAINT_REDUCTION:{"=":"=","<":"<","<=":"<",">":">",">=":">","[]":"[]","()":"[]","[)":"[]","(]":"[]","][":"][",")(":"][","](":"][",")[":"]["}}}}),pm=He({"src/traces/contour/attributes.js"(Y,H){var h=K0(),x=bc(),A=_c(),E=A.axisHoverFormat,e=A.descriptionOnlyNumbers,t=eu(),r=Yf().dash,i=Mu(),a=Po().extendFlat,o=Y1(),n=o.COMPARISON_OPS2,s=o.INTERVAL_OPS,c=x.line;H.exports=a({z:h.z,x:h.x,x0:h.x0,dx:h.dx,y:h.y,y0:h.y0,dy:h.dy,xperiod:h.xperiod,yperiod:h.yperiod,xperiod0:x.xperiod0,yperiod0:x.yperiod0,xperiodalignment:h.xperiodalignment,yperiodalignment:h.yperiodalignment,text:h.text,hovertext:h.hovertext,transpose:h.transpose,xtype:h.xtype,ytype:h.ytype,xhoverformat:E("x"),yhoverformat:E("y"),zhoverformat:E("z",1),hovertemplate:h.hovertemplate,texttemplate:a({},h.texttemplate,{}),textfont:a({},h.textfont,{}),hoverongaps:h.hoverongaps,connectgaps:a({},h.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:i({editType:"plot",colorEditType:"style"}),labelformat:{valType:"string",dflt:"",editType:"plot",description:e("contour label")},operation:{valType:"enumerated",values:[].concat(n).concat(s),dflt:"=",editType:"calc"},value:{valType:"any",dflt:0,editType:"calc"},editType:"calc",impliedEdits:{autocontour:!1}},line:{color:a({},c.color,{editType:"style+colorbars"}),width:{valType:"number",min:0,editType:"style+colorbars"},dash:r,smoothing:a({},c.smoothing,{}),editType:"plot"},zorder:x.zorder},t("",{cLetter:"z",autoColorDflt:!1,editTypeOverride:"calc"}))}}),Ow=He({"src/traces/histogram2dcontour/attributes.js"(Y,H){var h=Z1(),x=pm(),A=eu(),E=_c().axisHoverFormat,e=Po().extendFlat;H.exports=e({x:h.x,y:h.y,z:h.z,marker:h.marker,histnorm:h.histnorm,histfunc:h.histfunc,nbinsx:h.nbinsx,xbins:h.xbins,nbinsy:h.nbinsy,ybins:h.ybins,autobinx:h.autobinx,autobiny:h.autobiny,bingroup:h.bingroup,xbingroup:h.xbingroup,ybingroup:h.ybingroup,autocontour:x.autocontour,ncontours:x.ncontours,contours:x.contours,line:{color:x.line.color,width:e({},x.line.width,{dflt:.5}),dash:x.line.dash,smoothing:x.line.smoothing,editType:"plot"},xhoverformat:E("x"),yhoverformat:E("y"),zhoverformat:E("z",1),hovertemplate:h.hovertemplate,texttemplate:x.texttemplate,textfont:x.textfont},A("",{cLetter:"z",editTypeOverride:"calc"}))}}),$1=He({"src/traces/contour/contours_defaults.js"(Y,H){H.exports=function(x,A,E,e){var t=e("contours.start"),r=e("contours.end"),i=t===!1||r===!1,a=E("contours.size"),o;i?o=A.autocontour=!0:o=E("autocontour",!1),(o||!a)&&E("ncontours")}}}),Bw=He({"src/traces/contour/label_defaults.js"(Y,H){var h=Qr();H.exports=function(A,E,e,t){t||(t={});var r=A("contours.showlabels");if(r){var i=E.font;h.coerceFont(A,"contours.labelfont",i,{overrideDflt:{color:e}}),A("contours.labelformat")}t.hasHover!==!1&&A("zhoverformat")}}}),K1=He({"src/traces/contour/style_defaults.js"(Y,H){var h=If(),x=Bw();H.exports=function(E,e,t,r,i){var a=t("contours.coloring"),o,n="";a==="fill"&&(o=t("contours.showlines")),o!==!1&&(a!=="lines"&&(n=t("line.color","#000")),t("line.width",.5),t("line.dash")),a!=="none"&&(E.showlegend!==!0&&(e.showlegend=!1),e._dfltShowLegend=!1,h(E,e,r,t,{prefix:"",cLetter:"z"})),t("line.smoothing"),x(t,r,n,i)}}}),C5=He({"src/traces/histogram2dcontour/defaults.js"(Y,H){var h=Qr(),x=Fw(),A=$1(),E=K1(),e=dm(),t=Ow();H.exports=function(i,a,o,n){function s(f,p){return h.coerce(i,a,t,f,p)}function c(f){return h.coerce2(i,a,t,f)}x(i,a,s,n),a.visible!==!1&&(A(i,a,s,c),E(i,a,s,n),s("xhoverformat"),s("yhoverformat"),s("hovertemplate"),a.contours&&a.contours.coloring==="heatmap"&&e(s,n))}}}),Nw=He({"src/traces/contour/set_contours.js"(Y,H){var h=wo(),x=Qr();H.exports=function(e,t){var r=e.contours;if(e.autocontour){var i=e.zmin,a=e.zmax;(e.zauto||i===void 0)&&(i=x.aggNums(Math.min,null,t)),(e.zauto||a===void 0)&&(a=x.aggNums(Math.max,null,t));var o=A(i,a,e.ncontours);r.size=o.dtick,r.start=h.tickFirst(o),o.range.reverse(),r.end=h.tickFirst(o),r.start===i&&(r.start+=r.size),r.end===a&&(r.end-=r.size),r.start>r.end&&(r.start=r.end=(r.start+r.end)/2),e._input.contours||(e._input.contours={}),x.extendFlat(e._input.contours,{start:r.start,end:r.end,size:r.size}),e._input.autocontour=!0}else if(r.type!=="constraint"){var n=r.start,s=r.end,c=e._input.contours;if(n>s&&(r.start=c.start=s,s=r.end=c.end=n,n=r.start),!(r.size>0)){var f;n===s?f=1:f=A(n,s,e.ncontours).dtick,c.size=r.size=f}}};function A(E,e,t){var r={type:"linear",range:[E,e]};return h.autoTicks(r,(e-E)/(t||15)),r}}}),gm=He({"src/traces/contour/end_plus.js"(Y,H){H.exports=function(x){return x.end+x.size/1e6}}}),Uw=He({"src/traces/contour/calc.js"(Y,H){var h=Eu(),x=j1(),A=Nw(),E=gm();H.exports=function(t,r){var i=x(t,r),a=i[0].z;A(r,a);var o=r.contours,n=h.extractOpts(r),s;if(o.coloring==="heatmap"&&n.auto&&r.autocontour===!1){var c=o.start,f=E(o),p=o.size||1,v=Math.floor((f-c)/p)+1;isFinite(p)||(p=1,v=1);var T=c-p/2,l=T+v*p;s=[T,l]}else s=a;return h.calc(t,r,{vals:s,cLetter:"z"}),i}}}),mm=He({"src/traces/contour/constants.js"(Y,H){H.exports={BOTTOMSTART:[1,9,13,104,713],TOPSTART:[4,6,7,104,713],LEFTSTART:[8,12,14,208,1114],RIGHTSTART:[2,3,11,208,1114],NEWDELTA:[null,[-1,0],[0,-1],[-1,0],[1,0],null,[0,-1],[-1,0],[0,1],[0,1],null,[0,1],[1,0],[1,0],[0,-1]],CHOOSESADDLE:{104:[4,1],208:[2,8],713:[7,13],1114:[11,14]},SADDLEREMAINDER:{1:4,2:8,4:1,7:13,8:2,11:14,13:7,14:11},LABELDISTANCE:2,LABELINCREASE:10,LABELMIN:3,LABELMAX:10,LABELOPTIMIZER:{EDGECOST:1,ANGLECOST:1,NEIGHBORCOST:5,SAMELEVELFACTOR:10,SAMELEVELDISTANCE:5,MAXCOST:100,INITIALSEARCHPOINTS:10,ITERATIONS:5}}}}),jw=He({"src/traces/contour/make_crossings.js"(Y,H){var h=mm();H.exports=function(E){var e=E[0].z,t=e.length,r=e[0].length,i=t===2||r===2,a,o,n,s,c,f,p,v,T;for(o=0;oA?0:1)+(E[0][1]>A?0:2)+(E[1][1]>A?0:4)+(E[1][0]>A?0:8);if(e===5||e===10){var t=(E[0][0]+E[0][1]+E[1][0]+E[1][1])/4;return A>t?e===5?713:1114:e===5?104:208}return e===15?0:e}}}),Vw=He({"src/traces/contour/find_all_paths.js"(Y,H){var h=Qr(),x=mm();H.exports=function(a,o,n){var s,c,f,p,v;for(o=o||.01,n=n||.01,f=0;f20?(f=x.CHOOSESADDLE[f][(p[0]||p[1])<0?0:1],i.crossings[c]=x.SADDLEREMAINDER[f]):delete i.crossings[c],p=x.NEWDELTA[f],!p){h.log("Found bad marching index:",f,a,i.level);break}v.push(r(i,a,p)),a[0]+=p[0],a[1]+=p[1],c=a.join(","),A(v[v.length-1],v[v.length-2],n,s)&&v.pop();var M=p[0]&&(a[0]<0||a[0]>l-2)||p[1]&&(a[1]<0||a[1]>T-2),_=a[0]===m[0]&&a[1]===m[1]&&p[0]===w[0]&&p[1]===w[1];if(_||o&&M)break;f=i.crossings[c]}S===1e4&&h.log("Infinite loop in contour?");var b=A(v[0],v[v.length-1],n,s),d=0,u=.2*i.smoothing,g=[],y=0,R,I,z,F,B,O,P,N,U,X,te;for(S=1;S=y;S--)if(R=g[S],R=y&&R+g[I]N&&U--,i.edgepaths[U]=te.concat(v,X));break}q||(i.edgepaths[N]=v.concat(X))}for(N=0;N20&&a?i===208||i===1114?n=o[0]===0?1:-1:s=o[1]===0?1:-1:x.BOTTOMSTART.indexOf(i)!==-1?s=1:x.LEFTSTART.indexOf(i)!==-1?n=1:x.TOPSTART.indexOf(i)!==-1?s=-1:n=-1,[n,s]}function r(i,a,o){var n=a[0]+Math.max(o[0],0),s=a[1]+Math.max(o[1],0),c=i.z[s][n],f=i.xaxis,p=i.yaxis;if(o[1]){var v=(i.level-c)/(i.z[s][n+1]-c),T=(v!==1?(1-v)*f.c2l(i.x[n]):0)+(v!==0?v*f.c2l(i.x[n+1]):0);return[f.c2p(f.l2c(T),!0),p.c2p(i.y[s],!0),n+v,s]}else{var l=(i.level-c)/(i.z[s+1][n]-c),m=(l!==1?(1-l)*p.c2l(i.y[s]):0)+(l!==0?l*p.c2l(i.y[s+1]):0);return[f.c2p(i.x[n],!0),p.c2p(p.l2c(m),!0),n,s+l]}}}}),L5=He({"src/traces/contour/constraint_mapping.js"(Y,H){var h=Y1(),x=Vi();H.exports={"[]":E("[]"),"][":E("]["),">":e(">"),"<":e("<"),"=":e("=")};function A(t,r){var i=Array.isArray(r),a;function o(n){return x(n)?+n:null}return h.COMPARISON_OPS2.indexOf(t)!==-1?a=o(i?r[0]:r):h.INTERVAL_OPS.indexOf(t)!==-1?a=i?[o(r[0]),o(r[1])]:[o(r),o(r)]:h.SET_OPS.indexOf(t)!==-1&&(a=i?r.map(o):[o(r)]),a}function E(t){return function(r){r=A(t,r);var i=Math.min(r[0],r[1]),a=Math.max(r[0],r[1]);return{start:i,end:a,size:a-i}}}function e(t){return function(r){return r=A(t,r),{start:r,end:1/0,size:1/0}}}}}),qw=He({"src/traces/contour/empty_pathinfo.js"(Y,H){var h=Qr(),x=L5(),A=gm();H.exports=function(e,t,r){for(var i=e.type==="constraint"?x[e._operation](e.value):e,a=i.size,o=[],n=A(i),s=r.trace._carpetTrace,c=s?{xaxis:s.aaxis,yaxis:s.baxis,x:r.a,y:r.b}:{xaxis:t.xaxis,yaxis:t.yaxis,x:r.x,y:r.y},f=i.start;f1e3){h.warn("Too many contours, clipping at 1000",e);break}return o}}}),Gw=He({"src/traces/contour/convert_to_constraints.js"(Y,H){var h=Qr();H.exports=function(A,E){var e,t,r,i=function(n){return n.reverse()},a=function(n){return n};switch(E){case"=":case"<":return A;case">":for(A.length!==1&&h.warn("Contour data invalid for the specified inequality operation."),t=A[0],e=0;er.level||r.starts.length&&t===r.level)}break;case"constraint":if(A.prefixBoundary=!1,A.edgepaths.length)return;var i=A.x.length,a=A.y.length,o=-1/0,n=1/0;for(e=0;e":s>o&&(A.prefixBoundary=!0);break;case"<":(so||A.starts.length&&f===n)&&(A.prefixBoundary=!0);break;case"][":c=Math.min(s[0],s[1]),f=Math.max(s[0],s[1]),co&&(A.prefixBoundary=!0);break}break}}}}),J1=He({"src/traces/contour/plot.js"(Y){var H=yi(),h=Qr(),x=Io(),A=Eu(),E=jl(),e=wo(),t=Nv(),r=q1(),i=jw(),a=Vw(),o=qw(),n=Gw(),s=Hw(),c=mm(),f=c.LABELOPTIMIZER;Y.plot=function(_,b,d,u){var g=b.xaxis,y=b.yaxis;h.makeTraceGroups(u,d,"contour").each(function(R){var I=H.select(this),z=R[0],F=z.trace,B=z.x,O=z.y,P=F.contours,N=o(P,b,z),U=h.ensureSingle(I,"g","heatmapcoloring"),X=[];P.coloring==="heatmap"&&(X=[R]),r(_,b,X,U),i(N),a(N);var te=g.c2p(B[0],!0),ue=g.c2p(B[B.length-1],!0),ie=y.c2p(O[0],!0),le=y.c2p(O[O.length-1],!0),q=[[te,le],[ue,le],[ue,ie],[te,ie]],J=N;P.type==="constraint"&&(J=n(N,P._operation)),p(I,q,P),v(I,J,q,P),l(I,N,_,z,P),w(I,b,_,z,q)})};function p(M,_,b){var d=h.ensureSingle(M,"g","contourbg"),u=d.selectAll("path").data(b.coloring==="fill"?[0]:[]);u.enter().append("path"),u.exit().remove(),u.attr("d","M"+_.join("L")+"Z").style("stroke","none")}function v(M,_,b,d){var u=d.coloring==="fill"||d.type==="constraint"&&d._operation!=="=",g="M"+b.join("L")+"Z";u&&s(_,d);var y=h.ensureSingle(M,"g","contourfill"),R=y.selectAll("path").data(u?_:[]);R.enter().append("path"),R.exit().remove(),R.each(function(I){var z=(I.prefixBoundary?g:"")+T(I,b);z?H.select(this).attr("d",z).style("stroke","none"):H.select(this).remove()})}function T(M,_){var b="",d=0,u=M.edgepaths.map(function(te,ue){return ue}),g=!0,y,R,I,z,F,B;function O(te){return Math.abs(te[1]-_[0][1])<.01}function P(te){return Math.abs(te[1]-_[2][1])<.01}function N(te){return Math.abs(te[0]-_[0][0])<.01}function U(te){return Math.abs(te[0]-_[2][0])<.01}for(;u.length;){for(B=x.smoothopen(M.edgepaths[d],M.smoothing),b+=g?B:B.replace(/^M/,"L"),u.splice(u.indexOf(d),1),y=M.edgepaths[d][M.edgepaths[d].length-1],z=-1,I=0;I<4;I++){if(!y){h.log("Missing end?",d,M);break}for(O(y)&&!U(y)?R=_[1]:N(y)?R=_[0]:P(y)?R=_[3]:U(y)&&(R=_[2]),F=0;F=0&&(R=X,z=F):Math.abs(y[1]-R[1])<.01?Math.abs(y[1]-X[1])<.01&&(X[0]-y[0])*(R[0]-X[0])>=0&&(R=X,z=F):h.log("endpt to newendpt is not vert. or horz.",y,R,X)}if(y=R,z>=0)break;b+="L"+R}if(z===M.edgepaths.length){h.log("unclosed perimeter path");break}d=z,g=u.indexOf(d)===-1,g&&(d=u[0],b+="Z")}for(d=0;df.MAXCOST*2)break;O&&(R/=2),y=z-R/2,I=y+R*1.5}if(B<=f.MAXCOST)return F};function m(M,_,b,d){var u=_.width/2,g=_.height/2,y=M.x,R=M.y,I=M.theta,z=Math.cos(I)*u,F=Math.sin(I)*u,B=(y>d.center?d.right-y:y-d.left)/(z+Math.abs(Math.sin(I)*g)),O=(R>d.middle?d.bottom-R:R-d.top)/(Math.abs(F)+Math.cos(I)*g);if(B<1||O<1)return 1/0;var P=f.EDGECOST*(1/(B-1)+1/(O-1));P+=f.ANGLECOST*I*I;for(var N=y-z,U=R-F,X=y+z,te=R+F,ue=0;ue=w)&&(r<=m&&(r=m),i>=w&&(i=w),o=Math.floor((i-r)/a)+1,n=0),l=0;lm&&(p.unshift(m),v.unshift(v[0])),p[p.length-1]2?s.value=s.value.slice(2):s.length===0?s.value=[0,1]:s.length<2?(c=parseFloat(s.value[0]),s.value=[c,c+1]):s.value=[parseFloat(s.value[0]),parseFloat(s.value[1])]:h(s.value)&&(c=parseFloat(s.value),s.value=[c,c+1])):(n("contours.value",0),h(s.value)||(r(s.value)?s.value=parseFloat(s.value[0]):s.value=0))}}}),R5=He({"src/traces/contour/defaults.js"(Y,H){var h=Qr(),x=F1(),A=xv(),E=Zw(),e=$1(),t=K1(),r=dm(),i=pm();H.exports=function(o,n,s,c){function f(l,m){return h.coerce(o,n,i,l,m)}function p(l){return h.coerce2(o,n,i,l)}var v=x(o,n,f,c);if(!v){n.visible=!1;return}A(o,n,c,f),f("xhoverformat"),f("yhoverformat"),f("text"),f("hovertext"),f("hoverongaps"),f("hovertemplate");var T=f("contours.type")==="constraint";f("connectgaps",h.isArray1D(n.z)),T?E(o,n,f,c,s):(e(o,n,f,p),t(o,n,f,c)),n.contours&&n.contours.coloring==="heatmap"&&r(f,c),f("zorder")}}}),D5=He({"src/traces/contour/index.js"(Y,H){H.exports={attributes:pm(),supplyDefaults:R5(),calc:Uw(),plot:J1().plot,style:Q1(),colorbar:e_(),hoverPoints:Xw(),moduleType:"trace",name:"contour",basePlotModule:cf(),categories:["cartesian","svg","2dMap","contour","showLegend"],meta:{}}}}),z5=He({"lib/contour.js"(Y,H){H.exports=D5()}}),Yw=He({"src/traces/scatterternary/attributes.js"(Y,H){var h=us().hovertemplateAttrs,x=us().texttemplateAttrs,A=_v(),E=bc(),e=Ll(),t=eu(),r=Yf().dash,i=Po().extendFlat,a=E.marker,o=E.line,n=a.line;H.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:i({},E.mode,{dflt:"markers"}),text:i({},E.text,{}),texttemplate:x({editType:"plot"},{keys:["a","b","c","text"]}),hovertext:i({},E.hovertext,{}),line:{color:o.color,width:o.width,dash:r,backoff:o.backoff,shape:i({},o.shape,{values:["linear","spline"]}),smoothing:o.smoothing,editType:"calc"},connectgaps:E.connectgaps,cliponaxis:E.cliponaxis,fill:i({},E.fill,{values:["none","toself","tonext"],dflt:"none"}),fillcolor:A(),marker:i({symbol:a.symbol,opacity:a.opacity,angle:a.angle,angleref:a.angleref,standoff:a.standoff,maxdisplayed:a.maxdisplayed,size:a.size,sizeref:a.sizeref,sizemin:a.sizemin,sizemode:a.sizemode,line:i({width:n.width,editType:"calc"},t("marker.line")),gradient:a.gradient,editType:"calc"},t("marker")),textfont:E.textfont,textposition:E.textposition,selected:E.selected,unselected:E.unselected,hoverinfo:i({},e.hoverinfo,{flags:["a","b","c","text","name"]}),hoveron:E.hoveron,hovertemplate:h()}}}),F5=He({"src/traces/scatterternary/defaults.js"(Y,H){var h=Qr(),x=Uv(),A=cu(),E=Zh(),e=rv(),t=G0(),r=av(),i=bv(),a=Yw();H.exports=function(n,s,c,f){function p(M,_){return h.coerce(n,s,a,M,_)}var v=p("a"),T=p("b"),l=p("c"),m;if(v?(m=v.length,T?(m=Math.min(m,T.length),l&&(m=Math.min(m,l.length))):l?m=Math.min(m,l.length):m=0):T&&l&&(m=Math.min(T.length,l.length)),!m){s.visible=!1;return}s._length=m,p("sum"),p("text"),p("hovertext"),s.hoveron!=="fills"&&p("hovertemplate");var w=m"),i.hovertemplate=f.hovertemplate,r}}}),j5=He({"src/traces/scatterternary/event_data.js"(Y,H){H.exports=function(x,A,E,e,t){if(A.xa&&(x.xaxis=A.xa),A.ya&&(x.yaxis=A.ya),e[t]){var r=e[t];x.a=r.a,x.b=r.b,x.c=r.c}else x.a=A.a,x.b=A.b,x.c=A.c;return x}}}),V5=He({"src/plots/ternary/ternary.js"(Y,H){var h=yi(),x=Uf(),A=qi(),E=Qr(),e=E.strTranslate,t=E._,r=zi(),i=Io(),a=Nv(),o=Po().extendFlat,n=$u(),s=wo(),c=ph(),f=xc(),p=yv(),v=p.freeMode,T=p.rectMode,l=Ep(),m=Uc().prepSelect,w=Uc().selectOnClick,S=Uc().clearOutline,M=Uc().clearSelectionsCache,_=jf();function b(P,N){this.id=P.id,this.graphDiv=P.graphDiv,this.init(N),this.makeFramework(N),this.updateFx(N),this.aTickLayout=null,this.bTickLayout=null,this.cTickLayout=null}H.exports=b;var d=b.prototype;d.init=function(P){this.container=P._ternarylayer,this.defs=P._defs,this.layoutId=P._uid,this.traceHash={},this.layers={}},d.plot=function(P,N){var U=this,X=N[U.id],te=N._size;U._hasClipOnAxisFalse=!1;for(var ue=0;ueu*J?(fe=J,ae=fe*u):(ae=q,fe=ae/u),xe=ie*ae/q,Ae=le*fe/J,V=N.l+N.w*te-ae/2,re=N.t+N.h*(1-ue)-fe/2,U.x0=V,U.y0=re,U.w=ae,U.h=fe,U.sum=ee,U.xaxis={type:"linear",range:[Z+2*Q-ee,ee-Z-2*se],domain:[te-xe/2,te+xe/2],_id:"x"},a(U.xaxis,U.graphDiv._fullLayout),U.xaxis.setScale(),U.xaxis.isPtWithinRange=function(De){return De.a>=U.aaxis.range[0]&&De.a<=U.aaxis.range[1]&&De.b>=U.baxis.range[1]&&De.b<=U.baxis.range[0]&&De.c>=U.caxis.range[1]&&De.c<=U.caxis.range[0]},U.yaxis={type:"linear",range:[Z,ee-se-Q],domain:[ue-Ae/2,ue+Ae/2],_id:"y"},a(U.yaxis,U.graphDiv._fullLayout),U.yaxis.setScale(),U.yaxis.isPtWithinRange=function(){return!0};var Pe=U.yaxis.domain[0],Ce=U.aaxis=o({},P.aaxis,{range:[Z,ee-se-Q],side:"left",tickangle:(+P.aaxis.tickangle||0)-30,domain:[Pe,Pe+Ae*u],anchor:"free",position:0,_id:"y",_length:ae});a(Ce,U.graphDiv._fullLayout),Ce.setScale();var je=U.baxis=o({},P.baxis,{range:[ee-Z-Q,se],side:"bottom",domain:U.xaxis.domain,anchor:"free",position:0,_id:"x",_length:ae});a(je,U.graphDiv._fullLayout),je.setScale();var at=U.caxis=o({},P.caxis,{range:[ee-Z-se,Q],side:"right",tickangle:(+P.caxis.tickangle||0)+30,domain:[Pe,Pe+Ae*u],anchor:"free",position:0,_id:"y",_length:ae});a(at,U.graphDiv._fullLayout),at.setScale();var tt="M"+V+","+(re+fe)+"h"+ae+"l-"+ae/2+",-"+fe+"Z";U.clipDef.select("path").attr("d",tt),U.layers.plotbg.select("path").attr("d",tt);var Je="M0,"+fe+"h"+ae+"l-"+ae/2+",-"+fe+"Z";U.clipDefRelative.select("path").attr("d",Je);var Ze=e(V,re);U.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",Ze),U.clipDefRelative.select("path").attr("transform",null);var Me=e(V-je._offset,re+fe);U.layers.baxis.attr("transform",Me),U.layers.bgrid.attr("transform",Me);var we=e(V+ae/2,re)+"rotate(30)"+e(0,-Ce._offset);U.layers.aaxis.attr("transform",we),U.layers.agrid.attr("transform",we);var he=e(V+ae/2,re)+"rotate(-30)"+e(0,-at._offset);U.layers.caxis.attr("transform",he),U.layers.cgrid.attr("transform",he),U.drawAxes(!0),U.layers.aline.select("path").attr("d",Ce.showline?"M"+V+","+(re+fe)+"l"+ae/2+",-"+fe:"M0,0").call(r.stroke,Ce.linecolor||"#000").style("stroke-width",(Ce.linewidth||0)+"px"),U.layers.bline.select("path").attr("d",je.showline?"M"+V+","+(re+fe)+"h"+ae:"M0,0").call(r.stroke,je.linecolor||"#000").style("stroke-width",(je.linewidth||0)+"px"),U.layers.cline.select("path").attr("d",at.showline?"M"+(V+ae/2)+","+re+"l"+ae/2+","+fe:"M0,0").call(r.stroke,at.linecolor||"#000").style("stroke-width",(at.linewidth||0)+"px"),U.graphDiv._context.staticPlot||U.initInteractions(),i.setClipUrl(U.layers.frontplot,U._hasClipOnAxisFalse?null:U.clipId,U.graphDiv)},d.drawAxes=function(P){var N=this,U=N.graphDiv,X=N.id.substr(7)+"title",te=N.layers,ue=N.aaxis,ie=N.baxis,le=N.caxis;if(N.drawAx(ue),N.drawAx(ie),N.drawAx(le),P){var q=Math.max(ue.showticklabels?ue.tickfont.size/2:0,(le.showticklabels?le.tickfont.size*.75:0)+(le.ticks==="outside"?le.ticklen*.87:0)),J=(ie.showticklabels?ie.tickfont.size:0)+(ie.ticks==="outside"?ie.ticklen:0)+3;te["a-title"]=l.draw(U,"a"+X,{propContainer:ue,propName:N.id+".aaxis.title",placeholder:t(U,"Click to enter Component A title"),attributes:{x:N.x0+N.w/2,y:N.y0-ue.title.font.size/3-q,"text-anchor":"middle"}}),te["b-title"]=l.draw(U,"b"+X,{propContainer:ie,propName:N.id+".baxis.title",placeholder:t(U,"Click to enter Component B title"),attributes:{x:N.x0-J,y:N.y0+N.h+ie.title.font.size*.83+J,"text-anchor":"middle"}}),te["c-title"]=l.draw(U,"c"+X,{propContainer:le,propName:N.id+".caxis.title",placeholder:t(U,"Click to enter Component C title"),attributes:{x:N.x0+N.w+J,y:N.y0+N.h+le.title.font.size*.83+J,"text-anchor":"middle"}})}},d.drawAx=function(P){var N=this,U=N.graphDiv,X=P._name,te=X.charAt(0),ue=P._id,ie=N.layers[X],le=30,q=te+"tickLayout",J=g(P);N[q]!==J&&(ie.selectAll("."+ue+"tick").remove(),N[q]=J),P.setScale();var ee=s.calcTicks(P),Z=s.clipEnds(P,ee),se=s.makeTransTickFn(P),Q=s.getTickSigns(P)[2],V=E.deg2rad(le),re=Q*(P.linewidth||1)/2,ae=Q*P.ticklen,fe=N.w,xe=N.h,Ae=te==="b"?"M0,"+re+"l"+Math.sin(V)*ae+","+Math.cos(V)*ae:"M"+re+",0l"+Math.cos(V)*ae+","+-Math.sin(V)*ae,Pe={a:"M0,0l"+xe+",-"+fe/2,b:"M0,0l-"+fe/2+",-"+xe,c:"M0,0l-"+xe+","+fe/2}[te];s.drawTicks(U,P,{vals:P.ticks==="inside"?Z:ee,layer:ie,path:Ae,transFn:se,crisp:!1}),s.drawGrid(U,P,{vals:Z,layer:N.layers[te+"grid"],path:Pe,transFn:se,crisp:!1}),s.drawLabels(U,P,{vals:ee,layer:ie,transFn:se,labelFns:s.makeLabelFns(P,0,le)})};function g(P){return P.ticks+String(P.ticklen)+String(P.showticklabels)}var y=_.MINZOOM/2+.87,R="m-0.87,.5h"+y+"v3h-"+(y+5.2)+"l"+(y/2+2.6)+",-"+(y*.87+4.5)+"l2.6,1.5l-"+y/2+","+y*.87+"Z",I="m0.87,.5h-"+y+"v3h"+(y+5.2)+"l-"+(y/2+2.6)+",-"+(y*.87+4.5)+"l-2.6,1.5l"+y/2+","+y*.87+"Z",z="m0,1l"+y/2+","+y*.87+"l2.6,-1.5l-"+(y/2+2.6)+",-"+(y*.87+4.5)+"l-"+(y/2+2.6)+","+(y*.87+4.5)+"l2.6,1.5l"+y/2+",-"+y*.87+"Z",F="m0.5,0.5h5v-2h-5v-5h-2v5h-5v2h5v5h2Z",B=!0;d.clearOutline=function(){M(this.dragOptions),S(this.dragOptions.gd)},d.initInteractions=function(){var P=this,N=P.layers.plotbg.select("path").node(),U=P.graphDiv,X=U._fullLayout._zoomlayer,te,ue;this.dragOptions={element:N,gd:U,plotinfo:{id:P.id,domain:U._fullLayout[P.id].domain,xaxis:P.xaxis,yaxis:P.yaxis},subplot:P.id,prepFn:function(Me,we,he){P.dragOptions.xaxes=[P.xaxis],P.dragOptions.yaxes=[P.yaxis],te=U._fullLayout._invScaleX,ue=U._fullLayout._invScaleY;var De=P.dragOptions.dragmode=U._fullLayout.dragmode;v(De)?P.dragOptions.minDrag=1:P.dragOptions.minDrag=void 0,De==="zoom"?(P.dragOptions.moveFn=je,P.dragOptions.clickFn=fe,P.dragOptions.doneFn=at,xe(Me,we,he)):De==="pan"?(P.dragOptions.moveFn=Je,P.dragOptions.clickFn=fe,P.dragOptions.doneFn=Ze,tt(),P.clearOutline(U)):(T(De)||v(De))&&m(Me,we,he,P.dragOptions,De)}};var ie,le,q,J,ee,Z,se,Q,V,re;function ae(Me){var we={};return we[P.id+".aaxis.min"]=Me.a,we[P.id+".baxis.min"]=Me.b,we[P.id+".caxis.min"]=Me.c,we}function fe(Me,we){var he=U._fullLayout.clickmode;O(U),Me===2&&(U.emit("plotly_doubleclick",null),A.call("_guiRelayout",U,ae({a:0,b:0,c:0}))),he.indexOf("select")>-1&&Me===1&&w(we,U,[P.xaxis],[P.yaxis],P.id,P.dragOptions),he.indexOf("event")>-1&&f.click(U,we,P.id)}function xe(Me,we,he){var De=N.getBoundingClientRect();ie=we-De.left,le=he-De.top,U._fullLayout._calcInverseTransform(U);var et=U._fullLayout._invTransform,nt=E.apply3DTransform(et)(ie,le);ie=nt[0],le=nt[1],q={a:P.aaxis.range[0],b:P.baxis.range[1],c:P.caxis.range[1]},ee=q,J=P.aaxis.range[1]-q.a,Z=x(P.graphDiv._fullLayout[P.id].bgcolor).getLuminance(),se="M0,"+P.h+"L"+P.w/2+", 0L"+P.w+","+P.h+"Z",Q=!1,V=X.append("path").attr("class","zoombox").attr("transform",e(P.x0,P.y0)).style({fill:Z>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("d",se),re=X.append("path").attr("class","zoombox-corners").attr("transform",e(P.x0,P.y0)).style({fill:r.background,stroke:r.defaultLine,"stroke-width":1,opacity:0}).attr("d","M0,0Z"),P.clearOutline(U)}function Ae(Me,we){return 1-we/P.h}function Pe(Me,we){return 1-(Me+(P.h-we)/Math.sqrt(3))/P.w}function Ce(Me,we){return(Me-(P.h-we)/Math.sqrt(3))/P.w}function je(Me,we){var he=ie+Me*te,De=le+we*ue,et=Math.max(0,Math.min(1,Ae(ie,le),Ae(he,De))),nt=Math.max(0,Math.min(1,Pe(ie,le),Pe(he,De))),Ke=Math.max(0,Math.min(1,Ce(ie,le),Ce(he,De))),Et=(et/2+Ke)*P.w,kt=(1-et/2-nt)*P.w,Ut=(Et+kt)/2,Yt=kt-Et,vr=(1-et)*P.h,hr=vr-Yt/u;Yt<_.MINZOOM?(ee=q,V.attr("d",se),re.attr("d","M0,0Z")):(ee={a:q.a+et*J,b:q.b+nt*J,c:q.c+Ke*J},V.attr("d",se+"M"+Et+","+vr+"H"+kt+"L"+Ut+","+hr+"L"+Et+","+vr+"Z"),re.attr("d","M"+ie+","+le+F+"M"+Et+","+vr+R+"M"+kt+","+vr+I+"M"+Ut+","+hr+z)),Q||(V.transition().style("fill",Z>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),re.transition().style("opacity",1).duration(200),Q=!0),U.emit("plotly_relayouting",ae(ee))}function at(){O(U),ee!==q&&(A.call("_guiRelayout",U,ae(ee)),B&&U.data&&U._context.showTips&&(E.notifier(t(U,"Double-click to zoom back out"),"long"),B=!1))}function tt(){q={a:P.aaxis.range[0],b:P.baxis.range[1],c:P.caxis.range[1]},ee=q}function Je(Me,we){var he=Me/P.xaxis._m,De=we/P.yaxis._m;ee={a:q.a-De,b:q.b+(he+De)/2,c:q.c-(he-De)/2};var et=[ee.a,ee.b,ee.c].sort(E.sorterAsc),nt={a:et.indexOf(ee.a),b:et.indexOf(ee.b),c:et.indexOf(ee.c)};et[0]<0&&(et[1]+et[0]/2<0?(et[2]+=et[0]+et[1],et[0]=et[1]=0):(et[2]+=et[0]/2,et[1]+=et[0]/2,et[0]=0),ee={a:et[nt.a],b:et[nt.b],c:et[nt.c]},we=(q.a-ee.a)*P.yaxis._m,Me=(q.c-ee.c-q.b+ee.b)*P.xaxis._m);var Ke=e(P.x0+Me,P.y0+we);P.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",Ke);var Et=e(-Me,-we);P.clipDefRelative.select("path").attr("transform",Et),P.aaxis.range=[ee.a,P.sum-ee.b-ee.c],P.baxis.range=[P.sum-ee.a-ee.c,ee.b],P.caxis.range=[P.sum-ee.a-ee.b,ee.c],P.drawAxes(!1),P._hasClipOnAxisFalse&&P.plotContainer.select(".scatterlayer").selectAll(".trace").call(i.hideOutsideRangePoints,P),U.emit("plotly_relayouting",ae(ee))}function Ze(){A.call("_guiRelayout",U,ae(ee))}N.onmousemove=function(Me){f.hover(U,Me,P.id),U._fullLayout._lasthover=N,U._fullLayout._hoversubplot=P.id},N.onmouseout=function(Me){U._dragging||c.unhover(U,Me)},c.init(this.dragOptions)};function O(P){h.select(P).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}}}),$w=He({"src/plots/ternary/layout_attributes.js"(Y,H){var h=mf(),x=Ku().attributes,A=Kf(),E=Uu().overrideAll,e=Po().extendFlat,t={title:{text:A.title.text,font:A.title.font},color:A.color,tickmode:A.minor.tickmode,nticks:e({},A.nticks,{dflt:6,min:1}),tick0:A.tick0,dtick:A.dtick,tickvals:A.tickvals,ticktext:A.ticktext,ticks:A.ticks,ticklen:A.ticklen,tickwidth:A.tickwidth,tickcolor:A.tickcolor,ticklabelstep:A.ticklabelstep,showticklabels:A.showticklabels,labelalias:A.labelalias,showtickprefix:A.showtickprefix,tickprefix:A.tickprefix,showticksuffix:A.showticksuffix,ticksuffix:A.ticksuffix,showexponent:A.showexponent,exponentformat:A.exponentformat,minexponent:A.minexponent,separatethousands:A.separatethousands,tickfont:A.tickfont,tickangle:A.tickangle,tickformat:A.tickformat,tickformatstops:A.tickformatstops,hoverformat:A.hoverformat,showline:e({},A.showline,{dflt:!0}),linecolor:A.linecolor,linewidth:A.linewidth,showgrid:e({},A.showgrid,{dflt:!0}),gridcolor:A.gridcolor,gridwidth:A.gridwidth,griddash:A.griddash,layer:A.layer,min:{valType:"number",dflt:0,min:0}},r=H.exports=E({domain:x({name:"ternary"}),bgcolor:{valType:"color",dflt:h.background},sum:{valType:"number",dflt:1,min:0},aaxis:t,baxis:t,caxis:t},"plot","from-root");r.uirevision={valType:"any",editType:"none"},r.aaxis.uirevision=r.baxis.uirevision=r.caxis.uirevision={valType:"any",editType:"none"}}}),Yd=He({"src/plots/subplot_defaults.js"(Y,H){var h=Qr(),x=cl(),A=Ku().defaults;H.exports=function(e,t,r,i){var a=i.type,o=i.attributes,n=i.handleDefaults,s=i.partition||"x",c=t._subplots[a],f=c.length,p=f&&c[0].replace(/\d+$/,""),v,T;function l(M,_){return h.coerce(v,T,o,M,_)}for(var m=0;m=m&&(b.min=0,d.min=0,u.min=0,f.aaxis&&delete f.aaxis.min,f.baxis&&delete f.baxis.min,f.caxis&&delete f.caxis.min)}function c(f,p,v,T){var l=o[p._name];function m(g,y){return A.coerce(f,p,l,g,y)}m("uirevision",T.uirevision),p.type="linear";var w=m("color"),S=w!==l.color.dflt?w:v.font.color,M=p._name,_=M.charAt(0).toUpperCase(),b="Component "+_,d=m("title.text",b);p._hovertitle=d===b?d:_,A.coerceFont(m,"title.font",v.font,{overrideDflt:{size:A.bigFont(v.font.size),color:S}}),m("min"),i(f,p,m,"linear"),t(f,p,m,"linear"),e(f,p,m,"linear",{noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0}),r(f,p,m,{outerTicks:!0});var u=m("showticklabels");u&&(A.coerceFont(m,"tickfont",v.font,{overrideDflt:{color:S}}),m("tickangle"),m("tickformat")),a(f,p,m,{dfltColor:w,bgColor:v.bgColor,blend:60,showLine:!0,showGrid:!0,noZeroLine:!0,attributes:l}),m("hoverformat"),m("layer")}}}),G5=He({"src/plots/ternary/index.js"(Y){var H=V5(),h=$f().getSubplotCalcData,x=Qr().counterRegex,A="ternary";Y.name=A;var E=Y.attr="subplot";Y.idRoot=A,Y.idRegex=Y.attrRegex=x(A);var e=Y.attributes={};e[E]={valType:"subplotid",dflt:"ternary",editType:"calc"},Y.layoutAttributes=$w(),Y.supplyLayoutDefaults=q5(),Y.plot=function(r){for(var i=r._fullLayout,a=r.calcdata,o=i._subplots[A],n=0;n0){var M=r.xa,_=r.ya,b,d,u,g,y;f.orientation==="h"?(y=i,b="y",u=_,d="x",g=M):(y=a,b="x",u=M,d="y",g=_);var R=c[r.index];if(y>=R.span[0]&&y<=R.span[1]){var I=x.extendFlat({},r),z=g.c2p(y,!0),F=e.getKdeValue(R,f,y),B=e.getPositionOnKdePath(R,f,z),O=u._offset,P=u._length;I[b+"0"]=B[0],I[b+"1"]=B[1],I[d+"0"]=I[d+"1"]=z,I[d+"Label"]=d+": "+A.hoverLabelText(g,y,f[d+"hoverformat"])+", "+c[0].t.labels.kde+" "+F.toFixed(3);for(var N=0,U=0;U path").each(function(v){if(!v.isBlank){var T=p.marker;h.select(this).call(A.fill,v.mc||T.color).call(A.stroke,v.mlc||T.line.color).call(x.dashLine,T.line.dash,v.mlw||T.line.width).style("opacity",p.selectedpoints&&!v.selected?E:1)}}),r(f,p,a),f.selectAll(".regions").each(function(){h.select(this).selectAll("path").style("stroke-width",0).call(A.fill,p.connector.fillcolor)}),f.selectAll(".lines").each(function(){var v=p.connector.line;x.lineGroupStyle(h.select(this).selectAll("path"),v.width,v.color,v.dash)})})}H.exports={style:i}}}),uk=He({"src/traces/funnel/hover.js"(Y,H){var h=zi().opacity,x=Y0().hoverOnBars,A=Qr().formatPercent;H.exports=function(t,r,i,a,o){var n=x(t,r,i,a,o);if(n){var s=n.cd,c=s[0].trace,f=c.orientation==="h",p=n.index,v=s[p],T=f?"x":"y";n[T+"LabelVal"]=v.s,n.percentInitial=v.begR,n.percentInitialLabel=A(v.begR,1),n.percentPrevious=v.difR,n.percentPreviousLabel=A(v.difR,1),n.percentTotal=v.sumR,n.percentTotalLabel=A(v.sumR,1);var l=v.hi||c.hoverinfo,m=[];if(l&&l!=="none"&&l!=="skip"){var w=l==="all",S=l.split("+"),M=function(_){return w||S.indexOf(_)!==-1};M("percent initial")&&m.push(n.percentInitialLabel+" of initial"),M("percent previous")&&m.push(n.percentPreviousLabel+" of previous"),M("percent total")&&m.push(n.percentTotalLabel+" of total")}return n.extraText=m.join("
"),n.color=E(c,v),[n]}};function E(e,t){var r=e.marker,i=t.mc||r.color,a=t.mlc||r.line.color,o=t.mlw||r.line.width;if(h(i))return i;if(h(a)&&o)return a}}}),ck=He({"src/traces/funnel/event_data.js"(Y,H){H.exports=function(x,A){return x.x="xVal"in A?A.xVal:A.x,x.y="yVal"in A?A.yVal:A.y,"percentInitial"in A&&(x.percentInitial=A.percentInitial),"percentPrevious"in A&&(x.percentPrevious=A.percentPrevious),"percentTotal"in A&&(x.percentTotal=A.percentTotal),A.xa&&(x.xaxis=A.xa),A.ya&&(x.yaxis=A.ya),x}}}),fk=He({"src/traces/funnel/index.js"(Y,H){H.exports={attributes:Qw(),layoutAttributes:e2(),supplyDefaults:t2().supplyDefaults,crossTraceDefaults:t2().crossTraceDefaults,supplyLayoutDefaults:ak(),calc:ik(),crossTraceCalc:ok(),plot:sk(),style:lk().style,hoverPoints:uk(),eventData:ck(),selectPoints:$0(),moduleType:"trace",name:"funnel",basePlotModule:cf(),categories:["bar-like","cartesian","svg","oriented","showLegend","zoomScale"],meta:{}}}}),hk=He({"lib/funnel.js"(Y,H){H.exports=fk()}}),vk=He({"src/traces/waterfall/constants.js"(Y,H){H.exports={eventDataKeys:["initial","delta","final"]}}}),r2=He({"src/traces/waterfall/attributes.js"(Y,H){var h=Vv(),x=bc().line,A=Ll(),E=_c().axisHoverFormat,e=us().hovertemplateAttrs,t=us().texttemplateAttrs,r=vk(),i=Po().extendFlat,a=zi();function o(n){return{marker:{color:i({},h.marker.color,{arrayOk:!1,editType:"style"}),line:{color:i({},h.marker.line.color,{arrayOk:!1,editType:"style"}),width:i({},h.marker.line.width,{arrayOk:!1,editType:"style"}),editType:"style"},editType:"style"},editType:"style"}}H.exports={measure:{valType:"data_array",dflt:[],editType:"calc"},base:{valType:"number",dflt:null,arrayOk:!1,editType:"calc"},x:h.x,x0:h.x0,dx:h.dx,y:h.y,y0:h.y0,dy:h.dy,xperiod:h.xperiod,yperiod:h.yperiod,xperiod0:h.xperiod0,yperiod0:h.yperiod0,xperiodalignment:h.xperiodalignment,yperiodalignment:h.yperiodalignment,xhoverformat:E("x"),yhoverformat:E("y"),hovertext:h.hovertext,hovertemplate:e({},{keys:r.eventDataKeys}),hoverinfo:i({},A.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:t({editType:"plot"},{keys:r.eventDataKeys.concat(["label"])}),text:h.text,textposition:h.textposition,insidetextanchor:h.insidetextanchor,textangle:h.textangle,textfont:h.textfont,insidetextfont:h.insidetextfont,outsidetextfont:h.outsidetextfont,constraintext:h.constraintext,cliponaxis:h.cliponaxis,orientation:h.orientation,offset:h.offset,width:h.width,increasing:o(),decreasing:o(),totals:o(),connector:{line:{color:i({},x.color,{dflt:a.defaultLine}),width:i({},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:h.offsetgroup,alignmentgroup:h.alignmentgroup,zorder:h.zorder}}}),a2=He({"src/traces/waterfall/layout_attributes.js"(Y,H){H.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"}}}}),J0=He({"src/constants/delta.js"(Y,H){H.exports={INCREASING:{COLOR:"#3D9970",SYMBOL:"▲"},DECREASING:{COLOR:"#FF4136",SYMBOL:"▼"}}}}),n2=He({"src/traces/waterfall/defaults.js"(Y,H){var h=Qr(),x=Lp(),A=Yh().handleText,E=q0(),e=xv(),t=r2(),r=zi(),i=J0(),a=i.INCREASING.COLOR,o=i.DECREASING.COLOR,n="#4499FF";function s(p,v,T){p(v+".marker.color",T),p(v+".marker.line.color",r.defaultLine),p(v+".marker.line.width")}function c(p,v,T,l){function m(b,d){return h.coerce(p,v,t,b,d)}var w=E(p,v,l,m);if(!w){v.visible=!1;return}e(p,v,l,m),m("xhoverformat"),m("yhoverformat"),m("measure"),m("orientation",v.x&&!v.y?"h":"v"),m("base"),m("offset"),m("width"),m("text"),m("hovertext"),m("hovertemplate");var S=m("textposition");A(p,v,l,m,S,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),v.textposition!=="none"&&(m("texttemplate"),v.texttemplate||m("textinfo")),s(m,"increasing",a),s(m,"decreasing",o),s(m,"totals",n);var M=m("connector.visible");if(M){m("connector.mode");var _=m("connector.line.width");_&&(m("connector.line.color"),m("connector.line.dash"))}m("zorder")}function f(p,v){var T,l;function m(S){return h.coerce(l._input,l,t,S)}if(v.waterfallmode==="group")for(var w=0;w0&&(m?y+="M"+u[0]+","+g[1]+"V"+g[0]:y+="M"+u[1]+","+g[0]+"H"+u[0]),w!=="between"&&(_.isSum||b path").each(function(v){if(!v.isBlank){var T=p[v.dir].marker;h.select(this).call(A.fill,T.color).call(A.stroke,T.line.color).call(x.dashLine,T.line.dash,T.line.width).style("opacity",p.selectedpoints&&!v.selected?E:1)}}),r(f,p,a),f.selectAll(".lines").each(function(){var v=p.connector.line;x.lineGroupStyle(h.select(this).selectAll("path"),v.width,v.color,v.dash)})})}H.exports={style:i}}}),_k=He({"src/traces/waterfall/hover.js"(Y,H){var h=wo().hoverLabelText,x=zi().opacity,A=Y0().hoverOnBars,E=J0(),e={increasing:E.INCREASING.SYMBOL,decreasing:E.DECREASING.SYMBOL};H.exports=function(i,a,o,n,s){var c=A(i,a,o,n,s);if(!c)return;var f=c.cd,p=f[0].trace,v=p.orientation==="h",T=v?"x":"y",l=v?i.xa:i.ya;function m(R){return h(l,R,p[T+"hoverformat"])}var w=c.index,S=f[w],M=S.isSum?S.b+S.s:S.rawS;c.initial=S.b+S.s-M,c.delta=M,c.final=c.initial+c.delta;var _=m(Math.abs(c.delta));c.deltaLabel=M<0?"("+_+")":_,c.finalLabel=m(c.final),c.initialLabel=m(c.initial);var b=S.hi||p.hoverinfo,d=[];if(b&&b!=="none"&&b!=="skip"){var u=b==="all",g=b.split("+"),y=function(R){return u||g.indexOf(R)!==-1};S.isSum||(y("final")&&(v?!y("x"):!y("y"))&&d.push(c.finalLabel),y("delta")&&(M<0?d.push(c.deltaLabel+" "+e.decreasing):d.push(c.deltaLabel+" "+e.increasing)),y("initial")&&d.push("Initial: "+c.initialLabel))}return d.length&&(c.extraText=d.join("
")),c.color=t(p,S),[c]};function t(r,i){var a=r[i.dir].marker,o=a.color,n=a.line.color,s=a.line.width;if(x(o))return o;if(x(n)&&s)return n}}}),xk=He({"src/traces/waterfall/event_data.js"(Y,H){H.exports=function(x,A){return x.x="xVal"in A?A.xVal:A.x,x.y="yVal"in A?A.yVal:A.y,"initial"in A&&(x.initial=A.initial),"delta"in A&&(x.delta=A.delta),"final"in A&&(x.final=A.final),A.xa&&(x.xaxis=A.xa),A.ya&&(x.yaxis=A.ya),x}}}),bk=He({"src/traces/waterfall/index.js"(Y,H){H.exports={attributes:r2(),layoutAttributes:a2(),supplyDefaults:n2().supplyDefaults,crossTraceDefaults:n2().crossTraceDefaults,supplyLayoutDefaults:dk(),calc:pk(),crossTraceCalc:gk(),plot:mk(),style:yk().style,hoverPoints:_k(),eventData:xk(),selectPoints:$0(),moduleType:"trace",name:"waterfall",basePlotModule:cf(),categories:["bar-like","cartesian","svg","oriented","showLegend","zoomScale"],meta:{}}}}),wk=He({"lib/waterfall.js"(Y,H){H.exports=bk()}}),Q0=He({"src/traces/image/constants.js"(Y,H){H.exports={colormodel:{rgb:{min:[0,0,0],max:[255,255,255],fmt:function(h){return h.slice(0,3)},suffix:["","",""]},rgba:{min:[0,0,0,0],max:[255,255,255,1],fmt:function(h){return h.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:function(h){return h.slice(0,4)},suffix:["","","",""]},hsl:{min:[0,0,0],max:[360,100,100],fmt:function(h){var x=h.slice(0,3);return x[1]=x[1]+"%",x[2]=x[2]+"%",x},suffix:["°","%","%"]},hsla:{min:[0,0,0,0],max:[360,100,100,1],fmt:function(h){var x=h.slice(0,4);return x[1]=x[1]+"%",x[2]=x[2]+"%",x},suffix:["°","%","%",""]}}}}}),i2=He({"src/traces/image/attributes.js"(Y,H){var h=Ll(),x=bc().zorder,A=us().hovertemplateAttrs,E=Po().extendFlat,e=Q0().colormodel,t=["rgb","rgba","rgba256","hsl","hsla"],r=[],i=[];for(o=0;o0)throw new Error("Invalid string. Length must be a multiple of 4");var p=c.indexOf("=");p===-1&&(p=f);var v=p===f?0:4-p%4;return[p,v]}function r(c){var f=t(c),p=f[0],v=f[1];return(p+v)*3/4-v}function i(c,f,p){return(f+p)*3/4-p}function a(c){var f,p=t(c),v=p[0],T=p[1],l=new x(i(c,v,T)),m=0,w=T>0?v-4:v,S;for(S=0;S>16&255,l[m++]=f>>8&255,l[m++]=f&255;return T===2&&(f=h[c.charCodeAt(S)]<<2|h[c.charCodeAt(S+1)]>>4,l[m++]=f&255),T===1&&(f=h[c.charCodeAt(S)]<<10|h[c.charCodeAt(S+1)]<<4|h[c.charCodeAt(S+2)]>>2,l[m++]=f>>8&255,l[m++]=f&255),l}function o(c){return H[c>>18&63]+H[c>>12&63]+H[c>>6&63]+H[c&63]}function n(c,f,p){for(var v,T=[],l=f;lw?w:m+l));return v===1?(f=c[p-1],T.push(H[f>>2]+H[f<<4&63]+"==")):v===2&&(f=(c[p-2]<<8)+c[p-1],T.push(H[f>>10]+H[f>>4&63]+H[f<<2&63]+"=")),T.join("")}}}),Sk=He({"node_modules/ieee754/index.js"(Y){Y.read=function(H,h,x,A,E){var e,t,r=E*8-A-1,i=(1<>1,o=-7,n=x?E-1:0,s=x?-1:1,c=H[h+n];for(n+=s,e=c&(1<<-o)-1,c>>=-o,o+=r;o>0;e=e*256+H[h+n],n+=s,o-=8);for(t=e&(1<<-o)-1,e>>=-o,o+=A;o>0;t=t*256+H[h+n],n+=s,o-=8);if(e===0)e=1-a;else{if(e===i)return t?NaN:(c?-1:1)*(1/0);t=t+Math.pow(2,A),e=e-a}return(c?-1:1)*t*Math.pow(2,e-A)},Y.write=function(H,h,x,A,E,e){var t,r,i,a=e*8-E-1,o=(1<>1,s=E===23?Math.pow(2,-24)-Math.pow(2,-77):0,c=A?0:e-1,f=A?1:-1,p=h<0||h===0&&1/h<0?1:0;for(h=Math.abs(h),isNaN(h)||h===1/0?(r=isNaN(h)?1:0,t=o):(t=Math.floor(Math.log(h)/Math.LN2),h*(i=Math.pow(2,-t))<1&&(t--,i*=2),t+n>=1?h+=s/i:h+=s*Math.pow(2,1-n),h*i>=2&&(t++,i/=2),t+n>=o?(r=0,t=o):t+n>=1?(r=(h*i-1)*Math.pow(2,E),t=t+n):(r=h*Math.pow(2,n-1)*Math.pow(2,E),t=0));E>=8;H[x+c]=r&255,c+=f,r/=256,E-=8);for(t=t<0;H[x+c]=t&255,c+=f,t/=256,a-=8);H[x+c-f]|=p*128}}}),Dp=He({"node_modules/buffer/index.js"(Y){var H=Ak(),h=Sk(),x=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Y.Buffer=t,Y.SlowBuffer=T,Y.INSPECT_MAX_BYTES=50;var A=2147483647;Y.kMaxLength=A,t.TYPED_ARRAY_SUPPORT=E(),!t.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function E(){try{const Me=new Uint8Array(1),we={foo:function(){return 42}};return Object.setPrototypeOf(we,Uint8Array.prototype),Object.setPrototypeOf(Me,we),Me.foo()===42}catch{return!1}}Object.defineProperty(t.prototype,"parent",{enumerable:!0,get:function(){if(t.isBuffer(this))return this.buffer}}),Object.defineProperty(t.prototype,"offset",{enumerable:!0,get:function(){if(t.isBuffer(this))return this.byteOffset}});function e(Me){if(Me>A)throw new RangeError('The value "'+Me+'" is invalid for option "size"');const we=new Uint8Array(Me);return Object.setPrototypeOf(we,t.prototype),we}function t(Me,we,he){if(typeof Me=="number"){if(typeof we=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return o(Me)}return r(Me,we,he)}t.poolSize=8192;function r(Me,we,he){if(typeof Me=="string")return n(Me,we);if(ArrayBuffer.isView(Me))return c(Me);if(Me==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Me);if(je(Me,ArrayBuffer)||Me&&je(Me.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(je(Me,SharedArrayBuffer)||Me&&je(Me.buffer,SharedArrayBuffer)))return f(Me,we,he);if(typeof Me=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const De=Me.valueOf&&Me.valueOf();if(De!=null&&De!==Me)return t.from(De,we,he);const et=p(Me);if(et)return et;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof Me[Symbol.toPrimitive]=="function")return t.from(Me[Symbol.toPrimitive]("string"),we,he);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Me)}t.from=function(Me,we,he){return r(Me,we,he)},Object.setPrototypeOf(t.prototype,Uint8Array.prototype),Object.setPrototypeOf(t,Uint8Array);function i(Me){if(typeof Me!="number")throw new TypeError('"size" argument must be of type number');if(Me<0)throw new RangeError('The value "'+Me+'" is invalid for option "size"')}function a(Me,we,he){return i(Me),Me<=0?e(Me):we!==void 0?typeof he=="string"?e(Me).fill(we,he):e(Me).fill(we):e(Me)}t.alloc=function(Me,we,he){return a(Me,we,he)};function o(Me){return i(Me),e(Me<0?0:v(Me)|0)}t.allocUnsafe=function(Me){return o(Me)},t.allocUnsafeSlow=function(Me){return o(Me)};function n(Me,we){if((typeof we!="string"||we==="")&&(we="utf8"),!t.isEncoding(we))throw new TypeError("Unknown encoding: "+we);const he=l(Me,we)|0;let De=e(he);const et=De.write(Me,we);return et!==he&&(De=De.slice(0,et)),De}function s(Me){const we=Me.length<0?0:v(Me.length)|0,he=e(we);for(let De=0;De=A)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+A.toString(16)+" bytes");return Me|0}function T(Me){return+Me!=Me&&(Me=0),t.alloc(+Me)}t.isBuffer=function(we){return we!=null&&we._isBuffer===!0&&we!==t.prototype},t.compare=function(we,he){if(je(we,Uint8Array)&&(we=t.from(we,we.offset,we.byteLength)),je(he,Uint8Array)&&(he=t.from(he,he.offset,he.byteLength)),!t.isBuffer(we)||!t.isBuffer(he))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(we===he)return 0;let De=we.length,et=he.length;for(let nt=0,Ke=Math.min(De,et);ntet.length?(t.isBuffer(Ke)||(Ke=t.from(Ke)),Ke.copy(et,nt)):Uint8Array.prototype.set.call(et,Ke,nt);else if(t.isBuffer(Ke))Ke.copy(et,nt);else throw new TypeError('"list" argument must be an Array of Buffers');nt+=Ke.length}return et};function l(Me,we){if(t.isBuffer(Me))return Me.length;if(ArrayBuffer.isView(Me)||je(Me,ArrayBuffer))return Me.byteLength;if(typeof Me!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof Me);const he=Me.length,De=arguments.length>2&&arguments[2]===!0;if(!De&&he===0)return 0;let et=!1;for(;;)switch(we){case"ascii":case"latin1":case"binary":return he;case"utf8":case"utf-8":return fe(Me).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return he*2;case"hex":return he>>>1;case"base64":return Pe(Me).length;default:if(et)return De?-1:fe(Me).length;we=(""+we).toLowerCase(),et=!0}}t.byteLength=l;function m(Me,we,he){let De=!1;if((we===void 0||we<0)&&(we=0),we>this.length||((he===void 0||he>this.length)&&(he=this.length),he<=0)||(he>>>=0,we>>>=0,he<=we))return"";for(Me||(Me="utf8");;)switch(Me){case"hex":return O(this,we,he);case"utf8":case"utf-8":return R(this,we,he);case"ascii":return F(this,we,he);case"latin1":case"binary":return B(this,we,he);case"base64":return y(this,we,he);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,we,he);default:if(De)throw new TypeError("Unknown encoding: "+Me);Me=(Me+"").toLowerCase(),De=!0}}t.prototype._isBuffer=!0;function w(Me,we,he){const De=Me[we];Me[we]=Me[he],Me[he]=De}t.prototype.swap16=function(){const we=this.length;if(we%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let he=0;hehe&&(we+=" ... "),""},x&&(t.prototype[x]=t.prototype.inspect),t.prototype.compare=function(we,he,De,et,nt){if(je(we,Uint8Array)&&(we=t.from(we,we.offset,we.byteLength)),!t.isBuffer(we))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof we);if(he===void 0&&(he=0),De===void 0&&(De=we?we.length:0),et===void 0&&(et=0),nt===void 0&&(nt=this.length),he<0||De>we.length||et<0||nt>this.length)throw new RangeError("out of range index");if(et>=nt&&he>=De)return 0;if(et>=nt)return-1;if(he>=De)return 1;if(he>>>=0,De>>>=0,et>>>=0,nt>>>=0,this===we)return 0;let Ke=nt-et,Et=De-he;const kt=Math.min(Ke,Et),Ut=this.slice(et,nt),Yt=we.slice(he,De);for(let vr=0;vr2147483647?he=2147483647:he<-2147483648&&(he=-2147483648),he=+he,at(he)&&(he=et?0:Me.length-1),he<0&&(he=Me.length+he),he>=Me.length){if(et)return-1;he=Me.length-1}else if(he<0)if(et)he=0;else return-1;if(typeof we=="string"&&(we=t.from(we,De)),t.isBuffer(we))return we.length===0?-1:M(Me,we,he,De,et);if(typeof we=="number")return we=we&255,typeof Uint8Array.prototype.indexOf=="function"?et?Uint8Array.prototype.indexOf.call(Me,we,he):Uint8Array.prototype.lastIndexOf.call(Me,we,he):M(Me,[we],he,De,et);throw new TypeError("val must be string, number or Buffer")}function M(Me,we,he,De,et){let nt=1,Ke=Me.length,Et=we.length;if(De!==void 0&&(De=String(De).toLowerCase(),De==="ucs2"||De==="ucs-2"||De==="utf16le"||De==="utf-16le")){if(Me.length<2||we.length<2)return-1;nt=2,Ke/=2,Et/=2,he/=2}function kt(Yt,vr){return nt===1?Yt[vr]:Yt.readUInt16BE(vr*nt)}let Ut;if(et){let Yt=-1;for(Ut=he;UtKe&&(he=Ke-Et),Ut=he;Ut>=0;Ut--){let Yt=!0;for(let vr=0;vret&&(De=et)):De=et;const nt=we.length;De>nt/2&&(De=nt/2);let Ke;for(Ke=0;Ke>>0,isFinite(De)?(De=De>>>0,et===void 0&&(et="utf8")):(et=De,De=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const nt=this.length-he;if((De===void 0||De>nt)&&(De=nt),we.length>0&&(De<0||he<0)||he>this.length)throw new RangeError("Attempt to write outside buffer bounds");et||(et="utf8");let Ke=!1;for(;;)switch(et){case"hex":return _(this,we,he,De);case"utf8":case"utf-8":return b(this,we,he,De);case"ascii":case"latin1":case"binary":return d(this,we,he,De);case"base64":return u(this,we,he,De);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return g(this,we,he,De);default:if(Ke)throw new TypeError("Unknown encoding: "+et);et=(""+et).toLowerCase(),Ke=!0}},t.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function y(Me,we,he){return we===0&&he===Me.length?H.fromByteArray(Me):H.fromByteArray(Me.slice(we,he))}function R(Me,we,he){he=Math.min(Me.length,he);const De=[];let et=we;for(;et239?4:nt>223?3:nt>191?2:1;if(et+Et<=he){let kt,Ut,Yt,vr;switch(Et){case 1:nt<128&&(Ke=nt);break;case 2:kt=Me[et+1],(kt&192)===128&&(vr=(nt&31)<<6|kt&63,vr>127&&(Ke=vr));break;case 3:kt=Me[et+1],Ut=Me[et+2],(kt&192)===128&&(Ut&192)===128&&(vr=(nt&15)<<12|(kt&63)<<6|Ut&63,vr>2047&&(vr<55296||vr>57343)&&(Ke=vr));break;case 4:kt=Me[et+1],Ut=Me[et+2],Yt=Me[et+3],(kt&192)===128&&(Ut&192)===128&&(Yt&192)===128&&(vr=(nt&15)<<18|(kt&63)<<12|(Ut&63)<<6|Yt&63,vr>65535&&vr<1114112&&(Ke=vr))}}Ke===null?(Ke=65533,Et=1):Ke>65535&&(Ke-=65536,De.push(Ke>>>10&1023|55296),Ke=56320|Ke&1023),De.push(Ke),et+=Et}return z(De)}var I=4096;function z(Me){const we=Me.length;if(we<=I)return String.fromCharCode.apply(String,Me);let he="",De=0;for(;DeDe)&&(he=De);let et="";for(let nt=we;ntDe&&(we=De),he<0?(he+=De,he<0&&(he=0)):he>De&&(he=De),hehe)throw new RangeError("Trying to access beyond buffer length")}t.prototype.readUintLE=t.prototype.readUIntLE=function(we,he,De){we=we>>>0,he=he>>>0,De||N(we,he,this.length);let et=this[we],nt=1,Ke=0;for(;++Ke>>0,he=he>>>0,De||N(we,he,this.length);let et=this[we+--he],nt=1;for(;he>0&&(nt*=256);)et+=this[we+--he]*nt;return et},t.prototype.readUint8=t.prototype.readUInt8=function(we,he){return we=we>>>0,he||N(we,1,this.length),this[we]},t.prototype.readUint16LE=t.prototype.readUInt16LE=function(we,he){return we=we>>>0,he||N(we,2,this.length),this[we]|this[we+1]<<8},t.prototype.readUint16BE=t.prototype.readUInt16BE=function(we,he){return we=we>>>0,he||N(we,2,this.length),this[we]<<8|this[we+1]},t.prototype.readUint32LE=t.prototype.readUInt32LE=function(we,he){return we=we>>>0,he||N(we,4,this.length),(this[we]|this[we+1]<<8|this[we+2]<<16)+this[we+3]*16777216},t.prototype.readUint32BE=t.prototype.readUInt32BE=function(we,he){return we=we>>>0,he||N(we,4,this.length),this[we]*16777216+(this[we+1]<<16|this[we+2]<<8|this[we+3])},t.prototype.readBigUInt64LE=Je(function(we){we=we>>>0,Q(we,"offset");const he=this[we],De=this[we+7];(he===void 0||De===void 0)&&V(we,this.length-8);const et=he+this[++we]*2**8+this[++we]*2**16+this[++we]*2**24,nt=this[++we]+this[++we]*2**8+this[++we]*2**16+De*2**24;return BigInt(et)+(BigInt(nt)<>>0,Q(we,"offset");const he=this[we],De=this[we+7];(he===void 0||De===void 0)&&V(we,this.length-8);const et=he*2**24+this[++we]*2**16+this[++we]*2**8+this[++we],nt=this[++we]*2**24+this[++we]*2**16+this[++we]*2**8+De;return(BigInt(et)<>>0,he=he>>>0,De||N(we,he,this.length);let et=this[we],nt=1,Ke=0;for(;++Ke=nt&&(et-=Math.pow(2,8*he)),et},t.prototype.readIntBE=function(we,he,De){we=we>>>0,he=he>>>0,De||N(we,he,this.length);let et=he,nt=1,Ke=this[we+--et];for(;et>0&&(nt*=256);)Ke+=this[we+--et]*nt;return nt*=128,Ke>=nt&&(Ke-=Math.pow(2,8*he)),Ke},t.prototype.readInt8=function(we,he){return we=we>>>0,he||N(we,1,this.length),this[we]&128?(255-this[we]+1)*-1:this[we]},t.prototype.readInt16LE=function(we,he){we=we>>>0,he||N(we,2,this.length);const De=this[we]|this[we+1]<<8;return De&32768?De|4294901760:De},t.prototype.readInt16BE=function(we,he){we=we>>>0,he||N(we,2,this.length);const De=this[we+1]|this[we]<<8;return De&32768?De|4294901760:De},t.prototype.readInt32LE=function(we,he){return we=we>>>0,he||N(we,4,this.length),this[we]|this[we+1]<<8|this[we+2]<<16|this[we+3]<<24},t.prototype.readInt32BE=function(we,he){return we=we>>>0,he||N(we,4,this.length),this[we]<<24|this[we+1]<<16|this[we+2]<<8|this[we+3]},t.prototype.readBigInt64LE=Je(function(we){we=we>>>0,Q(we,"offset");const he=this[we],De=this[we+7];(he===void 0||De===void 0)&&V(we,this.length-8);const et=this[we+4]+this[we+5]*2**8+this[we+6]*2**16+(De<<24);return(BigInt(et)<>>0,Q(we,"offset");const he=this[we],De=this[we+7];(he===void 0||De===void 0)&&V(we,this.length-8);const et=(he<<24)+this[++we]*2**16+this[++we]*2**8+this[++we];return(BigInt(et)<>>0,he||N(we,4,this.length),h.read(this,we,!0,23,4)},t.prototype.readFloatBE=function(we,he){return we=we>>>0,he||N(we,4,this.length),h.read(this,we,!1,23,4)},t.prototype.readDoubleLE=function(we,he){return we=we>>>0,he||N(we,8,this.length),h.read(this,we,!0,52,8)},t.prototype.readDoubleBE=function(we,he){return we=we>>>0,he||N(we,8,this.length),h.read(this,we,!1,52,8)};function U(Me,we,he,De,et,nt){if(!t.isBuffer(Me))throw new TypeError('"buffer" argument must be a Buffer instance');if(we>et||weMe.length)throw new RangeError("Index out of range")}t.prototype.writeUintLE=t.prototype.writeUIntLE=function(we,he,De,et){if(we=+we,he=he>>>0,De=De>>>0,!et){const Et=Math.pow(2,8*De)-1;U(this,we,he,De,Et,0)}let nt=1,Ke=0;for(this[he]=we&255;++Ke>>0,De=De>>>0,!et){const Et=Math.pow(2,8*De)-1;U(this,we,he,De,Et,0)}let nt=De-1,Ke=1;for(this[he+nt]=we&255;--nt>=0&&(Ke*=256);)this[he+nt]=we/Ke&255;return he+De},t.prototype.writeUint8=t.prototype.writeUInt8=function(we,he,De){return we=+we,he=he>>>0,De||U(this,we,he,1,255,0),this[he]=we&255,he+1},t.prototype.writeUint16LE=t.prototype.writeUInt16LE=function(we,he,De){return we=+we,he=he>>>0,De||U(this,we,he,2,65535,0),this[he]=we&255,this[he+1]=we>>>8,he+2},t.prototype.writeUint16BE=t.prototype.writeUInt16BE=function(we,he,De){return we=+we,he=he>>>0,De||U(this,we,he,2,65535,0),this[he]=we>>>8,this[he+1]=we&255,he+2},t.prototype.writeUint32LE=t.prototype.writeUInt32LE=function(we,he,De){return we=+we,he=he>>>0,De||U(this,we,he,4,4294967295,0),this[he+3]=we>>>24,this[he+2]=we>>>16,this[he+1]=we>>>8,this[he]=we&255,he+4},t.prototype.writeUint32BE=t.prototype.writeUInt32BE=function(we,he,De){return we=+we,he=he>>>0,De||U(this,we,he,4,4294967295,0),this[he]=we>>>24,this[he+1]=we>>>16,this[he+2]=we>>>8,this[he+3]=we&255,he+4};function X(Me,we,he,De,et){se(we,De,et,Me,he,7);let nt=Number(we&BigInt(4294967295));Me[he++]=nt,nt=nt>>8,Me[he++]=nt,nt=nt>>8,Me[he++]=nt,nt=nt>>8,Me[he++]=nt;let Ke=Number(we>>BigInt(32)&BigInt(4294967295));return Me[he++]=Ke,Ke=Ke>>8,Me[he++]=Ke,Ke=Ke>>8,Me[he++]=Ke,Ke=Ke>>8,Me[he++]=Ke,he}function te(Me,we,he,De,et){se(we,De,et,Me,he,7);let nt=Number(we&BigInt(4294967295));Me[he+7]=nt,nt=nt>>8,Me[he+6]=nt,nt=nt>>8,Me[he+5]=nt,nt=nt>>8,Me[he+4]=nt;let Ke=Number(we>>BigInt(32)&BigInt(4294967295));return Me[he+3]=Ke,Ke=Ke>>8,Me[he+2]=Ke,Ke=Ke>>8,Me[he+1]=Ke,Ke=Ke>>8,Me[he]=Ke,he+8}t.prototype.writeBigUInt64LE=Je(function(we,he=0){return X(this,we,he,BigInt(0),BigInt("0xffffffffffffffff"))}),t.prototype.writeBigUInt64BE=Je(function(we,he=0){return te(this,we,he,BigInt(0),BigInt("0xffffffffffffffff"))}),t.prototype.writeIntLE=function(we,he,De,et){if(we=+we,he=he>>>0,!et){const kt=Math.pow(2,8*De-1);U(this,we,he,De,kt-1,-kt)}let nt=0,Ke=1,Et=0;for(this[he]=we&255;++nt>0)-Et&255;return he+De},t.prototype.writeIntBE=function(we,he,De,et){if(we=+we,he=he>>>0,!et){const kt=Math.pow(2,8*De-1);U(this,we,he,De,kt-1,-kt)}let nt=De-1,Ke=1,Et=0;for(this[he+nt]=we&255;--nt>=0&&(Ke*=256);)we<0&&Et===0&&this[he+nt+1]!==0&&(Et=1),this[he+nt]=(we/Ke>>0)-Et&255;return he+De},t.prototype.writeInt8=function(we,he,De){return we=+we,he=he>>>0,De||U(this,we,he,1,127,-128),we<0&&(we=255+we+1),this[he]=we&255,he+1},t.prototype.writeInt16LE=function(we,he,De){return we=+we,he=he>>>0,De||U(this,we,he,2,32767,-32768),this[he]=we&255,this[he+1]=we>>>8,he+2},t.prototype.writeInt16BE=function(we,he,De){return we=+we,he=he>>>0,De||U(this,we,he,2,32767,-32768),this[he]=we>>>8,this[he+1]=we&255,he+2},t.prototype.writeInt32LE=function(we,he,De){return we=+we,he=he>>>0,De||U(this,we,he,4,2147483647,-2147483648),this[he]=we&255,this[he+1]=we>>>8,this[he+2]=we>>>16,this[he+3]=we>>>24,he+4},t.prototype.writeInt32BE=function(we,he,De){return we=+we,he=he>>>0,De||U(this,we,he,4,2147483647,-2147483648),we<0&&(we=4294967295+we+1),this[he]=we>>>24,this[he+1]=we>>>16,this[he+2]=we>>>8,this[he+3]=we&255,he+4},t.prototype.writeBigInt64LE=Je(function(we,he=0){return X(this,we,he,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),t.prototype.writeBigInt64BE=Je(function(we,he=0){return te(this,we,he,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function ue(Me,we,he,De,et,nt){if(he+De>Me.length)throw new RangeError("Index out of range");if(he<0)throw new RangeError("Index out of range")}function ie(Me,we,he,De,et){return we=+we,he=he>>>0,et||ue(Me,we,he,4),h.write(Me,we,he,De,23,4),he+4}t.prototype.writeFloatLE=function(we,he,De){return ie(this,we,he,!0,De)},t.prototype.writeFloatBE=function(we,he,De){return ie(this,we,he,!1,De)};function le(Me,we,he,De,et){return we=+we,he=he>>>0,et||ue(Me,we,he,8),h.write(Me,we,he,De,52,8),he+8}t.prototype.writeDoubleLE=function(we,he,De){return le(this,we,he,!0,De)},t.prototype.writeDoubleBE=function(we,he,De){return le(this,we,he,!1,De)},t.prototype.copy=function(we,he,De,et){if(!t.isBuffer(we))throw new TypeError("argument should be a Buffer");if(De||(De=0),!et&&et!==0&&(et=this.length),he>=we.length&&(he=we.length),he||(he=0),et>0&&et=this.length)throw new RangeError("Index out of range");if(et<0)throw new RangeError("sourceEnd out of bounds");et>this.length&&(et=this.length),we.length-he>>0,De=De===void 0?this.length:De>>>0,we||(we=0);let nt;if(typeof we=="number")for(nt=he;nt2**32?et=ee(String(he)):typeof he=="bigint"&&(et=String(he),(he>BigInt(2)**BigInt(32)||he<-(BigInt(2)**BigInt(32)))&&(et=ee(et)),et+="n"),De+=` It must be ${we}. Received ${et}`,De},RangeError);function ee(Me){let we="",he=Me.length;const De=Me[0]==="-"?1:0;for(;he>=De+4;he-=3)we=`_${Me.slice(he-3,he)}${we}`;return`${Me.slice(0,he)}${we}`}function Z(Me,we,he){Q(we,"offset"),(Me[we]===void 0||Me[we+he]===void 0)&&V(we,Me.length-(he+1))}function se(Me,we,he,De,et,nt){if(Me>he||Me= 0${Ke} and < 2${Ke} ** ${(nt+1)*8}${Ke}`:Et=`>= -(2${Ke} ** ${(nt+1)*8-1}${Ke}) and < 2 ** ${(nt+1)*8-1}${Ke}`,new q.ERR_OUT_OF_RANGE("value",Et,Me)}Z(De,et,nt)}function Q(Me,we){if(typeof Me!="number")throw new q.ERR_INVALID_ARG_TYPE(we,"number",Me)}function V(Me,we,he){throw Math.floor(Me)!==Me?(Q(Me,he),new q.ERR_OUT_OF_RANGE("offset","an integer",Me)):we<0?new q.ERR_BUFFER_OUT_OF_BOUNDS:new q.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${we}`,Me)}var re=/[^+/0-9A-Za-z-_]/g;function ae(Me){if(Me=Me.split("=")[0],Me=Me.trim().replace(re,""),Me.length<2)return"";for(;Me.length%4!==0;)Me=Me+"=";return Me}function fe(Me,we){we=we||1/0;let he;const De=Me.length;let et=null;const nt=[];for(let Ke=0;Ke55295&&he<57344){if(!et){if(he>56319){(we-=3)>-1&&nt.push(239,191,189);continue}else if(Ke+1===De){(we-=3)>-1&&nt.push(239,191,189);continue}et=he;continue}if(he<56320){(we-=3)>-1&&nt.push(239,191,189),et=he;continue}he=(et-55296<<10|he-56320)+65536}else et&&(we-=3)>-1&&nt.push(239,191,189);if(et=null,he<128){if((we-=1)<0)break;nt.push(he)}else if(he<2048){if((we-=2)<0)break;nt.push(he>>6|192,he&63|128)}else if(he<65536){if((we-=3)<0)break;nt.push(he>>12|224,he>>6&63|128,he&63|128)}else if(he<1114112){if((we-=4)<0)break;nt.push(he>>18|240,he>>12&63|128,he>>6&63|128,he&63|128)}else throw new Error("Invalid code point")}return nt}function xe(Me){const we=[];for(let he=0;he>8,et=he%256,nt.push(et),nt.push(De);return nt}function Pe(Me){return H.toByteArray(ae(Me))}function Ce(Me,we,he,De){let et;for(et=0;et=we.length||et>=Me.length);++et)we[et+he]=Me[et];return et}function je(Me,we){return Me instanceof we||Me!=null&&Me.constructor!=null&&Me.constructor.name!=null&&Me.constructor.name===we.name}function at(Me){return Me!==Me}var tt=function(){const Me="0123456789abcdef",we=new Array(256);for(let he=0;he<16;++he){const De=he*16;for(let et=0;et<16;++et)we[De+et]=Me[he]+Me[et]}return we}();function Je(Me){return typeof BigInt>"u"?Ze:Me}function Ze(){throw new Error("BigInt not supported")}}}),r_=He({"node_modules/has-symbols/shams.js"(Y,H){H.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var x={},A=Symbol("test"),E=Object(A);if(typeof A=="string"||Object.prototype.toString.call(A)!=="[object Symbol]"||Object.prototype.toString.call(E)!=="[object Symbol]")return!1;var e=42;x[A]=e;for(var t in x)return!1;if(typeof Object.keys=="function"&&Object.keys(x).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(x).length!==0)return!1;var r=Object.getOwnPropertySymbols(x);if(r.length!==1||r[0]!==A||!Object.prototype.propertyIsEnumerable.call(x,A))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var i=Object.getOwnPropertyDescriptor(x,A);if(i.value!==e||i.enumerable!==!0)return!1}return!0}}}),ym=He({"node_modules/has-tostringtag/shams.js"(Y,H){var h=r_();H.exports=function(){return h()&&!!Symbol.toStringTag}}}),s2=He({"node_modules/es-object-atoms/index.js"(Y,H){H.exports=Object}}),Mk=He({"node_modules/es-errors/index.js"(Y,H){H.exports=Error}}),Ek=He({"node_modules/es-errors/eval.js"(Y,H){H.exports=EvalError}}),kk=He({"node_modules/es-errors/range.js"(Y,H){H.exports=RangeError}}),Ck=He({"node_modules/es-errors/ref.js"(Y,H){H.exports=ReferenceError}}),l2=He({"node_modules/es-errors/syntax.js"(Y,H){H.exports=SyntaxError}}),eg=He({"node_modules/es-errors/type.js"(Y,H){H.exports=TypeError}}),Lk=He({"node_modules/es-errors/uri.js"(Y,H){H.exports=URIError}}),Pk=He({"node_modules/math-intrinsics/abs.js"(Y,H){H.exports=Math.abs}}),Ik=He({"node_modules/math-intrinsics/floor.js"(Y,H){H.exports=Math.floor}}),Rk=He({"node_modules/math-intrinsics/max.js"(Y,H){H.exports=Math.max}}),Dk=He({"node_modules/math-intrinsics/min.js"(Y,H){H.exports=Math.min}}),zk=He({"node_modules/math-intrinsics/pow.js"(Y,H){H.exports=Math.pow}}),Fk=He({"node_modules/math-intrinsics/round.js"(Y,H){H.exports=Math.round}}),Ok=He({"node_modules/math-intrinsics/isNaN.js"(Y,H){H.exports=Number.isNaN||function(x){return x!==x}}}),Bk=He({"node_modules/math-intrinsics/sign.js"(Y,H){var h=Ok();H.exports=function(A){return h(A)||A===0?A:A<0?-1:1}}}),Nk=He({"node_modules/gopd/gOPD.js"(Y,H){H.exports=Object.getOwnPropertyDescriptor}}),zp=He({"node_modules/gopd/index.js"(Y,H){var h=Nk();if(h)try{h([],"length")}catch{h=null}H.exports=h}}),_m=He({"node_modules/es-define-property/index.js"(Y,H){var h=Object.defineProperty||!1;if(h)try{h({},"a",{value:1})}catch{h=!1}H.exports=h}}),Uk=He({"node_modules/has-symbols/index.js"(Y,H){var h=typeof Symbol<"u"&&Symbol,x=r_();H.exports=function(){return typeof h!="function"||typeof Symbol!="function"||typeof h("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:x()}}}),u2=He({"node_modules/get-proto/Reflect.getPrototypeOf.js"(Y,H){H.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null}}),c2=He({"node_modules/get-proto/Object.getPrototypeOf.js"(Y,H){var h=s2();H.exports=h.getPrototypeOf||null}}),jk=He({"node_modules/function-bind/implementation.js"(Y,H){var h="Function.prototype.bind called on incompatible ",x=Object.prototype.toString,A=Math.max,E="[object Function]",e=function(a,o){for(var n=[],s=0;s"u"||!b?h:b(Uint8Array),z={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?h:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?h:ArrayBuffer,"%ArrayIteratorPrototype%":_&&b?b([][Symbol.iterator]()):h,"%AsyncFromSyncIteratorPrototype%":h,"%AsyncFunction%":R,"%AsyncGenerator%":R,"%AsyncGeneratorFunction%":R,"%AsyncIteratorPrototype%":R,"%Atomics%":typeof Atomics>"u"?h:Atomics,"%BigInt%":typeof BigInt>"u"?h:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?h:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?h:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?h:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":A,"%eval%":eval,"%EvalError%":E,"%Float16Array%":typeof Float16Array>"u"?h:Float16Array,"%Float32Array%":typeof Float32Array>"u"?h:Float32Array,"%Float64Array%":typeof Float64Array>"u"?h:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?h:FinalizationRegistry,"%Function%":T,"%GeneratorFunction%":R,"%Int8Array%":typeof Int8Array>"u"?h:Int8Array,"%Int16Array%":typeof Int16Array>"u"?h:Int16Array,"%Int32Array%":typeof Int32Array>"u"?h:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":_&&b?b(b([][Symbol.iterator]())):h,"%JSON%":typeof JSON=="object"?JSON:h,"%Map%":typeof Map>"u"?h:Map,"%MapIteratorPrototype%":typeof Map>"u"||!_||!b?h:b(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":x,"%Object.getOwnPropertyDescriptor%":m,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?h:Promise,"%Proxy%":typeof Proxy>"u"?h:Proxy,"%RangeError%":e,"%ReferenceError%":t,"%Reflect%":typeof Reflect>"u"?h:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?h:Set,"%SetIteratorPrototype%":typeof Set>"u"||!_||!b?h:b(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?h:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":_&&b?b(""[Symbol.iterator]()):h,"%Symbol%":_?Symbol:h,"%SyntaxError%":r,"%ThrowTypeError%":M,"%TypedArray%":I,"%TypeError%":i,"%Uint8Array%":typeof Uint8Array>"u"?h:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?h:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?h:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?h:Uint32Array,"%URIError%":a,"%WeakMap%":typeof WeakMap>"u"?h:WeakMap,"%WeakRef%":typeof WeakRef>"u"?h:WeakRef,"%WeakSet%":typeof WeakSet>"u"?h:WeakSet,"%Function.prototype.call%":y,"%Function.prototype.apply%":g,"%Object.defineProperty%":w,"%Object.getPrototypeOf%":d,"%Math.abs%":o,"%Math.floor%":n,"%Math.max%":s,"%Math.min%":c,"%Math.pow%":f,"%Math.round%":p,"%Math.sign%":v,"%Reflect.getPrototypeOf%":u};if(b)try{null.error}catch(Z){F=b(b(Z)),z["%Error.prototype%"]=F}var F,B=function Z(se){var Q;if(se==="%AsyncFunction%")Q=l("async function () {}");else if(se==="%GeneratorFunction%")Q=l("function* () {}");else if(se==="%AsyncGeneratorFunction%")Q=l("async function* () {}");else if(se==="%AsyncGenerator%"){var V=Z("%AsyncGeneratorFunction%");V&&(Q=V.prototype)}else if(se==="%AsyncIteratorPrototype%"){var re=Z("%AsyncGenerator%");re&&b&&(Q=b(re.prototype))}return z[se]=Q,Q},O={__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"]},P=tg(),N=Xk(),U=P.call(y,Array.prototype.concat),X=P.call(g,Array.prototype.splice),te=P.call(y,String.prototype.replace),ue=P.call(y,String.prototype.slice),ie=P.call(y,RegExp.prototype.exec),le=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,q=/\\(\\)?/g,J=function(se){var Q=ue(se,0,1),V=ue(se,-1);if(Q==="%"&&V!=="%")throw new r("invalid intrinsic syntax, expected closing `%`");if(V==="%"&&Q!=="%")throw new r("invalid intrinsic syntax, expected opening `%`");var re=[];return te(se,le,function(ae,fe,xe,Ae){re[re.length]=xe?te(Ae,q,"$1"):fe||ae}),re},ee=function(se,Q){var V=se,re;if(N(O,V)&&(re=O[V],V="%"+re[0]+"%"),N(z,V)){var ae=z[V];if(ae===R&&(ae=B(V)),typeof ae>"u"&&!Q)throw new i("intrinsic "+se+" exists, but is not available. Please file an issue!");return{alias:re,name:V,value:ae}}throw new r("intrinsic "+se+" does not exist!")};H.exports=function(se,Q){if(typeof se!="string"||se.length===0)throw new i("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof Q!="boolean")throw new i('"allowMissing" argument must be a boolean');if(ie(/^%?[^%]*%?$/,se)===null)throw new r("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var V=J(se),re=V.length>0?V[0]:"",ae=ee("%"+re+"%",Q),fe=ae.name,xe=ae.value,Ae=!1,Pe=ae.alias;Pe&&(re=Pe[0],X(V,U([0,1],Pe)));for(var Ce=1,je=!0;Ce=V.length){var Ze=m(xe,at);je=!!Ze,je&&"get"in Ze&&!("originalValue"in Ze.get)?xe=Ze.get:xe=xe[at]}else je=N(xe,at),xe=xe[at];je&&!Ae&&(z[fe]=xe)}}return xe}}}),Zk=He({"node_modules/define-data-property/index.js"(Y,H){var h=_m(),x=l2(),A=eg(),E=zp();H.exports=function(t,r,i){if(!t||typeof t!="object"&&typeof t!="function")throw new A("`obj` must be an object or a function`");if(typeof r!="string"&&typeof r!="symbol")throw new A("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new A("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new A("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new A("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new A("`loose`, if provided, must be a boolean");var a=arguments.length>3?arguments[3]:null,o=arguments.length>4?arguments[4]:null,n=arguments.length>5?arguments[5]:null,s=arguments.length>6?arguments[6]:!1,c=!!E&&E(t,r);if(h)h(t,r,{configurable:n===null&&c?c.configurable:!n,enumerable:a===null&&c?c.enumerable:!a,value:i,writable:o===null&&c?c.writable:!o});else if(s||!a&&!o&&!n)t[r]=i;else throw new x("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}}}),h2=He({"node_modules/has-property-descriptors/index.js"(Y,H){var h=_m(),x=function(){return!!h};x.hasArrayLengthDefineBug=function(){if(!h)return null;try{return h([],"length",{value:1}).length!==1}catch{return!0}},H.exports=x}}),Yk=He({"node_modules/set-function-length/index.js"(Y,H){var h=n_(),x=Zk(),A=h2()(),E=zp(),e=eg(),t=h("%Math.floor%");H.exports=function(i,a){if(typeof i!="function")throw new e("`fn` is not a function");if(typeof a!="number"||a<0||a>4294967295||t(a)!==a)throw new e("`length` must be a positive 32-bit integer");var o=arguments.length>2&&!!arguments[2],n=!0,s=!0;if("length"in i&&E){var c=E(i,"length");c&&!c.configurable&&(n=!1),c&&!c.writable&&(s=!1)}return(n||s||!o)&&(A?x(i,"length",a,!0,!0):x(i,"length",a)),i}}}),xm=He({"node_modules/call-bind/index.js"(Y,H){var h=tg(),x=n_(),A=Yk(),E=eg(),e=x("%Function.prototype.apply%"),t=x("%Function.prototype.call%"),r=x("%Reflect.apply%",!0)||h.call(t,e),i=_m(),a=x("%Math.max%");H.exports=function(s){if(typeof s!="function")throw new E("a function is required");var c=r(h,t,arguments);return A(c,1+a(0,s.length-(arguments.length-1)),!0)};var o=function(){return r(h,e,arguments)};i?i(H.exports,"apply",{value:o}):H.exports.apply=o}}),rg=He({"node_modules/call-bind/callBound.js"(Y,H){var h=n_(),x=xm(),A=x(h("String.prototype.indexOf"));H.exports=function(e,t){var r=h(e,!!t);return typeof r=="function"&&A(e,".prototype.")>-1?x(r):r}}}),$k=He({"node_modules/is-arguments/index.js"(Y,H){var h=ym()(),x=rg(),A=x("Object.prototype.toString"),E=function(i){return h&&i&&typeof i=="object"&&Symbol.toStringTag in i?!1:A(i)==="[object Arguments]"},e=function(i){return E(i)?!0:i!==null&&typeof i=="object"&&typeof i.length=="number"&&i.length>=0&&A(i)!=="[object Array]"&&A(i.callee)==="[object Function]"},t=function(){return E(arguments)}();E.isLegacyArguments=e,H.exports=t?E:e}}),Kk=He({"node_modules/is-generator-function/index.js"(Y,H){var h=Object.prototype.toString,x=Function.prototype.toString,A=/^\s*(?:function)?\*/,E=ym()(),e=Object.getPrototypeOf,t=function(){if(!E)return!1;try{return Function("return function*() {}")()}catch{}},r;H.exports=function(a){if(typeof a!="function")return!1;if(A.test(x.call(a)))return!0;if(!E){var o=h.call(a);return o==="[object GeneratorFunction]"}if(!e)return!1;if(typeof r>"u"){var n=t();r=n?e(n):!1}return e(a)===r}}}),Jk=He({"node_modules/is-callable/index.js"(Y,H){var h=Function.prototype.toString,x=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,A,E;if(typeof x=="function"&&typeof Object.defineProperty=="function")try{A=Object.defineProperty({},"length",{get:function(){throw E}}),E={},x(function(){throw 42},null,A)}catch(m){m!==E&&(x=null)}else x=null;var e=/^\s*class\b/,t=function(w){try{var S=h.call(w);return e.test(S)}catch{return!1}},r=function(w){try{return t(w)?!1:(h.call(w),!0)}catch{return!1}},i=Object.prototype.toString,a="[object Object]",o="[object Function]",n="[object GeneratorFunction]",s="[object HTMLAllCollection]",c="[object HTML document.all class]",f="[object HTMLCollection]",p=typeof Symbol=="function"&&!!Symbol.toStringTag,v=!(0 in[,]),T=function(){return!1};typeof document=="object"&&(l=document.all,i.call(l)===i.call(document.all)&&(T=function(w){if((v||!w)&&(typeof w>"u"||typeof w=="object"))try{var S=i.call(w);return(S===s||S===c||S===f||S===a)&&w("")==null}catch{}return!1}));var l;H.exports=x?function(w){if(T(w))return!0;if(!w||typeof w!="function"&&typeof w!="object")return!1;try{x(w,null,A)}catch(S){if(S!==E)return!1}return!t(w)&&r(w)}:function(w){if(T(w))return!0;if(!w||typeof w!="function"&&typeof w!="object")return!1;if(p)return r(w);if(t(w))return!1;var S=i.call(w);return S!==o&&S!==n&&!/^\[object HTML/.test(S)?!1:r(w)}}}),v2=He({"node_modules/for-each/index.js"(Y,H){var h=Jk(),x=Object.prototype.toString,A=Object.prototype.hasOwnProperty,E=function(a,o,n){for(var s=0,c=a.length;s=3&&(s=n),x.call(a)==="[object Array]"?E(a,o,s):typeof a=="string"?e(a,o,s):t(a,o,s)};H.exports=r}}),d2=He({"node_modules/available-typed-arrays/index.js"(Y,H){var h=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],x=typeof globalThis>"u"?window:globalThis;H.exports=function(){for(var E=[],e=0;e"u"?window:globalThis,a=x(),o=E("String.prototype.slice"),n=Object.getPrototypeOf,s=E("Array.prototype.indexOf",!0)||function(T,l){for(var m=0;m-1?l:l!=="Object"?!1:p(T)}return e?f(T):null}}}),eC=He({"node_modules/is-typed-array/index.js"(Y,H){var h=v2(),x=d2(),A=rg(),E=A("Object.prototype.toString"),e=ym()(),t=zp(),r=typeof globalThis>"u"?window:globalThis,i=x(),a=A("Array.prototype.indexOf",!0)||function(p,v){for(var T=0;T-1}return t?c(p):!1}}}),p2=He({"node_modules/util/support/types.js"(Y){var H=$k(),h=Kk(),x=Qk(),A=eC();function E(Ae){return Ae.call.bind(Ae)}var e=typeof BigInt<"u",t=typeof Symbol<"u",r=E(Object.prototype.toString),i=E(Number.prototype.valueOf),a=E(String.prototype.valueOf),o=E(Boolean.prototype.valueOf);e&&(n=E(BigInt.prototype.valueOf));var n;t&&(s=E(Symbol.prototype.valueOf));var s;function c(Ae,Pe){if(typeof Ae!="object")return!1;try{return Pe(Ae),!0}catch{return!1}}Y.isArgumentsObject=H,Y.isGeneratorFunction=h,Y.isTypedArray=A;function f(Ae){return typeof Promise<"u"&&Ae instanceof Promise||Ae!==null&&typeof Ae=="object"&&typeof Ae.then=="function"&&typeof Ae.catch=="function"}Y.isPromise=f;function p(Ae){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(Ae):A(Ae)||X(Ae)}Y.isArrayBufferView=p;function v(Ae){return x(Ae)==="Uint8Array"}Y.isUint8Array=v;function T(Ae){return x(Ae)==="Uint8ClampedArray"}Y.isUint8ClampedArray=T;function l(Ae){return x(Ae)==="Uint16Array"}Y.isUint16Array=l;function m(Ae){return x(Ae)==="Uint32Array"}Y.isUint32Array=m;function w(Ae){return x(Ae)==="Int8Array"}Y.isInt8Array=w;function S(Ae){return x(Ae)==="Int16Array"}Y.isInt16Array=S;function M(Ae){return x(Ae)==="Int32Array"}Y.isInt32Array=M;function _(Ae){return x(Ae)==="Float32Array"}Y.isFloat32Array=_;function b(Ae){return x(Ae)==="Float64Array"}Y.isFloat64Array=b;function d(Ae){return x(Ae)==="BigInt64Array"}Y.isBigInt64Array=d;function u(Ae){return x(Ae)==="BigUint64Array"}Y.isBigUint64Array=u;function g(Ae){return r(Ae)==="[object Map]"}g.working=typeof Map<"u"&&g(new Map);function y(Ae){return typeof Map>"u"?!1:g.working?g(Ae):Ae instanceof Map}Y.isMap=y;function R(Ae){return r(Ae)==="[object Set]"}R.working=typeof Set<"u"&&R(new Set);function I(Ae){return typeof Set>"u"?!1:R.working?R(Ae):Ae instanceof Set}Y.isSet=I;function z(Ae){return r(Ae)==="[object WeakMap]"}z.working=typeof WeakMap<"u"&&z(new WeakMap);function F(Ae){return typeof WeakMap>"u"?!1:z.working?z(Ae):Ae instanceof WeakMap}Y.isWeakMap=F;function B(Ae){return r(Ae)==="[object WeakSet]"}B.working=typeof WeakSet<"u"&&B(new WeakSet);function O(Ae){return B(Ae)}Y.isWeakSet=O;function P(Ae){return r(Ae)==="[object ArrayBuffer]"}P.working=typeof ArrayBuffer<"u"&&P(new ArrayBuffer);function N(Ae){return typeof ArrayBuffer>"u"?!1:P.working?P(Ae):Ae instanceof ArrayBuffer}Y.isArrayBuffer=N;function U(Ae){return r(Ae)==="[object DataView]"}U.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&U(new DataView(new ArrayBuffer(1),0,1));function X(Ae){return typeof DataView>"u"?!1:U.working?U(Ae):Ae instanceof DataView}Y.isDataView=X;var te=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function ue(Ae){return r(Ae)==="[object SharedArrayBuffer]"}function ie(Ae){return typeof te>"u"?!1:(typeof ue.working>"u"&&(ue.working=ue(new te)),ue.working?ue(Ae):Ae instanceof te)}Y.isSharedArrayBuffer=ie;function le(Ae){return r(Ae)==="[object AsyncFunction]"}Y.isAsyncFunction=le;function q(Ae){return r(Ae)==="[object Map Iterator]"}Y.isMapIterator=q;function J(Ae){return r(Ae)==="[object Set Iterator]"}Y.isSetIterator=J;function ee(Ae){return r(Ae)==="[object Generator]"}Y.isGeneratorObject=ee;function Z(Ae){return r(Ae)==="[object WebAssembly.Module]"}Y.isWebAssemblyCompiledModule=Z;function se(Ae){return c(Ae,i)}Y.isNumberObject=se;function Q(Ae){return c(Ae,a)}Y.isStringObject=Q;function V(Ae){return c(Ae,o)}Y.isBooleanObject=V;function re(Ae){return e&&c(Ae,n)}Y.isBigIntObject=re;function ae(Ae){return t&&c(Ae,s)}Y.isSymbolObject=ae;function fe(Ae){return se(Ae)||Q(Ae)||V(Ae)||re(Ae)||ae(Ae)}Y.isBoxedPrimitive=fe;function xe(Ae){return typeof Uint8Array<"u"&&(N(Ae)||ie(Ae))}Y.isAnyArrayBuffer=xe,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(Ae){Object.defineProperty(Y,Ae,{enumerable:!1,value:function(){throw new Error(Ae+" is not supported in userland")}})})}}),g2=He({"node_modules/util/support/isBufferBrowser.js"(Y,H){H.exports=function(x){return x&&typeof x=="object"&&typeof x.copy=="function"&&typeof x.fill=="function"&&typeof x.readUInt8=="function"}}}),m2=He({"(disabled):node_modules/util/util.js"(Y){var H=Object.getOwnPropertyDescriptors||function(X){for(var te=Object.keys(X),ue={},ie=0;ie=ie)return J;switch(J){case"%s":return String(ue[te++]);case"%d":return Number(ue[te++]);case"%j":try{return JSON.stringify(ue[te++])}catch{return"[Circular]"}default:return J}}),q=ue[te];te"u")return function(){return Y.deprecate(U,X).apply(this,arguments)};var te=!1;function ue(){if(!te){if(process.throwDeprecation)throw new Error(X);process.traceDeprecation?console.trace(X):console.error(X),te=!0}return U.apply(this,arguments)}return ue};var x={},A=/^$/;E="false",E=E.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),A=new RegExp("^"+E+"$","i");var E;Y.debuglog=function(U){if(U=U.toUpperCase(),!x[U])if(A.test(U)){var X=process.pid;x[U]=function(){var te=Y.format.apply(Y,arguments);console.error("%s %d: %s",U,X,te)}}else x[U]=function(){};return x[U]};function e(U,X){var te={seen:[],stylize:r};return arguments.length>=3&&(te.depth=arguments[2]),arguments.length>=4&&(te.colors=arguments[3]),v(X)?te.showHidden=X:X&&Y._extend(te,X),M(te.showHidden)&&(te.showHidden=!1),M(te.depth)&&(te.depth=2),M(te.colors)&&(te.colors=!1),M(te.customInspect)&&(te.customInspect=!0),te.colors&&(te.stylize=t),a(te,U,te.depth)}Y.inspect=e,e.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]},e.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function t(U,X){var te=e.styles[X];return te?"\x1B["+e.colors[te][0]+"m"+U+"\x1B["+e.colors[te][1]+"m":U}function r(U,X){return U}function i(U){var X={};return U.forEach(function(te,ue){X[te]=!0}),X}function a(U,X,te){if(U.customInspect&&X&&g(X.inspect)&&X.inspect!==Y.inspect&&!(X.constructor&&X.constructor.prototype===X)){var ue=X.inspect(te,U);return w(ue)||(ue=a(U,ue,te)),ue}var ie=o(U,X);if(ie)return ie;var le=Object.keys(X),q=i(le);if(U.showHidden&&(le=Object.getOwnPropertyNames(X)),u(X)&&(le.indexOf("message")>=0||le.indexOf("description")>=0))return n(X);if(le.length===0){if(g(X)){var J=X.name?": "+X.name:"";return U.stylize("[Function"+J+"]","special")}if(_(X))return U.stylize(RegExp.prototype.toString.call(X),"regexp");if(d(X))return U.stylize(Date.prototype.toString.call(X),"date");if(u(X))return n(X)}var ee="",Z=!1,se=["{","}"];if(p(X)&&(Z=!0,se=["[","]"]),g(X)){var Q=X.name?": "+X.name:"";ee=" [Function"+Q+"]"}if(_(X)&&(ee=" "+RegExp.prototype.toString.call(X)),d(X)&&(ee=" "+Date.prototype.toUTCString.call(X)),u(X)&&(ee=" "+n(X)),le.length===0&&(!Z||X.length==0))return se[0]+ee+se[1];if(te<0)return _(X)?U.stylize(RegExp.prototype.toString.call(X),"regexp"):U.stylize("[Object]","special");U.seen.push(X);var V;return Z?V=s(U,X,te,q,le):V=le.map(function(re){return c(U,X,te,q,re,Z)}),U.seen.pop(),f(V,ee,se)}function o(U,X){if(M(X))return U.stylize("undefined","undefined");if(w(X)){var te="'"+JSON.stringify(X).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return U.stylize(te,"string")}if(m(X))return U.stylize(""+X,"number");if(v(X))return U.stylize(""+X,"boolean");if(T(X))return U.stylize("null","null")}function n(U){return"["+Error.prototype.toString.call(U)+"]"}function s(U,X,te,ue,ie){for(var le=[],q=0,J=X.length;q-1&&(le?J=J.split(` -`).map(function(Z){return" "+Z}).join(` -`).slice(2):J=` -`+J.split(` -`).map(function(Z){return" "+Z}).join(` -`))):J=U.stylize("[Circular]","special")),M(q)){if(le&&ie.match(/^\d+$/))return J;q=JSON.stringify(""+ie),q.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(q=q.slice(1,-1),q=U.stylize(q,"name")):(q=q.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),q=U.stylize(q,"string"))}return q+": "+J}function f(U,X,te){var ue=U.reduce(function(ie,le){return le.indexOf(` -`)>=0,ie+le.replace(/\u001b\[\d\d?m/g,"").length+1},0);return ue>60?te[0]+(X===""?"":X+` - `)+" "+U.join(`, - `)+" "+te[1]:te[0]+X+" "+U.join(", ")+" "+te[1]}Y.types=p2();function p(U){return Array.isArray(U)}Y.isArray=p;function v(U){return typeof U=="boolean"}Y.isBoolean=v;function T(U){return U===null}Y.isNull=T;function l(U){return U==null}Y.isNullOrUndefined=l;function m(U){return typeof U=="number"}Y.isNumber=m;function w(U){return typeof U=="string"}Y.isString=w;function S(U){return typeof U=="symbol"}Y.isSymbol=S;function M(U){return U===void 0}Y.isUndefined=M;function _(U){return b(U)&&R(U)==="[object RegExp]"}Y.isRegExp=_,Y.types.isRegExp=_;function b(U){return typeof U=="object"&&U!==null}Y.isObject=b;function d(U){return b(U)&&R(U)==="[object Date]"}Y.isDate=d,Y.types.isDate=d;function u(U){return b(U)&&(R(U)==="[object Error]"||U instanceof Error)}Y.isError=u,Y.types.isNativeError=u;function g(U){return typeof U=="function"}Y.isFunction=g;function y(U){return U===null||typeof U=="boolean"||typeof U=="number"||typeof U=="string"||typeof U=="symbol"||typeof U>"u"}Y.isPrimitive=y,Y.isBuffer=g2();function R(U){return Object.prototype.toString.call(U)}function I(U){return U<10?"0"+U.toString(10):U.toString(10)}var z=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function F(){var U=new Date,X=[I(U.getHours()),I(U.getMinutes()),I(U.getSeconds())].join(":");return[U.getDate(),z[U.getMonth()],X].join(" ")}Y.log=function(){console.log("%s - %s",F(),Y.format.apply(Y,arguments))},Y.inherits=od(),Y._extend=function(U,X){if(!X||!b(X))return U;for(var te=Object.keys(X),ue=te.length;ue--;)U[te[ue]]=X[te[ue]];return U};function B(U,X){return Object.prototype.hasOwnProperty.call(U,X)}var O=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;Y.promisify=function(X){if(typeof X!="function")throw new TypeError('The "original" argument must be of type Function');if(O&&X[O]){var te=X[O];if(typeof te!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(te,O,{value:te,enumerable:!1,writable:!1,configurable:!0}),te}function te(){for(var ue,ie,le=new Promise(function(ee,Z){ue=ee,ie=Z}),q=[],J=0;J0?this.tail.next=v:this.head=v,this.tail=v,++this.length}},{key:"unshift",value:function(p){var v={data:p,next:this.head};this.length===0&&(this.tail=v),this.head=v,++this.length}},{key:"shift",value:function(){if(this.length!==0){var p=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,p}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(p){if(this.length===0)return"";for(var v=this.head,T=""+v.data;v=v.next;)T+=p+v.data;return T}},{key:"concat",value:function(p){if(this.length===0)return i.alloc(0);for(var v=i.allocUnsafe(p>>>0),T=this.head,l=0;T;)s(T.data,v,l),l+=T.data.length,T=T.next;return v}},{key:"consume",value:function(p,v){var T;return pm.length?m.length:p;if(w===m.length?l+=m:l+=m.slice(0,p),p-=w,p===0){w===m.length?(++T,v.next?this.head=v.next:this.head=this.tail=null):(this.head=v,v.data=m.slice(w));break}++T}return this.length-=T,l}},{key:"_getBuffer",value:function(p){var v=i.allocUnsafe(p),T=this.head,l=1;for(T.data.copy(v),p-=T.data.length;T=T.next;){var m=T.data,w=p>m.length?m.length:p;if(m.copy(v,v.length-p,0,w),p-=w,p===0){w===m.length?(++l,T.next?this.head=T.next:this.head=this.tail=null):(this.head=T,T.data=m.slice(w));break}++l}return this.length-=l,v}},{key:n,value:function(p,v){return o(this,x({},v,{depth:0,customInspect:!1}))}}]),c}()}}),y2=He({"node_modules/stream-browserify/node_modules/readable-stream/lib/internal/streams/destroy.js"(Y,H){function h(r,i){var a=this,o=this._readableState&&this._readableState.destroyed,n=this._writableState&&this._writableState.destroyed;return o||n?(i?i(r):r&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(e,this,r)):process.nextTick(e,this,r)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(r||null,function(s){!i&&s?a._writableState?a._writableState.errorEmitted?process.nextTick(A,a):(a._writableState.errorEmitted=!0,process.nextTick(x,a,s)):process.nextTick(x,a,s):i?(process.nextTick(A,a),i(s)):process.nextTick(A,a)}),this)}function x(r,i){e(r,i),A(r)}function A(r){r._writableState&&!r._writableState.emitClose||r._readableState&&!r._readableState.emitClose||r.emit("close")}function E(){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 e(r,i){r.emit("error",i)}function t(r,i){var a=r._readableState,o=r._writableState;a&&a.autoDestroy||o&&o.autoDestroy?r.destroy(i):r.emit("error",i)}H.exports={destroy:h,undestroy:E,errorOrDestroy:t}}}),Fp=He({"node_modules/stream-browserify/node_modules/readable-stream/errors-browser.js"(Y,H){function h(i,a){i.prototype=Object.create(a.prototype),i.prototype.constructor=i,i.__proto__=a}var x={};function A(i,a,o){o||(o=Error);function n(c,f,p){return typeof a=="string"?a:a(c,f,p)}var s=function(c){h(f,c);function f(p,v,T){return c.call(this,n(p,v,T))||this}return f}(o);s.prototype.name=o.name,s.prototype.code=i,x[i]=s}function E(i,a){if(Array.isArray(i)){var o=i.length;return i=i.map(function(n){return String(n)}),o>2?"one of ".concat(a," ").concat(i.slice(0,o-1).join(", "),", or ")+i[o-1]:o===2?"one of ".concat(a," ").concat(i[0]," or ").concat(i[1]):"of ".concat(a," ").concat(i[0])}else return"of ".concat(a," ").concat(String(i))}function e(i,a,o){return i.substr(0,a.length)===a}function t(i,a,o){return(o===void 0||o>i.length)&&(o=i.length),i.substring(o-a.length,o)===a}function r(i,a,o){return typeof o!="number"&&(o=0),o+a.length>i.length?!1:i.indexOf(a,o)!==-1}A("ERR_INVALID_OPT_VALUE",function(i,a){return'The value "'+a+'" is invalid for option "'+i+'"'},TypeError),A("ERR_INVALID_ARG_TYPE",function(i,a,o){var n;typeof a=="string"&&e(a,"not ")?(n="must not be",a=a.replace(/^not /,"")):n="must be";var s;if(t(i," argument"))s="The ".concat(i," ").concat(n," ").concat(E(a,"type"));else{var c=r(i,".")?"property":"argument";s='The "'.concat(i,'" ').concat(c," ").concat(n," ").concat(E(a,"type"))}return s+=". Received type ".concat(typeof o),s},TypeError),A("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),A("ERR_METHOD_NOT_IMPLEMENTED",function(i){return"The "+i+" method is not implemented"}),A("ERR_STREAM_PREMATURE_CLOSE","Premature close"),A("ERR_STREAM_DESTROYED",function(i){return"Cannot call "+i+" after a stream was destroyed"}),A("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),A("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),A("ERR_STREAM_WRITE_AFTER_END","write after end"),A("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),A("ERR_UNKNOWN_ENCODING",function(i){return"Unknown encoding: "+i},TypeError),A("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),H.exports.codes=x}}),_2=He({"node_modules/stream-browserify/node_modules/readable-stream/lib/internal/streams/state.js"(Y,H){var h=Fp().codes.ERR_INVALID_OPT_VALUE;function x(E,e,t){return E.highWaterMark!=null?E.highWaterMark:e?E[t]:null}function A(E,e,t,r){var i=x(e,r,t);if(i!=null){if(!(isFinite(i)&&Math.floor(i)===i)||i<0){var a=r?t:"highWaterMark";throw new h(a,i)}return Math.floor(i)}return E.objectMode?16:16*1024}H.exports={getHighWaterMark:A}}}),rC=He({"node_modules/util-deprecate/browser.js"(Y,H){H.exports=h;function h(A,E){if(x("noDeprecation"))return A;var e=!1;function t(){if(!e){if(x("throwDeprecation"))throw new Error(E);x("traceDeprecation")?console.trace(E):console.warn(E),e=!0}return A.apply(this,arguments)}return t}function x(A){try{if(!window.localStorage)return!1}catch{return!1}var E=window.localStorage[A];return E==null?!1:String(E).toLowerCase()==="true"}}}),x2=He({"node_modules/stream-browserify/node_modules/readable-stream/lib/_stream_writable.js"(Y,H){H.exports=d;function h(q){var J=this;this.next=null,this.entry=null,this.finish=function(){le(J,q)}}var x;d.WritableState=_;var A={deprecate:rC()},E=o2(),e=Dp().Buffer,t=window.Uint8Array||function(){};function r(q){return e.from(q)}function i(q){return e.isBuffer(q)||q instanceof t}var a=y2(),o=_2(),n=o.getHighWaterMark,s=Fp().codes,c=s.ERR_INVALID_ARG_TYPE,f=s.ERR_METHOD_NOT_IMPLEMENTED,p=s.ERR_MULTIPLE_CALLBACK,v=s.ERR_STREAM_CANNOT_PIPE,T=s.ERR_STREAM_DESTROYED,l=s.ERR_STREAM_NULL_VALUES,m=s.ERR_STREAM_WRITE_AFTER_END,w=s.ERR_UNKNOWN_ENCODING,S=a.errorOrDestroy;od()(d,E);function M(){}function _(q,J,ee){x=x||Op(),q=q||{},typeof ee!="boolean"&&(ee=J instanceof x),this.objectMode=!!q.objectMode,ee&&(this.objectMode=this.objectMode||!!q.writableObjectMode),this.highWaterMark=n(this,q,"writableHighWaterMark",ee),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var Z=q.decodeStrings===!1;this.decodeStrings=!Z,this.defaultEncoding=q.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(se){B(J,se)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=q.emitClose!==!1,this.autoDestroy=!!q.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new h(this)}_.prototype.getBuffer=function(){for(var J=this.bufferedRequest,ee=[];J;)ee.push(J),J=J.next;return ee},function(){try{Object.defineProperty(_.prototype,"buffer",{get:A.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var b;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(b=Function.prototype[Symbol.hasInstance],Object.defineProperty(d,Symbol.hasInstance,{value:function(J){return b.call(this,J)?!0:this!==d?!1:J&&J._writableState instanceof _}})):b=function(J){return J instanceof this};function d(q){x=x||Op();var J=this instanceof x;if(!J&&!b.call(d,this))return new d(q);this._writableState=new _(q,this,J),this.writable=!0,q&&(typeof q.write=="function"&&(this._write=q.write),typeof q.writev=="function"&&(this._writev=q.writev),typeof q.destroy=="function"&&(this._destroy=q.destroy),typeof q.final=="function"&&(this._final=q.final)),E.call(this)}d.prototype.pipe=function(){S(this,new v)};function u(q,J){var ee=new m;S(q,ee),process.nextTick(J,ee)}function g(q,J,ee,Z){var se;return ee===null?se=new l:typeof ee!="string"&&!J.objectMode&&(se=new c("chunk",["string","Buffer"],ee)),se?(S(q,se),process.nextTick(Z,se),!1):!0}d.prototype.write=function(q,J,ee){var Z=this._writableState,se=!1,Q=!Z.objectMode&&i(q);return Q&&!e.isBuffer(q)&&(q=r(q)),typeof J=="function"&&(ee=J,J=null),Q?J="buffer":J||(J=Z.defaultEncoding),typeof ee!="function"&&(ee=M),Z.ending?u(this,ee):(Q||g(this,Z,q,ee))&&(Z.pendingcb++,se=R(this,Z,Q,q,J,ee)),se},d.prototype.cork=function(){this._writableState.corked++},d.prototype.uncork=function(){var q=this._writableState;q.corked&&(q.corked--,!q.writing&&!q.corked&&!q.bufferProcessing&&q.bufferedRequest&&N(this,q))},d.prototype.setDefaultEncoding=function(J){if(typeof J=="string"&&(J=J.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((J+"").toLowerCase())>-1))throw new w(J);return this._writableState.defaultEncoding=J,this},Object.defineProperty(d.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function y(q,J,ee){return!q.objectMode&&q.decodeStrings!==!1&&typeof J=="string"&&(J=e.from(J,ee)),J}Object.defineProperty(d.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function R(q,J,ee,Z,se,Q){if(!ee){var V=y(J,Z,se);Z!==V&&(ee=!0,se="buffer",Z=V)}var re=J.objectMode?1:Z.length;J.length+=re;var ae=J.length>5===6?2:T>>4===14?3:T>>3===30?4:T>>6===2?-1:-2}function t(T,l,m){var w=l.length-1;if(w=0?(S>0&&(T.lastNeed=S-1),S):--w=0?(S>0&&(T.lastNeed=S-2),S):--w=0?(S>0&&(S===2?S=0:T.lastNeed=S-3),S):0))}function r(T,l,m){if((l[0]&192)!==128)return T.lastNeed=0,"�";if(T.lastNeed>1&&l.length>1){if((l[1]&192)!==128)return T.lastNeed=1,"�";if(T.lastNeed>2&&l.length>2&&(l[2]&192)!==128)return T.lastNeed=2,"�"}}function i(T){var l=this.lastTotal-this.lastNeed,m=r(this,T);if(m!==void 0)return m;if(this.lastNeed<=T.length)return T.copy(this.lastChar,l,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);T.copy(this.lastChar,l,0,T.length),this.lastNeed-=T.length}function a(T,l){var m=t(this,T,l);if(!this.lastNeed)return T.toString("utf8",l);this.lastTotal=m;var w=T.length-(m-this.lastNeed);return T.copy(this.lastChar,0,w),T.toString("utf8",l,w)}function o(T){var l=T&&T.length?this.write(T):"";return this.lastNeed?l+"�":l}function n(T,l){if((T.length-l)%2===0){var m=T.toString("utf16le",l);if(m){var w=m.charCodeAt(m.length-1);if(w>=55296&&w<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=T[T.length-2],this.lastChar[1]=T[T.length-1],m.slice(0,-1)}return m}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=T[T.length-1],T.toString("utf16le",l,T.length-1)}function s(T){var l=T&&T.length?this.write(T):"";if(this.lastNeed){var m=this.lastTotal-this.lastNeed;return l+this.lastChar.toString("utf16le",0,m)}return l}function c(T,l){var m=(T.length-l)%3;return m===0?T.toString("base64",l):(this.lastNeed=3-m,this.lastTotal=3,m===1?this.lastChar[0]=T[T.length-1]:(this.lastChar[0]=T[T.length-2],this.lastChar[1]=T[T.length-1]),T.toString("base64",l,T.length-m))}function f(T){var l=T&&T.length?this.write(T):"";return this.lastNeed?l+this.lastChar.toString("base64",0,3-this.lastNeed):l}function p(T){return T.toString(this.encoding)}function v(T){return T&&T.length?this.write(T):""}}}),i_=He({"node_modules/stream-browserify/node_modules/readable-stream/lib/internal/streams/end-of-stream.js"(Y,H){var h=Fp().codes.ERR_STREAM_PREMATURE_CLOSE;function x(t){var r=!1;return function(){if(!r){r=!0;for(var i=arguments.length,a=new Array(i),o=0;o0)if(typeof V!="string"&&!xe.objectMode&&Object.getPrototypeOf(V)!==E.prototype&&(V=t(V)),ae)xe.endEmitted?M(Q,new l):y(Q,xe,V,!0);else if(xe.ended)M(Q,new v);else{if(xe.destroyed)return!1;xe.reading=!1,xe.decoder&&!re?(V=xe.decoder.write(V),xe.objectMode||V.length!==0?y(Q,xe,V,!1):N(Q,xe)):y(Q,xe,V,!1)}else ae||(xe.reading=!1,N(Q,xe))}return!xe.ended&&(xe.length=I?Q=I:(Q--,Q|=Q>>>1,Q|=Q>>>2,Q|=Q>>>4,Q|=Q>>>8,Q|=Q>>>16,Q++),Q}function F(Q,V){return Q<=0||V.length===0&&V.ended?0:V.objectMode?1:Q!==Q?V.flowing&&V.length?V.buffer.head.data.length:V.length:(Q>V.highWaterMark&&(V.highWaterMark=z(Q)),Q<=V.length?Q:V.ended?V.length:(V.needReadable=!0,0))}u.prototype.read=function(Q){a("read",Q),Q=parseInt(Q,10);var V=this._readableState,re=Q;if(Q!==0&&(V.emittedReadable=!1),Q===0&&V.needReadable&&((V.highWaterMark!==0?V.length>=V.highWaterMark:V.length>0)||V.ended))return a("read: emitReadable",V.length,V.ended),V.length===0&&V.ended?ee(this):O(this),null;if(Q=F(Q,V),Q===0&&V.ended)return V.length===0&&ee(this),null;var ae=V.needReadable;a("need readable",ae),(V.length===0||V.length-Q0?fe=J(Q,V):fe=null,fe===null?(V.needReadable=V.length<=V.highWaterMark,Q=0):(V.length-=Q,V.awaitDrain=0),V.length===0&&(V.ended||(V.needReadable=!0),re!==Q&&V.ended&&ee(this)),fe!==null&&this.emit("data",fe),fe};function B(Q,V){if(a("onEofChunk"),!V.ended){if(V.decoder){var re=V.decoder.end();re&&re.length&&(V.buffer.push(re),V.length+=V.objectMode?1:re.length)}V.ended=!0,V.sync?O(Q):(V.needReadable=!1,V.emittedReadable||(V.emittedReadable=!0,P(Q)))}}function O(Q){var V=Q._readableState;a("emitReadable",V.needReadable,V.emittedReadable),V.needReadable=!1,V.emittedReadable||(a("emitReadable",V.flowing),V.emittedReadable=!0,process.nextTick(P,Q))}function P(Q){var V=Q._readableState;a("emitReadable_",V.destroyed,V.length,V.ended),!V.destroyed&&(V.length||V.ended)&&(Q.emit("readable"),V.emittedReadable=!1),V.needReadable=!V.flowing&&!V.ended&&V.length<=V.highWaterMark,q(Q)}function N(Q,V){V.readingMore||(V.readingMore=!0,process.nextTick(U,Q,V))}function U(Q,V){for(;!V.reading&&!V.ended&&(V.length1&&se(ae.pipes,Q)!==-1)&&!je&&(a("false write response, pause",ae.awaitDrain),ae.awaitDrain++),re.pause())}function Je(he){a("onerror",he),we(),Q.removeListener("error",Je),x(Q,"error")===0&&M(Q,he)}b(Q,"error",Je);function Ze(){Q.removeListener("finish",Me),we()}Q.once("close",Ze);function Me(){a("onfinish"),Q.removeListener("close",Ze),we()}Q.once("finish",Me);function we(){a("unpipe"),re.unpipe(Q)}return Q.emit("pipe",re),ae.flowing||(a("pipe resume"),re.resume()),Q};function X(Q){return function(){var re=Q._readableState;a("pipeOnDrain",re.awaitDrain),re.awaitDrain&&re.awaitDrain--,re.awaitDrain===0&&x(Q,"data")&&(re.flowing=!0,q(Q))}}u.prototype.unpipe=function(Q){var V=this._readableState,re={hasUnpiped:!1};if(V.pipesCount===0)return this;if(V.pipesCount===1)return Q&&Q!==V.pipes?this:(Q||(Q=V.pipes),V.pipes=null,V.pipesCount=0,V.flowing=!1,Q&&Q.emit("unpipe",this,re),this);if(!Q){var ae=V.pipes,fe=V.pipesCount;V.pipes=null,V.pipesCount=0,V.flowing=!1;for(var xe=0;xe0,ae.flowing!==!1&&this.resume()):Q==="readable"&&!ae.endEmitted&&!ae.readableListening&&(ae.readableListening=ae.needReadable=!0,ae.flowing=!1,ae.emittedReadable=!1,a("on readable",ae.length,ae.reading),ae.length?O(this):ae.reading||process.nextTick(ue,this)),re},u.prototype.addListener=u.prototype.on,u.prototype.removeListener=function(Q,V){var re=A.prototype.removeListener.call(this,Q,V);return Q==="readable"&&process.nextTick(te,this),re},u.prototype.removeAllListeners=function(Q){var V=A.prototype.removeAllListeners.apply(this,arguments);return(Q==="readable"||Q===void 0)&&process.nextTick(te,this),V};function te(Q){var V=Q._readableState;V.readableListening=Q.listenerCount("readable")>0,V.resumeScheduled&&!V.paused?V.flowing=!0:Q.listenerCount("data")>0&&Q.resume()}function ue(Q){a("readable nexttick read 0"),Q.read(0)}u.prototype.resume=function(){var Q=this._readableState;return Q.flowing||(a("resume"),Q.flowing=!Q.readableListening,ie(this,Q)),Q.paused=!1,this};function ie(Q,V){V.resumeScheduled||(V.resumeScheduled=!0,process.nextTick(le,Q,V))}function le(Q,V){a("resume",V.reading),V.reading||Q.read(0),V.resumeScheduled=!1,Q.emit("resume"),q(Q),V.flowing&&!V.reading&&Q.read(0)}u.prototype.pause=function(){return a("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(a("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function q(Q){var V=Q._readableState;for(a("flow",V.flowing);V.flowing&&Q.read()!==null;);}u.prototype.wrap=function(Q){var V=this,re=this._readableState,ae=!1;Q.on("end",function(){if(a("wrapped end"),re.decoder&&!re.ended){var Ae=re.decoder.end();Ae&&Ae.length&&V.push(Ae)}V.push(null)}),Q.on("data",function(Ae){if(a("wrapped data"),re.decoder&&(Ae=re.decoder.write(Ae)),!(re.objectMode&&Ae==null)&&!(!re.objectMode&&(!Ae||!Ae.length))){var Pe=V.push(Ae);Pe||(ae=!0,Q.pause())}});for(var fe in Q)this[fe]===void 0&&typeof Q[fe]=="function"&&(this[fe]=function(Pe){return function(){return Q[Pe].apply(Q,arguments)}}(fe));for(var xe=0;xe<_.length;xe++)Q.on(_[xe],this.emit.bind(this,_[xe]));return this._read=function(Ae){a("wrapped _read",Ae),ae&&(ae=!1,Q.resume())},this},typeof Symbol=="function"&&(u.prototype[Symbol.asyncIterator]=function(){return w===void 0&&(w=nC()),w(this)}),Object.defineProperty(u.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(u.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(u.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(V){this._readableState&&(this._readableState.flowing=V)}}),u._fromList=J,Object.defineProperty(u.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function J(Q,V){if(V.length===0)return null;var re;return V.objectMode?re=V.buffer.shift():!Q||Q>=V.length?(V.decoder?re=V.buffer.join(""):V.buffer.length===1?re=V.buffer.first():re=V.buffer.concat(V.length),V.buffer.clear()):re=V.buffer.consume(Q,V.decoder),re}function ee(Q){var V=Q._readableState;a("endReadable",V.endEmitted),V.endEmitted||(V.ended=!0,process.nextTick(Z,V,Q))}function Z(Q,V){if(a("endReadableNT",Q.endEmitted,Q.length),!Q.endEmitted&&Q.length===0&&(Q.endEmitted=!0,V.readable=!1,V.emit("end"),Q.autoDestroy)){var re=V._writableState;(!re||re.autoDestroy&&re.finished)&&V.destroy()}}typeof Symbol=="function"&&(u.from=function(Q,V){return S===void 0&&(S=iC()),S(u,Q,V)});function se(Q,V){for(var re=0,ae=Q.length;re0;return i(m,S,M,function(_){T||(T=_),_&&l.forEach(a),!S&&(l.forEach(a),v(T))})});return f.reduce(o)}H.exports=s}}),lC=He({"node_modules/stream-browserify/index.js"(Y,H){H.exports=A;var h=Sp().EventEmitter,x=od();x(A,h),A.Readable=w2(),A.Writable=x2(),A.Duplex=Op(),A.Transform=T2(),A.PassThrough=oC(),A.finished=i_(),A.pipeline=sC(),A.Stream=A;function A(){h.call(this)}A.prototype.pipe=function(E,e){var t=this;function r(f){E.writable&&E.write(f)===!1&&t.pause&&t.pause()}t.on("data",r);function i(){t.readable&&t.resume&&t.resume()}E.on("drain",i),!E._isStdio&&(!e||e.end!==!1)&&(t.on("end",o),t.on("close",n));var a=!1;function o(){a||(a=!0,E.end())}function n(){a||(a=!0,typeof E.destroy=="function"&&E.destroy())}function s(f){if(c(),h.listenerCount(this,"error")===0)throw f}t.on("error",s),E.on("error",s);function c(){t.removeListener("data",r),E.removeListener("drain",i),t.removeListener("end",o),t.removeListener("close",n),t.removeListener("error",s),E.removeListener("error",s),t.removeListener("end",c),t.removeListener("close",c),E.removeListener("close",c)}return t.on("end",c),t.on("close",c),E.on("close",c),E.emit("pipe",t),E}}}),ag=He({"node_modules/util/util.js"(Y){var H=Object.getOwnPropertyDescriptors||function(X){for(var te=Object.keys(X),ue={},ie=0;ie=ie)return J;switch(J){case"%s":return String(ue[te++]);case"%d":return Number(ue[te++]);case"%j":try{return JSON.stringify(ue[te++])}catch{return"[Circular]"}default:return J}}),q=ue[te];te"u")return function(){return Y.deprecate(U,X).apply(this,arguments)};var te=!1;function ue(){if(!te){if(process.throwDeprecation)throw new Error(X);process.traceDeprecation?console.trace(X):console.error(X),te=!0}return U.apply(this,arguments)}return ue};var x={},A=/^$/;E="false",E=E.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),A=new RegExp("^"+E+"$","i");var E;Y.debuglog=function(U){if(U=U.toUpperCase(),!x[U])if(A.test(U)){var X=process.pid;x[U]=function(){var te=Y.format.apply(Y,arguments);console.error("%s %d: %s",U,X,te)}}else x[U]=function(){};return x[U]};function e(U,X){var te={seen:[],stylize:r};return arguments.length>=3&&(te.depth=arguments[2]),arguments.length>=4&&(te.colors=arguments[3]),v(X)?te.showHidden=X:X&&Y._extend(te,X),M(te.showHidden)&&(te.showHidden=!1),M(te.depth)&&(te.depth=2),M(te.colors)&&(te.colors=!1),M(te.customInspect)&&(te.customInspect=!0),te.colors&&(te.stylize=t),a(te,U,te.depth)}Y.inspect=e,e.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]},e.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function t(U,X){var te=e.styles[X];return te?"\x1B["+e.colors[te][0]+"m"+U+"\x1B["+e.colors[te][1]+"m":U}function r(U,X){return U}function i(U){var X={};return U.forEach(function(te,ue){X[te]=!0}),X}function a(U,X,te){if(U.customInspect&&X&&g(X.inspect)&&X.inspect!==Y.inspect&&!(X.constructor&&X.constructor.prototype===X)){var ue=X.inspect(te,U);return w(ue)||(ue=a(U,ue,te)),ue}var ie=o(U,X);if(ie)return ie;var le=Object.keys(X),q=i(le);if(U.showHidden&&(le=Object.getOwnPropertyNames(X)),u(X)&&(le.indexOf("message")>=0||le.indexOf("description")>=0))return n(X);if(le.length===0){if(g(X)){var J=X.name?": "+X.name:"";return U.stylize("[Function"+J+"]","special")}if(_(X))return U.stylize(RegExp.prototype.toString.call(X),"regexp");if(d(X))return U.stylize(Date.prototype.toString.call(X),"date");if(u(X))return n(X)}var ee="",Z=!1,se=["{","}"];if(p(X)&&(Z=!0,se=["[","]"]),g(X)){var Q=X.name?": "+X.name:"";ee=" [Function"+Q+"]"}if(_(X)&&(ee=" "+RegExp.prototype.toString.call(X)),d(X)&&(ee=" "+Date.prototype.toUTCString.call(X)),u(X)&&(ee=" "+n(X)),le.length===0&&(!Z||X.length==0))return se[0]+ee+se[1];if(te<0)return _(X)?U.stylize(RegExp.prototype.toString.call(X),"regexp"):U.stylize("[Object]","special");U.seen.push(X);var V;return Z?V=s(U,X,te,q,le):V=le.map(function(re){return c(U,X,te,q,re,Z)}),U.seen.pop(),f(V,ee,se)}function o(U,X){if(M(X))return U.stylize("undefined","undefined");if(w(X)){var te="'"+JSON.stringify(X).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return U.stylize(te,"string")}if(m(X))return U.stylize(""+X,"number");if(v(X))return U.stylize(""+X,"boolean");if(T(X))return U.stylize("null","null")}function n(U){return"["+Error.prototype.toString.call(U)+"]"}function s(U,X,te,ue,ie){for(var le=[],q=0,J=X.length;q-1&&(le?J=J.split(` -`).map(function(Z){return" "+Z}).join(` -`).slice(2):J=` -`+J.split(` -`).map(function(Z){return" "+Z}).join(` -`))):J=U.stylize("[Circular]","special")),M(q)){if(le&&ie.match(/^\d+$/))return J;q=JSON.stringify(""+ie),q.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(q=q.slice(1,-1),q=U.stylize(q,"name")):(q=q.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),q=U.stylize(q,"string"))}return q+": "+J}function f(U,X,te){var ue=U.reduce(function(ie,le){return le.indexOf(` -`)>=0,ie+le.replace(/\u001b\[\d\d?m/g,"").length+1},0);return ue>60?te[0]+(X===""?"":X+` - `)+" "+U.join(`, - `)+" "+te[1]:te[0]+X+" "+U.join(", ")+" "+te[1]}Y.types=p2();function p(U){return Array.isArray(U)}Y.isArray=p;function v(U){return typeof U=="boolean"}Y.isBoolean=v;function T(U){return U===null}Y.isNull=T;function l(U){return U==null}Y.isNullOrUndefined=l;function m(U){return typeof U=="number"}Y.isNumber=m;function w(U){return typeof U=="string"}Y.isString=w;function S(U){return typeof U=="symbol"}Y.isSymbol=S;function M(U){return U===void 0}Y.isUndefined=M;function _(U){return b(U)&&R(U)==="[object RegExp]"}Y.isRegExp=_,Y.types.isRegExp=_;function b(U){return typeof U=="object"&&U!==null}Y.isObject=b;function d(U){return b(U)&&R(U)==="[object Date]"}Y.isDate=d,Y.types.isDate=d;function u(U){return b(U)&&(R(U)==="[object Error]"||U instanceof Error)}Y.isError=u,Y.types.isNativeError=u;function g(U){return typeof U=="function"}Y.isFunction=g;function y(U){return U===null||typeof U=="boolean"||typeof U=="number"||typeof U=="string"||typeof U=="symbol"||typeof U>"u"}Y.isPrimitive=y,Y.isBuffer=g2();function R(U){return Object.prototype.toString.call(U)}function I(U){return U<10?"0"+U.toString(10):U.toString(10)}var z=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function F(){var U=new Date,X=[I(U.getHours()),I(U.getMinutes()),I(U.getSeconds())].join(":");return[U.getDate(),z[U.getMonth()],X].join(" ")}Y.log=function(){console.log("%s - %s",F(),Y.format.apply(Y,arguments))},Y.inherits=od(),Y._extend=function(U,X){if(!X||!b(X))return U;for(var te=Object.keys(X),ue=te.length;ue--;)U[te[ue]]=X[te[ue]];return U};function B(U,X){return Object.prototype.hasOwnProperty.call(U,X)}var O=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;Y.promisify=function(X){if(typeof X!="function")throw new TypeError('The "original" argument must be of type Function');if(O&&X[O]){var te=X[O];if(typeof te!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(te,O,{value:te,enumerable:!1,writable:!1,configurable:!0}),te}function te(){for(var ue,ie,le=new Promise(function(ee,Z){ue=ee,ie=Z}),q=[],J=0;J"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function o(m){return o=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(S){return S.__proto__||Object.getPrototypeOf(S)},o(m)}var n={},s,c;function f(m,w,S){S||(S=Error);function M(b,d,u){return typeof w=="string"?w:w(b,d,u)}var _=function(b){E(u,b);var d=t(u);function u(g,y,R){var I;return A(this,u),I=d.call(this,M(g,y,R)),I.code=m,I}return x(u)}(S);n[m]=_}function p(m,w){if(Array.isArray(m)){var S=m.length;return m=m.map(function(M){return String(M)}),S>2?"one of ".concat(w," ").concat(m.slice(0,S-1).join(", "),", or ")+m[S-1]:S===2?"one of ".concat(w," ").concat(m[0]," or ").concat(m[1]):"of ".concat(w," ").concat(m[0])}else return"of ".concat(w," ").concat(String(m))}function v(m,w,S){return m.substr(0,w.length)===w}function T(m,w,S){return(S===void 0||S>m.length)&&(S=m.length),m.substring(S-w.length,S)===w}function l(m,w,S){return typeof S!="number"&&(S=0),S+w.length>m.length?!1:m.indexOf(w,S)!==-1}f("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),f("ERR_INVALID_ARG_TYPE",function(m,w,S){s===void 0&&(s=wm()),s(typeof m=="string","'name' must be a string");var M;typeof w=="string"&&v(w,"not ")?(M="must not be",w=w.replace(/^not /,"")):M="must be";var _;if(T(m," argument"))_="The ".concat(m," ").concat(M," ").concat(p(w,"type"));else{var b=l(m,".")?"property":"argument";_='The "'.concat(m,'" ').concat(b," ").concat(M," ").concat(p(w,"type"))}return _+=". Received type ".concat(h(S)),_},TypeError),f("ERR_INVALID_ARG_VALUE",function(m,w){var S=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";c===void 0&&(c=ag());var M=c.inspect(w);return M.length>128&&(M="".concat(M.slice(0,128),"...")),"The argument '".concat(m,"' ").concat(S,". Received ").concat(M)},TypeError),f("ERR_INVALID_RETURN_VALUE",function(m,w,S){var M;return S&&S.constructor&&S.constructor.name?M="instance of ".concat(S.constructor.name):M="type ".concat(h(S)),"Expected ".concat(m,' to be returned from the "').concat(w,'"')+" function but got ".concat(M,".")},TypeError),f("ERR_MISSING_ARGS",function(){for(var m=arguments.length,w=new Array(m),S=0;S0,"At least one arg needs to be specified");var M="The ",_=w.length;switch(w=w.map(function(b){return'"'.concat(b,'"')}),_){case 1:M+="".concat(w[0]," argument");break;case 2:M+="".concat(w[0]," and ").concat(w[1]," arguments");break;default:M+=w.slice(0,_-1).join(", "),M+=", and ".concat(w[_-1]," arguments");break}return"".concat(M," must be specified")},TypeError),H.exports.codes=n}}),uC=He({"node_modules/assert/build/internal/assert/assertion_error.js"(Y,H){function h(N,U){var X=Object.keys(N);if(Object.getOwnPropertySymbols){var te=Object.getOwnPropertySymbols(N);U&&(te=te.filter(function(ue){return Object.getOwnPropertyDescriptor(N,ue).enumerable})),X.push.apply(X,te)}return X}function x(N){for(var U=1;U"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function v(N){return Function.toString.call(N).indexOf("[native code]")!==-1}function T(N,U){return T=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(te,ue){return te.__proto__=ue,te},T(N,U)}function l(N){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(X){return X.__proto__||Object.getPrototypeOf(X)},l(N)}function m(N){"@babel/helpers - typeof";return m=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(U){return typeof U}:function(U){return U&&typeof Symbol=="function"&&U.constructor===Symbol&&U!==Symbol.prototype?"symbol":typeof U},m(N)}var w=ag(),S=w.inspect,M=A2(),_=M.codes.ERR_INVALID_ARG_TYPE;function b(N,U,X){return(X===void 0||X>N.length)&&(X=N.length),N.substring(X-U.length,X)===U}function d(N,U){if(U=Math.floor(U),N.length==0||U==0)return"";var X=N.length*U;for(U=Math.floor(Math.log(U)/Math.log(2));U;)N+=N,U--;return N+=N.substring(0,X-N.length),N}var u="",g="",y="",R="",I={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:"},z=10;function F(N){var U=Object.keys(N),X=Object.create(Object.getPrototypeOf(N));return U.forEach(function(te){X[te]=N[te]}),Object.defineProperty(X,"message",{value:N.message}),X}function B(N){return S(N,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function O(N,U,X){var te="",ue="",ie=0,le="",q=!1,J=B(N),ee=J.split(` -`),Z=B(U).split(` -`),se=0,Q="";if(X==="strictEqual"&&m(N)==="object"&&m(U)==="object"&&N!==null&&U!==null&&(X="strictEqualObject"),ee.length===1&&Z.length===1&&ee[0]!==Z[0]){var V=ee[0].length+Z[0].length;if(V<=z){if((m(N)!=="object"||N===null)&&(m(U)!=="object"||U===null)&&(N!==0||U!==0))return"".concat(I[X],` - -`)+"".concat(ee[0]," !== ").concat(Z[0],` -`)}else if(X!=="strictEqualObject"){var re=process.stderr&&process.stderr.isTTY?process.stderr.columns:80;if(V2&&(Q=` - `.concat(d(" ",se),"^"),se=0)}}}for(var ae=ee[ee.length-1],fe=Z[Z.length-1];ae===fe&&(se++<2?le=` - `.concat(ae).concat(le):te=ae,ee.pop(),Z.pop(),!(ee.length===0||Z.length===0));)ae=ee[ee.length-1],fe=Z[Z.length-1];var xe=Math.max(ee.length,Z.length);if(xe===0){var Ae=J.split(` -`);if(Ae.length>30)for(Ae[26]="".concat(u,"...").concat(R);Ae.length>27;)Ae.pop();return"".concat(I.notIdentical,` - -`).concat(Ae.join(` -`),` -`)}se>3&&(le=` -`.concat(u,"...").concat(R).concat(le),q=!0),te!==""&&(le=` - `.concat(te).concat(le),te="");var Pe=0,Ce=I[X]+` -`.concat(g,"+ actual").concat(R," ").concat(y,"- expected").concat(R),je=" ".concat(u,"...").concat(R," Lines skipped");for(se=0;se1&&se>2&&(at>4?(ue+=` -`.concat(u,"...").concat(R),q=!0):at>3&&(ue+=` - `.concat(Z[se-2]),Pe++),ue+=` - `.concat(Z[se-1]),Pe++),ie=se,te+=` -`.concat(y,"-").concat(R," ").concat(Z[se]),Pe++;else if(Z.length1&&se>2&&(at>4?(ue+=` -`.concat(u,"...").concat(R),q=!0):at>3&&(ue+=` - `.concat(ee[se-2]),Pe++),ue+=` - `.concat(ee[se-1]),Pe++),ie=se,ue+=` -`.concat(g,"+").concat(R," ").concat(ee[se]),Pe++;else{var tt=Z[se],Je=ee[se],Ze=Je!==tt&&(!b(Je,",")||Je.slice(0,-1)!==tt);Ze&&b(tt,",")&&tt.slice(0,-1)===Je&&(Ze=!1,Je+=","),Ze?(at>1&&se>2&&(at>4?(ue+=` -`.concat(u,"...").concat(R),q=!0):at>3&&(ue+=` - `.concat(ee[se-2]),Pe++),ue+=` - `.concat(ee[se-1]),Pe++),ie=se,ue+=` -`.concat(g,"+").concat(R," ").concat(Je),te+=` -`.concat(y,"-").concat(R," ").concat(tt),Pe+=2):(ue+=te,te="",(at===1||se===0)&&(ue+=` - `.concat(Je),Pe++))}if(Pe>20&&se30)for(V[26]="".concat(u,"...").concat(R);V.length>27;)V.pop();V.length===1?ie=X.call(this,"".concat(Q," ").concat(V[0])):ie=X.call(this,"".concat(Q,` - -`).concat(V.join(` -`),` -`))}else{var re=B(ee),ae="",fe=I[q];q==="notDeepEqual"||q==="notEqual"?(re="".concat(I[q],` - -`).concat(re),re.length>1024&&(re="".concat(re.slice(0,1021),"..."))):(ae="".concat(B(Z)),re.length>512&&(re="".concat(re.slice(0,509),"...")),ae.length>512&&(ae="".concat(ae.slice(0,509),"...")),q==="deepEqual"||q==="equal"?re="".concat(fe,` - -`).concat(re,` - -should equal - -`):ae=" ".concat(q," ").concat(ae)),ie=X.call(this,"".concat(re).concat(ae))}return Error.stackTraceLimit=se,ie.generatedMessage=!le,Object.defineProperty(s(ie),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),ie.code="ERR_ASSERTION",ie.actual=ee,ie.expected=Z,ie.operator=q,Error.captureStackTrace&&Error.captureStackTrace(s(ie),J),ie.stack,ie.name="AssertionError",n(ie)}return t(te,[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:U,value:function(ie,le){return S(this,x(x({},le),{},{customInspect:!1,depth:0}))}}]),te}(c(Error),S.custom);H.exports=P}}),S2=He({"node_modules/object-keys/isArguments.js"(Y,H){var h=Object.prototype.toString;H.exports=function(A){var E=h.call(A),e=E==="[object Arguments]";return e||(e=E!=="[object Array]"&&A!==null&&typeof A=="object"&&typeof A.length=="number"&&A.length>=0&&h.call(A.callee)==="[object Function]"),e}}}),cC=He({"node_modules/object-keys/implementation.js"(Y,H){var h;Object.keys||(x=Object.prototype.hasOwnProperty,A=Object.prototype.toString,E=S2(),e=Object.prototype.propertyIsEnumerable,t=!e.call({toString:null},"toString"),r=e.call(function(){},"prototype"),i=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],a=function(c){var f=c.constructor;return f&&f.prototype===c},o={$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},n=function(){if(typeof window>"u")return!1;for(var c in window)try{if(!o["$"+c]&&x.call(window,c)&&window[c]!==null&&typeof window[c]=="object")try{a(window[c])}catch{return!0}}catch{return!0}return!1}(),s=function(c){if(typeof window>"u"||!n)return a(c);try{return a(c)}catch{return!1}},h=function(f){var p=f!==null&&typeof f=="object",v=A.call(f)==="[object Function]",T=E(f),l=p&&A.call(f)==="[object String]",m=[];if(!p&&!v&&!T)throw new TypeError("Object.keys called on a non-object");var w=r&&v;if(l&&f.length>0&&!x.call(f,0))for(var S=0;S0)for(var M=0;M2?arguments[2]:{},f=h(s);x&&(f=E.call(f,Object.getOwnPropertySymbols(s)));for(var p=0;pZe.length)&&(Me=Ze.length);for(var we=0,he=new Array(Me);we10)return!0;for(var Me=0;Me57)return!0}return Ze.length===10&&Ze>=Math.pow(2,32)}function P(Ze){return Object.keys(Ze).filter(O).concat(s(Ze).filter(Object.prototype.propertyIsEnumerable.bind(Ze)))}function N(Ze,Me){if(Ze===Me)return 0;for(var we=Ze.length,he=Me.length,De=0,et=Math.min(we,he);De1?q-1:0),ee=1;ee1?q-1:0),ee=1;ee1?q-1:0),ee=1;ee1?q-1:0),ee=1;ee0)return t(o);if(s==="number"&&isNaN(o)===!1)return n.long?i(o):r(o);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(o))};function t(o){if(o=String(o),!(o.length>100)){var n=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(o);if(n){var s=parseFloat(n[1]),c=(n[2]||"ms").toLowerCase();switch(c){case"years":case"year":case"yrs":case"yr":case"y":return s*e;case"days":case"day":case"d":return s*E;case"hours":case"hour":case"hrs":case"hr":case"h":return s*A;case"minutes":case"minute":case"mins":case"min":case"m":return s*x;case"seconds":case"second":case"secs":case"sec":case"s":return s*h;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return s;default:return}}}}function r(o){return o>=E?Math.round(o/E)+"d":o>=A?Math.round(o/A)+"h":o>=x?Math.round(o/x)+"m":o>=h?Math.round(o/h)+"s":o+"ms"}function i(o){return a(o,E,"day")||a(o,A,"hour")||a(o,x,"minute")||a(o,h,"second")||o+" ms"}function a(o,n,s){if(!(o=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}Y.formatters.j=function(r){try{return JSON.stringify(r)}catch(i){return"[UnexpectedJSONParseError]: "+i.message}};function x(r){var i=this.useColors;if(r[0]=(i?"%c":"")+this.namespace+(i?" %c":" ")+r[0]+(i?"%c ":" ")+"+"+Y.humanize(this.diff),!!i){var a="color: "+this.color;r.splice(1,0,a,"color: inherit");var o=0,n=0;r[0].replace(/%[a-zA-Z%]/g,function(s){s!=="%%"&&(o++,s==="%c"&&(n=o))}),r.splice(n,0,a)}}function A(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function E(r){try{r==null?Y.storage.removeItem("debug"):Y.storage.debug=r}catch{}}function e(){var r;try{r=Y.storage.debug}catch{}return!r&&typeof process<"u"&&"env"in process&&(r=process.env.DEBUG),r}Y.enable(e());function t(){try{return window.localStorage}catch{}}}}),bC=He({"node_modules/stream-parser/index.js"(Y,H){var h=wm(),x=xC()("stream-parser");H.exports=r;var A=-1,E=0,e=1,t=2;function r(l){var m=l&&typeof l._transform=="function",w=l&&typeof l._write=="function";if(!m&&!w)throw new Error("must pass a Writable or Transform stream in");x("extending Parser into stream"),l._bytes=a,l._skipBytes=o,m&&(l._passthrough=n),m?l._transform=c:l._write=s}function i(l){x("initializing parser stream"),l._parserBytesLeft=0,l._parserBuffers=[],l._parserBuffered=0,l._parserState=A,l._parserCallback=null,typeof l.push=="function"&&(l._parserOutput=l.push.bind(l)),l._parserInit=!0}function a(l,m){h(!this._parserCallback,'there is already a "callback" set!'),h(isFinite(l)&&l>0,'can only buffer a finite number of bytes > 0, got "'+l+'"'),this._parserInit||i(this),x("buffering %o bytes",l),this._parserBytesLeft=l,this._parserCallback=m,this._parserState=E}function o(l,m){h(!this._parserCallback,'there is already a "callback" set!'),h(l>0,'can only skip > 0 bytes, got "'+l+'"'),this._parserInit||i(this),x("skipping %o bytes",l),this._parserBytesLeft=l,this._parserCallback=m,this._parserState=e}function n(l,m){h(!this._parserCallback,'There is already a "callback" set!'),h(l>0,'can only pass through > 0 bytes, got "'+l+'"'),this._parserInit||i(this),x("passing through %o bytes",l),this._parserBytesLeft=l,this._parserCallback=m,this._parserState=t}function s(l,m,w){this._parserInit||i(this),x("write(%o bytes)",l.length),typeof m=="function"&&(w=m),v(this,l,null,w)}function c(l,m,w){this._parserInit||i(this),x("transform(%o bytes)",l.length),typeof m!="function"&&(m=this._parserOutput),v(this,l,m,w)}function f(l,m,w,S){return l._parserBytesLeft<=0?S(new Error("got data but not currently parsing anything")):m.length<=l._parserBytesLeft?function(){return p(l,m,w,S)}:function(){var M=m.slice(0,l._parserBytesLeft);return p(l,M,w,function(_){if(_)return S(_);if(m.length>M.length)return function(){return f(l,m.slice(M.length),w,S)}})}}function p(l,m,w,S){if(l._parserBytesLeft-=m.length,x("%o bytes left for stream piece",l._parserBytesLeft),l._parserState===E?(l._parserBuffers.push(m),l._parserBuffered+=m.length):l._parserState===t&&w(m),l._parserBytesLeft===0){var M=l._parserCallback;if(M&&l._parserState===E&&l._parserBuffers.length>1&&(m=Buffer.concat(l._parserBuffers,l._parserBuffered)),l._parserState!==E&&(m=null),l._parserCallback=null,l._parserBuffered=0,l._parserState=A,l._parserBuffers.splice(0),M){var _=[];m&&_.push(m),w&&_.push(w);var b=M.length>_.length;b&&_.push(T(S));var d=M.apply(l,_);if(!b||S===d)return S}}else return S}var v=T(f);function T(l){return function(){for(var m=l.apply(this,arguments);typeof m=="function";)m=m();return m}}}}),ku=He({"node_modules/probe-image-size/lib/common.js"(Y){var H=lC().Transform,h=bC();function x(){H.call(this,{readableObjectMode:!0})}x.prototype=Object.create(H.prototype),x.prototype.constructor=x,h(x.prototype),Y.ParserStream=x,Y.sliceEq=function(E,e,t){for(var r=e,i=0;i>4&15,f=n[4]&15,p=n[5]>>4&15,v=h(n,6),T=8,l=0;lv.width||p.width===v.width&&p.height>v.height?p:v}),c=n.reduce(function(p,v){return p.height>v.height||p.height===v.height&&p.width>v.width?p:v}),f;return s.width>c.height||s.width===c.height&&s.height>c.width?f=s:f=c,f}H.exports.readSizeFromMeta=function(n){var s={sizes:[],transforms:[],item_inf:{},item_loc:{}};if(a(n,s),!!s.sizes.length){var c=o(s.sizes),f=1;s.transforms.forEach(function(v){var T={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(v.type==="imir"&&(v.value===0?f=l[f]:(f=l[f],f=T[f],f=T[f])),v.type==="irot")for(var m=0;m0&&!this.aborted;){var t=this.ifds_to_read.shift();t.offset&&this.scan_ifd(t.id,t.offset,E)}},A.prototype.read_uint16=function(E){var e=this.input;if(E+2>e.length)throw h("unexpected EOF","EBADDATA");return this.big_endian?e[E]*256+e[E+1]:e[E]+e[E+1]*256},A.prototype.read_uint32=function(E){var e=this.input;if(E+4>e.length)throw h("unexpected EOF","EBADDATA");return this.big_endian?e[E]*16777216+e[E+1]*65536+e[E+2]*256+e[E+3]:e[E]+e[E+1]*256+e[E+2]*65536+e[E+3]*16777216},A.prototype.is_subifd_link=function(E,e){return E===0&&e===34665||E===0&&e===34853||E===34665&&e===40965},A.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}},A.prototype.exif_format_read=function(E,e){var t;switch(E){case 1:case 2:return t=this.input[e],t;case 6:return t=this.input[e],t|(t&128)*33554430;case 3:return t=this.read_uint16(e),t;case 8:return t=this.read_uint16(e),t|(t&32768)*131070;case 4:return t=this.read_uint32(e),t;case 9:return t=this.read_uint32(e),t|0;case 5:case 10:case 11:case 12:return null;case 7:return null;default:return null}},A.prototype.scan_ifd=function(E,e,t){var r=this.read_uint16(e);e+=2;for(var i=0;ithis.input.length)throw h("unexpected EOF","EBADDATA");for(var v=[],T=f,l=0;l0&&(this.ifds_to_read.push({id:a,offset:v[0]}),p=!0);var w={is_big_endian:this.big_endian,ifd:E,tag:a,format:o,count:n,entry_offset:e+this.start,data_length:c,data_offset:f+this.start,value:v,is_subifd_link:p};if(t(w)===!1){this.aborted=!0;return}e+=12}E===0&&this.ifds_to_read.push({id:1,offset:this.read_uint32(e)})},H.exports.ExifParser=A,H.exports.get_orientation=function(E){var e=0;try{return new A(E,0,E.length).each(function(t){if(t.ifd===0&&t.tag===274&&Array.isArray(t.value))return e=t.value[0],!1}),e}catch{return-1}}}}),TC=He({"node_modules/probe-image-size/lib/parse_sync/avif.js"(Y,H){var h=ku().str2arr,x=ku().sliceEq,A=ku().readUInt32BE,E=wC(),e=s_(),t=h("ftyp");H.exports=function(r){if(x(r,4,t)){var i=E.unbox(r,0);if(i){var a=E.getMimeType(i.data);if(a){for(var o,n=i.end;;){var s=E.unbox(r,n);if(!s)break;if(n=s.end,s.boxtype==="mdat")return;if(s.boxtype==="meta"){o=s.data;break}}if(o){var c=E.readSizeFromMeta(o);if(c){var f={width:c.width,height:c.height,type:a.type,mime:a.mime,wUnits:"px",hUnits:"px"};if(c.variants.length>1&&(f.variants=c.variants),c.orientation&&(f.orientation=c.orientation),c.exif_location&&c.exif_location.offset+c.exif_location.length<=r.length){var p=A(r,c.exif_location.offset),v=r.slice(c.exif_location.offset+p+4,c.exif_location.offset+c.exif_location.length),T=e.get_orientation(v);T>0&&(f.orientation=T)}return f}}}}}}}}),AC=He({"node_modules/probe-image-size/lib/parse_sync/bmp.js"(Y,H){var h=ku().str2arr,x=ku().sliceEq,A=ku().readUInt16LE,E=h("BM");H.exports=function(e){if(!(e.length<26)&&x(e,0,E))return{width:A(e,18),height:A(e,22),type:"bmp",mime:"image/bmp",wUnits:"px",hUnits:"px"}}}}),SC=He({"node_modules/probe-image-size/lib/parse_sync/gif.js"(Y,H){var h=ku().str2arr,x=ku().sliceEq,A=ku().readUInt16LE,E=h("GIF87a"),e=h("GIF89a");H.exports=function(t){if(!(t.length<10)&&!(!x(t,0,E)&&!x(t,0,e)))return{width:A(t,6),height:A(t,8),type:"gif",mime:"image/gif",wUnits:"px",hUnits:"px"}}}}),MC=He({"node_modules/probe-image-size/lib/parse_sync/ico.js"(Y,H){var h=ku().readUInt16LE,x=0,A=1,E=16;H.exports=function(e){var t=h(e,0),r=h(e,2),i=h(e,4);if(!(t!==x||r!==A||!i)){for(var a=[],o={width:0,height:0},n=0;no.width||c>o.height)&&(o=f)}return{width:o.width,height:o.height,variants:a,type:"ico",mime:"image/x-icon",wUnits:"px",hUnits:"px"}}}}}),EC=He({"node_modules/probe-image-size/lib/parse_sync/jpeg.js"(Y,H){var h=ku().readUInt16BE,x=ku().str2arr,A=ku().sliceEq,E=s_(),e=x("Exif\0\0");H.exports=function(t){if(!(t.length<2)&&!(t[0]!==255||t[1]!==216||t[2]!==255))for(var r=2;;){for(;;){if(t.length-r<2)return;if(t[r++]===255)break}for(var i=t[r++],a;i===255;)i=t[r++];if(208<=i&&i<=217||i===1)a=0;else if(192<=i&&i<=254){if(t.length-r<2)return;a=h(t,r)-2,r+=2}else return;if(i===217||i===218)return;var o;if(i===225&&a>=10&&A(t,r,e)&&(o=E.get_orientation(t.slice(r+6,r+a))),a>=5&&192<=i&&i<=207&&i!==196&&i!==200&&i!==204){if(t.length-r0&&(n.orientation=o),n}r+=a}}}}),kC=He({"node_modules/probe-image-size/lib/parse_sync/png.js"(Y,H){var h=ku().str2arr,x=ku().sliceEq,A=ku().readUInt32BE,E=h(`‰PNG\r - -`),e=h("IHDR");H.exports=function(t){if(!(t.length<24)&&x(t,0,E)&&x(t,12,e))return{width:A(t,16),height:A(t,20),type:"png",mime:"image/png",wUnits:"px",hUnits:"px"}}}}),CC=He({"node_modules/probe-image-size/lib/parse_sync/psd.js"(Y,H){var h=ku().str2arr,x=ku().sliceEq,A=ku().readUInt32BE,E=h("8BPS\0");H.exports=function(e){if(!(e.length<22)&&x(e,0,E))return{width:A(e,18),height:A(e,14),type:"psd",mime:"image/vnd.adobe.photoshop",wUnits:"px",hUnits:"px"}}}}),LC=He({"node_modules/probe-image-size/lib/parse_sync/svg.js"(Y,H){function h(s){return s===32||s===9||s===13||s===10}function x(s){return typeof s=="number"&&isFinite(s)&&s>0}function A(s){var c=0,f=s.length;for(s[0]===239&&s[1]===187&&s[2]===191&&(c=3);c]*>/,e=/^<([-_.:a-zA-Z0-9]+:)?svg\s/,t=/[^-]\bwidth="([^%]+?)"|[^-]\bwidth='([^%]+?)'/,r=/\bheight="([^%]+?)"|\bheight='([^%]+?)'/,i=/\bview[bB]ox="(.+?)"|\bview[bB]ox='(.+?)'/,a=/in$|mm$|cm$|pt$|pc$|px$|em$|ex$/;function o(s){var c=s.match(t),f=s.match(r),p=s.match(i);return{width:c&&(c[1]||c[2]),height:f&&(f[1]||f[2]),viewbox:p&&(p[1]||p[2])}}function n(s){return a.test(s)?s.match(a)[0]:"px"}H.exports=function(s){if(A(s)){for(var c="",f=0;f>14&16383)+1,type:"webp",mime:"image/webp",wUnits:"px",hUnits:"px"}}}function o(n,s){return{width:(n[s+6]<<16|n[s+5]<<8|n[s+4])+1,height:(n[s+9]<n.length)){for(;s+8=10?c=c||i(n,s+8):v==="VP8L"&&T>=9?c=c||a(n,s+8):v==="VP8X"&&T>=10?c=c||o(n,s+8):v==="EXIF"&&(f=e.get_orientation(n.slice(s+8,s+8+T)),s=1/0),s+=8+T}if(c)return f>0&&(c.orientation=f),c}}}}}),RC=He({"node_modules/probe-image-size/lib/parsers_sync.js"(Y,H){H.exports={avif:TC(),bmp:AC(),gif:SC(),ico:MC(),jpeg:EC(),png:kC(),psd:CC(),svg:LC(),tiff:PC(),webp:IC()}}}),DC=He({"node_modules/probe-image-size/sync.js"(Y,H){var h=RC();function x(A){for(var E=Object.keys(h),e=0;e0;)R=c.c2p(M+B*u),B--;for(B=0;z===void 0&&B0;)F=f.c2p(_+B*g),B--;if(Rq[0];if(J||ee){var Z=y+P/2,se=z+N/2;ie+="transform:"+A(Z+"px",se+"px")+"scale("+(J?-1:1)+","+(ee?-1:1)+")"+A(-Z+"px",-se+"px")+";"}}ue.attr("style",ie);var Q=new Promise(function(V){if(m._hasZ)V();else if(m._hasSource)if(m._canvas&&m._canvas.el.width===b&&m._canvas.el.height===d&&m._canvas.source===m.source)V();else{var re=document.createElement("canvas");re.width=b,re.height=d;var ae=re.getContext("2d",{willReadFrequently:!0});m._image=m._image||new Image;var fe=m._image;fe.onload=function(){ae.drawImage(fe,0,0),m._canvas={el:re,source:m.source},V()},fe.setAttribute("src",m.source)}}).then(function(){var V,re;if(m._hasZ)re=te(function(xe,Ae){var Pe=S[Ae][xe];return x.isTypedArray(Pe)&&(Pe=Array.from(Pe)),Pe}),V=re.toDataURL("image/png");else if(m._hasSource)if(w)V=m.source;else{var ae=m._canvas.el.getContext("2d",{willReadFrequently:!0}),fe=ae.getImageData(0,0,b,d).data;re=te(function(xe,Ae){var Pe=4*(Ae*b+xe);return[fe[Pe],fe[Pe+1],fe[Pe+2],fe[Pe+3]]}),V=re.toDataURL("image/png")}ue.attr({"xlink:href":V,height:N,width:P,x:y,y:z})});a._promises.push(Q)})}}}),BC=He({"src/traces/image/style.js"(Y,H){var h=yi();H.exports=function(A){h.select(A).selectAll(".im image").style("opacity",function(E){return E[0].trace.opacity})}}}),NC=He({"src/traces/image/hover.js"(Y,H){var h=xc(),x=Qr(),A=x.isArrayOrTypedArray,E=Q0();H.exports=function(t,r,i){var a=t.cd[0],o=a.trace,n=t.xa,s=t.ya;if(!(h.inbox(r-a.x0,r-(a.x0+a.w*o.dx),0)>0||h.inbox(i-a.y0,i-(a.y0+a.h*o.dy),0)>0)){var c=Math.floor((r-a.x0)/o.dx),f=Math.floor(Math.abs(i-a.y0)/o.dy),p;if(o._hasZ?p=a.z[f][c]:o._hasSource&&(p=o._canvas.el.getContext("2d",{willReadFrequently:!0}).getImageData(c,f,1,1).data),!!p){var v=a.hi||o.hoverinfo,T;if(v){var l=v.split("+");l.indexOf("all")!==-1&&(l=["color"]),l.indexOf("color")!==-1&&(T=!0)}var m=E.colormodel[o.colormodel],w=m.colormodel||o.colormodel,S=w.length,M=o._scaler(p),_=m.suffix,b=[];(o.hovertemplate||T)&&(b.push("["+[M[0]+_[0],M[1]+_[1],M[2]+_[2]].join(", ")),S===4&&b.push(", "+M[3]+_[3]),b.push("]"),b=b.join(""),t.extraText=w.toUpperCase()+": "+b);var d;A(o.hovertext)&&A(o.hovertext[f])?d=o.hovertext[f][c]:A(o.text)&&A(o.text[f])&&(d=o.text[f][c]);var u=s.c2p(a.y0+(f+.5)*o.dy),g=a.x0+(c+.5)*o.dx,y=a.y0+(f+.5)*o.dy,R="["+p.slice(0,o.colormodel.length).join(", ")+"]";return[x.extendFlat(t,{index:[f,c],x0:n.c2p(a.x0+c*o.dx),x1:n.c2p(a.x0+(c+1)*o.dx),y0:u,y1:u,color:M,xVal:g,xLabelVal:g,yVal:y,yLabelVal:y,zLabelVal:R,text:d,hovertemplateLabels:{zLabel:R,colorLabel:b,"color[0]Label":M[0]+_[0],"color[1]Label":M[1]+_[1],"color[2]Label":M[2]+_[2],"color[3]Label":M[3]+_[3]}})]}}}}}),UC=He({"src/traces/image/event_data.js"(Y,H){H.exports=function(x,A){return"xVal"in A&&(x.x=A.xVal),"yVal"in A&&(x.y=A.yVal),A.xa&&(x.xaxis=A.xa),A.ya&&(x.yaxis=A.ya),x.color=A.color,x.colormodel=A.trace.colormodel,x.z||(x.z=A.color),x}}}),jC=He({"src/traces/image/index.js"(Y,H){H.exports={attributes:i2(),supplyDefaults:Tk(),calc:FC(),plot:OC(),style:BC(),hoverPoints:NC(),eventData:UC(),moduleType:"trace",name:"image",basePlotModule:cf(),categories:["cartesian","svg","2dMap","noSortingByValue"],animatable:!1,meta:{}}}}),VC=He({"lib/image.js"(Y,H){H.exports=jC()}}),Bp=He({"src/traces/pie/attributes.js"(Y,H){var h=Ll(),x=Ku().attributes,A=Mu(),E=mf(),e=us().hovertemplateAttrs,t=us().texttemplateAttrs,r=Po().extendFlat,i=Yf().pattern,a=A({editType:"plot",arrayOk:!0,colorEditType:"plot"});H.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:E.defaultLine,arrayOk:!0,editType:"style"},width:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"style"},editType:"calc"},pattern:i,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:r({},h.hoverinfo,{flags:["label","text","value","percent","name"]}),hovertemplate:e({},{keys:["label","color","value","percent","text"]}),texttemplate:t({editType:"plot"},{keys:["label","color","value","percent","text"]}),textposition:{valType:"enumerated",values:["inside","outside","auto","none"],dflt:"auto",arrayOk:!0,editType:"plot"},textfont:r({},a,{}),insidetextorientation:{valType:"enumerated",values:["horizontal","radial","tangential","auto"],dflt:"auto",editType:"plot"},insidetextfont:r({},a,{}),outsidetextfont:r({},a,{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},title:{text:{valType:"string",dflt:"",editType:"plot"},font:r({},a,{}),position:{valType:"enumerated",values:["top left","top center","top right","middle center","bottom left","bottom center","bottom right"],editType:"plot"},editType:"plot"},domain:x({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"}}}}),Np=He({"src/traces/pie/defaults.js"(Y,H){var h=Vi(),x=Qr(),A=Bp(),E=Ku().defaults,e=Yh().handleText,t=Qr().coercePattern;function r(o,n){var s=x.isArrayOrTypedArray(o),c=x.isArrayOrTypedArray(n),f=Math.min(s?o.length:1/0,c?n.length:1/0);if(isFinite(f)||(f=0),f&&c){for(var p,v=0;v0){p=!0;break}}p||(f=0)}return{hasLabels:s,hasValues:c,len:f}}function i(o,n,s,c,f){var p=c("marker.line.width");p&&c("marker.line.color",f?void 0:s.paper_bgcolor);var v=c("marker.colors");t(c,"marker.pattern",v),o.marker&&!n.marker.pattern.fgcolor&&(n.marker.pattern.fgcolor=o.marker.colors),n.marker.pattern.bgcolor||(n.marker.pattern.bgcolor=s.paper_bgcolor)}function a(o,n,s,c){function f(y,R){return x.coerce(o,n,A,y,R)}var p=f("labels"),v=f("values"),T=r(p,v),l=T.len;if(n._hasLabels=T.hasLabels,n._hasValues=T.hasValues,!n._hasLabels&&n._hasValues&&(f("label0"),f("dlabel")),!l){n.visible=!1;return}n._length=l,i(o,n,c,f,!0),f("scalegroup");var m=f("text"),w=f("texttemplate"),S;if(w||(S=f("textinfo",x.isArrayOrTypedArray(m)?"text+percent":"percent")),f("hovertext"),f("hovertemplate"),w||S&&S!=="none"){var M=f("textposition");e(o,n,c,f,M,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1});var _=Array.isArray(M)||M==="auto",b=_||M==="outside";b&&f("automargin"),(M==="inside"||M==="auto"||Array.isArray(M))&&f("insidetextorientation")}else S==="none"&&f("textposition","none");E(n,c,f);var d=f("hole"),u=f("title.text");if(u){var g=f("title.position",d?"middle center":"top center");!d&&g==="middle center"&&(n.title.position="top center"),x.coerceFont(f,"title.font",c.font)}f("sort"),f("direction"),f("rotation"),f("pull")}H.exports={handleLabelsAndValues:r,handleMarkerDefaults:i,supplyDefaults:a}}}),l_=He({"src/traces/pie/layout_attributes.js"(Y,H){H.exports={hiddenlabels:{valType:"data_array",editType:"calc"},piecolorway:{valType:"colorlist",editType:"calc"},extendpiecolors:{valType:"boolean",dflt:!0,editType:"calc"}}}}),qC=He({"src/traces/pie/layout_defaults.js"(Y,H){var h=Qr(),x=l_();H.exports=function(E,e){function t(r,i){return h.coerce(E,e,x,r,i)}t("hiddenlabels"),t("piecolorway",e.colorway),t("extendpiecolors")}}}),ng=He({"src/traces/pie/calc.js"(Y,H){var h=Vi(),x=Uf(),A=zi(),E={};function e(a,o){var n=[],s=a._fullLayout,c=s.hiddenlabels||[],f=o.labels,p=o.marker.colors||[],v=o.values,T=o._length,l=o._hasValues&&T,m,w;if(o.dlabel)for(f=new Array(T),m=0;m=0});var R=o.type==="funnelarea"?b:o.sort;return R&&n.sort(function(I,z){return z.v-I.v}),n[0]&&(n[0].vTotal=_),n}function t(a){return function(n,s){return!n||(n=x(n),!n.isValid())?!1:(n=A.addOpacity(n,n.getAlpha()),a[s]||(a[s]=n),n)}}function r(a,o){var n=(o||{}).type;n||(n="pie");var s=a._fullLayout,c=a.calcdata,f=s[n+"colorway"],p=s["_"+n+"colormap"];s["extend"+n+"colors"]&&(f=i(f,E));for(var v=0,T=0;T0&&(et+=kt*he.pxmid[0],nt+=kt*he.pxmid[1])}he.cxFinal=et,he.cyFinal=nt;function Ut(yt,Fe,We,Oe){var de=Oe*(Fe[0]-yt[0]),me=Oe*(Fe[1]-yt[1]);return"a"+Oe*fe.r+","+Oe*fe.r+" 0 "+he.largeArc+(We?" 1 ":" 0 ")+de+","+me}var Yt=xe.hole;if(he.v===fe.vTotal){var vr="M"+(et+he.px0[0])+","+(nt+he.px0[1])+Ut(he.px0,he.pxmid,!0,1)+Ut(he.pxmid,he.px0,!0,1)+"Z";Yt?Et.attr("d","M"+(et+Yt*he.px0[0])+","+(nt+Yt*he.px0[1])+Ut(he.px0,he.pxmid,!1,Yt)+Ut(he.pxmid,he.px0,!1,Yt)+"Z"+vr):Et.attr("d",vr)}else{var hr=Ut(he.px0,he.px1,!0,1);if(Yt){var Rr=1-Yt;Et.attr("d","M"+(et+Yt*he.px1[0])+","+(nt+Yt*he.px1[1])+Ut(he.px1,he.px0,!1,Yt)+"l"+Rr*he.px0[0]+","+Rr*he.px0[1]+hr+"Z")}else Et.attr("d","M"+et+","+nt+"l"+he.px0[0]+","+he.px0[1]+hr+"Z")}le(J,he,fe);var dr=f.castOption(xe.textposition,he.pts),wr=Ke.selectAll("g.slicetext").data(he.text&&dr!=="none"?[0]:[]);wr.enter().append("g").classed("slicetext",!0),wr.exit().remove(),wr.each(function(){var yt=t.ensureSingle(h.select(this),"text","",function(Xe){Xe.attr("data-notex",1)}),Fe=t.ensureUniformFontSize(J,dr==="outside"?w(xe,he,se.font):S(xe,he,se.font));yt.text(he.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(e.font,Fe).call(a.convertToTspans,J);var We=e.bBox(yt.node()),Oe;if(dr==="outside")Oe=z(We,he);else if(Oe=_(We,he,fe),dr==="auto"&&Oe.scale<1){var de=t.ensureUniformFontSize(J,xe.outsidetextfont);yt.call(e.font,de),We=e.bBox(yt.node()),Oe=z(We,he)}var me=Oe.textPosAngle,be=me===void 0?he.pxmid:ie(fe.r,me);if(Oe.targetX=et+be[0]*Oe.rCenter+(Oe.x||0),Oe.targetY=nt+be[1]*Oe.rCenter+(Oe.y||0),q(Oe,We),Oe.outside){var Ie=Oe.targetY;he.yLabelMin=Ie-We.height/2,he.yLabelMid=Ie,he.yLabelMax=Ie+We.height/2,he.labelExtraX=0,he.labelExtraY=0,Ce=!0}Oe.fontSize=Fe.size,n(xe.type,Oe,se),re[De].transform=Oe,t.setTransormAndDisplay(yt,Oe)})});var je=h.select(this).selectAll("g.titletext").data(xe.title.text?[0]:[]);if(je.enter().append("g").classed("titletext",!0),je.exit().remove(),je.each(function(){var he=t.ensureSingle(h.select(this),"text","",function(nt){nt.attr("data-notex",1)}),De=xe.title.text;xe._meta&&(De=t.templateString(De,xe._meta)),he.text(De).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(e.font,xe.title.font).call(a.convertToTspans,J);var et;xe.title.position==="middle center"?et=F(fe):et=B(fe,Q),he.attr("transform",i(et.x,et.y)+r(Math.min(1,et.scale))+i(et.tx,et.ty))}),Ce&&U(Pe,xe),l(Ae,xe),Ce&&xe.automargin){var at=e.bBox(ae.node()),tt=xe.domain,Je=Q.w*(tt.x[1]-tt.x[0]),Ze=Q.h*(tt.y[1]-tt.y[0]),Me=(.5*Je-fe.r)/Q.w,we=(.5*Ze-fe.r)/Q.h;x.autoMargin(J,"pie."+xe.uid+".automargin",{xl:tt.x[0]-Me,xr:tt.x[1]+Me,yb:tt.y[0]-we,yt:tt.y[1]+we,l:Math.max(fe.cx-fe.r-at.left,0),r:Math.max(at.right-(fe.cx+fe.r),0),b:Math.max(at.bottom-(fe.cy+fe.r),0),t:Math.max(fe.cy-fe.r-at.top,0),pad:5})}})});setTimeout(function(){V.selectAll("tspan").each(function(){var re=h.select(this);re.attr("dy")&&re.attr("dy",re.attr("dy"))})},0)}function l(J,ee){J.each(function(Z){var se=h.select(this);if(!Z.labelExtraX&&!Z.labelExtraY){se.select("path.textline").remove();return}var Q=se.select("g.slicetext text");Z.transform.targetX+=Z.labelExtraX,Z.transform.targetY+=Z.labelExtraY,t.setTransormAndDisplay(Q,Z.transform);var V=Z.cxFinal+Z.pxmid[0],re=Z.cyFinal+Z.pxmid[1],ae="M"+V+","+re,fe=(Z.yLabelMax-Z.yLabelMin)*(Z.pxmid[0]<0?-1:1)/4;if(Z.labelExtraX){var xe=Z.labelExtraX*Z.pxmid[1]/Z.pxmid[0],Ae=Z.yLabelMid+Z.labelExtraY-(Z.cyFinal+Z.pxmid[1]);Math.abs(xe)>Math.abs(Ae)?ae+="l"+Ae*Z.pxmid[0]/Z.pxmid[1]+","+Ae+"H"+(V+Z.labelExtraX+fe):ae+="l"+Z.labelExtraX+","+xe+"v"+(Ae-xe)+"h"+fe}else ae+="V"+(Z.yLabelMid+Z.labelExtraY)+"h"+fe;t.ensureSingle(se,"path","textline").call(E.stroke,ee.outsidetextfont.color).attr({"stroke-width":Math.min(2,ee.outsidetextfont.size/8),d:ae,fill:"none"})})}function m(J,ee,Z){var se=Z[0],Q=se.cx,V=se.cy,re=se.trace,ae=re.type==="funnelarea";"_hasHoverLabel"in re||(re._hasHoverLabel=!1),"_hasHoverEvent"in re||(re._hasHoverEvent=!1),J.on("mouseover",function(fe){var xe=ee._fullLayout,Ae=ee._fullData[re.index];if(!(ee._dragging||xe.hovermode===!1)){var Pe=Ae.hoverinfo;if(Array.isArray(Pe)&&(Pe=A.castHoverinfo({hoverinfo:[f.castOption(Pe,fe.pts)],_module:re._module},xe,0)),Pe==="all"&&(Pe="label+text+value+percent+name"),Ae.hovertemplate||Pe!=="none"&&Pe!=="skip"&&Pe){var Ce=fe.rInscribed||0,je=Q+fe.pxmid[0]*(1-Ce),at=V+fe.pxmid[1]*(1-Ce),tt=xe.separators,Je=[];if(Pe&&Pe.indexOf("label")!==-1&&Je.push(fe.label),fe.text=f.castOption(Ae.hovertext||Ae.text,fe.pts),Pe&&Pe.indexOf("text")!==-1){var Ze=fe.text;t.isValidTextValue(Ze)&&Je.push(Ze)}fe.value=fe.v,fe.valueLabel=f.formatPieValue(fe.v,tt),Pe&&Pe.indexOf("value")!==-1&&Je.push(fe.valueLabel),fe.percent=fe.v/se.vTotal,fe.percentLabel=f.formatPiePercent(fe.percent,tt),Pe&&Pe.indexOf("percent")!==-1&&Je.push(fe.percentLabel);var Me=Ae.hoverlabel,we=Me.font,he=[];A.loneHover({trace:re,x0:je-Ce*se.r,x1:je+Ce*se.r,y:at,_x0:ae?Q+fe.TL[0]:je-Ce*se.r,_x1:ae?Q+fe.TR[0]:je+Ce*se.r,_y0:ae?V+fe.TL[1]:at-Ce*se.r,_y1:ae?V+fe.BL[1]:at+Ce*se.r,text:Je.join("
"),name:Ae.hovertemplate||Pe.indexOf("name")!==-1?Ae.name:void 0,idealAlign:fe.pxmid[0]<0?"left":"right",color:f.castOption(Me.bgcolor,fe.pts)||fe.color,borderColor:f.castOption(Me.bordercolor,fe.pts),fontFamily:f.castOption(we.family,fe.pts),fontSize:f.castOption(we.size,fe.pts),fontColor:f.castOption(we.color,fe.pts),nameLength:f.castOption(Me.namelength,fe.pts),textAlign:f.castOption(Me.align,fe.pts),hovertemplate:f.castOption(Ae.hovertemplate,fe.pts),hovertemplateLabels:fe,eventData:[p(fe,Ae)]},{container:xe._hoverlayer.node(),outerContainer:xe._paper.node(),gd:ee,inOut_bbox:he}),fe.bbox=he[0],re._hasHoverLabel=!0}re._hasHoverEvent=!0,ee.emit("plotly_hover",{points:[p(fe,Ae)],event:h.event})}}),J.on("mouseout",function(fe){var xe=ee._fullLayout,Ae=ee._fullData[re.index],Pe=h.select(this).datum();re._hasHoverEvent&&(fe.originalEvent=h.event,ee.emit("plotly_unhover",{points:[p(Pe,Ae)],event:h.event}),re._hasHoverEvent=!1),re._hasHoverLabel&&(A.loneUnhover(xe._hoverlayer.node()),re._hasHoverLabel=!1)}),J.on("click",function(fe){var xe=ee._fullLayout,Ae=ee._fullData[re.index];ee._dragging||xe.hovermode===!1||(ee._hoverdata=[p(fe,Ae)],A.click(ee,h.event))})}function w(J,ee,Z){var se=f.castOption(J.outsidetextfont.color,ee.pts)||f.castOption(J.textfont.color,ee.pts)||Z.color,Q=f.castOption(J.outsidetextfont.family,ee.pts)||f.castOption(J.textfont.family,ee.pts)||Z.family,V=f.castOption(J.outsidetextfont.size,ee.pts)||f.castOption(J.textfont.size,ee.pts)||Z.size,re=f.castOption(J.outsidetextfont.weight,ee.pts)||f.castOption(J.textfont.weight,ee.pts)||Z.weight,ae=f.castOption(J.outsidetextfont.style,ee.pts)||f.castOption(J.textfont.style,ee.pts)||Z.style,fe=f.castOption(J.outsidetextfont.variant,ee.pts)||f.castOption(J.textfont.variant,ee.pts)||Z.variant,xe=f.castOption(J.outsidetextfont.textcase,ee.pts)||f.castOption(J.textfont.textcase,ee.pts)||Z.textcase,Ae=f.castOption(J.outsidetextfont.lineposition,ee.pts)||f.castOption(J.textfont.lineposition,ee.pts)||Z.lineposition,Pe=f.castOption(J.outsidetextfont.shadow,ee.pts)||f.castOption(J.textfont.shadow,ee.pts)||Z.shadow;return{color:se,family:Q,size:V,weight:re,style:ae,variant:fe,textcase:xe,lineposition:Ae,shadow:Pe}}function S(J,ee,Z){var se=f.castOption(J.insidetextfont.color,ee.pts);!se&&J._input.textfont&&(se=f.castOption(J._input.textfont.color,ee.pts));var Q=f.castOption(J.insidetextfont.family,ee.pts)||f.castOption(J.textfont.family,ee.pts)||Z.family,V=f.castOption(J.insidetextfont.size,ee.pts)||f.castOption(J.textfont.size,ee.pts)||Z.size,re=f.castOption(J.insidetextfont.weight,ee.pts)||f.castOption(J.textfont.weight,ee.pts)||Z.weight,ae=f.castOption(J.insidetextfont.style,ee.pts)||f.castOption(J.textfont.style,ee.pts)||Z.style,fe=f.castOption(J.insidetextfont.variant,ee.pts)||f.castOption(J.textfont.variant,ee.pts)||Z.variant,xe=f.castOption(J.insidetextfont.textcase,ee.pts)||f.castOption(J.textfont.textcase,ee.pts)||Z.textcase,Ae=f.castOption(J.insidetextfont.lineposition,ee.pts)||f.castOption(J.textfont.lineposition,ee.pts)||Z.lineposition,Pe=f.castOption(J.insidetextfont.shadow,ee.pts)||f.castOption(J.textfont.shadow,ee.pts)||Z.shadow;return{color:se||E.contrast(ee.color),family:Q,size:V,weight:re,style:ae,variant:fe,textcase:xe,lineposition:Ae,shadow:Pe}}function M(J,ee){for(var Z,se,Q=0;Q=-4;Me-=2)Ze(Math.PI*Me,"tan");for(Me=4;Me>=-4;Me-=2)Ze(Math.PI*(Me+1),"tan")}if(Pe||je){for(Me=4;Me>=-4;Me-=2)Ze(Math.PI*(Me+1.5),"rad");for(Me=4;Me>=-4;Me-=2)Ze(Math.PI*(Me+.5),"rad")}}if(ae||at||Pe){var we=Math.sqrt(J.width*J.width+J.height*J.height);if(Je={scale:Q*se*2/we,rCenter:1-Q,rotate:0},Je.textPosAngle=(ee.startangle+ee.stopangle)/2,Je.scale>=1)return Je;tt.push(Je)}(at||je)&&(Je=d(J,se,re,fe,xe),Je.textPosAngle=(ee.startangle+ee.stopangle)/2,tt.push(Je)),(at||Ce)&&(Je=u(J,se,re,fe,xe),Je.textPosAngle=(ee.startangle+ee.stopangle)/2,tt.push(Je));for(var he=0,De=0,et=0;et=1)break}return tt[he]}function b(J,ee){var Z=J.startangle,se=J.stopangle;return Z>ee&&ee>se||Z0?1:-1)/2,y:V/(1+Z*Z/(se*se)),outside:!0}}function F(J){var ee=Math.sqrt(J.titleBox.width*J.titleBox.width+J.titleBox.height*J.titleBox.height);return{x:J.cx,y:J.cy,scale:J.trace.hole*J.r*2/ee,tx:0,ty:-J.titleBox.height/2+J.trace.title.font.size}}function B(J,ee){var Z=1,se=1,Q,V=J.trace,re={x:J.cx,y:J.cy},ae={tx:0,ty:0};ae.ty+=V.title.font.size,Q=N(V),V.title.position.indexOf("top")!==-1?(re.y-=(1+Q)*J.r,ae.ty-=J.titleBox.height):V.title.position.indexOf("bottom")!==-1&&(re.y+=(1+Q)*J.r);var fe=O(J.r,J.trace.aspectratio),xe=ee.w*(V.domain.x[1]-V.domain.x[0])/2;return V.title.position.indexOf("left")!==-1?(xe=xe+fe,re.x-=(1+Q)*fe,ae.tx+=J.titleBox.width/2):V.title.position.indexOf("center")!==-1?xe*=2:V.title.position.indexOf("right")!==-1&&(xe=xe+fe,re.x+=(1+Q)*fe,ae.tx-=J.titleBox.width/2),Z=xe/J.titleBox.width,se=P(J,ee)/J.titleBox.height,{x:re.x,y:re.y,scale:Math.min(Z,se),tx:ae.tx,ty:ae.ty}}function O(J,ee){return J/(ee===void 0?1:ee)}function P(J,ee){var Z=J.trace,se=ee.h*(Z.domain.y[1]-Z.domain.y[0]);return Math.min(J.titleBox.height,se/2)}function N(J){var ee=J.pull;if(!ee)return 0;var Z;if(t.isArrayOrTypedArray(ee))for(ee=0,Z=0;Zee&&(ee=J.pull[Z]);return ee}function U(J,ee){var Z,se,Q,V,re,ae,fe,xe,Ae,Pe,Ce,je,at;function tt(we,he){return we.pxmid[1]-he.pxmid[1]}function Je(we,he){return he.pxmid[1]-we.pxmid[1]}function Ze(we,he){he||(he={});var De=he.labelExtraY+(se?he.yLabelMax:he.yLabelMin),et=se?we.yLabelMin:we.yLabelMax,nt=se?we.yLabelMax:we.yLabelMin,Ke=we.cyFinal+re(we.px0[1],we.px1[1]),Et=De-et,kt,Ut,Yt,vr,hr,Rr;if(Et*fe>0&&(we.labelExtraY=Et),!!t.isArrayOrTypedArray(ee.pull))for(Ut=0;Ut=(f.castOption(ee.pull,Yt.pts)||0))&&((we.pxmid[1]-Yt.pxmid[1])*fe>0?(vr=Yt.cyFinal+re(Yt.px0[1],Yt.px1[1]),Et=vr-et-we.labelExtraY,Et*fe>0&&(we.labelExtraY+=Et)):(nt+we.labelExtraY-Ke)*fe>0&&(kt=3*ae*Math.abs(Ut-Pe.indexOf(we)),hr=Yt.cxFinal+V(Yt.px0[0],Yt.px1[0]),Rr=hr+kt-(we.cxFinal+we.pxmid[0])-we.labelExtraX,Rr*ae>0&&(we.labelExtraX+=Rr)))}for(se=0;se<2;se++)for(Q=se?tt:Je,re=se?Math.max:Math.min,fe=se?1:-1,Z=0;Z<2;Z++){for(V=Z?Math.max:Math.min,ae=Z?1:-1,xe=J[se][Z],xe.sort(Q),Ae=J[1-se][Z],Pe=Ae.concat(xe),je=[],Ce=0;Ce1?(xe=Z.r,Ae=xe/Q.aspectratio):(Ae=Z.r,xe=Ae*Q.aspectratio),xe*=(1+Q.baseratio)/2,fe=xe*Ae}re=Math.min(re,fe/Z.vTotal)}for(se=0;seee.vTotal/2?1:0,xe.halfangle=Math.PI*Math.min(xe.v/ee.vTotal,.5),xe.ring=1-se.hole,xe.rInscribed=I(xe,ee))}function ie(J,ee){return[J*Math.sin(ee),-J*Math.cos(ee)]}function le(J,ee,Z){var se=J._fullLayout,Q=Z.trace,V=Q.texttemplate,re=Q.textinfo;if(!V&&re&&re!=="none"){var ae=re.split("+"),fe=function(he){return ae.indexOf(he)!==-1},xe=fe("label"),Ae=fe("text"),Pe=fe("value"),Ce=fe("percent"),je=se.separators,at;if(at=xe?[ee.label]:[],Ae){var tt=f.getFirstFilled(Q.text,ee.pts);v(tt)&&at.push(tt)}Pe&&at.push(f.formatPieValue(ee.v,je)),Ce&&at.push(f.formatPiePercent(ee.v/Z.vTotal,je)),ee.text=at.join("
")}function Je(he){return{label:he.label,value:he.v,valueLabel:f.formatPieValue(he.v,se.separators),percent:he.v/Z.vTotal,percentLabel:f.formatPiePercent(he.v/Z.vTotal,se.separators),color:he.color,text:he.text,customdata:t.castOption(Q,he.i,"customdata")}}if(V){var Ze=t.castOption(Q,ee.i,"texttemplate");if(!Ze)ee.text="";else{var Me=Je(ee),we=f.getFirstFilled(Q.text,ee.pts);(v(we)||we==="")&&(Me.text=we),ee.text=t.texttemplateString(Ze,Me,J._fullLayout._d3locale,Me,Q._meta||{})}}}function q(J,ee){var Z=J.rotate*Math.PI/180,se=Math.cos(Z),Q=Math.sin(Z),V=(ee.left+ee.right)/2,re=(ee.top+ee.bottom)/2;J.textX=V*se-re*Q,J.textY=V*Q+re*se,J.noCenter=!0}H.exports={plot:T,formatSliceLabel:le,transformInsideText:_,determineInsideTextFont:S,positionTitleOutside:B,prerenderTitles:M,layoutAreas:X,attachFxHandlers:m,computeTransform:q}}}),HC=He({"src/traces/pie/style.js"(Y,H){var h=yi(),x=V0(),A=gh().resizeText;H.exports=function(e){var t=e._fullLayout._pielayer.selectAll(".trace");A(e,t,"pie"),t.each(function(r){var i=r[0],a=i.trace,o=h.select(this);o.style({opacity:a.opacity}),o.selectAll("path.surface").each(function(n){h.select(this).call(x,n,a,e)})})}}}),WC=He({"src/traces/pie/base_plot.js"(Y){var H=$u();Y.name="pie",Y.plot=function(h,x,A,E){H.plotBasePlot(Y.name,h,x,A,E)},Y.clean=function(h,x,A,E){H.cleanBasePlot(Y.name,h,x,A,E)}}}),XC=He({"src/traces/pie/index.js"(Y,H){H.exports={attributes:Bp(),supplyDefaults:Np().supplyDefaults,supplyLayoutDefaults:qC(),layoutAttributes:l_(),calc:ng().calc,crossTraceCalc:ng().crossTraceCalc,plot:u_().plot,style:HC(),styleOne:V0(),moduleType:"trace",name:"pie",basePlotModule:WC(),categories:["pie-like","pie","showLegend"],meta:{}}}}),ZC=He({"lib/pie.js"(Y,H){H.exports=XC()}}),YC=He({"src/traces/sunburst/base_plot.js"(Y){var H=$u();Y.name="sunburst",Y.plot=function(h,x,A,E){H.plotBasePlot(Y.name,h,x,A,E)},Y.clean=function(h,x,A,E){H.cleanBasePlot(Y.name,h,x,A,E)}}}),L2=He({"src/traces/sunburst/constants.js"(Y,H){H.exports={CLICK_TRANSITION_TIME:750,CLICK_TRANSITION_EASING:"linear",eventDataKeys:["currentPath","root","entry","percentRoot","percentEntry","percentParent"]}}}),Tm=He({"src/traces/sunburst/attributes.js"(Y,H){var h=Ll(),x=us().hovertemplateAttrs,A=us().texttemplateAttrs,E=eu(),e=Ku().attributes,t=Bp(),r=L2(),i=Po().extendFlat,a=Yf().pattern;H.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:i({colors:{valType:"data_array",editType:"calc"},line:{color:i({},t.marker.line.color,{dflt:null}),width:i({},t.marker.line.width,{dflt:1}),editType:"calc"},pattern:a,editType:"calc"},E("marker",{colorAttr:"colors",anim:!1})),leaf:{opacity:{valType:"number",editType:"style",min:0,max:1},editType:"plot"},text:t.text,textinfo:{valType:"flaglist",flags:["label","text","value","current path","percent root","percent entry","percent parent"],extras:["none"],editType:"plot"},texttemplate:A({editType:"plot"},{keys:r.eventDataKeys.concat(["label","value"])}),hovertext:t.hovertext,hoverinfo:i({},h.hoverinfo,{flags:["label","text","value","name","current path","percent root","percent entry","percent parent"],dflt:"label+text+value+name"}),hovertemplate:x({},{keys:r.eventDataKeys}),textfont:t.textfont,insidetextorientation:t.insidetextorientation,insidetextfont:t.insidetextfont,outsidetextfont:i({},t.outsidetextfont,{}),rotation:{valType:"angle",dflt:0,editType:"plot"},sort:t.sort,root:{color:{valType:"color",editType:"calc",dflt:"rgba(0,0,0,0)"},editType:"calc"},domain:e({name:"sunburst",trace:!0,editType:"calc"})}}}),P2=He({"src/traces/sunburst/layout_attributes.js"(Y,H){H.exports={sunburstcolorway:{valType:"colorlist",editType:"calc"},extendsunburstcolors:{valType:"boolean",dflt:!0,editType:"calc"}}}}),$C=He({"src/traces/sunburst/defaults.js"(Y,H){var h=Qr(),x=Tm(),A=Ku().defaults,E=Yh().handleText,e=Np().handleMarkerDefaults,t=Eu(),r=t.hasColorscale,i=t.handleDefaults;H.exports=function(o,n,s,c){function f(S,M){return h.coerce(o,n,x,S,M)}var p=f("labels"),v=f("parents");if(!p||!p.length||!v||!v.length){n.visible=!1;return}var T=f("values");T&&T.length?f("branchvalues"):f("count"),f("level"),f("maxdepth"),e(o,n,c,f);var l=n._hasColorscale=r(o,"marker","colors")||(o.marker||{}).coloraxis;l&&i(o,n,c,f,{prefix:"marker.",cLetter:"c"}),f("leaf.opacity",l?1:.7);var m=f("text");f("texttemplate"),n.texttemplate||f("textinfo",h.isArrayOrTypedArray(m)?"text+label":"label"),f("hovertext"),f("hovertemplate");var w="auto";E(o,n,c,f,w,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),f("insidetextorientation"),f("sort"),f("rotation"),f("root.color"),A(n,c,f),n._length=null}}}),KC=He({"src/traces/sunburst/layout_defaults.js"(Y,H){var h=Qr(),x=P2();H.exports=function(E,e){function t(r,i){return h.coerce(E,e,x,r,i)}t("sunburstcolorway",e.colorway),t("extendsunburstcolors")}}}),Am=He({"node_modules/d3-hierarchy/dist/d3-hierarchy.js"(Y,H){(function(h,x){typeof Y=="object"&&typeof H<"u"?x(Y):(h=h||self,x(h.d3=h.d3||{}))})(Y,function(h){function x(Oe,de){return Oe.parent===de.parent?1:2}function A(Oe){return Oe.reduce(E,0)/Oe.length}function E(Oe,de){return Oe+de.x}function e(Oe){return 1+Oe.reduce(t,0)}function t(Oe,de){return Math.max(Oe,de.y)}function r(Oe){for(var de;de=Oe.children;)Oe=de[0];return Oe}function i(Oe){for(var de;de=Oe.children;)Oe=de[de.length-1];return Oe}function a(){var Oe=x,de=1,me=1,be=!1;function Ie(Xe){var ht,bt=0;Xe.eachAfter(function(Jt){var mr=Jt.children;mr?(Jt.x=A(mr),Jt.y=e(mr)):(Jt.x=ht?bt+=Oe(Jt,ht):0,Jt.y=0,ht=Jt)});var Ct=r(Xe),Zt=i(Xe),Wt=Ct.x-Oe(Ct,Zt)/2,rr=Zt.x+Oe(Zt,Ct)/2;return Xe.eachAfter(be?function(Jt){Jt.x=(Jt.x-Xe.x)*de,Jt.y=(Xe.y-Jt.y)*me}:function(Jt){Jt.x=(Jt.x-Wt)/(rr-Wt)*de,Jt.y=(1-(Xe.y?Jt.y/Xe.y:1))*me})}return Ie.separation=function(Xe){return arguments.length?(Oe=Xe,Ie):Oe},Ie.size=function(Xe){return arguments.length?(be=!1,de=+Xe[0],me=+Xe[1],Ie):be?null:[de,me]},Ie.nodeSize=function(Xe){return arguments.length?(be=!0,de=+Xe[0],me=+Xe[1],Ie):be?[de,me]:null},Ie}function o(Oe){var de=0,me=Oe.children,be=me&&me.length;if(!be)de=1;else for(;--be>=0;)de+=me[be].value;Oe.value=de}function n(){return this.eachAfter(o)}function s(Oe){var de=this,me,be=[de],Ie,Xe,ht;do for(me=be.reverse(),be=[];de=me.pop();)if(Oe(de),Ie=de.children,Ie)for(Xe=0,ht=Ie.length;Xe=0;--Ie)me.push(be[Ie]);return this}function f(Oe){for(var de=this,me=[de],be=[],Ie,Xe,ht;de=me.pop();)if(be.push(de),Ie=de.children,Ie)for(Xe=0,ht=Ie.length;Xe=0;)me+=be[Ie].value;de.value=me})}function v(Oe){return this.eachBefore(function(de){de.children&&de.children.sort(Oe)})}function T(Oe){for(var de=this,me=l(de,Oe),be=[de];de!==me;)de=de.parent,be.push(de);for(var Ie=be.length;Oe!==me;)be.splice(Ie,0,Oe),Oe=Oe.parent;return be}function l(Oe,de){if(Oe===de)return Oe;var me=Oe.ancestors(),be=de.ancestors(),Ie=null;for(Oe=me.pop(),de=be.pop();Oe===de;)Ie=Oe,Oe=me.pop(),de=be.pop();return Ie}function m(){for(var Oe=this,de=[Oe];Oe=Oe.parent;)de.push(Oe);return de}function w(){var Oe=[];return this.each(function(de){Oe.push(de)}),Oe}function S(){var Oe=[];return this.eachBefore(function(de){de.children||Oe.push(de)}),Oe}function M(){var Oe=this,de=[];return Oe.each(function(me){me!==Oe&&de.push({source:me.parent,target:me})}),de}function _(Oe,de){var me=new y(Oe),be=+Oe.value&&(me.value=Oe.value),Ie,Xe=[me],ht,bt,Ct,Zt;for(de==null&&(de=d);Ie=Xe.pop();)if(be&&(Ie.value=+Ie.data.value),(bt=de(Ie.data))&&(Zt=bt.length))for(Ie.children=new Array(Zt),Ct=Zt-1;Ct>=0;--Ct)Xe.push(ht=Ie.children[Ct]=new y(bt[Ct])),ht.parent=Ie,ht.depth=Ie.depth+1;return me.eachBefore(g)}function b(){return _(this).eachBefore(u)}function d(Oe){return Oe.children}function u(Oe){Oe.data=Oe.data.data}function g(Oe){var de=0;do Oe.height=de;while((Oe=Oe.parent)&&Oe.height<++de)}function y(Oe){this.data=Oe,this.depth=this.height=0,this.parent=null}y.prototype=_.prototype={constructor:y,count:n,each:s,eachAfter:f,eachBefore:c,sum:p,sort:v,path:T,ancestors:m,descendants:w,leaves:S,links:M,copy:b};var R=Array.prototype.slice;function I(Oe){for(var de=Oe.length,me,be;de;)be=Math.random()*de--|0,me=Oe[de],Oe[de]=Oe[be],Oe[be]=me;return Oe}function z(Oe){for(var de=0,me=(Oe=I(R.call(Oe))).length,be=[],Ie,Xe;de0&&me*me>be*be+Ie*Ie}function P(Oe,de){for(var me=0;meCt?(Ie=(Zt+Ct-Xe)/(2*Zt),bt=Math.sqrt(Math.max(0,Ct/Zt-Ie*Ie)),me.x=Oe.x-Ie*be-bt*ht,me.y=Oe.y-Ie*ht+bt*be):(Ie=(Zt+Xe-Ct)/(2*Zt),bt=Math.sqrt(Math.max(0,Xe/Zt-Ie*Ie)),me.x=de.x+Ie*be-bt*ht,me.y=de.y+Ie*ht+bt*be)):(me.x=de.x+me.r,me.y=de.y)}function ie(Oe,de){var me=Oe.r+de.r-1e-6,be=de.x-Oe.x,Ie=de.y-Oe.y;return me>0&&me*me>be*be+Ie*Ie}function le(Oe){var de=Oe._,me=Oe.next._,be=de.r+me.r,Ie=(de.x*me.r+me.x*de.r)/be,Xe=(de.y*me.r+me.y*de.r)/be;return Ie*Ie+Xe*Xe}function q(Oe){this._=Oe,this.next=null,this.previous=null}function J(Oe){if(!(Ie=Oe.length))return 0;var de,me,be,Ie,Xe,ht,bt,Ct,Zt,Wt,rr;if(de=Oe[0],de.x=0,de.y=0,!(Ie>1))return de.r;if(me=Oe[1],de.x=-me.r,me.x=de.r,me.y=0,!(Ie>2))return de.r+me.r;ue(me,de,be=Oe[2]),de=new q(de),me=new q(me),be=new q(be),de.next=be.previous=me,me.next=de.previous=be,be.next=me.previous=de;e:for(bt=3;bt0)throw new Error("cycle");return bt}return me.id=function(be){return arguments.length?(Oe=se(be),me):Oe},me.parentId=function(be){return arguments.length?(de=se(be),me):de},me}function he(Oe,de){return Oe.parent===de.parent?1:2}function De(Oe){var de=Oe.children;return de?de[0]:Oe.t}function et(Oe){var de=Oe.children;return de?de[de.length-1]:Oe.t}function nt(Oe,de,me){var be=me/(de.i-Oe.i);de.c-=be,de.s+=me,Oe.c+=be,de.z+=me,de.m+=me}function Ke(Oe){for(var de=0,me=0,be=Oe.children,Ie=be.length,Xe;--Ie>=0;)Xe=be[Ie],Xe.z+=de,Xe.m+=de,de+=Xe.s+(me+=Xe.c)}function Et(Oe,de,me){return Oe.a.parent===de.parent?Oe.a:me}function kt(Oe,de){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=de}kt.prototype=Object.create(y.prototype);function Ut(Oe){for(var de=new kt(Oe,0),me,be=[de],Ie,Xe,ht,bt;me=be.pop();)if(Xe=me._.children)for(me.children=new Array(bt=Xe.length),ht=bt-1;ht>=0;--ht)be.push(Ie=me.children[ht]=new kt(Xe[ht],ht)),Ie.parent=me;return(de.parent=new kt(null,0)).children=[de],de}function Yt(){var Oe=he,de=1,me=1,be=null;function Ie(Zt){var Wt=Ut(Zt);if(Wt.eachAfter(Xe),Wt.parent.m=-Wt.z,Wt.eachBefore(ht),be)Zt.eachBefore(Ct);else{var rr=Zt,Jt=Zt,mr=Zt;Zt.eachBefore(function(Ga){Ga.xJt.x&&(Jt=Ga),Ga.depth>mr.depth&&(mr=Ga)});var ia=rr===Jt?1:Oe(rr,Jt)/2,Ia=ia-rr.x,La=de/(Jt.x+ia+Ia),Aa=me/(mr.depth||1);Zt.eachBefore(function(Ga){Ga.x=(Ga.x+Ia)*La,Ga.y=Ga.depth*Aa})}return Zt}function Xe(Zt){var Wt=Zt.children,rr=Zt.parent.children,Jt=Zt.i?rr[Zt.i-1]:null;if(Wt){Ke(Zt);var mr=(Wt[0].z+Wt[Wt.length-1].z)/2;Jt?(Zt.z=Jt.z+Oe(Zt._,Jt._),Zt.m=Zt.z-mr):Zt.z=mr}else Jt&&(Zt.z=Jt.z+Oe(Zt._,Jt._));Zt.parent.A=bt(Zt,Jt,Zt.parent.A||rr[0])}function ht(Zt){Zt._.x=Zt.z+Zt.parent.m,Zt.m+=Zt.parent.m}function bt(Zt,Wt,rr){if(Wt){for(var Jt=Zt,mr=Zt,ia=Wt,Ia=Jt.parent.children[0],La=Jt.m,Aa=mr.m,Ga=ia.m,ba=Ia.m,Xa;ia=et(ia),Jt=De(Jt),ia&&Jt;)Ia=De(Ia),mr=et(mr),mr.a=Zt,Xa=ia.z+Ga-Jt.z-La+Oe(ia._,Jt._),Xa>0&&(nt(Et(ia,Zt,rr),Zt,Xa),La+=Xa,Aa+=Xa),Ga+=ia.m,La+=Jt.m,ba+=Ia.m,Aa+=mr.m;ia&&!et(mr)&&(mr.t=ia,mr.m+=Ga-Aa),Jt&&!De(Ia)&&(Ia.t=Jt,Ia.m+=La-ba,rr=Zt)}return rr}function Ct(Zt){Zt.x*=de,Zt.y=Zt.depth*me}return Ie.separation=function(Zt){return arguments.length?(Oe=Zt,Ie):Oe},Ie.size=function(Zt){return arguments.length?(be=!1,de=+Zt[0],me=+Zt[1],Ie):be?null:[de,me]},Ie.nodeSize=function(Zt){return arguments.length?(be=!0,de=+Zt[0],me=+Zt[1],Ie):be?[de,me]:null},Ie}function vr(Oe,de,me,be,Ie){for(var Xe=Oe.children,ht,bt=-1,Ct=Xe.length,Zt=Oe.value&&(Ie-me)/Oe.value;++btGa&&(Ga=Zt),Kt=La*La*yn,ba=Math.max(Ga/Kt,Kt/Aa),ba>Xa){La-=Zt;break}Xa=ba}ht.push(Ct={value:La,dice:mr1?be:1)},me}(hr);function wr(){var Oe=dr,de=!1,me=1,be=1,Ie=[0],Xe=Q,ht=Q,bt=Q,Ct=Q,Zt=Q;function Wt(Jt){return Jt.x0=Jt.y0=0,Jt.x1=me,Jt.y1=be,Jt.eachBefore(rr),Ie=[0],de&&Jt.eachBefore(Pe),Jt}function rr(Jt){var mr=Ie[Jt.depth],ia=Jt.x0+mr,Ia=Jt.y0+mr,La=Jt.x1-mr,Aa=Jt.y1-mr;La=Jt-1){var Ga=Xe[rr];Ga.x0=ia,Ga.y0=Ia,Ga.x1=La,Ga.y1=Aa;return}for(var ba=Zt[rr],Xa=mr/2+ba,yn=rr+1,Kt=Jt-1;yn>>1;Zt[zt]Aa-Ia){var Tr=(ia*Ht+La*$t)/mr;Wt(rr,yn,$t,ia,Ia,Tr,Aa),Wt(yn,Jt,Ht,Tr,Ia,La,Aa)}else{var qr=(Ia*Ht+Aa*$t)/mr;Wt(rr,yn,$t,ia,Ia,La,qr),Wt(yn,Jt,Ht,ia,qr,La,Aa)}}}function Fe(Oe,de,me,be,Ie){(Oe.depth&1?vr:Ce)(Oe,de,me,be,Ie)}var We=function Oe(de){function me(be,Ie,Xe,ht,bt){if((Ct=be._squarify)&&Ct.ratio===de)for(var Ct,Zt,Wt,rr,Jt=-1,mr,ia=Ct.length,Ia=be.value;++Jt1?be:1)},me}(hr);h.cluster=a,h.hierarchy=_,h.pack=ae,h.packEnclose=z,h.packSiblings=ee,h.partition=je,h.stratify=we,h.tree=Yt,h.treemap=wr,h.treemapBinary=yt,h.treemapDice=Ce,h.treemapResquarify=We,h.treemapSlice=vr,h.treemapSliceDice=Fe,h.treemapSquarify=dr,Object.defineProperty(h,"__esModule",{value:!0})})}}),Sm=He({"src/traces/sunburst/calc.js"(Y){var H=Am(),h=Vi(),x=Qr(),A=Eu().makeColorScaleFuncFromTrace,E=ng().makePullColorFn,e=ng().generateExtendedColors,t=Eu().calc,r=qo().ALMOST_EQUAL,i={},a={},o={};Y.calc=function(s,c){var f=s._fullLayout,p=c.ids,v=x.isArrayOrTypedArray(p),T=c.labels,l=c.parents,m=c.values,w=x.isArrayOrTypedArray(m),S=[],M={},_={},b=function(ee,Z){M[ee]?M[ee].push(Z):M[ee]=[Z],_[Z]=1},d=function(ee){return ee||typeof ee=="number"},u=function(ee){return!w||h(m[ee])&&m[ee]>=0},g,y,R;v?(g=Math.min(p.length,l.length),y=function(ee){return d(p[ee])&&u(ee)},R=function(ee){return String(p[ee])}):(g=Math.min(T.length,l.length),y=function(ee){return d(T[ee])&&u(ee)},R=function(ee){return String(T[ee])}),w&&(g=Math.min(g,m.length));for(var I=0;I1){for(var N=x.randstr(),U=0;U>8&15|H>>4&240,H>>4&15|H&240,(H&15)<<4|H&15,1):h===8?Mm(H>>24&255,H>>16&255,H>>8&255,(H&255)/255):h===4?Mm(H>>12&15|H>>8&240,H>>8&15|H>>4&240,H>>4&15|H&240,((H&15)<<4|H&15)/255):null):(H=j2.exec(Y))?new Jf(H[1],H[2],H[3],1):(H=V2.exec(Y))?new Jf(H[1]*255/100,H[2]*255/100,H[3]*255/100,1):(H=q2.exec(Y))?Mm(H[1],H[2],H[3],H[4]):(H=G2.exec(Y))?Mm(H[1]*255/100,H[2]*255/100,H[3]*255/100,H[4]):(H=H2.exec(Y))?O2(H[1],H[2]/100,H[3]/100,1):(H=W2.exec(Y))?O2(H[1],H[2]/100,H[3]/100,H[4]):d_.hasOwnProperty(Y)?D2(d_[Y]):Y==="transparent"?new Jf(NaN,NaN,NaN,0):null}function D2(Y){return new Jf(Y>>16&255,Y>>8&255,Y&255,1)}function Mm(Y,H,h,x){return x<=0&&(Y=H=h=NaN),new Jf(Y,H,h,x)}function f_(Y){return Y instanceof sd||(Y=og(Y)),Y?(Y=Y.rgb(),new Jf(Y.r,Y.g,Y.b,Y.opacity)):new Jf}function Em(Y,H,h,x){return arguments.length===1?f_(Y):new Jf(Y,H,h,x??1)}function Jf(Y,H,h,x){this.r=+Y,this.g=+H,this.b=+h,this.opacity=+x}function z2(){return`#${Kd(this.r)}${Kd(this.g)}${Kd(this.b)}`}function eL(){return`#${Kd(this.r)}${Kd(this.g)}${Kd(this.b)}${Kd((isNaN(this.opacity)?1:this.opacity)*255)}`}function F2(){const Y=km(this.opacity);return`${Y===1?"rgb(":"rgba("}${$d(this.r)}, ${$d(this.g)}, ${$d(this.b)}${Y===1?")":`, ${Y})`}`}function km(Y){return isNaN(Y)?1:Math.max(0,Math.min(1,Y))}function $d(Y){return Math.max(0,Math.min(255,Math.round(Y)||0))}function Kd(Y){return Y=$d(Y),(Y<16?"0":"")+Y.toString(16)}function O2(Y,H,h,x){return x<=0?Y=H=h=NaN:h<=0||h>=1?Y=H=NaN:H<=0&&(Y=NaN),new lv(Y,H,h,x)}function B2(Y){if(Y instanceof lv)return new lv(Y.h,Y.s,Y.l,Y.opacity);if(Y instanceof sd||(Y=og(Y)),!Y)return new lv;if(Y instanceof lv)return Y;Y=Y.rgb();var H=Y.r/255,h=Y.g/255,x=Y.b/255,A=Math.min(H,h,x),E=Math.max(H,h,x),e=NaN,t=E-A,r=(E+A)/2;return t?(H===E?e=(h-x)/t+(h0&&r<1?0:e,new lv(e,t,r,Y.opacity)}function h_(Y,H,h,x){return arguments.length===1?B2(Y):new lv(Y,H,h,x??1)}function lv(Y,H,h,x){this.h=+Y,this.s=+H,this.l=+h,this.opacity=+x}function N2(Y){return Y=(Y||0)%360,Y<0?Y+360:Y}function Cm(Y){return Math.max(0,Math.min(1,Y||0))}function v_(Y,H,h){return(Y<60?H+(h-H)*Y/60:Y<180?h:Y<240?H+(h-H)*(240-Y)/60:H)*255}var ld,Jd,Qd,jp,uv,U2,j2,V2,q2,G2,H2,W2,d_,p_=bl({"node_modules/d3-color/src/color.js"(){c_(),ld=.7,Jd=1/ld,Qd="\\s*([+-]?\\d+)\\s*",jp="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",uv="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",U2=/^#([0-9a-f]{3,8})$/,j2=new RegExp(`^rgb\\(${Qd},${Qd},${Qd}\\)$`),V2=new RegExp(`^rgb\\(${uv},${uv},${uv}\\)$`),q2=new RegExp(`^rgba\\(${Qd},${Qd},${Qd},${jp}\\)$`),G2=new RegExp(`^rgba\\(${uv},${uv},${uv},${jp}\\)$`),H2=new RegExp(`^hsl\\(${jp},${uv},${uv}\\)$`),W2=new RegExp(`^hsla\\(${jp},${uv},${uv},${jp}\\)$`),d_={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},Up(sd,og,{copy(Y){return Object.assign(new this.constructor,this,Y)},displayable(){return this.rgb().displayable()},hex:I2,formatHex:I2,formatHex8:JC,formatHsl:QC,formatRgb:R2,toString:R2}),Up(Jf,Em,ig(sd,{brighter(Y){return Y=Y==null?Jd:Math.pow(Jd,Y),new Jf(this.r*Y,this.g*Y,this.b*Y,this.opacity)},darker(Y){return Y=Y==null?ld:Math.pow(ld,Y),new Jf(this.r*Y,this.g*Y,this.b*Y,this.opacity)},rgb(){return this},clamp(){return new Jf($d(this.r),$d(this.g),$d(this.b),km(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:z2,formatHex:z2,formatHex8:eL,formatRgb:F2,toString:F2})),Up(lv,h_,ig(sd,{brighter(Y){return Y=Y==null?Jd:Math.pow(Jd,Y),new lv(this.h,this.s,this.l*Y,this.opacity)},darker(Y){return Y=Y==null?ld:Math.pow(ld,Y),new lv(this.h,this.s,this.l*Y,this.opacity)},rgb(){var Y=this.h%360+(this.h<0)*360,H=isNaN(Y)||isNaN(this.s)?0:this.s,h=this.l,x=h+(h<.5?h:1-h)*H,A=2*h-x;return new Jf(v_(Y>=240?Y-240:Y+120,A,x),v_(Y,A,x),v_(Y<120?Y+240:Y-120,A,x),this.opacity)},clamp(){return new lv(N2(this.h),Cm(this.s),Cm(this.l),km(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(){const Y=km(this.opacity);return`${Y===1?"hsl(":"hsla("}${N2(this.h)}, ${Cm(this.s)*100}%, ${Cm(this.l)*100}%${Y===1?")":`, ${Y})`}`}}))}}),g_,m_,X2=bl({"node_modules/d3-color/src/math.js"(){g_=Math.PI/180,m_=180/Math.PI}});function Z2(Y){if(Y instanceof Tv)return new Tv(Y.l,Y.a,Y.b,Y.opacity);if(Y instanceof qv)return Y2(Y);Y instanceof Jf||(Y=f_(Y));var H=w_(Y.r),h=w_(Y.g),x=w_(Y.b),A=__((.2225045*H+.7168786*h+.0606169*x)/S_),E,e;return H===h&&h===x?E=e=A:(E=__((.4360747*H+.3850649*h+.1430804*x)/A_),e=__((.0139322*H+.0971045*h+.7141733*x)/M_)),new Tv(116*A-16,500*(E-A),200*(A-e),Y.opacity)}function y_(Y,H,h,x){return arguments.length===1?Z2(Y):new Tv(Y,H,h,x??1)}function Tv(Y,H,h,x){this.l=+Y,this.a=+H,this.b=+h,this.opacity=+x}function __(Y){return Y>$2?Math.pow(Y,.3333333333333333):Y/k_+E_}function x_(Y){return Y>ep?Y*Y*Y:k_*(Y-E_)}function b_(Y){return 255*(Y<=.0031308?12.92*Y:1.055*Math.pow(Y,.4166666666666667)-.055)}function w_(Y){return(Y/=255)<=.04045?Y/12.92:Math.pow((Y+.055)/1.055,2.4)}function tL(Y){if(Y instanceof qv)return new qv(Y.h,Y.c,Y.l,Y.opacity);if(Y instanceof Tv||(Y=Z2(Y)),Y.a===0&&Y.b===0)return new qv(NaN,0=1?(h=1,H-1):Math.floor(h*H),A=Y[x],E=Y[x+1],e=x>0?Y[x-1]:2*A-E,t=x()=>Y}});function r3(Y,H){return function(h){return Y+h*H}}function iL(Y,H,h){return Y=Math.pow(Y,h),H=Math.pow(H,h)-Y,h=1/h,function(x){return Math.pow(Y+x*H,h)}}function Im(Y,H){var h=H-Y;return h?r3(Y,h>180||h<-180?h-360*Math.round(h/360):h):ug(isNaN(Y)?H:Y)}function oL(Y){return(Y=+Y)==1?Qf:function(H,h){return h-H?iL(H,h,Y):ug(isNaN(H)?h:H)}}function Qf(Y,H){var h=H-Y;return h?r3(Y,h):ug(isNaN(Y)?H:Y)}var Gp=bl({"node_modules/d3-interpolate/src/color.js"(){t3()}});function a3(Y){return function(H){var h=H.length,x=new Array(h),A=new Array(h),E=new Array(h),e,t;for(e=0;eh&&(E=H.slice(h,E),t[e]?t[e]+=E:t[++e]=E),(x=x[0])===(A=A[0])?t[e]?t[e]+=A:t[++e]=A:(t[++e]=null,r.push({i:e,x:Av(x,A)})),h=Fm.lastIndex;return h180?a+=360:a-i>180&&(i+=360),n.push({i:o.push(A(o)+"rotate(",null,x)-2,x:Av(i,a)})):a&&o.push(A(o)+"rotate("+a+x)}function t(i,a,o,n){i!==a?n.push({i:o.push(A(o)+"skewX(",null,x)-2,x:Av(i,a)}):a&&o.push(A(o)+"skewX("+a+x)}function r(i,a,o,n,s,c){if(i!==o||a!==n){var f=s.push(A(s)+"scale(",null,",",null,")");c.push({i:f-4,x:Av(i,o)},{i:f-2,x:Av(a,n)})}else(o!==1||n!==1)&&s.push(A(s)+"scale("+o+","+n+")")}return function(i,a){var o=[],n=[];return i=Y(i),a=Y(a),E(i.translateX,i.translateY,a.translateX,a.translateY,o,n),e(i.rotate,a.rotate,o,n),t(i.skewX,a.skewX,o,n),r(i.scaleX,i.scaleY,a.scaleX,a.scaleY,o,n),i=a=null,function(s){for(var c=-1,f=n.length,p;++cOm,interpolateArray:()=>sL,interpolateBasis:()=>J2,interpolateBasisClosed:()=>Q2,interpolateCubehelix:()=>L3,interpolateCubehelixLong:()=>P3,interpolateDate:()=>c3,interpolateDiscrete:()=>cL,interpolateHcl:()=>E3,interpolateHclLong:()=>k3,interpolateHsl:()=>A3,interpolateHslLong:()=>S3,interpolateHue:()=>hL,interpolateLab:()=>SL,interpolateNumber:()=>Av,interpolateNumberArray:()=>z_,interpolateObject:()=>h3,interpolateRgb:()=>Rm,interpolateRgbBasis:()=>n3,interpolateRgbBasisClosed:()=>i3,interpolateRound:()=>dL,interpolateString:()=>d3,interpolateTransformCss:()=>y3,interpolateTransformSvg:()=>_3,interpolateZoom:()=>w3,piecewise:()=>CL,quantize:()=>PL});var Hp=bl({"node_modules/d3-interpolate/src/index.js"(){Bm(),u3(),D_(),e3(),f3(),fL(),vL(),Dm(),F_(),v3(),pL(),p3(),xL(),TL(),o3(),AL(),ML(),EL(),kL(),LL(),IL()}}),B_=He({"src/traces/sunburst/fill_one.js"(Y,H){var h=Io(),x=zi();H.exports=function(E,e,t,r,i){var a=e.data.data,o=a.i,n=i||a.color;if(o>=0){e.i=a.i;var s=t.marker;s.pattern?(!s.colors||!s.pattern.shape)&&(s.color=n,e.color=n):(s.color=n,e.color=n),h.pointStyle(E,t,r,e)}else x.fill(E,n)}}}),I3=He({"src/traces/sunburst/style.js"(Y,H){var h=yi(),x=zi(),A=Qr(),E=gh().resizeText,e=B_();function t(i){var a=i._fullLayout._sunburstlayer.selectAll(".trace");E(i,a,"sunburst"),a.each(function(o){var n=h.select(this),s=o[0],c=s.trace;n.style("opacity",c.opacity),n.selectAll("path.surface").each(function(f){h.select(this).call(r,f,c,i)})})}function r(i,a,o,n){var s=a.data.data,c=!a.children,f=s.i,p=A.castOption(o,f,"marker.line.color")||x.defaultLine,v=A.castOption(o,f,"marker.line.width")||0;i.call(e,a,o,n).style("stroke-width",v).call(x.stroke,p).style("opacity",c?o.leaf.opacity:null)}H.exports={style:t,styleOne:r}}}),ud=He({"src/traces/sunburst/helpers.js"(Y){var H=Qr(),h=zi(),x=mv(),A=Hd();Y.findEntryWithLevel=function(r,i){var a;return i&&r.eachAfter(function(o){if(Y.getPtId(o)===i)return a=o.copy()}),a||r},Y.findEntryWithChild=function(r,i){var a;return r.eachAfter(function(o){for(var n=o.children||[],s=0;s0)},Y.getMaxDepth=function(r){return r.maxdepth>=0?r.maxdepth:1/0},Y.isHeader=function(r,i){return!(Y.isLeaf(r)||r.depth===i._maxDepth-1)};function t(r){return r.data.data.pid}Y.getParent=function(r,i){return Y.findEntryWithLevel(r,t(i))},Y.listPath=function(r,i){var a=r.parent;if(!a)return[];var o=i?[a.data[i]]:[a];return Y.listPath(a,i).concat(o)},Y.getPath=function(r){return Y.listPath(r,"label").join("/")+"/"},Y.formatValue=A.formatPieValue,Y.formatPercent=function(r,i){var a=H.formatPercent(r,0);return a==="0%"&&(a=A.formatPiePercent(r,i)),a}}}),jm=He({"src/traces/sunburst/fx.js"(Y,H){var h=yi(),x=qi(),A=Dh().appendArrayPointValue,E=xc(),e=Qr(),t=O0(),r=ud(),i=Hd(),a=i.formatPieValue;H.exports=function(s,c,f,p,v){var T=p[0],l=T.trace,m=T.hierarchy,w=l.type==="sunburst",S=l.type==="treemap"||l.type==="icicle";"_hasHoverLabel"in l||(l._hasHoverLabel=!1),"_hasHoverEvent"in l||(l._hasHoverEvent=!1);var M=function(d){var u=f._fullLayout;if(!(f._dragging||u.hovermode===!1)){var g=f._fullData[l.index],y=d.data.data,R=y.i,I=r.isHierarchyRoot(d),z=r.getParent(m,d),F=r.getValue(d),B=function(re){return e.castOption(g,R,re)},O=B("hovertemplate"),P=E.castHoverinfo(g,u,R),N=u.separators,U;if(O||P&&P!=="none"&&P!=="skip"){var X,te;w&&(X=T.cx+d.pxmid[0]*(1-d.rInscribed),te=T.cy+d.pxmid[1]*(1-d.rInscribed)),S&&(X=d._hoverX,te=d._hoverY);var ue={},ie=[],le=[],q=function(re){return ie.indexOf(re)!==-1};P&&(ie=P==="all"?g._module.attributes.hoverinfo.flags:P.split("+")),ue.label=y.label,q("label")&&ue.label&&le.push(ue.label),y.hasOwnProperty("v")&&(ue.value=y.v,ue.valueLabel=a(ue.value,N),q("value")&&le.push(ue.valueLabel)),ue.currentPath=d.currentPath=r.getPath(d.data),q("current path")&&!I&&le.push(ue.currentPath);var J,ee=[],Z=function(){ee.indexOf(J)===-1&&(le.push(J),ee.push(J))};ue.percentParent=d.percentParent=F/r.getValue(z),ue.parent=d.parentString=r.getPtLabel(z),q("percent parent")&&(J=r.formatPercent(ue.percentParent,N)+" of "+ue.parent,Z()),ue.percentEntry=d.percentEntry=F/r.getValue(c),ue.entry=d.entry=r.getPtLabel(c),q("percent entry")&&!I&&!d.onPathbar&&(J=r.formatPercent(ue.percentEntry,N)+" of "+ue.entry,Z()),ue.percentRoot=d.percentRoot=F/r.getValue(m),ue.root=d.root=r.getPtLabel(m),q("percent root")&&!I&&(J=r.formatPercent(ue.percentRoot,N)+" of "+ue.root,Z()),ue.text=B("hovertext")||B("text"),q("text")&&(J=ue.text,e.isValidTextValue(J)&&le.push(J)),U=[o(d,g,v.eventDataKeys)];var se={trace:g,y:te,_x0:d._x0,_x1:d._x1,_y0:d._y0,_y1:d._y1,text:le.join("
"),name:O||q("name")?g.name:void 0,color:B("hoverlabel.bgcolor")||y.color,borderColor:B("hoverlabel.bordercolor"),fontFamily:B("hoverlabel.font.family"),fontSize:B("hoverlabel.font.size"),fontColor:B("hoverlabel.font.color"),fontWeight:B("hoverlabel.font.weight"),fontStyle:B("hoverlabel.font.style"),fontVariant:B("hoverlabel.font.variant"),nameLength:B("hoverlabel.namelength"),textAlign:B("hoverlabel.align"),hovertemplate:O,hovertemplateLabels:ue,eventData:U};w&&(se.x0=X-d.rInscribed*d.rpx1,se.x1=X+d.rInscribed*d.rpx1,se.idealAlign=d.pxmid[0]<0?"left":"right"),S&&(se.x=X,se.idealAlign=X<0?"left":"right");var Q=[];E.loneHover(se,{container:u._hoverlayer.node(),outerContainer:u._paper.node(),gd:f,inOut_bbox:Q}),U[0].bbox=Q[0],l._hasHoverLabel=!0}if(S){var V=s.select("path.surface");v.styleOne(V,d,g,f,{hovered:!0})}l._hasHoverEvent=!0,f.emit("plotly_hover",{points:U||[o(d,g,v.eventDataKeys)],event:h.event})}},_=function(d){var u=f._fullLayout,g=f._fullData[l.index],y=h.select(this).datum();if(l._hasHoverEvent&&(d.originalEvent=h.event,f.emit("plotly_unhover",{points:[o(y,g,v.eventDataKeys)],event:h.event}),l._hasHoverEvent=!1),l._hasHoverLabel&&(E.loneUnhover(u._hoverlayer.node()),l._hasHoverLabel=!1),S){var R=s.select("path.surface");v.styleOne(R,y,g,f,{hovered:!1})}},b=function(d){var u=f._fullLayout,g=f._fullData[l.index],y=w&&(r.isHierarchyRoot(d)||r.isLeaf(d)),R=r.getPtId(d),I=r.isEntry(d)?r.findEntryWithChild(m,R):r.findEntryWithLevel(m,R),z=r.getPtId(I),F={points:[o(d,g,v.eventDataKeys)],event:h.event};y||(F.nextLevel=z);var B=t.triggerHandler(f,"plotly_"+l.type+"click",F);if(B!==!1&&u.hovermode&&(f._hoverdata=[o(d,g,v.eventDataKeys)],E.click(f,h.event)),!y&&B!==!1&&!f._dragging&&!f._transitioning){x.call("_storeDirectGUIEdit",g,u._tracePreGUI[g.uid],{level:g.level});var O={data:[{level:z}],traces:[l.index]},P={frame:{redraw:!1,duration:v.transitionTime},transition:{duration:v.transitionTime,easing:v.transitionEasing},mode:"immediate",fromcurrent:!0};E.loneUnhover(u._hoverlayer.node()),x.call("animate",f,O,P)}};s.on("mouseover",M),s.on("mouseout",_),s.on("click",b)};function o(n,s,c){for(var f=n.data.data,p={curveNumber:s.index,pointNumber:f.i,data:s._input,fullData:s},v=0;vnt.x1?2*Math.PI:0)+re;Ke=he.rpx1je?2*Math.PI:0)+re;et={x0:Ke,x1:Ke}}else et={rpx0:ie,rpx1:ie},E.extendFlat(et,we(he));else et={rpx0:0,rpx1:0};else et={x0:re,x1:re};return x(et,nt)}function Me(he){var De=ee[T.getPtId(he)],et,nt=he.transform;if(De)et=De;else if(et={rpx1:he.rpx1,transform:{textPosAngle:nt.textPosAngle,scale:0,rotate:nt.rotate,rCenter:nt.rCenter,x:nt.x,y:nt.y}},J)if(he.parent)if(je){var Ke=he.x1>je?2*Math.PI:0;et.x0=et.x1=Ke}else E.extendFlat(et,we(he));else et.x0=et.x1=re;else et.x0=et.x1=re;var Et=x(et.transform.textPosAngle,he.transform.textPosAngle),kt=x(et.rpx1,he.rpx1),Ut=x(et.x0,he.x0),Yt=x(et.x1,he.x1),vr=x(et.transform.scale,nt.scale),hr=x(et.transform.rotate,nt.rotate),Rr=nt.rCenter===0?3:et.transform.rCenter===0?1/3:1,dr=x(et.transform.rCenter,nt.rCenter),wr=function(yt){return dr(Math.pow(yt,Rr))};return function(yt){var Fe=kt(yt);Ut(yt),Yt(yt);var We=wr(yt),Oe=Et(yt),de={rpx1:Fe,transform:{textPosAngle:Oe,rCenter:We,x:nt.x,y:nt.y}};return r(B.type,nt,y),{transform:{targetX:Pe(de),targetY:Ce(de),scale:vr(yt),rotate:hr(yt),rCenter:We}}}}function we(he){var De=he.parent,et=ee[T.getPtId(De)],nt={};if(et){var Ke=De.children,Et=Ke.indexOf(he),kt=Ke.length,Ut=x(et.x0,et.x1);nt.x0=Ut(Et/kt),nt.x1=Ut(Et/kt)}else nt.x0=nt.x1=0;return nt}}function m(_){return h.partition().size([2*Math.PI,_.height+1])(_)}Y.formatSliceLabel=function(_,b,d,u,g){var y=d.texttemplate,R=d.textinfo;if(!y&&(!R||R==="none"))return"";var I=g.separators,z=u[0],F=_.data.data,B=z.hierarchy,O=T.isHierarchyRoot(_),P=T.getParent(B,_),N=T.getValue(_);if(!y){var U=R.split("+"),X=function(Q){return U.indexOf(Q)!==-1},te=[],ue;if(X("label")&&F.label&&te.push(F.label),F.hasOwnProperty("v")&&X("value")&&te.push(T.formatValue(F.v,I)),!O){X("current path")&&te.push(T.getPath(_.data));var ie=0;X("percent parent")&&ie++,X("percent entry")&&ie++,X("percent root")&&ie++;var le=ie>1;if(ie){var q,J=function(Q){ue=T.formatPercent(q,I),le&&(ue+=" of "+Q),te.push(ue)};X("percent parent")&&!O&&(q=N/T.getValue(P),J("parent")),X("percent entry")&&(q=N/T.getValue(b),J("entry")),X("percent root")&&(q=N/T.getValue(B),J("root"))}}return X("text")&&(ue=E.castOption(d,F.i,"text"),E.isValidTextValue(ue)&&te.push(ue)),te.join("
")}var ee=E.castOption(d,F.i,"texttemplate");if(!ee)return"";var Z={};F.label&&(Z.label=F.label),F.hasOwnProperty("v")&&(Z.value=F.v,Z.valueLabel=T.formatValue(F.v,I)),Z.currentPath=T.getPath(_.data),O||(Z.percentParent=N/T.getValue(P),Z.percentParentLabel=T.formatPercent(Z.percentParent,I),Z.parent=T.getPtLabel(P)),Z.percentEntry=N/T.getValue(b),Z.percentEntryLabel=T.formatPercent(Z.percentEntry,I),Z.entry=T.getPtLabel(b),Z.percentRoot=N/T.getValue(B),Z.percentRootLabel=T.formatPercent(Z.percentRoot,I),Z.root=T.getPtLabel(B),F.hasOwnProperty("color")&&(Z.color=F.color);var se=E.castOption(d,F.i,"text");return(E.isValidTextValue(se)||se==="")&&(Z.text=se),Z.customdata=E.castOption(d,F.i,"customdata"),E.texttemplateString(ee,Z,g._d3locale,Z,d._meta||{})};function w(_){return _.rpx0===0&&E.isFullCircle([_.x0,_.x1])?1:Math.max(0,Math.min(1/(1+1/Math.sin(_.halfangle)),_.ring/2))}function S(_){return M(_.rpx1,_.transform.textPosAngle)}function M(_,b){return[_*Math.sin(b),-_*Math.cos(b)]}}}),RL=He({"src/traces/sunburst/index.js"(Y,H){H.exports={moduleType:"trace",name:"sunburst",basePlotModule:YC(),categories:[],animatable:!0,attributes:Tm(),layoutAttributes:P2(),supplyDefaults:$C(),supplyLayoutDefaults:KC(),calc:Sm().calc,crossTraceCalc:Sm().crossTraceCalc,plot:N_().plot,style:I3().style,colorbar:ch(),meta:{}}}}),DL=He({"lib/sunburst.js"(Y,H){H.exports=RL()}}),zL=He({"src/traces/treemap/base_plot.js"(Y){var H=$u();Y.name="treemap",Y.plot=function(h,x,A,E){H.plotBasePlot(Y.name,h,x,A,E)},Y.clean=function(h,x,A,E){H.cleanBasePlot(Y.name,h,x,A,E)}}}),Wp=He({"src/traces/treemap/constants.js"(Y,H){H.exports={CLICK_TRANSITION_TIME:750,CLICK_TRANSITION_EASING:"poly",eventDataKeys:["currentPath","root","entry","percentRoot","percentEntry","percentParent"],gapWithPathbar:1}}}),U_=He({"src/traces/treemap/attributes.js"(Y,H){var h=us().hovertemplateAttrs,x=us().texttemplateAttrs,A=eu(),E=Ku().attributes,e=Bp(),t=Tm(),r=Wp(),i=Po().extendFlat,a=Yf().pattern;H.exports={labels:t.labels,parents:t.parents,values:t.values,branchvalues:t.branchvalues,count:t.count,level:t.level,maxdepth:t.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:i({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:t.marker.colors,pattern:a,depthfade:{valType:"enumerated",values:[!0,!1,"reversed"],editType:"style"},line:t.marker.line,cornerradius:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"calc"},A("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:i({},e.textfont,{}),editType:"calc"},text:e.text,textinfo:t.textinfo,texttemplate:x({editType:"plot"},{keys:r.eventDataKeys.concat(["label","value"])}),hovertext:e.hovertext,hoverinfo:t.hoverinfo,hovertemplate:h({},{keys:r.eventDataKeys}),textfont:e.textfont,insidetextfont:e.insidetextfont,outsidetextfont:i({},e.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:e.sort,root:t.root,domain:E({name:"treemap",trace:!0,editType:"calc"})}}}),R3=He({"src/traces/treemap/layout_attributes.js"(Y,H){H.exports={treemapcolorway:{valType:"colorlist",editType:"calc"},extendtreemapcolors:{valType:"boolean",dflt:!0,editType:"calc"}}}}),FL=He({"src/traces/treemap/defaults.js"(Y,H){var h=Qr(),x=U_(),A=zi(),E=Ku().defaults,e=Yh().handleText,t=Ip().TEXTPAD,r=Np().handleMarkerDefaults,i=Eu(),a=i.hasColorscale,o=i.handleDefaults;H.exports=function(s,c,f,p){function v(g,y){return h.coerce(s,c,x,g,y)}var T=v("labels"),l=v("parents");if(!T||!T.length||!l||!l.length){c.visible=!1;return}var m=v("values");m&&m.length?v("branchvalues"):v("count"),v("level"),v("maxdepth");var w=v("tiling.packing");w==="squarify"&&v("tiling.squarifyratio"),v("tiling.flip"),v("tiling.pad");var S=v("text");v("texttemplate"),c.texttemplate||v("textinfo",h.isArrayOrTypedArray(S)?"text+label":"label"),v("hovertext"),v("hovertemplate");var M=v("pathbar.visible"),_="auto";e(s,c,p,v,_,{hasPathbar:M,moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),v("textposition");var b=c.textposition.indexOf("bottom")!==-1;r(s,c,p,v);var d=c._hasColorscale=a(s,"marker","colors")||(s.marker||{}).coloraxis;d?o(s,c,p,v,{prefix:"marker.",cLetter:"c"}):v("marker.depthfade",!(c.marker.colors||[]).length);var u=c.textfont.size*2;v("marker.pad.t",b?u/4:u),v("marker.pad.l",u/4),v("marker.pad.r",u/4),v("marker.pad.b",b?u:u/4),v("marker.cornerradius"),c._hovered={marker:{line:{width:2,color:A.contrast(p.paper_bgcolor)}}},M&&(v("pathbar.thickness",c.pathbar.textfont.size+2*t),v("pathbar.side"),v("pathbar.edgeshape")),v("sort"),v("root.color"),E(c,p,v),c._length=null}}}),OL=He({"src/traces/treemap/layout_defaults.js"(Y,H){var h=Qr(),x=R3();H.exports=function(E,e){function t(r,i){return h.coerce(E,e,x,r,i)}t("treemapcolorway",e.colorway),t("extendtreemapcolors")}}}),D3=He({"src/traces/treemap/calc.js"(Y){var H=Sm();Y.calc=function(h,x){return H.calc(h,x)},Y.crossTraceCalc=function(h){return H._runCrossTraceCalc("treemap",h)}}}),z3=He({"src/traces/treemap/flip_tree.js"(Y,H){H.exports=function h(x,A,E){var e;E.swapXY&&(e=x.x0,x.x0=x.y0,x.y0=e,e=x.x1,x.x1=x.y1,x.y1=e),E.flipX&&(e=x.x0,x.x0=A[0]-x.x1,x.x1=A[0]-e),E.flipY&&(e=x.y0,x.y0=A[1]-x.y1,x.y1=A[1]-e);var t=x.children;if(t)for(var r=0;r0)for(var u=0;u").join(" ")||"";var le=x.ensureSingle(ue,"g","slicetext"),q=x.ensureSingle(le,"text","",function(ee){ee.attr("data-notex",1)}),J=x.ensureUniformFontSize(s,i.determineTextFont(B,te,z.font,{onPathbar:!0}));q.text(te._text||" ").classed("slicetext",!0).attr("text-anchor","start").call(A.font,J).call(E.convertToTspans,s),te.textBB=A.bBox(q.node()),te.transform=_(te,{fontSize:J.size,onPathbar:!0}),te.transform.fontSize=J.size,d?q.transition().attrTween("transform",function(ee){var Z=y(ee,o,R,[l,m]);return function(se){return b(Z(se))}}):q.attr("transform",b(te))})}}}),NL=He({"src/traces/treemap/plot_one.js"(Y,H){var h=yi(),x=(Hp(),Bv(rp)).interpolate,A=ud(),E=Qr(),e=Ip().TEXTPAD,t=Rp(),r=t.toMoveInsideBar,i=gh(),a=i.recordMinTextSize,o=Wp(),n=BL();function s(c){return A.isHierarchyRoot(c)?"":A.getPtId(c)}H.exports=function(f,p,v,T,l){var m=f._fullLayout,w=p[0],S=w.trace,M=S.type,_=M==="icicle",b=w.hierarchy,d=A.findEntryWithLevel(b,S.level),u=h.select(v),g=u.selectAll("g.pathbar"),y=u.selectAll("g.slice");if(!d){g.remove(),y.remove();return}var R=A.isHierarchyRoot(d),I=!m.uniformtext.mode&&A.hasTransition(T),z=A.getMaxDepth(S),F=function(dr){return dr.data.depth-d.data.depth-1?N+te:-(X+te):0,ie={x0:U,x1:U,y0:ue,y1:ue+X},le=function(dr,wr,yt){var Fe=S.tiling.pad,We=function(be){return be-Fe<=wr.x0},Oe=function(be){return be+Fe>=wr.x1},de=function(be){return be-Fe<=wr.y0},me=function(be){return be+Fe>=wr.y1};return dr.x0===wr.x0&&dr.x1===wr.x1&&dr.y0===wr.y0&&dr.y1===wr.y1?{x0:dr.x0,x1:dr.x1,y0:dr.y0,y1:dr.y1}:{x0:We(dr.x0-Fe)?0:Oe(dr.x0-Fe)?yt[0]:dr.x0,x1:We(dr.x1+Fe)?0:Oe(dr.x1+Fe)?yt[0]:dr.x1,y0:de(dr.y0-Fe)?0:me(dr.y0-Fe)?yt[1]:dr.y0,y1:de(dr.y1+Fe)?0:me(dr.y1+Fe)?yt[1]:dr.y1}},q=null,J={},ee={},Z=null,se=function(dr,wr){return wr?J[s(dr)]:ee[s(dr)]},Q=function(dr,wr,yt,Fe){if(wr)return J[s(b)]||ie;var We=ee[S.level]||yt;return F(dr)?le(dr,We,Fe):{}};w.hasMultipleRoots&&R&&z++,S._maxDepth=z,S._backgroundColor=m.paper_bgcolor,S._entryDepth=d.data.depth,S._atRootLevel=R;var V=-P/2+B.l+B.w*(O.x[1]+O.x[0])/2,re=-N/2+B.t+B.h*(1-(O.y[1]+O.y[0])/2),ae=function(dr){return V+dr},fe=function(dr){return re+dr},xe=fe(0),Ae=ae(0),Pe=function(dr){return Ae+dr},Ce=function(dr){return xe+dr};function je(dr,wr){return dr+","+wr}var at=Pe(0),tt=function(dr){dr.x=Math.max(at,dr.x)},Je=S.pathbar.edgeshape,Ze=function(dr){var wr=Pe(Math.max(Math.min(dr.x0,dr.x0),0)),yt=Pe(Math.min(Math.max(dr.x1,dr.x1),U)),Fe=Ce(dr.y0),We=Ce(dr.y1),Oe=X/2,de={},me={};de.x=wr,me.x=yt,de.y=me.y=(Fe+We)/2;var be={x:wr,y:Fe},Ie={x:yt,y:Fe},Xe={x:yt,y:We},ht={x:wr,y:We};return Je===">"?(be.x-=Oe,Ie.x-=Oe,Xe.x-=Oe,ht.x-=Oe):Je==="/"?(Xe.x-=Oe,ht.x-=Oe,de.x-=Oe/2,me.x-=Oe/2):Je==="\\"?(be.x-=Oe,Ie.x-=Oe,de.x-=Oe/2,me.x-=Oe/2):Je==="<"&&(de.x-=Oe,me.x-=Oe),tt(be),tt(ht),tt(de),tt(Ie),tt(Xe),tt(me),"M"+je(be.x,be.y)+"L"+je(Ie.x,Ie.y)+"L"+je(me.x,me.y)+"L"+je(Xe.x,Xe.y)+"L"+je(ht.x,ht.y)+"L"+je(de.x,de.y)+"Z"},Me=S[_?"tiling":"marker"].pad,we=function(dr){return S.textposition.indexOf(dr)!==-1},he=we("top"),De=we("left"),et=we("right"),nt=we("bottom"),Ke=function(dr){var wr=ae(dr.x0),yt=ae(dr.x1),Fe=fe(dr.y0),We=fe(dr.y1),Oe=yt-wr,de=We-Fe;if(!Oe||!de)return"";var me=S.marker.cornerradius||0,be=Math.min(me,Oe/2,de/2);be&&dr.data&&dr.data.data&&dr.data.data.label&&(he&&(be=Math.min(be,Me.t)),De&&(be=Math.min(be,Me.l)),et&&(be=Math.min(be,Me.r)),nt&&(be=Math.min(be,Me.b)));var Ie=function(Xe,ht){return be?"a"+je(be,be)+" 0 0 1 "+je(Xe,ht):""};return"M"+je(wr,Fe+be)+Ie(be,-be)+"L"+je(yt-be,Fe)+Ie(be,be)+"L"+je(yt,We-be)+Ie(-be,be)+"L"+je(wr+be,We)+Ie(-be,-be)+"Z"},Et=function(dr,wr){var yt=dr.x0,Fe=dr.x1,We=dr.y0,Oe=dr.y1,de=dr.textBB,me=he||wr.isHeader&&!nt,be=me?"start":nt?"end":"middle",Ie=we("right"),Xe=we("left")||wr.onPathbar,ht=Xe?-1:Ie?1:0;if(wr.isHeader){if(yt+=(_?Me:Me.l)-e,Fe-=(_?Me:Me.r)-e,yt>=Fe){var bt=(yt+Fe)/2;yt=bt,Fe=bt}var Ct;nt?(Ct=Oe-(_?Me:Me.b),We-1,flipY:O.tiling.flip.indexOf("y")>-1,pad:{inner:O.tiling.pad,top:O.marker.pad.t,left:O.marker.pad.l,right:O.marker.pad.r,bottom:O.marker.pad.b}}),ue=te.descendants(),ie=1/0,le=-1/0;ue.forEach(function(se){var Q=se.depth;Q>=O._maxDepth?(se.x0=se.x1=(se.x0+se.x1)/2,se.y0=se.y1=(se.y0+se.y1)/2):(ie=Math.min(ie,Q),le=Math.max(le,Q))}),v=v.data(ue,i.getPtId),O._maxVisibleLayers=isFinite(le)?le-ie+1:0,v.enter().append("g").classed("slice",!0),u(v,n,I,[l,m],M),v.order();var q=null;if(d&&R){var J=i.getPtId(R);v.each(function(se){q===null&&i.getPtId(se)===J&&(q={x0:se.x0,x1:se.x1,y0:se.y0,y1:se.y1})})}var ee=function(){return q||{x0:0,x1:l,y0:0,y1:m}},Z=v;return d&&(Z=Z.transition().each("end",function(){var se=h.select(this);i.setSliceCursor(se,c,{hideOnRoot:!0,hideOnLeaves:!1,isTransitioning:!1})})),Z.each(function(se){var Q=i.isHeader(se,O);se._x0=w(se.x0),se._x1=w(se.x1),se._y0=S(se.y0),se._y1=S(se.y1),se._hoverX=w(se.x1-O.marker.pad.r),se._hoverY=S(U?se.y1-O.marker.pad.b/2:se.y0+O.marker.pad.t/2);var V=h.select(this),re=x.ensureSingle(V,"path","surface",function(Ce){Ce.style("pointer-events",z?"none":"all")});d?re.transition().attrTween("d",function(Ce){var je=g(Ce,n,ee(),[l,m]);return function(at){return M(je(at))}}):re.attr("d",M),V.call(a,p,c,f,{styleOne:t,eventDataKeys:r.eventDataKeys,transitionTime:r.CLICK_TRANSITION_TIME,transitionEasing:r.CLICK_TRANSITION_EASING}).call(i.setSliceCursor,c,{isTransitioning:c._transitioning}),re.call(t,se,O,c,{hovered:!1}),se.x0===se.x1||se.y0===se.y1?se._text="":Q?se._text=X?"":i.getPtLabel(se)||"":se._text=o(se,p,O,f,F)||"";var ae=x.ensureSingle(V,"g","slicetext"),fe=x.ensureSingle(ae,"text","",function(Ce){Ce.attr("data-notex",1)}),xe=x.ensureUniformFontSize(c,i.determineTextFont(O,se,F.font)),Ae=se._text||" ",Pe=Q&&Ae.indexOf("
")===-1;fe.text(Ae).classed("slicetext",!0).attr("text-anchor",N?"end":P||Pe?"start":"middle").call(A.font,xe).call(E.convertToTspans,c),se.textBB=A.bBox(fe.node()),se.transform=_(se,{fontSize:xe.size,isHeader:Q}),se.transform.fontSize=xe.size,d?fe.transition().attrTween("transform",function(Ce){var je=y(Ce,n,ee(),[l,m]);return function(at){return b(je(at))}}):fe.attr("transform",b(se))}),q}}}),jL=He({"src/traces/treemap/plot.js"(Y,H){var h=O3(),x=UL();H.exports=function(E,e,t,r){return h(E,e,t,r,{type:"treemap",drawDescendants:x})}}}),VL=He({"src/traces/treemap/index.js"(Y,H){H.exports={moduleType:"trace",name:"treemap",basePlotModule:zL(),categories:[],animatable:!0,attributes:U_(),layoutAttributes:R3(),supplyDefaults:FL(),supplyLayoutDefaults:OL(),calc:D3().calc,crossTraceCalc:D3().crossTraceCalc,plot:jL(),style:j_().style,colorbar:ch(),meta:{}}}}),qL=He({"lib/treemap.js"(Y,H){H.exports=VL()}}),GL=He({"src/traces/icicle/base_plot.js"(Y){var H=$u();Y.name="icicle",Y.plot=function(h,x,A,E){H.plotBasePlot(Y.name,h,x,A,E)},Y.clean=function(h,x,A,E){H.cleanBasePlot(Y.name,h,x,A,E)}}}),B3=He({"src/traces/icicle/attributes.js"(Y,H){var h=us().hovertemplateAttrs,x=us().texttemplateAttrs,A=eu(),E=Ku().attributes,e=Bp(),t=Tm(),r=U_(),i=Wp(),a=Po().extendFlat,o=Yf().pattern;H.exports={labels:t.labels,parents:t.parents,values:t.values,branchvalues:t.branchvalues,count:t.count,level:t.level,maxdepth:t.maxdepth,tiling:{orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"plot"},flip:r.tiling.flip,pad:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"calc"},marker:a({colors:t.marker.colors,line:t.marker.line,pattern:o,editType:"calc"},A("marker",{colorAttr:"colors",anim:!1})),leaf:t.leaf,pathbar:r.pathbar,text:e.text,textinfo:t.textinfo,texttemplate:x({editType:"plot"},{keys:i.eventDataKeys.concat(["label","value"])}),hovertext:e.hovertext,hoverinfo:t.hoverinfo,hovertemplate:h({},{keys:i.eventDataKeys}),textfont:e.textfont,insidetextfont:e.insidetextfont,outsidetextfont:r.outsidetextfont,textposition:r.textposition,sort:e.sort,root:t.root,domain:E({name:"icicle",trace:!0,editType:"calc"})}}}),N3=He({"src/traces/icicle/layout_attributes.js"(Y,H){H.exports={iciclecolorway:{valType:"colorlist",editType:"calc"},extendiciclecolors:{valType:"boolean",dflt:!0,editType:"calc"}}}}),HL=He({"src/traces/icicle/defaults.js"(Y,H){var h=Qr(),x=B3(),A=zi(),E=Ku().defaults,e=Yh().handleText,t=Ip().TEXTPAD,r=Np().handleMarkerDefaults,i=Eu(),a=i.hasColorscale,o=i.handleDefaults;H.exports=function(s,c,f,p){function v(b,d){return h.coerce(s,c,x,b,d)}var T=v("labels"),l=v("parents");if(!T||!T.length||!l||!l.length){c.visible=!1;return}var m=v("values");m&&m.length?v("branchvalues"):v("count"),v("level"),v("maxdepth"),v("tiling.orientation"),v("tiling.flip"),v("tiling.pad");var w=v("text");v("texttemplate"),c.texttemplate||v("textinfo",h.isArrayOrTypedArray(w)?"text+label":"label"),v("hovertext"),v("hovertemplate");var S=v("pathbar.visible"),M="auto";e(s,c,p,v,M,{hasPathbar:S,moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),v("textposition"),r(s,c,p,v);var _=c._hasColorscale=a(s,"marker","colors")||(s.marker||{}).coloraxis;_&&o(s,c,p,v,{prefix:"marker.",cLetter:"c"}),v("leaf.opacity",_?1:.7),c._hovered={marker:{line:{width:2,color:A.contrast(p.paper_bgcolor)}}},S&&(v("pathbar.thickness",c.pathbar.textfont.size+2*t),v("pathbar.side"),v("pathbar.edgeshape")),v("sort"),v("root.color"),E(c,p,v),c._length=null}}}),WL=He({"src/traces/icicle/layout_defaults.js"(Y,H){var h=Qr(),x=N3();H.exports=function(E,e){function t(r,i){return h.coerce(E,e,x,r,i)}t("iciclecolorway",e.colorway),t("extendiciclecolors")}}}),U3=He({"src/traces/icicle/calc.js"(Y){var H=Sm();Y.calc=function(h,x){return H.calc(h,x)},Y.crossTraceCalc=function(h){return H._runCrossTraceCalc("icicle",h)}}}),XL=He({"src/traces/icicle/partition.js"(Y,H){var h=Am(),x=z3();H.exports=function(E,e,t){var r=t.flipX,i=t.flipY,a=t.orientation==="h",o=t.maxDepth,n=e[0],s=e[1];o&&(n=(E.height+1)*e[0]/Math.min(E.height+1,o),s=(E.height+1)*e[1]/Math.min(E.height+1,o));var c=h.partition().padding(t.pad.inner).size(a?[e[1],n]:[e[0],s])(E);return(a||r||i)&&x(c,e,{swapXY:a,flipX:r,flipY:i}),c}}}),j3=He({"src/traces/icicle/style.js"(Y,H){var h=yi(),x=zi(),A=Qr(),E=gh().resizeText,e=B_();function t(i){var a=i._fullLayout._iciclelayer.selectAll(".trace");E(i,a,"icicle"),a.each(function(o){var n=h.select(this),s=o[0],c=s.trace;n.style("opacity",c.opacity),n.selectAll("path.surface").each(function(f){h.select(this).call(r,f,c,i)})})}function r(i,a,o,n){var s=a.data.data,c=!a.children,f=s.i,p=A.castOption(o,f,"marker.line.color")||x.defaultLine,v=A.castOption(o,f,"marker.line.width")||0;i.call(e,a,o,n).style("stroke-width",v).call(x.stroke,p).style("opacity",c?o.leaf.opacity:null)}H.exports={style:t,styleOne:r}}}),ZL=He({"src/traces/icicle/draw_descendants.js"(Y,H){var h=yi(),x=Qr(),A=Io(),E=jl(),e=XL(),t=j3().styleOne,r=Wp(),i=ud(),a=jm(),o=N_().formatSliceLabel,n=!1;H.exports=function(c,f,p,v,T){var l=T.width,m=T.height,w=T.viewX,S=T.viewY,M=T.pathSlice,_=T.toMoveInsideSlice,b=T.strTransform,d=T.hasTransition,u=T.handleSlicesExit,g=T.makeUpdateSliceInterpolator,y=T.makeUpdateTextInterpolator,R=T.prevEntry,I={},z=c._context.staticPlot,F=c._fullLayout,B=f[0],O=B.trace,P=O.textposition.indexOf("left")!==-1,N=O.textposition.indexOf("right")!==-1,U=O.textposition.indexOf("bottom")!==-1,X=e(p,[l,m],{flipX:O.tiling.flip.indexOf("x")>-1,flipY:O.tiling.flip.indexOf("y")>-1,orientation:O.tiling.orientation,pad:{inner:O.tiling.pad},maxDepth:O._maxDepth}),te=X.descendants(),ue=1/0,ie=-1/0;te.forEach(function(Z){var se=Z.depth;se>=O._maxDepth?(Z.x0=Z.x1=(Z.x0+Z.x1)/2,Z.y0=Z.y1=(Z.y0+Z.y1)/2):(ue=Math.min(ue,se),ie=Math.max(ie,se))}),v=v.data(te,i.getPtId),O._maxVisibleLayers=isFinite(ie)?ie-ue+1:0,v.enter().append("g").classed("slice",!0),u(v,n,I,[l,m],M),v.order();var le=null;if(d&&R){var q=i.getPtId(R);v.each(function(Z){le===null&&i.getPtId(Z)===q&&(le={x0:Z.x0,x1:Z.x1,y0:Z.y0,y1:Z.y1})})}var J=function(){return le||{x0:0,x1:l,y0:0,y1:m}},ee=v;return d&&(ee=ee.transition().each("end",function(){var Z=h.select(this);i.setSliceCursor(Z,c,{hideOnRoot:!0,hideOnLeaves:!1,isTransitioning:!1})})),ee.each(function(Z){Z._x0=w(Z.x0),Z._x1=w(Z.x1),Z._y0=S(Z.y0),Z._y1=S(Z.y1),Z._hoverX=w(Z.x1-O.tiling.pad),Z._hoverY=S(U?Z.y1-O.tiling.pad/2:Z.y0+O.tiling.pad/2);var se=h.select(this),Q=x.ensureSingle(se,"path","surface",function(fe){fe.style("pointer-events",z?"none":"all")});d?Q.transition().attrTween("d",function(fe){var xe=g(fe,n,J(),[l,m],{orientation:O.tiling.orientation,flipX:O.tiling.flip.indexOf("x")>-1,flipY:O.tiling.flip.indexOf("y")>-1});return function(Ae){return M(xe(Ae))}}):Q.attr("d",M),se.call(a,p,c,f,{styleOne:t,eventDataKeys:r.eventDataKeys,transitionTime:r.CLICK_TRANSITION_TIME,transitionEasing:r.CLICK_TRANSITION_EASING}).call(i.setSliceCursor,c,{isTransitioning:c._transitioning}),Q.call(t,Z,O,c,{hovered:!1}),Z.x0===Z.x1||Z.y0===Z.y1?Z._text="":Z._text=o(Z,p,O,f,F)||"";var V=x.ensureSingle(se,"g","slicetext"),re=x.ensureSingle(V,"text","",function(fe){fe.attr("data-notex",1)}),ae=x.ensureUniformFontSize(c,i.determineTextFont(O,Z,F.font));re.text(Z._text||" ").classed("slicetext",!0).attr("text-anchor",N?"end":P?"start":"middle").call(A.font,ae).call(E.convertToTspans,c),Z.textBB=A.bBox(re.node()),Z.transform=_(Z,{fontSize:ae.size}),Z.transform.fontSize=ae.size,d?re.transition().attrTween("transform",function(fe){var xe=y(fe,n,J(),[l,m]);return function(Ae){return b(xe(Ae))}}):re.attr("transform",b(Z))}),le}}}),YL=He({"src/traces/icicle/plot.js"(Y,H){var h=O3(),x=ZL();H.exports=function(E,e,t,r){return h(E,e,t,r,{type:"icicle",drawDescendants:x})}}}),$L=He({"src/traces/icicle/index.js"(Y,H){H.exports={moduleType:"trace",name:"icicle",basePlotModule:GL(),categories:[],animatable:!0,attributes:B3(),layoutAttributes:N3(),supplyDefaults:HL(),supplyLayoutDefaults:WL(),calc:U3().calc,crossTraceCalc:U3().crossTraceCalc,plot:YL(),style:j3().style,colorbar:ch(),meta:{}}}}),KL=He({"lib/icicle.js"(Y,H){H.exports=$L()}}),JL=He({"src/traces/funnelarea/base_plot.js"(Y){var H=$u();Y.name="funnelarea",Y.plot=function(h,x,A,E){H.plotBasePlot(Y.name,h,x,A,E)},Y.clean=function(h,x,A,E){H.cleanBasePlot(Y.name,h,x,A,E)}}}),V3=He({"src/traces/funnelarea/attributes.js"(Y,H){var h=Bp(),x=Ll(),A=Ku().attributes,E=us().hovertemplateAttrs,e=us().texttemplateAttrs,t=Po().extendFlat;H.exports={labels:h.labels,label0:h.label0,dlabel:h.dlabel,values:h.values,marker:{colors:h.marker.colors,line:{color:t({},h.marker.line.color,{dflt:null}),width:t({},h.marker.line.width,{dflt:1}),editType:"calc"},pattern:h.marker.pattern,editType:"calc"},text:h.text,hovertext:h.hovertext,scalegroup:t({},h.scalegroup,{}),textinfo:t({},h.textinfo,{flags:["label","text","value","percent"]}),texttemplate:e({editType:"plot"},{keys:["label","color","value","text","percent"]}),hoverinfo:t({},x.hoverinfo,{flags:["label","text","value","percent","name"]}),hovertemplate:E({},{keys:["label","color","value","text","percent"]}),textposition:t({},h.textposition,{values:["inside","none"],dflt:"inside"}),textfont:h.textfont,insidetextfont:h.insidetextfont,title:{text:h.title.text,font:h.title.font,position:t({},h.title.position,{values:["top left","top center","top right"],dflt:"top center"}),editType:"plot"},domain:A({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"}}}}),q3=He({"src/traces/funnelarea/layout_attributes.js"(Y,H){var h=l_().hiddenlabels;H.exports={hiddenlabels:h,funnelareacolorway:{valType:"colorlist",editType:"calc"},extendfunnelareacolors:{valType:"boolean",dflt:!0,editType:"calc"}}}}),QL=He({"src/traces/funnelarea/defaults.js"(Y,H){var h=Qr(),x=V3(),A=Ku().defaults,E=Yh().handleText,e=Np().handleLabelsAndValues,t=Np().handleMarkerDefaults;H.exports=function(i,a,o,n){function s(M,_){return h.coerce(i,a,x,M,_)}var c=s("labels"),f=s("values"),p=e(c,f),v=p.len;if(a._hasLabels=p.hasLabels,a._hasValues=p.hasValues,!a._hasLabels&&a._hasValues&&(s("label0"),s("dlabel")),!v){a.visible=!1;return}a._length=v,t(i,a,n,s),s("scalegroup");var T=s("text"),l=s("texttemplate"),m;if(l||(m=s("textinfo",Array.isArray(T)?"text+percent":"percent")),s("hovertext"),s("hovertemplate"),l||m&&m!=="none"){var w=s("textposition");E(i,a,n,s,w,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1})}else m==="none"&&s("textposition","none");A(a,n,s);var S=s("title.text");S&&(s("title.position"),h.coerceFont(s,"title.font",n.font)),s("aspectratio"),s("baseratio")}}}),e6=He({"src/traces/funnelarea/layout_defaults.js"(Y,H){var h=Qr(),x=q3();H.exports=function(E,e){function t(r,i){return h.coerce(E,e,x,r,i)}t("hiddenlabels"),t("funnelareacolorway",e.colorway),t("extendfunnelareacolors")}}}),G3=He({"src/traces/funnelarea/calc.js"(Y,H){var h=ng();function x(E,e){return h.calc(E,e)}function A(E){h.crossTraceCalc(E,{type:"funnelarea"})}H.exports={calc:x,crossTraceCalc:A}}}),t6=He({"src/traces/funnelarea/plot.js"(Y,H){var h=yi(),x=Io(),A=Qr(),E=A.strScale,e=A.strTranslate,t=jl(),r=Rp(),i=r.toMoveInsideBar,a=gh(),o=a.recordMinTextSize,n=a.clearMinTextSize,s=Hd(),c=u_(),f=c.attachFxHandlers,p=c.determineInsideTextFont,v=c.layoutAreas,T=c.prerenderTitles,l=c.positionTitleOutside,m=c.formatSliceLabel;H.exports=function(b,d){var u=b._context.staticPlot,g=b._fullLayout;n("funnelarea",g),T(d,b),v(d,g._size),A.makeTraceGroups(g._funnelarealayer,d,"trace").each(function(y){var R=h.select(this),I=y[0],z=I.trace;M(y),R.each(function(){var F=h.select(this).selectAll("g.slice").data(y);F.enter().append("g").classed("slice",!0),F.exit().remove(),F.each(function(O,P){if(O.hidden){h.select(this).selectAll("path,g").remove();return}O.pointNumber=O.i,O.curveNumber=z.index;var N=I.cx,U=I.cy,X=h.select(this),te=X.selectAll("path.surface").data([O]);te.enter().append("path").classed("surface",!0).style({"pointer-events":u?"none":"all"}),X.call(f,b,y);var ue="M"+(N+O.TR[0])+","+(U+O.TR[1])+w(O.TR,O.BR)+w(O.BR,O.BL)+w(O.BL,O.TL)+"Z";te.attr("d",ue),m(b,O,I);var ie=s.castOption(z.textposition,O.pts),le=X.selectAll("g.slicetext").data(O.text&&ie!=="none"?[0]:[]);le.enter().append("g").classed("slicetext",!0),le.exit().remove(),le.each(function(){var q=A.ensureSingle(h.select(this),"text","",function(ae){ae.attr("data-notex",1)}),J=A.ensureUniformFontSize(b,p(z,O,g.font));q.text(O.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(x.font,J).call(t.convertToTspans,b);var ee=x.bBox(q.node()),Z,se,Q,V=Math.min(O.BL[1],O.BR[1])+U,re=Math.max(O.TL[1],O.TR[1])+U;se=Math.max(O.TL[0],O.BL[0])+N,Q=Math.min(O.TR[0],O.BR[0])+N,Z=i(se,Q,V,re,ee,{isHorizontal:!0,constrained:!0,angle:0,anchor:"middle"}),Z.fontSize=J.size,o(z.type,Z,g),y[P].transform=Z,A.setTransormAndDisplay(q,Z)})});var B=h.select(this).selectAll("g.titletext").data(z.title.text?[0]:[]);B.enter().append("g").classed("titletext",!0),B.exit().remove(),B.each(function(){var O=A.ensureSingle(h.select(this),"text","",function(U){U.attr("data-notex",1)}),P=z.title.text;z._meta&&(P=A.templateString(P,z._meta)),O.text(P).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(x.font,z.title.font).call(t.convertToTspans,b);var N=l(I,g._size);O.attr("transform",e(N.x,N.y)+E(Math.min(1,N.scale))+e(N.tx,N.ty))})})})};function w(_,b){var d=b[0]-_[0],u=b[1]-_[1];return"l"+d+","+u}function S(_,b){return[.5*(_[0]+b[0]),.5*(_[1]+b[1])]}function M(_){if(!_.length)return;var b=_[0],d=b.trace,u=d.aspectratio,g=d.baseratio;g>.999&&(g=.999);var y=Math.pow(g,2),R=b.vTotal,I=R*y/(1-y),z=R,F=I/R;function B(){var fe=Math.sqrt(F);return{x:fe,y:-fe}}function O(){var fe=B();return[fe.x,fe.y]}var P,N=[];N.push(O());var U,X;for(U=_.length-1;U>-1;U--)if(X=_[U],!X.hidden){var te=X.v/z;F+=te,N.push(O())}var ue=1/0,ie=-1/0;for(U=0;U-1;U--)if(X=_[U],!X.hidden){V+=1;var re=N[V][0],ae=N[V][1];X.TL=[-re,ae],X.TR=[re,ae],X.BL=se,X.BR=Q,X.pxmid=S(X.TR,X.BR),se=X.TL,Q=X.TR}}}}),r6=He({"src/traces/funnelarea/style.js"(Y,H){var h=yi(),x=V0(),A=gh().resizeText;H.exports=function(e){var t=e._fullLayout._funnelarealayer.selectAll(".trace");A(e,t,"funnelarea"),t.each(function(r){var i=r[0],a=i.trace,o=h.select(this);o.style({opacity:a.opacity}),o.selectAll("path.surface").each(function(n){h.select(this).call(x,n,a,e)})})}}}),a6=He({"src/traces/funnelarea/index.js"(Y,H){H.exports={moduleType:"trace",name:"funnelarea",basePlotModule:JL(),categories:["pie-like","funnelarea","showLegend"],attributes:V3(),layoutAttributes:q3(),supplyDefaults:QL(),supplyLayoutDefaults:e6(),calc:G3().calc,crossTraceCalc:G3().crossTraceCalc,plot:t6(),style:r6(),styleOne:V0(),meta:{}}}}),n6=He({"lib/funnelarea.js"(Y,H){H.exports=a6()}}),eh=He({"stackgl_modules/index.js"(Y,H){(function(){var h={1964:function(e,t,r){e.exports={alpha_shape:r(3502),convex_hull:r(7352),delaunay_triangulate:r(7642),gl_cone3d:r(6405),gl_error3d:r(9165),gl_line3d:r(5714),gl_mesh3d:r(7201),gl_plot3d:r(4100),gl_scatter3d:r(8418),gl_streamtube3d:r(7815),gl_surface3d:r(9499),ndarray:r(9618),ndarray_linear_interpolate:r(4317)}},4793:function(e,t,r){function i(de,me){if(!(de instanceof me))throw new TypeError("Cannot call a class as a function")}function a(de,me){for(var be=0;beb)throw new RangeError('The value "'+de+'" is invalid for option "size"');var me=new Uint8Array(de);return Object.setPrototypeOf(me,g.prototype),me}function g(de,me,be){if(typeof de=="number"){if(typeof me=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return z(de)}return y(de,me,be)}g.poolSize=8192;function y(de,me,be){if(typeof de=="string")return F(de,me);if(ArrayBuffer.isView(de))return O(de);if(de==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+w(de));if(wr(de,ArrayBuffer)||de&&wr(de.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(wr(de,SharedArrayBuffer)||de&&wr(de.buffer,SharedArrayBuffer)))return P(de,me,be);if(typeof de=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var Ie=de.valueOf&&de.valueOf();if(Ie!=null&&Ie!==de)return g.from(Ie,me,be);var Xe=N(de);if(Xe)return Xe;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof de[Symbol.toPrimitive]=="function")return g.from(de[Symbol.toPrimitive]("string"),me,be);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+w(de))}g.from=function(de,me,be){return y(de,me,be)},Object.setPrototypeOf(g.prototype,Uint8Array.prototype),Object.setPrototypeOf(g,Uint8Array);function R(de){if(typeof de!="number")throw new TypeError('"size" argument must be of type number');if(de<0)throw new RangeError('The value "'+de+'" is invalid for option "size"')}function I(de,me,be){return R(de),de<=0?u(de):me!==void 0?typeof be=="string"?u(de).fill(me,be):u(de).fill(me):u(de)}g.alloc=function(de,me,be){return I(de,me,be)};function z(de){return R(de),u(de<0?0:U(de)|0)}g.allocUnsafe=function(de){return z(de)},g.allocUnsafeSlow=function(de){return z(de)};function F(de,me){if((typeof me!="string"||me==="")&&(me="utf8"),!g.isEncoding(me))throw new TypeError("Unknown encoding: "+me);var be=X(de,me)|0,Ie=u(be),Xe=Ie.write(de,me);return Xe!==be&&(Ie=Ie.slice(0,Xe)),Ie}function B(de){for(var me=de.length<0?0:U(de.length)|0,be=u(me),Ie=0;Ie=b)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+b.toString(16)+" bytes");return de|0}g.isBuffer=function(me){return me!=null&&me._isBuffer===!0&&me!==g.prototype},g.compare=function(me,be){if(wr(me,Uint8Array)&&(me=g.from(me,me.offset,me.byteLength)),wr(be,Uint8Array)&&(be=g.from(be,be.offset,be.byteLength)),!g.isBuffer(me)||!g.isBuffer(be))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(me===be)return 0;for(var Ie=me.length,Xe=be.length,ht=0,bt=Math.min(Ie,Xe);htXe.length?(g.isBuffer(bt)||(bt=g.from(bt)),bt.copy(Xe,ht)):Uint8Array.prototype.set.call(Xe,bt,ht);else if(g.isBuffer(bt))bt.copy(Xe,ht);else throw new TypeError('"list" argument must be an Array of Buffers');ht+=bt.length}return Xe};function X(de,me){if(g.isBuffer(de))return de.length;if(ArrayBuffer.isView(de)||wr(de,ArrayBuffer))return de.byteLength;if(typeof de!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+w(de));var be=de.length,Ie=arguments.length>2&&arguments[2]===!0;if(!Ie&&be===0)return 0;for(var Xe=!1;;)switch(me){case"ascii":case"latin1":case"binary":return be;case"utf8":case"utf-8":return Yt(de).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return be*2;case"hex":return be>>>1;case"base64":return Rr(de).length;default:if(Xe)return Ie?-1:Yt(de).length;me=(""+me).toLowerCase(),Xe=!0}}g.byteLength=X;function te(de,me,be){var Ie=!1;if((me===void 0||me<0)&&(me=0),me>this.length||((be===void 0||be>this.length)&&(be=this.length),be<=0)||(be>>>=0,me>>>=0,be<=me))return"";for(de||(de="utf8");;)switch(de){case"hex":return Ae(this,me,be);case"utf8":case"utf-8":return V(this,me,be);case"ascii":return fe(this,me,be);case"latin1":case"binary":return xe(this,me,be);case"base64":return Q(this,me,be);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Pe(this,me,be);default:if(Ie)throw new TypeError("Unknown encoding: "+de);de=(de+"").toLowerCase(),Ie=!0}}g.prototype._isBuffer=!0;function ue(de,me,be){var Ie=de[me];de[me]=de[be],de[be]=Ie}g.prototype.swap16=function(){var me=this.length;if(me%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var be=0;bebe&&(me+=" ... "),""},_&&(g.prototype[_]=g.prototype.inspect),g.prototype.compare=function(me,be,Ie,Xe,ht){if(wr(me,Uint8Array)&&(me=g.from(me,me.offset,me.byteLength)),!g.isBuffer(me))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+w(me));if(be===void 0&&(be=0),Ie===void 0&&(Ie=me?me.length:0),Xe===void 0&&(Xe=0),ht===void 0&&(ht=this.length),be<0||Ie>me.length||Xe<0||ht>this.length)throw new RangeError("out of range index");if(Xe>=ht&&be>=Ie)return 0;if(Xe>=ht)return-1;if(be>=Ie)return 1;if(be>>>=0,Ie>>>=0,Xe>>>=0,ht>>>=0,this===me)return 0;for(var bt=ht-Xe,Ct=Ie-be,Zt=Math.min(bt,Ct),Wt=this.slice(Xe,ht),rr=me.slice(be,Ie),Jt=0;Jt2147483647?be=2147483647:be<-2147483648&&(be=-2147483648),be=+be,yt(be)&&(be=Xe?0:de.length-1),be<0&&(be=de.length+be),be>=de.length){if(Xe)return-1;be=de.length-1}else if(be<0)if(Xe)be=0;else return-1;if(typeof me=="string"&&(me=g.from(me,Ie)),g.isBuffer(me))return me.length===0?-1:le(de,me,be,Ie,Xe);if(typeof me=="number")return me=me&255,typeof Uint8Array.prototype.indexOf=="function"?Xe?Uint8Array.prototype.indexOf.call(de,me,be):Uint8Array.prototype.lastIndexOf.call(de,me,be):le(de,[me],be,Ie,Xe);throw new TypeError("val must be string, number or Buffer")}function le(de,me,be,Ie,Xe){var ht=1,bt=de.length,Ct=me.length;if(Ie!==void 0&&(Ie=String(Ie).toLowerCase(),Ie==="ucs2"||Ie==="ucs-2"||Ie==="utf16le"||Ie==="utf-16le")){if(de.length<2||me.length<2)return-1;ht=2,bt/=2,Ct/=2,be/=2}function Zt(ia,Ia){return ht===1?ia[Ia]:ia.readUInt16BE(Ia*ht)}var Wt;if(Xe){var rr=-1;for(Wt=be;Wtbt&&(be=bt-Ct),Wt=be;Wt>=0;Wt--){for(var Jt=!0,mr=0;mrXe&&(Ie=Xe)):Ie=Xe;var ht=me.length;Ie>ht/2&&(Ie=ht/2);var bt;for(bt=0;bt>>0,isFinite(Ie)?(Ie=Ie>>>0,Xe===void 0&&(Xe="utf8")):(Xe=Ie,Ie=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var ht=this.length-be;if((Ie===void 0||Ie>ht)&&(Ie=ht),me.length>0&&(Ie<0||be<0)||be>this.length)throw new RangeError("Attempt to write outside buffer bounds");Xe||(Xe="utf8");for(var bt=!1;;)switch(Xe){case"hex":return q(this,me,be,Ie);case"utf8":case"utf-8":return J(this,me,be,Ie);case"ascii":case"latin1":case"binary":return ee(this,me,be,Ie);case"base64":return Z(this,me,be,Ie);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return se(this,me,be,Ie);default:if(bt)throw new TypeError("Unknown encoding: "+Xe);Xe=(""+Xe).toLowerCase(),bt=!0}},g.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Q(de,me,be){return me===0&&be===de.length?S.fromByteArray(de):S.fromByteArray(de.slice(me,be))}function V(de,me,be){be=Math.min(de.length,be);for(var Ie=[],Xe=me;Xe239?4:ht>223?3:ht>191?2:1;if(Xe+Ct<=be){var Zt=void 0,Wt=void 0,rr=void 0,Jt=void 0;switch(Ct){case 1:ht<128&&(bt=ht);break;case 2:Zt=de[Xe+1],(Zt&192)===128&&(Jt=(ht&31)<<6|Zt&63,Jt>127&&(bt=Jt));break;case 3:Zt=de[Xe+1],Wt=de[Xe+2],(Zt&192)===128&&(Wt&192)===128&&(Jt=(ht&15)<<12|(Zt&63)<<6|Wt&63,Jt>2047&&(Jt<55296||Jt>57343)&&(bt=Jt));break;case 4:Zt=de[Xe+1],Wt=de[Xe+2],rr=de[Xe+3],(Zt&192)===128&&(Wt&192)===128&&(rr&192)===128&&(Jt=(ht&15)<<18|(Zt&63)<<12|(Wt&63)<<6|rr&63,Jt>65535&&Jt<1114112&&(bt=Jt))}}bt===null?(bt=65533,Ct=1):bt>65535&&(bt-=65536,Ie.push(bt>>>10&1023|55296),bt=56320|bt&1023),Ie.push(bt),Xe+=Ct}return ae(Ie)}var re=4096;function ae(de){var me=de.length;if(me<=re)return String.fromCharCode.apply(String,de);for(var be="",Ie=0;IeIe)&&(be=Ie);for(var Xe="",ht=me;htIe&&(me=Ie),be<0?(be+=Ie,be<0&&(be=0)):be>Ie&&(be=Ie),bebe)throw new RangeError("Trying to access beyond buffer length")}g.prototype.readUintLE=g.prototype.readUIntLE=function(me,be,Ie){me=me>>>0,be=be>>>0,Ie||Ce(me,be,this.length);for(var Xe=this[me],ht=1,bt=0;++bt>>0,be=be>>>0,Ie||Ce(me,be,this.length);for(var Xe=this[me+--be],ht=1;be>0&&(ht*=256);)Xe+=this[me+--be]*ht;return Xe},g.prototype.readUint8=g.prototype.readUInt8=function(me,be){return me=me>>>0,be||Ce(me,1,this.length),this[me]},g.prototype.readUint16LE=g.prototype.readUInt16LE=function(me,be){return me=me>>>0,be||Ce(me,2,this.length),this[me]|this[me+1]<<8},g.prototype.readUint16BE=g.prototype.readUInt16BE=function(me,be){return me=me>>>0,be||Ce(me,2,this.length),this[me]<<8|this[me+1]},g.prototype.readUint32LE=g.prototype.readUInt32LE=function(me,be){return me=me>>>0,be||Ce(me,4,this.length),(this[me]|this[me+1]<<8|this[me+2]<<16)+this[me+3]*16777216},g.prototype.readUint32BE=g.prototype.readUInt32BE=function(me,be){return me=me>>>0,be||Ce(me,4,this.length),this[me]*16777216+(this[me+1]<<16|this[me+2]<<8|this[me+3])},g.prototype.readBigUInt64LE=We(function(me){me=me>>>0,Ke(me,"offset");var be=this[me],Ie=this[me+7];(be===void 0||Ie===void 0)&&Et(me,this.length-8);var Xe=be+this[++me]*Math.pow(2,8)+this[++me]*Math.pow(2,16)+this[++me]*Math.pow(2,24),ht=this[++me]+this[++me]*Math.pow(2,8)+this[++me]*Math.pow(2,16)+Ie*Math.pow(2,24);return BigInt(Xe)+(BigInt(ht)<>>0,Ke(me,"offset");var be=this[me],Ie=this[me+7];(be===void 0||Ie===void 0)&&Et(me,this.length-8);var Xe=be*Math.pow(2,24)+this[++me]*Math.pow(2,16)+this[++me]*Math.pow(2,8)+this[++me],ht=this[++me]*Math.pow(2,24)+this[++me]*Math.pow(2,16)+this[++me]*Math.pow(2,8)+Ie;return(BigInt(Xe)<>>0,be=be>>>0,Ie||Ce(me,be,this.length);for(var Xe=this[me],ht=1,bt=0;++bt=ht&&(Xe-=Math.pow(2,8*be)),Xe},g.prototype.readIntBE=function(me,be,Ie){me=me>>>0,be=be>>>0,Ie||Ce(me,be,this.length);for(var Xe=be,ht=1,bt=this[me+--Xe];Xe>0&&(ht*=256);)bt+=this[me+--Xe]*ht;return ht*=128,bt>=ht&&(bt-=Math.pow(2,8*be)),bt},g.prototype.readInt8=function(me,be){return me=me>>>0,be||Ce(me,1,this.length),this[me]&128?(255-this[me]+1)*-1:this[me]},g.prototype.readInt16LE=function(me,be){me=me>>>0,be||Ce(me,2,this.length);var Ie=this[me]|this[me+1]<<8;return Ie&32768?Ie|4294901760:Ie},g.prototype.readInt16BE=function(me,be){me=me>>>0,be||Ce(me,2,this.length);var Ie=this[me+1]|this[me]<<8;return Ie&32768?Ie|4294901760:Ie},g.prototype.readInt32LE=function(me,be){return me=me>>>0,be||Ce(me,4,this.length),this[me]|this[me+1]<<8|this[me+2]<<16|this[me+3]<<24},g.prototype.readInt32BE=function(me,be){return me=me>>>0,be||Ce(me,4,this.length),this[me]<<24|this[me+1]<<16|this[me+2]<<8|this[me+3]},g.prototype.readBigInt64LE=We(function(me){me=me>>>0,Ke(me,"offset");var be=this[me],Ie=this[me+7];(be===void 0||Ie===void 0)&&Et(me,this.length-8);var Xe=this[me+4]+this[me+5]*Math.pow(2,8)+this[me+6]*Math.pow(2,16)+(Ie<<24);return(BigInt(Xe)<>>0,Ke(me,"offset");var be=this[me],Ie=this[me+7];(be===void 0||Ie===void 0)&&Et(me,this.length-8);var Xe=(be<<24)+this[++me]*Math.pow(2,16)+this[++me]*Math.pow(2,8)+this[++me];return(BigInt(Xe)<>>0,be||Ce(me,4,this.length),M.read(this,me,!0,23,4)},g.prototype.readFloatBE=function(me,be){return me=me>>>0,be||Ce(me,4,this.length),M.read(this,me,!1,23,4)},g.prototype.readDoubleLE=function(me,be){return me=me>>>0,be||Ce(me,8,this.length),M.read(this,me,!0,52,8)},g.prototype.readDoubleBE=function(me,be){return me=me>>>0,be||Ce(me,8,this.length),M.read(this,me,!1,52,8)};function je(de,me,be,Ie,Xe,ht){if(!g.isBuffer(de))throw new TypeError('"buffer" argument must be a Buffer instance');if(me>Xe||mede.length)throw new RangeError("Index out of range")}g.prototype.writeUintLE=g.prototype.writeUIntLE=function(me,be,Ie,Xe){if(me=+me,be=be>>>0,Ie=Ie>>>0,!Xe){var ht=Math.pow(2,8*Ie)-1;je(this,me,be,Ie,ht,0)}var bt=1,Ct=0;for(this[be]=me&255;++Ct>>0,Ie=Ie>>>0,!Xe){var ht=Math.pow(2,8*Ie)-1;je(this,me,be,Ie,ht,0)}var bt=Ie-1,Ct=1;for(this[be+bt]=me&255;--bt>=0&&(Ct*=256);)this[be+bt]=me/Ct&255;return be+Ie},g.prototype.writeUint8=g.prototype.writeUInt8=function(me,be,Ie){return me=+me,be=be>>>0,Ie||je(this,me,be,1,255,0),this[be]=me&255,be+1},g.prototype.writeUint16LE=g.prototype.writeUInt16LE=function(me,be,Ie){return me=+me,be=be>>>0,Ie||je(this,me,be,2,65535,0),this[be]=me&255,this[be+1]=me>>>8,be+2},g.prototype.writeUint16BE=g.prototype.writeUInt16BE=function(me,be,Ie){return me=+me,be=be>>>0,Ie||je(this,me,be,2,65535,0),this[be]=me>>>8,this[be+1]=me&255,be+2},g.prototype.writeUint32LE=g.prototype.writeUInt32LE=function(me,be,Ie){return me=+me,be=be>>>0,Ie||je(this,me,be,4,4294967295,0),this[be+3]=me>>>24,this[be+2]=me>>>16,this[be+1]=me>>>8,this[be]=me&255,be+4},g.prototype.writeUint32BE=g.prototype.writeUInt32BE=function(me,be,Ie){return me=+me,be=be>>>0,Ie||je(this,me,be,4,4294967295,0),this[be]=me>>>24,this[be+1]=me>>>16,this[be+2]=me>>>8,this[be+3]=me&255,be+4};function at(de,me,be,Ie,Xe){nt(me,Ie,Xe,de,be,7);var ht=Number(me&BigInt(4294967295));de[be++]=ht,ht=ht>>8,de[be++]=ht,ht=ht>>8,de[be++]=ht,ht=ht>>8,de[be++]=ht;var bt=Number(me>>BigInt(32)&BigInt(4294967295));return de[be++]=bt,bt=bt>>8,de[be++]=bt,bt=bt>>8,de[be++]=bt,bt=bt>>8,de[be++]=bt,be}function tt(de,me,be,Ie,Xe){nt(me,Ie,Xe,de,be,7);var ht=Number(me&BigInt(4294967295));de[be+7]=ht,ht=ht>>8,de[be+6]=ht,ht=ht>>8,de[be+5]=ht,ht=ht>>8,de[be+4]=ht;var bt=Number(me>>BigInt(32)&BigInt(4294967295));return de[be+3]=bt,bt=bt>>8,de[be+2]=bt,bt=bt>>8,de[be+1]=bt,bt=bt>>8,de[be]=bt,be+8}g.prototype.writeBigUInt64LE=We(function(me){var be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return at(this,me,be,BigInt(0),BigInt("0xffffffffffffffff"))}),g.prototype.writeBigUInt64BE=We(function(me){var be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return tt(this,me,be,BigInt(0),BigInt("0xffffffffffffffff"))}),g.prototype.writeIntLE=function(me,be,Ie,Xe){if(me=+me,be=be>>>0,!Xe){var ht=Math.pow(2,8*Ie-1);je(this,me,be,Ie,ht-1,-ht)}var bt=0,Ct=1,Zt=0;for(this[be]=me&255;++bt>0)-Zt&255;return be+Ie},g.prototype.writeIntBE=function(me,be,Ie,Xe){if(me=+me,be=be>>>0,!Xe){var ht=Math.pow(2,8*Ie-1);je(this,me,be,Ie,ht-1,-ht)}var bt=Ie-1,Ct=1,Zt=0;for(this[be+bt]=me&255;--bt>=0&&(Ct*=256);)me<0&&Zt===0&&this[be+bt+1]!==0&&(Zt=1),this[be+bt]=(me/Ct>>0)-Zt&255;return be+Ie},g.prototype.writeInt8=function(me,be,Ie){return me=+me,be=be>>>0,Ie||je(this,me,be,1,127,-128),me<0&&(me=255+me+1),this[be]=me&255,be+1},g.prototype.writeInt16LE=function(me,be,Ie){return me=+me,be=be>>>0,Ie||je(this,me,be,2,32767,-32768),this[be]=me&255,this[be+1]=me>>>8,be+2},g.prototype.writeInt16BE=function(me,be,Ie){return me=+me,be=be>>>0,Ie||je(this,me,be,2,32767,-32768),this[be]=me>>>8,this[be+1]=me&255,be+2},g.prototype.writeInt32LE=function(me,be,Ie){return me=+me,be=be>>>0,Ie||je(this,me,be,4,2147483647,-2147483648),this[be]=me&255,this[be+1]=me>>>8,this[be+2]=me>>>16,this[be+3]=me>>>24,be+4},g.prototype.writeInt32BE=function(me,be,Ie){return me=+me,be=be>>>0,Ie||je(this,me,be,4,2147483647,-2147483648),me<0&&(me=4294967295+me+1),this[be]=me>>>24,this[be+1]=me>>>16,this[be+2]=me>>>8,this[be+3]=me&255,be+4},g.prototype.writeBigInt64LE=We(function(me){var be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return at(this,me,be,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),g.prototype.writeBigInt64BE=We(function(me){var be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return tt(this,me,be,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Je(de,me,be,Ie,Xe,ht){if(be+Ie>de.length)throw new RangeError("Index out of range");if(be<0)throw new RangeError("Index out of range")}function Ze(de,me,be,Ie,Xe){return me=+me,be=be>>>0,Xe||Je(de,me,be,4),M.write(de,me,be,Ie,23,4),be+4}g.prototype.writeFloatLE=function(me,be,Ie){return Ze(this,me,be,!0,Ie)},g.prototype.writeFloatBE=function(me,be,Ie){return Ze(this,me,be,!1,Ie)};function Me(de,me,be,Ie,Xe){return me=+me,be=be>>>0,Xe||Je(de,me,be,8),M.write(de,me,be,Ie,52,8),be+8}g.prototype.writeDoubleLE=function(me,be,Ie){return Me(this,me,be,!0,Ie)},g.prototype.writeDoubleBE=function(me,be,Ie){return Me(this,me,be,!1,Ie)},g.prototype.copy=function(me,be,Ie,Xe){if(!g.isBuffer(me))throw new TypeError("argument should be a Buffer");if(Ie||(Ie=0),!Xe&&Xe!==0&&(Xe=this.length),be>=me.length&&(be=me.length),be||(be=0),Xe>0&&Xe=this.length)throw new RangeError("Index out of range");if(Xe<0)throw new RangeError("sourceEnd out of bounds");Xe>this.length&&(Xe=this.length),me.length-be>>0,Ie=Ie===void 0?this.length:Ie>>>0,me||(me=0);var bt;if(typeof me=="number")for(bt=be;btMath.pow(2,32)?Xe=De(String(be)):typeof be=="bigint"&&(Xe=String(be),(be>Math.pow(BigInt(2),BigInt(32))||be<-Math.pow(BigInt(2),BigInt(32)))&&(Xe=De(Xe)),Xe+="n"),Ie+=" It must be ".concat(me,". Received ").concat(Xe),Ie},RangeError);function De(de){for(var me="",be=de.length,Ie=de[0]==="-"?1:0;be>=Ie+4;be-=3)me="_".concat(de.slice(be-3,be)).concat(me);return"".concat(de.slice(0,be)).concat(me)}function et(de,me,be){Ke(me,"offset"),(de[me]===void 0||de[me+be]===void 0)&&Et(me,de.length-(be+1))}function nt(de,me,be,Ie,Xe,ht){if(de>be||de= 0".concat(bt," and < 2").concat(bt," ** ").concat((ht+1)*8).concat(bt):Ct=">= -(2".concat(bt," ** ").concat((ht+1)*8-1).concat(bt,") and < 2 ** ")+"".concat((ht+1)*8-1).concat(bt),new we.ERR_OUT_OF_RANGE("value",Ct,de)}et(Ie,Xe,ht)}function Ke(de,me){if(typeof de!="number")throw new we.ERR_INVALID_ARG_TYPE(me,"number",de)}function Et(de,me,be){throw Math.floor(de)!==de?(Ke(de,be),new we.ERR_OUT_OF_RANGE("offset","an integer",de)):me<0?new we.ERR_BUFFER_OUT_OF_BOUNDS:new we.ERR_OUT_OF_RANGE("offset",">= ".concat(0," and <= ").concat(me),de)}var kt=/[^+/0-9A-Za-z-_]/g;function Ut(de){if(de=de.split("=")[0],de=de.trim().replace(kt,""),de.length<2)return"";for(;de.length%4!==0;)de=de+"=";return de}function Yt(de,me){me=me||1/0;for(var be,Ie=de.length,Xe=null,ht=[],bt=0;bt55295&&be<57344){if(!Xe){if(be>56319){(me-=3)>-1&&ht.push(239,191,189);continue}else if(bt+1===Ie){(me-=3)>-1&&ht.push(239,191,189);continue}Xe=be;continue}if(be<56320){(me-=3)>-1&&ht.push(239,191,189),Xe=be;continue}be=(Xe-55296<<10|be-56320)+65536}else Xe&&(me-=3)>-1&&ht.push(239,191,189);if(Xe=null,be<128){if((me-=1)<0)break;ht.push(be)}else if(be<2048){if((me-=2)<0)break;ht.push(be>>6|192,be&63|128)}else if(be<65536){if((me-=3)<0)break;ht.push(be>>12|224,be>>6&63|128,be&63|128)}else if(be<1114112){if((me-=4)<0)break;ht.push(be>>18|240,be>>12&63|128,be>>6&63|128,be&63|128)}else throw new Error("Invalid code point")}return ht}function vr(de){for(var me=[],be=0;be>8,Xe=be%256,ht.push(Xe),ht.push(Ie);return ht}function Rr(de){return S.toByteArray(Ut(de))}function dr(de,me,be,Ie){var Xe;for(Xe=0;Xe=me.length||Xe>=de.length);++Xe)me[Xe+be]=de[Xe];return Xe}function wr(de,me){return de instanceof me||de!=null&&de.constructor!=null&&de.constructor.name!=null&&de.constructor.name===me.name}function yt(de){return de!==de}var Fe=function(){for(var de="0123456789abcdef",me=new Array(256),be=0;be<16;++be)for(var Ie=be*16,Xe=0;Xe<16;++Xe)me[Ie+Xe]=de[be]+de[Xe];return me}();function We(de){return typeof BigInt>"u"?Oe:de}function Oe(){throw new Error("BigInt not supported")}},9216:function(e){e.exports=a,e.exports.isMobile=a,e.exports.default=a;var t=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,r=/CrOS/,i=/android|ipad|playbook|silk/i;function a(o){o||(o={});var n=o.ua;if(!n&&typeof navigator<"u"&&(n=navigator.userAgent),n&&n.headers&&typeof n.headers["user-agent"]=="string"&&(n=n.headers["user-agent"]),typeof n!="string")return!1;var s=t.test(n)&&!r.test(n)||!!o.tablet&&i.test(n);return!s&&o.tablet&&o.featureDetect&&navigator&&navigator.maxTouchPoints>1&&n.indexOf("Macintosh")!==-1&&n.indexOf("Safari")!==-1&&(s=!0),s}},6296:function(e,t,r){e.exports=c;var i=r(7261),a=r(9977),o=r(1811);function n(f,p){this._controllerNames=Object.keys(f),this._controllerList=this._controllerNames.map(function(v){return f[v]}),this._mode=p,this._active=f[p],this._active||(this._mode="turntable",this._active=f.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 s=n.prototype;s.flush=function(f){for(var p=this._controllerList,v=0;v"u"?r(1538):WeakMap,a=r(2762),o=r(8116),n=new i;function s(c){var f=n.get(c),p=f&&(f._triangleBuffer.handle||f._triangleBuffer.buffer);if(!p||!c.isBuffer(p)){var v=a(c,new Float32Array([-1,-1,-1,4,4,-1]));f=o(c,[{buffer:v,type:c.FLOAT,size:2}]),f._triangleBuffer=v,n.set(c,f)}f.bind(),c.drawArrays(c.TRIANGLES,0,3),f.unbind()}e.exports=s},1085:function(e,t,r){var i=r(1371);e.exports=a;function a(o,n,s){n=typeof n=="number"?n:1,s=s||": ";var c=o.split(/\r?\n/),f=String(c.length+n-1).length;return c.map(function(p,v){var T=v+n,l=String(T).length,m=i(T,f-l);return m+s+p}).join(` -`)}},3952:function(e,t,r){e.exports=o;var i=r(3250);function a(n,s){for(var c=new Array(s+1),f=0;f0)throw new Error("Invalid string. Length must be a multiple of 4");var M=w.indexOf("=");M===-1&&(M=S);var _=M===S?0:4-M%4;return[M,_]}function f(w){var S=c(w),M=S[0],_=S[1];return(M+_)*3/4-_}function p(w,S,M){return(S+M)*3/4-M}function v(w){var S,M=c(w),_=M[0],b=M[1],d=new a(p(w,_,b)),u=0,g=b>0?_-4:_,y;for(y=0;y>16&255,d[u++]=S>>8&255,d[u++]=S&255;return b===2&&(S=i[w.charCodeAt(y)]<<2|i[w.charCodeAt(y+1)]>>4,d[u++]=S&255),b===1&&(S=i[w.charCodeAt(y)]<<10|i[w.charCodeAt(y+1)]<<4|i[w.charCodeAt(y+2)]>>2,d[u++]=S>>8&255,d[u++]=S&255),d}function T(w){return r[w>>18&63]+r[w>>12&63]+r[w>>6&63]+r[w&63]}function l(w,S,M){for(var _,b=[],d=S;dg?g:u+d));return _===1?(S=w[M-1],b.push(r[S>>2]+r[S<<4&63]+"==")):_===2&&(S=(w[M-2]<<8)+w[M-1],b.push(r[S>>10]+r[S>>4&63]+r[S<<2&63]+"=")),b.join("")}},3865:function(e,t,r){var i=r(869);e.exports=a;function a(o,n){return i(o[0].mul(n[1]).add(n[0].mul(o[1])),o[1].mul(n[1]))}},1318:function(e){e.exports=t;function t(r,i){return r[0].mul(i[1]).cmp(i[0].mul(r[1]))}},8697:function(e,t,r){var i=r(869);e.exports=a;function a(o,n){return i(o[0].mul(n[1]),o[1].mul(n[0]))}},7842:function(e,t,r){var i=r(6330),a=r(1533),o=r(2651),n=r(6768),s=r(869),c=r(8697);e.exports=f;function f(p,v){if(i(p))return v?c(p,f(v)):[p[0].clone(),p[1].clone()];var T=0,l,m;if(a(p))l=p.clone();else if(typeof p=="string")l=n(p);else{if(p===0)return[o(0),o(1)];if(p===Math.floor(p))l=o(p);else{for(;p!==Math.floor(p);)p=p*Math.pow(2,256),T-=256;l=o(p)}}if(i(v))l.mul(v[1]),m=v[0].clone();else if(a(v))m=v.clone();else if(typeof v=="string")m=n(v);else if(!v)m=o(1);else if(v===Math.floor(v))m=o(v);else{for(;v!==Math.floor(v);)v=v*Math.pow(2,256),T+=256;m=o(v)}return T>0?l=l.ushln(T):T<0&&(m=m.ushln(-T)),s(l,m)}},6330:function(e,t,r){var i=r(1533);e.exports=a;function a(o){return Array.isArray(o)&&o.length===2&&i(o[0])&&i(o[1])}},5716:function(e,t,r){var i=r(6859);e.exports=a;function a(o){return o.cmp(new i(0))}},1369:function(e,t,r){var i=r(5716);e.exports=a;function a(o){var n=o.length,s=o.words,c=0;if(n===1)c=s[0];else if(n===2)c=s[0]+s[1]*67108864;else for(var f=0;f20?52:c+32}},1533:function(e,t,r){r(6859),e.exports=i;function i(a){return a&&typeof a=="object"&&!!a.words}},2651:function(e,t,r){var i=r(6859),a=r(2361);e.exports=o;function o(n){var s=a.exponent(n);return s<52?new i(n):new i(n*Math.pow(2,52-s)).ushln(s-52)}},869:function(e,t,r){var i=r(2651),a=r(5716);e.exports=o;function o(n,s){var c=a(n),f=a(s);if(c===0)return[i(0),i(1)];if(f===0)return[i(0),i(0)];f<0&&(n=n.neg(),s=s.neg());var p=n.gcd(s);return p.cmpn(1)?[n.div(p),s.div(p)]:[n,s]}},6768:function(e,t,r){var i=r(6859);e.exports=a;function a(o){return new i(o)}},6504:function(e,t,r){var i=r(869);e.exports=a;function a(o,n){return i(o[0].mul(n[0]),o[1].mul(n[1]))}},7721:function(e,t,r){var i=r(5716);e.exports=a;function a(o){return i(o[0])*i(o[1])}},5572:function(e,t,r){var i=r(869);e.exports=a;function a(o,n){return i(o[0].mul(n[1]).sub(o[1].mul(n[0])),o[1].mul(n[1]))}},946:function(e,t,r){var i=r(1369),a=r(4025);e.exports=o;function o(n){var s=n[0],c=n[1];if(s.cmpn(0)===0)return 0;var f=s.abs().divmod(c.abs()),p=f.div,v=i(p),T=f.mod,l=s.negative!==c.negative?-1:1;if(T.cmpn(0)===0)return l*v;if(v){var m=a(v)+4,w=i(T.ushln(m).divRound(c));return l*(v+w*Math.pow(2,-m))}else{var S=c.bitLength()-T.bitLength()+53,w=i(T.ushln(S).divRound(c));return S<1023?l*w*Math.pow(2,-S):(w*=Math.pow(2,-1023),l*w*Math.pow(2,1023-S))}}},2478:function(e){function t(s,c,f,p,v){for(var T=v+1;p<=v;){var l=p+v>>>1,m=s[l],w=f!==void 0?f(m,c):m-c;w>=0?(T=l,v=l-1):p=l+1}return T}function r(s,c,f,p,v){for(var T=v+1;p<=v;){var l=p+v>>>1,m=s[l],w=f!==void 0?f(m,c):m-c;w>0?(T=l,v=l-1):p=l+1}return T}function i(s,c,f,p,v){for(var T=p-1;p<=v;){var l=p+v>>>1,m=s[l],w=f!==void 0?f(m,c):m-c;w<0?(T=l,p=l+1):v=l-1}return T}function a(s,c,f,p,v){for(var T=p-1;p<=v;){var l=p+v>>>1,m=s[l],w=f!==void 0?f(m,c):m-c;w<=0?(T=l,p=l+1):v=l-1}return T}function o(s,c,f,p,v){for(;p<=v;){var T=p+v>>>1,l=s[T],m=f!==void 0?f(l,c):l-c;if(m===0)return T;m<=0?p=T+1:v=T-1}return-1}function n(s,c,f,p,v,T){return typeof f=="function"?T(s,c,f,p===void 0?0:p|0,v===void 0?s.length-1:v|0):T(s,c,void 0,f===void 0?0:f|0,p===void 0?s.length-1:p|0)}e.exports={ge:function(s,c,f,p,v){return n(s,c,f,p,v,t)},gt:function(s,c,f,p,v){return n(s,c,f,p,v,r)},lt:function(s,c,f,p,v){return n(s,c,f,p,v,i)},le:function(s,c,f,p,v){return n(s,c,f,p,v,a)},eq:function(s,c,f,p,v){return n(s,c,f,p,v,o)}}},8828:function(e,t){"use restrict";var r=32;t.INT_BITS=r,t.INT_MAX=2147483647,t.INT_MIN=-1<0)-(o<0)},t.abs=function(o){var n=o>>r-1;return(o^n)-n},t.min=function(o,n){return n^(o^n)&-(o65535)<<4,o>>>=n,s=(o>255)<<3,o>>>=s,n|=s,s=(o>15)<<2,o>>>=s,n|=s,s=(o>3)<<1,o>>>=s,n|=s,n|o>>1},t.log10=function(o){return o>=1e9?9:o>=1e8?8:o>=1e7?7:o>=1e6?6:o>=1e5?5:o>=1e4?4:o>=1e3?3:o>=100?2:o>=10?1:0},t.popCount=function(o){return o=o-(o>>>1&1431655765),o=(o&858993459)+(o>>>2&858993459),(o+(o>>>4)&252645135)*16843009>>>24};function i(o){var n=32;return o&=-o,o&&n--,o&65535&&(n-=16),o&16711935&&(n-=8),o&252645135&&(n-=4),o&858993459&&(n-=2),o&1431655765&&(n-=1),n}t.countTrailingZeros=i,t.nextPow2=function(o){return o+=o===0,--o,o|=o>>>1,o|=o>>>2,o|=o>>>4,o|=o>>>8,o|=o>>>16,o+1},t.prevPow2=function(o){return o|=o>>>1,o|=o>>>2,o|=o>>>4,o|=o>>>8,o|=o>>>16,o-(o>>>1)},t.parity=function(o){return o^=o>>>16,o^=o>>>8,o^=o>>>4,o&=15,27030>>>o&1};var a=new Array(256);(function(o){for(var n=0;n<256;++n){var s=n,c=n,f=7;for(s>>>=1;s;s>>>=1)c<<=1,c|=s&1,--f;o[n]=c<>>8&255]<<16|a[o>>>16&255]<<8|a[o>>>24&255]},t.interleave2=function(o,n){return o&=65535,o=(o|o<<8)&16711935,o=(o|o<<4)&252645135,o=(o|o<<2)&858993459,o=(o|o<<1)&1431655765,n&=65535,n=(n|n<<8)&16711935,n=(n|n<<4)&252645135,n=(n|n<<2)&858993459,n=(n|n<<1)&1431655765,o|n<<1},t.deinterleave2=function(o,n){return o=o>>>n&1431655765,o=(o|o>>>1)&858993459,o=(o|o>>>2)&252645135,o=(o|o>>>4)&16711935,o=(o|o>>>16)&65535,o<<16>>16},t.interleave3=function(o,n,s){return o&=1023,o=(o|o<<16)&4278190335,o=(o|o<<8)&251719695,o=(o|o<<4)&3272356035,o=(o|o<<2)&1227133513,n&=1023,n=(n|n<<16)&4278190335,n=(n|n<<8)&251719695,n=(n|n<<4)&3272356035,n=(n|n<<2)&1227133513,o|=n<<1,s&=1023,s=(s|s<<16)&4278190335,s=(s|s<<8)&251719695,s=(s|s<<4)&3272356035,s=(s|s<<2)&1227133513,o|s<<2},t.deinterleave3=function(o,n){return o=o>>>n&1227133513,o=(o|o>>>2)&3272356035,o=(o|o>>>4)&251719695,o=(o|o>>>8)&4278190335,o=(o|o>>>16)&1023,o<<22>>22},t.nextCombination=function(o){var n=o|o-1;return n+1|(~n&-~n)-1>>>i(o)+1}},6859:function(e,t,r){e=r.nmd(e),function(i,a){function o(O,P){if(!O)throw new Error(P||"Assertion failed")}function n(O,P){O.super_=P;var N=function(){};N.prototype=P.prototype,O.prototype=new N,O.prototype.constructor=O}function s(O,P,N){if(s.isBN(O))return O;this.negative=0,this.words=null,this.length=0,this.red=null,O!==null&&((P==="le"||P==="be")&&(N=P,P=10),this._init(O||0,P||10,N||"be"))}typeof i=="object"?i.exports=s:a.BN=s,s.BN=s,s.wordSize=26;var c;try{typeof window<"u"&&typeof window.Buffer<"u"?c=window.Buffer:c=r(7790).Buffer}catch{}s.isBN=function(P){return P instanceof s?!0:P!==null&&typeof P=="object"&&P.constructor.wordSize===s.wordSize&&Array.isArray(P.words)},s.max=function(P,N){return P.cmp(N)>0?P:N},s.min=function(P,N){return P.cmp(N)<0?P:N},s.prototype._init=function(P,N,U){if(typeof P=="number")return this._initNumber(P,N,U);if(typeof P=="object")return this._initArray(P,N,U);N==="hex"&&(N=16),o(N===(N|0)&&N>=2&&N<=36),P=P.toString().replace(/\s+/g,"");var X=0;P[0]==="-"&&(X++,this.negative=1),X=0;X-=3)ue=P[X]|P[X-1]<<8|P[X-2]<<16,this.words[te]|=ue<>>26-ie&67108863,ie+=24,ie>=26&&(ie-=26,te++);else if(U==="le")for(X=0,te=0;X>>26-ie&67108863,ie+=24,ie>=26&&(ie-=26,te++);return this.strip()};function f(O,P){var N=O.charCodeAt(P);return N>=65&&N<=70?N-55:N>=97&&N<=102?N-87:N-48&15}function p(O,P,N){var U=f(O,N);return N-1>=P&&(U|=f(O,N-1)<<4),U}s.prototype._parseHex=function(P,N,U){this.length=Math.ceil((P.length-N)/6),this.words=new Array(this.length);for(var X=0;X=N;X-=2)ie=p(P,N,X)<=18?(te-=18,ue+=1,this.words[ue]|=ie>>>26):te+=8;else{var le=P.length-N;for(X=le%2===0?N+1:N;X=18?(te-=18,ue+=1,this.words[ue]|=ie>>>26):te+=8}this.strip()};function v(O,P,N,U){for(var X=0,te=Math.min(O.length,N),ue=P;ue=49?X+=ie-49+10:ie>=17?X+=ie-17+10:X+=ie}return X}s.prototype._parseBase=function(P,N,U){this.words=[0],this.length=1;for(var X=0,te=1;te<=67108863;te*=N)X++;X--,te=te/N|0;for(var ue=P.length-U,ie=ue%X,le=Math.min(ue,ue-ie)+U,q=0,J=U;J1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},s.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},s.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"],l=[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],m=[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];s.prototype.toString=function(P,N){P=P||10,N=N|0||1;var U;if(P===16||P==="hex"){U="";for(var X=0,te=0,ue=0;ue>>24-X&16777215,te!==0||ue!==this.length-1?U=T[6-le.length]+le+U:U=le+U,X+=2,X>=26&&(X-=26,ue--)}for(te!==0&&(U=te.toString(16)+U);U.length%N!==0;)U="0"+U;return this.negative!==0&&(U="-"+U),U}if(P===(P|0)&&P>=2&&P<=36){var q=l[P],J=m[P];U="";var ee=this.clone();for(ee.negative=0;!ee.isZero();){var Z=ee.modn(J).toString(P);ee=ee.idivn(J),ee.isZero()?U=Z+U:U=T[q-Z.length]+Z+U}for(this.isZero()&&(U="0"+U);U.length%N!==0;)U="0"+U;return this.negative!==0&&(U="-"+U),U}o(!1,"Base should be between 2 and 36")},s.prototype.toNumber=function(){var P=this.words[0];return this.length===2?P+=this.words[1]*67108864:this.length===3&&this.words[2]===1?P+=4503599627370496+this.words[1]*67108864:this.length>2&&o(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-P:P},s.prototype.toJSON=function(){return this.toString(16)},s.prototype.toBuffer=function(P,N){return o(typeof c<"u"),this.toArrayLike(c,P,N)},s.prototype.toArray=function(P,N){return this.toArrayLike(Array,P,N)},s.prototype.toArrayLike=function(P,N,U){var X=this.byteLength(),te=U||Math.max(1,X);o(X<=te,"byte array longer than desired length"),o(te>0,"Requested array length <= 0"),this.strip();var ue=N==="le",ie=new P(te),le,q,J=this.clone();if(ue){for(q=0;!J.isZero();q++)le=J.andln(255),J.iushrn(8),ie[q]=le;for(;q=4096&&(U+=13,N>>>=13),N>=64&&(U+=7,N>>>=7),N>=8&&(U+=4,N>>>=4),N>=2&&(U+=2,N>>>=2),U+N},s.prototype._zeroBits=function(P){if(P===0)return 26;var N=P,U=0;return(N&8191)===0&&(U+=13,N>>>=13),(N&127)===0&&(U+=7,N>>>=7),(N&15)===0&&(U+=4,N>>>=4),(N&3)===0&&(U+=2,N>>>=2),(N&1)===0&&U++,U},s.prototype.bitLength=function(){var P=this.words[this.length-1],N=this._countBits(P);return(this.length-1)*26+N};function w(O){for(var P=new Array(O.bitLength()),N=0;N>>X}return P}s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var P=0,N=0;NP.length?this.clone().ior(P):P.clone().ior(this)},s.prototype.uor=function(P){return this.length>P.length?this.clone().iuor(P):P.clone().iuor(this)},s.prototype.iuand=function(P){var N;this.length>P.length?N=P:N=this;for(var U=0;UP.length?this.clone().iand(P):P.clone().iand(this)},s.prototype.uand=function(P){return this.length>P.length?this.clone().iuand(P):P.clone().iuand(this)},s.prototype.iuxor=function(P){var N,U;this.length>P.length?(N=this,U=P):(N=P,U=this);for(var X=0;XP.length?this.clone().ixor(P):P.clone().ixor(this)},s.prototype.uxor=function(P){return this.length>P.length?this.clone().iuxor(P):P.clone().iuxor(this)},s.prototype.inotn=function(P){o(typeof P=="number"&&P>=0);var N=Math.ceil(P/26)|0,U=P%26;this._expand(N),U>0&&N--;for(var X=0;X0&&(this.words[X]=~this.words[X]&67108863>>26-U),this.strip()},s.prototype.notn=function(P){return this.clone().inotn(P)},s.prototype.setn=function(P,N){o(typeof P=="number"&&P>=0);var U=P/26|0,X=P%26;return this._expand(U+1),N?this.words[U]=this.words[U]|1<P.length?(U=this,X=P):(U=P,X=this);for(var te=0,ue=0;ue>>26;for(;te!==0&&ue>>26;if(this.length=U.length,te!==0)this.words[this.length]=te,this.length++;else if(U!==this)for(;ueP.length?this.clone().iadd(P):P.clone().iadd(this)},s.prototype.isub=function(P){if(P.negative!==0){P.negative=0;var N=this.iadd(P);return P.negative=1,N._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(P),this.negative=1,this._normSign();var U=this.cmp(P);if(U===0)return this.negative=0,this.length=1,this.words[0]=0,this;var X,te;U>0?(X=this,te=P):(X=P,te=this);for(var ue=0,ie=0;ie>26,this.words[ie]=N&67108863;for(;ue!==0&&ie>26,this.words[ie]=N&67108863;if(ue===0&&ie>>26,ee=le&67108863,Z=Math.min(q,P.length-1),se=Math.max(0,q-O.length+1);se<=Z;se++){var Q=q-se|0;X=O.words[Q]|0,te=P.words[se]|0,ue=X*te+ee,J+=ue/67108864|0,ee=ue&67108863}N.words[q]=ee|0,le=J|0}return le!==0?N.words[q]=le|0:N.length--,N.strip()}var M=function(P,N,U){var X=P.words,te=N.words,ue=U.words,ie=0,le,q,J,ee=X[0]|0,Z=ee&8191,se=ee>>>13,Q=X[1]|0,V=Q&8191,re=Q>>>13,ae=X[2]|0,fe=ae&8191,xe=ae>>>13,Ae=X[3]|0,Pe=Ae&8191,Ce=Ae>>>13,je=X[4]|0,at=je&8191,tt=je>>>13,Je=X[5]|0,Ze=Je&8191,Me=Je>>>13,we=X[6]|0,he=we&8191,De=we>>>13,et=X[7]|0,nt=et&8191,Ke=et>>>13,Et=X[8]|0,kt=Et&8191,Ut=Et>>>13,Yt=X[9]|0,vr=Yt&8191,hr=Yt>>>13,Rr=te[0]|0,dr=Rr&8191,wr=Rr>>>13,yt=te[1]|0,Fe=yt&8191,We=yt>>>13,Oe=te[2]|0,de=Oe&8191,me=Oe>>>13,be=te[3]|0,Ie=be&8191,Xe=be>>>13,ht=te[4]|0,bt=ht&8191,Ct=ht>>>13,Zt=te[5]|0,Wt=Zt&8191,rr=Zt>>>13,Jt=te[6]|0,mr=Jt&8191,ia=Jt>>>13,Ia=te[7]|0,La=Ia&8191,Aa=Ia>>>13,Ga=te[8]|0,ba=Ga&8191,Xa=Ga>>>13,yn=te[9]|0,Kt=yn&8191,zt=yn>>>13;U.negative=P.negative^N.negative,U.length=19,le=Math.imul(Z,dr),q=Math.imul(Z,wr),q=q+Math.imul(se,dr)|0,J=Math.imul(se,wr);var $t=(ie+le|0)+((q&8191)<<13)|0;ie=(J+(q>>>13)|0)+($t>>>26)|0,$t&=67108863,le=Math.imul(V,dr),q=Math.imul(V,wr),q=q+Math.imul(re,dr)|0,J=Math.imul(re,wr),le=le+Math.imul(Z,Fe)|0,q=q+Math.imul(Z,We)|0,q=q+Math.imul(se,Fe)|0,J=J+Math.imul(se,We)|0;var Ht=(ie+le|0)+((q&8191)<<13)|0;ie=(J+(q>>>13)|0)+(Ht>>>26)|0,Ht&=67108863,le=Math.imul(fe,dr),q=Math.imul(fe,wr),q=q+Math.imul(xe,dr)|0,J=Math.imul(xe,wr),le=le+Math.imul(V,Fe)|0,q=q+Math.imul(V,We)|0,q=q+Math.imul(re,Fe)|0,J=J+Math.imul(re,We)|0,le=le+Math.imul(Z,de)|0,q=q+Math.imul(Z,me)|0,q=q+Math.imul(se,de)|0,J=J+Math.imul(se,me)|0;var Tr=(ie+le|0)+((q&8191)<<13)|0;ie=(J+(q>>>13)|0)+(Tr>>>26)|0,Tr&=67108863,le=Math.imul(Pe,dr),q=Math.imul(Pe,wr),q=q+Math.imul(Ce,dr)|0,J=Math.imul(Ce,wr),le=le+Math.imul(fe,Fe)|0,q=q+Math.imul(fe,We)|0,q=q+Math.imul(xe,Fe)|0,J=J+Math.imul(xe,We)|0,le=le+Math.imul(V,de)|0,q=q+Math.imul(V,me)|0,q=q+Math.imul(re,de)|0,J=J+Math.imul(re,me)|0,le=le+Math.imul(Z,Ie)|0,q=q+Math.imul(Z,Xe)|0,q=q+Math.imul(se,Ie)|0,J=J+Math.imul(se,Xe)|0;var qr=(ie+le|0)+((q&8191)<<13)|0;ie=(J+(q>>>13)|0)+(qr>>>26)|0,qr&=67108863,le=Math.imul(at,dr),q=Math.imul(at,wr),q=q+Math.imul(tt,dr)|0,J=Math.imul(tt,wr),le=le+Math.imul(Pe,Fe)|0,q=q+Math.imul(Pe,We)|0,q=q+Math.imul(Ce,Fe)|0,J=J+Math.imul(Ce,We)|0,le=le+Math.imul(fe,de)|0,q=q+Math.imul(fe,me)|0,q=q+Math.imul(xe,de)|0,J=J+Math.imul(xe,me)|0,le=le+Math.imul(V,Ie)|0,q=q+Math.imul(V,Xe)|0,q=q+Math.imul(re,Ie)|0,J=J+Math.imul(re,Xe)|0,le=le+Math.imul(Z,bt)|0,q=q+Math.imul(Z,Ct)|0,q=q+Math.imul(se,bt)|0,J=J+Math.imul(se,Ct)|0;var ha=(ie+le|0)+((q&8191)<<13)|0;ie=(J+(q>>>13)|0)+(ha>>>26)|0,ha&=67108863,le=Math.imul(Ze,dr),q=Math.imul(Ze,wr),q=q+Math.imul(Me,dr)|0,J=Math.imul(Me,wr),le=le+Math.imul(at,Fe)|0,q=q+Math.imul(at,We)|0,q=q+Math.imul(tt,Fe)|0,J=J+Math.imul(tt,We)|0,le=le+Math.imul(Pe,de)|0,q=q+Math.imul(Pe,me)|0,q=q+Math.imul(Ce,de)|0,J=J+Math.imul(Ce,me)|0,le=le+Math.imul(fe,Ie)|0,q=q+Math.imul(fe,Xe)|0,q=q+Math.imul(xe,Ie)|0,J=J+Math.imul(xe,Xe)|0,le=le+Math.imul(V,bt)|0,q=q+Math.imul(V,Ct)|0,q=q+Math.imul(re,bt)|0,J=J+Math.imul(re,Ct)|0,le=le+Math.imul(Z,Wt)|0,q=q+Math.imul(Z,rr)|0,q=q+Math.imul(se,Wt)|0,J=J+Math.imul(se,rr)|0;var Gr=(ie+le|0)+((q&8191)<<13)|0;ie=(J+(q>>>13)|0)+(Gr>>>26)|0,Gr&=67108863,le=Math.imul(he,dr),q=Math.imul(he,wr),q=q+Math.imul(De,dr)|0,J=Math.imul(De,wr),le=le+Math.imul(Ze,Fe)|0,q=q+Math.imul(Ze,We)|0,q=q+Math.imul(Me,Fe)|0,J=J+Math.imul(Me,We)|0,le=le+Math.imul(at,de)|0,q=q+Math.imul(at,me)|0,q=q+Math.imul(tt,de)|0,J=J+Math.imul(tt,me)|0,le=le+Math.imul(Pe,Ie)|0,q=q+Math.imul(Pe,Xe)|0,q=q+Math.imul(Ce,Ie)|0,J=J+Math.imul(Ce,Xe)|0,le=le+Math.imul(fe,bt)|0,q=q+Math.imul(fe,Ct)|0,q=q+Math.imul(xe,bt)|0,J=J+Math.imul(xe,Ct)|0,le=le+Math.imul(V,Wt)|0,q=q+Math.imul(V,rr)|0,q=q+Math.imul(re,Wt)|0,J=J+Math.imul(re,rr)|0,le=le+Math.imul(Z,mr)|0,q=q+Math.imul(Z,ia)|0,q=q+Math.imul(se,mr)|0,J=J+Math.imul(se,ia)|0;var wa=(ie+le|0)+((q&8191)<<13)|0;ie=(J+(q>>>13)|0)+(wa>>>26)|0,wa&=67108863,le=Math.imul(nt,dr),q=Math.imul(nt,wr),q=q+Math.imul(Ke,dr)|0,J=Math.imul(Ke,wr),le=le+Math.imul(he,Fe)|0,q=q+Math.imul(he,We)|0,q=q+Math.imul(De,Fe)|0,J=J+Math.imul(De,We)|0,le=le+Math.imul(Ze,de)|0,q=q+Math.imul(Ze,me)|0,q=q+Math.imul(Me,de)|0,J=J+Math.imul(Me,me)|0,le=le+Math.imul(at,Ie)|0,q=q+Math.imul(at,Xe)|0,q=q+Math.imul(tt,Ie)|0,J=J+Math.imul(tt,Xe)|0,le=le+Math.imul(Pe,bt)|0,q=q+Math.imul(Pe,Ct)|0,q=q+Math.imul(Ce,bt)|0,J=J+Math.imul(Ce,Ct)|0,le=le+Math.imul(fe,Wt)|0,q=q+Math.imul(fe,rr)|0,q=q+Math.imul(xe,Wt)|0,J=J+Math.imul(xe,rr)|0,le=le+Math.imul(V,mr)|0,q=q+Math.imul(V,ia)|0,q=q+Math.imul(re,mr)|0,J=J+Math.imul(re,ia)|0,le=le+Math.imul(Z,La)|0,q=q+Math.imul(Z,Aa)|0,q=q+Math.imul(se,La)|0,J=J+Math.imul(se,Aa)|0;var Da=(ie+le|0)+((q&8191)<<13)|0;ie=(J+(q>>>13)|0)+(Da>>>26)|0,Da&=67108863,le=Math.imul(kt,dr),q=Math.imul(kt,wr),q=q+Math.imul(Ut,dr)|0,J=Math.imul(Ut,wr),le=le+Math.imul(nt,Fe)|0,q=q+Math.imul(nt,We)|0,q=q+Math.imul(Ke,Fe)|0,J=J+Math.imul(Ke,We)|0,le=le+Math.imul(he,de)|0,q=q+Math.imul(he,me)|0,q=q+Math.imul(De,de)|0,J=J+Math.imul(De,me)|0,le=le+Math.imul(Ze,Ie)|0,q=q+Math.imul(Ze,Xe)|0,q=q+Math.imul(Me,Ie)|0,J=J+Math.imul(Me,Xe)|0,le=le+Math.imul(at,bt)|0,q=q+Math.imul(at,Ct)|0,q=q+Math.imul(tt,bt)|0,J=J+Math.imul(tt,Ct)|0,le=le+Math.imul(Pe,Wt)|0,q=q+Math.imul(Pe,rr)|0,q=q+Math.imul(Ce,Wt)|0,J=J+Math.imul(Ce,rr)|0,le=le+Math.imul(fe,mr)|0,q=q+Math.imul(fe,ia)|0,q=q+Math.imul(xe,mr)|0,J=J+Math.imul(xe,ia)|0,le=le+Math.imul(V,La)|0,q=q+Math.imul(V,Aa)|0,q=q+Math.imul(re,La)|0,J=J+Math.imul(re,Aa)|0,le=le+Math.imul(Z,ba)|0,q=q+Math.imul(Z,Xa)|0,q=q+Math.imul(se,ba)|0,J=J+Math.imul(se,Xa)|0;var Ya=(ie+le|0)+((q&8191)<<13)|0;ie=(J+(q>>>13)|0)+(Ya>>>26)|0,Ya&=67108863,le=Math.imul(vr,dr),q=Math.imul(vr,wr),q=q+Math.imul(hr,dr)|0,J=Math.imul(hr,wr),le=le+Math.imul(kt,Fe)|0,q=q+Math.imul(kt,We)|0,q=q+Math.imul(Ut,Fe)|0,J=J+Math.imul(Ut,We)|0,le=le+Math.imul(nt,de)|0,q=q+Math.imul(nt,me)|0,q=q+Math.imul(Ke,de)|0,J=J+Math.imul(Ke,me)|0,le=le+Math.imul(he,Ie)|0,q=q+Math.imul(he,Xe)|0,q=q+Math.imul(De,Ie)|0,J=J+Math.imul(De,Xe)|0,le=le+Math.imul(Ze,bt)|0,q=q+Math.imul(Ze,Ct)|0,q=q+Math.imul(Me,bt)|0,J=J+Math.imul(Me,Ct)|0,le=le+Math.imul(at,Wt)|0,q=q+Math.imul(at,rr)|0,q=q+Math.imul(tt,Wt)|0,J=J+Math.imul(tt,rr)|0,le=le+Math.imul(Pe,mr)|0,q=q+Math.imul(Pe,ia)|0,q=q+Math.imul(Ce,mr)|0,J=J+Math.imul(Ce,ia)|0,le=le+Math.imul(fe,La)|0,q=q+Math.imul(fe,Aa)|0,q=q+Math.imul(xe,La)|0,J=J+Math.imul(xe,Aa)|0,le=le+Math.imul(V,ba)|0,q=q+Math.imul(V,Xa)|0,q=q+Math.imul(re,ba)|0,J=J+Math.imul(re,Xa)|0,le=le+Math.imul(Z,Kt)|0,q=q+Math.imul(Z,zt)|0,q=q+Math.imul(se,Kt)|0,J=J+Math.imul(se,zt)|0;var Ka=(ie+le|0)+((q&8191)<<13)|0;ie=(J+(q>>>13)|0)+(Ka>>>26)|0,Ka&=67108863,le=Math.imul(vr,Fe),q=Math.imul(vr,We),q=q+Math.imul(hr,Fe)|0,J=Math.imul(hr,We),le=le+Math.imul(kt,de)|0,q=q+Math.imul(kt,me)|0,q=q+Math.imul(Ut,de)|0,J=J+Math.imul(Ut,me)|0,le=le+Math.imul(nt,Ie)|0,q=q+Math.imul(nt,Xe)|0,q=q+Math.imul(Ke,Ie)|0,J=J+Math.imul(Ke,Xe)|0,le=le+Math.imul(he,bt)|0,q=q+Math.imul(he,Ct)|0,q=q+Math.imul(De,bt)|0,J=J+Math.imul(De,Ct)|0,le=le+Math.imul(Ze,Wt)|0,q=q+Math.imul(Ze,rr)|0,q=q+Math.imul(Me,Wt)|0,J=J+Math.imul(Me,rr)|0,le=le+Math.imul(at,mr)|0,q=q+Math.imul(at,ia)|0,q=q+Math.imul(tt,mr)|0,J=J+Math.imul(tt,ia)|0,le=le+Math.imul(Pe,La)|0,q=q+Math.imul(Pe,Aa)|0,q=q+Math.imul(Ce,La)|0,J=J+Math.imul(Ce,Aa)|0,le=le+Math.imul(fe,ba)|0,q=q+Math.imul(fe,Xa)|0,q=q+Math.imul(xe,ba)|0,J=J+Math.imul(xe,Xa)|0,le=le+Math.imul(V,Kt)|0,q=q+Math.imul(V,zt)|0,q=q+Math.imul(re,Kt)|0,J=J+Math.imul(re,zt)|0;var an=(ie+le|0)+((q&8191)<<13)|0;ie=(J+(q>>>13)|0)+(an>>>26)|0,an&=67108863,le=Math.imul(vr,de),q=Math.imul(vr,me),q=q+Math.imul(hr,de)|0,J=Math.imul(hr,me),le=le+Math.imul(kt,Ie)|0,q=q+Math.imul(kt,Xe)|0,q=q+Math.imul(Ut,Ie)|0,J=J+Math.imul(Ut,Xe)|0,le=le+Math.imul(nt,bt)|0,q=q+Math.imul(nt,Ct)|0,q=q+Math.imul(Ke,bt)|0,J=J+Math.imul(Ke,Ct)|0,le=le+Math.imul(he,Wt)|0,q=q+Math.imul(he,rr)|0,q=q+Math.imul(De,Wt)|0,J=J+Math.imul(De,rr)|0,le=le+Math.imul(Ze,mr)|0,q=q+Math.imul(Ze,ia)|0,q=q+Math.imul(Me,mr)|0,J=J+Math.imul(Me,ia)|0,le=le+Math.imul(at,La)|0,q=q+Math.imul(at,Aa)|0,q=q+Math.imul(tt,La)|0,J=J+Math.imul(tt,Aa)|0,le=le+Math.imul(Pe,ba)|0,q=q+Math.imul(Pe,Xa)|0,q=q+Math.imul(Ce,ba)|0,J=J+Math.imul(Ce,Xa)|0,le=le+Math.imul(fe,Kt)|0,q=q+Math.imul(fe,zt)|0,q=q+Math.imul(xe,Kt)|0,J=J+Math.imul(xe,zt)|0;var mt=(ie+le|0)+((q&8191)<<13)|0;ie=(J+(q>>>13)|0)+(mt>>>26)|0,mt&=67108863,le=Math.imul(vr,Ie),q=Math.imul(vr,Xe),q=q+Math.imul(hr,Ie)|0,J=Math.imul(hr,Xe),le=le+Math.imul(kt,bt)|0,q=q+Math.imul(kt,Ct)|0,q=q+Math.imul(Ut,bt)|0,J=J+Math.imul(Ut,Ct)|0,le=le+Math.imul(nt,Wt)|0,q=q+Math.imul(nt,rr)|0,q=q+Math.imul(Ke,Wt)|0,J=J+Math.imul(Ke,rr)|0,le=le+Math.imul(he,mr)|0,q=q+Math.imul(he,ia)|0,q=q+Math.imul(De,mr)|0,J=J+Math.imul(De,ia)|0,le=le+Math.imul(Ze,La)|0,q=q+Math.imul(Ze,Aa)|0,q=q+Math.imul(Me,La)|0,J=J+Math.imul(Me,Aa)|0,le=le+Math.imul(at,ba)|0,q=q+Math.imul(at,Xa)|0,q=q+Math.imul(tt,ba)|0,J=J+Math.imul(tt,Xa)|0,le=le+Math.imul(Pe,Kt)|0,q=q+Math.imul(Pe,zt)|0,q=q+Math.imul(Ce,Kt)|0,J=J+Math.imul(Ce,zt)|0;var ot=(ie+le|0)+((q&8191)<<13)|0;ie=(J+(q>>>13)|0)+(ot>>>26)|0,ot&=67108863,le=Math.imul(vr,bt),q=Math.imul(vr,Ct),q=q+Math.imul(hr,bt)|0,J=Math.imul(hr,Ct),le=le+Math.imul(kt,Wt)|0,q=q+Math.imul(kt,rr)|0,q=q+Math.imul(Ut,Wt)|0,J=J+Math.imul(Ut,rr)|0,le=le+Math.imul(nt,mr)|0,q=q+Math.imul(nt,ia)|0,q=q+Math.imul(Ke,mr)|0,J=J+Math.imul(Ke,ia)|0,le=le+Math.imul(he,La)|0,q=q+Math.imul(he,Aa)|0,q=q+Math.imul(De,La)|0,J=J+Math.imul(De,Aa)|0,le=le+Math.imul(Ze,ba)|0,q=q+Math.imul(Ze,Xa)|0,q=q+Math.imul(Me,ba)|0,J=J+Math.imul(Me,Xa)|0,le=le+Math.imul(at,Kt)|0,q=q+Math.imul(at,zt)|0,q=q+Math.imul(tt,Kt)|0,J=J+Math.imul(tt,zt)|0;var Lr=(ie+le|0)+((q&8191)<<13)|0;ie=(J+(q>>>13)|0)+(Lr>>>26)|0,Lr&=67108863,le=Math.imul(vr,Wt),q=Math.imul(vr,rr),q=q+Math.imul(hr,Wt)|0,J=Math.imul(hr,rr),le=le+Math.imul(kt,mr)|0,q=q+Math.imul(kt,ia)|0,q=q+Math.imul(Ut,mr)|0,J=J+Math.imul(Ut,ia)|0,le=le+Math.imul(nt,La)|0,q=q+Math.imul(nt,Aa)|0,q=q+Math.imul(Ke,La)|0,J=J+Math.imul(Ke,Aa)|0,le=le+Math.imul(he,ba)|0,q=q+Math.imul(he,Xa)|0,q=q+Math.imul(De,ba)|0,J=J+Math.imul(De,Xa)|0,le=le+Math.imul(Ze,Kt)|0,q=q+Math.imul(Ze,zt)|0,q=q+Math.imul(Me,Kt)|0,J=J+Math.imul(Me,zt)|0;var Er=(ie+le|0)+((q&8191)<<13)|0;ie=(J+(q>>>13)|0)+(Er>>>26)|0,Er&=67108863,le=Math.imul(vr,mr),q=Math.imul(vr,ia),q=q+Math.imul(hr,mr)|0,J=Math.imul(hr,ia),le=le+Math.imul(kt,La)|0,q=q+Math.imul(kt,Aa)|0,q=q+Math.imul(Ut,La)|0,J=J+Math.imul(Ut,Aa)|0,le=le+Math.imul(nt,ba)|0,q=q+Math.imul(nt,Xa)|0,q=q+Math.imul(Ke,ba)|0,J=J+Math.imul(Ke,Xa)|0,le=le+Math.imul(he,Kt)|0,q=q+Math.imul(he,zt)|0,q=q+Math.imul(De,Kt)|0,J=J+Math.imul(De,zt)|0;var Mr=(ie+le|0)+((q&8191)<<13)|0;ie=(J+(q>>>13)|0)+(Mr>>>26)|0,Mr&=67108863,le=Math.imul(vr,La),q=Math.imul(vr,Aa),q=q+Math.imul(hr,La)|0,J=Math.imul(hr,Aa),le=le+Math.imul(kt,ba)|0,q=q+Math.imul(kt,Xa)|0,q=q+Math.imul(Ut,ba)|0,J=J+Math.imul(Ut,Xa)|0,le=le+Math.imul(nt,Kt)|0,q=q+Math.imul(nt,zt)|0,q=q+Math.imul(Ke,Kt)|0,J=J+Math.imul(Ke,zt)|0;var br=(ie+le|0)+((q&8191)<<13)|0;ie=(J+(q>>>13)|0)+(br>>>26)|0,br&=67108863,le=Math.imul(vr,ba),q=Math.imul(vr,Xa),q=q+Math.imul(hr,ba)|0,J=Math.imul(hr,Xa),le=le+Math.imul(kt,Kt)|0,q=q+Math.imul(kt,zt)|0,q=q+Math.imul(Ut,Kt)|0,J=J+Math.imul(Ut,zt)|0;var Or=(ie+le|0)+((q&8191)<<13)|0;ie=(J+(q>>>13)|0)+(Or>>>26)|0,Or&=67108863,le=Math.imul(vr,Kt),q=Math.imul(vr,zt),q=q+Math.imul(hr,Kt)|0,J=Math.imul(hr,zt);var jr=(ie+le|0)+((q&8191)<<13)|0;return ie=(J+(q>>>13)|0)+(jr>>>26)|0,jr&=67108863,ue[0]=$t,ue[1]=Ht,ue[2]=Tr,ue[3]=qr,ue[4]=ha,ue[5]=Gr,ue[6]=wa,ue[7]=Da,ue[8]=Ya,ue[9]=Ka,ue[10]=an,ue[11]=mt,ue[12]=ot,ue[13]=Lr,ue[14]=Er,ue[15]=Mr,ue[16]=br,ue[17]=Or,ue[18]=jr,ie!==0&&(ue[19]=ie,U.length++),U};Math.imul||(M=S);function _(O,P,N){N.negative=P.negative^O.negative,N.length=O.length+P.length;for(var U=0,X=0,te=0;te>>26)|0,X+=ue>>>26,ue&=67108863}N.words[te]=ie,U=ue,ue=X}return U!==0?N.words[te]=U:N.length--,N.strip()}function b(O,P,N){var U=new d;return U.mulp(O,P,N)}s.prototype.mulTo=function(P,N){var U,X=this.length+P.length;return this.length===10&&P.length===10?U=M(this,P,N):X<63?U=S(this,P,N):X<1024?U=_(this,P,N):U=b(this,P,N),U};function d(O,P){this.x=O,this.y=P}d.prototype.makeRBT=function(P){for(var N=new Array(P),U=s.prototype._countBits(P)-1,X=0;X>=1;return X},d.prototype.permute=function(P,N,U,X,te,ue){for(var ie=0;ie>>1)te++;return 1<>>13,U[2*ue+1]=te&8191,te=te>>>13;for(ue=2*N;ue>=26,N+=X/67108864|0,N+=te>>>26,this.words[U]=te&67108863}return N!==0&&(this.words[U]=N,this.length++),this},s.prototype.muln=function(P){return this.clone().imuln(P)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(P){var N=w(P);if(N.length===0)return new s(1);for(var U=this,X=0;X=0);var N=P%26,U=(P-N)/26,X=67108863>>>26-N<<26-N,te;if(N!==0){var ue=0;for(te=0;te>>26-N}ue&&(this.words[te]=ue,this.length++)}if(U!==0){for(te=this.length-1;te>=0;te--)this.words[te+U]=this.words[te];for(te=0;te=0);var X;N?X=(N-N%26)/26:X=0;var te=P%26,ue=Math.min((P-te)/26,this.length),ie=67108863^67108863>>>te<ue)for(this.length-=ue,q=0;q=0&&(J!==0||q>=X);q--){var ee=this.words[q]|0;this.words[q]=J<<26-te|ee>>>te,J=ee&ie}return le&&J!==0&&(le.words[le.length++]=J),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},s.prototype.ishrn=function(P,N,U){return o(this.negative===0),this.iushrn(P,N,U)},s.prototype.shln=function(P){return this.clone().ishln(P)},s.prototype.ushln=function(P){return this.clone().iushln(P)},s.prototype.shrn=function(P){return this.clone().ishrn(P)},s.prototype.ushrn=function(P){return this.clone().iushrn(P)},s.prototype.testn=function(P){o(typeof P=="number"&&P>=0);var N=P%26,U=(P-N)/26,X=1<=0);var N=P%26,U=(P-N)/26;if(o(this.negative===0,"imaskn works only with positive numbers"),this.length<=U)return this;if(N!==0&&U++,this.length=Math.min(U,this.length),N!==0){var X=67108863^67108863>>>N<=67108864;N++)this.words[N]-=67108864,N===this.length-1?this.words[N+1]=1:this.words[N+1]++;return this.length=Math.max(this.length,N+1),this},s.prototype.isubn=function(P){if(o(typeof P=="number"),o(P<67108864),P<0)return this.iaddn(-P);if(this.negative!==0)return this.negative=0,this.iaddn(P),this.negative=1,this;if(this.words[0]-=P,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var N=0;N>26)-(le/67108864|0),this.words[te+U]=ue&67108863}for(;te>26,this.words[te+U]=ue&67108863;if(ie===0)return this.strip();for(o(ie===-1),ie=0,te=0;te>26,this.words[te]=ue&67108863;return this.negative=1,this.strip()},s.prototype._wordDiv=function(P,N){var U=this.length-P.length,X=this.clone(),te=P,ue=te.words[te.length-1]|0,ie=this._countBits(ue);U=26-ie,U!==0&&(te=te.ushln(U),X.iushln(U),ue=te.words[te.length-1]|0);var le=X.length-te.length,q;if(N!=="mod"){q=new s(null),q.length=le+1,q.words=new Array(q.length);for(var J=0;J=0;Z--){var se=(X.words[te.length+Z]|0)*67108864+(X.words[te.length+Z-1]|0);for(se=Math.min(se/ue|0,67108863),X._ishlnsubmul(te,se,Z);X.negative!==0;)se--,X.negative=0,X._ishlnsubmul(te,1,Z),X.isZero()||(X.negative^=1);q&&(q.words[Z]=se)}return q&&q.strip(),X.strip(),N!=="div"&&U!==0&&X.iushrn(U),{div:q||null,mod:X}},s.prototype.divmod=function(P,N,U){if(o(!P.isZero()),this.isZero())return{div:new s(0),mod:new s(0)};var X,te,ue;return this.negative!==0&&P.negative===0?(ue=this.neg().divmod(P,N),N!=="mod"&&(X=ue.div.neg()),N!=="div"&&(te=ue.mod.neg(),U&&te.negative!==0&&te.iadd(P)),{div:X,mod:te}):this.negative===0&&P.negative!==0?(ue=this.divmod(P.neg(),N),N!=="mod"&&(X=ue.div.neg()),{div:X,mod:ue.mod}):(this.negative&P.negative)!==0?(ue=this.neg().divmod(P.neg(),N),N!=="div"&&(te=ue.mod.neg(),U&&te.negative!==0&&te.isub(P)),{div:ue.div,mod:te}):P.length>this.length||this.cmp(P)<0?{div:new s(0),mod:this}:P.length===1?N==="div"?{div:this.divn(P.words[0]),mod:null}:N==="mod"?{div:null,mod:new s(this.modn(P.words[0]))}:{div:this.divn(P.words[0]),mod:new s(this.modn(P.words[0]))}:this._wordDiv(P,N)},s.prototype.div=function(P){return this.divmod(P,"div",!1).div},s.prototype.mod=function(P){return this.divmod(P,"mod",!1).mod},s.prototype.umod=function(P){return this.divmod(P,"mod",!0).mod},s.prototype.divRound=function(P){var N=this.divmod(P);if(N.mod.isZero())return N.div;var U=N.div.negative!==0?N.mod.isub(P):N.mod,X=P.ushrn(1),te=P.andln(1),ue=U.cmp(X);return ue<0||te===1&&ue===0?N.div:N.div.negative!==0?N.div.isubn(1):N.div.iaddn(1)},s.prototype.modn=function(P){o(P<=67108863);for(var N=(1<<26)%P,U=0,X=this.length-1;X>=0;X--)U=(N*U+(this.words[X]|0))%P;return U},s.prototype.idivn=function(P){o(P<=67108863);for(var N=0,U=this.length-1;U>=0;U--){var X=(this.words[U]|0)+N*67108864;this.words[U]=X/P|0,N=X%P}return this.strip()},s.prototype.divn=function(P){return this.clone().idivn(P)},s.prototype.egcd=function(P){o(P.negative===0),o(!P.isZero());var N=this,U=P.clone();N.negative!==0?N=N.umod(P):N=N.clone();for(var X=new s(1),te=new s(0),ue=new s(0),ie=new s(1),le=0;N.isEven()&&U.isEven();)N.iushrn(1),U.iushrn(1),++le;for(var q=U.clone(),J=N.clone();!N.isZero();){for(var ee=0,Z=1;(N.words[0]&Z)===0&&ee<26;++ee,Z<<=1);if(ee>0)for(N.iushrn(ee);ee-- >0;)(X.isOdd()||te.isOdd())&&(X.iadd(q),te.isub(J)),X.iushrn(1),te.iushrn(1);for(var se=0,Q=1;(U.words[0]&Q)===0&&se<26;++se,Q<<=1);if(se>0)for(U.iushrn(se);se-- >0;)(ue.isOdd()||ie.isOdd())&&(ue.iadd(q),ie.isub(J)),ue.iushrn(1),ie.iushrn(1);N.cmp(U)>=0?(N.isub(U),X.isub(ue),te.isub(ie)):(U.isub(N),ue.isub(X),ie.isub(te))}return{a:ue,b:ie,gcd:U.iushln(le)}},s.prototype._invmp=function(P){o(P.negative===0),o(!P.isZero());var N=this,U=P.clone();N.negative!==0?N=N.umod(P):N=N.clone();for(var X=new s(1),te=new s(0),ue=U.clone();N.cmpn(1)>0&&U.cmpn(1)>0;){for(var ie=0,le=1;(N.words[0]&le)===0&&ie<26;++ie,le<<=1);if(ie>0)for(N.iushrn(ie);ie-- >0;)X.isOdd()&&X.iadd(ue),X.iushrn(1);for(var q=0,J=1;(U.words[0]&J)===0&&q<26;++q,J<<=1);if(q>0)for(U.iushrn(q);q-- >0;)te.isOdd()&&te.iadd(ue),te.iushrn(1);N.cmp(U)>=0?(N.isub(U),X.isub(te)):(U.isub(N),te.isub(X))}var ee;return N.cmpn(1)===0?ee=X:ee=te,ee.cmpn(0)<0&&ee.iadd(P),ee},s.prototype.gcd=function(P){if(this.isZero())return P.abs();if(P.isZero())return this.abs();var N=this.clone(),U=P.clone();N.negative=0,U.negative=0;for(var X=0;N.isEven()&&U.isEven();X++)N.iushrn(1),U.iushrn(1);do{for(;N.isEven();)N.iushrn(1);for(;U.isEven();)U.iushrn(1);var te=N.cmp(U);if(te<0){var ue=N;N=U,U=ue}else if(te===0||U.cmpn(1)===0)break;N.isub(U)}while(!0);return U.iushln(X)},s.prototype.invm=function(P){return this.egcd(P).a.umod(P)},s.prototype.isEven=function(){return(this.words[0]&1)===0},s.prototype.isOdd=function(){return(this.words[0]&1)===1},s.prototype.andln=function(P){return this.words[0]&P},s.prototype.bincn=function(P){o(typeof P=="number");var N=P%26,U=(P-N)/26,X=1<>>26,ie&=67108863,this.words[ue]=ie}return te!==0&&(this.words[ue]=te,this.length++),this},s.prototype.isZero=function(){return this.length===1&&this.words[0]===0},s.prototype.cmpn=function(P){var N=P<0;if(this.negative!==0&&!N)return-1;if(this.negative===0&&N)return 1;this.strip();var U;if(this.length>1)U=1;else{N&&(P=-P),o(P<=67108863,"Number is too big");var X=this.words[0]|0;U=X===P?0:XP.length)return 1;if(this.length=0;U--){var X=this.words[U]|0,te=P.words[U]|0;if(X!==te){Xte&&(N=1);break}}return N},s.prototype.gtn=function(P){return this.cmpn(P)===1},s.prototype.gt=function(P){return this.cmp(P)===1},s.prototype.gten=function(P){return this.cmpn(P)>=0},s.prototype.gte=function(P){return this.cmp(P)>=0},s.prototype.ltn=function(P){return this.cmpn(P)===-1},s.prototype.lt=function(P){return this.cmp(P)===-1},s.prototype.lten=function(P){return this.cmpn(P)<=0},s.prototype.lte=function(P){return this.cmp(P)<=0},s.prototype.eqn=function(P){return this.cmpn(P)===0},s.prototype.eq=function(P){return this.cmp(P)===0},s.red=function(P){return new F(P)},s.prototype.toRed=function(P){return o(!this.red,"Already a number in reduction context"),o(this.negative===0,"red works only with positives"),P.convertTo(this)._forceRed(P)},s.prototype.fromRed=function(){return o(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(P){return this.red=P,this},s.prototype.forceRed=function(P){return o(!this.red,"Already a number in reduction context"),this._forceRed(P)},s.prototype.redAdd=function(P){return o(this.red,"redAdd works only with red numbers"),this.red.add(this,P)},s.prototype.redIAdd=function(P){return o(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,P)},s.prototype.redSub=function(P){return o(this.red,"redSub works only with red numbers"),this.red.sub(this,P)},s.prototype.redISub=function(P){return o(this.red,"redISub works only with red numbers"),this.red.isub(this,P)},s.prototype.redShl=function(P){return o(this.red,"redShl works only with red numbers"),this.red.shl(this,P)},s.prototype.redMul=function(P){return o(this.red,"redMul works only with red numbers"),this.red._verify2(this,P),this.red.mul(this,P)},s.prototype.redIMul=function(P){return o(this.red,"redMul works only with red numbers"),this.red._verify2(this,P),this.red.imul(this,P)},s.prototype.redSqr=function(){return o(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return o(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return o(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return o(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return o(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(P){return o(this.red&&!P.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,P)};var u={k256:null,p224:null,p192:null,p25519:null};function g(O,P){this.name=O,this.p=new s(P,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}g.prototype._tmp=function(){var P=new s(null);return P.words=new Array(Math.ceil(this.n/13)),P},g.prototype.ireduce=function(P){var N=P,U;do this.split(N,this.tmp),N=this.imulK(N),N=N.iadd(this.tmp),U=N.bitLength();while(U>this.n);var X=U0?N.isub(this.p):N.strip!==void 0?N.strip():N._strip(),N},g.prototype.split=function(P,N){P.iushrn(this.n,0,N)},g.prototype.imulK=function(P){return P.imul(this.k)};function y(){g.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}n(y,g),y.prototype.split=function(P,N){for(var U=4194303,X=Math.min(P.length,9),te=0;te>>22,ue=ie}ue>>>=22,P.words[te-10]=ue,ue===0&&P.length>10?P.length-=10:P.length-=9},y.prototype.imulK=function(P){P.words[P.length]=0,P.words[P.length+1]=0,P.length+=2;for(var N=0,U=0;U>>=26,P.words[U]=te,N=X}return N!==0&&(P.words[P.length++]=N),P},s._prime=function(P){if(u[P])return u[P];var N;if(P==="k256")N=new y;else if(P==="p224")N=new R;else if(P==="p192")N=new I;else if(P==="p25519")N=new z;else throw new Error("Unknown prime "+P);return u[P]=N,N};function F(O){if(typeof O=="string"){var P=s._prime(O);this.m=P.p,this.prime=P}else o(O.gtn(1),"modulus must be greater than 1"),this.m=O,this.prime=null}F.prototype._verify1=function(P){o(P.negative===0,"red works only with positives"),o(P.red,"red works only with red numbers")},F.prototype._verify2=function(P,N){o((P.negative|N.negative)===0,"red works only with positives"),o(P.red&&P.red===N.red,"red works only with red numbers")},F.prototype.imod=function(P){return this.prime?this.prime.ireduce(P)._forceRed(this):P.umod(this.m)._forceRed(this)},F.prototype.neg=function(P){return P.isZero()?P.clone():this.m.sub(P)._forceRed(this)},F.prototype.add=function(P,N){this._verify2(P,N);var U=P.add(N);return U.cmp(this.m)>=0&&U.isub(this.m),U._forceRed(this)},F.prototype.iadd=function(P,N){this._verify2(P,N);var U=P.iadd(N);return U.cmp(this.m)>=0&&U.isub(this.m),U},F.prototype.sub=function(P,N){this._verify2(P,N);var U=P.sub(N);return U.cmpn(0)<0&&U.iadd(this.m),U._forceRed(this)},F.prototype.isub=function(P,N){this._verify2(P,N);var U=P.isub(N);return U.cmpn(0)<0&&U.iadd(this.m),U},F.prototype.shl=function(P,N){return this._verify1(P),this.imod(P.ushln(N))},F.prototype.imul=function(P,N){return this._verify2(P,N),this.imod(P.imul(N))},F.prototype.mul=function(P,N){return this._verify2(P,N),this.imod(P.mul(N))},F.prototype.isqr=function(P){return this.imul(P,P.clone())},F.prototype.sqr=function(P){return this.mul(P,P)},F.prototype.sqrt=function(P){if(P.isZero())return P.clone();var N=this.m.andln(3);if(o(N%2===1),N===3){var U=this.m.add(new s(1)).iushrn(2);return this.pow(P,U)}for(var X=this.m.subn(1),te=0;!X.isZero()&&X.andln(1)===0;)te++,X.iushrn(1);o(!X.isZero());var ue=new s(1).toRed(this),ie=ue.redNeg(),le=this.m.subn(1).iushrn(1),q=this.m.bitLength();for(q=new s(2*q*q).toRed(this);this.pow(q,le).cmp(ie)!==0;)q.redIAdd(ie);for(var J=this.pow(q,X),ee=this.pow(P,X.addn(1).iushrn(1)),Z=this.pow(P,X),se=te;Z.cmp(ue)!==0;){for(var Q=Z,V=0;Q.cmp(ue)!==0;V++)Q=Q.redSqr();o(V=0;te--){for(var J=N.words[te],ee=q-1;ee>=0;ee--){var Z=J>>ee&1;if(ue!==X[0]&&(ue=this.sqr(ue)),Z===0&&ie===0){le=0;continue}ie<<=1,ie|=Z,le++,!(le!==U&&(te!==0||ee!==0))&&(ue=this.mul(ue,X[ie]),le=0,ie=0)}q=26}return ue},F.prototype.convertTo=function(P){var N=P.umod(this.m);return N===P?N.clone():N},F.prototype.convertFrom=function(P){var N=P.clone();return N.red=null,N},s.mont=function(P){return new B(P)};function B(O){F.call(this,O),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new s(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)}n(B,F),B.prototype.convertTo=function(P){return this.imod(P.ushln(this.shift))},B.prototype.convertFrom=function(P){var N=this.imod(P.mul(this.rinv));return N.red=null,N},B.prototype.imul=function(P,N){if(P.isZero()||N.isZero())return P.words[0]=0,P.length=1,P;var U=P.imul(N),X=U.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),te=U.isub(X).iushrn(this.shift),ue=te;return te.cmp(this.m)>=0?ue=te.isub(this.m):te.cmpn(0)<0&&(ue=te.iadd(this.m)),ue._forceRed(this)},B.prototype.mul=function(P,N){if(P.isZero()||N.isZero())return new s(0)._forceRed(this);var U=P.mul(N),X=U.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),te=U.isub(X).iushrn(this.shift),ue=te;return te.cmp(this.m)>=0?ue=te.isub(this.m):te.cmpn(0)<0&&(ue=te.iadd(this.m)),ue._forceRed(this)},B.prototype.invm=function(P){var N=this.imod(P._invmp(this.m).mul(this.r2));return N._forceRed(this)}}(e,this)},6204:function(e){e.exports=t;function t(r){var i,a,o,n=r.length,s=0;for(i=0;i>>1;if(!(d<=0)){var u,g=i.mallocDouble(2*d*_),y=i.mallocInt32(_);if(_=s(m,d,g,y),_>0){if(d===1&&M)a.init(_),u=a.sweepComplete(d,S,0,_,g,y,0,_,g,y);else{var R=i.mallocDouble(2*d*b),I=i.mallocInt32(b);b=s(w,d,R,I),b>0&&(a.init(_+b),d===1?u=a.sweepBipartite(d,S,0,_,g,y,0,b,R,I):u=o(d,S,M,_,g,y,b,R,I),i.free(R),i.free(I))}i.free(g),i.free(y)}return u}}}var f;function p(m,w){f.push([m,w])}function v(m){return f=[],c(m,m,p,!0),f}function T(m,w){return f=[],c(m,w,p,!1),f}function l(m,w,S){switch(arguments.length){case 1:return v(m);case 2:return typeof w=="function"?c(m,m,w,!0):T(m,w);case 3:return c(m,w,S,!1);default:throw new Error("box-intersect: Invalid arguments")}}},2455:function(e,t){function r(){function o(c,f,p,v,T,l,m,w,S,M,_){for(var b=2*c,d=v,u=b*v;dS-w?o(c,f,p,v,T,l,m,w,S,M,_):n(c,f,p,v,T,l,m,w,S,M,_)}return s}function i(){function o(p,v,T,l,m,w,S,M,_,b,d){for(var u=2*p,g=l,y=u*l;gb-_?l?o(p,v,T,m,w,S,M,_,b,d,u):n(p,v,T,m,w,S,M,_,b,d,u):l?s(p,v,T,m,w,S,M,_,b,d,u):c(p,v,T,m,w,S,M,_,b,d,u)}return f}function a(o){return o?r():i()}t.partial=a(!1),t.full=a(!0)},7150:function(e,t,r){e.exports=O;var i=r(1888),a=r(8828),o=r(2455),n=o.partial,s=o.full,c=r(855),f=r(3545),p=r(8105),v=128,T=1<<22,l=1<<22,m=p("!(lo>=p0)&&!(p1>=hi)"),w=p("lo===p0"),S=p("lo0;){J-=1;var se=J*d,Q=y[se],V=y[se+1],re=y[se+2],ae=y[se+3],fe=y[se+4],xe=y[se+5],Ae=J*u,Pe=R[Ae],Ce=R[Ae+1],je=xe&1,at=!!(xe&16),tt=te,Je=ue,Ze=le,Me=q;if(je&&(tt=le,Je=q,Ze=te,Me=ue),!(xe&2&&(re=S(P,Q,V,re,tt,Je,Ce),V>=re))&&!(xe&4&&(V=M(P,Q,V,re,tt,Je,Pe),V>=re))){var we=re-V,he=fe-ae;if(at){if(P*we*(we+he)p&&T[b+f]>M;--_,b-=m){for(var d=b,u=b+m,g=0;g>>1,M=2*c,_=S,b=T[M*S+f];m=R?(_=y,b=R):g>=z?(_=u,b=g):(_=I,b=z):R>=z?(_=y,b=R):z>=g?(_=u,b=g):(_=I,b=z);for(var O=M*(w-1),P=M*_,F=0;F=p0)&&!(p1>=hi)":f};function r(p){return t[p]}function i(p,v,T,l,m,w,S){for(var M=2*p,_=M*T,b=_,d=T,u=v,g=p+v,y=T;l>y;++y,_+=M){var R=m[_+u];if(R===S)if(d===y)d+=1,b+=M;else{for(var I=0;M>I;++I){var z=m[_+I];m[_+I]=m[b],m[b++]=z}var F=w[y];w[y]=w[d],w[d++]=F}}return d}function a(p,v,T,l,m,w,S){for(var M=2*p,_=M*T,b=_,d=T,u=v,g=p+v,y=T;l>y;++y,_+=M){var R=m[_+u];if(RI;++I){var z=m[_+I];m[_+I]=m[b],m[b++]=z}var F=w[y];w[y]=w[d],w[d++]=F}}return d}function o(p,v,T,l,m,w,S){for(var M=2*p,_=M*T,b=_,d=T,u=v,g=p+v,y=T;l>y;++y,_+=M){var R=m[_+g];if(R<=S)if(d===y)d+=1,b+=M;else{for(var I=0;M>I;++I){var z=m[_+I];m[_+I]=m[b],m[b++]=z}var F=w[y];w[y]=w[d],w[d++]=F}}return d}function n(p,v,T,l,m,w,S){for(var M=2*p,_=M*T,b=_,d=T,u=v,g=p+v,y=T;l>y;++y,_+=M){var R=m[_+g];if(R<=S)if(d===y)d+=1,b+=M;else{for(var I=0;M>I;++I){var z=m[_+I];m[_+I]=m[b],m[b++]=z}var F=w[y];w[y]=w[d],w[d++]=F}}return d}function s(p,v,T,l,m,w,S){for(var M=2*p,_=M*T,b=_,d=T,u=v,g=p+v,y=T;l>y;++y,_+=M){var R=m[_+u],I=m[_+g];if(R<=S&&S<=I)if(d===y)d+=1,b+=M;else{for(var z=0;M>z;++z){var F=m[_+z];m[_+z]=m[b],m[b++]=F}var B=w[y];w[y]=w[d],w[d++]=B}}return d}function c(p,v,T,l,m,w,S){for(var M=2*p,_=M*T,b=_,d=T,u=v,g=p+v,y=T;l>y;++y,_+=M){var R=m[_+u],I=m[_+g];if(Rz;++z){var F=m[_+z];m[_+z]=m[b],m[b++]=F}var B=w[y];w[y]=w[d],w[d++]=B}}return d}function f(p,v,T,l,m,w,S,M){for(var _=2*p,b=_*T,d=b,u=T,g=v,y=p+v,R=T;l>R;++R,b+=_){var I=m[b+g],z=m[b+y];if(!(I>=S)&&!(M>=z))if(u===R)u+=1,d+=_;else{for(var F=0;_>F;++F){var B=m[b+F];m[b+F]=m[d],m[d++]=B}var O=w[R];w[R]=w[u],w[u++]=O}}return u}},4192:function(e){e.exports=r;var t=32;function r(v,T){T<=4*t?i(0,T-1,v):p(0,T-1,v)}function i(v,T,l){for(var m=2*(v+1),w=v+1;w<=T;++w){for(var S=l[m++],M=l[m++],_=w,b=m-2;_-- >v;){var d=l[b-2],u=l[b-1];if(dl[T+1]:!0}function f(v,T,l,m){v*=2;var w=m[v];return w>1,_=M-m,b=M+m,d=w,u=_,g=M,y=b,R=S,I=v+1,z=T-1,F=0;c(d,u,l)&&(F=d,d=u,u=F),c(y,R,l)&&(F=y,y=R,R=F),c(d,g,l)&&(F=d,d=g,g=F),c(u,g,l)&&(F=u,u=g,g=F),c(d,y,l)&&(F=d,d=y,y=F),c(g,y,l)&&(F=g,g=y,y=F),c(u,R,l)&&(F=u,u=R,R=F),c(u,g,l)&&(F=u,u=g,g=F),c(y,R,l)&&(F=y,y=R,R=F);for(var B=l[2*u],O=l[2*u+1],P=l[2*y],N=l[2*y+1],U=2*d,X=2*g,te=2*R,ue=2*w,ie=2*M,le=2*S,q=0;q<2;++q){var J=l[U+q],ee=l[X+q],Z=l[te+q];l[ue+q]=J,l[ie+q]=ee,l[le+q]=Z}o(_,v,l),o(b,T,l);for(var se=I;se<=z;++se)if(f(se,B,O,l))se!==I&&a(se,I,l),++I;else if(!f(se,P,N,l))for(;;)if(f(z,P,N,l)){f(z,B,O,l)?(n(se,I,z,l),++I,--z):(a(se,z,l),--z);break}else{if(--z>>1;o(m,ee);for(var Z=0,se=0,ie=0;ie=n)Q=Q-n|0,S(p,v,se--,Q);else if(Q>=0)S(c,f,Z--,Q);else if(Q<=-n){Q=-Q-n|0;for(var V=0;V>>1;o(m,ee);for(var Z=0,se=0,Q=0,ie=0;ie>1===m[2*ie+3]>>1&&(re=2,ie+=1),V<0){for(var ae=-(V>>1)-1,fe=0;fe>1)-1;re===0?S(c,f,Z--,ae):re===1?S(p,v,se--,ae):re===2&&S(T,l,Q--,ae)}}}function d(g,y,R,I,z,F,B,O,P,N,U,X){var te=0,ue=2*g,ie=y,le=y+g,q=1,J=1;I?J=n:q=n;for(var ee=z;ee>>1;o(m,V);for(var re=0,ee=0;ee=n?(fe=!I,Z-=n):(fe=!!I,Z-=1),fe)M(c,f,re++,Z);else{var xe=X[Z],Ae=ue*Z,Pe=U[Ae+y+1],Ce=U[Ae+y+1+g];e:for(var je=0;je>>1;o(m,Z);for(var se=0,le=0;le=n)c[se++]=q-n;else{q-=1;var V=U[q],re=te*q,ae=N[re+y+1],fe=N[re+y+1+g];e:for(var xe=0;xe=0;--xe)if(c[xe]===q){for(var je=xe+1;je0;){for(var m=c.pop(),v=c.pop(),w=-1,S=-1,T=p[v],_=1;_=0||(s.flip(v,m),a(n,s,c,w,v,S),a(n,s,c,v,S,w),a(n,s,c,S,m,w),a(n,s,c,m,w,S))}}},5023:function(e,t,r){var i=r(2478);e.exports=f;function a(p,v,T,l,m,w,S){this.cells=p,this.neighbor=v,this.flags=l,this.constraint=T,this.active=m,this.next=w,this.boundary=S}var o=a.prototype;function n(p,v){return p[0]-v[0]||p[1]-v[1]||p[2]-v[2]}o.locate=function(){var p=[0,0,0];return function(v,T,l){var m=v,w=T,S=l;return T0||S.length>0;){for(;w.length>0;){var u=w.pop();if(M[u]!==-m){M[u]=m,_[u];for(var g=0;g<3;++g){var y=d[3*u+g];y>=0&&M[y]===0&&(b[3*u+g]?S.push(y):(w.push(y),M[y]=m))}}}var R=S;S=w,w=R,S.length=0,m=-m}var I=c(_,M,v);return T?I.concat(l.boundary):I}},8902:function(e,t,r){var i=r(2478),a=r(3250)[3],o=0,n=1,s=2;e.exports=S;function c(M,_,b,d,u){this.a=M,this.b=_,this.idx=b,this.lowerIds=d,this.upperIds=u}function f(M,_,b,d){this.a=M,this.b=_,this.type=b,this.idx=d}function p(M,_){var b=M.a[0]-_.a[0]||M.a[1]-_.a[1]||M.type-_.type;return b||M.type!==o&&(b=a(M.a,M.b,_.b),b)?b:M.idx-_.idx}function v(M,_){return a(M.a,M.b,_)}function T(M,_,b,d,u){for(var g=i.lt(_,d,v),y=i.gt(_,d,v),R=g;R1&&a(b[z[B-2]],b[z[B-1]],d)>0;)M.push([z[B-1],z[B-2],u]),B-=1;z.length=B,z.push(u);for(var F=I.upperIds,B=F.length;B>1&&a(b[F[B-2]],b[F[B-1]],d)<0;)M.push([F[B-2],F[B-1],u]),B-=1;F.length=B,F.push(u)}}function l(M,_){var b;return M.a[0]<_.a[0]?b=a(M.a,M.b,_.a):b=a(_.b,_.a,M.a),b||(_.b[0]I[0]&&u.push(new f(I,R,s,g),new f(R,I,n,g))}u.sort(p);for(var z=u[0].a[0]-(1+Math.abs(u[0].a[0]))*Math.pow(2,-52),F=[new c([z,1],[z,0],-1,[],[])],B=[],g=0,O=u.length;g=0}}(),o.removeTriangle=function(c,f,p){var v=this.stars;n(v[c],f,p),n(v[f],p,c),n(v[p],c,f)},o.addTriangle=function(c,f,p){var v=this.stars;v[c].push(f,p),v[f].push(p,c),v[p].push(c,f)},o.opposite=function(c,f){for(var p=this.stars[f],v=1,T=p.length;v=0;--P){var J=B[P];N=J[0];var ee=z[N],Z=ee[0],se=ee[1],Q=I[Z],V=I[se];if((Q[0]-V[0]||Q[1]-V[1])<0){var re=Z;Z=se,se=re}ee[0]=Z;var ae=ee[1]=J[1],fe;for(O&&(fe=ee[2]);P>0&&B[P-1][0]===N;){var J=B[--P],xe=J[1];O?z.push([ae,xe,fe]):z.push([ae,xe]),ae=xe}O?z.push([ae,se,fe]):z.push([ae,se])}return U}function _(I,z,F){for(var B=z.length,O=new i(B),P=[],N=0;Nz[2]?1:0)}function u(I,z,F){if(I.length!==0){if(z)for(var B=0;B0||N.length>0}function R(I,z,F){var B;if(F){B=z;for(var O=new Array(z.length),P=0;PM+1)throw new Error(w+" map requires nshades to be at least size "+m.length);Array.isArray(f.alpha)?f.alpha.length!==2?_=[1,1]:_=f.alpha.slice():typeof f.alpha=="number"?_=[f.alpha,f.alpha]:_=[1,1],p=m.map(function(R){return Math.round(R.index*M)}),_[0]=Math.min(Math.max(_[0],0),1),_[1]=Math.min(Math.max(_[1],0),1);var d=m.map(function(R,I){var z=m[I].index,F=m[I].rgb.slice();return F.length===4&&F[3]>=0&&F[3]<=1||(F[3]=_[0]+(_[1]-_[0])*z),F}),u=[];for(b=0;b=0}function f(p,v,T,l){var m=i(v,T,l);if(m===0){var w=a(i(p,v,T)),S=a(i(p,v,l));if(w===S){if(w===0){var M=c(p,v,T),_=c(p,v,l);return M===_?0:M?1:-1}return 0}else{if(S===0)return w>0||c(p,v,l)?-1:1;if(w===0)return S>0||c(p,v,T)?1:-1}return a(S-w)}var b=i(p,v,T);if(b>0)return m>0&&i(p,v,l)>0?1:-1;if(b<0)return m>0||i(p,v,l)>0?1:-1;var d=i(p,v,l);return d>0||c(p,v,T)?1:-1}},8572:function(e){e.exports=function(r){return r<0?-1:r>0?1:0}},8507:function(e){e.exports=i;var t=Math.min;function r(a,o){return a-o}function i(a,o){var n=a.length,s=a.length-o.length;if(s)return s;switch(n){case 0:return 0;case 1:return a[0]-o[0];case 2:return a[0]+a[1]-o[0]-o[1]||t(a[0],a[1])-t(o[0],o[1]);case 3:var c=a[0]+a[1],f=o[0]+o[1];if(s=c+a[2]-(f+o[2]),s)return s;var p=t(a[0],a[1]),v=t(o[0],o[1]);return t(p,a[2])-t(v,o[2])||t(p+a[2],c)-t(v+o[2],f);case 4:var T=a[0],l=a[1],m=a[2],w=a[3],S=o[0],M=o[1],_=o[2],b=o[3];return T+l+m+w-(S+M+_+b)||t(T,l,m,w)-t(S,M,_,b,S)||t(T+l,T+m,T+w,l+m,l+w,m+w)-t(S+M,S+_,S+b,M+_,M+b,_+b)||t(T+l+m,T+l+w,T+m+w,l+m+w)-t(S+M+_,S+M+b,S+_+b,M+_+b);default:for(var d=a.slice().sort(r),u=o.slice().sort(r),g=0;gr[a][0]&&(a=o);return ia?[[a],[i]]:[[i]]}},4750:function(e,t,r){e.exports=a;var i=r(3090);function a(o){var n=i(o),s=n.length;if(s<=2)return[];for(var c=new Array(s),f=n[s-1],p=0;p=f[S]&&(w+=1);l[m]=w}}return c}function s(c,f){try{return i(c,!0)}catch{var p=a(c);if(p.length<=f)return[];var v=o(c,p),T=i(v,!0);return n(T,p)}}},4769:function(e){function t(i,a,o,n,s,c){var f=6*s*s-6*s,p=3*s*s-4*s+1,v=-6*s*s+6*s,T=3*s*s-2*s;if(i.length){c||(c=new Array(i.length));for(var l=i.length-1;l>=0;--l)c[l]=f*i[l]+p*a[l]+v*o[l]+T*n[l];return c}return f*i+p*a+v*o[l]+T*n}function r(i,a,o,n,s,c){var f=s-1,p=s*s,v=f*f,T=(1+2*s)*v,l=s*v,m=p*(3-2*s),w=p*f;if(i.length){c||(c=new Array(i.length));for(var S=i.length-1;S>=0;--S)c[S]=T*i[S]+l*a[S]+m*o[S]+w*n[S];return c}return T*i+l*a+m*o+w*n}e.exports=r,e.exports.derivative=t},7642:function(e,t,r){var i=r(8954),a=r(1682);e.exports=c;function o(f,p){this.point=f,this.index=p}function n(f,p){for(var v=f.point,T=p.point,l=v.length,m=0;m=2)return!1;F[O]=P}return!0}):z=z.filter(function(F){for(var B=0;B<=T;++B){var O=g[F[B]];if(O<0)return!1;F[B]=O}return!0}),T&1)for(var w=0;w>>31},e.exports.exponent=function(o){var n=e.exports.hi(o);return(n<<1>>>21)-1023},e.exports.fraction=function(o){var n=e.exports.lo(o),s=e.exports.hi(o),c=s&(1<<20)-1;return s&2146435072&&(c+=1048576),[n,c]},e.exports.denormalized=function(o){var n=e.exports.hi(o);return!(n&2146435072)}},1338:function(e){function t(a,o,n){var s=a[n]|0;if(s<=0)return[];var c=new Array(s),f;if(n===a.length-1)for(f=0;f"u"&&(o=0),typeof a){case"number":if(a>0)return r(a|0,o);break;case"object":if(typeof a.length=="number")return t(a,o,0);break}return[]}e.exports=i},3134:function(e,t,r){e.exports=a;var i=r(1682);function a(o,n){var s=o.length;if(typeof n!="number"){n=0;for(var c=0;c=T-1)for(var b=w.length-1,u=p-v[T-1],d=0;d=T-1){var _=w.length-1;p-v[T-1];for(var b=0;b=0;--T)if(p[--v])return!1;return!0},s.jump=function(p){var v=this.lastT(),T=this.dimension;if(!(p0;--d)l.push(o(M[d-1],_[d-1],arguments[d])),m.push(0)}},s.push=function(p){var v=this.lastT(),T=this.dimension;if(!(p1e-6?1/S:0;this._time.push(p);for(var u=T;u>0;--u){var g=o(_[u-1],b[u-1],arguments[u]);l.push(g),m.push((g-l[w++])*d)}}},s.set=function(p){var v=this.dimension;if(!(p0;--M)T.push(o(w[M-1],S[M-1],arguments[M])),l.push(0)}},s.move=function(p){var v=this.lastT(),T=this.dimension;if(!(p<=v||arguments.length!==T+1)){var l=this._state,m=this._velocity,w=l.length-this.dimension,S=this.bounds,M=S[0],_=S[1],b=p-v,d=b>1e-6?1/b:0;this._time.push(p);for(var u=T;u>0;--u){var g=arguments[u];l.push(o(M[u-1],_[u-1],l[w++]+g)),m.push(g*d)}}},s.idle=function(p){var v=this.lastT();if(!(p=0;--d)l.push(o(M[d],_[d],l[w]+b*m[w])),m.push(0),w+=1}};function c(p){for(var v=new Array(p),T=0;T=0;--I){var u=g[I];y[I]<=0?g[I]=new i(u._color,u.key,u.value,g[I+1],u.right,u._count+1):g[I]=new i(u._color,u.key,u.value,u.left,g[I+1],u._count+1)}for(var I=g.length-1;I>1;--I){var z=g[I-1],u=g[I];if(z._color===r||u._color===r)break;var F=g[I-2];if(F.left===z)if(z.left===u){var B=F.right;if(B&&B._color===t)z._color=r,F.right=o(r,B),F._color=t,I-=1;else{if(F._color=t,F.left=z.right,z._color=r,z.right=F,g[I-2]=z,g[I-1]=u,n(F),n(z),I>=3){var O=g[I-3];O.left===F?O.left=z:O.right=z}break}}else{var B=F.right;if(B&&B._color===t)z._color=r,F.right=o(r,B),F._color=t,I-=1;else{if(z.right=u.left,F._color=t,F.left=u.right,u._color=r,u.left=z,u.right=F,g[I-2]=u,g[I-1]=z,n(F),n(z),n(u),I>=3){var O=g[I-3];O.left===F?O.left=u:O.right=u}break}}else if(z.right===u){var B=F.left;if(B&&B._color===t)z._color=r,F.left=o(r,B),F._color=t,I-=1;else{if(F._color=t,F.right=z.left,z._color=r,z.left=F,g[I-2]=z,g[I-1]=u,n(F),n(z),I>=3){var O=g[I-3];O.right===F?O.right=z:O.left=z}break}}else{var B=F.left;if(B&&B._color===t)z._color=r,F.left=o(r,B),F._color=t,I-=1;else{if(z.left=u.right,F._color=t,F.right=u.left,u._color=r,u.right=z,u.left=F,g[I-2]=u,g[I-1]=z,n(F),n(z),n(u),I>=3){var O=g[I-3];O.right===F?O.right=u:O.left=u}break}}}return g[0]._color=r,new s(d,g[0])};function f(_,b){if(b.left){var d=f(_,b.left);if(d)return d}var d=_(b.key,b.value);if(d)return d;if(b.right)return f(_,b.right)}function p(_,b,d,u){var g=b(_,u.key);if(g<=0){if(u.left){var y=p(_,b,d,u.left);if(y)return y}var y=d(u.key,u.value);if(y)return y}if(u.right)return p(_,b,d,u.right)}function v(_,b,d,u,g){var y=d(_,g.key),R=d(b,g.key),I;if(y<=0&&(g.left&&(I=v(_,b,d,u,g.left),I)||R>0&&(I=u(g.key,g.value),I)))return I;if(R>0&&g.right)return v(_,b,d,u,g.right)}c.forEach=function(b,d,u){if(this.root)switch(arguments.length){case 1:return f(b,this.root);case 2:return p(d,this._compare,b,this.root);case 3:return this._compare(d,u)>=0?void 0:v(d,u,this._compare,b,this.root)}},Object.defineProperty(c,"begin",{get:function(){for(var _=[],b=this.root;b;)_.push(b),b=b.left;return new T(this,_)}}),Object.defineProperty(c,"end",{get:function(){for(var _=[],b=this.root;b;)_.push(b),b=b.right;return new T(this,_)}}),c.at=function(_){if(_<0)return new T(this,[]);for(var b=this.root,d=[];;){if(d.push(b),b.left){if(_=b.right._count)break;b=b.right}else break}return new T(this,[])},c.ge=function(_){for(var b=this._compare,d=this.root,u=[],g=0;d;){var y=b(_,d.key);u.push(d),y<=0&&(g=u.length),y<=0?d=d.left:d=d.right}return u.length=g,new T(this,u)},c.gt=function(_){for(var b=this._compare,d=this.root,u=[],g=0;d;){var y=b(_,d.key);u.push(d),y<0&&(g=u.length),y<0?d=d.left:d=d.right}return u.length=g,new T(this,u)},c.lt=function(_){for(var b=this._compare,d=this.root,u=[],g=0;d;){var y=b(_,d.key);u.push(d),y>0&&(g=u.length),y<=0?d=d.left:d=d.right}return u.length=g,new T(this,u)},c.le=function(_){for(var b=this._compare,d=this.root,u=[],g=0;d;){var y=b(_,d.key);u.push(d),y>=0&&(g=u.length),y<0?d=d.left:d=d.right}return u.length=g,new T(this,u)},c.find=function(_){for(var b=this._compare,d=this.root,u=[];d;){var g=b(_,d.key);if(u.push(d),g===0)return new T(this,u);g<=0?d=d.left:d=d.right}return new T(this,[])},c.remove=function(_){var b=this.find(_);return b?b.remove():this},c.get=function(_){for(var b=this._compare,d=this.root;d;){var u=b(_,d.key);if(u===0)return d.value;u<=0?d=d.left:d=d.right}};function T(_,b){this.tree=_,this._stack=b}var l=T.prototype;Object.defineProperty(l,"valid",{get:function(){return this._stack.length>0}}),Object.defineProperty(l,"node",{get:function(){return this._stack.length>0?this._stack[this._stack.length-1]:null},enumerable:!0}),l.clone=function(){return new T(this.tree,this._stack.slice())};function m(_,b){_.key=b.key,_.value=b.value,_.left=b.left,_.right=b.right,_._color=b._color,_._count=b._count}function w(_){for(var b,d,u,g,y=_.length-1;y>=0;--y){if(b=_[y],y===0){b._color=r;return}if(d=_[y-1],d.left===b){if(u=d.right,u.right&&u.right._color===t){if(u=d.right=a(u),g=u.right=a(u.right),d.right=u.left,u.left=d,u.right=g,u._color=d._color,b._color=r,d._color=r,g._color=r,n(d),n(u),y>1){var R=_[y-2];R.left===d?R.left=u:R.right=u}_[y-1]=u;return}else if(u.left&&u.left._color===t){if(u=d.right=a(u),g=u.left=a(u.left),d.right=g.left,u.left=g.right,g.left=d,g.right=u,g._color=d._color,d._color=r,u._color=r,b._color=r,n(d),n(u),n(g),y>1){var R=_[y-2];R.left===d?R.left=g:R.right=g}_[y-1]=g;return}if(u._color===r)if(d._color===t){d._color=r,d.right=o(t,u);return}else{d.right=o(t,u);continue}else{if(u=a(u),d.right=u.left,u.left=d,u._color=d._color,d._color=t,n(d),n(u),y>1){var R=_[y-2];R.left===d?R.left=u:R.right=u}_[y-1]=u,_[y]=d,y+1<_.length?_[y+1]=b:_.push(b),y=y+2}}else{if(u=d.left,u.left&&u.left._color===t){if(u=d.left=a(u),g=u.left=a(u.left),d.left=u.right,u.right=d,u.left=g,u._color=d._color,b._color=r,d._color=r,g._color=r,n(d),n(u),y>1){var R=_[y-2];R.right===d?R.right=u:R.left=u}_[y-1]=u;return}else if(u.right&&u.right._color===t){if(u=d.left=a(u),g=u.right=a(u.right),d.left=g.right,u.right=g.left,g.right=d,g.left=u,g._color=d._color,d._color=r,u._color=r,b._color=r,n(d),n(u),n(g),y>1){var R=_[y-2];R.right===d?R.right=g:R.left=g}_[y-1]=g;return}if(u._color===r)if(d._color===t){d._color=r,d.left=o(t,u);return}else{d.left=o(t,u);continue}else{if(u=a(u),d.left=u.right,u.right=d,u._color=d._color,d._color=t,n(d),n(u),y>1){var R=_[y-2];R.right===d?R.right=u:R.left=u}_[y-1]=u,_[y]=d,y+1<_.length?_[y+1]=b:_.push(b),y=y+2}}}}l.remove=function(){var _=this._stack;if(_.length===0)return this.tree;var b=new Array(_.length),d=_[_.length-1];b[b.length-1]=new i(d._color,d.key,d.value,d.left,d.right,d._count);for(var u=_.length-2;u>=0;--u){var d=_[u];d.left===_[u+1]?b[u]=new i(d._color,d.key,d.value,b[u+1],d.right,d._count):b[u]=new i(d._color,d.key,d.value,d.left,b[u+1],d._count)}if(d=b[b.length-1],d.left&&d.right){var g=b.length;for(d=d.left;d.right;)b.push(d),d=d.right;var y=b[g-1];b.push(new i(d._color,y.key,y.value,d.left,d.right,d._count)),b[g-1].key=d.key,b[g-1].value=d.value;for(var u=b.length-2;u>=g;--u)d=b[u],b[u]=new i(d._color,d.key,d.value,d.left,b[u+1],d._count);b[g-1].left=b[g]}if(d=b[b.length-1],d._color===t){var R=b[b.length-2];R.left===d?R.left=null:R.right===d&&(R.right=null),b.pop();for(var u=0;u0)return this._stack[this._stack.length-1].key},enumerable:!0}),Object.defineProperty(l,"value",{get:function(){if(this._stack.length>0)return this._stack[this._stack.length-1].value},enumerable:!0}),Object.defineProperty(l,"index",{get:function(){var _=0,b=this._stack;if(b.length===0){var d=this.tree.root;return d?d._count:0}else b[b.length-1].left&&(_=b[b.length-1].left._count);for(var u=b.length-2;u>=0;--u)b[u+1]===b[u].right&&(++_,b[u].left&&(_+=b[u].left._count));return _},enumerable:!0}),l.next=function(){var _=this._stack;if(_.length!==0){var b=_[_.length-1];if(b.right)for(b=b.right;b;)_.push(b),b=b.left;else for(_.pop();_.length>0&&_[_.length-1].right===b;)b=_[_.length-1],_.pop()}},Object.defineProperty(l,"hasNext",{get:function(){var _=this._stack;if(_.length===0)return!1;if(_[_.length-1].right)return!0;for(var b=_.length-1;b>0;--b)if(_[b-1].left===_[b])return!0;return!1}}),l.update=function(_){var b=this._stack;if(b.length===0)throw new Error("Can't update empty node!");var d=new Array(b.length),u=b[b.length-1];d[d.length-1]=new i(u._color,u.key,_,u.left,u.right,u._count);for(var g=b.length-2;g>=0;--g)u=b[g],u.left===b[g+1]?d[g]=new i(u._color,u.key,u.value,d[g+1],u.right,u._count):d[g]=new i(u._color,u.key,u.value,u.left,d[g+1],u._count);return new s(this.tree._compare,d[0])},l.prev=function(){var _=this._stack;if(_.length!==0){var b=_[_.length-1];if(b.left)for(b=b.left;b;)_.push(b),b=b.right;else for(_.pop();_.length>0&&_[_.length-1].left===b;)b=_[_.length-1],_.pop()}},Object.defineProperty(l,"hasPrev",{get:function(){var _=this._stack;if(_.length===0)return!1;if(_[_.length-1].left)return!0;for(var b=_.length-1;b>0;--b)if(_[b-1].right===_[b])return!0;return!1}});function S(_,b){return _b?1:0}function M(_){return new s(_||S,null)}},3837:function(e,t,r){e.exports=I;var i=r(4935),a=r(501),o=r(5304),n=r(6429),s=r(6444),c=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),f=ArrayBuffer,p=DataView;function v(z){return f.isView(z)&&!(z instanceof p)}function T(z){return Array.isArray(z)||v(z)}function l(z,F){return z[0]=F[0],z[1]=F[1],z[2]=F[2],z}function m(z){this.gl=z,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=o(z)}var w=m.prototype;w.update=function(z){z=z||{};function F(Z,se,Q){if(Q in z){var V=z[Q],re=this[Q],ae;(Z?T(V)&&T(V[0]):T(V))?this[Q]=ae=[se(V[0]),se(V[1]),se(V[2])]:this[Q]=ae=[se(V),se(V),se(V)];for(var fe=0;fe<3;++fe)if(ae[fe]!==re[fe])return!0}return!1}var B=F.bind(this,!1,Number),O=F.bind(this,!1,Boolean),P=F.bind(this,!1,String),N=F.bind(this,!0,function(Z){if(T(Z)){if(Z.length===3)return[+Z[0],+Z[1],+Z[2],1];if(Z.length===4)return[+Z[0],+Z[1],+Z[2],+Z[3]]}return[0,0,0,1]}),U,X=!1,te=!1;if("bounds"in z)for(var ue=z.bounds,ie=0;ie<2;++ie)for(var le=0;le<3;++le)ue[ie][le]!==this.bounds[ie][le]&&(te=!0),this.bounds[ie][le]=ue[ie][le];if("ticks"in z){U=z.ticks,X=!0,this.autoTicks=!1;for(var ie=0;ie<3;++ie)this.tickSpacing[ie]=0}else B("tickSpacing")&&(this.autoTicks=!0,te=!0);if(this._firstInit&&("ticks"in z||"tickSpacing"in z||(this.autoTicks=!0),te=!0,X=!0,this._firstInit=!1),te&&this.autoTicks&&(U=s.create(this.bounds,this.tickSpacing),X=!0),X){for(var ie=0;ie<3;++ie)U[ie].sort(function(se,Q){return se.x-Q.x});s.equal(U,this.ticks)?X=!1:this.ticks=U}O("tickEnable"),P("tickFont")&&(X=!0),P("tickFontStyle")&&(X=!0),P("tickFontWeight")&&(X=!0),P("tickFontVariant")&&(X=!0),B("tickSize"),B("tickAngle"),B("tickPad"),N("tickColor");var q=P("labels");P("labelFont")&&(q=!0),P("labelFontStyle")&&(q=!0),P("labelFontWeight")&&(q=!0),P("labelFontVariant")&&(q=!0),O("labelEnable"),B("labelSize"),B("labelPad"),N("labelColor"),O("lineEnable"),O("lineMirror"),B("lineWidth"),N("lineColor"),O("lineTickEnable"),O("lineTickMirror"),B("lineTickLength"),B("lineTickWidth"),N("lineTickColor"),O("gridEnable"),B("gridWidth"),N("gridColor"),O("zeroEnable"),N("zeroLineColor"),B("zeroLineWidth"),O("backgroundEnable"),N("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]}],ee=[{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||X)&&this._text.update(this.bounds,this.labels,J,this.ticks,ee):this._text=i(this.gl,this.bounds,this.labels,J,this.ticks,ee),this._lines&&X&&(this._lines.dispose(),this._lines=null),this._lines||(this._lines=a(this.gl,this.bounds,this.ticks))};function S(){this.primalOffset=[0,0,0],this.primalMinor=[0,0,0],this.mirrorOffset=[0,0,0],this.mirrorMinor=[0,0,0]}var M=[new S,new S,new S];function _(z,F,B,O,P){for(var N=z.primalOffset,U=z.primalMinor,X=z.mirrorOffset,te=z.mirrorMinor,ue=O[F],ie=0;ie<3;++ie)if(F!==ie){var le=N,q=X,J=U,ee=te;ue&1<0?(J[ie]=-1,ee[ie]=0):(J[ie]=0,ee[ie]=1)}}var b=[0,0,0],d={model:c,view:c,projection:c,_ortho:!1};w.isOpaque=function(){return!0},w.isTransparent=function(){return!1},w.drawTransparent=function(z){};var u=0,g=[0,0,0],y=[0,0,0],R=[0,0,0];w.draw=function(z){z=z||d;for(var Q=this.gl,F=z.model||c,B=z.view||c,O=z.projection||c,P=this.bounds,N=z._ortho||!1,U=n(F,B,O,P,N),X=U.cubeEdges,te=U.axis,ue=B[12],ie=B[13],le=B[14],q=B[15],J=N?2:1,ee=J*this.pixelRatio*(O[3]*ue+O[7]*ie+O[11]*le+O[15]*q)/Q.drawingBufferHeight,Z=0;Z<3;++Z)this.lastCubeProps.cubeEdges[Z]=X[Z],this.lastCubeProps.axis[Z]=te[Z];for(var se=M,Z=0;Z<3;++Z)_(M[Z],Z,this.bounds,X,te);for(var Q=this.gl,V=b,Z=0;Z<3;++Z)this.backgroundEnable[Z]?V[Z]=te[Z]:V[Z]=0;this._background.draw(F,B,O,P,V,this.backgroundColor),this._lines.bind(F,B,O,this);for(var Z=0;Z<3;++Z){var re=[0,0,0];te[Z]>0?re[Z]=P[1][Z]:re[Z]=P[0][Z];for(var ae=0;ae<2;++ae){var fe=(Z+1+ae)%3,xe=(Z+1+(ae^1))%3;this.gridEnable[fe]&&this._lines.drawGrid(fe,xe,this.bounds,re,this.gridColor[fe],this.gridWidth[fe]*this.pixelRatio)}for(var ae=0;ae<2;++ae){var fe=(Z+1+ae)%3,xe=(Z+1+(ae^1))%3;this.zeroEnable[xe]&&Math.min(P[0][xe],P[1][xe])<=0&&Math.max(P[0][xe],P[1][xe])>=0&&this._lines.drawZero(fe,xe,this.bounds,re,this.zeroLineColor[xe],this.zeroLineWidth[xe]*this.pixelRatio)}}for(var Z=0;Z<3;++Z){this.lineEnable[Z]&&this._lines.drawAxisLine(Z,this.bounds,se[Z].primalOffset,this.lineColor[Z],this.lineWidth[Z]*this.pixelRatio),this.lineMirror[Z]&&this._lines.drawAxisLine(Z,this.bounds,se[Z].mirrorOffset,this.lineColor[Z],this.lineWidth[Z]*this.pixelRatio);for(var Ae=l(g,se[Z].primalMinor),Pe=l(y,se[Z].mirrorMinor),Ce=this.lineTickLength,ae=0;ae<3;++ae){var je=ee/F[5*ae];Ae[ae]*=Ce[ae]*je,Pe[ae]*=Ce[ae]*je}this.lineTickEnable[Z]&&this._lines.drawAxisTicks(Z,se[Z].primalOffset,Ae,this.lineTickColor[Z],this.lineTickWidth[Z]*this.pixelRatio),this.lineTickMirror[Z]&&this._lines.drawAxisTicks(Z,se[Z].mirrorOffset,Pe,this.lineTickColor[Z],this.lineTickWidth[Z]*this.pixelRatio)}this._lines.unbind(),this._text.bind(F,B,O,this.pixelRatio);var at,tt=.5,Je,Ze;function Me(Ke){Ze=[0,0,0],Ze[Ke]=1}function we(Ke,Et,kt){var Ut=(Ke+1)%3,Yt=(Ke+2)%3,vr=Et[Ut],hr=Et[Yt],Rr=kt[Ut],dr=kt[Yt];if(vr>0&&dr>0){Me(Ut);return}else if(vr>0&&dr<0){Me(Ut);return}else if(vr<0&&dr>0){Me(Ut);return}else if(vr<0&&dr<0){Me(Ut);return}else if(hr>0&&Rr>0){Me(Yt);return}else if(hr>0&&Rr<0){Me(Yt);return}else if(hr<0&&Rr>0){Me(Yt);return}else if(hr<0&&Rr<0){Me(Yt);return}}for(var Z=0;Z<3;++Z){for(var he=se[Z].primalMinor,De=se[Z].mirrorMinor,et=l(R,se[Z].primalOffset),ae=0;ae<3;++ae)this.lineTickEnable[Z]&&(et[ae]+=ee*he[ae]*Math.max(this.lineTickLength[ae],0)/F[5*ae]);var nt=[0,0,0];if(nt[Z]=1,this.tickEnable[Z]){this.tickAngle[Z]===-3600?(this.tickAngle[Z]=0,this.tickAlign[Z]="auto"):this.tickAlign[Z]=-1,Je=1,at=[this.tickAlign[Z],tt,Je],at[0]==="auto"?at[0]=u:at[0]=parseInt(""+at[0]),Ze=[0,0,0],we(Z,he,De);for(var ae=0;ae<3;++ae)et[ae]+=ee*he[ae]*this.tickPad[ae]/F[5*ae];this._text.drawTicks(Z,this.tickSize[Z],this.tickAngle[Z],et,this.tickColor[Z],nt,Ze,at)}if(this.labelEnable[Z]){Je=0,Ze=[0,0,0],this.labels[Z].length>4&&(Me(Z),Je=1),at=[this.labelAlign[Z],tt,Je],at[0]==="auto"?at[0]=u:at[0]=parseInt(""+at[0]);for(var ae=0;ae<3;++ae)et[ae]+=ee*he[ae]*this.labelPad[ae]/F[5*ae];et[Z]+=.5*(P[0][Z]+P[1][Z]),this._text.drawLabel(Z,this.labelSize[Z],this.labelAngle[Z],et,this.labelColor[Z],[0,0,0],Ze,at)}}this._text.unbind()},w.dispose=function(){this._text.dispose(),this._lines.dispose(),this._background.dispose(),this._lines=null,this._text=null,this._background=null,this.gl=null};function I(z,F){var B=new m(z);return B.update(F),B}},5304:function(e,t,r){e.exports=c;var i=r(2762),a=r(8116),o=r(1879).bg;function n(f,p,v,T){this.gl=f,this.buffer=p,this.vao=v,this.shader=T}var s=n.prototype;s.draw=function(f,p,v,T,l,m){for(var w=!1,S=0;S<3;++S)w=w||l[S];if(w){var M=this.gl;M.enable(M.POLYGON_OFFSET_FILL),M.polygonOffset(1,2),this.shader.bind(),this.shader.uniforms={model:f,view:p,projection:v,bounds:T,enable:l,colors:m},this.vao.bind(),this.vao.draw(this.gl.TRIANGLES,36),this.vao.unbind(),M.disable(M.POLYGON_OFFSET_FILL)}},s.dispose=function(){this.vao.dispose(),this.buffer.dispose(),this.shader.dispose()};function c(f){for(var p=[],v=[],T=0,l=0;l<3;++l)for(var m=(l+1)%3,w=(l+2)%3,S=[0,0,0],M=[0,0,0],_=-1;_<=1;_+=2){v.push(T,T+2,T+1,T+1,T+2,T+3),S[l]=_,M[l]=_;for(var b=-1;b<=1;b+=2){S[m]=b;for(var d=-1;d<=1;d+=2)S[w]=d,p.push(S[0],S[1],S[2],M[0],M[1],M[2]),T+=1}var u=m;m=w,w=u}var g=i(f,new Float32Array(p)),y=i(f,new Uint16Array(v),f.ELEMENT_ARRAY_BUFFER),R=a(f,[{buffer:g,type:f.FLOAT,size:3,offset:0,stride:24},{buffer:g,type:f.FLOAT,size:3,offset:12,stride:24}],y),I=o(f);return I.attributes.position.location=0,I.attributes.normal.location=1,new n(f,g,R,I)}},6429:function(e,t,r){e.exports=_;var i=r(8828),a=r(6760),o=r(5202),n=r(3250),s=new Array(16),c=new Array(8),f=new Array(8),p=new Array(3),v=[0,0,0];(function(){for(var b=0;b<8;++b)c[b]=[1,1,1,1],f[b]=[1,1,1]})();function T(b,d,u){for(var g=0;g<4;++g){b[g]=u[12+g];for(var y=0;y<3;++y)b[g]+=d[y]*u[4*y+g]}}var l=[[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 m(b){for(var d=0;dte&&(B|=1<te){B|=1<f[I][1])&&(se=I);for(var Q=-1,I=0;I<3;++I){var V=se^1<f[re][0]&&(re=V)}}var ae=w;ae[0]=ae[1]=ae[2]=0,ae[i.log2(Q^se)]=se&Q,ae[i.log2(se^re)]=se&re;var fe=re^7;fe===B||fe===Z?(fe=Q^7,ae[i.log2(re^fe)]=fe&re):ae[i.log2(Q^fe)]=fe&Q;for(var xe=S,Ae=B,N=0;N<3;++N)Ae&1< HALF_PI) && (b <= ONE_AND_HALF_PI)) ? - b - PI : - b; -} - -float look_horizontal_or_vertical(float a, float ratio) { - // ratio controls the ratio between being horizontal to (vertical + horizontal) - // if ratio is set to 0.5 then it is 50%, 50%. - // when using a higher ratio e.g. 0.75 the result would - // likely be more horizontal than vertical. - - float b = positive_angle(a); - - return - (b < ( ratio) * HALF_PI) ? 0.0 : - (b < (2.0 - ratio) * HALF_PI) ? -HALF_PI : - (b < (2.0 + ratio) * HALF_PI) ? 0.0 : - (b < (4.0 - ratio) * HALF_PI) ? HALF_PI : - 0.0; -} - -float roundTo(float a, float b) { - return float(b * floor((a + 0.5 * b) / b)); -} - -float look_round_n_directions(float a, int n) { - float b = positive_angle(a); - float div = TWO_PI / float(n); - float c = roundTo(b, div); - return look_upwards(c); -} - -float applyAlignOption(float rawAngle, float delta) { - return - (option > 2) ? look_round_n_directions(rawAngle + delta, option) : // option 3-n: round to n directions - (option == 2) ? look_horizontal_or_vertical(rawAngle + delta, hv_ratio) : // horizontal or vertical - (option == 1) ? rawAngle + delta : // use free angle, and flip to align with one direction of the axis - (option == 0) ? look_upwards(rawAngle) : // use free angle, and stay upwards - (option ==-1) ? 0.0 : // useful for backward compatibility, all texts remains horizontal - rawAngle; // otherwise return back raw input angle -} - -bool isAxisTitle = (axis.x == 0.0) && - (axis.y == 0.0) && - (axis.z == 0.0); - -void main() { - //Compute world offset - float axisDistance = position.z; - vec3 dataPosition = axisDistance * axis + offset; - - float beta = angle; // i.e. user defined attributes for each tick - - float axisAngle; - float clipAngle; - float flip; - - if (enableAlign) { - axisAngle = (isAxisTitle) ? HALF_PI : - computeViewAngle(dataPosition, dataPosition + axis); - clipAngle = computeViewAngle(dataPosition, dataPosition + alignDir); - - axisAngle += (sin(axisAngle) < 0.0) ? PI : 0.0; - clipAngle += (sin(clipAngle) < 0.0) ? PI : 0.0; - - flip = (dot(vec2(cos(axisAngle), sin(axisAngle)), - vec2(sin(clipAngle),-cos(clipAngle))) > 0.0) ? 1.0 : 0.0; - - beta += applyAlignOption(clipAngle, flip * PI); - } - - //Compute plane offset - vec2 planeCoord = position.xy * pixelScale; - - mat2 planeXform = scale * mat2( - cos(beta), sin(beta), - -sin(beta), cos(beta) - ); - - vec2 viewOffset = 2.0 * planeXform * planeCoord / resolution; - - //Compute clip position - vec3 clipPosition = project(dataPosition); - - //Apply text offset in clip coordinates - clipPosition += vec3(viewOffset, 0.0); - - //Done - gl_Position = vec4(clipPosition, 1.0); -} -`]),c=i([`precision highp float; -#define GLSLIFY 1 - -uniform vec4 color; -void main() { - gl_FragColor = color; -}`]);t.Q=function(v){return a(v,s,c,null,[{name:"position",type:"vec3"}])};var f=i([`precision highp float; -#define GLSLIFY 1 - -attribute vec3 position; -attribute vec3 normal; - -uniform mat4 model, view, projection; -uniform vec3 enable; -uniform vec3 bounds[2]; - -varying vec3 colorChannel; - -void main() { - - vec3 signAxis = sign(bounds[1] - bounds[0]); - - vec3 realNormal = signAxis * normal; - - if(dot(realNormal, enable) > 0.0) { - vec3 minRange = min(bounds[0], bounds[1]); - vec3 maxRange = max(bounds[0], bounds[1]); - vec3 nPosition = mix(minRange, maxRange, 0.5 * (position + 1.0)); - gl_Position = projection * (view * (model * vec4(nPosition, 1.0))); - } else { - gl_Position = vec4(0,0,0,0); - } - - colorChannel = abs(realNormal); -} -`]),p=i([`precision highp float; -#define GLSLIFY 1 - -uniform vec4 colors[3]; - -varying vec3 colorChannel; - -void main() { - gl_FragColor = colorChannel.x * colors[0] + - colorChannel.y * colors[1] + - colorChannel.z * colors[2]; -}`]);t.bg=function(v){return a(v,f,p,null,[{name:"position",type:"vec3"},{name:"normal",type:"vec3"}])}},4935:function(e,t,r){e.exports=m;var i=r(2762),a=r(8116),o=r(4359),n=r(1879).Q,s=window||process.global||{},c=s.__TEXT_CACHE||{};s.__TEXT_CACHE={};var f=3;function p(w,S,M,_){this.gl=w,this.shader=S,this.buffer=M,this.vao=_,this.tickOffset=this.tickCount=this.labelOffset=this.labelCount=null}var v=p.prototype,T=[0,0];v.bind=function(w,S,M,_){this.vao.bind(),this.shader.bind();var b=this.shader.uniforms;b.model=w,b.view=S,b.projection=M,b.pixelScale=_,T[0]=this.gl.drawingBufferWidth,T[1]=this.gl.drawingBufferHeight,this.shader.uniforms.resolution=T},v.unbind=function(){this.vao.unbind()},v.update=function(w,S,M,_,b){var d=[];function u(N,U,X,te,ue,ie){var le=[X.style,X.weight,X.variant,X.family].join("_"),q=c[le];q||(q=c[le]={});var J=q[U];J||(J=q[U]=l(U,{triangles:!0,font:X.family,fontStyle:X.style,fontWeight:X.weight,fontVariant:X.variant,textAlign:"center",textBaseline:"middle",lineSpacing:ue,styletags:ie}));for(var ee=(te||12)/12,Z=J.positions,se=J.cells,Q=0,V=se.length;Q=0;--ae){var fe=Z[re[ae]];d.push(ee*fe[0],-ee*fe[1],N)}}for(var g=[0,0,0],y=[0,0,0],R=[0,0,0],I=[0,0,0],z=1.25,F={breaklines:!0,bolds:!0,italics:!0,subscripts:!0,superscripts:!0},B=0;B<3;++B){R[B]=d.length/f|0,u(.5*(w[0][B]+w[1][B]),S[B],M[B],12,z,F),I[B]=(d.length/f|0)-R[B],g[B]=d.length/f|0;for(var O=0;O<_[B].length;++O)if(_[B][O].text){var P={family:_[B][O].font||b[B].family,style:b[B].fontStyle||b[B].style,weight:b[B].fontWeight||b[B].weight,variant:b[B].fontVariant||b[B].variant};u(_[B][O].x,_[B][O].text,P,_[B][O].fontSize||12,z,F)}y[B]=(d.length/f|0)-g[B]}this.buffer.update(d),this.tickOffset=g,this.tickCount=y,this.labelOffset=R,this.labelCount=I},v.drawTicks=function(w,S,M,_,b,d,u,g){this.tickCount[w]&&(this.shader.uniforms.axis=d,this.shader.uniforms.color=b,this.shader.uniforms.angle=M,this.shader.uniforms.scale=S,this.shader.uniforms.offset=_,this.shader.uniforms.alignDir=u,this.shader.uniforms.alignOpt=g,this.vao.draw(this.gl.TRIANGLES,this.tickCount[w],this.tickOffset[w]))},v.drawLabel=function(w,S,M,_,b,d,u,g){this.labelCount[w]&&(this.shader.uniforms.axis=d,this.shader.uniforms.color=b,this.shader.uniforms.angle=M,this.shader.uniforms.scale=S,this.shader.uniforms.offset=_,this.shader.uniforms.alignDir=u,this.shader.uniforms.alignOpt=g,this.vao.draw(this.gl.TRIANGLES,this.labelCount[w],this.labelOffset[w]))},v.dispose=function(){this.shader.dispose(),this.vao.dispose(),this.buffer.dispose()};function l(w,S){try{return o(w,S)}catch(M){return console.warn('error vectorizing text:"'+w+'" error:',M),{cells:[],positions:[]}}}function m(w,S,M,_,b,d){var u=i(w),g=a(w,[{buffer:u,size:3}]),y=n(w);y.attributes.position.location=0;var R=new p(w,y,u,g);return R.update(S,M,_,b,d),R}},6444:function(e,t){t.create=i,t.equal=a;function r(o,n){var s=o+"",c=s.indexOf("."),f=0;c>=0&&(f=s.length-c-1);var p=Math.pow(10,f),v=Math.round(o*n*p),T=v+"";if(T.indexOf("e")>=0)return T;var l=v/p,m=v%p;v<0?(l=-Math.ceil(l)|0,m=-m|0):(l=Math.floor(l)|0,m=m|0);var w=""+l;if(v<0&&(w="-"+w),f){for(var S=""+m;S.length=o[0][c];--p)f.push({x:p*n[c],text:r(n[c],p)});s.push(f)}return s}function a(o,n){for(var s=0;s<3;++s){if(o[s].length!==n[s].length)return!1;for(var c=0;cw)throw new Error("gl-buffer: If resizing buffer, must not specify offset");return l.bufferSubData(m,_,M),w}function p(l,m){for(var w=i.malloc(l.length,m),S=l.length,M=0;M=0;--S){if(m[S]!==w)return!1;w*=l[S]}return!0}c.update=function(l,m){if(typeof m!="number"&&(m=-1),this.bind(),typeof l=="object"&&typeof l.shape<"u"){var w=l.dtype;if(n.indexOf(w)<0&&(w="float32"),this.type===this.gl.ELEMENT_ARRAY_BUFFER){var S=gl.getExtension("OES_element_index_uint");S&&w!=="uint16"?w="uint32":w="uint16"}if(w===l.dtype&&v(l.shape,l.stride))l.offset===0&&l.data.length===l.shape[0]?this.length=f(this.gl,this.type,this.length,this.usage,l.data,m):this.length=f(this.gl,this.type,this.length,this.usage,l.data.subarray(l.offset,l.shape[0]),m);else{var M=i.malloc(l.size,w),_=o(M,l.shape);a.assign(_,l),m<0?this.length=f(this.gl,this.type,this.length,this.usage,M,m):this.length=f(this.gl,this.type,this.length,this.usage,M.subarray(0,l.size),m),i.free(M)}}else if(Array.isArray(l)){var b;this.type===this.gl.ELEMENT_ARRAY_BUFFER?b=p(l,"uint16"):b=p(l,"float32"),m<0?this.length=f(this.gl,this.type,this.length,this.usage,b,m):this.length=f(this.gl,this.type,this.length,this.usage,b.subarray(0,l.length),m),i.free(b)}else if(typeof l=="object"&&typeof l.length=="number")this.length=f(this.gl,this.type,this.length,this.usage,l,m);else if(typeof l=="number"||l===void 0){if(m>=0)throw new Error("gl-buffer: Cannot specify offset when resizing buffer");l=l|0,l<=0&&(l=1),this.gl.bufferData(this.type,l|0,this.usage),this.length=l}else throw new Error("gl-buffer: Invalid data type")};function T(l,m,w,S){if(w=w||l.ARRAY_BUFFER,S=S||l.DYNAMIC_DRAW,w!==l.ARRAY_BUFFER&&w!==l.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(S!==l.DYNAMIC_DRAW&&S!==l.STATIC_DRAW&&S!==l.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=l.createBuffer(),_=new s(l,w,M,0,S);return _.update(m),_}e.exports=T},6405:function(e,t,r){var i=r(2931);e.exports=function(o,n){var s=o.positions,c=o.vectors,f={positions:[],vertexIntensity:[],vertexIntensityBounds:o.vertexIntensityBounds,vectors:[],cells:[],coneOffset:o.coneOffset,colormap:o.colormap};if(o.positions.length===0)return n&&(n[0]=[0,0,0],n[1]=[0,0,0]),f;for(var p=0,v=1/0,T=-1/0,l=1/0,m=-1/0,w=1/0,S=-1/0,M=null,_=null,b=[],d=1/0,u=!1,g=o.coneSizemode==="raw",y=0;yp&&(p=i.length(I)),y&&!g){var z=2*i.distance(M,R)/(i.length(_)+i.length(I));z?(d=Math.min(d,z),u=!1):u=!0}u||(M=R,_=I),b.push(I)}var F=[v,l,w],B=[T,m,S];n&&(n[0]=F,n[1]=B),p===0&&(p=1);var O=1/p;isFinite(d)||(d=1),f.vectorScale=d;var P=o.coneSize||(g?1:.5);o.absoluteConeSize&&(P=o.absoluteConeSize*O),f.coneScale=P;for(var y=0,N=0;y=1},l.isTransparent=function(){return this.opacity<1},l.pickSlots=1,l.setPickBase=function(b){this.pickId=b};function m(b){for(var d=p({colormap:b,nshades:256,format:"rgba"}),u=new Uint8Array(256*4),g=0;g<256;++g){for(var y=d[g],R=0;R<3;++R)u[4*g+R]=y[R];u[4*g+3]=y[3]*255}return f(u,[256,256,4],[4,0,1])}function w(b){for(var d=b.length,u=new Array(d),g=0;g0){var N=this.triShader;N.bind(),N.uniforms=z,this.triangleVAO.bind(),d.drawArrays(d.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind()}},l.drawPick=function(b){b=b||{};for(var d=this.gl,u=b.model||v,g=b.view||v,y=b.projection||v,R=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],I=0;I<3;++I)R[0][I]=Math.max(R[0][I],this.clipBounds[0][I]),R[1][I]=Math.min(R[1][I],this.clipBounds[1][I]);this._model=[].slice.call(u),this._view=[].slice.call(g),this._projection=[].slice.call(y),this._resolution=[d.drawingBufferWidth,d.drawingBufferHeight];var z={model:u,view:g,projection:y,clipBounds:R,tubeScale:this.tubeScale,vectorScale:this.vectorScale,coneScale:this.coneScale,coneOffset:this.coneOffset,pickId:this.pickId/255},F=this.pickShader;F.bind(),F.uniforms=z,this.triangleCount>0&&(this.triangleVAO.bind(),d.drawArrays(d.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind())},l.pick=function(b){if(!b||b.id!==this.pickId)return null;var d=b.value[0]+256*b.value[1]+65536*b.value[2],u=this.cells[d],g=this.positions[u[1]].slice(0,3),y={position:g,dataCoordinate:g,index:Math.floor(u[1]/48)};return this.traceType==="cone"?y.index=Math.floor(u[1]/48):this.traceType==="streamtube"&&(y.intensity=this.intensity[u[1]],y.velocity=this.vectors[u[1]].slice(0,3),y.divergence=this.vectors[u[1]][3],y.index=d),y},l.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 S(b,d){var u=i(b,d.meshShader.vertex,d.meshShader.fragment,null,d.meshShader.attributes);return u.attributes.position.location=0,u.attributes.color.location=2,u.attributes.uv.location=3,u.attributes.vector.location=4,u}function M(b,d){var u=i(b,d.pickShader.vertex,d.pickShader.fragment,null,d.pickShader.attributes);return u.attributes.position.location=0,u.attributes.id.location=1,u.attributes.vector.location=4,u}function _(b,d,u){var g=u.shaders;arguments.length===1&&(d=b,b=d.gl);var y=S(b,g),R=M(b,g),I=n(b,f(new Uint8Array([255,255,255,255]),[1,1,4]));I.generateMipmap(),I.minFilter=b.LINEAR_MIPMAP_LINEAR,I.magFilter=b.LINEAR;var z=a(b),F=a(b),B=a(b),O=a(b),P=a(b),N=o(b,[{buffer:z,type:b.FLOAT,size:4},{buffer:P,type:b.UNSIGNED_BYTE,size:4,normalized:!0},{buffer:B,type:b.FLOAT,size:4},{buffer:O,type:b.FLOAT,size:2},{buffer:F,type:b.FLOAT,size:4}]),U=new T(b,I,y,R,z,F,P,B,O,N,u.traceType||"cone");return U.update(d),U}e.exports=_},614:function(e,t,r){var i=r(3236),a=i([`precision highp float; - -precision highp float; -#define GLSLIFY 1 - -vec3 getOrthogonalVector(vec3 v) { - // Return up-vector for only-z vector. - // Return ax + by + cz = 0, a point that lies on the plane that has v as a normal and that isn't (0,0,0). - // From the above if-statement we have ||a|| > 0 U ||b|| > 0. - // Assign z = 0, x = -b, y = a: - // a*-b + b*a + c*0 = -ba + ba + 0 = 0 - if (v.x*v.x > v.z*v.z || v.y*v.y > v.z*v.z) { - return normalize(vec3(-v.y, v.x, 0.0)); - } else { - return normalize(vec3(0.0, v.z, -v.y)); - } -} - -// Calculate the cone vertex and normal at the given index. -// -// The returned vertex is for a cone with its top at origin and height of 1.0, -// pointing in the direction of the vector attribute. -// -// Each cone is made up of a top vertex, a center base vertex and base perimeter vertices. -// These vertices are used to make up the triangles of the cone by the following: -// segment + 0 top vertex -// segment + 1 perimeter vertex a+1 -// segment + 2 perimeter vertex a -// segment + 3 center base vertex -// segment + 4 perimeter vertex a -// segment + 5 perimeter vertex a+1 -// Where segment is the number of the radial segment * 6 and a is the angle at that radial segment. -// To go from index to segment, floor(index / 6) -// To go from segment to angle, 2*pi * (segment/segmentCount) -// To go from index to segment index, index - (segment*6) -// -vec3 getConePosition(vec3 d, float rawIndex, float coneOffset, out vec3 normal) { - - const float segmentCount = 8.0; - - float index = rawIndex - floor(rawIndex / - (segmentCount * 6.0)) * - (segmentCount * 6.0); - - float segment = floor(0.001 + index/6.0); - float segmentIndex = index - (segment*6.0); - - normal = -normalize(d); - - if (segmentIndex > 2.99 && segmentIndex < 3.01) { - return mix(vec3(0.0), -d, coneOffset); - } - - float nextAngle = ( - (segmentIndex > 0.99 && segmentIndex < 1.01) || - (segmentIndex > 4.99 && segmentIndex < 5.01) - ) ? 1.0 : 0.0; - float angle = 2.0 * 3.14159 * ((segment + nextAngle) / segmentCount); - - vec3 v1 = mix(d, vec3(0.0), coneOffset); - vec3 v2 = v1 - d; - - vec3 u = getOrthogonalVector(d); - vec3 v = normalize(cross(u, d)); - - vec3 x = u * cos(angle) * length(d)*0.25; - vec3 y = v * sin(angle) * length(d)*0.25; - vec3 v3 = v2 + x + y; - if (segmentIndex < 3.0) { - vec3 tx = u * sin(angle); - vec3 ty = v * -cos(angle); - vec3 tangent = tx + ty; - normal = normalize(cross(v3 - v1, tangent)); - } - - if (segmentIndex == 0.0) { - return mix(d, vec3(0.0), coneOffset); - } - return v3; -} - -attribute vec3 vector; -attribute vec4 color, position; -attribute vec2 uv; - -uniform float vectorScale, coneScale, coneOffset; -uniform mat4 model, view, projection, inverseModel; -uniform vec3 eyePosition, lightPosition; - -varying vec3 f_normal, f_lightDirection, f_eyeDirection, f_data, f_position; -varying vec4 f_color; -varying vec2 f_uv; - -void main() { - // Scale the vector magnitude to stay constant with - // model & view changes. - vec3 normal; - vec3 XYZ = getConePosition(mat3(model) * ((vectorScale * coneScale) * vector), position.w, coneOffset, normal); - vec4 conePosition = model * vec4(position.xyz, 1.0) + vec4(XYZ, 0.0); - - //Lighting geometry parameters - vec4 cameraCoordinate = view * conePosition; - cameraCoordinate.xyz /= cameraCoordinate.w; - f_lightDirection = lightPosition - cameraCoordinate.xyz; - f_eyeDirection = eyePosition - cameraCoordinate.xyz; - f_normal = normalize((vec4(normal, 0.0) * inverseModel).xyz); - - // vec4 m_position = model * vec4(conePosition, 1.0); - vec4 t_position = view * conePosition; - gl_Position = projection * t_position; - - f_color = color; - f_data = conePosition.xyz; - f_position = position.xyz; - f_uv = uv; -} -`]),o=i([`#extension GL_OES_standard_derivatives : enable - -precision highp float; -#define GLSLIFY 1 - -float beckmannDistribution(float x, float roughness) { - float NdotH = max(x, 0.0001); - float cos2Alpha = NdotH * NdotH; - float tan2Alpha = (cos2Alpha - 1.0) / cos2Alpha; - float roughness2 = roughness * roughness; - float denom = 3.141592653589793 * roughness2 * cos2Alpha * cos2Alpha; - return exp(tan2Alpha / roughness2) / denom; -} - -float cookTorranceSpecular( - vec3 lightDirection, - vec3 viewDirection, - vec3 surfaceNormal, - float roughness, - float fresnel) { - - float VdotN = max(dot(viewDirection, surfaceNormal), 0.0); - float LdotN = max(dot(lightDirection, surfaceNormal), 0.0); - - //Half angle vector - vec3 H = normalize(lightDirection + viewDirection); - - //Geometric term - float NdotH = max(dot(surfaceNormal, H), 0.0); - float VdotH = max(dot(viewDirection, H), 0.000001); - float LdotH = max(dot(lightDirection, H), 0.000001); - float G1 = (2.0 * NdotH * VdotN) / VdotH; - float G2 = (2.0 * NdotH * LdotN) / LdotH; - float G = min(1.0, min(G1, G2)); - - //Distribution term - float D = beckmannDistribution(NdotH, roughness); - - //Fresnel term - float F = pow(1.0 - VdotN, fresnel); - - //Multiply terms and done - return G * F * D / max(3.14159265 * VdotN, 0.000001); -} - -bool outOfRange(float a, float b, float p) { - return ((p > max(a, b)) || - (p < min(a, b))); -} - -bool outOfRange(vec2 a, vec2 b, vec2 p) { - return (outOfRange(a.x, b.x, p.x) || - outOfRange(a.y, b.y, p.y)); -} - -bool outOfRange(vec3 a, vec3 b, vec3 p) { - return (outOfRange(a.x, b.x, p.x) || - outOfRange(a.y, b.y, p.y) || - outOfRange(a.z, b.z, p.z)); -} - -bool outOfRange(vec4 a, vec4 b, vec4 p) { - return outOfRange(a.xyz, b.xyz, p.xyz); -} - -uniform vec3 clipBounds[2]; -uniform float roughness, fresnel, kambient, kdiffuse, kspecular, opacity; -uniform sampler2D texture; - -varying vec3 f_normal, f_lightDirection, f_eyeDirection, f_data, f_position; -varying vec4 f_color; -varying vec2 f_uv; - -void main() { - if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard; - vec3 N = normalize(f_normal); - vec3 L = normalize(f_lightDirection); - vec3 V = normalize(f_eyeDirection); - - if(gl_FrontFacing) { - N = -N; - } - - float specular = min(1.0, max(0.0, cookTorranceSpecular(L, V, N, roughness, fresnel))); - float diffuse = min(kambient + kdiffuse * max(dot(N, L), 0.0), 1.0); - - vec4 surfaceColor = f_color * texture2D(texture, f_uv); - vec4 litColor = surfaceColor.a * vec4(diffuse * surfaceColor.rgb + kspecular * vec3(1,1,1) * specular, 1.0); - - gl_FragColor = litColor * opacity; -} -`]),n=i([`precision highp float; - -precision highp float; -#define GLSLIFY 1 - -vec3 getOrthogonalVector(vec3 v) { - // Return up-vector for only-z vector. - // Return ax + by + cz = 0, a point that lies on the plane that has v as a normal and that isn't (0,0,0). - // From the above if-statement we have ||a|| > 0 U ||b|| > 0. - // Assign z = 0, x = -b, y = a: - // a*-b + b*a + c*0 = -ba + ba + 0 = 0 - if (v.x*v.x > v.z*v.z || v.y*v.y > v.z*v.z) { - return normalize(vec3(-v.y, v.x, 0.0)); - } else { - return normalize(vec3(0.0, v.z, -v.y)); - } -} - -// Calculate the cone vertex and normal at the given index. -// -// The returned vertex is for a cone with its top at origin and height of 1.0, -// pointing in the direction of the vector attribute. -// -// Each cone is made up of a top vertex, a center base vertex and base perimeter vertices. -// These vertices are used to make up the triangles of the cone by the following: -// segment + 0 top vertex -// segment + 1 perimeter vertex a+1 -// segment + 2 perimeter vertex a -// segment + 3 center base vertex -// segment + 4 perimeter vertex a -// segment + 5 perimeter vertex a+1 -// Where segment is the number of the radial segment * 6 and a is the angle at that radial segment. -// To go from index to segment, floor(index / 6) -// To go from segment to angle, 2*pi * (segment/segmentCount) -// To go from index to segment index, index - (segment*6) -// -vec3 getConePosition(vec3 d, float rawIndex, float coneOffset, out vec3 normal) { - - const float segmentCount = 8.0; - - float index = rawIndex - floor(rawIndex / - (segmentCount * 6.0)) * - (segmentCount * 6.0); - - float segment = floor(0.001 + index/6.0); - float segmentIndex = index - (segment*6.0); - - normal = -normalize(d); - - if (segmentIndex > 2.99 && segmentIndex < 3.01) { - return mix(vec3(0.0), -d, coneOffset); - } - - float nextAngle = ( - (segmentIndex > 0.99 && segmentIndex < 1.01) || - (segmentIndex > 4.99 && segmentIndex < 5.01) - ) ? 1.0 : 0.0; - float angle = 2.0 * 3.14159 * ((segment + nextAngle) / segmentCount); - - vec3 v1 = mix(d, vec3(0.0), coneOffset); - vec3 v2 = v1 - d; - - vec3 u = getOrthogonalVector(d); - vec3 v = normalize(cross(u, d)); - - vec3 x = u * cos(angle) * length(d)*0.25; - vec3 y = v * sin(angle) * length(d)*0.25; - vec3 v3 = v2 + x + y; - if (segmentIndex < 3.0) { - vec3 tx = u * sin(angle); - vec3 ty = v * -cos(angle); - vec3 tangent = tx + ty; - normal = normalize(cross(v3 - v1, tangent)); - } - - if (segmentIndex == 0.0) { - return mix(d, vec3(0.0), coneOffset); - } - return v3; -} - -attribute vec4 vector; -attribute vec4 position; -attribute vec4 id; - -uniform mat4 model, view, projection; -uniform float vectorScale, coneScale, coneOffset; - -varying vec3 f_position; -varying vec4 f_id; - -void main() { - vec3 normal; - vec3 XYZ = getConePosition(mat3(model) * ((vectorScale * coneScale) * vector.xyz), position.w, coneOffset, normal); - vec4 conePosition = model * vec4(position.xyz, 1.0) + vec4(XYZ, 0.0); - gl_Position = projection * (view * conePosition); - f_id = id; - f_position = position.xyz; -} -`]),s=i([`precision highp float; -#define GLSLIFY 1 - -bool outOfRange(float a, float b, float p) { - return ((p > max(a, b)) || - (p < min(a, b))); -} - -bool outOfRange(vec2 a, vec2 b, vec2 p) { - return (outOfRange(a.x, b.x, p.x) || - outOfRange(a.y, b.y, p.y)); -} - -bool outOfRange(vec3 a, vec3 b, vec3 p) { - return (outOfRange(a.x, b.x, p.x) || - outOfRange(a.y, b.y, p.y) || - outOfRange(a.z, b.z, p.z)); -} - -bool outOfRange(vec4 a, vec4 b, vec4 p) { - return outOfRange(a.xyz, b.xyz, p.xyz); -} - -uniform vec3 clipBounds[2]; -uniform float pickId; - -varying vec3 f_position; -varying vec4 f_id; - -void main() { - if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard; - - gl_FragColor = vec4(pickId, f_id.xyz); -}`]);t.meshShader={vertex:a,fragment:o,attributes:[{name:"position",type:"vec4"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"},{name:"vector",type:"vec3"}]},t.pickShader={vertex:n,fragment:s,attributes:[{name:"position",type:"vec4"},{name:"id",type:"vec4"},{name:"vector",type:"vec3"}]}},737:function(e){e.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:function(e,t,r){var i=r(737);e.exports=function(o){return i[o]}},9165:function(e,t,r){e.exports=T;var i=r(2762),a=r(8116),o=r(3436),n=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function s(l,m,w,S){this.gl=l,this.shader=S,this.buffer=m,this.vao=w,this.pixelRatio=1,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.lineWidth=[1,1,1],this.capSize=[10,10,10],this.lineCount=[0,0,0],this.lineOffset=[0,0,0],this.opacity=1,this.hasAlpha=!1}var c=s.prototype;c.isOpaque=function(){return!this.hasAlpha},c.isTransparent=function(){return this.hasAlpha},c.drawTransparent=c.draw=function(l){var m=this.gl,w=this.shader.uniforms;this.shader.bind();var S=w.view=l.view||n,M=w.projection=l.projection||n;w.model=l.model||n,w.clipBounds=this.clipBounds,w.opacity=this.opacity;var _=S[12],b=S[13],d=S[14],u=S[15],g=l._ortho||!1,y=g?2:1,R=y*this.pixelRatio*(M[3]*_+M[7]*b+M[11]*d+M[15]*u)/m.drawingBufferHeight;this.vao.bind();for(var I=0;I<3;++I)m.lineWidth(this.lineWidth[I]*this.pixelRatio),w.capSize=this.capSize[I]*R,this.lineCount[I]&&m.drawArrays(m.LINES,this.lineOffset[I],this.lineCount[I]);this.vao.unbind()};function f(l,m){for(var w=0;w<3;++w)l[0][w]=Math.min(l[0][w],m[w]),l[1][w]=Math.max(l[1][w],m[w])}var p=function(){for(var l=new Array(3),m=0;m<3;++m){for(var w=[],S=1;S<=2;++S)for(var M=-1;M<=1;M+=2){var _=(S+m)%3,b=[0,0,0];b[_]=M,w.push(b)}l[m]=w}return l}();function v(l,m,w,S){for(var M=p[S],_=0;_0){var z=g.slice();z[d]+=R[1][d],M.push(g[0],g[1],g[2],I[0],I[1],I[2],I[3],0,0,0,z[0],z[1],z[2],I[0],I[1],I[2],I[3],0,0,0),f(this.bounds,z),b+=2+v(M,z,I,d)}}}this.lineCount[d]=b-this.lineOffset[d]}this.buffer.update(M)}},c.dispose=function(){this.shader.dispose(),this.buffer.dispose(),this.vao.dispose()};function T(l){var m=l.gl,w=i(m),S=a(m,[{buffer:w,type:m.FLOAT,size:3,offset:0,stride:40},{buffer:w,type:m.FLOAT,size:4,offset:12,stride:40},{buffer:w,type:m.FLOAT,size:3,offset:28,stride:40}]),M=o(m);M.attributes.position.location=0,M.attributes.color.location=1,M.attributes.offset.location=2;var _=new s(m,w,S,M);return _.update(l),_}},3436:function(e,t,r){var i=r(3236),a=r(9405),o=i([`precision highp float; -#define GLSLIFY 1 - -attribute vec3 position, offset; -attribute vec4 color; -uniform mat4 model, view, projection; -uniform float capSize; -varying vec4 fragColor; -varying vec3 fragPosition; - -void main() { - vec4 worldPosition = model * vec4(position, 1.0); - worldPosition = (worldPosition / worldPosition.w) + vec4(capSize * offset, 0.0); - gl_Position = projection * (view * worldPosition); - fragColor = color; - fragPosition = position; -}`]),n=i([`precision highp float; -#define GLSLIFY 1 - -bool outOfRange(float a, float b, float p) { - return ((p > max(a, b)) || - (p < min(a, b))); -} - -bool outOfRange(vec2 a, vec2 b, vec2 p) { - return (outOfRange(a.x, b.x, p.x) || - outOfRange(a.y, b.y, p.y)); -} - -bool outOfRange(vec3 a, vec3 b, vec3 p) { - return (outOfRange(a.x, b.x, p.x) || - outOfRange(a.y, b.y, p.y) || - outOfRange(a.z, b.z, p.z)); -} - -bool outOfRange(vec4 a, vec4 b, vec4 p) { - return outOfRange(a.xyz, b.xyz, p.xyz); -} - -uniform vec3 clipBounds[2]; -uniform float opacity; -varying vec3 fragPosition; -varying vec4 fragColor; - -void main() { - if ( - outOfRange(clipBounds[0], clipBounds[1], fragPosition) || - fragColor.a * opacity == 0. - ) discard; - - gl_FragColor = opacity * fragColor; -}`]);e.exports=function(s){return a(s,o,n,null,[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"offset",type:"vec3"}])}},2260:function(e,t,r){var i=r(7766);e.exports=b;var a=null,o,n,s,c;function f(d){var u=d.getParameter(d.FRAMEBUFFER_BINDING),g=d.getParameter(d.RENDERBUFFER_BINDING),y=d.getParameter(d.TEXTURE_BINDING_2D);return[u,g,y]}function p(d,u){d.bindFramebuffer(d.FRAMEBUFFER,u[0]),d.bindRenderbuffer(d.RENDERBUFFER,u[1]),d.bindTexture(d.TEXTURE_2D,u[2])}function v(d,u){var g=d.getParameter(u.MAX_COLOR_ATTACHMENTS_WEBGL);a=new Array(g+1);for(var y=0;y<=g;++y){for(var R=new Array(g),I=0;I1&&F.drawBuffersWEBGL(a[z]);var U=g.getExtension("WEBGL_depth_texture");U?B?d.depth=l(g,R,I,U.UNSIGNED_INT_24_8_WEBGL,g.DEPTH_STENCIL,g.DEPTH_STENCIL_ATTACHMENT):O&&(d.depth=l(g,R,I,g.UNSIGNED_SHORT,g.DEPTH_COMPONENT,g.DEPTH_ATTACHMENT)):O&&B?d._depth_rb=m(g,R,I,g.DEPTH_STENCIL,g.DEPTH_STENCIL_ATTACHMENT):O?d._depth_rb=m(g,R,I,g.DEPTH_COMPONENT16,g.DEPTH_ATTACHMENT):B&&(d._depth_rb=m(g,R,I,g.STENCIL_INDEX,g.STENCIL_ATTACHMENT));var X=g.checkFramebufferStatus(g.FRAMEBUFFER);if(X!==g.FRAMEBUFFER_COMPLETE){d._destroyed=!0,g.bindFramebuffer(g.FRAMEBUFFER,null),g.deleteFramebuffer(d.handle),d.handle=null,d.depth&&(d.depth.dispose(),d.depth=null),d._depth_rb&&(g.deleteRenderbuffer(d._depth_rb),d._depth_rb=null);for(var N=0;NR||g<0||g>R)throw new Error("gl-fbo: Can't resize FBO, invalid dimensions");d._shape[0]=u,d._shape[1]=g;for(var I=f(y),z=0;zI||g<0||g>I)throw new Error("gl-fbo: Parameters are too large for FBO");y=y||{};var z=1;if("color"in y){if(z=Math.max(y.color|0,0),z<0)throw new Error("gl-fbo: Must specify a nonnegative number of colors");if(z>1)if(R){if(z>d.getParameter(R.MAX_COLOR_ATTACHMENTS_WEBGL))throw new Error("gl-fbo: Context does not support "+z+" draw buffers")}else throw new Error("gl-fbo: Multiple draw buffer extension not supported")}var F=d.UNSIGNED_BYTE,B=d.getExtension("OES_texture_float");if(y.float&&z>0){if(!B)throw new Error("gl-fbo: Context does not support floating point textures");F=d.FLOAT}else y.preferFloat&&z>0&&B&&(F=d.FLOAT);var O=!0;"depth"in y&&(O=!!y.depth);var P=!1;return"stencil"in y&&(P=!!y.stencil),new S(d,u,g,F,z,O,P,R)}},2992:function(e,t,r){var i=r(3387).sprintf,a=r(5171),o=r(1848),n=r(1085);e.exports=s;function s(c,f,p){var v=o(f)||"of unknown name (see npm glsl-shader-name)",T="unknown type";p!==void 0&&(T=p===a.FRAGMENT_SHADER?"fragment":"vertex");for(var l=i(`Error compiling %s shader %s: -`,T,v),m=i("%s%s",l,c),w=c.split(` -`),S={},M=0;M max(a, b)) || - (p < min(a, b))); -} - -bool outOfRange(vec2 a, vec2 b, vec2 p) { - return (outOfRange(a.x, b.x, p.x) || - outOfRange(a.y, b.y, p.y)); -} - -bool outOfRange(vec3 a, vec3 b, vec3 p) { - return (outOfRange(a.x, b.x, p.x) || - outOfRange(a.y, b.y, p.y) || - outOfRange(a.z, b.z, p.z)); -} - -bool outOfRange(vec4 a, vec4 b, vec4 p) { - return outOfRange(a.xyz, b.xyz, p.xyz); -} - -uniform vec3 clipBounds[2]; -uniform sampler2D dashTexture; -uniform float dashScale; -uniform float opacity; - -varying vec3 worldPosition; -varying float pixelArcLength; -varying vec4 fragColor; - -void main() { - if ( - outOfRange(clipBounds[0], clipBounds[1], worldPosition) || - fragColor.a * opacity == 0. - ) discard; - - float dashWeight = texture2D(dashTexture, vec2(dashScale * pixelArcLength, 0)).r; - if(dashWeight < 0.5) { - discard; - } - gl_FragColor = fragColor * opacity; -} -`]),s=i([`precision highp float; -#define GLSLIFY 1 - -#define FLOAT_MAX 1.70141184e38 -#define FLOAT_MIN 1.17549435e-38 - -// https://github.com/mikolalysenko/glsl-read-float/blob/master/index.glsl -vec4 packFloat(float v) { - float av = abs(v); - - //Handle special cases - if(av < FLOAT_MIN) { - return vec4(0.0, 0.0, 0.0, 0.0); - } else if(v > FLOAT_MAX) { - return vec4(127.0, 128.0, 0.0, 0.0) / 255.0; - } else if(v < -FLOAT_MAX) { - return vec4(255.0, 128.0, 0.0, 0.0) / 255.0; - } - - vec4 c = vec4(0,0,0,0); - - //Compute exponent and mantissa - float e = floor(log2(av)); - float m = av * pow(2.0, -e) - 1.0; - - //Unpack mantissa - c[1] = floor(128.0 * m); - m -= c[1] / 128.0; - c[2] = floor(32768.0 * m); - m -= c[2] / 32768.0; - c[3] = floor(8388608.0 * m); - - //Unpack exponent - float ebias = e + 127.0; - c[0] = floor(ebias / 2.0); - ebias -= c[0] * 2.0; - c[1] += floor(ebias) * 128.0; - - //Unpack sign bit - c[0] += 128.0 * step(0.0, -v); - - //Scale back to range - return c / 255.0; -} - -bool outOfRange(float a, float b, float p) { - return ((p > max(a, b)) || - (p < min(a, b))); -} - -bool outOfRange(vec2 a, vec2 b, vec2 p) { - return (outOfRange(a.x, b.x, p.x) || - outOfRange(a.y, b.y, p.y)); -} - -bool outOfRange(vec3 a, vec3 b, vec3 p) { - return (outOfRange(a.x, b.x, p.x) || - outOfRange(a.y, b.y, p.y) || - outOfRange(a.z, b.z, p.z)); -} - -bool outOfRange(vec4 a, vec4 b, vec4 p) { - return outOfRange(a.xyz, b.xyz, p.xyz); -} - -uniform float pickId; -uniform vec3 clipBounds[2]; - -varying vec3 worldPosition; -varying float pixelArcLength; -varying vec4 fragColor; - -void main() { - if (outOfRange(clipBounds[0], clipBounds[1], worldPosition)) discard; - - gl_FragColor = vec4(pickId/255.0, packFloat(pixelArcLength).xyz); -}`]),c=[{name:"position",type:"vec3"},{name:"nextPosition",type:"vec3"},{name:"arcLength",type:"float"},{name:"lineWidth",type:"float"},{name:"color",type:"vec4"}];t.createShader=function(f){return a(f,o,n,null,c)},t.createPickShader=function(f){return a(f,o,s,null,c)}},5714:function(e,t,r){e.exports=d;var i=r(2762),a=r(8116),o=r(7766),n=new Uint8Array(4),s=new Float32Array(n.buffer);function c(u,g,y,R){return n[0]=R,n[1]=y,n[2]=g,n[3]=u,s[0]}var f=r(2478),p=r(9618),v=r(7319),T=v.createShader,l=v.createPickShader,m=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function w(u,g){for(var y=0,R=0;R<3;++R){var I=u[R]-g[R];y+=I*I}return Math.sqrt(y)}function S(u){for(var g=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],y=0;y<3;++y)g[0][y]=Math.max(u[0][y],g[0][y]),g[1][y]=Math.min(u[1][y],g[1][y]);return g}function M(u,g,y,R){this.arcLength=u,this.position=g,this.index=y,this.dataCoordinate=R}function _(u,g,y,R,I,z){this.gl=u,this.shader=g,this.pickShader=y,this.buffer=R,this.vao=I,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=z,this.dashScale=1,this.opacity=1,this.hasAlpha=!1,this.dirty=!0,this.pixelRatio=1}var b=_.prototype;b.isTransparent=function(){return this.hasAlpha},b.isOpaque=function(){return!this.hasAlpha},b.pickSlots=1,b.setPickBase=function(u){this.pickId=u},b.drawTransparent=b.draw=function(u){if(this.vertexCount){var g=this.gl,y=this.shader,R=this.vao;y.bind(),y.uniforms={model:u.model||m,view:u.view||m,projection:u.projection||m,clipBounds:S(this.clipBounds),dashTexture:this.texture.bind(),dashScale:this.dashScale/this.arcLength[this.arcLength.length-1],opacity:this.opacity,screenShape:[g.drawingBufferWidth,g.drawingBufferHeight],pixelRatio:this.pixelRatio},R.bind(),R.draw(g.TRIANGLE_STRIP,this.vertexCount),R.unbind()}},b.drawPick=function(u){if(this.vertexCount){var g=this.gl,y=this.pickShader,R=this.vao;y.bind(),y.uniforms={model:u.model||m,view:u.view||m,projection:u.projection||m,pickId:this.pickId,clipBounds:S(this.clipBounds),screenShape:[g.drawingBufferWidth,g.drawingBufferHeight],pixelRatio:this.pixelRatio},R.bind(),R.draw(g.TRIANGLE_STRIP,this.vertexCount),R.unbind()}},b.update=function(u){var g,y;this.dirty=!0;var R=!!u.connectGaps;"dashScale"in u&&(this.dashScale=u.dashScale),this.hasAlpha=!1,"opacity"in u&&(this.opacity=+u.opacity,this.opacity<1&&(this.hasAlpha=!0));var I=[],z=[],F=[],B=0,O=0,P=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],N=u.position||u.positions;if(N){var U=u.color||u.colors||[0,0,0,1],X=u.lineWidth||1,te=!1;e:for(g=1;g0){for(var le=0;le<24;++le)I.push(I[I.length-12]);O+=2,te=!0}continue e}P[0][y]=Math.min(P[0][y],ue[y],ie[y]),P[1][y]=Math.max(P[1][y],ue[y],ie[y])}var q,J;Array.isArray(U[0])?(q=U.length>g-1?U[g-1]:U.length>0?U[U.length-1]:[0,0,0,1],J=U.length>g?U[g]:U.length>0?U[U.length-1]:[0,0,0,1]):q=J=U,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 ee;Array.isArray(X)?ee=X.length>g-1?X[g-1]:X.length>0?X[X.length-1]:[0,0,0,1]:ee=X;var Z=B;if(B+=w(ue,ie),te){for(y=0;y<2;++y)I.push(ue[0],ue[1],ue[2],ie[0],ie[1],ie[2],Z,ee,q[0],q[1],q[2],q[3]);O+=2,te=!1}I.push(ue[0],ue[1],ue[2],ie[0],ie[1],ie[2],Z,ee,q[0],q[1],q[2],q[3],ue[0],ue[1],ue[2],ie[0],ie[1],ie[2],Z,-ee,q[0],q[1],q[2],q[3],ie[0],ie[1],ie[2],ue[0],ue[1],ue[2],B,-ee,J[0],J[1],J[2],J[3],ie[0],ie[1],ie[2],ue[0],ue[1],ue[2],B,ee,J[0],J[1],J[2],J[3]),O+=4}}if(this.buffer.update(I),z.push(B),F.push(N[N.length-1].slice()),this.bounds=P,this.vertexCount=O,this.points=F,this.arcLength=z,"dashes"in u){var se=u.dashes,Q=se.slice();for(Q.unshift(0),g=1;g1.0001)return null;y+=g[M]}return Math.abs(y-1)>.001?null:[_,c(p,g),g]}},840:function(e,t,r){var i=r(3236),a=i([`precision highp float; -#define GLSLIFY 1 - -attribute vec3 position, normal; -attribute vec4 color; -attribute vec2 uv; - -uniform mat4 model - , view - , projection - , inverseModel; -uniform vec3 eyePosition - , lightPosition; - -varying vec3 f_normal - , f_lightDirection - , f_eyeDirection - , f_data; -varying vec4 f_color; -varying vec2 f_uv; - -vec4 project(vec3 p) { - return projection * (view * (model * vec4(p, 1.0))); -} - -void main() { - gl_Position = project(position); - - //Lighting geometry parameters - vec4 cameraCoordinate = view * vec4(position , 1.0); - cameraCoordinate.xyz /= cameraCoordinate.w; - f_lightDirection = lightPosition - cameraCoordinate.xyz; - f_eyeDirection = eyePosition - cameraCoordinate.xyz; - f_normal = normalize((vec4(normal, 0.0) * inverseModel).xyz); - - f_color = color; - f_data = position; - f_uv = uv; -} -`]),o=i([`#extension GL_OES_standard_derivatives : enable - -precision highp float; -#define GLSLIFY 1 - -float beckmannDistribution(float x, float roughness) { - float NdotH = max(x, 0.0001); - float cos2Alpha = NdotH * NdotH; - float tan2Alpha = (cos2Alpha - 1.0) / cos2Alpha; - float roughness2 = roughness * roughness; - float denom = 3.141592653589793 * roughness2 * cos2Alpha * cos2Alpha; - return exp(tan2Alpha / roughness2) / denom; -} - -float cookTorranceSpecular( - vec3 lightDirection, - vec3 viewDirection, - vec3 surfaceNormal, - float roughness, - float fresnel) { - - float VdotN = max(dot(viewDirection, surfaceNormal), 0.0); - float LdotN = max(dot(lightDirection, surfaceNormal), 0.0); - - //Half angle vector - vec3 H = normalize(lightDirection + viewDirection); - - //Geometric term - float NdotH = max(dot(surfaceNormal, H), 0.0); - float VdotH = max(dot(viewDirection, H), 0.000001); - float LdotH = max(dot(lightDirection, H), 0.000001); - float G1 = (2.0 * NdotH * VdotN) / VdotH; - float G2 = (2.0 * NdotH * LdotN) / LdotH; - float G = min(1.0, min(G1, G2)); - - //Distribution term - float D = beckmannDistribution(NdotH, roughness); - - //Fresnel term - float F = pow(1.0 - VdotN, fresnel); - - //Multiply terms and done - return G * F * D / max(3.14159265 * VdotN, 0.000001); -} - -//#pragma glslify: beckmann = require(glsl-specular-beckmann) // used in gl-surface3d - -bool outOfRange(float a, float b, float p) { - return ((p > max(a, b)) || - (p < min(a, b))); -} - -bool outOfRange(vec2 a, vec2 b, vec2 p) { - return (outOfRange(a.x, b.x, p.x) || - outOfRange(a.y, b.y, p.y)); -} - -bool outOfRange(vec3 a, vec3 b, vec3 p) { - return (outOfRange(a.x, b.x, p.x) || - outOfRange(a.y, b.y, p.y) || - outOfRange(a.z, b.z, p.z)); -} - -bool outOfRange(vec4 a, vec4 b, vec4 p) { - return outOfRange(a.xyz, b.xyz, p.xyz); -} - -uniform vec3 clipBounds[2]; -uniform float roughness - , fresnel - , kambient - , kdiffuse - , kspecular; -uniform sampler2D texture; - -varying vec3 f_normal - , f_lightDirection - , f_eyeDirection - , f_data; -varying vec4 f_color; -varying vec2 f_uv; - -void main() { - if (f_color.a == 0.0 || - outOfRange(clipBounds[0], clipBounds[1], f_data) - ) discard; - - vec3 N = normalize(f_normal); - vec3 L = normalize(f_lightDirection); - vec3 V = normalize(f_eyeDirection); - - if(gl_FrontFacing) { - N = -N; - } - - float specular = min(1.0, max(0.0, cookTorranceSpecular(L, V, N, roughness, fresnel))); - //float specular = max(0.0, beckmann(L, V, N, roughness)); // used in gl-surface3d - - float diffuse = min(kambient + kdiffuse * max(dot(N, L), 0.0), 1.0); - - vec4 surfaceColor = vec4(f_color.rgb, 1.0) * texture2D(texture, f_uv); - vec4 litColor = surfaceColor.a * vec4(diffuse * surfaceColor.rgb + kspecular * vec3(1,1,1) * specular, 1.0); - - gl_FragColor = litColor * f_color.a; -} -`]),n=i([`precision highp float; -#define GLSLIFY 1 - -attribute vec3 position; -attribute vec4 color; -attribute vec2 uv; - -uniform mat4 model, view, projection; - -varying vec4 f_color; -varying vec3 f_data; -varying vec2 f_uv; - -void main() { - gl_Position = projection * (view * (model * vec4(position, 1.0))); - f_color = color; - f_data = position; - f_uv = uv; -}`]),s=i([`precision highp float; -#define GLSLIFY 1 - -bool outOfRange(float a, float b, float p) { - return ((p > max(a, b)) || - (p < min(a, b))); -} - -bool outOfRange(vec2 a, vec2 b, vec2 p) { - return (outOfRange(a.x, b.x, p.x) || - outOfRange(a.y, b.y, p.y)); -} - -bool outOfRange(vec3 a, vec3 b, vec3 p) { - return (outOfRange(a.x, b.x, p.x) || - outOfRange(a.y, b.y, p.y) || - outOfRange(a.z, b.z, p.z)); -} - -bool outOfRange(vec4 a, vec4 b, vec4 p) { - return outOfRange(a.xyz, b.xyz, p.xyz); -} - -uniform vec3 clipBounds[2]; -uniform sampler2D texture; -uniform float opacity; - -varying vec4 f_color; -varying vec3 f_data; -varying vec2 f_uv; - -void main() { - if (outOfRange(clipBounds[0], clipBounds[1], f_data)) discard; - - gl_FragColor = f_color * texture2D(texture, f_uv) * opacity; -}`]),c=i([`precision highp float; -#define GLSLIFY 1 - -bool outOfRange(float a, float b, float p) { - return ((p > max(a, b)) || - (p < min(a, b))); -} - -bool outOfRange(vec2 a, vec2 b, vec2 p) { - return (outOfRange(a.x, b.x, p.x) || - outOfRange(a.y, b.y, p.y)); -} - -bool outOfRange(vec3 a, vec3 b, vec3 p) { - return (outOfRange(a.x, b.x, p.x) || - outOfRange(a.y, b.y, p.y) || - outOfRange(a.z, b.z, p.z)); -} - -bool outOfRange(vec4 a, vec4 b, vec4 p) { - return outOfRange(a.xyz, b.xyz, p.xyz); -} - -attribute vec3 position; -attribute vec4 color; -attribute vec2 uv; -attribute float pointSize; - -uniform mat4 model, view, projection; -uniform vec3 clipBounds[2]; - -varying vec4 f_color; -varying vec2 f_uv; - -void main() { - if (outOfRange(clipBounds[0], clipBounds[1], position)) { - - gl_Position = vec4(0.0, 0.0 ,0.0 ,0.0); - } else { - gl_Position = projection * (view * (model * vec4(position, 1.0))); - } - gl_PointSize = pointSize; - f_color = color; - f_uv = uv; -}`]),f=i([`precision highp float; -#define GLSLIFY 1 - -uniform sampler2D texture; -uniform float opacity; - -varying vec4 f_color; -varying vec2 f_uv; - -void main() { - vec2 pointR = gl_PointCoord.xy - vec2(0.5, 0.5); - if(dot(pointR, pointR) > 0.25) { - discard; - } - gl_FragColor = f_color * texture2D(texture, f_uv) * opacity; -}`]),p=i([`precision highp float; -#define GLSLIFY 1 - -attribute vec3 position; -attribute vec4 id; - -uniform mat4 model, view, projection; - -varying vec3 f_position; -varying vec4 f_id; - -void main() { - gl_Position = projection * (view * (model * vec4(position, 1.0))); - f_id = id; - f_position = position; -}`]),v=i([`precision highp float; -#define GLSLIFY 1 - -bool outOfRange(float a, float b, float p) { - return ((p > max(a, b)) || - (p < min(a, b))); -} - -bool outOfRange(vec2 a, vec2 b, vec2 p) { - return (outOfRange(a.x, b.x, p.x) || - outOfRange(a.y, b.y, p.y)); -} - -bool outOfRange(vec3 a, vec3 b, vec3 p) { - return (outOfRange(a.x, b.x, p.x) || - outOfRange(a.y, b.y, p.y) || - outOfRange(a.z, b.z, p.z)); -} - -bool outOfRange(vec4 a, vec4 b, vec4 p) { - return outOfRange(a.xyz, b.xyz, p.xyz); -} - -uniform vec3 clipBounds[2]; -uniform float pickId; - -varying vec3 f_position; -varying vec4 f_id; - -void main() { - if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard; - - gl_FragColor = vec4(pickId, f_id.xyz); -}`]),T=i([`precision highp float; -#define GLSLIFY 1 - -bool outOfRange(float a, float b, float p) { - return ((p > max(a, b)) || - (p < min(a, b))); -} - -bool outOfRange(vec2 a, vec2 b, vec2 p) { - return (outOfRange(a.x, b.x, p.x) || - outOfRange(a.y, b.y, p.y)); -} - -bool outOfRange(vec3 a, vec3 b, vec3 p) { - return (outOfRange(a.x, b.x, p.x) || - outOfRange(a.y, b.y, p.y) || - outOfRange(a.z, b.z, p.z)); -} - -bool outOfRange(vec4 a, vec4 b, vec4 p) { - return outOfRange(a.xyz, b.xyz, p.xyz); -} - -attribute vec3 position; -attribute float pointSize; -attribute vec4 id; - -uniform mat4 model, view, projection; -uniform vec3 clipBounds[2]; - -varying vec3 f_position; -varying vec4 f_id; - -void main() { - if (outOfRange(clipBounds[0], clipBounds[1], position)) { - - gl_Position = vec4(0.0, 0.0, 0.0, 0.0); - } else { - gl_Position = projection * (view * (model * vec4(position, 1.0))); - gl_PointSize = pointSize; - } - f_id = id; - f_position = position; -}`]),l=i([`precision highp float; -#define GLSLIFY 1 - -attribute vec3 position; - -uniform mat4 model, view, projection; - -void main() { - gl_Position = projection * (view * (model * vec4(position, 1.0))); -}`]),m=i([`precision highp float; -#define GLSLIFY 1 - -uniform vec3 contourColor; - -void main() { - gl_FragColor = vec4(contourColor, 1.0); -} -`]);t.meshShader={vertex:a,fragment:o,attributes:[{name:"position",type:"vec3"},{name:"normal",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"}]},t.wireShader={vertex:n,fragment:s,attributes:[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"}]},t.pointShader={vertex:c,fragment:f,attributes:[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"},{name:"pointSize",type:"float"}]},t.pickShader={vertex:p,fragment:v,attributes:[{name:"position",type:"vec3"},{name:"id",type:"vec4"}]},t.pointPickShader={vertex:T,fragment:v,attributes:[{name:"position",type:"vec3"},{name:"pointSize",type:"float"},{name:"id",type:"vec4"}]},t.contourShader={vertex:l,fragment:m,attributes:[{name:"position",type:"vec3"}]}},7201:function(e,t,r){var i=1e-6,a=1e-6,o=r(9405),n=r(2762),s=r(8116),c=r(7766),f=r(8406),p=r(6760),v=r(7608),T=r(9618),l=r(6729),m=r(7765),w=r(1888),S=r(840),M=r(7626),_=S.meshShader,b=S.wireShader,d=S.pointShader,u=S.pickShader,g=S.pointPickShader,y=S.contourShader,R=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function I(le,q,J,ee,Z,se,Q,V,re,ae,fe,xe,Ae,Pe,Ce,je,at,tt,Je,Ze,Me,we,he,De,et,nt,Ke){this.gl=le,this.pixelRatio=1,this.cells=[],this.positions=[],this.intensity=[],this.texture=q,this.dirty=!0,this.triShader=J,this.lineShader=ee,this.pointShader=Z,this.pickShader=se,this.pointPickShader=Q,this.contourShader=V,this.trianglePositions=re,this.triangleColors=fe,this.triangleNormals=Ae,this.triangleUVs=xe,this.triangleIds=ae,this.triangleVAO=Pe,this.triangleCount=0,this.lineWidth=1,this.edgePositions=Ce,this.edgeColors=at,this.edgeUVs=tt,this.edgeIds=je,this.edgeVAO=Je,this.edgeCount=0,this.pointPositions=Ze,this.pointColors=we,this.pointUVs=he,this.pointSizes=De,this.pointIds=Me,this.pointVAO=et,this.pointCount=0,this.contourLineWidth=1,this.contourPositions=nt,this.contourVAO=Ke,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=R,this._view=R,this._projection=R,this._resolution=[1,1]}var z=I.prototype;z.isOpaque=function(){return!this.hasAlpha},z.isTransparent=function(){return this.hasAlpha},z.pickSlots=1,z.setPickBase=function(le){this.pickId=le};function F(le,q){if(!q||!q.length)return 1;for(var J=0;Jle&&J>0){var ee=(q[J][0]-le)/(q[J][0]-q[J-1][0]);return q[J][1]*(1-ee)+ee*q[J-1][1]}}return 1}function B(le,q){for(var J=l({colormap:le,nshades:256,format:"rgba"}),ee=new Uint8Array(256*4),Z=0;Z<256;++Z){for(var se=J[Z],Q=0;Q<3;++Q)ee[4*Z+Q]=se[Q];q?ee[4*Z+3]=255*F(Z/255,q):ee[4*Z+3]=255*se[3]}return T(ee,[256,256,4],[4,0,1])}function O(le){for(var q=le.length,J=new Array(q),ee=0;ee0){var Ae=this.triShader;Ae.bind(),Ae.uniforms=V,this.triangleVAO.bind(),q.drawArrays(q.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind()}if(this.edgeCount>0&&this.lineWidth>0){var Ae=this.lineShader;Ae.bind(),Ae.uniforms=V,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 Ae=this.pointShader;Ae.bind(),Ae.uniforms=V,this.pointVAO.bind(),q.drawArrays(q.POINTS,0,this.pointCount),this.pointVAO.unbind()}if(this.contourEnable&&this.contourCount>0&&this.contourLineWidth>0){var Ae=this.contourShader;Ae.bind(),Ae.uniforms=V,this.contourVAO.bind(),q.drawArrays(q.LINES,0,this.contourCount),this.contourVAO.unbind()}},z.drawPick=function(le){le=le||{};for(var q=this.gl,J=le.model||R,ee=le.view||R,Z=le.projection||R,se=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],Q=0;Q<3;++Q)se[0][Q]=Math.max(se[0][Q],this.clipBounds[0][Q]),se[1][Q]=Math.min(se[1][Q],this.clipBounds[1][Q]);this._model=[].slice.call(J),this._view=[].slice.call(ee),this._projection=[].slice.call(Z),this._resolution=[q.drawingBufferWidth,q.drawingBufferHeight];var V={model:J,view:ee,projection:Z,clipBounds:se,pickId:this.pickId/255},re=this.pickShader;if(re.bind(),re.uniforms=V,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 re=this.pointPickShader;re.bind(),re.uniforms=V,this.pointVAO.bind(),q.drawArrays(q.POINTS,0,this.pointCount),this.pointVAO.unbind()}},z.pick=function(le){if(!le||le.id!==this.pickId)return null;for(var q=le.value[0]+256*le.value[1]+65536*le.value[2],J=this.cells[q],ee=this.positions,Z=new Array(J.length),se=0;seMath.abs(u))l.rotate(R,0,0,-d*g*Math.PI*_.rotateSpeed/window.innerWidth);else if(!_._ortho){var I=-_.zoomSpeed*y*u/window.innerHeight*(R-l.lastT())/20;l.pan(R,0,0,w*(Math.exp(I)-1))}}},!0)},_.enableMouseListeners(),_}},799:function(e,t,r){var i=r(3236),a=r(9405),o=i([`precision mediump float; -#define GLSLIFY 1 -attribute vec2 position; -varying vec2 uv; -void main() { - uv = position; - gl_Position = vec4(position, 0, 1); -}`]),n=i([`precision mediump float; -#define GLSLIFY 1 - -uniform sampler2D accumBuffer; -varying vec2 uv; - -void main() { - vec4 accum = texture2D(accumBuffer, 0.5 * (uv + 1.0)); - gl_FragColor = min(vec4(1,1,1,1), accum); -}`]);e.exports=function(s){return a(s,o,n,null,[{name:"position",type:"vec2"}])}},4100:function(e,t,r){var i=r(4437),a=r(3837),o=r(5445),n=r(4449),s=r(3589),c=r(2260),f=r(7169),p=r(351),v=r(4772),T=r(4040),l=r(799),m=r(9216)({tablet:!0,featureDetect:!0});e.exports={createScene:b,createCamera:i};function w(){this.mouse=[-1,-1],this.screen=null,this.distance=1/0,this.index=null,this.dataCoordinate=null,this.dataPosition=null,this.object=null,this.data=null}function S(u,g){var y=null;try{y=u.getContext("webgl",g),y||(y=u.getContext("experimental-webgl",g))}catch{return null}return y}function M(u){var g=Math.round(Math.log(Math.abs(u))/Math.log(10));if(g<0){var y=Math.round(Math.pow(10,-g));return Math.ceil(u*y)/y}else if(g>0){var y=Math.round(Math.pow(10,g));return Math.ceil(u/y)*y}return Math.ceil(u)}function _(u){return typeof u=="boolean"?u:!0}function b(u){u=u||{},u.camera=u.camera||{};var g=u.canvas;if(!g)if(g=document.createElement("canvas"),u.container){var y=u.container;y.appendChild(g)}else document.body.appendChild(g);var R=u.gl;if(R||(u.glOptions&&(m=!!u.glOptions.preserveDrawingBuffer),R=S(g,u.glOptions||{premultipliedAlpha:!0,antialias:!0,preserveDrawingBuffer:m})),!R)throw new Error("webgl not supported");var I=u.bounds||[[-10,-10,-10],[10,10,10]],z=new w,F=c(R,R.drawingBufferWidth,R.drawingBufferHeight,{preferFloat:!m}),B=l(R),O=u.cameraObject&&u.cameraObject._ortho===!0||u.camera.projection&&u.camera.projection.type==="orthographic"||!1,P={eye:u.camera.eye||[2,0,0],center:u.camera.center||[0,0,0],up:u.camera.up||[0,1,0],zoomMin:u.camera.zoomMax||.1,zoomMax:u.camera.zoomMin||100,mode:u.camera.mode||"turntable",_ortho:O},N=u.axes||{},U=a(R,N);U.enable=!N.disable;var X=u.spikes||{},te=n(R,X),ue=[],ie=[],le=[],q=[],J=!0,Q=!0,ee=new Array(16),Z=new Array(16),se={view:null,projection:ee,model:Z,_ortho:!1},Q=!0,V=[R.drawingBufferWidth,R.drawingBufferHeight],re=u.cameraObject||i(g,P),ae={gl:R,contextLost:!1,pixelRatio:u.pixelRatio||1,canvas:g,selection:z,camera:re,axes:U,axesPixels:null,spikes:te,bounds:I,objects:ue,shape:V,aspect:u.aspectRatio||[1,1,1],pickRadius:u.pickRadius||10,zNear:u.zNear||.01,zFar:u.zFar||1e3,fovy:u.fovy||Math.PI/4,clearColor:u.clearColor||[0,0,0,0],autoResize:_(u.autoResize),autoBounds:_(u.autoBounds),autoScale:!!u.autoScale,autoCenter:_(u.autoCenter),clipToBounds:_(u.clipToBounds),snapToData:!!u.snapToData,onselect:u.onselect||null,onrender:u.onrender||null,onclick:u.onclick||null,cameraParams:se,oncontextloss:null,mouseListener:null,_stopped:!1,getAspectratio:function(){return{x:this.aspect[0],y:this.aspect[1],z:this.aspect[2]}},setAspectratio:function(Ze){this.aspect[0]=Ze.x,this.aspect[1]=Ze.y,this.aspect[2]=Ze.z,Q=!0},setBounds:function(Ze,Me){this.bounds[0][Ze]=Me.min,this.bounds[1][Ze]=Me.max},setClearColor:function(Ze){this.clearColor=Ze},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)}},fe=[R.drawingBufferWidth/ae.pixelRatio|0,R.drawingBufferHeight/ae.pixelRatio|0];function xe(){if(!ae._stopped&&ae.autoResize){var Ze=g.parentNode,Me=1,we=1;Ze&&Ze!==document.body?(Me=Ze.clientWidth,we=Ze.clientHeight):(Me=window.innerWidth,we=window.innerHeight);var he=Math.ceil(Me*ae.pixelRatio)|0,De=Math.ceil(we*ae.pixelRatio)|0;if(he!==g.width||De!==g.height){g.width=he,g.height=De;var et=g.style;et.position=et.position||"absolute",et.left="0px",et.top="0px",et.width=Me+"px",et.height=we+"px",J=!0}}}ae.autoResize&&xe(),window.addEventListener("resize",xe);function Ae(){for(var Ze=ue.length,Me=q.length,we=0;we0&&le[Me-1]===0;)le.pop(),q.pop().dispose()}ae.update=function(Ze){ae._stopped||(J=!0,Q=!0)},ae.add=function(Ze){ae._stopped||(Ze.axes=U,ue.push(Ze),ie.push(-1),J=!0,Q=!0,Ae())},ae.remove=function(Ze){if(!ae._stopped){var Me=ue.indexOf(Ze);Me<0||(ue.splice(Me,1),ie.pop(),J=!0,Q=!0,Ae())}},ae.dispose=function(){if(!ae._stopped&&(ae._stopped=!0,window.removeEventListener("resize",xe),g.removeEventListener("webglcontextlost",Pe),ae.mouseListener.enabled=!1,!ae.contextLost)){U.dispose(),te.dispose();for(var Ze=0;Zez.distance)continue;for(var kt=0;kt1e-6?(m=Math.acos(w),S=Math.sin(m),M=Math.sin((1-o)*m)/S,_=Math.sin(o*m)/S):(M=1-o,_=o),r[0]=M*n+_*p,r[1]=M*s+_*v,r[2]=M*c+_*T,r[3]=M*f+_*l,r}},5964:function(e){e.exports=function(t){return!t&&t!==0?"":t.toString()}},9366:function(e,t,r){var i=r(4359);e.exports=o;var a={};function o(n,s,c){var f=[s.style,s.weight,s.variant,s.family].join("_"),p=a[f];if(p||(p=a[f]={}),n in p)return p[n];var v={textAlign:"center",textBaseline:"middle",lineHeight:1,font:s.family,fontStyle:s.style,fontWeight:s.weight,fontVariant:s.variant,lineSpacing:1.25,styletags:{breaklines:!0,bolds:!0,italics:!0,subscripts:!0,superscripts:!0}};v.triangles=!0;var T=i(n,v);v.triangles=!1;var l=i(n,v),m,w;if(c&&c!==1){for(m=0;m max(a, b)) || - (p < min(a, b))); -} - -bool outOfRange(vec2 a, vec2 b, vec2 p) { - return (outOfRange(a.x, b.x, p.x) || - outOfRange(a.y, b.y, p.y)); -} - -bool outOfRange(vec3 a, vec3 b, vec3 p) { - return (outOfRange(a.x, b.x, p.x) || - outOfRange(a.y, b.y, p.y) || - outOfRange(a.z, b.z, p.z)); -} - -bool outOfRange(vec4 a, vec4 b, vec4 p) { - return outOfRange(a.xyz, b.xyz, p.xyz); -} - -attribute vec3 position; -attribute vec4 color; -attribute vec2 glyph; -attribute vec4 id; - -uniform vec4 highlightId; -uniform float highlightScale; -uniform mat4 model, view, projection; -uniform vec3 clipBounds[2]; - -varying vec4 interpColor; -varying vec4 pickId; -varying vec3 dataCoordinate; - -void main() { - if (outOfRange(clipBounds[0], clipBounds[1], position)) { - - gl_Position = vec4(0,0,0,0); - } else { - float scale = 1.0; - if(distance(highlightId, id) < 0.0001) { - scale = highlightScale; - } - - vec4 worldPosition = model * vec4(position, 1); - vec4 viewPosition = view * worldPosition; - viewPosition = viewPosition / viewPosition.w; - vec4 clipPosition = projection * (viewPosition + scale * vec4(glyph.x, -glyph.y, 0, 0)); - - gl_Position = clipPosition; - interpColor = color; - pickId = id; - dataCoordinate = position; - } -}`]),n=a([`precision highp float; -#define GLSLIFY 1 - -bool outOfRange(float a, float b, float p) { - return ((p > max(a, b)) || - (p < min(a, b))); -} - -bool outOfRange(vec2 a, vec2 b, vec2 p) { - return (outOfRange(a.x, b.x, p.x) || - outOfRange(a.y, b.y, p.y)); -} - -bool outOfRange(vec3 a, vec3 b, vec3 p) { - return (outOfRange(a.x, b.x, p.x) || - outOfRange(a.y, b.y, p.y) || - outOfRange(a.z, b.z, p.z)); -} - -bool outOfRange(vec4 a, vec4 b, vec4 p) { - return outOfRange(a.xyz, b.xyz, p.xyz); -} - -attribute vec3 position; -attribute vec4 color; -attribute vec2 glyph; -attribute vec4 id; - -uniform mat4 model, view, projection; -uniform vec2 screenSize; -uniform vec3 clipBounds[2]; -uniform float highlightScale, pixelRatio; -uniform vec4 highlightId; - -varying vec4 interpColor; -varying vec4 pickId; -varying vec3 dataCoordinate; - -void main() { - if (outOfRange(clipBounds[0], clipBounds[1], position)) { - - gl_Position = vec4(0,0,0,0); - } else { - float scale = pixelRatio; - if(distance(highlightId.bgr, id.bgr) < 0.001) { - scale *= highlightScale; - } - - vec4 worldPosition = model * vec4(position, 1.0); - vec4 viewPosition = view * worldPosition; - vec4 clipPosition = projection * viewPosition; - clipPosition /= clipPosition.w; - - gl_Position = clipPosition + vec4(screenSize * scale * vec2(glyph.x, -glyph.y), 0.0, 0.0); - interpColor = color; - pickId = id; - dataCoordinate = position; - } -}`]),s=a([`precision highp float; -#define GLSLIFY 1 - -bool outOfRange(float a, float b, float p) { - return ((p > max(a, b)) || - (p < min(a, b))); -} - -bool outOfRange(vec2 a, vec2 b, vec2 p) { - return (outOfRange(a.x, b.x, p.x) || - outOfRange(a.y, b.y, p.y)); -} - -bool outOfRange(vec3 a, vec3 b, vec3 p) { - return (outOfRange(a.x, b.x, p.x) || - outOfRange(a.y, b.y, p.y) || - outOfRange(a.z, b.z, p.z)); -} - -bool outOfRange(vec4 a, vec4 b, vec4 p) { - return outOfRange(a.xyz, b.xyz, p.xyz); -} - -attribute vec3 position; -attribute vec4 color; -attribute vec2 glyph; -attribute vec4 id; - -uniform float highlightScale; -uniform vec4 highlightId; -uniform vec3 axes[2]; -uniform mat4 model, view, projection; -uniform vec2 screenSize; -uniform vec3 clipBounds[2]; -uniform float scale, pixelRatio; - -varying vec4 interpColor; -varying vec4 pickId; -varying vec3 dataCoordinate; - -void main() { - if (outOfRange(clipBounds[0], clipBounds[1], position)) { - - gl_Position = vec4(0,0,0,0); - } else { - float lscale = pixelRatio * scale; - if(distance(highlightId, id) < 0.0001) { - lscale *= highlightScale; - } - - vec4 clipCenter = projection * (view * (model * vec4(position, 1))); - vec3 dataPosition = position + 0.5*lscale*(axes[0] * glyph.x + axes[1] * glyph.y) * clipCenter.w * screenSize.y; - vec4 clipPosition = projection * (view * (model * vec4(dataPosition, 1))); - - gl_Position = clipPosition; - interpColor = color; - pickId = id; - dataCoordinate = dataPosition; - } -} -`]),c=a([`precision highp float; -#define GLSLIFY 1 - -bool outOfRange(float a, float b, float p) { - return ((p > max(a, b)) || - (p < min(a, b))); -} - -bool outOfRange(vec2 a, vec2 b, vec2 p) { - return (outOfRange(a.x, b.x, p.x) || - outOfRange(a.y, b.y, p.y)); -} - -bool outOfRange(vec3 a, vec3 b, vec3 p) { - return (outOfRange(a.x, b.x, p.x) || - outOfRange(a.y, b.y, p.y) || - outOfRange(a.z, b.z, p.z)); -} - -bool outOfRange(vec4 a, vec4 b, vec4 p) { - return outOfRange(a.xyz, b.xyz, p.xyz); -} - -uniform vec3 fragClipBounds[2]; -uniform float opacity; - -varying vec4 interpColor; -varying vec3 dataCoordinate; - -void main() { - if ( - outOfRange(fragClipBounds[0], fragClipBounds[1], dataCoordinate) || - interpColor.a * opacity == 0. - ) discard; - gl_FragColor = interpColor * opacity; -} -`]),f=a([`precision highp float; -#define GLSLIFY 1 - -bool outOfRange(float a, float b, float p) { - return ((p > max(a, b)) || - (p < min(a, b))); -} - -bool outOfRange(vec2 a, vec2 b, vec2 p) { - return (outOfRange(a.x, b.x, p.x) || - outOfRange(a.y, b.y, p.y)); -} - -bool outOfRange(vec3 a, vec3 b, vec3 p) { - return (outOfRange(a.x, b.x, p.x) || - outOfRange(a.y, b.y, p.y) || - outOfRange(a.z, b.z, p.z)); -} - -bool outOfRange(vec4 a, vec4 b, vec4 p) { - return outOfRange(a.xyz, b.xyz, p.xyz); -} - -uniform vec3 fragClipBounds[2]; -uniform float pickGroup; - -varying vec4 pickId; -varying vec3 dataCoordinate; - -void main() { - if (outOfRange(fragClipBounds[0], fragClipBounds[1], dataCoordinate)) discard; - - gl_FragColor = vec4(pickGroup, pickId.bgr); -}`]),p=[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"glyph",type:"vec2"},{name:"id",type:"vec4"}],v={vertex:o,fragment:c,attributes:p},T={vertex:n,fragment:c,attributes:p},l={vertex:s,fragment:c,attributes:p},m={vertex:o,fragment:f,attributes:p},w={vertex:n,fragment:f,attributes:p},S={vertex:s,fragment:f,attributes:p};function M(_,b){var d=i(_,b),u=d.attributes;return u.position.location=0,u.color.location=1,u.glyph.location=2,u.id.location=3,d}t.createPerspective=function(_){return M(_,v)},t.createOrtho=function(_){return M(_,T)},t.createProject=function(_){return M(_,l)},t.createPickPerspective=function(_){return M(_,m)},t.createPickOrtho=function(_){return M(_,w)},t.createPickProject=function(_){return M(_,S)}},8418:function(e,t,r){var i=r(5219),a=r(2762),o=r(8116),n=r(1888),s=r(6760),c=r(1283),f=r(9366),p=r(5964),v=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],T=ArrayBuffer,l=DataView;function m(Z){return T.isView(Z)&&!(Z instanceof l)}function w(Z){return Array.isArray(Z)||m(Z)}e.exports=ee;function S(Z,se){var Q=Z[0],V=Z[1],re=Z[2],ae=Z[3];return Z[0]=se[0]*Q+se[4]*V+se[8]*re+se[12]*ae,Z[1]=se[1]*Q+se[5]*V+se[9]*re+se[13]*ae,Z[2]=se[2]*Q+se[6]*V+se[10]*re+se[14]*ae,Z[3]=se[3]*Q+se[7]*V+se[11]*re+se[15]*ae,Z}function M(Z,se,Q,V){return S(V,V),S(V,V),S(V,V)}function _(Z,se){this.index=Z,this.dataCoordinate=this.position=se}function b(Z){return Z===!0||Z>1?1:Z}function d(Z,se,Q,V,re,ae,fe,xe,Ae,Pe,Ce,je){this.gl=Z,this.pixelRatio=1,this.shader=se,this.orthoShader=Q,this.projectShader=V,this.pointBuffer=re,this.colorBuffer=ae,this.glyphBuffer=fe,this.idBuffer=xe,this.vao=Ae,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=Pe,this.pickOrthoShader=Ce,this.pickProjectShader=je,this.points=[],this._selectResult=new _(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 u=d.prototype;u.pickSlots=1,u.setPickBase=function(Z){this.pickId=Z},u.isTransparent=function(){if(this.hasAlpha)return!0;for(var Z=0;Z<3;++Z)if(this.axesProject[Z]&&this.projectHasAlpha)return!0;return!1},u.isOpaque=function(){if(!this.hasAlpha)return!0;for(var Z=0;Z<3;++Z)if(this.axesProject[Z]&&!this.projectHasAlpha)return!0;return!1};var g=[0,0],y=[0,0,0],R=[0,0,0],I=[0,0,0,1],z=[0,0,0,1],F=v.slice(),B=[0,0,0],O=[[0,0,0],[0,0,0]];function P(Z){return Z[0]=Z[1]=Z[2]=0,Z}function N(Z,se){return Z[0]=se[0],Z[1]=se[1],Z[2]=se[2],Z[3]=1,Z}function U(Z,se,Q,V){return Z[0]=se[0],Z[1]=se[1],Z[2]=se[2],Z[Q]=V,Z}function X(Z){for(var se=O,Q=0;Q<2;++Q)for(var V=0;V<3;++V)se[Q][V]=Math.max(Math.min(Z[Q][V],1e8),-1e8);return se}function te(Z,se,Q,V){var re=se.axesProject,ae=se.gl,fe=Z.uniforms,xe=Q.model||v,Ae=Q.view||v,Pe=Q.projection||v,Ce=se.axesBounds,je=X(se.clipBounds),at;se.axes&&se.axes.lastCubeProps?at=se.axes.lastCubeProps.axis:at=[1,1,1],g[0]=2/ae.drawingBufferWidth,g[1]=2/ae.drawingBufferHeight,Z.bind(),fe.view=Ae,fe.projection=Pe,fe.screenSize=g,fe.highlightId=se.highlightId,fe.highlightScale=se.highlightScale,fe.clipBounds=je,fe.pickGroup=se.pickId/255,fe.pixelRatio=V;for(var tt=0;tt<3;++tt)if(re[tt]){fe.scale=se.projectScale[tt],fe.opacity=se.projectOpacity[tt];for(var Je=F,Ze=0;Ze<16;++Ze)Je[Ze]=0;for(var Ze=0;Ze<4;++Ze)Je[5*Ze]=1;Je[5*tt]=0,at[tt]<0?Je[12+tt]=Ce[0][tt]:Je[12+tt]=Ce[1][tt],s(Je,xe,Je),fe.model=Je;var Me=(tt+1)%3,we=(tt+2)%3,he=P(y),De=P(R);he[Me]=1,De[we]=1;var et=M(Pe,Ae,xe,N(I,he)),nt=M(Pe,Ae,xe,N(z,De));if(Math.abs(et[1])>Math.abs(nt[1])){var Ke=et;et=nt,nt=Ke,Ke=he,he=De,De=Ke;var Et=Me;Me=we,we=Et}et[0]<0&&(he[Me]=-1),nt[1]>0&&(De[we]=-1);for(var kt=0,Ut=0,Ze=0;Ze<4;++Ze)kt+=Math.pow(xe[4*Me+Ze],2),Ut+=Math.pow(xe[4*we+Ze],2);he[Me]/=Math.sqrt(kt),De[we]/=Math.sqrt(Ut),fe.axes[0]=he,fe.axes[1]=De,fe.fragClipBounds[0]=U(B,je[0],tt,-1e8),fe.fragClipBounds[1]=U(B,je[1],tt,1e8),se.vao.bind(),se.vao.draw(ae.TRIANGLES,se.vertexCount),se.lineWidth>0&&(ae.lineWidth(se.lineWidth*V),se.vao.draw(ae.LINES,se.lineVertexCount,se.vertexCount)),se.vao.unbind()}}var ue=[-1e8,-1e8,-1e8],ie=[1e8,1e8,1e8],le=[ue,ie];function q(Z,se,Q,V,re,ae,fe){var xe=Q.gl;if((ae===Q.projectHasAlpha||fe)&&te(se,Q,V,re),ae===Q.hasAlpha||fe){Z.bind();var Ae=Z.uniforms;Ae.model=V.model||v,Ae.view=V.view||v,Ae.projection=V.projection||v,g[0]=2/xe.drawingBufferWidth,g[1]=2/xe.drawingBufferHeight,Ae.screenSize=g,Ae.highlightId=Q.highlightId,Ae.highlightScale=Q.highlightScale,Ae.fragClipBounds=le,Ae.clipBounds=Q.axes.bounds,Ae.opacity=Q.opacity,Ae.pickGroup=Q.pickId/255,Ae.pixelRatio=re,Q.vao.bind(),Q.vao.draw(xe.TRIANGLES,Q.vertexCount),Q.lineWidth>0&&(xe.lineWidth(Q.lineWidth*re),Q.vao.draw(xe.LINES,Q.lineVertexCount,Q.vertexCount)),Q.vao.unbind()}}u.draw=function(Z){var se=this.useOrtho?this.orthoShader:this.shader;q(se,this.projectShader,this,Z,this.pixelRatio,!1,!1)},u.drawTransparent=function(Z){var se=this.useOrtho?this.orthoShader:this.shader;q(se,this.projectShader,this,Z,this.pixelRatio,!0,!1)},u.drawPick=function(Z){var se=this.useOrtho?this.pickOrthoShader:this.pickPerspectiveShader;q(se,this.pickProjectShader,this,Z,1,!0,!0)},u.pick=function(Z){if(!Z||Z.id!==this.pickId)return null;var se=Z.value[2]+(Z.value[1]<<8)+(Z.value[0]<<16);if(se>=this.pointCount||se<0)return null;var Q=this.points[se],V=this._selectResult;V.index=se;for(var re=0;re<3;++re)V.position[re]=V.dataCoordinate[re]=Q[re];return V},u.highlight=function(Z){if(!Z)this.highlightId=[1,1,1,1];else{var se=Z.index,Q=se&255,V=se>>8&255,re=se>>16&255;this.highlightId=[Q/255,V/255,re/255,0]}};function J(Z,se,Q,V){var re;w(Z)?se0){var wr=0,yt=we,Fe=[0,0,0,1],We=[0,0,0,1],Oe=w(at)&&w(at[0]),de=w(Ze)&&w(Ze[0]);e:for(var V=0;V0?1-Ut[0][0]:Ct<0?1+Ut[1][0]:1,Zt*=Zt>0?1-Ut[0][1]:Zt<0?1+Ut[1][1]:1;for(var Wt=[Ct,Zt],Ia=Et.cells||[],La=Et.positions||[],nt=0;ntthis.buffer.length){a.free(this.buffer);for(var w=this.buffer=a.mallocUint8(n(m*l*4)),S=0;Sw)for(l=w;lm)for(l=m;l=0){for(var O=B.type.charAt(B.type.length-1)|0,P=new Array(O),N=0;N=0;)U+=1;z[F]=U}var X=new Array(w.length);function te(){_.program=n.program(b,_._vref,_._fref,I,z);for(var ue=0;ue=0){var u=b.charCodeAt(b.length-1)-48;if(u<2||u>4)throw new i("","Invalid data type for attribute "+_+": "+b);s(p,v,d[0],l,u,m,_)}else if(b.indexOf("mat")>=0){var u=b.charCodeAt(b.length-1)-48;if(u<2||u>4)throw new i("","Invalid data type for attribute "+_+": "+b);c(p,v,d,l,u,m,_)}else throw new i("","Unknown data type for attribute "+_+": "+b);break}}return m}},3327:function(e,t,r){var i=r(216),a=r(8866);e.exports=s;function o(c){return function(){return c}}function n(c,f){for(var p=new Array(c),v=0;v4)throw new a("","Invalid data type");switch(U.charAt(0)){case"b":case"i":c["uniform"+X+"iv"](v[z],F);break;case"v":c["uniform"+X+"fv"](v[z],F);break;default:throw new a("","Unrecognized data type for vector "+name+": "+U)}}else if(U.indexOf("mat")===0&&U.length===4){if(X=U.charCodeAt(U.length-1)-48,X<2||X>4)throw new a("","Invalid uniform dimension type for matrix "+name+": "+U);c["uniformMatrix"+X+"fv"](v[z],!1,F);break}else throw new a("","Unknown uniform data type for "+name+": "+U)}}}}}function m(b,d){if(typeof d!="object")return[[b,d]];var u=[];for(var g in d){var y=d[g],R=b;parseInt(g)+""===g?R+="["+g+"]":R+="."+g,typeof y=="object"?u.push.apply(u,m(R,y)):u.push([R,y])}return u}function w(b){switch(b){case"bool":return!1;case"int":case"sampler2D":case"samplerCube":return 0;case"float":return 0;default:var d=b.indexOf("vec");if(0<=d&&d<=1&&b.length===4+d){var u=b.charCodeAt(b.length-1)-48;if(u<2||u>4)throw new a("","Invalid data type");return b.charAt(0)==="b"?n(u,!1):n(u,0)}else if(b.indexOf("mat")===0&&b.length===4){var u=b.charCodeAt(b.length-1)-48;if(u<2||u>4)throw new a("","Invalid uniform dimension type for matrix "+name+": "+b);return n(u*u,0)}else throw new a("","Unknown uniform data type for "+name+": "+b)}}function S(b,d,u){if(typeof u=="object"){var g=M(u);Object.defineProperty(b,d,{get:o(g),set:l(u),enumerable:!0,configurable:!1})}else v[u]?Object.defineProperty(b,d,{get:T(u),set:l(u),enumerable:!0,configurable:!1}):b[d]=w(p[u].type)}function M(b){var d;if(Array.isArray(b)){d=new Array(b.length);for(var u=0;u1){p[0]in c||(c[p[0]]=[]),c=c[p[0]];for(var v=1;v1)for(var m=0;m"u"?r(606):WeakMap,n=new o,s=0;function c(S,M,_,b,d,u,g){this.id=S,this.src=M,this.type=_,this.shader=b,this.count=u,this.programs=[],this.cache=g}c.prototype.dispose=function(){if(--this.count===0){for(var S=this.cache,M=S.gl,_=this.programs,b=0,d=_.length;b 0 U ||b|| > 0. - // Assign z = 0, x = -b, y = a: - // a*-b + b*a + c*0 = -ba + ba + 0 = 0 - if (v.x*v.x > v.z*v.z || v.y*v.y > v.z*v.z) { - return normalize(vec3(-v.y, v.x, 0.0)); - } else { - return normalize(vec3(0.0, v.z, -v.y)); - } -} - -// Calculate the tube vertex and normal at the given index. -// -// The returned vertex is for a tube ring with its center at origin, radius of length(d), pointing in the direction of d. -// -// Each tube segment is made up of a ring of vertices. -// These vertices are used to make up the triangles of the tube by connecting them together in the vertex array. -// The indexes of tube segments run from 0 to 8. -// -vec3 getTubePosition(vec3 d, float index, out vec3 normal) { - float segmentCount = 8.0; - - float angle = 2.0 * 3.14159 * (index / segmentCount); - - vec3 u = getOrthogonalVector(d); - vec3 v = normalize(cross(u, d)); - - vec3 x = u * cos(angle) * length(d); - vec3 y = v * sin(angle) * length(d); - vec3 v3 = x + y; - - normal = normalize(v3); - - return v3; -} - -attribute vec4 vector; -attribute vec4 color, position; -attribute vec2 uv; - -uniform float vectorScale, tubeScale; -uniform mat4 model, view, projection, inverseModel; -uniform vec3 eyePosition, lightPosition; - -varying vec3 f_normal, f_lightDirection, f_eyeDirection, f_data, f_position; -varying vec4 f_color; -varying vec2 f_uv; - -void main() { - // Scale the vector magnitude to stay constant with - // model & view changes. - vec3 normal; - vec3 XYZ = getTubePosition(mat3(model) * (tubeScale * vector.w * normalize(vector.xyz)), position.w, normal); - vec4 tubePosition = model * vec4(position.xyz, 1.0) + vec4(XYZ, 0.0); - - //Lighting geometry parameters - vec4 cameraCoordinate = view * tubePosition; - cameraCoordinate.xyz /= cameraCoordinate.w; - f_lightDirection = lightPosition - cameraCoordinate.xyz; - f_eyeDirection = eyePosition - cameraCoordinate.xyz; - f_normal = normalize((vec4(normal, 0.0) * inverseModel).xyz); - - // vec4 m_position = model * vec4(tubePosition, 1.0); - vec4 t_position = view * tubePosition; - gl_Position = projection * t_position; - - f_color = color; - f_data = tubePosition.xyz; - f_position = position.xyz; - f_uv = uv; -} -`]),o=i([`#extension GL_OES_standard_derivatives : enable - -precision highp float; -#define GLSLIFY 1 - -float beckmannDistribution(float x, float roughness) { - float NdotH = max(x, 0.0001); - float cos2Alpha = NdotH * NdotH; - float tan2Alpha = (cos2Alpha - 1.0) / cos2Alpha; - float roughness2 = roughness * roughness; - float denom = 3.141592653589793 * roughness2 * cos2Alpha * cos2Alpha; - return exp(tan2Alpha / roughness2) / denom; -} - -float cookTorranceSpecular( - vec3 lightDirection, - vec3 viewDirection, - vec3 surfaceNormal, - float roughness, - float fresnel) { - - float VdotN = max(dot(viewDirection, surfaceNormal), 0.0); - float LdotN = max(dot(lightDirection, surfaceNormal), 0.0); - - //Half angle vector - vec3 H = normalize(lightDirection + viewDirection); - - //Geometric term - float NdotH = max(dot(surfaceNormal, H), 0.0); - float VdotH = max(dot(viewDirection, H), 0.000001); - float LdotH = max(dot(lightDirection, H), 0.000001); - float G1 = (2.0 * NdotH * VdotN) / VdotH; - float G2 = (2.0 * NdotH * LdotN) / LdotH; - float G = min(1.0, min(G1, G2)); - - //Distribution term - float D = beckmannDistribution(NdotH, roughness); - - //Fresnel term - float F = pow(1.0 - VdotN, fresnel); - - //Multiply terms and done - return G * F * D / max(3.14159265 * VdotN, 0.000001); -} - -bool outOfRange(float a, float b, float p) { - return ((p > max(a, b)) || - (p < min(a, b))); -} - -bool outOfRange(vec2 a, vec2 b, vec2 p) { - return (outOfRange(a.x, b.x, p.x) || - outOfRange(a.y, b.y, p.y)); -} - -bool outOfRange(vec3 a, vec3 b, vec3 p) { - return (outOfRange(a.x, b.x, p.x) || - outOfRange(a.y, b.y, p.y) || - outOfRange(a.z, b.z, p.z)); -} - -bool outOfRange(vec4 a, vec4 b, vec4 p) { - return outOfRange(a.xyz, b.xyz, p.xyz); -} - -uniform vec3 clipBounds[2]; -uniform float roughness, fresnel, kambient, kdiffuse, kspecular, opacity; -uniform sampler2D texture; - -varying vec3 f_normal, f_lightDirection, f_eyeDirection, f_data, f_position; -varying vec4 f_color; -varying vec2 f_uv; - -void main() { - if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard; - vec3 N = normalize(f_normal); - vec3 L = normalize(f_lightDirection); - vec3 V = normalize(f_eyeDirection); - - if(gl_FrontFacing) { - N = -N; - } - - float specular = min(1.0, max(0.0, cookTorranceSpecular(L, V, N, roughness, fresnel))); - float diffuse = min(kambient + kdiffuse * max(dot(N, L), 0.0), 1.0); - - vec4 surfaceColor = f_color * texture2D(texture, f_uv); - vec4 litColor = surfaceColor.a * vec4(diffuse * surfaceColor.rgb + kspecular * vec3(1,1,1) * specular, 1.0); - - gl_FragColor = litColor * opacity; -} -`]),n=i([`precision highp float; - -precision highp float; -#define GLSLIFY 1 - -vec3 getOrthogonalVector(vec3 v) { - // Return up-vector for only-z vector. - // Return ax + by + cz = 0, a point that lies on the plane that has v as a normal and that isn't (0,0,0). - // From the above if-statement we have ||a|| > 0 U ||b|| > 0. - // Assign z = 0, x = -b, y = a: - // a*-b + b*a + c*0 = -ba + ba + 0 = 0 - if (v.x*v.x > v.z*v.z || v.y*v.y > v.z*v.z) { - return normalize(vec3(-v.y, v.x, 0.0)); - } else { - return normalize(vec3(0.0, v.z, -v.y)); - } -} - -// Calculate the tube vertex and normal at the given index. -// -// The returned vertex is for a tube ring with its center at origin, radius of length(d), pointing in the direction of d. -// -// Each tube segment is made up of a ring of vertices. -// These vertices are used to make up the triangles of the tube by connecting them together in the vertex array. -// The indexes of tube segments run from 0 to 8. -// -vec3 getTubePosition(vec3 d, float index, out vec3 normal) { - float segmentCount = 8.0; - - float angle = 2.0 * 3.14159 * (index / segmentCount); - - vec3 u = getOrthogonalVector(d); - vec3 v = normalize(cross(u, d)); - - vec3 x = u * cos(angle) * length(d); - vec3 y = v * sin(angle) * length(d); - vec3 v3 = x + y; - - normal = normalize(v3); - - return v3; -} - -attribute vec4 vector; -attribute vec4 position; -attribute vec4 id; - -uniform mat4 model, view, projection; -uniform float tubeScale; - -varying vec3 f_position; -varying vec4 f_id; - -void main() { - vec3 normal; - vec3 XYZ = getTubePosition(mat3(model) * (tubeScale * vector.w * normalize(vector.xyz)), position.w, normal); - vec4 tubePosition = model * vec4(position.xyz, 1.0) + vec4(XYZ, 0.0); - - gl_Position = projection * (view * tubePosition); - f_id = id; - f_position = position.xyz; -} -`]),s=i([`precision highp float; -#define GLSLIFY 1 - -bool outOfRange(float a, float b, float p) { - return ((p > max(a, b)) || - (p < min(a, b))); -} - -bool outOfRange(vec2 a, vec2 b, vec2 p) { - return (outOfRange(a.x, b.x, p.x) || - outOfRange(a.y, b.y, p.y)); -} - -bool outOfRange(vec3 a, vec3 b, vec3 p) { - return (outOfRange(a.x, b.x, p.x) || - outOfRange(a.y, b.y, p.y) || - outOfRange(a.z, b.z, p.z)); -} - -bool outOfRange(vec4 a, vec4 b, vec4 p) { - return outOfRange(a.xyz, b.xyz, p.xyz); -} - -uniform vec3 clipBounds[2]; -uniform float pickId; - -varying vec3 f_position; -varying vec4 f_id; - -void main() { - if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard; - - gl_FragColor = vec4(pickId, f_id.xyz); -}`]);t.meshShader={vertex:a,fragment:o,attributes:[{name:"position",type:"vec4"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"},{name:"vector",type:"vec4"}]},t.pickShader={vertex:n,fragment:s,attributes:[{name:"position",type:"vec4"},{name:"id",type:"vec4"},{name:"vector",type:"vec4"}]}},7815:function(e,t,r){var i=r(2931),a=r(9970),o=["xyz","xzy","yxz","yzx","zxy","zyx"],n=function(w,S,M,_){for(var b=w.points,d=w.velocities,u=w.divergences,g=[],y=[],R=[],I=[],z=[],F=[],B=0,O=0,P=a.create(),N=a.create(),U=8,X=0;X0)for(var le=0;leS)return _-1}return _},f=function(w,S,M){return wM?M:w},p=function(w,S,M){var _=S.vectors,b=S.meshgrid,d=w[0],u=w[1],g=w[2],y=b[0].length,R=b[1].length,I=b[2].length,z=c(b[0],d),F=c(b[1],u),B=c(b[2],g),O=z+1,P=F+1,N=B+1;if(z=f(z,0,y-1),O=f(O,0,y-1),F=f(F,0,R-1),P=f(P,0,R-1),B=f(B,0,I-1),N=f(N,0,I-1),z<0||F<0||B<0||O>y-1||P>R-1||N>I-1)return i.create();var U=b[0][z],X=b[0][O],te=b[1][F],ue=b[1][P],ie=b[2][B],le=b[2][N],q=(d-U)/(X-U),J=(u-te)/(ue-te),ee=(g-ie)/(le-ie);isFinite(q)||(q=.5),isFinite(J)||(J=.5),isFinite(ee)||(ee=.5);var Z,se,Q,V,re,ae;switch(M.reversedX&&(z=y-1-z,O=y-1-O),M.reversedY&&(F=R-1-F,P=R-1-P),M.reversedZ&&(B=I-1-B,N=I-1-N),M.filled){case 5:re=B,ae=N,Q=F*I,V=P*I,Z=z*I*R,se=O*I*R;break;case 4:re=B,ae=N,Z=z*I,se=O*I,Q=F*I*y,V=P*I*y;break;case 3:Q=F,V=P,re=B*R,ae=N*R,Z=z*R*I,se=O*R*I;break;case 2:Q=F,V=P,Z=z*R,se=O*R,re=B*R*y,ae=N*R*y;break;case 1:Z=z,se=O,re=B*y,ae=N*y,Q=F*y*I,V=P*y*I;break;default:Z=z,se=O,Q=F*y,V=P*y,re=B*y*R,ae=N*y*R;break}var fe=_[Z+Q+re],xe=_[Z+Q+ae],Ae=_[Z+V+re],Pe=_[Z+V+ae],Ce=_[se+Q+re],je=_[se+Q+ae],at=_[se+V+re],tt=_[se+V+ae],Je=i.create(),Ze=i.create(),Me=i.create(),we=i.create();i.lerp(Je,fe,Ce,q),i.lerp(Ze,xe,je,q),i.lerp(Me,Ae,at,q),i.lerp(we,Pe,tt,q);var he=i.create(),De=i.create();i.lerp(he,Je,Me,J),i.lerp(De,Ze,we,J);var et=i.create();return i.lerp(et,he,De,ee),et},v=function(w){var S=1/0;w.sort(function(d,u){return d-u});for(var M=w.length,_=1;_O||ttP||JeN)},X=i.distance(S[0],S[1]),te=10*X/_,ue=te*te,ie=1,le=0,q=M.length;q>1&&(ie=T(M));for(var J=0;Jle&&(le=fe),re.push(fe),I.push({points:Z,velocities:se,divergences:re});for(var xe=0;xe<_*100&&Z.length<_&&U(ee);){xe++;var Ae=i.clone(Q),Pe=i.squaredLength(Ae);if(Pe===0)break;if(Pe>ue&&i.scale(Ae,Ae,te/Math.sqrt(Pe)),i.add(Ae,Ae,ee),Q=y(Ae),i.squaredDistance(V,Ae)-ue>-1e-4*ue){Z.push(Ae),V=Ae,se.push(Q);var ae=R(Ae,Q),fe=i.length(ae);isFinite(fe)&&fe>le&&(le=fe),re.push(fe)}ee=Ae}}var Ce=s(I,w.colormap,le,ie);return d?Ce.tubeScale=d:(le===0&&(le=1),Ce.tubeScale=b*.5*ie/le),Ce};var l=r(6740),m=r(6405).createMesh;e.exports.createTubeMesh=function(w,S){return m(w,S,{shaders:l,traceType:"streamtube"})}},990:function(e,t,r){var i=r(9405),a=r(3236),o=a([`precision highp float; -#define GLSLIFY 1 - -attribute vec4 uv; -attribute vec3 f; -attribute vec3 normal; - -uniform vec3 objectOffset; -uniform mat4 model, view, projection, inverseModel; -uniform vec3 lightPosition, eyePosition; -uniform sampler2D colormap; - -varying float value, kill; -varying vec3 worldCoordinate; -varying vec2 planeCoordinate; -varying vec3 lightDirection, eyeDirection, surfaceNormal; -varying vec4 vColor; - -void main() { - vec3 localCoordinate = vec3(uv.zw, f.x); - worldCoordinate = objectOffset + localCoordinate; - mat4 objectOffsetTranslation = mat4(1.0) + mat4(vec4(0), vec4(0), vec4(0), vec4(objectOffset, 0)); - vec4 worldPosition = (model * objectOffsetTranslation) * vec4(localCoordinate, 1.0); - vec4 clipPosition = projection * (view * worldPosition); - gl_Position = clipPosition; - kill = f.y; - value = f.z; - planeCoordinate = uv.xy; - - vColor = texture2D(colormap, vec2(value, value)); - - //Lighting geometry parameters - vec4 cameraCoordinate = view * worldPosition; - cameraCoordinate.xyz /= cameraCoordinate.w; - lightDirection = lightPosition - cameraCoordinate.xyz; - eyeDirection = eyePosition - cameraCoordinate.xyz; - surfaceNormal = normalize((vec4(normal,0) * inverseModel).xyz); -} -`]),n=a([`precision highp float; -#define GLSLIFY 1 - -float beckmannDistribution(float x, float roughness) { - float NdotH = max(x, 0.0001); - float cos2Alpha = NdotH * NdotH; - float tan2Alpha = (cos2Alpha - 1.0) / cos2Alpha; - float roughness2 = roughness * roughness; - float denom = 3.141592653589793 * roughness2 * cos2Alpha * cos2Alpha; - return exp(tan2Alpha / roughness2) / denom; -} - -float beckmannSpecular( - vec3 lightDirection, - vec3 viewDirection, - vec3 surfaceNormal, - float roughness) { - return beckmannDistribution(dot(surfaceNormal, normalize(lightDirection + viewDirection)), roughness); -} - -bool outOfRange(float a, float b, float p) { - return ((p > max(a, b)) || - (p < min(a, b))); -} - -bool outOfRange(vec2 a, vec2 b, vec2 p) { - return (outOfRange(a.x, b.x, p.x) || - outOfRange(a.y, b.y, p.y)); -} - -bool outOfRange(vec3 a, vec3 b, vec3 p) { - return (outOfRange(a.x, b.x, p.x) || - outOfRange(a.y, b.y, p.y) || - outOfRange(a.z, b.z, p.z)); -} - -bool outOfRange(vec4 a, vec4 b, vec4 p) { - return outOfRange(a.xyz, b.xyz, p.xyz); -} - -uniform vec3 lowerBound, upperBound; -uniform float contourTint; -uniform vec4 contourColor; -uniform sampler2D colormap; -uniform vec3 clipBounds[2]; -uniform float roughness, fresnel, kambient, kdiffuse, kspecular, opacity; -uniform float vertexColor; - -varying float value, kill; -varying vec3 worldCoordinate; -varying vec3 lightDirection, eyeDirection, surfaceNormal; -varying vec4 vColor; - -void main() { - if ( - kill > 0.0 || - vColor.a == 0.0 || - outOfRange(clipBounds[0], clipBounds[1], worldCoordinate) - ) discard; - - vec3 N = normalize(surfaceNormal); - vec3 V = normalize(eyeDirection); - vec3 L = normalize(lightDirection); - - if(gl_FrontFacing) { - N = -N; - } - - float specular = max(beckmannSpecular(L, V, N, roughness), 0.); - float diffuse = min(kambient + kdiffuse * max(dot(N, L), 0.0), 1.0); - - //decide how to interpolate color — in vertex or in fragment - vec4 surfaceColor = - step(vertexColor, .5) * texture2D(colormap, vec2(value, value)) + - step(.5, vertexColor) * vColor; - - vec4 litColor = surfaceColor.a * vec4(diffuse * surfaceColor.rgb + kspecular * vec3(1,1,1) * specular, 1.0); - - gl_FragColor = mix(litColor, contourColor, contourTint) * opacity; -} -`]),s=a([`precision highp float; -#define GLSLIFY 1 - -attribute vec4 uv; -attribute float f; - -uniform vec3 objectOffset; -uniform mat3 permutation; -uniform mat4 model, view, projection; -uniform float height, zOffset; -uniform sampler2D colormap; - -varying float value, kill; -varying vec3 worldCoordinate; -varying vec2 planeCoordinate; -varying vec3 lightDirection, eyeDirection, surfaceNormal; -varying vec4 vColor; - -void main() { - vec3 dataCoordinate = permutation * vec3(uv.xy, height); - worldCoordinate = objectOffset + dataCoordinate; - mat4 objectOffsetTranslation = mat4(1.0) + mat4(vec4(0), vec4(0), vec4(0), vec4(objectOffset, 0)); - vec4 worldPosition = (model * objectOffsetTranslation) * vec4(dataCoordinate, 1.0); - - vec4 clipPosition = projection * (view * worldPosition); - clipPosition.z += zOffset; - - gl_Position = clipPosition; - value = f + objectOffset.z; - kill = -1.0; - planeCoordinate = uv.zw; - - vColor = texture2D(colormap, vec2(value, value)); - - //Don't do lighting for contours - surfaceNormal = vec3(1,0,0); - eyeDirection = vec3(0,1,0); - lightDirection = vec3(0,0,1); -} -`]),c=a([`precision highp float; -#define GLSLIFY 1 - -bool outOfRange(float a, float b, float p) { - return ((p > max(a, b)) || - (p < min(a, b))); -} - -bool outOfRange(vec2 a, vec2 b, vec2 p) { - return (outOfRange(a.x, b.x, p.x) || - outOfRange(a.y, b.y, p.y)); -} - -bool outOfRange(vec3 a, vec3 b, vec3 p) { - return (outOfRange(a.x, b.x, p.x) || - outOfRange(a.y, b.y, p.y) || - outOfRange(a.z, b.z, p.z)); -} - -bool outOfRange(vec4 a, vec4 b, vec4 p) { - return outOfRange(a.xyz, b.xyz, p.xyz); -} - -uniform vec2 shape; -uniform vec3 clipBounds[2]; -uniform float pickId; - -varying float value, kill; -varying vec3 worldCoordinate; -varying vec2 planeCoordinate; -varying vec3 surfaceNormal; - -vec2 splitFloat(float v) { - float vh = 255.0 * v; - float upper = floor(vh); - float lower = fract(vh); - return vec2(upper / 255.0, floor(lower * 16.0) / 16.0); -} - -void main() { - if ((kill > 0.0) || - (outOfRange(clipBounds[0], clipBounds[1], worldCoordinate))) discard; - - vec2 ux = splitFloat(planeCoordinate.x / shape.x); - vec2 uy = splitFloat(planeCoordinate.y / shape.y); - gl_FragColor = vec4(pickId, ux.x, uy.x, ux.y + (uy.y/16.0)); -} -`]);t.createShader=function(f){var p=i(f,o,n,null,[{name:"uv",type:"vec4"},{name:"f",type:"vec3"},{name:"normal",type:"vec3"}]);return p.attributes.uv.location=0,p.attributes.f.location=1,p.attributes.normal.location=2,p},t.createPickShader=function(f){var p=i(f,o,c,null,[{name:"uv",type:"vec4"},{name:"f",type:"vec3"},{name:"normal",type:"vec3"}]);return p.attributes.uv.location=0,p.attributes.f.location=1,p.attributes.normal.location=2,p},t.createContourShader=function(f){var p=i(f,s,n,null,[{name:"uv",type:"vec4"},{name:"f",type:"float"}]);return p.attributes.uv.location=0,p.attributes.f.location=1,p},t.createPickContourShader=function(f){var p=i(f,s,c,null,[{name:"uv",type:"vec4"},{name:"f",type:"float"}]);return p.attributes.uv.location=0,p.attributes.f.location=1,p}},9499:function(e,t,r){e.exports=se;var i=r(8828),a=r(2762),o=r(8116),n=r(7766),s=r(1888),c=r(6729),f=r(5298),p=r(9994),v=r(9618),T=r(3711),l=r(6760),m=r(7608),w=r(2478),S=r(6199),M=r(990),_=M.createShader,b=M.createContourShader,d=M.createPickShader,u=M.createPickContourShader,g=40,y=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],R=[[0,0],[0,1],[1,0],[1,1],[1,0],[0,1]],I=[[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 V=I[Q],re=(Q+1)%3,ae=(Q+2)%3;V[re+0]=1,V[ae+3]=1,V[Q+6]=1}})();function z(Q,V,re,ae,fe){this.position=Q,this.index=V,this.uv=re,this.level=ae,this.dataCoordinate=fe}var F=256;function B(Q,V,re,ae,fe,xe,Ae,Pe,Ce,je,at,tt,Je,Ze,Me){this.gl=Q,this.shape=V,this.bounds=re,this.objectOffset=Me,this.intensityBounds=[],this._shader=ae,this._pickShader=fe,this._coordinateBuffer=xe,this._vao=Ae,this._colorMap=Pe,this._contourShader=Ce,this._contourPickShader=je,this._contourBuffer=at,this._contourVAO=tt,this._contourOffsets=[[],[],[]],this._contourCounts=[[],[],[]],this._vertexCount=0,this._pickResult=new z([0,0,0],[0,0],[0,0],[0,0,0],[0,0,0]),this._dynamicBuffer=Je,this._dynamicVAO=Ze,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(s.mallocFloat(1024),[0,0]),v(s.mallocFloat(1024),[0,0]),v(s.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 O=B.prototype;O.genColormap=function(Q,V){var re=!1,ae=p([c({colormap:Q,nshades:F,format:"rgba"}).map(function(fe,xe){var Ae=V?P(xe/255,V):fe[3];return Ae<1&&(re=!0),[fe[0],fe[1],fe[2],255*Ae]})]);return f.divseq(ae,255),this.hasAlphaScale=re,ae},O.isTransparent=function(){return this.opacity<1||this.hasAlphaScale},O.isOpaque=function(){return!this.isTransparent()},O.pickSlots=1,O.setPickBase=function(Q){this.pickId=Q};function P(Q,V){if(!V||!V.length)return 1;for(var re=0;reQ&&re>0){var ae=(V[re][0]-Q)/(V[re][0]-V[re-1][0]);return V[re][1]*(1-ae)+ae*V[re-1][1]}}return 1}var N=[0,0,0],U={showSurface:!1,showContour:!1,projections:[y.slice(),y.slice(),y.slice()],clipBounds:[[[0,0,0],[0,0,0]],[[0,0,0],[0,0,0]],[[0,0,0],[0,0,0]]]};function X(Q,V){var re,ae,fe,xe=V.axes&&V.axes.lastCubeProps.axis||N,Ae=V.showSurface,Pe=V.showContour;for(re=0;re<3;++re)for(Ae=Ae||V.surfaceProject[re],ae=0;ae<3;++ae)Pe=Pe||V.contourProject[re][ae];for(re=0;re<3;++re){var Ce=U.projections[re];for(ae=0;ae<16;++ae)Ce[ae]=0;for(ae=0;ae<4;++ae)Ce[5*ae]=1;Ce[5*re]=0,Ce[12+re]=V.axesBounds[+(xe[re]>0)][re],l(Ce,Q.model,Ce);var je=U.clipBounds[re];for(fe=0;fe<2;++fe)for(ae=0;ae<3;++ae)je[fe][ae]=Q.clipBounds[fe][ae];je[0][re]=-1e8,je[1][re]=1e8}return U.showSurface=Ae,U.showContour=Pe,U}var te={model:y,view:y,projection:y,inverseModel:y.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},ue=y.slice(),ie=[1,0,0,0,1,0,0,0,1];function le(Q,V){Q=Q||{};var re=this.gl;re.disable(re.CULL_FACE),this._colorMap.bind(0);var ae=te;ae.model=Q.model||y,ae.view=Q.view||y,ae.projection=Q.projection||y,ae.lowerBound=[this.bounds[0][0],this.bounds[0][1],this.colorBounds[0]||this.bounds[0][2]],ae.upperBound=[this.bounds[1][0],this.bounds[1][1],this.colorBounds[1]||this.bounds[1][2]],ae.objectOffset=this.objectOffset,ae.contourColor=this.contourColor[0],ae.inverseModel=m(ae.inverseModel,ae.model);for(var fe=0;fe<2;++fe)for(var xe=ae.clipBounds[fe],Ae=0;Ae<3;++Ae)xe[Ae]=Math.min(Math.max(this.clipBounds[fe][Ae],-1e8),1e8);ae.kambient=this.ambientLight,ae.kdiffuse=this.diffuseLight,ae.kspecular=this.specularLight,ae.roughness=this.roughness,ae.fresnel=this.fresnel,ae.opacity=this.opacity,ae.height=0,ae.permutation=ie,ae.vertexColor=this.vertexColor;var Pe=ue;for(l(Pe,ae.view,ae.model),l(Pe,ae.projection,Pe),m(Pe,Pe),fe=0;fe<3;++fe)ae.eyePosition[fe]=Pe[12+fe]/Pe[15];var Ce=Pe[15];for(fe=0;fe<3;++fe)Ce+=this.lightPosition[fe]*Pe[4*fe+3];for(fe=0;fe<3;++fe){var je=Pe[12+fe];for(Ae=0;Ae<3;++Ae)je+=Pe[4*Ae+fe]*this.lightPosition[Ae];ae.lightPosition[fe]=je/Ce}var at=X(ae,this);if(at.showSurface){for(this._shader.bind(),this._shader.uniforms=ae,this._vao.bind(),this.showSurface&&this._vertexCount&&this._vao.draw(re.TRIANGLES,this._vertexCount),fe=0;fe<3;++fe)!this.surfaceProject[fe]||!this.vertexCount||(this._shader.uniforms.model=at.projections[fe],this._shader.uniforms.clipBounds=at.clipBounds[fe],this._vao.draw(re.TRIANGLES,this._vertexCount));this._vao.unbind()}if(at.showContour){var tt=this._contourShader;ae.kambient=1,ae.kdiffuse=0,ae.kspecular=0,ae.opacity=1,tt.bind(),tt.uniforms=ae;var Je=this._contourVAO;for(Je.bind(),fe=0;fe<3;++fe)for(tt.uniforms.permutation=I[fe],re.lineWidth(this.contourWidth[fe]*this.pixelRatio),Ae=0;Ae>4)/16)/255,fe=Math.floor(ae),xe=ae-fe,Ae=V[1]*(Q.value[1]+(Q.value[2]&15)/16)/255,Pe=Math.floor(Ae),Ce=Ae-Pe;fe+=1,Pe+=1;var je=re.position;je[0]=je[1]=je[2]=0;for(var at=0;at<2;++at)for(var tt=at?xe:1-xe,Je=0;Je<2;++Je)for(var Ze=Je?Ce:1-Ce,Me=fe+at,we=Pe+Je,he=tt*Ze,De=0;De<3;++De)je[De]+=this._field[De].get(Me,we)*he;for(var et=this._pickResult.level,nt=0;nt<3;++nt)if(et[nt]=w.le(this.contourLevels[nt],je[nt]),et[nt]<0)this.contourLevels[nt].length>0&&(et[nt]=0);else if(et[nt]Math.abs(Et-je[nt])&&(et[nt]+=1)}for(re.index[0]=xe<.5?fe:fe+1,re.index[1]=Ce<.5?Pe:Pe+1,re.uv[0]=ae/V[0],re.uv[1]=Ae/V[1],De=0;De<3;++De)re.dataCoordinate[De]=this._field[De].get(re.index[0],re.index[1]);return re},O.padField=function(Q,V){var re=V.shape.slice(),ae=Q.shape.slice();f.assign(Q.lo(1,1).hi(re[0],re[1]),V),f.assign(Q.lo(1).hi(re[0],1),V.hi(re[0],1)),f.assign(Q.lo(1,ae[1]-1).hi(re[0],1),V.lo(0,re[1]-1).hi(re[0],1)),f.assign(Q.lo(0,1).hi(1,re[1]),V.hi(1)),f.assign(Q.lo(ae[0]-1,1).hi(1,re[1]),V.lo(re[0]-1)),Q.set(0,0,V.get(0,0)),Q.set(0,ae[1]-1,V.get(0,re[1]-1)),Q.set(ae[0]-1,0,V.get(re[0]-1,0)),Q.set(ae[0]-1,ae[1]-1,V.get(re[0]-1,re[1]-1))};function J(Q,V){return Array.isArray(Q)?[V(Q[0]),V(Q[1]),V(Q[2])]:[V(Q),V(Q),V(Q)]}function ee(Q){return Array.isArray(Q)?Q.length===3?[Q[0],Q[1],Q[2],1]:[Q[0],Q[1],Q[2],Q[3]]:[0,0,0,1]}function Z(Q){if(Array.isArray(Q)){if(Array.isArray(Q))return[ee(Q[0]),ee(Q[1]),ee(Q[2])];var V=ee(Q);return[V.slice(),V.slice(),V.slice()]}}O.update=function(Q){Q=Q||{},this.objectOffset=Q.objectOffset||this.objectOffset,this.dirty=!0,"contourWidth"in Q&&(this.contourWidth=J(Q.contourWidth,Number)),"showContour"in Q&&(this.showContour=J(Q.showContour,Boolean)),"showSurface"in Q&&(this.showSurface=!!Q.showSurface),"contourTint"in Q&&(this.contourTint=J(Q.contourTint,Boolean)),"contourColor"in Q&&(this.contourColor=Z(Q.contourColor)),"contourProject"in Q&&(this.contourProject=J(Q.contourProject,function(an){return J(an,Boolean)})),"surfaceProject"in Q&&(this.surfaceProject=Q.surfaceProject),"dynamicColor"in Q&&(this.dynamicColor=Z(Q.dynamicColor)),"dynamicTint"in Q&&(this.dynamicTint=J(Q.dynamicTint,Number)),"dynamicWidth"in Q&&(this.dynamicWidth=J(Q.dynamicWidth,Number)),"opacity"in Q&&(this.opacity=Q.opacity),"opacityscale"in Q&&(this.opacityscale=Q.opacityscale),"colorBounds"in Q&&(this.colorBounds=Q.colorBounds),"vertexColor"in Q&&(this.vertexColor=Q.vertexColor?1:0),"colormap"in Q&&this._colorMap.setPixels(this.genColormap(Q.colormap,this.opacityscale));var V=Q.field||Q.coords&&Q.coords[2]||null,re=!1;if(V||(this._field[2].shape[0]||this._field[2].shape[2]?V=this._field[2].lo(1,1).hi(this._field[2].shape[0]-2,this._field[2].shape[1]-2):V=this._field[2].hi(0,0)),"field"in Q||"coords"in Q){var ae=(V.shape[0]+2)*(V.shape[1]+2);ae>this._field[2].data.length&&(s.freeFloat(this._field[2].data),this._field[2].data=s.mallocFloat(i.nextPow2(ae))),this._field[2]=v(this._field[2].data,[V.shape[0]+2,V.shape[1]+2]),this.padField(this._field[2],V),this.shape=V.shape.slice();for(var fe=this.shape,xe=0;xe<2;++xe)this._field[2].size>this._field[xe].data.length&&(s.freeFloat(this._field[xe].data),this._field[xe].data=s.mallocFloat(this._field[2].size)),this._field[xe]=v(this._field[xe].data,[fe[0]+2,fe[1]+2]);if(Q.coords){var Ae=Q.coords;if(!Array.isArray(Ae)||Ae.length!==3)throw new Error("gl-surface: invalid coordinates for x/y");for(xe=0;xe<2;++xe){var Pe=Ae[xe];for(Je=0;Je<2;++Je)if(Pe.shape[Je]!==fe[Je])throw new Error("gl-surface: coords have incorrect shape");this.padField(this._field[xe],Pe)}}else if(Q.ticks){var Ce=Q.ticks;if(!Array.isArray(Ce)||Ce.length!==2)throw new Error("gl-surface: invalid ticks");for(xe=0;xe<2;++xe){var je=Ce[xe];if((Array.isArray(je)||je.length)&&(je=v(je)),je.shape[0]!==fe[xe])throw new Error("gl-surface: invalid tick length");var at=v(je.data,fe);at.stride[xe]=je.stride[0],at.stride[xe^1]=0,this.padField(this._field[xe],at)}}else{for(xe=0;xe<2;++xe){var tt=[0,0];tt[xe]=1,this._field[xe]=v(this._field[xe].data,[fe[0]+2,fe[1]+2],tt,0)}this._field[0].set(0,0,0);for(var Je=0;Je0){for(var Ya=0;Ya<5;++Ya)rr.pop();Oe-=1}continue e}}}Ia.push(Oe)}this._contourOffsets[Jt]=ia,this._contourCounts[Jt]=Ia}var Ka=s.mallocFloat(rr.length);for(xe=0;xez||R<0||R>z)throw new Error("gl-texture2d: Invalid texture size");return g._shape=[y,R],g.bind(),I.texImage2D(I.TEXTURE_2D,0,g.format,y,R,0,g.format,g.type,null),g._mipLevels=[0],g}function l(g,y,R,I,z,F){this.gl=g,this.handle=y,this.format=z,this.type=F,this._shape=[R,I],this._mipLevels=[0],this._magFilter=g.NEAREST,this._minFilter=g.NEAREST,this._wrapS=g.CLAMP_TO_EDGE,this._wrapT=g.CLAMP_TO_EDGE,this._anisoSamples=1;var B=this,O=[this._wrapS,this._wrapT];Object.defineProperties(O,[{get:function(){return B._wrapS},set:function(N){return B.wrapS=N}},{get:function(){return B._wrapT},set:function(N){return B.wrapT=N}}]),this._wrapVector=O;var P=[this._shape[0],this._shape[1]];Object.defineProperties(P,[{get:function(){return B._shape[0]},set:function(N){return B.width=N}},{get:function(){return B._shape[1]},set:function(N){return B.height=N}}]),this._shapeVector=P}var m=l.prototype;Object.defineProperties(m,{minFilter:{get:function(){return this._minFilter},set:function(g){this.bind();var y=this.gl;if(this.type===y.FLOAT&&n.indexOf(g)>=0&&(y.getExtension("OES_texture_float_linear")||(g=y.NEAREST)),s.indexOf(g)<0)throw new Error("gl-texture2d: Unknown filter mode "+g);return y.texParameteri(y.TEXTURE_2D,y.TEXTURE_MIN_FILTER,g),this._minFilter=g}},magFilter:{get:function(){return this._magFilter},set:function(g){this.bind();var y=this.gl;if(this.type===y.FLOAT&&n.indexOf(g)>=0&&(y.getExtension("OES_texture_float_linear")||(g=y.NEAREST)),s.indexOf(g)<0)throw new Error("gl-texture2d: Unknown filter mode "+g);return y.texParameteri(y.TEXTURE_2D,y.TEXTURE_MAG_FILTER,g),this._magFilter=g}},mipSamples:{get:function(){return this._anisoSamples},set:function(g){var y=this._anisoSamples;if(this._anisoSamples=Math.max(g,1)|0,y!==this._anisoSamples){var R=this.gl.getExtension("EXT_texture_filter_anisotropic");R&&this.gl.texParameterf(this.gl.TEXTURE_2D,R.TEXTURE_MAX_ANISOTROPY_EXT,this._anisoSamples)}return this._anisoSamples}},wrapS:{get:function(){return this._wrapS},set:function(g){if(this.bind(),c.indexOf(g)<0)throw new Error("gl-texture2d: Unknown wrap mode "+g);return this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_S,g),this._wrapS=g}},wrapT:{get:function(){return this._wrapT},set:function(g){if(this.bind(),c.indexOf(g)<0)throw new Error("gl-texture2d: Unknown wrap mode "+g);return this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_T,g),this._wrapT=g}},wrap:{get:function(){return this._wrapVector},set:function(g){if(Array.isArray(g)||(g=[g,g]),g.length!==2)throw new Error("gl-texture2d: Must specify wrap mode for rows and columns");for(var y=0;y<2;++y)if(c.indexOf(g[y])<0)throw new Error("gl-texture2d: Unknown wrap mode "+g);this._wrapS=g[0],this._wrapT=g[1];var R=this.gl;return this.bind(),R.texParameteri(R.TEXTURE_2D,R.TEXTURE_WRAP_S,this._wrapS),R.texParameteri(R.TEXTURE_2D,R.TEXTURE_WRAP_T,this._wrapT),g}},shape:{get:function(){return this._shapeVector},set:function(g){if(!Array.isArray(g))g=[g|0,g|0];else if(g.length!==2)throw new Error("gl-texture2d: Invalid texture shape");return T(this,g[0]|0,g[1]|0),[g[0]|0,g[1]|0]}},width:{get:function(){return this._shape[0]},set:function(g){return g=g|0,T(this,g,this._shape[1]),g}},height:{get:function(){return this._shape[1]},set:function(g){return g=g|0,T(this,this._shape[0],g),g}}}),m.bind=function(g){var y=this.gl;return g!==void 0&&y.activeTexture(y.TEXTURE0+(g|0)),y.bindTexture(y.TEXTURE_2D,this.handle),g!==void 0?g|0:y.getParameter(y.ACTIVE_TEXTURE)-y.TEXTURE0},m.dispose=function(){this.gl.deleteTexture(this.handle)},m.generateMipmap=function(){this.bind(),this.gl.generateMipmap(this.gl.TEXTURE_2D);for(var g=Math.min(this._shape[0],this._shape[1]),y=0;g>0;++y,g>>>=1)this._mipLevels.indexOf(y)<0&&this._mipLevels.push(y)},m.setPixels=function(g,y,R,I){var z=this.gl;this.bind(),Array.isArray(y)?(I=R,R=y[1]|0,y=y[0]|0):(y=y||0,R=R||0),I=I||0;var F=p(g)?g:g.raw;if(F){var B=this._mipLevels.indexOf(I)<0;B?(z.texImage2D(z.TEXTURE_2D,0,this.format,this.format,this.type,F),this._mipLevels.push(I)):z.texSubImage2D(z.TEXTURE_2D,I,y,R,this.format,this.type,F)}else if(g.shape&&g.stride&&g.data){if(g.shape.length<2||y+g.shape[1]>this._shape[1]>>>I||R+g.shape[0]>this._shape[0]>>>I||y<0||R<0)throw new Error("gl-texture2d: Texture dimensions are out of bounds");S(z,y,R,I,this.format,this.type,this._mipLevels,g)}else throw new Error("gl-texture2d: Unsupported data type")};function w(g,y){return g.length===3?y[2]===1&&y[1]===g[0]*g[2]&&y[0]===g[2]:y[0]===1&&y[1]===g[0]}function S(g,y,R,I,z,F,B,O){var P=O.dtype,N=O.shape.slice();if(N.length<2||N.length>3)throw new Error("gl-texture2d: Invalid ndarray, must be 2d or 3d");var U=0,X=0,te=w(N,O.stride.slice());if(P==="float32"?U=g.FLOAT:P==="float64"?(U=g.FLOAT,te=!1,P="float32"):P==="uint8"?U=g.UNSIGNED_BYTE:(U=g.UNSIGNED_BYTE,te=!1,P="uint8"),N.length===2)X=g.LUMINANCE,N=[N[0],N[1],1],O=i(O.data,N,[O.stride[0],O.stride[1],1],O.offset);else if(N.length===3){if(N[2]===1)X=g.ALPHA;else if(N[2]===2)X=g.LUMINANCE_ALPHA;else if(N[2]===3)X=g.RGB;else if(N[2]===4)X=g.RGBA;else throw new Error("gl-texture2d: Invalid shape for pixel coords");N[2]}else throw new Error("gl-texture2d: Invalid shape for texture");if((X===g.LUMINANCE||X===g.ALPHA)&&(z===g.LUMINANCE||z===g.ALPHA)&&(X=z),X!==z)throw new Error("gl-texture2d: Incompatible texture format for setPixels");var ue=O.size,ie=B.indexOf(I)<0;if(ie&&B.push(I),U===F&&te)O.offset===0&&O.data.length===ue?ie?g.texImage2D(g.TEXTURE_2D,I,z,N[0],N[1],0,z,F,O.data):g.texSubImage2D(g.TEXTURE_2D,I,y,R,N[0],N[1],z,F,O.data):ie?g.texImage2D(g.TEXTURE_2D,I,z,N[0],N[1],0,z,F,O.data.subarray(O.offset,O.offset+ue)):g.texSubImage2D(g.TEXTURE_2D,I,y,R,N[0],N[1],z,F,O.data.subarray(O.offset,O.offset+ue));else{var le;F===g.FLOAT?le=o.mallocFloat32(ue):le=o.mallocUint8(ue);var q=i(le,N,[N[2],N[2]*N[0],1]);U===g.FLOAT&&F===g.UNSIGNED_BYTE?v(q,O):a.assign(q,O),ie?g.texImage2D(g.TEXTURE_2D,I,z,N[0],N[1],0,z,F,le.subarray(0,ue)):g.texSubImage2D(g.TEXTURE_2D,I,y,R,N[0],N[1],z,F,le.subarray(0,ue)),F===g.FLOAT?o.freeFloat32(le):o.freeUint8(le)}}function M(g){var y=g.createTexture();return g.bindTexture(g.TEXTURE_2D,y),g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MIN_FILTER,g.NEAREST),g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MAG_FILTER,g.NEAREST),g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_S,g.CLAMP_TO_EDGE),g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_T,g.CLAMP_TO_EDGE),y}function _(g,y,R,I,z){var F=g.getParameter(g.MAX_TEXTURE_SIZE);if(y<0||y>F||R<0||R>F)throw new Error("gl-texture2d: Invalid texture shape");if(z===g.FLOAT&&!g.getExtension("OES_texture_float"))throw new Error("gl-texture2d: Floating point textures not supported on this platform");var B=M(g);return g.texImage2D(g.TEXTURE_2D,0,I,y,R,0,I,z,null),new l(g,B,y,R,I,z)}function b(g,y,R,I,z,F){var B=M(g);return g.texImage2D(g.TEXTURE_2D,0,z,z,F,y),new l(g,B,R,I,z,F)}function d(g,y){var R=y.dtype,I=y.shape.slice(),z=g.getParameter(g.MAX_TEXTURE_SIZE);if(I[0]<0||I[0]>z||I[1]<0||I[1]>z)throw new Error("gl-texture2d: Invalid texture size");var F=w(I,y.stride.slice()),B=0;R==="float32"?B=g.FLOAT:R==="float64"?(B=g.FLOAT,F=!1,R="float32"):R==="uint8"?B=g.UNSIGNED_BYTE:(B=g.UNSIGNED_BYTE,F=!1,R="uint8");var O=0;if(I.length===2)O=g.LUMINANCE,I=[I[0],I[1],1],y=i(y.data,I,[y.stride[0],y.stride[1],1],y.offset);else if(I.length===3)if(I[2]===1)O=g.ALPHA;else if(I[2]===2)O=g.LUMINANCE_ALPHA;else if(I[2]===3)O=g.RGB;else if(I[2]===4)O=g.RGBA;else throw new Error("gl-texture2d: Invalid shape for pixel coords");else throw new Error("gl-texture2d: Invalid shape for texture");B===g.FLOAT&&!g.getExtension("OES_texture_float")&&(B=g.UNSIGNED_BYTE,F=!1);var P,N,U=y.size;if(F)y.offset===0&&y.data.length===U?P=y.data:P=y.data.subarray(y.offset,y.offset+U);else{var X=[I[2],I[2]*I[0],1];N=o.malloc(U,R);var te=i(N,I,X,0);(R==="float32"||R==="float64")&&B===g.UNSIGNED_BYTE?v(te,y):a.assign(te,y),P=N.subarray(0,U)}var ue=M(g);return g.texImage2D(g.TEXTURE_2D,0,O,I[0],I[1],0,O,B,P),F||o.free(N),new l(g,ue,I[0],I[1],O,B)}function u(g){if(arguments.length<=1)throw new Error("gl-texture2d: Missing arguments for texture2d constructor");if(n||f(g),typeof arguments[1]=="number")return _(g,arguments[1],arguments[2],arguments[3]||g.RGBA,arguments[4]||g.UNSIGNED_BYTE);if(Array.isArray(arguments[1]))return _(g,arguments[1][0]|0,arguments[1][1]|0,arguments[2]||g.RGBA,arguments[3]||g.UNSIGNED_BYTE);if(typeof arguments[1]=="object"){var y=arguments[1],R=p(y)?y:y.raw;if(R)return b(g,R,y.width|0,y.height|0,arguments[2]||g.RGBA,arguments[3]||g.UNSIGNED_BYTE);if(y.shape&&y.data&&y.stride)return d(g,y)}throw new Error("gl-texture2d: Invalid arguments for texture2d constructor")}},1433:function(e){function t(r,i,a){i?i.bind():r.bindBuffer(r.ELEMENT_ARRAY_BUFFER,null);var o=r.getParameter(r.MAX_VERTEX_ATTRIBS)|0;if(a){if(a.length>o)throw new Error("gl-vao: Too many vertex attributes");for(var n=0;n1?0:Math.acos(v)}},9226:function(e){e.exports=t;function t(r,i){return r[0]=Math.ceil(i[0]),r[1]=Math.ceil(i[1]),r[2]=Math.ceil(i[2]),r}},3126:function(e){e.exports=t;function t(r){var i=new Float32Array(3);return i[0]=r[0],i[1]=r[1],i[2]=r[2],i}},3990:function(e){e.exports=t;function t(r,i){return r[0]=i[0],r[1]=i[1],r[2]=i[2],r}},1091:function(e){e.exports=t;function t(){var r=new Float32Array(3);return r[0]=0,r[1]=0,r[2]=0,r}},5911:function(e){e.exports=t;function t(r,i,a){var o=i[0],n=i[1],s=i[2],c=a[0],f=a[1],p=a[2];return r[0]=n*p-s*f,r[1]=s*c-o*p,r[2]=o*f-n*c,r}},5455:function(e,t,r){e.exports=r(7056)},7056:function(e){e.exports=t;function t(r,i){var a=i[0]-r[0],o=i[1]-r[1],n=i[2]-r[2];return Math.sqrt(a*a+o*o+n*n)}},4008:function(e,t,r){e.exports=r(6690)},6690:function(e){e.exports=t;function t(r,i,a){return r[0]=i[0]/a[0],r[1]=i[1]/a[1],r[2]=i[2]/a[2],r}},244:function(e){e.exports=t;function t(r,i){return r[0]*i[0]+r[1]*i[1]+r[2]*i[2]}},2613:function(e){e.exports=1e-6},9922:function(e,t,r){e.exports=a;var i=r(2613);function a(o,n){var s=o[0],c=o[1],f=o[2],p=n[0],v=n[1],T=n[2];return Math.abs(s-p)<=i*Math.max(1,Math.abs(s),Math.abs(p))&&Math.abs(c-v)<=i*Math.max(1,Math.abs(c),Math.abs(v))&&Math.abs(f-T)<=i*Math.max(1,Math.abs(f),Math.abs(T))}},9265:function(e){e.exports=t;function t(r,i){return r[0]===i[0]&&r[1]===i[1]&&r[2]===i[2]}},2681:function(e){e.exports=t;function t(r,i){return r[0]=Math.floor(i[0]),r[1]=Math.floor(i[1]),r[2]=Math.floor(i[2]),r}},5137:function(e,t,r){e.exports=a;var i=r(1091)();function a(o,n,s,c,f,p){var v,T;for(n||(n=3),s||(s=0),c?T=Math.min(c*n+s,o.length):T=o.length,v=s;v0&&(s=1/Math.sqrt(s),r[0]=i[0]*s,r[1]=i[1]*s,r[2]=i[2]*s),r}},7636:function(e){e.exports=t;function t(r,i){i=i||1;var a=Math.random()*2*Math.PI,o=Math.random()*2-1,n=Math.sqrt(1-o*o)*i;return r[0]=Math.cos(a)*n,r[1]=Math.sin(a)*n,r[2]=o*i,r}},6894:function(e){e.exports=t;function t(r,i,a,o){var n=a[1],s=a[2],c=i[1]-n,f=i[2]-s,p=Math.sin(o),v=Math.cos(o);return r[0]=i[0],r[1]=n+c*v-f*p,r[2]=s+c*p+f*v,r}},109:function(e){e.exports=t;function t(r,i,a,o){var n=a[0],s=a[2],c=i[0]-n,f=i[2]-s,p=Math.sin(o),v=Math.cos(o);return r[0]=n+f*p+c*v,r[1]=i[1],r[2]=s+f*v-c*p,r}},8692:function(e){e.exports=t;function t(r,i,a,o){var n=a[0],s=a[1],c=i[0]-n,f=i[1]-s,p=Math.sin(o),v=Math.cos(o);return r[0]=n+c*v-f*p,r[1]=s+c*p+f*v,r[2]=i[2],r}},2447:function(e){e.exports=t;function t(r,i){return r[0]=Math.round(i[0]),r[1]=Math.round(i[1]),r[2]=Math.round(i[2]),r}},6621:function(e){e.exports=t;function t(r,i,a){return r[0]=i[0]*a,r[1]=i[1]*a,r[2]=i[2]*a,r}},8489:function(e){e.exports=t;function t(r,i,a,o){return r[0]=i[0]+a[0]*o,r[1]=i[1]+a[1]*o,r[2]=i[2]+a[2]*o,r}},1463:function(e){e.exports=t;function t(r,i,a,o){return r[0]=i,r[1]=a,r[2]=o,r}},6141:function(e,t,r){e.exports=r(2953)},5486:function(e,t,r){e.exports=r(3066)},2953:function(e){e.exports=t;function t(r,i){var a=i[0]-r[0],o=i[1]-r[1],n=i[2]-r[2];return a*a+o*o+n*n}},3066:function(e){e.exports=t;function t(r){var i=r[0],a=r[1],o=r[2];return i*i+a*a+o*o}},2229:function(e,t,r){e.exports=r(6843)},6843:function(e){e.exports=t;function t(r,i,a){return r[0]=i[0]-a[0],r[1]=i[1]-a[1],r[2]=i[2]-a[2],r}},492:function(e){e.exports=t;function t(r,i,a){var o=i[0],n=i[1],s=i[2];return r[0]=o*a[0]+n*a[3]+s*a[6],r[1]=o*a[1]+n*a[4]+s*a[7],r[2]=o*a[2]+n*a[5]+s*a[8],r}},5673:function(e){e.exports=t;function t(r,i,a){var o=i[0],n=i[1],s=i[2],c=a[3]*o+a[7]*n+a[11]*s+a[15];return c=c||1,r[0]=(a[0]*o+a[4]*n+a[8]*s+a[12])/c,r[1]=(a[1]*o+a[5]*n+a[9]*s+a[13])/c,r[2]=(a[2]*o+a[6]*n+a[10]*s+a[14])/c,r}},264:function(e){e.exports=t;function t(r,i,a){var o=i[0],n=i[1],s=i[2],c=a[0],f=a[1],p=a[2],v=a[3],T=v*o+f*s-p*n,l=v*n+p*o-c*s,m=v*s+c*n-f*o,w=-c*o-f*n-p*s;return r[0]=T*v+w*-c+l*-p-m*-f,r[1]=l*v+w*-f+m*-c-T*-p,r[2]=m*v+w*-p+T*-f-l*-c,r}},4361:function(e){e.exports=t;function t(r,i,a){return r[0]=i[0]+a[0],r[1]=i[1]+a[1],r[2]=i[2]+a[2],r[3]=i[3]+a[3],r}},2335:function(e){e.exports=t;function t(r){var i=new Float32Array(4);return i[0]=r[0],i[1]=r[1],i[2]=r[2],i[3]=r[3],i}},2933:function(e){e.exports=t;function t(r,i){return r[0]=i[0],r[1]=i[1],r[2]=i[2],r[3]=i[3],r}},7536:function(e){e.exports=t;function t(){var r=new Float32Array(4);return r[0]=0,r[1]=0,r[2]=0,r[3]=0,r}},4691:function(e){e.exports=t;function t(r,i){var a=i[0]-r[0],o=i[1]-r[1],n=i[2]-r[2],s=i[3]-r[3];return Math.sqrt(a*a+o*o+n*n+s*s)}},1373:function(e){e.exports=t;function t(r,i,a){return r[0]=i[0]/a[0],r[1]=i[1]/a[1],r[2]=i[2]/a[2],r[3]=i[3]/a[3],r}},3750:function(e){e.exports=t;function t(r,i){return r[0]*i[0]+r[1]*i[1]+r[2]*i[2]+r[3]*i[3]}},3390:function(e){e.exports=t;function t(r,i,a,o){var n=new Float32Array(4);return n[0]=r,n[1]=i,n[2]=a,n[3]=o,n}},9970:function(e,t,r){e.exports={create:r(7536),clone:r(2335),fromValues:r(3390),copy:r(2933),set:r(4578),add:r(4361),subtract:r(6860),multiply:r(3576),divide:r(1373),min:r(2334),max:r(160),scale:r(9288),scaleAndAdd:r(4844),distance:r(4691),squaredDistance:r(7960),length:r(6808),squaredLength:r(483),negate:r(1498),inverse:r(4494),normalize:r(5177),dot:r(3750),lerp:r(2573),random:r(9131),transformMat4:r(5352),transformQuat:r(4041)}},4494:function(e){e.exports=t;function t(r,i){return r[0]=1/i[0],r[1]=1/i[1],r[2]=1/i[2],r[3]=1/i[3],r}},6808:function(e){e.exports=t;function t(r){var i=r[0],a=r[1],o=r[2],n=r[3];return Math.sqrt(i*i+a*a+o*o+n*n)}},2573:function(e){e.exports=t;function t(r,i,a,o){var n=i[0],s=i[1],c=i[2],f=i[3];return r[0]=n+o*(a[0]-n),r[1]=s+o*(a[1]-s),r[2]=c+o*(a[2]-c),r[3]=f+o*(a[3]-f),r}},160:function(e){e.exports=t;function t(r,i,a){return r[0]=Math.max(i[0],a[0]),r[1]=Math.max(i[1],a[1]),r[2]=Math.max(i[2],a[2]),r[3]=Math.max(i[3],a[3]),r}},2334:function(e){e.exports=t;function t(r,i,a){return r[0]=Math.min(i[0],a[0]),r[1]=Math.min(i[1],a[1]),r[2]=Math.min(i[2],a[2]),r[3]=Math.min(i[3],a[3]),r}},3576:function(e){e.exports=t;function t(r,i,a){return r[0]=i[0]*a[0],r[1]=i[1]*a[1],r[2]=i[2]*a[2],r[3]=i[3]*a[3],r}},1498:function(e){e.exports=t;function t(r,i){return r[0]=-i[0],r[1]=-i[1],r[2]=-i[2],r[3]=-i[3],r}},5177:function(e){e.exports=t;function t(r,i){var a=i[0],o=i[1],n=i[2],s=i[3],c=a*a+o*o+n*n+s*s;return c>0&&(c=1/Math.sqrt(c),r[0]=a*c,r[1]=o*c,r[2]=n*c,r[3]=s*c),r}},9131:function(e,t,r){var i=r(5177),a=r(9288);e.exports=o;function o(n,s){return s=s||1,n[0]=Math.random(),n[1]=Math.random(),n[2]=Math.random(),n[3]=Math.random(),i(n,n),a(n,n,s),n}},9288:function(e){e.exports=t;function t(r,i,a){return r[0]=i[0]*a,r[1]=i[1]*a,r[2]=i[2]*a,r[3]=i[3]*a,r}},4844:function(e){e.exports=t;function t(r,i,a,o){return r[0]=i[0]+a[0]*o,r[1]=i[1]+a[1]*o,r[2]=i[2]+a[2]*o,r[3]=i[3]+a[3]*o,r}},4578:function(e){e.exports=t;function t(r,i,a,o,n){return r[0]=i,r[1]=a,r[2]=o,r[3]=n,r}},7960:function(e){e.exports=t;function t(r,i){var a=i[0]-r[0],o=i[1]-r[1],n=i[2]-r[2],s=i[3]-r[3];return a*a+o*o+n*n+s*s}},483:function(e){e.exports=t;function t(r){var i=r[0],a=r[1],o=r[2],n=r[3];return i*i+a*a+o*o+n*n}},6860:function(e){e.exports=t;function t(r,i,a){return r[0]=i[0]-a[0],r[1]=i[1]-a[1],r[2]=i[2]-a[2],r[3]=i[3]-a[3],r}},5352:function(e){e.exports=t;function t(r,i,a){var o=i[0],n=i[1],s=i[2],c=i[3];return r[0]=a[0]*o+a[4]*n+a[8]*s+a[12]*c,r[1]=a[1]*o+a[5]*n+a[9]*s+a[13]*c,r[2]=a[2]*o+a[6]*n+a[10]*s+a[14]*c,r[3]=a[3]*o+a[7]*n+a[11]*s+a[15]*c,r}},4041:function(e){e.exports=t;function t(r,i,a){var o=i[0],n=i[1],s=i[2],c=a[0],f=a[1],p=a[2],v=a[3],T=v*o+f*s-p*n,l=v*n+p*o-c*s,m=v*s+c*n-f*o,w=-c*o-f*n-p*s;return r[0]=T*v+w*-c+l*-p-m*-f,r[1]=l*v+w*-f+m*-c-T*-p,r[2]=m*v+w*-p+T*-f-l*-c,r[3]=i[3],r}},1848:function(e,t,r){var i=r(4905),a=r(6468);e.exports=o;function o(n){for(var s=Array.isArray(n)?n:i(n),c=0;c0)continue;De=Me.slice(0,1).join("")}return Q(De),te+=De.length,P=P.slice(De.length),P.length}while(!0)}function at(){return/[^a-fA-F0-9]/.test(B)?(Q(P.join("")),F=c,I):(P.push(B),O=B,I+1)}function tt(){return B==="."||/[eE]/.test(B)?(P.push(B),F=w,O=B,I+1):B==="x"&&P.length===1&&P[0]==="0"?(F=u,P.push(B),O=B,I+1):/[^\d]/.test(B)?(Q(P.join("")),F=c,I):(P.push(B),O=B,I+1)}function Je(){return B==="f"&&(P.push(B),O=B,I+=1),/[eE]/.test(B)||(B==="-"||B==="+")&&/[eE]/.test(O)?(P.push(B),O=B,I+1):/[^\d]/.test(B)?(Q(P.join("")),F=c,I):(P.push(B),O=B,I+1)}function Ze(){if(/[^\d\w_]/.test(B)){var Me=P.join("");return se[Me]?F=_:Z[Me]?F=M:F=S,Q(P.join("")),F=c,I}return P.push(B),O=B,I+1}}},3508:function(e,t,r){var i=r(6852);i=i.slice().filter(function(a){return!/^(gl\_|texture)/.test(a)}),e.exports=i.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:function(e){e.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:function(e,t,r){var i=r(620);e.exports=i.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:function(e){e.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:function(e){e.exports=["<<=",">>=","++","--","<<",">>","<=",">=","==","!=","&&","||","+=","-=","*=","/=","%=","&=","^^","^=","|=","(",")","[","]",".","!","~","*","/","%","+","-","<",">","&","^","|","?",":","=",",",";","{","}"]},4905:function(e,t,r){var i=r(5874);e.exports=a;function a(o,n){var s=i(n),c=[];return c=c.concat(s(o)),c=c.concat(s(null)),c}},3236:function(e){e.exports=function(t){typeof t=="string"&&(t=[t]);for(var r=[].slice.call(arguments,1),i=[],a=0;a>1,T=-7,l=a?n-1:0,m=a?-1:1,w=r[i+l];for(l+=m,s=w&(1<<-T)-1,w>>=-T,T+=f;T>0;s=s*256+r[i+l],l+=m,T-=8);for(c=s&(1<<-T)-1,s>>=-T,T+=o;T>0;c=c*256+r[i+l],l+=m,T-=8);if(s===0)s=1-v;else{if(s===p)return c?NaN:(w?-1:1)*(1/0);c=c+Math.pow(2,o),s=s-v}return(w?-1:1)*c*Math.pow(2,s-o)},t.write=function(r,i,a,o,n,s){var c,f,p,v=s*8-n-1,T=(1<>1,m=n===23?Math.pow(2,-24)-Math.pow(2,-77):0,w=o?0:s-1,S=o?1:-1,M=i<0||i===0&&1/i<0?1:0;for(i=Math.abs(i),isNaN(i)||i===1/0?(f=isNaN(i)?1:0,c=T):(c=Math.floor(Math.log(i)/Math.LN2),i*(p=Math.pow(2,-c))<1&&(c--,p*=2),c+l>=1?i+=m/p:i+=m*Math.pow(2,1-l),i*p>=2&&(c++,p/=2),c+l>=T?(f=0,c=T):c+l>=1?(f=(i*p-1)*Math.pow(2,n),c=c+l):(f=i*Math.pow(2,l-1)*Math.pow(2,n),c=0));n>=8;r[a+w]=f&255,w+=S,f/=256,n-=8);for(c=c<0;r[a+w]=c&255,w+=S,c/=256,v-=8);r[a+w-S]|=M*128}},8954:function(e,t,r){e.exports=l;var i=r(3250),a=r(6803).Fw;function o(m,w,S){this.vertices=m,this.adjacent=w,this.boundary=S,this.lastVisited=-1}o.prototype.flip=function(){var m=this.vertices[0];this.vertices[0]=this.vertices[1],this.vertices[1]=m;var w=this.adjacent[0];this.adjacent[0]=this.adjacent[1],this.adjacent[1]=w};function n(m,w,S){this.vertices=m,this.cell=w,this.index=S}function s(m,w){return a(m.vertices,w.vertices)}function c(m){return function(){var w=this.tuple;return m.apply(this,w)}}function f(m){var w=i[m+1];return w||(w=i),c(w)}var p=[];function v(m,w,S){this.dimension=m,this.vertices=w,this.simplices=S,this.interior=S.filter(function(b){return!b.boundary}),this.tuple=new Array(m+1);for(var M=0;M<=m;++M)this.tuple[M]=this.vertices[M];var _=p[m];_||(_=p[m]=f(m)),this.orient=_}var T=v.prototype;T.handleBoundaryDegeneracy=function(m,w){var S=this.dimension,M=this.vertices.length-1,_=this.tuple,b=this.vertices,d=[m];for(m.lastVisited=-M;d.length>0;){m=d.pop();for(var u=m.adjacent,g=0;g<=S;++g){var y=u[g];if(!(!y.boundary||y.lastVisited<=-M)){for(var R=y.vertices,I=0;I<=S;++I){var z=R[I];z<0?_[I]=w:_[I]=b[z]}var F=this.orient();if(F>0)return y;y.lastVisited=-M,F===0&&d.push(y)}}}return null},T.walk=function(m,w){var S=this.vertices.length-1,M=this.dimension,_=this.vertices,b=this.tuple,d=w?this.interior.length*Math.random()|0:this.interior.length-1,u=this.interior[d];e:for(;!u.boundary;){for(var g=u.vertices,y=u.adjacent,R=0;R<=M;++R)b[R]=_[g[R]];u.lastVisited=S;for(var R=0;R<=M;++R){var I=y[R];if(!(I.lastVisited>=S)){var z=b[R];b[R]=m;var F=this.orient();if(b[R]=z,F<0){u=I;continue e}else I.boundary?I.lastVisited=-S:I.lastVisited=S}}return}return u},T.addPeaks=function(m,w){var S=this.vertices.length-1,M=this.dimension,_=this.vertices,b=this.tuple,d=this.interior,u=this.simplices,g=[w];w.lastVisited=S,w.vertices[w.vertices.indexOf(-1)]=S,w.boundary=!1,d.push(w);for(var y=[];g.length>0;){var w=g.pop(),R=w.vertices,I=w.adjacent,z=R.indexOf(S);if(!(z<0)){for(var F=0;F<=M;++F)if(F!==z){var B=I[F];if(!(!B.boundary||B.lastVisited>=S)){var O=B.vertices;if(B.lastVisited!==-S){for(var P=0,N=0;N<=M;++N)O[N]<0?(P=N,b[N]=m):b[N]=_[O[N]];var U=this.orient();if(U>0){O[P]=S,B.boundary=!1,d.push(B),g.push(B),B.lastVisited=S;continue}else B.lastVisited=-S}var X=B.adjacent,te=R.slice(),ue=I.slice(),ie=new o(te,ue,!0);u.push(ie);var le=X.indexOf(w);if(!(le<0)){X[le]=ie,ue[z]=B,te[F]=-1,ue[F]=w,I[F]=ie,ie.flip();for(var N=0;N<=M;++N){var q=te[N];if(!(q<0||q===S)){for(var J=new Array(M-1),ee=0,Z=0;Z<=M;++Z){var se=te[Z];se<0||Z===N||(J[ee++]=se)}y.push(new n(J,ie,N))}}}}}}}y.sort(s);for(var F=0;F+1=0?d[g++]=u[R]:y=R&1;if(y===(m&1)){var I=d[0];d[0]=d[1],d[1]=I}w.push(d)}}return w};function l(m,w){var S=m.length;if(S===0)throw new Error("Must have at least d+1 points");var M=m[0].length;if(S<=M)throw new Error("Must input at least d+1 points");var _=m.slice(0,M+1),b=i.apply(void 0,_);if(b===0)throw new Error("Input not in general position");for(var d=new Array(M+1),u=0;u<=M;++u)d[u]=u;b<0&&(d[0]=1,d[1]=0);for(var g=new o(d,new Array(M+1),!1),y=g.adjacent,R=new Array(M+2),u=0;u<=M;++u){for(var I=d.slice(),z=0;z<=M;++z)z===u&&(I[z]=-1);var F=I[0];I[0]=I[1],I[1]=F;var B=new o(I,new Array(M+1),!0);y[u]=B,R[u]=B}R[M+1]=g;for(var u=0;u<=M;++u)for(var I=y[u].vertices,O=y[u].adjacent,z=0;z<=M;++z){var P=I[z];if(P<0){O[z]=g;continue}for(var N=0;N<=M;++N)y[N].vertices.indexOf(P)<0&&(O[z]=y[N])}for(var U=new v(M,_,R),X=!!w,u=M+1;u3*(R+1)?v(this,y):this.left.insert(y):this.left=b([y]);else if(y[0]>this.mid)this.right?4*(this.right.count+1)>3*(R+1)?v(this,y):this.right.insert(y):this.right=b([y]);else{var I=i.ge(this.leftPoints,y,M),z=i.ge(this.rightPoints,y,_);this.leftPoints.splice(I,0,y),this.rightPoints.splice(z,0,y)}},c.remove=function(y){var R=this.count-this.leftPoints;if(y[1]3*(R-1))return T(this,y);var z=this.left.remove(y);return z===n?(this.left=null,this.count-=1,o):(z===o&&(this.count-=1),z)}else if(y[0]>this.mid){if(!this.right)return a;var F=this.left?this.left.count:0;if(4*F>3*(R-1))return T(this,y);var z=this.right.remove(y);return z===n?(this.right=null,this.count-=1,o):(z===o&&(this.count-=1),z)}else{if(this.count===1)return this.leftPoints[0]===y?n:a;if(this.leftPoints.length===1&&this.leftPoints[0]===y){if(this.left&&this.right){for(var B=this,O=this.left;O.right;)B=O,O=O.right;if(B===this)O.right=this.right;else{var P=this.left,z=this.right;B.count-=O.count,B.right=O.left,O.left=P,O.right=z}f(this,O),this.count=(this.left?this.left.count:0)+(this.right?this.right.count:0)+this.leftPoints.length}else this.left?f(this,this.left):f(this,this.right);return o}for(var P=i.ge(this.leftPoints,y,M);P=0&&y[z][1]>=R;--z){var F=I(y[z]);if(F)return F}}function w(y,R){for(var I=0;Ithis.mid){if(this.right){var I=this.right.queryPoint(y,R);if(I)return I}return m(this.rightPoints,y,R)}else return w(this.leftPoints,R)},c.queryInterval=function(y,R,I){if(ythis.mid&&this.right){var z=this.right.queryInterval(y,R,I);if(z)return z}return Rthis.mid?m(this.rightPoints,y,I):w(this.leftPoints,I)};function S(y,R){return y-R}function M(y,R){var I=y[0]-R[0];return I||y[1]-R[1]}function _(y,R){var I=y[1]-R[1];return I||y[0]-R[0]}function b(y){if(y.length===0)return null;for(var R=[],I=0;I>1],F=[],B=[],O=[],I=0;I13)&&i!==32&&i!==133&&i!==160&&i!==5760&&i!==6158&&(i<8192||i>8205)&&i!==8232&&i!==8233&&i!==8239&&i!==8287&&i!==8288&&i!==12288&&i!==65279)return!1;return!0}},395:function(e){function t(r,i,a){return r*(1-a)+i*a}e.exports=t},2652:function(e,t,r){var i=r(4335),a=r(6864),o=r(1903),n=r(9921),s=r(7608),c=r(5665),f={length:r(1387),normalize:r(3536),dot:r(244),cross:r(5911)},p=a(),v=a(),T=[0,0,0,0],l=[[0,0,0],[0,0,0],[0,0,0]],m=[0,0,0];e.exports=function(b,d,u,g,y,R){if(d||(d=[0,0,0]),u||(u=[0,0,0]),g||(g=[0,0,0]),y||(y=[0,0,0,1]),R||(R=[0,0,0,1]),!i(p,b)||(o(v,p),v[3]=0,v[7]=0,v[11]=0,v[15]=1,Math.abs(n(v)<1e-8)))return!1;var I=p[3],z=p[7],F=p[11],B=p[12],O=p[13],P=p[14],N=p[15];if(I!==0||z!==0||F!==0){T[0]=I,T[1]=z,T[2]=F,T[3]=N;var U=s(v,v);if(!U)return!1;c(v,v),w(y,T,v)}else y[0]=y[1]=y[2]=0,y[3]=1;if(d[0]=B,d[1]=O,d[2]=P,S(l,p),u[0]=f.length(l[0]),f.normalize(l[0],l[0]),g[0]=f.dot(l[0],l[1]),M(l[1],l[1],l[0],1,-g[0]),u[1]=f.length(l[1]),f.normalize(l[1],l[1]),g[0]/=u[1],g[1]=f.dot(l[0],l[2]),M(l[2],l[2],l[0],1,-g[1]),g[2]=f.dot(l[1],l[2]),M(l[2],l[2],l[1],1,-g[2]),u[2]=f.length(l[2]),f.normalize(l[2],l[2]),g[1]/=u[2],g[2]/=u[2],f.cross(m,l[1],l[2]),f.dot(l[0],m)<0)for(var X=0;X<3;X++)u[X]*=-1,l[X][0]*=-1,l[X][1]*=-1,l[X][2]*=-1;return R[0]=.5*Math.sqrt(Math.max(1+l[0][0]-l[1][1]-l[2][2],0)),R[1]=.5*Math.sqrt(Math.max(1-l[0][0]+l[1][1]-l[2][2],0)),R[2]=.5*Math.sqrt(Math.max(1-l[0][0]-l[1][1]+l[2][2],0)),R[3]=.5*Math.sqrt(Math.max(1+l[0][0]+l[1][1]+l[2][2],0)),l[2][1]>l[1][2]&&(R[0]=-R[0]),l[0][2]>l[2][0]&&(R[1]=-R[1]),l[1][0]>l[0][1]&&(R[2]=-R[2]),!0};function w(_,b,d){var u=b[0],g=b[1],y=b[2],R=b[3];return _[0]=d[0]*u+d[4]*g+d[8]*y+d[12]*R,_[1]=d[1]*u+d[5]*g+d[9]*y+d[13]*R,_[2]=d[2]*u+d[6]*g+d[10]*y+d[14]*R,_[3]=d[3]*u+d[7]*g+d[11]*y+d[15]*R,_}function S(_,b){_[0][0]=b[0],_[0][1]=b[1],_[0][2]=b[2],_[1][0]=b[4],_[1][1]=b[5],_[1][2]=b[6],_[2][0]=b[8],_[2][1]=b[9],_[2][2]=b[10]}function M(_,b,d,u,g){_[0]=b[0]*u+d[0]*g,_[1]=b[1]*u+d[1]*g,_[2]=b[2]*u+d[2]*g}},4335:function(e){e.exports=function(r,i){var a=i[15];if(a===0)return!1;for(var o=1/a,n=0;n<16;n++)r[n]=i[n]*o;return!0}},7442:function(e,t,r){var i=r(6658),a=r(7182),o=r(2652),n=r(9921),s=r(8648),c=T(),f=T(),p=T();e.exports=v;function v(w,S,M,_){if(n(S)===0||n(M)===0)return!1;var b=o(S,c.translate,c.scale,c.skew,c.perspective,c.quaternion),d=o(M,f.translate,f.scale,f.skew,f.perspective,f.quaternion);return!b||!d?!1:(i(p.translate,c.translate,f.translate,_),i(p.skew,c.skew,f.skew,_),i(p.scale,c.scale,f.scale,_),i(p.perspective,c.perspective,f.perspective,_),s(p.quaternion,c.quaternion,f.quaternion,_),a(w,p.translate,p.scale,p.skew,p.perspective,p.quaternion),!0)}function T(){return{translate:l(),scale:l(1),skew:l(),perspective:m(),quaternion:m()}}function l(w){return[w||0,w||0,w||0]}function m(){return[0,0,0,1]}},7182:function(e,t,r){var i={identity:r(7894),translate:r(7656),multiply:r(6760),create:r(6864),scale:r(2504),fromRotationTranslation:r(6743)};i.create();var a=i.create();e.exports=function(n,s,c,f,p,v){return i.identity(n),i.fromRotationTranslation(n,v,s),n[3]=p[0],n[7]=p[1],n[11]=p[2],n[15]=p[3],i.identity(a),f[2]!==0&&(a[9]=f[2],i.multiply(n,n,a)),f[1]!==0&&(a[9]=0,a[8]=f[1],i.multiply(n,n,a)),f[0]!==0&&(a[8]=0,a[4]=f[0],i.multiply(n,n,a)),i.scale(n,n,c),n}},1811:function(e,t,r){var i=r(2478),a=r(7442),o=r(7608),n=r(5567),s=r(2408),c=r(7089),f=r(6582),p=r(7656);r(2504);var v=r(3536),T=[0,0,0];e.exports=S;function l(M){this._components=M.slice(),this._time=[0],this.prevMatrix=M.slice(),this.nextMatrix=M.slice(),this.computedMatrix=M.slice(),this.computedInverse=M.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 m=l.prototype;m.recalcMatrix=function(M){var _=this._time,b=i.le(_,M),d=this.computedMatrix;if(!(b<0)){var u=this._components;if(b===_.length-1)for(var g=16*b,y=0;y<16;++y)d[y]=u[g++];else{for(var R=_[b+1]-_[b],g=16*b,I=this.prevMatrix,z=!0,y=0;y<16;++y)I[y]=u[g++];for(var F=this.nextMatrix,y=0;y<16;++y)F[y]=u[g++],z=z&&I[y]===F[y];if(R<1e-6||z)for(var y=0;y<16;++y)d[y]=I[y];else a(d,I,F,(M-_[b])/R)}var B=this.computedUp;B[0]=d[1],B[1]=d[5],B[2]=d[9],v(B,B);var O=this.computedInverse;o(O,d);var P=this.computedEye,N=O[15];P[0]=O[12]/N,P[1]=O[13]/N,P[2]=O[14]/N;for(var U=this.computedCenter,X=Math.exp(this.computedRadius[0]),y=0;y<3;++y)U[y]=P[y]-d[2+4*y]*X}},m.idle=function(M){if(!(M1&&i(o[f[l-2]],o[f[l-1]],T)<=0;)l-=1,f.pop();for(f.push(v),l=p.length;l>1&&i(o[p[l-2]],o[p[l-1]],T)>=0;)l-=1,p.pop();p.push(v)}for(var m=new Array(p.length+f.length-2),w=0,s=0,S=f.length;s0;--M)m[w++]=p[M];return m}},351:function(e,t,r){e.exports=a;var i=r(4687);function a(o,n){n||(n=o,o=window);var s=0,c=0,f=0,p={shift:!1,alt:!1,control:!1,meta:!1},v=!1;function T(y){var R=!1;return"altKey"in y&&(R=R||y.altKey!==p.alt,p.alt=!!y.altKey),"shiftKey"in y&&(R=R||y.shiftKey!==p.shift,p.shift=!!y.shiftKey),"ctrlKey"in y&&(R=R||y.ctrlKey!==p.control,p.control=!!y.ctrlKey),"metaKey"in y&&(R=R||y.metaKey!==p.meta,p.meta=!!y.metaKey),R}function l(y,R){var I=i.x(R),z=i.y(R);"buttons"in R&&(y=R.buttons|0),(y!==s||I!==c||z!==f||T(R))&&(s=y|0,c=I||0,f=z||0,n&&n(s,c,f,p))}function m(y){l(0,y)}function w(){(s||c||f||p.shift||p.alt||p.meta||p.control)&&(c=f=0,s=0,p.shift=p.alt=p.control=p.meta=!1,n&&n(0,0,0,p))}function S(y){T(y)&&n&&n(s,c,f,p)}function M(y){i.buttons(y)===0?l(0,y):l(s,y)}function _(y){l(s|i.buttons(y),y)}function b(y){l(s&~i.buttons(y),y)}function d(){v||(v=!0,o.addEventListener("mousemove",M),o.addEventListener("mousedown",_),o.addEventListener("mouseup",b),o.addEventListener("mouseleave",m),o.addEventListener("mouseenter",m),o.addEventListener("mouseout",m),o.addEventListener("mouseover",m),o.addEventListener("blur",w),o.addEventListener("keyup",S),o.addEventListener("keydown",S),o.addEventListener("keypress",S),o!==window&&(window.addEventListener("blur",w),window.addEventListener("keyup",S),window.addEventListener("keydown",S),window.addEventListener("keypress",S)))}function u(){v&&(v=!1,o.removeEventListener("mousemove",M),o.removeEventListener("mousedown",_),o.removeEventListener("mouseup",b),o.removeEventListener("mouseleave",m),o.removeEventListener("mouseenter",m),o.removeEventListener("mouseout",m),o.removeEventListener("mouseover",m),o.removeEventListener("blur",w),o.removeEventListener("keyup",S),o.removeEventListener("keydown",S),o.removeEventListener("keypress",S),o!==window&&(window.removeEventListener("blur",w),window.removeEventListener("keyup",S),window.removeEventListener("keydown",S),window.removeEventListener("keypress",S)))}d();var g={element:o};return Object.defineProperties(g,{enabled:{get:function(){return v},set:function(y){y?d():u()},enumerable:!0},buttons:{get:function(){return s},enumerable:!0},x:{get:function(){return c},enumerable:!0},y:{get:function(){return f},enumerable:!0},mods:{get:function(){return p},enumerable:!0}}),g}},24:function(e){var t={left:0,top:0};e.exports=r;function r(a,o,n){o=o||a.currentTarget||a.srcElement,Array.isArray(n)||(n=[0,0]);var s=a.clientX||0,c=a.clientY||0,f=i(o);return n[0]=s-f.left,n[1]=c-f.top,n}function i(a){return a===window||a===document||a===document.body?t:a.getBoundingClientRect()}},4687:function(e,t){function r(n){if(typeof n=="object"){if("buttons"in n)return n.buttons;if("which"in n){var s=n.which;if(s===2)return 4;if(s===3)return 2;if(s>0)return 1<=0)return 1<0){if(ue=1,q[ee++]=p(d[R],w,S,M),R+=U,_>0)for(te=1,I=d[R],Z=q[ee]=p(I,w,S,M),V=q[ee+se],fe=q[ee+re],Pe=q[ee+xe],(Z!==V||Z!==fe||Z!==Pe)&&(F=d[R+z],O=d[R+B],N=d[R+P],c(te,ue,I,F,O,N,Z,V,fe,Pe,w,S,M),Ce=J[ee]=ie++),ee+=1,R+=U,te=2;te<_;++te)I=d[R],Z=q[ee]=p(I,w,S,M),V=q[ee+se],fe=q[ee+re],Pe=q[ee+xe],(Z!==V||Z!==fe||Z!==Pe)&&(F=d[R+z],O=d[R+B],N=d[R+P],c(te,ue,I,F,O,N,Z,V,fe,Pe,w,S,M),Ce=J[ee]=ie++,Pe!==V&&f(J[ee+se],Ce,N,F,Pe,V,w,S,M)),ee+=1,R+=U;for(R+=X,ee=0,je=se,se=Q,Q=je,je=re,re=ae,ae=je,je=xe,xe=Ae,Ae=je,ue=2;ue0)for(te=1,I=d[R],Z=q[ee]=p(I,w,S,M),V=q[ee+se],fe=q[ee+re],Pe=q[ee+xe],(Z!==V||Z!==fe||Z!==Pe)&&(F=d[R+z],O=d[R+B],N=d[R+P],c(te,ue,I,F,O,N,Z,V,fe,Pe,w,S,M),Ce=J[ee]=ie++,Pe!==fe&&f(J[ee+re],Ce,O,N,fe,Pe,w,S,M)),ee+=1,R+=U,te=2;te<_;++te)I=d[R],Z=q[ee]=p(I,w,S,M),V=q[ee+se],fe=q[ee+re],Pe=q[ee+xe],(Z!==V||Z!==fe||Z!==Pe)&&(F=d[R+z],O=d[R+B],N=d[R+P],c(te,ue,I,F,O,N,Z,V,fe,Pe,w,S,M),Ce=J[ee]=ie++,Pe!==fe&&f(J[ee+re],Ce,O,N,fe,Pe,w,S,M),Pe!==V&&f(J[ee+se],Ce,N,F,Pe,V,w,S,M)),ee+=1,R+=U;ue&1&&(ee=0),je=se,se=Q,Q=je,je=re,re=ae,ae=je,je=xe,xe=Ae,Ae=je,R+=X}}T(J),T(q)}},"false,1,0":function(c,f,p,v,T){return function(m,w,S,M){var _=m.shape[0]|0,b=m.shape[1]|0,d=m.data,u=m.offset|0,g=m.stride[0]|0,y=m.stride[1]|0,R=u,I,z=-g|0,F=0,B=-y|0,O=0,P=-g-y|0,N=0,U=y|0,X=g-y*b|0,te=0,ue=0,ie=0,le=2*b|0,q=v(le),J=v(le),ee=0,Z=0,se=-1,Q=-1,V=0,re=-b|0,ae=b|0,fe=0,xe=-b-1|0,Ae=b-1|0,Pe=0,Ce=0,je=0;for(ue=0;ue0){if(te=1,q[ee++]=p(d[R],w,S,M),R+=U,b>0)for(ue=1,I=d[R],Z=q[ee]=p(I,w,S,M),fe=q[ee+re],V=q[ee+se],Pe=q[ee+xe],(Z!==fe||Z!==V||Z!==Pe)&&(F=d[R+z],O=d[R+B],N=d[R+P],c(te,ue,I,F,O,N,Z,fe,V,Pe,w,S,M),Ce=J[ee]=ie++),ee+=1,R+=U,ue=2;ue0)for(ue=1,I=d[R],Z=q[ee]=p(I,w,S,M),fe=q[ee+re],V=q[ee+se],Pe=q[ee+xe],(Z!==fe||Z!==V||Z!==Pe)&&(F=d[R+z],O=d[R+B],N=d[R+P],c(te,ue,I,F,O,N,Z,fe,V,Pe,w,S,M),Ce=J[ee]=ie++,Pe!==fe&&f(J[ee+re],Ce,N,F,Pe,fe,w,S,M)),ee+=1,R+=U,ue=2;ue 0"),typeof s.vertex!="function"&&c("Must specify vertex creation function"),typeof s.cell!="function"&&c("Must specify cell creation function"),typeof s.phase!="function"&&c("Must specify phase function");for(var T=s.getters||[],l=new Array(p),m=0;m=0?l[m]=!0:l[m]=!1;return o(s.vertex,s.cell,s.phase,v,f,l)}},6199:function(e,t,r){var i=r(1338),a={zero:function(S,M,_,b){var d=S[0],u=_[0];b|=0;var g=0,y=u;for(g=0;g2&&g[1]>2&&b(u.pick(-1,-1).lo(1,1).hi(g[0]-2,g[1]-2),d.pick(-1,-1,0).lo(1,1).hi(g[0]-2,g[1]-2),d.pick(-1,-1,1).lo(1,1).hi(g[0]-2,g[1]-2)),g[1]>2&&(_(u.pick(0,-1).lo(1).hi(g[1]-2),d.pick(0,-1,1).lo(1).hi(g[1]-2)),M(d.pick(0,-1,0).lo(1).hi(g[1]-2))),g[1]>2&&(_(u.pick(g[0]-1,-1).lo(1).hi(g[1]-2),d.pick(g[0]-1,-1,1).lo(1).hi(g[1]-2)),M(d.pick(g[0]-1,-1,0).lo(1).hi(g[1]-2))),g[0]>2&&(_(u.pick(-1,0).lo(1).hi(g[0]-2),d.pick(-1,0,0).lo(1).hi(g[0]-2)),M(d.pick(-1,0,1).lo(1).hi(g[0]-2))),g[0]>2&&(_(u.pick(-1,g[1]-1).lo(1).hi(g[0]-2),d.pick(-1,g[1]-1,0).lo(1).hi(g[0]-2)),M(d.pick(-1,g[1]-1,1).lo(1).hi(g[0]-2))),d.set(0,0,0,0),d.set(0,0,1,0),d.set(g[0]-1,0,0,0),d.set(g[0]-1,0,1,0),d.set(0,g[1]-1,0,0),d.set(0,g[1]-1,1,0),d.set(g[0]-1,g[1]-1,0,0),d.set(g[0]-1,g[1]-1,1,0),d}}function w(S){var M=S.join(),g=p[M];if(g)return g;for(var _=S.length,b=[v,T],d=1;d<=_;++d)b.push(l(d));var u=m,g=u.apply(void 0,b);return p[M]=g,g}e.exports=function(M,_,b){if(Array.isArray(b)||(typeof b=="string"?b=i(_.dimension,b):b=i(_.dimension,"clamp")),_.size===0)return M;if(_.dimension===0)return M.set(0),M;var d=w(b);return d(M,_)}},4317:function(e){function t(n,s){var c=Math.floor(s),f=s-c,p=0<=c&&c0;){O<64?(_=O,O=0):(_=64,O-=64);for(var P=p[1]|0;P>0;){P<64?(b=P,P=0):(b=64,P-=64),l=F+O*u+P*g,S=B+O*R+P*I;var N=0,U=0,X=0,te=y,ue=u-d*y,ie=g-_*u,le=z,q=R-d*z,J=I-_*R;for(X=0;X0;){I<64?(_=I,I=0):(_=64,I-=64);for(var z=p[0]|0;z>0;){z<64?(M=z,z=0):(M=64,z-=64),l=y+I*d+z*b,S=R+I*g+z*u;var F=0,B=0,O=d,P=b-_*d,N=g,U=u-_*g;for(B=0;B0;){B<64?(b=B,B=0):(b=64,B-=64);for(var O=p[0]|0;O>0;){O<64?(M=O,O=0):(M=64,O-=64);for(var P=p[1]|0;P>0;){P<64?(_=P,P=0):(_=64,P-=64),l=z+B*g+O*d+P*u,S=F+B*I+O*y+P*R;var N=0,U=0,X=0,te=g,ue=d-b*g,ie=u-M*d,le=I,q=y-b*I,J=R-M*y;for(X=0;X<_;++X){for(U=0;Um;){N=0,U=F-_;t:for(O=0;Ote)break t;U+=y,N+=R}for(N=F,U=F-_,O=0;O>1,P=O-z,N=O+z,U=F,X=P,te=O,ue=N,ie=B,le=w+1,q=S-1,J=!0,ee,Z,se,Q,V,re,ae,fe,xe,Ae=0,Pe=0,Ce=0,je,at,tt,Je,Ze,Me,we,he,De,et,nt,Ke,Et,kt,Ut,Yt,vr=g,hr=T(vr),Rr=T(vr);at=b*U,tt=b*X,Yt=_;e:for(je=0;je0){Z=U,U=X,X=Z;break e}if(Ce<0)break e;Yt+=R}at=b*ue,tt=b*ie,Yt=_;e:for(je=0;je0){Z=ue,ue=ie,ie=Z;break e}if(Ce<0)break e;Yt+=R}at=b*U,tt=b*te,Yt=_;e:for(je=0;je0){Z=U,U=te,te=Z;break e}if(Ce<0)break e;Yt+=R}at=b*X,tt=b*te,Yt=_;e:for(je=0;je0){Z=X,X=te,te=Z;break e}if(Ce<0)break e;Yt+=R}at=b*U,tt=b*ue,Yt=_;e:for(je=0;je0){Z=U,U=ue,ue=Z;break e}if(Ce<0)break e;Yt+=R}at=b*te,tt=b*ue,Yt=_;e:for(je=0;je0){Z=te,te=ue,ue=Z;break e}if(Ce<0)break e;Yt+=R}at=b*X,tt=b*ie,Yt=_;e:for(je=0;je0){Z=X,X=ie,ie=Z;break e}if(Ce<0)break e;Yt+=R}at=b*X,tt=b*te,Yt=_;e:for(je=0;je0){Z=X,X=te,te=Z;break e}if(Ce<0)break e;Yt+=R}at=b*ue,tt=b*ie,Yt=_;e:for(je=0;je0){Z=ue,ue=ie,ie=Z;break e}if(Ce<0)break e;Yt+=R}for(at=b*U,tt=b*X,Je=b*te,Ze=b*ue,Me=b*ie,we=b*F,he=b*O,De=b*B,Ut=0,Yt=_,je=0;je0)q--;else if(Ce<0){for(at=b*re,tt=b*le,Je=b*q,Yt=_,je=0;je0)for(;;){ae=_+q*b,Ut=0;e:for(je=0;je0){if(--qB){e:for(;;){for(ae=_+le*b,Ut=0,Yt=_,je=0;je1&&m?S(l,m[0],m[1]):S(l)}var f={"uint32,1,0":function(v,T){return function(l){var m=l.data,w=l.offset|0,S=l.shape,M=l.stride,_=M[0]|0,b=S[0]|0,d=M[1]|0,u=S[1]|0,g=d,y=d,R=1;b<=32?v(0,b-1,m,w,_,d,b,u,g,y,R):T(0,b-1,m,w,_,d,b,u,g,y,R)}}};function p(v,T){var l=[T,v].join(","),m=f[l],w=n(v,T),S=c(v,T,w);return m(w,S)}e.exports=p},446:function(e,t,r){var i=r(7640),a={};function o(n){var s=n.order,c=n.dtype,f=[s,c],p=f.join(":"),v=a[p];return v||(a[p]=v=i(s,c)),v(n),n}e.exports=o},9618:function(e,t,r){var i=r(7163),a=typeof Float64Array<"u";function o(T,l){return T[0]-l[0]}function n(){var T=this.stride,l=new Array(T.length),m;for(m=0;m=0&&(d=_|0,b+=g*d,u-=d),new w(this.data,u,g,b)},S.step=function(_){var b=this.shape[0],d=this.stride[0],u=this.offset,g=0,y=Math.ceil;return typeof _=="number"&&(g=_|0,g<0?(u+=d*(b-1),b=y(-b/g)):b=y(b/g),d*=g),new w(this.data,b,d,u)},S.transpose=function(_){_=_===void 0?0:_|0;var b=this.shape,d=this.stride;return new w(this.data,b[_],d[_],this.offset)},S.pick=function(_){var b=[],d=[],u=this.offset;typeof _=="number"&&_>=0?u=u+this.stride[0]*_|0:(b.push(this.shape[0]),d.push(this.stride[0]));var g=l[b.length+1];return g(this.data,b,d,u)},function(_,b,d,u){return new w(_,b[0],d[0],u)}},2:function(T,l,m){function w(M,_,b,d,u,g){this.data=M,this.shape=[_,b],this.stride=[d,u],this.offset=g|0}var S=w.prototype;return S.dtype=T,S.dimension=2,Object.defineProperty(S,"size",{get:function(){return this.shape[0]*this.shape[1]}}),Object.defineProperty(S,"order",{get:function(){return Math.abs(this.stride[0])>Math.abs(this.stride[1])?[1,0]:[0,1]}}),S.set=function(_,b,d){return T==="generic"?this.data.set(this.offset+this.stride[0]*_+this.stride[1]*b,d):this.data[this.offset+this.stride[0]*_+this.stride[1]*b]=d},S.get=function(_,b){return T==="generic"?this.data.get(this.offset+this.stride[0]*_+this.stride[1]*b):this.data[this.offset+this.stride[0]*_+this.stride[1]*b]},S.index=function(_,b){return this.offset+this.stride[0]*_+this.stride[1]*b},S.hi=function(_,b){return new w(this.data,typeof _!="number"||_<0?this.shape[0]:_|0,typeof b!="number"||b<0?this.shape[1]:b|0,this.stride[0],this.stride[1],this.offset)},S.lo=function(_,b){var d=this.offset,u=0,g=this.shape[0],y=this.shape[1],R=this.stride[0],I=this.stride[1];return typeof _=="number"&&_>=0&&(u=_|0,d+=R*u,g-=u),typeof b=="number"&&b>=0&&(u=b|0,d+=I*u,y-=u),new w(this.data,g,y,R,I,d)},S.step=function(_,b){var d=this.shape[0],u=this.shape[1],g=this.stride[0],y=this.stride[1],R=this.offset,I=0,z=Math.ceil;return typeof _=="number"&&(I=_|0,I<0?(R+=g*(d-1),d=z(-d/I)):d=z(d/I),g*=I),typeof b=="number"&&(I=b|0,I<0?(R+=y*(u-1),u=z(-u/I)):u=z(u/I),y*=I),new w(this.data,d,u,g,y,R)},S.transpose=function(_,b){_=_===void 0?0:_|0,b=b===void 0?1:b|0;var d=this.shape,u=this.stride;return new w(this.data,d[_],d[b],u[_],u[b],this.offset)},S.pick=function(_,b){var d=[],u=[],g=this.offset;typeof _=="number"&&_>=0?g=g+this.stride[0]*_|0:(d.push(this.shape[0]),u.push(this.stride[0])),typeof b=="number"&&b>=0?g=g+this.stride[1]*b|0:(d.push(this.shape[1]),u.push(this.stride[1]));var y=l[d.length+1];return y(this.data,d,u,g)},function(_,b,d,u){return new w(_,b[0],b[1],d[0],d[1],u)}},3:function(T,l,m){function w(M,_,b,d,u,g,y,R){this.data=M,this.shape=[_,b,d],this.stride=[u,g,y],this.offset=R|0}var S=w.prototype;return S.dtype=T,S.dimension=3,Object.defineProperty(S,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]}}),Object.defineProperty(S,"order",{get:function(){var _=Math.abs(this.stride[0]),b=Math.abs(this.stride[1]),d=Math.abs(this.stride[2]);return _>b?b>d?[2,1,0]:_>d?[1,2,0]:[1,0,2]:_>d?[2,0,1]:d>b?[0,1,2]:[0,2,1]}}),S.set=function(_,b,d,u){return T==="generic"?this.data.set(this.offset+this.stride[0]*_+this.stride[1]*b+this.stride[2]*d,u):this.data[this.offset+this.stride[0]*_+this.stride[1]*b+this.stride[2]*d]=u},S.get=function(_,b,d){return T==="generic"?this.data.get(this.offset+this.stride[0]*_+this.stride[1]*b+this.stride[2]*d):this.data[this.offset+this.stride[0]*_+this.stride[1]*b+this.stride[2]*d]},S.index=function(_,b,d){return this.offset+this.stride[0]*_+this.stride[1]*b+this.stride[2]*d},S.hi=function(_,b,d){return new w(this.data,typeof _!="number"||_<0?this.shape[0]:_|0,typeof b!="number"||b<0?this.shape[1]:b|0,typeof d!="number"||d<0?this.shape[2]:d|0,this.stride[0],this.stride[1],this.stride[2],this.offset)},S.lo=function(_,b,d){var u=this.offset,g=0,y=this.shape[0],R=this.shape[1],I=this.shape[2],z=this.stride[0],F=this.stride[1],B=this.stride[2];return typeof _=="number"&&_>=0&&(g=_|0,u+=z*g,y-=g),typeof b=="number"&&b>=0&&(g=b|0,u+=F*g,R-=g),typeof d=="number"&&d>=0&&(g=d|0,u+=B*g,I-=g),new w(this.data,y,R,I,z,F,B,u)},S.step=function(_,b,d){var u=this.shape[0],g=this.shape[1],y=this.shape[2],R=this.stride[0],I=this.stride[1],z=this.stride[2],F=this.offset,B=0,O=Math.ceil;return typeof _=="number"&&(B=_|0,B<0?(F+=R*(u-1),u=O(-u/B)):u=O(u/B),R*=B),typeof b=="number"&&(B=b|0,B<0?(F+=I*(g-1),g=O(-g/B)):g=O(g/B),I*=B),typeof d=="number"&&(B=d|0,B<0?(F+=z*(y-1),y=O(-y/B)):y=O(y/B),z*=B),new w(this.data,u,g,y,R,I,z,F)},S.transpose=function(_,b,d){_=_===void 0?0:_|0,b=b===void 0?1:b|0,d=d===void 0?2:d|0;var u=this.shape,g=this.stride;return new w(this.data,u[_],u[b],u[d],g[_],g[b],g[d],this.offset)},S.pick=function(_,b,d){var u=[],g=[],y=this.offset;typeof _=="number"&&_>=0?y=y+this.stride[0]*_|0:(u.push(this.shape[0]),g.push(this.stride[0])),typeof b=="number"&&b>=0?y=y+this.stride[1]*b|0:(u.push(this.shape[1]),g.push(this.stride[1])),typeof d=="number"&&d>=0?y=y+this.stride[2]*d|0:(u.push(this.shape[2]),g.push(this.stride[2]));var R=l[u.length+1];return R(this.data,u,g,y)},function(_,b,d,u){return new w(_,b[0],b[1],b[2],d[0],d[1],d[2],u)}},4:function(T,l,m){function w(M,_,b,d,u,g,y,R,I,z){this.data=M,this.shape=[_,b,d,u],this.stride=[g,y,R,I],this.offset=z|0}var S=w.prototype;return S.dtype=T,S.dimension=4,Object.defineProperty(S,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]*this.shape[3]}}),Object.defineProperty(S,"order",{get:m}),S.set=function(_,b,d,u,g){return T==="generic"?this.data.set(this.offset+this.stride[0]*_+this.stride[1]*b+this.stride[2]*d+this.stride[3]*u,g):this.data[this.offset+this.stride[0]*_+this.stride[1]*b+this.stride[2]*d+this.stride[3]*u]=g},S.get=function(_,b,d,u){return T==="generic"?this.data.get(this.offset+this.stride[0]*_+this.stride[1]*b+this.stride[2]*d+this.stride[3]*u):this.data[this.offset+this.stride[0]*_+this.stride[1]*b+this.stride[2]*d+this.stride[3]*u]},S.index=function(_,b,d,u){return this.offset+this.stride[0]*_+this.stride[1]*b+this.stride[2]*d+this.stride[3]*u},S.hi=function(_,b,d,u){return new w(this.data,typeof _!="number"||_<0?this.shape[0]:_|0,typeof b!="number"||b<0?this.shape[1]:b|0,typeof d!="number"||d<0?this.shape[2]:d|0,typeof u!="number"||u<0?this.shape[3]:u|0,this.stride[0],this.stride[1],this.stride[2],this.stride[3],this.offset)},S.lo=function(_,b,d,u){var g=this.offset,y=0,R=this.shape[0],I=this.shape[1],z=this.shape[2],F=this.shape[3],B=this.stride[0],O=this.stride[1],P=this.stride[2],N=this.stride[3];return typeof _=="number"&&_>=0&&(y=_|0,g+=B*y,R-=y),typeof b=="number"&&b>=0&&(y=b|0,g+=O*y,I-=y),typeof d=="number"&&d>=0&&(y=d|0,g+=P*y,z-=y),typeof u=="number"&&u>=0&&(y=u|0,g+=N*y,F-=y),new w(this.data,R,I,z,F,B,O,P,N,g)},S.step=function(_,b,d,u){var g=this.shape[0],y=this.shape[1],R=this.shape[2],I=this.shape[3],z=this.stride[0],F=this.stride[1],B=this.stride[2],O=this.stride[3],P=this.offset,N=0,U=Math.ceil;return typeof _=="number"&&(N=_|0,N<0?(P+=z*(g-1),g=U(-g/N)):g=U(g/N),z*=N),typeof b=="number"&&(N=b|0,N<0?(P+=F*(y-1),y=U(-y/N)):y=U(y/N),F*=N),typeof d=="number"&&(N=d|0,N<0?(P+=B*(R-1),R=U(-R/N)):R=U(R/N),B*=N),typeof u=="number"&&(N=u|0,N<0?(P+=O*(I-1),I=U(-I/N)):I=U(I/N),O*=N),new w(this.data,g,y,R,I,z,F,B,O,P)},S.transpose=function(_,b,d,u){_=_===void 0?0:_|0,b=b===void 0?1:b|0,d=d===void 0?2:d|0,u=u===void 0?3:u|0;var g=this.shape,y=this.stride;return new w(this.data,g[_],g[b],g[d],g[u],y[_],y[b],y[d],y[u],this.offset)},S.pick=function(_,b,d,u){var g=[],y=[],R=this.offset;typeof _=="number"&&_>=0?R=R+this.stride[0]*_|0:(g.push(this.shape[0]),y.push(this.stride[0])),typeof b=="number"&&b>=0?R=R+this.stride[1]*b|0:(g.push(this.shape[1]),y.push(this.stride[1])),typeof d=="number"&&d>=0?R=R+this.stride[2]*d|0:(g.push(this.shape[2]),y.push(this.stride[2])),typeof u=="number"&&u>=0?R=R+this.stride[3]*u|0:(g.push(this.shape[3]),y.push(this.stride[3]));var I=l[g.length+1];return I(this.data,g,y,R)},function(_,b,d,u){return new w(_,b[0],b[1],b[2],b[3],d[0],d[1],d[2],d[3],u)}},5:function(l,m,w){function S(_,b,d,u,g,y,R,I,z,F,B,O){this.data=_,this.shape=[b,d,u,g,y],this.stride=[R,I,z,F,B],this.offset=O|0}var M=S.prototype;return M.dtype=l,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:w}),M.set=function(b,d,u,g,y,R){return l==="generic"?this.data.set(this.offset+this.stride[0]*b+this.stride[1]*d+this.stride[2]*u+this.stride[3]*g+this.stride[4]*y,R):this.data[this.offset+this.stride[0]*b+this.stride[1]*d+this.stride[2]*u+this.stride[3]*g+this.stride[4]*y]=R},M.get=function(b,d,u,g,y){return l==="generic"?this.data.get(this.offset+this.stride[0]*b+this.stride[1]*d+this.stride[2]*u+this.stride[3]*g+this.stride[4]*y):this.data[this.offset+this.stride[0]*b+this.stride[1]*d+this.stride[2]*u+this.stride[3]*g+this.stride[4]*y]},M.index=function(b,d,u,g,y){return this.offset+this.stride[0]*b+this.stride[1]*d+this.stride[2]*u+this.stride[3]*g+this.stride[4]*y},M.hi=function(b,d,u,g,y){return new S(this.data,typeof b!="number"||b<0?this.shape[0]:b|0,typeof d!="number"||d<0?this.shape[1]:d|0,typeof u!="number"||u<0?this.shape[2]:u|0,typeof g!="number"||g<0?this.shape[3]:g|0,typeof y!="number"||y<0?this.shape[4]:y|0,this.stride[0],this.stride[1],this.stride[2],this.stride[3],this.stride[4],this.offset)},M.lo=function(b,d,u,g,y){var R=this.offset,I=0,z=this.shape[0],F=this.shape[1],B=this.shape[2],O=this.shape[3],P=this.shape[4],N=this.stride[0],U=this.stride[1],X=this.stride[2],te=this.stride[3],ue=this.stride[4];return typeof b=="number"&&b>=0&&(I=b|0,R+=N*I,z-=I),typeof d=="number"&&d>=0&&(I=d|0,R+=U*I,F-=I),typeof u=="number"&&u>=0&&(I=u|0,R+=X*I,B-=I),typeof g=="number"&&g>=0&&(I=g|0,R+=te*I,O-=I),typeof y=="number"&&y>=0&&(I=y|0,R+=ue*I,P-=I),new S(this.data,z,F,B,O,P,N,U,X,te,ue,R)},M.step=function(b,d,u,g,y){var R=this.shape[0],I=this.shape[1],z=this.shape[2],F=this.shape[3],B=this.shape[4],O=this.stride[0],P=this.stride[1],N=this.stride[2],U=this.stride[3],X=this.stride[4],te=this.offset,ue=0,ie=Math.ceil;return typeof b=="number"&&(ue=b|0,ue<0?(te+=O*(R-1),R=ie(-R/ue)):R=ie(R/ue),O*=ue),typeof d=="number"&&(ue=d|0,ue<0?(te+=P*(I-1),I=ie(-I/ue)):I=ie(I/ue),P*=ue),typeof u=="number"&&(ue=u|0,ue<0?(te+=N*(z-1),z=ie(-z/ue)):z=ie(z/ue),N*=ue),typeof g=="number"&&(ue=g|0,ue<0?(te+=U*(F-1),F=ie(-F/ue)):F=ie(F/ue),U*=ue),typeof y=="number"&&(ue=y|0,ue<0?(te+=X*(B-1),B=ie(-B/ue)):B=ie(B/ue),X*=ue),new S(this.data,R,I,z,F,B,O,P,N,U,X,te)},M.transpose=function(b,d,u,g,y){b=b===void 0?0:b|0,d=d===void 0?1:d|0,u=u===void 0?2:u|0,g=g===void 0?3:g|0,y=y===void 0?4:y|0;var R=this.shape,I=this.stride;return new S(this.data,R[b],R[d],R[u],R[g],R[y],I[b],I[d],I[u],I[g],I[y],this.offset)},M.pick=function(b,d,u,g,y){var R=[],I=[],z=this.offset;typeof b=="number"&&b>=0?z=z+this.stride[0]*b|0:(R.push(this.shape[0]),I.push(this.stride[0])),typeof d=="number"&&d>=0?z=z+this.stride[1]*d|0:(R.push(this.shape[1]),I.push(this.stride[1])),typeof u=="number"&&u>=0?z=z+this.stride[2]*u|0:(R.push(this.shape[2]),I.push(this.stride[2])),typeof g=="number"&&g>=0?z=z+this.stride[3]*g|0:(R.push(this.shape[3]),I.push(this.stride[3])),typeof y=="number"&&y>=0?z=z+this.stride[4]*y|0:(R.push(this.shape[4]),I.push(this.stride[4]));var F=m[R.length+1];return F(this.data,R,I,z)},function(b,d,u,g){return new S(b,d[0],d[1],d[2],d[3],d[4],u[0],u[1],u[2],u[3],u[4],g)}}};function c(T,l){var m=l===-1?"T":String(l),w=s[m];return l===-1?w(T):l===0?w(T,p[T][0]):w(T,p[T],n)}function f(T){if(i(T))return"buffer";if(a)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 p={generic:[],buffer:[],array:[],float32:[],float64:[],int8:[],int16:[],int32:[],uint8_clamped:[],uint8:[],uint16:[],uint32:[],bigint64:[],biguint64:[]};function v(T,l,m,w){if(T===void 0){var u=p.array[0];return u([])}else typeof T=="number"&&(T=[T]);l===void 0&&(l=[T.length]);var S=l.length;if(m===void 0){m=new Array(S);for(var M=S-1,_=1;M>=0;--M)m[M]=_,_*=l[M]}if(w===void 0){w=0;for(var M=0;M>>0;e.exports=n;function n(s,c){if(isNaN(s)||isNaN(c))return NaN;if(s===c)return s;if(s===0)return c<0?-a:a;var f=i.hi(s),p=i.lo(s);return c>s==s>0?p===o?(f+=1,p=0):p+=1:p===0?(p=o,f-=1):p-=1,i.pack(p,f)}},8406:function(e,t){var r=1e-6,i=1e-6;t.vertexNormals=function(a,o,n){for(var s=o.length,c=new Array(s),f=n===void 0?r:n,p=0;pf)for(var R=c[l],I=1/Math.sqrt(d*g),y=0;y<3;++y){var z=(y+1)%3,F=(y+2)%3;R[y]+=I*(u[z]*b[F]-u[F]*b[z])}}for(var p=0;pf)for(var I=1/Math.sqrt(B),y=0;y<3;++y)R[y]*=I;else for(var y=0;y<3;++y)R[y]=0}return c},t.faceNormals=function(a,o,n){for(var s=a.length,c=new Array(s),f=n===void 0?i:n,p=0;pf?M=1/Math.sqrt(M):M=0;for(var l=0;l<3;++l)S[l]*=M;c[p]=S}return c}},4081:function(e){e.exports=t;function t(r,i,a,o,n,s,c,f,p,v){var T=i+s+v;if(l>0){var l=Math.sqrt(T+1);r[0]=.5*(c-p)/l,r[1]=.5*(f-o)/l,r[2]=.5*(a-s)/l,r[3]=.5*l}else{var m=Math.max(i,s,v),l=Math.sqrt(2*m-T+1);i>=m?(r[0]=.5*l,r[1]=.5*(n+a)/l,r[2]=.5*(f+o)/l,r[3]=.5*(c-p)/l):s>=m?(r[0]=.5*(a+n)/l,r[1]=.5*l,r[2]=.5*(p+c)/l,r[3]=.5*(f-o)/l):(r[0]=.5*(o+f)/l,r[1]=.5*(c+p)/l,r[2]=.5*l,r[3]=.5*(a-n)/l)}return r}},9977:function(e,t,r){e.exports=l;var i=r(9215),a=r(6582),o=r(7399),n=r(7608),s=r(4081);function c(m,w,S){return Math.sqrt(Math.pow(m,2)+Math.pow(w,2)+Math.pow(S,2))}function f(m,w,S,M){return Math.sqrt(Math.pow(m,2)+Math.pow(w,2)+Math.pow(S,2)+Math.pow(M,2))}function p(m,w){var S=w[0],M=w[1],_=w[2],b=w[3],d=f(S,M,_,b);d>1e-6?(m[0]=S/d,m[1]=M/d,m[2]=_/d,m[3]=b/d):(m[0]=m[1]=m[2]=0,m[3]=1)}function v(m,w,S){this.radius=i([S]),this.center=i(w),this.rotation=i(m),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=v.prototype;T.lastT=function(){return Math.max(this.radius.lastT(),this.center.lastT(),this.rotation.lastT())},T.recalcMatrix=function(m){this.radius.curve(m),this.center.curve(m),this.rotation.curve(m);var w=this.computedRotation;p(w,w);var S=this.computedMatrix;o(S,w);var M=this.computedCenter,_=this.computedEye,b=this.computedUp,d=Math.exp(this.computedRadius[0]);_[0]=M[0]+d*S[2],_[1]=M[1]+d*S[6],_[2]=M[2]+d*S[10],b[0]=S[1],b[1]=S[5],b[2]=S[9];for(var u=0;u<3;++u){for(var g=0,y=0;y<3;++y)g+=S[u+4*y]*_[y];S[12+u]=-g}},T.getMatrix=function(m,w){this.recalcMatrix(m);var S=this.computedMatrix;if(w){for(var M=0;M<16;++M)w[M]=S[M];return w}return S},T.idle=function(m){this.center.idle(m),this.radius.idle(m),this.rotation.idle(m)},T.flush=function(m){this.center.flush(m),this.radius.flush(m),this.rotation.flush(m)},T.pan=function(m,w,S,M){w=w||0,S=S||0,M=M||0,this.recalcMatrix(m);var _=this.computedMatrix,b=_[1],d=_[5],u=_[9],g=c(b,d,u);b/=g,d/=g,u/=g;var y=_[0],R=_[4],I=_[8],z=y*b+R*d+I*u;y-=b*z,R-=d*z,I-=u*z;var F=c(y,R,I);y/=F,R/=F,I/=F,_[2],_[6],_[10];var B=y*w+b*S,O=R*w+d*S,P=I*w+u*S;this.center.move(m,B,O,P);var N=Math.exp(this.computedRadius[0]);N=Math.max(1e-4,N+M),this.radius.set(m,Math.log(N))},T.rotate=function(m,w,S,M){this.recalcMatrix(m),w=w||0,S=S||0;var _=this.computedMatrix,b=_[0],d=_[4],u=_[8],g=_[1],y=_[5],R=_[9],I=_[2],z=_[6],F=_[10],B=w*b+S*g,O=w*d+S*y,P=w*u+S*R,N=-(z*P-F*O),U=-(F*B-I*P),X=-(I*O-z*B),te=Math.sqrt(Math.max(0,1-Math.pow(N,2)-Math.pow(U,2)-Math.pow(X,2))),ue=f(N,U,X,te);ue>1e-6?(N/=ue,U/=ue,X/=ue,te/=ue):(N=U=X=0,te=1);var ie=this.computedRotation,le=ie[0],q=ie[1],J=ie[2],ee=ie[3],Z=le*te+ee*N+q*X-J*U,se=q*te+ee*U+J*N-le*X,Q=J*te+ee*X+le*U-q*N,V=ee*te-le*N-q*U-J*X;if(M){N=I,U=z,X=F;var re=Math.sin(M)/c(N,U,X);N*=re,U*=re,X*=re,te=Math.cos(w),Z=Z*te+V*N+se*X-Q*U,se=se*te+V*U+Q*N-Z*X,Q=Q*te+V*X+Z*U-se*N,V=V*te-Z*N-se*U-Q*X}var ae=f(Z,se,Q,V);ae>1e-6?(Z/=ae,se/=ae,Q/=ae,V/=ae):(Z=se=Q=0,V=1),this.rotation.set(m,Z,se,Q,V)},T.lookAt=function(m,w,S,M){this.recalcMatrix(m),S=S||this.computedCenter,w=w||this.computedEye,M=M||this.computedUp;var _=this.computedMatrix;a(_,w,S,M);var b=this.computedRotation;s(b,_[0],_[1],_[2],_[4],_[5],_[6],_[8],_[9],_[10]),p(b,b),this.rotation.set(m,b[0],b[1],b[2],b[3]);for(var d=0,u=0;u<3;++u)d+=Math.pow(S[u]-w[u],2);this.radius.set(m,.5*Math.log(Math.max(d,1e-6))),this.center.set(m,S[0],S[1],S[2])},T.translate=function(m,w,S,M){this.center.move(m,w||0,S||0,M||0)},T.setMatrix=function(m,w){var S=this.computedRotation;s(S,w[0],w[1],w[2],w[4],w[5],w[6],w[8],w[9],w[10]),p(S,S),this.rotation.set(m,S[0],S[1],S[2],S[3]);var M=this.computedMatrix;n(M,w);var _=M[15];if(Math.abs(_)>1e-6){var b=M[12]/_,d=M[13]/_,u=M[14]/_;this.recalcMatrix(m);var g=Math.exp(this.computedRadius[0]);this.center.set(m,b-M[2]*g,d-M[6]*g,u-M[10]*g),this.radius.idle(m)}else this.center.idle(m),this.radius.idle(m)},T.setDistance=function(m,w){w>0&&this.radius.set(m,Math.log(w))},T.setDistanceLimits=function(m,w){m>0?m=Math.log(m):m=-1/0,w>0?w=Math.log(w):w=1/0,w=Math.max(w,m),this.radius.bounds[0][0]=m,this.radius.bounds[1][0]=w},T.getDistanceLimits=function(m){var w=this.radius.bounds;return m?(m[0]=Math.exp(w[0][0]),m[1]=Math.exp(w[1][0]),m):[Math.exp(w[0][0]),Math.exp(w[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(m){var w=this.lastT(),S=m.center;S&&this.center.set(w,S[0],S[1],S[2]);var M=m.rotation;M&&this.rotation.set(w,M[0],M[1],M[2],M[3]);var _=m.distance;_&&_>0&&this.radius.set(w,Math.log(_)),this.setDistanceLimits(m.zoomMin,m.zoomMax)};function l(m){m=m||{};var w=m.center||[0,0,0],S=m.rotation||[0,0,0,1],M=m.radius||1;w=[].slice.call(w,0,3),S=[].slice.call(S,0,4),p(S,S);var _=new v(S,w,Math.log(M));return _.setDistanceLimits(m.zoomMin,m.zoomMax),("eye"in m||"up"in m)&&_.lookAt(0,m.eye,m.center,m.up),_}},1371:function(e,t,r){var i=r(3233);e.exports=function(o,n,s){return s=typeof s<"u"?s+"":" ",i(s,n)+o}},3202:function(e){e.exports=function(r,i){i||(i=[0,""]),r=String(r);var a=parseFloat(r,10);return i[0]=a,i[1]=r.match(/[\d.\-\+]*\s*(.*)/)[1]||"",i}},3088:function(e,t,r){e.exports=a;var i=r(3140);function a(o,n){for(var s=n.length|0,c=o.length,f=[new Array(s),new Array(s)],p=0;p0){y=f[z][u][0],I=z;break}R=y[I^1];for(var F=0;F<2;++F)for(var B=f[F][u],O=0;O0&&(y=P,R=N,I=F)}return g||y&&l(y,I),R}function w(d,u){var g=f[u][d][0],y=[d];l(g,u);for(var R=g[u^1];;){for(;R!==d;)y.push(R),R=m(y[y.length-2],R,!1);if(f[0][d].length+f[1][d].length===0)break;var I=y[y.length-1],z=d,F=y[1],B=m(I,z,!0);if(i(n[I],n[z],n[F],n[B])<0)break;y.push(d),R=m(I,z)}return y}function S(d,u){return u[1]===u[u.length-1]}for(var p=0;p0;){f[0][p].length;var b=w(p,M);S(_,b)?_.push.apply(_,b):(_.length>0&&T.push(_),_=b)}_.length>0&&T.push(_)}return T}},5609:function(e,t,r){e.exports=a;var i=r(3134);function a(o,n){for(var s=i(o,n.length),c=new Array(n.length),f=new Array(n.length),p=[],v=0;v0;){var l=p.pop();c[l]=!1;for(var m=s[l],v=0;v0}_=_.filter(b);for(var d=_.length,u=new Array(d),g=new Array(d),M=0;M0;){var re=se.pop(),ae=te[re];c(ae,function(Ce,je){return Ce-je});var fe=ae.length,xe=Q[re],Ae;if(xe===0){var B=_[re];Ae=[B]}for(var M=0;M=0)&&(Q[Pe]=xe^1,se.push(Pe),xe===0)){var B=_[Pe];Z(B)||(B.reverse(),Ae.push(B))}}xe===0&&V.push(Ae)}return V}},5085:function(e,t,r){e.exports=m;var i=r(3250)[3],a=r(4209),o=r(3352),n=r(2478);function s(){return!0}function c(w){return function(S,M){var _=w[S];return _?!!_.queryPoint(M,s):!1}}function f(w){for(var S={},M=0;M0&&S[_]===M[0])b=w[_-1];else return 1;for(var d=1;b;){var u=b.key,g=i(M,u[0],u[1]);if(u[0][0]0)d=-1,b=b.right;else return 0;else if(g>0)b=b.left;else if(g<0)d=1,b=b.right;else return 0}return d}}function v(w){return 1}function T(w){return function(M){return w(M[0],M[1])?0:1}}function l(w,S){return function(_){return w(_[0],_[1])?0:S(_)}}function m(w){for(var S=w.length,M=[],_=[],b=0;b=v?(u=1,y=v+2*m+S):(u=-m/v,y=m*u+S)):(u=0,w>=0?(g=0,y=S):-w>=l?(g=1,y=l+2*w+S):(g=-w/l,y=w*g+S));else if(g<0)g=0,m>=0?(u=0,y=S):-m>=v?(u=1,y=v+2*m+S):(u=-m/v,y=m*u+S);else{var R=1/d;u*=R,g*=R,y=u*(v*u+T*g+2*m)+g*(T*u+l*g+2*w)+S}else{var I,z,F,B;u<0?(I=T+m,z=l+w,z>I?(F=z-I,B=v-2*T+l,F>=B?(u=1,g=0,y=v+2*m+S):(u=F/B,g=1-u,y=u*(v*u+T*g+2*m)+g*(T*u+l*g+2*w)+S)):(u=0,z<=0?(g=1,y=l+2*w+S):w>=0?(g=0,y=S):(g=-w/l,y=w*g+S))):g<0?(I=T+w,z=v+m,z>I?(F=z-I,B=v-2*T+l,F>=B?(g=1,u=0,y=l+2*w+S):(g=F/B,u=1-g,y=u*(v*u+T*g+2*m)+g*(T*u+l*g+2*w)+S)):(g=0,z<=0?(u=1,y=v+2*m+S):m>=0?(u=0,y=S):(u=-m/v,y=m*u+S))):(F=l+w-T-m,F<=0?(u=0,g=1,y=l+2*w+S):(B=v-2*T+l,F>=B?(u=1,g=0,y=v+2*m+S):(u=F/B,g=1-u,y=u*(v*u+T*g+2*m)+g*(T*u+l*g+2*w)+S)))}for(var O=1-u-g,p=0;p0){var l=s[f-1];if(i(v,l)===0&&o(l)!==T){f-=1;continue}}s[f++]=v}}return s.length=f,s}},3233:function(e){var t="",r;e.exports=i;function i(a,o){if(typeof a!="string")throw new TypeError("expected a string");if(o===1)return a;if(o===2)return a+a;var n=a.length*o;if(r!==a||typeof r>"u")r=a,t="";else if(t.length>=n)return t.substr(0,n);for(;n>t.length&&o>1;)o&1&&(t+=a),o>>=1,a+=a;return t+=a,t=t.substr(0,n),t}},3025:function(e,t,r){e.exports=r.g.performance&&r.g.performance.now?function(){return performance.now()}:Date.now||function(){return+new Date}},7004:function(e){e.exports=t;function t(r){for(var i=r.length,a=r[r.length-1],o=i,n=i-2;n>=0;--n){var s=a,c=r[n];a=s+c;var f=a-s,p=c-f;p&&(r[--o]=a,a=p)}for(var v=0,n=o;n0){if(z<=0)return F;B=I+z}else if(I<0){if(z>=0)return F;B=-(I+z)}else return F;var O=f*B;return F>=O||F<=-O?F:w(g,y,R)},function(g,y,R,I){var z=g[0]-I[0],F=y[0]-I[0],B=R[0]-I[0],O=g[1]-I[1],P=y[1]-I[1],N=R[1]-I[1],U=g[2]-I[2],X=y[2]-I[2],te=R[2]-I[2],ue=F*N,ie=B*P,le=B*O,q=z*N,J=z*P,ee=F*O,Z=U*(ue-ie)+X*(le-q)+te*(J-ee),se=(Math.abs(ue)+Math.abs(ie))*Math.abs(U)+(Math.abs(le)+Math.abs(q))*Math.abs(X)+(Math.abs(J)+Math.abs(ee))*Math.abs(te),Q=p*se;return Z>Q||-Z>Q?Z:S(g,y,R,I)}];function _(u){var g=M[u.length];return g||(g=M[u.length]=m(u.length)),g.apply(void 0,u)}function b(u,g,y,R,I,z,F){return function(O,P,N,U,X){switch(arguments.length){case 0:case 1:return 0;case 2:return R(O,P);case 3:return I(O,P,N);case 4:return z(O,P,N,U);case 5:return F(O,P,N,U,X)}for(var te=new Array(arguments.length),ue=0;ue0&&v>0||p<0&&v<0)return!1;var T=i(c,n,s),l=i(f,n,s);return T>0&&l>0||T<0&&l<0?!1:p===0&&v===0&&T===0&&l===0?a(n,s,c,f):!0}},8545:function(e){e.exports=r;function t(i,a){var o=i+a,n=o-i,s=o-n,c=a-n,f=i-s,p=f+c;return p?[p,o]:[o]}function r(i,a){var o=i.length|0,n=a.length|0;if(o===1&&n===1)return t(i[0],-a[0]);var s=o+n,c=new Array(s),f=0,p=0,v=0,T=Math.abs,l=i[p],m=T(l),w=-a[v],S=T(w),M,_;m=n?(M=l,p+=1,p=n?(M=l,p+=1,p"u"&&(M=s(m));var _=m.length;if(_===0||M<1)return{cells:[],vertexIds:[],vertexWeights:[]};var b=c(w,+S),d=f(m,M),u=p(d,w,b,+S),g=v(d,w.length|0),y=n(M)(m,d.data,g,b),R=T(d),I=[].slice.call(u.data,0,u.shape[0]);return a.free(b),a.free(d.data),a.free(u.data),a.free(g),{cells:y,vertexIds:R,vertexWeights:I}}},1570:function(e){e.exports=r;var t=[function(){function a(o,n,s,c){for(var f=o.length,p=[],v=0;v>1,w=s[2*m+1];if(w===v)return m;v>1,w=s[2*m+1];if(w===v)return m;v>1,w=s[2*m+1];if(w===v)return m;v0)-(o<0)},t.abs=function(o){var n=o>>r-1;return(o^n)-n},t.min=function(o,n){return n^(o^n)&-(o65535)<<4,o>>>=n,s=(o>255)<<3,o>>>=s,n|=s,s=(o>15)<<2,o>>>=s,n|=s,s=(o>3)<<1,o>>>=s,n|=s,n|o>>1},t.log10=function(o){return o>=1e9?9:o>=1e8?8:o>=1e7?7:o>=1e6?6:o>=1e5?5:o>=1e4?4:o>=1e3?3:o>=100?2:o>=10?1:0},t.popCount=function(o){return o=o-(o>>>1&1431655765),o=(o&858993459)+(o>>>2&858993459),(o+(o>>>4)&252645135)*16843009>>>24};function i(o){var n=32;return o&=-o,o&&n--,o&65535&&(n-=16),o&16711935&&(n-=8),o&252645135&&(n-=4),o&858993459&&(n-=2),o&1431655765&&(n-=1),n}t.countTrailingZeros=i,t.nextPow2=function(o){return o+=o===0,--o,o|=o>>>1,o|=o>>>2,o|=o>>>4,o|=o>>>8,o|=o>>>16,o+1},t.prevPow2=function(o){return o|=o>>>1,o|=o>>>2,o|=o>>>4,o|=o>>>8,o|=o>>>16,o-(o>>>1)},t.parity=function(o){return o^=o>>>16,o^=o>>>8,o^=o>>>4,o&=15,27030>>>o&1};var a=new Array(256);(function(o){for(var n=0;n<256;++n){var s=n,c=n,f=7;for(s>>>=1;s;s>>>=1)c<<=1,c|=s&1,--f;o[n]=c<>>8&255]<<16|a[o>>>16&255]<<8|a[o>>>24&255]},t.interleave2=function(o,n){return o&=65535,o=(o|o<<8)&16711935,o=(o|o<<4)&252645135,o=(o|o<<2)&858993459,o=(o|o<<1)&1431655765,n&=65535,n=(n|n<<8)&16711935,n=(n|n<<4)&252645135,n=(n|n<<2)&858993459,n=(n|n<<1)&1431655765,o|n<<1},t.deinterleave2=function(o,n){return o=o>>>n&1431655765,o=(o|o>>>1)&858993459,o=(o|o>>>2)&252645135,o=(o|o>>>4)&16711935,o=(o|o>>>16)&65535,o<<16>>16},t.interleave3=function(o,n,s){return o&=1023,o=(o|o<<16)&4278190335,o=(o|o<<8)&251719695,o=(o|o<<4)&3272356035,o=(o|o<<2)&1227133513,n&=1023,n=(n|n<<16)&4278190335,n=(n|n<<8)&251719695,n=(n|n<<4)&3272356035,n=(n|n<<2)&1227133513,o|=n<<1,s&=1023,s=(s|s<<16)&4278190335,s=(s|s<<8)&251719695,s=(s|s<<4)&3272356035,s=(s|s<<2)&1227133513,o|s<<2},t.deinterleave3=function(o,n){return o=o>>>n&1227133513,o=(o|o>>>2)&3272356035,o=(o|o>>>4)&251719695,o=(o|o>>>8)&4278190335,o=(o|o>>>16)&1023,o<<22>>22},t.nextCombination=function(o){var n=o|o-1;return n+1|(~n&-~n)-1>>>i(o)+1}},2014:function(e,t,r){"use restrict";var i=r(3105),a=r(4623);function o(u){for(var g=0,y=Math.max,R=0,I=u.length;R>1,F=c(u[z],g);F<=0?(F===0&&(I=z),y=z+1):F>0&&(R=z-1)}return I}t.findCell=T;function l(u,g){for(var y=new Array(u.length),R=0,I=y.length;R=u.length||c(u[te],z)!==0););}return y}t.incidence=l;function m(u,g){if(!g)return l(v(S(u,0)),u);for(var y=new Array(g),R=0;R>>P&1&&O.push(I[P]);g.push(O)}return p(g)}t.explode=w;function S(u,g){if(g<0)return[];for(var y=[],R=(1<>1:(le>>1)-1}function R(le){for(var q=g(le);;){var J=q,ee=2*le+1,Z=2*(le+1),se=le;if(ee0;){var J=y(le);if(J>=0){var ee=g(J);if(q0){var le=O[0];return u(0,U-1),U-=1,R(0),le}return-1}function F(le,q){var J=O[le];return m[J]===q?le:(m[J]=-1/0,I(le),z(),m[J]=q,U+=1,I(U-1))}function B(le){if(!w[le]){w[le]=!0;var q=T[le],J=l[le];T[J]>=0&&(T[J]=q),l[q]>=0&&(l[q]=J),P[q]>=0&&F(P[q],d(q)),P[J]>=0&&F(P[J],d(J))}}for(var O=[],P=new Array(p),S=0;S>1;S>=0;--S)R(S);for(;;){var X=z();if(X<0||m[X]>f)break;B(X)}for(var te=[],S=0;S=0&&J>=0&&q!==J){var ee=P[q],Z=P[J];ee!==Z&&ie.push([ee,Z])}}),a.unique(a.normalize(ie)),{positions:te,edges:ie}}},1303:function(e,t,r){e.exports=o;var i=r(3250);function a(n,s){var c,f;if(s[0][0]s[1][0])c=s[1],f=s[0];else{var p=Math.min(n[0][1],n[1][1]),v=Math.max(n[0][1],n[1][1]),T=Math.min(s[0][1],s[1][1]),l=Math.max(s[0][1],s[1][1]);return vl?p-l:v-l}var m,w;n[0][1]s[1][0])c=s[1],f=s[0];else return a(s,n);var p,v;if(n[0][0]n[1][0])p=n[1],v=n[0];else return-a(n,s);var T=i(c,f,v),l=i(c,f,p);if(T<0){if(l<=0)return T}else if(T>0){if(l>=0)return T}else if(l)return l;if(T=i(v,p,f),l=i(v,p,c),T<0){if(l<=0)return T}else if(T>0){if(l>=0)return T}else if(l)return l;return f[0]-v[0]}},4209:function(e,t,r){e.exports=l;var i=r(2478),a=r(3840),o=r(3250),n=r(1303);function s(m,w,S){this.slabs=m,this.coordinates=w,this.horizontal=S}var c=s.prototype;function f(m,w){return m.y-w}function p(m,w){for(var S=null;m;){var M=m.key,_,b;M[0][0]0)if(w[0]!==M[1][0])S=m,m=m.right;else{var u=p(m.right,w);if(u)return u;m=m.left}else{if(w[0]!==M[1][0])return m;var u=p(m.right,w);if(u)return u;m=m.left}}return S}c.castUp=function(m){var w=i.le(this.coordinates,m[0]);if(w<0)return-1;this.slabs[w];var S=p(this.slabs[w],m),M=-1;if(S&&(M=S.value),this.coordinates[w]===m[0]){var _=null;if(S&&(_=S.key),w>0){var b=p(this.slabs[w-1],m);b&&(_?n(b.key,_)>0&&(_=b.key,M=b.value):(M=b.value,_=b.key))}var d=this.horizontal[w];if(d.length>0){var u=i.ge(d,m[1],f);if(u=d.length)return M;g=d[u]}}if(g.start)if(_){var y=o(_[0],_[1],[m[0],g.y]);_[0][0]>_[1][0]&&(y=-y),y>0&&(M=g.index)}else M=g.index;else g.y!==m[1]&&(M=g.index)}}}return M};function v(m,w,S,M){this.y=m,this.index=w,this.start=S,this.closed=M}function T(m,w,S,M){this.x=m,this.segment=w,this.create=S,this.index=M}function l(m){for(var w=m.length,S=2*w,M=new Array(S),_=0;_1&&(w=1);for(var S=1-w,M=p.length,_=new Array(M),b=0;b0||m>0&&_<0){var b=n(w,_,S,m);T.push(b),l.push(b.slice())}_<0?l.push(S.slice()):_>0?T.push(S.slice()):(T.push(S.slice()),l.push(S.slice())),m=_}return{positive:T,negative:l}}function c(p,v){for(var T=[],l=o(p[p.length-1],v),m=p[p.length-1],w=p[0],S=0;S0||l>0&&M<0)&&T.push(n(m,M,w,l)),M>=0&&T.push(w.slice()),l=M}return T}function f(p,v){for(var T=[],l=o(p[p.length-1],v),m=p[p.length-1],w=p[0],S=0;S0||l>0&&M<0)&&T.push(n(m,M,w,l)),M<=0&&T.push(w.slice()),l=M}return T}},3387:function(e,t,r){var i;(function(){var a={not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,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 o(p){return s(f(p),arguments)}function n(p,v){return o.apply(null,[p].concat(v||[]))}function s(p,v){var T=1,l=p.length,m,w="",S,M,_,b,d,u,g,y;for(S=0;S=0),_.type){case"b":m=parseInt(m,10).toString(2);break;case"c":m=String.fromCharCode(parseInt(m,10));break;case"d":case"i":m=parseInt(m,10);break;case"j":m=JSON.stringify(m,null,_.width?parseInt(_.width):0);break;case"e":m=_.precision?parseFloat(m).toExponential(_.precision):parseFloat(m).toExponential();break;case"f":m=_.precision?parseFloat(m).toFixed(_.precision):parseFloat(m);break;case"g":m=_.precision?String(Number(m.toPrecision(_.precision))):parseFloat(m);break;case"o":m=(parseInt(m,10)>>>0).toString(8);break;case"s":m=String(m),m=_.precision?m.substring(0,_.precision):m;break;case"t":m=String(!!m),m=_.precision?m.substring(0,_.precision):m;break;case"T":m=Object.prototype.toString.call(m).slice(8,-1).toLowerCase(),m=_.precision?m.substring(0,_.precision):m;break;case"u":m=parseInt(m,10)>>>0;break;case"v":m=m.valueOf(),m=_.precision?m.substring(0,_.precision):m;break;case"x":m=(parseInt(m,10)>>>0).toString(16);break;case"X":m=(parseInt(m,10)>>>0).toString(16).toUpperCase();break}a.json.test(_.type)?w+=m:(a.number.test(_.type)&&(!g||_.sign)?(y=g?"+":"-",m=m.toString().replace(a.sign,"")):y="",d=_.pad_char?_.pad_char==="0"?"0":_.pad_char.charAt(1):" ",u=_.width-(y+m).length,b=_.width&&u>0?d.repeat(u):"",w+=_.align?y+m+b:d==="0"?y+b+m:b+y+m)}return w}var c=Object.create(null);function f(p){if(c[p])return c[p];for(var v=p,T,l=[],m=0;v;){if((T=a.text.exec(v))!==null)l.push(T[0]);else if((T=a.modulo.exec(v))!==null)l.push("%");else if((T=a.placeholder.exec(v))!==null){if(T[2]){m|=1;var w=[],S=T[2],M=[];if((M=a.key.exec(S))!==null)for(w.push(M[1]);(S=S.substring(M[0].length))!=="";)if((M=a.key_access.exec(S))!==null)w.push(M[1]);else if((M=a.index_access.exec(S))!==null)w.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]=w}else m|=2;if(m===3)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");l.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");v=v.substring(T[0].length)}return c[p]=l}t.sprintf=o,t.vsprintf=n,typeof window<"u"&&(window.sprintf=o,window.vsprintf=n,i=(function(){return{sprintf:o,vsprintf:n}}).call(t,r,t,e),i!==void 0&&(e.exports=i))})()},3711:function(e,t,r){e.exports=f;var i=r(2640),a=r(781),o={"2d":function(p,v,T){var l=p({order:v,scalarArguments:3,getters:T==="generic"?[0]:void 0,phase:function(w,S,M,_){return w>_|0},vertex:function(w,S,M,_,b,d,u,g,y,R,I,z,F){var B=(u<<0)+(g<<1)+(y<<2)+(R<<3)|0;if(!(B===0||B===15))switch(B){case 0:I.push([w-.5,S-.5]);break;case 1:I.push([w-.25-.25*(_+M-2*F)/(M-_),S-.25-.25*(b+M-2*F)/(M-b)]);break;case 2:I.push([w-.75-.25*(-_-M+2*F)/(_-M),S-.25-.25*(d+_-2*F)/(_-d)]);break;case 3:I.push([w-.5,S-.5-.5*(b+M+d+_-4*F)/(M-b+_-d)]);break;case 4:I.push([w-.25-.25*(d+b-2*F)/(b-d),S-.75-.25*(-b-M+2*F)/(b-M)]);break;case 5:I.push([w-.5-.5*(_+M+d+b-4*F)/(M-_+b-d),S-.5]);break;case 6:I.push([w-.5-.25*(-_-M+d+b)/(_-M+b-d),S-.5-.25*(-b-M+d+_)/(b-M+_-d)]);break;case 7:I.push([w-.75-.25*(d+b-2*F)/(b-d),S-.75-.25*(d+_-2*F)/(_-d)]);break;case 8:I.push([w-.75-.25*(-d-b+2*F)/(d-b),S-.75-.25*(-d-_+2*F)/(d-_)]);break;case 9:I.push([w-.5-.25*(_+M+-d-b)/(M-_+d-b),S-.5-.25*(b+M+-d-_)/(M-b+d-_)]);break;case 10:I.push([w-.5-.5*(-_-M+-d-b+4*F)/(_-M+d-b),S-.5]);break;case 11:I.push([w-.25-.25*(-d-b+2*F)/(d-b),S-.75-.25*(b+M-2*F)/(M-b)]);break;case 12:I.push([w-.5,S-.5-.5*(-b-M+-d-_+4*F)/(b-M+d-_)]);break;case 13:I.push([w-.75-.25*(_+M-2*F)/(M-_),S-.25-.25*(-d-_+2*F)/(d-_)]);break;case 14:I.push([w-.25-.25*(-_-M+2*F)/(_-M),S-.25-.25*(-b-M+2*F)/(b-M)]);break;case 15:I.push([w-.5,S-.5]);break}},cell:function(w,S,M,_,b,d,u,g,y){b?g.push([w,S]):g.push([S,w])}});return function(m,w){var S=[],M=[];return l(m,S,M,w),{positions:S,cells:M}}}};function n(p,v){var T=p.length+"d",l=o[T];if(l)return l(i,p,v)}function s(p,v){for(var T=a(p,v),l=T.length,m=new Array(l),w=new Array(l),S=0;SMath.max(_,b)?d[2]=1:_>Math.max(M,b)?d[0]=1:d[1]=1;for(var u=0,g=0,y=0;y<3;++y)u+=S[y]*S[y],g+=d[y]*S[y];for(var y=0;y<3;++y)d[y]-=g/u*S[y];return s(d,d),d}function T(S,M,_,b,d,u,g,y){this.center=i(_),this.up=i(b),this.right=i(d),this.radius=i([u]),this.angle=i([g,y]),this.angle.bounds=[[-1/0,-Math.PI/2],[1/0,Math.PI/2]],this.setDistanceLimits(S,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 R=0;R<16;++R)this.computedMatrix[R]=.5;this.recalcMatrix(0)}var l=T.prototype;l.setDistanceLimits=function(S,M){S>0?S=Math.log(S):S=-1/0,M>0?M=Math.log(M):M=1/0,M=Math.max(M,S),this.radius.bounds[0][0]=S,this.radius.bounds[1][0]=M},l.getDistanceLimits=function(S){var M=this.radius.bounds[0];return S?(S[0]=Math.exp(M[0][0]),S[1]=Math.exp(M[1][0]),S):[Math.exp(M[0][0]),Math.exp(M[1][0])]},l.recalcMatrix=function(S){this.center.curve(S),this.up.curve(S),this.right.curve(S),this.radius.curve(S),this.angle.curve(S);for(var M=this.computedUp,_=this.computedRight,b=0,d=0,u=0;u<3;++u)d+=M[u]*_[u],b+=M[u]*M[u];for(var g=Math.sqrt(b),y=0,u=0;u<3;++u)_[u]-=M[u]*d/b,y+=_[u]*_[u],M[u]/=g;for(var R=Math.sqrt(y),u=0;u<3;++u)_[u]/=R;var I=this.computedToward;n(I,M,_),s(I,I);for(var z=Math.exp(this.computedRadius[0]),F=this.computedAngle[0],B=this.computedAngle[1],O=Math.cos(F),P=Math.sin(F),N=Math.cos(B),U=Math.sin(B),X=this.computedCenter,te=O*N,ue=P*N,ie=U,le=-O*U,q=-P*U,J=N,ee=this.computedEye,Z=this.computedMatrix,u=0;u<3;++u){var se=te*_[u]+ue*I[u]+ie*M[u];Z[4*u+1]=le*_[u]+q*I[u]+J*M[u],Z[4*u+2]=se,Z[4*u+3]=0}var Q=Z[1],V=Z[5],re=Z[9],ae=Z[2],fe=Z[6],xe=Z[10],Ae=V*xe-re*fe,Pe=re*ae-Q*xe,Ce=Q*fe-V*ae,je=f(Ae,Pe,Ce);Ae/=je,Pe/=je,Ce/=je,Z[0]=Ae,Z[4]=Pe,Z[8]=Ce;for(var u=0;u<3;++u)ee[u]=X[u]+Z[2+4*u]*z;for(var u=0;u<3;++u){for(var y=0,at=0;at<3;++at)y+=Z[u+4*at]*ee[at];Z[12+u]=-y}Z[15]=1},l.getMatrix=function(S,M){this.recalcMatrix(S);var _=this.computedMatrix;if(M){for(var b=0;b<16;++b)M[b]=_[b];return M}return _};var m=[0,0,0];l.rotate=function(S,M,_,b){if(this.angle.move(S,M,_),b){this.recalcMatrix(S);var d=this.computedMatrix;m[0]=d[2],m[1]=d[6],m[2]=d[10];for(var u=this.computedUp,g=this.computedRight,y=this.computedToward,R=0;R<3;++R)d[4*R]=u[R],d[4*R+1]=g[R],d[4*R+2]=y[R];o(d,d,b,m);for(var R=0;R<3;++R)u[R]=d[4*R],g[R]=d[4*R+1];this.up.set(S,u[0],u[1],u[2]),this.right.set(S,g[0],g[1],g[2])}},l.pan=function(S,M,_,b){M=M||0,_=_||0,b=b||0,this.recalcMatrix(S);var d=this.computedMatrix;Math.exp(this.computedRadius[0]);var u=d[1],g=d[5],y=d[9],R=f(u,g,y);u/=R,g/=R,y/=R;var I=d[0],z=d[4],F=d[8],B=I*u+z*g+F*y;I-=u*B,z-=g*B,F-=y*B;var O=f(I,z,F);I/=O,z/=O,F/=O;var P=I*M+u*_,N=z*M+g*_,U=F*M+y*_;this.center.move(S,P,N,U);var X=Math.exp(this.computedRadius[0]);X=Math.max(1e-4,X+b),this.radius.set(S,Math.log(X))},l.translate=function(S,M,_,b){this.center.move(S,M||0,_||0,b||0)},l.setMatrix=function(S,M,_,b){var d=1;typeof _=="number"&&(d=_|0),(d<0||d>3)&&(d=1);var u=(d+2)%3;M||(this.recalcMatrix(S),M=this.computedMatrix);var g=M[d],y=M[d+4],R=M[d+8];if(b){var z=Math.abs(g),F=Math.abs(y),B=Math.abs(R),O=Math.max(z,F,B);z===O?(g=g<0?-1:1,y=R=0):B===O?(R=R<0?-1:1,g=y=0):(y=y<0?-1:1,g=R=0)}else{var I=f(g,y,R);g/=I,y/=I,R/=I}var P=M[u],N=M[u+4],U=M[u+8],X=P*g+N*y+U*R;P-=g*X,N-=y*X,U-=R*X;var te=f(P,N,U);P/=te,N/=te,U/=te;var ue=y*U-R*N,ie=R*P-g*U,le=g*N-y*P,q=f(ue,ie,le);ue/=q,ie/=q,le/=q,this.center.jump(S,Me,we,he),this.radius.idle(S),this.up.jump(S,g,y,R),this.right.jump(S,P,N,U);var J,ee;if(d===2){var Z=M[1],se=M[5],Q=M[9],V=Z*P+se*N+Q*U,re=Z*ue+se*ie+Q*le;Ae<0?J=-Math.PI/2:J=Math.PI/2,ee=Math.atan2(re,V)}else{var ae=M[2],fe=M[6],xe=M[10],Ae=ae*g+fe*y+xe*R,Pe=ae*P+fe*N+xe*U,Ce=ae*ue+fe*ie+xe*le;J=Math.asin(p(Ae)),ee=Math.atan2(Ce,Pe)}this.angle.jump(S,ee,J),this.recalcMatrix(S);var je=M[2],at=M[6],tt=M[10],Je=this.computedMatrix;a(Je,M);var Ze=Je[15],Me=Je[12]/Ze,we=Je[13]/Ze,he=Je[14]/Ze,De=Math.exp(this.computedRadius[0]);this.center.jump(S,Me-je*De,we-at*De,he-tt*De)},l.lastT=function(){return Math.max(this.center.lastT(),this.up.lastT(),this.right.lastT(),this.radius.lastT(),this.angle.lastT())},l.idle=function(S){this.center.idle(S),this.up.idle(S),this.right.idle(S),this.radius.idle(S),this.angle.idle(S)},l.flush=function(S){this.center.flush(S),this.up.flush(S),this.right.flush(S),this.radius.flush(S),this.angle.flush(S)},l.setDistance=function(S,M){M>0&&this.radius.set(S,Math.log(M))},l.lookAt=function(S,M,_,b){this.recalcMatrix(S),M=M||this.computedEye,_=_||this.computedCenter,b=b||this.computedUp;var d=b[0],u=b[1],g=b[2],y=f(d,u,g);if(!(y<1e-6)){d/=y,u/=y,g/=y;var R=M[0]-_[0],I=M[1]-_[1],z=M[2]-_[2],F=f(R,I,z);if(!(F<1e-6)){R/=F,I/=F,z/=F;var B=this.computedRight,O=B[0],P=B[1],N=B[2],U=d*O+u*P+g*N;O-=U*d,P-=U*u,N-=U*g;var X=f(O,P,N);if(!(X<.01&&(O=u*z-g*I,P=g*R-d*z,N=d*I-u*R,X=f(O,P,N),X<1e-6))){O/=X,P/=X,N/=X,this.up.set(S,d,u,g),this.right.set(S,O,P,N),this.center.set(S,_[0],_[1],_[2]),this.radius.set(S,Math.log(F));var te=u*N-g*P,ue=g*O-d*N,ie=d*P-u*O,le=f(te,ue,ie);te/=le,ue/=le,ie/=le;var q=d*R+u*I+g*z,J=O*R+P*I+N*z,ee=te*R+ue*I+ie*z,Z=Math.asin(p(q)),se=Math.atan2(ee,J),Q=this.angle._state,V=Q[Q.length-1],re=Q[Q.length-2];V=V%(2*Math.PI);var ae=Math.abs(V+2*Math.PI-se),fe=Math.abs(V-se),xe=Math.abs(V-2*Math.PI-se);ae0?N.pop():new ArrayBuffer(O)}t.mallocArrayBuffer=m;function w(B){return new Uint8Array(m(B),0,B)}t.mallocUint8=w;function S(B){return new Uint16Array(m(2*B),0,B)}t.mallocUint16=S;function M(B){return new Uint32Array(m(4*B),0,B)}t.mallocUint32=M;function _(B){return new Int8Array(m(B),0,B)}t.mallocInt8=_;function b(B){return new Int16Array(m(2*B),0,B)}t.mallocInt16=b;function d(B){return new Int32Array(m(4*B),0,B)}t.mallocInt32=d;function u(B){return new Float32Array(m(4*B),0,B)}t.mallocFloat32=t.mallocFloat=u;function g(B){return new Float64Array(m(8*B),0,B)}t.mallocFloat64=t.mallocDouble=g;function y(B){return n?new Uint8ClampedArray(m(B),0,B):w(B)}t.mallocUint8Clamped=y;function R(B){return s?new BigUint64Array(m(8*B),0,B):null}t.mallocBigUint64=R;function I(B){return c?new BigInt64Array(m(8*B),0,B):null}t.mallocBigInt64=I;function z(B){return new DataView(m(B),0,B)}t.mallocDataView=z;function F(B){B=i.nextPow2(B);var O=i.log2(B),P=v[O];return P.length>0?P.pop():new o(B)}t.mallocBuffer=F,t.clearCache=function(){for(var O=0;O<32;++O)f.UINT8[O].length=0,f.UINT16[O].length=0,f.UINT32[O].length=0,f.INT8[O].length=0,f.INT16[O].length=0,f.INT32[O].length=0,f.FLOAT[O].length=0,f.DOUBLE[O].length=0,f.BIGUINT64[O].length=0,f.BIGINT64[O].length=0,f.UINT8C[O].length=0,p[O].length=0,v[O].length=0}},1755:function(e){"use restrict";e.exports=t;function t(i){this.roots=new Array(i),this.ranks=new Array(i);for(var a=0;a",N="",U=P.length,X=N.length,te=F[0]===m||F[0]===M,ue=0,ie=-X;ue>-1&&(ue=B.indexOf(P,ue),!(ue===-1||(ie=B.indexOf(N,ue+U),ie===-1)||ie<=ue));){for(var le=ue;le=ie)O[le]=null,B=B.substr(0,le)+" "+B.substr(le+1);else if(O[le]!==null){var q=O[le].indexOf(F[0]);q===-1?O[le]+=F:te&&(O[le]=O[le].substr(0,q+1)+(1+parseInt(O[le][q+1]))+O[le].substr(q+2))}var J=ue+U,ee=B.substr(J,ie-J),Z=ee.indexOf(P);Z!==-1?ue=Z:ue=ie+X}return O}function d(z,F,B){for(var O=F.textAlign||"start",P=F.textBaseline||"alphabetic",N=[1<<30,1<<30],U=[0,0],X=z.length,te=0;te/g,` -`):B=B.replace(/\/g," ");var U="",X=[];for(V=0;V-1?parseInt(he[1+nt]):0,kt=Ke>-1?parseInt(De[1+Ke]):0;Et!==kt&&(et=et.replace(Ce(),"?px "),fe*=Math.pow(.75,kt-Et),et=et.replace("?px ",Ce())),ae+=.25*q*(kt-Et)}if(N.superscripts===!0){var Ut=he.indexOf(m),Yt=De.indexOf(m),vr=Ut>-1?parseInt(he[1+Ut]):0,hr=Yt>-1?parseInt(De[1+Yt]):0;vr!==hr&&(et=et.replace(Ce(),"?px "),fe*=Math.pow(.75,hr-vr),et=et.replace("?px ",Ce())),ae-=.25*q*(hr-vr)}if(N.bolds===!0){var Rr=he.indexOf(p)>-1,dr=De.indexOf(p)>-1;!Rr&&dr&&(wr?et=et.replace("italic ","italic bold "):et="bold "+et),Rr&&!dr&&(et=et.replace("bold ",""))}if(N.italics===!0){var wr=he.indexOf(T)>-1,yt=De.indexOf(T)>-1;!wr&&yt&&(et="italic "+et),wr&&!yt&&(et=et.replace("italic ",""))}F.font=et}for(Q=0;Q0&&(P=O.size),O.lineSpacing&&O.lineSpacing>0&&(N=O.lineSpacing),O.styletags&&O.styletags.breaklines&&(U.breaklines=!!O.styletags.breaklines),O.styletags&&O.styletags.bolds&&(U.bolds=!!O.styletags.bolds),O.styletags&&O.styletags.italics&&(U.italics=!!O.styletags.italics),O.styletags&&O.styletags.subscripts&&(U.subscripts=!!O.styletags.subscripts),O.styletags&&O.styletags.superscripts&&(U.superscripts=!!O.styletags.superscripts)),B.font=[O.fontStyle,O.fontVariant,O.fontWeight,P+"px",O.font].filter(function(te){return te}).join(" "),B.textAlign="start",B.textBaseline="alphabetic",B.direction="ltr";var X=u(F,B,z,P,N,U);return R(X,O,P)}},1538:function(e){(function(){if(typeof ses<"u"&&ses.ok&&!ses.ok())return;function r(g){g.permitHostObjects___&&g.permitHostObjects___(r)}typeof ses<"u"&&(ses.weakMapPermitHostObjects=r);var i=!1;if(typeof WeakMap=="function"){var a=WeakMap;if(!(typeof navigator<"u"&&/Firefox/.test(navigator.userAgent))){var o=new a,n=Object.freeze({});if(o.set(n,1),o.get(n)!==1)i=!0;else{e.exports=WeakMap;return}}}var s=Object.getOwnPropertyNames,c=Object.defineProperty,f=Object.isExtensible,p="weakmap:",v=p+"ident:"+Math.random()+"___";if(typeof crypto<"u"&&typeof crypto.getRandomValues=="function"&&typeof ArrayBuffer=="function"&&typeof Uint8Array=="function"){var T=new ArrayBuffer(25),l=new Uint8Array(T);crypto.getRandomValues(l),v=p+"rand:"+Array.prototype.map.call(l,function(g){return(g%36).toString(36)}).join("")+"___"}function m(g){return!(g.substr(0,p.length)==p&&g.substr(g.length-3)==="___")}if(c(Object,"getOwnPropertyNames",{value:function(y){return s(y).filter(m)}}),"getPropertyNames"in Object){var w=Object.getPropertyNames;c(Object,"getPropertyNames",{value:function(y){return w(y).filter(m)}})}function S(g){if(g!==Object(g))throw new TypeError("Not an object: "+g);var y=g[v];if(y&&y.key===g)return y;if(f(g)){y={key:g};try{return c(g,v,{value:y,writable:!1,enumerable:!1,configurable:!1}),y}catch{return}}}(function(){var g=Object.freeze;c(Object,"freeze",{value:function(z){return S(z),g(z)}});var y=Object.seal;c(Object,"seal",{value:function(z){return S(z),y(z)}});var R=Object.preventExtensions;c(Object,"preventExtensions",{value:function(z){return S(z),R(z)}})})();function M(g){return g.prototype=null,Object.freeze(g)}var _=!1;function b(){!_&&typeof console<"u"&&(_=!0,console.warn("WeakMap should be invoked as new WeakMap(), not WeakMap(). This will be an error in the future."))}var d=0,u=function(){this instanceof u||b();var g=[],y=[],R=d++;function I(O,P){var N,U=S(O);return U?R in U?U[R]:P:(N=g.indexOf(O),N>=0?y[N]:P)}function z(O){var P=S(O);return P?R in P:g.indexOf(O)>=0}function F(O,P){var N,U=S(O);return U?U[R]=P:(N=g.indexOf(O),N>=0?y[N]=P:(N=g.length,y[N]=P,g[N]=O)),this}function B(O){var P=S(O),N,U;return P?R in P&&delete P[R]:(N=g.indexOf(O),N<0?!1:(U=g.length-1,g[N]=void 0,y[N]=y[U],g[N]=g[U],g.length=U,y.length=U,!0))}return Object.create(u.prototype,{get___:{value:M(I)},has___:{value:M(z)},set___:{value:M(F)},delete___:{value:M(B)}})};u.prototype=Object.create(Object.prototype,{get:{value:function(y,R){return this.get___(y,R)},writable:!0,configurable:!0},has:{value:function(y){return this.has___(y)},writable:!0,configurable:!0},set:{value:function(y,R){return this.set___(y,R)},writable:!0,configurable:!0},delete:{value:function(y){return this.delete___(y)},writable:!0,configurable:!0}}),typeof a=="function"?function(){i&&typeof Proxy<"u"&&(Proxy=void 0);function g(){this instanceof u||b();var y=new a,R=void 0,I=!1;function z(P,N){return R?y.has(P)?y.get(P):R.get___(P,N):y.get(P,N)}function F(P){return y.has(P)||(R?R.has___(P):!1)}var B;i?B=function(P,N){return y.set(P,N),y.has(P)||(R||(R=new u),R.set(P,N)),this}:B=function(P,N){if(I)try{y.set(P,N)}catch{R||(R=new u),R.set___(P,N)}else y.set(P,N);return this};function O(P){var N=!!y.delete(P);return R&&R.delete___(P)||N}return Object.create(u.prototype,{get___:{value:M(z)},has___:{value:M(F)},set___:{value:M(B)},delete___:{value:M(O)},permitHostObjects___:{value:M(function(P){if(P===r)I=!0;else throw new Error("bogus call to permitHostObjects___")})}})}g.prototype=u.prototype,e.exports=g,Object.defineProperty(WeakMap.prototype,"constructor",{value:WeakMap,enumerable:!1,configurable:!0,writable:!0})}():(typeof Proxy<"u"&&(Proxy=void 0),e.exports=u)})()},236:function(e,t,r){var i=r(8284);e.exports=a;function a(){var o={};return function(n){if((typeof n!="object"||n===null)&&typeof n!="function")throw new Error("Weakmap-shim: Key must be object");var s=n.valueOf(o);return s&&s.identity===o?s:i(n,o)}}},8284:function(e){e.exports=t;function t(r,i){var a={identity:i},o=r.valueOf;return Object.defineProperty(r,"valueOf",{value:function(n){return n!==i?o.apply(this,arguments):a},writable:!0}),a}},606:function(e,t,r){var i=r(236);e.exports=a;function a(){var o=i();return{get:function(n,s){var c=o(n);return c.hasOwnProperty("value")?c.value:s},set:function(n,s){return o(n).value=s,this},has:function(n){return"value"in o(n)},delete:function(n){return delete o(n).value}}}},3349:function(e){function t(){return function(s,c,f,p,v,T){var l=s[0],m=f[0],w=[0],S=m;p|=0;var M=0,_=m;for(M=0;M=0!=d>=0&&v.push(w[0]+.5+.5*(b+d)/(b-d))}p+=_,++w[0]}}}function r(){return t()}var i=r;function a(s){var c={};return function(p,v,T){var l=p.dtype,m=p.order,w=[l,m.join()].join(),S=c[w];return S||(c[w]=S=s([l,m])),S(p.shape.slice(0),p.data,p.stride,p.offset|0,v,T)}}function o(s){return a(i.bind(void 0,s))}function n(s){return o({funcName:s.funcName})}e.exports=n({funcName:"zeroCrossings"})},781:function(e,t,r){e.exports=a;var i=r(3349);function a(o,n){var s=[];return n=+n||0,i(o.hi(o.shape[0]-1),s,n),s}},7790:function(){}},x={};function A(e){var t=x[e];if(t!==void 0)return t.exports;var r=x[e]={id:e,loaded:!1,exports:{}};return h[e].call(r.exports,r,r.exports,A),r.loaded=!0,r.exports}(function(){A.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}()})(),function(){A.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e}}();var E=A(1964);H.exports=E})()}}),H3=He({"node_modules/color-name/index.js"(Y,H){H.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]}}}),i6=He({"node_modules/color-normalize/node_modules/color-parse/index.js"(Y,H){var h=H3();H.exports=A;var x={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function A(E){var e,t=[],r=1,i;if(typeof E=="string")if(E=E.toLowerCase(),h[E])t=h[E].slice(),i="rgb";else if(E==="transparent")r=0,i="rgb",t=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(E)){var a=E.slice(1),o=a.length,n=o<=4;r=1,n?(t=[parseInt(a[0]+a[0],16),parseInt(a[1]+a[1],16),parseInt(a[2]+a[2],16)],o===4&&(r=parseInt(a[3]+a[3],16)/255)):(t=[parseInt(a[0]+a[1],16),parseInt(a[2]+a[3],16),parseInt(a[4]+a[5],16)],o===8&&(r=parseInt(a[6]+a[7],16)/255)),t[0]||(t[0]=0),t[1]||(t[1]=0),t[2]||(t[2]=0),i="rgb"}else if(e=/^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\s*\(([^\)]*)\)/.exec(E)){var s=e[1],c=s==="rgb",a=s.replace(/a$/,"");i=a;var o=a==="cmyk"?4:a==="gray"?1:3;t=e[2].trim().split(/\s*[,\/]\s*|\s+/).map(function(v,T){if(/%$/.test(v))return T===o?parseFloat(v)/100:a==="rgb"?parseFloat(v)*255/100:parseFloat(v);if(a[T]==="h"){if(/deg$/.test(v))return parseFloat(v);if(x[v]!==void 0)return x[v]}return parseFloat(v)}),s===a&&t.push(1),r=c||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)}),i=E.match(/([a-z])/ig).join("").toLowerCase());else isNaN(E)?Array.isArray(E)||E.length?(t=[E[0],E[1],E[2]],i="rgb",r=E.length===4?E[3]:1):E instanceof Object&&(E.r!=null||E.red!=null||E.R!=null?(i="rgb",t=[E.r||E.red||E.R||0,E.g||E.green||E.G||0,E.b||E.blue||E.B||0]):(i="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]),r=E.a||E.alpha||E.opacity||1,E.opacity!=null&&(r/=100)):(i="rgb",t=[E>>>16,(E&65280)>>>8,E&255]);return{space:i,values:t,alpha:r}}}}),o6=He({"node_modules/color-normalize/node_modules/color-rgba/index.js"(Y,H){var h=i6();H.exports=function(E){Array.isArray(E)&&E.raw&&(E=String.raw.apply(null,arguments));var e,t=h(E);if(!t.space)return[];var r=[0,0,0],i=t.space[0]==="h"?[360,100,100]:[255,255,255];return e=Array(3),e[0]=Math.min(Math.max(t.values[0],r[0]),i[0]),e[1]=Math.min(Math.max(t.values[1],r[1]),i[1]),e[2]=Math.min(Math.max(t.values[2],r[2]),i[2]),t.space[0]==="h"&&(e=x(e)),e.push(Math.min(Math.max(t.alpha,0),1)),e};function x(A){var E=A[0]/360,e=A[1]/100,t=A[2]/100,r,i,a,o,n,s=0;if(e===0)return n=t*255,[n,n,n];for(i=t<.5?t*(1+e):t+e-t*e,r=2*t-i,o=[0,0,0];s<3;)a=E+1/3*-(s-1),a<0?a++:a>1&&a--,n=6*a<1?r+(i-r)*6*a:2*a<1?i:3*a<2?r+(i-r)*(2/3-a)*6:r,o[s++]=n*255;return o}}}),Vm=He({"node_modules/clamp/index.js"(Y,H){H.exports=h;function h(x,A,E){return AE?E:x:xA?A:x}}}),V_=He({"node_modules/dtype/index.js"(Y,H){H.exports=function(h){switch(h){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}}}}),ap=He({"node_modules/color-normalize/index.js"(Y,H){var h=o6(),x=Vm(),A=V_();H.exports=function(t,r){(r==="float"||!r)&&(r="array"),r==="uint"&&(r="uint8"),r==="uint_clamped"&&(r="uint8_clamped");var i=A(r),a=new i(4),o=r!=="uint8"&&r!=="uint8_clamped";return(!t.length||typeof t=="string")&&(t=h(t),t[0]/=255,t[1]/=255,t[2]/=255),E(t)?(a[0]=t[0],a[1]=t[1],a[2]=t[2],a[3]=t[3]!=null?t[3]:255,o&&(a[0]/=255,a[1]/=255,a[2]/=255,a[3]/=255),a):(o?(a[0]=t[0],a[1]=t[1],a[2]=t[2],a[3]=t[3]!=null?t[3]:1):(a[0]=x(Math.floor(t[0]*255),0,255),a[1]=x(Math.floor(t[1]*255),0,255),a[2]=x(Math.floor(t[2]*255),0,255),a[3]=t[3]==null?255:x(Math.floor(t[3]*255),0,255)),a)};function E(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))}}}),cd=He({"src/lib/str2rgbarray.js"(Y,H){var h=ap();function x(A){return A?h(A):[0,0,0,1]}H.exports=x}}),fd=He({"src/lib/gl_format_color.js"(Y,H){var h=Vi(),x=Uf(),A=ap(),E=Eu(),e=mf().defaultLine,t=Lf().isArrayOrTypedArray,r=A(e),i=1;function a(f,p){var v=f;return v[3]*=p,v}function o(f){if(h(f))return r;var p=A(f);return p.length?p:r}function n(f){return h(f)?f:i}function s(f,p,v){var T=f.color;T&&T._inputArray&&(T=T._inputArray);var l=t(T),m=t(p),w=E.extractOpts(f),S=[],M,_,b,d,u;if(w.colorscale!==void 0?M=E.makeColorScaleFuncFromTrace(f):M=o,l?_=function(y,R){return y[R]===void 0?r:A(M(y[R]))}:_=o,m?b=function(y,R){return y[R]===void 0?i:n(y[R])}:b=n,l||m)for(var g=0;g0){var v=i.c2l(f);i._lowerLogErrorBound||(i._lowerLogErrorBound=v),i._lowerErrorBound=Math.min(i._lowerLogErrorBound,v)}}else o[n]=[-s[0]*r,s[1]*r]}return o}function A(e){for(var t=0;t-1?-1:R.indexOf("right")>-1?1:0}function w(R){return R==null?0:R.indexOf("top")>-1?-1:R.indexOf("bottom")>-1?1:0}function S(R){var I=0,z=0,F=[I,z];if(Array.isArray(R))for(var B=0;B=0){var X=T(N.position,N.delaunayColor,N.delaunayAxis);X.opacity=R.opacity,this.delaunayMesh?this.delaunayMesh.update(X):(X.gl=I,this.delaunayMesh=E(X),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)},v.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 y(R,I){var z=new p(R,I.uid);return z.update(I),z}H.exports=y}}),X3=He({"src/traces/scatter3d/attributes.js"(Y,H){var h=bc(),x=Mu(),A=eu(),E=_c().axisHoverFormat,e=us().hovertemplateAttrs,t=us().texttemplateAttrs,r=Ll(),i=W3(),a=q_(),o=Po().extendFlat,n=Uu().overrideAll,s=jd(),c=h.line,f=h.marker,p=f.line,v=o({width:c.width,dash:{valType:"enumerated",values:s(i),dflt:"solid"}},A("line"));function T(m){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 l=H.exports=n({x:h.x,y:h.y,z:{valType:"data_array"},text:o({},h.text,{}),texttemplate:t({},{}),hovertext:o({},h.hovertext,{}),hovertemplate:e(),xhoverformat:E("x"),yhoverformat:E("y"),zhoverformat:E("z"),mode:o({},h.mode,{dflt:"lines+markers"}),surfaceaxis:{valType:"enumerated",values:[-1,0,1,2],dflt:-1},surfacecolor:{valType:"color"},projection:{x:T(),y:T(),z:T()},connectgaps:h.connectgaps,line:v,marker:o({symbol:{valType:"enumerated",values:s(a),dflt:"circle",arrayOk:!0},size:o({},f.size,{dflt:8}),sizeref:f.sizeref,sizemin:f.sizemin,sizemode:f.sizemode,opacity:o({},f.opacity,{arrayOk:!1}),colorbar:f.colorbar,line:o({width:o({},p.width,{arrayOk:!1})},A("marker.line"))},A("marker")),textposition:o({},h.textposition,{dflt:"top center"}),textfont:x({noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,editType:"calc",colorEditType:"style",arrayOk:!0,variantValues:["normal","small-caps"]}),opacity:r.opacity,hoverinfo:o({},r.hoverinfo)},"calc","nested");l.x.editType=l.y.editType=l.z.editType="calc+clearAxisTypes"}}),u6=He({"src/traces/scatter3d/defaults.js"(Y,H){var h=qi(),x=Qr(),A=cu(),E=Zh(),e=rv(),t=av(),r=X3();H.exports=function(o,n,s,c){function f(M,_){return x.coerce(o,n,r,M,_)}var p=i(o,n,f,c);if(!p){n.visible=!1;return}f("text"),f("hovertext"),f("hovertemplate"),f("xhoverformat"),f("yhoverformat"),f("zhoverformat"),f("mode"),A.hasMarkers(n)&&E(o,n,s,c,f,{noSelect:!0,noAngle:!0}),A.hasLines(n)&&(f("connectgaps"),e(o,n,s,c,f)),A.hasText(n)&&(f("texttemplate"),t(o,n,c,f,{noSelect:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0}));var v=(n.line||{}).color,T=(n.marker||{}).color;f("surfaceaxis")>=0&&f("surfacecolor",v||T);for(var l=["x","y","z"],m=0;m<3;++m){var w="projection."+l[m];f(w+".show")&&(f(w+".opacity"),f(w+".scale"))}var S=h.getComponentMethod("errorbars","supplyDefaults");S(o,n,v||T||s,{axis:"z"}),S(o,n,v||T||s,{axis:"y",inherit:"z"}),S(o,n,v||T||s,{axis:"x",inherit:"z"})};function i(a,o,n,s){var c=0,f=n("x"),p=n("y"),v=n("z"),T=h.getComponentMethod("calendars","handleTraceDefaults");return T(a,o,["x","y","z"],s),f&&p&&v&&(c=Math.min(f.length,p.length,v.length),o._length=o._xlength=o._ylength=o._zlength=c),c}}}),c6=He({"src/traces/scatter3d/calc.js"(Y,H){var h=jv(),x=nv();H.exports=function(E,e){var t=[{x:!1,y:!1,trace:e,t:{}}];return h(t,e),x(E,e),t}}}),f6=He({"node_modules/get-canvas-context/index.js"(Y,H){H.exports=h;function h(x,A){if(typeof x!="string")throw new TypeError("must specify type string");if(A=A||{},typeof document>"u"&&!A.canvas)return null;var E=A.canvas||document.createElement("canvas");typeof A.width=="number"&&(E.width=A.width),typeof A.height=="number"&&(E.height=A.height);var e=A,t;try{var r=[x];x.indexOf("webgl")===0&&r.push("experimental-"+x);for(var i=0;i/g," "));o[n]=p,s.tickmode=c}}r.ticks=o;for(var n=0;n<3;++n){.5*(t.glplot.bounds[0][n]+t.glplot.bounds[1][n]);for(var v=0;v<2;++v)r.bounds[v][n]=t.glplot.bounds[v][n]}t.contourLevels=E(o)}}}),g6=He({"src/plots/gl3d/scene.js"(Y,H){var h=eh().gl_plot3d,x=h.createCamera,A=h.createScene,E=h6(),e=u1(),t=qi(),r=Qr(),i=r.preserveDrawingBuffer(),a=wo(),o=xc(),n=cd(),s=Z3(),c=fw(),f=v6(),p=d6(),v=p6(),T=gv().applyAutorangeOptions,l,m,w=!1;function S(z,F){var B=document.createElement("div"),O=z.container;this.graphDiv=z.graphDiv;var P=document.createElementNS("http://www.w3.org/2000/svg","svg");P.style.position="absolute",P.style.top=P.style.left="0px",P.style.width=P.style.height="100%",P.style["z-index"]=20,P.style["pointer-events"]="none",B.appendChild(P),this.svgContainer=P,B.id=z.id,B.style.position="absolute",B.style.top=B.style.left="0px",B.style.width=B.style.height="100%",O.appendChild(B),this.fullLayout=F,this.id=z.id||"scene",this.fullSceneLayout=F[this.id],this.plotArgs=[[],{},{}],this.axesOptions=f(F,F[this.id]),this.spikeOptions=p(F[this.id]),this.container=B,this.staticMode=!!z.staticPlot,this.pixelRatio=this.pixelRatio||z.plotGlPixelRatio||2,this.dataScale=[1,1,1],this.contourLevels=[[],[],[]],this.convertAnnotations=t.getComponentMethod("annotations3d","convert"),this.drawAnnotations=t.getComponentMethod("annotations3d","draw"),this.initializeGLPlot()}var M=S.prototype;M.prepareOptions=function(){var z=this,F={canvas:z.canvas,gl:z.gl,glOptions:{preserveDrawingBuffer:i,premultipliedAlpha:!0,antialias:!0},container:z.container,axes:z.axesOptions,spikes:z.spikeOptions,pickRadius:10,snapToData:!0,autoScale:!0,autoBounds:!1,cameraObject:z.camera,pixelRatio:z.pixelRatio};if(z.staticMode){if(!m&&(l=document.createElement("canvas"),m=E({canvas:l,preserveDrawingBuffer:!0,premultipliedAlpha:!0,antialias:!0}),!m))throw new Error("error creating static canvas/context for image server");F.gl=m,F.canvas=l}return F};var _=!0;M.tryCreatePlot=function(){var z=this,F=z.prepareOptions(),B=!0;try{z.glplot=A(F)}catch{if(z.staticMode||!_||i)B=!1;else{r.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{i=F.glOptions.preserveDrawingBuffer=!0,z.glplot=A(F)}catch{i=F.glOptions.preserveDrawingBuffer=!1,B=!1}}}return _=!1,B},M.initializeGLCamera=function(){var z=this,F=z.fullSceneLayout.camera,B=F.projection.type==="orthographic";z.camera=x(z.container,{center:[F.center.x,F.center.y,F.center.z],eye:[F.eye.x,F.eye.y,F.eye.z],up:[F.up.x,F.up.y,F.up.z],_ortho:B,zoomMin:.01,zoomMax:100,mode:"orbit"})},M.initializeGLPlot=function(){var z=this;z.initializeGLCamera();var F=z.tryCreatePlot();if(!F)return s(z);z.traces={},z.make4thDimension();var B=z.graphDiv,O=B.layout,P=function(){var U={};return z.isCameraChanged(O)&&(U[z.id+".camera"]=z.getCamera()),z.isAspectChanged(O)&&(U[z.id+".aspectratio"]=z.glplot.getAspectratio(),O[z.id].aspectmode!=="manual"&&(z.fullSceneLayout.aspectmode=O[z.id].aspectmode=U[z.id+".aspectmode"]="manual")),U},N=function(U){if(U.fullSceneLayout.dragmode!==!1){var X=P();U.saveLayout(O),U.graphDiv.emit("plotly_relayout",X)}};return z.glplot.canvas&&(z.glplot.canvas.addEventListener("mouseup",function(){N(z)}),z.glplot.canvas.addEventListener("touchstart",function(){w=!0}),z.glplot.canvas.addEventListener("wheel",function(U){if(B._context._scrollZoom.gl3d){if(z.camera._ortho){var X=U.deltaX>U.deltaY?1.1:.9090909090909091,te=z.glplot.getAspectratio();z.glplot.setAspectratio({x:X*te.x,y:X*te.y,z:X*te.z})}N(z)}},e?{passive:!1}:!1),z.glplot.canvas.addEventListener("mousemove",function(){if(z.fullSceneLayout.dragmode!==!1&&z.camera.mouseListener.buttons!==0){var U=P();z.graphDiv.emit("plotly_relayouting",U)}}),z.staticMode||z.glplot.canvas.addEventListener("webglcontextlost",function(U){B&&B.emit&&B.emit("plotly_webglcontextlost",{event:U,layer:z.id})},!1)),z.glplot.oncontextloss=function(){z.recoverContext()},z.glplot.onrender=function(){z.render()},!0},M.render=function(){var z=this,F=z.graphDiv,B,O=z.svgContainer,P=z.container.getBoundingClientRect();F._fullLayout._calcInverseTransform(F);var N=F._fullLayout._invScaleX,U=F._fullLayout._invScaleY,X=P.width*N,te=P.height*U;O.setAttributeNS(null,"viewBox","0 0 "+X+" "+te),O.setAttributeNS(null,"width",X),O.setAttributeNS(null,"height",te),v(z),z.glplot.axes.update(z.axesOptions);for(var ue=Object.keys(z.traces),ie=null,le=z.glplot.selection,q=0;q")):B.type==="isosurface"||B.type==="volume"?(Q.valueLabel=a.hoverLabelText(z._mockAxis,z._mockAxis.d2l(le.traceCoordinate[3]),B.valuehoverformat),xe.push("value: "+Q.valueLabel),le.textLabel&&xe.push(le.textLabel),fe=xe.join("
")):fe=le.textLabel;var Ae={x:le.traceCoordinate[0],y:le.traceCoordinate[1],z:le.traceCoordinate[2],data:Z._input,fullData:Z,curveNumber:Z.index,pointNumber:se};o.appendArrayPointValue(Ae,Z,se),B._module.eventData&&(Ae=Z._module.eventData(Ae,le,Z,{},se));var Pe={points:[Ae]};if(z.fullSceneLayout.hovermode){var Ce=[];o.loneHover({trace:Z,x:(.5+.5*ee[0]/ee[3])*X,y:(.5-.5*ee[1]/ee[3])*te,xLabel:Q.xLabel,yLabel:Q.yLabel,zLabel:Q.zLabel,text:fe,name:ie.name,color:o.castHoverOption(Z,se,"bgcolor")||ie.color,borderColor:o.castHoverOption(Z,se,"bordercolor"),fontFamily:o.castHoverOption(Z,se,"font.family"),fontSize:o.castHoverOption(Z,se,"font.size"),fontColor:o.castHoverOption(Z,se,"font.color"),nameLength:o.castHoverOption(Z,se,"namelength"),textAlign:o.castHoverOption(Z,se,"align"),hovertemplate:r.castOption(Z,se,"hovertemplate"),hovertemplateLabels:r.extendFlat({},Ae,Q),eventData:[Ae]},{container:O,gd:F,inOut_bbox:Ce}),Ae.bbox=Ce[0]}le.distance<5&&(le.buttons||w)?F.emit("plotly_click",Pe):F.emit("plotly_hover",Pe),this.oldEventData=Pe}else o.loneUnhover(O),this.oldEventData&&F.emit("plotly_unhover",this.oldEventData),this.oldEventData=void 0;z.drawAnnotations(z)},M.recoverContext=function(){var z=this;z.glplot.dispose();var F=function(){if(z.glplot.gl.isContextLost()){requestAnimationFrame(F);return}if(!z.initializeGLPlot()){r.error("Catastrophic and unrecoverable WebGL error. Context lost.");return}z.plot.apply(z,z.plotArgs)};requestAnimationFrame(F)};var b=["xaxis","yaxis","zaxis"];function d(z,F,B){for(var O=z.fullSceneLayout,P=0;P<3;P++){var N=b[P],U=N.charAt(0),X=O[N],te=F[U],ue=F[U+"calendar"],ie=F["_"+U+"length"];if(!r.isArrayOrTypedArray(te))B[0][P]=Math.min(B[0][P],0),B[1][P]=Math.max(B[1][P],ie-1);else for(var le,q=0;q<(ie||te.length);q++)if(r.isArrayOrTypedArray(te[q]))for(var J=0;JZ[1][U])Z[0][U]=-1,Z[1][U]=1;else{var je=Z[1][U]-Z[0][U];Z[0][U]-=je/32,Z[1][U]+=je/32}if(Q=[Z[0][U],Z[1][U]],Q=T(Q,te),Z[0][U]=Q[0],Z[1][U]=Q[1],te.isReversed()){var at=Z[0][U];Z[0][U]=Z[1][U],Z[1][U]=at}}else Q=te.range,Z[0][U]=te.r2l(Q[0]),Z[1][U]=te.r2l(Q[1]);Z[0][U]===Z[1][U]&&(Z[0][U]-=1,Z[1][U]+=1),te.range=[Z[0][U],Z[1][U]],te.limitRange(),O.glplot.setBounds(U,{min:te.range[0]*J[U],max:te.range[1]*J[U]})}var tt,Je=ie.aspectmode;if(Je==="cube")tt=[1,1,1];else if(Je==="manual"){var Ze=ie.aspectratio;tt=[Ze.x,Ze.y,Ze.z]}else if(Je==="auto"||Je==="data"){var Me=[1,1,1];for(U=0;U<3;++U){te=ie[b[U]],ue=te.type;var we=se[ue];Me[U]=Math.pow(we.acc,1/we.count)/J[U]}Je==="data"||Math.max.apply(null,Me)/Math.min.apply(null,Me)<=4?tt=Me:tt=[1,1,1]}else throw new Error("scene.js aspectRatio was not one of the enumerated types");ie.aspectratio.x=le.aspectratio.x=tt[0],ie.aspectratio.y=le.aspectratio.y=tt[1],ie.aspectratio.z=le.aspectratio.z=tt[2],O.glplot.setAspectratio(ie.aspectratio),O.viewInitial.aspectratio||(O.viewInitial.aspectratio={x:ie.aspectratio.x,y:ie.aspectratio.y,z:ie.aspectratio.z}),O.viewInitial.aspectmode||(O.viewInitial.aspectmode=ie.aspectmode);var he=ie.domain||null,De=F._size||null;if(he&&De){var et=O.container.style;et.position="absolute",et.left=De.l+he.x[0]*De.w+"px",et.top=De.t+(1-he.y[1])*De.h+"px",et.width=De.w*(he.x[1]-he.x[0])+"px",et.height=De.h*(he.y[1]-he.y[0])+"px"}O.glplot.redraw()}},M.destroy=function(){var z=this;z.glplot&&(z.camera.mouseListener.enabled=!1,z.container.removeEventListener("wheel",z.camera.wheelListener),z.camera=null,z.glplot.dispose(),z.container.parentNode.removeChild(z.container),z.glplot=null)};function g(z){return[[z.eye.x,z.eye.y,z.eye.z],[z.center.x,z.center.y,z.center.z],[z.up.x,z.up.y,z.up.z]]}function y(z){return{up:{x:z.up[0],y:z.up[1],z:z.up[2]},center:{x:z.center[0],y:z.center[1],z:z.center[2]},eye:{x:z.eye[0],y:z.eye[1],z:z.eye[2]},projection:{type:z._ortho===!0?"orthographic":"perspective"}}}M.getCamera=function(){var z=this;return z.camera.view.recalcMatrix(z.camera.view.lastT()),y(z.camera)},M.setViewport=function(z){var F=this,B=z.camera;F.camera.lookAt.apply(this,g(B)),F.glplot.setAspectratio(z.aspectratio);var O=B.projection.type==="orthographic",P=F.camera._ortho;O!==P&&(F.glplot.redraw(),F.glplot.clearRGBA(),F.glplot.dispose(),F.initializeGLPlot())},M.isCameraChanged=function(z){var F=this,B=F.getCamera(),O=r.nestedProperty(z,F.id+".camera"),P=O.get();function N(ue,ie,le,q){var J=["up","center","eye"],ee=["x","y","z"];return ie[J[le]]&&ue[J[le]][ee[q]]===ie[J[le]][ee[q]]}var U=!1;if(P===void 0)U=!0;else{for(var X=0;X<3;X++)for(var te=0;te<3;te++)if(!N(B,P,X,te)){U=!0;break}(!P.projection||B.projection&&B.projection.type!==P.projection.type)&&(U=!0)}return U},M.isAspectChanged=function(z){var F=this,B=F.glplot.getAspectratio(),O=r.nestedProperty(z,F.id+".aspectratio"),P=O.get();return P===void 0||P.x!==B.x||P.y!==B.y||P.z!==B.z},M.saveLayout=function(z){var F=this,B=F.fullLayout,O,P,N,U,X,te,ue=F.isCameraChanged(z),ie=F.isAspectChanged(z),le=ue||ie;if(le){var q={};if(ue&&(O=F.getCamera(),P=r.nestedProperty(z,F.id+".camera"),N=P.get(),q[F.id+".camera"]=N),ie&&(U=F.glplot.getAspectratio(),X=r.nestedProperty(z,F.id+".aspectratio"),te=X.get(),q[F.id+".aspectratio"]=te),t.call("_storeDirectGUIEdit",z,B._preGUI,q),ue){P.set(O);var J=r.nestedProperty(B,F.id+".camera");J.set(O)}if(ie){X.set(U);var ee=r.nestedProperty(B,F.id+".aspectratio");ee.set(U),F.glplot.redraw()}}return le},M.updateFx=function(z,F){var B=this,O=B.camera;if(O)if(z==="orbit")O.mode="orbit",O.keyBindingMode="rotate";else if(z==="turntable"){O.up=[0,0,1],O.mode="turntable",O.keyBindingMode="rotate";var P=B.graphDiv,N=P._fullLayout,U=B.fullSceneLayout.camera,X=U.up.x,te=U.up.y,ue=U.up.z;if(ue/Math.sqrt(X*X+te*te+ue*ue)<.999){var ie=B.id+".camera.up",le={x:0,y:0,z:1},q={};q[ie]=le;var J=P.layout;t.call("_storeDirectGUIEdit",J,N._preGUI,q),U.up=le,r.nestedProperty(J,ie).set(le)}}else O.keyBindingMode=z;B.fullSceneLayout.hovermode=F};function R(z,F,B){for(var O=0,P=B-1;O0)for(var X=255/U,te=0;te<3;++te)z[N+te]=Math.min(X*z[N+te],255)}}M.toImage=function(z){var F=this;z||(z="png"),F.staticMode&&F.container.appendChild(l),F.glplot.redraw();var B=F.glplot.gl,O=B.drawingBufferWidth,P=B.drawingBufferHeight;B.bindFramebuffer(B.FRAMEBUFFER,null);var N=new Uint8Array(O*P*4);B.readPixels(0,0,O,P,B.RGBA,B.UNSIGNED_BYTE,N),R(N,O,P),I(N,O,P);var U=document.createElement("canvas");U.width=O,U.height=P;var X=U.getContext("2d",{willReadFrequently:!0}),te=X.createImageData(O,P);te.data.set(N),X.putImageData(te,0,0);var ue;switch(z){case"jpeg":ue=U.toDataURL("image/jpeg");break;case"webp":ue=U.toDataURL("image/webp");break;default:ue=U.toDataURL("image/png")}return F.staticMode&&F.container.removeChild(l),ue},M.setConvert=function(){for(var z=this,F=0;F<3;F++){var B=z.fullSceneLayout[b[F]];a.setConvert(B,z.fullLayout),B.setScale=r.noop}},M.make4thDimension=function(){var z=this,F=z.graphDiv,B=F._fullLayout;z._mockAxis={type:"linear",showexponent:"all",exponentformat:"B"},a.setConvert(z._mockAxis,B)},H.exports=S}}),m6=He({"src/plots/gl3d/layout/attributes.js"(Y,H){H.exports={scene:{valType:"subplotid",dflt:"scene",editType:"calc+clearAxisTypes"}}}}),Y3=He({"src/plots/gl3d/layout/axis_attributes.js"(Y,H){var h=zi(),x=Kf(),A=Po().extendFlat,E=Uu().overrideAll;H.exports=E({visible:x.visible,showspikes:{valType:"boolean",dflt:!0},spikesides:{valType:"boolean",dflt:!0},spikethickness:{valType:"number",min:0,dflt:2},spikecolor:{valType:"color",dflt:h.defaultLine},showbackground:{valType:"boolean",dflt:!1},backgroundcolor:{valType:"color",dflt:"rgba(204, 204, 204, 0.5)"},showaxeslabels:{valType:"boolean",dflt:!0},color:x.color,categoryorder:x.categoryorder,categoryarray:x.categoryarray,title:{text:x.title.text,font:x.title.font},type:A({},x.type,{values:["-","linear","log","date","category"]}),autotypenumbers:x.autotypenumbers,autorange:x.autorange,autorangeoptions:{minallowed:x.autorangeoptions.minallowed,maxallowed:x.autorangeoptions.maxallowed,clipmin:x.autorangeoptions.clipmin,clipmax:x.autorangeoptions.clipmax,include:x.autorangeoptions.include,editType:"plot"},rangemode:x.rangemode,minallowed:x.minallowed,maxallowed:x.maxallowed,range:A({},x.range,{items:[{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}}],anim:!1}),tickmode:x.minor.tickmode,nticks:x.nticks,tick0:x.tick0,dtick:x.dtick,tickvals:x.tickvals,ticktext:x.ticktext,ticks:x.ticks,mirror:x.mirror,ticklen:x.ticklen,tickwidth:x.tickwidth,tickcolor:x.tickcolor,showticklabels:x.showticklabels,labelalias:x.labelalias,tickfont:x.tickfont,tickangle:x.tickangle,tickprefix:x.tickprefix,showtickprefix:x.showtickprefix,ticksuffix:x.ticksuffix,showticksuffix:x.showticksuffix,showexponent:x.showexponent,exponentformat:x.exponentformat,minexponent:x.minexponent,separatethousands:x.separatethousands,tickformat:x.tickformat,tickformatstops:x.tickformatstops,hoverformat:x.hoverformat,showline:x.showline,linecolor:x.linecolor,linewidth:x.linewidth,showgrid:x.showgrid,gridcolor:A({},x.gridcolor,{dflt:"rgb(204, 204, 204)"}),gridwidth:x.gridwidth,zeroline:x.zeroline,zerolinecolor:x.zerolinecolor,zerolinewidth:x.zerolinewidth},"plot","from-root")}}),$3=He({"src/plots/gl3d/layout/layout_attributes.js"(Y,H){var h=Y3(),x=Ku().attributes,A=Po().extendFlat,E=Qr().counterRegex;function e(t,r,i){return{x:{valType:"number",dflt:t,editType:"camera"},y:{valType:"number",dflt:r,editType:"camera"},z:{valType:"number",dflt:i,editType:"camera"},editType:"camera"}}H.exports={_arrayAttrRegexps:[E("scene",".annotations",!0)],bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"plot"},camera:{up:A(e(0,0,1),{}),center:A(e(0,0,0),{}),eye:A(e(1.25,1.25,1.25),{}),projection:{type:{valType:"enumerated",values:["perspective","orthographic"],dflt:"perspective",editType:"calc"},editType:"calc"},editType:"camera"},domain:x({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:h,yaxis:h,zaxis:h,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"}}}),y6=He({"src/plots/gl3d/layout/axis_defaults.js"(Y,H){var h=Uf().mix,x=Qr(),A=cl(),E=Y3(),e=uw(),t=lm(),r=["xaxis","yaxis","zaxis"],i=13600/187;H.exports=function(o,n,s){var c,f;function p(l,m){return x.coerce(c,f,E,l,m)}for(var v=0;v1;function p(v){if(!f){var T=h.validate(n[v],t[v]);if(T)return n[v]}}E(n,s,c,{type:i,attributes:t,handleDefaults:a,fullLayout:s,font:s.font,fullData:c,getDfltFromLayout:p,autotypenumbersDflt:s.autotypenumbers,paper_bgcolor:s.paper_bgcolor,calendar:s.calendar})};function a(o,n,s,c){for(var f=s("bgcolor"),p=x.combine(f,c.paper_bgcolor),v=["up","center","eye"],T=0;T.999)&&(M="turntable")}else M="turntable";s("dragmode",M),s("hovermode",c.getDfltFromLayout("hovermode"))}}}),np=He({"src/plots/gl3d/index.js"(Y){var H=Uu().overrideAll,h=Bd(),x=g6(),A=$f().getSubplotData,E=Qr(),e=Xh(),t="gl3d",r="scene";Y.name=t,Y.attr=r,Y.idRoot=r,Y.idRegex=Y.attrRegex=E.counterRegex("scene"),Y.attributes=m6(),Y.layoutAttributes=$3(),Y.baseLayoutAttrOverrides=H({hoverlabel:h.hoverlabel},"plot","nested"),Y.supplyLayoutDefaults=_6(),Y.plot=function(a){for(var o=a._fullLayout,n=a._fullData,s=o._subplots[t],c=0;c0){R=c[I];break}return R}function T(g,y){if(!(g<1||y<1)){for(var R=p(g),I=p(y),z=1,F=0;FS;)I--,I/=v(I),I++,I1?z:1};function M(g,y,R){var I=R[8]+R[2]*y[0]+R[5]*y[1];return g[0]=(R[6]+R[0]*y[0]+R[3]*y[1])/I,g[1]=(R[7]+R[1]*y[0]+R[4]*y[1])/I,g}function _(g,y,R){return b(g,y,M,R),g}function b(g,y,R,I){for(var z=[0,0],F=g.shape[0],B=g.shape[1],O=0;O0&&this.contourStart[I]!==null&&this.contourEnd[I]!==null&&this.contourEnd[I]>this.contourStart[I]))for(y[I]=!0,z=this.contourStart[I];zte&&(this.minValues[N]=te),this.maxValues[N]c&&(i.isomin=null,i.isomax=null);var f=n("x"),p=n("y"),v=n("z"),T=n("value");if(!f||!f.length||!p||!p.length||!v||!v.length||!T||!T.length){i.visible=!1;return}var l=x.getComponentMethod("calendars","handleTraceDefaults");l(r,i,["x","y","z"],o),n("valuehoverformat"),["x","y","z"].forEach(function(M){n(M+"hoverformat");var _="caps."+M,b=n(_+".show");b&&n(_+".fill");var d="slices."+M,u=n(d+".show");u&&(n(d+".fill"),n(d+".locations"))});var m=n("spaceframe.show");m&&n("spaceframe.fill");var w=n("surface.show");w&&(n("surface.count"),n("surface.fill"),n("surface.pattern"));var S=n("contour.show");S&&(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(M){n(M)}),E(r,i,o,n,{prefix:"",cLetter:"c"}),i._length=null}H.exports={supplyDefaults:e,supplyIsoDefaults:t}}}),H_=He({"src/traces/streamtube/calc.js"(Y,H){var h=Qr(),x=Ch();function A(r,i){i._len=Math.min(i.u.length,i.v.length,i.w.length,i.x.length,i.y.length,i.z.length),i._u=t(i.u,i._len),i._v=t(i.v,i._len),i._w=t(i.w,i._len),i._x=t(i.x,i._len),i._y=t(i.y,i._len),i._z=t(i.z,i._len);var a=E(i);i._gridFill=a.fill,i._Xs=a.Xs,i._Ys=a.Ys,i._Zs=a.Zs,i._len=a.len;var o=0,n,s,c;i.starts&&(n=t(i.starts.x||[]),s=t(i.starts.y||[]),c=t(i.starts.z||[]),o=Math.min(n.length,s.length,c.length)),i._startsX=n||[],i._startsY=s||[],i._startsZ=c||[];var f=0,p=1/0,v;for(v=0;v1&&(u=i[n-1],y=a[n-1],I=o[n-1]),s=0;su?"-":"+")+"x"),S=S.replace("y",(g>y?"-":"+")+"y"),S=S.replace("z",(R>I?"-":"+")+"z");var O=function(){n=0,z=[],F=[],B=[]};(!n||n0;p--){var v=Math.min(f[p],f[p-1]),T=Math.max(f[p],f[p-1]);if(T>v&&v-1}function re(yt,Fe){return yt===null?Fe:yt}function ae(yt,Fe,We){ue();var Oe=[Fe],de=[We];if(Z>=1)Oe=[Fe],de=[We];else if(Z>0){var me=Q(Fe,We);Oe=me.xyzv,de=me.abc}for(var be=0;be-1?We[Xe]:te(ht,bt,Ct);Wt>-1?Ie[Xe]=Wt:Ie[Xe]=le(ht,bt,Ct,re(yt,Zt))}q(Ie[0],Ie[1],Ie[2])}}function fe(yt,Fe,We){var Oe=function(de,me,be){ae(yt,[Fe[de],Fe[me],Fe[be]],[We[de],We[me],We[be]])};Oe(0,1,2),Oe(2,3,0)}function xe(yt,Fe,We){var Oe=function(de,me,be){ae(yt,[Fe[de],Fe[me],Fe[be]],[We[de],We[me],We[be]])};Oe(0,1,2),Oe(3,0,1),Oe(2,3,0),Oe(1,2,3)}function Ae(yt,Fe,We,Oe){var de=yt[3];deOe&&(de=Oe);for(var me=(yt[3]-de)/(yt[3]-Fe[3]+1e-9),be=[],Ie=0;Ie<4;Ie++)be[Ie]=(1-me)*yt[Ie]+me*Fe[Ie];return be}function Pe(yt,Fe,We){return yt>=Fe&&yt<=We}function Ce(yt){var Fe=.001*(O-B);return yt>=B-Fe&&yt<=O+Fe}function je(yt){for(var Fe=[],We=0;We<4;We++){var Oe=yt[We];Fe.push([c._x[Oe],c._y[Oe],c._z[Oe],c._value[Oe]])}return Fe}var at=3;function tt(yt,Fe,We,Oe,de,me){me||(me=1),We=[-1,-1,-1];var be=!1,Ie=[Pe(Fe[0][3],Oe,de),Pe(Fe[1][3],Oe,de),Pe(Fe[2][3],Oe,de)];if(!Ie[0]&&!Ie[1]&&!Ie[2])return!1;var Xe=function(bt,Ct,Zt){return Ce(Ct[0][3])&&Ce(Ct[1][3])&&Ce(Ct[2][3])?(ae(bt,Ct,Zt),!0):meIe?[z,me]:[me,F];Ut(Fe,Xe[0],Xe[1])}}var ht=[[Math.min(B,F),Math.max(B,F)],[Math.min(z,O),Math.max(z,O)]];["x","y","z"].forEach(function(bt){for(var Ct=[],Zt=0;Zt0&&(Ia.push(Ga.id),bt==="x"?La.push([Ga.distRatio,0,0]):bt==="y"?La.push([0,Ga.distRatio,0]):La.push([0,0,Ga.distRatio]))}else bt==="x"?ia=Rr(1,u-1):bt==="y"?ia=Rr(1,g-1):ia=Rr(1,y-1);Ia.length>0&&(bt==="x"?Ct[Wt]=Yt(yt,Ia,rr,Jt,La,Ct[Wt]):bt==="y"?Ct[Wt]=vr(yt,Ia,rr,Jt,La,Ct[Wt]):Ct[Wt]=hr(yt,Ia,rr,Jt,La,Ct[Wt]),Wt++),ia.length>0&&(bt==="x"?Ct[Wt]=et(yt,ia,rr,Jt,Ct[Wt]):bt==="y"?Ct[Wt]=nt(yt,ia,rr,Jt,Ct[Wt]):Ct[Wt]=Ke(yt,ia,rr,Jt,Ct[Wt]),Wt++)}var ba=c.caps[bt];ba.show&&ba.fill&&(se(ba.fill),bt==="x"?Ct[Wt]=et(yt,[0,u-1],rr,Jt,Ct[Wt]):bt==="y"?Ct[Wt]=nt(yt,[0,g-1],rr,Jt,Ct[Wt]):Ct[Wt]=Ke(yt,[0,y-1],rr,Jt,Ct[Wt]),Wt++)}}),w===0&&ie(),c._meshX=P,c._meshY=N,c._meshZ=U,c._meshIntensity=X,c._Xs=_,c._Ys=b,c._Zs=d}return wr(),c}function s(c,f){var p=c.glplot.gl,v=h({gl:p}),T=new i(c,v,f.uid);return v._trace=T,T.update(f),c.glplot.add(v),T}H.exports={findNearestOnAxis:r,generateIsoMeshes:n,createIsosurfaceTrace:s}}}),M6=He({"src/traces/isosurface/index.js"(Y,H){H.exports={attributes:G_(),supplyDefaults:J3().supplyDefaults,calc:Q3(),colorbar:{min:"cmin",max:"cmax"},plot:W_().createIsosurfaceTrace,moduleType:"trace",name:"isosurface",basePlotModule:np(),categories:["gl3d","showLegend"],meta:{}}}}),E6=He({"lib/isosurface.js"(Y,H){H.exports=M6()}}),eT=He({"src/traces/volume/attributes.js"(Y,H){var h=eu(),x=G_(),A=qm(),E=Ll(),e=Po().extendFlat,t=Uu().overrideAll,r=H.exports=t(e({x:x.x,y:x.y,z:x.z,value:x.value,isomin:x.isomin,isomax:x.isomax,surface:x.surface,spaceframe:{show:{valType:"boolean",dflt:!1},fill:{valType:"number",min:0,max:1,dflt:1}},slices:x.slices,caps:x.caps,text:x.text,hovertext:x.hovertext,xhoverformat:x.xhoverformat,yhoverformat:x.yhoverformat,zhoverformat:x.zhoverformat,valuehoverformat:x.valuehoverformat,hovertemplate:x.hovertemplate},h("",{colorAttr:"`value`",showScaleDflt:!0,editTypeOverride:"calc"}),{colorbar:x.colorbar,opacity:x.opacity,opacityscale:A.opacityscale,lightposition:x.lightposition,lighting:x.lighting,flatshading:x.flatshading,contour:x.contour,hoverinfo:e({},E.hoverinfo),showlegend:e({},E.showlegend,{dflt:!1})}),"calc","nested");r.x.editType=r.y.editType=r.z.editType=r.value.editType="calc+clearAxisTypes"}}),k6=He({"src/traces/volume/defaults.js"(Y,H){var h=Qr(),x=eT(),A=J3().supplyIsoDefaults,E=K3().opacityscaleDefaults;H.exports=function(t,r,i,a){function o(n,s){return h.coerce(t,r,x,n,s)}A(t,r,i,a,o),E(t,r,a,o)}}}),C6=He({"src/traces/volume/convert.js"(Y,H){var h=eh().gl_mesh3d,x=fd().parseColorScale,A=Qr().isArrayOrTypedArray,E=cd(),e=Eu().extractOpts,t=fg(),r=W_().findNearestOnAxis,i=W_().generateIsoMeshes;function a(s,c,f){this.scene=s,this.uid=f,this.mesh=c,this.name="",this.data=null,this.showContour=!1}var o=a.prototype;o.handlePick=function(s){if(s.object===this.mesh){var c=s.data.index,f=this.data._meshX[c],p=this.data._meshY[c],v=this.data._meshZ[c],T=this.data._Ys.length,l=this.data._Zs.length,m=r(f,this.data._Xs).id,w=r(p,this.data._Ys).id,S=r(v,this.data._Zs).id,M=s.index=S+l*w+l*T*m;s.traceCoordinate=[this.data._meshX[M],this.data._meshY[M],this.data._meshZ[M],this.data._value[M]];var _=this.data.hovertext||this.data.text;return A(_)&&_[M]!==void 0?s.textLabel=_[M]:_&&(s.textLabel=_),!0}},o.update=function(s){var c=this.scene,f=c.fullSceneLayout;this.data=i(s);function p(w,S,M,_){return S.map(function(b){return w.d2l(b,0,_)*M})}var v=t(p(f.xaxis,s._meshX,c.dataScale[0],s.xcalendar),p(f.yaxis,s._meshY,c.dataScale[1],s.ycalendar),p(f.zaxis,s._meshZ,c.dataScale[2],s.zcalendar)),T=t(s._meshI,s._meshJ,s._meshK),l={positions:v,cells:T,lightPosition:[s.lightposition.x,s.lightposition.y,s.lightposition.z],ambient:s.lighting.ambient,diffuse:s.lighting.diffuse,specular:s.lighting.specular,roughness:s.lighting.roughness,fresnel:s.lighting.fresnel,vertexNormalsEpsilon:s.lighting.vertexnormalsepsilon,faceNormalsEpsilon:s.lighting.facenormalsepsilon,opacity:s.opacity,opacityscale:s.opacityscale,contourEnable:s.contour.show,contourColor:E(s.contour.color).slice(0,3),contourWidth:s.contour.width,useFacetNormals:s.flatshading},m=e(s);l.vertexIntensity=s._meshIntensity,l.vertexIntensityBounds=[m.min,m.max],l.colormap=x(s),this.mesh.update(l)},o.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function n(s,c){var f=s.glplot.gl,p=h({gl:f}),v=new a(s,p,c.uid);return p._trace=v,v.update(c),s.glplot.add(p),v}H.exports=n}}),L6=He({"src/traces/volume/index.js"(Y,H){H.exports={attributes:eT(),supplyDefaults:k6(),calc:Q3(),colorbar:{min:"cmin",max:"cmax"},plot:C6(),moduleType:"trace",name:"volume",basePlotModule:np(),categories:["gl3d","showLegend"],meta:{}}}}),P6=He({"lib/volume.js"(Y,H){H.exports=L6()}}),I6=He({"src/traces/mesh3d/defaults.js"(Y,H){var h=qi(),x=Qr(),A=If(),E=cg();H.exports=function(t,r,i,a){function o(p,v){return x.coerce(t,r,E,p,v)}function n(p){var v=p.map(function(T){var l=o(T);return l&&x.isArrayOrTypedArray(l)?l:null});return v.every(function(T){return T&&T.length===v[0].length})&&v}var s=n(["x","y","z"]);if(!s){r.visible=!1;return}if(n(["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 c=h.getComponentMethod("calendars","handleTraceDefaults");c(t,r,["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(p){o(p)});var f=o("contour.show");f&&(o("contour.color"),o("contour.width")),"intensity"in t?(o("intensity"),o("intensitymode"),A(t,r,a,o,{prefix:"",cLetter:"c"})):(r.showscale=!1,"facecolor"in t?o("facecolor"):"vertexcolor"in t?o("vertexcolor"):o("color",i)),o("text"),o("hovertext"),o("hovertemplate"),o("xhoverformat"),o("yhoverformat"),o("zhoverformat"),r._length=null}}}),R6=He({"src/traces/mesh3d/calc.js"(Y,H){var h=Ch();H.exports=function(A,E){E.intensity&&h(A,E,{vals:E.intensity,containerStr:"",cLetter:"c"})}}}),D6=He({"src/traces/mesh3d/convert.js"(Y,H){var h=eh().gl_mesh3d,x=eh().delaunay_triangulate,A=eh().alpha_shape,E=eh().convex_hull,e=fd().parseColorScale,t=Qr().isArrayOrTypedArray,r=cd(),i=Eu().extractOpts,a=fg();function o(l,m,w){this.scene=l,this.uid=w,this.mesh=m,this.name="",this.color="#fff",this.data=null,this.showContour=!1}var n=o.prototype;n.handlePick=function(l){if(l.object===this.mesh){var m=l.index=l.data.index;l.data._cellCenter?l.traceCoordinate=l.data.dataCoordinate:l.traceCoordinate=[this.data.x[m],this.data.y[m],this.data.z[m]];var w=this.data.hovertext||this.data.text;return t(w)&&w[m]!==void 0?l.textLabel=w[m]:w&&(l.textLabel=w),!0}};function s(l){for(var m=[],w=l.length,S=0;S=m-.5)return!1;return!0}n.update=function(l){var m=this.scene,w=m.fullSceneLayout;this.data=l;var S=l.x.length,M=a(c(w.xaxis,l.x,m.dataScale[0],l.xcalendar),c(w.yaxis,l.y,m.dataScale[1],l.ycalendar),c(w.zaxis,l.z,m.dataScale[2],l.zcalendar)),_;if(l.i&&l.j&&l.k){if(l.i.length!==l.j.length||l.j.length!==l.k.length||!v(l.i,S)||!v(l.j,S)||!v(l.k,S))return;_=a(f(l.i),f(l.j),f(l.k))}else l.alphahull===0?_=E(M):l.alphahull>0?_=A(l.alphahull,M):_=p(l.delaunayaxis,M);var b={positions:M,cells:_,lightPosition:[l.lightposition.x,l.lightposition.y,l.lightposition.z],ambient:l.lighting.ambient,diffuse:l.lighting.diffuse,specular:l.lighting.specular,roughness:l.lighting.roughness,fresnel:l.lighting.fresnel,vertexNormalsEpsilon:l.lighting.vertexnormalsepsilon,faceNormalsEpsilon:l.lighting.facenormalsepsilon,opacity:l.opacity,contourEnable:l.contour.show,contourColor:r(l.contour.color).slice(0,3),contourWidth:l.contour.width,useFacetNormals:l.flatshading};if(l.intensity){var d=i(l);this.color="#fff";var u=l.intensitymode;b[u+"Intensity"]=l.intensity,b[u+"IntensityBounds"]=[d.min,d.max],b.colormap=e(l)}else l.vertexcolor?(this.color=l.vertexcolor[0],b.vertexColors=s(l.vertexcolor)):l.facecolor?(this.color=l.facecolor[0],b.cellColors=s(l.facecolor)):(this.color=l.color,b.meshColor=r(l.color));this.mesh.update(b)},n.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function T(l,m){var w=l.glplot.gl,S=h({gl:w}),M=new o(l,S,m.uid);return S._trace=M,M.update(m),l.glplot.add(S),M}H.exports=T}}),z6=He({"src/traces/mesh3d/index.js"(Y,H){H.exports={attributes:cg(),supplyDefaults:I6(),calc:R6(),colorbar:{min:"cmin",max:"cmax"},plot:D6(),moduleType:"trace",name:"mesh3d",basePlotModule:np(),categories:["gl3d","showLegend"],meta:{}}}}),F6=He({"lib/mesh3d.js"(Y,H){H.exports=z6()}}),tT=He({"src/traces/cone/attributes.js"(Y,H){var h=eu(),x=_c().axisHoverFormat,A=us().hovertemplateAttrs,E=cg(),e=Ll(),t=Po().extendFlat,r={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:A({editType:"calc"},{keys:["norm"]}),uhoverformat:x("u",1),vhoverformat:x("v",1),whoverformat:x("w",1),xhoverformat:x("x"),yhoverformat:x("y"),zhoverformat:x("z"),showlegend:t({},e.showlegend,{dflt:!1})};t(r,h("",{colorAttr:"u/v/w norm",showScaleDflt:!0,editTypeOverride:"calc"}));var i=["opacity","lightposition","lighting"];i.forEach(function(a){r[a]=E[a]}),r.hoverinfo=t({},e.hoverinfo,{editType:"calc",flags:["x","y","z","u","v","w","norm","text","name"],dflt:"x+y+z+norm+text+name"}),H.exports=r}}),O6=He({"src/traces/cone/defaults.js"(Y,H){var h=Qr(),x=If(),A=tT();H.exports=function(e,t,r,i){function a(T,l){return h.coerce(e,t,A,T,l)}var o=a("u"),n=a("v"),s=a("w"),c=a("x"),f=a("y"),p=a("z");if(!o||!o.length||!n||!n.length||!s||!s.length||!c||!c.length||!f||!f.length||!p||!p.length){t.visible=!1;return}var v=a("sizemode");a("sizeref",v==="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"),x(e,t,i,a,{prefix:"",cLetter:"c"}),a("text"),a("hovertext"),a("hovertemplate"),a("uhoverformat"),a("vhoverformat"),a("whoverformat"),a("xhoverformat"),a("yhoverformat"),a("zhoverformat"),t._length=null}}}),B6=He({"src/traces/cone/calc.js"(Y,H){var h=Ch();H.exports=function(A,E){for(var e=E.u,t=E.v,r=E.w,i=Math.min(E.x.length,E.y.length,E.z.length,e.length,t.length,r.length),a=-1/0,o=1/0,n=0;n2?v=f.slice(1,p-1):p===2?v=[(f[0]+f[1])/2]:v=f,v}function n(f){var p=f.length;return p===1?[.5,.5]:[f[1]-f[0],f[p-1]-f[p-2]]}function s(f,p){var v=f.fullSceneLayout,T=f.dataScale,l=p._len,m={};function w(le,q){var J=v[q],ee=T[r[q]];return A.simpleMap(le,function(Z){return J.d2l(Z)*ee})}if(m.vectors=t(w(p._u,"xaxis"),w(p._v,"yaxis"),w(p._w,"zaxis"),l),!l)return{positions:[],cells:[]};var S=w(p._Xs,"xaxis"),M=w(p._Ys,"yaxis"),_=w(p._Zs,"zaxis");m.meshgrid=[S,M,_],m.gridFill=p._gridFill;var b=p._slen;if(b)m.startingPositions=t(w(p._startsX,"xaxis"),w(p._startsY,"yaxis"),w(p._startsZ,"zaxis"));else{for(var d=M[0],u=o(S),g=o(_),y=new Array(u.length*g.length),R=0,I=0;Id&&(d=R[0]),R[1]u&&(u=R[1])}function y(R){switch(R.type){case"GeometryCollection":R.geometries.forEach(y);break;case"Point":g(R.coordinates);break;case"MultiPoint":R.coordinates.forEach(g);break}}w.arcs.forEach(function(R){for(var I=-1,z=R.length,F;++Id&&(d=F[0]),F[1]u&&(u=F[1])});for(M in w.objects)y(w.objects[M]);return[_,b,d,u]}function e(w,S){for(var M,_=w.length,b=_-S;b<--_;)M=w[b],w[b++]=w[_],w[_]=M}function t(w,S){return typeof S=="string"&&(S=w.objects[S]),S.type==="GeometryCollection"?{type:"FeatureCollection",features:S.geometries.map(function(M){return r(w,M)})}:r(w,S)}function r(w,S){var M=S.id,_=S.bbox,b=S.properties==null?{}:S.properties,d=i(w,S);return M==null&&_==null?{type:"Feature",properties:b,geometry:d}:_==null?{type:"Feature",id:M,properties:b,geometry:d}:{type:"Feature",id:M,bbox:_,properties:b,geometry:d}}function i(w,S){var M=A(w.transform),_=w.arcs;function b(I,z){z.length&&z.pop();for(var F=_[I<0?~I:I],B=0,O=F.length;B1)_=s(w,S,M);else for(b=0,_=new Array(d=w.arcs.length);b1)for(var z=1,F=g(R[0]),B,O;zF&&(O=R[0],R[0]=R[z],R[z]=O,F=B);return R}).filter(function(y){return y.length>0})}}function v(w,S){for(var M=0,_=w.length;M<_;){var b=M+_>>>1;w[b]=2))throw new Error("n must be ≥2");y=w.bbox||E(w);var M=y[0],_=y[1],b=y[2],d=y[3],u;S={scale:[b-M?(b-M)/(u-1):1,d-_?(d-_)/(u-1):1],translate:[M,_]}}else y=w.bbox;var g=l(S),y,R,I=w.objects,z={};function F(P){return g(P)}function B(P){var N;switch(P.type){case"GeometryCollection":N={type:"GeometryCollection",geometries:P.geometries.map(B)};break;case"Point":N={type:"Point",coordinates:F(P.coordinates)};break;case"MultiPoint":N={type:"MultiPoint",coordinates:P.coordinates.map(F)};break;default:return P}return P.id!=null&&(N.id=P.id),P.bbox!=null&&(N.bbox=P.bbox),P.properties!=null&&(N.properties=P.properties),N}function O(P){var N=0,U=1,X=P.length,te,ue=new Array(X);for(ue[0]=g(P[0],0);++N0&&(E.push(e),e=[])}return e.length>0&&E.push(e),E},Y.makeLine=function(h){return h.length===1?{type:"LineString",coordinates:h[0]}:{type:"MultiLineString",coordinates:h}},Y.makePolygon=function(h){if(h.length===1)return{type:"Polygon",coordinates:h};for(var x=new Array(h.length),A=0;Ae(B,z)),F)}function r(I,z,F={}){for(const O of I){if(O.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");if(O[O.length-1].length!==O[0].length)throw new Error("First and last Position are not equivalent.");for(let P=0;Pr(B,z)),F)}function a(I,z,F={}){if(I.length<2)throw new Error("coordinates must be an array of two or more positions");return A({type:"LineString",coordinates:I},z,F)}function o(I,z,F={}){return n(I.map(B=>a(B,z)),F)}function n(I,z={}){const F={type:"FeatureCollection"};return z.id&&(F.id=z.id),z.bbox&&(F.bbox=z.bbox),F.features=I,F}function s(I,z,F={}){return A({type:"MultiLineString",coordinates:I},z,F)}function c(I,z,F={}){return A({type:"MultiPoint",coordinates:I},z,F)}function f(I,z,F={}){return A({type:"MultiPolygon",coordinates:I},z,F)}function p(I,z,F={}){return A({type:"GeometryCollection",geometries:I},z,F)}function v(I,z=0){if(z&&!(z>=0))throw new Error("precision must be a positive number");const F=Math.pow(10,z||0);return Math.round(I*F)/F}function T(I,z="kilometers"){const F=h[z];if(!F)throw new Error(z+" units is invalid");return I*F}function l(I,z="kilometers"){const F=h[z];if(!F)throw new Error(z+" units is invalid");return I/F}function m(I,z){return M(l(I,z))}function w(I){let z=I%360;return z<0&&(z+=360),z}function S(I){return I=I%360,I>180?I-360:I<-180?I+360:I}function M(I){return I%(2*Math.PI)*180/Math.PI}function _(I){return I%360*Math.PI/180}function b(I,z="kilometers",F="kilometers"){if(!(I>=0))throw new Error("length must be a positive number");return T(l(I,z),F)}function d(I,z="meters",F="kilometers"){if(!(I>=0))throw new Error("area must be a positive number");const B=x[z];if(!B)throw new Error("invalid original units");const O=x[F];if(!O)throw new Error("invalid final units");return I/B*O}function u(I){return!isNaN(I)&&I!==null&&!Array.isArray(I)}function g(I){return I!==null&&typeof I=="object"&&!Array.isArray(I)}function y(I){if(!I)throw new Error("bbox is required");if(!Array.isArray(I))throw new Error("bbox must be an Array");if(I.length!==4&&I.length!==6)throw new Error("bbox must be an Array of 4 or 6 numbers");I.forEach(z=>{if(!u(z))throw new Error("bbox must only contain numbers")})}function R(I){if(!I)throw new Error("id is required");if(["string","number"].indexOf(typeof I)===-1)throw new Error("id must be a number or a string")}Y.areaFactors=x,Y.azimuthToBearing=S,Y.bearingToAzimuth=w,Y.convertArea=d,Y.convertLength=b,Y.degreesToRadians=_,Y.earthRadius=H,Y.factors=h,Y.feature=A,Y.featureCollection=n,Y.geometry=E,Y.geometryCollection=p,Y.isNumber=u,Y.isObject=g,Y.lengthToDegrees=m,Y.lengthToRadians=l,Y.lineString=a,Y.lineStrings=o,Y.multiLineString=s,Y.multiPoint=c,Y.multiPolygon=f,Y.point=e,Y.points=t,Y.polygon=r,Y.polygons=i,Y.radiansToDegrees=M,Y.radiansToLength=T,Y.round=v,Y.validateBBox=y,Y.validateId=R}}),$_=He({"node_modules/@turf/meta/dist/cjs/index.cjs"(Y){Object.defineProperty(Y,"__esModule",{value:!0});var H=Y_();function h(l,m,w){if(l!==null)for(var S,M,_,b,d,u,g,y=0,R=0,I,z=l.type,F=z==="FeatureCollection",B=z==="Feature",O=F?l.features.length:1,P=0;Pu||F>g||B>y){d=R,u=S,g=F,y=B,_=0;return}var O=H.lineString.call(void 0,[d,R],w.properties);if(m(O,S,M,B,_)===!1)return!1;_++,d=R})===!1)return!1}}})}function c(l,m,w){var S=w,M=!1;return s(l,function(_,b,d,u,g){M===!1&&w===void 0?S=_:S=m(S,_,b,d,u,g),M=!0}),S}function f(l,m){if(!l)throw new Error("geojson is required");o(l,function(w,S,M){if(w.geometry!==null){var _=w.geometry.type,b=w.geometry.coordinates;switch(_){case"LineString":if(m(w,S,M,0,0)===!1)return!1;break;case"Polygon":for(var d=0;do+A(n),0)}function A(a){let o=0,n;switch(a.type){case"Polygon":return E(a.coordinates);case"MultiPolygon":for(n=0;n0){o+=Math.abs(r(a[0]));for(let n=1;n=o?(s+2)%o:s+2],v=c[0]*t,T=f[1]*t,l=p[0]*t;n+=(l-v)*Math.sin(T),s++}return n*e}var i=x;Y.area=x,Y.default=i}}),$6=He({"node_modules/@turf/centroid/dist/cjs/index.cjs"(Y){Object.defineProperty(Y,"__esModule",{value:!0});var H=Y_(),h=$_();function x(E,e={}){let t=0,r=0,i=0;return h.coordEach.call(void 0,E,function(a){t+=a[0],r+=a[1],i++},!0),H.point.call(void 0,[t/i,r/i],e.properties)}var A=x;Y.centroid=x,Y.default=A}}),K6=He({"node_modules/@turf/bbox/dist/cjs/index.cjs"(Y){Object.defineProperty(Y,"__esModule",{value:!0});var H=$_();function h(A,E={}){if(A.bbox!=null&&E.recompute!==!0)return A.bbox;const e=[1/0,1/0,-1/0,-1/0];return H.coordEach.call(void 0,A,t=>{e[0]>t[0]&&(e[0]=t[0]),e[1]>t[1]&&(e[1]=t[1]),e[2]0&&z[F+1][0]<0)return F;return null}switch(b==="RUS"||b==="FJI"?u=function(z){var F;if(I(z)===null)F=z;else for(F=new Array(z.length),R=0;RF?B[O++]=[z[R][0]+360,z[R][1]]:R===F?(B[O++]=z[R],B[O++]=[z[R][0],-90]):B[O++]=z[R];var P=o.tester(B);P.pts.pop(),d.push(P)}:u=function(z){d.push(o.tester(z))},M.type){case"MultiPolygon":for(g=0;g<_.length;g++)for(y=0;y<_[g].length;y++)u(_[g][y]);break;case"Polygon":for(g=0;g<_.length;g++)u(_[g]);break}return d}function v(S){var M=S.geojson,_=window.PlotlyGeoAssets||{},b=typeof M=="string"?_[M]:M;return i(b)?b:(r.error("Oops ... something went wrong when fetching "+M),!1)}function T(S){var M=S[0].trace,_=v(M);if(!_)return!1;var b={},d=[],u;for(u=0;u0?P.properties.ct=l(P):P.properties.ct=[NaN,NaN],B.fIn=z,B.fOut=P,d.push(P)}else r.log(["Location",B.loc,"does not have a valid GeoJSON geometry.","Traces with locationmode *geojson-id* only support","*Polygon* and *MultiPolygon* geometries."].join(" "))}delete b[F]}switch(_.type){case"FeatureCollection":var R=_.features;for(u=0;ud&&(d=y,_=g)}else _=M;return E(_).geometry.coordinates}function m(S){var M=window.PlotlyGeoAssets||{},_=[];function b(R){return new Promise(function(I,z){h.json(R,function(F,B){if(F){delete M[R];var O=F.status===404?'GeoJSON at URL "'+R+'" does not exist.':"Unexpected error while fetching from "+R;return z(new Error(O))}return M[R]=B,I(B)})})}function d(R){return new Promise(function(I,z){var F=0,B=setInterval(function(){if(M[R]&&M[R]!=="pending")return clearInterval(B),I(M[R]);if(F>100)return clearInterval(B),z("Unexpected error while fetching from "+R);F++},50)})}for(var u=0;u")}}}),Q6=He({"src/traces/scattergeo/event_data.js"(Y,H){H.exports=function(x,A,E,e,t){x.lon=A.lon,x.lat=A.lat,x.location=A.loc?A.loc:null;var r=e[t];return r.fIn&&r.fIn.properties&&(x.properties=r.fIn.properties),x}}}),eP=He({"src/traces/scattergeo/select.js"(Y,H){var h=cu(),x=qo().BADNUM;H.exports=function(E,e){var t=E.cd,r=E.xaxis,i=E.yaxis,a=[],o=t[0].trace,n,s,c,f,p,v=!h.hasMarkers(o)&&!h.hasText(o);if(v)return[];if(e===!1)for(p=0;pZ?1:ee>=Z?0:NaN}function A(ee){return ee.length===1&&(ee=E(ee)),{left:function(Z,se,Q,V){for(Q==null&&(Q=0),V==null&&(V=Z.length);Q>>1;ee(Z[re],se)<0?Q=re+1:V=re}return Q},right:function(Z,se,Q,V){for(Q==null&&(Q=0),V==null&&(V=Z.length);Q>>1;ee(Z[re],se)>0?V=re:Q=re+1}return Q}}}function E(ee){return function(Z,se){return x(ee(Z),se)}}var e=A(x),t=e.right,r=e.left;function i(ee,Z){Z==null&&(Z=a);for(var se=0,Q=ee.length-1,V=ee[0],re=new Array(Q<0?0:Q);seee?1:Z>=ee?0:NaN}function s(ee){return ee===null?NaN:+ee}function c(ee,Z){var se=ee.length,Q=0,V=-1,re=0,ae,fe,xe=0;if(Z==null)for(;++V1)return xe/(Q-1)}function f(ee,Z){var se=c(ee,Z);return se&&Math.sqrt(se)}function p(ee,Z){var se=ee.length,Q=-1,V,re,ae;if(Z==null){for(;++Q=V)for(re=ae=V;++QV&&(re=V),ae=V)for(re=ae=V;++QV&&(re=V),ae0)return[ee];if((Q=Z0)for(ee=Math.ceil(ee/fe),Z=Math.floor(Z/fe),ae=new Array(re=Math.ceil(Z-ee+1));++V=0?(re>=M?10:re>=_?5:re>=b?2:1)*Math.pow(10,V):-Math.pow(10,-V)/(re>=M?10:re>=_?5:re>=b?2:1)}function g(ee,Z,se){var Q=Math.abs(Z-ee)/Math.max(0,se),V=Math.pow(10,Math.floor(Math.log(Q)/Math.LN10)),re=Q/V;return re>=M?V*=10:re>=_?V*=5:re>=b&&(V*=2),ZCe;)je.pop(),--at;var tt=new Array(at+1),Je;for(re=0;re<=at;++re)Je=tt[re]=[],Je.x0=re>0?je[re-1]:Pe,Je.x1=re=1)return+se(ee[Q-1],Q-1,ee);var Q,V=(Q-1)*Z,re=Math.floor(V),ae=+se(ee[re],re,ee),fe=+se(ee[re+1],re+1,ee);return ae+(fe-ae)*(V-re)}}function z(ee,Z,se){return ee=l.call(ee,s).sort(x),Math.ceil((se-Z)/(2*(I(ee,.75)-I(ee,.25))*Math.pow(ee.length,-1/3)))}function F(ee,Z,se){return Math.ceil((se-Z)/(3.5*f(ee)*Math.pow(ee.length,-1/3)))}function B(ee,Z){var se=ee.length,Q=-1,V,re;if(Z==null){for(;++Q=V)for(re=V;++Qre&&(re=V)}else for(;++Q=V)for(re=V;++Qre&&(re=V);return re}function O(ee,Z){var se=ee.length,Q=se,V=-1,re,ae=0;if(Z==null)for(;++V=0;)for(ae=ee[Z],se=ae.length;--se>=0;)re[--V]=ae[se];return re}function U(ee,Z){var se=ee.length,Q=-1,V,re;if(Z==null){for(;++Q=V)for(re=V;++QV&&(re=V)}else for(;++Q=V)for(re=V;++QV&&(re=V);return re}function X(ee,Z){for(var se=Z.length,Q=new Array(se);se--;)Q[se]=ee[Z[se]];return Q}function te(ee,Z){if(se=ee.length){var se,Q=0,V=0,re,ae=ee[V];for(Z==null&&(Z=x);++Q0?1:Qt<0?-1:0},d=Math.sqrt,u=Math.tan;function g(Qt){return Qt>1?0:Qt<-1?a:Math.acos(Qt)}function y(Qt){return Qt>1?o:Qt<-1?-o:Math.asin(Qt)}function R(Qt){return(Qt=_(Qt/2))*Qt}function I(){}function z(Qt,yr){Qt&&B.hasOwnProperty(Qt.type)&&B[Qt.type](Qt,yr)}var F={Feature:function(Qt,yr){z(Qt.geometry,yr)},FeatureCollection:function(Qt,yr){for(var $r=Qt.features,Vr=-1,ma=$r.length;++Vr=0?1:-1,ma=Vr*$r,tn=l(yr),Ja=_(yr),Ln=q*Ja,On=le*tn+Ln*l(ma),Qn=Ln*Vr*_(ma);U.add(T(Qn,On)),ie=Qt,le=tn,q=Ja}function V(Qt){return X.reset(),N(Qt,J),X*2}function re(Qt){return[T(Qt[1],Qt[0]),y(Qt[2])]}function ae(Qt){var yr=Qt[0],$r=Qt[1],Vr=l($r);return[Vr*l(yr),Vr*_(yr),_($r)]}function fe(Qt,yr){return Qt[0]*yr[0]+Qt[1]*yr[1]+Qt[2]*yr[2]}function xe(Qt,yr){return[Qt[1]*yr[2]-Qt[2]*yr[1],Qt[2]*yr[0]-Qt[0]*yr[2],Qt[0]*yr[1]-Qt[1]*yr[0]]}function Ae(Qt,yr){Qt[0]+=yr[0],Qt[1]+=yr[1],Qt[2]+=yr[2]}function Pe(Qt,yr){return[Qt[0]*yr,Qt[1]*yr,Qt[2]*yr]}function Ce(Qt){var yr=d(Qt[0]*Qt[0]+Qt[1]*Qt[1]+Qt[2]*Qt[2]);Qt[0]/=yr,Qt[1]/=yr,Qt[2]/=yr}var je,at,tt,Je,Ze,Me,we,he,De=A(),et,nt,Ke={point:Et,lineStart:Ut,lineEnd:Yt,polygonStart:function(){Ke.point=vr,Ke.lineStart=hr,Ke.lineEnd=Rr,De.reset(),J.polygonStart()},polygonEnd:function(){J.polygonEnd(),Ke.point=Et,Ke.lineStart=Ut,Ke.lineEnd=Yt,U<0?(je=-(tt=180),at=-(Je=90)):De>r?Je=90:De<-r&&(at=-90),nt[0]=je,nt[1]=tt},sphere:function(){je=-(tt=180),at=-(Je=90)}};function Et(Qt,yr){et.push(nt=[je=Qt,tt=Qt]),yrJe&&(Je=yr)}function kt(Qt,yr){var $r=ae([Qt*f,yr*f]);if(he){var Vr=xe(he,$r),ma=[Vr[1],-Vr[0],0],tn=xe(ma,Vr);Ce(tn),tn=re(tn);var Ja=Qt-Ze,Ln=Ja>0?1:-1,On=tn[0]*c*Ln,Qn,_n=p(Ja)>180;_n^(Ln*ZeJe&&(Je=Qn)):(On=(On+360)%360-180,_n^(Ln*ZeJe&&(Je=yr))),_n?Qtdr(je,tt)&&(tt=Qt):dr(Qt,tt)>dr(je,tt)&&(je=Qt):tt>=je?(Qttt&&(tt=Qt)):Qt>Ze?dr(je,Qt)>dr(je,tt)&&(tt=Qt):dr(Qt,tt)>dr(je,tt)&&(je=Qt)}else et.push(nt=[je=Qt,tt=Qt]);yrJe&&(Je=yr),he=$r,Ze=Qt}function Ut(){Ke.point=kt}function Yt(){nt[0]=je,nt[1]=tt,Ke.point=Et,he=null}function vr(Qt,yr){if(he){var $r=Qt-Ze;De.add(p($r)>180?$r+($r>0?360:-360):$r)}else Me=Qt,we=yr;J.point(Qt,yr),kt(Qt,yr)}function hr(){J.lineStart()}function Rr(){vr(Me,we),J.lineEnd(),p(De)>r&&(je=-(tt=180)),nt[0]=je,nt[1]=tt,he=null}function dr(Qt,yr){return(yr-=Qt)<0?yr+360:yr}function wr(Qt,yr){return Qt[0]-yr[0]}function yt(Qt,yr){return Qt[0]<=Qt[1]?Qt[0]<=yr&&yr<=Qt[1]:yrdr(Vr[0],Vr[1])&&(Vr[1]=ma[1]),dr(ma[0],Vr[1])>dr(Vr[0],Vr[1])&&(Vr[0]=ma[0])):tn.push(Vr=ma);for(Ja=-1/0,$r=tn.length-1,yr=0,Vr=tn[$r];yr<=$r;Vr=ma,++yr)ma=tn[yr],(Ln=dr(Vr[1],ma[0]))>Ja&&(Ja=Ln,je=ma[0],tt=Vr[1])}return et=nt=null,je===1/0||at===1/0?[[NaN,NaN],[NaN,NaN]]:[[je,at],[tt,Je]]}var We,Oe,de,me,be,Ie,Xe,ht,bt,Ct,Zt,Wt,rr,Jt,mr,ia,Ia={sphere:I,point:La,lineStart:Ga,lineEnd:yn,polygonStart:function(){Ia.lineStart=Kt,Ia.lineEnd=zt},polygonEnd:function(){Ia.lineStart=Ga,Ia.lineEnd=yn}};function La(Qt,yr){Qt*=f,yr*=f;var $r=l(yr);Aa($r*l(Qt),$r*_(Qt),_(yr))}function Aa(Qt,yr,$r){++We,de+=(Qt-de)/We,me+=(yr-me)/We,be+=($r-be)/We}function Ga(){Ia.point=ba}function ba(Qt,yr){Qt*=f,yr*=f;var $r=l(yr);Jt=$r*l(Qt),mr=$r*_(Qt),ia=_(yr),Ia.point=Xa,Aa(Jt,mr,ia)}function Xa(Qt,yr){Qt*=f,yr*=f;var $r=l(yr),Vr=$r*l(Qt),ma=$r*_(Qt),tn=_(yr),Ja=T(d((Ja=mr*tn-ia*ma)*Ja+(Ja=ia*Vr-Jt*tn)*Ja+(Ja=Jt*ma-mr*Vr)*Ja),Jt*Vr+mr*ma+ia*tn);Oe+=Ja,Ie+=Ja*(Jt+(Jt=Vr)),Xe+=Ja*(mr+(mr=ma)),ht+=Ja*(ia+(ia=tn)),Aa(Jt,mr,ia)}function yn(){Ia.point=La}function Kt(){Ia.point=$t}function zt(){Ht(Wt,rr),Ia.point=La}function $t(Qt,yr){Wt=Qt,rr=yr,Qt*=f,yr*=f,Ia.point=Ht;var $r=l(yr);Jt=$r*l(Qt),mr=$r*_(Qt),ia=_(yr),Aa(Jt,mr,ia)}function Ht(Qt,yr){Qt*=f,yr*=f;var $r=l(yr),Vr=$r*l(Qt),ma=$r*_(Qt),tn=_(yr),Ja=mr*tn-ia*ma,Ln=ia*Vr-Jt*tn,On=Jt*ma-mr*Vr,Qn=d(Ja*Ja+Ln*Ln+On*On),_n=y(Qn),qn=Qn&&-_n/Qn;bt+=qn*Ja,Ct+=qn*Ln,Zt+=qn*On,Oe+=_n,Ie+=_n*(Jt+(Jt=Vr)),Xe+=_n*(mr+(mr=ma)),ht+=_n*(ia+(ia=tn)),Aa(Jt,mr,ia)}function Tr(Qt){We=Oe=de=me=be=Ie=Xe=ht=bt=Ct=Zt=0,N(Qt,Ia);var yr=bt,$r=Ct,Vr=Zt,ma=yr*yr+$r*$r+Vr*Vr;return maa?Qt+Math.round(-Qt/s)*s:Qt,yr]}Gr.invert=Gr;function wa(Qt,yr,$r){return(Qt%=s)?yr||$r?ha(Ya(Qt),Ka(yr,$r)):Ya(Qt):yr||$r?Ka(yr,$r):Gr}function Da(Qt){return function(yr,$r){return yr+=Qt,[yr>a?yr-s:yr<-a?yr+s:yr,$r]}}function Ya(Qt){var yr=Da(Qt);return yr.invert=Da(-Qt),yr}function Ka(Qt,yr){var $r=l(Qt),Vr=_(Qt),ma=l(yr),tn=_(yr);function Ja(Ln,On){var Qn=l(On),_n=l(Ln)*Qn,qn=_(Ln)*Qn,En=_(On),dn=En*$r+_n*Vr;return[T(qn*ma-dn*tn,_n*$r-En*Vr),y(dn*ma+qn*tn)]}return Ja.invert=function(Ln,On){var Qn=l(On),_n=l(Ln)*Qn,qn=_(Ln)*Qn,En=_(On),dn=En*ma-qn*tn;return[T(qn*ma+En*tn,_n*$r+dn*Vr),y(dn*$r-_n*Vr)]},Ja}function an(Qt){Qt=wa(Qt[0]*f,Qt[1]*f,Qt.length>2?Qt[2]*f:0);function yr($r){return $r=Qt($r[0]*f,$r[1]*f),$r[0]*=c,$r[1]*=c,$r}return yr.invert=function($r){return $r=Qt.invert($r[0]*f,$r[1]*f),$r[0]*=c,$r[1]*=c,$r},yr}function mt(Qt,yr,$r,Vr,ma,tn){if($r){var Ja=l(yr),Ln=_(yr),On=Vr*$r;ma==null?(ma=yr+Vr*s,tn=yr-On/2):(ma=ot(Ja,ma),tn=ot(Ja,tn),(Vr>0?matn)&&(ma+=Vr*s));for(var Qn,_n=ma;Vr>0?_n>tn:_n1&&Qt.push(Qt.pop().concat(Qt.shift()))},result:function(){var $r=Qt;return Qt=[],yr=null,$r}}}function Mr(Qt,yr){return p(Qt[0]-yr[0])=0;--Ln)ma.point((qn=_n[Ln])[0],qn[1]);else Vr(En.x,En.p.x,-1,ma);En=En.p}En=En.o,_n=En.z,dn=!dn}while(!En.v);ma.lineEnd()}}}function jr(Qt){if(yr=Qt.length){for(var yr,$r=0,Vr=Qt[0],ma;++$r=0?1:-1,vs=Is*hs,Rs=vs>a,Yo=Hi*ao;if(Dr.add(T(Yo*Is*_(vs),Fi*Fo+Yo*l(vs))),Ja+=Rs?hs+Is*s:hs,Rs^dn>=$r^ii>=$r){var sl=xe(ae(En),ae(Wi));Ce(sl);var nl=xe(tn,sl);Ce(nl);var Ls=(Rs^hs>=0?-1:1)*y(nl[2]);(Vr>Ls||Vr===Ls&&(sl[0]||sl[1]))&&(Ln+=Rs^hs>=0?1:-1)}}return(Ja<-r||Ja0){for(On||(ma.polygonStart(),On=!0),ma.lineStart(),Fo=0;Fo1&&Wn&2&&ao.push(ao.pop().concat(ao.shift())),_n.push(ao.filter(At))}}return En}}function At(Qt){return Qt.length>1}function or(Qt,yr){return((Qt=Qt.x)[0]<0?Qt[1]-o-r:o-Qt[1])-((yr=yr.x)[0]<0?yr[1]-o-r:o-yr[1])}var Ar=ta(function(){return!0},oa,Sa,[-a,-o]);function oa(Qt){var yr=NaN,$r=NaN,Vr=NaN,ma;return{lineStart:function(){Qt.lineStart(),ma=1},point:function(tn,Ja){var Ln=tn>0?a:-a,On=p(tn-yr);p(On-a)0?o:-o),Qt.point(Vr,$r),Qt.lineEnd(),Qt.lineStart(),Qt.point(Ln,$r),Qt.point(tn,$r),ma=0):Vr!==Ln&&On>=a&&(p(yr-Vr)r?v((_(yr)*(tn=l(Vr))*_($r)-_(Vr)*(ma=l(yr))*_(Qt))/(ma*tn*Ja)):(yr+Vr)/2}function Sa(Qt,yr,$r,Vr){var ma;if(Qt==null)ma=$r*o,Vr.point(-a,ma),Vr.point(0,ma),Vr.point(a,ma),Vr.point(a,0),Vr.point(a,-ma),Vr.point(0,-ma),Vr.point(-a,-ma),Vr.point(-a,0),Vr.point(-a,ma);else if(p(Qt[0]-yr[0])>r){var tn=Qt[0]0,ma=p(yr)>r;function tn(_n,qn,En,dn){mt(dn,Qt,$r,En,_n,qn)}function Ja(_n,qn){return l(_n)*l(qn)>yr}function Ln(_n){var qn,En,dn,ai,Hi;return{lineStart:function(){ai=dn=!1,Hi=1},point:function(Fi,Zi){var Wi=[Fi,Zi],ii,Wn=Ja(Fi,Zi),ao=Vr?Wn?0:Qn(Fi,Zi):Wn?Qn(Fi+(Fi<0?a:-a),Zi):0;if(!qn&&(ai=dn=Wn)&&_n.lineStart(),Wn!==dn&&(ii=On(qn,Wi),(!ii||Mr(qn,ii)||Mr(Wi,ii))&&(Wi[2]=1)),Wn!==dn)Hi=0,Wn?(_n.lineStart(),ii=On(Wi,qn),_n.point(ii[0],ii[1])):(ii=On(qn,Wi),_n.point(ii[0],ii[1],2),_n.lineEnd()),qn=ii;else if(ma&&qn&&Vr^Wn){var Fo;!(ao&En)&&(Fo=On(Wi,qn,!0))&&(Hi=0,Vr?(_n.lineStart(),_n.point(Fo[0][0],Fo[0][1]),_n.point(Fo[1][0],Fo[1][1]),_n.lineEnd()):(_n.point(Fo[1][0],Fo[1][1]),_n.lineEnd(),_n.lineStart(),_n.point(Fo[0][0],Fo[0][1],3)))}Wn&&(!qn||!Mr(qn,Wi))&&_n.point(Wi[0],Wi[1]),qn=Wi,dn=Wn,En=ao},lineEnd:function(){dn&&_n.lineEnd(),qn=null},clean:function(){return Hi|(ai&&dn)<<1}}}function On(_n,qn,En){var dn=ae(_n),ai=ae(qn),Hi=[1,0,0],Fi=xe(dn,ai),Zi=fe(Fi,Fi),Wi=Fi[0],ii=Zi-Wi*Wi;if(!ii)return!En&&_n;var Wn=yr*Zi/ii,ao=-yr*Wi/ii,Fo=xe(Hi,Fi),hs=Pe(Hi,Wn),Is=Pe(Fi,ao);Ae(hs,Is);var vs=Fo,Rs=fe(hs,vs),Yo=fe(vs,vs),sl=Rs*Rs-Yo*(fe(hs,hs)-1);if(!(sl<0)){var nl=d(sl),Ls=Pe(vs,(-Rs-nl)/Yo);if(Ae(Ls,hs),Ls=re(Ls),!En)return Ls;var wi=_n[0],go=qn[0],ws=_n[1],os=qn[1],Hl;go0^Ls[1]<(p(Ls[0]-wi)a^(wi<=Ls[0]&&Ls[0]<=go)){var Xl=Pe(vs,(-Rs+nl)/Yo);return Ae(Xl,hs),[Ls,re(Xl)]}}}function Qn(_n,qn){var En=Vr?Qt:a-Qt,dn=0;return _n<-En?dn|=1:_n>En&&(dn|=2),qn<-En?dn|=4:qn>En&&(dn|=8),dn}return ta(Ja,Ln,tn,Vr?[0,-Qt]:[-a,Qt-a])}function ra(Qt,yr,$r,Vr,ma,tn){var Ja=Qt[0],Ln=Qt[1],On=yr[0],Qn=yr[1],_n=0,qn=1,En=On-Ja,dn=Qn-Ln,ai;if(ai=$r-Ja,!(!En&&ai>0)){if(ai/=En,En<0){if(ai<_n)return;ai0){if(ai>qn)return;ai>_n&&(_n=ai)}if(ai=ma-Ja,!(!En&&ai<0)){if(ai/=En,En<0){if(ai>qn)return;ai>_n&&(_n=ai)}else if(En>0){if(ai<_n)return;ai0)){if(ai/=dn,dn<0){if(ai<_n)return;ai0){if(ai>qn)return;ai>_n&&(_n=ai)}if(ai=tn-Ln,!(!dn&&ai<0)){if(ai/=dn,dn<0){if(ai>qn)return;ai>_n&&(_n=ai)}else if(dn>0){if(ai<_n)return;ai0&&(Qt[0]=Ja+_n*En,Qt[1]=Ln+_n*dn),qn<1&&(yr[0]=Ja+qn*En,yr[1]=Ln+qn*dn),!0}}}}}var Ta=1e9,Fn=-Ta;function mn(Qt,yr,$r,Vr){function ma(Qn,_n){return Qt<=Qn&&Qn<=$r&&yr<=_n&&_n<=Vr}function tn(Qn,_n,qn,En){var dn=0,ai=0;if(Qn==null||(dn=Ja(Qn,qn))!==(ai=Ja(_n,qn))||On(Qn,_n)<0^qn>0)do En.point(dn===0||dn===3?Qt:$r,dn>1?Vr:yr);while((dn=(dn+qn+4)%4)!==ai);else En.point(_n[0],_n[1])}function Ja(Qn,_n){return p(Qn[0]-Qt)0?0:3:p(Qn[0]-$r)0?2:1:p(Qn[1]-yr)0?1:0:_n>0?3:2}function Ln(Qn,_n){return On(Qn.x,_n.x)}function On(Qn,_n){var qn=Ja(Qn,1),En=Ja(_n,1);return qn!==En?qn-En:qn===0?_n[1]-Qn[1]:qn===1?Qn[0]-_n[0]:qn===2?Qn[1]-_n[1]:_n[0]-Qn[0]}return function(Qn){var _n=Qn,qn=Er(),En,dn,ai,Hi,Fi,Zi,Wi,ii,Wn,ao,Fo,hs={point:Is,lineStart:sl,lineEnd:nl,polygonStart:Rs,polygonEnd:Yo};function Is(wi,go){ma(wi,go)&&_n.point(wi,go)}function vs(){for(var wi=0,go=0,ws=dn.length;goVr&&(Xu-uc)*(Vr-Xl)>(ll-Xl)*(Qt-uc)&&++wi:ll<=Vr&&(Xu-uc)*(Vr-Xl)<(ll-Xl)*(Qt-uc)&&--wi;return wi}function Rs(){_n=qn,En=[],dn=[],Fo=!0}function Yo(){var wi=vs(),go=Fo&&wi,ws=(En=x.merge(En)).length;(go||ws)&&(Qn.polygonStart(),go&&(Qn.lineStart(),tn(null,null,1,Qn),Qn.lineEnd()),ws&&Or(En,Ln,wi,tn,Qn),Qn.polygonEnd()),_n=Qn,En=dn=ai=null}function sl(){hs.point=Ls,dn&&dn.push(ai=[]),ao=!0,Wn=!1,Wi=ii=NaN}function nl(){En&&(Ls(Hi,Fi),Zi&&Wn&&qn.rejoin(),En.push(qn.result())),hs.point=Is,Wn&&_n.lineEnd()}function Ls(wi,go){var ws=ma(wi,go);if(dn&&ai.push([wi,go]),ao)Hi=wi,Fi=go,Zi=ws,ao=!1,ws&&(_n.lineStart(),_n.point(wi,go));else if(ws&&Wn)_n.point(wi,go);else{var os=[Wi=Math.max(Fn,Math.min(Ta,Wi)),ii=Math.max(Fn,Math.min(Ta,ii))],Hl=[wi=Math.max(Fn,Math.min(Ta,wi)),go=Math.max(Fn,Math.min(Ta,go))];ra(os,Hl,Qt,yr,$r,Vr)?(Wn||(_n.lineStart(),_n.point(os[0],os[1])),_n.point(Hl[0],Hl[1]),ws||_n.lineEnd(),Fo=!1):ws&&(_n.lineStart(),_n.point(wi,go),Fo=!1)}Wi=wi,ii=go,Wn=ws}return hs}}function Kn(){var Qt=0,yr=0,$r=960,Vr=500,ma,tn,Ja;return Ja={stream:function(Ln){return ma&&tn===Ln?ma:ma=mn(Qt,yr,$r,Vr)(tn=Ln)},extent:function(Ln){return arguments.length?(Qt=+Ln[0][0],yr=+Ln[0][1],$r=+Ln[1][0],Vr=+Ln[1][1],ma=tn=null,Ja):[[Qt,yr],[$r,Vr]]}}}var ui=A(),pi,vi,Li,Ni={sphere:I,point:I,lineStart:ci,lineEnd:I,polygonStart:I,polygonEnd:I};function ci(){Ni.point=ho,Ni.lineEnd=bi}function bi(){Ni.point=Ni.lineEnd=I}function ho(Qt,yr){Qt*=f,yr*=f,pi=Qt,vi=_(yr),Li=l(yr),Ni.point=Bo}function Bo(Qt,yr){Qt*=f,yr*=f;var $r=_(yr),Vr=l(yr),ma=p(Qt-pi),tn=l(ma),Ja=_(ma),Ln=Vr*Ja,On=Li*$r-vi*Vr*tn,Qn=vi*$r+Li*Vr*tn;ui.add(T(d(Ln*Ln+On*On),Qn)),pi=Qt,vi=$r,Li=Vr}function gs(Qt){return ui.reset(),N(Qt,Ni),+ui}var ro=[null,null],Ei={type:"LineString",coordinates:ro};function Ri(Qt,yr){return ro[0]=Qt,ro[1]=yr,gs(Ei)}var xo={Feature:function(Qt,yr){return bo(Qt.geometry,yr)},FeatureCollection:function(Qt,yr){for(var $r=Qt.features,Vr=-1,ma=$r.length;++Vr0&&(ma=Ri(Qt[tn],Qt[tn-1]),ma>0&&$r<=ma&&Vr<=ma&&($r+Vr-ma)*(1-Math.pow(($r-Vr)/ma,2))r}).map(En)).concat(x.range(m(tn/Qn)*Qn,ma,Qn).filter(function(ii){return p(ii%qn)>r}).map(dn))}return Zi.lines=function(){return Wi().map(function(ii){return{type:"LineString",coordinates:ii}})},Zi.outline=function(){return{type:"Polygon",coordinates:[ai(Vr).concat(Hi(Ja).slice(1),ai($r).reverse().slice(1),Hi(Ln).reverse().slice(1))]}},Zi.extent=function(ii){return arguments.length?Zi.extentMajor(ii).extentMinor(ii):Zi.extentMinor()},Zi.extentMajor=function(ii){return arguments.length?(Vr=+ii[0][0],$r=+ii[1][0],Ln=+ii[0][1],Ja=+ii[1][1],Vr>$r&&(ii=Vr,Vr=$r,$r=ii),Ln>Ja&&(ii=Ln,Ln=Ja,Ja=ii),Zi.precision(Fi)):[[Vr,Ln],[$r,Ja]]},Zi.extentMinor=function(ii){return arguments.length?(yr=+ii[0][0],Qt=+ii[1][0],tn=+ii[0][1],ma=+ii[1][1],yr>Qt&&(ii=yr,yr=Qt,Qt=ii),tn>ma&&(ii=tn,tn=ma,ma=ii),Zi.precision(Fi)):[[yr,tn],[Qt,ma]]},Zi.step=function(ii){return arguments.length?Zi.stepMajor(ii).stepMinor(ii):Zi.stepMinor()},Zi.stepMajor=function(ii){return arguments.length?(_n=+ii[0],qn=+ii[1],Zi):[_n,qn]},Zi.stepMinor=function(ii){return arguments.length?(On=+ii[0],Qn=+ii[1],Zi):[On,Qn]},Zi.precision=function(ii){return arguments.length?(Fi=+ii,En=kn(tn,ma,90),dn=fi(yr,Qt,Fi),ai=kn(Ln,Ja,90),Hi=fi(Vr,$r,Fi),Zi):Fi},Zi.extentMajor([[-180,-90+r],[180,90-r]]).extentMinor([[-180,-80-r],[180,80+r]])}function Ss(){return Fs()()}function Gi(Qt,yr){var $r=Qt[0]*f,Vr=Qt[1]*f,ma=yr[0]*f,tn=yr[1]*f,Ja=l(Vr),Ln=_(Vr),On=l(tn),Qn=_(tn),_n=Ja*l($r),qn=Ja*_($r),En=On*l(ma),dn=On*_(ma),ai=2*y(d(R(tn-Vr)+Ja*On*R(ma-$r))),Hi=_(ai),Fi=ai?function(Zi){var Wi=_(Zi*=ai)/Hi,ii=_(ai-Zi)/Hi,Wn=ii*_n+Wi*En,ao=ii*qn+Wi*dn,Fo=ii*Ln+Wi*Qn;return[T(ao,Wn)*c,T(Fo,d(Wn*Wn+ao*ao))*c]}:function(){return[$r*c,Vr*c]};return Fi.distance=ai,Fi}function js(Qt){return Qt}var No=A(),es=A(),Vs,hi,so,Oi,Zo={point:I,lineStart:I,lineEnd:I,polygonStart:function(){Zo.lineStart=qs,Zo.lineEnd=wl},polygonEnd:function(){Zo.lineStart=Zo.lineEnd=Zo.point=I,No.add(p(es)),es.reset()},result:function(){var Qt=No/2;return No.reset(),Qt}};function qs(){Zo.point=Di}function Di(Qt,yr){Zo.point=ys,Vs=so=Qt,hi=Oi=yr}function ys(Qt,yr){es.add(Oi*Qt-so*yr),so=Qt,Oi=yr}function wl(){ys(Vs,hi)}var Xs=1/0,Vl=Xs,rl=-Xs,Cs=rl,ql={point:ju,lineStart:I,lineEnd:I,polygonStart:I,polygonEnd:I,result:function(){var Qt=[[Xs,Vl],[rl,Cs]];return rl=Cs=-(Vl=Xs=1/0),Qt}};function ju(Qt,yr){Qtrl&&(rl=Qt),yrCs&&(Cs=yr)}var Vu=0,yu=0,jc=0,ff=0,_s=0,Cu=0,Vc=0,Pl=0,Tl=0,Il,_u,Os,Al,Uo={point:bs,lineStart:qu,lineEnd:Zs,polygonStart:function(){Uo.lineStart=_f,Uo.lineEnd=zo},polygonEnd:function(){Uo.point=bs,Uo.lineStart=qu,Uo.lineEnd=Zs},result:function(){var Qt=Tl?[Vc/Tl,Pl/Tl]:Cu?[ff/Cu,_s/Cu]:jc?[Vu/jc,yu/jc]:[NaN,NaN];return Vu=yu=jc=ff=_s=Cu=Vc=Pl=Tl=0,Qt}};function bs(Qt,yr){Vu+=Qt,yu+=yr,++jc}function qu(){Uo.point=Zl}function Zl(Qt,yr){Uo.point=Ju,bs(Os=Qt,Al=yr)}function Ju(Qt,yr){var $r=Qt-Os,Vr=yr-Al,ma=d($r*$r+Vr*Vr);ff+=ma*(Os+Qt)/2,_s+=ma*(Al+yr)/2,Cu+=ma,bs(Os=Qt,Al=yr)}function Zs(){Uo.point=bs}function _f(){Uo.point=Rf}function zo(){is(Il,_u)}function Rf(Qt,yr){Uo.point=is,bs(Il=Os=Qt,_u=Al=yr)}function is(Qt,yr){var $r=Qt-Os,Vr=yr-Al,ma=d($r*$r+Vr*Vr);ff+=ma*(Os+Qt)/2,_s+=ma*(Al+yr)/2,Cu+=ma,ma=Al*Qt-Os*yr,Vc+=ma*(Os+Qt),Pl+=ma*(Al+yr),Tl+=ma*3,bs(Os=Qt,Al=yr)}function Bi(Qt){this._context=Qt}Bi.prototype={_radius:4.5,pointRadius:function(Qt){return this._radius=Qt,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(Qt,yr){switch(this._point){case 0:{this._context.moveTo(Qt,yr),this._point=1;break}case 1:{this._context.lineTo(Qt,yr);break}default:{this._context.moveTo(Qt+this._radius,yr),this._context.arc(Qt,yr,this._radius,0,s);break}}},result:I};var hc=A(),xu,dl,qc,Qu,wc,Sl={point:I,lineStart:function(){Sl.point=hf},lineEnd:function(){xu&&Yc(dl,qc),Sl.point=I},polygonStart:function(){xu=!0},polygonEnd:function(){xu=null},result:function(){var Qt=+hc;return hc.reset(),Qt}};function hf(Qt,yr){Sl.point=Yc,dl=Qu=Qt,qc=wc=yr}function Yc(Qt,yr){Qu-=Qt,wc-=yr,hc.add(d(Qu*Qu+wc*wc)),Qu=Qt,wc=yr}function Tc(){this._string=[]}Tc.prototype={_radius:4.5,_circle:ec(4.5),pointRadius:function(Qt){return(Qt=+Qt)!==this._radius&&(this._radius=Qt,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(Qt,yr){switch(this._point){case 0:{this._string.push("M",Qt,",",yr),this._point=1;break}case 1:{this._string.push("L",Qt,",",yr);break}default:{this._circle==null&&(this._circle=ec(this._radius)),this._string.push("M",Qt,",",yr,this._circle);break}}},result:function(){if(this._string.length){var Qt=this._string.join("");return this._string=[],Qt}else return null}};function ec(Qt){return"m0,"+Qt+"a"+Qt+","+Qt+" 0 1,1 0,"+-2*Qt+"a"+Qt+","+Qt+" 0 1,1 0,"+2*Qt+"z"}function Gc(Qt,yr){var $r=4.5,Vr,ma;function tn(Ja){return Ja&&(typeof $r=="function"&&ma.pointRadius(+$r.apply(this,arguments)),N(Ja,Vr(ma))),ma.result()}return tn.area=function(Ja){return N(Ja,Vr(Zo)),Zo.result()},tn.measure=function(Ja){return N(Ja,Vr(Sl)),Sl.result()},tn.bounds=function(Ja){return N(Ja,Vr(ql)),ql.result()},tn.centroid=function(Ja){return N(Ja,Vr(Uo)),Uo.result()},tn.projection=function(Ja){return arguments.length?(Vr=Ja==null?(Qt=null,js):(Qt=Ja).stream,tn):Qt},tn.context=function(Ja){return arguments.length?(ma=Ja==null?(yr=null,new Tc):new Bi(yr=Ja),typeof $r!="function"&&ma.pointRadius($r),tn):yr},tn.pointRadius=function(Ja){return arguments.length?($r=typeof Ja=="function"?Ja:(ma.pointRadius(+Ja),+Ja),tn):$r},tn.projection(Qt).context(yr)}function Hc(Qt){return{stream:bu(Qt)}}function bu(Qt){return function(yr){var $r=new $c;for(var Vr in Qt)$r[Vr]=Qt[Vr];return $r.stream=yr,$r}}function $c(){}$c.prototype={constructor:$c,point:function(Qt,yr){this.stream.point(Qt,yr)},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 Gu(Qt,yr,$r){var Vr=Qt.clipExtent&&Qt.clipExtent();return Qt.scale(150).translate([0,0]),Vr!=null&&Qt.clipExtent(null),N($r,Qt.stream(ql)),yr(ql.result()),Vr!=null&&Qt.clipExtent(Vr),Qt}function Lu(Qt,yr,$r){return Gu(Qt,function(Vr){var ma=yr[1][0]-yr[0][0],tn=yr[1][1]-yr[0][1],Ja=Math.min(ma/(Vr[1][0]-Vr[0][0]),tn/(Vr[1][1]-Vr[0][1])),Ln=+yr[0][0]+(ma-Ja*(Vr[1][0]+Vr[0][0]))/2,On=+yr[0][1]+(tn-Ja*(Vr[1][1]+Vr[0][1]))/2;Qt.scale(150*Ja).translate([Ln,On])},$r)}function Ml(Qt,yr,$r){return Lu(Qt,[[0,0],yr],$r)}function lc(Qt,yr,$r){return Gu(Qt,function(Vr){var ma=+yr,tn=ma/(Vr[1][0]-Vr[0][0]),Ja=(ma-tn*(Vr[1][0]+Vr[0][0]))/2,Ln=-tn*Vr[0][1];Qt.scale(150*tn).translate([Ja,Ln])},$r)}function Wc(Qt,yr,$r){return Gu(Qt,function(Vr){var ma=+yr,tn=ma/(Vr[1][1]-Vr[0][1]),Ja=-tn*Vr[0][0],Ln=(ma-tn*(Vr[1][1]+Vr[0][1]))/2;Qt.scale(150*tn).translate([Ja,Ln])},$r)}var Ms=16,Lc=l(30*f);function xf(Qt,yr){return+yr?Ac(Qt,yr):Kc(Qt)}function Kc(Qt){return bu({point:function(yr,$r){yr=Qt(yr,$r),this.stream.point(yr[0],yr[1])}})}function Ac(Qt,yr){function $r(Vr,ma,tn,Ja,Ln,On,Qn,_n,qn,En,dn,ai,Hi,Fi){var Zi=Qn-Vr,Wi=_n-ma,ii=Zi*Zi+Wi*Wi;if(ii>4*yr&&Hi--){var Wn=Ja+En,ao=Ln+dn,Fo=On+ai,hs=d(Wn*Wn+ao*ao+Fo*Fo),Is=y(Fo/=hs),vs=p(p(Fo)-1)yr||p((Zi*nl+Wi*Ls)/ii-.5)>.3||Ja*En+Ln*dn+On*ai2?wi[2]%360*f:0,nl()):[Ln*c,On*c,Qn*c]},Yo.angle=function(wi){return arguments.length?(qn=wi%360*f,nl()):qn*c},Yo.reflectX=function(wi){return arguments.length?(En=wi?-1:1,nl()):En<0},Yo.reflectY=function(wi){return arguments.length?(dn=wi?-1:1,nl()):dn<0},Yo.precision=function(wi){return arguments.length?(Fo=xf(hs,ao=wi*wi),Ls()):d(ao)},Yo.fitExtent=function(wi,go){return Lu(Yo,wi,go)},Yo.fitSize=function(wi,go){return Ml(Yo,wi,go)},Yo.fitWidth=function(wi,go){return lc(Yo,wi,go)},Yo.fitHeight=function(wi,go){return Wc(Yo,wi,go)};function nl(){var wi=el($r,0,0,En,dn,qn).apply(null,yr(tn,Ja)),go=(qn?el:Qc)($r,Vr-wi[0],ma-wi[1],En,dn,qn);return _n=wa(Ln,On,Qn),hs=ha(yr,go),Is=ha(_n,hs),Fo=xf(hs,ao),Ls()}function Ls(){return vs=Rs=null,Yo}return function(){return yr=Qt.apply(this,arguments),Yo.invert=yr.invert&&sl,nl()}}function Bs(Qt){var yr=0,$r=a/3,Vr=tc(Qt),ma=Vr(yr,$r);return ma.parallels=function(tn){return arguments.length?Vr(yr=tn[0]*f,$r=tn[1]*f):[yr*c,$r*c]},ma}function Hu(Qt){var yr=l(Qt);function $r(Vr,ma){return[Vr*yr,_(ma)/yr]}return $r.invert=function(Vr,ma){return[Vr/yr,y(ma*yr)]},$r}function Gl(Qt,yr){var $r=_(Qt),Vr=($r+_(yr))/2;if(p(Vr)=.12&&Fi<.234&&Hi>=-.425&&Hi<-.214?ma:Fi>=.166&&Fi<.234&&Hi>=-.214&&Hi<-.115?Ja:$r).invert(En)},_n.stream=function(En){return Qt&&yr===En?Qt:Qt=vc([$r.stream(yr=En),ma.stream(En),Ja.stream(En)])},_n.precision=function(En){return arguments.length?($r.precision(En),ma.precision(En),Ja.precision(En),qn()):$r.precision()},_n.scale=function(En){return arguments.length?($r.scale(En),ma.scale(En*.35),Ja.scale(En),_n.translate($r.translate())):$r.scale()},_n.translate=function(En){if(!arguments.length)return $r.translate();var dn=$r.scale(),ai=+En[0],Hi=+En[1];return Vr=$r.translate(En).clipExtent([[ai-.455*dn,Hi-.238*dn],[ai+.455*dn,Hi+.238*dn]]).stream(Qn),tn=ma.translate([ai-.307*dn,Hi+.201*dn]).clipExtent([[ai-.425*dn+r,Hi+.12*dn+r],[ai-.214*dn-r,Hi+.234*dn-r]]).stream(Qn),Ln=Ja.translate([ai-.205*dn,Hi+.212*dn]).clipExtent([[ai-.214*dn+r,Hi+.166*dn+r],[ai-.115*dn-r,Hi+.234*dn-r]]).stream(Qn),qn()},_n.fitExtent=function(En,dn){return Lu(_n,En,dn)},_n.fitSize=function(En,dn){return Ml(_n,En,dn)},_n.fitWidth=function(En,dn){return lc(_n,En,dn)},_n.fitHeight=function(En,dn){return Wc(_n,En,dn)};function qn(){return Qt=yr=null,_n}return _n.scale(1070)}function rc(Qt){return function(yr,$r){var Vr=l(yr),ma=l($r),tn=Qt(Vr*ma);return[tn*ma*_(yr),tn*_($r)]}}function Pc(Qt){return function(yr,$r){var Vr=d(yr*yr+$r*$r),ma=Qt(Vr),tn=_(ma),Ja=l(ma);return[T(yr*tn,Vr*Ja),y(Vr&&$r*tn/Vr)]}}var bf=rc(function(Qt){return d(2/(1+Qt))});bf.invert=Pc(function(Qt){return 2*y(Qt/2)});function Vf(){return ru(bf).scale(124.75).clipAngle(180-.001)}var dc=rc(function(Qt){return(Qt=g(Qt))&&Qt/_(Qt)});dc.invert=Pc(function(Qt){return Qt});function Ic(){return ru(dc).scale(79.4188).clipAngle(180-.001)}function fu(Qt,yr){return[Qt,S(u((o+yr)/2))]}fu.invert=function(Qt,yr){return[Qt,2*v(w(yr))-o]};function Rc(){return Rl(fu).scale(961/s)}function Rl(Qt){var yr=ru(Qt),$r=yr.center,Vr=yr.scale,ma=yr.translate,tn=yr.clipExtent,Ja=null,Ln,On,Qn;yr.scale=function(qn){return arguments.length?(Vr(qn),_n()):Vr()},yr.translate=function(qn){return arguments.length?(ma(qn),_n()):ma()},yr.center=function(qn){return arguments.length?($r(qn),_n()):$r()},yr.clipExtent=function(qn){return arguments.length?(qn==null?Ja=Ln=On=Qn=null:(Ja=+qn[0][0],Ln=+qn[0][1],On=+qn[1][0],Qn=+qn[1][1]),_n()):Ja==null?null:[[Ja,Ln],[On,Qn]]};function _n(){var qn=a*Vr(),En=yr(an(yr.rotate()).invert([0,0]));return tn(Ja==null?[[En[0]-qn,En[1]-qn],[En[0]+qn,En[1]+qn]]:Qt===fu?[[Math.max(En[0]-qn,Ja),Ln],[Math.min(En[0]+qn,On),Qn]]:[[Ja,Math.max(En[1]-qn,Ln)],[On,Math.min(En[1]+qn,Qn)]])}return _n()}function pc(Qt){return u((o+Qt)/2)}function ef(Qt,yr){var $r=l(Qt),Vr=Qt===yr?_(Qt):S($r/l(yr))/S(pc(yr)/pc(Qt)),ma=$r*M(pc(Qt),Vr)/Vr;if(!Vr)return fu;function tn(Ja,Ln){ma>0?Ln<-o+r&&(Ln=-o+r):Ln>o-r&&(Ln=o-r);var On=ma/M(pc(Ln),Vr);return[On*_(Vr*Ja),ma-On*l(Vr*Ja)]}return tn.invert=function(Ja,Ln){var On=ma-Ln,Qn=b(Vr)*d(Ja*Ja+On*On),_n=T(Ja,p(On))*b(On);return On*Vr<0&&(_n-=a*b(Ja)*b(On)),[_n/Vr,2*v(M(ma/Qn,1/Vr))-o]},tn}function gc(){return Bs(ef).scale(109.5).parallels([30,30])}function Gs(Qt,yr){return[Qt,yr]}Gs.invert=Gs;function nu(){return ru(Gs).scale(152.63)}function wu(Qt,yr){var $r=l(Qt),Vr=Qt===yr?_(Qt):($r-l(yr))/(yr-Qt),ma=$r/Vr+Qt;if(p(Vr)r&&--Vr>0);return[Qt/(.8707+(tn=$r*$r)*(-.131979+tn*(-.013791+tn*tn*tn*(.003971-.001529*tn)))),$r]};function Ru(){return ru(Wu).scale(175.295)}function al(Qt,yr){return[l(yr)*_(Qt),_(yr)]}al.invert=Pc(y);function Yl(){return ru(al).scale(249.5).clipAngle(90+r)}function Ks(Qt,yr){var $r=l(yr),Vr=1+l(Qt)*$r;return[$r*_(Qt)/Vr,_(yr)/Vr]}Ks.invert=Pc(function(Qt){return 2*v(Qt)});function nc(){return ru(Ks).scale(250).clipAngle(142)}function Du(Qt,yr){return[S(u((o+yr)/2)),-Qt]}Du.invert=function(Qt,yr){return[-yr,2*v(w(Qt))-o]};function Zc(){var Qt=Rl(Du),yr=Qt.center,$r=Qt.rotate;return Qt.center=function(Vr){return arguments.length?yr([-Vr[1],Vr[0]]):(Vr=yr(),[Vr[1],-Vr[0]])},Qt.rotate=function(Vr){return arguments.length?$r([Vr[0],Vr[1],Vr.length>2?Vr[2]+90:90]):(Vr=$r(),[Vr[0],Vr[1],Vr[2]-90])},$r([0,0,90]).scale(159.155)}h.geoAlbers=Ys,h.geoAlbersUsa=Pu,h.geoArea=V,h.geoAzimuthalEqualArea=Vf,h.geoAzimuthalEqualAreaRaw=bf,h.geoAzimuthalEquidistant=Ic,h.geoAzimuthalEquidistantRaw=dc,h.geoBounds=Fe,h.geoCentroid=Tr,h.geoCircle=Lr,h.geoClipAntimeridian=Ar,h.geoClipCircle=za,h.geoClipExtent=Kn,h.geoClipRectangle=mn,h.geoConicConformal=gc,h.geoConicConformalRaw=ef,h.geoConicEqualArea=au,h.geoConicEqualAreaRaw=Gl,h.geoConicEquidistant=Xc,h.geoConicEquidistantRaw=wu,h.geoContains=Mo,h.geoDistance=Ri,h.geoEqualEarth=wf,h.geoEqualEarthRaw=Ec,h.geoEquirectangular=nu,h.geoEquirectangularRaw=Gs,h.geoGnomonic=tf,h.geoGnomonicRaw=Fl,h.geoGraticule=Fs,h.geoGraticule10=Ss,h.geoIdentity=vu,h.geoInterpolate=Gi,h.geoLength=gs,h.geoMercator=Rc,h.geoMercatorRaw=fu,h.geoNaturalEarth1=Ru,h.geoNaturalEarth1Raw=Wu,h.geoOrthographic=Yl,h.geoOrthographicRaw=al,h.geoPath=Gc,h.geoProjection=ru,h.geoProjectionMutator=tc,h.geoRotation=an,h.geoStereographic=nc,h.geoStereographicRaw=Ks,h.geoStream=N,h.geoTransform=Hc,h.geoTransverseMercator=Zc,h.geoTransverseMercatorRaw=Du,Object.defineProperty(h,"__esModule",{value:!0})})}}),tP=He({"node_modules/d3-geo-projection/dist/d3-geo-projection.js"(Y,H){(function(h,x){typeof Y=="object"&&typeof H<"u"?x(Y,oT(),Hm()):x(h.d3=h.d3||{},h.d3,h.d3)})(Y,function(h,x,A){var E=Math.abs,e=Math.atan,t=Math.atan2,r=Math.cos,i=Math.exp,a=Math.floor,o=Math.log,n=Math.max,s=Math.min,c=Math.pow,f=Math.round,p=Math.sign||function(Ve){return Ve>0?1:Ve<0?-1:0},v=Math.sin,T=Math.tan,l=1e-6,m=1e-12,w=Math.PI,S=w/2,M=w/4,_=Math.SQRT1_2,b=F(2),d=F(w),u=w*2,g=180/w,y=w/180;function R(Ve){return Ve?Ve/Math.sin(Ve):1}function I(Ve){return Ve>1?S:Ve<-1?-S:Math.asin(Ve)}function z(Ve){return Ve>1?0:Ve<-1?w:Math.acos(Ve)}function F(Ve){return Ve>0?Math.sqrt(Ve):0}function B(Ve){return Ve=i(2*Ve),(Ve-1)/(Ve+1)}function O(Ve){return(i(Ve)-i(-Ve))/2}function P(Ve){return(i(Ve)+i(-Ve))/2}function N(Ve){return o(Ve+F(Ve*Ve+1))}function U(Ve){return o(Ve+F(Ve*Ve-1))}function X(Ve){var Ye=T(Ve/2),it=2*o(r(Ve/2))/(Ye*Ye);function vt(St,_t){var Lt=r(St),nr=r(_t),cr=v(_t),gr=nr*Lt,Cr=-((1-gr?o((1+gr)/2)/(1-gr):-.5)+it/(1+gr));return[Cr*nr*v(St),Cr*cr]}return vt.invert=function(St,_t){var Lt=F(St*St+_t*_t),nr=-Ve/2,cr=50,gr;if(!Lt)return[0,0];do{var Cr=nr/2,Wr=r(Cr),ua=v(Cr),va=ua/Wr,Ma=-o(E(Wr));nr-=gr=(2/va*Ma-it*va-Lt)/(-Ma/(ua*ua)+1-it/(2*Wr*Wr))*(Wr<0?.7:1)}while(E(gr)>l&&--cr>0);var en=v(nr);return[t(St*en,Lt*r(nr)),I(_t*en/Lt)]},vt}function te(){var Ve=S,Ye=x.geoProjectionMutator(X),it=Ye(Ve);return it.radius=function(vt){return arguments.length?Ye(Ve=vt*y):Ve*g},it.scale(179.976).clipAngle(147)}function ue(Ve,Ye){var it=r(Ye),vt=R(z(it*r(Ve/=2)));return[2*it*v(Ve)*vt,v(Ye)*vt]}ue.invert=function(Ve,Ye){if(!(Ve*Ve+4*Ye*Ye>w*w+l)){var it=Ve,vt=Ye,St=25;do{var _t=v(it),Lt=v(it/2),nr=r(it/2),cr=v(vt),gr=r(vt),Cr=v(2*vt),Wr=cr*cr,ua=gr*gr,va=Lt*Lt,Ma=1-ua*nr*nr,en=Ma?z(gr*nr)*F(Pn=1/Ma):Pn=0,Pn,Tn=2*en*gr*Lt-Ve,In=en*cr-Ye,oi=Pn*(ua*va+en*gr*nr*Wr),Si=Pn*(.5*_t*Cr-en*2*cr*Lt),_i=Pn*.25*(Cr*Lt-en*cr*ua*_t),Ki=Pn*(Wr*nr+en*va*gr),Go=Si*_i-Ki*oi;if(!Go)break;var Ho=(In*Si-Tn*Ki)/Go,Ao=(Tn*_i-In*oi)/Go;it-=Ho,vt-=Ao}while((E(Ho)>l||E(Ao)>l)&&--St>0);return[it,vt]}};function ie(){return x.geoProjection(ue).scale(152.63)}function le(Ve){var Ye=v(Ve),it=r(Ve),vt=Ve>=0?1:-1,St=T(vt*Ve),_t=(1+Ye-it)/2;function Lt(nr,cr){var gr=r(cr),Cr=r(nr/=2);return[(1+gr)*v(nr),(vt*cr>-t(Cr,St)-.001?0:-vt*10)+_t+v(cr)*it-(1+gr)*Ye*Cr]}return Lt.invert=function(nr,cr){var gr=0,Cr=0,Wr=50;do{var ua=r(gr),va=v(gr),Ma=r(Cr),en=v(Cr),Pn=1+Ma,Tn=Pn*va-nr,In=_t+en*it-Pn*Ye*ua-cr,oi=Pn*ua/2,Si=-va*en,_i=Ye*Pn*va/2,Ki=it*Ma+Ye*ua*en,Go=Si*_i-Ki*oi,Ho=(In*Si-Tn*Ki)/Go/2,Ao=(Tn*_i-In*oi)/Go;E(Ao)>2&&(Ao/=2),gr-=Ho,Cr-=Ao}while((E(Ho)>l||E(Ao)>l)&&--Wr>0);return vt*Cr>-t(r(gr),St)-.001?[gr*2,Cr]:null},Lt}function q(){var Ve=20*y,Ye=Ve>=0?1:-1,it=T(Ye*Ve),vt=x.geoProjectionMutator(le),St=vt(Ve),_t=St.stream;return St.parallel=function(Lt){return arguments.length?(it=T((Ye=(Ve=Lt*y)>=0?1:-1)*Ve),vt(Ve)):Ve*g},St.stream=function(Lt){var nr=St.rotate(),cr=_t(Lt),gr=(St.rotate([0,0]),_t(Lt)),Cr=St.precision();return St.rotate(nr),cr.sphere=function(){gr.polygonStart(),gr.lineStart();for(var Wr=Ye*-180;Ye*Wr<180;Wr+=Ye*90)gr.point(Wr,Ye*90);if(Ve)for(;Ye*(Wr-=3*Ye*Cr)>=-180;)gr.point(Wr,Ye*-t(r(Wr*y/2),it)*g);gr.lineEnd(),gr.polygonEnd()},cr},St.scale(218.695).center([0,28.0974])}function J(Ve,Ye){var it=T(Ye/2),vt=F(1-it*it),St=1+vt*r(Ve/=2),_t=v(Ve)*vt/St,Lt=it/St,nr=_t*_t,cr=Lt*Lt;return[4/3*_t*(3+nr-3*cr),4/3*Lt*(3+3*nr-cr)]}J.invert=function(Ve,Ye){if(Ve*=3/8,Ye*=3/8,!Ve&&E(Ye)>1)return null;var it=Ve*Ve,vt=Ye*Ye,St=1+it+vt,_t=F((St-F(St*St-4*Ye*Ye))/2),Lt=I(_t)/3,nr=_t?U(E(Ye/_t))/3:N(E(Ve))/3,cr=r(Lt),gr=P(nr),Cr=gr*gr-cr*cr;return[p(Ve)*2*t(O(nr)*cr,.25-Cr),p(Ye)*2*t(gr*v(Lt),.25+Cr)]};function ee(){return x.geoProjection(J).scale(66.1603)}var Z=F(8),se=o(1+b);function Q(Ve,Ye){var it=E(Ye);return itm&&--vt>0);return[Ve/(r(it)*(Z-1/v(it))),p(Ye)*it]};function V(){return x.geoProjection(Q).scale(112.314)}function re(Ve){var Ye=2*w/Ve;function it(vt,St){var _t=x.geoAzimuthalEquidistantRaw(vt,St);if(E(vt)>S){var Lt=t(_t[1],_t[0]),nr=F(_t[0]*_t[0]+_t[1]*_t[1]),cr=Ye*f((Lt-S)/Ye)+S,gr=t(v(Lt-=cr),2-r(Lt));Lt=cr+I(w/nr*v(gr))-gr,_t[0]=nr*r(Lt),_t[1]=nr*v(Lt)}return _t}return it.invert=function(vt,St){var _t=F(vt*vt+St*St);if(_t>S){var Lt=t(St,vt),nr=Ye*f((Lt-S)/Ye)+S,cr=Lt>nr?-1:1,gr=_t*r(nr-Lt),Cr=1/T(cr*z((gr-w)/F(w*(w-2*gr)+_t*_t)));Lt=nr+2*e((Cr+cr*F(Cr*Cr-3))/3),vt=_t*r(Lt),St=_t*v(Lt)}return x.geoAzimuthalEquidistantRaw.invert(vt,St)},it}function ae(){var Ve=5,Ye=x.geoProjectionMutator(re),it=Ye(Ve),vt=it.stream,St=.01,_t=-r(St*y),Lt=v(St*y);return it.lobes=function(nr){return arguments.length?Ye(Ve=+nr):Ve},it.stream=function(nr){var cr=it.rotate(),gr=vt(nr),Cr=(it.rotate([0,0]),vt(nr));return it.rotate(cr),gr.sphere=function(){Cr.polygonStart(),Cr.lineStart();for(var Wr=0,ua=360/Ve,va=2*w/Ve,Ma=90-180/Ve,en=S;Wr0&&E(St)>l);return vt<0?NaN:it}function Ce(Ve,Ye,it){return Ye===void 0&&(Ye=40),it===void 0&&(it=m),function(vt,St,_t,Lt){var nr,cr,gr;_t=_t===void 0?0:+_t,Lt=Lt===void 0?0:+Lt;for(var Cr=0;Crnr){_t-=cr/=2,Lt-=gr/=2;continue}nr=Ma;var en=(_t>0?-1:1)*it,Pn=(Lt>0?-1:1)*it,Tn=Ve(_t+en,Lt),In=Ve(_t,Lt+Pn),oi=(Tn[0]-Wr[0])/en,Si=(Tn[1]-Wr[1])/en,_i=(In[0]-Wr[0])/Pn,Ki=(In[1]-Wr[1])/Pn,Go=Ki*oi-Si*_i,Ho=(E(Go)<.5?.5:1)/Go;if(cr=(va*_i-ua*Ki)*Ho,gr=(ua*Si-va*oi)*Ho,_t+=cr,Lt+=gr,E(cr)0&&(nr[1]*=1+cr/1.5*nr[0]*nr[0]),nr}return vt.invert=Ce(vt),vt}function at(){return x.geoProjection(je()).rotate([-16.5,-42]).scale(176.57).center([7.93,.09])}function tt(Ve,Ye){var it=Ve*v(Ye),vt=30,St;do Ye-=St=(Ye+v(Ye)-it)/(1+r(Ye));while(E(St)>l&&--vt>0);return Ye/2}function Je(Ve,Ye,it){function vt(St,_t){return[Ve*St*r(_t=tt(it,_t)),Ye*v(_t)]}return vt.invert=function(St,_t){return _t=I(_t/Ye),[St/(Ve*r(_t)),I((2*_t+v(2*_t))/it)]},vt}var Ze=Je(b/S,b,w);function Me(){return x.geoProjection(Ze).scale(169.529)}var we=2.00276,he=1.11072;function De(Ve,Ye){var it=tt(w,Ye);return[we*Ve/(1/r(Ye)+he/r(it)),(Ye+b*v(it))/we]}De.invert=function(Ve,Ye){var it=we*Ye,vt=Ye<0?-M:M,St=25,_t,Lt;do Lt=it-b*v(vt),vt-=_t=(v(2*vt)+2*vt-w*v(Lt))/(2*r(2*vt)+2+w*r(Lt)*b*r(vt));while(E(_t)>l&&--St>0);return Lt=it-b*v(vt),[Ve*(1/r(Lt)+he/r(vt))/we,Lt]};function et(){return x.geoProjection(De).scale(160.857)}function nt(Ve){var Ye=0,it=x.geoProjectionMutator(Ve),vt=it(Ye);return vt.parallel=function(St){return arguments.length?it(Ye=St*y):Ye*g},vt}function Ke(Ve,Ye){return[Ve*r(Ye),Ye]}Ke.invert=function(Ve,Ye){return[Ve/r(Ye),Ye]};function Et(){return x.geoProjection(Ke).scale(152.63)}function kt(Ve){if(!Ve)return Ke;var Ye=1/T(Ve);function it(vt,St){var _t=Ye+Ve-St,Lt=_t&&vt*r(St)/_t;return[_t*v(Lt),Ye-_t*r(Lt)]}return it.invert=function(vt,St){var _t=F(vt*vt+(St=Ye-St)*St),Lt=Ye+Ve-_t;return[_t/r(Lt)*t(vt,St),Lt]},it}function Ut(){return nt(kt).scale(123.082).center([0,26.1441]).parallel(45)}function Yt(Ve){function Ye(it,vt){var St=S-vt,_t=St&&it*Ve*v(St)/St;return[St*v(_t)/Ve,S-St*r(_t)]}return Ye.invert=function(it,vt){var St=it*Ve,_t=S-vt,Lt=F(St*St+_t*_t),nr=t(St,_t);return[(Lt?Lt/v(Lt):1)*nr/Ve,S-Lt]},Ye}function vr(){var Ve=.5,Ye=x.geoProjectionMutator(Yt),it=Ye(Ve);return it.fraction=function(vt){return arguments.length?Ye(Ve=+vt):Ve},it.scale(158.837)}var hr=Je(1,4/w,w);function Rr(){return x.geoProjection(hr).scale(152.63)}function dr(Ve,Ye,it,vt,St,_t){var Lt=r(_t),nr;if(E(Ve)>1||E(_t)>1)nr=z(it*St+Ye*vt*Lt);else{var cr=v(Ve/2),gr=v(_t/2);nr=2*I(F(cr*cr+Ye*vt*gr*gr))}return E(nr)>l?[nr,t(vt*v(_t),Ye*St-it*vt*Lt)]:[0,0]}function wr(Ve,Ye,it){return z((Ve*Ve+Ye*Ye-it*it)/(2*Ve*Ye))}function yt(Ve){return Ve-2*w*a((Ve+w)/(2*w))}function Fe(Ve,Ye,it){for(var vt=[[Ve[0],Ve[1],v(Ve[1]),r(Ve[1])],[Ye[0],Ye[1],v(Ye[1]),r(Ye[1])],[it[0],it[1],v(it[1]),r(it[1])]],St=vt[2],_t,Lt=0;Lt<3;++Lt,St=_t)_t=vt[Lt],St.v=dr(_t[1]-St[1],St[3],St[2],_t[3],_t[2],_t[0]-St[0]),St.point=[0,0];var nr=wr(vt[0].v[0],vt[2].v[0],vt[1].v[0]),cr=wr(vt[0].v[0],vt[1].v[0],vt[2].v[0]),gr=w-nr;vt[2].point[1]=0,vt[0].point[0]=-(vt[1].point[0]=vt[0].v[0]/2);var Cr=[vt[2].point[0]=vt[0].point[0]+vt[2].v[0]*r(nr),2*(vt[0].point[1]=vt[1].point[1]=vt[2].v[0]*v(nr))];function Wr(ua,va){var Ma=v(va),en=r(va),Pn=new Array(3),Tn;for(Tn=0;Tn<3;++Tn){var In=vt[Tn];if(Pn[Tn]=dr(va-In[1],In[3],In[2],en,Ma,ua-In[0]),!Pn[Tn][0])return In.point;Pn[Tn][1]=yt(Pn[Tn][1]-In.v[1])}var oi=Cr.slice();for(Tn=0;Tn<3;++Tn){var Si=Tn==2?0:Tn+1,_i=wr(vt[Tn].v[0],Pn[Tn][0],Pn[Si][0]);Pn[Tn][1]<0&&(_i=-_i),Tn?Tn==1?(_i=cr-_i,oi[0]-=Pn[Tn][0]*r(_i),oi[1]-=Pn[Tn][0]*v(_i)):(_i=gr-_i,oi[0]+=Pn[Tn][0]*r(_i),oi[1]+=Pn[Tn][0]*v(_i)):(oi[0]+=Pn[Tn][0]*r(_i),oi[1]-=Pn[Tn][0]*v(_i))}return oi[0]/=3,oi[1]/=3,oi}return Wr}function We(Ve){return Ve[0]*=y,Ve[1]*=y,Ve}function Oe(){return de([0,22],[45,22],[22.5,-22]).scale(380).center([22.5,2])}function de(Ve,Ye,it){var vt=x.geoCentroid({type:"MultiPoint",coordinates:[Ve,Ye,it]}),St=[-vt[0],-vt[1]],_t=x.geoRotation(St),Lt=Fe(We(_t(Ve)),We(_t(Ye)),We(_t(it)));Lt.invert=Ce(Lt);var nr=x.geoProjection(Lt).rotate(St),cr=nr.center;return delete nr.rotate,nr.center=function(gr){return arguments.length?cr(_t(gr)):_t.invert(cr())},nr.clipAngle(90)}function me(Ve,Ye){var it=F(1-v(Ye));return[2/d*Ve*it,d*(1-it)]}me.invert=function(Ve,Ye){var it=(it=Ye/d-1)*it;return[it>0?Ve*F(w/it)/2:0,I(1-it)]};function be(){return x.geoProjection(me).scale(95.6464).center([0,30])}function Ie(Ve){var Ye=T(Ve);function it(vt,St){return[vt,(vt?vt/v(vt):1)*(v(St)*r(vt)-Ye*r(St))]}return it.invert=Ye?function(vt,St){vt&&(St*=v(vt)/vt);var _t=r(vt);return[vt,2*t(F(_t*_t+Ye*Ye-St*St)-_t,Ye-St)]}:function(vt,St){return[vt,I(vt?St*T(vt)/vt:St)]},it}function Xe(){return nt(Ie).scale(249.828).clipAngle(90)}var ht=F(3);function bt(Ve,Ye){return[ht*Ve*(2*r(2*Ye/3)-1)/d,ht*d*v(Ye/3)]}bt.invert=function(Ve,Ye){var it=3*I(Ye/(ht*d));return[d*Ve/(ht*(2*r(2*it/3)-1)),it]};function Ct(){return x.geoProjection(bt).scale(156.19)}function Zt(Ve){var Ye=r(Ve);function it(vt,St){return[vt*Ye,v(St)/Ye]}return it.invert=function(vt,St){return[vt/Ye,I(St*Ye)]},it}function Wt(){return nt(Zt).parallel(38.58).scale(195.044)}function rr(Ve){var Ye=r(Ve);function it(vt,St){return[vt*Ye,(1+Ye)*T(St/2)]}return it.invert=function(vt,St){return[vt/Ye,e(St/(1+Ye))*2]},it}function Jt(){return nt(rr).scale(124.75)}function mr(Ve,Ye){var it=F(8/(3*w));return[it*Ve*(1-E(Ye)/w),it*Ye]}mr.invert=function(Ve,Ye){var it=F(8/(3*w)),vt=Ye/it;return[Ve/(it*(1-E(vt)/w)),vt]};function ia(){return x.geoProjection(mr).scale(165.664)}function Ia(Ve,Ye){var it=F(4-3*v(E(Ye)));return[2/F(6*w)*Ve*it,p(Ye)*F(2*w/3)*(2-it)]}Ia.invert=function(Ve,Ye){var it=2-E(Ye)/F(2*w/3);return[Ve*F(6*w)/(2*it),p(Ye)*I((4-it*it)/3)]};function La(){return x.geoProjection(Ia).scale(165.664)}function Aa(Ve,Ye){var it=F(w*(4+w));return[2/it*Ve*(1+F(1-4*Ye*Ye/(w*w))),4/it*Ye]}Aa.invert=function(Ve,Ye){var it=F(w*(4+w))/2;return[Ve*it/(1+F(1-Ye*Ye*(4+w)/(4*w))),Ye*it/2]};function Ga(){return x.geoProjection(Aa).scale(180.739)}function ba(Ve,Ye){var it=(2+S)*v(Ye);Ye/=2;for(var vt=0,St=1/0;vt<10&&E(St)>l;vt++){var _t=r(Ye);Ye-=St=(Ye+v(Ye)*(_t+2)-it)/(2*_t*(1+_t))}return[2/F(w*(4+w))*Ve*(1+r(Ye)),2*F(w/(4+w))*v(Ye)]}ba.invert=function(Ve,Ye){var it=Ye*F((4+w)/w)/2,vt=I(it),St=r(vt);return[Ve/(2/F(w*(4+w))*(1+St)),I((vt+it*(St+2))/(2+S))]};function Xa(){return x.geoProjection(ba).scale(180.739)}function yn(Ve,Ye){return[Ve*(1+r(Ye))/F(2+w),2*Ye/F(2+w)]}yn.invert=function(Ve,Ye){var it=F(2+w),vt=Ye*it/2;return[it*Ve/(1+r(vt)),vt]};function Kt(){return x.geoProjection(yn).scale(173.044)}function zt(Ve,Ye){for(var it=(1+S)*v(Ye),vt=0,St=1/0;vt<10&&E(St)>l;vt++)Ye-=St=(Ye+v(Ye)-it)/(1+r(Ye));return it=F(2+w),[Ve*(1+r(Ye))/it,2*Ye/it]}zt.invert=function(Ve,Ye){var it=1+S,vt=F(it/2);return[Ve*2*vt/(1+r(Ye*=vt)),I((Ye+v(Ye))/it)]};function $t(){return x.geoProjection(zt).scale(173.044)}var Ht=3+2*b;function Tr(Ve,Ye){var it=v(Ve/=2),vt=r(Ve),St=F(r(Ye)),_t=r(Ye/=2),Lt=v(Ye)/(_t+b*vt*St),nr=F(2/(1+Lt*Lt)),cr=F((b*_t+(vt+it)*St)/(b*_t+(vt-it)*St));return[Ht*(nr*(cr-1/cr)-2*o(cr)),Ht*(nr*Lt*(cr+1/cr)-2*e(Lt))]}Tr.invert=function(Ve,Ye){if(!(_t=J.invert(Ve/1.2,Ye*1.065)))return null;var it=_t[0],vt=_t[1],St=20,_t;Ve/=Ht,Ye/=Ht;do{var Lt=it/2,nr=vt/2,cr=v(Lt),gr=r(Lt),Cr=v(nr),Wr=r(nr),ua=r(vt),va=F(ua),Ma=Cr/(Wr+b*gr*va),en=Ma*Ma,Pn=F(2/(1+en)),Tn=b*Wr+(gr+cr)*va,In=b*Wr+(gr-cr)*va,oi=Tn/In,Si=F(oi),_i=Si-1/Si,Ki=Si+1/Si,Go=Pn*_i-2*o(Si)-Ve,Ho=Pn*Ma*Ki-2*e(Ma)-Ye,Ao=Cr&&_*va*cr*en/Cr,Ko=(b*gr*Wr+va)/(2*(Wr+b*gr*va)*(Wr+b*gr*va)*va),Js=-.5*Ma*Pn*Pn*Pn,Hs=Js*Ao,ko=Js*Ko,Co=(Co=2*Wr+b*va*(gr-cr))*Co*Si,fl=(b*gr*Wr*va+ua)/Co,Dl=-(b*cr*Cr)/(va*Co),ou=_i*Hs-2*fl/Si+Pn*(fl+fl/oi),pe=_i*ko-2*Dl/Si+Pn*(Dl+Dl/oi),Le=Ma*Ki*Hs-2*Ao/(1+en)+Pn*Ki*Ao+Pn*Ma*(fl-fl/oi),$e=Ma*Ki*ko-2*Ko/(1+en)+Pn*Ki*Ko+Pn*Ma*(Dl-Dl/oi),dt=pe*Le-$e*ou;if(!dt)break;var gt=(Ho*pe-Go*$e)/dt,Tt=(Go*Le-Ho*ou)/dt;it-=gt,vt=n(-S,s(S,vt-Tt))}while((E(gt)>l||E(Tt)>l)&&--St>0);return E(E(vt)-S)vt){var Wr=F(Cr),ua=t(gr,cr),va=it*f(ua/it),Ma=ua-va,en=Ve*r(Ma),Pn=(Ve*v(Ma)-Ma*v(en))/(S-en),Tn=Mr(Ma,Pn),In=(w-Ve)/br(Tn,en,w);cr=Wr;var oi=50,Si;do cr-=Si=(Ve+br(Tn,en,cr)*In-Wr)/(Tn(cr)*In);while(E(Si)>l&&--oi>0);gr=Ma*v(cr),crvt){var cr=F(nr),gr=t(Lt,_t),Cr=it*f(gr/it),Wr=gr-Cr;_t=cr*r(Wr),Lt=cr*v(Wr);for(var ua=_t-S,va=v(_t),Ma=Lt/va,en=_tl||E(Ma)>l)&&--en>0);return[Wr,ua]},cr}var Dr=jr(2.8284,-1.6988,.75432,-.18071,1.76003,-.38914,.042555);function Hr(){return x.geoProjection(Dr).scale(149.995)}var na=jr(2.583819,-.835827,.170354,-.038094,1.543313,-.411435,.082742);function ta(){return x.geoProjection(na).scale(153.93)}var At=jr(5/6*w,-.62636,-.0344,0,1.3493,-.05524,0,.045);function or(){return x.geoProjection(At).scale(130.945)}function Ar(Ve,Ye){var it=Ve*Ve,vt=Ye*Ye;return[Ve*(1-.162388*vt)*(.87-952426e-9*it*it),Ye*(1+vt/12)]}Ar.invert=function(Ve,Ye){var it=Ve,vt=Ye,St=50,_t;do{var Lt=vt*vt;vt-=_t=(vt*(1+Lt/12)-Ye)/(1+Lt/4)}while(E(_t)>l&&--St>0);St=50,Ve/=1-.162388*Lt;do{var nr=(nr=it*it)*nr;it-=_t=(it*(.87-952426e-9*nr)-Ve)/(.87-.00476213*nr)}while(E(_t)>l&&--St>0);return[it,vt]};function oa(){return x.geoProjection(Ar).scale(131.747)}var ga=jr(2.6516,-.76534,.19123,-.047094,1.36289,-.13965,.031762);function Sa(){return x.geoProjection(ga).scale(131.087)}function za(Ve){var Ye=Ve(S,0)[0]-Ve(-S,0)[0];function it(vt,St){var _t=vt>0?-.5:.5,Lt=Ve(vt+_t*w,St);return Lt[0]-=_t*Ye,Lt}return Ve.invert&&(it.invert=function(vt,St){var _t=vt>0?-.5:.5,Lt=Ve.invert(vt+_t*Ye,St),nr=Lt[0]-_t*w;return nr<-w?nr+=2*w:nr>w&&(nr-=2*w),Lt[0]=nr,Lt}),it}function ra(Ve,Ye){var it=p(Ve),vt=p(Ye),St=r(Ye),_t=r(Ve)*St,Lt=v(Ve)*St,nr=v(vt*Ye);Ve=E(t(Lt,nr)),Ye=I(_t),E(Ve-S)>l&&(Ve%=S);var cr=Ta(Ve>w/4?S-Ve:Ve,Ye);return Ve>w/4&&(nr=cr[0],cr[0]=-cr[1],cr[1]=-nr),cr[0]*=it,cr[1]*=-vt,cr}ra.invert=function(Ve,Ye){E(Ve)>1&&(Ve=p(Ve)*2-Ve),E(Ye)>1&&(Ye=p(Ye)*2-Ye);var it=p(Ve),vt=p(Ye),St=-it*Ve,_t=-vt*Ye,Lt=_t/St<1,nr=Fn(Lt?_t:St,Lt?St:_t),cr=nr[0],gr=nr[1],Cr=r(gr);return Lt&&(cr=-S-cr),[it*(t(v(cr)*Cr,-v(gr))+w),vt*I(r(cr)*Cr)]};function Ta(Ve,Ye){if(Ye===S)return[0,0];var it=v(Ye),vt=it*it,St=vt*vt,_t=1+St,Lt=1+3*St,nr=1-St,cr=I(1/F(_t)),gr=nr+vt*_t*cr,Cr=(1-it)/gr,Wr=F(Cr),ua=Cr*_t,va=F(ua),Ma=Wr*nr,en,Pn;if(Ve===0)return[0,-(Ma+vt*va)];var Tn=r(Ye),In=1/Tn,oi=2*it*Tn,Si=(-3*vt+cr*Lt)*oi,_i=(-gr*Tn-(1-it)*Si)/(gr*gr),Ki=.5*_i/Wr,Go=nr*Ki-2*vt*Wr*oi,Ho=vt*_t*_i+Cr*Lt*oi,Ao=-In*oi,Ko=-In*Ho,Js=-2*In*Go,Hs=4*Ve/w,ko;if(Ve>.222*w||Ye.175*w){if(en=(Ma+vt*F(ua*(1+St)-Ma*Ma))/(1+St),Ve>w/4)return[en,en];var Co=en,fl=.5*en;en=.5*(fl+Co),Pn=50;do{var Dl=F(ua-en*en),ou=en*(Js+Ao*Dl)+Ko*I(en/va)-Hs;if(!ou)break;ou<0?fl=en:Co=en,en=.5*(fl+Co)}while(E(Co-fl)>l&&--Pn>0)}else{en=l,Pn=25;do{var pe=en*en,Le=F(ua-pe),$e=Js+Ao*Le,dt=en*$e+Ko*I(en/va)-Hs,gt=$e+(Ko-Ao*pe)/Le;en-=ko=Le?dt/gt:0}while(E(ko)>l&&--Pn>0)}return[en,-Ma-vt*F(ua-en*en)]}function Fn(Ve,Ye){for(var it=0,vt=1,St=.5,_t=50;;){var Lt=St*St,nr=F(St),cr=I(1/F(1+Lt)),gr=1-Lt+St*(1+Lt)*cr,Cr=(1-nr)/gr,Wr=F(Cr),ua=Cr*(1+Lt),va=Wr*(1-Lt),Ma=ua-Ve*Ve,en=F(Ma),Pn=Ye+va+St*en;if(E(vt-it)0?it=St:vt=St,St=.5*(it+vt)}if(!_t)return null;var Tn=I(nr),In=r(Tn),oi=1/In,Si=2*nr*In,_i=(-3*St+cr*(1+3*Lt))*Si,Ki=(-gr*In-(1-nr)*_i)/(gr*gr),Go=.5*Ki/Wr,Ho=(1-Lt)*Go-2*St*Wr*Si,Ao=-2*oi*Ho,Ko=-oi*Si,Js=-oi*(St*(1+Lt)*Ki+Cr*(1+3*Lt)*Si);return[w/4*(Ve*(Ao+Ko*en)+Js*I(Ve/F(ua))),Tn]}function mn(){return x.geoProjection(za(ra)).scale(239.75)}function Kn(Ve,Ye,it){var vt,St,_t;return Ve?(vt=ui(Ve,it),Ye?(St=ui(Ye,1-it),_t=St[1]*St[1]+it*vt[0]*vt[0]*St[0]*St[0],[[vt[0]*St[2]/_t,vt[1]*vt[2]*St[0]*St[1]/_t],[vt[1]*St[1]/_t,-vt[0]*vt[2]*St[0]*St[2]/_t],[vt[2]*St[1]*St[2]/_t,-it*vt[0]*vt[1]*St[0]/_t]]):[[vt[0],0],[vt[1],0],[vt[2],0]]):(St=ui(Ye,1-it),[[0,St[0]/St[1]],[1/St[1],0],[St[2]/St[1],0]])}function ui(Ve,Ye){var it,vt,St,_t,Lt;if(Ye=1-l)return it=(1-Ye)/4,vt=P(Ve),_t=B(Ve),St=1/vt,Lt=vt*O(Ve),[_t+it*(Lt-Ve)/(vt*vt),St-it*_t*St*(Lt-Ve),St+it*_t*St*(Lt+Ve),2*e(i(Ve))-S+it*(Lt-Ve)/vt];var nr=[1,0,0,0,0,0,0,0,0],cr=[F(Ye),0,0,0,0,0,0,0,0],gr=0;for(vt=F(1-Ye),Lt=1;E(cr[gr]/nr[gr])>l&&gr<8;)it=nr[gr++],cr[gr]=(it-vt)/2,nr[gr]=(it+vt)/2,vt=F(it*vt),Lt*=2;St=Lt*nr[gr]*Ve;do _t=cr[gr]*v(vt=St)/nr[gr],St=(I(_t)+St)/2;while(--gr);return[v(St),_t=r(St),_t/r(St-vt),St]}function pi(Ve,Ye,it){var vt=E(Ve),St=E(Ye),_t=O(St);if(vt){var Lt=1/v(vt),nr=1/(T(vt)*T(vt)),cr=-(nr+it*(_t*_t*Lt*Lt)-1+it),gr=(it-1)*nr,Cr=(-cr+F(cr*cr-4*gr))/2;return[vi(e(1/F(Cr)),it)*p(Ve),vi(e(F((Cr/nr-1)/it)),1-it)*p(Ye)]}return[0,vi(e(_t),1-it)*p(Ye)]}function vi(Ve,Ye){if(!Ye)return Ve;if(Ye===1)return o(T(Ve/2+M));for(var it=1,vt=F(1-Ye),St=F(Ye),_t=0;E(St)>l;_t++){if(Ve%w){var Lt=e(vt*T(Ve)/it);Lt<0&&(Lt+=w),Ve+=Lt+~~(Ve/w)*w}else Ve+=Ve;St=(it+vt)/2,vt=F(it*vt),St=((it=St)-vt)/2}return Ve/(c(2,_t)*it)}function Li(Ve,Ye){var it=(b-1)/(b+1),vt=F(1-it*it),St=vi(S,vt*vt),_t=-1,Lt=o(T(w/4+E(Ye)/2)),nr=i(_t*Lt)/F(it),cr=Ni(nr*r(_t*Ve),nr*v(_t*Ve)),gr=pi(cr[0],cr[1],vt*vt);return[-gr[1],(Ye>=0?1:-1)*(.5*St-gr[0])]}function Ni(Ve,Ye){var it=Ve*Ve,vt=Ye+1,St=1-it-Ye*Ye;return[.5*((Ve>=0?S:-S)-t(St,2*Ve)),-.25*o(St*St+4*it)+.5*o(vt*vt+it)]}function ci(Ve,Ye){var it=Ye[0]*Ye[0]+Ye[1]*Ye[1];return[(Ve[0]*Ye[0]+Ve[1]*Ye[1])/it,(Ve[1]*Ye[0]-Ve[0]*Ye[1])/it]}Li.invert=function(Ve,Ye){var it=(b-1)/(b+1),vt=F(1-it*it),St=vi(S,vt*vt),_t=-1,Lt=Kn(.5*St-Ye,-Ve,vt*vt),nr=ci(Lt[0],Lt[1]),cr=t(nr[1],nr[0])/_t;return[cr,2*e(i(.5/_t*o(it*nr[0]*nr[0]+it*nr[1]*nr[1])))-S]};function bi(){return x.geoProjection(za(Li)).scale(151.496)}function ho(Ve){var Ye=v(Ve),it=r(Ve),vt=Bo(Ve);vt.invert=Bo(-Ve);function St(_t,Lt){var nr=vt(_t,Lt);_t=nr[0],Lt=nr[1];var cr=v(Lt),gr=r(Lt),Cr=r(_t),Wr=z(Ye*cr+it*gr*Cr),ua=v(Wr),va=E(ua)>l?Wr/ua:1;return[va*it*v(_t),(E(_t)>S?va:-va)*(Ye*gr-it*cr*Cr)]}return St.invert=function(_t,Lt){var nr=F(_t*_t+Lt*Lt),cr=-v(nr),gr=r(nr),Cr=nr*gr,Wr=-Lt*cr,ua=nr*Ye,va=F(Cr*Cr+Wr*Wr-ua*ua),Ma=t(Cr*ua+Wr*va,Wr*ua-Cr*va),en=(nr>S?-1:1)*t(_t*cr,nr*r(Ma)*gr+Lt*v(Ma)*cr);return vt.invert(en,Ma)},St}function Bo(Ve){var Ye=v(Ve),it=r(Ve);return function(vt,St){var _t=r(St),Lt=r(vt)*_t,nr=v(vt)*_t,cr=v(St);return[t(nr,Lt*it-cr*Ye),I(cr*it+Lt*Ye)]}}function gs(){var Ve=0,Ye=x.geoProjectionMutator(ho),it=Ye(Ve),vt=it.rotate,St=it.stream,_t=x.geoCircle();return it.parallel=function(Lt){if(!arguments.length)return Ve*g;var nr=it.rotate();return Ye(Ve=Lt*y).rotate(nr)},it.rotate=function(Lt){return arguments.length?(vt.call(it,[Lt[0],Lt[1]-Ve*g]),_t.center([-Lt[0],-Lt[1]]),it):(Lt=vt.call(it),Lt[1]+=Ve*g,Lt)},it.stream=function(Lt){return Lt=St(Lt),Lt.sphere=function(){Lt.polygonStart();var nr=.01,cr=_t.radius(90-nr)().coordinates[0],gr=cr.length-1,Cr=-1,Wr;for(Lt.lineStart();++Cr=0;)Lt.point((Wr=cr[Cr])[0],Wr[1]);Lt.lineEnd(),Lt.polygonEnd()},Lt},it.scale(79.4187).parallel(45).clipAngle(180-.001)}var ro=3,Ei=I(1-1/ro)*g,Ri=Zt(0);function xo(Ve){var Ye=Ei*y,it=me(w,Ye)[0]-me(-w,Ye)[0],vt=Ri(0,Ye)[1],St=me(0,Ye)[1],_t=d-St,Lt=u/Ve,nr=4/u,cr=vt+_t*_t*4/u;function gr(Cr,Wr){var ua,va=E(Wr);if(va>Ye){var Ma=s(Ve-1,n(0,a((Cr+w)/Lt)));Cr+=w*(Ve-1)/Ve-Ma*Lt,ua=me(Cr,va),ua[0]=ua[0]*u/it-u*(Ve-1)/(2*Ve)+Ma*u/Ve,ua[1]=vt+(ua[1]-St)*4*_t/u,Wr<0&&(ua[1]=-ua[1])}else ua=Ri(Cr,Wr);return ua[0]*=nr,ua[1]/=cr,ua}return gr.invert=function(Cr,Wr){Cr/=nr,Wr*=cr;var ua=E(Wr);if(ua>vt){var va=s(Ve-1,n(0,a((Cr+w)/Lt)));Cr=(Cr+w*(Ve-1)/Ve-va*Lt)*it/u;var Ma=me.invert(Cr,.25*(ua-vt)*u/_t+St);return Ma[0]-=w*(Ve-1)/Ve-va*Lt,Wr<0&&(Ma[1]=-Ma[1]),Ma}return Ri.invert(Cr,Wr)},gr}function So(Ve,Ye){return[Ve,Ye&1?90-l:Ei]}function bo(Ve,Ye){return[Ve,Ye&1?-90+l:-Ei]}function Ui(Ve){return[Ve[0]*(1-l),Ve[1]]}function no(Ve){var Ye=[].concat(A.range(-180,180+Ve/2,Ve).map(So),A.range(180,-180-Ve/2,-Ve).map(bo));return{type:"Polygon",coordinates:[Ve===180?Ye.map(Ui):Ye]}}function cs(){var Ve=4,Ye=x.geoProjectionMutator(xo),it=Ye(Ve),vt=it.stream;return it.lobes=function(St){return arguments.length?Ye(Ve=+St):Ve},it.stream=function(St){var _t=it.rotate(),Lt=vt(St),nr=(it.rotate([0,0]),vt(St));return it.rotate(_t),Lt.sphere=function(){x.geoStream(no(180/Ve),nr)},Lt},it.scale(239.75)}function ks(Ve){var Ye=1+Ve,it=v(1/Ye),vt=I(it),St=2*F(w/(_t=w+4*vt*Ye)),_t,Lt=.5*St*(Ye+F(Ve*(2+Ve))),nr=Ve*Ve,cr=Ye*Ye;function gr(Cr,Wr){var ua=1-v(Wr),va,Ma;if(ua&&ua<2){var en=S-Wr,Pn=25,Tn;do{var In=v(en),oi=r(en),Si=vt+t(In,Ye-oi),_i=1+cr-2*Ye*oi;en-=Tn=(en-nr*vt-Ye*In+_i*Si-.5*ua*_t)/(2*Ye*In*Si)}while(E(Tn)>m&&--Pn>0);va=St*F(_i),Ma=Cr*Si/w}else va=St*(Ve+ua),Ma=Cr*vt/w;return[va*v(Ma),Lt-va*r(Ma)]}return gr.invert=function(Cr,Wr){var ua=Cr*Cr+(Wr-=Lt)*Wr,va=(1+cr-ua/(St*St))/(2*Ye),Ma=z(va),en=v(Ma),Pn=vt+t(en,Ye-va);return[I(Cr/F(ua))*w/Pn,I(1-2*(Ma-nr*vt-Ye*en+(1+cr-2*Ye*va)*Pn)/_t)]},gr}function ms(){var Ve=1,Ye=x.geoProjectionMutator(ks),it=Ye(Ve);return it.ratio=function(vt){return arguments.length?Ye(Ve=+vt):Ve},it.scale(167.774).center([0,18.67])}var Mo=.7109889596207567,kn=.0528035274542;function fi(Ve,Ye){return Ye>-Mo?(Ve=Ze(Ve,Ye),Ve[1]+=kn,Ve):Ke(Ve,Ye)}fi.invert=function(Ve,Ye){return Ye>-Mo?Ze.invert(Ve,Ye-kn):Ke.invert(Ve,Ye)};function Fs(){return x.geoProjection(fi).rotate([-20,-55]).scale(164.263).center([0,-5.4036])}function Ss(Ve,Ye){return E(Ye)>Mo?(Ve=Ze(Ve,Ye),Ve[1]-=Ye>0?kn:-kn,Ve):Ke(Ve,Ye)}Ss.invert=function(Ve,Ye){return E(Ye)>Mo?Ze.invert(Ve,Ye+(Ye>0?kn:-kn)):Ke.invert(Ve,Ye)};function Gi(){return x.geoProjection(Ss).scale(152.63)}function js(Ve,Ye,it,vt){var St=F(4*w/(2*it+(1+Ve-Ye/2)*v(2*it)+(Ve+Ye)/2*v(4*it)+Ye/2*v(6*it))),_t=F(vt*v(it)*F((1+Ve*r(2*it)+Ye*r(4*it))/(1+Ve+Ye))),Lt=it*cr(1);function nr(Wr){return F(1+Ve*r(2*Wr)+Ye*r(4*Wr))}function cr(Wr){var ua=Wr*it;return(2*ua+(1+Ve-Ye/2)*v(2*ua)+(Ve+Ye)/2*v(4*ua)+Ye/2*v(6*ua))/it}function gr(Wr){return nr(Wr)*v(Wr)}var Cr=function(Wr,ua){var va=it*Pe(cr,Lt*v(ua)/it,ua/w);isNaN(va)&&(va=it*p(ua));var Ma=St*nr(va);return[Ma*_t*Wr/w*r(va),Ma/_t*v(va)]};return Cr.invert=function(Wr,ua){var va=Pe(gr,ua*_t/St);return[Wr*w/(r(va)*St*_t*nr(va)),I(it*cr(va/it)/Lt)]},it===0&&(St=F(vt/w),Cr=function(Wr,ua){return[Wr*St,v(ua)/St]},Cr.invert=function(Wr,ua){return[Wr/St,I(ua*St)]}),Cr}function No(){var Ve=1,Ye=0,it=45*y,vt=2,St=x.geoProjectionMutator(js),_t=St(Ve,Ye,it,vt);return _t.a=function(Lt){return arguments.length?St(Ve=+Lt,Ye,it,vt):Ve},_t.b=function(Lt){return arguments.length?St(Ve,Ye=+Lt,it,vt):Ye},_t.psiMax=function(Lt){return arguments.length?St(Ve,Ye,it=+Lt*y,vt):it*g},_t.ratio=function(Lt){return arguments.length?St(Ve,Ye,it,vt=+Lt):vt},_t.scale(180.739)}function es(Ve,Ye,it,vt,St,_t,Lt,nr,cr,gr,Cr){if(Cr.nanEncountered)return NaN;var Wr,ua,va,Ma,en,Pn,Tn,In,oi,Si;if(Wr=it-Ye,ua=Ve(Ye+Wr*.25),va=Ve(it-Wr*.25),isNaN(ua)){Cr.nanEncountered=!0;return}if(isNaN(va)){Cr.nanEncountered=!0;return}return Ma=Wr*(vt+4*ua+St)/12,en=Wr*(St+4*va+_t)/12,Pn=Ma+en,Si=(Pn-Lt)/15,gr>cr?(Cr.maxDepthCount++,Pn+Si):Math.abs(Si)>1;do cr[Pn]>va?en=Pn:Ma=Pn,Pn=Ma+en>>1;while(Pn>Ma);var Tn=cr[Pn+1]-cr[Pn];return Tn&&(Tn=(va-cr[Pn+1])/Tn),(Pn+1+Tn)/Lt}var Wr=2*Cr(1)/w*_t/it,ua=function(va,Ma){var en=Cr(E(v(Ma))),Pn=vt(en)*va;return en/=Wr,[Pn,Ma>=0?en:-en]};return ua.invert=function(va,Ma){var en;return Ma*=Wr,E(Ma)<1&&(en=p(Ma)*I(St(E(Ma))*_t)),[va/vt(E(Ma)),en]},ua}function so(){var Ve=0,Ye=2.5,it=1.183136,vt=x.geoProjectionMutator(hi),St=vt(Ve,Ye,it);return St.alpha=function(_t){return arguments.length?vt(Ve=+_t,Ye,it):Ve},St.k=function(_t){return arguments.length?vt(Ve,Ye=+_t,it):Ye},St.gamma=function(_t){return arguments.length?vt(Ve,Ye,it=+_t):it},St.scale(152.63)}function Oi(Ve,Ye){return E(Ve[0]-Ye[0])=0;--cr)it=Ve[1][cr],vt=it[0][0],St=it[0][1],_t=it[1][1],Lt=it[2][0],nr=it[2][1],Ye.push(Zo([[Lt-l,nr-l],[Lt-l,_t+l],[vt+l,_t+l],[vt+l,St-l]],30));return{type:"Polygon",coordinates:[A.merge(Ye)]}}function Di(Ve,Ye,it){var vt,St;function _t(cr,gr){for(var Cr=gr<0?-1:1,Wr=Ye[+(gr<0)],ua=0,va=Wr.length-1;uaWr[ua][2][0];++ua);var Ma=Ve(cr-Wr[ua][1][0],gr);return Ma[0]+=Ve(Wr[ua][1][0],Cr*gr>Cr*Wr[ua][0][1]?Wr[ua][0][1]:gr)[0],Ma}it?_t.invert=it(_t):Ve.invert&&(_t.invert=function(cr,gr){for(var Cr=St[+(gr<0)],Wr=Ye[+(gr<0)],ua=0,va=Cr.length;uaMa&&(en=va,va=Ma,Ma=en),[[Wr,va],[ua,Ma]]})}),Lt):Ye.map(function(gr){return gr.map(function(Cr){return[[Cr[0][0]*g,Cr[0][1]*g],[Cr[1][0]*g,Cr[1][1]*g],[Cr[2][0]*g,Cr[2][1]*g]]})})},Ye!=null&&Lt.lobes(Ye),Lt}var ys=[[[[-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 Di(De,ys).scale(160.857)}var Xs=[[[[-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 Vl(){return Di(Ss,Xs).scale(152.63)}var rl=[[[[-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 Cs(){return Di(Ze,rl).scale(169.529)}var ql=[[[[-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 ju(){return Di(Ze,ql).scale(169.529).rotate([20,0])}var Vu=[[[[-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 yu(){return Di(fi,Vu,Ce).rotate([-20,-55]).scale(164.263).center([0,-5.4036])}var jc=[[[[-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 ff(){return Di(Ke,jc).scale(152.63).rotate([-20,0])}function _s(Ve,Ye){return[3/u*Ve*F(w*w/3-Ye*Ye),Ye]}_s.invert=function(Ve,Ye){return[u/3*Ve/F(w*w/3-Ye*Ye),Ye]};function Cu(){return x.geoProjection(_s).scale(158.837)}function Vc(Ve){function Ye(it,vt){if(E(E(vt)-S)2)return null;it/=2,vt/=2;var _t=it*it,Lt=vt*vt,nr=2*vt/(1+_t+Lt);return nr=c((1+nr)/(1-nr),1/Ve),[t(2*it,1-_t-Lt)/Ve,I((nr-1)/(nr+1))]},Ye}function Pl(){var Ve=.5,Ye=x.geoProjectionMutator(Vc),it=Ye(Ve);return it.spacing=function(vt){return arguments.length?Ye(Ve=+vt):Ve},it.scale(124.75)}var Tl=w/b;function Il(Ve,Ye){return[Ve*(1+F(r(Ye)))/2,Ye/(r(Ye/2)*r(Ve/6))]}Il.invert=function(Ve,Ye){var it=E(Ve),vt=E(Ye),St=l,_t=S;vtl||E(Pn)>l)&&--St>0);return St&&[it,vt]};function Al(){return x.geoProjection(Os).scale(139.98)}function Uo(Ve,Ye){return[v(Ve)/r(Ye),T(Ye)*r(Ve)]}Uo.invert=function(Ve,Ye){var it=Ve*Ve,vt=Ye*Ye,St=vt+1,_t=it+St,Lt=Ve?_*F((_t-F(_t*_t-4*it))/it):1/F(St);return[I(Ve*Lt),p(Ye)*z(Lt)]};function bs(){return x.geoProjection(Uo).scale(144.049).clipAngle(90-.001)}function qu(Ve){var Ye=r(Ve),it=T(M+Ve/2);function vt(St,_t){var Lt=_t-Ve,nr=E(Lt)=0;)Cr=Ve[gr],Wr=Cr[0]+nr*(va=Wr)-cr*ua,ua=Cr[1]+nr*ua+cr*va;return Wr=nr*(va=Wr)-cr*ua,ua=nr*ua+cr*va,[Wr,ua]}return it.invert=function(vt,St){var _t=20,Lt=vt,nr=St;do{for(var cr=Ye,gr=Ve[cr],Cr=gr[0],Wr=gr[1],ua=0,va=0,Ma;--cr>=0;)gr=Ve[cr],ua=Cr+Lt*(Ma=ua)-nr*va,va=Wr+Lt*va+nr*Ma,Cr=gr[0]+Lt*(Ma=Cr)-nr*Wr,Wr=gr[1]+Lt*Wr+nr*Ma;ua=Cr+Lt*(Ma=ua)-nr*va,va=Wr+Lt*va+nr*Ma,Cr=Lt*(Ma=Cr)-nr*Wr-vt,Wr=Lt*Wr+nr*Ma-St;var en=ua*ua+va*va,Pn,Tn;Lt-=Pn=(Cr*ua+Wr*va)/en,nr-=Tn=(Wr*ua-Cr*va)/en}while(E(Pn)+E(Tn)>l*l&&--_t>0);if(_t){var In=F(Lt*Lt+nr*nr),oi=2*e(In*.5),Si=v(oi);return[t(Lt*Si,In*r(oi)),In?I(nr*Si/In):0]}},it}var zo=[[.9972523,0],[.0052513,-.0041175],[.0074606,.0048125],[-.0153783,-.1968253],[.0636871,-.1408027],[.3660976,-.2937382]],Rf=[[.98879,0],[0,0],[-.050909,0],[0,0],[.075528,0]],is=[[.984299,0],[.0211642,.0037608],[-.1036018,-.0575102],[-.0329095,-.0320119],[.0499471,.1223335],[.026046,.0899805],[7388e-7,-.1435792],[.0075848,-.1334108],[-.0216473,.0776645],[-.0225161,.0853673]],Bi=[[.9245,0],[0,0],[.01943,0]],hc=[[.721316,0],[0,0],[-.00881625,-.00617325]];function xu(){return Sl(zo,[152,-64]).scale(1400).center([-160.908,62.4864]).clipAngle(30).angle(7.8)}function dl(){return Sl(Rf,[95,-38]).scale(1e3).clipAngle(55).center([-96.5563,38.8675])}function qc(){return Sl(is,[120,-45]).scale(359.513).clipAngle(55).center([-117.474,53.0628])}function Qu(){return Sl(Bi,[-20,-18]).scale(209.091).center([20,16.7214]).clipAngle(82)}function wc(){return Sl(hc,[165,10]).scale(250).clipAngle(130).center([-165,-10])}function Sl(Ve,Ye){var it=x.geoProjection(_f(Ve)).rotate(Ye).clipAngle(90),vt=x.geoRotation(Ye),St=it.center;return delete it.rotate,it.center=function(_t){return arguments.length?St(vt(_t)):vt.invert(St())},it}var hf=F(6),Yc=F(7);function Tc(Ve,Ye){var it=I(7*v(Ye)/(3*hf));return[hf*Ve*(2*r(2*it/3)-1)/Yc,9*v(it/3)/Yc]}Tc.invert=function(Ve,Ye){var it=3*I(Ye*Yc/9);return[Ve*Yc/(hf*(2*r(2*it/3)-1)),I(v(it)*3*hf/7)]};function ec(){return x.geoProjection(Tc).scale(164.859)}function Gc(Ve,Ye){for(var it=(1+_)*v(Ye),vt=Ye,St=0,_t;St<25&&(vt-=_t=(v(vt/2)+v(vt)-it)/(.5*r(vt/2)+r(vt)),!(E(_t)m&&--vt>0);return _t=it*it,Lt=_t*_t,nr=_t*Lt,[Ve/(.84719-.13063*_t+nr*nr*(-.04515+.05494*_t-.02326*Lt+.00331*nr)),it]};function Lu(){return x.geoProjection(Gu).scale(175.295)}function Ml(Ve,Ye){return[Ve*(1+r(Ye))/2,2*(Ye-T(Ye/2))]}Ml.invert=function(Ve,Ye){for(var it=Ye/2,vt=0,St=1/0;vt<10&&E(St)>l;++vt){var _t=r(Ye/2);Ye-=St=(Ye-T(Ye/2)-it)/(1-.5/(_t*_t))}return[2*Ve/(1+r(Ye)),Ye]};function lc(){return x.geoProjection(Ml).scale(152.63)}var Wc=[[[[-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 Ms(){return Di(fe(1/0),Wc).rotate([20,0]).scale(152.63)}function Lc(Ve,Ye){var it=v(Ye),vt=r(Ye),St=p(Ve);if(Ve===0||E(Ye)===S)return[0,Ye];if(Ye===0)return[Ve,0];if(E(Ve)===S)return[Ve*vt,S*it];var _t=w/(2*Ve)-2*Ve/w,Lt=2*Ye/w,nr=(1-Lt*Lt)/(it-Lt),cr=_t*_t,gr=nr*nr,Cr=1+cr/gr,Wr=1+gr/cr,ua=(_t*it/nr-_t/2)/Cr,va=(gr*it/cr+nr/2)/Wr,Ma=ua*ua+vt*vt/Cr,en=va*va-(gr*it*it/cr+nr*it-1)/Wr;return[S*(ua+F(Ma)*St),S*(va+F(en<0?0:en)*p(-Ye*_t)*St)]}Lc.invert=function(Ve,Ye){Ve/=S,Ye/=S;var it=Ve*Ve,vt=Ye*Ye,St=it+vt,_t=w*w;return[Ve?(St-1+F((1-St)*(1-St)+4*it))/(2*Ve)*S:0,Pe(function(Lt){return St*(w*v(Lt)-2*Lt)*w+4*Lt*Lt*(Ye-v(Lt))+2*w*Lt-_t*Ye},0)]};function xf(){return x.geoProjection(Lc).scale(127.267)}var Kc=1.0148,Ac=.23185,Jc=-.14499,tu=.02406,Qc=Kc,el=5*Ac,ru=7*Jc,tc=9*tu,Bs=1.790857183;function Hu(Ve,Ye){var it=Ye*Ye;return[Ve,Ye*(Kc+it*it*(Ac+it*(Jc+tu*it)))]}Hu.invert=function(Ve,Ye){Ye>Bs?Ye=Bs:Ye<-Bs&&(Ye=-Bs);var it=Ye,vt;do{var St=it*it;it-=vt=(it*(Kc+St*St*(Ac+St*(Jc+tu*St)))-Ye)/(Qc+St*St*(el+St*(ru+tc*St)))}while(E(vt)>l);return[Ve,it]};function Gl(){return x.geoProjection(Hu).scale(139.319)}function au(Ve,Ye){if(E(Ye)l&&--St>0);return Lt=T(vt),[(E(Ye)=0;)if(vt=Ye[nr],it[0]===vt[0]&&it[1]===vt[1]){if(_t)return[_t,it];_t=it}}}function Rl(Ve){for(var Ye=Ve.length,it=[],vt=Ve[Ye-1],St=0;St0?[-vt[0],0]:[180-vt[0],180])};var Ye=gc.map(function(it){return{face:it,project:Ve(it)}});return[-1,0,0,1,0,1,4,5].forEach(function(it,vt){var St=Ye[it];St&&(St.children||(St.children=[])).push(Ye[vt])}),dc(Ye[0],function(it,vt){return Ye[it<-w/2?vt<0?6:4:it<0?vt<0?2:0:itvt^va>vt&&it<(ua-gr)*(vt-Cr)/(va-Cr)+gr&&(St=!St)}return St}function Fl(Ve,Ye){var it=Ye.stream,vt;if(!it)throw new Error("invalid projection");switch(Ve&&Ve.type){case"Feature":vt=vu;break;case"FeatureCollection":vt=tf;break;default:vt=Ru;break}return vt(Ve,it)}function tf(Ve,Ye){return{type:"FeatureCollection",features:Ve.features.map(function(it){return vu(it,Ye)})}}function vu(Ve,Ye){return{type:"Feature",id:Ve.id,properties:Ve.properties,geometry:Ru(Ve.geometry,Ye)}}function Wu(Ve,Ye){return{type:"GeometryCollection",geometries:Ve.geometries.map(function(it){return Ru(it,Ye)})}}function Ru(Ve,Ye){if(!Ve)return null;if(Ve.type==="GeometryCollection")return Wu(Ve,Ye);var it;switch(Ve.type){case"Point":it=Ks;break;case"MultiPoint":it=Ks;break;case"LineString":it=nc;break;case"MultiLineString":it=nc;break;case"Polygon":it=Du;break;case"MultiPolygon":it=Du;break;case"Sphere":it=Du;break;default:return null}return x.geoStream(Ve,Ye(it)),it.result()}var al=[],Yl=[],Ks={point:function(Ve,Ye){al.push([Ve,Ye])},result:function(){var Ve=al.length?al.length<2?{type:"Point",coordinates:al[0]}:{type:"MultiPoint",coordinates:al}:null;return al=[],Ve}},nc={lineStart:Iu,point:function(Ve,Ye){al.push([Ve,Ye])},lineEnd:function(){al.length&&(Yl.push(al),al=[])},result:function(){var Ve=Yl.length?Yl.length<2?{type:"LineString",coordinates:Yl[0]}:{type:"MultiLineString",coordinates:Yl}:null;return Yl=[],Ve}},Du={polygonStart:Iu,lineStart:Iu,point:function(Ve,Ye){al.push([Ve,Ye])},lineEnd:function(){var Ve=al.length;if(Ve){do al.push(al[0].slice());while(++Ve<4);Yl.push(al),al=[]}},polygonEnd:Iu,result:function(){if(!Yl.length)return null;var Ve=[],Ye=[];return Yl.forEach(function(it){Ec(it)?Ve.push([it]):Ye.push(it)}),Ye.forEach(function(it){var vt=it[0];Ve.some(function(St){if(wf(St[0],vt))return St.push(it),!0})||Ve.push([it])}),Yl=[],Ve.length?Ve.length>1?{type:"MultiPolygon",coordinates:Ve}:{type:"Polygon",coordinates:Ve[0]}:null}};function Zc(Ve){var Ye=Ve(S,0)[0]-Ve(-S,0)[0];function it(vt,St){var _t=E(vt)0?vt-w:vt+w,St),nr=(Lt[0]-Lt[1])*_,cr=(Lt[0]+Lt[1])*_;if(_t)return[nr,cr];var gr=Ye*_,Cr=nr>0^cr>0?-1:1;return[Cr*nr-p(cr)*gr,Cr*cr-p(nr)*gr]}return Ve.invert&&(it.invert=function(vt,St){var _t=(vt+St)*_,Lt=(St-vt)*_,nr=E(_t)<.5*Ye&&E(Lt)<.5*Ye;if(!nr){var cr=Ye*_,gr=_t>0^Lt>0?-1:1,Cr=-gr*vt+(Lt>0?1:-1)*cr,Wr=-gr*St+(_t>0?1:-1)*cr;_t=(-Cr-Wr)*_,Lt=(Cr-Wr)*_}var ua=Ve.invert(_t,Lt);return nr||(ua[0]+=_t>0?w:-w),ua}),x.geoProjection(it).rotate([-90,-90,45]).clipAngle(180-.001)}function Qt(){return Zc(ra).scale(176.423)}function yr(){return Zc(Li).scale(111.48)}function $r(Ve,Ye){if(!(0<=(Ye=+Ye)&&Ye<=20))throw new Error("invalid digits");function it(gr){var Cr=gr.length,Wr=2,ua=new Array(Cr);for(ua[0]=+gr[0].toFixed(Ye),ua[1]=+gr[1].toFixed(Ye);Wr2||va[0]!=Cr[0]||va[1]!=Cr[1])&&(Wr.push(va),Cr=va)}return Wr.length===1&&gr.length>1&&Wr.push(it(gr[gr.length-1])),Wr}function _t(gr){return gr.map(St)}function Lt(gr){if(gr==null)return gr;var Cr;switch(gr.type){case"GeometryCollection":Cr={type:"GeometryCollection",geometries:gr.geometries.map(Lt)};break;case"Point":Cr={type:"Point",coordinates:it(gr.coordinates)};break;case"MultiPoint":Cr={type:gr.type,coordinates:vt(gr.coordinates)};break;case"LineString":Cr={type:gr.type,coordinates:St(gr.coordinates)};break;case"MultiLineString":case"Polygon":Cr={type:gr.type,coordinates:_t(gr.coordinates)};break;case"MultiPolygon":Cr={type:"MultiPolygon",coordinates:gr.coordinates.map(_t)};break;default:return gr}return gr.bbox!=null&&(Cr.bbox=gr.bbox),Cr}function nr(gr){var Cr={type:"Feature",properties:gr.properties,geometry:Lt(gr.geometry)};return gr.id!=null&&(Cr.id=gr.id),gr.bbox!=null&&(Cr.bbox=gr.bbox),Cr}if(Ve!=null)switch(Ve.type){case"Feature":return nr(Ve);case"FeatureCollection":{var cr={type:"FeatureCollection",features:Ve.features.map(nr)};return Ve.bbox!=null&&(cr.bbox=Ve.bbox),cr}default:return Lt(Ve)}return Ve}function Vr(Ve){var Ye=v(Ve);function it(vt,St){var _t=Ye?T(vt*Ye/2)/Ye:vt/2;if(!St)return[2*_t,-Ve];var Lt=2*e(_t*v(St)),nr=1/T(St);return[v(Lt)*nr,St+(1-r(Lt))*nr-Ve]}return it.invert=function(vt,St){if(E(St+=Ve)l&&--nr>0);var ua=vt*(gr=T(Lt)),va=T(E(St)0?S:-S)*(cr+St*(Cr-Lt)/2+St*St*(Cr-2*cr+Lt)/2)]}Ja.invert=function(Ve,Ye){var it=Ye/S,vt=it*90,St=s(18,E(vt/5)),_t=n(0,a(St));do{var Lt=tn[_t][1],nr=tn[_t+1][1],cr=tn[s(19,_t+2)][1],gr=cr-Lt,Cr=cr-2*nr+Lt,Wr=2*(E(it)-nr)/gr,ua=Cr/gr,va=Wr*(1-ua*Wr*(1-2*ua*Wr));if(va>=0||_t===1){vt=(Ye>=0?5:-5)*(va+St);var Ma=50,en;do St=s(18,E(vt)/5),_t=a(St),va=St-_t,Lt=tn[_t][1],nr=tn[_t+1][1],cr=tn[s(19,_t+2)][1],vt-=(en=(Ye>=0?S:-S)*(nr+va*(cr-Lt)/2+va*va*(cr-2*nr+Lt)/2)-Ye)*g;while(E(en)>m&&--Ma>0);break}}while(--_t>=0);var Pn=tn[_t][0],Tn=tn[_t+1][0],In=tn[s(19,_t+2)][0];return[Ve/(Tn+va*(In-Pn)/2+va*va*(In-2*Tn+Pn)/2),vt*y]};function Ln(){return x.geoProjection(Ja).scale(152.63)}function On(Ve){function Ye(it,vt){var St=r(vt),_t=(Ve-1)/(Ve-St*r(it));return[_t*St*v(it),_t*v(vt)]}return Ye.invert=function(it,vt){var St=it*it+vt*vt,_t=F(St),Lt=(Ve-F(1-St*(Ve+1)/(Ve-1)))/((Ve-1)/_t+_t/(Ve-1));return[t(it*Lt,_t*F(1-Lt*Lt)),_t?I(vt*Lt/_t):0]},Ye}function Qn(Ve,Ye){var it=On(Ve);if(!Ye)return it;var vt=r(Ye),St=v(Ye);function _t(Lt,nr){var cr=it(Lt,nr),gr=cr[1],Cr=gr*St/(Ve-1)+vt;return[cr[0]*vt/Cr,gr/Cr]}return _t.invert=function(Lt,nr){var cr=(Ve-1)/(Ve-1-nr*St);return it.invert(cr*Lt,cr*nr*vt)},_t}function _n(){var Ve=2,Ye=0,it=x.geoProjectionMutator(Qn),vt=it(Ve,Ye);return vt.distance=function(St){return arguments.length?it(Ve=+St,Ye):Ve},vt.tilt=function(St){return arguments.length?it(Ve,Ye=St*y):Ye*g},vt.scale(432.147).clipAngle(z(1/Ve)*g-1e-6)}var qn=1e-4,En=1e4,dn=-180,ai=dn+qn,Hi=180,Fi=Hi-qn,Zi=-90,Wi=Zi+qn,ii=90,Wn=ii-qn;function ao(Ve){return Ve.length>0}function Fo(Ve){return Math.floor(Ve*En)/En}function hs(Ve){return Ve===Zi||Ve===ii?[0,Ve]:[dn,Fo(Ve)]}function Is(Ve){var Ye=Ve[0],it=Ve[1],vt=!1;return Ye<=ai?(Ye=dn,vt=!0):Ye>=Fi&&(Ye=Hi,vt=!0),it<=Wi?(it=Zi,vt=!0):it>=Wn&&(it=ii,vt=!0),vt?[Ye,it]:Ve}function vs(Ve){return Ve.map(Is)}function Rs(Ve,Ye,it){for(var vt=0,St=Ve.length;vt=Fi||Cr<=Wi||Cr>=Wn){_t[Lt]=Is(cr);for(var Wr=Lt+1;Wrai&&vaWi&&Ma=nr)break;it.push({index:-1,polygon:Ye,ring:_t=_t.slice(Wr-1)}),_t[0]=hs(_t[0][1]),Lt=-1,nr=_t.length}}}}function Yo(Ve){var Ye,it=Ve.length,vt={},St={},_t,Lt,nr,cr,gr;for(Ye=0;Ye0?w-nr:nr)*g],gr=x.geoProjection(Ve(Lt)).rotate(cr),Cr=x.geoRotation(cr),Wr=gr.center;return delete gr.rotate,gr.center=function(ua){return arguments.length?Wr(Cr(ua)):Cr.invert(Wr())},gr.clipAngle(90)}function os(Ve){var Ye=r(Ve);function it(vt,St){var _t=x.geoGnomonicRaw(vt,St);return _t[0]*=Ye,_t}return it.invert=function(vt,St){return x.geoGnomonicRaw.invert(vt/Ye,St)},it}function Hl(){return Wl([-158,21.5],[-77,39]).clipAngle(60).scale(400)}function Wl(Ve,Ye){return ws(os,Ve,Ye)}function $l(Ve){if(!(Ve*=2))return x.geoAzimuthalEquidistantRaw;var Ye=-Ve/2,it=-Ye,vt=Ve*Ve,St=T(it),_t=.5/v(it);function Lt(nr,cr){var gr=z(r(cr)*r(nr-Ye)),Cr=z(r(cr)*r(nr-it)),Wr=cr<0?-1:1;return gr*=gr,Cr*=Cr,[(gr-Cr)/(2*Ve),Wr*F(4*vt*Cr-(vt-gr+Cr)*(vt-gr+Cr))/(2*Ve)]}return Lt.invert=function(nr,cr){var gr=cr*cr,Cr=r(F(gr+(ua=nr+Ye)*ua)),Wr=r(F(gr+(ua=nr+it)*ua)),ua,va;return[t(va=Cr-Wr,ua=(Cr+Wr)*St),(cr<0?-1:1)*z(F(ua*ua+va*va)*_t)]},Lt}function uc(){return Xl([-158,21.5],[-77,39]).clipAngle(130).scale(122.571)}function Xl(Ve,Ye){return ws($l,Ve,Ye)}function Xu(Ve,Ye){if(E(Ye)l&&--nr>0);return[p(Ve)*(F(St*St+4)+St)*w/4,S*Lt]};function iu(){return x.geoProjection(du).scale(127.16)}function ze(Ve,Ye,it,vt,St){function _t(Lt,nr){var cr=it*v(vt*nr),gr=F(1-cr*cr),Cr=F(2/(1+gr*r(Lt*=St)));return[Ve*gr*Cr*v(Lt),Ye*cr*Cr]}return _t.invert=function(Lt,nr){var cr=Lt/Ve,gr=nr/Ye,Cr=F(cr*cr+gr*gr),Wr=2*I(Cr/2);return[t(Lt*T(Wr),Ve*Cr)/St,Cr&&I(nr*v(Wr)/(Ye*it*Cr))/vt]},_t}function L(Ve,Ye,it,vt){var St=w/3;Ve=n(Ve,l),Ye=n(Ye,l),Ve=s(Ve,S),Ye=s(Ye,w-l),it=n(it,0),it=s(it,100-l),vt=n(vt,l);var _t=it/100+1,Lt=vt/100,nr=z(_t*r(St))/St,cr=v(Ve)/v(nr*S),gr=Ye/w,Cr=F(Lt*v(Ve/2)/v(Ye/2)),Wr=Cr/F(gr*cr*nr),ua=1/(Cr*F(gr*cr*nr));return ze(Wr,ua,cr,nr,gr)}function ne(){var Ve=65*y,Ye=60*y,it=20,vt=200,St=x.geoProjectionMutator(L),_t=St(Ve,Ye,it,vt);return _t.poleline=function(Lt){return arguments.length?St(Ve=+Lt*y,Ye,it,vt):Ve*g},_t.parallels=function(Lt){return arguments.length?St(Ve,Ye=+Lt*y,it,vt):Ye*g},_t.inflation=function(Lt){return arguments.length?St(Ve,Ye,it=+Lt,vt):it},_t.ratio=function(Lt){return arguments.length?St(Ve,Ye,it,vt=+Lt):vt},_t.scale(163.775)}function Te(){return ne().poleline(65).parallels(60).inflation(0).ratio(200).scale(172.633)}var Se=4*w+3*F(3),Re=2*F(2*w*F(3)/Se),ft=Je(Re*F(3)/w,Re,Se/6);function xt(){return x.geoProjection(ft).scale(176.84)}function Dt(Ve,Ye){return[Ve*F(1-3*Ye*Ye/(w*w)),Ye]}Dt.invert=function(Ve,Ye){return[Ve/F(1-3*Ye*Ye/(w*w)),Ye]};function er(){return x.geoProjection(Dt).scale(152.63)}function fr(Ve,Ye){var it=r(Ye),vt=r(Ve)*it,St=1-vt,_t=r(Ve=t(v(Ve)*it,-v(Ye))),Lt=v(Ve);return it=F(1-vt*vt),[Lt*it-_t*St,-_t*it-Lt*St]}fr.invert=function(Ve,Ye){var it=(Ve*Ve+Ye*Ye)/-2,vt=F(-it*(2+it)),St=Ye*it+Ve*vt,_t=Ve*it-Ye*vt,Lt=F(_t*_t+St*St);return[t(vt*St,Lt*(1+it)),Lt?-I(vt*_t/Lt):0]};function pr(){return x.geoProjection(fr).rotate([0,-90,45]).scale(124.75).clipAngle(180-.001)}function Br(Ve,Ye){var it=ue(Ve,Ye);return[(it[0]+Ve/S)/2,(it[1]+Ye)/2]}Br.invert=function(Ve,Ye){var it=Ve,vt=Ye,St=25;do{var _t=r(vt),Lt=v(vt),nr=v(2*vt),cr=Lt*Lt,gr=_t*_t,Cr=v(it),Wr=r(it/2),ua=v(it/2),va=ua*ua,Ma=1-gr*Wr*Wr,en=Ma?z(_t*Wr)*F(Pn=1/Ma):Pn=0,Pn,Tn=.5*(2*en*_t*ua+it/S)-Ve,In=.5*(en*Lt+vt)-Ye,oi=.5*Pn*(gr*va+en*_t*Wr*cr)+.5/S,Si=Pn*(Cr*nr/4-en*Lt*ua),_i=.125*Pn*(nr*ua-en*Lt*gr*Cr),Ki=.5*Pn*(cr*Wr+en*va*_t)+.5,Go=Si*_i-Ki*oi,Ho=(In*Si-Tn*Ki)/Go,Ao=(Tn*_i-In*oi)/Go;it-=Ho,vt-=Ao}while((E(Ho)>l||E(Ao)>l)&&--St>0);return[it,vt]};function ea(){return x.geoProjection(Br).scale(158.837)}h.geoNaturalEarth=x.geoNaturalEarth1,h.geoNaturalEarthRaw=x.geoNaturalEarth1Raw,h.geoAiry=te,h.geoAiryRaw=X,h.geoAitoff=ie,h.geoAitoffRaw=ue,h.geoArmadillo=q,h.geoArmadilloRaw=le,h.geoAugust=ee,h.geoAugustRaw=J,h.geoBaker=V,h.geoBakerRaw=Q,h.geoBerghaus=ae,h.geoBerghausRaw=re,h.geoBertin1953=at,h.geoBertin1953Raw=je,h.geoBoggs=et,h.geoBoggsRaw=De,h.geoBonne=Ut,h.geoBonneRaw=kt,h.geoBottomley=vr,h.geoBottomleyRaw=Yt,h.geoBromley=Rr,h.geoBromleyRaw=hr,h.geoChamberlin=de,h.geoChamberlinRaw=Fe,h.geoChamberlinAfrica=Oe,h.geoCollignon=be,h.geoCollignonRaw=me,h.geoCraig=Xe,h.geoCraigRaw=Ie,h.geoCraster=Ct,h.geoCrasterRaw=bt,h.geoCylindricalEqualArea=Wt,h.geoCylindricalEqualAreaRaw=Zt,h.geoCylindricalStereographic=Jt,h.geoCylindricalStereographicRaw=rr,h.geoEckert1=ia,h.geoEckert1Raw=mr,h.geoEckert2=La,h.geoEckert2Raw=Ia,h.geoEckert3=Ga,h.geoEckert3Raw=Aa,h.geoEckert4=Xa,h.geoEckert4Raw=ba,h.geoEckert5=Kt,h.geoEckert5Raw=yn,h.geoEckert6=$t,h.geoEckert6Raw=zt,h.geoEisenlohr=qr,h.geoEisenlohrRaw=Tr,h.geoFahey=wa,h.geoFaheyRaw=Gr,h.geoFoucaut=Ya,h.geoFoucautRaw=Da,h.geoFoucautSinusoidal=an,h.geoFoucautSinusoidalRaw=Ka,h.geoGilbert=Lr,h.geoGingery=Or,h.geoGingeryRaw=Er,h.geoGinzburg4=Hr,h.geoGinzburg4Raw=Dr,h.geoGinzburg5=ta,h.geoGinzburg5Raw=na,h.geoGinzburg6=or,h.geoGinzburg6Raw=At,h.geoGinzburg8=oa,h.geoGinzburg8Raw=Ar,h.geoGinzburg9=Sa,h.geoGinzburg9Raw=ga,h.geoGringorten=mn,h.geoGringortenRaw=ra,h.geoGuyou=bi,h.geoGuyouRaw=Li,h.geoHammer=Ae,h.geoHammerRaw=fe,h.geoHammerRetroazimuthal=gs,h.geoHammerRetroazimuthalRaw=ho,h.geoHealpix=cs,h.geoHealpixRaw=xo,h.geoHill=ms,h.geoHillRaw=ks,h.geoHomolosine=Gi,h.geoHomolosineRaw=Ss,h.geoHufnagel=No,h.geoHufnagelRaw=js,h.geoHyperelliptical=so,h.geoHyperellipticalRaw=hi,h.geoInterrupt=Di,h.geoInterruptedBoggs=wl,h.geoInterruptedHomolosine=Vl,h.geoInterruptedMollweide=Cs,h.geoInterruptedMollweideHemispheres=ju,h.geoInterruptedSinuMollweide=yu,h.geoInterruptedSinusoidal=ff,h.geoKavrayskiy7=Cu,h.geoKavrayskiy7Raw=_s,h.geoLagrange=Pl,h.geoLagrangeRaw=Vc,h.geoLarrivee=_u,h.geoLarriveeRaw=Il,h.geoLaskowski=Al,h.geoLaskowskiRaw=Os,h.geoLittrow=bs,h.geoLittrowRaw=Uo,h.geoLoximuthal=Zl,h.geoLoximuthalRaw=qu,h.geoMiller=Zs,h.geoMillerRaw=Ju,h.geoModifiedStereographic=Sl,h.geoModifiedStereographicRaw=_f,h.geoModifiedStereographicAlaska=xu,h.geoModifiedStereographicGs48=dl,h.geoModifiedStereographicGs50=qc,h.geoModifiedStereographicMiller=Qu,h.geoModifiedStereographicLee=wc,h.geoMollweide=Me,h.geoMollweideRaw=Ze,h.geoMtFlatPolarParabolic=ec,h.geoMtFlatPolarParabolicRaw=Tc,h.geoMtFlatPolarQuartic=Hc,h.geoMtFlatPolarQuarticRaw=Gc,h.geoMtFlatPolarSinusoidal=$c,h.geoMtFlatPolarSinusoidalRaw=bu,h.geoNaturalEarth2=Lu,h.geoNaturalEarth2Raw=Gu,h.geoNellHammer=lc,h.geoNellHammerRaw=Ml,h.geoInterruptedQuarticAuthalic=Ms,h.geoNicolosi=xf,h.geoNicolosiRaw=Lc,h.geoPatterson=Gl,h.geoPattersonRaw=Hu,h.geoPolyconic=Ys,h.geoPolyconicRaw=au,h.geoPolyhedral=dc,h.geoPolyhedralButterfly=Gs,h.geoPolyhedralCollignon=Xc,h.geoPolyhedralWaterman=Ws,h.geoProject=Fl,h.geoGringortenQuincuncial=Qt,h.geoPeirceQuincuncial=yr,h.geoPierceQuincuncial=yr,h.geoQuantize=$r,h.geoQuincuncial=Zc,h.geoRectangularPolyconic=ma,h.geoRectangularPolyconicRaw=Vr,h.geoRobinson=Ln,h.geoRobinsonRaw=Ja,h.geoSatellite=_n,h.geoSatelliteRaw=Qn,h.geoSinuMollweide=Fs,h.geoSinuMollweideRaw=fi,h.geoSinusoidal=Et,h.geoSinusoidalRaw=Ke,h.geoStitch=Ls,h.geoTimes=go,h.geoTimesRaw=wi,h.geoTwoPointAzimuthal=Wl,h.geoTwoPointAzimuthalRaw=os,h.geoTwoPointAzimuthalUsa=Hl,h.geoTwoPointEquidistant=Xl,h.geoTwoPointEquidistantRaw=$l,h.geoTwoPointEquidistantUsa=uc,h.geoVanDerGrinten=ll,h.geoVanDerGrintenRaw=Xu,h.geoVanDerGrinten2=Yi,h.geoVanDerGrinten2Raw=Zu,h.geoVanDerGrinten3=Yu,h.geoVanDerGrinten3Raw=io,h.geoVanDerGrinten4=iu,h.geoVanDerGrinten4Raw=du,h.geoWagner=ne,h.geoWagner7=Te,h.geoWagnerRaw=L,h.geoWagner4=xt,h.geoWagner4Raw=ft,h.geoWagner6=er,h.geoWagner6Raw=Dt,h.geoWiechel=pr,h.geoWiechelRaw=fr,h.geoWinkel3=ea,h.geoWinkel3Raw=Br,Object.defineProperty(h,"__esModule",{value:!0})})}}),rP=He({"src/plots/geo/zoom.js"(Y,H){var h=yi(),x=Qr(),A=qi(),E=Math.PI/180,e=180/Math.PI,t={cursor:"pointer"},r={cursor:"auto"};function i(g,y){var R=g.projection,I;return y._isScoped?I=n:y._isClipped?I=c:I=s,I(g,R)}H.exports=i;function a(g,y){return h.behavior.zoom().translate(y.translate()).scale(y.scale())}function o(g,y,R){var I=g.id,z=g.graphDiv,F=z.layout,B=F[I],O=z._fullLayout,P=O[I],N={},U={};function X(te,ue){N[I+"."+te]=x.nestedProperty(B,te).get(),A.call("_storeDirectGUIEdit",F,O._preGUI,N);var ie=x.nestedProperty(P,te);ie.get()!==ue&&(ie.set(ue),x.nestedProperty(B,te).set(ue),U[I+"."+te]=ue)}R(X),X("projection.scale",y.scale()/g.fitScale),X("fitbounds",!1),z.emit("plotly_relayout",U)}function n(g,y){var R=a(g,y);function I(){h.select(this).style(t)}function z(){y.scale(h.event.scale).translate(h.event.translate),g.render(!0);var O=y.invert(g.midPt);g.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":y.scale()/g.fitScale,"geo.center.lon":O[0],"geo.center.lat":O[1]})}function F(O){var P=y.invert(g.midPt);O("center.lon",P[0]),O("center.lat",P[1])}function B(){h.select(this).style(r),o(g,y,F)}return R.on("zoomstart",I).on("zoom",z).on("zoomend",B),R}function s(g,y){var R=a(g,y),I=2,z,F,B,O,P,N,U,X,te;function ue(Z){return y.invert(Z)}function ie(Z){var se=ue(Z);if(!se)return!0;var Q=y(se);return Math.abs(Q[0]-Z[0])>I||Math.abs(Q[1]-Z[1])>I}function le(){h.select(this).style(t),z=h.mouse(this),F=y.rotate(),B=y.translate(),O=F,P=ue(z)}function q(){if(N=h.mouse(this),ie(z)){R.scale(y.scale()),R.translate(y.translate());return}y.scale(h.event.scale),y.translate([B[0],h.event.translate[1]]),P?ue(N)&&(X=ue(N),U=[O[0]+(X[0]-P[0]),F[1],F[2]],y.rotate(U),O=U):(z=N,P=ue(z)),te=!0,g.render(!0);var Z=y.rotate(),se=y.invert(g.midPt);g.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":y.scale()/g.fitScale,"geo.center.lon":se[0],"geo.center.lat":se[1],"geo.projection.rotation.lon":-Z[0]})}function J(){h.select(this).style(r),te&&o(g,y,ee)}function ee(Z){var se=y.rotate(),Q=y.invert(g.midPt);Z("projection.rotation.lon",-se[0]),Z("center.lon",Q[0]),Z("center.lat",Q[1])}return R.on("zoomstart",le).on("zoom",q).on("zoomend",J),R}function c(g,y){y.rotate(),y.scale();var R=a(g,y),I=u(R,"zoomstart","zoom","zoomend"),z=0,F=R.on,B;R.on("zoomstart",function(){h.select(this).style(t);var X=h.mouse(this),te=y.rotate(),ue=te,ie=y.translate(),le=p(te);B=f(y,X),F.call(R,"zoom",function(){var q=h.mouse(this);if(y.scale(h.event.scale),!B)X=q,B=f(y,X);else if(f(y,q)){y.rotate(te).translate(ie);var J=f(y,q),ee=T(B,J),Z=M(v(le,ee)),se=l(Z,B,ue);(!isFinite(se[0])||!isFinite(se[1])||!isFinite(se[2]))&&(se=ue),y.rotate(se),ue=se}P(I.of(this,arguments))}),O(I.of(this,arguments))}).on("zoomend",function(){h.select(this).style(r),F.call(R,"zoom",null),N(I.of(this,arguments)),o(g,y,U)}).on("zoom.redraw",function(){g.render(!0);var X=y.rotate();g.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":y.scale()/g.fitScale,"geo.projection.rotation.lon":-X[0],"geo.projection.rotation.lat":-X[1]})});function O(X){z++||X({type:"zoomstart"})}function P(X){X({type:"zoom"})}function N(X){--z||X({type:"zoomend"})}function U(X){var te=y.rotate();X("projection.rotation.lon",-te[0]),X("projection.rotation.lat",-te[1])}return h.rebind(R,I,"on")}function f(g,y){var R=g.invert(y);return R&&isFinite(R[0])&&isFinite(R[1])&&_(R)}function p(g){var y=.5*g[0]*E,R=.5*g[1]*E,I=.5*g[2]*E,z=Math.sin(y),F=Math.cos(y),B=Math.sin(R),O=Math.cos(R),P=Math.sin(I),N=Math.cos(I);return[F*O*N+z*B*P,z*O*N-F*B*P,F*B*N+z*O*P,F*O*P-z*B*N]}function v(g,y){var R=g[0],I=g[1],z=g[2],F=g[3],B=y[0],O=y[1],P=y[2],N=y[3];return[R*B-I*O-z*P-F*N,R*O+I*B+z*N-F*P,R*P-I*N+z*B+F*O,R*N+I*P-z*O+F*B]}function T(g,y){if(!(!g||!y)){var R=d(g,y),I=Math.sqrt(b(R,R)),z=.5*Math.acos(Math.max(-1,Math.min(1,b(g,y)))),F=Math.sin(z)/I;return I&&[Math.cos(z),R[2]*F,-R[1]*F,R[0]*F]}}function l(g,y,R){var I=S(y,2,g[0]);I=S(I,1,g[1]),I=S(I,0,g[2]-R[2]);var z=y[0],F=y[1],B=y[2],O=I[0],P=I[1],N=I[2],U=Math.atan2(F,z)*e,X=Math.sqrt(z*z+F*F),te,ue;Math.abs(P)>X?(ue=(P>0?90:-90)-U,te=0):(ue=Math.asin(P/X)*e-U,te=Math.sqrt(X*X-P*P));var ie=180-ue-2*U,le=(Math.atan2(N,O)-Math.atan2(B,te))*e,q=(Math.atan2(N,O)-Math.atan2(B,-te))*e,J=m(R[0],R[1],ue,le),ee=m(R[0],R[1],ie,q);return J<=ee?[ue,le,R[2]]:[ie,q,R[2]]}function m(g,y,R,I){var z=w(R-g),F=w(I-y);return Math.sqrt(z*z+F*F)}function w(g){return(g%360+540)%360-180}function S(g,y,R){var I=R*E,z=g.slice(),F=y===0?1:0,B=y===2?1:2,O=Math.cos(I),P=Math.sin(I);return z[F]=g[F]*O-g[B]*P,z[B]=g[B]*O+g[F]*P,z}function M(g){return[Math.atan2(2*(g[0]*g[1]+g[2]*g[3]),1-2*(g[1]*g[1]+g[2]*g[2]))*e,Math.asin(Math.max(-1,Math.min(1,2*(g[0]*g[2]-g[3]*g[1]))))*e,Math.atan2(2*(g[0]*g[3]+g[1]*g[2]),1-2*(g[2]*g[2]+g[3]*g[3]))*e]}function _(g){var y=g[0]*E,R=g[1]*E,I=Math.cos(R);return[I*Math.cos(y),I*Math.sin(y),Math.sin(R)]}function b(g,y){for(var R=0,I=0,z=g.length;I0&&P._module.calcGeoJSON(O,I)}if(!z){var N=this.updateProjection(R,I);if(N)return;(!this.viewInitial||this.scope!==F.scope)&&this.saveViewInitial(F)}this.scope=F.scope,this.updateBaseLayers(I,F),this.updateDims(I,F),this.updateFx(I,F),s.generalUpdatePerTraceModule(this.graphDiv,this,R,F);var U=this.layers.frontplot.select(".scatterlayer");this.dataPoints.point=U.selectAll(".point"),this.dataPoints.text=U.selectAll("text"),this.dataPaths.line=U.selectAll(".js-line");var X=this.layers.backplot.select(".choroplethlayer");this.dataPaths.choropleth=X.selectAll("path"),this._render()},d.updateProjection=function(R,I){var z=this.graphDiv,F=I[this.id],B=I._size,O=F.domain,P=F.projection,N=F.lonaxis,U=F.lataxis,X=N._ax,te=U._ax,ue=this.projection=u(F),ie=[[B.l+B.w*O.x[0],B.t+B.h*(1-O.y[1])],[B.l+B.w*O.x[1],B.t+B.h*(1-O.y[0])]],le=F.center||{},q=P.rotation||{},J=N.range||[],ee=U.range||[];if(F.fitbounds){X._length=ie[1][0]-ie[0][0],te._length=ie[1][1]-ie[0][1],X.range=f(z,X),te.range=f(z,te);var Z=(X.range[0]+X.range[1])/2,se=(te.range[0]+te.range[1])/2;if(F._isScoped)le={lon:Z,lat:se};else if(F._isClipped){le={lon:Z,lat:se},q={lon:Z,lat:se,roll:q.roll};var Q=P.type,V=w.lonaxisSpan[Q]/2||180,re=w.lataxisSpan[Q]/2||90;J=[Z-V,Z+V],ee=[se-re,se+re]}else le={lon:Z,lat:se},q={lon:Z,lat:q.lat,roll:q.roll}}ue.center([le.lon-q.lon,le.lat-q.lat]).rotate([-q.lon,-q.lat,q.roll]).parallels(P.parallels);var ae=y(J,ee);ue.fitExtent(ie,ae);var fe=this.bounds=ue.getBounds(ae),xe=this.fitScale=ue.scale(),Ae=ue.translate();if(F.fitbounds){var Pe=ue.getBounds(y(X.range,te.range)),Ce=Math.min((fe[1][0]-fe[0][0])/(Pe[1][0]-Pe[0][0]),(fe[1][1]-fe[0][1])/(Pe[1][1]-Pe[0][1]));isFinite(Ce)?ue.scale(Ce*xe):r.warn("Something went wrong during"+this.id+"fitbounds computations.")}else ue.scale(P.scale*xe);var je=this.midPt=[(fe[0][0]+fe[1][0])/2,(fe[0][1]+fe[1][1])/2];if(ue.translate([Ae[0]+(je[0]-Ae[0]),Ae[1]+(je[1]-Ae[1])]).clipExtent(fe),F._isAlbersUsa){var at=ue([le.lon,le.lat]),tt=ue.translate();ue.translate([tt[0]-(at[0]-tt[0]),tt[1]-(at[1]-tt[1])])}},d.updateBaseLayers=function(R,I){var z=this,F=z.topojson,B=z.layers,O=z.basePaths;function P(ie){return ie==="lonaxis"||ie==="lataxis"}function N(ie){return!!w.lineLayers[ie]}function U(ie){return!!w.fillLayers[ie]}var X=this.hasChoropleth?w.layersForChoropleth:w.layers,te=X.filter(function(ie){return N(ie)||U(ie)?I["show"+ie]:P(ie)?I[ie].showgrid:!0}),ue=z.framework.selectAll(".layer").data(te,String);ue.exit().each(function(ie){delete B[ie],delete O[ie],h.select(this).remove()}),ue.enter().append("g").attr("class",function(ie){return"layer "+ie}).each(function(ie){var le=B[ie]=h.select(this);ie==="bg"?z.bgRect=le.append("rect").style("pointer-events","all"):P(ie)?O[ie]=le.append("path").style("fill","none"):ie==="backplot"?le.append("g").classed("choroplethlayer",!0):ie==="frontplot"?le.append("g").classed("scatterlayer",!0):N(ie)?O[ie]=le.append("path").style("fill","none").style("stroke-miterlimit",2):U(ie)&&(O[ie]=le.append("path").style("stroke","none"))}),ue.order(),ue.each(function(ie){var le=O[ie],q=w.layerNameToAdjective[ie];ie==="frame"?le.datum(w.sphereSVG):N(ie)||U(ie)?le.datum(_(F,F.objects[ie])):P(ie)&&le.datum(g(ie,I,R)).call(a.stroke,I[ie].gridcolor).call(o.dashLine,I[ie].griddash,I[ie].gridwidth),N(ie)?le.call(a.stroke,I[q+"color"]).call(o.dashLine,"",I[q+"width"]):U(ie)&&le.call(a.fill,I[q+"color"])})},d.updateDims=function(R,I){var z=this.bounds,F=(I.framewidth||0)/2,B=z[0][0]-F,O=z[0][1]-F,P=z[1][0]-B+F,N=z[1][1]-O+F;o.setRect(this.clipRect,B,O,P,N),this.bgRect.call(o.setRect,B,O,P,N).call(a.fill,I.bgcolor),this.xaxis._offset=B,this.xaxis._length=P,this.yaxis._offset=O,this.yaxis._length=N},d.updateFx=function(R,I){var z=this,F=z.graphDiv,B=z.bgRect,O=R.dragmode,P=R.clickmode;if(z.isStatic)return;function N(){var ue=z.viewInitial,ie={};for(var le in ue)ie[z.id+"."+le]=ue[le];t.call("_guiRelayout",F,ie),F.emit("plotly_doubleclick",null)}function U(ue){return z.projection.invert([ue[0]+z.xaxis._offset,ue[1]+z.yaxis._offset])}var X=function(ue,ie){if(ie.isRect){var le=ue.range={};le[z.id]=[U([ie.xmin,ie.ymin]),U([ie.xmax,ie.ymax])]}else{var q=ue.lassoPoints={};q[z.id]=ie.map(U)}},te={element:z.bgRect.node(),gd:F,plotinfo:{id:z.id,xaxis:z.xaxis,yaxis:z.yaxis,fillRangeItems:X},xaxes:[z.xaxis],yaxes:[z.yaxis],subplot:z.id,clickFn:function(ue){ue===2&&T(F)}};O==="pan"?(B.node().onmousedown=null,B.call(m(z,I)),B.on("dblclick.zoom",N),F._context._scrollZoom.geo||B.on("wheel.zoom",null)):(O==="select"||O==="lasso")&&(B.on(".zoom",null),te.prepFn=function(ue,ie,le){v(ue,ie,le,te,O)},p.init(te)),B.on("mousemove",function(){var ue=z.projection.invert(r.getPositionFromD3Event());if(!ue)return p.unhover(F,h.event);z.xaxis.p2c=function(){return ue[0]},z.yaxis.p2c=function(){return ue[1]},n.hover(F,h.event,z.id)}),B.on("mouseout",function(){F._dragging||p.unhover(F,h.event)}),B.on("click",function(){O!=="select"&&O!=="lasso"&&(P.indexOf("select")>-1&&l(h.event,F,[z.xaxis],[z.yaxis],z.id,te),P.indexOf("event")>-1&&n.click(F,h.event))})},d.makeFramework=function(){var R=this,I=R.graphDiv,z=I._fullLayout,F="clip"+z._uid+R.id;R.clipDef=z._clips.append("clipPath").attr("id",F),R.clipRect=R.clipDef.append("rect"),R.framework=h.select(R.container).append("g").attr("class","geo "+R.id).call(o.setClipUrl,F,I),R.project=function(B){var O=R.projection(B);return O?[O[0]-R.xaxis._offset,O[1]-R.yaxis._offset]:[null,null]},R.xaxis={_id:"x",c2p:function(B){return R.project(B)[0]}},R.yaxis={_id:"y",c2p:function(B){return R.project(B)[1]}},R.mockAxis={type:"linear",showexponent:"all",exponentformat:"B"},c.setConvert(R.mockAxis,z)},d.saveViewInitial=function(R){var I=R.center||{},z=R.projection,F=z.rotation||{};this.viewInitial={fitbounds:R.fitbounds,"projection.scale":z.scale};var B;R._isScoped?B={"center.lon":I.lon,"center.lat":I.lat}:R._isClipped?B={"projection.rotation.lon":F.lon,"projection.rotation.lat":F.lat}:B={"center.lon":I.lon,"center.lat":I.lat,"projection.rotation.lon":F.lon},r.extendFlat(this.viewInitial,B)},d.render=function(R){this._hasMarkerAngles&&R?this.plot(this._geoCalcData,this._fullLayout,[],!0):this._render()},d._render=function(){var R=this.projection,I=R.getPath(),z;function F(O){var P=R(O.lonlat);return P?i(P[0],P[1]):null}function B(O){return R.isLonLatOverEdges(O.lonlat)?"none":null}for(z in this.basePaths)this.basePaths[z].attr("d",I);for(z in this.dataPaths)this.dataPaths[z].attr("d",function(O){return I(O.geojson)});for(z in this.dataPoints)this.dataPoints[z].attr("display",B).attr("transform",F)};function u(R){var I=R.projection,z=I.type,F=w.projNames[z];F="geo"+r.titleCase(F);for(var B=x[F]||e[F],O=B(),P=R._isSatellite?Math.acos(1/I.distance)*180/Math.PI:R._isClipped?w.lonaxisSpan[z]/2:null,N=["center","rotate","parallels","clipExtent"],U=function(ue){return ue?O:[]},X=0;Xq}else return!1},O.getPath=function(){return A().projection(O)},O.getBounds=function(ue){return O.getPath().bounds(ue)},O.precision(w.precision),R._isSatellite&&O.tilt(I.tilt).distance(I.distance),P&&O.clipAngle(P-w.clipPad),O}function g(R,I,z){var F=1e-6,B=2.5,O=I[R],P=w.scopeDefaults[I.scope],N,U,X;R==="lonaxis"?(N=P.lonaxisRange,U=P.lataxisRange,X=function(se,Q){return[se,Q]}):R==="lataxis"&&(N=P.lataxisRange,U=P.lonaxisRange,X=function(se,Q){return[Q,se]});var te={type:"linear",range:[N[0],N[1]-F],tick0:O.tick0,dtick:O.dtick};c.setConvert(te,z);var ue=c.calcTicks(te);!I.isScoped&&R==="lonaxis"&&ue.pop();for(var ie=ue.length,le=new Array(ie),q=0;q0&&B<0&&(B+=360);var N=(B-F)/4;return{type:"Polygon",coordinates:[[[F,O],[F,P],[F+N,P],[F+2*N,P],[F+3*N,P],[B,P],[B,O],[B-N,O],[B-2*N,O],[B-3*N,O],[F,O]]]}}}}),sT=He({"src/plots/geo/layout_attributes.js"(Y,H){var h=mf(),x=Ku().attributes,A=Yf().dash,E=Gm(),e=Uu().overrideAll,t=jd(),r={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:h.lightLine},gridwidth:{valType:"number",min:0,dflt:1},griddash:A},i=H.exports=e({domain:x({name:"geo"},{}),fitbounds:{valType:"enumerated",values:[!1,"locations","geojson"],dflt:!1,editType:"plot"},resolution:{valType:"enumerated",values:[110,50],dflt:110,coerceNumber:!0},scope:{valType:"enumerated",values:t(E.scopeDefaults),dflt:"world"},projection:{type:{valType:"enumerated",values:t(E.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}},center:{lon:{valType:"number"},lat:{valType:"number"}},visible:{valType:"boolean",dflt:!0},showcoastlines:{valType:"boolean"},coastlinecolor:{valType:"color",dflt:h.defaultLine},coastlinewidth:{valType:"number",min:0,dflt:1},showland:{valType:"boolean",dflt:!1},landcolor:{valType:"color",dflt:E.landColor},showocean:{valType:"boolean",dflt:!1},oceancolor:{valType:"color",dflt:E.waterColor},showlakes:{valType:"boolean",dflt:!1},lakecolor:{valType:"color",dflt:E.waterColor},showrivers:{valType:"boolean",dflt:!1},rivercolor:{valType:"color",dflt:E.waterColor},riverwidth:{valType:"number",min:0,dflt:1},showcountries:{valType:"boolean"},countrycolor:{valType:"color",dflt:h.defaultLine},countrywidth:{valType:"number",min:0,dflt:1},showsubunits:{valType:"boolean"},subunitcolor:{valType:"color",dflt:h.defaultLine},subunitwidth:{valType:"number",min:0,dflt:1},showframe:{valType:"boolean"},framecolor:{valType:"color",dflt:h.defaultLine},framewidth:{valType:"number",min:0,dflt:1},bgcolor:{valType:"color",dflt:h.background},lonaxis:r,lataxis:r},"plot","from-root");i.uirevision={valType:"any",editType:"none"}}}),nP=He({"src/plots/geo/layout_defaults.js"(Y,H){var h=Qr(),x=Yd(),A=$f().getSubplotData,E=Gm(),e=sT(),t=E.axesNames;H.exports=function(a,o,n){x(a,o,n,{type:"geo",attributes:e,handleDefaults:r,fullData:n,partition:"y"})};function r(i,a,o,n){var s=A(n.fullData,"geo",n.id),c=s.map(function(ee){return ee.index}),f=o("resolution"),p=o("scope"),v=E.scopeDefaults[p],T=o("projection.type",v.projType),l=a._isAlbersUsa=T==="albers usa";l&&(p=a.scope="usa");var m=a._isScoped=p!=="world",w=a._isSatellite=T==="satellite",S=a._isConic=T.indexOf("conic")!==-1||T==="albers",M=a._isClipped=!!E.lonaxisSpan[T];if(i.visible===!1){var _=h.extendDeep({},a._template);_.showcoastlines=!1,_.showcountries=!1,_.showframe=!1,_.showlakes=!1,_.showland=!1,_.showocean=!1,_.showrivers=!1,_.showsubunits=!1,_.lonaxis&&(_.lonaxis.showgrid=!1),_.lataxis&&(_.lataxis.showgrid=!1),a._template=_}for(var b=o("visible"),d,u=0;u0&&U<0&&(U+=360);var X=(N+U)/2,te;if(!l){var ue=m?v.projRotate:[X,0,0];te=o("projection.rotation.lon",ue[0]),o("projection.rotation.lat",ue[1]),o("projection.rotation.roll",ue[2]),d=o("showcoastlines",!m&&b),d&&(o("coastlinecolor"),o("coastlinewidth")),d=o("showocean",b?void 0:!1),d&&o("oceancolor")}var ie,le;if(l?(ie=-96.6,le=38.7):(ie=m?X:te,le=(P[0]+P[1])/2),o("center.lon",ie),o("center.lat",le),w&&(o("projection.tilt"),o("projection.distance")),S){var q=v.projParallels||[0,60];o("projection.parallels",q)}o("projection.scale"),d=o("showland",b?void 0:!1),d&&o("landcolor"),d=o("showlakes",b?void 0:!1),d&&o("lakecolor"),d=o("showrivers",b?void 0:!1),d&&(o("rivercolor"),o("riverwidth")),d=o("showcountries",m&&p!=="usa"&&b),d&&(o("countrycolor"),o("countrywidth")),(p==="usa"||p==="north america"&&f===50)&&(o("showsubunits",b),o("subunitcolor"),o("subunitwidth")),m||(d=o("showframe",b),d&&(o("framecolor"),o("framewidth"))),o("bgcolor");var J=o("fitbounds");J&&(delete a.projection.scale,m?(delete a.center.lon,delete a.center.lat):M?(delete a.center.lon,delete a.center.lat,delete a.projection.rotation.lon,delete a.projection.rotation.lat,delete a.lonaxis.range,delete a.lataxis.range):(delete a.center.lon,delete a.center.lat,delete a.projection.rotation.lon))}}}),lT=He({"src/plots/geo/index.js"(Y,H){var h=$f().getSubplotCalcData,x=Qr().counterRegex,A=aP(),E="geo",e=x(E),t={};t[E]={valType:"subplotid",dflt:E,editType:"calc"};function r(o){for(var n=o._fullLayout,s=o.calcdata,c=n._subplots[E],f=0;f")}}}}),ex=He({"src/traces/choropleth/event_data.js"(Y,H){H.exports=function(x,A,E,e,t){x.location=A.location,x.z=A.z;var r=e[t];return r.fIn&&r.fIn.properties&&(x.properties=r.fIn.properties),x.ct=r.ct,x}}}),tx=He({"src/traces/choropleth/select.js"(Y,H){H.exports=function(x,A){var E=x.cd,e=x.xaxis,t=x.yaxis,r=[],i,a,o,n,s;if(A===!1)for(i=0;i=Math.min(U,X)&&T<=Math.max(U,X)?0:1/0}if(I=Math.min(te,ue)&&l<=Math.max(te,ue)?0:1/0}B=Math.sqrt(I*I+z*z),u=w[R]}}}else for(R=w.length-1;R>-1;R--)d=w[R],g=p[d],y=v[d],I=c.c2p(g)-T,z=f.c2p(y)-l,F=Math.sqrt(I*I+z*z),F100},Y.isDotSymbol=function(h){return typeof h=="string"?H.DOT_RE.test(h):h>200}}}),cP=He({"src/traces/scattergl/defaults.js"(Y,H){var h=Qr(),x=qi(),A=ax(),E=Wm(),e=Uv(),t=cu(),r=q0(),i=xv(),a=Zh(),o=rv(),n=bv(),s=av();H.exports=function(f,p,v,T){function l(u,g){return h.coerce(f,p,E,u,g)}var m=f.marker?A.isOpenSymbol(f.marker.symbol):!1,w=t.isBubble(f),S=r(f,p,T,l);if(!S){p.visible=!1;return}i(f,p,T,l),l("xhoverformat"),l("yhoverformat");var M=S>>1,f=r[c],p=a!==void 0?a(f,i):f-i;p>=0?(s=c,n=c-1):o=c+1}return s}function x(r,i,a,o,n){for(var s=n+1;o<=n;){var c=o+n>>>1,f=r[c],p=a!==void 0?a(f,i):f-i;p>0?(s=c,n=c-1):o=c+1}return s}function A(r,i,a,o,n){for(var s=o-1;o<=n;){var c=o+n>>>1,f=r[c],p=a!==void 0?a(f,i):f-i;p<0?(s=c,o=c+1):n=c-1}return s}function E(r,i,a,o,n){for(var s=o-1;o<=n;){var c=o+n>>>1,f=r[c],p=a!==void 0?a(f,i):f-i;p<=0?(s=c,o=c+1):n=c-1}return s}function e(r,i,a,o,n){for(;o<=n;){var s=o+n>>>1,c=r[s],f=a!==void 0?a(c,i):c-i;if(f===0)return s;f<=0?o=s+1:n=s-1}return-1}function t(r,i,a,o,n,s){return typeof a=="function"?s(r,i,a,o===void 0?0:o|0,n===void 0?r.length-1:n|0):s(r,i,void 0,a===void 0?0:a|0,o===void 0?r.length-1:o|0)}H.exports={ge:function(r,i,a,o,n){return t(r,i,a,o,n,h)},gt:function(r,i,a,o,n){return t(r,i,a,o,n,x)},lt:function(r,i,a,o,n){return t(r,i,a,o,n,A)},le:function(r,i,a,o,n){return t(r,i,a,o,n,E)},eq:function(r,i,a,o,n){return t(r,i,a,o,n,e)}}}}),Gv=He({"node_modules/pick-by-alias/index.js"(Y,H){H.exports=function(E,e,t){var r={},i,a;if(typeof e=="string"&&(e=x(e)),Array.isArray(e)){var o={};for(a=0;a1&&(A=arguments),typeof A=="string"?A=A.split(/\s/).map(parseFloat):typeof A=="number"&&(A=[A]),A.length&&typeof A[0]=="number"?A.length===1?E={width:A[0],height:A[0],x:0,y:0}:A.length===2?E={width:A[0],height:A[1],x:0,y:0}:E={x:A[0],y:A[1],width:A[2]-A[0]||0,height:A[3]-A[1]||0}:A&&(A=h(A,{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"}),E={x:A.left||0,y:A.top||0},A.width==null?A.right?E.width=A.right-E.x:E.width=0:E.width=A.width,A.height==null?A.bottom?E.height=A.bottom-E.y:E.height=0:E.height=A.height),E}}}),Zp=He({"node_modules/array-bounds/index.js"(Y,H){H.exports=h;function h(x,A){if(!x||x.length==null)throw Error("Argument should be an array");A==null?A=1:A=Math.floor(A);for(var E=Array(A*2),e=0;et&&(t=x[i]),x[i]>>1,w;p.dtype||(p.dtype="array"),typeof p.dtype=="string"?w=new(a(p.dtype))(m):p.dtype&&(w=p.dtype,Array.isArray(w)&&(w.length=m));for(let I=0;Iv||P>n){for(let se=0;seae||X>fe||te=ie||V===re)return;let xe=S[Q];re===void 0&&(re=xe.length);for(let Me=V;Me=B&&he<=P&&De>=O&&De<=N&&le.push(we)}let Ae=M[Q],Pe=Ae[V*4+0],Ce=Ae[V*4+1],je=Ae[V*4+2],at=Ae[V*4+3],tt=J(Ae,V+1),Je=se*.5,Ze=Q+1;q(ee,Z,Je,Ze,Pe,Ce||je||at||tt),q(ee,Z+Je,Je,Ze,Ce,je||at||tt),q(ee+Je,Z,Je,Ze,je,at||tt),q(ee+Je,Z+Je,Je,Ze,at,tt)}function J(ee,Z){let se=null,Q=0;for(;se===null;)if(se=ee[Z*4+Q],Q++,Q>ee.length)return null;return se}return le}function y(I,z,F,B,O){let P=[];for(let N=0;N1&&(f=1),f<-1&&(f=-1),c*Math.acos(f)},t=function(a,o,n,s,c,f,p,v,T,l,m,w){var S=Math.pow(c,2),M=Math.pow(f,2),_=Math.pow(m,2),b=Math.pow(w,2),d=S*M-S*b-M*_;d<0&&(d=0),d/=S*b+M*_,d=Math.sqrt(d)*(p===v?-1:1);var u=d*c/f*w,g=d*-f/c*m,y=l*u-T*g+(a+n)/2,R=T*u+l*g+(o+s)/2,I=(m-u)/c,z=(w-g)/f,F=(-m-u)/c,B=(-w-g)/f,O=e(1,0,I,z),P=e(I,z,F,B);return v===0&&P>0&&(P-=x),v===1&&P<0&&(P+=x),[y,R,O,P]},r=function(a){var o=a.px,n=a.py,s=a.cx,c=a.cy,f=a.rx,p=a.ry,v=a.xAxisRotation,T=v===void 0?0:v,l=a.largeArcFlag,m=l===void 0?0:l,w=a.sweepFlag,S=w===void 0?0:w,M=[];if(f===0||p===0)return[];var _=Math.sin(T*x/360),b=Math.cos(T*x/360),d=b*(o-s)/2+_*(n-c)/2,u=-_*(o-s)/2+b*(n-c)/2;if(d===0&&u===0)return[];f=Math.abs(f),p=Math.abs(p);var g=Math.pow(d,2)/Math.pow(f,2)+Math.pow(u,2)/Math.pow(p,2);g>1&&(f*=Math.sqrt(g),p*=Math.sqrt(g));var y=t(o,n,s,c,f,p,m,S,_,b,d,u),R=h(y,4),I=R[0],z=R[1],F=R[2],B=R[3],O=Math.abs(B)/(x/4);Math.abs(1-O)<1e-7&&(O=1);var P=Math.max(Math.ceil(O),1);B/=P;for(var N=0;N4?(i=l[l.length-4],a=l[l.length-3]):(i=f,a=p),r.push(l)}return r}function A(e,t,r,i){return["C",e,t,r,i,r,i]}function E(e,t,r,i,a,o){return["C",e/3+2/3*r,t/3+2/3*i,a/3+2/3*r,o/3+2/3*i,a,o]}}}),fT=He({"node_modules/is-svg-path/index.js"(Y,H){H.exports=function(x){return typeof x!="string"?!1:(x=x.trim(),!!(/^[mzlhvcsqta]\s*[-+.0-9][^mlhvzcsqta]+/i.test(x)&&/[\dz]$/i.test(x)&&x.length>4))}}}),_P=He({"node_modules/svg-path-bounds/index.js"(Y,H){var h=Qg(),x=cT(),A=yP(),E=fT(),e=wm();H.exports=t;function t(r){if(Array.isArray(r)&&r.length===1&&typeof r[0]=="string"&&(r=r[0]),typeof r=="string"&&(e(E(r),"String is not an SVG path."),r=h(r)),e(Array.isArray(r),"Argument should be a string or an array of path segments."),r=x(r),r=A(r),!r.length)return[0,0,0,0];for(var i=[1/0,1/0,-1/0,-1/0],a=0,o=r.length;ai[2]&&(i[2]=n[s+0]),n[s+1]>i[3]&&(i[3]=n[s+1]);return i}}}),xP=He({"node_modules/normalize-svg-path/index.js"(Y,H){var h=Math.PI,x=i(120);H.exports=A;function A(a){for(var o,n=[],s=0,c=0,f=0,p=0,v=null,T=null,l=0,m=0,w=0,S=a.length;w7&&(n.push(M.splice(0,7)),M.unshift("C"));break;case"S":var b=l,d=m;(o=="C"||o=="S")&&(b+=b-s,d+=d-c),M=["C",b,d,M[1],M[2],M[3],M[4]];break;case"T":o=="Q"||o=="T"?(v=l*2-v,T=m*2-T):(v=l,T=m),M=e(l,m,v,T,M[1],M[2]);break;case"Q":v=M[1],T=M[2],M=e(l,m,M[1],M[2],M[3],M[4]);break;case"L":M=E(l,m,M[1],M[2]);break;case"H":M=E(l,m,M[1],m);break;case"V":M=E(l,m,l,M[1]);break;case"Z":M=E(l,m,f,p);break}o=_,l=M[M.length-2],m=M[M.length-1],M.length>4?(s=M[M.length-4],c=M[M.length-3]):(s=l,c=m),n.push(M)}return n}function E(a,o,n,s){return["C",a,o,n,s,n,s]}function e(a,o,n,s,c,f){return["C",a/3+2/3*n,o/3+2/3*s,c/3+2/3*n,f/3+2/3*s,c,f]}function t(a,o,n,s,c,f,p,v,T,l){if(l)y=l[0],R=l[1],u=l[2],g=l[3];else{var m=r(a,o,-c);a=m.x,o=m.y,m=r(v,T,-c),v=m.x,T=m.y;var w=(a-v)/2,S=(o-T)/2,M=w*w/(n*n)+S*S/(s*s);M>1&&(M=Math.sqrt(M),n=M*n,s=M*s);var _=n*n,b=s*s,d=(f==p?-1:1)*Math.sqrt(Math.abs((_*b-_*S*S-b*w*w)/(_*S*S+b*w*w)));d==1/0&&(d=1);var u=d*n*S/s+(a+v)/2,g=d*-s*w/n+(o+T)/2,y=Math.asin(((o-g)/s).toFixed(9)),R=Math.asin(((T-g)/s).toFixed(9));y=aR&&(y=y-h*2),!p&&R>y&&(R=R-h*2)}if(Math.abs(R-y)>x){var I=R,z=v,F=T;R=y+x*(p&&R>y?1:-1),v=u+n*Math.cos(R),T=g+s*Math.sin(R);var B=t(v,T,n,s,c,0,p,z,F,[R,I,u,g])}var O=Math.tan((R-y)/4),P=4/3*n*O,N=4/3*s*O,U=[2*a-(a+P*Math.sin(y)),2*o-(o-N*Math.cos(y)),v+P*Math.sin(R),T-N*Math.cos(R),v,T];if(l)return U;B&&(U=U.concat(B));for(var X=0;X0?r.strokeStyle="white":r.strokeStyle="black",r.lineWidth=Math.abs(v)),r.translate(c*.5,f*.5),r.scale(m,m),o()){var w=new Path2D(n);r.fill(w),v&&r.stroke(w)}else{var S=x(n);A(r,S),r.fill(),v&&r.stroke()}r.setTransform(1,0,0,1,0,0);var M=e(r,{cutoff:s.cutoff!=null?s.cutoff:.5,radius:s.radius!=null?s.radius:p*.5});return M}var a;function o(){if(a!=null)return a;var n=document.createElement("canvas").getContext("2d");if(n.canvas.width=n.canvas.height=1,!window.Path2D)return a=!1;var s=new Path2D("M0,0h1v1h-1v-1Z");n.fillStyle="black",n.fill(s);var c=n.getImageData(0,0,1,1);return a=c&&c.data&&c.data[3]===255}}}),$p=He({"src/traces/scattergl/convert.js"(Y,H){var h=Vi(),x=TP(),A=ap(),E=qi(),e=Qr(),t=e.isArrayOrTypedArray,r=Io(),i=yc(),a=fd().formatColor,o=cu(),n=U0(),s=ax(),c=sp(),f=Nd().DESELECTDIM,p={start:1,left:1,end:-1,right:-1,middle:0,center:0,bottom:1,top:-1},v=Dh().appendArrayPointValue;function T(B,O){var P,N={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},U=B._context.plotGlPixelRatio;if(O.visible!==!0)return N;if(o.hasText(O)&&(N.text=l(B,O),N.textSel=M(B,O,O.selected),N.textUnsel=M(B,O,O.unselected)),o.hasMarkers(O)&&(N.marker=w(B,O),N.markerSel=S(B,O,O.selected),N.markerUnsel=S(B,O,O.unselected),!O.unselected&&t(O.marker.opacity))){var X=O.marker.opacity;for(N.markerUnsel.opacity=new Array(X.length),P=0;P500?"bold":"normal":B}function w(B,O){var P=O._length,N=O.marker,U={},X,te=t(N.symbol),ue=t(N.angle),ie=t(N.color),le=t(N.line.color),q=t(N.opacity),J=t(N.size),ee=t(N.line.width),Z;if(te||(Z=s.isOpenSymbol(N.symbol)),te||ie||le||q||ue){U.symbols=new Array(P),U.angles=new Array(P),U.colors=new Array(P),U.borderColors=new Array(P);var se=N.symbol,Q=N.angle,V=a(N,N.opacity,P),re=a(N.line,N.opacity,P);if(!t(re[0])){var ae=re;for(re=Array(P),X=0;Xc.TOO_MANY_POINTS||o.hasMarkers(O)?"rect":"round";if(le&&O.connectgaps){var J=X[0],ee=X[1];for(te=0;te1?ie[te]:ie[0]:ie,Z=t(le)?le.length>1?le[te]:le[0]:le,se=p[ee],Q=p[Z],V=q?q/.8+1:0,re=-Q*V-Q*.5;X.offset[te]=[se*V/J,re/J]}}return X}H.exports={style:T,markerStyle:w,markerSelection:S,linePositions:I,errorBarPositions:z,textPosition:F}}}),hT=He({"src/traces/scattergl/scene_update.js"(Y,H){var h=Qr();H.exports=function(A,E){var e=E._scene,t={count:0,dirty:!0,lineOptions:[],fillOptions:[],markerOptions:[],markerSelectedOptions:[],markerUnselectedOptions:[],errorXOptions:[],errorYOptions:[],textOptions:[],textSelectedOptions:[],textUnselectedOptions:[],selectBatch:[],unselectBatch:[]},r={fill2d:!1,scatter2d:!1,error2d:!1,line2d:!1,glText:!1,select2d:!1};return E._scene||(e=E._scene={},e.init=function(){h.extendFlat(e,r,t)},e.init(),e.update=function(a){var o=h.repeat(a,e.count);if(e.fill2d&&e.fill2d.update(o),e.scatter2d&&e.scatter2d.update(o),e.line2d&&e.line2d.update(o),e.error2d&&e.error2d.update(o.concat(o)),e.select2d&&e.select2d.update(o),e.glText)for(var n=0;n=f,u=b*2,g={},y,R=S.makeCalcdata(m,"x"),I=M.makeCalcdata(m,"y"),z=e(m,S,"x",R),F=e(m,M,"y",I),B=z.vals,O=F.vals;m._x=B,m._y=O,m.xperiodalignment&&(m._origX=R,m._xStarts=z.starts,m._xEnds=z.ends),m.yperiodalignment&&(m._origY=I,m._yStarts=F.starts,m._yEnds=F.ends);var P=new Array(u),N=new Array(b);for(y=0;y1&&x.extendFlat(_.line,n.linePositions(T,m,w)),_.errorX||_.errorY){var b=n.errorBarPositions(T,m,w,S,M);_.errorX&&x.extendFlat(_.errorX,b.x),_.errorY&&x.extendFlat(_.errorY,b.y)}return _.text&&(x.extendFlat(_.text,{positions:w},n.textPosition(T,m,_.text,_.marker)),x.extendFlat(_.textSel,{positions:w},n.textPosition(T,m,_.text,_.markerSel)),x.extendFlat(_.textUnsel,{positions:w},n.textPosition(T,m,_.text,_.markerUnsel))),_}}}),vT=He({"src/traces/scattergl/edit_style.js"(Y,H){var h=Qr(),x=zi(),A=Nd().DESELECTDIM;function E(e){var t=e[0],r=t.trace,i=t.t,a=i._scene,o=i.index,n=a.selectBatch[o],s=a.unselectBatch[o],c=a.textOptions[o],f=a.textSelectedOptions[o]||{},p=a.textUnselectedOptions[o]||{},v=h.extendFlat({},c),T,l;if(n.length||s.length){var m=f.color,w=p.color,S=c.color,M=h.isArrayOrTypedArray(S);for(v.color=new Array(r._length),T=0;T>>24,r=(E&16711680)>>>16,i=(E&65280)>>>8,a=E&255;return e===!1?[t,r,i,a]:[t/255,r/255,i/255,a/255]}}}),yf=He({"node_modules/object-assign/index.js"(Y,H){var h=Object.getOwnPropertySymbols,x=Object.prototype.hasOwnProperty,A=Object.prototype.propertyIsEnumerable;function E(t){if(t==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}function e(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de",Object.getOwnPropertyNames(t)[0]==="5")return!1;for(var r={},i=0;i<10;i++)r["_"+String.fromCharCode(i)]=i;var a=Object.getOwnPropertyNames(r).map(function(n){return r[n]});if(a.join("")!=="0123456789")return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach(function(n){o[n]=n}),Object.keys(Object.assign({},o)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}H.exports=e()?Object.assign:function(t,r){for(var i,a=E(t),o,n=1;ng.length)&&(y=g.length);for(var R=0,I=new Array(y);R 1.0 + delta) { - discard; - } - - alpha -= smoothstep(1.0 - delta, 1.0 + delta, radius); - - float borderRadius = fragBorderRadius; - float ratio = smoothstep(borderRadius - delta, borderRadius + delta, radius); - vec4 color = mix(fragColor, fragBorderColor, ratio); - color.a *= alpha * opacity; - gl_FragColor = color; -} -`]),ie.vert=v([`precision highp float; -#define GLSLIFY 1 - -attribute float x, y, xFract, yFract; -attribute float size, borderSize; -attribute vec4 colorId, borderColorId; -attribute float isActive; - -// \`invariant\` effectively turns off optimizations for the position. -// We need this because -fast-math on M1 Macs is re-ordering -// floating point operations in a way that causes floating point -// precision limits to put points in the wrong locations. -invariant gl_Position; - -uniform bool constPointSize; -uniform float pixelRatio; -uniform vec2 paletteSize, scale, scaleFract, translate, translateFract; -uniform sampler2D paletteTexture; - -const float maxSize = 100.; - -varying vec4 fragColor, fragBorderColor; -varying float fragBorderRadius, fragWidth; - -float pointSizeScale = (constPointSize) ? 2. : pixelRatio; - -bool isDirect = (paletteSize.x < 1.); - -vec4 getColor(vec4 id) { - return isDirect ? id / 255. : texture2D(paletteTexture, - vec2( - (id.x + .5) / paletteSize.x, - (id.y + .5) / paletteSize.y - ) - ); -} - -void main() { - // ignore inactive points - if (isActive == 0.) return; - - vec2 position = vec2(x, y); - vec2 positionFract = vec2(xFract, yFract); - - vec4 color = getColor(colorId); - vec4 borderColor = getColor(borderColorId); - - float size = size * maxSize / 255.; - float borderSize = borderSize * maxSize / 255.; - - gl_PointSize = (size + borderSize) * pointSizeScale; - - vec2 pos = (position + translate) * scale - + (positionFract + translateFract) * scale - + (position + translate) * scaleFract - + (positionFract + translateFract) * scaleFract; - - gl_Position = vec4(pos * 2. - 1., 0., 1.); - - fragBorderRadius = 1. - 2. * borderSize / (size + borderSize); - fragColor = color; - fragBorderColor = borderColor.a == 0. || borderSize == 0. ? vec4(color.rgb, 0.) : borderColor; - fragWidth = 1. / gl_PointSize; -} -`]),w&&(ie.frag=ie.frag.replace("smoothstep","smoothStep"),ue.frag=ue.frag.replace("smoothstep","smoothStep")),this.drawCircle=g(ie)}b.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},b.prototype.render=function(){return arguments.length&&this.update.apply(this,arguments),this.draw(),this},b.prototype.draw=function(){for(var g=this,y=arguments.length,R=new Array(y),I=0;Iwe)?Ze.tree=f(Je,{bounds:Ke}):we&&we.length&&(Ze.tree=we),Ze.tree){var Et={primitive:"points",usage:"static",data:Ze.tree,type:"uint32"};Ze.elements?Ze.elements(Et):Ze.elements=B.elements(Et)}var kt=S.float32(Je);he({data:kt,usage:"dynamic"});var Ut=S.fract32(Je,kt);return De({data:Ut,usage:"dynamic"}),et({data:new Uint8Array(nt),type:"uint8",usage:"stream"}),Je}},{marker:function(Je,Ze,Me){var we=Ze.activation;if(we.forEach(function(Ut){return Ut&&Ut.destroy&&Ut.destroy()}),we.length=0,!Je||typeof Je[0]=="number"){var he=g.addMarker(Je);we[he]=!0}else{for(var De=[],et=0,nt=Math.min(Je.length,Ze.count);et=0)return z;var F;if(g instanceof Uint8Array||g instanceof Uint8ClampedArray)F=g;else{F=new Uint8Array(g.length);for(var B=0,O=g.length;BI*4&&(this.tooManyColors=!0),this.updatePalette(R),z.length===1?z[0]:z},b.prototype.updatePalette=function(g){if(!this.tooManyColors){var y=this.maxColors,R=this.paletteTexture,I=Math.ceil(g.length*.25/y);if(I>1){g=g.slice();for(var z=g.length*.25%y;z80*P){ue=le=B[0],ie=q=B[1];for(var se=P;sele&&(le=J),ee>q&&(q=ee);Z=Math.max(le-ue,q-ie),Z=Z!==0?32767/Z:0}return E(X,te,P,ue,ie,Z,0),te}function x(B,O,P,N,U){var X,te;if(U===F(B,O,P,N)>0)for(X=O;X=O;X-=N)te=R(X,B[X],B[X+1],te);return te&&S(te,te.next)&&(I(te),te=te.next),te}function A(B,O){if(!B)return B;O||(O=B);var P=B,N;do if(N=!1,!P.steiner&&(S(P,P.next)||w(P.prev,P,P.next)===0)){if(I(P),P=O=P.prev,P===P.next)break;N=!0}else P=P.next;while(N||P!==O);return O}function E(B,O,P,N,U,X,te){if(B){!te&&X&&f(B,N,U,X);for(var ue=B,ie,le;B.prev!==B.next;){if(ie=B.prev,le=B.next,X?t(B,N,U,X):e(B)){O.push(ie.i/P|0),O.push(B.i/P|0),O.push(le.i/P|0),I(B),B=le.next,ue=le.next;continue}if(B=le,B===ue){te?te===1?(B=r(A(B),O,P),E(B,O,P,N,U,X,2)):te===2&&i(B,O,P,N,U,X):E(A(B),O,P,N,U,X,1);break}}}}function e(B){var O=B.prev,P=B,N=B.next;if(w(O,P,N)>=0)return!1;for(var U=O.x,X=P.x,te=N.x,ue=O.y,ie=P.y,le=N.y,q=UX?U>te?U:te:X>te?X:te,Z=ue>ie?ue>le?ue:le:ie>le?ie:le,se=N.next;se!==O;){if(se.x>=q&&se.x<=ee&&se.y>=J&&se.y<=Z&&l(U,ue,X,ie,te,le,se.x,se.y)&&w(se.prev,se,se.next)>=0)return!1;se=se.next}return!0}function t(B,O,P,N){var U=B.prev,X=B,te=B.next;if(w(U,X,te)>=0)return!1;for(var ue=U.x,ie=X.x,le=te.x,q=U.y,J=X.y,ee=te.y,Z=ueie?ue>le?ue:le:ie>le?ie:le,V=q>J?q>ee?q:ee:J>ee?J:ee,re=v(Z,se,O,P,N),ae=v(Q,V,O,P,N),fe=B.prevZ,xe=B.nextZ;fe&&fe.z>=re&&xe&&xe.z<=ae;){if(fe.x>=Z&&fe.x<=Q&&fe.y>=se&&fe.y<=V&&fe!==U&&fe!==te&&l(ue,q,ie,J,le,ee,fe.x,fe.y)&&w(fe.prev,fe,fe.next)>=0||(fe=fe.prevZ,xe.x>=Z&&xe.x<=Q&&xe.y>=se&&xe.y<=V&&xe!==U&&xe!==te&&l(ue,q,ie,J,le,ee,xe.x,xe.y)&&w(xe.prev,xe,xe.next)>=0))return!1;xe=xe.nextZ}for(;fe&&fe.z>=re;){if(fe.x>=Z&&fe.x<=Q&&fe.y>=se&&fe.y<=V&&fe!==U&&fe!==te&&l(ue,q,ie,J,le,ee,fe.x,fe.y)&&w(fe.prev,fe,fe.next)>=0)return!1;fe=fe.prevZ}for(;xe&&xe.z<=ae;){if(xe.x>=Z&&xe.x<=Q&&xe.y>=se&&xe.y<=V&&xe!==U&&xe!==te&&l(ue,q,ie,J,le,ee,xe.x,xe.y)&&w(xe.prev,xe,xe.next)>=0)return!1;xe=xe.nextZ}return!0}function r(B,O,P){var N=B;do{var U=N.prev,X=N.next.next;!S(U,X)&&M(U,N,N.next,X)&&u(U,X)&&u(X,U)&&(O.push(U.i/P|0),O.push(N.i/P|0),O.push(X.i/P|0),I(N),I(N.next),N=B=X),N=N.next}while(N!==B);return A(N)}function i(B,O,P,N,U,X){var te=B;do{for(var ue=te.next.next;ue!==te.prev;){if(te.i!==ue.i&&m(te,ue)){var ie=y(te,ue);te=A(te,te.next),ie=A(ie,ie.next),E(te,O,P,N,U,X,0),E(ie,O,P,N,U,X,0);return}ue=ue.next}te=te.next}while(te!==B)}function a(B,O,P,N){var U=[],X,te,ue,ie,le;for(X=0,te=O.length;X=P.next.y&&P.next.y!==P.y){var ue=P.x+(U-P.y)*(P.next.x-P.x)/(P.next.y-P.y);if(ue<=N&&ue>X&&(X=ue,te=P.x=P.x&&P.x>=le&&N!==P.x&&l(Ute.x||P.x===te.x&&c(te,P)))&&(te=P,J=ee)),P=P.next;while(P!==ie);return te}function c(B,O){return w(B.prev,B,O.prev)<0&&w(O.next,B,B.next)<0}function f(B,O,P,N){var U=B;do U.z===0&&(U.z=v(U.x,U.y,O,P,N)),U.prevZ=U.prev,U.nextZ=U.next,U=U.next;while(U!==B);U.prevZ.nextZ=null,U.prevZ=null,p(U)}function p(B){var O,P,N,U,X,te,ue,ie,le=1;do{for(P=B,B=null,X=null,te=0;P;){for(te++,N=P,ue=0,O=0;O0||ie>0&&N;)ue!==0&&(ie===0||!N||P.z<=N.z)?(U=P,P=P.nextZ,ue--):(U=N,N=N.nextZ,ie--),X?X.nextZ=U:B=U,U.prevZ=X,X=U;P=N}X.nextZ=null,le*=2}while(te>1);return B}function v(B,O,P,N,U){return B=(B-P)*U|0,O=(O-N)*U|0,B=(B|B<<8)&16711935,B=(B|B<<4)&252645135,B=(B|B<<2)&858993459,B=(B|B<<1)&1431655765,O=(O|O<<8)&16711935,O=(O|O<<4)&252645135,O=(O|O<<2)&858993459,O=(O|O<<1)&1431655765,B|O<<1}function T(B){var O=B,P=B;do(O.x=(B-te)*(X-ue)&&(B-te)*(N-ue)>=(P-te)*(O-ue)&&(P-te)*(X-ue)>=(U-te)*(N-ue)}function m(B,O){return B.next.i!==O.i&&B.prev.i!==O.i&&!d(B,O)&&(u(B,O)&&u(O,B)&&g(B,O)&&(w(B.prev,B,O.prev)||w(B,O.prev,O))||S(B,O)&&w(B.prev,B,B.next)>0&&w(O.prev,O,O.next)>0)}function w(B,O,P){return(O.y-B.y)*(P.x-O.x)-(O.x-B.x)*(P.y-O.y)}function S(B,O){return B.x===O.x&&B.y===O.y}function M(B,O,P,N){var U=b(w(B,O,P)),X=b(w(B,O,N)),te=b(w(P,N,B)),ue=b(w(P,N,O));return!!(U!==X&&te!==ue||U===0&&_(B,P,O)||X===0&&_(B,N,O)||te===0&&_(P,B,N)||ue===0&&_(P,O,N))}function _(B,O,P){return O.x<=Math.max(B.x,P.x)&&O.x>=Math.min(B.x,P.x)&&O.y<=Math.max(B.y,P.y)&&O.y>=Math.min(B.y,P.y)}function b(B){return B>0?1:B<0?-1:0}function d(B,O){var P=B;do{if(P.i!==B.i&&P.next.i!==B.i&&P.i!==O.i&&P.next.i!==O.i&&M(P,P.next,B,O))return!0;P=P.next}while(P!==B);return!1}function u(B,O){return w(B.prev,B,B.next)<0?w(B,O,B.next)>=0&&w(B,B.prev,O)>=0:w(B,O,B.prev)<0||w(B,B.next,O)<0}function g(B,O){var P=B,N=!1,U=(B.x+O.x)/2,X=(B.y+O.y)/2;do P.y>X!=P.next.y>X&&P.next.y!==P.y&&U<(P.next.x-P.x)*(X-P.y)/(P.next.y-P.y)+P.x&&(N=!N),P=P.next;while(P!==B);return N}function y(B,O){var P=new z(B.i,B.x,B.y),N=new z(O.i,O.x,O.y),U=B.next,X=O.prev;return B.next=O,O.prev=B,P.next=U,U.prev=P,N.next=P,P.prev=N,X.next=N,N.prev=X,N}function R(B,O,P,N){var U=new z(B,O,P);return N?(U.next=N.next,U.prev=N,N.next.prev=U,N.next=U):(U.prev=U,U.next=U),U}function I(B){B.next.prev=B.prev,B.prev.next=B.next,B.prevZ&&(B.prevZ.nextZ=B.nextZ),B.nextZ&&(B.nextZ.prevZ=B.prevZ)}function z(B,O,P){this.i=B,this.x=O,this.y=P,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}h.deviation=function(B,O,P,N){var U=O&&O.length,X=U?O[0]*P:B.length,te=Math.abs(F(B,0,X,P));if(U)for(var ue=0,ie=O.length;ue0&&(N+=B[U-1].length,P.holes.push(N))}return P}}}),LP=He({"node_modules/array-normalize/index.js"(Y,H){var h=Zp();H.exports=x;function x(A,E,e){if(!A||A.length==null)throw Error("Argument should be an array");E==null&&(E=1),e==null&&(e=h(A,E));for(var t=0;t-1}}}),wT=He({"node_modules/es5-ext/string/#/contains/index.js"(Y,H){H.exports=qP()()?String.prototype.contains:GP()}}),vd=He({"node_modules/d/index.js"(Y,H){var h=Kp(),x=xT(),A=lx(),E=bT(),e=wT(),t=H.exports=function(r,i){var a,o,n,s,c;return arguments.length<2||typeof r!="string"?(s=i,i=r,r=null):s=arguments[2],h(r)?(a=e.call(r,"c"),o=e.call(r,"e"),n=e.call(r,"w")):(a=n=!0,o=!1),c={value:i,configurable:a,enumerable:o,writable:n},s?A(E(s),c):c};t.gs=function(r,i,a){var o,n,s,c;return typeof r!="string"?(s=a,a=i,i=r,r=null):s=arguments[3],h(i)?x(i)?h(a)?x(a)||(s=a,a=void 0):a=void 0:(s=i,i=a=void 0):i=void 0,h(r)?(o=e.call(r,"c"),n=e.call(r,"e")):(o=!0,n=!1),c={get:i,set:a,configurable:o,enumerable:n},s?A(E(s),c):c}}}),Xm=He({"node_modules/es5-ext/function/is-arguments.js"(Y,H){var h=Object.prototype.toString,x=h.call(function(){return arguments}());H.exports=function(A){return h.call(A)===x}}}),Zm=He({"node_modules/es5-ext/string/is-string.js"(Y,H){var h=Object.prototype.toString,x=h.call("");H.exports=function(A){return typeof A=="string"||A&&typeof A=="object"&&(A instanceof String||h.call(A)===x)||!1}}}),HP=He({"node_modules/ext/global-this/is-implemented.js"(Y,H){H.exports=function(){return typeof globalThis!="object"||!globalThis?!1:globalThis.Array===Array}}}),WP=He({"node_modules/ext/global-this/implementation.js"(Y,H){var h=function(){if(typeof self=="object"&&self)return self;if(typeof window=="object"&&window)return window;throw new Error("Unable to resolve global `this`")};H.exports=function(){if(this)return this;try{Object.defineProperty(Object.prototype,"__global__",{get:function(){return this},configurable:!0})}catch{return h()}try{return __global__||h()}finally{delete Object.prototype.__global__}}()}}),Ym=He({"node_modules/ext/global-this/index.js"(Y,H){H.exports=HP()()?globalThis:WP()}}),XP=He({"node_modules/es6-symbol/is-implemented.js"(Y,H){var h=Ym(),x={object:!0,symbol:!0};H.exports=function(){var A=h.Symbol,E;if(typeof A!="function")return!1;E=A("test symbol");try{String(E)}catch{return!1}return!(!x[typeof A.iterator]||!x[typeof A.toPrimitive]||!x[typeof A.toStringTag])}}}),ZP=He({"node_modules/es6-symbol/is-symbol.js"(Y,H){H.exports=function(h){return h?typeof h=="symbol"?!0:!h.constructor||h.constructor.name!=="Symbol"?!1:h[h.constructor.toStringTag]==="Symbol":!1}}}),TT=He({"node_modules/es6-symbol/validate-symbol.js"(Y,H){var h=ZP();H.exports=function(x){if(!h(x))throw new TypeError(x+" is not a symbol");return x}}}),YP=He({"node_modules/es6-symbol/lib/private/generate-name.js"(Y,H){var h=vd(),x=Object.create,A=Object.defineProperty,E=Object.prototype,e=x(null);H.exports=function(t){for(var r=0,i,a;e[t+(r||"")];)++r;return t+=r||"",e[t]=!0,i="@@"+t,A(E,i,h.gs(null,function(o){a||(a=!0,A(this,i,h(o)),a=!1)})),i}}}),$P=He({"node_modules/es6-symbol/lib/private/setup/standard-symbols.js"(Y,H){var h=vd(),x=Ym().Symbol;H.exports=function(A){return Object.defineProperties(A,{hasInstance:h("",x&&x.hasInstance||A("hasInstance")),isConcatSpreadable:h("",x&&x.isConcatSpreadable||A("isConcatSpreadable")),iterator:h("",x&&x.iterator||A("iterator")),match:h("",x&&x.match||A("match")),replace:h("",x&&x.replace||A("replace")),search:h("",x&&x.search||A("search")),species:h("",x&&x.species||A("species")),split:h("",x&&x.split||A("split")),toPrimitive:h("",x&&x.toPrimitive||A("toPrimitive")),toStringTag:h("",x&&x.toStringTag||A("toStringTag")),unscopables:h("",x&&x.unscopables||A("unscopables"))})}}}),KP=He({"node_modules/es6-symbol/lib/private/setup/symbol-registry.js"(Y,H){var h=vd(),x=TT(),A=Object.create(null);H.exports=function(E){return Object.defineProperties(E,{for:h(function(e){return A[e]?A[e]:A[e]=E(String(e))}),keyFor:h(function(e){var t;x(e);for(t in A)if(A[t]===e)return t})})}}}),JP=He({"node_modules/es6-symbol/polyfill.js"(Y,H){var h=vd(),x=TT(),A=Ym().Symbol,E=YP(),e=$P(),t=KP(),r=Object.create,i=Object.defineProperties,a=Object.defineProperty,o,n,s;if(typeof A=="function")try{String(A()),s=!0}catch{}else A=null;n=function(f){if(this instanceof n)throw new TypeError("Symbol is not a constructor");return o(f)},H.exports=o=function c(f){var p;if(this instanceof c)throw new TypeError("Symbol is not a constructor");return s?A(f):(p=r(n.prototype),f=f===void 0?"":String(f),i(p,{__description__:h("",f),__name__:h("",E(f))}))},e(o),t(o),i(n.prototype,{constructor:h(o),toString:h("",function(){return this.__name__})}),i(o.prototype,{toString:h(function(){return"Symbol ("+x(this).__description__+")"}),valueOf:h(function(){return x(this)})}),a(o.prototype,o.toPrimitive,h("",function(){var c=x(this);return typeof c=="symbol"?c:c.toString()})),a(o.prototype,o.toStringTag,h("c","Symbol")),a(n.prototype,o.toStringTag,h("c",o.prototype[o.toStringTag])),a(n.prototype,o.toPrimitive,h("c",o.prototype[o.toPrimitive]))}}),up=He({"node_modules/es6-symbol/index.js"(Y,H){H.exports=XP()()?Ym().Symbol:JP()}}),QP=He({"node_modules/es5-ext/array/#/clear.js"(Y,H){var h=hd();H.exports=function(){return h(this).length=0,this}}}),dg=He({"node_modules/es5-ext/object/valid-callable.js"(Y,H){H.exports=function(h){if(typeof h!="function")throw new TypeError(h+" is not a function");return h}}}),eI=He({"node_modules/type/string/coerce.js"(Y,H){var h=Kp(),x=sx(),A=Object.prototype.toString;H.exports=function(E){if(!h(E))return null;if(x(E)){var e=E.toString;if(typeof e!="function"||e===A)return null}try{return""+E}catch{return null}}}}),tI=He({"node_modules/type/lib/safe-to-string.js"(Y,H){H.exports=function(h){try{return h.toString()}catch{try{return String(h)}catch{return null}}}}}),rI=He({"node_modules/type/lib/to-short-string.js"(Y,H){var h=tI(),x=/[\n\r\u2028\u2029]/g;H.exports=function(A){var E=h(A);return E===null?"":(E.length>100&&(E=E.slice(0,99)+"…"),E=E.replace(x,function(e){switch(e){case` -`:return"\\n";case"\r":return"\\r";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw new Error("Unexpected character")}}),E)}}}),AT=He({"node_modules/type/lib/resolve-exception.js"(Y,H){var h=Kp(),x=sx(),A=eI(),E=rI(),e=function(t,r){return t.replace("%v",E(r))};H.exports=function(t,r,i){if(!x(i))throw new TypeError(e(r,t));if(!h(t)){if("default"in i)return i.default;if(i.isOptional)return null}var a=A(i.errorMessage);throw h(a)||(a=r),new TypeError(e(a,t))}}}),aI=He({"node_modules/type/value/ensure.js"(Y,H){var h=AT(),x=Kp();H.exports=function(A){return x(A)?A:h(A,"Cannot use %v",arguments[1])}}}),nI=He({"node_modules/type/plain-function/ensure.js"(Y,H){var h=AT(),x=xT();H.exports=function(A){return x(A)?A:h(A,"%v is not a plain function",arguments[1])}}}),iI=He({"node_modules/es5-ext/array/from/is-implemented.js"(Y,H){H.exports=function(){var h=Array.from,x,A;return typeof h!="function"?!1:(x=["raz","dwa"],A=h(x),!!(A&&A!==x&&A[1]==="dwa"))}}}),oI=He({"node_modules/es5-ext/function/is-function.js"(Y,H){var h=Object.prototype.toString,x=RegExp.prototype.test.bind(/^[object [A-Za-z0-9]*Function]$/);H.exports=function(A){return typeof A=="function"&&x(h.call(A))}}}),sI=He({"node_modules/es5-ext/math/sign/is-implemented.js"(Y,H){H.exports=function(){var h=Math.sign;return typeof h!="function"?!1:h(10)===1&&h(-20)===-1}}}),lI=He({"node_modules/es5-ext/math/sign/shim.js"(Y,H){H.exports=function(h){return h=Number(h),isNaN(h)||h===0?h:h>0?1:-1}}}),uI=He({"node_modules/es5-ext/math/sign/index.js"(Y,H){H.exports=sI()()?Math.sign:lI()}}),cI=He({"node_modules/es5-ext/number/to-integer.js"(Y,H){var h=uI(),x=Math.abs,A=Math.floor;H.exports=function(E){return isNaN(E)?0:(E=Number(E),E===0||!isFinite(E)?E:h(E)*A(x(E)))}}}),fI=He({"node_modules/es5-ext/number/to-pos-integer.js"(Y,H){var h=cI(),x=Math.max;H.exports=function(A){return x(0,h(A))}}}),hI=He({"node_modules/es5-ext/array/from/shim.js"(Y,H){var h=up().iterator,x=Xm(),A=oI(),E=fI(),e=dg(),t=hd(),r=lp(),i=Zm(),a=Array.isArray,o=Function.prototype.call,n={configurable:!0,enumerable:!0,writable:!0,value:null},s=Object.defineProperty;H.exports=function(c){var f=arguments[1],p=arguments[2],v,T,l,m,w,S,M,_,b,d;if(c=Object(t(c)),r(f)&&e(f),!this||this===Array||!A(this)){if(!f){if(x(c))return w=c.length,w!==1?Array.apply(null,c):(m=new Array(1),m[0]=c[0],m);if(a(c)){for(m=new Array(w=c.length),T=0;T=55296&&S<=56319&&(d+=c[++T])),d=f?o.call(f,p,d,l):d,v?(n.value=d,s(m,l,n)):m[l]=d,++l;w=l}}if(w===void 0)for(w=E(c.length),v&&(m=new v(w)),T=0;T=this.__nextIndex__)){if(++this.__nextIndex__,!this.__redo__){i(this,"__redo__",e("c",[n]));return}this.__redo__.forEach(function(s,c){s>=n&&(this.__redo__[c]=++s)},this),this.__redo__.push(n)}}),_onDelete:e(function(n){var s;n>=this.__nextIndex__||(--this.__nextIndex__,this.__redo__&&(s=this.__redo__.indexOf(n),s!==-1&&this.__redo__.splice(s,1),this.__redo__.forEach(function(c,f){c>n&&(this.__redo__[f]=--c)},this)))}),_onClear:e(function(){this.__redo__&&h.call(this.__redo__),this.__nextIndex__=0})}))),i(o.prototype,r.iterator,e(function(){return this}))}}),_I=He({"node_modules/es6-iterator/array.js"(Y,H){var h=ox(),x=wT(),A=vd(),E=up(),e=ST(),t=Object.defineProperty,r;r=H.exports=function(i,a){if(!(this instanceof r))throw new TypeError("Constructor requires 'new'");e.call(this,i),a?x.call(a,"key+value")?a="key+value":x.call(a,"key")?a="key":a="value":a="value",t(this,"__kind__",A("",a))},h&&h(r,e),delete r.prototype.constructor,r.prototype=Object.create(e.prototype,{_resolve:A(function(i){return this.__kind__==="value"?this.__list__[i]:this.__kind__==="key+value"?[i,this.__list__[i]]:i})}),t(r.prototype,E.toStringTag,A("c","Array Iterator"))}}),xI=He({"node_modules/es6-iterator/string.js"(Y,H){var h=ox(),x=vd(),A=up(),E=ST(),e=Object.defineProperty,t;t=H.exports=function(r){if(!(this instanceof t))throw new TypeError("Constructor requires 'new'");r=String(r),E.call(this,r),e(this,"__length__",x("",r.length))},h&&h(t,E),delete t.prototype.constructor,t.prototype=Object.create(E.prototype,{_next:x(function(){if(this.__list__){if(this.__nextIndex__=55296&&a<=56319?i+this.__list__[this.__nextIndex__++]:i)})}),e(t.prototype,A.toStringTag,x("c","String Iterator"))}}),bI=He({"node_modules/es6-iterator/is-iterable.js"(Y,H){var h=Xm(),x=lp(),A=Zm(),E=up().iterator,e=Array.isArray;H.exports=function(t){return x(t)?e(t)||A(t)||h(t)?!0:typeof t[E]=="function":!1}}}),wI=He({"node_modules/es6-iterator/valid-iterable.js"(Y,H){var h=bI();H.exports=function(x){if(!h(x))throw new TypeError(x+" is not iterable");return x}}}),MT=He({"node_modules/es6-iterator/get.js"(Y,H){var h=Xm(),x=Zm(),A=_I(),E=xI(),e=wI(),t=up().iterator;H.exports=function(r){return typeof e(r)[t]=="function"?r[t]():h(r)?new A(r):x(r)?new E(r):new A(r)}}}),TI=He({"node_modules/es6-iterator/for-of.js"(Y,H){var h=Xm(),x=dg(),A=Zm(),E=MT(),e=Array.isArray,t=Function.prototype.call,r=Array.prototype.some;H.exports=function(i,a){var o,n=arguments[2],s,c,f,p,v,T,l;if(e(i)||h(i)?o="array":A(i)?o="string":i=E(i),x(a),c=function(){f=!0},o==="array"){r.call(i,function(m){return t.call(a,n,m,c),f});return}if(o==="string"){for(v=i.length,p=0;p=55296&&l<=56319&&(T+=i[++p])),t.call(a,n,T,c),!f);++p);return}for(s=i.next();!s.done;){if(t.call(a,n,s.value,c),f)return;s=i.next()}}}}),AI=He({"node_modules/es6-weak-map/is-native-implemented.js"(Y,H){H.exports=function(){return typeof WeakMap!="function"?!1:Object.prototype.toString.call(new WeakMap)==="[object WeakMap]"}()}}),SI=He({"node_modules/es6-weak-map/polyfill.js"(Y,H){var h=lp(),x=ox(),A=DP(),E=hd(),e=zP(),t=vd(),r=MT(),i=TI(),a=up().toStringTag,o=AI(),n=Array.isArray,s=Object.defineProperty,c=Object.prototype.hasOwnProperty,f=Object.getPrototypeOf,p;H.exports=p=function(){var v=arguments[0],T;if(!(this instanceof p))throw new TypeError("Constructor requires 'new'");return T=o&&x&&WeakMap!==p?x(new WeakMap,f(this)):this,h(v)&&(n(v)||(v=r(v))),s(T,"__weakMapData__",t("c","$weakMap$"+e())),v&&i(v,function(l){E(l),T.set(l[0],l[1])}),T},o&&(x&&x(p,WeakMap),p.prototype=Object.create(WeakMap.prototype,{constructor:t(p)})),Object.defineProperties(p.prototype,{delete:t(function(v){return c.call(A(v),this.__weakMapData__)?(delete v[this.__weakMapData__],!0):!1}),get:t(function(v){if(c.call(A(v),this.__weakMapData__))return v[this.__weakMapData__]}),has:t(function(v){return c.call(A(v),this.__weakMapData__)}),set:t(function(v,T){return s(A(v),this.__weakMapData__,t("c",T)),this}),toString:t(function(){return"[object WeakMap]"})}),s(p.prototype,a,t("c","WeakMap"))}}),ET=He({"node_modules/es6-weak-map/index.js"(Y,H){H.exports=PP()()?WeakMap:SI()}}),MI=He({"node_modules/array-find-index/index.js"(Y,H){H.exports=function(h,x,A){if(typeof Array.prototype.findIndex=="function")return h.findIndex(x,A);if(typeof x!="function")throw new TypeError("predicate must be a function");var E=Object(h),e=E.length;if(e===0)return-1;for(var t=0;t 0. && baClipping < length(normalWidth * endBotJoin)) { - //handle miter clipping - bTopCoord -= normalWidth * endTopJoin; - bTopCoord += normalize(endTopJoin * normalWidth) * baClipping; - } - - if (nextReverse) { - //make join rectangular - vec2 miterShift = normalWidth * endJoinDirection * miterLimit * .5; - float normalAdjust = 1. - min(miterLimit / endMiterRatio, 1.); - bBotCoord = bCoord + miterShift - normalAdjust * normalWidth * currNormal * .5; - bTopCoord = bCoord + miterShift + normalAdjust * normalWidth * currNormal * .5; - } - else if (!prevReverse && abClipping > 0. && abClipping < length(normalWidth * startBotJoin)) { - //handle miter clipping - aBotCoord -= normalWidth * startBotJoin; - aBotCoord += normalize(startBotJoin * normalWidth) * abClipping; - } - - vec2 aTopPosition = (aTopCoord) * adjustedScale + translate; - vec2 aBotPosition = (aBotCoord) * adjustedScale + translate; - - vec2 bTopPosition = (bTopCoord) * adjustedScale + translate; - vec2 bBotPosition = (bBotCoord) * adjustedScale + translate; - - //position is normalized 0..1 coord on the screen - vec2 position = (aTopPosition * lineTop + aBotPosition * lineBot) * lineStart + (bTopPosition * lineTop + bBotPosition * lineBot) * lineEnd; - - startCoord = aCoord * scaleRatio + translate * viewport.zw + viewport.xy; - endCoord = bCoord * scaleRatio + translate * viewport.zw + viewport.xy; - - gl_Position = vec4(position * 2.0 - 1.0, depth, 1); - - enableStartMiter = step(dot(currTangent, prevTangent), .5); - enableEndMiter = step(dot(currTangent, nextTangent), .5); - - //bevel miter cutoffs - if (miterMode == 1.) { - if (enableStartMiter == 1.) { - vec2 startMiterWidth = vec2(startJoinDirection) * thickness * miterLimit * .5; - startCutoff = vec4(aCoord, aCoord); - startCutoff.zw += vec2(-startJoinDirection.y, startJoinDirection.x) / scaleRatio; - startCutoff = startCutoff * scaleRatio.xyxy + translate.xyxy * viewport.zwzw; - startCutoff += viewport.xyxy; - startCutoff += startMiterWidth.xyxy; - } - - if (enableEndMiter == 1.) { - vec2 endMiterWidth = vec2(endJoinDirection) * thickness * miterLimit * .5; - endCutoff = vec4(bCoord, bCoord); - endCutoff.zw += vec2(-endJoinDirection.y, endJoinDirection.x) / scaleRatio; - endCutoff = endCutoff * scaleRatio.xyxy + translate.xyxy * viewport.zwzw; - endCutoff += viewport.xyxy; - endCutoff += endMiterWidth.xyxy; - } - } - - //round miter cutoffs - else if (miterMode == 2.) { - if (enableStartMiter == 1.) { - vec2 startMiterWidth = vec2(startJoinDirection) * thickness * abs(dot(startJoinDirection, currNormal)) * .5; - startCutoff = vec4(aCoord, aCoord); - startCutoff.zw += vec2(-startJoinDirection.y, startJoinDirection.x) / scaleRatio; - startCutoff = startCutoff * scaleRatio.xyxy + translate.xyxy * viewport.zwzw; - startCutoff += viewport.xyxy; - startCutoff += startMiterWidth.xyxy; - } - - if (enableEndMiter == 1.) { - vec2 endMiterWidth = vec2(endJoinDirection) * thickness * abs(dot(endJoinDirection, currNormal)) * .5; - endCutoff = vec4(bCoord, bCoord); - endCutoff.zw += vec2(-endJoinDirection.y, endJoinDirection.x) / scaleRatio; - endCutoff = endCutoff * scaleRatio.xyxy + translate.xyxy * viewport.zwzw; - endCutoff += viewport.xyxy; - endCutoff += endMiterWidth.xyxy; - } - } -} -`,l=` -precision highp float; - -uniform float dashLength, pixelRatio, thickness, opacity, id, miterMode; -uniform sampler2D dashTexture; - -varying vec4 fragColor; -varying vec2 tangent; -varying vec4 startCutoff, endCutoff; -varying vec2 startCoord, endCoord; -varying float enableStartMiter, enableEndMiter; - -float distToLine(vec2 p, vec2 a, vec2 b) { - vec2 diff = b - a; - vec2 perp = normalize(vec2(-diff.y, diff.x)); - return dot(p - a, perp); -} - -void main() { - float alpha = 1., distToStart, distToEnd; - float cutoff = thickness * .5; - - //bevel miter - if (miterMode == 1.) { - if (enableStartMiter == 1.) { - distToStart = distToLine(gl_FragCoord.xy, startCutoff.xy, startCutoff.zw); - if (distToStart < -1.) { - discard; - return; - } - alpha *= min(max(distToStart + 1., 0.), 1.); - } - - if (enableEndMiter == 1.) { - distToEnd = distToLine(gl_FragCoord.xy, endCutoff.xy, endCutoff.zw); - if (distToEnd < -1.) { - discard; - return; - } - alpha *= min(max(distToEnd + 1., 0.), 1.); - } - } - - // round miter - else if (miterMode == 2.) { - if (enableStartMiter == 1.) { - distToStart = distToLine(gl_FragCoord.xy, startCutoff.xy, startCutoff.zw); - if (distToStart < 0.) { - float radius = length(gl_FragCoord.xy - startCoord); - - if(radius > cutoff + .5) { - discard; - return; - } - - alpha -= smoothstep(cutoff - .5, cutoff + .5, radius); - } - } - - if (enableEndMiter == 1.) { - distToEnd = distToLine(gl_FragCoord.xy, endCutoff.xy, endCutoff.zw); - if (distToEnd < 0.) { - float radius = length(gl_FragCoord.xy - endCoord); - - if(radius > cutoff + .5) { - discard; - return; - } - - alpha -= smoothstep(cutoff - .5, cutoff + .5, radius); - } - } - } - - float t = fract(dot(tangent, gl_FragCoord.xy) / dashLength) * .5 + .25; - float dash = texture2D(dashTexture, vec2(t, .5)).r; - - gl_FragColor = fragColor; - gl_FragColor.a *= alpha * opacity * dash; -} -`;H.exports=m;function m(w,S){if(!(this instanceof m))return new m(w,S);if(typeof w=="function"?(S||(S={}),S.regl=w):S=w,S.length&&(S.positions=S),w=S.regl,!w.hasExtension("ANGLE_instanced_arrays"))throw Error("regl-error2d: `ANGLE_instanced_arrays` extension should be enabled");this.gl=w._gl,this.regl=w,this.passes=[],this.shaders=m.shaders.has(w)?m.shaders.get(w):m.shaders.set(w,m.createShaders(w)).get(w),this.update(S)}m.dashMult=2,m.maxPatternLength=256,m.precisionThreshold=3e6,m.maxPoints=1e4,m.maxLines=2048,m.shaders=new o,m.createShaders=function(w){let S=w.buffer({usage:"static",type:"float",data:[0,1,0,0,1,1,1,0]}),M={primitive:"triangle strip",instances:w.prop("count"),count:4,offset:0,uniforms:{miterMode:(u,g)=>g.join==="round"?2:1,miterLimit:w.prop("miterLimit"),scale:w.prop("scale"),scaleFract:w.prop("scaleFract"),translateFract:w.prop("translateFract"),translate:w.prop("translate"),thickness:w.prop("thickness"),dashTexture:w.prop("dashTexture"),opacity:w.prop("opacity"),pixelRatio:w.context("pixelRatio"),id:w.prop("id"),dashLength:w.prop("dashLength"),viewport:(u,g)=>[g.viewport.x,g.viewport.y,u.viewportWidth,u.viewportHeight],depth:w.prop("depth")},blend:{enable:!0,color:[0,0,0,0],equation:{rgb:"add",alpha:"add"},func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},depth:{enable:(u,g)=>!g.overlay},stencil:{enable:!1},scissor:{enable:!0,box:w.prop("viewport")},viewport:w.prop("viewport")},_=w(A({vert:c,frag:f,attributes:{lineEnd:{buffer:S,divisor:0,stride:8,offset:0},lineTop:{buffer:S,divisor:0,stride:8,offset:4},aCoord:{buffer:w.prop("positionBuffer"),stride:8,offset:8,divisor:1},bCoord:{buffer:w.prop("positionBuffer"),stride:8,offset:16,divisor:1},aCoordFract:{buffer:w.prop("positionFractBuffer"),stride:8,offset:8,divisor:1},bCoordFract:{buffer:w.prop("positionFractBuffer"),stride:8,offset:16,divisor:1},color:{buffer:w.prop("colorBuffer"),stride:4,offset:0,divisor:1}}},M)),b;try{b=w(A({cull:{enable:!0,face:"back"},vert:T,frag:l,attributes:{lineEnd:{buffer:S,divisor:0,stride:8,offset:0},lineTop:{buffer:S,divisor:0,stride:8,offset:4},aColor:{buffer:w.prop("colorBuffer"),stride:4,offset:0,divisor:1},bColor:{buffer:w.prop("colorBuffer"),stride:4,offset:4,divisor:1},prevCoord:{buffer:w.prop("positionBuffer"),stride:8,offset:0,divisor:1},aCoord:{buffer:w.prop("positionBuffer"),stride:8,offset:8,divisor:1},bCoord:{buffer:w.prop("positionBuffer"),stride:8,offset:16,divisor:1},nextCoord:{buffer:w.prop("positionBuffer"),stride:8,offset:24,divisor:1}}},M))}catch{b=_}return{fill:w({primitive:"triangle",elements:(u,g)=>g.triangles,offset:0,vert:p,frag:v,uniforms:{scale:w.prop("scale"),color:w.prop("fill"),scaleFract:w.prop("scaleFract"),translateFract:w.prop("translateFract"),translate:w.prop("translate"),opacity:w.prop("opacity"),pixelRatio:w.context("pixelRatio"),id:w.prop("id"),viewport:(u,g)=>[g.viewport.x,g.viewport.y,u.viewportWidth,u.viewportHeight]},attributes:{position:{buffer:w.prop("positionBuffer"),stride:8,offset:8},positionFract:{buffer:w.prop("positionFractBuffer"),stride:8,offset:8}},blend:M.blend,depth:{enable:!1},scissor:M.scissor,stencil:M.stencil,viewport:M.viewport}),rect:_,miter:b}},m.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},m.prototype.render=function(...w){w.length&&this.update(...w),this.draw()},m.prototype.draw=function(...w){return(w.length?w:this.passes).forEach((S,M)=>{if(S&&Array.isArray(S))return this.draw(...S);typeof S=="number"&&(S=this.passes[S]),S&&S.count>1&&S.opacity&&(this.regl._refresh(),S.fill&&S.triangles&&S.triangles.length>2&&this.shaders.fill(S),S.thickness&&(S.scale[0]*S.viewport.width>m.precisionThreshold||S.scale[1]*S.viewport.height>m.precisionThreshold?this.shaders.rect(S):S.join==="rect"||!S.join&&(S.thickness<=2||S.count>=m.maxPoints)?this.shaders.rect(S):this.shaders.miter(S)))}),this},m.prototype.update=function(w){if(!w)return;w.length!=null?typeof w[0]=="number"&&(w=[{positions:w}]):Array.isArray(w)||(w=[w]);let{regl:S,gl:M}=this;if(w.forEach((b,d)=>{let u=this.passes[d];if(b!==void 0){if(b===null){this.passes[d]=null;return}if(typeof b[0]=="number"&&(b={positions:b}),b=E(b,{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"}),u||(this.passes[d]=u={id:d,scale:null,scaleFract:null,translate:null,translateFract:null,count:0,hole:[],depth:0,dashLength:1,dashTexture:S.texture({channels:1,data:new Uint8Array([255]),width:1,height:1,mag:"linear",min:"linear"}),colorBuffer:S.buffer({usage:"dynamic",type:"uint8",data:new Uint8Array}),positionBuffer:S.buffer({usage:"dynamic",type:"float",data:new Uint8Array}),positionFractBuffer:S.buffer({usage:"dynamic",type:"float",data:new Uint8Array})},b=A({},m.defaults,b)),b.thickness!=null&&(u.thickness=parseFloat(b.thickness)),b.opacity!=null&&(u.opacity=parseFloat(b.opacity)),b.miterLimit!=null&&(u.miterLimit=parseFloat(b.miterLimit)),b.overlay!=null&&(u.overlay=!!b.overlay,die-le),X=[],te=0,ue=u.hole!=null?u.hole[0]:null;if(ue!=null){let ie=s(U,le=>le>=ue);U=U.slice(0,ie),U.push(ue)}for(let ie=0;ieee-ue+(U[ie]-te)),J=t(le,q);J=J.map(ee=>ee+te+(ee+te{w.colorBuffer.destroy(),w.positionBuffer.destroy(),w.dashTexture.destroy()}),this.passes.length=0,this}}}),EI=He({"node_modules/regl-error2d/index.js"(Y,H){var h=Zp(),x=ap(),A=pT(),E=Gv(),e=yf(),t=Yp(),{float32:r,fract32:i}=ix();H.exports=o;var a=[[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 o(n,s){if(typeof n=="function"?(s||(s={}),s.regl=n):s=n,s.length&&(s.positions=s),n=s.regl,!n.hasExtension("ANGLE_instanced_arrays"))throw Error("regl-error2d: `ANGLE_instanced_arrays` extension should be enabled");let c=n._gl,f,p,v,T,l,m,w={color:"black",capSize:5,lineWidth:1,opacity:1,viewport:null,range:null,offset:0,count:0,bounds:null,positions:[],errors:[]},S=[];return T=n.buffer({usage:"dynamic",type:"uint8",data:new Uint8Array(0)}),p=n.buffer({usage:"dynamic",type:"float",data:new Uint8Array(0)}),v=n.buffer({usage:"dynamic",type:"float",data:new Uint8Array(0)}),l=n.buffer({usage:"dynamic",type:"float",data:new Uint8Array(0)}),m=n.buffer({usage:"static",type:"float",data:a}),d(s),f=n({vert:` - precision highp float; - - attribute vec2 position, positionFract; - attribute vec4 error; - attribute vec4 color; - - attribute vec2 direction, lineOffset, capOffset; - - uniform vec4 viewport; - uniform float lineWidth, capSize; - uniform vec2 scale, scaleFract, translate, translateFract; - - varying vec4 fragColor; - - void main() { - fragColor = color / 255.; - - vec2 pixelOffset = lineWidth * lineOffset + (capSize + lineWidth) * capOffset; - - vec2 dxy = -step(.5, direction.xy) * error.xz + step(direction.xy, vec2(-.5)) * error.yw; - - vec2 position = position + dxy; - - vec2 pos = (position + translate) * scale - + (positionFract + translateFract) * scale - + (position + translate) * scaleFract - + (positionFract + translateFract) * scaleFract; - - pos += pixelOffset / viewport.zw; - - gl_Position = vec4(pos * 2. - 1., 0, 1); - } - `,frag:` - precision highp float; - - varying vec4 fragColor; - - uniform float opacity; - - void main() { - gl_FragColor = fragColor; - gl_FragColor.a *= opacity; - } - `,uniforms:{range:n.prop("range"),lineWidth:n.prop("lineWidth"),capSize:n.prop("capSize"),opacity:n.prop("opacity"),scale:n.prop("scale"),translate:n.prop("translate"),scaleFract:n.prop("scaleFract"),translateFract:n.prop("translateFract"),viewport:(g,y)=>[y.viewport.x,y.viewport.y,g.viewportWidth,g.viewportHeight]},attributes:{color:{buffer:T,offset:(g,y)=>y.offset*4,divisor:1},position:{buffer:p,offset:(g,y)=>y.offset*8,divisor:1},positionFract:{buffer:v,offset:(g,y)=>y.offset*8,divisor:1},error:{buffer:l,offset:(g,y)=>y.offset*16,divisor:1},direction:{buffer:m,stride:24,offset:0},lineOffset:{buffer:m,stride:24,offset:8},capOffset:{buffer:m,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:n.prop("viewport")},viewport:n.prop("viewport"),stencil:!1,instances:n.prop("count"),count:a.length}),e(M,{update:d,draw:_,destroy:u,regl:n,gl:c,canvas:c.canvas,groups:S}),M;function M(g){g?d(g):g===null&&u(),_()}function _(g){if(typeof g=="number")return b(g);g&&!Array.isArray(g)&&(g=[g]),n._refresh(),S.forEach((y,R)=>{if(y){if(g&&(g[R]?y.draw=!0:y.draw=!1),!y.draw){y.draw=!0;return}b(R)}})}function b(g){typeof g=="number"&&(g=S[g]),g!=null&&g&&g.count&&g.color&&g.opacity&&g.positions&&g.positions.length>1&&(g.scaleRatio=[g.scale[0]*g.viewport.width,g.scale[1]*g.viewport.height],f(g),g.after&&g.after(g))}function d(g){if(!g)return;g.length!=null?typeof g[0]=="number"&&(g=[{positions:g}]):Array.isArray(g)||(g=[g]);let y=0,R=0;if(M.groups=S=g.map((F,B)=>{let O=S[B];if(F)typeof F=="function"?F={after:F}:typeof F[0]=="number"&&(F={positions:F});else return O;return F=E(F,{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"}),O||(S[B]=O={id:B,scale:null,translate:null,scaleFract:null,translateFract:null,draw:!0},F=e({},w,F)),A(O,F,[{lineWidth:P=>+P*.5,capSize:P=>+P*.5,opacity:parseFloat,errors:P=>(P=t(P),R+=P.length,P),positions:(P,N)=>(P=t(P,"float64"),N.count=Math.floor(P.length/2),N.bounds=h(P,2),N.offset=y,y+=N.count,P)},{color:(P,N)=>{let U=N.count;if(P||(P="transparent"),!Array.isArray(P)||typeof P[0]=="number"){let te=P;P=Array(U);for(let ue=0;ue{let X=N.bounds;return P||(P=X),N.scale=[1/(P[2]-P[0]),1/(P[3]-P[1])],N.translate=[-P[0],-P[1]],N.scaleFract=i(N.scale),N.translateFract=i(N.translate),P},viewport:P=>{let N;return Array.isArray(P)?N={x:P[0],y:P[1],width:P[2]-P[0],height:P[3]-P[1]}:P?(N={x:P.x||P.left||0,y:P.y||P.top||0},P.right?N.width=P.right-N.x:N.width=P.w||P.width||0,P.bottom?N.height=P.bottom-N.y:N.height=P.h||P.height||0):N={x:0,y:0,width:c.drawingBufferWidth,height:c.drawingBufferHeight},N}}]),O}),y||R){let F=S.reduce((N,U,X)=>N+(U?U.count:0),0),B=new Float64Array(F*2),O=new Uint8Array(F*4),P=new Float32Array(F*4);S.forEach((N,U)=>{if(!N)return;let{positions:X,count:te,offset:ue,color:ie,errors:le}=N;te&&(O.set(ie,ue*4),P.set(le,ue*4),B.set(X,ue*2))});var I=r(B);p(I);var z=i(B,I);v(z),T(O),l(P)}}function u(){p.destroy(),v.destroy(),T.destroy(),l.destroy(),m.destroy()}}}}),kI=He({"node_modules/unquote/index.js"(Y,H){var h=/[\'\"]/;H.exports=function(A){return A?(h.test(A.charAt(0))&&(A=A.substr(1)),h.test(A.charAt(A.length-1))&&(A=A.substr(0,A.length-1)),A):""}}}),CT=He({"node_modules/css-global-keywords/index.json"(){}}),LT=He({"node_modules/css-system-font-keywords/index.json"(){}}),PT=He({"node_modules/css-font-weight-keywords/index.json"(){}}),IT=He({"node_modules/css-font-style-keywords/index.json"(){}}),RT=He({"node_modules/css-font-stretch-keywords/index.json"(){}}),CI=He({"node_modules/parenthesis/index.js"(Y,H){function h(E,e){if(typeof E!="string")return[E];var t=[E];typeof e=="string"||Array.isArray(e)?e={brackets:e}:e||(e={});var r=e.brackets?Array.isArray(e.brackets)?e.brackets:[e.brackets]:["{}","[]","()"],i=e.escape||"___",a=!!e.flat;r.forEach(function(s){var c=new RegExp(["\\",s[0],"[^\\",s[0],"\\",s[1],"]*\\",s[1]].join("")),f=[];function p(v,T,l){var m=t.push(v.slice(s[0].length,-s[1].length))-1;return f.push(m),i+m+i}t.forEach(function(v,T){for(var l,m=0;v!=l;)if(l=v,v=v.replace(c,p),m++>1e4)throw Error("References have circular dependency. Please, check them.");t[T]=v}),f=f.reverse(),t=t.map(function(v){return f.forEach(function(T){v=v.replace(new RegExp("(\\"+i+T+"\\"+i+")","g"),s[0]+"$1"+s[1])}),v})});var o=new RegExp("\\"+i+"([0-9]+)\\"+i);function n(s,c,f){for(var p=[],v,T=0;v=o.exec(s);){if(T++>1e4)throw Error("Circular references in parenthesis");p.push(s.slice(0,v.index)),p.push(n(c[v[1]],c)),s=s.slice(v.index+v[0].length)}return p.push(s),p}return a?t:n(t[0],t)}function x(E,e){if(e&&e.flat){var t=e&&e.escape||"___",r=E[0],i;if(!r)return"";for(var a=new RegExp("\\"+t+"([0-9]+)\\"+t),o=0;r!=i;){if(o++>1e4)throw Error("Circular references in "+E);i=r,r=r.replace(a,n)}return r}return E.reduce(function s(c,f){return Array.isArray(f)&&(f=f.reduce(s,"")),c+f},"");function n(s,c){if(E[c]==null)throw Error("Reference "+c+"is undefined");return E[c]}}function A(E,e){return Array.isArray(E)?x(E,e):h(E,e)}A.parse=h,A.stringify=x,H.exports=A}}),LI=He({"node_modules/string-split-by/index.js"(Y,H){var h=CI();H.exports=function(A,E,e){if(A==null)throw Error("First argument should be a string");if(E==null)throw Error("Separator should be a string or a RegExp");e?(typeof e=="string"||Array.isArray(e))&&(e={ignore:e}):e={},e.escape==null&&(e.escape=!0),e.ignore==null?e.ignore=["[]","()","{}","<>",'""',"''","``","“”","«»"]:(typeof e.ignore=="string"&&(e.ignore=[e.ignore]),e.ignore=e.ignore.map(function(c){return c.length===1&&(c=c+c),c}));var t=h.parse(A,{flat:!0,brackets:e.ignore}),r=t[0],i=r.split(E);if(e.escape){for(var a=[],o=0;o1&&ir===ur&&(ir==='"'||ir==="'"))return['"'+r(lt.substr(1,lt.length-2))+'"'];var fa=/\[(false|true|null|\d+|'[^']*'|"[^"]*")\]/.exec(lt);if(fa)return i(lt.substr(0,fa.index)).concat(i(fa[1])).concat(i(lt.substr(fa.index+fa[0].length)));var Va=lt.split(".");if(Va.length===1)return['"'+r(lt)+'"'];for(var Jr=[],Kr=0;Kr"u"?1:window.devicePixelRatio,wn=!1,Jn={},jn=function(Ur){},xn=function(){};if(typeof ir=="string"?ur=document.querySelector(ir):typeof ir=="object"&&(m(ir)?ur=ir:w(ir)?(Jr=ir,Va=Jr.canvas):("gl"in ir?Jr=ir.gl:"canvas"in ir?Va=M(ir.canvas):"container"in ir&&(fa=M(ir.container)),"attributes"in ir&&(Kr=ir.attributes),"extensions"in ir&&(cn=S(ir.extensions)),"optionalExtensions"in ir&&(ln=S(ir.optionalExtensions)),"onDone"in ir&&(jn=ir.onDone),"profile"in ir&&(wn=!!ir.profile),"pixelRatio"in ir&&(un=+ir.pixelRatio),"cachedCode"in ir&&(Jn=ir.cachedCode))),ur&&(ur.nodeName.toLowerCase()==="canvas"?Va=ur:fa=ur),!Jr){if(!Va){var Za=T(fa||document.body,jn,un);if(!Za)return null;Va=Za.canvas,xn=Za.onDestroy}Kr.premultipliedAlpha===void 0&&(Kr.premultipliedAlpha=!0),Jr=l(Va,Kr)}return Jr?{gl:Jr,canvas:Va,container:fa,extensions:cn,optionalExtensions:ln,pixelRatio:un,profile:wn,cachedCode:Jn,onDone:jn,onDestroy:xn}:(xn(),jn("webgl not supported, try upgrading your browser or graphics drivers http://get.webgl.org"),null)}function b(lt,ir){var ur={};function fa(Kr){var cn=Kr.toLowerCase(),ln;try{ln=ur[cn]=lt.getExtension(cn)}catch{}return!!ln}for(var Va=0;Va65535)<<4,lt>>>=ir,ur=(lt>255)<<3,lt>>>=ur,ir|=ur,ur=(lt>15)<<2,lt>>>=ur,ir|=ur,ur=(lt>3)<<1,lt>>>=ur,ir|=ur,ir|lt>>1}function P(){var lt=d(8,function(){return[]});function ir(Jr){var Kr=B(Jr),cn=lt[O(Kr)>>2];return cn.length>0?cn.pop():new ArrayBuffer(Kr)}function ur(Jr){lt[O(Jr.byteLength)>>2].push(Jr)}function fa(Jr,Kr){var cn=null;switch(Jr){case u:cn=new Int8Array(ir(Kr),0,Kr);break;case g:cn=new Uint8Array(ir(Kr),0,Kr);break;case y:cn=new Int16Array(ir(2*Kr),0,Kr);break;case R:cn=new Uint16Array(ir(2*Kr),0,Kr);break;case I:cn=new Int32Array(ir(4*Kr),0,Kr);break;case z:cn=new Uint32Array(ir(4*Kr),0,Kr);break;case F:cn=new Float32Array(ir(4*Kr),0,Kr);break;default:return null}return cn.length!==Kr?cn.subarray(0,Kr):cn}function Va(Jr){ur(Jr.buffer)}return{alloc:ir,free:ur,allocType:fa,freeType:Va}}var N=P();N.zero=P();var U=3408,X=3410,te=3411,ue=3412,ie=3413,le=3414,q=3415,J=33901,ee=33902,Z=3379,se=3386,Q=34921,V=36347,re=36348,ae=35661,fe=35660,xe=34930,Ae=36349,Pe=34076,Ce=34024,je=7936,at=7937,tt=7938,Je=35724,Ze=34047,Me=36063,we=34852,he=3553,De=34067,et=34069,nt=33984,Ke=6408,Et=5126,kt=5121,Ut=36160,Yt=36053,vr=36064,hr=16384,Rr=function(lt,ir){var ur=1;ir.ext_texture_filter_anisotropic&&(ur=lt.getParameter(Ze));var fa=1,Va=1;ir.webgl_draw_buffers&&(fa=lt.getParameter(we),Va=lt.getParameter(Me));var Jr=!!ir.oes_texture_float;if(Jr){var Kr=lt.createTexture();lt.bindTexture(he,Kr),lt.texImage2D(he,0,Ke,1,1,0,Ke,Et,null);var cn=lt.createFramebuffer();if(lt.bindFramebuffer(Ut,cn),lt.framebufferTexture2D(Ut,vr,he,Kr,0),lt.bindTexture(he,null),lt.checkFramebufferStatus(Ut)!==Yt)Jr=!1;else{lt.viewport(0,0,1,1),lt.clearColor(1,0,0,1),lt.clear(hr);var ln=N.allocType(Et,4);lt.readPixels(0,0,1,1,Ke,Et,ln),lt.getError()?Jr=!1:(lt.deleteFramebuffer(cn),lt.deleteTexture(Kr),Jr=ln[0]===1),N.freeType(ln)}}var un=typeof navigator<"u"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion)||/Edge/.test(navigator.userAgent)),wn=!0;if(!un){var Jn=lt.createTexture(),jn=N.allocType(kt,36);lt.activeTexture(nt),lt.bindTexture(De,Jn),lt.texImage2D(et,0,Ke,3,3,0,Ke,kt,jn),N.freeType(jn),lt.bindTexture(De,null),lt.deleteTexture(Jn),wn=!lt.getError()}return{colorBits:[lt.getParameter(X),lt.getParameter(te),lt.getParameter(ue),lt.getParameter(ie)],depthBits:lt.getParameter(le),stencilBits:lt.getParameter(q),subpixelBits:lt.getParameter(U),extensions:Object.keys(ir).filter(function(xn){return!!ir[xn]}),maxAnisotropic:ur,maxDrawbuffers:fa,maxColorAttachments:Va,pointSizeDims:lt.getParameter(J),lineWidthDims:lt.getParameter(ee),maxViewportDims:lt.getParameter(se),maxCombinedTextureUnits:lt.getParameter(ae),maxCubeMapSize:lt.getParameter(Pe),maxRenderbufferSize:lt.getParameter(Ce),maxTextureUnits:lt.getParameter(xe),maxTextureSize:lt.getParameter(Z),maxAttributes:lt.getParameter(Q),maxVertexUniforms:lt.getParameter(V),maxVertexTextureUnits:lt.getParameter(fe),maxVaryingVectors:lt.getParameter(re),maxFragmentUniforms:lt.getParameter(Ae),glsl:lt.getParameter(Je),renderer:lt.getParameter(at),vendor:lt.getParameter(je),version:lt.getParameter(tt),readFloat:Jr,npotTextureCube:wn}},dr=function(lt){return lt instanceof Uint8Array||lt instanceof Uint16Array||lt instanceof Uint32Array||lt instanceof Int8Array||lt instanceof Int16Array||lt instanceof Int32Array||lt instanceof Float32Array||lt instanceof Float64Array||lt instanceof Uint8ClampedArray};function wr(lt){return!!lt&&typeof lt=="object"&&Array.isArray(lt.shape)&&Array.isArray(lt.stride)&&typeof lt.offset=="number"&<.shape.length===lt.stride.length&&(Array.isArray(lt.data)||dr(lt.data))}var yt=function(lt){return Object.keys(lt).map(function(ir){return lt[ir]})},Fe={shape:Ie,flatten:be};function We(lt,ir,ur){for(var fa=0;fa0){var Xn;if(Array.isArray(ya[0])){pn=ba(ya);for(var Oa=1,Ea=1;Ea0){if(typeof Oa[0]=="number"){var An=N.allocType(Fa.dtype,Oa.length);Tr(An,Oa),pn(An,Dn),N.freeType(An)}else if(Array.isArray(Oa[0])||dr(Oa[0])){da=ba(Oa);var fn=Ga(Oa,da,Fa.dtype);pn(fn,Dn),N.freeType(fn)}}}else if(wr(Oa)){da=Oa.shape;var Yn=Oa.stride,Pi=0,Vn=0,ei=0,bn=0;da.length===1?(Pi=da[0],Vn=1,ei=Yn[0],bn=0):da.length===2&&(Pi=da[0],Vn=da[1],ei=Yn[0],bn=Yn[1]);var Mi=Array.isArray(Oa.data)?Fa.dtype:Ht(Oa.data),Xi=N.allocType(Mi,Pi*Vn);qr(Xi,Oa.data,Pi,Vn,ei,bn,Oa.offset),pn(Xi,Dn),N.freeType(Xi)}return Bn}return Ra||Bn(Ur),Bn._reglType="buffer",Bn._buffer=Fa,Bn.subdata=Xn,ur.profile&&(Bn.stats=Fa.stats),Bn.destroy=function(){jn(Fa)},Bn}function Za(){yt(Jr).forEach(function(Ur){Ur.buffer=lt.createBuffer(),lt.bindBuffer(Ur.type,Ur.buffer),lt.bufferData(Ur.type,Ur.persistentData||Ur.byteLength,Ur.usage)})}return ur.profile&&(ir.getTotalBufferSize=function(){var Ur=0;return Object.keys(Jr).forEach(function(ya){Ur+=Jr[ya].stats.size}),Ur}),{create:xn,createStream:ln,destroyStream:un,clear:function(){yt(Jr).forEach(jn),cn.forEach(jn)},getBuffer:function(Ur){return Ur&&Ur._buffer instanceof Kr?Ur._buffer:null},restore:Za,_initBuffer:Jn}}var Gr=0,wa=0,Da=1,Ya=1,Ka=4,an=4,mt={points:Gr,point:wa,lines:Da,line:Ya,triangles:Ka,triangle:an,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},ot=0,Lr=1,Er=4,Mr=5120,br=5121,Or=5122,jr=5123,Dr=5124,Hr=5125,na=34963,ta=35040,At=35044;function or(lt,ir,ur,fa){var Va={},Jr=0,Kr={uint8:br,uint16:jr};ir.oes_element_index_uint&&(Kr.uint32=Hr);function cn(Za){this.id=Jr++,Va[this.id]=this,this.buffer=Za,this.primType=Er,this.vertCount=0,this.type=0}cn.prototype.bind=function(){this.buffer.bind()};var ln=[];function un(Za){var Ur=ln.pop();return Ur||(Ur=new cn(ur.create(null,na,!0,!1)._buffer)),Jn(Ur,Za,ta,-1,-1,0,0),Ur}function wn(Za){ln.push(Za)}function Jn(Za,Ur,ya,Ra,$a,Fa,Bn){Za.buffer.bind();var pn;if(Ur){var Xn=Bn;!Bn&&(!dr(Ur)||wr(Ur)&&!dr(Ur.data))&&(Xn=ir.oes_element_index_uint?Hr:jr),ur._initBuffer(Za.buffer,Ur,ya,Xn,3)}else lt.bufferData(na,Fa,ya),Za.buffer.dtype=pn||br,Za.buffer.usage=ya,Za.buffer.dimension=3,Za.buffer.byteLength=Fa;if(pn=Bn,!Bn){switch(Za.buffer.dtype){case br:case Mr:pn=br;break;case jr:case Or:pn=jr;break;case Hr:case Dr:pn=Hr;break}Za.buffer.dtype=pn}Za.type=pn;var Oa=$a;Oa<0&&(Oa=Za.buffer.byteLength,pn===jr?Oa>>=1:pn===Hr&&(Oa>>=2)),Za.vertCount=Oa;var Ea=Ra;if(Ra<0){Ea=Er;var Dn=Za.buffer.dimension;Dn===1&&(Ea=ot),Dn===2&&(Ea=Lr),Dn===3&&(Ea=Er)}Za.primType=Ea}function jn(Za){fa.elementsCount--,delete Va[Za.id],Za.buffer.destroy(),Za.buffer=null}function xn(Za,Ur){var ya=ur.create(null,na,!0),Ra=new cn(ya._buffer);fa.elementsCount++;function $a(Fa){if(!Fa)ya(),Ra.primType=Er,Ra.vertCount=0,Ra.type=br;else if(typeof Fa=="number")ya(Fa),Ra.primType=Er,Ra.vertCount=Fa|0,Ra.type=br;else{var Bn=null,pn=At,Xn=-1,Oa=-1,Ea=0,Dn=0;Array.isArray(Fa)||dr(Fa)||wr(Fa)?Bn=Fa:("data"in Fa&&(Bn=Fa.data),"usage"in Fa&&(pn=Aa[Fa.usage]),"primitive"in Fa&&(Xn=mt[Fa.primitive]),"count"in Fa&&(Oa=Fa.count|0),"type"in Fa&&(Dn=Kr[Fa.type]),"length"in Fa?Ea=Fa.length|0:(Ea=Oa,Dn===jr||Dn===Or?Ea*=2:(Dn===Hr||Dn===Dr)&&(Ea*=4))),Jn(Ra,Bn,pn,Xn,Oa,Ea,Dn)}return $a}return $a(Za),$a._reglType="elements",$a._elements=Ra,$a.subdata=function(Fa,Bn){return ya.subdata(Fa,Bn),$a},$a.destroy=function(){jn(Ra)},$a}return{create:xn,createStream:un,destroyStream:wn,getElements:function(Za){return typeof Za=="function"&&Za._elements instanceof cn?Za._elements:null},clear:function(){yt(Va).forEach(jn)}}}var Ar=new Float32Array(1),oa=new Uint32Array(Ar.buffer),ga=5123;function Sa(lt){for(var ir=N.allocType(ga,lt.length),ur=0;ur>>31<<15,Jr=(fa<<1>>>24)-127,Kr=fa>>13&1023;if(Jr<-24)ir[ur]=Va;else if(Jr<-14){var cn=-14-Jr;ir[ur]=Va+(Kr+1024>>cn)}else Jr>15?ir[ur]=Va+31744:ir[ur]=Va+(Jr+15<<10)+Kr}return ir}function za(lt){return Array.isArray(lt)||dr(lt)}var ra=34467,Ta=3553,Fn=34067,mn=34069,Kn=6408,ui=6406,pi=6407,vi=6409,Li=6410,Ni=32854,ci=32855,bi=36194,ho=32819,Bo=32820,gs=33635,ro=34042,Ei=6402,Ri=34041,xo=35904,So=35906,bo=36193,Ui=33776,no=33777,cs=33778,ks=33779,ms=35986,Mo=35987,kn=34798,fi=35840,Fs=35841,Ss=35842,Gi=35843,js=36196,No=5121,es=5123,Vs=5125,hi=5126,so=10242,Oi=10243,Zo=10497,qs=33071,Di=33648,ys=10240,wl=10241,Xs=9728,Vl=9729,rl=9984,Cs=9985,ql=9986,ju=9987,Vu=33170,yu=4352,jc=4353,ff=4354,_s=34046,Cu=3317,Vc=37440,Pl=37441,Tl=37443,Il=37444,_u=33984,Os=[rl,ql,Cs,ju],Al=[0,vi,Li,pi,Kn],Uo={};Uo[vi]=Uo[ui]=Uo[Ei]=1,Uo[Ri]=Uo[Li]=2,Uo[pi]=Uo[xo]=3,Uo[Kn]=Uo[So]=4;function bs(lt){return"[object "+lt+"]"}var qu=bs("HTMLCanvasElement"),Zl=bs("OffscreenCanvas"),Ju=bs("CanvasRenderingContext2D"),Zs=bs("ImageBitmap"),_f=bs("HTMLImageElement"),zo=bs("HTMLVideoElement"),Rf=Object.keys(Xe).concat([qu,Zl,Ju,Zs,_f,zo]),is=[];is[No]=1,is[hi]=4,is[bo]=2,is[es]=2,is[Vs]=4;var Bi=[];Bi[Ni]=2,Bi[ci]=2,Bi[bi]=2,Bi[Ri]=4,Bi[Ui]=.5,Bi[no]=.5,Bi[cs]=1,Bi[ks]=1,Bi[ms]=.5,Bi[Mo]=1,Bi[kn]=1,Bi[fi]=.5,Bi[Fs]=.25,Bi[Ss]=.5,Bi[Gi]=.25,Bi[js]=.5;function hc(lt){return Array.isArray(lt)&&(lt.length===0||typeof lt[0]=="number")}function xu(lt){if(!Array.isArray(lt))return!1;var ir=lt.length;return!(ir===0||!za(lt[0]))}function dl(lt){return Object.prototype.toString.call(lt)}function qc(lt){return dl(lt)===qu}function Qu(lt){return dl(lt)===Zl}function wc(lt){return dl(lt)===Ju}function Sl(lt){return dl(lt)===Zs}function hf(lt){return dl(lt)===_f}function Yc(lt){return dl(lt)===zo}function Tc(lt){if(!lt)return!1;var ir=dl(lt);return Rf.indexOf(ir)>=0?!0:hc(lt)||xu(lt)||wr(lt)}function ec(lt){return Xe[Object.prototype.toString.call(lt)]|0}function Gc(lt,ir){var ur=ir.length;switch(lt.type){case No:case es:case Vs:case hi:var fa=N.allocType(lt.type,ur);fa.set(ir),lt.data=fa;break;case bo:lt.data=Sa(ir);break}}function Hc(lt,ir){return N.allocType(lt.type===bo?hi:lt.type,ir)}function bu(lt,ir){lt.type===bo?(lt.data=Sa(ir),N.freeType(ir)):lt.data=ir}function $c(lt,ir,ur,fa,Va,Jr){for(var Kr=lt.width,cn=lt.height,ln=lt.channels,un=Kr*cn*ln,wn=Hc(lt,un),Jn=0,jn=0;jn=1;)cn+=Kr*ln*ln,ln/=2;return cn}else return Kr*ur*fa}function Lu(lt,ir,ur,fa,Va,Jr,Kr){var cn={"don't care":yu,"dont care":yu,nice:ff,fast:jc},ln={repeat:Zo,clamp:qs,mirror:Di},un={nearest:Xs,linear:Vl},wn=h({mipmap:ju,"nearest mipmap nearest":rl,"linear mipmap nearest":Cs,"nearest mipmap linear":ql,"linear mipmap linear":ju},un),Jn={none:0,browser:Il},jn={uint8:No,rgba4:ho,rgb565:gs,"rgb5 a1":Bo},xn={alpha:ui,luminance:vi,"luminance alpha":Li,rgb:pi,rgba:Kn,rgba4:Ni,"rgb5 a1":ci,rgb565:bi},Za={};ir.ext_srgb&&(xn.srgb=xo,xn.srgba=So),ir.oes_texture_float&&(jn.float32=jn.float=hi),ir.oes_texture_half_float&&(jn.float16=jn["half float"]=bo),ir.webgl_depth_texture&&(h(xn,{depth:Ei,"depth stencil":Ri}),h(jn,{uint16:es,uint32:Vs,"depth stencil":ro})),ir.webgl_compressed_texture_s3tc&&h(Za,{"rgb s3tc dxt1":Ui,"rgba s3tc dxt1":no,"rgba s3tc dxt3":cs,"rgba s3tc dxt5":ks}),ir.webgl_compressed_texture_atc&&h(Za,{"rgb atc":ms,"rgba atc explicit alpha":Mo,"rgba atc interpolated alpha":kn}),ir.webgl_compressed_texture_pvrtc&&h(Za,{"rgb pvrtc 4bppv1":fi,"rgb pvrtc 2bppv1":Fs,"rgba pvrtc 4bppv1":Ss,"rgba pvrtc 2bppv1":Gi}),ir.webgl_compressed_texture_etc1&&(Za["rgb etc1"]=js);var Ur=Array.prototype.slice.call(lt.getParameter(ra));Object.keys(Za).forEach(function(j){var ce=Za[j];Ur.indexOf(ce)>=0&&(xn[j]=ce)});var ya=Object.keys(xn);ur.textureFormats=ya;var Ra=[];Object.keys(xn).forEach(function(j){var ce=xn[j];Ra[ce]=j});var $a=[];Object.keys(jn).forEach(function(j){var ce=jn[j];$a[ce]=j});var Fa=[];Object.keys(un).forEach(function(j){var ce=un[j];Fa[ce]=j});var Bn=[];Object.keys(wn).forEach(function(j){var ce=wn[j];Bn[ce]=j});var pn=[];Object.keys(ln).forEach(function(j){var ce=ln[j];pn[ce]=j});var Xn=ya.reduce(function(j,ce){var $=xn[ce];return $===vi||$===ui||$===vi||$===Li||$===Ei||$===Ri||ir.ext_srgb&&($===xo||$===So)?j[$]=$:$===ci||ce.indexOf("rgba")>=0?j[$]=Kn:j[$]=pi,j},{});function Oa(){this.internalformat=Kn,this.format=Kn,this.type=No,this.compressed=!1,this.premultiplyAlpha=!1,this.flipY=!1,this.unpackAlignment=1,this.colorSpace=Il,this.width=0,this.height=0,this.channels=0}function Ea(j,ce){j.internalformat=ce.internalformat,j.format=ce.format,j.type=ce.type,j.compressed=ce.compressed,j.premultiplyAlpha=ce.premultiplyAlpha,j.flipY=ce.flipY,j.unpackAlignment=ce.unpackAlignment,j.colorSpace=ce.colorSpace,j.width=ce.width,j.height=ce.height,j.channels=ce.channels}function Dn(j,ce){if(!(typeof ce!="object"||!ce)){if("premultiplyAlpha"in ce&&(j.premultiplyAlpha=ce.premultiplyAlpha),"flipY"in ce&&(j.flipY=ce.flipY),"alignment"in ce&&(j.unpackAlignment=ce.alignment),"colorSpace"in ce&&(j.colorSpace=Jn[ce.colorSpace]),"type"in ce){var $=ce.type;j.type=jn[$]}var ge=j.width,Be=j.height,rt=j.channels,st=!1;"shape"in ce?(ge=ce.shape[0],Be=ce.shape[1],ce.shape.length===3&&(rt=ce.shape[2],st=!0)):("radius"in ce&&(ge=Be=ce.radius),"width"in ce&&(ge=ce.width),"height"in ce&&(Be=ce.height),"channels"in ce&&(rt=ce.channels,st=!0)),j.width=ge|0,j.height=Be|0,j.channels=rt|0;var Ge=!1;if("format"in ce){var Qe=ce.format,pt=j.internalformat=xn[Qe];j.format=Xn[pt],Qe in jn&&("type"in ce||(j.type=jn[Qe])),Qe in Za&&(j.compressed=!0),Ge=!0}!st&&Ge?j.channels=Uo[j.format]:st&&!Ge&&j.channels!==Al[j.format]&&(j.format=j.internalformat=Al[j.channels])}}function da(j){lt.pixelStorei(Vc,j.flipY),lt.pixelStorei(Pl,j.premultiplyAlpha),lt.pixelStorei(Tl,j.colorSpace),lt.pixelStorei(Cu,j.unpackAlignment)}function An(){Oa.call(this),this.xOffset=0,this.yOffset=0,this.data=null,this.needsFree=!1,this.element=null,this.needsCopy=!1}function fn(j,ce){var $=null;if(Tc(ce)?$=ce:ce&&(Dn(j,ce),"x"in ce&&(j.xOffset=ce.x|0),"y"in ce&&(j.yOffset=ce.y|0),Tc(ce.data)&&($=ce.data)),ce.copy){var ge=Va.viewportWidth,Be=Va.viewportHeight;j.width=j.width||ge-j.xOffset,j.height=j.height||Be-j.yOffset,j.needsCopy=!0}else if(!$)j.width=j.width||1,j.height=j.height||1,j.channels=j.channels||4;else if(dr($))j.channels=j.channels||4,j.data=$,!("type"in ce)&&j.type===No&&(j.type=ec($));else if(hc($))j.channels=j.channels||4,Gc(j,$),j.alignment=1,j.needsFree=!0;else if(wr($)){var rt=$.data;!Array.isArray(rt)&&j.type===No&&(j.type=ec(rt));var st=$.shape,Ge=$.stride,Qe,pt,Bt,It,Nt,Xt;st.length===3?(Bt=st[2],Xt=Ge[2]):(Bt=1,Xt=1),Qe=st[0],pt=st[1],It=Ge[0],Nt=Ge[1],j.alignment=1,j.width=Qe,j.height=pt,j.channels=Bt,j.format=j.internalformat=Al[Bt],j.needsFree=!0,$c(j,rt,It,Nt,Xt,$.offset)}else if(qc($)||Qu($)||wc($))qc($)||Qu($)?j.element=$:j.element=$.canvas,j.width=j.element.width,j.height=j.element.height,j.channels=4;else if(Sl($))j.element=$,j.width=$.width,j.height=$.height,j.channels=4;else if(hf($))j.element=$,j.width=$.naturalWidth,j.height=$.naturalHeight,j.channels=4;else if(Yc($))j.element=$,j.width=$.videoWidth,j.height=$.videoHeight,j.channels=4;else if(xu($)){var qt=j.width||$[0].length,Mt=j.height||$.length,Ft=j.channels;za($[0][0])?Ft=Ft||$[0][0].length:Ft=Ft||1;for(var Rt=Fe.shape($),_r=1,Ir=0;Ir>=Be,$.height>>=Be,fn($,ge[Be]),j.mipmask|=1<=0&&!("faces"in ce)&&(j.genMipmaps=!0)}if("mag"in ce){var ge=ce.mag;j.magFilter=un[ge]}var Be=j.wrapS,rt=j.wrapT;if("wrap"in ce){var st=ce.wrap;typeof st=="string"?Be=rt=ln[st]:Array.isArray(st)&&(Be=ln[st[0]],rt=ln[st[1]])}else{if("wrapS"in ce){var Ge=ce.wrapS;Be=ln[Ge]}if("wrapT"in ce){var Qe=ce.wrapT;rt=ln[Qe]}}if(j.wrapS=Be,j.wrapT=rt,"anisotropic"in ce&&(ce.anisotropic,j.anisotropic=ce.anisotropic),"mipmap"in ce){var pt=!1;switch(typeof ce.mipmap){case"string":j.mipmapHint=cn[ce.mipmap],j.genMipmaps=!0,pt=!0;break;case"boolean":pt=j.genMipmaps=ce.mipmap;break;case"object":j.genMipmaps=!1,pt=!0;break}pt&&!("min"in ce)&&(j.minFilter=rl)}}function El(j,ce){lt.texParameteri(ce,wl,j.minFilter),lt.texParameteri(ce,ys,j.magFilter),lt.texParameteri(ce,so,j.wrapS),lt.texParameteri(ce,Oi,j.wrapT),ir.ext_texture_filter_anisotropic&<.texParameteri(ce,_s,j.anisotropic),j.genMipmaps&&(lt.hint(Vu,j.mipmapHint),lt.generateMipmap(ce))}var zu=0,Us={},$s=ur.maxTextureUnits,mi=Array($s).map(function(){return null});function kl(j){Oa.call(this),this.mipmask=0,this.internalformat=Kn,this.id=zu++,this.refCount=1,this.target=j,this.texture=lt.createTexture(),this.unit=-1,this.bindCount=0,this.texInfo=new Qs,Kr.profile&&(this.stats={size:0})}function Oo(j){lt.activeTexture(_u),lt.bindTexture(j.target,j.texture)}function As(){var j=mi[0];j?lt.bindTexture(j.target,j.texture):lt.bindTexture(Ta,null)}function Ol(j){var ce=j.texture,$=j.unit,ge=j.target;$>=0&&(lt.activeTexture(_u+$),lt.bindTexture(ge,null),mi[$]=null),lt.deleteTexture(ce),j.texture=null,j.params=null,j.pixels=null,j.refCount=0,delete Us[j.id],Jr.textureCount--}h(kl.prototype,{bind:function(){var j=this;j.bindCount+=1;var ce=j.unit;if(ce<0){for(var $=0;$<$s;++$){var ge=mi[$];if(ge){if(ge.bindCount>0)continue;ge.unit=-1}mi[$]=j,ce=$;break}Kr.profile&&Jr.maxTextureUnits>Nt)-Bt,Xt.height=Xt.height||($.height>>Nt)-It,Oo($),Pi(Xt,Ta,Bt,It,Nt),As(),bn(Xt),ge}function rt(st,Ge){var Qe=st|0,pt=Ge|0||Qe;if(Qe===$.width&&pt===$.height)return ge;ge.width=$.width=Qe,ge.height=$.height=pt,Oo($);for(var Bt=0;$.mipmask>>Bt;++Bt){var It=Qe>>Bt,Nt=pt>>Bt;if(!It||!Nt)break;lt.texImage2D(Ta,Bt,$.format,It,Nt,0,$.format,$.type,null)}return As(),Kr.profile&&($.stats.size=Gu($.internalformat,$.type,Qe,pt,!1,!1)),ge}return ge(j,ce),ge.subimage=Be,ge.resize=rt,ge._reglType="texture2d",ge._texture=$,Kr.profile&&(ge.stats=$.stats),ge.destroy=function(){$.decRef()},ge}function Ci(j,ce,$,ge,Be,rt){var st=new kl(Fn);Us[st.id]=st,Jr.cubeCount++;var Ge=new Array(6);function Qe(It,Nt,Xt,qt,Mt,Ft){var Rt,_r=st.texInfo;for(Qs.call(_r),Rt=0;Rt<6;++Rt)Ge[Rt]=il();if(typeof It=="number"||!It){var Ir=It|0||1;for(Rt=0;Rt<6;++Rt)Xi(Ge[Rt],Ir,Ir)}else if(typeof It=="object")if(Nt)eo(Ge[0],It),eo(Ge[1],Nt),eo(Ge[2],Xt),eo(Ge[3],qt),eo(Ge[4],Mt),eo(Ge[5],Ft);else if(pl(_r,It),Dn(st,It),"faces"in It){var Xr=It.faces;for(Rt=0;Rt<6;++Rt)Ea(Ge[Rt],st),eo(Ge[Rt],Xr[Rt])}else for(Rt=0;Rt<6;++Rt)eo(Ge[Rt],It);for(Ea(st,Ge[0]),_r.genMipmaps?st.mipmask=(Ge[0].width<<1)-1:st.mipmask=Ge[0].mipmask,st.internalformat=Ge[0].internalformat,Qe.width=Ge[0].width,Qe.height=Ge[0].height,Oo(st),Rt=0;Rt<6;++Rt)ts(Ge[Rt],mn+Rt);for(El(_r,Fn),As(),Kr.profile&&(st.stats.size=Gu(st.internalformat,st.type,Qe.width,Qe.height,_r.genMipmaps,!0)),Qe.format=Ra[st.internalformat],Qe.type=$a[st.type],Qe.mag=Fa[_r.magFilter],Qe.min=Bn[_r.minFilter],Qe.wrapS=pn[_r.wrapS],Qe.wrapT=pn[_r.wrapT],Rt=0;Rt<6;++Rt)Xo(Ge[Rt]);return Qe}function pt(It,Nt,Xt,qt,Mt){var Ft=Xt|0,Rt=qt|0,_r=Mt|0,Ir=ei();return Ea(Ir,st),Ir.width=0,Ir.height=0,fn(Ir,Nt),Ir.width=Ir.width||(st.width>>_r)-Ft,Ir.height=Ir.height||(st.height>>_r)-Rt,Oo(st),Pi(Ir,mn+It,Ft,Rt,_r),As(),bn(Ir),Qe}function Bt(It){var Nt=It|0;if(Nt!==st.width){Qe.width=st.width=Nt,Qe.height=st.height=Nt,Oo(st);for(var Xt=0;Xt<6;++Xt)for(var qt=0;st.mipmask>>qt;++qt)lt.texImage2D(mn+Xt,qt,st.format,Nt>>qt,Nt>>qt,0,st.format,st.type,null);return As(),Kr.profile&&(st.stats.size=Gu(st.internalformat,st.type,Qe.width,Qe.height,!1,!0)),Qe}}return Qe(j,ce,$,ge,Be,rt),Qe.subimage=pt,Qe.resize=Bt,Qe._reglType="textureCube",Qe._texture=st,Kr.profile&&(Qe.stats=st.stats),Qe.destroy=function(){st.decRef()},Qe}function fo(){for(var j=0;j<$s;++j)lt.activeTexture(_u+j),lt.bindTexture(Ta,null),mi[j]=null;yt(Us).forEach(Ol),Jr.cubeCount=0,Jr.textureCount=0}Kr.profile&&(Jr.getTotalTextureSize=function(){var j=0;return Object.keys(Us).forEach(function(ce){j+=Us[ce].stats.size}),j});function mo(){for(var j=0;j<$s;++j){var ce=mi[j];ce&&(ce.bindCount=0,ce.unit=-1,mi[j]=null)}yt(Us).forEach(function($){$.texture=lt.createTexture(),lt.bindTexture($.target,$.texture);for(var ge=0;ge<32;++ge)if(($.mipmask&1<>ge,$.height>>ge,0,$.internalformat,$.type,null);else for(var Be=0;Be<6;++Be)lt.texImage2D(mn+Be,ge,$.internalformat,$.width>>ge,$.height>>ge,0,$.internalformat,$.type,null);El($.texInfo,$.target)})}function ye(){for(var j=0;j<$s;++j){var ce=mi[j];ce&&(ce.bindCount=0,ce.unit=-1,mi[j]=null),lt.activeTexture(_u+j),lt.bindTexture(Ta,null),lt.bindTexture(Fn,null)}}return{create2D:Bl,createCube:Ci,clear:fo,getTexture:function(j){return null},restore:mo,refresh:ye}}var Ml=36161,lc=32854,Wc=32855,Ms=36194,Lc=33189,xf=36168,Kc=34041,Ac=35907,Jc=34836,tu=34842,Qc=34843,el=[];el[lc]=2,el[Wc]=2,el[Ms]=2,el[Lc]=2,el[xf]=1,el[Kc]=4,el[Ac]=4,el[Jc]=16,el[tu]=8,el[Qc]=6;function ru(lt,ir,ur){return el[lt]*ir*ur}var tc=function(lt,ir,ur,fa,Va){var Jr={rgba4:lc,rgb565:Ms,"rgb5 a1":Wc,depth:Lc,stencil:xf,"depth stencil":Kc};ir.ext_srgb&&(Jr.srgba=Ac),ir.ext_color_buffer_half_float&&(Jr.rgba16f=tu,Jr.rgb16f=Qc),ir.webgl_color_buffer_float&&(Jr.rgba32f=Jc);var Kr=[];Object.keys(Jr).forEach(function(xn){var Za=Jr[xn];Kr[Za]=xn});var cn=0,ln={};function un(xn){this.id=cn++,this.refCount=1,this.renderbuffer=xn,this.format=lc,this.width=0,this.height=0,Va.profile&&(this.stats={size:0})}un.prototype.decRef=function(){--this.refCount<=0&&wn(this)};function wn(xn){var Za=xn.renderbuffer;lt.bindRenderbuffer(Ml,null),lt.deleteRenderbuffer(Za),xn.renderbuffer=null,xn.refCount=0,delete ln[xn.id],fa.renderbufferCount--}function Jn(xn,Za){var Ur=new un(lt.createRenderbuffer());ln[Ur.id]=Ur,fa.renderbufferCount++;function ya($a,Fa){var Bn=0,pn=0,Xn=lc;if(typeof $a=="object"&&$a){var Oa=$a;if("shape"in Oa){var Ea=Oa.shape;Bn=Ea[0]|0,pn=Ea[1]|0}else"radius"in Oa&&(Bn=pn=Oa.radius|0),"width"in Oa&&(Bn=Oa.width|0),"height"in Oa&&(pn=Oa.height|0);"format"in Oa&&(Xn=Jr[Oa.format])}else typeof $a=="number"?(Bn=$a|0,typeof Fa=="number"?pn=Fa|0:pn=Bn):$a||(Bn=pn=1);if(!(Bn===Ur.width&&pn===Ur.height&&Xn===Ur.format))return ya.width=Ur.width=Bn,ya.height=Ur.height=pn,Ur.format=Xn,lt.bindRenderbuffer(Ml,Ur.renderbuffer),lt.renderbufferStorage(Ml,Xn,Bn,pn),Va.profile&&(Ur.stats.size=ru(Ur.format,Ur.width,Ur.height)),ya.format=Kr[Ur.format],ya}function Ra($a,Fa){var Bn=$a|0,pn=Fa|0||Bn;return Bn===Ur.width&&pn===Ur.height||(ya.width=Ur.width=Bn,ya.height=Ur.height=pn,lt.bindRenderbuffer(Ml,Ur.renderbuffer),lt.renderbufferStorage(Ml,Ur.format,Bn,pn),Va.profile&&(Ur.stats.size=ru(Ur.format,Ur.width,Ur.height))),ya}return ya(xn,Za),ya.resize=Ra,ya._reglType="renderbuffer",ya._renderbuffer=Ur,Va.profile&&(ya.stats=Ur.stats),ya.destroy=function(){Ur.decRef()},ya}Va.profile&&(fa.getTotalRenderbufferSize=function(){var xn=0;return Object.keys(ln).forEach(function(Za){xn+=ln[Za].stats.size}),xn});function jn(){yt(ln).forEach(function(xn){xn.renderbuffer=lt.createRenderbuffer(),lt.bindRenderbuffer(Ml,xn.renderbuffer),lt.renderbufferStorage(Ml,xn.format,xn.width,xn.height)}),lt.bindRenderbuffer(Ml,null)}return{create:Jn,clear:function(){yt(ln).forEach(wn)},restore:jn}},Bs=36160,Hu=36161,Gl=3553,au=34069,Ys=36064,vc=36096,Pu=36128,rc=33306,Pc=36053,bf=36193,Vf=5121,dc=5126,Ic=6407,fu=6408,Rc=[];Rc[fu]=4,Rc[Ic]=3;var Rl=[];Rl[Vf]=1,Rl[dc]=4,Rl[bf]=2;function pc(lt,ir,ur,fa,Va,Jr){var Kr={cur:null,next:null,dirty:!1,setFBO:null},cn=["rgba"],ln=["rgba4","rgb565","rgb5 a1"];ir.ext_srgb&&ln.push("srgba"),ir.ext_color_buffer_half_float&&ln.push("rgba16f","rgb16f"),ir.webgl_color_buffer_float&&ln.push("rgba32f"),ir.oes_texture_half_float,ir.oes_texture_float;function un(da,An,fn){this.target=da,this.texture=An,this.renderbuffer=fn;var Yn=0,Pi=0;An?(Yn=An.width,Pi=An.height):fn&&(Yn=fn.width,Pi=fn.height),this.width=Yn,this.height=Pi}function wn(da){da&&(da.texture&&da.texture._texture.decRef(),da.renderbuffer&&da.renderbuffer._renderbuffer.decRef())}function Jn(da,An,fn){if(da)if(da.texture){var Yn=da.texture._texture;Math.max(1,Yn.width),Math.max(1,Yn.height),Yn.refCount+=1}else{var Pi=da.renderbuffer._renderbuffer;Pi.refCount+=1}}function jn(da,An){An&&(An.texture?lt.framebufferTexture2D(Bs,da,An.target,An.texture._texture.texture,0):lt.framebufferRenderbuffer(Bs,da,Hu,An.renderbuffer._renderbuffer.renderbuffer))}function xn(da){var An=Gl,fn=null,Yn=null,Pi=da;typeof da=="object"&&(Pi=da.data,"target"in da&&(An=da.target|0));var Vn=Pi._reglType;return Vn==="texture2d"||Vn==="textureCube"?fn=Pi:Vn==="renderbuffer"&&(Yn=Pi,An=Hu),new un(An,fn,Yn)}function Za(da,An,fn,Yn,Pi){if(fn){var Vn=fa.create2D({width:da,height:An,format:Yn,type:Pi});return Vn._texture.refCount=0,new un(Gl,Vn,null)}else{var ei=Va.create({width:da,height:An,format:Yn});return ei._renderbuffer.refCount=0,new un(Hu,null,ei)}}function Ur(da){return da&&(da.texture||da.renderbuffer)}function ya(da,An,fn){da&&(da.texture?da.texture.resize(An,fn):da.renderbuffer&&da.renderbuffer.resize(An,fn),da.width=An,da.height=fn)}var Ra=0,$a={};function Fa(){this.id=Ra++,$a[this.id]=this,this.framebuffer=lt.createFramebuffer(),this.width=0,this.height=0,this.colorAttachments=[],this.depthAttachment=null,this.stencilAttachment=null,this.depthStencilAttachment=null}function Bn(da){da.colorAttachments.forEach(wn),wn(da.depthAttachment),wn(da.stencilAttachment),wn(da.depthStencilAttachment)}function pn(da){var An=da.framebuffer;lt.deleteFramebuffer(An),da.framebuffer=null,Jr.framebufferCount--,delete $a[da.id]}function Xn(da){var An;lt.bindFramebuffer(Bs,da.framebuffer);var fn=da.colorAttachments;for(An=0;An=0?il=!0:ln.indexOf(Xo)>=0&&(il=!1))),("depthTexture"in mi||"depthStencilTexture"in mi)&&($s=!!(mi.depthTexture||mi.depthStencilTexture)),"depth"in mi&&(typeof mi.depth=="boolean"?eo=mi.depth:(El=mi.depth,ts=!1)),"stencil"in mi&&(typeof mi.stencil=="boolean"?ts=mi.stencil:(zu=mi.stencil,eo=!1)),"depthStencil"in mi&&(typeof mi.depthStencil=="boolean"?eo=ts=mi.depthStencil:(Us=mi.depthStencil,eo=!1,ts=!1))}var Oo=null,As=null,Ol=null,Bl=null;if(Array.isArray(to))Oo=to.map(xn);else if(to)Oo=[xn(to)];else for(Oo=new Array(pl),bn=0;bn0&&(ei.depth=An[0].depth,ei.stencil=An[0].stencil,ei.depthStencil=An[0].depthStencil),An[Vn]?An[Vn](ei):An[Vn]=Oa(ei)}return h(fn,{width:bn,height:bn,color:Xo})}function Yn(Pi){var Vn,ei=Pi|0;if(ei===fn.width)return fn;var bn=fn.color;for(Vn=0;Vn=Mi.byteLength?Xi.subdata(Mi):(Xi.destroy(),Ea.buffers[Vn]=null)),Ea.buffers[Vn]||(Xi=Ea.buffers[Vn]=Va.create(ei,gc,!1,!0)),bn.buffer=Va.getBuffer(Xi),bn.size=bn.buffer.dimension|0,bn.normalized=!1,bn.type=bn.buffer.dtype,bn.offset=0,bn.stride=0,bn.divisor=0,bn.state=1,Yn[Vn]=1}else Va.getBuffer(ei)?(bn.buffer=Va.getBuffer(ei),bn.size=bn.buffer.dimension|0,bn.normalized=!1,bn.type=bn.buffer.dtype,bn.offset=0,bn.stride=0,bn.divisor=0,bn.state=1):Va.getBuffer(ei.buffer)?(bn.buffer=Va.getBuffer(ei.buffer),bn.size=(+ei.size||bn.buffer.dimension)|0,bn.normalized=!!ei.normalized||!1,"type"in ei?bn.type=ia[ei.type]:bn.type=bn.buffer.dtype,bn.offset=(ei.offset||0)|0,bn.stride=(ei.stride||0)|0,bn.divisor=(ei.divisor||0)|0,bn.state=1):"x"in ei&&(bn.x=+ei.x||0,bn.y=+ei.y||0,bn.z=+ei.z||0,bn.w=+ei.w||0,bn.state=2)}for(var eo=0;eo1)for(var da=0;daUr&&(Ur=ya.stats.uniformsCount)}),Ur},ur.getMaxAttributesCount=function(){var Ur=0;return wn.forEach(function(ya){ya.stats.attributesCount>Ur&&(Ur=ya.stats.attributesCount)}),Ur});function Za(){Va={},Jr={};for(var Ur=0;Ur>>4&15)+ir.charAt(fa&15);return ur}function Ru(lt){for(var ir="",ur=-1,fa,Va;++ur>>6&31,128|fa&63):fa<=65535?ir+=String.fromCharCode(224|fa>>>12&15,128|fa>>>6&63,128|fa&63):fa<=2097151&&(ir+=String.fromCharCode(240|fa>>>18&7,128|fa>>>12&63,128|fa>>>6&63,128|fa&63));return ir}function al(lt){for(var ir=Array(lt.length>>2),ur=0;ur>5]|=(lt.charCodeAt(ur/8)&255)<<24-ur%32;return ir}function Yl(lt){for(var ir="",ur=0;ur>5]>>>24-ur%32&255);return ir}function Ks(lt,ir){return lt>>>ir|lt<<32-ir}function nc(lt,ir){return lt>>>ir}function Du(lt,ir,ur){return lt&ir^~lt&ur}function Zc(lt,ir,ur){return lt&ir^lt&ur^ir&ur}function Qt(lt){return Ks(lt,2)^Ks(lt,13)^Ks(lt,22)}function yr(lt){return Ks(lt,6)^Ks(lt,11)^Ks(lt,25)}function $r(lt){return Ks(lt,7)^Ks(lt,18)^nc(lt,3)}function Vr(lt){return Ks(lt,17)^Ks(lt,19)^nc(lt,10)}var ma=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 tn(lt,ir){var ur=new Array(1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225),fa=new Array(64),Va,Jr,Kr,cn,ln,un,wn,Jn,jn,xn,Za,Ur;for(lt[ir>>5]|=128<<24-ir%32,lt[(ir+64>>9<<4)+15]=ir,jn=0;jn>16)+(ir>>16)+(ur>>16);return fa<<16|ur&65535}function Ln(lt){return Array.prototype.slice.call(lt)}function On(lt){return Ln(lt).join("")}function Qn(lt){var ir=lt&<.cache,ur=0,fa=[],Va=[],Jr=[];function Kr(Za,Ur){var ya=Ur&&Ur.stable;if(!ya){for(var Ra=0;Ra0&&(Za.push($a,"="),Za.push.apply(Za,Ln(arguments)),Za.push(";")),$a}return h(Ur,{def:Ra,toString:function(){return On([ya.length>0?"var "+ya.join(",")+";":"",On(Za)])}})}function ln(){var Za=cn(),Ur=cn(),ya=Za.toString,Ra=Ur.toString;function $a(Fa,Bn){Ur(Fa,Bn,"=",Za.def(Fa,Bn),";")}return h(function(){Za.apply(Za,Ln(arguments))},{def:Za.def,entry:Za,exit:Ur,save:$a,set:function(Fa,Bn,pn){$a(Fa,Bn),Za(Fa,Bn,"=",pn,";")},toString:function(){return ya()+Ra()}})}function un(){var Za=On(arguments),Ur=ln(),ya=ln(),Ra=Ur.toString,$a=ya.toString;return h(Ur,{then:function(){return Ur.apply(Ur,Ln(arguments)),this},else:function(){return ya.apply(ya,Ln(arguments)),this},toString:function(){var Fa=$a();return Fa&&(Fa="else{"+Fa+"}"),On(["if(",Za,"){",Ra(),"}",Fa])}})}var wn=cn(),Jn={};function jn(Za,Ur){var ya=[];function Ra(){var Xn="a"+ya.length;return ya.push(Xn),Xn}Ur=Ur||0;for(var $a=0;$a":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},Na={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},rn={cw:dt,ccw:gt};function sn(lt){return Array.isArray(lt)||dr(lt)||wr(lt)}function Ba(lt){return lt.sort(function(ir,ur){return ir===iu?-1:ur===iu?1:ir=1,fa>=2,ir)}else if(ur===Wi){var Va=lt.data;return new Rn(Va.thisDep,Va.contextDep,Va.propDep,ir)}else{if(ur===ii)return new Rn(!1,!1,!1,ir);if(ur===Wn){for(var Jr=!1,Kr=!1,cn=!1,ln=0;ln=1&&(Kr=!0),wn>=2&&(cn=!0)}else un.type===Wi&&(Jr=Jr||un.data.thisDep,Kr=Kr||un.data.contextDep,cn=cn||un.data.propDep)}return new Rn(Jr,Kr,cn,ir)}else return new Rn(ur===Zi,ur===Fi,ur===Hi,ir)}}var Ti=new Rn(!1,!1,!1,function(){});function ki(lt,ir,ur,fa,Va,Jr,Kr,cn,ln,un,wn,Jn,jn,xn,Za,Ur){var ya=un.Record,Ra={add:32774,subtract:32778,"reverse subtract":32779};ur.ext_blend_minmax&&(Ra.min=Tt,Ra.max=Vt);var $a=ur.angle_instanced_arrays,Fa=ur.webgl_draw_buffers,Bn=ur.oes_vertex_array_object,pn={dirty:!0,profile:Ur.profile},Xn={},Oa=[],Ea={},Dn={};function da(Ge){return Ge.replace(".","_")}function An(Ge,Qe,pt){var Bt=da(Ge);Oa.push(Ge),Xn[Bt]=pn[Bt]=!!pt,Ea[Bt]=Qe}function fn(Ge,Qe,pt){var Bt=da(Ge);Oa.push(Ge),Array.isArray(pt)?(pn[Bt]=pt.slice(),Xn[Bt]=pt.slice()):pn[Bt]=Xn[Bt]=pt,Dn[Bt]=Qe}function Yn(Ge){return!!isNaN(Ge)}An(ao,Cr),An(Fo,gr),fn(hs,"blendColor",[0,0,0,0]),fn(Is,"blendEquationSeparate",[Zr,Zr]),fn(vs,"blendFuncSeparate",[kr,Pr,kr,Pr]),An(Rs,ua,!0),fn(Yo,"depthFunc",la),fn(sl,"depthRange",[0,1]),fn(nl,"depthMask",!0),fn(Ls,Ls,[!0,!0,!0,!0]),An(wi,cr),fn(go,"cullFace",$e),fn(ws,ws,gt),fn(os,os,1),An(Hl,Ma),fn(Wl,"polygonOffset",[0,0]),An($l,en),An(uc,Pn),fn(Xl,"sampleCoverage",[1,!1]),An(Xu,Wr),fn(ll,"stencilMask",-1),fn(Zu,"stencilFunc",[jt,0,-1]),fn(Yi,"stencilOpSeparate",[Le,sr,sr,sr]),fn(io,"stencilOpSeparate",[$e,sr,sr,sr]),An(Yu,va),fn(du,"scissor",[0,0,lt.drawingBufferWidth,lt.drawingBufferHeight]),fn(iu,iu,[0,0,lt.drawingBufferWidth,lt.drawingBufferHeight]);var Pi={gl:lt,context:jn,strings:ir,next:Xn,current:pn,draw:Jn,elements:Jr,buffer:Va,shader:wn,attributes:un.state,vao:un,uniforms:ln,framebuffer:cn,extensions:ur,timer:xn,isBufferArgs:sn},Vn={primTypes:mt,compareFuncs:Pa,blendFuncs:pa,blendEquations:Ra,stencilOps:Na,glTypes:ia,orientationType:rn};Fa&&(Vn.backBuffer=[$e],Vn.drawBuffer=d(fa.maxDrawbuffers,function(Ge){return Ge===0?[0]:d(Ge,function(Qe){return nn+Qe})}));var ei=0;function bn(){var Ge=Qn({cache:Za}),Qe=Ge.link,pt=Ge.global;Ge.id=ei++,Ge.batchId="0";var Bt=Qe(Pi),It=Ge.shared={props:"a0"};Object.keys(Pi).forEach(function(Ft){It[Ft]=pt.def(Bt,".",Ft)});var Nt=Ge.next={},Xt=Ge.current={};Object.keys(Dn).forEach(function(Ft){Array.isArray(pn[Ft])&&(Nt[Ft]=pt.def(It.next,".",Ft),Xt[Ft]=pt.def(It.current,".",Ft))});var qt=Ge.constants={};Object.keys(Vn).forEach(function(Ft){qt[Ft]=pt.def(JSON.stringify(Vn[Ft]))}),Ge.invoke=function(Ft,Rt){switch(Rt.type){case ai:var _r=["this",It.context,It.props,Ge.batchId];return Ft.def(Qe(Rt.data),".call(",_r.slice(0,Math.max(Rt.data.length+1,4)),")");case Hi:return Ft.def(It.props,Rt.data);case Fi:return Ft.def(It.context,Rt.data);case Zi:return Ft.def("this",Rt.data);case Wi:return Rt.data.append(Ge,Ft),Rt.data.ref;case ii:return Rt.data.toString();case Wn:return Rt.data.map(function(Ir){return Ge.invoke(Ft,Ir)})}},Ge.attribCache={};var Mt={};return Ge.scopeAttrib=function(Ft){var Rt=ir.id(Ft);if(Rt in Mt)return Mt[Rt];var _r=un.scope[Rt];_r||(_r=un.scope[Rt]=new ya);var Ir=Mt[Rt]=Qe(_r);return Ir},Ge}function Mi(Ge){var Qe=Ge.static,pt=Ge.dynamic,Bt;if(ze in Qe){var It=!!Qe[ze];Bt=Zn(function(Xt,qt){return It}),Bt.enable=It}else if(ze in pt){var Nt=pt[ze];Bt=ri(Nt,function(Xt,qt){return Xt.invoke(qt,Nt)})}return Bt}function Xi(Ge,Qe){var pt=Ge.static,Bt=Ge.dynamic;if(L in pt){var It=pt[L];return It?(It=cn.getFramebuffer(It),Zn(function(Xt,qt){var Mt=Xt.link(It),Ft=Xt.shared;qt.set(Ft.framebuffer,".next",Mt);var Rt=Ft.context;return qt.set(Rt,"."+Br,Mt+".width"),qt.set(Rt,"."+ea,Mt+".height"),Mt})):Zn(function(Xt,qt){var Mt=Xt.shared;qt.set(Mt.framebuffer,".next","null");var Ft=Mt.context;return qt.set(Ft,"."+Br,Ft+"."+vt),qt.set(Ft,"."+ea,Ft+"."+St),"null"})}else if(L in Bt){var Nt=Bt[L];return ri(Nt,function(Xt,qt){var Mt=Xt.invoke(qt,Nt),Ft=Xt.shared,Rt=Ft.framebuffer,_r=qt.def(Rt,".getFramebuffer(",Mt,")");qt.set(Rt,".next",_r);var Ir=Ft.context;return qt.set(Ir,"."+Br,_r+"?"+_r+".width:"+Ir+"."+vt),qt.set(Ir,"."+ea,_r+"?"+_r+".height:"+Ir+"."+St),_r})}else return null}function eo(Ge,Qe,pt){var Bt=Ge.static,It=Ge.dynamic;function Nt(Mt){if(Mt in Bt){var Ft=Bt[Mt],Rt=!0,_r=Ft.x|0,Ir=Ft.y|0,Xr,Ua;return"width"in Ft?Xr=Ft.width|0:Rt=!1,"height"in Ft?Ua=Ft.height|0:Rt=!1,new Rn(!Rt&&Qe&&Qe.thisDep,!Rt&&Qe&&Qe.contextDep,!Rt&&Qe&&Qe.propDep,function(ja,Ha){var on=ja.shared.context,qa=Xr;"width"in Ft||(qa=Ha.def(on,".",Br,"-",_r));var hn=Ua;return"height"in Ft||(hn=Ha.def(on,".",ea,"-",Ir)),[_r,Ir,qa,hn]})}else if(Mt in It){var ka=It[Mt],xa=ri(ka,function(ja,Ha){var on=ja.invoke(Ha,ka),qa=ja.shared.context,hn=Ha.def(on,".x|0"),Sn=Ha.def(on,".y|0"),Gn=Ha.def('"width" in ',on,"?",on,".width|0:","(",qa,".",Br,"-",hn,")"),ti=Ha.def('"height" in ',on,"?",on,".height|0:","(",qa,".",ea,"-",Sn,")");return[hn,Sn,Gn,ti]});return Qe&&(xa.thisDep=xa.thisDep||Qe.thisDep,xa.contextDep=xa.contextDep||Qe.contextDep,xa.propDep=xa.propDep||Qe.propDep),xa}else return Qe?new Rn(Qe.thisDep,Qe.contextDep,Qe.propDep,function(ja,Ha){var on=ja.shared.context;return[0,0,Ha.def(on,".",Br),Ha.def(on,".",ea)]}):null}var Xt=Nt(iu);if(Xt){var qt=Xt;Xt=new Rn(Xt.thisDep,Xt.contextDep,Xt.propDep,function(Mt,Ft){var Rt=qt.append(Mt,Ft),_r=Mt.shared.context;return Ft.set(_r,"."+Ve,Rt[2]),Ft.set(_r,"."+Ye,Rt[3]),Rt})}return{viewport:Xt,scissor_box:Nt(du)}}function ts(Ge,Qe){var pt=Ge.static,Bt=typeof pt[Te]=="string"&&typeof pt[ne]=="string";if(Bt){if(Object.keys(Qe.dynamic).length>0)return null;var It=Qe.static,Nt=Object.keys(It);if(Nt.length>0&&typeof It[Nt[0]]=="number"){for(var Xt=[],qt=0;qt"+hn+"?"+Rt+".constant["+hn+"]:0;"}).join(""),"}}else{","if(",Xr,"(",Rt,".buffer)){",ja,"=",Ua,".createStream(",Lt,",",Rt,".buffer);","}else{",ja,"=",Ua,".getBuffer(",Rt,".buffer);","}",Ha,'="type" in ',Rt,"?",Ir.glTypes,"[",Rt,".type]:",ja,".dtype;",ka.normalized,"=!!",Rt,".normalized;");function on(qa){Ft(ka[qa],"=",Rt,".",qa,"|0;")}return on("size"),on("offset"),on("stride"),on("divisor"),Ft("}}"),Ft.exit("if(",ka.isStream,"){",Ua,".destroyStream(",ja,");","}"),ka}It[Nt]=ri(Xt,qt)}),It}function El(Ge){var Qe=Ge.static,pt=Ge.dynamic,Bt={};return Object.keys(Qe).forEach(function(It){var Nt=Qe[It];Bt[It]=Zn(function(Xt,qt){return typeof Nt=="number"||typeof Nt=="boolean"?""+Nt:Xt.link(Nt)})}),Object.keys(pt).forEach(function(It){var Nt=pt[It];Bt[It]=ri(Nt,function(Xt,qt){return Xt.invoke(qt,Nt)})}),Bt}function zu(Ge,Qe,pt,Bt,It){Ge.static,Ge.dynamic;var Nt=ts(Ge,Qe),Xt=Xi(Ge),qt=eo(Ge,Xt),Mt=il(Ge),Ft=Xo(Ge),Rt=to(Ge,It,Nt);function _r(ja){var Ha=qt[ja];Ha&&(Ft[ja]=Ha)}_r(iu),_r(da(du));var Ir=Object.keys(Ft).length>0,Xr={framebuffer:Xt,draw:Mt,shader:Rt,state:Ft,dirty:Ir,scopeVAO:null,drawVAO:null,useVAO:!1,attributes:{}};if(Xr.profile=Mi(Ge),Xr.uniforms=Qs(pt),Xr.drawVAO=Xr.scopeVAO=Mt.vao,!Xr.drawVAO&&Rt.program&&!Nt&&ur.angle_instanced_arrays&&Mt.static.elements){var Ua=!0,ka=Rt.program.attributes.map(function(ja){var Ha=Qe.static[ja];return Ua=Ua&&!!Ha,Ha});if(Ua&&ka.length>0){var xa=un.getVAO(un.createVAO({attributes:ka,elements:Mt.static.elements}));Xr.drawVAO=new Rn(null,null,null,function(ja,Ha){return ja.link(xa)}),Xr.useVAO=!0}}return Nt?Xr.useVAO=!0:Xr.attributes=pl(Qe),Xr.context=El(Bt),Xr}function Us(Ge,Qe,pt){var Bt=Ge.shared,It=Bt.context,Nt=Ge.scope();Object.keys(pt).forEach(function(Xt){Qe.save(It,"."+Xt);var qt=pt[Xt],Mt=qt.append(Ge,Qe);Array.isArray(Mt)?Nt(It,".",Xt,"=[",Mt.join(),"];"):Nt(It,".",Xt,"=",Mt,";")}),Qe(Nt)}function $s(Ge,Qe,pt,Bt){var It=Ge.shared,Nt=It.gl,Xt=It.framebuffer,qt;Fa&&(qt=Qe.def(It.extensions,".webgl_draw_buffers"));var Mt=Ge.constants,Ft=Mt.drawBuffer,Rt=Mt.backBuffer,_r;pt?_r=pt.append(Ge,Qe):_r=Qe.def(Xt,".next"),Bt||Qe("if(",_r,"!==",Xt,".cur){"),Qe("if(",_r,"){",Nt,".bindFramebuffer(",ca,",",_r,".framebuffer);"),Fa&&Qe(qt,".drawBuffersWEBGL(",Ft,"[",_r,".colorAttachments.length]);"),Qe("}else{",Nt,".bindFramebuffer(",ca,",null);"),Fa&&Qe(qt,".drawBuffersWEBGL(",Rt,");"),Qe("}",Xt,".cur=",_r,";"),Bt||Qe("}")}function mi(Ge,Qe,pt){var Bt=Ge.shared,It=Bt.gl,Nt=Ge.current,Xt=Ge.next,qt=Bt.current,Mt=Bt.next,Ft=Ge.cond(qt,".dirty");Oa.forEach(function(Rt){var _r=da(Rt);if(!(_r in pt.state)){var Ir,Xr;if(_r in Xt){Ir=Xt[_r],Xr=Nt[_r];var Ua=d(pn[_r].length,function(xa){return Ft.def(Ir,"[",xa,"]")});Ft(Ge.cond(Ua.map(function(xa,ja){return xa+"!=="+Xr+"["+ja+"]"}).join("||")).then(It,".",Dn[_r],"(",Ua,");",Ua.map(function(xa,ja){return Xr+"["+ja+"]="+xa}).join(";"),";"))}else{Ir=Ft.def(Mt,".",_r);var ka=Ge.cond(Ir,"!==",qt,".",_r);Ft(ka),_r in Ea?ka(Ge.cond(Ir).then(It,".enable(",Ea[_r],");").else(It,".disable(",Ea[_r],");"),qt,".",_r,"=",Ir,";"):ka(It,".",Dn[_r],"(",Ir,");",qt,".",_r,"=",Ir,";")}}}),Object.keys(pt.state).length===0&&Ft(qt,".dirty=false;"),Qe(Ft)}function kl(Ge,Qe,pt,Bt){var It=Ge.shared,Nt=Ge.current,Xt=It.current,qt=It.gl,Mt;Ba(Object.keys(pt)).forEach(function(Ft){var Rt=pt[Ft];if(!(Bt&&!Bt(Rt))){var _r=Rt.append(Ge,Qe);if(Ea[Ft]){var Ir=Ea[Ft];ni(Rt)?(Mt=Ge.link(_r,{stable:!0}),Qe(Ge.cond(Mt).then(qt,".enable(",Ir,");").else(qt,".disable(",Ir,");")),Qe(Xt,".",Ft,"=",Mt,";")):(Qe(Ge.cond(_r).then(qt,".enable(",Ir,");").else(qt,".disable(",Ir,");")),Qe(Xt,".",Ft,"=",_r,";"))}else if(za(_r)){var Xr=Nt[Ft];Qe(qt,".",Dn[Ft],"(",_r,");",_r.map(function(Ua,ka){return Xr+"["+ka+"]="+Ua}).join(";"),";")}else ni(Rt)?(Mt=Ge.link(_r,{stable:!0}),Qe(qt,".",Dn[Ft],"(",Mt,");",Xt,".",Ft,"=",Mt,";")):Qe(qt,".",Dn[Ft],"(",_r,");",Xt,".",Ft,"=",_r,";")}})}function Oo(Ge,Qe){$a&&(Ge.instancing=Qe.def(Ge.shared.extensions,".angle_instanced_arrays"))}function As(Ge,Qe,pt,Bt,It){var Nt=Ge.shared,Xt=Ge.stats,qt=Nt.current,Mt=Nt.timer,Ft=pt.profile;function Rt(){return typeof performance>"u"?"Date.now()":"performance.now()"}var _r,Ir;function Xr(on){_r=Qe.def(),on(_r,"=",Rt(),";"),typeof It=="string"?on(Xt,".count+=",It,";"):on(Xt,".count++;"),xn&&(Bt?(Ir=Qe.def(),on(Ir,"=",Mt,".getNumPendingQueries();")):on(Mt,".beginQuery(",Xt,");"))}function Ua(on){on(Xt,".cpuTime+=",Rt(),"-",_r,";"),xn&&(Bt?on(Mt,".pushScopeStats(",Ir,",",Mt,".getNumPendingQueries(),",Xt,");"):on(Mt,".endQuery();"))}function ka(on){var qa=Qe.def(qt,".profile");Qe(qt,".profile=",on,";"),Qe.exit(qt,".profile=",qa,";")}var xa;if(Ft){if(ni(Ft)){Ft.enable?(Xr(Qe),Ua(Qe.exit),ka("true")):ka("false");return}xa=Ft.append(Ge,Qe),ka(xa)}else xa=Qe.def(qt,".profile");var ja=Ge.block();Xr(ja),Qe("if(",xa,"){",ja,"}");var Ha=Ge.block();Ua(Ha),Qe.exit("if(",xa,"){",Ha,"}")}function Ol(Ge,Qe,pt,Bt,It){var Nt=Ge.shared;function Xt(Mt){switch(Mt){case In:case Ki:case Ko:return 2;case oi:case Go:case Js:return 3;case Si:case Ho:case Hs:return 4;default:return 1}}function qt(Mt,Ft,Rt){var _r=Nt.gl,Ir=Qe.def(Mt,".location"),Xr=Qe.def(Nt.attributes,"[",Ir,"]"),Ua=Rt.state,ka=Rt.buffer,xa=[Rt.x,Rt.y,Rt.z,Rt.w],ja=["buffer","normalized","offset","stride"];function Ha(){Qe("if(!",Xr,".buffer){",_r,".enableVertexAttribArray(",Ir,");}");var qa=Rt.type,hn;if(Rt.size?hn=Qe.def(Rt.size,"||",Ft):hn=Ft,Qe("if(",Xr,".type!==",qa,"||",Xr,".size!==",hn,"||",ja.map(function(Gn){return Xr+"."+Gn+"!=="+Rt[Gn]}).join("||"),"){",_r,".bindBuffer(",Lt,",",ka,".buffer);",_r,".vertexAttribPointer(",[Ir,hn,qa,Rt.normalized,Rt.stride,Rt.offset],");",Xr,".type=",qa,";",Xr,".size=",hn,";",ja.map(function(Gn){return Xr+"."+Gn+"="+Rt[Gn]+";"}).join(""),"}"),$a){var Sn=Rt.divisor;Qe("if(",Xr,".divisor!==",Sn,"){",Ge.instancing,".vertexAttribDivisorANGLE(",[Ir,Sn],");",Xr,".divisor=",Sn,";}")}}function on(){Qe("if(",Xr,".buffer){",_r,".disableVertexAttribArray(",Ir,");",Xr,".buffer=null;","}if(",_n.map(function(qa,hn){return Xr+"."+qa+"!=="+xa[hn]}).join("||"),"){",_r,".vertexAttrib4f(",Ir,",",xa,");",_n.map(function(qa,hn){return Xr+"."+qa+"="+xa[hn]+";"}).join(""),"}")}Ua===En?Ha():Ua===dn?on():(Qe("if(",Ua,"===",En,"){"),Ha(),Qe("}else{"),on(),Qe("}"))}Bt.forEach(function(Mt){var Ft=Mt.name,Rt=pt.attributes[Ft],_r;if(Rt){if(!It(Rt))return;_r=Rt.append(Ge,Qe)}else{if(!It(Ti))return;var Ir=Ge.scopeAttrib(Ft);_r={},Object.keys(new ya).forEach(function(Xr){_r[Xr]=Qe.def(Ir,".",Xr)})}qt(Ge.link(Mt),Xt(Mt.info.type),_r)})}function Bl(Ge,Qe,pt,Bt,It,Nt){for(var Xt=Ge.shared,qt=Xt.gl,Mt,Ft=0;Ft1){for(var yo=[],vo=[],ss=0;ss>1)",ka],");")}function Sn(){pt(xa,".drawArraysInstancedANGLE(",[Ir,Xr,Ua,ka],");")}Rt&&Rt!=="null"?Ha?hn():(pt("if(",Rt,"){"),hn(),pt("}else{"),Sn(),pt("}")):Sn()}function qa(){function hn(){pt(Nt+".drawElements("+[Ir,Ua,ja,Xr+"<<(("+ja+"-"+qn+")>>1)"]+");")}function Sn(){pt(Nt+".drawArrays("+[Ir,Xr,Ua]+");")}Rt&&Rt!=="null"?Ha?hn():(pt("if(",Rt,"){"),hn(),pt("}else{"),Sn(),pt("}")):Sn()}$a&&(typeof ka!="number"||ka>=0)?typeof ka=="string"?(pt("if(",ka,">0){"),on(),pt("}else if(",ka,"<0){"),qa(),pt("}")):on():qa()}function fo(Ge,Qe,pt,Bt,It){var Nt=bn(),Xt=Nt.proc("body",It);return $a&&(Nt.instancing=Xt.def(Nt.shared.extensions,".angle_instanced_arrays")),Ge(Nt,Xt,pt,Bt),Nt.compile().body}function mo(Ge,Qe,pt,Bt){Oo(Ge,Qe),pt.useVAO?pt.drawVAO?Qe(Ge.shared.vao,".setVAO(",pt.drawVAO.append(Ge,Qe),");"):Qe(Ge.shared.vao,".setVAO(",Ge.shared.vao,".targetVAO);"):(Qe(Ge.shared.vao,".setVAO(null);"),Ol(Ge,Qe,pt,Bt.attributes,function(){return!0})),Bl(Ge,Qe,pt,Bt.uniforms,function(){return!0},!1),Ci(Ge,Qe,Qe,pt)}function ye(Ge,Qe){var pt=Ge.proc("draw",1);Oo(Ge,pt),Us(Ge,pt,Qe.context),$s(Ge,pt,Qe.framebuffer),mi(Ge,pt,Qe),kl(Ge,pt,Qe.state),As(Ge,pt,Qe,!1,!0);var Bt=Qe.shader.progVar.append(Ge,pt);if(pt(Ge.shared.gl,".useProgram(",Bt,".program);"),Qe.shader.program)mo(Ge,pt,Qe,Qe.shader.program);else{pt(Ge.shared.vao,".setVAO(null);");var It=Ge.global.def("{}"),Nt=pt.def(Bt,".id"),Xt=pt.def(It,"[",Nt,"]");pt(Ge.cond(Xt).then(Xt,".call(this,a0);").else(Xt,"=",It,"[",Nt,"]=",Ge.link(function(qt){return fo(mo,Ge,Qe,qt,1)}),"(",Bt,");",Xt,".call(this,a0);"))}Object.keys(Qe.state).length>0&&pt(Ge.shared.current,".dirty=true;"),Ge.shared.vao&&pt(Ge.shared.vao,".setVAO(null);")}function j(Ge,Qe,pt,Bt){Ge.batchId="a1",Oo(Ge,Qe);function It(){return!0}Ol(Ge,Qe,pt,Bt.attributes,It),Bl(Ge,Qe,pt,Bt.uniforms,It,!1),Ci(Ge,Qe,Qe,pt)}function ce(Ge,Qe,pt,Bt){Oo(Ge,Qe);var It=pt.contextDep,Nt=Qe.def(),Xt="a0",qt="a1",Mt=Qe.def();Ge.shared.props=Mt,Ge.batchId=Nt;var Ft=Ge.scope(),Rt=Ge.scope();Qe(Ft.entry,"for(",Nt,"=0;",Nt,"<",qt,";++",Nt,"){",Mt,"=",Xt,"[",Nt,"];",Rt,"}",Ft.exit);function _r(ja){return ja.contextDep&&It||ja.propDep}function Ir(ja){return!_r(ja)}if(pt.needsContext&&Us(Ge,Rt,pt.context),pt.needsFramebuffer&&$s(Ge,Rt,pt.framebuffer),kl(Ge,Rt,pt.state,_r),pt.profile&&_r(pt.profile)&&As(Ge,Rt,pt,!1,!0),Bt)pt.useVAO?pt.drawVAO?_r(pt.drawVAO)?Rt(Ge.shared.vao,".setVAO(",pt.drawVAO.append(Ge,Rt),");"):Ft(Ge.shared.vao,".setVAO(",pt.drawVAO.append(Ge,Ft),");"):Ft(Ge.shared.vao,".setVAO(",Ge.shared.vao,".targetVAO);"):(Ft(Ge.shared.vao,".setVAO(null);"),Ol(Ge,Ft,pt,Bt.attributes,Ir),Ol(Ge,Rt,pt,Bt.attributes,_r)),Bl(Ge,Ft,pt,Bt.uniforms,Ir,!1),Bl(Ge,Rt,pt,Bt.uniforms,_r,!0),Ci(Ge,Ft,Rt,pt);else{var Xr=Ge.global.def("{}"),Ua=pt.shader.progVar.append(Ge,Rt),ka=Rt.def(Ua,".id"),xa=Rt.def(Xr,"[",ka,"]");Rt(Ge.shared.gl,".useProgram(",Ua,".program);","if(!",xa,"){",xa,"=",Xr,"[",ka,"]=",Ge.link(function(ja){return fo(j,Ge,pt,ja,2)}),"(",Ua,");}",xa,".call(this,a0[",Nt,"],",Nt,");")}}function $(Ge,Qe){var pt=Ge.proc("batch",2);Ge.batchId="0",Oo(Ge,pt);var Bt=!1,It=!0;Object.keys(Qe.context).forEach(function(Xr){Bt=Bt||Qe.context[Xr].propDep}),Bt||(Us(Ge,pt,Qe.context),It=!1);var Nt=Qe.framebuffer,Xt=!1;Nt?(Nt.propDep?Bt=Xt=!0:Nt.contextDep&&Bt&&(Xt=!0),Xt||$s(Ge,pt,Nt)):$s(Ge,pt,null),Qe.state.viewport&&Qe.state.viewport.propDep&&(Bt=!0);function qt(Xr){return Xr.contextDep&&Bt||Xr.propDep}mi(Ge,pt,Qe),kl(Ge,pt,Qe.state,function(Xr){return!qt(Xr)}),(!Qe.profile||!qt(Qe.profile))&&As(Ge,pt,Qe,!1,"a1"),Qe.contextDep=Bt,Qe.needsContext=It,Qe.needsFramebuffer=Xt;var Mt=Qe.shader.progVar;if(Mt.contextDep&&Bt||Mt.propDep)ce(Ge,pt,Qe,null);else{var Ft=Mt.append(Ge,pt);if(pt(Ge.shared.gl,".useProgram(",Ft,".program);"),Qe.shader.program)ce(Ge,pt,Qe,Qe.shader.program);else{pt(Ge.shared.vao,".setVAO(null);");var Rt=Ge.global.def("{}"),_r=pt.def(Ft,".id"),Ir=pt.def(Rt,"[",_r,"]");pt(Ge.cond(Ir).then(Ir,".call(this,a0,a1);").else(Ir,"=",Rt,"[",_r,"]=",Ge.link(function(Xr){return fo(ce,Ge,Qe,Xr,2)}),"(",Ft,");",Ir,".call(this,a0,a1);"))}}Object.keys(Qe.state).length>0&&pt(Ge.shared.current,".dirty=true;"),Ge.shared.vao&&pt(Ge.shared.vao,".setVAO(null);")}function ge(Ge,Qe){var pt=Ge.proc("scope",3);Ge.batchId="a2";var Bt=Ge.shared,It=Bt.current;if(Us(Ge,pt,Qe.context),Qe.framebuffer&&Qe.framebuffer.append(Ge,pt),Ba(Object.keys(Qe.state)).forEach(function(qt){var Mt=Qe.state[qt],Ft=Mt.append(Ge,pt);za(Ft)?Ft.forEach(function(Rt,_r){Yn(Rt)?pt.set(Ge.next[qt],"["+_r+"]",Rt):pt.set(Ge.next[qt],"["+_r+"]",Ge.link(Rt,{stable:!0}))}):ni(Mt)?pt.set(Bt.next,"."+qt,Ge.link(Ft,{stable:!0})):pt.set(Bt.next,"."+qt,Ft)}),As(Ge,pt,Qe,!0,!0),[Se,xt,ft,Dt,Re].forEach(function(qt){var Mt=Qe.draw[qt];if(Mt){var Ft=Mt.append(Ge,pt);Yn(Ft)?pt.set(Bt.draw,"."+qt,Ft):pt.set(Bt.draw,"."+qt,Ge.link(Ft),{stable:!0})}}),Object.keys(Qe.uniforms).forEach(function(qt){var Mt=Qe.uniforms[qt].append(Ge,pt);Array.isArray(Mt)&&(Mt="["+Mt.map(function(Ft){return Yn(Ft)?Ft:Ge.link(Ft,{stable:!0})})+"]"),pt.set(Bt.uniforms,"["+Ge.link(ir.id(qt),{stable:!0})+"]",Mt)}),Object.keys(Qe.attributes).forEach(function(qt){var Mt=Qe.attributes[qt].append(Ge,pt),Ft=Ge.scopeAttrib(qt);Object.keys(new ya).forEach(function(Rt){pt.set(Ft,"."+Rt,Mt[Rt])})}),Qe.scopeVAO){var Nt=Qe.scopeVAO.append(Ge,pt);Yn(Nt)?pt.set(Bt.vao,".targetVAO",Nt):pt.set(Bt.vao,".targetVAO",Ge.link(Nt,{stable:!0}))}function Xt(qt){var Mt=Qe.shader[qt];if(Mt){var Ft=Mt.append(Ge,pt);Yn(Ft)?pt.set(Bt.shader,"."+qt,Ft):pt.set(Bt.shader,"."+qt,Ge.link(Ft,{stable:!0}))}}Xt(ne),Xt(Te),Object.keys(Qe.state).length>0&&(pt(It,".dirty=true;"),pt.exit(It,".dirty=true;")),pt("a1(",Ge.shared.context,",a0,",Ge.batchId,");")}function Be(Ge){if(!(typeof Ge!="object"||za(Ge))){for(var Qe=Object.keys(Ge),pt=0;pt=0;--Ci){var fo=Yn[Ci];fo&&fo(xn,null,0)}ur.flush(),un&&un.update()}function Xi(){!bn&&Yn.length>0&&(bn=f.next(Mi))}function eo(){bn&&(f.cancel(Mi),bn=null)}function ts(Ci){Ci.preventDefault(),eo(),Pi.forEach(function(fo){fo()})}function to(Ci){ur.getError(),Va.restore(),pn.restore(),Ra.restore(),Xn.restore(),Oa.restore(),Ea.restore(),Fa.restore(),un&&un.restore(),Dn.procs.refresh(),Xi(),Vn.forEach(function(fo){fo()})}fn&&(fn.addEventListener(Ds,ts,!1),fn.addEventListener(Ts,to,!1));function il(){Yn.length=0,eo(),fn&&(fn.removeEventListener(Ds,ts),fn.removeEventListener(Ts,to)),pn.clear(),Ea.clear(),Oa.clear(),Fa.clear(),Xn.clear(),$a.clear(),Ra.clear(),un&&un.clear(),ei.forEach(function(Ci){Ci()})}function Xo(Ci){function fo(It){var Nt=h({},It);delete Nt.uniforms,delete Nt.attributes,delete Nt.context,delete Nt.vao,"stencil"in Nt&&Nt.stencil.op&&(Nt.stencil.opBack=Nt.stencil.opFront=Nt.stencil.op,delete Nt.stencil.op);function Xt(qt){if(qt in Nt){var Mt=Nt[qt];delete Nt[qt],Object.keys(Mt).forEach(function(Ft){Nt[qt+"."+Ft]=Mt[Ft]})}}return Xt("blend"),Xt("depth"),Xt("cull"),Xt("stencil"),Xt("polygonOffset"),Xt("scissor"),Xt("sample"),"vao"in It&&(Nt.vao=It.vao),Nt}function mo(It,Nt){var Xt={},qt={};return Object.keys(It).forEach(function(Mt){var Ft=It[Mt];if(c.isDynamic(Ft)){qt[Mt]=c.unbox(Ft,Mt);return}else if(Nt&&Array.isArray(Ft)){for(var Rt=0;Rt0)return st.call(this,pt(It|0),It|0)}else if(Array.isArray(It)){if(It.length)return st.call(this,It,It.length)}else return rt.call(this,It)}return h(Bt,{stats:ge,destroy:function(){Be.destroy()}})}var Qs=Ea.setFBO=Xo({framebuffer:c.define.call(null,Kl,"framebuffer")});function pl(Ci,fo){var mo=0;Dn.procs.poll();var ye=fo.color;ye&&(ur.clearColor(+ye[0]||0,+ye[1]||0,+ye[2]||0,+ye[3]||0),mo|=Ns),"depth"in fo&&(ur.clearDepth(+fo.depth),mo|=di),"stencil"in fo&&(ur.clearStencil(fo.stencil|0),mo|=Lo),ur.clear(mo)}function El(Ci){if("framebuffer"in Ci)if(Ci.framebuffer&&Ci.framebuffer_reglType==="framebufferCube")for(var fo=0;fo<6;++fo)Qs(h({framebuffer:Ci.framebuffer.faces[fo]},Ci),pl);else Qs(Ci,pl);else pl(null,Ci)}function zu(Ci){Yn.push(Ci);function fo(){var mo=pu(Yn,Ci);function ye(){var j=pu(Yn,ye);Yn[j]=Yn[Yn.length-1],Yn.length-=1,Yn.length<=0&&eo()}Yn[mo]=ye}return Xi(),{cancel:fo}}function Us(){var Ci=An.viewport,fo=An.scissor_box;Ci[0]=Ci[1]=fo[0]=fo[1]=0,xn.viewportWidth=xn.framebufferWidth=xn.drawingBufferWidth=Ci[2]=fo[2]=ur.drawingBufferWidth,xn.viewportHeight=xn.framebufferHeight=xn.drawingBufferHeight=Ci[3]=fo[3]=ur.drawingBufferHeight}function $s(){xn.tick+=1,xn.time=kl(),Us(),Dn.procs.poll()}function mi(){Xn.refresh(),Us(),Dn.procs.refresh(),un&&un.update()}function kl(){return(p()-wn)/1e3}mi();function Oo(Ci,fo){var mo;switch(Ci){case"frame":return zu(fo);case"lost":mo=Pi;break;case"restore":mo=Vn;break;case"destroy":mo=ei;break}return mo.push(fo),{cancel:function(){for(var ye=0;ye=0},read:da,destroy:il,_gl:ur,_refresh:mi,poll:function(){$s(),un&&un.update()},now:kl,stats:Kr,getCachedCode:As,preloadCachedCode:Ol});return ir.onDone(null,Bl),Bl}return ul})}}),zI=He({"node_modules/gl-util/context.js"(Y,H){var h=Gv();H.exports=function(i){if(i?typeof i=="string"&&(i={container:i}):i={},A(i)?i={container:i}:E(i)?i={container:i}:e(i)?i={gl:i}:i=h(i,{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),i.pixelRatio||(i.pixelRatio=window.pixelRatio||1),i.gl)return i.gl;if(i.canvas&&(i.container=i.canvas.parentNode),i.container){if(typeof i.container=="string"){var a=document.querySelector(i.container);if(!a)throw Error("Element "+i.container+" is not found");i.container=a}A(i.container)?(i.canvas=i.container,i.container=i.canvas.parentNode):i.canvas||(i.canvas=t(),i.container.appendChild(i.canvas),x(i))}else if(!i.canvas)if(typeof document<"u")i.container=document.body||document.documentElement,i.canvas=t(),i.container.appendChild(i.canvas),x(i);else throw Error("Not DOM environment. Use headless-gl.");return i.gl||["webgl","experimental-webgl","webgl-experimental"].some(function(o){try{i.gl=i.canvas.getContext(o,i.attrs)}catch{}return i.gl}),i.gl};function x(r){if(r.container)if(r.container==document.body)document.body.style.width||(r.canvas.width=r.width||r.pixelRatio*window.innerWidth),document.body.style.height||(r.canvas.height=r.height||r.pixelRatio*window.innerHeight);else{var i=r.container.getBoundingClientRect();r.canvas.width=r.width||i.right-i.left,r.canvas.height=r.height||i.bottom-i.top}}function A(r){return typeof r.getContext=="function"&&"width"in r&&"height"in r}function E(r){return typeof r.nodeName=="string"&&typeof r.appendChild=="function"&&typeof r.getBoundingClientRect=="function"}function e(r){return typeof r.drawArrays=="function"||typeof r.drawElements=="function"}function t(){var r=document.createElement("canvas");return r.style.position="absolute",r.style.top=0,r.style.left=0,r}}}),FI=He({"node_modules/font-atlas/index.js"(Y,H){var h=zT(),x=[32,126];H.exports=A;function A(E){E=E||{};var e=E.shape?E.shape:E.canvas?[E.canvas.width,E.canvas.height]:[512,512],t=E.canvas||document.createElement("canvas"),r=E.font,i=typeof E.step=="number"?[E.step,E.step]:E.step||[32,32],a=E.chars||x;if(r&&typeof r!="string"&&(r=h(r)),!Array.isArray(a))a=String(a).split("");else if(a.length===2&&typeof a[0]=="number"&&typeof a[1]=="number"){for(var o=[],n=a[0],s=0;n<=a[1];n++)o[s++]=String.fromCharCode(n);a=o}e=e.slice(),t.width=e[0],t.height=e[1];var c=t.getContext("2d");c.fillStyle="#000",c.fillRect(0,0,t.width,t.height),c.font=r,c.textAlign="center",c.textBaseline="middle",c.fillStyle="#fff";for(var f=i[0]/2,p=i[1]/2,n=0;ne[0]-i[0]/2&&(f=i[0]/2,p+=i[1]);return t}}}),FT=He({"node_modules/bit-twiddle/twiddle.js"(Y){"use restrict";var H=32;Y.INT_BITS=H,Y.INT_MAX=2147483647,Y.INT_MIN=-1<0)-(A<0)},Y.abs=function(A){var E=A>>H-1;return(A^E)-E},Y.min=function(A,E){return E^(A^E)&-(A65535)<<4,A>>>=E,e=(A>255)<<3,A>>>=e,E|=e,e=(A>15)<<2,A>>>=e,E|=e,e=(A>3)<<1,A>>>=e,E|=e,E|A>>1},Y.log10=function(A){return A>=1e9?9:A>=1e8?8:A>=1e7?7:A>=1e6?6:A>=1e5?5:A>=1e4?4:A>=1e3?3:A>=100?2:A>=10?1:0},Y.popCount=function(A){return A=A-(A>>>1&1431655765),A=(A&858993459)+(A>>>2&858993459),(A+(A>>>4)&252645135)*16843009>>>24};function h(A){var E=32;return A&=-A,A&&E--,A&65535&&(E-=16),A&16711935&&(E-=8),A&252645135&&(E-=4),A&858993459&&(E-=2),A&1431655765&&(E-=1),E}Y.countTrailingZeros=h,Y.nextPow2=function(A){return A+=A===0,--A,A|=A>>>1,A|=A>>>2,A|=A>>>4,A|=A>>>8,A|=A>>>16,A+1},Y.prevPow2=function(A){return A|=A>>>1,A|=A>>>2,A|=A>>>4,A|=A>>>8,A|=A>>>16,A-(A>>>1)},Y.parity=function(A){return A^=A>>>16,A^=A>>>8,A^=A>>>4,A&=15,27030>>>A&1};var x=new Array(256);(function(A){for(var E=0;E<256;++E){var e=E,t=E,r=7;for(e>>>=1;e;e>>>=1)t<<=1,t|=e&1,--r;A[E]=t<>>8&255]<<16|x[A>>>16&255]<<8|x[A>>>24&255]},Y.interleave2=function(A,E){return A&=65535,A=(A|A<<8)&16711935,A=(A|A<<4)&252645135,A=(A|A<<2)&858993459,A=(A|A<<1)&1431655765,E&=65535,E=(E|E<<8)&16711935,E=(E|E<<4)&252645135,E=(E|E<<2)&858993459,E=(E|E<<1)&1431655765,A|E<<1},Y.deinterleave2=function(A,E){return A=A>>>E&1431655765,A=(A|A>>>1)&858993459,A=(A|A>>>2)&252645135,A=(A|A>>>4)&16711935,A=(A|A>>>16)&65535,A<<16>>16},Y.interleave3=function(A,E,e){return A&=1023,A=(A|A<<16)&4278190335,A=(A|A<<8)&251719695,A=(A|A<<4)&3272356035,A=(A|A<<2)&1227133513,E&=1023,E=(E|E<<16)&4278190335,E=(E|E<<8)&251719695,E=(E|E<<4)&3272356035,E=(E|E<<2)&1227133513,A|=E<<1,e&=1023,e=(e|e<<16)&4278190335,e=(e|e<<8)&251719695,e=(e|e<<4)&3272356035,e=(e|e<<2)&1227133513,A|e<<2},Y.deinterleave3=function(A,E){return A=A>>>E&1227133513,A=(A|A>>>2)&3272356035,A=(A|A>>>4)&251719695,A=(A|A>>>8)&4278190335,A=(A|A>>>16)&1023,A<<22>>22},Y.nextCombination=function(A){var E=A|A-1;return E+1|(~E&-~E)-1>>>h(A)+1}}}),OI=He({"node_modules/dup/dup.js"(Y,H){function h(E,e,t){var r=E[t]|0;if(r<=0)return[];var i=new Array(r),a;if(t===E.length-1)for(a=0;a"u"&&(e=0),typeof E){case"number":if(E>0)return x(E|0,e);break;case"object":if(typeof E.length=="number")return h(E,e,0);break}return[]}H.exports=A}}),BI=He({"node_modules/typedarray-pool/pool.js"(Y){var H=FT(),h=OI(),x=Dp().Buffer;window.__TYPEDARRAY_POOL||(window.__TYPEDARRAY_POOL={UINT8:h([32,0]),UINT16:h([32,0]),UINT32:h([32,0]),BIGUINT64:h([32,0]),INT8:h([32,0]),INT16:h([32,0]),INT32:h([32,0]),BIGINT64:h([32,0]),FLOAT:h([32,0]),DOUBLE:h([32,0]),DATA:h([32,0]),UINT8C:h([32,0]),BUFFER:h([32,0])});var A=typeof Uint8ClampedArray<"u",E=typeof BigUint64Array<"u",e=typeof BigInt64Array<"u",t=window.__TYPEDARRAY_POOL;t.UINT8C||(t.UINT8C=h([32,0])),t.BIGUINT64||(t.BIGUINT64=h([32,0])),t.BIGINT64||(t.BIGINT64=h([32,0])),t.BUFFER||(t.BUFFER=h([32,0]));var r=t.DATA,i=t.BUFFER;Y.free=function(u){if(x.isBuffer(u))i[H.log2(u.length)].push(u);else{if(Object.prototype.toString.call(u)!=="[object ArrayBuffer]"&&(u=u.buffer),!u)return;var g=u.length||u.byteLength,y=H.log2(g)|0;r[y].push(u)}};function a(d){if(d){var u=d.length||d.byteLength,g=H.log2(u);r[g].push(d)}}function o(d){a(d.buffer)}Y.freeUint8=Y.freeUint16=Y.freeUint32=Y.freeBigUint64=Y.freeInt8=Y.freeInt16=Y.freeInt32=Y.freeBigInt64=Y.freeFloat32=Y.freeFloat=Y.freeFloat64=Y.freeDouble=Y.freeUint8Clamped=Y.freeDataView=o,Y.freeArrayBuffer=a,Y.freeBuffer=function(u){i[H.log2(u.length)].push(u)},Y.malloc=function(u,g){if(g===void 0||g==="arraybuffer")return n(u);switch(g){case"uint8":return s(u);case"uint16":return c(u);case"uint32":return f(u);case"int8":return p(u);case"int16":return v(u);case"int32":return T(u);case"float":case"float32":return l(u);case"double":case"float64":return m(u);case"uint8_clamped":return w(u);case"bigint64":return M(u);case"biguint64":return S(u);case"buffer":return b(u);case"data":case"dataview":return _(u);default:return null}return null};function n(u){var u=H.nextPow2(u),g=H.log2(u),y=r[g];return y.length>0?y.pop():new ArrayBuffer(u)}Y.mallocArrayBuffer=n;function s(d){return new Uint8Array(n(d),0,d)}Y.mallocUint8=s;function c(d){return new Uint16Array(n(2*d),0,d)}Y.mallocUint16=c;function f(d){return new Uint32Array(n(4*d),0,d)}Y.mallocUint32=f;function p(d){return new Int8Array(n(d),0,d)}Y.mallocInt8=p;function v(d){return new Int16Array(n(2*d),0,d)}Y.mallocInt16=v;function T(d){return new Int32Array(n(4*d),0,d)}Y.mallocInt32=T;function l(d){return new Float32Array(n(4*d),0,d)}Y.mallocFloat32=Y.mallocFloat=l;function m(d){return new Float64Array(n(8*d),0,d)}Y.mallocFloat64=Y.mallocDouble=m;function w(d){return A?new Uint8ClampedArray(n(d),0,d):s(d)}Y.mallocUint8Clamped=w;function S(d){return E?new BigUint64Array(n(8*d),0,d):null}Y.mallocBigUint64=S;function M(d){return e?new BigInt64Array(n(8*d),0,d):null}Y.mallocBigInt64=M;function _(d){return new DataView(n(d),0,d)}Y.mallocDataView=_;function b(d){d=H.nextPow2(d);var u=H.log2(d),g=i[u];return g.length>0?g.pop():new x(d)}Y.mallocBuffer=b,Y.clearCache=function(){for(var u=0;u<32;++u)t.UINT8[u].length=0,t.UINT16[u].length=0,t.UINT32[u].length=0,t.INT8[u].length=0,t.INT16[u].length=0,t.INT32[u].length=0,t.FLOAT[u].length=0,t.DOUBLE[u].length=0,t.BIGUINT64[u].length=0,t.BIGINT64[u].length=0,t.UINT8C[u].length=0,r[u].length=0,i[u].length=0}}}),NI=He({"node_modules/is-plain-obj/index.js"(Y,H){var h=Object.prototype.toString;H.exports=function(x){var A;return h.call(x)==="[object Object]"&&(A=Object.getPrototypeOf(x),A===null||A===Object.getPrototypeOf({}))}}}),OT=He({"node_modules/parse-unit/index.js"(Y,H){H.exports=function(x,A){A||(A=[0,""]),x=String(x);var E=parseFloat(x,10);return A[0]=E,A[1]=x.match(/[\d.\-\+]*\s*(.*)/)[1]||"",A}}}),UI=He({"node_modules/to-px/topx.js"(Y,H){var h=OT();H.exports=e;var x=96;function A(t,r){var i=h(getComputedStyle(t).getPropertyValue(r));return i[0]*e(i[1],t)}function E(t,r){var i=document.createElement("div");i.style["font-size"]="128"+t,r.appendChild(i);var a=A(i,"font-size")/128;return r.removeChild(i),a}function e(t,r){switch(r=r||document.body,t=(t||"px").trim().toLowerCase(),(r===window||r===document)&&(r=document.body),t){case"%":return r.clientHeight/100;case"ch":case"ex":return E(t,r);case"em":return A(r,"font-size");case"rem":return A(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 x;case"cm":return x/2.54;case"mm":return x/25.4;case"pt":return x/72;case"pc":return x/6}return 1}}}),jI=He({"node_modules/detect-kerning/index.js"(Y,H){H.exports=E;var h=E.canvas=document.createElement("canvas"),x=h.getContext("2d"),A=e([32,126]);E.createPairs=e,E.ascii=A;function E(t,r){Array.isArray(t)&&(t=t.join(", "));var i={},a,o=16,n=.05;r&&(r.length===2&&typeof r[0]=="number"?a=e(r):Array.isArray(r)?a=r:(r.o?a=e(r.o):r.pairs&&(a=r.pairs),r.fontSize&&(o=r.fontSize),r.threshold!=null&&(n=r.threshold))),a||(a=A),x.font=o+"px "+t;for(var s=0;so*n){var v=(p-f)/o;i[c]=v*1e3}}return i}function e(t){for(var r=[],i=t[0];i<=t[1];i++)for(var a=String.fromCharCode(i),o=t[0];o0;i-=4)if(r[i]!==0)return Math.floor((i-3)*.25/t)}}}),qI=He({"node_modules/gl-text/dist.js"(Y,H){var h=RI(),x=Gv(),A=DI(),E=zI(),e=ET(),t=ap(),r=FI(),i=BI(),a=vg(),o=NI(),n=OT(),s=UI(),c=jI(),f=yf(),p=VI(),v=Yp(),T=FT(),l=T.nextPow2,m=new e,w=!1;document.body&&(S=document.body.appendChild(document.createElement("div")),S.style.font="italic small-caps bold condensed 16px/2 cursive",getComputedStyle(S).fontStretch&&(w=!0),document.body.removeChild(S));var S,M=function(d){_(d)?(d={regl:d},this.gl=d.regl._gl):this.gl=E(d),this.shader=m.get(this.gl),this.shader?this.regl=this.shader.regl:this.regl=d.regl||A({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(),m.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(o(d)?d:{})};M.prototype.createShader=function(){var d=this.regl,u=d({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:d.prop("count"),offset:d.prop("offset"),attributes:{charOffset:{offset:4,stride:8,buffer:d.this("sizeBuffer")},width:{offset:0,stride:8,buffer:d.this("sizeBuffer")},char:d.this("charBuffer"),position:d.this("position")},uniforms:{atlasSize:function(y,R){return[R.atlas.width,R.atlas.height]},atlasDim:function(y,R){return[R.atlas.cols,R.atlas.rows]},atlas:function(y,R){return R.atlas.texture},charStep:function(y,R){return R.atlas.step},em:function(y,R){return R.atlas.em},color:d.prop("color"),opacity:d.prop("opacity"),viewport:d.this("viewportArray"),scale:d.this("scale"),align:d.prop("align"),baseline:d.prop("baseline"),translate:d.this("translate"),positionOffset:d.prop("positionOffset")},primitive:"points",viewport:d.this("viewport"),vert:` - precision highp float; - attribute float width, charOffset, char; - attribute vec2 position; - uniform float fontSize, charStep, em, align, baseline; - uniform vec4 viewport; - uniform vec4 color; - uniform vec2 atlasSize, atlasDim, scale, translate, positionOffset; - varying vec2 charCoord, charId; - varying float charWidth; - varying vec4 fontColor; - void main () { - vec2 offset = floor(em * (vec2(align + charOffset, baseline) - + vec2(positionOffset.x, -positionOffset.y))) - / (viewport.zw * scale.xy); - - vec2 position = (position + translate) * scale; - position += offset * scale; - - charCoord = position * viewport.zw + viewport.xy; - - gl_Position = vec4(position * 2. - 1., 0, 1); - - gl_PointSize = charStep; - - charId.x = mod(char, atlasDim.x); - charId.y = floor(char / atlasDim.x); - - charWidth = width * em; - - fontColor = color / 255.; - }`,frag:` - precision highp float; - uniform float fontSize, charStep, opacity; - uniform vec2 atlasSize; - uniform vec4 viewport; - uniform sampler2D atlas; - varying vec4 fontColor; - varying vec2 charCoord, charId; - varying float charWidth; - - float lightness(vec4 color) { - return color.r * 0.299 + color.g * 0.587 + color.b * 0.114; - } - - void main () { - vec2 uv = gl_FragCoord.xy - charCoord + charStep * .5; - float halfCharStep = floor(charStep * .5 + .5); - - // invert y and shift by 1px (FF expecially needs that) - uv.y = charStep - uv.y; - - // ignore points outside of character bounding box - float halfCharWidth = ceil(charWidth * .5); - if (floor(uv.x) > halfCharStep + halfCharWidth || - floor(uv.x) < halfCharStep - halfCharWidth) return; - - uv += charId * charStep; - uv = uv / atlasSize; - - vec4 color = fontColor; - vec4 mask = texture2D(atlas, uv); - - float maskY = lightness(mask); - // float colorY = lightness(color); - color.a *= maskY; - color.a *= opacity; - - // color.a += .1; - - // antialiasing, see yiq color space y-channel formula - // color.rgb += (1. - color.rgb) * (1. - mask.rgb); - - gl_FragColor = color; - }`}),g={};return{regl:d,draw:u,atlas:g}},M.prototype.update=function(d){var u=this;if(typeof d=="string")d={text:d};else if(!d)return;d=x(d,{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),d.opacity!=null&&(Array.isArray(d.opacity)?this.opacity=d.opacity.map(function(he){return parseFloat(he)}):this.opacity=parseFloat(d.opacity)),d.viewport!=null&&(this.viewport=a(d.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]),d.kerning!=null&&(this.kerning=d.kerning),d.offset!=null&&(typeof d.offset=="number"&&(d.offset=[d.offset,0]),this.positionOffset=v(d.offset)),d.direction&&(this.direction=d.direction),d.range&&(this.range=d.range,this.scale=[1/(d.range[2]-d.range[0]),1/(d.range[3]-d.range[1])],this.translate=[-d.range[0],-d.range[1]]),d.scale&&(this.scale=d.scale),d.translate&&(this.translate=d.translate),this.scale||(this.scale=[1/this.viewport.width,1/this.viewport.height]),this.translate||(this.translate=[0,0]),!this.font.length&&!d.font&&(d.font=M.baseFontSize+"px sans-serif");var g=!1,y=!1;if(d.font&&(Array.isArray(d.font)?d.font:[d.font]).forEach(function(he,De){if(typeof he=="string")try{he=h.parse(he)}catch{he=h.parse(M.baseFontSize+"px "+he)}else{var et=he.style,nt=he.weight,Ke=he.stretch,Et=he.variant;he=h.parse(h.stringify(he)),et&&(he.style=et),nt&&(he.weight=nt),Ke&&(he.stretch=Ke),Et&&(he.variant=Et)}var kt=h.stringify({size:M.baseFontSize,family:he.family,stretch:w?he.stretch:void 0,variant:he.variant,weight:he.weight,style:he.style}),Ut=n(he.size),Yt=Math.round(Ut[0]*s(Ut[1]));if(Yt!==u.fontSize[De]&&(y=!0,u.fontSize[De]=Yt),(!u.font[De]||kt!=u.font[De].baseString)&&(g=!0,u.font[De]=M.fonts[kt],!u.font[De])){var vr=he.family.join(", "),hr=[he.style];he.style!=he.variant&&hr.push(he.variant),he.variant!=he.weight&&hr.push(he.weight),w&&he.weight!=he.stretch&&hr.push(he.stretch),u.font[De]={baseString:kt,family:vr,weight:he.weight,stretch:he.stretch,style:he.style,variant:he.variant,width:{},kerning:{},metrics:p(vr,{origin:"top",fontSize:M.baseFontSize,fontStyle:hr.join(" ")})},M.fonts[kt]=u.font[De]}}),(g||y)&&this.font.forEach(function(he,De){var et=h.stringify({size:u.fontSize[De],family:he.family,stretch:w?he.stretch:void 0,variant:he.variant,weight:he.weight,style:he.style});if(u.fontAtlas[De]=u.shader.atlas[et],!u.fontAtlas[De]){var nt=he.metrics;u.shader.atlas[et]=u.fontAtlas[De]={fontString:et,step:Math.ceil(u.fontSize[De]*nt.bottom*.5)*2,em:u.fontSize[De],cols:0,rows:0,height:0,width:0,chars:[],ids:{},texture:u.regl.texture()}}d.text==null&&(d.text=u.text)}),typeof d.text=="string"&&d.position&&d.position.length>2){for(var R=Array(d.position.length*.5),I=0;I2){for(var B=!d.position[0].length,O=i.mallocFloat(this.count*2),P=0,N=0;P1?u.align[De]:u.align[0]:u.align;if(typeof et=="number")return et;switch(et){case"right":case"end":return-he;case"center":case"centre":case"middle":return-he*.5}return 0})),this.baseline==null&&d.baseline==null&&(d.baseline=0),d.baseline!=null&&(this.baseline=d.baseline,Array.isArray(this.baseline)||(this.baseline=[this.baseline]),this.baselineOffset=this.baseline.map(function(he,De){var et=(u.font[De]||u.font[0]).metrics,nt=0;return nt+=et.bottom*.5,typeof he=="number"?nt+=he-et.baseline:nt+=-et[he],nt*=-1,nt})),d.color!=null)if(d.color||(d.color="transparent"),typeof d.color=="string"||!isNaN(d.color))this.color=t(d.color,"uint8");else{var Pe;if(typeof d.color[0]=="number"&&d.color.length>this.counts.length){var Ce=d.color.length;Pe=i.mallocUint8(Ce);for(var je=(d.color.subarray||d.color.slice).bind(d.color),at=0;at4||this.baselineOffset.length>1||this.align&&this.align.length>1||this.fontAtlas.length>1||this.positionOffset.length>2;if(Ze){var Me=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(Me);for(var we=0;we1?this.counts[we]:this.counts[0],offset:this.textOffsets.length>1?this.textOffsets[we]:this.textOffsets[0],color:this.color?this.color.length<=4?this.color:this.color.subarray(we*4,we*4+4):[0,0,0,255],opacity:Array.isArray(this.opacity)?this.opacity[we]:this.opacity,baseline:this.baselineOffset[we]!=null?this.baselineOffset[we]:this.baselineOffset[0],align:this.align?this.alignOffset[we]!=null?this.alignOffset[we]:this.alignOffset[0]:0,atlas:this.fontAtlas[we]||this.fontAtlas[0],positionOffset:this.positionOffset.length>2?this.positionOffset.subarray(we*2,we*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=[]}},M.prototype.destroy=function(){},M.prototype.kerning=!0,M.prototype.position={constant:new Float32Array(2)},M.prototype.translate=null,M.prototype.scale=null,M.prototype.font=null,M.prototype.text="",M.prototype.positionOffset=[0,0],M.prototype.opacity=1,M.prototype.color=new Uint8Array([0,0,0,255]),M.prototype.alignOffset=[0,0],M.maxAtlasSize=1024,M.atlasCanvas=document.createElement("canvas"),M.atlasContext=M.atlasCanvas.getContext("2d",{alpha:!1}),M.baseFontSize=64,M.fonts={};function _(b){return typeof b=="function"&&b._gl&&b.prop&&b.texture&&b.buffer}H.exports=M}}),GI=He({"node_modules/@plotly/regl/dist/regl.unchecked.js"(Y,H){(function(h,x){typeof Y=="object"&&typeof H<"u"?H.exports=x():h.createREGL=x()})(Y,function(){var h=function(lt,ir){for(var ur=Object.keys(ir),fa=0;fa1&&ir===ur&&(ir==='"'||ir==="'"))return['"'+r(lt.substr(1,lt.length-2))+'"'];var fa=/\[(false|true|null|\d+|'[^']*'|"[^"]*")\]/.exec(lt);if(fa)return i(lt.substr(0,fa.index)).concat(i(fa[1])).concat(i(lt.substr(fa.index+fa[0].length)));var Va=lt.split(".");if(Va.length===1)return['"'+r(lt)+'"'];for(var Jr=[],Kr=0;Kr"u"?1:window.devicePixelRatio,wn=!1,Jn={},jn=function(Ur){},xn=function(){};if(typeof ir=="string"?ur=document.querySelector(ir):typeof ir=="object"&&(m(ir)?ur=ir:w(ir)?(Jr=ir,Va=Jr.canvas):("gl"in ir?Jr=ir.gl:"canvas"in ir?Va=M(ir.canvas):"container"in ir&&(fa=M(ir.container)),"attributes"in ir&&(Kr=ir.attributes),"extensions"in ir&&(cn=S(ir.extensions)),"optionalExtensions"in ir&&(ln=S(ir.optionalExtensions)),"onDone"in ir&&(jn=ir.onDone),"profile"in ir&&(wn=!!ir.profile),"pixelRatio"in ir&&(un=+ir.pixelRatio),"cachedCode"in ir&&(Jn=ir.cachedCode))),ur&&(ur.nodeName.toLowerCase()==="canvas"?Va=ur:fa=ur),!Jr){if(!Va){var Za=T(fa||document.body,jn,un);if(!Za)return null;Va=Za.canvas,xn=Za.onDestroy}Kr.premultipliedAlpha===void 0&&(Kr.premultipliedAlpha=!0),Jr=l(Va,Kr)}return Jr?{gl:Jr,canvas:Va,container:fa,extensions:cn,optionalExtensions:ln,pixelRatio:un,profile:wn,cachedCode:Jn,onDone:jn,onDestroy:xn}:(xn(),jn("webgl not supported, try upgrading your browser or graphics drivers http://get.webgl.org"),null)}function b(lt,ir){var ur={};function fa(Kr){var cn=Kr.toLowerCase(),ln;try{ln=ur[cn]=lt.getExtension(cn)}catch{}return!!ln}for(var Va=0;Va65535)<<4,lt>>>=ir,ur=(lt>255)<<3,lt>>>=ur,ir|=ur,ur=(lt>15)<<2,lt>>>=ur,ir|=ur,ur=(lt>3)<<1,lt>>>=ur,ir|=ur,ir|lt>>1}function P(){var lt=d(8,function(){return[]});function ir(Jr){var Kr=B(Jr),cn=lt[O(Kr)>>2];return cn.length>0?cn.pop():new ArrayBuffer(Kr)}function ur(Jr){lt[O(Jr.byteLength)>>2].push(Jr)}function fa(Jr,Kr){var cn=null;switch(Jr){case u:cn=new Int8Array(ir(Kr),0,Kr);break;case g:cn=new Uint8Array(ir(Kr),0,Kr);break;case y:cn=new Int16Array(ir(2*Kr),0,Kr);break;case R:cn=new Uint16Array(ir(2*Kr),0,Kr);break;case I:cn=new Int32Array(ir(4*Kr),0,Kr);break;case z:cn=new Uint32Array(ir(4*Kr),0,Kr);break;case F:cn=new Float32Array(ir(4*Kr),0,Kr);break;default:return null}return cn.length!==Kr?cn.subarray(0,Kr):cn}function Va(Jr){ur(Jr.buffer)}return{alloc:ir,free:ur,allocType:fa,freeType:Va}}var N=P();N.zero=P();var U=3408,X=3410,te=3411,ue=3412,ie=3413,le=3414,q=3415,J=33901,ee=33902,Z=3379,se=3386,Q=34921,V=36347,re=36348,ae=35661,fe=35660,xe=34930,Ae=36349,Pe=34076,Ce=34024,je=7936,at=7937,tt=7938,Je=35724,Ze=34047,Me=36063,we=34852,he=3553,De=34067,et=34069,nt=33984,Ke=6408,Et=5126,kt=5121,Ut=36160,Yt=36053,vr=36064,hr=16384,Rr=function(lt,ir){var ur=1;ir.ext_texture_filter_anisotropic&&(ur=lt.getParameter(Ze));var fa=1,Va=1;ir.webgl_draw_buffers&&(fa=lt.getParameter(we),Va=lt.getParameter(Me));var Jr=!!ir.oes_texture_float;if(Jr){var Kr=lt.createTexture();lt.bindTexture(he,Kr),lt.texImage2D(he,0,Ke,1,1,0,Ke,Et,null);var cn=lt.createFramebuffer();if(lt.bindFramebuffer(Ut,cn),lt.framebufferTexture2D(Ut,vr,he,Kr,0),lt.bindTexture(he,null),lt.checkFramebufferStatus(Ut)!==Yt)Jr=!1;else{lt.viewport(0,0,1,1),lt.clearColor(1,0,0,1),lt.clear(hr);var ln=N.allocType(Et,4);lt.readPixels(0,0,1,1,Ke,Et,ln),lt.getError()?Jr=!1:(lt.deleteFramebuffer(cn),lt.deleteTexture(Kr),Jr=ln[0]===1),N.freeType(ln)}}var un=typeof navigator<"u"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion)||/Edge/.test(navigator.userAgent)),wn=!0;if(!un){var Jn=lt.createTexture(),jn=N.allocType(kt,36);lt.activeTexture(nt),lt.bindTexture(De,Jn),lt.texImage2D(et,0,Ke,3,3,0,Ke,kt,jn),N.freeType(jn),lt.bindTexture(De,null),lt.deleteTexture(Jn),wn=!lt.getError()}return{colorBits:[lt.getParameter(X),lt.getParameter(te),lt.getParameter(ue),lt.getParameter(ie)],depthBits:lt.getParameter(le),stencilBits:lt.getParameter(q),subpixelBits:lt.getParameter(U),extensions:Object.keys(ir).filter(function(xn){return!!ir[xn]}),maxAnisotropic:ur,maxDrawbuffers:fa,maxColorAttachments:Va,pointSizeDims:lt.getParameter(J),lineWidthDims:lt.getParameter(ee),maxViewportDims:lt.getParameter(se),maxCombinedTextureUnits:lt.getParameter(ae),maxCubeMapSize:lt.getParameter(Pe),maxRenderbufferSize:lt.getParameter(Ce),maxTextureUnits:lt.getParameter(xe),maxTextureSize:lt.getParameter(Z),maxAttributes:lt.getParameter(Q),maxVertexUniforms:lt.getParameter(V),maxVertexTextureUnits:lt.getParameter(fe),maxVaryingVectors:lt.getParameter(re),maxFragmentUniforms:lt.getParameter(Ae),glsl:lt.getParameter(Je),renderer:lt.getParameter(at),vendor:lt.getParameter(je),version:lt.getParameter(tt),readFloat:Jr,npotTextureCube:wn}},dr=function(lt){return lt instanceof Uint8Array||lt instanceof Uint16Array||lt instanceof Uint32Array||lt instanceof Int8Array||lt instanceof Int16Array||lt instanceof Int32Array||lt instanceof Float32Array||lt instanceof Float64Array||lt instanceof Uint8ClampedArray};function wr(lt){return!!lt&&typeof lt=="object"&&Array.isArray(lt.shape)&&Array.isArray(lt.stride)&&typeof lt.offset=="number"&<.shape.length===lt.stride.length&&(Array.isArray(lt.data)||dr(lt.data))}var yt=function(lt){return Object.keys(lt).map(function(ir){return lt[ir]})},Fe={shape:Ie,flatten:be};function We(lt,ir,ur){for(var fa=0;fa0){var Xn;if(Array.isArray(ya[0])){pn=ba(ya);for(var Oa=1,Ea=1;Ea0){if(typeof Oa[0]=="number"){var An=N.allocType(Fa.dtype,Oa.length);Tr(An,Oa),pn(An,Dn),N.freeType(An)}else if(Array.isArray(Oa[0])||dr(Oa[0])){da=ba(Oa);var fn=Ga(Oa,da,Fa.dtype);pn(fn,Dn),N.freeType(fn)}}}else if(wr(Oa)){da=Oa.shape;var Yn=Oa.stride,Pi=0,Vn=0,ei=0,bn=0;da.length===1?(Pi=da[0],Vn=1,ei=Yn[0],bn=0):da.length===2&&(Pi=da[0],Vn=da[1],ei=Yn[0],bn=Yn[1]);var Mi=Array.isArray(Oa.data)?Fa.dtype:Ht(Oa.data),Xi=N.allocType(Mi,Pi*Vn);qr(Xi,Oa.data,Pi,Vn,ei,bn,Oa.offset),pn(Xi,Dn),N.freeType(Xi)}return Bn}return Ra||Bn(Ur),Bn._reglType="buffer",Bn._buffer=Fa,Bn.subdata=Xn,ur.profile&&(Bn.stats=Fa.stats),Bn.destroy=function(){jn(Fa)},Bn}function Za(){yt(Jr).forEach(function(Ur){Ur.buffer=lt.createBuffer(),lt.bindBuffer(Ur.type,Ur.buffer),lt.bufferData(Ur.type,Ur.persistentData||Ur.byteLength,Ur.usage)})}return ur.profile&&(ir.getTotalBufferSize=function(){var Ur=0;return Object.keys(Jr).forEach(function(ya){Ur+=Jr[ya].stats.size}),Ur}),{create:xn,createStream:ln,destroyStream:un,clear:function(){yt(Jr).forEach(jn),cn.forEach(jn)},getBuffer:function(Ur){return Ur&&Ur._buffer instanceof Kr?Ur._buffer:null},restore:Za,_initBuffer:Jn}}var Gr=0,wa=0,Da=1,Ya=1,Ka=4,an=4,mt={points:Gr,point:wa,lines:Da,line:Ya,triangles:Ka,triangle:an,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},ot=0,Lr=1,Er=4,Mr=5120,br=5121,Or=5122,jr=5123,Dr=5124,Hr=5125,na=34963,ta=35040,At=35044;function or(lt,ir,ur,fa){var Va={},Jr=0,Kr={uint8:br,uint16:jr};ir.oes_element_index_uint&&(Kr.uint32=Hr);function cn(Za){this.id=Jr++,Va[this.id]=this,this.buffer=Za,this.primType=Er,this.vertCount=0,this.type=0}cn.prototype.bind=function(){this.buffer.bind()};var ln=[];function un(Za){var Ur=ln.pop();return Ur||(Ur=new cn(ur.create(null,na,!0,!1)._buffer)),Jn(Ur,Za,ta,-1,-1,0,0),Ur}function wn(Za){ln.push(Za)}function Jn(Za,Ur,ya,Ra,$a,Fa,Bn){Za.buffer.bind();var pn;if(Ur){var Xn=Bn;!Bn&&(!dr(Ur)||wr(Ur)&&!dr(Ur.data))&&(Xn=ir.oes_element_index_uint?Hr:jr),ur._initBuffer(Za.buffer,Ur,ya,Xn,3)}else lt.bufferData(na,Fa,ya),Za.buffer.dtype=pn||br,Za.buffer.usage=ya,Za.buffer.dimension=3,Za.buffer.byteLength=Fa;if(pn=Bn,!Bn){switch(Za.buffer.dtype){case br:case Mr:pn=br;break;case jr:case Or:pn=jr;break;case Hr:case Dr:pn=Hr;break}Za.buffer.dtype=pn}Za.type=pn;var Oa=$a;Oa<0&&(Oa=Za.buffer.byteLength,pn===jr?Oa>>=1:pn===Hr&&(Oa>>=2)),Za.vertCount=Oa;var Ea=Ra;if(Ra<0){Ea=Er;var Dn=Za.buffer.dimension;Dn===1&&(Ea=ot),Dn===2&&(Ea=Lr),Dn===3&&(Ea=Er)}Za.primType=Ea}function jn(Za){fa.elementsCount--,delete Va[Za.id],Za.buffer.destroy(),Za.buffer=null}function xn(Za,Ur){var ya=ur.create(null,na,!0),Ra=new cn(ya._buffer);fa.elementsCount++;function $a(Fa){if(!Fa)ya(),Ra.primType=Er,Ra.vertCount=0,Ra.type=br;else if(typeof Fa=="number")ya(Fa),Ra.primType=Er,Ra.vertCount=Fa|0,Ra.type=br;else{var Bn=null,pn=At,Xn=-1,Oa=-1,Ea=0,Dn=0;Array.isArray(Fa)||dr(Fa)||wr(Fa)?Bn=Fa:("data"in Fa&&(Bn=Fa.data),"usage"in Fa&&(pn=Aa[Fa.usage]),"primitive"in Fa&&(Xn=mt[Fa.primitive]),"count"in Fa&&(Oa=Fa.count|0),"type"in Fa&&(Dn=Kr[Fa.type]),"length"in Fa?Ea=Fa.length|0:(Ea=Oa,Dn===jr||Dn===Or?Ea*=2:(Dn===Hr||Dn===Dr)&&(Ea*=4))),Jn(Ra,Bn,pn,Xn,Oa,Ea,Dn)}return $a}return $a(Za),$a._reglType="elements",$a._elements=Ra,$a.subdata=function(Fa,Bn){return ya.subdata(Fa,Bn),$a},$a.destroy=function(){jn(Ra)},$a}return{create:xn,createStream:un,destroyStream:wn,getElements:function(Za){return typeof Za=="function"&&Za._elements instanceof cn?Za._elements:null},clear:function(){yt(Va).forEach(jn)}}}var Ar=new Float32Array(1),oa=new Uint32Array(Ar.buffer),ga=5123;function Sa(lt){for(var ir=N.allocType(ga,lt.length),ur=0;ur>>31<<15,Jr=(fa<<1>>>24)-127,Kr=fa>>13&1023;if(Jr<-24)ir[ur]=Va;else if(Jr<-14){var cn=-14-Jr;ir[ur]=Va+(Kr+1024>>cn)}else Jr>15?ir[ur]=Va+31744:ir[ur]=Va+(Jr+15<<10)+Kr}return ir}function za(lt){return Array.isArray(lt)||dr(lt)}var ra=34467,Ta=3553,Fn=34067,mn=34069,Kn=6408,ui=6406,pi=6407,vi=6409,Li=6410,Ni=32854,ci=32855,bi=36194,ho=32819,Bo=32820,gs=33635,ro=34042,Ei=6402,Ri=34041,xo=35904,So=35906,bo=36193,Ui=33776,no=33777,cs=33778,ks=33779,ms=35986,Mo=35987,kn=34798,fi=35840,Fs=35841,Ss=35842,Gi=35843,js=36196,No=5121,es=5123,Vs=5125,hi=5126,so=10242,Oi=10243,Zo=10497,qs=33071,Di=33648,ys=10240,wl=10241,Xs=9728,Vl=9729,rl=9984,Cs=9985,ql=9986,ju=9987,Vu=33170,yu=4352,jc=4353,ff=4354,_s=34046,Cu=3317,Vc=37440,Pl=37441,Tl=37443,Il=37444,_u=33984,Os=[rl,ql,Cs,ju],Al=[0,vi,Li,pi,Kn],Uo={};Uo[vi]=Uo[ui]=Uo[Ei]=1,Uo[Ri]=Uo[Li]=2,Uo[pi]=Uo[xo]=3,Uo[Kn]=Uo[So]=4;function bs(lt){return"[object "+lt+"]"}var qu=bs("HTMLCanvasElement"),Zl=bs("OffscreenCanvas"),Ju=bs("CanvasRenderingContext2D"),Zs=bs("ImageBitmap"),_f=bs("HTMLImageElement"),zo=bs("HTMLVideoElement"),Rf=Object.keys(Xe).concat([qu,Zl,Ju,Zs,_f,zo]),is=[];is[No]=1,is[hi]=4,is[bo]=2,is[es]=2,is[Vs]=4;var Bi=[];Bi[Ni]=2,Bi[ci]=2,Bi[bi]=2,Bi[Ri]=4,Bi[Ui]=.5,Bi[no]=.5,Bi[cs]=1,Bi[ks]=1,Bi[ms]=.5,Bi[Mo]=1,Bi[kn]=1,Bi[fi]=.5,Bi[Fs]=.25,Bi[Ss]=.5,Bi[Gi]=.25,Bi[js]=.5;function hc(lt){return Array.isArray(lt)&&(lt.length===0||typeof lt[0]=="number")}function xu(lt){if(!Array.isArray(lt))return!1;var ir=lt.length;return!(ir===0||!za(lt[0]))}function dl(lt){return Object.prototype.toString.call(lt)}function qc(lt){return dl(lt)===qu}function Qu(lt){return dl(lt)===Zl}function wc(lt){return dl(lt)===Ju}function Sl(lt){return dl(lt)===Zs}function hf(lt){return dl(lt)===_f}function Yc(lt){return dl(lt)===zo}function Tc(lt){if(!lt)return!1;var ir=dl(lt);return Rf.indexOf(ir)>=0?!0:hc(lt)||xu(lt)||wr(lt)}function ec(lt){return Xe[Object.prototype.toString.call(lt)]|0}function Gc(lt,ir){var ur=ir.length;switch(lt.type){case No:case es:case Vs:case hi:var fa=N.allocType(lt.type,ur);fa.set(ir),lt.data=fa;break;case bo:lt.data=Sa(ir);break}}function Hc(lt,ir){return N.allocType(lt.type===bo?hi:lt.type,ir)}function bu(lt,ir){lt.type===bo?(lt.data=Sa(ir),N.freeType(ir)):lt.data=ir}function $c(lt,ir,ur,fa,Va,Jr){for(var Kr=lt.width,cn=lt.height,ln=lt.channels,un=Kr*cn*ln,wn=Hc(lt,un),Jn=0,jn=0;jn=1;)cn+=Kr*ln*ln,ln/=2;return cn}else return Kr*ur*fa}function Lu(lt,ir,ur,fa,Va,Jr,Kr){var cn={"don't care":yu,"dont care":yu,nice:ff,fast:jc},ln={repeat:Zo,clamp:qs,mirror:Di},un={nearest:Xs,linear:Vl},wn=h({mipmap:ju,"nearest mipmap nearest":rl,"linear mipmap nearest":Cs,"nearest mipmap linear":ql,"linear mipmap linear":ju},un),Jn={none:0,browser:Il},jn={uint8:No,rgba4:ho,rgb565:gs,"rgb5 a1":Bo},xn={alpha:ui,luminance:vi,"luminance alpha":Li,rgb:pi,rgba:Kn,rgba4:Ni,"rgb5 a1":ci,rgb565:bi},Za={};ir.ext_srgb&&(xn.srgb=xo,xn.srgba=So),ir.oes_texture_float&&(jn.float32=jn.float=hi),ir.oes_texture_half_float&&(jn.float16=jn["half float"]=bo),ir.webgl_depth_texture&&(h(xn,{depth:Ei,"depth stencil":Ri}),h(jn,{uint16:es,uint32:Vs,"depth stencil":ro})),ir.webgl_compressed_texture_s3tc&&h(Za,{"rgb s3tc dxt1":Ui,"rgba s3tc dxt1":no,"rgba s3tc dxt3":cs,"rgba s3tc dxt5":ks}),ir.webgl_compressed_texture_atc&&h(Za,{"rgb atc":ms,"rgba atc explicit alpha":Mo,"rgba atc interpolated alpha":kn}),ir.webgl_compressed_texture_pvrtc&&h(Za,{"rgb pvrtc 4bppv1":fi,"rgb pvrtc 2bppv1":Fs,"rgba pvrtc 4bppv1":Ss,"rgba pvrtc 2bppv1":Gi}),ir.webgl_compressed_texture_etc1&&(Za["rgb etc1"]=js);var Ur=Array.prototype.slice.call(lt.getParameter(ra));Object.keys(Za).forEach(function(j){var ce=Za[j];Ur.indexOf(ce)>=0&&(xn[j]=ce)});var ya=Object.keys(xn);ur.textureFormats=ya;var Ra=[];Object.keys(xn).forEach(function(j){var ce=xn[j];Ra[ce]=j});var $a=[];Object.keys(jn).forEach(function(j){var ce=jn[j];$a[ce]=j});var Fa=[];Object.keys(un).forEach(function(j){var ce=un[j];Fa[ce]=j});var Bn=[];Object.keys(wn).forEach(function(j){var ce=wn[j];Bn[ce]=j});var pn=[];Object.keys(ln).forEach(function(j){var ce=ln[j];pn[ce]=j});var Xn=ya.reduce(function(j,ce){var $=xn[ce];return $===vi||$===ui||$===vi||$===Li||$===Ei||$===Ri||ir.ext_srgb&&($===xo||$===So)?j[$]=$:$===ci||ce.indexOf("rgba")>=0?j[$]=Kn:j[$]=pi,j},{});function Oa(){this.internalformat=Kn,this.format=Kn,this.type=No,this.compressed=!1,this.premultiplyAlpha=!1,this.flipY=!1,this.unpackAlignment=1,this.colorSpace=Il,this.width=0,this.height=0,this.channels=0}function Ea(j,ce){j.internalformat=ce.internalformat,j.format=ce.format,j.type=ce.type,j.compressed=ce.compressed,j.premultiplyAlpha=ce.premultiplyAlpha,j.flipY=ce.flipY,j.unpackAlignment=ce.unpackAlignment,j.colorSpace=ce.colorSpace,j.width=ce.width,j.height=ce.height,j.channels=ce.channels}function Dn(j,ce){if(!(typeof ce!="object"||!ce)){if("premultiplyAlpha"in ce&&(j.premultiplyAlpha=ce.premultiplyAlpha),"flipY"in ce&&(j.flipY=ce.flipY),"alignment"in ce&&(j.unpackAlignment=ce.alignment),"colorSpace"in ce&&(j.colorSpace=Jn[ce.colorSpace]),"type"in ce){var $=ce.type;j.type=jn[$]}var ge=j.width,Be=j.height,rt=j.channels,st=!1;"shape"in ce?(ge=ce.shape[0],Be=ce.shape[1],ce.shape.length===3&&(rt=ce.shape[2],st=!0)):("radius"in ce&&(ge=Be=ce.radius),"width"in ce&&(ge=ce.width),"height"in ce&&(Be=ce.height),"channels"in ce&&(rt=ce.channels,st=!0)),j.width=ge|0,j.height=Be|0,j.channels=rt|0;var Ge=!1;if("format"in ce){var Qe=ce.format,pt=j.internalformat=xn[Qe];j.format=Xn[pt],Qe in jn&&("type"in ce||(j.type=jn[Qe])),Qe in Za&&(j.compressed=!0),Ge=!0}!st&&Ge?j.channels=Uo[j.format]:st&&!Ge&&j.channels!==Al[j.format]&&(j.format=j.internalformat=Al[j.channels])}}function da(j){lt.pixelStorei(Vc,j.flipY),lt.pixelStorei(Pl,j.premultiplyAlpha),lt.pixelStorei(Tl,j.colorSpace),lt.pixelStorei(Cu,j.unpackAlignment)}function An(){Oa.call(this),this.xOffset=0,this.yOffset=0,this.data=null,this.needsFree=!1,this.element=null,this.needsCopy=!1}function fn(j,ce){var $=null;if(Tc(ce)?$=ce:ce&&(Dn(j,ce),"x"in ce&&(j.xOffset=ce.x|0),"y"in ce&&(j.yOffset=ce.y|0),Tc(ce.data)&&($=ce.data)),ce.copy){var ge=Va.viewportWidth,Be=Va.viewportHeight;j.width=j.width||ge-j.xOffset,j.height=j.height||Be-j.yOffset,j.needsCopy=!0}else if(!$)j.width=j.width||1,j.height=j.height||1,j.channels=j.channels||4;else if(dr($))j.channels=j.channels||4,j.data=$,!("type"in ce)&&j.type===No&&(j.type=ec($));else if(hc($))j.channels=j.channels||4,Gc(j,$),j.alignment=1,j.needsFree=!0;else if(wr($)){var rt=$.data;!Array.isArray(rt)&&j.type===No&&(j.type=ec(rt));var st=$.shape,Ge=$.stride,Qe,pt,Bt,It,Nt,Xt;st.length===3?(Bt=st[2],Xt=Ge[2]):(Bt=1,Xt=1),Qe=st[0],pt=st[1],It=Ge[0],Nt=Ge[1],j.alignment=1,j.width=Qe,j.height=pt,j.channels=Bt,j.format=j.internalformat=Al[Bt],j.needsFree=!0,$c(j,rt,It,Nt,Xt,$.offset)}else if(qc($)||Qu($)||wc($))qc($)||Qu($)?j.element=$:j.element=$.canvas,j.width=j.element.width,j.height=j.element.height,j.channels=4;else if(Sl($))j.element=$,j.width=$.width,j.height=$.height,j.channels=4;else if(hf($))j.element=$,j.width=$.naturalWidth,j.height=$.naturalHeight,j.channels=4;else if(Yc($))j.element=$,j.width=$.videoWidth,j.height=$.videoHeight,j.channels=4;else if(xu($)){var qt=j.width||$[0].length,Mt=j.height||$.length,Ft=j.channels;za($[0][0])?Ft=Ft||$[0][0].length:Ft=Ft||1;for(var Rt=Fe.shape($),_r=1,Ir=0;Ir>=Be,$.height>>=Be,fn($,ge[Be]),j.mipmask|=1<=0&&!("faces"in ce)&&(j.genMipmaps=!0)}if("mag"in ce){var ge=ce.mag;j.magFilter=un[ge]}var Be=j.wrapS,rt=j.wrapT;if("wrap"in ce){var st=ce.wrap;typeof st=="string"?Be=rt=ln[st]:Array.isArray(st)&&(Be=ln[st[0]],rt=ln[st[1]])}else{if("wrapS"in ce){var Ge=ce.wrapS;Be=ln[Ge]}if("wrapT"in ce){var Qe=ce.wrapT;rt=ln[Qe]}}if(j.wrapS=Be,j.wrapT=rt,"anisotropic"in ce&&(ce.anisotropic,j.anisotropic=ce.anisotropic),"mipmap"in ce){var pt=!1;switch(typeof ce.mipmap){case"string":j.mipmapHint=cn[ce.mipmap],j.genMipmaps=!0,pt=!0;break;case"boolean":pt=j.genMipmaps=ce.mipmap;break;case"object":j.genMipmaps=!1,pt=!0;break}pt&&!("min"in ce)&&(j.minFilter=rl)}}function El(j,ce){lt.texParameteri(ce,wl,j.minFilter),lt.texParameteri(ce,ys,j.magFilter),lt.texParameteri(ce,so,j.wrapS),lt.texParameteri(ce,Oi,j.wrapT),ir.ext_texture_filter_anisotropic&<.texParameteri(ce,_s,j.anisotropic),j.genMipmaps&&(lt.hint(Vu,j.mipmapHint),lt.generateMipmap(ce))}var zu=0,Us={},$s=ur.maxTextureUnits,mi=Array($s).map(function(){return null});function kl(j){Oa.call(this),this.mipmask=0,this.internalformat=Kn,this.id=zu++,this.refCount=1,this.target=j,this.texture=lt.createTexture(),this.unit=-1,this.bindCount=0,this.texInfo=new Qs,Kr.profile&&(this.stats={size:0})}function Oo(j){lt.activeTexture(_u),lt.bindTexture(j.target,j.texture)}function As(){var j=mi[0];j?lt.bindTexture(j.target,j.texture):lt.bindTexture(Ta,null)}function Ol(j){var ce=j.texture,$=j.unit,ge=j.target;$>=0&&(lt.activeTexture(_u+$),lt.bindTexture(ge,null),mi[$]=null),lt.deleteTexture(ce),j.texture=null,j.params=null,j.pixels=null,j.refCount=0,delete Us[j.id],Jr.textureCount--}h(kl.prototype,{bind:function(){var j=this;j.bindCount+=1;var ce=j.unit;if(ce<0){for(var $=0;$<$s;++$){var ge=mi[$];if(ge){if(ge.bindCount>0)continue;ge.unit=-1}mi[$]=j,ce=$;break}Kr.profile&&Jr.maxTextureUnits>Nt)-Bt,Xt.height=Xt.height||($.height>>Nt)-It,Oo($),Pi(Xt,Ta,Bt,It,Nt),As(),bn(Xt),ge}function rt(st,Ge){var Qe=st|0,pt=Ge|0||Qe;if(Qe===$.width&&pt===$.height)return ge;ge.width=$.width=Qe,ge.height=$.height=pt,Oo($);for(var Bt=0;$.mipmask>>Bt;++Bt){var It=Qe>>Bt,Nt=pt>>Bt;if(!It||!Nt)break;lt.texImage2D(Ta,Bt,$.format,It,Nt,0,$.format,$.type,null)}return As(),Kr.profile&&($.stats.size=Gu($.internalformat,$.type,Qe,pt,!1,!1)),ge}return ge(j,ce),ge.subimage=Be,ge.resize=rt,ge._reglType="texture2d",ge._texture=$,Kr.profile&&(ge.stats=$.stats),ge.destroy=function(){$.decRef()},ge}function Ci(j,ce,$,ge,Be,rt){var st=new kl(Fn);Us[st.id]=st,Jr.cubeCount++;var Ge=new Array(6);function Qe(It,Nt,Xt,qt,Mt,Ft){var Rt,_r=st.texInfo;for(Qs.call(_r),Rt=0;Rt<6;++Rt)Ge[Rt]=il();if(typeof It=="number"||!It){var Ir=It|0||1;for(Rt=0;Rt<6;++Rt)Xi(Ge[Rt],Ir,Ir)}else if(typeof It=="object")if(Nt)eo(Ge[0],It),eo(Ge[1],Nt),eo(Ge[2],Xt),eo(Ge[3],qt),eo(Ge[4],Mt),eo(Ge[5],Ft);else if(pl(_r,It),Dn(st,It),"faces"in It){var Xr=It.faces;for(Rt=0;Rt<6;++Rt)Ea(Ge[Rt],st),eo(Ge[Rt],Xr[Rt])}else for(Rt=0;Rt<6;++Rt)eo(Ge[Rt],It);for(Ea(st,Ge[0]),_r.genMipmaps?st.mipmask=(Ge[0].width<<1)-1:st.mipmask=Ge[0].mipmask,st.internalformat=Ge[0].internalformat,Qe.width=Ge[0].width,Qe.height=Ge[0].height,Oo(st),Rt=0;Rt<6;++Rt)ts(Ge[Rt],mn+Rt);for(El(_r,Fn),As(),Kr.profile&&(st.stats.size=Gu(st.internalformat,st.type,Qe.width,Qe.height,_r.genMipmaps,!0)),Qe.format=Ra[st.internalformat],Qe.type=$a[st.type],Qe.mag=Fa[_r.magFilter],Qe.min=Bn[_r.minFilter],Qe.wrapS=pn[_r.wrapS],Qe.wrapT=pn[_r.wrapT],Rt=0;Rt<6;++Rt)Xo(Ge[Rt]);return Qe}function pt(It,Nt,Xt,qt,Mt){var Ft=Xt|0,Rt=qt|0,_r=Mt|0,Ir=ei();return Ea(Ir,st),Ir.width=0,Ir.height=0,fn(Ir,Nt),Ir.width=Ir.width||(st.width>>_r)-Ft,Ir.height=Ir.height||(st.height>>_r)-Rt,Oo(st),Pi(Ir,mn+It,Ft,Rt,_r),As(),bn(Ir),Qe}function Bt(It){var Nt=It|0;if(Nt!==st.width){Qe.width=st.width=Nt,Qe.height=st.height=Nt,Oo(st);for(var Xt=0;Xt<6;++Xt)for(var qt=0;st.mipmask>>qt;++qt)lt.texImage2D(mn+Xt,qt,st.format,Nt>>qt,Nt>>qt,0,st.format,st.type,null);return As(),Kr.profile&&(st.stats.size=Gu(st.internalformat,st.type,Qe.width,Qe.height,!1,!0)),Qe}}return Qe(j,ce,$,ge,Be,rt),Qe.subimage=pt,Qe.resize=Bt,Qe._reglType="textureCube",Qe._texture=st,Kr.profile&&(Qe.stats=st.stats),Qe.destroy=function(){st.decRef()},Qe}function fo(){for(var j=0;j<$s;++j)lt.activeTexture(_u+j),lt.bindTexture(Ta,null),mi[j]=null;yt(Us).forEach(Ol),Jr.cubeCount=0,Jr.textureCount=0}Kr.profile&&(Jr.getTotalTextureSize=function(){var j=0;return Object.keys(Us).forEach(function(ce){j+=Us[ce].stats.size}),j});function mo(){for(var j=0;j<$s;++j){var ce=mi[j];ce&&(ce.bindCount=0,ce.unit=-1,mi[j]=null)}yt(Us).forEach(function($){$.texture=lt.createTexture(),lt.bindTexture($.target,$.texture);for(var ge=0;ge<32;++ge)if(($.mipmask&1<>ge,$.height>>ge,0,$.internalformat,$.type,null);else for(var Be=0;Be<6;++Be)lt.texImage2D(mn+Be,ge,$.internalformat,$.width>>ge,$.height>>ge,0,$.internalformat,$.type,null);El($.texInfo,$.target)})}function ye(){for(var j=0;j<$s;++j){var ce=mi[j];ce&&(ce.bindCount=0,ce.unit=-1,mi[j]=null),lt.activeTexture(_u+j),lt.bindTexture(Ta,null),lt.bindTexture(Fn,null)}}return{create2D:Bl,createCube:Ci,clear:fo,getTexture:function(j){return null},restore:mo,refresh:ye}}var Ml=36161,lc=32854,Wc=32855,Ms=36194,Lc=33189,xf=36168,Kc=34041,Ac=35907,Jc=34836,tu=34842,Qc=34843,el=[];el[lc]=2,el[Wc]=2,el[Ms]=2,el[Lc]=2,el[xf]=1,el[Kc]=4,el[Ac]=4,el[Jc]=16,el[tu]=8,el[Qc]=6;function ru(lt,ir,ur){return el[lt]*ir*ur}var tc=function(lt,ir,ur,fa,Va){var Jr={rgba4:lc,rgb565:Ms,"rgb5 a1":Wc,depth:Lc,stencil:xf,"depth stencil":Kc};ir.ext_srgb&&(Jr.srgba=Ac),ir.ext_color_buffer_half_float&&(Jr.rgba16f=tu,Jr.rgb16f=Qc),ir.webgl_color_buffer_float&&(Jr.rgba32f=Jc);var Kr=[];Object.keys(Jr).forEach(function(xn){var Za=Jr[xn];Kr[Za]=xn});var cn=0,ln={};function un(xn){this.id=cn++,this.refCount=1,this.renderbuffer=xn,this.format=lc,this.width=0,this.height=0,Va.profile&&(this.stats={size:0})}un.prototype.decRef=function(){--this.refCount<=0&&wn(this)};function wn(xn){var Za=xn.renderbuffer;lt.bindRenderbuffer(Ml,null),lt.deleteRenderbuffer(Za),xn.renderbuffer=null,xn.refCount=0,delete ln[xn.id],fa.renderbufferCount--}function Jn(xn,Za){var Ur=new un(lt.createRenderbuffer());ln[Ur.id]=Ur,fa.renderbufferCount++;function ya($a,Fa){var Bn=0,pn=0,Xn=lc;if(typeof $a=="object"&&$a){var Oa=$a;if("shape"in Oa){var Ea=Oa.shape;Bn=Ea[0]|0,pn=Ea[1]|0}else"radius"in Oa&&(Bn=pn=Oa.radius|0),"width"in Oa&&(Bn=Oa.width|0),"height"in Oa&&(pn=Oa.height|0);"format"in Oa&&(Xn=Jr[Oa.format])}else typeof $a=="number"?(Bn=$a|0,typeof Fa=="number"?pn=Fa|0:pn=Bn):$a||(Bn=pn=1);if(!(Bn===Ur.width&&pn===Ur.height&&Xn===Ur.format))return ya.width=Ur.width=Bn,ya.height=Ur.height=pn,Ur.format=Xn,lt.bindRenderbuffer(Ml,Ur.renderbuffer),lt.renderbufferStorage(Ml,Xn,Bn,pn),Va.profile&&(Ur.stats.size=ru(Ur.format,Ur.width,Ur.height)),ya.format=Kr[Ur.format],ya}function Ra($a,Fa){var Bn=$a|0,pn=Fa|0||Bn;return Bn===Ur.width&&pn===Ur.height||(ya.width=Ur.width=Bn,ya.height=Ur.height=pn,lt.bindRenderbuffer(Ml,Ur.renderbuffer),lt.renderbufferStorage(Ml,Ur.format,Bn,pn),Va.profile&&(Ur.stats.size=ru(Ur.format,Ur.width,Ur.height))),ya}return ya(xn,Za),ya.resize=Ra,ya._reglType="renderbuffer",ya._renderbuffer=Ur,Va.profile&&(ya.stats=Ur.stats),ya.destroy=function(){Ur.decRef()},ya}Va.profile&&(fa.getTotalRenderbufferSize=function(){var xn=0;return Object.keys(ln).forEach(function(Za){xn+=ln[Za].stats.size}),xn});function jn(){yt(ln).forEach(function(xn){xn.renderbuffer=lt.createRenderbuffer(),lt.bindRenderbuffer(Ml,xn.renderbuffer),lt.renderbufferStorage(Ml,xn.format,xn.width,xn.height)}),lt.bindRenderbuffer(Ml,null)}return{create:Jn,clear:function(){yt(ln).forEach(wn)},restore:jn}},Bs=36160,Hu=36161,Gl=3553,au=34069,Ys=36064,vc=36096,Pu=36128,rc=33306,Pc=36053,bf=36193,Vf=5121,dc=5126,Ic=6407,fu=6408,Rc=[];Rc[fu]=4,Rc[Ic]=3;var Rl=[];Rl[Vf]=1,Rl[dc]=4,Rl[bf]=2;function pc(lt,ir,ur,fa,Va,Jr){var Kr={cur:null,next:null,dirty:!1,setFBO:null},cn=["rgba"],ln=["rgba4","rgb565","rgb5 a1"];ir.ext_srgb&&ln.push("srgba"),ir.ext_color_buffer_half_float&&ln.push("rgba16f","rgb16f"),ir.webgl_color_buffer_float&&ln.push("rgba32f"),ir.oes_texture_half_float,ir.oes_texture_float;function un(da,An,fn){this.target=da,this.texture=An,this.renderbuffer=fn;var Yn=0,Pi=0;An?(Yn=An.width,Pi=An.height):fn&&(Yn=fn.width,Pi=fn.height),this.width=Yn,this.height=Pi}function wn(da){da&&(da.texture&&da.texture._texture.decRef(),da.renderbuffer&&da.renderbuffer._renderbuffer.decRef())}function Jn(da,An,fn){if(da)if(da.texture){var Yn=da.texture._texture;Math.max(1,Yn.width),Math.max(1,Yn.height),Yn.refCount+=1}else{var Pi=da.renderbuffer._renderbuffer;Pi.refCount+=1}}function jn(da,An){An&&(An.texture?lt.framebufferTexture2D(Bs,da,An.target,An.texture._texture.texture,0):lt.framebufferRenderbuffer(Bs,da,Hu,An.renderbuffer._renderbuffer.renderbuffer))}function xn(da){var An=Gl,fn=null,Yn=null,Pi=da;typeof da=="object"&&(Pi=da.data,"target"in da&&(An=da.target|0));var Vn=Pi._reglType;return Vn==="texture2d"||Vn==="textureCube"?fn=Pi:Vn==="renderbuffer"&&(Yn=Pi,An=Hu),new un(An,fn,Yn)}function Za(da,An,fn,Yn,Pi){if(fn){var Vn=fa.create2D({width:da,height:An,format:Yn,type:Pi});return Vn._texture.refCount=0,new un(Gl,Vn,null)}else{var ei=Va.create({width:da,height:An,format:Yn});return ei._renderbuffer.refCount=0,new un(Hu,null,ei)}}function Ur(da){return da&&(da.texture||da.renderbuffer)}function ya(da,An,fn){da&&(da.texture?da.texture.resize(An,fn):da.renderbuffer&&da.renderbuffer.resize(An,fn),da.width=An,da.height=fn)}var Ra=0,$a={};function Fa(){this.id=Ra++,$a[this.id]=this,this.framebuffer=lt.createFramebuffer(),this.width=0,this.height=0,this.colorAttachments=[],this.depthAttachment=null,this.stencilAttachment=null,this.depthStencilAttachment=null}function Bn(da){da.colorAttachments.forEach(wn),wn(da.depthAttachment),wn(da.stencilAttachment),wn(da.depthStencilAttachment)}function pn(da){var An=da.framebuffer;lt.deleteFramebuffer(An),da.framebuffer=null,Jr.framebufferCount--,delete $a[da.id]}function Xn(da){var An;lt.bindFramebuffer(Bs,da.framebuffer);var fn=da.colorAttachments;for(An=0;An=0?il=!0:ln.indexOf(Xo)>=0&&(il=!1))),("depthTexture"in mi||"depthStencilTexture"in mi)&&($s=!!(mi.depthTexture||mi.depthStencilTexture)),"depth"in mi&&(typeof mi.depth=="boolean"?eo=mi.depth:(El=mi.depth,ts=!1)),"stencil"in mi&&(typeof mi.stencil=="boolean"?ts=mi.stencil:(zu=mi.stencil,eo=!1)),"depthStencil"in mi&&(typeof mi.depthStencil=="boolean"?eo=ts=mi.depthStencil:(Us=mi.depthStencil,eo=!1,ts=!1))}var Oo=null,As=null,Ol=null,Bl=null;if(Array.isArray(to))Oo=to.map(xn);else if(to)Oo=[xn(to)];else for(Oo=new Array(pl),bn=0;bn0&&(ei.depth=An[0].depth,ei.stencil=An[0].stencil,ei.depthStencil=An[0].depthStencil),An[Vn]?An[Vn](ei):An[Vn]=Oa(ei)}return h(fn,{width:bn,height:bn,color:Xo})}function Yn(Pi){var Vn,ei=Pi|0;if(ei===fn.width)return fn;var bn=fn.color;for(Vn=0;Vn=Mi.byteLength?Xi.subdata(Mi):(Xi.destroy(),Ea.buffers[Vn]=null)),Ea.buffers[Vn]||(Xi=Ea.buffers[Vn]=Va.create(ei,gc,!1,!0)),bn.buffer=Va.getBuffer(Xi),bn.size=bn.buffer.dimension|0,bn.normalized=!1,bn.type=bn.buffer.dtype,bn.offset=0,bn.stride=0,bn.divisor=0,bn.state=1,Yn[Vn]=1}else Va.getBuffer(ei)?(bn.buffer=Va.getBuffer(ei),bn.size=bn.buffer.dimension|0,bn.normalized=!1,bn.type=bn.buffer.dtype,bn.offset=0,bn.stride=0,bn.divisor=0,bn.state=1):Va.getBuffer(ei.buffer)?(bn.buffer=Va.getBuffer(ei.buffer),bn.size=(+ei.size||bn.buffer.dimension)|0,bn.normalized=!!ei.normalized||!1,"type"in ei?bn.type=ia[ei.type]:bn.type=bn.buffer.dtype,bn.offset=(ei.offset||0)|0,bn.stride=(ei.stride||0)|0,bn.divisor=(ei.divisor||0)|0,bn.state=1):"x"in ei&&(bn.x=+ei.x||0,bn.y=+ei.y||0,bn.z=+ei.z||0,bn.w=+ei.w||0,bn.state=2)}for(var eo=0;eo1)for(var da=0;daUr&&(Ur=ya.stats.uniformsCount)}),Ur},ur.getMaxAttributesCount=function(){var Ur=0;return wn.forEach(function(ya){ya.stats.attributesCount>Ur&&(Ur=ya.stats.attributesCount)}),Ur});function Za(){Va={},Jr={};for(var Ur=0;Ur>>4&15)+ir.charAt(fa&15);return ur}function Ru(lt){for(var ir="",ur=-1,fa,Va;++ur>>6&31,128|fa&63):fa<=65535?ir+=String.fromCharCode(224|fa>>>12&15,128|fa>>>6&63,128|fa&63):fa<=2097151&&(ir+=String.fromCharCode(240|fa>>>18&7,128|fa>>>12&63,128|fa>>>6&63,128|fa&63));return ir}function al(lt){for(var ir=Array(lt.length>>2),ur=0;ur>5]|=(lt.charCodeAt(ur/8)&255)<<24-ur%32;return ir}function Yl(lt){for(var ir="",ur=0;ur>5]>>>24-ur%32&255);return ir}function Ks(lt,ir){return lt>>>ir|lt<<32-ir}function nc(lt,ir){return lt>>>ir}function Du(lt,ir,ur){return lt&ir^~lt&ur}function Zc(lt,ir,ur){return lt&ir^lt&ur^ir&ur}function Qt(lt){return Ks(lt,2)^Ks(lt,13)^Ks(lt,22)}function yr(lt){return Ks(lt,6)^Ks(lt,11)^Ks(lt,25)}function $r(lt){return Ks(lt,7)^Ks(lt,18)^nc(lt,3)}function Vr(lt){return Ks(lt,17)^Ks(lt,19)^nc(lt,10)}var ma=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 tn(lt,ir){var ur=new Array(1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225),fa=new Array(64),Va,Jr,Kr,cn,ln,un,wn,Jn,jn,xn,Za,Ur;for(lt[ir>>5]|=128<<24-ir%32,lt[(ir+64>>9<<4)+15]=ir,jn=0;jn>16)+(ir>>16)+(ur>>16);return fa<<16|ur&65535}function Ln(lt){return Array.prototype.slice.call(lt)}function On(lt){return Ln(lt).join("")}function Qn(lt){var ir=lt&<.cache,ur=0,fa=[],Va=[],Jr=[];function Kr(Za,Ur){var ya=Ur&&Ur.stable;if(!ya){for(var Ra=0;Ra0&&(Za.push($a,"="),Za.push.apply(Za,Ln(arguments)),Za.push(";")),$a}return h(Ur,{def:Ra,toString:function(){return On([ya.length>0?"var "+ya.join(",")+";":"",On(Za)])}})}function ln(){var Za=cn(),Ur=cn(),ya=Za.toString,Ra=Ur.toString;function $a(Fa,Bn){Ur(Fa,Bn,"=",Za.def(Fa,Bn),";")}return h(function(){Za.apply(Za,Ln(arguments))},{def:Za.def,entry:Za,exit:Ur,save:$a,set:function(Fa,Bn,pn){$a(Fa,Bn),Za(Fa,Bn,"=",pn,";")},toString:function(){return ya()+Ra()}})}function un(){var Za=On(arguments),Ur=ln(),ya=ln(),Ra=Ur.toString,$a=ya.toString;return h(Ur,{then:function(){return Ur.apply(Ur,Ln(arguments)),this},else:function(){return ya.apply(ya,Ln(arguments)),this},toString:function(){var Fa=$a();return Fa&&(Fa="else{"+Fa+"}"),On(["if(",Za,"){",Ra(),"}",Fa])}})}var wn=cn(),Jn={};function jn(Za,Ur){var ya=[];function Ra(){var Xn="a"+ya.length;return ya.push(Xn),Xn}Ur=Ur||0;for(var $a=0;$a":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},Na={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},rn={cw:dt,ccw:gt};function sn(lt){return Array.isArray(lt)||dr(lt)||wr(lt)}function Ba(lt){return lt.sort(function(ir,ur){return ir===iu?-1:ur===iu?1:ir=1,fa>=2,ir)}else if(ur===Wi){var Va=lt.data;return new Rn(Va.thisDep,Va.contextDep,Va.propDep,ir)}else{if(ur===ii)return new Rn(!1,!1,!1,ir);if(ur===Wn){for(var Jr=!1,Kr=!1,cn=!1,ln=0;ln=1&&(Kr=!0),wn>=2&&(cn=!0)}else un.type===Wi&&(Jr=Jr||un.data.thisDep,Kr=Kr||un.data.contextDep,cn=cn||un.data.propDep)}return new Rn(Jr,Kr,cn,ir)}else return new Rn(ur===Zi,ur===Fi,ur===Hi,ir)}}var Ti=new Rn(!1,!1,!1,function(){});function ki(lt,ir,ur,fa,Va,Jr,Kr,cn,ln,un,wn,Jn,jn,xn,Za,Ur){var ya=un.Record,Ra={add:32774,subtract:32778,"reverse subtract":32779};ur.ext_blend_minmax&&(Ra.min=Tt,Ra.max=Vt);var $a=ur.angle_instanced_arrays,Fa=ur.webgl_draw_buffers,Bn=ur.oes_vertex_array_object,pn={dirty:!0,profile:Ur.profile},Xn={},Oa=[],Ea={},Dn={};function da(Ge){return Ge.replace(".","_")}function An(Ge,Qe,pt){var Bt=da(Ge);Oa.push(Ge),Xn[Bt]=pn[Bt]=!!pt,Ea[Bt]=Qe}function fn(Ge,Qe,pt){var Bt=da(Ge);Oa.push(Ge),Array.isArray(pt)?(pn[Bt]=pt.slice(),Xn[Bt]=pt.slice()):pn[Bt]=Xn[Bt]=pt,Dn[Bt]=Qe}function Yn(Ge){return!!isNaN(Ge)}An(ao,Cr),An(Fo,gr),fn(hs,"blendColor",[0,0,0,0]),fn(Is,"blendEquationSeparate",[Zr,Zr]),fn(vs,"blendFuncSeparate",[kr,Pr,kr,Pr]),An(Rs,ua,!0),fn(Yo,"depthFunc",la),fn(sl,"depthRange",[0,1]),fn(nl,"depthMask",!0),fn(Ls,Ls,[!0,!0,!0,!0]),An(wi,cr),fn(go,"cullFace",$e),fn(ws,ws,gt),fn(os,os,1),An(Hl,Ma),fn(Wl,"polygonOffset",[0,0]),An($l,en),An(uc,Pn),fn(Xl,"sampleCoverage",[1,!1]),An(Xu,Wr),fn(ll,"stencilMask",-1),fn(Zu,"stencilFunc",[jt,0,-1]),fn(Yi,"stencilOpSeparate",[Le,sr,sr,sr]),fn(io,"stencilOpSeparate",[$e,sr,sr,sr]),An(Yu,va),fn(du,"scissor",[0,0,lt.drawingBufferWidth,lt.drawingBufferHeight]),fn(iu,iu,[0,0,lt.drawingBufferWidth,lt.drawingBufferHeight]);var Pi={gl:lt,context:jn,strings:ir,next:Xn,current:pn,draw:Jn,elements:Jr,buffer:Va,shader:wn,attributes:un.state,vao:un,uniforms:ln,framebuffer:cn,extensions:ur,timer:xn,isBufferArgs:sn},Vn={primTypes:mt,compareFuncs:Pa,blendFuncs:pa,blendEquations:Ra,stencilOps:Na,glTypes:ia,orientationType:rn};Fa&&(Vn.backBuffer=[$e],Vn.drawBuffer=d(fa.maxDrawbuffers,function(Ge){return Ge===0?[0]:d(Ge,function(Qe){return nn+Qe})}));var ei=0;function bn(){var Ge=Qn({cache:Za}),Qe=Ge.link,pt=Ge.global;Ge.id=ei++,Ge.batchId="0";var Bt=Qe(Pi),It=Ge.shared={props:"a0"};Object.keys(Pi).forEach(function(Ft){It[Ft]=pt.def(Bt,".",Ft)});var Nt=Ge.next={},Xt=Ge.current={};Object.keys(Dn).forEach(function(Ft){Array.isArray(pn[Ft])&&(Nt[Ft]=pt.def(It.next,".",Ft),Xt[Ft]=pt.def(It.current,".",Ft))});var qt=Ge.constants={};Object.keys(Vn).forEach(function(Ft){qt[Ft]=pt.def(JSON.stringify(Vn[Ft]))}),Ge.invoke=function(Ft,Rt){switch(Rt.type){case ai:var _r=["this",It.context,It.props,Ge.batchId];return Ft.def(Qe(Rt.data),".call(",_r.slice(0,Math.max(Rt.data.length+1,4)),")");case Hi:return Ft.def(It.props,Rt.data);case Fi:return Ft.def(It.context,Rt.data);case Zi:return Ft.def("this",Rt.data);case Wi:return Rt.data.append(Ge,Ft),Rt.data.ref;case ii:return Rt.data.toString();case Wn:return Rt.data.map(function(Ir){return Ge.invoke(Ft,Ir)})}},Ge.attribCache={};var Mt={};return Ge.scopeAttrib=function(Ft){var Rt=ir.id(Ft);if(Rt in Mt)return Mt[Rt];var _r=un.scope[Rt];_r||(_r=un.scope[Rt]=new ya);var Ir=Mt[Rt]=Qe(_r);return Ir},Ge}function Mi(Ge){var Qe=Ge.static,pt=Ge.dynamic,Bt;if(ze in Qe){var It=!!Qe[ze];Bt=Zn(function(Xt,qt){return It}),Bt.enable=It}else if(ze in pt){var Nt=pt[ze];Bt=ri(Nt,function(Xt,qt){return Xt.invoke(qt,Nt)})}return Bt}function Xi(Ge,Qe){var pt=Ge.static,Bt=Ge.dynamic;if(L in pt){var It=pt[L];return It?(It=cn.getFramebuffer(It),Zn(function(Xt,qt){var Mt=Xt.link(It),Ft=Xt.shared;qt.set(Ft.framebuffer,".next",Mt);var Rt=Ft.context;return qt.set(Rt,"."+Br,Mt+".width"),qt.set(Rt,"."+ea,Mt+".height"),Mt})):Zn(function(Xt,qt){var Mt=Xt.shared;qt.set(Mt.framebuffer,".next","null");var Ft=Mt.context;return qt.set(Ft,"."+Br,Ft+"."+vt),qt.set(Ft,"."+ea,Ft+"."+St),"null"})}else if(L in Bt){var Nt=Bt[L];return ri(Nt,function(Xt,qt){var Mt=Xt.invoke(qt,Nt),Ft=Xt.shared,Rt=Ft.framebuffer,_r=qt.def(Rt,".getFramebuffer(",Mt,")");qt.set(Rt,".next",_r);var Ir=Ft.context;return qt.set(Ir,"."+Br,_r+"?"+_r+".width:"+Ir+"."+vt),qt.set(Ir,"."+ea,_r+"?"+_r+".height:"+Ir+"."+St),_r})}else return null}function eo(Ge,Qe,pt){var Bt=Ge.static,It=Ge.dynamic;function Nt(Mt){if(Mt in Bt){var Ft=Bt[Mt],Rt=!0,_r=Ft.x|0,Ir=Ft.y|0,Xr,Ua;return"width"in Ft?Xr=Ft.width|0:Rt=!1,"height"in Ft?Ua=Ft.height|0:Rt=!1,new Rn(!Rt&&Qe&&Qe.thisDep,!Rt&&Qe&&Qe.contextDep,!Rt&&Qe&&Qe.propDep,function(ja,Ha){var on=ja.shared.context,qa=Xr;"width"in Ft||(qa=Ha.def(on,".",Br,"-",_r));var hn=Ua;return"height"in Ft||(hn=Ha.def(on,".",ea,"-",Ir)),[_r,Ir,qa,hn]})}else if(Mt in It){var ka=It[Mt],xa=ri(ka,function(ja,Ha){var on=ja.invoke(Ha,ka),qa=ja.shared.context,hn=Ha.def(on,".x|0"),Sn=Ha.def(on,".y|0"),Gn=Ha.def('"width" in ',on,"?",on,".width|0:","(",qa,".",Br,"-",hn,")"),ti=Ha.def('"height" in ',on,"?",on,".height|0:","(",qa,".",ea,"-",Sn,")");return[hn,Sn,Gn,ti]});return Qe&&(xa.thisDep=xa.thisDep||Qe.thisDep,xa.contextDep=xa.contextDep||Qe.contextDep,xa.propDep=xa.propDep||Qe.propDep),xa}else return Qe?new Rn(Qe.thisDep,Qe.contextDep,Qe.propDep,function(ja,Ha){var on=ja.shared.context;return[0,0,Ha.def(on,".",Br),Ha.def(on,".",ea)]}):null}var Xt=Nt(iu);if(Xt){var qt=Xt;Xt=new Rn(Xt.thisDep,Xt.contextDep,Xt.propDep,function(Mt,Ft){var Rt=qt.append(Mt,Ft),_r=Mt.shared.context;return Ft.set(_r,"."+Ve,Rt[2]),Ft.set(_r,"."+Ye,Rt[3]),Rt})}return{viewport:Xt,scissor_box:Nt(du)}}function ts(Ge,Qe){var pt=Ge.static,Bt=typeof pt[Te]=="string"&&typeof pt[ne]=="string";if(Bt){if(Object.keys(Qe.dynamic).length>0)return null;var It=Qe.static,Nt=Object.keys(It);if(Nt.length>0&&typeof It[Nt[0]]=="number"){for(var Xt=[],qt=0;qt"+hn+"?"+Rt+".constant["+hn+"]:0;"}).join(""),"}}else{","if(",Xr,"(",Rt,".buffer)){",ja,"=",Ua,".createStream(",Lt,",",Rt,".buffer);","}else{",ja,"=",Ua,".getBuffer(",Rt,".buffer);","}",Ha,'="type" in ',Rt,"?",Ir.glTypes,"[",Rt,".type]:",ja,".dtype;",ka.normalized,"=!!",Rt,".normalized;");function on(qa){Ft(ka[qa],"=",Rt,".",qa,"|0;")}return on("size"),on("offset"),on("stride"),on("divisor"),Ft("}}"),Ft.exit("if(",ka.isStream,"){",Ua,".destroyStream(",ja,");","}"),ka}It[Nt]=ri(Xt,qt)}),It}function El(Ge){var Qe=Ge.static,pt=Ge.dynamic,Bt={};return Object.keys(Qe).forEach(function(It){var Nt=Qe[It];Bt[It]=Zn(function(Xt,qt){return typeof Nt=="number"||typeof Nt=="boolean"?""+Nt:Xt.link(Nt)})}),Object.keys(pt).forEach(function(It){var Nt=pt[It];Bt[It]=ri(Nt,function(Xt,qt){return Xt.invoke(qt,Nt)})}),Bt}function zu(Ge,Qe,pt,Bt,It){Ge.static,Ge.dynamic;var Nt=ts(Ge,Qe),Xt=Xi(Ge),qt=eo(Ge,Xt),Mt=il(Ge),Ft=Xo(Ge),Rt=to(Ge,It,Nt);function _r(ja){var Ha=qt[ja];Ha&&(Ft[ja]=Ha)}_r(iu),_r(da(du));var Ir=Object.keys(Ft).length>0,Xr={framebuffer:Xt,draw:Mt,shader:Rt,state:Ft,dirty:Ir,scopeVAO:null,drawVAO:null,useVAO:!1,attributes:{}};if(Xr.profile=Mi(Ge),Xr.uniforms=Qs(pt),Xr.drawVAO=Xr.scopeVAO=Mt.vao,!Xr.drawVAO&&Rt.program&&!Nt&&ur.angle_instanced_arrays&&Mt.static.elements){var Ua=!0,ka=Rt.program.attributes.map(function(ja){var Ha=Qe.static[ja];return Ua=Ua&&!!Ha,Ha});if(Ua&&ka.length>0){var xa=un.getVAO(un.createVAO({attributes:ka,elements:Mt.static.elements}));Xr.drawVAO=new Rn(null,null,null,function(ja,Ha){return ja.link(xa)}),Xr.useVAO=!0}}return Nt?Xr.useVAO=!0:Xr.attributes=pl(Qe),Xr.context=El(Bt),Xr}function Us(Ge,Qe,pt){var Bt=Ge.shared,It=Bt.context,Nt=Ge.scope();Object.keys(pt).forEach(function(Xt){Qe.save(It,"."+Xt);var qt=pt[Xt],Mt=qt.append(Ge,Qe);Array.isArray(Mt)?Nt(It,".",Xt,"=[",Mt.join(),"];"):Nt(It,".",Xt,"=",Mt,";")}),Qe(Nt)}function $s(Ge,Qe,pt,Bt){var It=Ge.shared,Nt=It.gl,Xt=It.framebuffer,qt;Fa&&(qt=Qe.def(It.extensions,".webgl_draw_buffers"));var Mt=Ge.constants,Ft=Mt.drawBuffer,Rt=Mt.backBuffer,_r;pt?_r=pt.append(Ge,Qe):_r=Qe.def(Xt,".next"),Bt||Qe("if(",_r,"!==",Xt,".cur){"),Qe("if(",_r,"){",Nt,".bindFramebuffer(",ca,",",_r,".framebuffer);"),Fa&&Qe(qt,".drawBuffersWEBGL(",Ft,"[",_r,".colorAttachments.length]);"),Qe("}else{",Nt,".bindFramebuffer(",ca,",null);"),Fa&&Qe(qt,".drawBuffersWEBGL(",Rt,");"),Qe("}",Xt,".cur=",_r,";"),Bt||Qe("}")}function mi(Ge,Qe,pt){var Bt=Ge.shared,It=Bt.gl,Nt=Ge.current,Xt=Ge.next,qt=Bt.current,Mt=Bt.next,Ft=Ge.cond(qt,".dirty");Oa.forEach(function(Rt){var _r=da(Rt);if(!(_r in pt.state)){var Ir,Xr;if(_r in Xt){Ir=Xt[_r],Xr=Nt[_r];var Ua=d(pn[_r].length,function(xa){return Ft.def(Ir,"[",xa,"]")});Ft(Ge.cond(Ua.map(function(xa,ja){return xa+"!=="+Xr+"["+ja+"]"}).join("||")).then(It,".",Dn[_r],"(",Ua,");",Ua.map(function(xa,ja){return Xr+"["+ja+"]="+xa}).join(";"),";"))}else{Ir=Ft.def(Mt,".",_r);var ka=Ge.cond(Ir,"!==",qt,".",_r);Ft(ka),_r in Ea?ka(Ge.cond(Ir).then(It,".enable(",Ea[_r],");").else(It,".disable(",Ea[_r],");"),qt,".",_r,"=",Ir,";"):ka(It,".",Dn[_r],"(",Ir,");",qt,".",_r,"=",Ir,";")}}}),Object.keys(pt.state).length===0&&Ft(qt,".dirty=false;"),Qe(Ft)}function kl(Ge,Qe,pt,Bt){var It=Ge.shared,Nt=Ge.current,Xt=It.current,qt=It.gl,Mt;Ba(Object.keys(pt)).forEach(function(Ft){var Rt=pt[Ft];if(!(Bt&&!Bt(Rt))){var _r=Rt.append(Ge,Qe);if(Ea[Ft]){var Ir=Ea[Ft];ni(Rt)?(Mt=Ge.link(_r,{stable:!0}),Qe(Ge.cond(Mt).then(qt,".enable(",Ir,");").else(qt,".disable(",Ir,");")),Qe(Xt,".",Ft,"=",Mt,";")):(Qe(Ge.cond(_r).then(qt,".enable(",Ir,");").else(qt,".disable(",Ir,");")),Qe(Xt,".",Ft,"=",_r,";"))}else if(za(_r)){var Xr=Nt[Ft];Qe(qt,".",Dn[Ft],"(",_r,");",_r.map(function(Ua,ka){return Xr+"["+ka+"]="+Ua}).join(";"),";")}else ni(Rt)?(Mt=Ge.link(_r,{stable:!0}),Qe(qt,".",Dn[Ft],"(",Mt,");",Xt,".",Ft,"=",Mt,";")):Qe(qt,".",Dn[Ft],"(",_r,");",Xt,".",Ft,"=",_r,";")}})}function Oo(Ge,Qe){$a&&(Ge.instancing=Qe.def(Ge.shared.extensions,".angle_instanced_arrays"))}function As(Ge,Qe,pt,Bt,It){var Nt=Ge.shared,Xt=Ge.stats,qt=Nt.current,Mt=Nt.timer,Ft=pt.profile;function Rt(){return typeof performance>"u"?"Date.now()":"performance.now()"}var _r,Ir;function Xr(on){_r=Qe.def(),on(_r,"=",Rt(),";"),typeof It=="string"?on(Xt,".count+=",It,";"):on(Xt,".count++;"),xn&&(Bt?(Ir=Qe.def(),on(Ir,"=",Mt,".getNumPendingQueries();")):on(Mt,".beginQuery(",Xt,");"))}function Ua(on){on(Xt,".cpuTime+=",Rt(),"-",_r,";"),xn&&(Bt?on(Mt,".pushScopeStats(",Ir,",",Mt,".getNumPendingQueries(),",Xt,");"):on(Mt,".endQuery();"))}function ka(on){var qa=Qe.def(qt,".profile");Qe(qt,".profile=",on,";"),Qe.exit(qt,".profile=",qa,";")}var xa;if(Ft){if(ni(Ft)){Ft.enable?(Xr(Qe),Ua(Qe.exit),ka("true")):ka("false");return}xa=Ft.append(Ge,Qe),ka(xa)}else xa=Qe.def(qt,".profile");var ja=Ge.block();Xr(ja),Qe("if(",xa,"){",ja,"}");var Ha=Ge.block();Ua(Ha),Qe.exit("if(",xa,"){",Ha,"}")}function Ol(Ge,Qe,pt,Bt,It){var Nt=Ge.shared;function Xt(Mt){switch(Mt){case In:case Ki:case Ko:return 2;case oi:case Go:case Js:return 3;case Si:case Ho:case Hs:return 4;default:return 1}}function qt(Mt,Ft,Rt){var _r=Nt.gl,Ir=Qe.def(Mt,".location"),Xr=Qe.def(Nt.attributes,"[",Ir,"]"),Ua=Rt.state,ka=Rt.buffer,xa=[Rt.x,Rt.y,Rt.z,Rt.w],ja=["buffer","normalized","offset","stride"];function Ha(){Qe("if(!",Xr,".buffer){",_r,".enableVertexAttribArray(",Ir,");}");var qa=Rt.type,hn;if(Rt.size?hn=Qe.def(Rt.size,"||",Ft):hn=Ft,Qe("if(",Xr,".type!==",qa,"||",Xr,".size!==",hn,"||",ja.map(function(Gn){return Xr+"."+Gn+"!=="+Rt[Gn]}).join("||"),"){",_r,".bindBuffer(",Lt,",",ka,".buffer);",_r,".vertexAttribPointer(",[Ir,hn,qa,Rt.normalized,Rt.stride,Rt.offset],");",Xr,".type=",qa,";",Xr,".size=",hn,";",ja.map(function(Gn){return Xr+"."+Gn+"="+Rt[Gn]+";"}).join(""),"}"),$a){var Sn=Rt.divisor;Qe("if(",Xr,".divisor!==",Sn,"){",Ge.instancing,".vertexAttribDivisorANGLE(",[Ir,Sn],");",Xr,".divisor=",Sn,";}")}}function on(){Qe("if(",Xr,".buffer){",_r,".disableVertexAttribArray(",Ir,");",Xr,".buffer=null;","}if(",_n.map(function(qa,hn){return Xr+"."+qa+"!=="+xa[hn]}).join("||"),"){",_r,".vertexAttrib4f(",Ir,",",xa,");",_n.map(function(qa,hn){return Xr+"."+qa+"="+xa[hn]+";"}).join(""),"}")}Ua===En?Ha():Ua===dn?on():(Qe("if(",Ua,"===",En,"){"),Ha(),Qe("}else{"),on(),Qe("}"))}Bt.forEach(function(Mt){var Ft=Mt.name,Rt=pt.attributes[Ft],_r;if(Rt){if(!It(Rt))return;_r=Rt.append(Ge,Qe)}else{if(!It(Ti))return;var Ir=Ge.scopeAttrib(Ft);_r={},Object.keys(new ya).forEach(function(Xr){_r[Xr]=Qe.def(Ir,".",Xr)})}qt(Ge.link(Mt),Xt(Mt.info.type),_r)})}function Bl(Ge,Qe,pt,Bt,It,Nt){for(var Xt=Ge.shared,qt=Xt.gl,Mt,Ft=0;Ft1){for(var yo=[],vo=[],ss=0;ss>1)",ka],");")}function Sn(){pt(xa,".drawArraysInstancedANGLE(",[Ir,Xr,Ua,ka],");")}Rt&&Rt!=="null"?Ha?hn():(pt("if(",Rt,"){"),hn(),pt("}else{"),Sn(),pt("}")):Sn()}function qa(){function hn(){pt(Nt+".drawElements("+[Ir,Ua,ja,Xr+"<<(("+ja+"-"+qn+")>>1)"]+");")}function Sn(){pt(Nt+".drawArrays("+[Ir,Xr,Ua]+");")}Rt&&Rt!=="null"?Ha?hn():(pt("if(",Rt,"){"),hn(),pt("}else{"),Sn(),pt("}")):Sn()}$a&&(typeof ka!="number"||ka>=0)?typeof ka=="string"?(pt("if(",ka,">0){"),on(),pt("}else if(",ka,"<0){"),qa(),pt("}")):on():qa()}function fo(Ge,Qe,pt,Bt,It){var Nt=bn(),Xt=Nt.proc("body",It);return $a&&(Nt.instancing=Xt.def(Nt.shared.extensions,".angle_instanced_arrays")),Ge(Nt,Xt,pt,Bt),Nt.compile().body}function mo(Ge,Qe,pt,Bt){Oo(Ge,Qe),pt.useVAO?pt.drawVAO?Qe(Ge.shared.vao,".setVAO(",pt.drawVAO.append(Ge,Qe),");"):Qe(Ge.shared.vao,".setVAO(",Ge.shared.vao,".targetVAO);"):(Qe(Ge.shared.vao,".setVAO(null);"),Ol(Ge,Qe,pt,Bt.attributes,function(){return!0})),Bl(Ge,Qe,pt,Bt.uniforms,function(){return!0},!1),Ci(Ge,Qe,Qe,pt)}function ye(Ge,Qe){var pt=Ge.proc("draw",1);Oo(Ge,pt),Us(Ge,pt,Qe.context),$s(Ge,pt,Qe.framebuffer),mi(Ge,pt,Qe),kl(Ge,pt,Qe.state),As(Ge,pt,Qe,!1,!0);var Bt=Qe.shader.progVar.append(Ge,pt);if(pt(Ge.shared.gl,".useProgram(",Bt,".program);"),Qe.shader.program)mo(Ge,pt,Qe,Qe.shader.program);else{pt(Ge.shared.vao,".setVAO(null);");var It=Ge.global.def("{}"),Nt=pt.def(Bt,".id"),Xt=pt.def(It,"[",Nt,"]");pt(Ge.cond(Xt).then(Xt,".call(this,a0);").else(Xt,"=",It,"[",Nt,"]=",Ge.link(function(qt){return fo(mo,Ge,Qe,qt,1)}),"(",Bt,");",Xt,".call(this,a0);"))}Object.keys(Qe.state).length>0&&pt(Ge.shared.current,".dirty=true;"),Ge.shared.vao&&pt(Ge.shared.vao,".setVAO(null);")}function j(Ge,Qe,pt,Bt){Ge.batchId="a1",Oo(Ge,Qe);function It(){return!0}Ol(Ge,Qe,pt,Bt.attributes,It),Bl(Ge,Qe,pt,Bt.uniforms,It,!1),Ci(Ge,Qe,Qe,pt)}function ce(Ge,Qe,pt,Bt){Oo(Ge,Qe);var It=pt.contextDep,Nt=Qe.def(),Xt="a0",qt="a1",Mt=Qe.def();Ge.shared.props=Mt,Ge.batchId=Nt;var Ft=Ge.scope(),Rt=Ge.scope();Qe(Ft.entry,"for(",Nt,"=0;",Nt,"<",qt,";++",Nt,"){",Mt,"=",Xt,"[",Nt,"];",Rt,"}",Ft.exit);function _r(ja){return ja.contextDep&&It||ja.propDep}function Ir(ja){return!_r(ja)}if(pt.needsContext&&Us(Ge,Rt,pt.context),pt.needsFramebuffer&&$s(Ge,Rt,pt.framebuffer),kl(Ge,Rt,pt.state,_r),pt.profile&&_r(pt.profile)&&As(Ge,Rt,pt,!1,!0),Bt)pt.useVAO?pt.drawVAO?_r(pt.drawVAO)?Rt(Ge.shared.vao,".setVAO(",pt.drawVAO.append(Ge,Rt),");"):Ft(Ge.shared.vao,".setVAO(",pt.drawVAO.append(Ge,Ft),");"):Ft(Ge.shared.vao,".setVAO(",Ge.shared.vao,".targetVAO);"):(Ft(Ge.shared.vao,".setVAO(null);"),Ol(Ge,Ft,pt,Bt.attributes,Ir),Ol(Ge,Rt,pt,Bt.attributes,_r)),Bl(Ge,Ft,pt,Bt.uniforms,Ir,!1),Bl(Ge,Rt,pt,Bt.uniforms,_r,!0),Ci(Ge,Ft,Rt,pt);else{var Xr=Ge.global.def("{}"),Ua=pt.shader.progVar.append(Ge,Rt),ka=Rt.def(Ua,".id"),xa=Rt.def(Xr,"[",ka,"]");Rt(Ge.shared.gl,".useProgram(",Ua,".program);","if(!",xa,"){",xa,"=",Xr,"[",ka,"]=",Ge.link(function(ja){return fo(j,Ge,pt,ja,2)}),"(",Ua,");}",xa,".call(this,a0[",Nt,"],",Nt,");")}}function $(Ge,Qe){var pt=Ge.proc("batch",2);Ge.batchId="0",Oo(Ge,pt);var Bt=!1,It=!0;Object.keys(Qe.context).forEach(function(Xr){Bt=Bt||Qe.context[Xr].propDep}),Bt||(Us(Ge,pt,Qe.context),It=!1);var Nt=Qe.framebuffer,Xt=!1;Nt?(Nt.propDep?Bt=Xt=!0:Nt.contextDep&&Bt&&(Xt=!0),Xt||$s(Ge,pt,Nt)):$s(Ge,pt,null),Qe.state.viewport&&Qe.state.viewport.propDep&&(Bt=!0);function qt(Xr){return Xr.contextDep&&Bt||Xr.propDep}mi(Ge,pt,Qe),kl(Ge,pt,Qe.state,function(Xr){return!qt(Xr)}),(!Qe.profile||!qt(Qe.profile))&&As(Ge,pt,Qe,!1,"a1"),Qe.contextDep=Bt,Qe.needsContext=It,Qe.needsFramebuffer=Xt;var Mt=Qe.shader.progVar;if(Mt.contextDep&&Bt||Mt.propDep)ce(Ge,pt,Qe,null);else{var Ft=Mt.append(Ge,pt);if(pt(Ge.shared.gl,".useProgram(",Ft,".program);"),Qe.shader.program)ce(Ge,pt,Qe,Qe.shader.program);else{pt(Ge.shared.vao,".setVAO(null);");var Rt=Ge.global.def("{}"),_r=pt.def(Ft,".id"),Ir=pt.def(Rt,"[",_r,"]");pt(Ge.cond(Ir).then(Ir,".call(this,a0,a1);").else(Ir,"=",Rt,"[",_r,"]=",Ge.link(function(Xr){return fo(ce,Ge,Qe,Xr,2)}),"(",Ft,");",Ir,".call(this,a0,a1);"))}}Object.keys(Qe.state).length>0&&pt(Ge.shared.current,".dirty=true;"),Ge.shared.vao&&pt(Ge.shared.vao,".setVAO(null);")}function ge(Ge,Qe){var pt=Ge.proc("scope",3);Ge.batchId="a2";var Bt=Ge.shared,It=Bt.current;if(Us(Ge,pt,Qe.context),Qe.framebuffer&&Qe.framebuffer.append(Ge,pt),Ba(Object.keys(Qe.state)).forEach(function(qt){var Mt=Qe.state[qt],Ft=Mt.append(Ge,pt);za(Ft)?Ft.forEach(function(Rt,_r){Yn(Rt)?pt.set(Ge.next[qt],"["+_r+"]",Rt):pt.set(Ge.next[qt],"["+_r+"]",Ge.link(Rt,{stable:!0}))}):ni(Mt)?pt.set(Bt.next,"."+qt,Ge.link(Ft,{stable:!0})):pt.set(Bt.next,"."+qt,Ft)}),As(Ge,pt,Qe,!0,!0),[Se,xt,ft,Dt,Re].forEach(function(qt){var Mt=Qe.draw[qt];if(Mt){var Ft=Mt.append(Ge,pt);Yn(Ft)?pt.set(Bt.draw,"."+qt,Ft):pt.set(Bt.draw,"."+qt,Ge.link(Ft),{stable:!0})}}),Object.keys(Qe.uniforms).forEach(function(qt){var Mt=Qe.uniforms[qt].append(Ge,pt);Array.isArray(Mt)&&(Mt="["+Mt.map(function(Ft){return Yn(Ft)?Ft:Ge.link(Ft,{stable:!0})})+"]"),pt.set(Bt.uniforms,"["+Ge.link(ir.id(qt),{stable:!0})+"]",Mt)}),Object.keys(Qe.attributes).forEach(function(qt){var Mt=Qe.attributes[qt].append(Ge,pt),Ft=Ge.scopeAttrib(qt);Object.keys(new ya).forEach(function(Rt){pt.set(Ft,"."+Rt,Mt[Rt])})}),Qe.scopeVAO){var Nt=Qe.scopeVAO.append(Ge,pt);Yn(Nt)?pt.set(Bt.vao,".targetVAO",Nt):pt.set(Bt.vao,".targetVAO",Ge.link(Nt,{stable:!0}))}function Xt(qt){var Mt=Qe.shader[qt];if(Mt){var Ft=Mt.append(Ge,pt);Yn(Ft)?pt.set(Bt.shader,"."+qt,Ft):pt.set(Bt.shader,"."+qt,Ge.link(Ft,{stable:!0}))}}Xt(ne),Xt(Te),Object.keys(Qe.state).length>0&&(pt(It,".dirty=true;"),pt.exit(It,".dirty=true;")),pt("a1(",Ge.shared.context,",a0,",Ge.batchId,");")}function Be(Ge){if(!(typeof Ge!="object"||za(Ge))){for(var Qe=Object.keys(Ge),pt=0;pt=0;--Ci){var fo=Yn[Ci];fo&&fo(xn,null,0)}ur.flush(),un&&un.update()}function Xi(){!bn&&Yn.length>0&&(bn=f.next(Mi))}function eo(){bn&&(f.cancel(Mi),bn=null)}function ts(Ci){Ci.preventDefault(),eo(),Pi.forEach(function(fo){fo()})}function to(Ci){ur.getError(),Va.restore(),pn.restore(),Ra.restore(),Xn.restore(),Oa.restore(),Ea.restore(),Fa.restore(),un&&un.restore(),Dn.procs.refresh(),Xi(),Vn.forEach(function(fo){fo()})}fn&&(fn.addEventListener(Ds,ts,!1),fn.addEventListener(Ts,to,!1));function il(){Yn.length=0,eo(),fn&&(fn.removeEventListener(Ds,ts),fn.removeEventListener(Ts,to)),pn.clear(),Ea.clear(),Oa.clear(),Fa.clear(),Xn.clear(),$a.clear(),Ra.clear(),un&&un.clear(),ei.forEach(function(Ci){Ci()})}function Xo(Ci){function fo(It){var Nt=h({},It);delete Nt.uniforms,delete Nt.attributes,delete Nt.context,delete Nt.vao,"stencil"in Nt&&Nt.stencil.op&&(Nt.stencil.opBack=Nt.stencil.opFront=Nt.stencil.op,delete Nt.stencil.op);function Xt(qt){if(qt in Nt){var Mt=Nt[qt];delete Nt[qt],Object.keys(Mt).forEach(function(Ft){Nt[qt+"."+Ft]=Mt[Ft]})}}return Xt("blend"),Xt("depth"),Xt("cull"),Xt("stencil"),Xt("polygonOffset"),Xt("scissor"),Xt("sample"),"vao"in It&&(Nt.vao=It.vao),Nt}function mo(It,Nt){var Xt={},qt={};return Object.keys(It).forEach(function(Mt){var Ft=It[Mt];if(c.isDynamic(Ft)){qt[Mt]=c.unbox(Ft,Mt);return}else if(Nt&&Array.isArray(Ft)){for(var Rt=0;Rt0)return st.call(this,pt(It|0),It|0)}else if(Array.isArray(It)){if(It.length)return st.call(this,It,It.length)}else return rt.call(this,It)}return h(Bt,{stats:ge,destroy:function(){Be.destroy()}})}var Qs=Ea.setFBO=Xo({framebuffer:c.define.call(null,Kl,"framebuffer")});function pl(Ci,fo){var mo=0;Dn.procs.poll();var ye=fo.color;ye&&(ur.clearColor(+ye[0]||0,+ye[1]||0,+ye[2]||0,+ye[3]||0),mo|=Ns),"depth"in fo&&(ur.clearDepth(+fo.depth),mo|=di),"stencil"in fo&&(ur.clearStencil(fo.stencil|0),mo|=Lo),ur.clear(mo)}function El(Ci){if("framebuffer"in Ci)if(Ci.framebuffer&&Ci.framebuffer_reglType==="framebufferCube")for(var fo=0;fo<6;++fo)Qs(h({framebuffer:Ci.framebuffer.faces[fo]},Ci),pl);else Qs(Ci,pl);else pl(null,Ci)}function zu(Ci){Yn.push(Ci);function fo(){var mo=pu(Yn,Ci);function ye(){var j=pu(Yn,ye);Yn[j]=Yn[Yn.length-1],Yn.length-=1,Yn.length<=0&&eo()}Yn[mo]=ye}return Xi(),{cancel:fo}}function Us(){var Ci=An.viewport,fo=An.scissor_box;Ci[0]=Ci[1]=fo[0]=fo[1]=0,xn.viewportWidth=xn.framebufferWidth=xn.drawingBufferWidth=Ci[2]=fo[2]=ur.drawingBufferWidth,xn.viewportHeight=xn.framebufferHeight=xn.drawingBufferHeight=Ci[3]=fo[3]=ur.drawingBufferHeight}function $s(){xn.tick+=1,xn.time=kl(),Us(),Dn.procs.poll()}function mi(){Xn.refresh(),Us(),Dn.procs.refresh(),un&&un.update()}function kl(){return(p()-wn)/1e3}mi();function Oo(Ci,fo){var mo;switch(Ci){case"frame":return zu(fo);case"lost":mo=Pi;break;case"restore":mo=Vn;break;case"destroy":mo=ei;break}return mo.push(fo),{cancel:function(){for(var ye=0;ye=0},read:da,destroy:il,_gl:ur,_refresh:mi,poll:function(){$s(),un&&un.update()},now:kl,stats:Kr,getCachedCode:As,preloadCachedCode:Ol});return ir.onDone(null,Bl),Bl}return ul})}}),ux=He({"src/lib/prepare_regl.js"(Y,H){var h=Z3(),x=GI();H.exports=function(E,e,t){var r=E._fullLayout,i=!0;return r._glcanvas.each(function(a){if(a.regl){a.regl.preloadCachedCode(t);return}if(!(a.pick&&!r._has("parcoords"))){try{a.regl=x({canvas:this,attributes:{antialias:!a.pick,preserveDrawingBuffer:!0},pixelRatio:E._context.plotGlPixelRatio||window.devicePixelRatio,extensions:e||[],cachedCode:t||{}})}catch{i=!1}a.regl||(i=!1),i&&this.addEventListener("webglcontextlost",function(o){E&&E.emit&&E.emit("plotly_webglcontextlost",{event:o,layer:a.key})},!1)}}),i||h({container:r._glcontainer.node()}),i}}}),BT=He({"src/traces/scattergl/plot.js"(c,H){var h=gT(),x=kT(),A=EI(),E=qI(),e=Qr(),t=yv().selectMode,r=ux(),i=cu(),a=lw(),o=vT().styleTextSelection,n={};function s(f,p,v,T){var l=f._size,m=f.width*T,w=f.height*T,S=l.l*T,M=l.b*T,_=l.r*T,b=l.t*T,d=l.w*T,u=l.h*T;return[S+p.domain[0]*d,M+v.domain[0]*u,m-_-(1-p.domain[1])*d,w-b-(1-v.domain[1])*u]}var c=H.exports=function(p,v,T){if(T.length){var l=p._fullLayout,m=v._scene,w=v.xaxis,S=v.yaxis,M,_;if(m){var b=r(p,["ANGLE_instanced_arrays","OES_element_index_uint"],n);if(!b){m.init();return}var d=m.count,u=l._glcanvas.data()[0].regl;if(a(p,v,T),m.dirty){if((m.line2d||m.error2d)&&!(m.scatter2d||m.fill2d||m.glText)&&u.clear({color:!0,depth:!0}),m.error2d===!0&&(m.error2d=A(u)),m.line2d===!0&&(m.line2d=x(u)),m.scatter2d===!0&&(m.scatter2d=h(u)),m.fill2d===!0&&(m.fill2d=x(u)),m.glText===!0)for(m.glText=new Array(d),M=0;Mm.glText.length){var g=d-m.glText.length;for(M=0;Mae&&(isNaN(re[fe])||isNaN(re[fe+1]));)fe-=2;V.positions=re.slice(ae,fe+2)}return V}),m.line2d.update(m.lineOptions)),m.error2d){var I=(m.errorXOptions||[]).concat(m.errorYOptions||[]);m.error2d.update(I)}m.scatter2d&&m.scatter2d.update(m.markerOptions),m.fillOrder=e.repeat(null,d),m.fill2d&&(m.fillOptions=m.fillOptions.map(function(V,re){var ae=T[re];if(!(!V||!ae||!ae[0]||!ae[0].trace)){var fe=ae[0],xe=fe.trace,Ae=fe.t,Pe=m.lineOptions[re],Ce,je,at=[];xe._ownfill&&at.push(re),xe._nexttrace&&at.push(re+1),at.length&&(m.fillOrder[re]=at);var tt=[],Je=Pe&&Pe.positions||Ae.positions,Ze,Me;if(xe.fill==="tozeroy"){for(Ze=0;ZeZe&&isNaN(Je[Me+1]);)Me-=2;Je[Ze+1]!==0&&(tt=[Je[Ze],0]),tt=tt.concat(Je.slice(Ze,Me+2)),Je[Me+1]!==0&&(tt=tt.concat([Je[Me],0]))}else if(xe.fill==="tozerox"){for(Ze=0;ZeZe&&isNaN(Je[Me]);)Me-=2;Je[Ze]!==0&&(tt=[0,Je[Ze+1]]),tt=tt.concat(Je.slice(Ze,Me+2)),Je[Me]!==0&&(tt=tt.concat([0,Je[Me+1]]))}else if(xe.fill==="toself"||xe.fill==="tonext"){for(tt=[],Ce=0,V.splitNull=!0,je=0;je-1;for(M=0;Mw&&v||mo,y;for(g?y=v.sizeAvg||Math.max(v.size,3):y=A(c,p),S=0;S{this.draw(),this.dirty=!0,this.planned=null})):(this.draw(),this.dirty=!0,E(()=>{this.dirty=!1})),this)},i.prototype.update=function(...s){if(!s.length)return;for(let p=0;py||!v.lower&&g{c[T+m]=p})}this.scatter.draw(...c)}return this},i.prototype.destroy=function(){return this.traces.forEach(s=>{s.buffer&&s.buffer.destroy&&s.buffer.destroy()}),this.traces=null,this.passes=null,this.scatter.destroy(),this};function a(s,c,f){let p=s.id!=null?s.id:s,v=c,T=f;return p<<16|(v&255)<<8|T&255}function o(s,c,f){let p,v,T,l,m=s[c],w=s[f];return m.length>2?(m[0],m[2],p=m[1],v=m[3]):m.length?(p=m[0],v=m[1]):(m.x,p=m.y,m.x+m.width,v=m.y+m.height),w.length>2?(T=w[0],l=w[2],w[1],w[3]):w.length?(T=w[0],l=w[1]):(T=w.x,w.y,l=w.x+w.width,w.y+w.height),[T,p,l,v]}function n(s){if(typeof s=="number")return[s,s,s,s];if(s.length===2)return[s[0],s[1],s[0],s[1]];{let c=t(s);return[c.x,c.y,c.x+c.width,c.y+c.height]}}}}),eR=He({"src/traces/splom/plot.js"(Y,H){var h=QI(),x=Qr(),A=yc(),E=yv().selectMode;H.exports=function(r,i,a){if(a.length)for(var o=0;o-1,B=E(v)||!!o.selectedpoints||F,O=!0;if(B){var P=o._length;if(o.selectedpoints){s.selectBatch=o.selectedpoints;var N=o.selectedpoints,U={};for(m=0;m=X[te][0]&&U<=X[te][1])return!0;return!1}function c(U){U.attr("x",-h.bar.captureWidth/2).attr("width",h.bar.captureWidth)}function f(U){U.attr("visibility","visible").style("visibility","visible").attr("fill","yellow").attr("opacity",0)}function p(U){if(!U.brush.filterSpecified)return"0,"+U.height;for(var X=v(U.brush.filter.getConsolidated(),U.height),te=[0],ue,ie,le,q=X.length?X[0][0]:null,J=0;JU[1]+te||X=.9*U[1]+.1*U[0]?"n":X<=.9*U[0]+.1*U[1]?"s":"ns"}function l(){x.select(document.body).style("cursor",null)}function m(U){U.attr("stroke-dasharray",p)}function w(U,X){var te=x.select(U).selectAll(".highlight, .highlight-shadow"),ue=X?te.transition().duration(h.bar.snapDuration).each("end",X):te;m(ue)}function S(U,X){var te=U.brush,ue=te.filterSpecified,ie=NaN,le={},q;if(ue){var J=U.height,ee=te.filter.getConsolidated(),Z=v(ee,J),se=NaN,Q=NaN,V=NaN;for(q=0;q<=Z.length;q++){var re=Z[q];if(re&&re[0]<=X&&X<=re[1]){se=q;break}else if(Q=q?q-1:NaN,re&&re[0]>X){V=q;break}}if(ie=se,isNaN(ie)&&(isNaN(Q)||isNaN(V)?ie=isNaN(Q)?V:Q:ie=X-Z[Q][1]=Pe[0]&&Ae<=Pe[1]){le.clickableOrdinalRange=Pe;break}}}return le}function M(U,X){x.event.sourceEvent.stopPropagation();var te=X.height-x.mouse(U)[1]-2*h.verticalPadding,ue=X.unitToPaddedPx.invert(te),ie=X.brush,le=S(X,te),q=le.interval,J=ie.svgBrush;if(J.wasDragged=!1,J.grabbingBar=le.region==="ns",J.grabbingBar){var ee=q.map(X.unitToPaddedPx);J.grabPoint=te-ee[0]-h.verticalPadding,J.barLength=ee[1]-ee[0]}J.clickableOrdinalRange=le.clickableOrdinalRange,J.stayingIntervals=X.multiselect&&ie.filterSpecified?ie.filter.getConsolidated():[],q&&(J.stayingIntervals=J.stayingIntervals.filter(function(Z){return Z[0]!==q[0]&&Z[1]!==q[1]})),J.startExtent=le.region?q[le.region==="s"?1:0]:ue,X.parent.inBrushDrag=!0,J.brushStartCallback()}function _(U,X){x.event.sourceEvent.stopPropagation();var te=X.height-x.mouse(U)[1]-2*h.verticalPadding,ue=X.brush.svgBrush;ue.wasDragged=!0,ue._dragging=!0,ue.grabbingBar?ue.newExtent=[te-ue.grabPoint,te+ue.barLength-ue.grabPoint].map(X.unitToPaddedPx.invert):ue.newExtent=[ue.startExtent,X.unitToPaddedPx.invert(te)].sort(e),X.brush.filterSpecified=!0,ue.extent=ue.stayingIntervals.concat([ue.newExtent]),ue.brushCallback(X),w(U.parentNode)}function b(U,X){var te=X.brush,ue=te.filter,ie=te.svgBrush;ie._dragging||(d(U,X),_(U,X),X.brush.svgBrush.wasDragged=!1),ie._dragging=!1;var le=x.event;le.sourceEvent.stopPropagation();var q=ie.grabbingBar;if(ie.grabbingBar=!1,ie.grabLocation=void 0,X.parent.inBrushDrag=!1,l(),!ie.wasDragged){ie.wasDragged=void 0,ie.clickableOrdinalRange?te.filterSpecified&&X.multiselect?ie.extent.push(ie.clickableOrdinalRange):(ie.extent=[ie.clickableOrdinalRange],te.filterSpecified=!0):q?(ie.extent=ie.stayingIntervals,ie.extent.length===0&&z(te)):z(te),ie.brushCallback(X),w(U.parentNode),ie.brushEndCallback(te.filterSpecified?ue.getConsolidated():[]);return}var J=function(){ue.set(ue.getConsolidated())};if(X.ordinal){var ee=X.unitTickvals;ee[ee.length-1]ie.newExtent[0];ie.extent=ie.stayingIntervals.concat(Z?[ie.newExtent]:[]),ie.extent.length||z(te),ie.brushCallback(X),Z?w(U.parentNode,J):(J(),w(U.parentNode))}else J();ie.brushEndCallback(te.filterSpecified?ue.getConsolidated():[])}function d(U,X){var te=X.height-x.mouse(U)[1]-2*h.verticalPadding,ue=S(X,te),ie="crosshair";ue.clickableOrdinalRange?ie="pointer":ue.region&&(ie=ue.region+"-resize"),x.select(document.body).style("cursor",ie)}function u(U){U.on("mousemove",function(X){x.event.preventDefault(),X.parent.inBrushDrag||d(this,X)}).on("mouseleave",function(X){X.parent.inBrushDrag||l()}).call(x.behavior.drag().on("dragstart",function(X){M(this,X)}).on("drag",function(X){_(this,X)}).on("dragend",function(X){b(this,X)}))}function g(U,X){return U[0]-X[0]}function y(U,X,te){var ue=te._context.staticPlot,ie=U.selectAll(".background").data(E);ie.enter().append("rect").classed("background",!0).call(c).call(f).style("pointer-events",ue?"none":"auto").attr("transform",t(0,h.verticalPadding)),ie.call(u).attr("height",function(J){return J.height-h.verticalPadding});var le=U.selectAll(".highlight-shadow").data(E);le.enter().append("line").classed("highlight-shadow",!0).attr("x",-h.bar.width/2).attr("stroke-width",h.bar.width+h.bar.strokeWidth).attr("stroke",X).attr("opacity",h.bar.strokeOpacity).attr("stroke-linecap","butt"),le.attr("y1",function(J){return J.height}).call(m);var q=U.selectAll(".highlight").data(E);q.enter().append("line").classed("highlight",!0).attr("x",-h.bar.width/2).attr("stroke-width",h.bar.width-h.bar.strokeWidth).attr("stroke",h.bar.fillColor).attr("opacity",h.bar.fillOpacity).attr("stroke-linecap","butt"),q.attr("y1",function(J){return J.height}).call(m)}function R(U,X,te){var ue=U.selectAll("."+h.cn.axisBrush).data(E,A);ue.enter().append("g").classed(h.cn.axisBrush,!0),y(ue,X,te)}function I(U){return U.svgBrush.extent.map(function(X){return X.slice()})}function z(U){U.filterSpecified=!1,U.svgBrush.extent=[[-1/0,1/0]]}function F(U){return function(te){var ue=te.brush,ie=I(ue),le=ie.slice();ue.filter.set(le),U()}}function B(U){for(var X=U.slice(),te=[],ue,ie=X.shift();ie;){for(ue=ie.slice();(ie=X.shift())&&ie[0]<=ue[1];)ue[1]=Math.max(ue[1],ie[1]);te.push(ue)}return te.length===1&&te[0][0]>te[0][1]&&(te=[]),te}function O(){var U=[],X,te;return{set:function(ue){U=ue.map(function(ie){return ie.slice().sort(e)}).sort(g),U.length===1&&U[0][0]===-1/0&&U[0][1]===1/0&&(U=[[0,-1]]),X=B(U),te=U.reduce(function(ie,le){return[Math.min(ie[0],le[0]),Math.max(ie[1],le[1])]},[1/0,-1/0])},get:function(){return U.slice()},getConsolidated:function(){return X},getBounds:function(){return te}}}function P(U,X,te,ue,ie,le){var q=O();return q.set(te),{filter:q,filterSpecified:X,svgBrush:{extent:[],brushStartCallback:ue,brushCallback:F(ie),brushEndCallback:le}}}function N(U,X){if(Array.isArray(U[0])?(U=U.map(function(ue){return ue.sort(e)}),X.multiselect?U=B(U.sort(g)):U=[U[0]]):U=[U.sort(e)],X.tickvals){var te=X.tickvals.slice().sort(e);if(U=U.map(function(ue){var ie=[n(0,te,ue[0],[]),n(1,te,ue[1],[])];if(ie[1]>ie[0])return ie}).filter(function(ue){return ue}),!U.length)return}return U.length>1?U:U[0]}H.exports={makeBrush:P,ensureAxisBrush:R,cleanRanges:N}}}),lR=He({"src/traces/parcoords/defaults.js"(Y,H){var h=Qr(),x=kh().hasColorscale,A=If(),E=Ku().defaults,e=uh(),t=wo(),r=jT(),i=VT(),a=$m().maxDimensionCount,o=cx();function n(c,f,p,v,T){var l=T("line.color",p);if(x(c,"line")&&h.isArrayOrTypedArray(l)){if(l.length)return T("line.colorscale"),A(c,f,v,T,{prefix:"line.",cLetter:"c"}),l.length;f.line.color=p}return 1/0}function s(c,f,p,v){function T(M,_){return h.coerce(c,f,r.dimensions,M,_)}var l=T("values"),m=T("visible");if(l&&l.length||(m=f.visible=!1),m){T("label"),T("tickvals"),T("ticktext"),T("tickformat");var w=T("range");f._ax={_id:"y",type:"linear",showexponent:"all",exponentformat:"B",range:w},t.setConvert(f._ax,v.layout),T("multiselect");var S=T("constraintrange");S&&(f.constraintrange=i.cleanRanges(S,f))}}H.exports=function(f,p,v,T){function l(_,b){return h.coerce(f,p,r,_,b)}var m=f.dimensions;Array.isArray(m)&&m.length>a&&(h.log("parcoords traces support up to "+a+" dimensions at the moment"),m.splice(a));var w=e(f,p,{name:"dimensions",layout:T,handleItemDefaults:s}),S=n(f,p,v,T,l);E(p,T,l),(!Array.isArray(w)||!w.length)&&(p.visible=!1),o(p,w,"values",S);var M=h.extendFlat({},T.font,{size:Math.round(T.font.size/1.2)});h.coerceFont(l,"labelfont",M),h.coerceFont(l,"tickfont",M,{autoShadowDflt:!0}),h.coerceFont(l,"rangefont",M),l("labelangle"),l("labelside"),l("unselected.line.color"),l("unselected.line.opacity")}}}),uR=He({"src/traces/parcoords/calc.js"(Y,H){var h=Qr().isArrayOrTypedArray,x=Eu(),A=Hv().wrap;H.exports=function(t,r){var i,a;return x.hasColorscale(r,"line")&&h(r.line.color)?(i=r.line.color,a=x.extractOpts(r.line).colorscale,x.calc(t,r,{vals:i,containerStr:"line",cLetter:"c"})):(i=E(r._length),a=[[0,r.line.color],[1,r.line.color]]),A({lineColor:i,cscale:a})};function E(e){for(var t=new Array(e),r=0;r>>16,(Y&65280)>>>8,Y&255],alpha:1};if(typeof Y=="number")return{space:"rgb",values:[Y>>>16,(Y&65280)>>>8,Y&255],alpha:1};if(Y=String(Y).toLowerCase(),fx.default[Y])A=fx.default[Y].slice(),e="rgb";else if(Y==="transparent")E=0,e="rgb",A=[0,0,0];else if(Y[0]==="#"){var t=Y.slice(1),r=t.length,i=r<=4;E=1,i?(A=[parseInt(t[0]+t[0],16),parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16)],r===4&&(E=parseInt(t[3]+t[3],16)/255)):(A=[parseInt(t[0]+t[1],16),parseInt(t[2]+t[3],16),parseInt(t[4]+t[5],16)],r===8&&(E=parseInt(t[6]+t[7],16)/255)),A[0]||(A[0]=0),A[1]||(A[1]=0),A[2]||(A[2]=0),e="rgb"}else if(x=/^((?:rgba?|hs[lvb]a?|hwba?|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms|oklch|oklab|color))\s*\(([^\)]*)\)/.exec(Y)){var a=x[1];e=a.replace(/a$/,"");var o=e==="cmyk"?4:e==="gray"?1:3;A=x[2].trim().split(/\s*[,\/]\s*|\s+/),e==="color"&&(e=A.shift()),A=A.map(function(n,s){if(n[n.length-1]==="%")return n=parseFloat(n)/100,s===3?n:e==="rgb"?n*255:e[0]==="h"||e[0]==="l"&&!s?n*100:e==="lab"?n*125:e==="lch"?s<2?n*150:n*360:e[0]==="o"&&!s?n:e==="oklab"?n*.4:e==="oklch"?s<2?n*.4:n*360:n;if(e[s]==="h"||s===2&&e[e.length-1]==="h"){if(hx[n]!==void 0)return hx[n];if(n.endsWith("deg"))return parseFloat(n);if(n.endsWith("turn"))return parseFloat(n)*360;if(n.endsWith("grad"))return parseFloat(n)*360/400;if(n.endsWith("rad"))return parseFloat(n)*180/Math.PI}return n==="none"?0:parseFloat(n)}),E=A.length>o?A.pop():1}else/[0-9](?:\s|\/|,)/.test(Y)&&(A=Y.match(/([0-9]+)/g).map(function(n){return parseFloat(n)}),e=((h=(H=Y.match(/([a-z])/ig))==null?void 0:H.join(""))==null?void 0:h.toLowerCase())||"rgb");return{space:e,values:A,alpha:E}}var fx,qT,hx,fR=bl({"node_modules/color-parse/index.js"(){fx=I0(H3()),qT=cR,hx={red:0,orange:60,yellow:120,green:180,blue:240,purple:300}}}),Km,GT=bl({"node_modules/color-space/rgb.js"(){Km={name:"rgb",min:[0,0,0],max:[255,255,255],channel:["red","green","blue"],alias:["RGB"]}}}),Jm,hR=bl({"node_modules/color-space/hsl.js"(){GT(),Jm={name:"hsl",min:[0,0,0],max:[360,100,100],channel:["hue","saturation","lightness"],alias:["HSL"],rgb:function(Y){var H=Y[0]/360,h=Y[1]/100,x=Y[2]/100,A,E,e,t,r,i=0;if(h===0)return r=x*255,[r,r,r];for(E=x<.5?x*(1+h):x+h-x*h,A=2*x-E,t=[0,0,0];i<3;)e=H+1/3*-(i-1),e<0?e++:e>1&&e--,r=6*e<1?A+(E-A)*6*e:2*e<1?E:3*e<2?A+(E-A)*(2/3-e)*6:A,t[i++]=r*255;return t}},Km.hsl=function(Y){var H=Y[0]/255,h=Y[1]/255,x=Y[2]/255,A=Math.min(H,h,x),E=Math.max(H,h,x),e=E-A,t,r,i;return E===A?t=0:H===E?t=(h-x)/e:h===E?t=2+(x-H)/e:x===E&&(t=4+(H-h)/e),t=Math.min(t*60,360),t<0&&(t+=360),i=(A+E)/2,E===A?r=0:i<=.5?r=e/(E+A):r=e/(2-E-A),[t,r*100,i*100]}}}),HT={};L0(HT,{default:()=>vR});function vR(Y){Array.isArray(Y)&&Y.raw&&(Y=String.raw(...arguments)),Y instanceof Number&&(Y=+Y);var H,h=qT(Y);if(!h.space)return[];const x=h.space[0]==="h"?Jm.min:Km.min,A=h.space[0]==="h"?Jm.max:Km.max;return H=Array(3),H[0]=Math.min(Math.max(h.values[0],x[0]),A[0]),H[1]=Math.min(Math.max(h.values[1],x[1]),A[1]),H[2]=Math.min(Math.max(h.values[2],x[2]),A[2]),h.space[0]==="h"&&(H=Jm.rgb(H)),H.push(Math.min(Math.max(h.alpha,0),1)),H}var dR=bl({"node_modules/color-rgba/index.js"(){fR(),GT(),hR()}}),WT=He({"src/traces/parcoords/helpers.js"(Y){var H=Qr().isTypedArray;Y.convertTypedArray=function(h){return H(h)?Array.prototype.slice.call(h):h},Y.isOrdinal=function(h){return!!h.tickvals},Y.isVisible=function(h){return h.visible||!("visible"in h)}}}),pR=He({"src/traces/parcoords/lines.js"(Y,H){var h=["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(` -`),x=["precision highp float;","","varying vec4 fragColor;","","void main() {"," gl_FragColor = fragColor;","}"].join(` -`),A=$m().maxDimensionCount,E=Qr(),e=1e-6,t=2048,r=new Uint8Array(4),i=new Uint8Array(4),a={shape:[256,1],format:"rgba",type:"uint8",mag:"nearest",min:"nearest"};function o(b){b.read({x:0,y:0,width:1,height:1,data:r})}function n(b,d,u,g,y){var R=b._gl;R.enable(R.SCISSOR_TEST),R.scissor(d,u,g,y),b.clear({color:[0,0,0,0],depth:1})}function s(b,d,u,g,y,R){var I=R.key;function z(F){var B=Math.min(g,y-F*g);F===0&&(window.cancelAnimationFrame(u.currentRafs[I]),delete u.currentRafs[I],n(b,R.scissorX,R.scissorY,R.scissorWidth,R.viewBoxSize[1])),!u.clearOnly&&(R.count=2*B,R.offset=2*F*g,d(R),F*g+B>>8*d)%256/255}function v(b,d,u){for(var g=new Array(b*(A+4)),y=0,R=0;RCe&&(Ce=Q[fe].dim1.canvasX,Ae=fe);ae===0&&n(y,0,0,B.canvasWidth,B.canvasHeight);var je=q(u);for(fe=0;fefe._length&&(Ze=Ze.slice(0,fe._length));var Me=fe.tickvals,we;function he(Et,kt){return{val:Et,text:we[kt]}}function De(Et,kt){return Et.val-kt.val}if(A(Me)&&Me.length){x.isTypedArray(Me)&&(Me=Array.from(Me)),we=fe.ticktext,!A(we)||!we.length?we=Me.map(E(fe.tickformat)):we.length>Me.length?we=we.slice(0,Me.length):Me.length>we.length&&(Me=Me.slice(0,we.length));for(var et=1;et=kt||hr>=Ut)return;var Rr=Ke.lineLayer.readPixel(vr,Ut-1-hr),dr=Rr[3]!==0,wr=dr?Rr[2]+256*(Rr[1]+256*Rr[0]):null,yt={x:vr,y:hr,clientX:Et.clientX,clientY:Et.clientY,dataIndex:Ke.model.key,curveNumber:wr};wr!==Ae&&(dr?J.hover(yt):J.unhover&&J.unhover(yt),Ae=wr)}}),xe.style("opacity",function(Ke){return Ke.pick?0:1}),se.style("background","rgba(255, 255, 255, 0)");var Ce=se.selectAll("."+T.cn.parcoords).data(fe,c);Ce.exit().remove(),Ce.enter().append("g").classed(T.cn.parcoords,!0).style("shape-rendering","crispEdges").style("pointer-events","none"),Ce.attr("transform",function(Ke){return i(Ke.model.translateX,Ke.model.translateY)});var je=Ce.selectAll("."+T.cn.parcoordsControlView).data(f,c);je.enter().append("g").classed(T.cn.parcoordsControlView,!0),je.attr("transform",function(Ke){return i(Ke.model.pad.l,Ke.model.pad.t)});var at=je.selectAll("."+T.cn.yAxis).data(function(Ke){return Ke.dimensions},c);at.enter().append("g").classed(T.cn.yAxis,!0),je.each(function(Ke){N(at,Ke,V)}),xe.each(function(Ke){if(Ke.viewModel){!Ke.lineLayer||J?Ke.lineLayer=m(this,Ke):Ke.lineLayer.update(Ke),(Ke.key||Ke.key===0)&&(Ke.viewModel[Ke.key]=Ke.lineLayer);var Et=!Ke.context||J;Ke.lineLayer.render(Ke.viewModel.panels,Et)}}),at.attr("transform",function(Ke){return i(Ke.xScale(Ke.xIndex),0)}),at.call(h.behavior.drag().origin(function(Ke){return Ke}).on("drag",function(Ke){var Et=Ke.parent;ae.linePickActive(!1),Ke.x=Math.max(-T.overdrag,Math.min(Ke.model.width+T.overdrag,h.event.x)),Ke.canvasX=Ke.x*Ke.model.canvasPixelRatio,at.sort(function(kt,Ut){return kt.x-Ut.x}).each(function(kt,Ut){kt.xIndex=Ut,kt.x=Ke===kt?kt.x:kt.xScale(kt.xIndex),kt.canvasX=kt.x*kt.model.canvasPixelRatio}),N(at,Et,V),at.filter(function(kt){return Math.abs(Ke.xIndex-kt.xIndex)!==0}).attr("transform",function(kt){return i(kt.xScale(kt.xIndex),0)}),h.select(this).attr("transform",i(Ke.x,0)),at.each(function(kt,Ut,Yt){Yt===Ke.parent.key&&(Et.dimensions[Ut]=kt)}),Et.contextLayer&&Et.contextLayer.render(Et.panels,!1,!I(Et)),Et.focusLayer.render&&Et.focusLayer.render(Et.panels)}).on("dragend",function(Ke){var Et=Ke.parent;Ke.x=Ke.xScale(Ke.xIndex),Ke.canvasX=Ke.x*Ke.model.canvasPixelRatio,N(at,Et,V),h.select(this).attr("transform",function(kt){return i(kt.x,0)}),Et.contextLayer&&Et.contextLayer.render(Et.panels,!1,!I(Et)),Et.focusLayer&&Et.focusLayer.render(Et.panels),Et.pickLayer&&Et.pickLayer.render(Et.panels,!0),ae.linePickActive(!0),J&&J.axesMoved&&J.axesMoved(Et.key,Et.dimensions.map(function(kt){return kt.crossfilterDimensionIndex}))})),at.exit().remove();var tt=at.selectAll("."+T.cn.axisOverlays).data(f,c);tt.enter().append("g").classed(T.cn.axisOverlays,!0),tt.selectAll("."+T.cn.axis).remove();var Je=tt.selectAll("."+T.cn.axis).data(f,c);Je.enter().append("g").classed(T.cn.axis,!0),Je.each(function(Ke){var Et=Ke.model.height/Ke.model.tickDistance,kt=Ke.domainScale,Ut=kt.domain();h.select(this).call(h.svg.axis().orient("left").tickSize(4).outerTickSize(2).ticks(Et,Ke.tickFormat).tickValues(Ke.ordinal?Ut:null).tickFormat(function(Yt){return v.isOrdinal(Ke)?Yt:X(Ke.model.dimensions[Ke.visibleIndex],Yt)}).scale(kt)),o.font(Je.selectAll("text"),Ke.model.tickFont)}),Je.selectAll(".domain, .tick>line").attr("fill","none").attr("stroke","black").attr("stroke-opacity",.25).attr("stroke-width","1px"),Je.selectAll("text").style("cursor","default");var Ze=tt.selectAll("."+T.cn.axisHeading).data(f,c);Ze.enter().append("g").classed(T.cn.axisHeading,!0);var Me=Ze.selectAll("."+T.cn.axisTitle).data(f,c);Me.enter().append("text").classed(T.cn.axisTitle,!0).attr("text-anchor","middle").style("cursor","ew-resize").style("pointer-events",ee?"none":"auto"),Me.text(function(Ke){return Ke.label}).each(function(Ke){var Et=h.select(this);o.font(Et,Ke.model.labelFont),a.convertToTspans(Et,ie)}).attr("transform",function(Ke){var Et=P(Ke.model.labelAngle,Ke.model.labelSide),kt=T.axisTitleOffset;return(Et.dir>0?"":i(0,2*kt+Ke.model.height))+r(Et.degrees)+i(-kt*Et.dx,-kt*Et.dy)}).attr("text-anchor",function(Ke){var Et=P(Ke.model.labelAngle,Ke.model.labelSide),kt=Math.abs(Et.dx),Ut=Math.abs(Et.dy);return 2*kt>Ut?Et.dir*Et.dx<0?"start":"end":"middle"});var we=tt.selectAll("."+T.cn.axisExtent).data(f,c);we.enter().append("g").classed(T.cn.axisExtent,!0);var he=we.selectAll("."+T.cn.axisExtentTop).data(f,c);he.enter().append("g").classed(T.cn.axisExtentTop,!0),he.attr("transform",i(0,-T.axisExtentOffset));var De=he.selectAll("."+T.cn.axisExtentTopText).data(f,c);De.enter().append("text").classed(T.cn.axisExtentTopText,!0).call(B),De.text(function(Ke){return te(Ke,!0)}).each(function(Ke){o.font(h.select(this),Ke.model.rangeFont)});var et=we.selectAll("."+T.cn.axisExtentBottom).data(f,c);et.enter().append("g").classed(T.cn.axisExtentBottom,!0),et.attr("transform",function(Ke){return i(0,Ke.model.height+T.axisExtentOffset)});var nt=et.selectAll("."+T.cn.axisExtentBottomText).data(f,c);nt.enter().append("text").classed(T.cn.axisExtentBottomText,!0).attr("dy","0.75em").call(B),nt.text(function(Ke){return te(Ke,!1)}).each(function(Ke){o.font(h.select(this),Ke.model.rangeFont)}),l.ensureAxisBrush(tt,re,ie)}}}),XT=He({"src/traces/parcoords/plot.js"(r,H){var h=gR(),x=ux(),A=WT().isVisible,E={};function e(i,a,o){var n=a.indexOf(o),s=i.indexOf(n);return s===-1&&(s+=a.length),s}function t(i,a){return function(n,s){return e(i,a,n)-e(i,a,s)}}var r=H.exports=function(a,o){var n=a._fullLayout,s=x(a,[],E);if(s){var c={},f={},p={},v={},T=n._size;o.forEach(function(M,_){var b=M[0].trace;p[_]=b.index;var d=v[_]=b.index;c[_]=a.data[d].dimensions,f[_]=a.data[d].dimensions.slice()});var l=function(M,_,b){var d=f[M][_],u=b.map(function(F){return F.slice()}),g="dimensions["+_+"].constraintrange",y=n._tracePreGUI[a._fullData[p[M]]._fullInput.uid];if(y[g]===void 0){var R=d.constraintrange;y[g]=R||null}var I=a._fullData[p[M]].dimensions[_];u.length?(u.length===1&&(u=u[0]),d.constraintrange=u,I.constraintrange=u.slice(),u=[u]):(delete d.constraintrange,delete I.constraintrange,u=null);var z={};z[g]=u,a.emit("plotly_restyle",[z,[v[M]]])},m=function(M){a.emit("plotly_hover",M)},w=function(M){a.emit("plotly_unhover",M)},S=function(M,_){var b=t(_,f[M].filter(A));c[M].sort(b),f[M].filter(function(d){return!A(d)}).sort(function(d){return f[M].indexOf(d)}).forEach(function(d){c[M].splice(c[M].indexOf(d),1),c[M].splice(f[M].indexOf(d),0,d)}),a.emit("plotly_restyle",[{dimensions:[c[M]]},[v[M]]])};h(a,o,{width:T.w,height:T.h,margin:{t:T.t,r:T.r,b:T.b,l:T.l}},{filterChanged:l,hover:m,unhover:w,axesMoved:S})}};r.reglPrecompiled=E}}),mR=He({"src/traces/parcoords/base_plot.js"(Y){var H=yi(),h=$f().getModuleCalcData,x=XT(),A=Xh();Y.name="parcoords",Y.plot=function(E){var e=h(E.calcdata,"parcoords")[0];e.length&&x(E,e)},Y.clean=function(E,e,t,r){var i=r._has&&r._has("parcoords"),a=e._has&&e._has("parcoords");i&&!a&&(r._paperdiv.selectAll(".parcoords").remove(),r._glimages.selectAll("*").remove())},Y.toSVG=function(E){var e=E._fullLayout._glimages,t=H.select(E).selectAll(".svg-container"),r=t.filter(function(a,o){return o===t.size()-1}).selectAll(".gl-canvas-context, .gl-canvas-focus");function i(){var a=this,o=a.toDataURL("image/png"),n=e.append("svg:image");n.attr({xmlns:A.svg,"xlink:href":o,preserveAspectRatio:"none",x:0,y:0,width:a.style.width,height:a.style.height})}r.each(i),window.setTimeout(function(){H.selectAll("#filterBarPattern").attr("id","filterBarPattern")},60)}}}),yR=He({"src/traces/parcoords/base_index.js"(Y,H){H.exports={attributes:jT(),supplyDefaults:lR(),calc:uR(),colorbar:{container:"line",min:"cmin",max:"cmax"},moduleType:"trace",name:"parcoords",basePlotModule:mR(),categories:["gl","regl","noOpacity","noHover"],meta:{}}}}),_R=He({"src/traces/parcoords/index.js"(Y,H){var h=yR();h.plot=XT(),H.exports=h}}),xR=He({"lib/parcoords.js"(Y,H){H.exports=_R()}}),ZT=He({"src/traces/parcats/attributes.js"(Y,H){var h=Po().extendFlat,x=Ll(),A=Mu(),E=eu(),e=us().hovertemplateAttrs,t=Ku().attributes,r=h({editType:"calc"},E("line",{editTypeOverride:"calc"}),{shape:{valType:"enumerated",values:["linear","hspline"],dflt:"linear",editType:"plot"},hovertemplate:e({editType:"plot",arrayOk:!1},{keys:["count","probability"]})});H.exports={domain:t({name:"parcats",trace:!0,editType:"calc"}),hoverinfo:h({},x.hoverinfo,{flags:["count","probability"],editType:"plot",arrayOk:!1}),hoveron:{valType:"enumerated",values:["category","color","dimension"],dflt:"category",editType:"plot"},hovertemplate:e({editType:"plot",arrayOk:!1},{keys:["count","probability","category","categorycount","colorcount","bandcolorcount"]}),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:A({editType:"calc"}),tickfont:A({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:r,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}}}),bR=He({"src/traces/parcats/defaults.js"(Y,H){var h=Qr(),x=kh().hasColorscale,A=If(),E=Ku().defaults,e=uh(),t=ZT(),r=cx(),i=Lf().isTypedArraySpec;function a(n,s,c,f,p){p("line.shape"),p("line.hovertemplate");var v=p("line.color",f.colorway[0]);if(x(n,"line")&&h.isArrayOrTypedArray(v)){if(v.length)return p("line.colorscale"),A(n,s,f,p,{prefix:"line.",cLetter:"c"}),v.length;s.line.color=c}return 1/0}function o(n,s){function c(w,S){return h.coerce(n,s,t.dimensions,w,S)}var f=c("values"),p=c("visible");if(f&&f.length||(p=s.visible=!1),p){c("label"),c("displayindex",s._index);var v=n.categoryarray,T=h.isArrayOrTypedArray(v)&&v.length>0||i(v),l;T&&(l="array");var m=c("categoryorder",l);m==="array"?(c("categoryarray"),c("ticktext")):(delete n.categoryarray,delete n.ticktext),!T&&m==="array"&&(s.categoryorder="trace")}}H.exports=function(s,c,f,p){function v(w,S){return h.coerce(s,c,t,w,S)}var T=e(s,c,{name:"dimensions",handleItemDefaults:o}),l=a(s,c,f,p,v);E(c,p,v),(!Array.isArray(T)||!T.length)&&(c.visible=!1),r(c,T,"values",l),v("hoveron"),v("hovertemplate"),v("arrangement"),v("bundlecolors"),v("sortpaths"),v("counts");var m=p.font;h.coerceFont(v,"labelfont",m,{overrideDflt:{size:Math.round(m.size)}}),h.coerceFont(v,"tickfont",m,{autoShadowDflt:!0,overrideDflt:{size:Math.round(m.size/1.2)}})}}}),wR=He({"src/traces/parcats/calc.js"(Y,H){var h=Hv().wrap,x=kh().hasColorscale,A=Ch(),E=kb(),e=Io(),t=Qr(),r=Vi();H.exports=function(m,w){var S=t.filterVisible(w.dimensions);if(S.length===0)return[];var M=S.map(function(q){var J;if(q.categoryorder==="trace")J=null;else if(q.categoryorder==="array")J=q.categoryarray;else{J=E(q.values);for(var ee=!0,Z=0;Z=l.length||m[l[w]]!==void 0)return!1;m[l[w]]=!0}return!0}}}),TR=He({"src/traces/parcats/parcats.js"(Y,H){var h=yi(),x=(Hp(),Bv(rp)).interpolateNumber,A=m1(),E=xc(),e=Qr(),t=e.strTranslate,r=Io(),i=Uf(),a=jl();function o(Z,se,Q,V){var re=se._context.staticPlot,ae=Z.map(ie.bind(0,se,Q)),fe=V.selectAll("g.parcatslayer").data([null]);fe.enter().append("g").attr("class","parcatslayer").style("pointer-events",re?"none":"all");var xe=fe.selectAll("g.trace.parcats").data(ae,n),Ae=xe.enter().append("g").attr("class","trace parcats");xe.attr("transform",function(he){return t(he.x,he.y)}),Ae.append("g").attr("class","paths");var Pe=xe.select("g.paths"),Ce=Pe.selectAll("path.path").data(function(he){return he.paths},n);Ce.attr("fill",function(he){return he.model.color});var je=Ce.enter().append("path").attr("class","path").attr("stroke-opacity",0).attr("fill",function(he){return he.model.color}).attr("fill-opacity",0);m(je),Ce.attr("d",function(he){return he.svgD}),je.empty()||Ce.sort(c),Ce.exit().remove(),Ce.on("mouseover",f).on("mouseout",p).on("click",l),Ae.append("g").attr("class","dimensions");var at=xe.select("g.dimensions"),tt=at.selectAll("g.dimension").data(function(he){return he.dimensions},n);tt.enter().append("g").attr("class","dimension"),tt.attr("transform",function(he){return t(he.x,0)}),tt.exit().remove();var Je=tt.selectAll("g.category").data(function(he){return he.categories},n),Ze=Je.enter().append("g").attr("class","category");Je.attr("transform",function(he){return t(0,he.y)}),Ze.append("rect").attr("class","catrect").attr("pointer-events","none"),Je.select("rect.catrect").attr("fill","none").attr("width",function(he){return he.width}).attr("height",function(he){return he.height}),M(Ze);var Me=Je.selectAll("rect.bandrect").data(function(he){return he.bands},n);Me.each(function(){e.raiseToTop(this)}),Me.attr("fill",function(he){return he.color});var we=Me.enter().append("rect").attr("class","bandrect").attr("stroke-opacity",0).attr("fill",function(he){return he.color}).attr("fill-opacity",0);Me.attr("fill",function(he){return he.color}).attr("width",function(he){return he.width}).attr("height",function(he){return he.height}).attr("y",function(he){return he.y}).attr("cursor",function(he){return he.parcatsViewModel.arrangement==="fixed"?"default":he.parcatsViewModel.arrangement==="perpendicular"?"ns-resize":"move"}),b(we),Me.exit().remove(),Ze.append("text").attr("class","catlabel").attr("pointer-events","none"),Je.select("text.catlabel").attr("text-anchor",function(he){return s(he)?"start":"end"}).attr("alignment-baseline","middle").style("fill","rgb(0, 0, 0)").attr("x",function(he){return s(he)?he.width+5:-5}).attr("y",function(he){return he.height/2}).text(function(he){return he.model.categoryLabel}).each(function(he){r.font(h.select(this),he.parcatsViewModel.categorylabelfont),a.convertToTspans(h.select(this),se)}),Ze.append("text").attr("class","dimlabel"),Je.select("text.dimlabel").attr("text-anchor","middle").attr("alignment-baseline","baseline").attr("cursor",function(he){return he.parcatsViewModel.arrangement==="fixed"?"default":"ew-resize"}).attr("x",function(he){return he.width/2}).attr("y",-5).text(function(he,De){return De===0?he.parcatsViewModel.model.dimensions[he.model.dimensionInd].dimensionLabel:null}).each(function(he){r.font(h.select(this),he.parcatsViewModel.labelfont)}),Je.selectAll("rect.bandrect").on("mouseover",B).on("mouseout",O),Je.exit().remove(),tt.call(h.behavior.drag().origin(function(he){return{x:he.x,y:0}}).on("dragstart",P).on("drag",N).on("dragend",U)),xe.each(function(he){he.traceSelection=h.select(this),he.pathSelection=h.select(this).selectAll("g.paths").selectAll("path.path"),he.dimensionSelection=h.select(this).selectAll("g.dimensions").selectAll("g.dimension")}),xe.exit().remove()}H.exports=function(Z,se,Q,V){o(Q,Z,V,se)};function n(Z){return Z.key}function s(Z){var se=Z.parcatsViewModel.dimensions.length,Q=Z.parcatsViewModel.dimensions[se-1].model.dimensionInd;return Z.model.dimensionInd===Q}function c(Z,se){return Z.model.rawColor>se.model.rawColor?1:Z.model.rawColor"),Ke=h.mouse(re)[0];E.loneHover({trace:ae,x:Je-xe.left+Ae.left,y:Ze-xe.top+Ae.top,text:nt,color:Z.model.color,borderColor:"black",fontFamily:'Monaco, "Courier New", monospace',fontSize:10,fontColor:Me,idealAlign:Ke1&&Pe.displayInd===Ae.dimensions.length-1?(at=fe.left,tt="left"):(at=fe.left+fe.width,tt="right");var Je=xe.model.count,Ze=xe.model.categoryLabel,Me=Je/xe.parcatsViewModel.model.count,we={countLabel:Je,categoryLabel:Ze,probabilityLabel:Me.toFixed(3)},he=[];xe.parcatsViewModel.hoverinfoItems.indexOf("count")!==-1&&he.push(["Count:",we.countLabel].join(" ")),xe.parcatsViewModel.hoverinfoItems.indexOf("probability")!==-1&&he.push(["P("+we.categoryLabel+"):",we.probabilityLabel].join(" "));var De=he.join("
");return{trace:Ce,x:V*(at-se.left),y:re*(je-se.top),text:De,color:"lightgray",borderColor:"black",fontFamily:'Monaco, "Courier New", monospace',fontSize:12,fontColor:"black",idealAlign:tt,hovertemplate:Ce.hovertemplate,hovertemplateLabels:we,eventData:[{data:Ce._input,fullData:Ce,count:Je,category:Ze,probability:Me}]}}function z(Z,se,Q){var V=[];return h.select(Q.parentNode.parentNode).selectAll("g.category").select("rect.catrect").each(function(){var re=this;V.push(I(Z,se,re))}),V}function F(Z,se,Q){Z._fullLayout._calcInverseTransform(Z);var V=Z._fullLayout._invScaleX,re=Z._fullLayout._invScaleY,ae=Q.getBoundingClientRect(),fe=h.select(Q).datum(),xe=fe.categoryViewModel,Ae=xe.parcatsViewModel,Pe=Ae.model.dimensions[xe.model.dimensionInd],Ce=Ae.trace,je=ae.y+ae.height/2,at,tt;Ae.dimensions.length>1&&Pe.displayInd===Ae.dimensions.length-1?(at=ae.left,tt="left"):(at=ae.left+ae.width,tt="right");var Je=xe.model.categoryLabel,Ze=fe.parcatsViewModel.model.count,Me=0;fe.categoryViewModel.bands.forEach(function(Yt){Yt.color===fe.color&&(Me+=Yt.count)});var we=xe.model.count,he=0;Ae.pathSelection.each(function(Yt){Yt.model.color===fe.color&&(he+=Yt.model.count)});var De=Me/Ze,et=Me/he,nt=Me/we,Ke={countLabel:Me,categoryLabel:Je,probabilityLabel:De.toFixed(3)},Et=[];xe.parcatsViewModel.hoverinfoItems.indexOf("count")!==-1&&Et.push(["Count:",Ke.countLabel].join(" ")),xe.parcatsViewModel.hoverinfoItems.indexOf("probability")!==-1&&(Et.push("P(color ∩ "+Je+"): "+Ke.probabilityLabel),Et.push("P("+Je+" | color): "+et.toFixed(3)),Et.push("P(color | "+Je+"): "+nt.toFixed(3)));var kt=Et.join("
"),Ut=i.mostReadable(fe.color,["black","white"]);return{trace:Ce,x:V*(at-se.left),y:re*(je-se.top),text:kt,color:fe.color,borderColor:"black",fontFamily:'Monaco, "Courier New", monospace',fontColor:Ut,fontSize:10,idealAlign:tt,hovertemplate:Ce.hovertemplate,hovertemplateLabels:Ke,eventData:[{data:Ce._input,fullData:Ce,category:Je,count:Ze,probability:De,categorycount:we,colorcount:he,bandcolorcount:Me}]}}function B(Z){if(!Z.parcatsViewModel.dragDimension&&Z.parcatsViewModel.hoverinfoItems.indexOf("skip")===-1){var se=h.mouse(this)[1];if(se<-1)return;var Q=Z.parcatsViewModel.graphDiv,V=Q._fullLayout,re=V._paperdiv.node().getBoundingClientRect(),ae=Z.parcatsViewModel.hoveron,fe=this;if(ae==="color"?(g(fe),R(fe,"plotly_hover",h.event)):(u(fe),y(fe,"plotly_hover",h.event)),Z.parcatsViewModel.hoverinfoItems.indexOf("none")===-1){var xe;ae==="category"?xe=I(Q,re,fe):ae==="color"?xe=F(Q,re,fe):ae==="dimension"&&(xe=z(Q,re,fe)),xe&&E.loneHover(xe,{container:V._hoverlayer.node(),outerContainer:V._paper.node(),gd:Q})}}}function O(Z){var se=Z.parcatsViewModel;if(!se.dragDimension&&(m(se.pathSelection),M(se.dimensionSelection.selectAll("g.category")),b(se.dimensionSelection.selectAll("g.category").selectAll("rect.bandrect")),E.loneUnhover(se.graphDiv._fullLayout._hoverlayer.node()),se.pathSelection.sort(c),se.hoverinfoItems.indexOf("skip")===-1)){var Q=Z.parcatsViewModel.hoveron,V=this;Q==="color"?R(V,"plotly_unhover",h.event):y(V,"plotly_unhover",h.event)}}function P(Z){Z.parcatsViewModel.arrangement!=="fixed"&&(Z.dragDimensionDisplayInd=Z.model.displayInd,Z.initialDragDimensionDisplayInds=Z.parcatsViewModel.model.dimensions.map(function(se){return se.displayInd}),Z.dragHasMoved=!1,Z.dragCategoryDisplayInd=null,h.select(this).selectAll("g.category").select("rect.catrect").each(function(se){var Q=h.mouse(this)[0],V=h.mouse(this)[1];-2<=Q&&Q<=se.width+2&&-2<=V&&V<=se.height+2&&(Z.dragCategoryDisplayInd=se.model.displayInd,Z.initialDragCategoryDisplayInds=Z.model.categories.map(function(re){return re.displayInd}),se.model.dragY=se.y,e.raiseToTop(this.parentNode),h.select(this.parentNode).selectAll("rect.bandrect").each(function(re){re.yCe.y+Ce.height/2&&(ae.model.displayInd=Ce.model.displayInd,Ce.model.displayInd=xe),Z.dragCategoryDisplayInd=ae.model.displayInd}if(Z.dragCategoryDisplayInd===null||Z.parcatsViewModel.arrangement==="freeform"){re.model.dragX=h.event.x;var je=Z.parcatsViewModel.dimensions[Q],at=Z.parcatsViewModel.dimensions[V];je!==void 0&&re.model.dragXat.x&&(re.model.displayInd=at.model.displayInd,at.model.displayInd=Z.dragDimensionDisplayInd),Z.dragDimensionDisplayInd=re.model.displayInd}J(Z.parcatsViewModel),q(Z.parcatsViewModel),ue(Z.parcatsViewModel),te(Z.parcatsViewModel)}}function U(Z){if(Z.parcatsViewModel.arrangement!=="fixed"&&Z.dragDimensionDisplayInd!==null){h.select(this).selectAll("text").attr("font-weight","normal");var se={},Q=X(Z.parcatsViewModel),V=Z.parcatsViewModel.model.dimensions.map(function(at){return at.displayInd}),re=Z.initialDragDimensionDisplayInds.some(function(at,tt){return at!==V[tt]});re&&V.forEach(function(at,tt){var Je=Z.parcatsViewModel.model.dimensions[tt].containerInd;se["dimensions["+Je+"].displayindex"]=at});var ae=!1;if(Z.dragCategoryDisplayInd!==null){var fe=Z.model.categories.map(function(at){return at.displayInd});if(ae=Z.initialDragCategoryDisplayInds.some(function(at,tt){return at!==fe[tt]}),ae){var xe=Z.model.categories.slice().sort(function(at,tt){return at.displayInd-tt.displayInd}),Ae=xe.map(function(at){return at.categoryValue}),Pe=xe.map(function(at){return at.categoryLabel});se["dimensions["+Z.model.containerInd+"].categoryarray"]=[Ae],se["dimensions["+Z.model.containerInd+"].ticktext"]=[Pe],se["dimensions["+Z.model.containerInd+"].categoryorder"]="array"}}if(Z.parcatsViewModel.hoverinfoItems.indexOf("skip")===-1&&!Z.dragHasMoved&&Z.potentialClickBand&&(Z.parcatsViewModel.hoveron==="color"?R(Z.potentialClickBand,"plotly_click",h.event.sourceEvent):y(Z.potentialClickBand,"plotly_click",h.event.sourceEvent)),Z.model.dragX=null,Z.dragCategoryDisplayInd!==null){var Ce=Z.parcatsViewModel.dimensions[Z.dragDimensionDisplayInd].categories[Z.dragCategoryDisplayInd];Ce.model.dragY=null,Z.dragCategoryDisplayInd=null}Z.dragDimensionDisplayInd=null,Z.parcatsViewModel.dragDimension=null,Z.dragHasMoved=null,Z.potentialClickBand=null,J(Z.parcatsViewModel),q(Z.parcatsViewModel);var je=h.transition().duration(300).ease("cubic-in-out");je.each(function(){ue(Z.parcatsViewModel,!0),te(Z.parcatsViewModel,!0)}).each("end",function(){(re||ae)&&A.restyle(Z.parcatsViewModel.graphDiv,se,[Q])})}}function X(Z){for(var se,Q=Z.graphDiv._fullData,V=0;V=0;Ae--)Pe+="C"+fe[Ae]+","+(se[Ae+1]+V)+" "+ae[Ae]+","+(se[Ae]+V)+" "+(Z[Ae]+Q[Ae])+","+(se[Ae]+V),Pe+="l-"+Q[Ae]+",0 ";return Pe+="Z",Pe}function q(Z){var se=Z.dimensions,Q=Z.model,V=se.map(function(Rr){return Rr.categories.map(function(dr){return dr.y})}),re=Z.model.dimensions.map(function(Rr){return Rr.categories.map(function(dr){return dr.displayInd})}),ae=Z.model.dimensions.map(function(Rr){return Rr.displayInd}),fe=Z.dimensions.map(function(Rr){return Rr.model.dimensionInd}),xe=se.map(function(Rr){return Rr.x}),Ae=se.map(function(Rr){return Rr.width}),Pe=[];for(var Ce in Q.paths)Q.paths.hasOwnProperty(Ce)&&Pe.push(Q.paths[Ce]);function je(Rr){var dr=Rr.categoryInds.map(function(yt,Fe){return re[Fe][yt]}),wr=fe.map(function(yt){return dr[yt]});return wr}Pe.sort(function(Rr,dr){var wr=je(Rr),yt=je(dr);return Z.sortpaths==="backward"&&(wr.reverse(),yt.reverse()),wr.push(Rr.valueInds[0]),yt.push(dr.valueInds[0]),Z.bundlecolors&&(wr.unshift(Rr.rawColor),yt.unshift(dr.rawColor)),wryt?1:0});for(var at=new Array(Pe.length),tt=se[0].model.count,Je=se[0].categories.map(function(Rr){return Rr.height}).reduce(function(Rr,dr){return Rr+dr}),Ze=0;Ze0?we=Je*(Me.count/tt):we=0;for(var he=new Array(V.length),De=0;De1?fe=(Z.width-2*Q-V)/(re-1):fe=0,xe=Q,Ae=xe+fe*ae;var Pe=[],Ce=Z.model.maxCats,je=se.categories.length,at=8,tt=se.count,Je=Z.height-at*(Ce-1),Ze,Me,we,he,De,et=(Ce-je)*at/2,nt=se.categories.map(function(Ke){return{displayInd:Ke.displayInd,categoryInd:Ke.categoryInd}});for(nt.sort(function(Ke,Et){return Ke.displayInd-Et.displayInd}),De=0;De0?Ze=Me.count/tt*Je:Ze=0,we={key:Me.valueInds[0],model:Me,width:V,height:Ze,y:Me.dragY!==null?Me.dragY:et,bands:[],parcatsViewModel:Z},et=et+Ze+at,Pe.push(we);return{key:se.dimensionInd,x:se.dragX!==null?se.dragX:Ae,y:0,width:V,model:se,categories:Pe,parcatsViewModel:Z,dragCategoryDisplayInd:null,dragDimensionDisplayInd:null,initialDragDimensionDisplayInds:null,initialDragCategoryDisplayInds:null,dragHasMoved:null,potentialClickBand:null}}}}),YT=He({"src/traces/parcats/plot.js"(Y,H){var h=TR();H.exports=function(A,E,e,t){var r=A._fullLayout,i=r._paper,a=r._size;h(A,i,E,{width:a.w,height:a.h,margin:{t:a.t,r:a.r,b:a.b,l:a.l}},e,t)}}}),AR=He({"src/traces/parcats/base_plot.js"(Y){var H=$f().getModuleCalcData,h=YT(),x="parcats";Y.name=x,Y.plot=function(A,E,e,t){var r=H(A.calcdata,x);if(r.length){var i=r[0];h(A,i,e,t)}},Y.clean=function(A,E,e,t){var r=t._has&&t._has("parcats"),i=E._has&&E._has("parcats");r&&!i&&t._paperdiv.selectAll(".parcats").remove()}}}),SR=He({"src/traces/parcats/index.js"(Y,H){H.exports={attributes:ZT(),supplyDefaults:bR(),calc:wR(),plot:YT(),colorbar:{container:"line",min:"cmin",max:"cmax"},moduleType:"trace",name:"parcats",basePlotModule:AR(),categories:["noOpacity"],meta:{}}}}),MR=He({"lib/parcats.js"(Y,H){H.exports=SR()}}),dd=He({"src/plots/mapbox/constants.js"(Y,H){var h=jd(),x="1.13.4",A='© OpenStreetMap contributors',E=['© Carto',A].join(" "),e=['Map tiles by Stamen Design','under CC BY 3.0',"|",'Data by OpenStreetMap contributors','under ODbL'].join(" "),t=['Map tiles by Stamen Design','under CC BY 3.0',"|",'Data by OpenStreetMap contributors','under CC BY SA'].join(" "),r={"open-street-map":{id:"osm",version:8,sources:{"plotly-osm-tiles":{type:"raster",attribution:A,tiles:["https://a.tile.openstreetmap.org/{z}/{x}/{y}.png","https://b.tile.openstreetmap.org/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-osm-tiles",type:"raster",source:"plotly-osm-tiles",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"white-bg":{id:"white-bg",version:8,sources:{},layers:[{id:"white-bg",type:"background",paint:{"background-color":"#FFFFFF"},minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"carto-positron":{id:"carto-positron",version:8,sources:{"plotly-carto-positron":{type:"raster",attribution:E,tiles:["https://cartodb-basemaps-c.global.ssl.fastly.net/light_all/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-carto-positron",type:"raster",source:"plotly-carto-positron",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"carto-darkmatter":{id:"carto-darkmatter",version:8,sources:{"plotly-carto-darkmatter":{type:"raster",attribution:E,tiles:["https://cartodb-basemaps-c.global.ssl.fastly.net/dark_all/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-carto-darkmatter",type:"raster",source:"plotly-carto-darkmatter",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"stamen-terrain":{id:"stamen-terrain",version:8,sources:{"plotly-stamen-terrain":{type:"raster",attribution:e,tiles:["https://tiles.stadiamaps.com/tiles/stamen_terrain/{z}/{x}/{y}.png?api_key="],tileSize:256}},layers:[{id:"plotly-stamen-terrain",type:"raster",source:"plotly-stamen-terrain",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"stamen-toner":{id:"stamen-toner",version:8,sources:{"plotly-stamen-toner":{type:"raster",attribution:e,tiles:["https://tiles.stadiamaps.com/tiles/stamen_toner/{z}/{x}/{y}.png?api_key="],tileSize:256}},layers:[{id:"plotly-stamen-toner",type:"raster",source:"plotly-stamen-toner",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"stamen-watercolor":{id:"stamen-watercolor",version:8,sources:{"plotly-stamen-watercolor":{type:"raster",attribution:t,tiles:["https://tiles.stadiamaps.com/tiles/stamen_watercolor/{z}/{x}/{y}.jpg?api_key="],tileSize:256}},layers:[{id:"plotly-stamen-watercolor",type:"raster",source:"plotly-stamen-watercolor",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"}},i=h(r);H.exports={requiredVersion:x,styleUrlPrefix:"mapbox://styles/mapbox/",styleUrlSuffix:"v9",styleValuesMapbox:["basic","streets","outdoors","light","dark","satellite","satellite-streets"],styleValueDflt:"basic",stylesNonMapbox:r,styleValuesNonMapbox:i,traceLayerPrefix:"plotly-trace-layer-",layoutLayerPrefix:"plotly-layout-layer-",wrongVersionErrorMsg:["Your custom plotly.js bundle is not using the correct mapbox-gl version","Please install @plotly/mapbox-gl@"+x+"."].join(` -`),noAccessTokenErrorMsg:["Missing Mapbox access token.","Mapbox trace type require a Mapbox access token to be registered.","For example:"," Plotly.newPlot(gd, data, layout, { mapboxAccessToken: 'my-access-token' });","More info here: https://www.mapbox.com/help/define-access-token/"].join(` -`),missingStyleErrorMsg:["No valid mapbox style found, please set `mapbox.style` to one of:",i.join(", "),"or register a Mapbox access token to use a Mapbox-served style."].join(` -`),multipleTokensErrorMsg:["Set multiple mapbox access token across different mapbox subplot,","using first token found as mapbox-gl does not allow multipleaccess tokens on the same page."].join(` -`),mapOnErrorMsg:"Mapbox error.",mapboxLogo:{path0:"m 10.5,1.24 c -5.11,0 -9.25,4.15 -9.25,9.25 0,5.1 4.15,9.25 9.25,9.25 5.1,0 9.25,-4.15 9.25,-9.25 0,-5.11 -4.14,-9.25 -9.25,-9.25 z m 4.39,11.53 c -1.93,1.93 -4.78,2.31 -6.7,2.31 -0.7,0 -1.41,-0.05 -2.1,-0.16 0,0 -1.02,-5.64 2.14,-8.81 0.83,-0.83 1.95,-1.28 3.13,-1.28 1.27,0 2.49,0.51 3.39,1.42 1.84,1.84 1.89,4.75 0.14,6.52 z",path1:"M 10.5,-0.01 C 4.7,-0.01 0,4.7 0,10.49 c 0,5.79 4.7,10.5 10.5,10.5 5.8,0 10.5,-4.7 10.5,-10.5 C 20.99,4.7 16.3,-0.01 10.5,-0.01 Z m 0,19.75 c -5.11,0 -9.25,-4.15 -9.25,-9.25 0,-5.1 4.14,-9.26 9.25,-9.26 5.11,0 9.25,4.15 9.25,9.25 0,5.13 -4.14,9.26 -9.25,9.26 z",path2:"M 14.74,6.25 C 12.9,4.41 9.98,4.35 8.23,6.1 5.07,9.27 6.09,14.91 6.09,14.91 c 0,0 5.64,1.02 8.81,-2.14 C 16.64,11 16.59,8.09 14.74,6.25 Z m -2.27,4.09 -0.91,1.87 -0.9,-1.87 -1.86,-0.91 1.86,-0.9 0.9,-1.87 0.91,1.87 1.86,0.9 z",polygon:"11.56,12.21 10.66,10.34 8.8,9.43 10.66,8.53 11.56,6.66 12.47,8.53 14.33,9.43 12.47,10.34"},styleRules:{map:"overflow:hidden;position:relative;","missing-css":"display:none;",canary:"background-color:salmon;","ctrl-bottom-left":"position: absolute; pointer-events: none; z-index: 2; bottom: 0; left: 0;","ctrl-bottom-right":"position: absolute; pointer-events: none; z-index: 2; right: 0; bottom: 0;",ctrl:"clear: both; pointer-events: auto; transform: translate(0, 0);","ctrl-attrib.mapboxgl-compact .mapboxgl-ctrl-attrib-inner":"display: none;","ctrl-attrib.mapboxgl-compact:hover .mapboxgl-ctrl-attrib-inner":"display: block; margin-top:2px","ctrl-attrib.mapboxgl-compact:hover":"padding: 2px 24px 2px 4px; visibility: visible; margin-top: 6px;","ctrl-attrib.mapboxgl-compact::after":`content: ""; cursor: pointer; position: absolute; background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"%3E %3Cpath fill="%23333333" fill-rule="evenodd" d="M4,10a6,6 0 1,0 12,0a6,6 0 1,0 -12,0 M9,7a1,1 0 1,0 2,0a1,1 0 1,0 -2,0 M9,10a1,1 0 1,1 2,0l0,3a1,1 0 1,1 -2,0"/%3E %3C/svg%3E'); background-color: rgba(255, 255, 255, 0.5); width: 24px; height: 24px; box-sizing: border-box; border-radius: 12px;`,"ctrl-attrib.mapboxgl-compact":"min-height: 20px; padding: 0; margin: 10px; position: relative; background-color: #fff; border-radius: 3px 12px 12px 3px;","ctrl-bottom-right > .mapboxgl-ctrl-attrib.mapboxgl-compact::after":"bottom: 0; right: 0","ctrl-bottom-left > .mapboxgl-ctrl-attrib.mapboxgl-compact::after":"bottom: 0; left: 0","ctrl-bottom-left .mapboxgl-ctrl":"margin: 0 0 10px 10px; float: left;","ctrl-bottom-right .mapboxgl-ctrl":"margin: 0 10px 10px 0; float: right;","ctrl-attrib":"color: rgba(0, 0, 0, 0.75); text-decoration: none; font-size: 12px","ctrl-attrib a":"color: rgba(0, 0, 0, 0.75); text-decoration: none; font-size: 12px","ctrl-attrib a:hover":"color: inherit; text-decoration: underline;","ctrl-attrib .mapbox-improve-map":"font-weight: bold; margin-left: 2px;","attrib-empty":"display: none;","ctrl-logo":`display:block; width: 21px; height: 21px; background-image: url('data:image/svg+xml;charset=utf-8,%3C?xml version="1.0" encoding="utf-8"?%3E %3Csvg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 21 21" style="enable-background:new 0 0 21 21;" xml:space="preserve"%3E%3Cg transform="translate(0,0.01)"%3E%3Cpath d="m 10.5,1.24 c -5.11,0 -9.25,4.15 -9.25,9.25 0,5.1 4.15,9.25 9.25,9.25 5.1,0 9.25,-4.15 9.25,-9.25 0,-5.11 -4.14,-9.25 -9.25,-9.25 z m 4.39,11.53 c -1.93,1.93 -4.78,2.31 -6.7,2.31 -0.7,0 -1.41,-0.05 -2.1,-0.16 0,0 -1.02,-5.64 2.14,-8.81 0.83,-0.83 1.95,-1.28 3.13,-1.28 1.27,0 2.49,0.51 3.39,1.42 1.84,1.84 1.89,4.75 0.14,6.52 z" style="opacity:0.9;fill:%23ffffff;enable-background:new" class="st0"/%3E%3Cpath d="M 10.5,-0.01 C 4.7,-0.01 0,4.7 0,10.49 c 0,5.79 4.7,10.5 10.5,10.5 5.8,0 10.5,-4.7 10.5,-10.5 C 20.99,4.7 16.3,-0.01 10.5,-0.01 Z m 0,19.75 c -5.11,0 -9.25,-4.15 -9.25,-9.25 0,-5.1 4.14,-9.26 9.25,-9.26 5.11,0 9.25,4.15 9.25,9.25 0,5.13 -4.14,9.26 -9.25,9.26 z" style="opacity:0.35;enable-background:new" class="st1"/%3E%3Cpath d="M 14.74,6.25 C 12.9,4.41 9.98,4.35 8.23,6.1 5.07,9.27 6.09,14.91 6.09,14.91 c 0,0 5.64,1.02 8.81,-2.14 C 16.64,11 16.59,8.09 14.74,6.25 Z m -2.27,4.09 -0.91,1.87 -0.9,-1.87 -1.86,-0.91 1.86,-0.9 0.9,-1.87 0.91,1.87 1.86,0.9 z" style="opacity:0.35;enable-background:new" class="st1"/%3E%3Cpolygon points="11.56,12.21 10.66,10.34 8.8,9.43 10.66,8.53 11.56,6.66 12.47,8.53 14.33,9.43 12.47,10.34 " style="opacity:0.9;fill:%23ffffff;enable-background:new" class="st0"/%3E%3C/g%3E%3C/svg%3E')`}}}}),Qm=He({"src/plots/mapbox/layout_attributes.js"(Y,H){var h=Qr(),x=zi().defaultLine,A=Ku().attributes,E=Mu(),e=bc().textposition,t=Uu().overrideAll,r=cl().templatedArray,i=dd(),a=E({noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0});a.family.dflt="Open Sans Regular, Arial Unicode MS Regular";var o=H.exports=t({_arrayAttrRegexps:[h.counterRegex("mapbox",".layers",!0)],domain:A({name:"mapbox"}),accesstoken:{valType:"string",noBlank:!0,strict:!0},style:{valType:"any",values:i.styleValuesMapbox.concat(i.styleValuesNonMapbox),dflt:i.styleValueDflt},center:{lon:{valType:"number",dflt:0},lat:{valType:"number",dflt:0}},zoom:{valType:"number",dflt:1},bearing:{valType:"number",dflt:0},pitch:{valType:"number",dflt:0},bounds:{west:{valType:"number"},east:{valType:"number"},south:{valType:"number"},north:{valType:"number"}},layers:r("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:x},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:x}},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:a,textposition:h.extendFlat({},e,{arrayOk:!1})}})},"plot","from-root");o.uirevision={valType:"any",editType:"none"}}}),vx=He({"src/traces/scattermapbox/attributes.js"(Y,H){var h=us().hovertemplateAttrs,x=us().texttemplateAttrs,A=_v(),E=Xp(),e=bc(),t=Qm(),r=Ll(),i=eu(),a=Po().extendFlat,o=Uu().overrideAll,n=Qm(),s=E.line,c=E.marker;H.exports=o({lon:E.lon,lat:E.lat,cluster:{enabled:{valType:"boolean"},maxzoom:a({},n.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:a({},c.opacity,{dflt:1})},mode:a({},e.mode,{dflt:"markers"}),text:a({},e.text,{}),texttemplate:x({editType:"plot"},{keys:["lat","lon","text"]}),hovertext:a({},e.hovertext,{}),line:{color:s.color,width:s.width},connectgaps:e.connectgaps,marker:a({symbol:{valType:"string",dflt:"circle",arrayOk:!0},angle:{valType:"number",dflt:"auto",arrayOk:!0},allowoverlap:{valType:"boolean",dflt:!1},opacity:c.opacity,size:c.size,sizeref:c.sizeref,sizemin:c.sizemin,sizemode:c.sizemode},i("marker")),fill:E.fill,fillcolor:A(),textfont:t.layers.symbol.textfont,textposition:t.layers.symbol.textposition,below:{valType:"string"},selected:{marker:e.selected.marker},unselected:{marker:e.unselected.marker},hoverinfo:a({},r.hoverinfo,{flags:["lon","lat","text","name"]}),hovertemplate:h()},"calc","nested")}}),$T=He({"src/traces/scattermapbox/constants.js"(Y,H){var h=["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"];H.exports={isSupportedFont:function(x){return h.indexOf(x)!==-1}}}}),ER=He({"src/traces/scattermapbox/defaults.js"(Y,H){var h=Qr(),x=cu(),A=Zh(),E=rv(),e=av(),t=bv(),r=vx(),i=$T().isSupportedFont;H.exports=function(n,s,c,f){function p(g,y){return h.coerce(n,s,r,g,y)}function v(g,y){return h.coerce2(n,s,r,g,y)}var T=a(n,s,p);if(!T){s.visible=!1;return}if(p("text"),p("texttemplate"),p("hovertext"),p("hovertemplate"),p("mode"),p("below"),x.hasMarkers(s)){A(n,s,c,f,p,{noLine:!0,noAngle:!0}),p("marker.allowoverlap"),p("marker.angle");var l=s.marker;l.symbol!=="circle"&&(h.isArrayOrTypedArray(l.size)&&(l.size=l.size[0]),h.isArrayOrTypedArray(l.color)&&(l.color=l.color[0]))}x.hasLines(s)&&(E(n,s,c,f,p,{noDash:!0}),p("connectgaps"));var m=v("cluster.maxzoom"),w=v("cluster.step"),S=v("cluster.color",s.marker&&s.marker.color||c),M=v("cluster.size"),_=v("cluster.opacity"),b=m!==!1||w!==!1||S!==!1||M!==!1||_!==!1,d=p("cluster.enabled",b);if(d||x.hasText(s)){var u=f.font.family;e(n,s,f,p,{noSelect:!0,noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,font:{family:i(u)?u:"Open Sans Regular",weight:f.font.weight,style:f.font.style,size:f.font.size,color:f.font.color}})}p("fill"),s.fill!=="none"&&t(n,s,c,p),h.coerceSelectionMarkerOpacity(s,p)};function a(o,n,s){var c=s("lon")||[],f=s("lat")||[],p=Math.min(c.length,f.length);return n._length=p,p}}}),KT=He({"src/traces/scattermapbox/format_labels.js"(Y,H){var h=wo();H.exports=function(A,E,e){var t={},r=e[E.subplot]._subplot,i=r.mockAxis,a=A.lonlat;return t.lonLabel=h.tickText(i,i.c2l(a[0]),!0).text,t.latLabel=h.tickText(i,i.c2l(a[1]),!0).text,t}}}),JT=He({"src/plots/mapbox/convert_text_opts.js"(Y,H){var h=Qr();H.exports=function(A,E){var e=A.split(" "),t=e[0],r=e[1],i=h.isArrayOrTypedArray(E)?h.mean(E):E,a=.5+i/100,o=1.5+i/100,n=["",""],s=[0,0];switch(t){case"top":n[0]="top",s[1]=-o;break;case"bottom":n[0]="bottom",s[1]=o;break}switch(r){case"left":n[1]="right",s[0]=-a;break;case"right":n[1]="left",s[0]=a;break}var c;return n[0]&&n[1]?c=n.join("-"):n[0]?c=n[0]:n[1]?c=n[1]:c="center",{anchor:c,offset:s}}}}),kR=He({"src/traces/scattermapbox/convert.js"(Y,H){var h=Vi(),x=Qr(),A=qo().BADNUM,E=ip(),e=Eu(),t=Io(),r=U0(),i=cu(),a=$T().isSupportedFont,o=JT(),n=Dh().appendArrayPointValue,s=jl().NEWLINES,c=jl().BR_TAG_ALL;H.exports=function(_,b){var d=b[0].trace,u=d.visible===!0&&d._length!==0,g=d.fill!=="none",y=i.hasLines(d),R=i.hasMarkers(d),I=i.hasText(d),z=R&&d.marker.symbol==="circle",F=R&&d.marker.symbol!=="circle",B=d.cluster&&d.cluster.enabled,O=f("fill"),P=f("line"),N=f("circle"),U=f("symbol"),X={fill:O,line:P,circle:N,symbol:U};if(!u)return X;var te;if((g||y)&&(te=E.calcTraceToLineCoords(b)),g&&(O.geojson=E.makePolygon(te),O.layout.visibility="visible",x.extendFlat(O.paint,{"fill-color":d.fillcolor})),y&&(P.geojson=E.makeLine(te),P.layout.visibility="visible",x.extendFlat(P.paint,{"line-width":d.line.width,"line-color":d.line.color,"line-opacity":d.opacity})),z){var ue=p(b);N.geojson=ue.geojson,N.layout.visibility="visible",B&&(N.filter=["!",["has","point_count"]],X.cluster={type:"circle",filter:["has","point_count"],layout:{visibility:"visible"},paint:{"circle-color":w(d.cluster.color,d.cluster.step),"circle-radius":w(d.cluster.size,d.cluster.step),"circle-opacity":w(d.cluster.opacity,d.cluster.step)}},X.clusterCount={type:"symbol",filter:["has","point_count"],paint:{},layout:{"text-field":"{point_count_abbreviated}","text-font":S(d),"text-size":12}}),x.extendFlat(N.paint,{"circle-color":ue.mcc,"circle-radius":ue.mrc,"circle-opacity":ue.mo})}if(z&&B&&(N.filter=["!",["has","point_count"]]),(F||I)&&(U.geojson=v(b,_),x.extendFlat(U.layout,{visibility:"visible","icon-image":"{symbol}-15","text-field":"{text}"}),F&&(x.extendFlat(U.layout,{"icon-size":d.marker.size/10}),"angle"in d.marker&&d.marker.angle!=="auto"&&x.extendFlat(U.layout,{"icon-rotate":{type:"identity",property:"angle"},"icon-rotation-alignment":"map"}),U.layout["icon-allow-overlap"]=d.marker.allowoverlap,x.extendFlat(U.paint,{"icon-opacity":d.opacity*d.marker.opacity,"icon-color":d.marker.color})),I)){var ie=(d.marker||{}).size,le=o(d.textposition,ie);x.extendFlat(U.layout,{"text-size":d.textfont.size,"text-anchor":le.anchor,"text-offset":le.offset,"text-font":S(d)}),x.extendFlat(U.paint,{"text-color":d.textfont.color,"text-opacity":d.opacity})}return X};function f(M){return{type:M,geojson:E.makeBlank(),layout:{visibility:"none"},filter:null,paint:{}}}function p(M){var _=M[0].trace,b=_.marker,d=_.selectedpoints,u=x.isArrayOrTypedArray(b.color),g=x.isArrayOrTypedArray(b.size),y=x.isArrayOrTypedArray(b.opacity),R;function I(ie){return _.opacity*ie}function z(ie){return ie/2}var F;u&&(e.hasColorscale(_,"marker")?F=e.makeColorScaleFuncFromTrace(b):F=x.identity);var B;g&&(B=r(_));var O;y&&(O=function(ie){var le=h(ie)?+x.constrain(ie,0,1):0;return I(le)});var P=[];for(R=0;R850?R+=" Black":u>750?R+=" Extra Bold":u>650?R+=" Bold":u>550?R+=" Semi Bold":u>450?R+=" Medium":u>350?R+=" Regular":u>250?R+=" Light":u>150?R+=" Extra Light":R+=" Thin"):g.slice(0,2).join(" ")==="Open Sans"?(R="Open Sans",u>750?R+=" Extrabold":u>650?R+=" Bold":u>550?R+=" Semibold":u>350?R+=" Regular":R+=" Light"):g.slice(0,3).join(" ")==="Klokantech Noto Sans"&&(R="Klokantech Noto Sans",g[3]==="CJK"&&(R+=" CJK"),R+=u>500?" Bold":" Regular")),y&&(R+=" Italic"),R==="Open Sans Regular Italic"?R="Open Sans Italic":R==="Open Sans Regular Bold"?R="Open Sans Bold":R==="Open Sans Regular Bold Italic"?R="Open Sans Bold Italic":R==="Klokantech Noto Sans Regular Italic"&&(R="Klokantech Noto Sans Italic"),a(R)||(R=b);var I=R.split(", ");return I}}}),CR=He({"src/traces/scattermapbox/plot.js"(Y,H){var h=Qr(),x=kR(),A=dd().traceLayerPrefix,E={cluster:["cluster","clusterCount","circle"],nonCluster:["fill","line","circle","symbol"]};function e(r,i,a,o){this.type="scattermapbox",this.subplot=r,this.uid=i,this.clusterEnabled=a,this.isHidden=o,this.sourceIds={fill:"source-"+i+"-fill",line:"source-"+i+"-line",circle:"source-"+i+"-circle",symbol:"source-"+i+"-symbol",cluster:"source-"+i+"-circle",clusterCount:"source-"+i+"-circle"},this.layerIds={fill:A+i+"-fill",line:A+i+"-line",circle:A+i+"-circle",symbol:A+i+"-symbol",cluster:A+i+"-cluster",clusterCount:A+i+"-cluster-count"},this.below=null}var t=e.prototype;t.addSource=function(r,i,a){var o={type:"geojson",data:i.geojson};a&&a.enabled&&h.extendFlat(o,{cluster:!0,clusterMaxZoom:a.maxzoom});var n=this.subplot.map.getSource(this.sourceIds[r]);n?n.setData(i.geojson):this.subplot.map.addSource(this.sourceIds[r],o)},t.setSourceData=function(r,i){this.subplot.map.getSource(this.sourceIds[r]).setData(i.geojson)},t.addLayer=function(r,i,a){var o={type:i.type,id:this.layerIds[r],source:this.sourceIds[r],layout:i.layout,paint:i.paint};i.filter&&(o.filter=i.filter);for(var n=this.layerIds[r],s,c=this.subplot.getMapLayers(),f=0;f=0;y--){var R=g[y];n.removeLayer(v.layerIds[R])}u||n.removeSource(v.sourceIds.circle)}function m(u){for(var g=E.nonCluster,y=0;y=0;y--){var R=g[y];n.removeLayer(v.layerIds[R]),u||n.removeSource(v.sourceIds[R])}}function S(u){p?l(u):w(u)}function M(u){f?T(u):m(u)}function _(){for(var u=f?E.cluster:E.nonCluster,g=0;g=0;o--){var n=a[o];i.removeLayer(this.layerIds[n]),i.removeSource(this.sourceIds[n])}},H.exports=function(i,a){var o=a[0].trace,n=o.cluster&&o.cluster.enabled,s=o.visible!==!0,c=new e(i,o.uid,n,s),f=x(i.gd,a),p=c.below=i.belowLookup["trace-"+o.uid],v,T,l;if(n)for(c.addSource("circle",f.circle,o.cluster),v=0;v=0?Math.floor((o+180)/360):Math.ceil((o-180)/360),M=S*360,_=o-M;function b(B){var O=B.lonlat;if(O[0]===e||m&&T.indexOf(B.i+1)===-1)return 1/0;var P=x.modHalf(O[0],360),N=O[1],U=v.project([P,N]),X=U.x-f.c2p([_,N]),te=U.y-p.c2p([P,n]),ue=Math.max(3,B.mrc||0);return Math.max(Math.sqrt(X*X+te*te)-ue,1-3/ue)}if(h.getClosest(s,b,a),a.index!==!1){var d=s[a.index],u=d.lonlat,g=[x.modHalf(u[0],360)+M,u[1]],y=f.c2p(g),R=p.c2p(g),I=d.mrc||1;a.x0=y-I,a.x1=y+I,a.y0=R-I,a.y1=R+I;var z={};z[c.subplot]={_subplot:v};var F=c._module.formatLabels(d,c,z);return a.lonLabel=F.lonLabel,a.latLabel=F.latLabel,a.color=A(c,d),a.extraText=i(c,d,s[0].t.labels),a.hovertemplate=c.hovertemplate,[a]}}function i(a,o,n){if(a.hovertemplate)return;var s=o.hi||a.hoverinfo,c=s.split("+"),f=c.indexOf("all")!==-1,p=c.indexOf("lon")!==-1,v=c.indexOf("lat")!==-1,T=o.lonlat,l=[];function m(w){return w+"°"}return f||p&&v?l.push("("+m(T[1])+", "+m(T[0])+")"):p?l.push(n.lon+m(T[0])):v&&l.push(n.lat+m(T[1])),(f||c.indexOf("text")!==-1)&&E(o,a,l),l.join("
")}H.exports={hoverPoints:r,getExtraText:i}}}),LR=He({"src/traces/scattermapbox/event_data.js"(Y,H){H.exports=function(x,A){return x.lon=A.lon,x.lat=A.lat,x}}}),PR=He({"src/traces/scattermapbox/select.js"(Y,H){var h=Qr(),x=cu(),A=qo().BADNUM;H.exports=function(e,t){var r=e.cd,i=e.xaxis,a=e.yaxis,o=[],n=r[0].trace,s;if(!x.hasMarkers(n))return[];if(t===!1)for(s=0;s"u"&&(C=1e-6);var G,oe,_e,ke,Ue;for(_e=k,Ue=0;Ue<8;Ue++){if(ke=this.sampleCurveX(_e)-k,Math.abs(ke)oe)return oe;for(;Gke?G=_e:oe=_e,_e=(oe-G)*.5+G}return _e},a.prototype.solve=function(k,C){return this.sampleCurveY(this.solveCurveX(k,C))};var o=n;function n(k,C){this.x=k,this.y=C}n.prototype={clone:function(){return new n(this.x,this.y)},add:function(k){return this.clone()._add(k)},sub:function(k){return this.clone()._sub(k)},multByPoint:function(k){return this.clone()._multByPoint(k)},divByPoint:function(k){return this.clone()._divByPoint(k)},mult:function(k){return this.clone()._mult(k)},div:function(k){return this.clone()._div(k)},rotate:function(k){return this.clone()._rotate(k)},rotateAround:function(k,C){return this.clone()._rotateAround(k,C)},matMult:function(k){return this.clone()._matMult(k)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(k){return this.x===k.x&&this.y===k.y},dist:function(k){return Math.sqrt(this.distSqr(k))},distSqr:function(k){var C=k.x-this.x,G=k.y-this.y;return C*C+G*G},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(k){return Math.atan2(this.y-k.y,this.x-k.x)},angleWith:function(k){return this.angleWithSep(k.x,k.y)},angleWithSep:function(k,C){return Math.atan2(this.x*C-this.y*k,this.x*k+this.y*C)},_matMult:function(k){var C=k[0]*this.x+k[1]*this.y,G=k[2]*this.x+k[3]*this.y;return this.x=C,this.y=G,this},_add:function(k){return this.x+=k.x,this.y+=k.y,this},_sub:function(k){return this.x-=k.x,this.y-=k.y,this},_mult:function(k){return this.x*=k,this.y*=k,this},_div:function(k){return this.x/=k,this.y/=k,this},_multByPoint:function(k){return this.x*=k.x,this.y*=k.y,this},_divByPoint:function(k){return this.x/=k.x,this.y/=k.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var k=this.y;return this.y=this.x,this.x=-k,this},_rotate:function(k){var C=Math.cos(k),G=Math.sin(k),oe=C*this.x-G*this.y,_e=G*this.x+C*this.y;return this.x=oe,this.y=_e,this},_rotateAround:function(k,C){var G=Math.cos(k),oe=Math.sin(k),_e=C.x+G*(this.x-C.x)-oe*(this.y-C.y),ke=C.y+oe*(this.x-C.x)+G*(this.y-C.y);return this.x=_e,this.y=ke,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},n.convert=function(k){return k instanceof n?k:Array.isArray(k)?new n(k[0],k[1]):k};var s=typeof self<"u"?self:{};function c(k,C){if(Array.isArray(k)){if(!Array.isArray(C)||k.length!==C.length)return!1;for(var G=0;G=1)return 1;var C=k*k,G=C*k;return 4*(k<.5?G:3*(k-C)+G-.75)}function v(k,C,G,oe){var _e=new i(k,C,G,oe);return function(ke){return _e.solve(ke)}}var T=v(.25,.1,.25,1);function l(k,C,G){return Math.min(G,Math.max(C,k))}function m(k,C,G){var oe=G-C,_e=((k-C)%oe+oe)%oe+C;return _e===C?G:_e}function w(k,C,G){if(!k.length)return G(null,[]);var oe=k.length,_e=new Array(k.length),ke=null;k.forEach(function(Ue,ct){C(Ue,function(Pt,Gt){Pt&&(ke=Pt),_e[ct]=Gt,--oe===0&&G(ke,_e)})})}function S(k){var C=[];for(var G in k)C.push(k[G]);return C}function M(k,C){var G=[];for(var oe in k)oe in C||G.push(oe);return G}function _(k){for(var C=[],G=arguments.length-1;G-- >0;)C[G]=arguments[G+1];for(var oe=0,_e=C;oe<_e.length;oe+=1){var ke=_e[oe];for(var Ue in ke)k[Ue]=ke[Ue]}return k}function b(k,C){for(var G={},oe=0;oe>C/4).toString(16):([1e7]+-[1e3]+-4e3+-8e3+-1e11).replace(/[018]/g,k)}return k()}function y(k){return k<=1?1:Math.pow(2,Math.ceil(Math.log(k)/Math.LN2))}function R(k){return k?/^[0-9a-f]{8}-[0-9a-f]{4}-[4][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(k):!1}function I(k,C){k.forEach(function(G){C[G]&&(C[G]=C[G].bind(C))})}function z(k,C){return k.indexOf(C,k.length-C.length)!==-1}function F(k,C,G){var oe={};for(var _e in k)oe[_e]=C.call(G||this,k[_e],_e,k);return oe}function B(k,C,G){var oe={};for(var _e in k)C.call(G||this,k[_e],_e,k)&&(oe[_e]=k[_e]);return oe}function O(k){return Array.isArray(k)?k.map(O):typeof k=="object"&&k?F(k,O):k}function P(k,C){for(var G=0;G=0)return!0;return!1}var N={};function U(k){N[k]||(typeof console<"u"&&console.warn(k),N[k]=!0)}function X(k,C,G){return(G.y-k.y)*(C.x-k.x)>(C.y-k.y)*(G.x-k.x)}function te(k){for(var C=0,G=0,oe=k.length,_e=oe-1,ke=void 0,Ue=void 0;G@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,G={};if(k.replace(C,function(_e,ke,Ue,ct){var Pt=Ue||ct;return G[ke]=Pt?Pt.toLowerCase():!0,""}),G["max-age"]){var oe=parseInt(G["max-age"],10);isNaN(oe)?delete G["max-age"]:G["max-age"]=oe}return G}var q=null;function J(k){if(q==null){var C=k.navigator?k.navigator.userAgent:null;q=!!k.safari||!!(C&&(/\b(iPad|iPhone|iPod)\b/.test(C)||C.match("Safari")&&!C.match("Chrome")))}return q}function ee(k){try{var C=s[k];return C.setItem("_mapbox_test_",1),C.removeItem("_mapbox_test_"),!0}catch{return!1}}function Z(k){return s.btoa(encodeURIComponent(k).replace(/%([0-9A-F]{2})/g,function(C,G){return String.fromCharCode(+("0x"+G))}))}function se(k){return decodeURIComponent(s.atob(k).split("").map(function(C){return"%"+("00"+C.charCodeAt(0).toString(16)).slice(-2)}).join(""))}var Q=s.performance&&s.performance.now?s.performance.now.bind(s.performance):Date.now.bind(Date),V=s.requestAnimationFrame||s.mozRequestAnimationFrame||s.webkitRequestAnimationFrame||s.msRequestAnimationFrame,re=s.cancelAnimationFrame||s.mozCancelAnimationFrame||s.webkitCancelAnimationFrame||s.msCancelAnimationFrame,ae,fe,xe={now:Q,frame:function(C){var G=V(C);return{cancel:function(){return re(G)}}},getImageData:function(C,G){G===void 0&&(G=0);var oe=s.document.createElement("canvas"),_e=oe.getContext("2d");if(!_e)throw new Error("failed to create canvas 2d context");return oe.width=C.width,oe.height=C.height,_e.drawImage(C,0,0,C.width,C.height),_e.getImageData(-G,-G,C.width+2*G,C.height+2*G)},resolveURL:function(C){return ae||(ae=s.document.createElement("a")),ae.href=C,ae.href},hardwareConcurrency:s.navigator&&s.navigator.hardwareConcurrency||4,get devicePixelRatio(){return s.devicePixelRatio},get prefersReducedMotion(){return s.matchMedia?(fe==null&&(fe=s.matchMedia("(prefers-reduced-motion: reduce)")),fe.matches):!1}},Ae={API_URL:"https://api.mapbox.com",get EVENTS_URL(){return this.API_URL?this.API_URL.indexOf("https://api.mapbox.cn")===0?"https://events.mapbox.cn/events/v2":this.API_URL.indexOf("https://api.mapbox.com")===0?"https://events.mapbox.com/events/v2":null:null},FEEDBACK_URL:"https://apps.mapbox.com/feedback",REQUIRE_ACCESS_TOKEN:!0,ACCESS_TOKEN:null,MAX_PARALLEL_IMAGE_REQUESTS:16},Pe={supported:!1,testSupport:Je},Ce,je=!1,at,tt=!1;s.document&&(at=s.document.createElement("img"),at.onload=function(){Ce&&Ze(Ce),Ce=null,tt=!0},at.onerror=function(){je=!0,Ce=null},at.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=");function Je(k){je||!at||(tt?Ze(k):Ce=k)}function Ze(k){var C=k.createTexture();k.bindTexture(k.TEXTURE_2D,C);try{if(k.texImage2D(k.TEXTURE_2D,0,k.RGBA,k.RGBA,k.UNSIGNED_BYTE,at),k.isContextLost())return;Pe.supported=!0}catch{}k.deleteTexture(C),je=!0}var Me="01";function we(){for(var k="1",C="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",G="",oe=0;oe<10;oe++)G+=C[Math.floor(Math.random()*62)];var _e=720*60*1e3,ke=[k,Me,G].join(""),Ue=Date.now()+_e;return{token:ke,tokenExpiresAt:Ue}}var he=function(C,G){this._transformRequestFn=C,this._customAccessToken=G,this._createSkuToken()};he.prototype._createSkuToken=function(){var C=we();this._skuToken=C.token,this._skuTokenExpiresAt=C.tokenExpiresAt},he.prototype._isSkuTokenExpired=function(){return Date.now()>this._skuTokenExpiresAt},he.prototype.transformRequest=function(C,G){return this._transformRequestFn?this._transformRequestFn(C,G)||{url:C}:{url:C}},he.prototype.normalizeStyleURL=function(C,G){if(!De(C))return C;var oe=Ut(C);return oe.path="/styles/v1"+oe.path,this._makeAPIURL(oe,this._customAccessToken||G)},he.prototype.normalizeGlyphsURL=function(C,G){if(!De(C))return C;var oe=Ut(C);return oe.path="/fonts/v1"+oe.path,this._makeAPIURL(oe,this._customAccessToken||G)},he.prototype.normalizeSourceURL=function(C,G){if(!De(C))return C;var oe=Ut(C);return oe.path="/v4/"+oe.authority+".json",oe.params.push("secure"),this._makeAPIURL(oe,this._customAccessToken||G)},he.prototype.normalizeSpriteURL=function(C,G,oe,_e){var ke=Ut(C);return De(C)?(ke.path="/styles/v1"+ke.path+"/sprite"+G+oe,this._makeAPIURL(ke,this._customAccessToken||_e)):(ke.path+=""+G+oe,Yt(ke))},he.prototype.normalizeTileURL=function(C,G){if(this._isSkuTokenExpired()&&this._createSkuToken(),C&&!De(C))return C;var oe=Ut(C),_e=/(\.(png|jpg)\d*)(?=$)/,ke=/^.+\/v4\//,Ue=xe.devicePixelRatio>=2||G===512?"@2x":"",ct=Pe.supported?".webp":"$1";oe.path=oe.path.replace(_e,""+Ue+ct),oe.path=oe.path.replace(ke,"/"),oe.path="/v4"+oe.path;var Pt=this._customAccessToken||Et(oe.params)||Ae.ACCESS_TOKEN;return Ae.REQUIRE_ACCESS_TOKEN&&Pt&&this._skuToken&&oe.params.push("sku="+this._skuToken),this._makeAPIURL(oe,Pt)},he.prototype.canonicalizeTileURL=function(C,G){var oe="/v4/",_e=/\.[\w]+$/,ke=Ut(C);if(!ke.path.match(/(^\/v4\/)/)||!ke.path.match(_e))return C;var Ue="mapbox://tiles/";Ue+=ke.path.replace(oe,"");var ct=ke.params;return G&&(ct=ct.filter(function(Pt){return!Pt.match(/^access_token=/)})),ct.length&&(Ue+="?"+ct.join("&")),Ue},he.prototype.canonicalizeTileset=function(C,G){for(var oe=G?De(G):!1,_e=[],ke=0,Ue=C.tiles||[];ke=0&&C.params.splice(ke,1)}if(_e.path!=="/"&&(C.path=""+_e.path+C.path),!Ae.REQUIRE_ACCESS_TOKEN)return Yt(C);if(G=G||Ae.ACCESS_TOKEN,!G)throw new Error("An API access token is required to use Mapbox GL. "+oe);if(G[0]==="s")throw new Error("Use a public access token (pk.*) with Mapbox GL, not a secret access token (sk.*). "+oe);return C.params=C.params.filter(function(Ue){return Ue.indexOf("access_token")===-1}),C.params.push("access_token="+G),Yt(C)};function De(k){return k.indexOf("mapbox:")===0}var et=/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/|\?|$)/i;function nt(k){return et.test(k)}function Ke(k){return k.indexOf("sku=")>0&&nt(k)}function Et(k){for(var C=0,G=k;C=1&&s.localStorage.setItem(G,JSON.stringify(this.eventData))}catch{U("Unable to write to LocalStorage")}},Rr.prototype.processRequests=function(C){},Rr.prototype.postEvent=function(C,G,oe,_e){var ke=this;if(Ae.EVENTS_URL){var Ue=Ut(Ae.EVENTS_URL);Ue.params.push("access_token="+(_e||Ae.ACCESS_TOKEN||""));var ct={event:this.type,created:new Date(C).toISOString(),sdkIdentifier:"mapbox-gl-js",sdkVersion:r,skuId:Me,userId:this.anonId},Pt=G?_(ct,G):ct,Gt={url:Yt(Ue),headers:{"Content-Type":"text/plain"},body:JSON.stringify([Pt])};this.pendingRequest=Gr(Gt,function(tr){ke.pendingRequest=null,oe(tr),ke.saveEventData(),ke.processRequests(_e)})}},Rr.prototype.queueRequest=function(C,G){this.queue.push(C),this.processRequests(G)};var dr=function(k){function C(){k.call(this,"map.load"),this.success={},this.skuToken=""}return k&&(C.__proto__=k),C.prototype=Object.create(k&&k.prototype),C.prototype.constructor=C,C.prototype.postMapLoadEvent=function(oe,_e,ke,Ue){this.skuToken=ke,(Ae.EVENTS_URL&&Ue||Ae.ACCESS_TOKEN&&Array.isArray(oe)&&oe.some(function(ct){return De(ct)||nt(ct)}))&&this.queueRequest({id:_e,timestamp:Date.now()},Ue)},C.prototype.processRequests=function(oe){var _e=this;if(!(this.pendingRequest||this.queue.length===0)){var ke=this.queue.shift(),Ue=ke.id,ct=ke.timestamp;Ue&&this.success[Ue]||(this.anonId||this.fetchEventData(),R(this.anonId)||(this.anonId=g()),this.postEvent(ct,{skuToken:this.skuToken},function(Pt){Pt||Ue&&(_e.success[Ue]=!0)},oe))}},C}(Rr),wr=function(k){function C(G){k.call(this,"appUserTurnstile"),this._customAccessToken=G}return k&&(C.__proto__=k),C.prototype=Object.create(k&&k.prototype),C.prototype.constructor=C,C.prototype.postTurnstileEvent=function(oe,_e){Ae.EVENTS_URL&&Ae.ACCESS_TOKEN&&Array.isArray(oe)&&oe.some(function(ke){return De(ke)||nt(ke)})&&this.queueRequest(Date.now(),_e)},C.prototype.processRequests=function(oe){var _e=this;if(!(this.pendingRequest||this.queue.length===0)){(!this.anonId||!this.eventData.lastSuccess||!this.eventData.tokenU)&&this.fetchEventData();var ke=hr(Ae.ACCESS_TOKEN),Ue=ke?ke.u:Ae.ACCESS_TOKEN,ct=Ue!==this.eventData.tokenU;R(this.anonId)||(this.anonId=g(),ct=!0);var Pt=this.queue.shift();if(this.eventData.lastSuccess){var Gt=new Date(this.eventData.lastSuccess),tr=new Date(Pt),xr=(Pt-this.eventData.lastSuccess)/(1440*60*1e3);ct=ct||xr>=1||xr<-1||Gt.getDate()!==tr.getDate()}else ct=!0;if(!ct)return this.processRequests();this.postEvent(Pt,{"enabled.telemetry":!1},function(Nr){Nr||(_e.eventData.lastSuccess=Pt,_e.eventData.tokenU=Ue)},oe)}},C}(Rr),yt=new wr,Fe=yt.postTurnstileEvent.bind(yt),We=new dr,Oe=We.postMapLoadEvent.bind(We),de="mapbox-tiles",me=500,be=50,Ie=1e3*60*7,Xe;function ht(){s.caches&&!Xe&&(Xe=s.caches.open(de))}var bt;function Ct(k,C){if(bt===void 0)try{new Response(new ReadableStream),bt=!0}catch{bt=!1}bt?C(k.body):k.blob().then(C)}function Zt(k,C,G){if(ht(),!!Xe){var oe={status:C.status,statusText:C.statusText,headers:new s.Headers};C.headers.forEach(function(Ue,ct){return oe.headers.set(ct,Ue)});var _e=le(C.headers.get("Cache-Control")||"");if(!_e["no-store"]){_e["max-age"]&&oe.headers.set("Expires",new Date(G+_e["max-age"]*1e3).toUTCString());var ke=new Date(oe.headers.get("Expires")).getTime()-G;keDate.now()&&!G["no-cache"]}var mr=1/0;function ia(k){mr++,mr>be&&(k.getActor().send("enforceCacheSizeLimit",me),mr=0)}function Ia(k){ht(),Xe&&Xe.then(function(C){C.keys().then(function(G){for(var oe=0;oe=200&&G.status<300||G.status===0)&&G.response!==null){var _e=G.response;if(k.type==="json")try{_e=JSON.parse(G.response)}catch(ke){return C(ke)}C(null,_e,G.getResponseHeader("Cache-Control"),G.getResponseHeader("Expires"))}else C(new yn(G.statusText,G.status,k.url))},G.send(k.body),{cancel:function(){return G.abort()}}}var Tr=function(k,C){if(!zt(k.url)){if(s.fetch&&s.Request&&s.AbortController&&s.Request.prototype.hasOwnProperty("signal"))return $t(k,C);if(ie()&&self.worker&&self.worker.actor){var G=!0;return self.worker.actor.send("getResource",k,C,void 0,G)}}return Ht(k,C)},qr=function(k,C){return Tr(_(k,{type:"json"}),C)},ha=function(k,C){return Tr(_(k,{type:"arrayBuffer"}),C)},Gr=function(k,C){return Tr(_(k,{method:"POST"}),C)};function wa(k){var C=s.document.createElement("a");return C.href=k,C.protocol===s.document.location.protocol&&C.host===s.document.location.host}var Da="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";function Ya(k,C,G,oe){var _e=new s.Image,ke=s.URL;_e.onload=function(){C(null,_e),ke.revokeObjectURL(_e.src),_e.onload=null,s.requestAnimationFrame(function(){_e.src=Da})},_e.onerror=function(){return C(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."))};var Ue=new s.Blob([new Uint8Array(k)],{type:"image/png"});_e.cacheControl=G,_e.expires=oe,_e.src=k.byteLength?ke.createObjectURL(Ue):Da}function Ka(k,C){var G=new s.Blob([new Uint8Array(k)],{type:"image/png"});s.createImageBitmap(G).then(function(oe){C(null,oe)}).catch(function(oe){C(new Error("Could not load image because of "+oe.message+". Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."))})}var an,mt,ot=function(){an=[],mt=0};ot();var Lr=function(k,C){if(Pe.supported&&(k.headers||(k.headers={}),k.headers.accept="image/webp,*/*"),mt>=Ae.MAX_PARALLEL_IMAGE_REQUESTS){var G={requestParameters:k,callback:C,cancelled:!1,cancel:function(){this.cancelled=!0}};return an.push(G),G}mt++;var oe=!1,_e=function(){if(!oe)for(oe=!0,mt--;an.length&&mt0||this._oneTimeListeners&&this._oneTimeListeners[C]&&this._oneTimeListeners[C].length>0||this._eventedParent&&this._eventedParent.listens(C)},Dr.prototype.setEventedParent=function(C,G){return this._eventedParent=C,this._eventedParentData=G,this};var Hr=8,na={version:{required:!0,type:"enum",values:[8]},name:{type:"string"},metadata:{type:"*"},center:{type:"array",value:"number"},zoom:{type:"number"},bearing:{type:"number",default:0,period:360,units:"degrees"},pitch:{type:"number",default:0,units:"degrees"},light:{type:"light"},sources:{required:!0,type:"sources"},sprite:{type:"string"},glyphs:{type:"string"},transition:{type:"transition"},layers:{required:!0,type:"array",value:"layer"}},ta={"*":{type:"source"}},At=["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],or={type:{required:!0,type:"enum",values:{vector:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},attribution:{type:"string"},promoteId:{type:"promoteId"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},Ar={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:"*"}},oa={type:{required:!0,type:"enum",values:{"raster-dem":{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},attribution:{type:"string"},encoding:{type:"enum",values:{terrarium:{},mapbox:{}},default:"mapbox"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},ga={type:{required:!0,type:"enum",values:{geojson:{}}},data:{type:"*"},maxzoom:{type:"number",default:18},attribution:{type:"string"},buffer:{type:"number",default:128,maximum:512,minimum:0},filter:{type:"*"},tolerance:{type:"number",default:.375},cluster:{type:"boolean",default:!1},clusterRadius:{type:"number",default:50,minimum:0},clusterMaxZoom:{type:"number"},clusterMinPoints:{type:"number"},clusterProperties:{type:"*"},lineMetrics:{type:"boolean",default:!1},generateId:{type:"boolean",default:!1},promoteId:{type:"promoteId"}},Sa={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"}}},za={type:{required:!0,type:"enum",values:{image:{}}},url:{required:!0,type:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},ra={id:{type:"string",required:!0},type:{type:"enum",values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},"fill-extrusion":{},raster:{},hillshade:{},background:{}},required:!0},metadata:{type:"*"},source:{type:"string"},"source-layer":{type:"string"},minzoom:{type:"number",minimum:0,maximum:24},maxzoom:{type:"number",minimum:0,maximum:24},filter:{type:"filter"},layout:{type:"layout"},paint:{type:"paint"}},Ta=["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_background"],Fn={visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},mn={"fill-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},Kn={"circle-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},ui={visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},pi={"line-cap":{type:"enum",values:{butt:{},round:{},square:{}},default:"butt",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-join":{type:"enum",values:{bevel:{},round:{},miter:{}},default:"miter",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{type:"number",default:2,requires:[{"line-join":"miter"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-round-limit":{type:"number",default:1.05,requires:[{"line-join":"round"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},vi={"symbol-placement":{type:"enum",values:{point:{},line:{},"line-center":{}},default:"point",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-spacing":{type:"number",default:250,minimum:1,units:"pixels",requires:[{"symbol-placement":"line"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{type:"boolean",default:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{type:"enum",values:{auto:{},"viewport-y":{},source:{}},default:"auto",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-optional":{type:"boolean",default:!1,requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-size":{type:"number",default:1,minimum:0,units:"factor of the original icon size",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{type:"enum",values:{none:{},width:{},height:{},both:{}},default:"none",requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-text-fit-padding":{type:"array",value:"number",length:4,default:[0,0,0,0],units:"pixels",requires:["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-image":{type:"resolvedImage",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-keep-upright":{type:"boolean",default:!1,requires:["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-offset":{type:"array",value:"number",length:2,default:[0,0],requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-field":{type:"formatted",default:"",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-font":{type:"array",value:"string",default:["Open Sans Regular","Arial Unicode MS Regular"],requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-size":{type:"number",default:16,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{type:"number",default:10,minimum:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{type:"number",default:1.2,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-letter-spacing":{type:"number",default:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-justify":{type:"enum",values:{auto:{},left:{},center:{},right:{}},default:"center",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{type:"number",units:"ems",default:0,requires:["text-field"],"property-type":"data-driven",expression:{interpolated:!0,parameters:["zoom","feature"]}},"text-variable-anchor":{type:"array",value:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["text-field",{"!":"text-variable-anchor"}],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{type:"number",default:45,units:"degrees",requires:["text-field",{"symbol-placement":["line","line-center"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-writing-mode":{type:"array",value:"enum",values:{horizontal:{},vertical:{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-keep-upright":{type:"boolean",default:!0,requires:["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-transform":{type:"enum",values:{none:{},uppercase:{},lowercase:{}},default:"none",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-offset":{type:"array",value:"number",units:"ems",length:2,default:[0,0],requires:["text-field",{"!":"text-radial-offset"}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-optional":{type:"boolean",default:!1,requires:["text-field","icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},Li={visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},Ni={visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},ci={type:"array",value:"*"},bi={type:"enum",values:{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},in:{},"!in":{},all:{},any:{},none:{},has:{},"!has":{},within:{}}},ho={type:"enum",values:{Point:{},LineString:{},Polygon:{}}},Bo={type:"array",minimum:0,maximum:24,value:["number","color"],length:2},gs={type:"array",value:"*",minimum:1},ro={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}},Ei=["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background"],Ri={"fill-antialias":{type:"boolean",default:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{type:"color",transition:!0,requires:[{"!":"fill-pattern"},{"fill-antialias":!0}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"}},xo={"line-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"line-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["line-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-width":{type:"number",default:1,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{type:"number",default:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{type:"array",value:"number",minimum:0,transition:!0,units:"line widths",requires:[{"!":"line-pattern"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"line-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-gradient":{type:"color",transition:!1,requires:[{"!":"line-dasharray"},{"!":"line-pattern"},{source:"geojson",has:{lineMetrics:!0}}],expression:{interpolated:!0,parameters:["line-progress"]},"property-type":"color-ramp"}},So={"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"}},bo={"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"}},Ui={"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"}},no={"raster-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-hue-rotate":{type:"number",default:0,period:360,transition:!0,units:"degrees",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{type:"number",default:0,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-saturation":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-contrast":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-resampling":{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{type:"number",default:300,minimum:0,transition:!1,units:"milliseconds",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},cs={"hillshade-illumination-direction":{type:"number",default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{type:"number",default:.5,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"color",default:"#FFFFFF",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},ks={"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"}},ms={duration:{type:"number",default:300,minimum:0,units:"milliseconds"},delay:{type:"number",default:0,minimum:0,units:"milliseconds"}},Mo={"*":{type:"string"}},kn={$version:Hr,$root:na,sources:ta,source:At,source_vector:or,source_raster:Ar,source_raster_dem:oa,source_geojson:ga,source_video:Sa,source_image:za,layer:ra,layout:Ta,layout_background:Fn,layout_fill:mn,layout_circle:Kn,layout_heatmap:ui,"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_line:pi,layout_symbol:vi,layout_raster:Li,layout_hillshade:Ni,filter:ci,filter_operator:bi,geometry_type:ho,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:Bo,expression:gs,light:ro,paint:Ei,paint_fill:Ri,"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-extrusion-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",transition:!0,requires:["fill-extrusion-height"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_line:xo,paint_circle:So,paint_heatmap:bo,paint_symbol:Ui,paint_raster:no,paint_hillshade:cs,paint_background:ks,transition:ms,"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:Mo},fi=function(C,G,oe,_e){this.message=(C?C+": ":"")+oe,_e&&(this.identifier=_e),G!=null&&G.__line__&&(this.line=G.__line__)};function Fs(k){var C=k.key,G=k.value;return G?[new fi(C,G,"constants have been deprecated as of v8")]:[]}function Ss(k){for(var C=[],G=arguments.length-1;G-- >0;)C[G]=arguments[G+1];for(var oe=0,_e=C;oe<_e.length;oe+=1){var ke=_e[oe];for(var Ue in ke)k[Ue]=ke[Ue]}return k}function Gi(k){return k instanceof Number||k instanceof String||k instanceof Boolean?k.valueOf():k}function js(k){if(Array.isArray(k))return k.map(js);if(k instanceof Object&&!(k instanceof Number||k instanceof String||k instanceof Boolean)){var C={};for(var G in k)C[G]=js(k[G]);return C}return Gi(k)}var No=function(k){function C(G,oe){k.call(this,oe),this.message=oe,this.key=G}return k&&(C.__proto__=k),C.prototype=Object.create(k&&k.prototype),C.prototype.constructor=C,C}(Error),es=function(C,G){G===void 0&&(G=[]),this.parent=C,this.bindings={};for(var oe=0,_e=G;oe<_e.length;oe+=1){var ke=_e[oe],Ue=ke[0],ct=ke[1];this.bindings[Ue]=ct}};es.prototype.concat=function(C){return new es(this,C)},es.prototype.get=function(C){if(this.bindings[C])return this.bindings[C];if(this.parent)return this.parent.get(C);throw new Error(C+" not found in scope.")},es.prototype.has=function(C){return this.bindings[C]?!0:this.parent?this.parent.has(C):!1};var Vs={kind:"null"},hi={kind:"number"},so={kind:"string"},Oi={kind:"boolean"},Zo={kind:"color"},qs={kind:"object"},Di={kind:"value"},ys={kind:"error"},wl={kind:"collator"},Xs={kind:"formatted"},Vl={kind:"resolvedImage"};function rl(k,C){return{kind:"array",itemType:k,N:C}}function Cs(k){if(k.kind==="array"){var C=Cs(k.itemType);return typeof k.N=="number"?"array<"+C+", "+k.N+">":k.itemType.kind==="value"?"array":"array<"+C+">"}else return k.kind}var ql=[Vs,hi,so,Oi,Zo,Xs,qs,rl(Di),Vl];function ju(k,C){if(C.kind==="error")return null;if(k.kind==="array"){if(C.kind==="array"&&(C.N===0&&C.itemType.kind==="value"||!ju(k.itemType,C.itemType))&&(typeof k.N!="number"||k.N===C.N))return null}else{if(k.kind===C.kind)return null;if(k.kind==="value")for(var G=0,oe=ql;G255?255:Gt}function _e(Gt){return Gt<0?0:Gt>1?1:Gt}function ke(Gt){return Gt[Gt.length-1]==="%"?oe(parseFloat(Gt)/100*255):oe(parseInt(Gt))}function Ue(Gt){return Gt[Gt.length-1]==="%"?_e(parseFloat(Gt)/100):_e(parseFloat(Gt))}function ct(Gt,tr,xr){return xr<0?xr+=1:xr>1&&(xr-=1),xr*6<1?Gt+(tr-Gt)*xr*6:xr*2<1?tr:xr*3<2?Gt+(tr-Gt)*(2/3-xr)*6:Gt}function Pt(Gt){var tr=Gt.replace(/ /g,"").toLowerCase();if(tr in G)return G[tr].slice();if(tr[0]==="#"){if(tr.length===4){var xr=parseInt(tr.substr(1),16);return xr>=0&&xr<=4095?[(xr&3840)>>4|(xr&3840)>>8,xr&240|(xr&240)>>4,xr&15|(xr&15)<<4,1]:null}else if(tr.length===7){var xr=parseInt(tr.substr(1),16);return xr>=0&&xr<=16777215?[(xr&16711680)>>16,(xr&65280)>>8,xr&255,1]:null}return null}var Nr=tr.indexOf("("),zr=tr.indexOf(")");if(Nr!==-1&&zr+1===tr.length){var aa=tr.substr(0,Nr),Ca=tr.substr(Nr+1,zr-(Nr+1)).split(","),gn=1;switch(aa){case"rgba":if(Ca.length!==4)return null;gn=Ue(Ca.pop());case"rgb":return Ca.length!==3?null:[ke(Ca[0]),ke(Ca[1]),ke(Ca[2]),gn];case"hsla":if(Ca.length!==4)return null;gn=Ue(Ca.pop());case"hsl":if(Ca.length!==3)return null;var Qa=(parseFloat(Ca[0])%360+360)%360/360,Un=Ue(Ca[1]),Mn=Ue(Ca[2]),Nn=Mn<=.5?Mn*(Un+1):Mn+Un-Mn*Un,Hn=Mn*2-Nn;return[oe(ct(Hn,Nn,Qa+1/3)*255),oe(ct(Hn,Nn,Qa)*255),oe(ct(Hn,Nn,Qa-1/3)*255),gn];default:return null}}return null}try{C.parseCSSColor=Pt}catch{}}),ff=jc.parseCSSColor,_s=function(C,G,oe,_e){_e===void 0&&(_e=1),this.r=C,this.g=G,this.b=oe,this.a=_e};_s.parse=function(C){if(C){if(C instanceof _s)return C;if(typeof C=="string"){var G=ff(C);if(G)return new _s(G[0]/255*G[3],G[1]/255*G[3],G[2]/255*G[3],G[3])}}},_s.prototype.toString=function(){var C=this.toArray(),G=C[0],oe=C[1],_e=C[2],ke=C[3];return"rgba("+Math.round(G)+","+Math.round(oe)+","+Math.round(_e)+","+ke+")"},_s.prototype.toArray=function(){var C=this,G=C.r,oe=C.g,_e=C.b,ke=C.a;return ke===0?[0,0,0,0]:[G*255/ke,oe*255/ke,_e*255/ke,ke]},_s.black=new _s(0,0,0,1),_s.white=new _s(1,1,1,1),_s.transparent=new _s(0,0,0,0),_s.red=new _s(1,0,0,1);var Cu=function(C,G,oe){C?this.sensitivity=G?"variant":"case":this.sensitivity=G?"accent":"base",this.locale=oe,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})};Cu.prototype.compare=function(C,G){return this.collator.compare(C,G)},Cu.prototype.resolvedLocale=function(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale};var Vc=function(C,G,oe,_e,ke){this.text=C,this.image=G,this.scale=oe,this.fontStack=_e,this.textColor=ke},Pl=function(C){this.sections=C};Pl.fromString=function(C){return new Pl([new Vc(C,null,null,null,null)])},Pl.prototype.isEmpty=function(){return this.sections.length===0?!0:!this.sections.some(function(C){return C.text.length!==0||C.image&&C.image.name.length!==0})},Pl.factory=function(C){return C instanceof Pl?C:Pl.fromString(C)},Pl.prototype.toString=function(){return this.sections.length===0?"":this.sections.map(function(C){return C.text}).join("")},Pl.prototype.serialize=function(){for(var C=["format"],G=0,oe=this.sections;G=0&&k<=255&&typeof C=="number"&&C>=0&&C<=255&&typeof G=="number"&&G>=0&&G<=255)){var _e=typeof oe=="number"?[k,C,G,oe]:[k,C,G];return"Invalid rgba value ["+_e.join(", ")+"]: 'r', 'g', and 'b' must be between 0 and 255."}return typeof oe>"u"||typeof oe=="number"&&oe>=0&&oe<=1?null:"Invalid rgba value ["+[k,C,G,oe].join(", ")+"]: 'a' must be between 0 and 1."}function _u(k){if(k===null)return!0;if(typeof k=="string")return!0;if(typeof k=="boolean")return!0;if(typeof k=="number")return!0;if(k instanceof _s)return!0;if(k instanceof Cu)return!0;if(k instanceof Pl)return!0;if(k instanceof Tl)return!0;if(Array.isArray(k)){for(var C=0,G=k;C2){var ct=C[1];if(typeof ct!="string"||!(ct in qu)||ct==="object")return G.error('The item type argument of "array" must be one of string, number, boolean',1);Ue=qu[ct],oe++}else Ue=Di;var Pt;if(C.length>3){if(C[2]!==null&&(typeof C[2]!="number"||C[2]<0||C[2]!==Math.floor(C[2])))return G.error('The length argument to "array" must be a positive integer literal',2);Pt=C[2],oe++}_e=rl(Ue,Pt)}else _e=qu[ke];for(var Gt=[];oe1)&&G.push(_e)}}return G.concat(this.args.map(function(ke){return ke.serialize()}))};var Ju=function(C){this.type=Xs,this.sections=C};Ju.parse=function(C,G){if(C.length<2)return G.error("Expected at least one argument.");var oe=C[1];if(!Array.isArray(oe)&&typeof oe=="object")return G.error("First argument must be an image or text section.");for(var _e=[],ke=!1,Ue=1;Ue<=C.length-1;++Ue){var ct=C[Ue];if(ke&&typeof ct=="object"&&!Array.isArray(ct)){ke=!1;var Pt=null;if(ct["font-scale"]&&(Pt=G.parse(ct["font-scale"],1,hi),!Pt))return null;var Gt=null;if(ct["text-font"]&&(Gt=G.parse(ct["text-font"],1,rl(so)),!Gt))return null;var tr=null;if(ct["text-color"]&&(tr=G.parse(ct["text-color"],1,Zo),!tr))return null;var xr=_e[_e.length-1];xr.scale=Pt,xr.font=Gt,xr.textColor=tr}else{var Nr=G.parse(C[Ue],1,Di);if(!Nr)return null;var zr=Nr.type.kind;if(zr!=="string"&&zr!=="value"&&zr!=="null"&&zr!=="resolvedImage")return G.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");ke=!0,_e.push({content:Nr,scale:null,font:null,textColor:null})}}return new Ju(_e)},Ju.prototype.evaluate=function(C){var G=function(oe){var _e=oe.content.evaluate(C);return Os(_e)===Vl?new Vc("",_e,null,null,null):new Vc(Al(_e),null,oe.scale?oe.scale.evaluate(C):null,oe.font?oe.font.evaluate(C).join(","):null,oe.textColor?oe.textColor.evaluate(C):null)};return new Pl(this.sections.map(G))},Ju.prototype.eachChild=function(C){for(var G=0,oe=this.sections;G-1),oe},Zs.prototype.eachChild=function(C){C(this.input)},Zs.prototype.outputDefined=function(){return!1},Zs.prototype.serialize=function(){return["image",this.input.serialize()]};var _f={"to-boolean":Oi,"to-color":Zo,"to-number":hi,"to-string":so},zo=function(C,G){this.type=C,this.args=G};zo.parse=function(C,G){if(C.length<2)return G.error("Expected at least one argument.");var oe=C[0];if((oe==="to-boolean"||oe==="to-string")&&C.length!==2)return G.error("Expected one argument.");for(var _e=_f[oe],ke=[],Ue=1;Ue4?oe="Invalid rbga value "+JSON.stringify(G)+": expected an array containing either three or four numeric values.":oe=Il(G[0],G[1],G[2],G[3]),!oe))return new _s(G[0]/255,G[1]/255,G[2]/255,G[3])}throw new bs(oe||"Could not parse color from value '"+(typeof G=="string"?G:String(JSON.stringify(G)))+"'")}else if(this.type.kind==="number"){for(var Pt=null,Gt=0,tr=this.args;Gt=C[2]||k[1]<=C[1]||k[3]>=C[3])}function hf(k,C){var G=Qu(k[0]),oe=wc(k[1]),_e=Math.pow(2,C.z);return[Math.round(G*_e*dl),Math.round(oe*_e*dl)]}function Yc(k,C,G){var oe=k[0]-C[0],_e=k[1]-C[1],ke=k[0]-G[0],Ue=k[1]-G[1];return oe*Ue-ke*_e===0&&oe*ke<=0&&_e*Ue<=0}function Tc(k,C,G){return C[1]>k[1]!=G[1]>k[1]&&k[0]<(G[0]-C[0])*(k[1]-C[1])/(G[1]-C[1])+C[0]}function ec(k,C){for(var G=!1,oe=0,_e=C.length;oe<_e;oe++)for(var ke=C[oe],Ue=0,ct=ke.length;Ue0&&xr<0||tr<0&&xr>0}function $c(k,C,G,oe){var _e=[C[0]-k[0],C[1]-k[1]],ke=[oe[0]-G[0],oe[1]-G[1]];return Hc(ke,_e)===0?!1:!!(bu(k,C,G,oe)&&bu(G,oe,k,C))}function Gu(k,C,G){for(var oe=0,_e=G;oe<_e.length;oe+=1)for(var ke=_e[oe],Ue=0;UeG[2]){var _e=oe*.5,ke=k[0]-G[0]>_e?-oe:G[0]-k[0]>_e?oe:0;ke===0&&(ke=k[0]-G[2]>_e?-oe:G[2]-k[0]>_e?oe:0),k[0]+=ke}qc(C,k)}function Lc(k){k[0]=k[1]=1/0,k[2]=k[3]=-1/0}function xf(k,C,G,oe){for(var _e=Math.pow(2,oe.z)*dl,ke=[oe.x*dl,oe.y*dl],Ue=[],ct=0,Pt=k;ct=0)return!1;var G=!0;return k.eachChild(function(oe){G&&!ru(oe,C)&&(G=!1)}),G}var tc=function(C,G){this.type=G.type,this.name=C,this.boundExpression=G};tc.parse=function(C,G){if(C.length!==2||typeof C[1]!="string")return G.error("'var' expression requires exactly one string literal argument.");var oe=C[1];return G.scope.has(oe)?new tc(oe,G.scope.get(oe)):G.error('Unknown variable "'+oe+'". Make sure "'+oe+'" has been bound in an enclosing "let" expression before using it.',1)},tc.prototype.evaluate=function(C){return this.boundExpression.evaluate(C)},tc.prototype.eachChild=function(){},tc.prototype.outputDefined=function(){return!1},tc.prototype.serialize=function(){return["var",this.name]};var Bs=function(C,G,oe,_e,ke){G===void 0&&(G=[]),_e===void 0&&(_e=new es),ke===void 0&&(ke=[]),this.registry=C,this.path=G,this.key=G.map(function(Ue){return"["+Ue+"]"}).join(""),this.scope=_e,this.errors=ke,this.expectedType=oe};Bs.prototype.parse=function(C,G,oe,_e,ke){return ke===void 0&&(ke={}),G?this.concat(G,oe,_e)._parse(C,ke):this._parse(C,ke)},Bs.prototype._parse=function(C,G){(C===null||typeof C=="string"||typeof C=="boolean"||typeof C=="number")&&(C=["literal",C]);function oe(tr,xr,Nr){return Nr==="assert"?new Zl(xr,[tr]):Nr==="coerce"?new zo(xr,[tr]):tr}if(Array.isArray(C)){if(C.length===0)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');var _e=C[0];if(typeof _e!="string")return this.error("Expression name must be a string, but found "+typeof _e+' instead. If you wanted a literal array, use ["literal", [...]].',0),null;var ke=this.registry[_e];if(ke){var Ue=ke.parse(C,this);if(!Ue)return null;if(this.expectedType){var ct=this.expectedType,Pt=Ue.type;if((ct.kind==="string"||ct.kind==="number"||ct.kind==="boolean"||ct.kind==="object"||ct.kind==="array")&&Pt.kind==="value")Ue=oe(Ue,ct,G.typeAnnotation||"assert");else if((ct.kind==="color"||ct.kind==="formatted"||ct.kind==="resolvedImage")&&(Pt.kind==="value"||Pt.kind==="string"))Ue=oe(Ue,ct,G.typeAnnotation||"coerce");else if(this.checkSubtype(ct,Pt))return null}if(!(Ue instanceof Uo)&&Ue.type.kind!=="resolvedImage"&&Hu(Ue)){var Gt=new is;try{Ue=new Uo(Ue.type,Ue.evaluate(Gt))}catch(tr){return this.error(tr.message),null}}return Ue}return this.error('Unknown expression "'+_e+'". If you wanted a literal array, use ["literal", [...]].',0)}else return typeof C>"u"?this.error("'undefined' value invalid. Use null instead."):typeof C=="object"?this.error('Bare objects invalid. Use ["literal", {...}] instead.'):this.error("Expected an array, but found "+typeof C+" instead.")},Bs.prototype.concat=function(C,G,oe){var _e=typeof C=="number"?this.path.concat(C):this.path,ke=oe?this.scope.concat(oe):this.scope;return new Bs(this.registry,_e,G||null,ke,this.errors)},Bs.prototype.error=function(C){for(var G=[],oe=arguments.length-1;oe-- >0;)G[oe]=arguments[oe+1];var _e=""+this.key+G.map(function(ke){return"["+ke+"]"}).join("");this.errors.push(new No(_e,C))},Bs.prototype.checkSubtype=function(C,G){var oe=ju(C,G);return oe&&this.error(oe),oe};function Hu(k){if(k instanceof tc)return Hu(k.boundExpression);if(k instanceof Bi&&k.name==="error")return!1;if(k instanceof xu)return!1;if(k instanceof tu)return!1;var C=k instanceof zo||k instanceof Zl,G=!0;return k.eachChild(function(oe){C?G=G&&Hu(oe):G=G&&oe instanceof Uo}),G?Qc(k)&&ru(k,["zoom","heatmap-density","line-progress","accumulated","is-supported-script"]):!1}function Gl(k,C){for(var G=k.length-1,oe=0,_e=G,ke=0,Ue,ct;oe<=_e;)if(ke=Math.floor((oe+_e)/2),Ue=k[ke],ct=k[ke+1],Ue<=C){if(ke===G||CC)_e=ke-1;else throw new bs("Input is not a number.");return 0}var au=function(C,G,oe){this.type=C,this.input=G,this.labels=[],this.outputs=[];for(var _e=0,ke=oe;_e=ct)return G.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',Gt);var xr=G.parse(Pt,tr,ke);if(!xr)return null;ke=ke||xr.type,_e.push([ct,xr])}return new au(ke,oe,_e)},au.prototype.evaluate=function(C){var G=this.labels,oe=this.outputs;if(G.length===1)return oe[0].evaluate(C);var _e=this.input.evaluate(C);if(_e<=G[0])return oe[0].evaluate(C);var ke=G.length;if(_e>=G[ke-1])return oe[ke-1].evaluate(C);var Ue=Gl(G,_e);return oe[Ue].evaluate(C)},au.prototype.eachChild=function(C){C(this.input);for(var G=0,oe=this.outputs;G0&&C.push(this.labels[G]),C.push(this.outputs[G].serialize());return C};function Ys(k,C,G){return k*(1-G)+C*G}function vc(k,C,G){return new _s(Ys(k.r,C.r,G),Ys(k.g,C.g,G),Ys(k.b,C.b,G),Ys(k.a,C.a,G))}function Pu(k,C,G){return k.map(function(oe,_e){return Ys(oe,C[_e],G)})}var rc=Object.freeze({__proto__:null,number:Ys,color:vc,array:Pu}),Pc=.95047,bf=1,Vf=1.08883,dc=4/29,Ic=6/29,fu=3*Ic*Ic,Rc=Ic*Ic*Ic,Rl=Math.PI/180,pc=180/Math.PI;function ef(k){return k>Rc?Math.pow(k,1/3):k/fu+dc}function gc(k){return k>Ic?k*k*k:fu*(k-dc)}function Gs(k){return 255*(k<=.0031308?12.92*k:1.055*Math.pow(k,1/2.4)-.055)}function nu(k){return k/=255,k<=.04045?k/12.92:Math.pow((k+.055)/1.055,2.4)}function wu(k){var C=nu(k.r),G=nu(k.g),oe=nu(k.b),_e=ef((.4124564*C+.3575761*G+.1804375*oe)/Pc),ke=ef((.2126729*C+.7151522*G+.072175*oe)/bf),Ue=ef((.0193339*C+.119192*G+.9503041*oe)/Vf);return{l:116*ke-16,a:500*(_e-ke),b:200*(ke-Ue),alpha:k.a}}function Xc(k){var C=(k.l+16)/116,G=isNaN(k.a)?C:C+k.a/500,oe=isNaN(k.b)?C:C-k.b/200;return C=bf*gc(C),G=Pc*gc(G),oe=Vf*gc(oe),new _s(Gs(3.2404542*G-1.5371385*C-.4985314*oe),Gs(-.969266*G+1.8760108*C+.041556*oe),Gs(.0556434*G-.2040259*C+1.0572252*oe),k.alpha)}function Ws(k,C,G){return{l:Ys(k.l,C.l,G),a:Ys(k.a,C.a,G),b:Ys(k.b,C.b,G),alpha:Ys(k.alpha,C.alpha,G)}}function Sc(k){var C=wu(k),G=C.l,oe=C.a,_e=C.b,ke=Math.atan2(_e,oe)*pc;return{h:ke<0?ke+360:ke,c:Math.sqrt(oe*oe+_e*_e),l:G,alpha:k.a}}function ac(k){var C=k.h*Rl,G=k.c,oe=k.l;return Xc({l:oe,a:Math.cos(C)*G,b:Math.sin(C)*G,alpha:k.alpha})}function hu(k,C,G){var oe=C-k;return k+G*(oe>180||oe<-180?oe-360*Math.round(oe/360):oe)}function Mc(k,C,G){return{h:hu(k.h,C.h,G),c:Ys(k.c,C.c,G),l:Ys(k.l,C.l,G),alpha:Ys(k.alpha,C.alpha,G)}}var Iu={forward:wu,reverse:Xc,interpolate:Ws},Ec={forward:Sc,reverse:ac,interpolate:Mc},wf=Object.freeze({__proto__:null,lab:Iu,hcl:Ec}),Fl=function(C,G,oe,_e,ke){this.type=C,this.operator=G,this.interpolation=oe,this.input=_e,this.labels=[],this.outputs=[];for(var Ue=0,ct=ke;Ue1}))return G.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);_e={name:"cubic-bezier",controlPoints:Pt}}else return G.error("Unknown interpolation type "+String(_e[0]),1,0);if(C.length-1<4)return G.error("Expected at least 4 arguments, but found only "+(C.length-1)+".");if((C.length-1)%2!==0)return G.error("Expected an even number of arguments.");if(ke=G.parse(ke,2,hi),!ke)return null;var Gt=[],tr=null;oe==="interpolate-hcl"||oe==="interpolate-lab"?tr=Zo:G.expectedType&&G.expectedType.kind!=="value"&&(tr=G.expectedType);for(var xr=0;xr=Nr)return G.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',aa);var gn=G.parse(zr,Ca,tr);if(!gn)return null;tr=tr||gn.type,Gt.push([Nr,gn])}return tr.kind!=="number"&&tr.kind!=="color"&&!(tr.kind==="array"&&tr.itemType.kind==="number"&&typeof tr.N=="number")?G.error("Type "+Cs(tr)+" is not interpolatable."):new Fl(tr,oe,_e,ke,Gt)},Fl.prototype.evaluate=function(C){var G=this.labels,oe=this.outputs;if(G.length===1)return oe[0].evaluate(C);var _e=this.input.evaluate(C);if(_e<=G[0])return oe[0].evaluate(C);var ke=G.length;if(_e>=G[ke-1])return oe[ke-1].evaluate(C);var Ue=Gl(G,_e),ct=G[Ue],Pt=G[Ue+1],Gt=Fl.interpolationFactor(this.interpolation,_e,ct,Pt),tr=oe[Ue].evaluate(C),xr=oe[Ue+1].evaluate(C);return this.operator==="interpolate"?rc[this.type.kind.toLowerCase()](tr,xr,Gt):this.operator==="interpolate-hcl"?Ec.reverse(Ec.interpolate(Ec.forward(tr),Ec.forward(xr),Gt)):Iu.reverse(Iu.interpolate(Iu.forward(tr),Iu.forward(xr),Gt))},Fl.prototype.eachChild=function(C){C(this.input);for(var G=0,oe=this.outputs;G=oe.length)throw new bs("Array index out of bounds: "+G+" > "+(oe.length-1)+".");if(G!==Math.floor(G))throw new bs("Array index must be an integer, but found "+G+" instead.");return oe[G]},Ru.prototype.eachChild=function(C){C(this.index),C(this.input)},Ru.prototype.outputDefined=function(){return!1},Ru.prototype.serialize=function(){return["at",this.index.serialize(),this.input.serialize()]};var al=function(C,G){this.type=Oi,this.needle=C,this.haystack=G};al.parse=function(C,G){if(C.length!==3)return G.error("Expected 2 arguments, but found "+(C.length-1)+" instead.");var oe=G.parse(C[1],1,Di),_e=G.parse(C[2],2,Di);return!oe||!_e?null:Vu(oe.type,[Oi,so,hi,Vs,Di])?new al(oe,_e):G.error("Expected first argument to be of type boolean, string, number or null, but found "+Cs(oe.type)+" instead")},al.prototype.evaluate=function(C){var G=this.needle.evaluate(C),oe=this.haystack.evaluate(C);if(!oe)return!1;if(!yu(G,["boolean","string","number","null"]))throw new bs("Expected first argument to be of type boolean, string, number or null, but found "+Cs(Os(G))+" instead.");if(!yu(oe,["string","array"]))throw new bs("Expected second argument to be of type array or string, but found "+Cs(Os(oe))+" instead.");return oe.indexOf(G)>=0},al.prototype.eachChild=function(C){C(this.needle),C(this.haystack)},al.prototype.outputDefined=function(){return!0},al.prototype.serialize=function(){return["in",this.needle.serialize(),this.haystack.serialize()]};var Yl=function(C,G,oe){this.type=hi,this.needle=C,this.haystack=G,this.fromIndex=oe};Yl.parse=function(C,G){if(C.length<=2||C.length>=5)return G.error("Expected 3 or 4 arguments, but found "+(C.length-1)+" instead.");var oe=G.parse(C[1],1,Di),_e=G.parse(C[2],2,Di);if(!oe||!_e)return null;if(!Vu(oe.type,[Oi,so,hi,Vs,Di]))return G.error("Expected first argument to be of type boolean, string, number or null, but found "+Cs(oe.type)+" instead");if(C.length===4){var ke=G.parse(C[3],3,hi);return ke?new Yl(oe,_e,ke):null}else return new Yl(oe,_e)},Yl.prototype.evaluate=function(C){var G=this.needle.evaluate(C),oe=this.haystack.evaluate(C);if(!yu(G,["boolean","string","number","null"]))throw new bs("Expected first argument to be of type boolean, string, number or null, but found "+Cs(Os(G))+" instead.");if(!yu(oe,["string","array"]))throw new bs("Expected second argument to be of type array or string, but found "+Cs(Os(oe))+" instead.");if(this.fromIndex){var _e=this.fromIndex.evaluate(C);return oe.indexOf(G,_e)}return oe.indexOf(G)},Yl.prototype.eachChild=function(C){C(this.needle),C(this.haystack),this.fromIndex&&C(this.fromIndex)},Yl.prototype.outputDefined=function(){return!1},Yl.prototype.serialize=function(){if(this.fromIndex!=null&&this.fromIndex!==void 0){var C=this.fromIndex.serialize();return["index-of",this.needle.serialize(),this.haystack.serialize(),C]}return["index-of",this.needle.serialize(),this.haystack.serialize()]};var Ks=function(C,G,oe,_e,ke,Ue){this.inputType=C,this.type=G,this.input=oe,this.cases=_e,this.outputs=ke,this.otherwise=Ue};Ks.parse=function(C,G){if(C.length<5)return G.error("Expected at least 4 arguments, but found only "+(C.length-1)+".");if(C.length%2!==1)return G.error("Expected an even number of arguments.");var oe,_e;G.expectedType&&G.expectedType.kind!=="value"&&(_e=G.expectedType);for(var ke={},Ue=[],ct=2;ctNumber.MAX_SAFE_INTEGER)return tr.error("Branch labels must be integers no larger than "+Number.MAX_SAFE_INTEGER+".");if(typeof zr=="number"&&Math.floor(zr)!==zr)return tr.error("Numeric branch labels must be integer values.");if(!oe)oe=Os(zr);else if(tr.checkSubtype(oe,Os(zr)))return null;if(typeof ke[String(zr)]<"u")return tr.error("Branch labels must be unique.");ke[String(zr)]=Ue.length}var aa=G.parse(Gt,ct,_e);if(!aa)return null;_e=_e||aa.type,Ue.push(aa)}var Ca=G.parse(C[1],1,Di);if(!Ca)return null;var gn=G.parse(C[C.length-1],C.length-1,_e);return!gn||Ca.type.kind!=="value"&&G.concat(1).checkSubtype(oe,Ca.type)?null:new Ks(oe,_e,Ca,ke,Ue,gn)},Ks.prototype.evaluate=function(C){var G=this.input.evaluate(C),oe=Os(G)===this.inputType&&this.outputs[this.cases[G]]||this.otherwise;return oe.evaluate(C)},Ks.prototype.eachChild=function(C){C(this.input),this.outputs.forEach(C),C(this.otherwise)},Ks.prototype.outputDefined=function(){return this.outputs.every(function(C){return C.outputDefined()})&&this.otherwise.outputDefined()},Ks.prototype.serialize=function(){for(var C=this,G=["match",this.input.serialize()],oe=Object.keys(this.cases).sort(),_e=[],ke={},Ue=0,ct=oe;Ue=5)return G.error("Expected 3 or 4 arguments, but found "+(C.length-1)+" instead.");var oe=G.parse(C[1],1,Di),_e=G.parse(C[2],2,hi);if(!oe||!_e)return null;if(!Vu(oe.type,[rl(Di),so,Di]))return G.error("Expected first argument to be of type array or string, but found "+Cs(oe.type)+" instead");if(C.length===4){var ke=G.parse(C[3],3,hi);return ke?new Du(oe.type,oe,_e,ke):null}else return new Du(oe.type,oe,_e)},Du.prototype.evaluate=function(C){var G=this.input.evaluate(C),oe=this.beginIndex.evaluate(C);if(!yu(G,["string","array"]))throw new bs("Expected first argument to be of type array or string, but found "+Cs(Os(G))+" instead.");if(this.endIndex){var _e=this.endIndex.evaluate(C);return G.slice(oe,_e)}return G.slice(oe)},Du.prototype.eachChild=function(C){C(this.input),C(this.beginIndex),this.endIndex&&C(this.endIndex)},Du.prototype.outputDefined=function(){return!1},Du.prototype.serialize=function(){if(this.endIndex!=null&&this.endIndex!==void 0){var C=this.endIndex.serialize();return["slice",this.input.serialize(),this.beginIndex.serialize(),C]}return["slice",this.input.serialize(),this.beginIndex.serialize()]};function Zc(k,C){return k==="=="||k==="!="?C.kind==="boolean"||C.kind==="string"||C.kind==="number"||C.kind==="null"||C.kind==="value":C.kind==="string"||C.kind==="number"||C.kind==="value"}function Qt(k,C,G){return C===G}function yr(k,C,G){return C!==G}function $r(k,C,G){return CG}function ma(k,C,G){return C<=G}function tn(k,C,G){return C>=G}function Ja(k,C,G,oe){return oe.compare(C,G)===0}function Ln(k,C,G,oe){return!Ja(k,C,G,oe)}function On(k,C,G,oe){return oe.compare(C,G)<0}function Qn(k,C,G,oe){return oe.compare(C,G)>0}function _n(k,C,G,oe){return oe.compare(C,G)<=0}function qn(k,C,G,oe){return oe.compare(C,G)>=0}function En(k,C,G){var oe=k!=="=="&&k!=="!=";return function(){function _e(ke,Ue,ct){this.type=Oi,this.lhs=ke,this.rhs=Ue,this.collator=ct,this.hasUntypedArgument=ke.type.kind==="value"||Ue.type.kind==="value"}return _e.parse=function(Ue,ct){if(Ue.length!==3&&Ue.length!==4)return ct.error("Expected two or three arguments.");var Pt=Ue[0],Gt=ct.parse(Ue[1],1,Di);if(!Gt)return null;if(!Zc(Pt,Gt.type))return ct.concat(1).error('"'+Pt+`" comparisons are not supported for type '`+Cs(Gt.type)+"'.");var tr=ct.parse(Ue[2],2,Di);if(!tr)return null;if(!Zc(Pt,tr.type))return ct.concat(2).error('"'+Pt+`" comparisons are not supported for type '`+Cs(tr.type)+"'.");if(Gt.type.kind!==tr.type.kind&&Gt.type.kind!=="value"&&tr.type.kind!=="value")return ct.error("Cannot compare types '"+Cs(Gt.type)+"' and '"+Cs(tr.type)+"'.");oe&&(Gt.type.kind==="value"&&tr.type.kind!=="value"?Gt=new Zl(tr.type,[Gt]):Gt.type.kind!=="value"&&tr.type.kind==="value"&&(tr=new Zl(Gt.type,[tr])));var xr=null;if(Ue.length===4){if(Gt.type.kind!=="string"&&tr.type.kind!=="string"&&Gt.type.kind!=="value"&&tr.type.kind!=="value")return ct.error("Cannot use collator to compare non-string types.");if(xr=ct.parse(Ue[3],3,wl),!xr)return null}return new _e(Gt,tr,xr)},_e.prototype.evaluate=function(Ue){var ct=this.lhs.evaluate(Ue),Pt=this.rhs.evaluate(Ue);if(oe&&this.hasUntypedArgument){var Gt=Os(ct),tr=Os(Pt);if(Gt.kind!==tr.kind||!(Gt.kind==="string"||Gt.kind==="number"))throw new bs('Expected arguments for "'+k+'" to be (string, string) or (number, number), but found ('+Gt.kind+", "+tr.kind+") instead.")}if(this.collator&&!oe&&this.hasUntypedArgument){var xr=Os(ct),Nr=Os(Pt);if(xr.kind!=="string"||Nr.kind!=="string")return C(Ue,ct,Pt)}return this.collator?G(Ue,ct,Pt,this.collator.evaluate(Ue)):C(Ue,ct,Pt)},_e.prototype.eachChild=function(Ue){Ue(this.lhs),Ue(this.rhs),this.collator&&Ue(this.collator)},_e.prototype.outputDefined=function(){return!0},_e.prototype.serialize=function(){var Ue=[k];return this.eachChild(function(ct){Ue.push(ct.serialize())}),Ue},_e}()}var dn=En("==",Qt,Ja),ai=En("!=",yr,Ln),Hi=En("<",$r,On),Fi=En(">",Vr,Qn),Zi=En("<=",ma,_n),Wi=En(">=",tn,qn),ii=function(C,G,oe,_e,ke){this.type=so,this.number=C,this.locale=G,this.currency=oe,this.minFractionDigits=_e,this.maxFractionDigits=ke};ii.parse=function(C,G){if(C.length!==3)return G.error("Expected two arguments.");var oe=G.parse(C[1],1,hi);if(!oe)return null;var _e=C[2];if(typeof _e!="object"||Array.isArray(_e))return G.error("NumberFormat options argument must be an object.");var ke=null;if(_e.locale&&(ke=G.parse(_e.locale,1,so),!ke))return null;var Ue=null;if(_e.currency&&(Ue=G.parse(_e.currency,1,so),!Ue))return null;var ct=null;if(_e["min-fraction-digits"]&&(ct=G.parse(_e["min-fraction-digits"],1,hi),!ct))return null;var Pt=null;return _e["max-fraction-digits"]&&(Pt=G.parse(_e["max-fraction-digits"],1,hi),!Pt)?null:new ii(oe,ke,Ue,ct,Pt)},ii.prototype.evaluate=function(C){return new Intl.NumberFormat(this.locale?this.locale.evaluate(C):[],{style:this.currency?"currency":"decimal",currency:this.currency?this.currency.evaluate(C):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(C):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(C):void 0}).format(this.number.evaluate(C))},ii.prototype.eachChild=function(C){C(this.number),this.locale&&C(this.locale),this.currency&&C(this.currency),this.minFractionDigits&&C(this.minFractionDigits),this.maxFractionDigits&&C(this.maxFractionDigits)},ii.prototype.outputDefined=function(){return!1},ii.prototype.serialize=function(){var C={};return this.locale&&(C.locale=this.locale.serialize()),this.currency&&(C.currency=this.currency.serialize()),this.minFractionDigits&&(C["min-fraction-digits"]=this.minFractionDigits.serialize()),this.maxFractionDigits&&(C["max-fraction-digits"]=this.maxFractionDigits.serialize()),["number-format",this.number.serialize(),C]};var Wn=function(C){this.type=hi,this.input=C};Wn.parse=function(C,G){if(C.length!==2)return G.error("Expected 1 argument, but found "+(C.length-1)+" instead.");var oe=G.parse(C[1],1);return oe?oe.type.kind!=="array"&&oe.type.kind!=="string"&&oe.type.kind!=="value"?G.error("Expected argument of type string or array, but found "+Cs(oe.type)+" instead."):new Wn(oe):null},Wn.prototype.evaluate=function(C){var G=this.input.evaluate(C);if(typeof G=="string")return G.length;if(Array.isArray(G))return G.length;throw new bs("Expected value to be of type string or array, but found "+Cs(Os(G))+" instead.")},Wn.prototype.eachChild=function(C){C(this.input)},Wn.prototype.outputDefined=function(){return!1},Wn.prototype.serialize=function(){var C=["length"];return this.eachChild(function(G){C.push(G.serialize())}),C};var ao={"==":dn,"!=":ai,">":Fi,"<":Hi,">=":Wi,"<=":Zi,array:Zl,at:Ru,boolean:Zl,case:nc,coalesce:vu,collator:xu,format:Ju,image:Zs,in:al,"index-of":Yl,interpolate:Fl,"interpolate-hcl":Fl,"interpolate-lab":Fl,length:Wn,let:Wu,literal:Uo,match:Ks,number:Zl,"number-format":ii,object:Zl,slice:Du,step:au,string:Zl,"to-boolean":zo,"to-color":zo,"to-number":zo,"to-string":zo,var:tc,within:tu};function Fo(k,C){var G=C[0],oe=C[1],_e=C[2],ke=C[3];G=G.evaluate(k),oe=oe.evaluate(k),_e=_e.evaluate(k);var Ue=ke?ke.evaluate(k):1,ct=Il(G,oe,_e,Ue);if(ct)throw new bs(ct);return new _s(G/255*Ue,oe/255*Ue,_e/255*Ue,Ue)}function hs(k,C){return k in C}function Is(k,C){var G=C[k];return typeof G>"u"?null:G}function vs(k,C,G,oe){for(;G<=oe;){var _e=G+oe>>1;if(C[_e]===k)return!0;C[_e]>k?oe=_e-1:G=_e+1}return!1}function Rs(k){return{type:k}}Bi.register(ao,{error:[ys,[so],function(k,C){var G=C[0];throw new bs(G.evaluate(k))}],typeof:[so,[Di],function(k,C){var G=C[0];return Cs(Os(G.evaluate(k)))}],"to-rgba":[rl(hi,4),[Zo],function(k,C){var G=C[0];return G.evaluate(k).toArray()}],rgb:[Zo,[hi,hi,hi],Fo],rgba:[Zo,[hi,hi,hi,hi],Fo],has:{type:Oi,overloads:[[[so],function(k,C){var G=C[0];return hs(G.evaluate(k),k.properties())}],[[so,qs],function(k,C){var G=C[0],oe=C[1];return hs(G.evaluate(k),oe.evaluate(k))}]]},get:{type:Di,overloads:[[[so],function(k,C){var G=C[0];return Is(G.evaluate(k),k.properties())}],[[so,qs],function(k,C){var G=C[0],oe=C[1];return Is(G.evaluate(k),oe.evaluate(k))}]]},"feature-state":[Di,[so],function(k,C){var G=C[0];return Is(G.evaluate(k),k.featureState||{})}],properties:[qs,[],function(k){return k.properties()}],"geometry-type":[so,[],function(k){return k.geometryType()}],id:[Di,[],function(k){return k.id()}],zoom:[hi,[],function(k){return k.globals.zoom}],"heatmap-density":[hi,[],function(k){return k.globals.heatmapDensity||0}],"line-progress":[hi,[],function(k){return k.globals.lineProgress||0}],accumulated:[Di,[],function(k){return k.globals.accumulated===void 0?null:k.globals.accumulated}],"+":[hi,Rs(hi),function(k,C){for(var G=0,oe=0,_e=C;oe<_e.length;oe+=1){var ke=_e[oe];G+=ke.evaluate(k)}return G}],"*":[hi,Rs(hi),function(k,C){for(var G=1,oe=0,_e=C;oe<_e.length;oe+=1){var ke=_e[oe];G*=ke.evaluate(k)}return G}],"-":{type:hi,overloads:[[[hi,hi],function(k,C){var G=C[0],oe=C[1];return G.evaluate(k)-oe.evaluate(k)}],[[hi],function(k,C){var G=C[0];return-G.evaluate(k)}]]},"/":[hi,[hi,hi],function(k,C){var G=C[0],oe=C[1];return G.evaluate(k)/oe.evaluate(k)}],"%":[hi,[hi,hi],function(k,C){var G=C[0],oe=C[1];return G.evaluate(k)%oe.evaluate(k)}],ln2:[hi,[],function(){return Math.LN2}],pi:[hi,[],function(){return Math.PI}],e:[hi,[],function(){return Math.E}],"^":[hi,[hi,hi],function(k,C){var G=C[0],oe=C[1];return Math.pow(G.evaluate(k),oe.evaluate(k))}],sqrt:[hi,[hi],function(k,C){var G=C[0];return Math.sqrt(G.evaluate(k))}],log10:[hi,[hi],function(k,C){var G=C[0];return Math.log(G.evaluate(k))/Math.LN10}],ln:[hi,[hi],function(k,C){var G=C[0];return Math.log(G.evaluate(k))}],log2:[hi,[hi],function(k,C){var G=C[0];return Math.log(G.evaluate(k))/Math.LN2}],sin:[hi,[hi],function(k,C){var G=C[0];return Math.sin(G.evaluate(k))}],cos:[hi,[hi],function(k,C){var G=C[0];return Math.cos(G.evaluate(k))}],tan:[hi,[hi],function(k,C){var G=C[0];return Math.tan(G.evaluate(k))}],asin:[hi,[hi],function(k,C){var G=C[0];return Math.asin(G.evaluate(k))}],acos:[hi,[hi],function(k,C){var G=C[0];return Math.acos(G.evaluate(k))}],atan:[hi,[hi],function(k,C){var G=C[0];return Math.atan(G.evaluate(k))}],min:[hi,Rs(hi),function(k,C){return Math.min.apply(Math,C.map(function(G){return G.evaluate(k)}))}],max:[hi,Rs(hi),function(k,C){return Math.max.apply(Math,C.map(function(G){return G.evaluate(k)}))}],abs:[hi,[hi],function(k,C){var G=C[0];return Math.abs(G.evaluate(k))}],round:[hi,[hi],function(k,C){var G=C[0],oe=G.evaluate(k);return oe<0?-Math.round(-oe):Math.round(oe)}],floor:[hi,[hi],function(k,C){var G=C[0];return Math.floor(G.evaluate(k))}],ceil:[hi,[hi],function(k,C){var G=C[0];return Math.ceil(G.evaluate(k))}],"filter-==":[Oi,[so,Di],function(k,C){var G=C[0],oe=C[1];return k.properties()[G.value]===oe.value}],"filter-id-==":[Oi,[Di],function(k,C){var G=C[0];return k.id()===G.value}],"filter-type-==":[Oi,[so],function(k,C){var G=C[0];return k.geometryType()===G.value}],"filter-<":[Oi,[so,Di],function(k,C){var G=C[0],oe=C[1],_e=k.properties()[G.value],ke=oe.value;return typeof _e==typeof ke&&_e":[Oi,[so,Di],function(k,C){var G=C[0],oe=C[1],_e=k.properties()[G.value],ke=oe.value;return typeof _e==typeof ke&&_e>ke}],"filter-id->":[Oi,[Di],function(k,C){var G=C[0],oe=k.id(),_e=G.value;return typeof oe==typeof _e&&oe>_e}],"filter-<=":[Oi,[so,Di],function(k,C){var G=C[0],oe=C[1],_e=k.properties()[G.value],ke=oe.value;return typeof _e==typeof ke&&_e<=ke}],"filter-id-<=":[Oi,[Di],function(k,C){var G=C[0],oe=k.id(),_e=G.value;return typeof oe==typeof _e&&oe<=_e}],"filter->=":[Oi,[so,Di],function(k,C){var G=C[0],oe=C[1],_e=k.properties()[G.value],ke=oe.value;return typeof _e==typeof ke&&_e>=ke}],"filter-id->=":[Oi,[Di],function(k,C){var G=C[0],oe=k.id(),_e=G.value;return typeof oe==typeof _e&&oe>=_e}],"filter-has":[Oi,[Di],function(k,C){var G=C[0];return G.value in k.properties()}],"filter-has-id":[Oi,[],function(k){return k.id()!==null&&k.id()!==void 0}],"filter-type-in":[Oi,[rl(so)],function(k,C){var G=C[0];return G.value.indexOf(k.geometryType())>=0}],"filter-id-in":[Oi,[rl(Di)],function(k,C){var G=C[0];return G.value.indexOf(k.id())>=0}],"filter-in-small":[Oi,[so,rl(Di)],function(k,C){var G=C[0],oe=C[1];return oe.value.indexOf(k.properties()[G.value])>=0}],"filter-in-large":[Oi,[so,rl(Di)],function(k,C){var G=C[0],oe=C[1];return vs(k.properties()[G.value],oe.value,0,oe.value.length-1)}],all:{type:Oi,overloads:[[[Oi,Oi],function(k,C){var G=C[0],oe=C[1];return G.evaluate(k)&&oe.evaluate(k)}],[Rs(Oi),function(k,C){for(var G=0,oe=C;G-1}function wi(k){return!!k.expression&&k.expression.interpolated}function go(k){return k instanceof Number?"number":k instanceof String?"string":k instanceof Boolean?"boolean":Array.isArray(k)?"array":k===null?"null":typeof k}function ws(k){return typeof k=="object"&&k!==null&&!Array.isArray(k)}function os(k){return k}function Hl(k,C){var G=C.type==="color",oe=k.stops&&typeof k.stops[0][0]=="object",_e=oe||k.property!==void 0,ke=oe||!_e,Ue=k.type||(wi(C)?"exponential":"interval");if(G&&(k=Ss({},k),k.stops&&(k.stops=k.stops.map(function(xi){return[xi[0],_s.parse(xi[1])]})),k.default?k.default=_s.parse(k.default):k.default=_s.parse(C.default)),k.colorSpace&&k.colorSpace!=="rgb"&&!wf[k.colorSpace])throw new Error("Unknown color space: "+k.colorSpace);var ct,Pt,Gt;if(Ue==="exponential")ct=Xl;else if(Ue==="interval")ct=uc;else if(Ue==="categorical"){ct=$l,Pt=Object.create(null);for(var tr=0,xr=k.stops;tr=k.stops[oe-1][0])return k.stops[oe-1][1];var _e=Gl(k.stops.map(function(ke){return ke[0]}),G);return k.stops[_e][1]}function Xl(k,C,G){var oe=k.base!==void 0?k.base:1;if(go(G)!=="number")return Wl(k.default,C.default);var _e=k.stops.length;if(_e===1||G<=k.stops[0][0])return k.stops[0][1];if(G>=k.stops[_e-1][0])return k.stops[_e-1][1];var ke=Gl(k.stops.map(function(xr){return xr[0]}),G),Ue=ll(G,oe,k.stops[ke][0],k.stops[ke+1][0]),ct=k.stops[ke][1],Pt=k.stops[ke+1][1],Gt=rc[C.type]||os;if(k.colorSpace&&k.colorSpace!=="rgb"){var tr=wf[k.colorSpace];Gt=function(xr,Nr){return tr.reverse(tr.interpolate(tr.forward(xr),tr.forward(Nr),Ue))}}return typeof ct.evaluate=="function"?{evaluate:function(){for(var Nr=[],zr=arguments.length;zr--;)Nr[zr]=arguments[zr];var aa=ct.evaluate.apply(void 0,Nr),Ca=Pt.evaluate.apply(void 0,Nr);if(!(aa===void 0||Ca===void 0))return Gt(aa,Ca,Ue)}}:Gt(ct,Pt,Ue)}function Xu(k,C,G){return C.type==="color"?G=_s.parse(G):C.type==="formatted"?G=Pl.fromString(G.toString()):C.type==="resolvedImage"?G=Tl.fromString(G.toString()):go(G)!==C.type&&(C.type!=="enum"||!C.values[G])&&(G=void 0),Wl(G,k.default,C.default)}function ll(k,C,G,oe){var _e=oe-G,ke=k-G;return _e===0?0:C===1?ke/_e:(Math.pow(C,ke)-1)/(Math.pow(C,_e)-1)}var Zu=function(C,G){this.expression=C,this._warningHistory={},this._evaluator=new is,this._defaultValue=G?Se(G):null,this._enumValues=G&&G.type==="enum"?G.values:null};Zu.prototype.evaluateWithoutErrorHandling=function(C,G,oe,_e,ke,Ue){return this._evaluator.globals=C,this._evaluator.feature=G,this._evaluator.featureState=oe,this._evaluator.canonical=_e,this._evaluator.availableImages=ke||null,this._evaluator.formattedSection=Ue,this.expression.evaluate(this._evaluator)},Zu.prototype.evaluate=function(C,G,oe,_e,ke,Ue){this._evaluator.globals=C,this._evaluator.feature=G||null,this._evaluator.featureState=oe||null,this._evaluator.canonical=_e,this._evaluator.availableImages=ke||null,this._evaluator.formattedSection=Ue||null;try{var ct=this.expression.evaluate(this._evaluator);if(ct==null||typeof ct=="number"&&ct!==ct)return this._defaultValue;if(this._enumValues&&!(ct in this._enumValues))throw new bs("Expected value to be one of "+Object.keys(this._enumValues).map(function(Pt){return JSON.stringify(Pt)}).join(", ")+", but found "+JSON.stringify(ct)+" instead.");return ct}catch(Pt){return this._warningHistory[Pt.message]||(this._warningHistory[Pt.message]=!0,typeof console<"u"&&console.warn(Pt.message)),this._defaultValue}};function Yi(k){return Array.isArray(k)&&k.length>0&&typeof k[0]=="string"&&k[0]in ao}function io(k,C){var G=new Bs(ao,[],C?Te(C):void 0),oe=G.parse(k,void 0,void 0,void 0,C&&C.type==="string"?{typeAnnotation:"coerce"}:void 0);return oe?Yo(new Zu(oe,C)):sl(G.errors)}var Yu=function(C,G){this.kind=C,this._styleExpression=G,this.isStateDependent=C!=="constant"&&!el(G.expression)};Yu.prototype.evaluateWithoutErrorHandling=function(C,G,oe,_e,ke,Ue){return this._styleExpression.evaluateWithoutErrorHandling(C,G,oe,_e,ke,Ue)},Yu.prototype.evaluate=function(C,G,oe,_e,ke,Ue){return this._styleExpression.evaluate(C,G,oe,_e,ke,Ue)};var du=function(C,G,oe,_e){this.kind=C,this.zoomStops=oe,this._styleExpression=G,this.isStateDependent=C!=="camera"&&!el(G.expression),this.interpolationType=_e};du.prototype.evaluateWithoutErrorHandling=function(C,G,oe,_e,ke,Ue){return this._styleExpression.evaluateWithoutErrorHandling(C,G,oe,_e,ke,Ue)},du.prototype.evaluate=function(C,G,oe,_e,ke,Ue){return this._styleExpression.evaluate(C,G,oe,_e,ke,Ue)},du.prototype.interpolationFactor=function(C,G,oe){return this.interpolationType?Fl.interpolationFactor(this.interpolationType,C,G,oe):0};function iu(k,C){if(k=io(k,C),k.result==="error")return k;var G=k.value.expression,oe=Qc(G);if(!oe&&!nl(C))return sl([new No("","data expressions not supported")]);var _e=ru(G,["zoom"]);if(!_e&&!Ls(C))return sl([new No("","zoom expressions not supported")]);var ke=ne(G);if(!ke&&!_e)return sl([new No("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')]);if(ke instanceof No)return sl([ke]);if(ke instanceof Fl&&!wi(C))return sl([new No("",'"interpolate" expressions cannot be used with this property')]);if(!ke)return Yo(oe?new Yu("constant",k.value):new Yu("source",k.value));var Ue=ke instanceof Fl?ke.interpolation:void 0;return Yo(oe?new du("camera",k.value,ke.labels,Ue):new du("composite",k.value,ke.labels,Ue))}var ze=function(C,G){this._parameters=C,this._specification=G,Ss(this,Hl(this._parameters,this._specification))};ze.deserialize=function(C){return new ze(C._parameters,C._specification)},ze.serialize=function(C){return{_parameters:C._parameters,_specification:C._specification}};function L(k,C){if(ws(k))return new ze(k,C);if(Yi(k)){var G=iu(k,C);if(G.result==="error")throw new Error(G.value.map(function(_e){return _e.key+": "+_e.message}).join(", "));return G.value}else{var oe=k;return typeof k=="string"&&C.type==="color"&&(oe=_s.parse(k)),{kind:"constant",evaluate:function(){return oe}}}}function ne(k){var C=null;if(k instanceof Wu)C=ne(k.result);else if(k instanceof vu)for(var G=0,oe=k.args;Goe.maximum?[new fi(C,G,G+" is greater than the maximum value "+oe.maximum)]:[]}function Dt(k){var C=k.valueSpec,G=Gi(k.value.type),oe,_e={},ke,Ue,ct=G!=="categorical"&&k.value.property===void 0,Pt=!ct,Gt=go(k.value.stops)==="array"&&go(k.value.stops[0])==="array"&&go(k.value.stops[0][0])==="object",tr=Re({key:k.key,value:k.value,valueSpec:k.styleSpec.function,style:k.style,styleSpec:k.styleSpec,objectElementValidators:{stops:xr,default:aa}});return G==="identity"&&ct&&tr.push(new fi(k.key,k.value,'missing required property "property"')),G!=="identity"&&!k.value.stops&&tr.push(new fi(k.key,k.value,'missing required property "stops"')),G==="exponential"&&k.valueSpec.expression&&!wi(k.valueSpec)&&tr.push(new fi(k.key,k.value,"exponential functions not supported")),k.styleSpec.$version>=8&&(Pt&&!nl(k.valueSpec)?tr.push(new fi(k.key,k.value,"property functions not supported")):ct&&!Ls(k.valueSpec)&&tr.push(new fi(k.key,k.value,"zoom functions not supported"))),(G==="categorical"||Gt)&&k.value.property===void 0&&tr.push(new fi(k.key,k.value,'"property" property is required')),tr;function xr(Ca){if(G==="identity")return[new fi(Ca.key,Ca.value,'identity function may not have a "stops" property')];var gn=[],Qa=Ca.value;return gn=gn.concat(ft({key:Ca.key,value:Qa,valueSpec:Ca.valueSpec,style:Ca.style,styleSpec:Ca.styleSpec,arrayElementValidator:Nr})),go(Qa)==="array"&&Qa.length===0&&gn.push(new fi(Ca.key,Qa,"array must have at least one stop")),gn}function Nr(Ca){var gn=[],Qa=Ca.value,Un=Ca.key;if(go(Qa)!=="array")return[new fi(Un,Qa,"array expected, "+go(Qa)+" found")];if(Qa.length!==2)return[new fi(Un,Qa,"array length 2 expected, length "+Qa.length+" found")];if(Gt){if(go(Qa[0])!=="object")return[new fi(Un,Qa,"object expected, "+go(Qa[0])+" found")];if(Qa[0].zoom===void 0)return[new fi(Un,Qa,"object stop key must have zoom")];if(Qa[0].value===void 0)return[new fi(Un,Qa,"object stop key must have value")];if(Ue&&Ue>Gi(Qa[0].zoom))return[new fi(Un,Qa[0].zoom,"stop zoom values must appear in ascending order")];Gi(Qa[0].zoom)!==Ue&&(Ue=Gi(Qa[0].zoom),ke=void 0,_e={}),gn=gn.concat(Re({key:Un+"[0]",value:Qa[0],valueSpec:{zoom:{}},style:Ca.style,styleSpec:Ca.styleSpec,objectElementValidators:{zoom:xt,value:zr}}))}else gn=gn.concat(zr({key:Un+"[0]",value:Qa[0],style:Ca.style,styleSpec:Ca.styleSpec},Qa));return Yi(js(Qa[1]))?gn.concat([new fi(Un+"[1]",Qa[1],"expressions are not allowed in function stops.")]):gn.concat(Ho({key:Un+"[1]",value:Qa[1],valueSpec:C,style:Ca.style,styleSpec:Ca.styleSpec}))}function zr(Ca,gn){var Qa=go(Ca.value),Un=Gi(Ca.value),Mn=Ca.value!==null?Ca.value:gn;if(!oe)oe=Qa;else if(Qa!==oe)return[new fi(Ca.key,Mn,Qa+" stop domain type must match previous stop domain type "+oe)];if(Qa!=="number"&&Qa!=="string"&&Qa!=="boolean")return[new fi(Ca.key,Mn,"stop domain value must be a number, string, or boolean")];if(Qa!=="number"&&G!=="categorical"){var Nn="number expected, "+Qa+" found";return nl(C)&&G===void 0&&(Nn+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new fi(Ca.key,Mn,Nn)]}return G==="categorical"&&Qa==="number"&&(!isFinite(Un)||Math.floor(Un)!==Un)?[new fi(Ca.key,Mn,"integer expected, found "+Un)]:G!=="categorical"&&Qa==="number"&&ke!==void 0&&Un=2&&k[1]!=="$id"&&k[1]!=="$type";case"in":return k.length>=3&&(typeof k[1]!="string"||Array.isArray(k[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return k.length!==3||Array.isArray(k[1])||Array.isArray(k[2]);case"any":case"all":for(var C=0,G=k.slice(1);CC?1:0}function vt(k){if(!Array.isArray(k))return!1;if(k[0]==="within")return!0;for(var C=1;C"||C==="<="||C===">="?_t(k[1],k[2],C):C==="any"?Lt(k.slice(1)):C==="all"?["all"].concat(k.slice(1).map(St)):C==="none"?["all"].concat(k.slice(1).map(St).map(gr)):C==="in"?nr(k[1],k.slice(2)):C==="!in"?gr(nr(k[1],k.slice(2))):C==="has"?cr(k[1]):C==="!has"?gr(cr(k[1])):C==="within"?k:!0;return G}function _t(k,C,G){switch(k){case"$type":return["filter-type-"+G,C];case"$id":return["filter-id-"+G,C];default:return["filter-"+G,k,C]}}function Lt(k){return["any"].concat(k.map(St))}function nr(k,C){if(C.length===0)return!1;switch(k){case"$type":return["filter-type-in",["literal",C]];case"$id":return["filter-id-in",["literal",C]];default:return C.length>200&&!C.some(function(G){return typeof G!=typeof C[0]})?["filter-in-large",k,["literal",C.sort(it)]]:["filter-in-small",k,["literal",C]]}}function cr(k){switch(k){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",k]}}function gr(k){return["!",k]}function Cr(k){return ea(js(k.value))?er(Ss({},k,{expressionContext:"filter",valueSpec:{value:"boolean"}})):Wr(k)}function Wr(k){var C=k.value,G=k.key;if(go(C)!=="array")return[new fi(G,C,"array expected, "+go(C)+" found")];var oe=k.styleSpec,_e,ke=[];if(C.length<1)return[new fi(G,C,"filter array must have at least 1 element")];switch(ke=ke.concat(Br({key:G+"[0]",value:C[0],valueSpec:oe.filter_operator,style:k.style,styleSpec:k.styleSpec})),Gi(C[0])){case"<":case"<=":case">":case">=":C.length>=2&&Gi(C[1])==="$type"&&ke.push(new fi(G,C,'"$type" cannot be use with operator "'+C[0]+'"'));case"==":case"!=":C.length!==3&&ke.push(new fi(G,C,'filter array for operator "'+C[0]+'" must have 3 elements'));case"in":case"!in":C.length>=2&&(_e=go(C[1]),_e!=="string"&&ke.push(new fi(G+"[1]",C[1],"string expected, "+_e+" found")));for(var Ue=2;Ue=tr[zr+0]&&oe>=tr[zr+1])?(Ue[Nr]=!0,ke.push(Gt[Nr])):Ue[Nr]=!1}}},$e.prototype._forEachCell=function(k,C,G,oe,_e,ke,Ue,ct){for(var Pt=this._convertToCellCoord(k),Gt=this._convertToCellCoord(C),tr=this._convertToCellCoord(G),xr=this._convertToCellCoord(oe),Nr=Pt;Nr<=tr;Nr++)for(var zr=Gt;zr<=xr;zr++){var aa=this.d*zr+Nr;if(!(ct&&!ct(this._convertFromCellCoord(Nr),this._convertFromCellCoord(zr),this._convertFromCellCoord(Nr+1),this._convertFromCellCoord(zr+1)))&&_e.call(this,k,C,G,oe,aa,ke,Ue,ct))return}},$e.prototype._convertFromCellCoord=function(k){return(k-this.padding)/this.scale},$e.prototype._convertToCellCoord=function(k){return Math.max(0,Math.min(this.d-1,Math.floor(k*this.scale)+this.padding))},$e.prototype.toArrayBuffer=function(){if(this.arrayBuffer)return this.arrayBuffer;for(var k=this.cells,C=Le+this.cells.length+1+1,G=0,oe=0;oe=0)){var xr=k[tr];Gt[tr]=Tt[Pt].shallow.indexOf(tr)>=0?xr:kr(xr,C)}k instanceof Error&&(Gt.message=k.message)}if(Gt.$name)throw new Error("$name property is reserved for worker serialization logic.");return Pt!=="Object"&&(Gt.$name=Pt),Gt}throw new Error("can't serialize object of type "+typeof k)}function Zr(k){if(k==null||typeof k=="boolean"||typeof k=="number"||typeof k=="string"||k instanceof Boolean||k instanceof Number||k instanceof String||k instanceof Date||k instanceof RegExp||sr(k)||Pr(k)||ArrayBuffer.isView(k)||k instanceof dt)return k;if(Array.isArray(k))return k.map(Zr);if(typeof k=="object"){var C=k.$name||"Object",G=Tt[C],oe=G.klass;if(!oe)throw new Error("can't deserialize unregistered class "+C);if(oe.deserialize)return oe.deserialize(k);for(var _e=Object.create(oe.prototype),ke=0,Ue=Object.keys(k);ke=0?Pt:Zr(Pt)}}return _e}throw new Error("can't deserialize object of type "+typeof k)}var la=function(){this.first=!0};la.prototype.update=function(C,G){var oe=Math.floor(C);return this.first?(this.first=!1,this.lastIntegerZoom=oe,this.lastIntegerZoomTime=0,this.lastZoom=C,this.lastFloorZoom=oe,!0):(this.lastFloorZoom>oe?(this.lastIntegerZoom=oe+1,this.lastIntegerZoomTime=G):this.lastFloorZoom=128&&k<=255},Arabic:function(k){return k>=1536&&k<=1791},"Arabic Supplement":function(k){return k>=1872&&k<=1919},"Arabic Extended-A":function(k){return k>=2208&&k<=2303},"Hangul Jamo":function(k){return k>=4352&&k<=4607},"Unified Canadian Aboriginal Syllabics":function(k){return k>=5120&&k<=5759},Khmer:function(k){return k>=6016&&k<=6143},"Unified Canadian Aboriginal Syllabics Extended":function(k){return k>=6320&&k<=6399},"General Punctuation":function(k){return k>=8192&&k<=8303},"Letterlike Symbols":function(k){return k>=8448&&k<=8527},"Number Forms":function(k){return k>=8528&&k<=8591},"Miscellaneous Technical":function(k){return k>=8960&&k<=9215},"Control Pictures":function(k){return k>=9216&&k<=9279},"Optical Character Recognition":function(k){return k>=9280&&k<=9311},"Enclosed Alphanumerics":function(k){return k>=9312&&k<=9471},"Geometric Shapes":function(k){return k>=9632&&k<=9727},"Miscellaneous Symbols":function(k){return k>=9728&&k<=9983},"Miscellaneous Symbols and Arrows":function(k){return k>=11008&&k<=11263},"CJK Radicals Supplement":function(k){return k>=11904&&k<=12031},"Kangxi Radicals":function(k){return k>=12032&&k<=12255},"Ideographic Description Characters":function(k){return k>=12272&&k<=12287},"CJK Symbols and Punctuation":function(k){return k>=12288&&k<=12351},Hiragana:function(k){return k>=12352&&k<=12447},Katakana:function(k){return k>=12448&&k<=12543},Bopomofo:function(k){return k>=12544&&k<=12591},"Hangul Compatibility Jamo":function(k){return k>=12592&&k<=12687},Kanbun:function(k){return k>=12688&&k<=12703},"Bopomofo Extended":function(k){return k>=12704&&k<=12735},"CJK Strokes":function(k){return k>=12736&&k<=12783},"Katakana Phonetic Extensions":function(k){return k>=12784&&k<=12799},"Enclosed CJK Letters and Months":function(k){return k>=12800&&k<=13055},"CJK Compatibility":function(k){return k>=13056&&k<=13311},"CJK Unified Ideographs Extension A":function(k){return k>=13312&&k<=19903},"Yijing Hexagram Symbols":function(k){return k>=19904&&k<=19967},"CJK Unified Ideographs":function(k){return k>=19968&&k<=40959},"Yi Syllables":function(k){return k>=40960&&k<=42127},"Yi Radicals":function(k){return k>=42128&&k<=42191},"Hangul Jamo Extended-A":function(k){return k>=43360&&k<=43391},"Hangul Syllables":function(k){return k>=44032&&k<=55215},"Hangul Jamo Extended-B":function(k){return k>=55216&&k<=55295},"Private Use Area":function(k){return k>=57344&&k<=63743},"CJK Compatibility Ideographs":function(k){return k>=63744&&k<=64255},"Arabic Presentation Forms-A":function(k){return k>=64336&&k<=65023},"Vertical Forms":function(k){return k>=65040&&k<=65055},"CJK Compatibility Forms":function(k){return k>=65072&&k<=65103},"Small Form Variants":function(k){return k>=65104&&k<=65135},"Arabic Presentation Forms-B":function(k){return k>=65136&&k<=65279},"Halfwidth and Fullwidth Forms":function(k){return k>=65280&&k<=65519}};function nn(k){for(var C=0,G=k;C=65097&&k<=65103)||ca["CJK Compatibility Ideographs"](k)||ca["CJK Compatibility"](k)||ca["CJK Radicals Supplement"](k)||ca["CJK Strokes"](k)||ca["CJK Symbols and Punctuation"](k)&&!(k>=12296&&k<=12305)&&!(k>=12308&&k<=12319)&&k!==12336||ca["CJK Unified Ideographs Extension A"](k)||ca["CJK Unified Ideographs"](k)||ca["Enclosed CJK Letters and Months"](k)||ca["Hangul Compatibility Jamo"](k)||ca["Hangul Jamo Extended-A"](k)||ca["Hangul Jamo Extended-B"](k)||ca["Hangul Jamo"](k)||ca["Hangul Syllables"](k)||ca.Hiragana(k)||ca["Ideographic Description Characters"](k)||ca.Kanbun(k)||ca["Kangxi Radicals"](k)||ca["Katakana Phonetic Extensions"](k)||ca.Katakana(k)&&k!==12540||ca["Halfwidth and Fullwidth Forms"](k)&&k!==65288&&k!==65289&&k!==65293&&!(k>=65306&&k<=65310)&&k!==65339&&k!==65341&&k!==65343&&!(k>=65371&&k<=65503)&&k!==65507&&!(k>=65512&&k<=65519)||ca["Small Form Variants"](k)&&!(k>=65112&&k<=65118)&&!(k>=65123&&k<=65126)||ca["Unified Canadian Aboriginal Syllabics"](k)||ca["Unified Canadian Aboriginal Syllabics Extended"](k)||ca["Vertical Forms"](k)||ca["Yijing Hexagram Symbols"](k)||ca["Yi Syllables"](k)||ca["Yi Radicals"](k))}function sn(k){return!!(ca["Latin-1 Supplement"](k)&&(k===167||k===169||k===174||k===177||k===188||k===189||k===190||k===215||k===247)||ca["General Punctuation"](k)&&(k===8214||k===8224||k===8225||k===8240||k===8241||k===8251||k===8252||k===8258||k===8263||k===8264||k===8265||k===8273)||ca["Letterlike Symbols"](k)||ca["Number Forms"](k)||ca["Miscellaneous Technical"](k)&&(k>=8960&&k<=8967||k>=8972&&k<=8991||k>=8996&&k<=9e3||k===9003||k>=9085&&k<=9114||k>=9150&&k<=9165||k===9167||k>=9169&&k<=9179||k>=9186&&k<=9215)||ca["Control Pictures"](k)&&k!==9251||ca["Optical Character Recognition"](k)||ca["Enclosed Alphanumerics"](k)||ca["Geometric Shapes"](k)||ca["Miscellaneous Symbols"](k)&&!(k>=9754&&k<=9759)||ca["Miscellaneous Symbols and Arrows"](k)&&(k>=11026&&k<=11055||k>=11088&&k<=11097||k>=11192&&k<=11243)||ca["CJK Symbols and Punctuation"](k)||ca.Katakana(k)||ca["Private Use Area"](k)||ca["CJK Compatibility Forms"](k)||ca["Small Form Variants"](k)||ca["Halfwidth and Fullwidth Forms"](k)||k===8734||k===8756||k===8757||k>=9984&&k<=10087||k>=10102&&k<=10131||k===65532||k===65533)}function Ba(k){return!(rn(k)||sn(k))}function Rn(k){return ca.Arabic(k)||ca["Arabic Supplement"](k)||ca["Arabic Extended-A"](k)||ca["Arabic Presentation Forms-A"](k)||ca["Arabic Presentation Forms-B"](k)}function ni(k){return k>=1424&&k<=2303||ca["Arabic Presentation Forms-A"](k)||ca["Arabic Presentation Forms-B"](k)}function Zn(k,C){return!(!C&&ni(k)||k>=2304&&k<=3583||k>=3840&&k<=4255||ca.Khmer(k))}function ri(k){for(var C=0,G=k;C-1&&(Ii=ki.error),Vo&&Vo(k)};function hl(){Ns.fire(new Or("pluginStateChange",{pluginStatus:Ii,pluginURL:lo}))}var Ns=new Dr,di=function(){return Ii},Lo=function(k){return k({pluginStatus:Ii,pluginURL:lo}),Ns.on("pluginStateChange",k),k},Wo=function(k,C,G){if(G===void 0&&(G=!1),Ii===ki.deferred||Ii===ki.loading||Ii===ki.loaded)throw new Error("setRTLTextPlugin cannot be called multiple times.");lo=xe.resolveURL(k),Ii=ki.deferred,Vo=C,hl(),G||Ds()},Ds=function(){if(Ii!==ki.deferred||!lo)throw new Error("rtl-text-plugin cannot be downloaded unless a pluginURL is specified");Ii=ki.loading,hl(),lo&&ha({url:lo},function(k){k?$o(k):(Ii=ki.loaded,hl())})},Ts={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:function(){return Ii===ki.loaded||Ts.applyArabicShaping!=null},isLoading:function(){return Ii===ki.loading},setState:function(C){Ii=C.pluginStatus,lo=C.pluginURL},isParsed:function(){return Ts.applyArabicShaping!=null&&Ts.processBidirectionalText!=null&&Ts.processStyledBidirectionalText!=null},getPluginURL:function(){return lo}},Kl=function(){!Ts.isLoading()&&!Ts.isLoaded()&&di()==="deferred"&&Ds()},ds=function(C,G){this.zoom=C,G?(this.now=G.now,this.fadeDuration=G.fadeDuration,this.zoomHistory=G.zoomHistory,this.transition=G.transition):(this.now=0,this.fadeDuration=0,this.zoomHistory=new la,this.transition={})};ds.prototype.isSupportedScript=function(C){return Ti(C,Ts.isLoaded())},ds.prototype.crossFadingFactor=function(){return this.fadeDuration===0?1:Math.min((this.now-this.zoomHistory.lastIntegerZoomTime)/this.fadeDuration,1)},ds.prototype.getCrossfadeParameters=function(){var C=this.zoom,G=C-Math.floor(C),oe=this.crossFadingFactor();return C>this.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:G+(1-G)*oe}:{fromScale:.5,toScale:1,t:1-(1-oe)*G}};var zs=function(C,G){this.property=C,this.value=G,this.expression=L(G===void 0?C.specification.default:G,C.specification)};zs.prototype.isDataDriven=function(){return this.expression.kind==="source"||this.expression.kind==="composite"},zs.prototype.possiblyEvaluate=function(C,G,oe){return this.property.possiblyEvaluate(this,C,G,oe)};var pu=function(C){this.property=C,this.value=new zs(C,void 0)};pu.prototype.transitioned=function(C,G){return new lt(this.property,this.value,G,_({},C.transition,this.transition),C.now)},pu.prototype.untransitioned=function(){return new lt(this.property,this.value,null,{},0)};var ul=function(C){this._properties=C,this._values=Object.create(C.defaultTransitionablePropertyValues)};ul.prototype.getValue=function(C){return O(this._values[C].value.value)},ul.prototype.setValue=function(C,G){this._values.hasOwnProperty(C)||(this._values[C]=new pu(this._values[C].property)),this._values[C].value=new zs(this._values[C].property,G===null?void 0:O(G))},ul.prototype.getTransition=function(C){return O(this._values[C].transition)},ul.prototype.setTransition=function(C,G){this._values.hasOwnProperty(C)||(this._values[C]=new pu(this._values[C].property)),this._values[C].transition=O(G)||void 0},ul.prototype.serialize=function(){for(var C={},G=0,oe=Object.keys(this._values);Gthis.end)return this.prior=null,ke;if(this.value.isDataDriven())return this.prior=null,ke;if(_eUe.zoomHistory.lastIntegerZoom?{from:oe,to:_e}:{from:ke,to:_e}},C.prototype.interpolate=function(oe){return oe},C}(Kr),ln=function(C){this.specification=C};ln.prototype.possiblyEvaluate=function(C,G,oe,_e){if(C.value!==void 0)if(C.expression.kind==="constant"){var ke=C.expression.evaluate(G,null,{},oe,_e);return this._calculate(ke,ke,ke,G)}else return this._calculate(C.expression.evaluate(new ds(Math.floor(G.zoom-1),G)),C.expression.evaluate(new ds(Math.floor(G.zoom),G)),C.expression.evaluate(new ds(Math.floor(G.zoom+1),G)),G)},ln.prototype._calculate=function(C,G,oe,_e){var ke=_e.zoom;return ke>_e.zoomHistory.lastIntegerZoom?{from:C,to:G}:{from:oe,to:G}},ln.prototype.interpolate=function(C){return C};var un=function(C){this.specification=C};un.prototype.possiblyEvaluate=function(C,G,oe,_e){return!!C.expression.evaluate(G,null,{},oe,_e)},un.prototype.interpolate=function(){return!1};var wn=function(C){this.properties=C,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[];for(var G in C){var oe=C[G];oe.specification.overridable&&this.overridableProperties.push(G);var _e=this.defaultPropertyValues[G]=new zs(oe,void 0),ke=this.defaultTransitionablePropertyValues[G]=new pu(oe);this.defaultTransitioningPropertyValues[G]=ke.untransitioned(),this.defaultPossiblyEvaluatedValues[G]=_e.possiblyEvaluate({})}};Vt("DataDrivenProperty",Kr),Vt("DataConstantProperty",Jr),Vt("CrossFadedDataDrivenProperty",cn),Vt("CrossFadedProperty",ln),Vt("ColorRampProperty",un);var Jn="-transition",jn=function(k){function C(G,oe){if(k.call(this),this.id=G.id,this.type=G.type,this._featureFilter={filter:function(){return!0},needGeometry:!1},G.type!=="custom"&&(G=G,this.metadata=G.metadata,this.minzoom=G.minzoom,this.maxzoom=G.maxzoom,G.type!=="background"&&(this.source=G.source,this.sourceLayer=G["source-layer"],this.filter=G.filter),oe.layout&&(this._unevaluatedLayout=new ur(oe.layout)),oe.paint)){this._transitionablePaint=new ul(oe.paint);for(var _e in G.paint)this.setPaintProperty(_e,G.paint[_e],{validate:!1});for(var ke in G.layout)this.setLayoutProperty(ke,G.layout[ke],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new Va(oe.paint)}}return k&&(C.__proto__=k),C.prototype=Object.create(k&&k.prototype),C.prototype.constructor=C,C.prototype.getCrossfadeParameters=function(){return this._crossfadeParameters},C.prototype.getLayoutProperty=function(oe){return oe==="visibility"?this.visibility:this._unevaluatedLayout.getValue(oe)},C.prototype.setLayoutProperty=function(oe,_e,ke){if(ke===void 0&&(ke={}),_e!=null){var Ue="layers."+this.id+".layout."+oe;if(this._validate(Dl,Ue,oe,_e,ke))return}if(oe==="visibility"){this.visibility=_e;return}this._unevaluatedLayout.setValue(oe,_e)},C.prototype.getPaintProperty=function(oe){return z(oe,Jn)?this._transitionablePaint.getTransition(oe.slice(0,-Jn.length)):this._transitionablePaint.getValue(oe)},C.prototype.setPaintProperty=function(oe,_e,ke){if(ke===void 0&&(ke={}),_e!=null){var Ue="layers."+this.id+".paint."+oe;if(this._validate(fl,Ue,oe,_e,ke))return!1}if(z(oe,Jn))return this._transitionablePaint.setTransition(oe.slice(0,-Jn.length),_e||void 0),!1;var ct=this._transitionablePaint._values[oe],Pt=ct.property.specification["property-type"]==="cross-faded-data-driven",Gt=ct.value.isDataDriven(),tr=ct.value;this._transitionablePaint.setValue(oe,_e),this._handleSpecialPaintPropertyUpdate(oe);var xr=this._transitionablePaint._values[oe].value,Nr=xr.isDataDriven();return Nr||Gt||Pt||this._handleOverridablePaintPropertyUpdate(oe,tr,xr)},C.prototype._handleSpecialPaintPropertyUpdate=function(oe){},C.prototype._handleOverridablePaintPropertyUpdate=function(oe,_e,ke){return!1},C.prototype.isHidden=function(oe){return this.minzoom&&oe=this.maxzoom?!0:this.visibility==="none"},C.prototype.updateTransitions=function(oe){this._transitioningPaint=this._transitionablePaint.transitioned(oe,this._transitioningPaint)},C.prototype.hasTransition=function(){return this._transitioningPaint.hasTransition()},C.prototype.recalculate=function(oe,_e){oe.getCrossfadeParameters&&(this._crossfadeParameters=oe.getCrossfadeParameters()),this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(oe,void 0,_e)),this.paint=this._transitioningPaint.possiblyEvaluate(oe,void 0,_e)},C.prototype.serialize=function(){var oe={id:this.id,type:this.type,source:this.source,"source-layer":this.sourceLayer,metadata:this.metadata,minzoom:this.minzoom,maxzoom:this.maxzoom,filter:this.filter,layout:this._unevaluatedLayout&&this._unevaluatedLayout.serialize(),paint:this._transitionablePaint&&this._transitionablePaint.serialize()};return this.visibility&&(oe.layout=oe.layout||{},oe.layout.visibility=this.visibility),B(oe,function(_e,ke){return _e!==void 0&&!(ke==="layout"&&!Object.keys(_e).length)&&!(ke==="paint"&&!Object.keys(_e).length)})},C.prototype._validate=function(oe,_e,ke,Ue,ct){return ct===void 0&&(ct={}),ct&&ct.validate===!1?!1:ou(this,oe.call(ko,{key:_e,layerType:this.type,objectKey:ke,value:Ue,styleSpec:kn,style:{glyphs:!0,sprite:!0}}))},C.prototype.is3D=function(){return!1},C.prototype.isTileClipped=function(){return!1},C.prototype.hasOffscreenPass=function(){return!1},C.prototype.resize=function(){},C.prototype.isStateDependent=function(){for(var oe in this.paint._values){var _e=this.paint.get(oe);if(!(!(_e instanceof fa)||!nl(_e.property.specification))&&(_e.value.kind==="source"||_e.value.kind==="composite")&&_e.value.isStateDependent)return!0}return!1},C}(Dr),xn={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array},Za=function(C,G){this._structArray=C,this._pos1=G*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8},Ur=128,ya=5,Ra=function(){this.isTransferred=!1,this.capacity=-1,this.resize(0)};Ra.serialize=function(C,G){return C._trim(),G&&(C.isTransferred=!0,G.push(C.arrayBuffer)),{length:C.length,arrayBuffer:C.arrayBuffer}},Ra.deserialize=function(C){var G=Object.create(this.prototype);return G.arrayBuffer=C.arrayBuffer,G.length=C.length,G.capacity=C.arrayBuffer.byteLength/G.bytesPerElement,G._refreshViews(),G},Ra.prototype._trim=function(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())},Ra.prototype.clear=function(){this.length=0},Ra.prototype.resize=function(C){this.reserve(C),this.length=C},Ra.prototype.reserve=function(C){if(C>this.capacity){this.capacity=Math.max(C,Math.floor(this.capacity*ya),Ur),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);var G=this.uint8;this._refreshViews(),G&&this.uint8.set(G)}},Ra.prototype._refreshViews=function(){throw new Error("_refreshViews() must be implemented by each concrete StructArray layout")};function $a(k,C){C===void 0&&(C=1);var G=0,oe=0,_e=k.map(function(Ue){var ct=Fa(Ue.type),Pt=G=Bn(G,Math.max(C,ct)),Gt=Ue.components||1;return oe=Math.max(oe,ct),G+=ct*Gt,{name:Ue.name,type:Ue.type,components:Gt,offset:Pt}}),ke=Bn(G,Math.max(oe,C));return{members:_e,size:ke,alignment:C}}function Fa(k){return xn[k].BYTES_PER_ELEMENT}function Bn(k,C){return Math.ceil(k/C)*C}var pn=function(k){function C(){k.apply(this,arguments)}return k&&(C.__proto__=k),C.prototype=Object.create(k&&k.prototype),C.prototype.constructor=C,C.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},C.prototype.emplaceBack=function(oe,_e){var ke=this.length;return this.resize(ke+1),this.emplace(ke,oe,_e)},C.prototype.emplace=function(oe,_e,ke){var Ue=oe*2;return this.int16[Ue+0]=_e,this.int16[Ue+1]=ke,oe},C}(Ra);pn.prototype.bytesPerElement=4,Vt("StructArrayLayout2i4",pn);var Xn=function(k){function C(){k.apply(this,arguments)}return k&&(C.__proto__=k),C.prototype=Object.create(k&&k.prototype),C.prototype.constructor=C,C.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},C.prototype.emplaceBack=function(oe,_e,ke,Ue){var ct=this.length;return this.resize(ct+1),this.emplace(ct,oe,_e,ke,Ue)},C.prototype.emplace=function(oe,_e,ke,Ue,ct){var Pt=oe*4;return this.int16[Pt+0]=_e,this.int16[Pt+1]=ke,this.int16[Pt+2]=Ue,this.int16[Pt+3]=ct,oe},C}(Ra);Xn.prototype.bytesPerElement=8,Vt("StructArrayLayout4i8",Xn);var Oa=function(k){function C(){k.apply(this,arguments)}return k&&(C.__proto__=k),C.prototype=Object.create(k&&k.prototype),C.prototype.constructor=C,C.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},C.prototype.emplaceBack=function(oe,_e,ke,Ue,ct,Pt){var Gt=this.length;return this.resize(Gt+1),this.emplace(Gt,oe,_e,ke,Ue,ct,Pt)},C.prototype.emplace=function(oe,_e,ke,Ue,ct,Pt,Gt){var tr=oe*6;return this.int16[tr+0]=_e,this.int16[tr+1]=ke,this.int16[tr+2]=Ue,this.int16[tr+3]=ct,this.int16[tr+4]=Pt,this.int16[tr+5]=Gt,oe},C}(Ra);Oa.prototype.bytesPerElement=12,Vt("StructArrayLayout2i4i12",Oa);var Ea=function(k){function C(){k.apply(this,arguments)}return k&&(C.__proto__=k),C.prototype=Object.create(k&&k.prototype),C.prototype.constructor=C,C.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},C.prototype.emplaceBack=function(oe,_e,ke,Ue,ct,Pt){var Gt=this.length;return this.resize(Gt+1),this.emplace(Gt,oe,_e,ke,Ue,ct,Pt)},C.prototype.emplace=function(oe,_e,ke,Ue,ct,Pt,Gt){var tr=oe*4,xr=oe*8;return this.int16[tr+0]=_e,this.int16[tr+1]=ke,this.uint8[xr+4]=Ue,this.uint8[xr+5]=ct,this.uint8[xr+6]=Pt,this.uint8[xr+7]=Gt,oe},C}(Ra);Ea.prototype.bytesPerElement=8,Vt("StructArrayLayout2i4ub8",Ea);var Dn=function(k){function C(){k.apply(this,arguments)}return k&&(C.__proto__=k),C.prototype=Object.create(k&&k.prototype),C.prototype.constructor=C,C.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},C.prototype.emplaceBack=function(oe,_e){var ke=this.length;return this.resize(ke+1),this.emplace(ke,oe,_e)},C.prototype.emplace=function(oe,_e,ke){var Ue=oe*2;return this.float32[Ue+0]=_e,this.float32[Ue+1]=ke,oe},C}(Ra);Dn.prototype.bytesPerElement=8,Vt("StructArrayLayout2f8",Dn);var da=function(k){function C(){k.apply(this,arguments)}return k&&(C.__proto__=k),C.prototype=Object.create(k&&k.prototype),C.prototype.constructor=C,C.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},C.prototype.emplaceBack=function(oe,_e,ke,Ue,ct,Pt,Gt,tr,xr,Nr){var zr=this.length;return this.resize(zr+1),this.emplace(zr,oe,_e,ke,Ue,ct,Pt,Gt,tr,xr,Nr)},C.prototype.emplace=function(oe,_e,ke,Ue,ct,Pt,Gt,tr,xr,Nr,zr){var aa=oe*10;return this.uint16[aa+0]=_e,this.uint16[aa+1]=ke,this.uint16[aa+2]=Ue,this.uint16[aa+3]=ct,this.uint16[aa+4]=Pt,this.uint16[aa+5]=Gt,this.uint16[aa+6]=tr,this.uint16[aa+7]=xr,this.uint16[aa+8]=Nr,this.uint16[aa+9]=zr,oe},C}(Ra);da.prototype.bytesPerElement=20,Vt("StructArrayLayout10ui20",da);var An=function(k){function C(){k.apply(this,arguments)}return k&&(C.__proto__=k),C.prototype=Object.create(k&&k.prototype),C.prototype.constructor=C,C.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},C.prototype.emplaceBack=function(oe,_e,ke,Ue,ct,Pt,Gt,tr,xr,Nr,zr,aa){var Ca=this.length;return this.resize(Ca+1),this.emplace(Ca,oe,_e,ke,Ue,ct,Pt,Gt,tr,xr,Nr,zr,aa)},C.prototype.emplace=function(oe,_e,ke,Ue,ct,Pt,Gt,tr,xr,Nr,zr,aa,Ca){var gn=oe*12;return this.int16[gn+0]=_e,this.int16[gn+1]=ke,this.int16[gn+2]=Ue,this.int16[gn+3]=ct,this.uint16[gn+4]=Pt,this.uint16[gn+5]=Gt,this.uint16[gn+6]=tr,this.uint16[gn+7]=xr,this.int16[gn+8]=Nr,this.int16[gn+9]=zr,this.int16[gn+10]=aa,this.int16[gn+11]=Ca,oe},C}(Ra);An.prototype.bytesPerElement=24,Vt("StructArrayLayout4i4ui4i24",An);var fn=function(k){function C(){k.apply(this,arguments)}return k&&(C.__proto__=k),C.prototype=Object.create(k&&k.prototype),C.prototype.constructor=C,C.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},C.prototype.emplaceBack=function(oe,_e,ke){var Ue=this.length;return this.resize(Ue+1),this.emplace(Ue,oe,_e,ke)},C.prototype.emplace=function(oe,_e,ke,Ue){var ct=oe*3;return this.float32[ct+0]=_e,this.float32[ct+1]=ke,this.float32[ct+2]=Ue,oe},C}(Ra);fn.prototype.bytesPerElement=12,Vt("StructArrayLayout3f12",fn);var Yn=function(k){function C(){k.apply(this,arguments)}return k&&(C.__proto__=k),C.prototype=Object.create(k&&k.prototype),C.prototype.constructor=C,C.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)},C.prototype.emplaceBack=function(oe){var _e=this.length;return this.resize(_e+1),this.emplace(_e,oe)},C.prototype.emplace=function(oe,_e){var ke=oe*1;return this.uint32[ke+0]=_e,oe},C}(Ra);Yn.prototype.bytesPerElement=4,Vt("StructArrayLayout1ul4",Yn);var Pi=function(k){function C(){k.apply(this,arguments)}return k&&(C.__proto__=k),C.prototype=Object.create(k&&k.prototype),C.prototype.constructor=C,C.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},C.prototype.emplaceBack=function(oe,_e,ke,Ue,ct,Pt,Gt,tr,xr){var Nr=this.length;return this.resize(Nr+1),this.emplace(Nr,oe,_e,ke,Ue,ct,Pt,Gt,tr,xr)},C.prototype.emplace=function(oe,_e,ke,Ue,ct,Pt,Gt,tr,xr,Nr){var zr=oe*10,aa=oe*5;return this.int16[zr+0]=_e,this.int16[zr+1]=ke,this.int16[zr+2]=Ue,this.int16[zr+3]=ct,this.int16[zr+4]=Pt,this.int16[zr+5]=Gt,this.uint32[aa+3]=tr,this.uint16[zr+8]=xr,this.uint16[zr+9]=Nr,oe},C}(Ra);Pi.prototype.bytesPerElement=20,Vt("StructArrayLayout6i1ul2ui20",Pi);var Vn=function(k){function C(){k.apply(this,arguments)}return k&&(C.__proto__=k),C.prototype=Object.create(k&&k.prototype),C.prototype.constructor=C,C.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},C.prototype.emplaceBack=function(oe,_e,ke,Ue,ct,Pt){var Gt=this.length;return this.resize(Gt+1),this.emplace(Gt,oe,_e,ke,Ue,ct,Pt)},C.prototype.emplace=function(oe,_e,ke,Ue,ct,Pt,Gt){var tr=oe*6;return this.int16[tr+0]=_e,this.int16[tr+1]=ke,this.int16[tr+2]=Ue,this.int16[tr+3]=ct,this.int16[tr+4]=Pt,this.int16[tr+5]=Gt,oe},C}(Ra);Vn.prototype.bytesPerElement=12,Vt("StructArrayLayout2i2i2i12",Vn);var ei=function(k){function C(){k.apply(this,arguments)}return k&&(C.__proto__=k),C.prototype=Object.create(k&&k.prototype),C.prototype.constructor=C,C.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},C.prototype.emplaceBack=function(oe,_e,ke,Ue,ct){var Pt=this.length;return this.resize(Pt+1),this.emplace(Pt,oe,_e,ke,Ue,ct)},C.prototype.emplace=function(oe,_e,ke,Ue,ct,Pt){var Gt=oe*4,tr=oe*8;return this.float32[Gt+0]=_e,this.float32[Gt+1]=ke,this.float32[Gt+2]=Ue,this.int16[tr+6]=ct,this.int16[tr+7]=Pt,oe},C}(Ra);ei.prototype.bytesPerElement=16,Vt("StructArrayLayout2f1f2i16",ei);var bn=function(k){function C(){k.apply(this,arguments)}return k&&(C.__proto__=k),C.prototype=Object.create(k&&k.prototype),C.prototype.constructor=C,C.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},C.prototype.emplaceBack=function(oe,_e,ke,Ue){var ct=this.length;return this.resize(ct+1),this.emplace(ct,oe,_e,ke,Ue)},C.prototype.emplace=function(oe,_e,ke,Ue,ct){var Pt=oe*12,Gt=oe*3;return this.uint8[Pt+0]=_e,this.uint8[Pt+1]=ke,this.float32[Gt+1]=Ue,this.float32[Gt+2]=ct,oe},C}(Ra);bn.prototype.bytesPerElement=12,Vt("StructArrayLayout2ub2f12",bn);var Mi=function(k){function C(){k.apply(this,arguments)}return k&&(C.__proto__=k),C.prototype=Object.create(k&&k.prototype),C.prototype.constructor=C,C.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},C.prototype.emplaceBack=function(oe,_e,ke){var Ue=this.length;return this.resize(Ue+1),this.emplace(Ue,oe,_e,ke)},C.prototype.emplace=function(oe,_e,ke,Ue){var ct=oe*3;return this.uint16[ct+0]=_e,this.uint16[ct+1]=ke,this.uint16[ct+2]=Ue,oe},C}(Ra);Mi.prototype.bytesPerElement=6,Vt("StructArrayLayout3ui6",Mi);var Xi=function(k){function C(){k.apply(this,arguments)}return k&&(C.__proto__=k),C.prototype=Object.create(k&&k.prototype),C.prototype.constructor=C,C.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},C.prototype.emplaceBack=function(oe,_e,ke,Ue,ct,Pt,Gt,tr,xr,Nr,zr,aa,Ca,gn,Qa,Un,Mn){var Nn=this.length;return this.resize(Nn+1),this.emplace(Nn,oe,_e,ke,Ue,ct,Pt,Gt,tr,xr,Nr,zr,aa,Ca,gn,Qa,Un,Mn)},C.prototype.emplace=function(oe,_e,ke,Ue,ct,Pt,Gt,tr,xr,Nr,zr,aa,Ca,gn,Qa,Un,Mn,Nn){var Hn=oe*24,si=oe*12,Ai=oe*48;return this.int16[Hn+0]=_e,this.int16[Hn+1]=ke,this.uint16[Hn+2]=Ue,this.uint16[Hn+3]=ct,this.uint32[si+2]=Pt,this.uint32[si+3]=Gt,this.uint32[si+4]=tr,this.uint16[Hn+10]=xr,this.uint16[Hn+11]=Nr,this.uint16[Hn+12]=zr,this.float32[si+7]=aa,this.float32[si+8]=Ca,this.uint8[Ai+36]=gn,this.uint8[Ai+37]=Qa,this.uint8[Ai+38]=Un,this.uint32[si+10]=Mn,this.int16[Hn+22]=Nn,oe},C}(Ra);Xi.prototype.bytesPerElement=48,Vt("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48",Xi);var eo=function(k){function C(){k.apply(this,arguments)}return k&&(C.__proto__=k),C.prototype=Object.create(k&&k.prototype),C.prototype.constructor=C,C.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},C.prototype.emplaceBack=function(oe,_e,ke,Ue,ct,Pt,Gt,tr,xr,Nr,zr,aa,Ca,gn,Qa,Un,Mn,Nn,Hn,si,Ai,xi,uo,ji,Qi,ns,co,po){var Ps=this.length;return this.resize(Ps+1),this.emplace(Ps,oe,_e,ke,Ue,ct,Pt,Gt,tr,xr,Nr,zr,aa,Ca,gn,Qa,Un,Mn,Nn,Hn,si,Ai,xi,uo,ji,Qi,ns,co,po)},C.prototype.emplace=function(oe,_e,ke,Ue,ct,Pt,Gt,tr,xr,Nr,zr,aa,Ca,gn,Qa,Un,Mn,Nn,Hn,si,Ai,xi,uo,ji,Qi,ns,co,po,Ps){var Jo=oe*34,yl=oe*17;return this.int16[Jo+0]=_e,this.int16[Jo+1]=ke,this.int16[Jo+2]=Ue,this.int16[Jo+3]=ct,this.int16[Jo+4]=Pt,this.int16[Jo+5]=Gt,this.int16[Jo+6]=tr,this.int16[Jo+7]=xr,this.uint16[Jo+8]=Nr,this.uint16[Jo+9]=zr,this.uint16[Jo+10]=aa,this.uint16[Jo+11]=Ca,this.uint16[Jo+12]=gn,this.uint16[Jo+13]=Qa,this.uint16[Jo+14]=Un,this.uint16[Jo+15]=Mn,this.uint16[Jo+16]=Nn,this.uint16[Jo+17]=Hn,this.uint16[Jo+18]=si,this.uint16[Jo+19]=Ai,this.uint16[Jo+20]=xi,this.uint16[Jo+21]=uo,this.uint16[Jo+22]=ji,this.uint32[yl+12]=Qi,this.float32[yl+13]=ns,this.float32[yl+14]=co,this.float32[yl+15]=po,this.float32[yl+16]=Ps,oe},C}(Ra);eo.prototype.bytesPerElement=68,Vt("StructArrayLayout8i15ui1ul4f68",eo);var ts=function(k){function C(){k.apply(this,arguments)}return k&&(C.__proto__=k),C.prototype=Object.create(k&&k.prototype),C.prototype.constructor=C,C.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},C.prototype.emplaceBack=function(oe){var _e=this.length;return this.resize(_e+1),this.emplace(_e,oe)},C.prototype.emplace=function(oe,_e){var ke=oe*1;return this.float32[ke+0]=_e,oe},C}(Ra);ts.prototype.bytesPerElement=4,Vt("StructArrayLayout1f4",ts);var to=function(k){function C(){k.apply(this,arguments)}return k&&(C.__proto__=k),C.prototype=Object.create(k&&k.prototype),C.prototype.constructor=C,C.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},C.prototype.emplaceBack=function(oe,_e,ke){var Ue=this.length;return this.resize(Ue+1),this.emplace(Ue,oe,_e,ke)},C.prototype.emplace=function(oe,_e,ke,Ue){var ct=oe*3;return this.int16[ct+0]=_e,this.int16[ct+1]=ke,this.int16[ct+2]=Ue,oe},C}(Ra);to.prototype.bytesPerElement=6,Vt("StructArrayLayout3i6",to);var il=function(k){function C(){k.apply(this,arguments)}return k&&(C.__proto__=k),C.prototype=Object.create(k&&k.prototype),C.prototype.constructor=C,C.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},C.prototype.emplaceBack=function(oe,_e,ke){var Ue=this.length;return this.resize(Ue+1),this.emplace(Ue,oe,_e,ke)},C.prototype.emplace=function(oe,_e,ke,Ue){var ct=oe*2,Pt=oe*4;return this.uint32[ct+0]=_e,this.uint16[Pt+2]=ke,this.uint16[Pt+3]=Ue,oe},C}(Ra);il.prototype.bytesPerElement=8,Vt("StructArrayLayout1ul2ui8",il);var Xo=function(k){function C(){k.apply(this,arguments)}return k&&(C.__proto__=k),C.prototype=Object.create(k&&k.prototype),C.prototype.constructor=C,C.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},C.prototype.emplaceBack=function(oe,_e){var ke=this.length;return this.resize(ke+1),this.emplace(ke,oe,_e)},C.prototype.emplace=function(oe,_e,ke){var Ue=oe*2;return this.uint16[Ue+0]=_e,this.uint16[Ue+1]=ke,oe},C}(Ra);Xo.prototype.bytesPerElement=4,Vt("StructArrayLayout2ui4",Xo);var Qs=function(k){function C(){k.apply(this,arguments)}return k&&(C.__proto__=k),C.prototype=Object.create(k&&k.prototype),C.prototype.constructor=C,C.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},C.prototype.emplaceBack=function(oe){var _e=this.length;return this.resize(_e+1),this.emplace(_e,oe)},C.prototype.emplace=function(oe,_e){var ke=oe*1;return this.uint16[ke+0]=_e,oe},C}(Ra);Qs.prototype.bytesPerElement=2,Vt("StructArrayLayout1ui2",Qs);var pl=function(k){function C(){k.apply(this,arguments)}return k&&(C.__proto__=k),C.prototype=Object.create(k&&k.prototype),C.prototype.constructor=C,C.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},C.prototype.emplaceBack=function(oe,_e,ke,Ue){var ct=this.length;return this.resize(ct+1),this.emplace(ct,oe,_e,ke,Ue)},C.prototype.emplace=function(oe,_e,ke,Ue,ct){var Pt=oe*4;return this.float32[Pt+0]=_e,this.float32[Pt+1]=ke,this.float32[Pt+2]=Ue,this.float32[Pt+3]=ct,oe},C}(Ra);pl.prototype.bytesPerElement=16,Vt("StructArrayLayout4f16",pl);var El=function(k){function C(){k.apply(this,arguments)}k&&(C.__proto__=k),C.prototype=Object.create(k&&k.prototype),C.prototype.constructor=C;var G={anchorPointX:{configurable:!0},anchorPointY:{configurable:!0},x1:{configurable:!0},y1:{configurable:!0},x2:{configurable:!0},y2:{configurable:!0},featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0},anchorPoint:{configurable:!0}};return G.anchorPointX.get=function(){return this._structArray.int16[this._pos2+0]},G.anchorPointY.get=function(){return this._structArray.int16[this._pos2+1]},G.x1.get=function(){return this._structArray.int16[this._pos2+2]},G.y1.get=function(){return this._structArray.int16[this._pos2+3]},G.x2.get=function(){return this._structArray.int16[this._pos2+4]},G.y2.get=function(){return this._structArray.int16[this._pos2+5]},G.featureIndex.get=function(){return this._structArray.uint32[this._pos4+3]},G.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+8]},G.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+9]},G.anchorPoint.get=function(){return new o(this.anchorPointX,this.anchorPointY)},Object.defineProperties(C.prototype,G),C}(Za);El.prototype.size=20;var zu=function(k){function C(){k.apply(this,arguments)}return k&&(C.__proto__=k),C.prototype=Object.create(k&&k.prototype),C.prototype.constructor=C,C.prototype.get=function(oe){return new El(this,oe)},C}(Pi);Vt("CollisionBoxArray",zu);var Us=function(k){function C(){k.apply(this,arguments)}k&&(C.__proto__=k),C.prototype=Object.create(k&&k.prototype),C.prototype.constructor=C;var G={anchorX:{configurable:!0},anchorY:{configurable:!0},glyphStartIndex:{configurable:!0},numGlyphs:{configurable:!0},vertexStartIndex:{configurable:!0},lineStartIndex:{configurable:!0},lineLength:{configurable:!0},segment:{configurable:!0},lowerSize:{configurable:!0},upperSize:{configurable:!0},lineOffsetX:{configurable:!0},lineOffsetY:{configurable:!0},writingMode:{configurable:!0},placedOrientation:{configurable:!0},hidden:{configurable:!0},crossTileID:{configurable:!0},associatedIconIndex:{configurable:!0}};return G.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},G.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},G.glyphStartIndex.get=function(){return this._structArray.uint16[this._pos2+2]},G.numGlyphs.get=function(){return this._structArray.uint16[this._pos2+3]},G.vertexStartIndex.get=function(){return this._structArray.uint32[this._pos4+2]},G.lineStartIndex.get=function(){return this._structArray.uint32[this._pos4+3]},G.lineLength.get=function(){return this._structArray.uint32[this._pos4+4]},G.segment.get=function(){return this._structArray.uint16[this._pos2+10]},G.lowerSize.get=function(){return this._structArray.uint16[this._pos2+11]},G.upperSize.get=function(){return this._structArray.uint16[this._pos2+12]},G.lineOffsetX.get=function(){return this._structArray.float32[this._pos4+7]},G.lineOffsetY.get=function(){return this._structArray.float32[this._pos4+8]},G.writingMode.get=function(){return this._structArray.uint8[this._pos1+36]},G.placedOrientation.get=function(){return this._structArray.uint8[this._pos1+37]},G.placedOrientation.set=function(oe){this._structArray.uint8[this._pos1+37]=oe},G.hidden.get=function(){return this._structArray.uint8[this._pos1+38]},G.hidden.set=function(oe){this._structArray.uint8[this._pos1+38]=oe},G.crossTileID.get=function(){return this._structArray.uint32[this._pos4+10]},G.crossTileID.set=function(oe){this._structArray.uint32[this._pos4+10]=oe},G.associatedIconIndex.get=function(){return this._structArray.int16[this._pos2+22]},Object.defineProperties(C.prototype,G),C}(Za);Us.prototype.size=48;var $s=function(k){function C(){k.apply(this,arguments)}return k&&(C.__proto__=k),C.prototype=Object.create(k&&k.prototype),C.prototype.constructor=C,C.prototype.get=function(oe){return new Us(this,oe)},C}(Xi);Vt("PlacedSymbolArray",$s);var mi=function(k){function C(){k.apply(this,arguments)}k&&(C.__proto__=k),C.prototype=Object.create(k&&k.prototype),C.prototype.constructor=C;var G={anchorX:{configurable:!0},anchorY:{configurable:!0},rightJustifiedTextSymbolIndex:{configurable:!0},centerJustifiedTextSymbolIndex:{configurable:!0},leftJustifiedTextSymbolIndex:{configurable:!0},verticalPlacedTextSymbolIndex:{configurable:!0},placedIconSymbolIndex:{configurable:!0},verticalPlacedIconSymbolIndex:{configurable:!0},key:{configurable:!0},textBoxStartIndex:{configurable:!0},textBoxEndIndex:{configurable:!0},verticalTextBoxStartIndex:{configurable:!0},verticalTextBoxEndIndex:{configurable:!0},iconBoxStartIndex:{configurable:!0},iconBoxEndIndex:{configurable:!0},verticalIconBoxStartIndex:{configurable:!0},verticalIconBoxEndIndex:{configurable:!0},featureIndex:{configurable:!0},numHorizontalGlyphVertices:{configurable:!0},numVerticalGlyphVertices:{configurable:!0},numIconVertices:{configurable:!0},numVerticalIconVertices:{configurable:!0},useRuntimeCollisionCircles:{configurable:!0},crossTileID:{configurable:!0},textBoxScale:{configurable:!0},textOffset0:{configurable:!0},textOffset1:{configurable:!0},collisionCircleDiameter:{configurable:!0}};return G.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},G.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},G.rightJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+2]},G.centerJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+3]},G.leftJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+4]},G.verticalPlacedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+5]},G.placedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+6]},G.verticalPlacedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+7]},G.key.get=function(){return this._structArray.uint16[this._pos2+8]},G.textBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+9]},G.textBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+10]},G.verticalTextBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+11]},G.verticalTextBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+12]},G.iconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+13]},G.iconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+14]},G.verticalIconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+15]},G.verticalIconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+16]},G.featureIndex.get=function(){return this._structArray.uint16[this._pos2+17]},G.numHorizontalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+18]},G.numVerticalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+19]},G.numIconVertices.get=function(){return this._structArray.uint16[this._pos2+20]},G.numVerticalIconVertices.get=function(){return this._structArray.uint16[this._pos2+21]},G.useRuntimeCollisionCircles.get=function(){return this._structArray.uint16[this._pos2+22]},G.crossTileID.get=function(){return this._structArray.uint32[this._pos4+12]},G.crossTileID.set=function(oe){this._structArray.uint32[this._pos4+12]=oe},G.textBoxScale.get=function(){return this._structArray.float32[this._pos4+13]},G.textOffset0.get=function(){return this._structArray.float32[this._pos4+14]},G.textOffset1.get=function(){return this._structArray.float32[this._pos4+15]},G.collisionCircleDiameter.get=function(){return this._structArray.float32[this._pos4+16]},Object.defineProperties(C.prototype,G),C}(Za);mi.prototype.size=68;var kl=function(k){function C(){k.apply(this,arguments)}return k&&(C.__proto__=k),C.prototype=Object.create(k&&k.prototype),C.prototype.constructor=C,C.prototype.get=function(oe){return new mi(this,oe)},C}(eo);Vt("SymbolInstanceArray",kl);var Oo=function(k){function C(){k.apply(this,arguments)}return k&&(C.__proto__=k),C.prototype=Object.create(k&&k.prototype),C.prototype.constructor=C,C.prototype.getoffsetX=function(oe){return this.float32[oe*1+0]},C}(ts);Vt("GlyphOffsetArray",Oo);var As=function(k){function C(){k.apply(this,arguments)}return k&&(C.__proto__=k),C.prototype=Object.create(k&&k.prototype),C.prototype.constructor=C,C.prototype.getx=function(oe){return this.int16[oe*3+0]},C.prototype.gety=function(oe){return this.int16[oe*3+1]},C.prototype.gettileUnitDistanceFromAnchor=function(oe){return this.int16[oe*3+2]},C}(to);Vt("SymbolLineVertexArray",As);var Ol=function(k){function C(){k.apply(this,arguments)}k&&(C.__proto__=k),C.prototype=Object.create(k&&k.prototype),C.prototype.constructor=C;var G={featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0}};return G.featureIndex.get=function(){return this._structArray.uint32[this._pos4+0]},G.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+2]},G.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+3]},Object.defineProperties(C.prototype,G),C}(Za);Ol.prototype.size=8;var Bl=function(k){function C(){k.apply(this,arguments)}return k&&(C.__proto__=k),C.prototype=Object.create(k&&k.prototype),C.prototype.constructor=C,C.prototype.get=function(oe){return new Ol(this,oe)},C}(il);Vt("FeatureIndexArray",Bl);var Ci=$a([{name:"a_pos",components:2,type:"Int16"}],4),fo=Ci.members,mo=function(C){C===void 0&&(C=[]),this.segments=C};mo.prototype.prepareSegment=function(C,G,oe,_e){var ke=this.segments[this.segments.length-1];return C>mo.MAX_VERTEX_ARRAY_LENGTH&&U("Max vertices per segment is "+mo.MAX_VERTEX_ARRAY_LENGTH+": bucket requested "+C),(!ke||ke.vertexLength+C>mo.MAX_VERTEX_ARRAY_LENGTH||ke.sortKey!==_e)&&(ke={vertexOffset:G.length,primitiveOffset:oe.length,vertexLength:0,primitiveLength:0},_e!==void 0&&(ke.sortKey=_e),this.segments.push(ke)),ke},mo.prototype.get=function(){return this.segments},mo.prototype.destroy=function(){for(var C=0,G=this.segments;C>>16)*Pt&65535)<<16)&4294967295,tr=tr<<15|tr>>>17,tr=(tr&65535)*Gt+(((tr>>>16)*Gt&65535)<<16)&4294967295,Ue^=tr,Ue=Ue<<13|Ue>>>19,ct=(Ue&65535)*5+(((Ue>>>16)*5&65535)<<16)&4294967295,Ue=(ct&65535)+27492+(((ct>>>16)+58964&65535)<<16);switch(tr=0,_e){case 3:tr^=(G.charCodeAt(xr+2)&255)<<16;case 2:tr^=(G.charCodeAt(xr+1)&255)<<8;case 1:tr^=G.charCodeAt(xr)&255,tr=(tr&65535)*Pt+(((tr>>>16)*Pt&65535)<<16)&4294967295,tr=tr<<15|tr>>>17,tr=(tr&65535)*Gt+(((tr>>>16)*Gt&65535)<<16)&4294967295,Ue^=tr}return Ue^=G.length,Ue^=Ue>>>16,Ue=(Ue&65535)*2246822507+(((Ue>>>16)*2246822507&65535)<<16)&4294967295,Ue^=Ue>>>13,Ue=(Ue&65535)*3266489909+(((Ue>>>16)*3266489909&65535)<<16)&4294967295,Ue^=Ue>>>16,Ue>>>0}k.exports=C}),$=t(function(k){function C(G,oe){for(var _e=G.length,ke=oe^_e,Ue=0,ct;_e>=4;)ct=G.charCodeAt(Ue)&255|(G.charCodeAt(++Ue)&255)<<8|(G.charCodeAt(++Ue)&255)<<16|(G.charCodeAt(++Ue)&255)<<24,ct=(ct&65535)*1540483477+(((ct>>>16)*1540483477&65535)<<16),ct^=ct>>>24,ct=(ct&65535)*1540483477+(((ct>>>16)*1540483477&65535)<<16),ke=(ke&65535)*1540483477+(((ke>>>16)*1540483477&65535)<<16)^ct,_e-=4,++Ue;switch(_e){case 3:ke^=(G.charCodeAt(Ue+2)&255)<<16;case 2:ke^=(G.charCodeAt(Ue+1)&255)<<8;case 1:ke^=G.charCodeAt(Ue)&255,ke=(ke&65535)*1540483477+(((ke>>>16)*1540483477&65535)<<16)}return ke^=ke>>>13,ke=(ke&65535)*1540483477+(((ke>>>16)*1540483477&65535)<<16),ke^=ke>>>15,ke>>>0}k.exports=C}),ge=ce,Be=ce,rt=$;ge.murmur3=Be,ge.murmur2=rt;var st=function(){this.ids=[],this.positions=[],this.indexed=!1};st.prototype.add=function(C,G,oe,_e){this.ids.push(Qe(C)),this.positions.push(G,oe,_e)},st.prototype.getPositions=function(C){for(var G=Qe(C),oe=0,_e=this.ids.length-1;oe<_e;){var ke=oe+_e>>1;this.ids[ke]>=G?_e=ke:oe=ke+1}for(var Ue=[];this.ids[oe]===G;){var ct=this.positions[3*oe],Pt=this.positions[3*oe+1],Gt=this.positions[3*oe+2];Ue.push({index:ct,start:Pt,end:Gt}),oe++}return Ue},st.serialize=function(C,G){var oe=new Float64Array(C.ids),_e=new Uint32Array(C.positions);return pt(oe,_e,0,oe.length-1),G&&G.push(oe.buffer,_e.buffer),{ids:oe,positions:_e}},st.deserialize=function(C){var G=new st;return G.ids=C.ids,G.positions=C.positions,G.indexed=!0,G};var Ge=Math.pow(2,53)-1;function Qe(k){var C=+k;return!isNaN(C)&&C<=Ge?C:ge(String(k))}function pt(k,C,G,oe){for(;G>1],ke=G-1,Ue=oe+1;;){do ke++;while(k[ke]<_e);do Ue--;while(k[Ue]>_e);if(ke>=Ue)break;Bt(k,ke,Ue),Bt(C,3*ke,3*Ue),Bt(C,3*ke+1,3*Ue+1),Bt(C,3*ke+2,3*Ue+2)}Ue-GUe.x+1||PtUe.y+1)&&U("Geometry exceeds allowed extent, reduce your vector tile buffer size")}return G}function fs(k,C){return{type:k.type,id:k.id,properties:k.properties,geometry:C?rs(k):[]}}function ls(k,C,G,oe,_e){k.emplaceBack(C*2+(oe+1)/2,G*2+(_e+1)/2)}var Cl=function(C){this.zoom=C.zoom,this.overscaling=C.overscaling,this.layers=C.layers,this.layerIds=this.layers.map(function(G){return G.id}),this.index=C.index,this.hasPattern=!1,this.layoutVertexArray=new pn,this.indexArray=new Mi,this.segments=new mo,this.programConfigurations=new qa(C.layers,C.zoom),this.stateDependentLayerIds=this.layers.filter(function(G){return G.isStateDependent()}).map(function(G){return G.id})};Cl.prototype.populate=function(C,G,oe){var _e=this.layers[0],ke=[],Ue=null;_e.type==="circle"&&(Ue=_e.layout.get("circle-sort-key"));for(var ct=0,Pt=C;ct=ti||Nr<0||Nr>=ti)){var zr=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,C.sortKey),aa=zr.vertexLength;ls(this.layoutVertexArray,xr,Nr,-1,-1),ls(this.layoutVertexArray,xr,Nr,1,-1),ls(this.layoutVertexArray,xr,Nr,1,1),ls(this.layoutVertexArray,xr,Nr,-1,1),this.indexArray.emplaceBack(aa,aa+1,aa+2),this.indexArray.emplaceBack(aa,aa+3,aa+2),zr.vertexLength+=4,zr.primitiveLength+=2}}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,C,oe,{},_e)},Vt("CircleBucket",Cl,{omit:["layers"]});function Qo(k,C){for(var G=0;G=3){for(var ke=0;ke<_e.length;ke++)if(Gf(k,_e[ke]))return!0}if(yh(k,_e,G))return!0}return!1}function yh(k,C,G){if(k.length>1){if(_h(k,C))return!0;for(var oe=0;oe1?k.distSqr(G):k.distSqr(G.sub(C)._mult(_e)._add(C))}function Fh(k,C){for(var G=!1,oe,_e,ke,Ue=0;UeC.y!=ke.y>C.y&&C.x<(ke.x-_e.x)*(C.y-_e.y)/(ke.y-_e.y)+_e.x&&(G=!G)}return G}function Gf(k,C){for(var G=!1,oe=0,_e=k.length-1;oeC.y!=Ue.y>C.y&&C.x<(Ue.x-ke.x)*(C.y-ke.y)/(Ue.y-ke.y)+ke.x&&(G=!G)}return G}function Oh(k,C,G,oe,_e){for(var ke=0,Ue=k;ke=ct.x&&_e>=ct.y)return!0}var Pt=[new o(C,G),new o(C,_e),new o(oe,_e),new o(oe,G)];if(k.length>2)for(var Gt=0,tr=Pt;Gt_e.x&&C.x>_e.x||k.y_e.y&&C.y>_e.y)return!1;var ke=X(k,C,G[0]);return ke!==X(k,C,G[1])||ke!==X(k,C,G[2])||ke!==X(k,C,G[3])}function Hf(k,C,G){var oe=C.paint.get(k).value;return oe.kind==="constant"?oe.value:G.programConfigurations.get(C.id).getMaxValue(k)}function xh(k){return Math.sqrt(k[0]*k[0]+k[1]*k[1])}function Ph(k,C,G,oe,_e){if(!C[0]&&!C[1])return k;var ke=o.convert(C)._mult(_e);G==="viewport"&&ke._rotate(-oe);for(var Ue=[],ct=0;ct0&&(ke=1/Math.sqrt(ke)),k[0]=C[0]*ke,k[1]=C[1]*ke,k[2]=C[2]*ke,k}function Cx(k,C){return k[0]*C[0]+k[1]*C[1]+k[2]*C[2]}function Lx(k,C,G){var oe=C[0],_e=C[1],ke=C[2],Ue=G[0],ct=G[1],Pt=G[2];return k[0]=_e*Pt-ke*ct,k[1]=ke*Ue-oe*Pt,k[2]=oe*ct-_e*Ue,k}function Px(k,C,G){var oe=C[0],_e=C[1],ke=C[2];return k[0]=oe*G[0]+_e*G[3]+ke*G[6],k[1]=oe*G[1]+_e*G[4]+ke*G[7],k[2]=oe*G[2]+_e*G[5]+ke*G[8],k}var Ix=Cv;(function(){var k=kv();return function(C,G,oe,_e,ke,Ue){var ct,Pt;for(G||(G=3),oe||(oe=0),_e?Pt=Math.min(_e*G+oe,C.length):Pt=C.length,ct=oe;ctk.width||_e.height>k.height||G.x>k.width-_e.width||G.y>k.height-_e.height)throw new RangeError("out of range source coordinates for image copy");if(_e.width>C.width||_e.height>C.height||oe.x>C.width-_e.width||oe.y>C.height-_e.height)throw new RangeError("out of range destination coordinates for image copy");for(var Ue=k.data,ct=C.data,Pt=0;Pt<_e.height;Pt++)for(var Gt=((G.y+Pt)*k.width+G.x)*ke,tr=((oe.y+Pt)*C.width+oe.x)*ke,xr=0;xr<_e.width*ke;xr++)ct[tr+xr]=Ue[Gt+xr];return C}var af=function(C,G){gg(this,C,1,G)};af.prototype.resize=function(C){mg(this,C,1)},af.prototype.clone=function(){return new af({width:this.width,height:this.height},new Uint8Array(this.data))},af.copy=function(C,G,oe,_e,ke){a0(C,G,oe,_e,ke,1)};var Df=function(C,G){gg(this,C,4,G)};Df.prototype.resize=function(C){mg(this,C,4)},Df.prototype.replace=function(C,G){G?this.data.set(C):C instanceof Uint8ClampedArray?this.data=new Uint8Array(C.buffer):this.data=C},Df.prototype.clone=function(){return new Df({width:this.width,height:this.height},new Uint8Array(this.data))},Df.copy=function(C,G,oe,_e,ke){a0(C,G,oe,_e,ke,4)},Vt("AlphaImage",af),Vt("RGBAImage",Df);var ny=new wn({"heatmap-radius":new Kr(kn.paint_heatmap["heatmap-radius"]),"heatmap-weight":new Kr(kn.paint_heatmap["heatmap-weight"]),"heatmap-intensity":new Jr(kn.paint_heatmap["heatmap-intensity"]),"heatmap-color":new un(kn.paint_heatmap["heatmap-color"]),"heatmap-opacity":new Jr(kn.paint_heatmap["heatmap-opacity"])}),Lv={paint:ny};function _d(k){var C={},G=k.resolution||256,oe=k.clips?k.clips.length:1,_e=k.image||new Df({width:G,height:oe}),ke=function(Un,Mn,Nn){C[k.evaluationKey]=Nn;var Hn=k.expression.evaluate(C);_e.data[Un+Mn+0]=Math.floor(Hn.r*255/Hn.a),_e.data[Un+Mn+1]=Math.floor(Hn.g*255/Hn.a),_e.data[Un+Mn+2]=Math.floor(Hn.b*255/Hn.a),_e.data[Un+Mn+3]=Math.floor(Hn.a*255)};if(k.clips)for(var Gt=0,tr=0;Gt80*G){ct=Gt=k[0],Pt=tr=k[1];for(var aa=G;aa<_e;aa+=G)xr=k[aa],Nr=k[aa+1],xrGt&&(Gt=xr),Nr>tr&&(tr=Nr);zr=Math.max(Gt-ct,tr-Pt),zr=zr!==0?1/zr:0}return $v(ke,Ue,G,ct,Pt,zr),Ue}function yg(k,C,G,oe,_e){var ke,Ue;if(_e===Ag(k,C,G,oe)>0)for(ke=C;ke=C;ke-=oe)Ue=uy(ke,k[ke],k[ke+1],Ue);return Ue&&bd(Ue,Ue.next)&&(mp(Ue),Ue=Ue.next),Ue}function vv(k,C){if(!k)return k;C||(C=k);var G=k,oe;do if(oe=!1,!G.steiner&&(bd(G,G.next)||mc(G.prev,G,G.next)===0)){if(mp(G),G=C=G.prev,G===G.next)break;oe=!0}else G=G.next;while(oe||G!==C);return C}function $v(k,C,G,oe,_e,ke,Ue){if(k){!Ue&&ke&&xg(k,oe,_e,ke);for(var ct=k,Pt,Gt;k.prev!==k.next;){if(Pt=k.prev,Gt=k.next,ke?Nx(k,oe,_e,ke):_g(k)){C.push(Pt.i/G),C.push(k.i/G),C.push(Gt.i/G),mp(k),k=Gt.next,ct=Gt.next;continue}if(k=Gt,k===ct){Ue?Ue===1?(k=Ux(vv(k),C,G),$v(k,C,G,oe,_e,ke,2)):Ue===2&&oy(k,C,G,oe,_e,ke):$v(vv(k),C,G,oe,_e,ke,1);break}}}}function _g(k){var C=k.prev,G=k,oe=k.next;if(mc(C,G,oe)>=0)return!1;for(var _e=k.next.next;_e!==k.prev;){if(Iv(C.x,C.y,G.x,G.y,oe.x,oe.y,_e.x,_e.y)&&mc(_e.prev,_e,_e.next)>=0)return!1;_e=_e.next}return!0}function Nx(k,C,G,oe){var _e=k.prev,ke=k,Ue=k.next;if(mc(_e,ke,Ue)>=0)return!1;for(var ct=_e.xke.x?_e.x>Ue.x?_e.x:Ue.x:ke.x>Ue.x?ke.x:Ue.x,tr=_e.y>ke.y?_e.y>Ue.y?_e.y:Ue.y:ke.y>Ue.y?ke.y:Ue.y,xr=bg(ct,Pt,C,G,oe),Nr=bg(Gt,tr,C,G,oe),zr=k.prevZ,aa=k.nextZ;zr&&zr.z>=xr&&aa&&aa.z<=Nr;){if(zr!==k.prev&&zr!==k.next&&Iv(_e.x,_e.y,ke.x,ke.y,Ue.x,Ue.y,zr.x,zr.y)&&mc(zr.prev,zr,zr.next)>=0||(zr=zr.prevZ,aa!==k.prev&&aa!==k.next&&Iv(_e.x,_e.y,ke.x,ke.y,Ue.x,Ue.y,aa.x,aa.y)&&mc(aa.prev,aa,aa.next)>=0))return!1;aa=aa.nextZ}for(;zr&&zr.z>=xr;){if(zr!==k.prev&&zr!==k.next&&Iv(_e.x,_e.y,ke.x,ke.y,Ue.x,Ue.y,zr.x,zr.y)&&mc(zr.prev,zr,zr.next)>=0)return!1;zr=zr.prevZ}for(;aa&&aa.z<=Nr;){if(aa!==k.prev&&aa!==k.next&&Iv(_e.x,_e.y,ke.x,ke.y,Ue.x,Ue.y,aa.x,aa.y)&&mc(aa.prev,aa,aa.next)>=0)return!1;aa=aa.nextZ}return!0}function Ux(k,C,G){var oe=k;do{var _e=oe.prev,ke=oe.next.next;!bd(_e,ke)&&Kv(_e,oe,oe.next,ke)&&wd(_e,ke)&&wd(ke,_e)&&(C.push(_e.i/G),C.push(oe.i/G),C.push(ke.i/G),mp(oe),mp(oe.next),oe=k=ke),oe=oe.next}while(oe!==k);return vv(oe)}function oy(k,C,G,oe,_e,ke){var Ue=k;do{for(var ct=Ue.next.next;ct!==Ue.prev;){if(Ue.i!==ct.i&&Vx(Ue,ct)){var Pt=Tg(Ue,ct);Ue=vv(Ue,Ue.next),Pt=vv(Pt,Pt.next),$v(Ue,C,G,oe,_e,ke),$v(Pt,C,G,oe,_e,ke);return}ct=ct.next}Ue=Ue.next}while(Ue!==k)}function sy(k,C,G,oe){var _e=[],ke,Ue,ct,Pt,Gt;for(ke=0,Ue=C.length;ke=G.next.y&&G.next.y!==G.y){var ct=G.x+(_e-G.y)*(G.next.x-G.x)/(G.next.y-G.y);if(ct<=oe&&ct>ke){if(ke=ct,ct===oe){if(_e===G.y)return G;if(_e===G.next.y)return G.next}Ue=G.x=G.x&&G.x>=Gt&&oe!==G.x&&Iv(_eUe.x||G.x===Ue.x&&ly(Ue,G)))&&(Ue=G,xr=Nr)),G=G.next;while(G!==Pt);return Ue}function ly(k,C){return mc(k.prev,k,C.prev)<0&&mc(C.next,k,k.next)<0}function xg(k,C,G,oe){var _e=k;do _e.z===null&&(_e.z=bg(_e.x,_e.y,C,G,oe)),_e.prevZ=_e.prev,_e.nextZ=_e.next,_e=_e.next;while(_e!==k);_e.prevZ.nextZ=null,_e.prevZ=null,jx(_e)}function jx(k){var C,G,oe,_e,ke,Ue,ct,Pt,Gt=1;do{for(G=k,k=null,ke=null,Ue=0;G;){for(Ue++,oe=G,ct=0,C=0;C0||Pt>0&&oe;)ct!==0&&(Pt===0||!oe||G.z<=oe.z)?(_e=G,G=G.nextZ,ct--):(_e=oe,oe=oe.nextZ,Pt--),ke?ke.nextZ=_e:k=_e,_e.prevZ=ke,ke=_e;G=oe}ke.nextZ=null,Gt*=2}while(Ue>1);return k}function bg(k,C,G,oe,_e){return k=32767*(k-G)*_e,C=32767*(C-oe)*_e,k=(k|k<<8)&16711935,k=(k|k<<4)&252645135,k=(k|k<<2)&858993459,k=(k|k<<1)&1431655765,C=(C|C<<8)&16711935,C=(C|C<<4)&252645135,C=(C|C<<2)&858993459,C=(C|C<<1)&1431655765,k|C<<1}function l0(k){var C=k,G=k;do(C.x=0&&(k-Ue)*(oe-ct)-(G-Ue)*(C-ct)>=0&&(G-Ue)*(ke-ct)-(_e-Ue)*(oe-ct)>=0}function Vx(k,C){return k.next.i!==C.i&&k.prev.i!==C.i&&!wg(k,C)&&(wd(k,C)&&wd(C,k)&&u0(k,C)&&(mc(k.prev,k,C.prev)||mc(k,C.prev,C))||bd(k,C)&&mc(k.prev,k,k.next)>0&&mc(C.prev,C,C.next)>0)}function mc(k,C,G){return(C.y-k.y)*(G.x-C.x)-(C.x-k.x)*(G.y-C.y)}function bd(k,C){return k.x===C.x&&k.y===C.y}function Kv(k,C,G,oe){var _e=gp(mc(k,C,G)),ke=gp(mc(k,C,oe)),Ue=gp(mc(G,oe,k)),ct=gp(mc(G,oe,C));return!!(_e!==ke&&Ue!==ct||_e===0&&pp(k,G,C)||ke===0&&pp(k,oe,C)||Ue===0&&pp(G,k,oe)||ct===0&&pp(G,C,oe))}function pp(k,C,G){return C.x<=Math.max(k.x,G.x)&&C.x>=Math.min(k.x,G.x)&&C.y<=Math.max(k.y,G.y)&&C.y>=Math.min(k.y,G.y)}function gp(k){return k>0?1:k<0?-1:0}function wg(k,C){var G=k;do{if(G.i!==k.i&&G.next.i!==k.i&&G.i!==C.i&&G.next.i!==C.i&&Kv(G,G.next,k,C))return!0;G=G.next}while(G!==k);return!1}function wd(k,C){return mc(k.prev,k,k.next)<0?mc(k,C,k.next)>=0&&mc(k,k.prev,C)>=0:mc(k,C,k.prev)<0||mc(k,k.next,C)<0}function u0(k,C){var G=k,oe=!1,_e=(k.x+C.x)/2,ke=(k.y+C.y)/2;do G.y>ke!=G.next.y>ke&&G.next.y!==G.y&&_e<(G.next.x-G.x)*(ke-G.y)/(G.next.y-G.y)+G.x&&(oe=!oe),G=G.next;while(G!==k);return oe}function Tg(k,C){var G=new c0(k.i,k.x,k.y),oe=new c0(C.i,C.x,C.y),_e=k.next,ke=C.prev;return k.next=C,C.prev=k,G.next=_e,_e.prev=G,oe.next=G,G.prev=oe,ke.next=oe,oe.prev=ke,oe}function uy(k,C,G,oe){var _e=new c0(k,C,G);return oe?(_e.next=oe.next,_e.prev=oe,oe.next.prev=_e,oe.next=_e):(_e.prev=_e,_e.next=_e),_e}function mp(k){k.next.prev=k.prev,k.prev.next=k.next,k.prevZ&&(k.prevZ.nextZ=k.nextZ),k.nextZ&&(k.nextZ.prevZ=k.prevZ)}function c0(k,C,G){this.i=k,this.x=C,this.y=G,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}s0.deviation=function(k,C,G,oe){var _e=C&&C.length,ke=_e?C[0]*G:k.length,Ue=Math.abs(Ag(k,0,ke,G));if(_e)for(var ct=0,Pt=C.length;ct0&&(oe+=k[_e-1].length,G.holes.push(oe))}return G},o0.default=iy;function qx(k,C,G,oe,_e){cy(k,C,G,oe||k.length-1,_e||Sg)}function cy(k,C,G,oe,_e){for(;oe>G;){if(oe-G>600){var ke=oe-G+1,Ue=C-G+1,ct=Math.log(ke),Pt=.5*Math.exp(2*ct/3),Gt=.5*Math.sqrt(ct*Pt*(ke-Pt)/ke)*(Ue-ke/2<0?-1:1),tr=Math.max(G,Math.floor(C-Ue*Pt/ke+Gt)),xr=Math.min(oe,Math.floor(C+(ke-Ue)*Pt/ke+Gt));cy(k,C,tr,xr,_e)}var Nr=k[C],zr=G,aa=oe;for(yp(k,G,C),_e(k[oe],Nr)>0&&yp(k,G,oe);zr0;)aa--}_e(k[G],Nr)===0?yp(k,G,aa):(aa++,yp(k,aa,oe)),aa<=C&&(G=aa+1),C<=aa&&(oe=aa-1)}}function yp(k,C,G){var oe=k[C];k[C]=k[G],k[G]=oe}function Sg(k,C){return kC?1:0}function Kh(k,C){var G=k.length;if(G<=1)return[k];for(var oe=[],_e,ke,Ue=0;Ue1)for(var Pt=0;Pt>3}if(oe--,G===1||G===2)_e+=k.readSVarint(),ke+=k.readSVarint(),G===1&&(ct&&Ue.push(ct),ct=[]),ct.push(new o(_e,ke));else if(G===7)ct&&ct.push(ct[0].clone());else throw new Error("unknown command "+G)}return ct&&Ue.push(ct),Ue},Jv.prototype.bbox=function(){var k=this._pbf;k.pos=this._geometry;for(var C=k.readVarint()+k.pos,G=1,oe=0,_e=0,ke=0,Ue=1/0,ct=-1/0,Pt=1/0,Gt=-1/0;k.pos>3}if(oe--,G===1||G===2)_e+=k.readSVarint(),ke+=k.readSVarint(),_ect&&(ct=_e),keGt&&(Gt=ke);else if(G!==7)throw new Error("unknown command "+G)}return[Ue,Pt,ct,Gt]},Jv.prototype.toGeoJSON=function(k,C,G){var oe=this.extent*Math.pow(2,G),_e=this.extent*k,ke=this.extent*C,Ue=this.loadGeometry(),ct=Jv.types[this.type],Pt,Gt;function tr(zr){for(var aa=0;aa>3;C=oe===1?k.readString():oe===2?k.readFloat():oe===3?k.readDouble():oe===4?k.readVarint64():oe===5?k.readVarint():oe===6?k.readSVarint():oe===7?k.readBoolean():null}return C}_y.prototype.feature=function(k){if(k<0||k>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[k];var C=this._pbf.readVarint()+this._pbf.pos;return new Td(this._pbf,C,this.extent,this._keys,this._values)};var by=wy;function wy(k,C){this.layers=k.readFields(Ty,{},C)}function Ty(k,C,G){if(k===3){var oe=new kg(G,G.readVarint()+G.pos);oe.length&&(C[oe.name]=oe)}}var Ay=by,Gx=Td,Hx=kg,Qv={VectorTile:Ay,VectorTileFeature:Gx,VectorTileLayer:Hx},Ad=Qv.VectorTileFeature.types,Sy=500,Sd=Math.pow(2,13);function Md(k,C,G,oe,_e,ke,Ue,ct){k.emplaceBack(C,G,Math.floor(oe*Sd)*2+Ue,_e*Sd*2,ke*Sd*2,Math.round(ct))}var Th=function(C){this.zoom=C.zoom,this.overscaling=C.overscaling,this.layers=C.layers,this.layerIds=this.layers.map(function(G){return G.id}),this.index=C.index,this.hasPattern=!1,this.layoutVertexArray=new Oa,this.indexArray=new Mi,this.programConfigurations=new qa(C.layers,C.zoom),this.segments=new mo,this.stateDependentLayerIds=this.layers.filter(function(G){return G.isStateDependent()}).map(function(G){return G.id})};Th.prototype.populate=function(C,G,oe){this.features=[],this.hasPattern=f0("fill-extrusion",this.layers,G);for(var _e=0,ke=C;_e=1){var Nn=gn[Un-1];if(!v0(Mn,Nn)){zr.vertexLength+4>mo.MAX_VERTEX_ARRAY_LENGTH&&(zr=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));var Hn=Mn.sub(Nn)._perp()._unit(),si=Nn.dist(Mn);Qa+si>32768&&(Qa=0),Md(this.layoutVertexArray,Mn.x,Mn.y,Hn.x,Hn.y,0,0,Qa),Md(this.layoutVertexArray,Mn.x,Mn.y,Hn.x,Hn.y,0,1,Qa),Qa+=si,Md(this.layoutVertexArray,Nn.x,Nn.y,Hn.x,Hn.y,0,0,Qa),Md(this.layoutVertexArray,Nn.x,Nn.y,Hn.x,Hn.y,0,1,Qa);var Ai=zr.vertexLength;this.indexArray.emplaceBack(Ai,Ai+2,Ai+1),this.indexArray.emplaceBack(Ai+1,Ai+2,Ai+3),zr.vertexLength+=4,zr.primitiveLength+=2}}}}if(zr.vertexLength+Gt>mo.MAX_VERTEX_ARRAY_LENGTH&&(zr=this.segments.prepareSegment(Gt,this.layoutVertexArray,this.indexArray)),Ad[C.type]==="Polygon"){for(var xi=[],uo=[],ji=zr.vertexLength,Qi=0,ns=Pt;Qiti)||k.y===C.y&&(k.y<0||k.y>ti)}function d0(k){return k.every(function(C){return C.x<0})||k.every(function(C){return C.x>ti})||k.every(function(C){return C.y<0})||k.every(function(C){return C.y>ti})}var Wx=new wn({"fill-extrusion-opacity":new Jr(kn["paint_fill-extrusion"]["fill-extrusion-opacity"]),"fill-extrusion-color":new Kr(kn["paint_fill-extrusion"]["fill-extrusion-color"]),"fill-extrusion-translate":new Jr(kn["paint_fill-extrusion"]["fill-extrusion-translate"]),"fill-extrusion-translate-anchor":new Jr(kn["paint_fill-extrusion"]["fill-extrusion-translate-anchor"]),"fill-extrusion-pattern":new cn(kn["paint_fill-extrusion"]["fill-extrusion-pattern"]),"fill-extrusion-height":new Kr(kn["paint_fill-extrusion"]["fill-extrusion-height"]),"fill-extrusion-base":new Kr(kn["paint_fill-extrusion"]["fill-extrusion-base"]),"fill-extrusion-vertical-gradient":new Jr(kn["paint_fill-extrusion"]["fill-extrusion-vertical-gradient"])}),Xx={paint:Wx},Zx=function(k){function C(G){k.call(this,G,Xx)}return k&&(C.__proto__=k),C.prototype=Object.create(k&&k.prototype),C.prototype.constructor=C,C.prototype.createBucket=function(oe){return new Th(oe)},C.prototype.queryRadius=function(){return xh(this.paint.get("fill-extrusion-translate"))},C.prototype.is3D=function(){return!0},C.prototype.queryIntersectsFeature=function(oe,_e,ke,Ue,ct,Pt,Gt,tr){var xr=Ph(oe,this.paint.get("fill-extrusion-translate"),this.paint.get("fill-extrusion-translate-anchor"),Pt.angle,Gt),Nr=this.paint.get("fill-extrusion-height").evaluate(_e,ke),zr=this.paint.get("fill-extrusion-base").evaluate(_e,ke),aa=My(xr,tr,Pt,0),Ca=Cg(Ue,zr,Nr,tr),gn=Ca[0],Qa=Ca[1];return Dv(gn,Qa,aa)},C}(jn);function Jh(k,C){return k.x*C.x+k.y*C.y}function Af(k,C){if(k.length===1){for(var G=0,oe=C[G++],_e;!_e||oe.equals(_e);)if(_e=C[G++],!_e)return 1/0;for(;G=2&&C[Gt-1].equals(C[Gt-2]);)Gt--;for(var tr=0;tr0;if(xi&&Un>tr){var ji=zr.dist(aa);if(ji>2*xr){var Qi=zr.sub(zr.sub(aa)._mult(xr/ji)._round());this.updateDistance(aa,Qi),this.addCurrentVertex(Qi,gn,0,0,Nr),aa=Qi}}var ns=aa&&Ca,co=ns?oe:Pt?"butt":_e;if(ns&&co==="round"&&(sike&&(co="bevel"),co==="bevel"&&(si>2&&(co="flipbevel"),si100)Mn=Qa.mult(-1);else{var po=si*gn.add(Qa).mag()/gn.sub(Qa).mag();Mn._perp()._mult(po*(uo?-1:1))}this.addCurrentVertex(zr,Mn,0,0,Nr),this.addCurrentVertex(zr,Mn.mult(-1),0,0,Nr)}else if(co==="bevel"||co==="fakeround"){var Ps=-Math.sqrt(si*si-1),Jo=uo?Ps:0,yl=uo?0:Ps;if(aa&&this.addCurrentVertex(zr,gn,Jo,yl,Nr),co==="fakeround")for(var uu=Math.round(Ai*180/Math.PI/Ig),_l=1;_l2*xr){var uf=zr.add(Ca.sub(zr)._mult(xr/kf)._round());this.updateDistance(zr,uf),this.addCurrentVertex(uf,Qa,0,0,Nr),zr=uf}}}}},zf.prototype.addCurrentVertex=function(C,G,oe,_e,ke,Ue){Ue===void 0&&(Ue=!1);var ct=G.x+G.y*oe,Pt=G.y-G.x*oe,Gt=-G.x+G.y*_e,tr=-G.y-G.x*_e;this.addHalfVertex(C,ct,Pt,Ue,!1,oe,ke),this.addHalfVertex(C,Gt,tr,Ue,!0,-_e,ke),this.distance>p0/2&&this.totalDistance===0&&(this.distance=0,this.addCurrentVertex(C,G,oe,_e,ke,Ue))},zf.prototype.addHalfVertex=function(C,G,oe,_e,ke,Ue,ct){var Pt=C.x,Gt=C.y,tr=this.lineClips?this.scaledDistance*(p0-1):this.scaledDistance,xr=tr*Ed;if(this.layoutVertexArray.emplaceBack((Pt<<1)+(_e?1:0),(Gt<<1)+(ke?1:0),Math.round(Ly*G)+128,Math.round(Ly*oe)+128,(Ue===0?0:Ue<0?-1:1)+1|(xr&63)<<2,xr>>6),this.lineClips){var Nr=this.scaledDistance-this.lineClips.start,zr=this.lineClips.end-this.lineClips.start,aa=Nr/zr;this.layoutVertexArray2.emplaceBack(aa,this.lineClipsArray.length)}var Ca=ct.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,this.e2,Ca),ct.primitiveLength++),ke?this.e2=Ca:this.e1=Ca},zf.prototype.updateScaledDistance=function(){this.scaledDistance=this.lineClips?this.lineClips.start+(this.lineClips.end-this.lineClips.start)*this.distance/this.totalDistance:this.distance},zf.prototype.updateDistance=function(C,G){this.distance+=C.dist(G),this.updateScaledDistance()},Vt("LineBucket",zf,{omit:["layers","patternFeatures"]});var Rg=new wn({"line-cap":new Jr(kn.layout_line["line-cap"]),"line-join":new Kr(kn.layout_line["line-join"]),"line-miter-limit":new Jr(kn.layout_line["line-miter-limit"]),"line-round-limit":new Jr(kn.layout_line["line-round-limit"]),"line-sort-key":new Kr(kn.layout_line["line-sort-key"])}),g0=new wn({"line-opacity":new Kr(kn.paint_line["line-opacity"]),"line-color":new Kr(kn.paint_line["line-color"]),"line-translate":new Jr(kn.paint_line["line-translate"]),"line-translate-anchor":new Jr(kn.paint_line["line-translate-anchor"]),"line-width":new Kr(kn.paint_line["line-width"]),"line-gap-width":new Kr(kn.paint_line["line-gap-width"]),"line-offset":new Kr(kn.paint_line["line-offset"]),"line-blur":new Kr(kn.paint_line["line-blur"]),"line-dasharray":new ln(kn.paint_line["line-dasharray"]),"line-pattern":new cn(kn.paint_line["line-pattern"]),"line-gradient":new un(kn.paint_line["line-gradient"])}),kd={paint:g0,layout:Rg},Dg=function(k){function C(){k.apply(this,arguments)}return k&&(C.__proto__=k),C.prototype=Object.create(k&&k.prototype),C.prototype.constructor=C,C.prototype.possiblyEvaluate=function(oe,_e){return _e=new ds(Math.floor(_e.zoom),{now:_e.now,fadeDuration:_e.fadeDuration,zoomHistory:_e.zoomHistory,transition:_e.transition}),k.prototype.possiblyEvaluate.call(this,oe,_e)},C.prototype.evaluate=function(oe,_e,ke,Ue){return _e=_({},_e,{zoom:Math.floor(_e.zoom)}),k.prototype.evaluate.call(this,oe,_e,ke,Ue)},C}(Kr),m0=new Dg(kd.paint.properties["line-width"].specification);m0.useIntegerZoom=!0;var zg=function(k){function C(G){k.call(this,G,kd),this.gradientVersion=0}return k&&(C.__proto__=k),C.prototype=Object.create(k&&k.prototype),C.prototype.constructor=C,C.prototype._handleSpecialPaintPropertyUpdate=function(oe){if(oe==="line-gradient"){var _e=this._transitionablePaint._values["line-gradient"].value.expression;this.stepInterpolant=_e._styleExpression.expression instanceof au,this.gradientVersion=(this.gradientVersion+1)%f}},C.prototype.gradientExpression=function(){return this._transitionablePaint._values["line-gradient"].value.expression},C.prototype.recalculate=function(oe,_e){k.prototype.recalculate.call(this,oe,_e),this.paint._values["line-floorwidth"]=m0.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,oe)},C.prototype.createBucket=function(oe){return new zf(oe)},C.prototype.queryRadius=function(oe){var _e=oe,ke=Ry(Hf("line-width",this,_e),Hf("line-gap-width",this,_e)),Ue=Hf("line-offset",this,_e);return ke/2+Math.abs(Ue)+xh(this.paint.get("line-translate"))},C.prototype.queryIntersectsFeature=function(oe,_e,ke,Ue,ct,Pt,Gt){var tr=Ph(oe,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),Pt.angle,Gt),xr=Gt/2*Ry(this.paint.get("line-width").evaluate(_e,ke),this.paint.get("line-gap-width").evaluate(_e,ke)),Nr=this.paint.get("line-offset").evaluate(_e,ke);return Nr&&(Ue=W(Ue,Nr*Gt)),Dc(tr,Ue,xr)},C.prototype.isTileClipped=function(){return!0},C}(jn);function Ry(k,C){return C>0?C+2*k:k}function W(k,C){for(var G=[],oe=new o(0,0),_e=0;_e":"﹀","?":"︖","@":"@","[":"﹇","\\":"\","]":"﹈","^":"^",_:"︳","`":"`","{":"︷","|":"―","}":"︸","~":"~","¢":"¢","£":"£","¥":"¥","¦":"¦","¬":"¬","¯":" ̄","–":"︲","—":"︱","‘":"﹃","’":"﹄","“":"﹁","”":"﹂","…":"︙","‧":"・","₩":"₩","、":"︑","。":"︒","〈":"︿","〉":"﹀","《":"︽","》":"︾","「":"﹁","」":"﹂","『":"﹃","』":"﹄","【":"︻","】":"︼","〔":"︹","〕":"︺","〖":"︗","〗":"︘","!":"︕","(":"︵",")":"︶",",":"︐","-":"︲",".":"・",":":"︓",";":"︔","<":"︿",">":"﹀","?":"︖","[":"﹇","]":"﹈","_":"︳","{":"︷","|":"―","}":"︸","⦅":"︵","⦆":"︶","。":"︒","「":"﹁","」":"﹂"};function ar(k){for(var C="",G=0;G>1,tr=-7,xr=G?_e-1:0,Nr=G?-1:1,zr=k[C+xr];for(xr+=Nr,ke=zr&(1<<-tr)-1,zr>>=-tr,tr+=ct;tr>0;ke=ke*256+k[C+xr],xr+=Nr,tr-=8);for(Ue=ke&(1<<-tr)-1,ke>>=-tr,tr+=oe;tr>0;Ue=Ue*256+k[C+xr],xr+=Nr,tr-=8);if(ke===0)ke=1-Gt;else{if(ke===Pt)return Ue?NaN:(zr?-1:1)*(1/0);Ue=Ue+Math.pow(2,oe),ke=ke-Gt}return(zr?-1:1)*Ue*Math.pow(2,ke-oe)},Fr=function(k,C,G,oe,_e,ke){var Ue,ct,Pt,Gt=ke*8-_e-1,tr=(1<>1,Nr=_e===23?Math.pow(2,-24)-Math.pow(2,-77):0,zr=oe?0:ke-1,aa=oe?1:-1,Ca=C<0||C===0&&1/C<0?1:0;for(C=Math.abs(C),isNaN(C)||C===1/0?(ct=isNaN(C)?1:0,Ue=tr):(Ue=Math.floor(Math.log(C)/Math.LN2),C*(Pt=Math.pow(2,-Ue))<1&&(Ue--,Pt*=2),Ue+xr>=1?C+=Nr/Pt:C+=Nr*Math.pow(2,1-xr),C*Pt>=2&&(Ue++,Pt/=2),Ue+xr>=tr?(ct=0,Ue=tr):Ue+xr>=1?(ct=(C*Pt-1)*Math.pow(2,_e),Ue=Ue+xr):(ct=C*Math.pow(2,xr-1)*Math.pow(2,_e),Ue=0));_e>=8;k[G+zr]=ct&255,zr+=aa,ct/=256,_e-=8);for(Ue=Ue<<_e|ct,Gt+=_e;Gt>0;k[G+zr]=Ue&255,zr+=aa,Ue/=256,Gt-=8);k[G+zr-aa]|=Ca*128},Yr={read:Sr,write:Fr},sa=_a;function _a(k){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(k)?k:new Uint8Array(k||0),this.pos=0,this.type=0,this.length=this.buf.length}_a.Varint=0,_a.Fixed64=1,_a.Bytes=2,_a.Fixed32=5;var Wa=65536*65536,zn=1/Wa,vn=12,Cn=typeof TextDecoder>"u"?null:new TextDecoder("utf8");_a.prototype={destroy:function(){this.buf=null},readFields:function(k,C,G){for(G=G||this.length;this.pos>3,ke=this.pos;this.type=oe&7,k(_e,C,this),this.pos===ke&&this.skip(oe)}return C},readMessage:function(k,C){return this.readFields(k,C,this.readVarint()+this.pos)},readFixed32:function(){var k=fh(this.buf,this.pos);return this.pos+=4,k},readSFixed32:function(){var k=nf(this.buf,this.pos);return this.pos+=4,k},readFixed64:function(){var k=fh(this.buf,this.pos)+fh(this.buf,this.pos+4)*Wa;return this.pos+=8,k},readSFixed64:function(){var k=fh(this.buf,this.pos)+nf(this.buf,this.pos+4)*Wa;return this.pos+=8,k},readFloat:function(){var k=Yr.read(this.buf,this.pos,!0,23,4);return this.pos+=4,k},readDouble:function(){var k=Yr.read(this.buf,this.pos,!0,52,8);return this.pos+=8,k},readVarint:function(k){var C=this.buf,G,oe;return oe=C[this.pos++],G=oe&127,oe<128||(oe=C[this.pos++],G|=(oe&127)<<7,oe<128)||(oe=C[this.pos++],G|=(oe&127)<<14,oe<128)||(oe=C[this.pos++],G|=(oe&127)<<21,oe<128)?G:(oe=C[this.pos],G|=(oe&15)<<28,$n(G,k,this))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var k=this.readVarint();return k%2===1?(k+1)/-2:k/2},readBoolean:function(){return!!this.readVarint()},readString:function(){var k=this.readVarint()+this.pos,C=this.pos;return this.pos=k,k-C>=vn&&Cn?ah(this.buf,C,k):rh(this.buf,C,k)},readBytes:function(){var k=this.readVarint()+this.pos,C=this.buf.subarray(this.pos,k);return this.pos=k,C},readPackedVarint:function(k,C){if(this.type!==_a.Bytes)return k.push(this.readVarint(C));var G=gi(this);for(k=k||[];this.pos127;);else if(C===_a.Bytes)this.pos=this.readVarint()+this.pos;else if(C===_a.Fixed32)this.pos+=4;else if(C===_a.Fixed64)this.pos+=8;else throw new Error("Unimplemented type: "+C)},writeTag:function(k,C){this.writeVarint(k<<3|C)},realloc:function(k){for(var C=this.length||16;C268435455||k<0){as(k,this);return}this.realloc(4),this.buf[this.pos++]=k&127|(k>127?128:0),!(k<=127)&&(this.buf[this.pos++]=(k>>>=7)&127|(k>127?128:0),!(k<=127)&&(this.buf[this.pos++]=(k>>>=7)&127|(k>127?128:0),!(k<=127)&&(this.buf[this.pos++]=k>>>7&127)))},writeSVarint:function(k){this.writeVarint(k<0?-k*2-1:k*2)},writeBoolean:function(k){this.writeVarint(!!k)},writeString:function(k){k=String(k),this.realloc(k.length*4),this.pos++;var C=this.pos;this.pos=nh(this.buf,k,this.pos);var G=this.pos-C;G>=128&&Ro(C,G,this),this.pos=C-1,this.writeVarint(G),this.pos+=G},writeFloat:function(k){this.realloc(4),Yr.write(this.buf,k,this.pos,!0,23,4),this.pos+=4},writeDouble:function(k){this.realloc(8),Yr.write(this.buf,k,this.pos,!0,52,8),this.pos+=8},writeBytes:function(k){var C=k.length;this.writeVarint(C),this.realloc(C);for(var G=0;G=128&&Ro(G,oe,this),this.pos=G-1,this.writeVarint(oe),this.pos+=oe},writeMessage:function(k,C,G){this.writeTag(k,_a.Bytes),this.writeRawMessage(C,G)},writePackedVarint:function(k,C){C.length&&this.writeMessage(k,To,C)},writePackedSVarint:function(k,C){C.length&&this.writeMessage(k,_o,C)},writePackedBoolean:function(k,C){C.length&&this.writeMessage(k,Do,C)},writePackedFloat:function(k,C){C.length&&this.writeMessage(k,li,C)},writePackedDouble:function(k,C){C.length&&this.writeMessage(k,jo,C)},writePackedFixed32:function(k,C){C.length&&this.writeMessage(k,xs,C)},writePackedSFixed32:function(k,C){C.length&&this.writeMessage(k,Tu,C)},writePackedFixed64:function(k,C){C.length&&this.writeMessage(k,gu,C)},writePackedSFixed64:function(k,C){C.length&&this.writeMessage(k,vf,C)},writeBytesField:function(k,C){this.writeTag(k,_a.Bytes),this.writeBytes(C)},writeFixed32Field:function(k,C){this.writeTag(k,_a.Fixed32),this.writeFixed32(C)},writeSFixed32Field:function(k,C){this.writeTag(k,_a.Fixed32),this.writeSFixed32(C)},writeFixed64Field:function(k,C){this.writeTag(k,_a.Fixed64),this.writeFixed64(C)},writeSFixed64Field:function(k,C){this.writeTag(k,_a.Fixed64),this.writeSFixed64(C)},writeVarintField:function(k,C){this.writeTag(k,_a.Varint),this.writeVarint(C)},writeSVarintField:function(k,C){this.writeTag(k,_a.Varint),this.writeSVarint(C)},writeStringField:function(k,C){this.writeTag(k,_a.Bytes),this.writeString(C)},writeFloatField:function(k,C){this.writeTag(k,_a.Fixed32),this.writeFloat(C)},writeDoubleField:function(k,C){this.writeTag(k,_a.Fixed64),this.writeDouble(C)},writeBooleanField:function(k,C){this.writeVarintField(k,!!C)}};function $n(k,C,G){var oe=G.buf,_e,ke;if(ke=oe[G.pos++],_e=(ke&112)>>4,ke<128||(ke=oe[G.pos++],_e|=(ke&127)<<3,ke<128)||(ke=oe[G.pos++],_e|=(ke&127)<<10,ke<128)||(ke=oe[G.pos++],_e|=(ke&127)<<17,ke<128)||(ke=oe[G.pos++],_e|=(ke&127)<<24,ke<128)||(ke=oe[G.pos++],_e|=(ke&1)<<31,ke<128))return Ji(k,_e,C);throw new Error("Expected varint not more than 10 bytes")}function gi(k){return k.type===_a.Bytes?k.readVarint()+k.pos:k.pos+1}function Ji(k,C,G){return G?C*4294967296+(k>>>0):(C>>>0)*4294967296+(k>>>0)}function as(k,C){var G,oe;if(k>=0?(G=k%4294967296|0,oe=k/4294967296|0):(G=~(-k%4294967296),oe=~(-k/4294967296),G^4294967295?G=G+1|0:(G=0,oe=oe+1|0)),k>=18446744073709552e3||k<-18446744073709552e3)throw new Error("Given varint doesn't fit into 10 bytes");C.realloc(10),oo(G,oe,C),$i(oe,C)}function oo(k,C,G){G.buf[G.pos++]=k&127|128,k>>>=7,G.buf[G.pos++]=k&127|128,k>>>=7,G.buf[G.pos++]=k&127|128,k>>>=7,G.buf[G.pos++]=k&127|128,k>>>=7,G.buf[G.pos]=k&127}function $i(k,C){var G=(k&7)<<4;C.buf[C.pos++]|=G|((k>>>=3)?128:0),k&&(C.buf[C.pos++]=k&127|((k>>>=7)?128:0),k&&(C.buf[C.pos++]=k&127|((k>>>=7)?128:0),k&&(C.buf[C.pos++]=k&127|((k>>>=7)?128:0),k&&(C.buf[C.pos++]=k&127|((k>>>=7)?128:0),k&&(C.buf[C.pos++]=k&127)))))}function Ro(k,C,G){var oe=C<=16383?1:C<=2097151?2:C<=268435455?3:Math.floor(Math.log(C)/(Math.LN2*7));G.realloc(oe);for(var _e=G.pos-1;_e>=k;_e--)G.buf[_e+oe]=G.buf[_e]}function To(k,C){for(var G=0;G>>8,k[G+2]=C>>>16,k[G+3]=C>>>24}function nf(k,C){return(k[C]|k[C+1]<<8|k[C+2]<<16)+(k[C+3]<<24)}function rh(k,C,G){for(var oe="",_e=C;_e239?4:ke>223?3:ke>191?2:1;if(_e+ct>G)break;var Pt,Gt,tr;ct===1?ke<128&&(Ue=ke):ct===2?(Pt=k[_e+1],(Pt&192)===128&&(Ue=(ke&31)<<6|Pt&63,Ue<=127&&(Ue=null))):ct===3?(Pt=k[_e+1],Gt=k[_e+2],(Pt&192)===128&&(Gt&192)===128&&(Ue=(ke&15)<<12|(Pt&63)<<6|Gt&63,(Ue<=2047||Ue>=55296&&Ue<=57343)&&(Ue=null))):ct===4&&(Pt=k[_e+1],Gt=k[_e+2],tr=k[_e+3],(Pt&192)===128&&(Gt&192)===128&&(tr&192)===128&&(Ue=(ke&15)<<18|(Pt&63)<<12|(Gt&63)<<6|tr&63,(Ue<=65535||Ue>=1114112)&&(Ue=null))),Ue===null?(Ue=65533,ct=1):Ue>65535&&(Ue-=65536,oe+=String.fromCharCode(Ue>>>10&1023|55296),Ue=56320|Ue&1023),oe+=String.fromCharCode(Ue),_e+=ct}return oe}function ah(k,C,G){return Cn.decode(k.subarray(C,G))}function nh(k,C,G){for(var oe=0,_e,ke;oe55295&&_e<57344)if(ke)if(_e<56320){k[G++]=239,k[G++]=191,k[G++]=189,ke=_e;continue}else _e=ke-55296<<10|_e-56320|65536,ke=null;else{_e>56319||oe+1===C.length?(k[G++]=239,k[G++]=191,k[G++]=189):ke=_e;continue}else ke&&(k[G++]=239,k[G++]=191,k[G++]=189,ke=null);_e<128?k[G++]=_e:(_e<2048?k[G++]=_e>>6|192:(_e<65536?k[G++]=_e>>12|224:(k[G++]=_e>>18|240,k[G++]=_e>>12&63|128),k[G++]=_e>>6&63|128),k[G++]=_e&63|128)}return G}var fc=3;function df(k,C,G){k===1&&G.readMessage(Xf,C)}function Xf(k,C,G){if(k===3){var oe=G.readMessage(Ff,{}),_e=oe.id,ke=oe.bitmap,Ue=oe.width,ct=oe.height,Pt=oe.left,Gt=oe.top,tr=oe.advance;C.push({id:_e,bitmap:new af({width:Ue+2*fc,height:ct+2*fc},ke),metrics:{width:Ue,height:ct,left:Pt,top:Gt,advance:tr}})}}function Ff(k,C,G){k===1?C.id=G.readVarint():k===2?C.bitmap=G.readBytes():k===3?C.width=G.readVarint():k===4?C.height=G.readVarint():k===5?C.left=G.readSVarint():k===6?C.top=G.readSVarint():k===7&&(C.advance=G.readVarint())}function ih(k){return new sa(k).readFields(df,[])}var Sf=fc;function Ah(k){for(var C=0,G=0,oe=0,_e=k;oe<_e.length;oe+=1){var ke=_e[oe];C+=ke.w*ke.h,G=Math.max(G,ke.w)}k.sort(function(gn,Qa){return Qa.h-gn.h});for(var Ue=Math.max(Math.ceil(Math.sqrt(C/.95)),G),ct=[{x:0,y:0,w:Ue,h:1/0}],Pt=0,Gt=0,tr=0,xr=k;tr=0;zr--){var aa=ct[zr];if(!(Nr.w>aa.w||Nr.h>aa.h)){if(Nr.x=aa.x,Nr.y=aa.y,Gt=Math.max(Gt,Nr.y+Nr.h),Pt=Math.max(Pt,Nr.x+Nr.w),Nr.w===aa.w&&Nr.h===aa.h){var Ca=ct.pop();zr=0&&_e>=C&&Sh[this.text.charCodeAt(_e)];_e--)oe--;this.text=this.text.substring(C,oe),this.sectionIndex=this.sectionIndex.slice(C,oe)},Au.prototype.substring=function(C,G){var oe=new Au;return oe.text=this.text.substring(C,G),oe.sectionIndex=this.sectionIndex.slice(C,G),oe.sections=this.sections,oe},Au.prototype.toString=function(){return this.text},Au.prototype.getMaxScale=function(){var C=this;return this.sectionIndex.reduce(function(G,oe){return Math.max(G,C.sections[oe].scale)},0)},Au.prototype.addTextSection=function(C,G){this.text+=C.text,this.sections.push(Zf.forText(C.scale,C.fontStack||G));for(var oe=this.sections.length-1,_e=0;_e=Vh?null:++this.imageSectionID:(this.imageSectionID=jh,this.imageSectionID)};function Mf(k,C){for(var G=[],oe=k.text,_e=0,ke=0,Ue=C;ke=0,tr=0,xr=0;xr0&&uf>uo&&(uo=uf)}else{var xl=G[Qi.fontStack],vl=xl&&xl[co];if(vl&&vl.rect)Jo=vl.rect,Ps=vl.metrics;else{var Su=C[Qi.fontStack],Nu=Su&&Su[co];if(!Nu)continue;Ps=Nu.metrics}po=(Hn-Qi.scale)*lr}_l?(k.verticalizable=!0,xi.push({glyph:co,imageName:yl,x:Nr,y:zr+po,vertical:_l,scale:Qi.scale,fontStack:Qi.fontStack,sectionIndex:ns,metrics:Ps,rect:Jo}),Nr+=uu*Qi.scale+Gt):(xi.push({glyph:co,imageName:yl,x:Nr,y:zr+po,vertical:_l,scale:Qi.scale,fontStack:Qi.fontStack,sectionIndex:ns,metrics:Ps,rect:Jo}),Nr+=Ps.advance*Qi.scale+Gt)}if(xi.length!==0){var sh=Nr-Gt;aa=Math.max(sh,aa),Kx(xi,0,xi.length-1,gn,uo)}Nr=0;var lh=ke*Hn+uo;Ai.lineOffset=Math.max(uo,si),zr+=lh,Ca=Math.max(lh,Ca),++Qa}var Cf=zr-Bu,hh=jg(Ue),vh=hh.horizontalAlign,pf=hh.verticalAlign;Jx(k.positionedLines,gn,vh,pf,aa,Ca,ke,Cf,_e.length),k.top+=-pf*Cf,k.bottom=k.top+Cf,k.left+=-vh*aa,k.right=k.left+aa}function Kx(k,C,G,oe,_e){if(!(!oe&&!_e))for(var ke=k[G],Ue=ke.metrics.advance*ke.scale,ct=(k[G].x+Ue)*oe,Pt=C;Pt<=G;Pt++)k[Pt].x-=ct,k[Pt].y+=_e}function Jx(k,C,G,oe,_e,ke,Ue,ct,Pt){var Gt=(C-G)*_e,tr=0;ke!==Ue?tr=-ct*oe-Bu:tr=(-oe*Pt+.5)*Ue;for(var xr=0,Nr=k;xr-G/2;){if(Ue--,Ue<0)return!1;ct-=k[Ue].dist(ke),ke=k[Ue]}ct+=k[Ue].dist(k[Ue+1]),Ue++;for(var Pt=[],Gt=0;ctoe;)Gt-=Pt.shift().angleDelta;if(Gt>_e)return!1;Ue++,ct+=xr.dist(Nr)}return!0}function Of(k){for(var C=0,G=0;GGt){var aa=(Gt-Pt)/zr,Ca=Ys(xr.x,Nr.x,aa),gn=Ys(xr.y,Nr.y,aa),Qa=new Ld(Ca,gn,Nr.angleTo(xr),tr);return Qa._round(),!Ue||Fy(k,Qa,ct,Ue,C)?Qa:void 0}Pt+=zr}}function ed(k,C,G,oe,_e,ke,Ue,ct,Pt){var Gt=Mh(oe,ke,Ue),tr=zv(oe,_e),xr=tr*Ue,Nr=k[0].x===0||k[0].x===Pt||k[0].y===0||k[0].y===Pt;C-xr=0&&Nn=0&&Hn=0&&Nr+Gt<=tr){var si=new Ld(Nn,Hn,Un,aa);si._round(),(!oe||Fy(k,si,ke,oe,_e))&&zr.push(si)}}xr+=Qa}return!ct&&!zr.length&&!Ue&&(zr=Gh(k,xr/2,G,oe,_e,ke,Ue,!0,Pt)),zr}function UA(k,C,G,oe,_e){for(var ke=[],Ue=0;Ue=oe&&xr.x>=oe)&&(tr.x>=oe?tr=new o(oe,tr.y+(xr.y-tr.y)*((oe-tr.x)/(xr.x-tr.x)))._round():xr.x>=oe&&(xr=new o(oe,tr.y+(xr.y-tr.y)*((oe-tr.x)/(xr.x-tr.x)))._round()),!(tr.y>=_e&&xr.y>=_e)&&(tr.y>=_e?tr=new o(tr.x+(xr.x-tr.x)*((_e-tr.y)/(xr.y-tr.y)),_e)._round():xr.y>=_e&&(xr=new o(tr.x+(xr.x-tr.x)*((_e-tr.y)/(xr.y-tr.y)),_e)._round()),(!Pt||!tr.equals(Pt[Pt.length-1]))&&(Pt=[tr],ke.push(Pt)),Pt.push(xr)))))}return ke}var _0=Ou;function jA(k,C,G,oe){var _e=[],ke=k.image,Ue=ke.pixelRatio,ct=ke.paddedRect.w-2*_0,Pt=ke.paddedRect.h-2*_0,Gt=k.right-k.left,tr=k.bottom-k.top,xr=ke.stretchX||[[0,ct]],Nr=ke.stretchY||[[0,Pt]],zr=function(xl,vl){return xl+vl[1]-vl[0]},aa=xr.reduce(zr,0),Ca=Nr.reduce(zr,0),gn=ct-aa,Qa=Pt-Ca,Un=0,Mn=aa,Nn=0,Hn=Ca,si=0,Ai=gn,xi=0,uo=Qa;if(ke.content&&oe){var ji=ke.content;Un=Oy(xr,0,ji[0]),Nn=Oy(Nr,0,ji[1]),Mn=Oy(xr,ji[0],ji[2]),Hn=Oy(Nr,ji[1],ji[3]),si=ji[0]-Un,xi=ji[1]-Nn,Ai=ji[2]-ji[0]-Mn,uo=ji[3]-ji[1]-Hn}var Qi=function(xl,vl,Su,Nu){var kc=By(xl.stretch-Un,Mn,Gt,k.left),Fc=Ny(xl.fixed-si,Ai,xl.stretch,aa),kf=By(vl.stretch-Nn,Hn,tr,k.top),uf=Ny(vl.fixed-xi,uo,vl.stretch,Ca),sh=By(Su.stretch-Un,Mn,Gt,k.left),lh=Ny(Su.fixed-si,Ai,Su.stretch,aa),Cf=By(Nu.stretch-Nn,Hn,tr,k.top),hh=Ny(Nu.fixed-xi,uo,Nu.stretch,Ca),vh=new o(kc,kf),pf=new o(sh,kf),dh=new o(sh,Cf),Uh=new o(kc,Cf),ad=new o(Fc/Ue,uf/Ue),Dd=new o(lh/Ue,hh/Ue),zd=C*Math.PI/180;if(zd){var Fd=Math.sin(zd),E0=Math.cos(zd),Qh=[E0,-Fd,Fd,E0];vh._matMult(Qh),pf._matMult(Qh),Uh._matMult(Qh),dh._matMult(Qh)}var Hy=xl.stretch+xl.fixed,lb=Su.stretch+Su.fixed,Wy=vl.stretch+vl.fixed,ub=Nu.stretch+Nu.fixed,Hh={x:ke.paddedRect.x+_0+Hy,y:ke.paddedRect.y+_0+Wy,w:lb-Hy,h:ub-Wy},k0=Ai/Ue/Gt,Xy=uo/Ue/tr;return{tl:vh,tr:pf,bl:Uh,br:dh,tex:Hh,writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:ad,pixelOffsetBR:Dd,minFontScaleX:k0,minFontScaleY:Xy,isSDF:G}};if(!oe||!ke.stretchX&&!ke.stretchY)_e.push(Qi({fixed:0,stretch:-1},{fixed:0,stretch:-1},{fixed:0,stretch:ct+1},{fixed:0,stretch:Pt+1}));else for(var ns=VA(xr,gn,aa),co=VA(Nr,Qa,Ca),po=0;po0&&(aa=Math.max(10,aa),this.circleDiameter=aa)}else{var Ca=Ue.top*ct-Pt,gn=Ue.bottom*ct+Pt,Qa=Ue.left*ct-Pt,Un=Ue.right*ct+Pt,Mn=Ue.collisionPadding;if(Mn&&(Qa-=Mn[0]*ct,Ca-=Mn[1]*ct,Un+=Mn[2]*ct,gn+=Mn[3]*ct),tr){var Nn=new o(Qa,Ca),Hn=new o(Un,Ca),si=new o(Qa,gn),Ai=new o(Un,gn),xi=tr*Math.PI/180;Nn._rotate(xi),Hn._rotate(xi),si._rotate(xi),Ai._rotate(xi),Qa=Math.min(Nn.x,Hn.x,si.x,Ai.x),Un=Math.max(Nn.x,Hn.x,si.x,Ai.x),Ca=Math.min(Nn.y,Hn.y,si.y,Ai.y),gn=Math.max(Nn.y,Hn.y,si.y,Ai.y)}C.emplaceBack(G.x,G.y,Qa,Ca,Un,gn,oe,_e,ke)}this.boxEndIndex=C.length},x0=function(C,G){if(C===void 0&&(C=[]),G===void 0&&(G=R8),this.data=C,this.length=this.data.length,this.compare=G,this.length>0)for(var oe=(this.length>>1)-1;oe>=0;oe--)this._down(oe)};x0.prototype.push=function(C){this.data.push(C),this.length++,this._up(this.length-1)},x0.prototype.pop=function(){if(this.length!==0){var C=this.data[0],G=this.data.pop();return this.length--,this.length>0&&(this.data[0]=G,this._down(0)),C}},x0.prototype.peek=function(){return this.data[0]},x0.prototype._up=function(C){for(var G=this,oe=G.data,_e=G.compare,ke=oe[C];C>0;){var Ue=C-1>>1,ct=oe[Ue];if(_e(ke,ct)>=0)break;oe[C]=ct,C=Ue}oe[C]=ke},x0.prototype._down=function(C){for(var G=this,oe=G.data,_e=G.compare,ke=this.length>>1,Ue=oe[C];C=0)break;oe[C]=Pt,C=ct}oe[C]=Ue};function R8(k,C){return kC?1:0}function D8(k,C,G){G===void 0&&(G=!1);for(var oe=1/0,_e=1/0,ke=-1/0,Ue=-1/0,ct=k[0],Pt=0;Ptke)&&(ke=Gt.x),(!Pt||Gt.y>Ue)&&(Ue=Gt.y)}var tr=ke-oe,xr=Ue-_e,Nr=Math.min(tr,xr),zr=Nr/2,aa=new x0([],z8);if(Nr===0)return new o(oe,_e);for(var Ca=oe;CaQa.d||!Qa.d)&&(Qa=Mn,G&&console.log("found best %d after %d probes",Math.round(1e4*Mn.d)/1e4,Un)),!(Mn.max-Qa.d<=C)&&(zr=Mn.h/2,aa.push(new b0(Mn.p.x-zr,Mn.p.y-zr,zr,k)),aa.push(new b0(Mn.p.x+zr,Mn.p.y-zr,zr,k)),aa.push(new b0(Mn.p.x-zr,Mn.p.y+zr,zr,k)),aa.push(new b0(Mn.p.x+zr,Mn.p.y+zr,zr,k)),Un+=4)}return G&&(console.log("num probes: "+Un),console.log("best distance: "+Qa.d)),Qa.p}function z8(k,C){return C.max-k.max}function b0(k,C,G,oe){this.p=new o(k,C),this.h=G,this.d=F8(this.p,oe),this.max=this.d+this.h*Math.SQRT2}function F8(k,C){for(var G=!1,oe=1/0,_e=0;_ek.y!=tr.y>k.y&&k.x<(tr.x-Gt.x)*(k.y-Gt.y)/(tr.y-Gt.y)+Gt.x&&(G=!G),oe=Math.min(oe,cv(k,Gt,tr))}return(G?1:-1)*Math.sqrt(oe)}function O8(k){for(var C=0,G=0,oe=0,_e=k[0],ke=0,Ue=_e.length,ct=Ue-1;ke=ti||Qh.y<0||Qh.y>=ti||U8(k,Qh,E0,G,oe,_e,co,k.layers[0],k.collisionBoxArray,C.index,C.sourceLayerIndex,k.index,Qa,Hn,xi,Pt,Mn,si,uo,zr,C,ke,Gt,tr,Ue)};if(ji==="line")for(var Ps=0,Jo=UA(C.geometry,0,0,ti,ti);Ps1){var kf=qh(Fc,Ai,G.vertical||aa,oe,Ca,Un);kf&&po(Fc,kf)}}else if(C.type==="Polygon")for(var uf=0,sh=Kh(C.geometry,0);ufId&&U(k.layerIds[0]+': Value for "text-size" is >= '+qg+'. Reduce your "text-size".')):gn.kind==="composite"&&(Qa=[of*zr.compositeTextSizes[0].evaluate(Ue,{},aa),of*zr.compositeTextSizes[1].evaluate(Ue,{},aa)],(Qa[0]>Id||Qa[1]>Id)&&U(k.layerIds[0]+': Value for "text-size" is >= '+qg+'. Reduce your "text-size".')),k.addSymbols(k.text,Ca,Qa,ct,ke,Ue,Gt,C,Pt.lineStartIndex,Pt.lineLength,Nr,aa);for(var Un=0,Mn=tr;UnId&&U(k.layerIds[0]+': Value for "icon-size" is >= '+qg+'. Reduce your "icon-size".')):vh.kind==="composite"&&(pf=[of*Hn.compositeIconSizes[0].evaluate(Nn,{},Ai),of*Hn.compositeIconSizes[1].evaluate(Nn,{},Ai)],(pf[0]>Id||pf[1]>Id)&&U(k.layerIds[0]+': Value for "icon-size" is >= '+qg+'. Reduce your "icon-size".')),k.addSymbols(k.icon,Cf,pf,Mn,Un,Nn,!1,C,ji.lineStartIndex,ji.lineLength,-1,Ai),_l=k.icon.placedSymbolArray.length-1,hh&&(Jo=hh.length*4,k.addSymbols(k.icon,hh,pf,Mn,Un,Nn,ic.vertical,C,ji.lineStartIndex,ji.lineLength,-1,Ai),xl=k.icon.placedSymbolArray.length-1)}for(var dh in oe.horizontal){var Uh=oe.horizontal[dh];if(!Qi){Su=ge(Uh.text);var ad=ct.layout.get("text-rotate").evaluate(Nn,{},Ai);Qi=new Uy(Pt,C,Gt,tr,xr,Uh,Nr,zr,aa,ad)}var Dd=Uh.positionedLines.length===1;if(yl+=GA(k,C,Uh,ke,ct,aa,Nn,Ca,ji,oe.vertical?ic.horizontal:ic.horizontalOnly,Dd?Object.keys(oe.horizontal):[dh],vl,_l,Hn,Ai),Dd)break}oe.vertical&&(uu+=GA(k,C,oe.vertical,ke,ct,aa,Nn,Ca,ji,ic.vertical,["vertical"],vl,xl,Hn,Ai));var zd=Qi?Qi.boxStartIndex:k.collisionBoxArray.length,Fd=Qi?Qi.boxEndIndex:k.collisionBoxArray.length,E0=co?co.boxStartIndex:k.collisionBoxArray.length,Qh=co?co.boxEndIndex:k.collisionBoxArray.length,Hy=ns?ns.boxStartIndex:k.collisionBoxArray.length,lb=ns?ns.boxEndIndex:k.collisionBoxArray.length,Wy=po?po.boxStartIndex:k.collisionBoxArray.length,ub=po?po.boxEndIndex:k.collisionBoxArray.length,Hh=-1,k0=function(Wg,sS){return Wg&&Wg.circleDiameter?Math.max(Wg.circleDiameter,sS):sS};Hh=k0(Qi,Hh),Hh=k0(co,Hh),Hh=k0(ns,Hh),Hh=k0(po,Hh);var Xy=Hh>-1?1:0;Xy&&(Hh*=xi/lr),k.glyphOffsetArray.length>=lu.MAX_GLYPHS&&U("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),Nn.sortKey!==void 0&&k.addToSortKeyRanges(k.symbolInstances.length,Nn.sortKey),k.symbolInstances.emplaceBack(C.x,C.y,vl.right>=0?vl.right:-1,vl.center>=0?vl.center:-1,vl.left>=0?vl.left:-1,vl.vertical||-1,_l,xl,Su,zd,Fd,E0,Qh,Hy,lb,Wy,ub,Gt,yl,uu,Ps,Jo,Xy,0,Nr,Nu,kc,Hh)}function j8(k,C,G,oe){var _e=k.compareText;if(!(C in _e))_e[C]=[];else for(var ke=_e[C],Ue=ke.length-1;Ue>=0;Ue--)if(oe.dist(ke[Ue])0)&&(Ue.value.kind!=="constant"||Ue.value.value.length>0),tr=Pt.value.kind!=="constant"||!!Pt.value.value||Object.keys(Pt.parameters).length>0,xr=ke.get("symbol-sort-key");if(this.features=[],!(!Gt&&!tr)){for(var Nr=G.iconDependencies,zr=G.glyphDependencies,aa=G.availableImages,Ca=new ds(this.zoom),gn=0,Qa=C;gn=0;for(var uu=0,_l=uo.sections;uu<_l.length;uu+=1){var xl=_l[uu];if(xl.image)Nr[xl.image.name]=!0;else{var vl=nn(uo.toString()),Su=xl.fontStack||Jo,Nu=zr[Su]=zr[Su]||{};this.calculateGlyphDependencies(xl.text,Nu,yl,this.allowVerticalPlacement,vl)}}}}}}ke.get("symbol-placement")==="line"&&(this.features=wt(this.features)),this.sortFeaturesByKey&&this.features.sort(function(kc,Fc){return kc.sortKey-Fc.sortKey})}},lu.prototype.update=function(C,G,oe){this.stateDependentLayers.length&&(this.text.programConfigurations.updatePaintArrays(C,G,this.layers,oe),this.icon.programConfigurations.updatePaintArrays(C,G,this.layers,oe))},lu.prototype.isEmpty=function(){return this.symbolInstances.length===0&&!this.hasRTLText},lu.prototype.uploadPending=function(){return!this.uploaded||this.text.programConfigurations.needsUpload||this.icon.programConfigurations.needsUpload},lu.prototype.upload=function(C){!this.uploaded&&this.hasDebugData()&&(this.textCollisionBox.upload(C),this.iconCollisionBox.upload(C)),this.text.upload(C,this.sortFeaturesByY,!this.uploaded,this.text.programConfigurations.needsUpload),this.icon.upload(C,this.sortFeaturesByY,!this.uploaded,this.icon.programConfigurations.needsUpload),this.uploaded=!0},lu.prototype.destroyDebugData=function(){this.textCollisionBox.destroy(),this.iconCollisionBox.destroy()},lu.prototype.destroy=function(){this.text.destroy(),this.icon.destroy(),this.hasDebugData()&&this.destroyDebugData()},lu.prototype.addToLineVertexArray=function(C,G){var oe=this.lineVertexArray.length;if(C.segment!==void 0){for(var _e=C.dist(G[C.segment+1]),ke=C.dist(G[C.segment]),Ue={},ct=C.segment+1;ct=0;Pt--)Ue[Pt]={x:G[Pt].x,y:G[Pt].y,tileUnitDistanceFromAnchor:ke},Pt>0&&(ke+=G[Pt-1].dist(G[Pt]));for(var Gt=0;Gt0},lu.prototype.hasIconData=function(){return this.icon.segments.get().length>0},lu.prototype.hasDebugData=function(){return this.textCollisionBox&&this.iconCollisionBox},lu.prototype.hasTextCollisionBoxData=function(){return this.hasDebugData()&&this.textCollisionBox.segments.get().length>0},lu.prototype.hasIconCollisionBoxData=function(){return this.hasDebugData()&&this.iconCollisionBox.segments.get().length>0},lu.prototype.addIndicesForPlacedSymbol=function(C,G){for(var oe=C.placedSymbolArray.get(G),_e=oe.vertexStartIndex+oe.numGlyphs*4,ke=oe.vertexStartIndex;ke<_e;ke+=4)C.indexArray.emplaceBack(ke,ke+1,ke+2),C.indexArray.emplaceBack(ke+1,ke+2,ke+3)},lu.prototype.getSortedSymbolIndexes=function(C){if(this.sortedAngle===C&&this.symbolInstanceIndexes!==void 0)return this.symbolInstanceIndexes;for(var G=Math.sin(C),oe=Math.cos(C),_e=[],ke=[],Ue=[],ct=0;ct1||this.icon.segments.get().length>1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(C),this.sortedAngle=C,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(var oe=0,_e=this.symbolInstanceIndexes;oe<_e.length;oe+=1){var ke=_e[oe],Ue=this.symbolInstances.get(ke);this.featureSortOrder.push(Ue.featureIndex),[Ue.rightJustifiedTextSymbolIndex,Ue.centerJustifiedTextSymbolIndex,Ue.leftJustifiedTextSymbolIndex].forEach(function(ct,Pt,Gt){ct>=0&&Gt.indexOf(ct)===Pt&&G.addIndicesForPlacedSymbol(G.text,ct)}),Ue.verticalPlacedTextSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.text,Ue.verticalPlacedTextSymbolIndex),Ue.placedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,Ue.placedIconSymbolIndex),Ue.verticalPlacedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,Ue.verticalPlacedIconSymbolIndex)}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}},Vt("SymbolBucket",lu,{omit:["layers","collisionBoxArray","features","compareText"]}),lu.MAX_GLYPHS=65535,lu.addDynamicAttributes=ab;function H8(k,C){return C.replace(/{([^{}]+)}/g,function(G,oe){return oe in k?String(k[oe]):""})}var W8=new wn({"symbol-placement":new Jr(kn.layout_symbol["symbol-placement"]),"symbol-spacing":new Jr(kn.layout_symbol["symbol-spacing"]),"symbol-avoid-edges":new Jr(kn.layout_symbol["symbol-avoid-edges"]),"symbol-sort-key":new Kr(kn.layout_symbol["symbol-sort-key"]),"symbol-z-order":new Jr(kn.layout_symbol["symbol-z-order"]),"icon-allow-overlap":new Jr(kn.layout_symbol["icon-allow-overlap"]),"icon-ignore-placement":new Jr(kn.layout_symbol["icon-ignore-placement"]),"icon-optional":new Jr(kn.layout_symbol["icon-optional"]),"icon-rotation-alignment":new Jr(kn.layout_symbol["icon-rotation-alignment"]),"icon-size":new Kr(kn.layout_symbol["icon-size"]),"icon-text-fit":new Jr(kn.layout_symbol["icon-text-fit"]),"icon-text-fit-padding":new Jr(kn.layout_symbol["icon-text-fit-padding"]),"icon-image":new Kr(kn.layout_symbol["icon-image"]),"icon-rotate":new Kr(kn.layout_symbol["icon-rotate"]),"icon-padding":new Jr(kn.layout_symbol["icon-padding"]),"icon-keep-upright":new Jr(kn.layout_symbol["icon-keep-upright"]),"icon-offset":new Kr(kn.layout_symbol["icon-offset"]),"icon-anchor":new Kr(kn.layout_symbol["icon-anchor"]),"icon-pitch-alignment":new Jr(kn.layout_symbol["icon-pitch-alignment"]),"text-pitch-alignment":new Jr(kn.layout_symbol["text-pitch-alignment"]),"text-rotation-alignment":new Jr(kn.layout_symbol["text-rotation-alignment"]),"text-field":new Kr(kn.layout_symbol["text-field"]),"text-font":new Kr(kn.layout_symbol["text-font"]),"text-size":new Kr(kn.layout_symbol["text-size"]),"text-max-width":new Kr(kn.layout_symbol["text-max-width"]),"text-line-height":new Jr(kn.layout_symbol["text-line-height"]),"text-letter-spacing":new Kr(kn.layout_symbol["text-letter-spacing"]),"text-justify":new Kr(kn.layout_symbol["text-justify"]),"text-radial-offset":new Kr(kn.layout_symbol["text-radial-offset"]),"text-variable-anchor":new Jr(kn.layout_symbol["text-variable-anchor"]),"text-anchor":new Kr(kn.layout_symbol["text-anchor"]),"text-max-angle":new Jr(kn.layout_symbol["text-max-angle"]),"text-writing-mode":new Jr(kn.layout_symbol["text-writing-mode"]),"text-rotate":new Kr(kn.layout_symbol["text-rotate"]),"text-padding":new Jr(kn.layout_symbol["text-padding"]),"text-keep-upright":new Jr(kn.layout_symbol["text-keep-upright"]),"text-transform":new Kr(kn.layout_symbol["text-transform"]),"text-offset":new Kr(kn.layout_symbol["text-offset"]),"text-allow-overlap":new Jr(kn.layout_symbol["text-allow-overlap"]),"text-ignore-placement":new Jr(kn.layout_symbol["text-ignore-placement"]),"text-optional":new Jr(kn.layout_symbol["text-optional"])}),X8=new wn({"icon-opacity":new Kr(kn.paint_symbol["icon-opacity"]),"icon-color":new Kr(kn.paint_symbol["icon-color"]),"icon-halo-color":new Kr(kn.paint_symbol["icon-halo-color"]),"icon-halo-width":new Kr(kn.paint_symbol["icon-halo-width"]),"icon-halo-blur":new Kr(kn.paint_symbol["icon-halo-blur"]),"icon-translate":new Jr(kn.paint_symbol["icon-translate"]),"icon-translate-anchor":new Jr(kn.paint_symbol["icon-translate-anchor"]),"text-opacity":new Kr(kn.paint_symbol["text-opacity"]),"text-color":new Kr(kn.paint_symbol["text-color"],{runtimeType:Zo,getOverride:function(k){return k.textColor},hasOverride:function(k){return!!k.textColor}}),"text-halo-color":new Kr(kn.paint_symbol["text-halo-color"]),"text-halo-width":new Kr(kn.paint_symbol["text-halo-width"]),"text-halo-blur":new Kr(kn.paint_symbol["text-halo-blur"]),"text-translate":new Jr(kn.paint_symbol["text-translate"]),"text-translate-anchor":new Jr(kn.paint_symbol["text-translate-anchor"])}),nb={paint:X8,layout:W8},A0=function(C){this.type=C.property.overrides?C.property.overrides.runtimeType:Vs,this.defaultValue=C};A0.prototype.evaluate=function(C){if(C.formattedSection){var G=this.defaultValue.property.overrides;if(G&&G.hasOverride(C.formattedSection))return G.getOverride(C.formattedSection)}return C.feature&&C.featureState?this.defaultValue.evaluate(C.feature,C.featureState):this.defaultValue.property.specification.default},A0.prototype.eachChild=function(C){if(!this.defaultValue.isConstant()){var G=this.defaultValue.value;C(G._styleExpression.expression)}},A0.prototype.outputDefined=function(){return!1},A0.prototype.serialize=function(){return null},Vt("FormatSectionOverride",A0,{omit:["defaultValue"]});var Z8=function(k){function C(G){k.call(this,G,nb)}return k&&(C.__proto__=k),C.prototype=Object.create(k&&k.prototype),C.prototype.constructor=C,C.prototype.recalculate=function(oe,_e){if(k.prototype.recalculate.call(this,oe,_e),this.layout.get("icon-rotation-alignment")==="auto"&&(this.layout.get("symbol-placement")!=="point"?this.layout._values["icon-rotation-alignment"]="map":this.layout._values["icon-rotation-alignment"]="viewport"),this.layout.get("text-rotation-alignment")==="auto"&&(this.layout.get("symbol-placement")!=="point"?this.layout._values["text-rotation-alignment"]="map":this.layout._values["text-rotation-alignment"]="viewport"),this.layout.get("text-pitch-alignment")==="auto"&&(this.layout._values["text-pitch-alignment"]=this.layout.get("text-rotation-alignment")),this.layout.get("icon-pitch-alignment")==="auto"&&(this.layout._values["icon-pitch-alignment"]=this.layout.get("icon-rotation-alignment")),this.layout.get("symbol-placement")==="point"){var ke=this.layout.get("text-writing-mode");if(ke){for(var Ue=[],ct=0,Pt=ke;ct",targetMapId:_e,sourceMapId:Ue.mapId})}}},S0.prototype.receive=function(C){var G=C.data,oe=G.id;if(oe&&!(G.targetMapId&&this.mapId!==G.targetMapId))if(G.type===""){delete this.tasks[oe];var _e=this.cancelCallbacks[oe];delete this.cancelCallbacks[oe],_e&&_e()}else ie()||G.mustQueue?(this.tasks[oe]=G,this.taskQueue.push(oe),this.invoker.trigger()):this.processTask(oe,G)},S0.prototype.process=function(){if(this.taskQueue.length){var C=this.taskQueue.shift(),G=this.tasks[C];delete this.tasks[C],this.taskQueue.length&&this.invoker.trigger(),G&&this.processTask(C,G)}},S0.prototype.processTask=function(C,G){var oe=this;if(G.type===""){var _e=this.callbacks[C];delete this.callbacks[C],_e&&(G.error?_e(Zr(G.error)):_e(null,Zr(G.data)))}else{var ke=!1,Ue=J(this.globalScope)?void 0:[],ct=G.hasCallback?function(Nr,zr){ke=!0,delete oe.cancelCallbacks[C],oe.target.postMessage({id:C,type:"",sourceMapId:oe.mapId,error:Nr?kr(Nr):null,data:kr(zr,Ue)},Ue)}:function(Nr){ke=!0},Pt=null,Gt=Zr(G.data);if(this.parent[G.type])Pt=this.parent[G.type](G.sourceMapId,Gt,ct);else if(this.parent.getWorkerSource){var tr=G.type.split("."),xr=this.parent.getWorkerSource(G.sourceMapId,tr[0],Gt.source);Pt=xr[tr[1]](Gt,ct)}else ct(new Error("Could not find function "+G.type));!ke&&Pt&&Pt.cancel&&(this.cancelCallbacks[C]=Pt.cancel)}},S0.prototype.remove=function(){this.invoker.remove(),this.target.removeEventListener("message",this.receive,!1)};function iF(k,C,G){C=Math.pow(2,G)-C-1;var oe=$A(k*256,C*256,G),_e=$A((k+1)*256,(C+1)*256,G);return oe[0]+","+oe[1]+","+_e[0]+","+_e[1]}function $A(k,C,G){var oe=2*Math.PI*6378137/256/Math.pow(2,G),_e=k*oe-2*Math.PI*6378137/2,ke=C*oe-2*Math.PI*6378137/2;return[_e,ke]}var sf=function(C,G){C&&(G?this.setSouthWest(C).setNorthEast(G):C.length===4?this.setSouthWest([C[0],C[1]]).setNorthEast([C[2],C[3]]):this.setSouthWest(C[0]).setNorthEast(C[1]))};sf.prototype.setNorthEast=function(C){return this._ne=C instanceof oc?new oc(C.lng,C.lat):oc.convert(C),this},sf.prototype.setSouthWest=function(C){return this._sw=C instanceof oc?new oc(C.lng,C.lat):oc.convert(C),this},sf.prototype.extend=function(C){var G=this._sw,oe=this._ne,_e,ke;if(C instanceof oc)_e=C,ke=C;else if(C instanceof sf){if(_e=C._sw,ke=C._ne,!_e||!ke)return this}else{if(Array.isArray(C))if(C.length===4||C.every(Array.isArray)){var Ue=C;return this.extend(sf.convert(Ue))}else{var ct=C;return this.extend(oc.convert(ct))}return this}return!G&&!oe?(this._sw=new oc(_e.lng,_e.lat),this._ne=new oc(ke.lng,ke.lat)):(G.lng=Math.min(_e.lng,G.lng),G.lat=Math.min(_e.lat,G.lat),oe.lng=Math.max(ke.lng,oe.lng),oe.lat=Math.max(ke.lat,oe.lat)),this},sf.prototype.getCenter=function(){return new oc((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)},sf.prototype.getSouthWest=function(){return this._sw},sf.prototype.getNorthEast=function(){return this._ne},sf.prototype.getNorthWest=function(){return new oc(this.getWest(),this.getNorth())},sf.prototype.getSouthEast=function(){return new oc(this.getEast(),this.getSouth())},sf.prototype.getWest=function(){return this._sw.lng},sf.prototype.getSouth=function(){return this._sw.lat},sf.prototype.getEast=function(){return this._ne.lng},sf.prototype.getNorth=function(){return this._ne.lat},sf.prototype.toArray=function(){return[this._sw.toArray(),this._ne.toArray()]},sf.prototype.toString=function(){return"LngLatBounds("+this._sw.toString()+", "+this._ne.toString()+")"},sf.prototype.isEmpty=function(){return!(this._sw&&this._ne)},sf.prototype.contains=function(C){var G=oc.convert(C),oe=G.lng,_e=G.lat,ke=this._sw.lat<=_e&&_e<=this._ne.lat,Ue=this._sw.lng<=oe&&oe<=this._ne.lng;return this._sw.lng>this._ne.lng&&(Ue=this._sw.lng>=oe&&oe>=this._ne.lng),ke&&Ue},sf.convert=function(C){return!C||C instanceof sf?C:new sf(C)};var KA=63710088e-1,oc=function(C,G){if(isNaN(C)||isNaN(G))throw new Error("Invalid LngLat object: ("+C+", "+G+")");if(this.lng=+C,this.lat=+G,this.lat>90||this.lat<-90)throw new Error("Invalid LngLat latitude value: must be between -90 and 90")};oc.prototype.wrap=function(){return new oc(m(this.lng,-180,180),this.lat)},oc.prototype.toArray=function(){return[this.lng,this.lat]},oc.prototype.toString=function(){return"LngLat("+this.lng+", "+this.lat+")"},oc.prototype.distanceTo=function(C){var G=Math.PI/180,oe=this.lat*G,_e=C.lat*G,ke=Math.sin(oe)*Math.sin(_e)+Math.cos(oe)*Math.cos(_e)*Math.cos((C.lng-this.lng)*G),Ue=KA*Math.acos(Math.min(ke,1));return Ue},oc.prototype.toBounds=function(C){C===void 0&&(C=0);var G=40075017,oe=360*C/G,_e=oe/Math.cos(Math.PI/180*this.lat);return new sf(new oc(this.lng-_e,this.lat-oe),new oc(this.lng+_e,this.lat+oe))},oc.convert=function(C){if(C instanceof oc)return C;if(Array.isArray(C)&&(C.length===2||C.length===3))return new oc(Number(C[0]),Number(C[1]));if(!Array.isArray(C)&&typeof C=="object"&&C!==null)return new oc(Number("lng"in C?C.lng:C.lon),Number(C.lat));throw new Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: , lat: }, an object {lon: , lat: }, or an array of [, ]")};var JA=2*Math.PI*KA;function QA(k){return JA*Math.cos(k*Math.PI/180)}function eS(k){return(180+k)/360}function tS(k){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+k*Math.PI/360)))/360}function rS(k,C){return k/QA(C)}function oF(k){return k*360-180}function ob(k){var C=180-k*360;return 360/Math.PI*Math.atan(Math.exp(C*Math.PI/180))-90}function sF(k,C){return k*QA(ob(C))}function lF(k){return 1/Math.cos(k*Math.PI/180)}var bp=function(C,G,oe){oe===void 0&&(oe=0),this.x=+C,this.y=+G,this.z=+oe};bp.fromLngLat=function(C,G){G===void 0&&(G=0);var oe=oc.convert(C);return new bp(eS(oe.lng),tS(oe.lat),rS(G,oe.lat))},bp.prototype.toLngLat=function(){return new oc(oF(this.x),ob(this.y))},bp.prototype.toAltitude=function(){return sF(this.z,this.y)},bp.prototype.meterInMercatorCoordinateUnits=function(){return 1/JA*lF(ob(this.y))};var wp=function(C,G,oe){this.z=C,this.x=G,this.y=oe,this.key=Hg(0,C,C,G,oe)};wp.prototype.equals=function(C){return this.z===C.z&&this.x===C.x&&this.y===C.y},wp.prototype.url=function(C,G){var oe=iF(this.x,this.y,this.z),_e=uF(this.z,this.x,this.y);return C[(this.x+this.y)%C.length].replace("{prefix}",(this.x%16).toString(16)+(this.y%16).toString(16)).replace("{z}",String(this.z)).replace("{x}",String(this.x)).replace("{y}",String(G==="tms"?Math.pow(2,this.z)-this.y-1:this.y)).replace("{quadkey}",_e).replace("{bbox-epsg-3857}",oe)},wp.prototype.getTilePoint=function(C){var G=Math.pow(2,this.z);return new o((C.x*G-this.x)*ti,(C.y*G-this.y)*ti)},wp.prototype.toString=function(){return this.z+"/"+this.x+"/"+this.y};var aS=function(C,G){this.wrap=C,this.canonical=G,this.key=Hg(C,G.z,G.z,G.x,G.y)},lf=function(C,G,oe,_e,ke){this.overscaledZ=C,this.wrap=G,this.canonical=new wp(oe,+_e,+ke),this.key=Hg(G,C,oe,_e,ke)};lf.prototype.equals=function(C){return this.overscaledZ===C.overscaledZ&&this.wrap===C.wrap&&this.canonical.equals(C.canonical)},lf.prototype.scaledTo=function(C){var G=this.canonical.z-C;return C>this.canonical.z?new lf(C,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new lf(C,this.wrap,C,this.canonical.x>>G,this.canonical.y>>G)},lf.prototype.calculateScaledKey=function(C,G){var oe=this.canonical.z-C;return C>this.canonical.z?Hg(this.wrap*+G,C,this.canonical.z,this.canonical.x,this.canonical.y):Hg(this.wrap*+G,C,C,this.canonical.x>>oe,this.canonical.y>>oe)},lf.prototype.isChildOf=function(C){if(C.wrap!==this.wrap)return!1;var G=this.canonical.z-C.canonical.z;return C.overscaledZ===0||C.overscaledZ>G&&C.canonical.y===this.canonical.y>>G},lf.prototype.children=function(C){if(this.overscaledZ>=C)return[new lf(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];var G=this.canonical.z+1,oe=this.canonical.x*2,_e=this.canonical.y*2;return[new lf(G,this.wrap,G,oe,_e),new lf(G,this.wrap,G,oe+1,_e),new lf(G,this.wrap,G,oe,_e+1),new lf(G,this.wrap,G,oe+1,_e+1)]},lf.prototype.isLessThan=function(C){return this.wrapC.wrap?!1:this.overscaledZC.overscaledZ?!1:this.canonical.xC.canonical.x?!1:this.canonical.y0;ke--)_e=1<=this.dim+1||G<-1||G>=this.dim+1)throw new RangeError("out of range source coordinates for DEM data");return(G+1)*this.stride+(C+1)},td.prototype._unpackMapbox=function(C,G,oe){return(C*256*256+G*256+oe)/10-1e4},td.prototype._unpackTerrarium=function(C,G,oe){return C*256+G+oe/256-32768},td.prototype.getPixels=function(){return new Df({width:this.stride,height:this.stride},new Uint8Array(this.data.buffer))},td.prototype.backfillBorder=function(C,G,oe){if(this.dim!==C.dim)throw new Error("dem dimension mismatch");var _e=G*this.dim,ke=G*this.dim+this.dim,Ue=oe*this.dim,ct=oe*this.dim+this.dim;switch(G){case-1:_e=ke-1;break;case 1:ke=_e+1;break}switch(oe){case-1:Ue=ct-1;break;case 1:ct=Ue+1;break}for(var Pt=-G*this.dim,Gt=-oe*this.dim,tr=Ue;tr=0&&xr[3]>=0&&Pt.insert(ct,xr[0],xr[1],xr[2],xr[3])}},rd.prototype.loadVTLayers=function(){return this.vtLayers||(this.vtLayers=new Qv.VectorTile(new sa(this.rawTileData)).layers,this.sourceLayerCoder=new qy(this.vtLayers?Object.keys(this.vtLayers).sort():["_geojsonTileLayer"])),this.vtLayers},rd.prototype.query=function(C,G,oe,_e){var ke=this;this.loadVTLayers();for(var Ue=C.params||{},ct=ti/C.tileSize/C.scale,Pt=Ye(Ue.filter),Gt=C.queryGeometry,tr=C.queryPadding*ct,xr=iS(Gt),Nr=this.grid.query(xr.minX-tr,xr.minY-tr,xr.maxX+tr,xr.maxY+tr),zr=iS(C.cameraQueryGeometry),aa=this.grid3D.query(zr.minX-tr,zr.minY-tr,zr.maxX+tr,zr.maxY+tr,function(si,Ai,xi,uo){return Oh(C.cameraQueryGeometry,si-tr,Ai-tr,xi+tr,uo+tr)}),Ca=0,gn=aa;Ca_e)ke=!1;else if(!G)ke=!0;else if(this.expirationTime=Hr.maxzoom)&&Hr.visibility!=="none"){c(Dr,this.zoom,Ht);var na=Da[Hr.id]=Hr.createBucket({index:wa.bucketLayerIDs.length,layers:Dr,zoom:this.zoom,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:ot,sourceID:this.source});na.populate(Lr,Ya,this.tileID.canonical),wa.bucketLayerIDs.push(Dr.map(function(ra){return ra.id}))}}}}var ta,At,or,Ar,oa=e.mapObject(Ya.glyphDependencies,function(ra){return Object.keys(ra).map(Number)});Object.keys(oa).length?Tr.send("getGlyphs",{uid:this.uid,stacks:oa},function(ra,Ta){ta||(ta=ra,At=Ta,za.call(ha))}):At={};var ga=Object.keys(Ya.iconDependencies);ga.length?Tr.send("getImages",{icons:ga,source:this.source,tileID:this.tileID,type:"icons"},function(ra,Ta){ta||(ta=ra,or=Ta,za.call(ha))}):or={};var Sa=Object.keys(Ya.patternDependencies);Sa.length?Tr.send("getImages",{icons:Sa,source:this.source,tileID:this.tileID,type:"patterns"},function(ra,Ta){ta||(ta=ra,Ar=Ta,za.call(ha))}):Ar={},za.call(this);function za(){if(ta)return qr(ta);if(At&&or&&Ar){var ra=new n(At),Ta=new e.ImageAtlas(or,Ar);for(var Fn in Da){var mn=Da[Fn];mn instanceof e.SymbolBucket?(c(mn.layers,this.zoom,Ht),e.performSymbolLayout(mn,At,ra.positions,or,Ta.iconPositions,this.showCollisionBoxes,this.tileID.canonical)):mn.hasPattern&&(mn instanceof e.LineBucket||mn instanceof e.FillBucket||mn instanceof e.FillExtrusionBucket)&&(c(mn.layers,this.zoom,Ht),mn.addFeatures(Ya,this.tileID.canonical,Ta.patternPositions))}this.status="done",qr(null,{buckets:e.values(Da).filter(function(Kn){return!Kn.isEmpty()}),featureIndex:wa,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:ra.image,imageAtlas:Ta,glyphMap:this.returnDependencies?At:null,iconMap:this.returnDependencies?or:null,glyphPositions:this.returnDependencies?ra.positions:null})}}};function c(Kt,zt,$t){for(var Ht=new e.EvaluationParameters(zt),Tr=0,qr=Kt;Tr=0!=!!zt&&Kt.reverse()}var M=e.vectorTile.VectorTileFeature.prototype.toGeoJSON,_=function(zt){this._feature=zt,this.extent=e.EXTENT,this.type=zt.type,this.properties=zt.tags,"id"in zt&&!isNaN(zt.id)&&(this.id=parseInt(zt.id,10))};_.prototype.loadGeometry=function(){if(this._feature.type===1){for(var zt=[],$t=0,Ht=this._feature.geometry;$t"u"&&(Ht.push(Gr),wa=Ht.length-1,qr[Gr]=wa),zt.writeVarint(wa);var Da=$t.properties[Gr],Ya=typeof Da;Ya!=="string"&&Ya!=="boolean"&&Ya!=="number"&&(Da=JSON.stringify(Da));var Ka=Ya+":"+Da,an=ha[Ka];typeof an>"u"&&(Tr.push(Da),an=Tr.length-1,ha[Ka]=an),zt.writeVarint(an)}}function te(Kt,zt){return(zt<<3)+(Kt&7)}function ue(Kt){return Kt<<1^Kt>>31}function ie(Kt,zt){for(var $t=Kt.loadGeometry(),Ht=Kt.type,Tr=0,qr=0,ha=$t.length,Gr=0;Gr>1;J(Kt,zt,ha,Ht,Tr,qr%2),q(Kt,zt,$t,Ht,ha-1,qr+1),q(Kt,zt,$t,ha+1,Tr,qr+1)}}function J(Kt,zt,$t,Ht,Tr,qr){for(;Tr>Ht;){if(Tr-Ht>600){var ha=Tr-Ht+1,Gr=$t-Ht+1,wa=Math.log(ha),Da=.5*Math.exp(2*wa/3),Ya=.5*Math.sqrt(wa*Da*(ha-Da)/ha)*(Gr-ha/2<0?-1:1),Ka=Math.max(Ht,Math.floor($t-Gr*Da/ha+Ya)),an=Math.min(Tr,Math.floor($t+(ha-Gr)*Da/ha+Ya));J(Kt,zt,$t,Ka,an,qr)}var mt=zt[2*$t+qr],ot=Ht,Lr=Tr;for(ee(Kt,zt,Ht,$t),zt[2*Tr+qr]>mt&&ee(Kt,zt,Ht,Tr);otmt;)Lr--}zt[2*Ht+qr]===mt?ee(Kt,zt,Ht,Lr):(Lr++,ee(Kt,zt,Lr,Tr)),Lr<=$t&&(Ht=Lr+1),$t<=Lr&&(Tr=Lr-1)}}function ee(Kt,zt,$t,Ht){Z(Kt,$t,Ht),Z(zt,2*$t,2*Ht),Z(zt,2*$t+1,2*Ht+1)}function Z(Kt,zt,$t){var Ht=Kt[zt];Kt[zt]=Kt[$t],Kt[$t]=Ht}function se(Kt,zt,$t,Ht,Tr,qr,ha){for(var Gr=[0,Kt.length-1,0],wa=[],Da,Ya;Gr.length;){var Ka=Gr.pop(),an=Gr.pop(),mt=Gr.pop();if(an-mt<=ha){for(var ot=mt;ot<=an;ot++)Da=zt[2*ot],Ya=zt[2*ot+1],Da>=$t&&Da<=Tr&&Ya>=Ht&&Ya<=qr&&wa.push(Kt[ot]);continue}var Lr=Math.floor((mt+an)/2);Da=zt[2*Lr],Ya=zt[2*Lr+1],Da>=$t&&Da<=Tr&&Ya>=Ht&&Ya<=qr&&wa.push(Kt[Lr]);var Er=(Ka+1)%2;(Ka===0?$t<=Da:Ht<=Ya)&&(Gr.push(mt),Gr.push(Lr-1),Gr.push(Er)),(Ka===0?Tr>=Da:qr>=Ya)&&(Gr.push(Lr+1),Gr.push(an),Gr.push(Er))}return wa}function Q(Kt,zt,$t,Ht,Tr,qr){for(var ha=[0,Kt.length-1,0],Gr=[],wa=Tr*Tr;ha.length;){var Da=ha.pop(),Ya=ha.pop(),Ka=ha.pop();if(Ya-Ka<=qr){for(var an=Ka;an<=Ya;an++)V(zt[2*an],zt[2*an+1],$t,Ht)<=wa&&Gr.push(Kt[an]);continue}var mt=Math.floor((Ka+Ya)/2),ot=zt[2*mt],Lr=zt[2*mt+1];V(ot,Lr,$t,Ht)<=wa&&Gr.push(Kt[mt]);var Er=(Da+1)%2;(Da===0?$t-Tr<=ot:Ht-Tr<=Lr)&&(ha.push(Ka),ha.push(mt-1),ha.push(Er)),(Da===0?$t+Tr>=ot:Ht+Tr>=Lr)&&(ha.push(mt+1),ha.push(Ya),ha.push(Er))}return Gr}function V(Kt,zt,$t,Ht){var Tr=Kt-$t,qr=zt-Ht;return Tr*Tr+qr*qr}var re=function(Kt){return Kt[0]},ae=function(Kt){return Kt[1]},fe=function(zt,$t,Ht,Tr,qr){$t===void 0&&($t=re),Ht===void 0&&(Ht=ae),Tr===void 0&&(Tr=64),qr===void 0&&(qr=Float64Array),this.nodeSize=Tr,this.points=zt;for(var ha=zt.length<65536?Uint16Array:Uint32Array,Gr=this.ids=new ha(zt.length),wa=this.coords=new qr(zt.length*2),Da=0;Da=Tr;Ya--){var Ka=+Date.now();wa=this._cluster(wa,Ya),this.trees[Ya]=new fe(wa,he,De,ha,Float32Array),Ht&&console.log("z%d: %d clusters in %dms",Ya,wa.length,+Date.now()-Ka)}return Ht&&console.timeEnd("total time"),this},Ae.prototype.getClusters=function(zt,$t){var Ht=((zt[0]+180)%360+360)%360-180,Tr=Math.max(-90,Math.min(90,zt[1])),qr=zt[2]===180?180:((zt[2]+180)%360+360)%360-180,ha=Math.max(-90,Math.min(90,zt[3]));if(zt[2]-zt[0]>=360)Ht=-180,qr=180;else if(Ht>qr){var Gr=this.getClusters([Ht,Tr,180,ha],$t),wa=this.getClusters([-180,Tr,qr,ha],$t);return Gr.concat(wa)}for(var Da=this.trees[this._limitZoom($t)],Ya=Da.range(tt(Ht),Je(ha),tt(qr),Je(Tr)),Ka=[],an=0,mt=Ya;an$t&&(Lr+=Or.numPoints||1)}if(Lr>=wa){for(var jr=Ka.x*ot,Dr=Ka.y*ot,Hr=Gr&&ot>1?this._map(Ka,!0):null,na=(Ya<<5)+($t+1)+this.points.length,ta=0,At=mt;ta1)for(var ga=0,Sa=mt;ga>5},Ae.prototype._getOriginZoom=function(zt){return(zt-this.points.length)%32},Ae.prototype._map=function(zt,$t){if(zt.numPoints)return $t?we({},zt.properties):zt.properties;var Ht=this.points[zt.index].properties,Tr=this.options.map(Ht);return $t&&Tr===Ht?we({},Tr):Tr};function Pe(Kt,zt,$t,Ht,Tr){return{x:Kt,y:zt,zoom:1/0,id:$t,parentId:-1,numPoints:Ht,properties:Tr}}function Ce(Kt,zt){var $t=Kt.geometry.coordinates,Ht=$t[0],Tr=$t[1];return{x:tt(Ht),y:Je(Tr),zoom:1/0,index:zt,parentId:-1}}function je(Kt){return{type:"Feature",id:Kt.id,properties:at(Kt),geometry:{type:"Point",coordinates:[Ze(Kt.x),Me(Kt.y)]}}}function at(Kt){var zt=Kt.numPoints,$t=zt>=1e4?Math.round(zt/1e3)+"k":zt>=1e3?Math.round(zt/100)/10+"k":zt;return we(we({},Kt.properties),{cluster:!0,cluster_id:Kt.id,point_count:zt,point_count_abbreviated:$t})}function tt(Kt){return Kt/360+.5}function Je(Kt){var zt=Math.sin(Kt*Math.PI/180),$t=.5-.25*Math.log((1+zt)/(1-zt))/Math.PI;return $t<0?0:$t>1?1:$t}function Ze(Kt){return(Kt-.5)*360}function Me(Kt){var zt=(180-Kt*360)*Math.PI/180;return 360*Math.atan(Math.exp(zt))/Math.PI-90}function we(Kt,zt){for(var $t in zt)Kt[$t]=zt[$t];return Kt}function he(Kt){return Kt.x}function De(Kt){return Kt.y}function et(Kt,zt,$t,Ht){for(var Tr=Ht,qr=$t-zt>>1,ha=$t-zt,Gr,wa=Kt[zt],Da=Kt[zt+1],Ya=Kt[$t],Ka=Kt[$t+1],an=zt+3;an<$t;an+=3){var mt=nt(Kt[an],Kt[an+1],wa,Da,Ya,Ka);if(mt>Tr)Gr=an,Tr=mt;else if(mt===Tr){var ot=Math.abs(an-qr);otHt&&(Gr-zt>3&&et(Kt,zt,Gr,Ht),Kt[Gr+2]=Tr,$t-Gr>3&&et(Kt,Gr,$t,Ht))}function nt(Kt,zt,$t,Ht,Tr,qr){var ha=Tr-$t,Gr=qr-Ht;if(ha!==0||Gr!==0){var wa=((Kt-$t)*ha+(zt-Ht)*Gr)/(ha*ha+Gr*Gr);wa>1?($t=Tr,Ht=qr):wa>0&&($t+=ha*wa,Ht+=Gr*wa)}return ha=Kt-$t,Gr=zt-Ht,ha*ha+Gr*Gr}function Ke(Kt,zt,$t,Ht){var Tr={id:typeof Kt>"u"?null:Kt,type:zt,geometry:$t,tags:Ht,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};return Et(Tr),Tr}function Et(Kt){var zt=Kt.geometry,$t=Kt.type;if($t==="Point"||$t==="MultiPoint"||$t==="LineString")kt(Kt,zt);else if($t==="Polygon"||$t==="MultiLineString")for(var Ht=0;Ht0&&(Ht?ha+=(Tr*Da-wa*qr)/2:ha+=Math.sqrt(Math.pow(wa-Tr,2)+Math.pow(Da-qr,2))),Tr=wa,qr=Da}var Ya=zt.length-3;zt[2]=1,et(zt,0,Ya,$t),zt[Ya+2]=1,zt.size=Math.abs(ha),zt.start=0,zt.end=zt.size}function Rr(Kt,zt,$t,Ht){for(var Tr=0;Tr1?1:$t}function yt(Kt,zt,$t,Ht,Tr,qr,ha,Gr){if($t/=zt,Ht/=zt,qr>=$t&&ha=Ht)return null;for(var wa=[],Da=0;Da=$t&&ot=Ht)continue;var Lr=[];if(an==="Point"||an==="MultiPoint")Fe(Ka,Lr,$t,Ht,Tr);else if(an==="LineString")We(Ka,Lr,$t,Ht,Tr,!1,Gr.lineMetrics);else if(an==="MultiLineString")de(Ka,Lr,$t,Ht,Tr,!1);else if(an==="Polygon")de(Ka,Lr,$t,Ht,Tr,!0);else if(an==="MultiPolygon")for(var Er=0;Er=$t&&ha<=Ht&&(zt.push(Kt[qr]),zt.push(Kt[qr+1]),zt.push(Kt[qr+2]))}}function We(Kt,zt,$t,Ht,Tr,qr,ha){for(var Gr=Oe(Kt),wa=Tr===0?be:Ie,Da=Kt.start,Ya,Ka,an=0;an$t&&(Ka=wa(Gr,mt,ot,Er,Mr,$t),ha&&(Gr.start=Da+Ya*Ka)):br>Ht?Or=$t&&(Ka=wa(Gr,mt,ot,Er,Mr,$t),jr=!0),Or>Ht&&br<=Ht&&(Ka=wa(Gr,mt,ot,Er,Mr,Ht),jr=!0),!qr&&jr&&(ha&&(Gr.end=Da+Ya*Ka),zt.push(Gr),Gr=Oe(Kt)),ha&&(Da+=Ya)}var Dr=Kt.length-3;mt=Kt[Dr],ot=Kt[Dr+1],Lr=Kt[Dr+2],br=Tr===0?mt:ot,br>=$t&&br<=Ht&&me(Gr,mt,ot,Lr),Dr=Gr.length-3,qr&&Dr>=3&&(Gr[Dr]!==Gr[0]||Gr[Dr+1]!==Gr[1])&&me(Gr,Gr[0],Gr[1],Gr[2]),Gr.length&&zt.push(Gr)}function Oe(Kt){var zt=[];return zt.size=Kt.size,zt.start=Kt.start,zt.end=Kt.end,zt}function de(Kt,zt,$t,Ht,Tr,qr){for(var ha=0;haha.maxX&&(ha.maxX=Ya),Ka>ha.maxY&&(ha.maxY=Ka)}return ha}function rr(Kt,zt,$t,Ht){var Tr=zt.geometry,qr=zt.type,ha=[];if(qr==="Point"||qr==="MultiPoint")for(var Gr=0;Gr0&&zt.size<(Tr?ha:Ht)){$t.numPoints+=zt.length/3;return}for(var Gr=[],wa=0;waha)&&($t.numSimplified++,Gr.push(zt[wa]),Gr.push(zt[wa+1])),$t.numPoints++;Tr&&mr(Gr,qr),Kt.push(Gr)}function mr(Kt,zt){for(var $t=0,Ht=0,Tr=Kt.length,qr=Tr-2;Ht0===zt)for(Ht=0,Tr=Kt.length;Ht24)throw new Error("maxZoom should be in the 0-24 range");if(zt.promoteId&&zt.generateId)throw new Error("promoteId and generateId cannot be used together.");var Ht=Ut(Kt,zt);this.tiles={},this.tileCoords=[],$t&&(console.timeEnd("preprocess data"),console.log("index: maxZoom: %d, maxPoints: %d",zt.indexMaxZoom,zt.indexMaxPoints),console.time("generate tiles"),this.stats={},this.total=0),Ht=Xe(Ht,zt),Ht.length&&this.splitTile(Ht,0,0,0),$t&&(Ht.length&&console.log("features: %d, points: %d",this.tiles[0].numFeatures,this.tiles[0].numPoints),console.timeEnd("generate tiles"),console.log("tiles generated:",this.total,JSON.stringify(this.stats)))}Ia.prototype.options={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,tolerance:3,extent:4096,buffer:64,lineMetrics:!1,promoteId:null,generateId:!1,debug:0},Ia.prototype.splitTile=function(Kt,zt,$t,Ht,Tr,qr,ha){for(var Gr=[Kt,zt,$t,Ht],wa=this.options,Da=wa.debug;Gr.length;){Ht=Gr.pop(),$t=Gr.pop(),zt=Gr.pop(),Kt=Gr.pop();var Ya=1<1&&console.time("creation"),an=this.tiles[Ka]=Wt(Kt,zt,$t,Ht,wa),this.tileCoords.push({z:zt,x:$t,y:Ht}),Da)){Da>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",zt,$t,Ht,an.numFeatures,an.numPoints,an.numSimplified),console.timeEnd("creation"));var mt="z"+zt;this.stats[mt]=(this.stats[mt]||0)+1,this.total++}if(an.source=Kt,Tr){if(zt===wa.maxZoom||zt===Tr)continue;var ot=1<1&&console.time("clipping");var Lr=.5*wa.buffer/wa.extent,Er=.5-Lr,Mr=.5+Lr,br=1+Lr,Or,jr,Dr,Hr,na,ta;Or=jr=Dr=Hr=null,na=yt(Kt,Ya,$t-Lr,$t+Mr,0,an.minX,an.maxX,wa),ta=yt(Kt,Ya,$t+Er,$t+br,0,an.minX,an.maxX,wa),Kt=null,na&&(Or=yt(na,Ya,Ht-Lr,Ht+Mr,1,an.minY,an.maxY,wa),jr=yt(na,Ya,Ht+Er,Ht+br,1,an.minY,an.maxY,wa),na=null),ta&&(Dr=yt(ta,Ya,Ht-Lr,Ht+Mr,1,an.minY,an.maxY,wa),Hr=yt(ta,Ya,Ht+Er,Ht+br,1,an.minY,an.maxY,wa),ta=null),Da>1&&console.timeEnd("clipping"),Gr.push(Or||[],zt+1,$t*2,Ht*2),Gr.push(jr||[],zt+1,$t*2,Ht*2+1),Gr.push(Dr||[],zt+1,$t*2+1,Ht*2),Gr.push(Hr||[],zt+1,$t*2+1,Ht*2+1)}}},Ia.prototype.getTile=function(Kt,zt,$t){var Ht=this.options,Tr=Ht.extent,qr=Ht.debug;if(Kt<0||Kt>24)return null;var ha=1<1&&console.log("drilling down to z%d-%d-%d",Kt,zt,$t);for(var wa=Kt,Da=zt,Ya=$t,Ka;!Ka&&wa>0;)wa--,Da=Math.floor(Da/2),Ya=Math.floor(Ya/2),Ka=this.tiles[La(wa,Da,Ya)];return!Ka||!Ka.source?null:(qr>1&&console.log("found parent tile z%d-%d-%d",wa,Da,Ya),qr>1&&console.time("drilling down"),this.splitTile(Ka.source,wa,Da,Ya,Kt,zt,$t),qr>1&&console.timeEnd("drilling down"),this.tiles[Gr]?Ct(this.tiles[Gr],Tr):null)};function La(Kt,zt,$t){return((1<=0?0:ye.button},r.remove=function(ye){ye.parentNode&&ye.parentNode.removeChild(ye)};function v(ye,j,ce){var $,ge,Be,rt=e.browser.devicePixelRatio>1?"@2x":"",st=e.getJSON(j.transformRequest(j.normalizeSpriteURL(ye,rt,".json"),e.ResourceType.SpriteJSON),function(pt,Bt){st=null,Be||(Be=pt,$=Bt,Qe())}),Ge=e.getImage(j.transformRequest(j.normalizeSpriteURL(ye,rt,".png"),e.ResourceType.SpriteImage),function(pt,Bt){Ge=null,Be||(Be=pt,ge=Bt,Qe())});function Qe(){if(Be)ce(Be);else if($&&ge){var pt=e.browser.getImageData(ge),Bt={};for(var It in $){var Nt=$[It],Xt=Nt.width,qt=Nt.height,Mt=Nt.x,Ft=Nt.y,Rt=Nt.sdf,_r=Nt.pixelRatio,Ir=Nt.stretchX,Xr=Nt.stretchY,Ua=Nt.content,ka=new e.RGBAImage({width:Xt,height:qt});e.RGBAImage.copy(pt,ka,{x:Mt,y:Ft},{x:0,y:0},{width:Xt,height:qt}),Bt[It]={data:ka,pixelRatio:_r,sdf:Rt,stretchX:Ir,stretchY:Xr,content:Ua}}ce(null,Bt)}}return{cancel:function(){st&&(st.cancel(),st=null),Ge&&(Ge.cancel(),Ge=null)}}}function T(ye){var j=ye.userImage;if(j&&j.render){var ce=j.render();if(ce)return ye.data.replace(new Uint8Array(j.data.buffer)),!0}return!1}var l=1,m=function(ye){function j(){ye.call(this),this.images={},this.updatedImages={},this.callbackDispatchedThisFrame={},this.loaded=!1,this.requestors=[],this.patterns={},this.atlasImage=new e.RGBAImage({width:1,height:1}),this.dirty=!0}return ye&&(j.__proto__=ye),j.prototype=Object.create(ye&&ye.prototype),j.prototype.constructor=j,j.prototype.isLoaded=function(){return this.loaded},j.prototype.setLoaded=function($){if(this.loaded!==$&&(this.loaded=$,$)){for(var ge=0,Be=this.requestors;ge=0?1.2:1))}b.prototype.draw=function(ye){this.ctx.clearRect(0,0,this.size,this.size),this.ctx.fillText(ye,this.buffer,this.middle);for(var j=this.ctx.getImageData(0,0,this.size,this.size),ce=new Uint8ClampedArray(this.size*this.size),$=0;$65535){pt(new Error("glyphs > 65535 not supported"));return}if(Nt.ranges[qt]){pt(null,{stack:Bt,id:It,glyph:Xt});return}var Mt=Nt.requests[qt];Mt||(Mt=Nt.requests[qt]=[],g.loadGlyphRange(Bt,qt,$.url,$.requestManager,function(Ft,Rt){if(Rt){for(var _r in Rt)$._doesCharSupportLocalGlyph(+_r)||(Nt.glyphs[+_r]=Rt[+_r]);Nt.ranges[qt]=!0}for(var Ir=0,Xr=Mt;Ir1&&(Qe=j[++Ge]);var Bt=Math.abs(pt-Qe.left),It=Math.abs(pt-Qe.right),Nt=Math.min(Bt,It),Xt=void 0,qt=Be/$*(ge+1);if(Qe.isDash){var Mt=ge-Math.abs(qt);Xt=Math.sqrt(Nt*Nt+Mt*Mt)}else Xt=ge-Math.sqrt(Nt*Nt+qt*qt);this.data[st+pt]=Math.max(0,Math.min(255,Xt+128))}},F.prototype.addRegularDash=function(j){for(var ce=j.length-1;ce>=0;--ce){var $=j[ce],ge=j[ce+1];$.zeroLength?j.splice(ce,1):ge&&ge.isDash===$.isDash&&(ge.left=$.left,j.splice(ce,1))}var Be=j[0],rt=j[j.length-1];Be.isDash===rt.isDash&&(Be.left=rt.left-this.width,rt.right=Be.right+this.width);for(var st=this.width*this.nextRow,Ge=0,Qe=j[Ge],pt=0;pt1&&(Qe=j[++Ge]);var Bt=Math.abs(pt-Qe.left),It=Math.abs(pt-Qe.right),Nt=Math.min(Bt,It),Xt=Qe.isDash?Nt:-Nt;this.data[st+pt]=Math.max(0,Math.min(255,Xt+128))}},F.prototype.addDash=function(j,ce){var $=ce?7:0,ge=2*$+1;if(this.nextRow+ge>this.height)return e.warnOnce("LineAtlas out of space"),null;for(var Be=0,rt=0;rt=$.minX&&j.x<$.maxX&&j.y>=$.minY&&j.y<$.maxY;return ge};var N=function(ye){function j(ce,$,ge,Be){if(ye.call(this),this.id=ce,this.dispatcher=ge,this.type="vector",this.minzoom=0,this.maxzoom=22,this.scheme="xyz",this.tileSize=512,this.reparseOverscaled=!0,this.isTileClipped=!0,this._loaded=!1,e.extend(this,e.pick($,["url","scheme","tileSize","promoteId"])),this._options=e.extend({type:"vector"},$),this._collectResourceTiming=$.collectResourceTiming,this.tileSize!==512)throw new Error("vector tile sources must have a tileSize of 512");this.setEventedParent(Be)}return ye&&(j.__proto__=ye),j.prototype=Object.create(ye&&ye.prototype),j.prototype.constructor=j,j.prototype.load=function(){var $=this;this._loaded=!1,this.fire(new e.Event("dataloading",{dataType:"source"})),this._tileJSONRequest=O(this._options,this.map._requestManager,function(ge,Be){$._tileJSONRequest=null,$._loaded=!0,ge?$.fire(new e.ErrorEvent(ge)):Be&&(e.extend($,Be),Be.bounds&&($.tileBounds=new P(Be.bounds,$.minzoom,$.maxzoom)),e.postTurnstileEvent(Be.tiles,$.map._requestManager._customAccessToken),e.postMapLoadEvent(Be.tiles,$.map._getMapId(),$.map._requestManager._skuToken,$.map._requestManager._customAccessToken),$.fire(new e.Event("data",{dataType:"source",sourceDataType:"metadata"})),$.fire(new e.Event("data",{dataType:"source",sourceDataType:"content"})))})},j.prototype.loaded=function(){return this._loaded},j.prototype.hasTile=function($){return!this.tileBounds||this.tileBounds.contains($.canonical)},j.prototype.onAdd=function($){this.map=$,this.load()},j.prototype.setSourceProperty=function($){this._tileJSONRequest&&this._tileJSONRequest.cancel(),$();var ge=this.map.style.sourceCaches[this.id];ge.clearTiles(),this.load()},j.prototype.setTiles=function($){var ge=this;return this.setSourceProperty(function(){ge._options.tiles=$}),this},j.prototype.setUrl=function($){var ge=this;return this.setSourceProperty(function(){ge.url=$,ge._options.url=$}),this},j.prototype.onRemove=function(){this._tileJSONRequest&&(this._tileJSONRequest.cancel(),this._tileJSONRequest=null)},j.prototype.serialize=function(){return e.extend({},this._options)},j.prototype.loadTile=function($,ge){var Be=this.map._requestManager.normalizeTileURL($.tileID.canonical.url(this.tiles,this.scheme)),rt={request:this.map._requestManager.transformRequest(Be,e.ResourceType.Tile),uid:$.uid,tileID:$.tileID,zoom:$.tileID.overscaledZ,tileSize:this.tileSize*$.tileID.overscaleFactor(),type:this.type,source:this.id,pixelRatio:e.browser.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId};rt.request.collectResourceTiming=this._collectResourceTiming,!$.actor||$.state==="expired"?($.actor=this.dispatcher.getActor(),$.request=$.actor.send("loadTile",rt,st.bind(this))):$.state==="loading"?$.reloadCallback=ge:$.request=$.actor.send("reloadTile",rt,st.bind(this));function st(Ge,Qe){if(delete $.request,$.aborted)return ge(null);if(Ge&&Ge.status!==404)return ge(Ge);Qe&&Qe.resourceTiming&&($.resourceTiming=Qe.resourceTiming),this.map._refreshExpiredTiles&&Qe&&$.setExpiryData(Qe),$.loadVectorData(Qe,this.map.painter),e.cacheEntryPossiblyAdded(this.dispatcher),ge(null),$.reloadCallback&&(this.loadTile($,$.reloadCallback),$.reloadCallback=null)}},j.prototype.abortTile=function($){$.request&&($.request.cancel(),delete $.request),$.actor&&$.actor.send("abortTile",{uid:$.uid,type:this.type,source:this.id},void 0)},j.prototype.unloadTile=function($){$.unloadVectorData(),$.actor&&$.actor.send("removeTile",{uid:$.uid,type:this.type,source:this.id},void 0)},j.prototype.hasTransition=function(){return!1},j}(e.Evented),U=function(ye){function j(ce,$,ge,Be){ye.call(this),this.id=ce,this.dispatcher=ge,this.setEventedParent(Be),this.type="raster",this.minzoom=0,this.maxzoom=22,this.roundZoom=!0,this.scheme="xyz",this.tileSize=512,this._loaded=!1,this._options=e.extend({type:"raster"},$),e.extend(this,e.pick($,["url","scheme","tileSize"]))}return ye&&(j.__proto__=ye),j.prototype=Object.create(ye&&ye.prototype),j.prototype.constructor=j,j.prototype.load=function(){var $=this;this._loaded=!1,this.fire(new e.Event("dataloading",{dataType:"source"})),this._tileJSONRequest=O(this._options,this.map._requestManager,function(ge,Be){$._tileJSONRequest=null,$._loaded=!0,ge?$.fire(new e.ErrorEvent(ge)):Be&&(e.extend($,Be),Be.bounds&&($.tileBounds=new P(Be.bounds,$.minzoom,$.maxzoom)),e.postTurnstileEvent(Be.tiles),e.postMapLoadEvent(Be.tiles,$.map._getMapId(),$.map._requestManager._skuToken),$.fire(new e.Event("data",{dataType:"source",sourceDataType:"metadata"})),$.fire(new e.Event("data",{dataType:"source",sourceDataType:"content"})))})},j.prototype.loaded=function(){return this._loaded},j.prototype.onAdd=function($){this.map=$,this.load()},j.prototype.onRemove=function(){this._tileJSONRequest&&(this._tileJSONRequest.cancel(),this._tileJSONRequest=null)},j.prototype.serialize=function(){return e.extend({},this._options)},j.prototype.hasTile=function($){return!this.tileBounds||this.tileBounds.contains($.canonical)},j.prototype.loadTile=function($,ge){var Be=this,rt=this.map._requestManager.normalizeTileURL($.tileID.canonical.url(this.tiles,this.scheme),this.tileSize);$.request=e.getImage(this.map._requestManager.transformRequest(rt,e.ResourceType.Tile),function(st,Ge){if(delete $.request,$.aborted)$.state="unloaded",ge(null);else if(st)$.state="errored",ge(st);else if(Ge){Be.map._refreshExpiredTiles&&$.setExpiryData(Ge),delete Ge.cacheControl,delete Ge.expires;var Qe=Be.map.painter.context,pt=Qe.gl;$.texture=Be.map.painter.getTileTexture(Ge.width),$.texture?$.texture.update(Ge,{useMipmap:!0}):($.texture=new e.Texture(Qe,Ge,pt.RGBA,{useMipmap:!0}),$.texture.bind(pt.LINEAR,pt.CLAMP_TO_EDGE,pt.LINEAR_MIPMAP_NEAREST),Qe.extTextureFilterAnisotropic&&pt.texParameterf(pt.TEXTURE_2D,Qe.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,Qe.extTextureFilterAnisotropicMax)),$.state="loaded",e.cacheEntryPossiblyAdded(Be.dispatcher),ge(null)}})},j.prototype.abortTile=function($,ge){$.request&&($.request.cancel(),delete $.request),ge()},j.prototype.unloadTile=function($,ge){$.texture&&this.map.painter.saveTileTexture($.texture),ge()},j.prototype.hasTransition=function(){return!1},j}(e.Evented),X=function(ye){function j(ce,$,ge,Be){ye.call(this,ce,$,ge,Be),this.type="raster-dem",this.maxzoom=22,this._options=e.extend({type:"raster-dem"},$),this.encoding=$.encoding||"mapbox"}return ye&&(j.__proto__=ye),j.prototype=Object.create(ye&&ye.prototype),j.prototype.constructor=j,j.prototype.serialize=function(){return{type:"raster-dem",url:this.url,tileSize:this.tileSize,tiles:this.tiles,bounds:this.bounds,encoding:this.encoding}},j.prototype.loadTile=function($,ge){var Be=this.map._requestManager.normalizeTileURL($.tileID.canonical.url(this.tiles,this.scheme),this.tileSize);$.request=e.getImage(this.map._requestManager.transformRequest(Be,e.ResourceType.Tile),rt.bind(this)),$.neighboringTiles=this._getNeighboringTiles($.tileID);function rt(Ge,Qe){if(delete $.request,$.aborted)$.state="unloaded",ge(null);else if(Ge)$.state="errored",ge(Ge);else if(Qe){this.map._refreshExpiredTiles&&$.setExpiryData(Qe),delete Qe.cacheControl,delete Qe.expires;var pt=e.window.ImageBitmap&&Qe instanceof e.window.ImageBitmap&&e.offscreenCanvasSupported(),Bt=pt?Qe:e.browser.getImageData(Qe,1),It={uid:$.uid,coord:$.tileID,source:this.id,rawImageData:Bt,encoding:this.encoding};(!$.actor||$.state==="expired")&&($.actor=this.dispatcher.getActor(),$.actor.send("loadDEMTile",It,st.bind(this)))}}function st(Ge,Qe){Ge&&($.state="errored",ge(Ge)),Qe&&($.dem=Qe,$.needsHillshadePrepare=!0,$.state="loaded",ge(null))}},j.prototype._getNeighboringTiles=function($){var ge=$.canonical,Be=Math.pow(2,ge.z),rt=(ge.x-1+Be)%Be,st=ge.x===0?$.wrap-1:$.wrap,Ge=(ge.x+1+Be)%Be,Qe=ge.x+1===Be?$.wrap+1:$.wrap,pt={};return pt[new e.OverscaledTileID($.overscaledZ,st,ge.z,rt,ge.y).key]={backfilled:!1},pt[new e.OverscaledTileID($.overscaledZ,Qe,ge.z,Ge,ge.y).key]={backfilled:!1},ge.y>0&&(pt[new e.OverscaledTileID($.overscaledZ,st,ge.z,rt,ge.y-1).key]={backfilled:!1},pt[new e.OverscaledTileID($.overscaledZ,$.wrap,ge.z,ge.x,ge.y-1).key]={backfilled:!1},pt[new e.OverscaledTileID($.overscaledZ,Qe,ge.z,Ge,ge.y-1).key]={backfilled:!1}),ge.y+10&&(Be.resourceTiming=$._resourceTiming,$._resourceTiming=[]),$.fire(new e.Event("data",Be))})},j.prototype.onAdd=function($){this.map=$,this.load()},j.prototype.setData=function($){var ge=this;return this._data=$,this.fire(new e.Event("dataloading",{dataType:"source"})),this._updateWorkerData(function(Be){if(Be){ge.fire(new e.ErrorEvent(Be));return}var rt={dataType:"source",sourceDataType:"content"};ge._collectResourceTiming&&ge._resourceTiming&&ge._resourceTiming.length>0&&(rt.resourceTiming=ge._resourceTiming,ge._resourceTiming=[]),ge.fire(new e.Event("data",rt))}),this},j.prototype.getClusterExpansionZoom=function($,ge){return this.actor.send("geojson.getClusterExpansionZoom",{clusterId:$,source:this.id},ge),this},j.prototype.getClusterChildren=function($,ge){return this.actor.send("geojson.getClusterChildren",{clusterId:$,source:this.id},ge),this},j.prototype.getClusterLeaves=function($,ge,Be,rt){return this.actor.send("geojson.getClusterLeaves",{source:this.id,clusterId:$,limit:ge,offset:Be},rt),this},j.prototype._updateWorkerData=function($){var ge=this;this._loaded=!1;var Be=e.extend({},this.workerOptions),rt=this._data;typeof rt=="string"?(Be.request=this.map._requestManager.transformRequest(e.browser.resolveURL(rt),e.ResourceType.Source),Be.request.collectResourceTiming=this._collectResourceTiming):Be.data=JSON.stringify(rt),this.actor.send(this.type+".loadData",Be,function(st,Ge){ge._removed||Ge&&Ge.abandoned||(ge._loaded=!0,Ge&&Ge.resourceTiming&&Ge.resourceTiming[ge.id]&&(ge._resourceTiming=Ge.resourceTiming[ge.id].slice(0)),ge.actor.send(ge.type+".coalesce",{source:Be.source},null),$(st))})},j.prototype.loaded=function(){return this._loaded},j.prototype.loadTile=function($,ge){var Be=this,rt=$.actor?"reloadTile":"loadTile";$.actor=this.actor;var st={type:this.type,uid:$.uid,tileID:$.tileID,zoom:$.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:e.browser.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId};$.request=this.actor.send(rt,st,function(Ge,Qe){return delete $.request,$.unloadVectorData(),$.aborted?ge(null):Ge?ge(Ge):($.loadVectorData(Qe,Be.map.painter,rt==="reloadTile"),ge(null))})},j.prototype.abortTile=function($){$.request&&($.request.cancel(),delete $.request),$.aborted=!0},j.prototype.unloadTile=function($){$.unloadVectorData(),this.actor.send("removeTile",{uid:$.uid,type:this.type,source:this.id})},j.prototype.onRemove=function(){this._removed=!0,this.actor.send("removeSource",{type:this.type,source:this.id})},j.prototype.serialize=function(){return e.extend({},this._options,{type:this.type,data:this._data})},j.prototype.hasTransition=function(){return!1},j}(e.Evented),ue=e.createLayout([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]),ie=function(ye){function j(ce,$,ge,Be){ye.call(this),this.id=ce,this.dispatcher=ge,this.coordinates=$.coordinates,this.type="image",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent(Be),this.options=$}return ye&&(j.__proto__=ye),j.prototype=Object.create(ye&&ye.prototype),j.prototype.constructor=j,j.prototype.load=function($,ge){var Be=this;this._loaded=!1,this.fire(new e.Event("dataloading",{dataType:"source"})),this.url=this.options.url,e.getImage(this.map._requestManager.transformRequest(this.url,e.ResourceType.Image),function(rt,st){Be._loaded=!0,rt?Be.fire(new e.ErrorEvent(rt)):st&&(Be.image=st,$&&(Be.coordinates=$),ge&&ge(),Be._finishLoading())})},j.prototype.loaded=function(){return this._loaded},j.prototype.updateImage=function($){var ge=this;return!this.image||!$.url?this:(this.options.url=$.url,this.load($.coordinates,function(){ge.texture=null}),this)},j.prototype._finishLoading=function(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new e.Event("data",{dataType:"source",sourceDataType:"metadata"})))},j.prototype.onAdd=function($){this.map=$,this.load()},j.prototype.setCoordinates=function($){var ge=this;this.coordinates=$;var Be=$.map(e.MercatorCoordinate.fromLngLat);this.tileID=le(Be),this.minzoom=this.maxzoom=this.tileID.z;var rt=Be.map(function(st){return ge.tileID.getTilePoint(st)._round()});return this._boundsArray=new e.StructArrayLayout4i8,this._boundsArray.emplaceBack(rt[0].x,rt[0].y,0,0),this._boundsArray.emplaceBack(rt[1].x,rt[1].y,e.EXTENT,0),this._boundsArray.emplaceBack(rt[3].x,rt[3].y,0,e.EXTENT),this._boundsArray.emplaceBack(rt[2].x,rt[2].y,e.EXTENT,e.EXTENT),this.boundsBuffer&&(this.boundsBuffer.destroy(),delete this.boundsBuffer),this.fire(new e.Event("data",{dataType:"source",sourceDataType:"content"})),this},j.prototype.prepare=function(){if(!(Object.keys(this.tiles).length===0||!this.image)){var $=this.map.painter.context,ge=$.gl;this.boundsBuffer||(this.boundsBuffer=$.createVertexBuffer(this._boundsArray,ue.members)),this.boundsSegments||(this.boundsSegments=e.SegmentVector.simpleSegment(0,0,4,2)),this.texture||(this.texture=new e.Texture($,this.image,ge.RGBA),this.texture.bind(ge.LINEAR,ge.CLAMP_TO_EDGE));for(var Be in this.tiles){var rt=this.tiles[Be];rt.state!=="loaded"&&(rt.state="loaded",rt.texture=this.texture)}}},j.prototype.loadTile=function($,ge){this.tileID&&this.tileID.equals($.tileID.canonical)?(this.tiles[String($.tileID.wrap)]=$,$.buckets={},ge(null)):($.state="errored",ge(null))},j.prototype.serialize=function(){return{type:"image",url:this.options.url,coordinates:this.coordinates}},j.prototype.hasTransition=function(){return!1},j}(e.Evented);function le(ye){for(var j=1/0,ce=1/0,$=-1/0,ge=-1/0,Be=0,rt=ye;Bege.end(0)?this.fire(new e.ErrorEvent(new e.ValidationError("sources."+this.id,null,"Playback for this video can be set only between the "+ge.start(0)+" and "+ge.end(0)+"-second mark."))):this.video.currentTime=$}},j.prototype.getVideo=function(){return this.video},j.prototype.onAdd=function($){this.map||(this.map=$,this.load(),this.video&&(this.video.play(),this.setCoordinates(this.coordinates)))},j.prototype.prepare=function(){if(!(Object.keys(this.tiles).length===0||this.video.readyState<2)){var $=this.map.painter.context,ge=$.gl;this.boundsBuffer||(this.boundsBuffer=$.createVertexBuffer(this._boundsArray,ue.members)),this.boundsSegments||(this.boundsSegments=e.SegmentVector.simpleSegment(0,0,4,2)),this.texture?this.video.paused||(this.texture.bind(ge.LINEAR,ge.CLAMP_TO_EDGE),ge.texSubImage2D(ge.TEXTURE_2D,0,0,0,ge.RGBA,ge.UNSIGNED_BYTE,this.video)):(this.texture=new e.Texture($,this.video,ge.RGBA),this.texture.bind(ge.LINEAR,ge.CLAMP_TO_EDGE));for(var Be in this.tiles){var rt=this.tiles[Be];rt.state!=="loaded"&&(rt.state="loaded",rt.texture=this.texture)}}},j.prototype.serialize=function(){return{type:"video",urls:this.urls,coordinates:this.coordinates}},j.prototype.hasTransition=function(){return this.video&&!this.video.paused},j}(ie),J=function(ye){function j(ce,$,ge,Be){ye.call(this,ce,$,ge,Be),$.coordinates?(!Array.isArray($.coordinates)||$.coordinates.length!==4||$.coordinates.some(function(rt){return!Array.isArray(rt)||rt.length!==2||rt.some(function(st){return typeof st!="number"})}))&&this.fire(new e.ErrorEvent(new e.ValidationError("sources."+ce,null,'"coordinates" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new e.ErrorEvent(new e.ValidationError("sources."+ce,null,'missing required property "coordinates"'))),$.animate&&typeof $.animate!="boolean"&&this.fire(new e.ErrorEvent(new e.ValidationError("sources."+ce,null,'optional "animate" property must be a boolean value'))),$.canvas?typeof $.canvas!="string"&&!($.canvas instanceof e.window.HTMLCanvasElement)&&this.fire(new e.ErrorEvent(new e.ValidationError("sources."+ce,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 e.ErrorEvent(new e.ValidationError("sources."+ce,null,'missing required property "canvas"'))),this.options=$,this.animate=$.animate!==void 0?$.animate:!0}return ye&&(j.__proto__=ye),j.prototype=Object.create(ye&&ye.prototype),j.prototype.constructor=j,j.prototype.load=function(){if(this._loaded=!0,this.canvas||(this.canvas=this.options.canvas instanceof e.window.HTMLCanvasElement?this.options.canvas:e.window.document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()){this.fire(new e.ErrorEvent(new Error("Canvas dimensions cannot be less than or equal to zero.")));return}this.play=function(){this._playing=!0,this.map.triggerRepaint()},this.pause=function(){this._playing&&(this.prepare(),this._playing=!1)},this._finishLoading()},j.prototype.getCanvas=function(){return this.canvas},j.prototype.onAdd=function($){this.map=$,this.load(),this.canvas&&this.animate&&this.play()},j.prototype.onRemove=function(){this.pause()},j.prototype.prepare=function(){var $=!1;if(this.canvas.width!==this.width&&(this.width=this.canvas.width,$=!0),this.canvas.height!==this.height&&(this.height=this.canvas.height,$=!0),!this._hasInvalidDimensions()&&Object.keys(this.tiles).length!==0){var ge=this.map.painter.context,Be=ge.gl;this.boundsBuffer||(this.boundsBuffer=ge.createVertexBuffer(this._boundsArray,ue.members)),this.boundsSegments||(this.boundsSegments=e.SegmentVector.simpleSegment(0,0,4,2)),this.texture?($||this._playing)&&this.texture.update(this.canvas,{premultiply:!0}):this.texture=new e.Texture(ge,this.canvas,Be.RGBA,{premultiply:!0});for(var rt in this.tiles){var st=this.tiles[rt];st.state!=="loaded"&&(st.state="loaded",st.texture=this.texture)}}},j.prototype.serialize=function(){return{type:"canvas",coordinates:this.coordinates}},j.prototype.hasTransition=function(){return this._playing},j.prototype._hasInvalidDimensions=function(){for(var $=0,ge=[this.canvas.width,this.canvas.height];$this.max){var st=this._getAndRemoveByKey(this.order[0]);st&&this.onRemove(st)}return this},Ce.prototype.has=function(j){return j.wrapped().key in this.data},Ce.prototype.getAndRemove=function(j){return this.has(j)?this._getAndRemoveByKey(j.wrapped().key):null},Ce.prototype._getAndRemoveByKey=function(j){var ce=this.data[j].shift();return ce.timeout&&clearTimeout(ce.timeout),this.data[j].length===0&&delete this.data[j],this.order.splice(this.order.indexOf(j),1),ce.value},Ce.prototype.getByKey=function(j){var ce=this.data[j];return ce?ce[0].value:null},Ce.prototype.get=function(j){if(!this.has(j))return null;var ce=this.data[j.wrapped().key][0];return ce.value},Ce.prototype.remove=function(j,ce){if(!this.has(j))return this;var $=j.wrapped().key,ge=ce===void 0?0:this.data[$].indexOf(ce),Be=this.data[$][ge];return this.data[$].splice(ge,1),Be.timeout&&clearTimeout(Be.timeout),this.data[$].length===0&&delete this.data[$],this.onRemove(Be.value),this.order.splice(this.order.indexOf($),1),this},Ce.prototype.setMaxSize=function(j){for(this.max=j;this.order.length>this.max;){var ce=this._getAndRemoveByKey(this.order[0]);ce&&this.onRemove(ce)}return this},Ce.prototype.filter=function(j){var ce=[];for(var $ in this.data)for(var ge=0,Be=this.data[$];ge1||(Math.abs(Bt)>1&&(Math.abs(Bt+Nt)===1?Bt+=Nt:Math.abs(Bt-Nt)===1&&(Bt-=Nt)),!(!pt.dem||!Qe.dem)&&(Qe.dem.backfillBorder(pt.dem,Bt,It),Qe.neighboringTiles&&Qe.neighboringTiles[Xt]&&(Qe.neighboringTiles[Xt].backfilled=!0)))}},j.prototype.getTile=function($){return this.getTileByID($.key)},j.prototype.getTileByID=function($){return this._tiles[$]},j.prototype._retainLoadedChildren=function($,ge,Be,rt){for(var st in this._tiles){var Ge=this._tiles[st];if(!(rt[st]||!Ge.hasData()||Ge.tileID.overscaledZ<=ge||Ge.tileID.overscaledZ>Be)){for(var Qe=Ge.tileID;Ge&&Ge.tileID.overscaledZ>ge+1;){var pt=Ge.tileID.scaledTo(Ge.tileID.overscaledZ-1);Ge=this._tiles[pt.key],Ge&&Ge.hasData()&&(Qe=pt)}for(var Bt=Qe;Bt.overscaledZ>ge;)if(Bt=Bt.scaledTo(Bt.overscaledZ-1),$[Bt.key]){rt[Qe.key]=Qe;break}}}},j.prototype.findLoadedParent=function($,ge){if($.key in this._loadedParentTiles){var Be=this._loadedParentTiles[$.key];return Be&&Be.tileID.overscaledZ>=ge?Be:null}for(var rt=$.overscaledZ-1;rt>=ge;rt--){var st=$.scaledTo(rt),Ge=this._getLoadedTile(st);if(Ge)return Ge}},j.prototype._getLoadedTile=function($){var ge=this._tiles[$.key];if(ge&&ge.hasData())return ge;var Be=this._cache.getByKey($.wrapped().key);return Be},j.prototype.updateCacheSize=function($){var ge=Math.ceil($.width/this._source.tileSize)+1,Be=Math.ceil($.height/this._source.tileSize)+1,rt=ge*Be,st=5,Ge=Math.floor(rt*st),Qe=typeof this._maxTileCacheSize=="number"?Math.min(this._maxTileCacheSize,Ge):Ge;this._cache.setMaxSize(Qe)},j.prototype.handleWrapJump=function($){var ge=this._prevLng===void 0?$:this._prevLng,Be=$-ge,rt=Be/360,st=Math.round(rt);if(this._prevLng=$,st){var Ge={};for(var Qe in this._tiles){var pt=this._tiles[Qe];pt.tileID=pt.tileID.unwrapTo(pt.tileID.wrap+st),Ge[pt.tileID.key]=pt}this._tiles=Ge;for(var Bt in this._timers)clearTimeout(this._timers[Bt]),delete this._timers[Bt];for(var It in this._tiles){var Nt=this._tiles[It];this._setTileReloadTimer(It,Nt)}}},j.prototype.update=function($){var ge=this;if(this.transform=$,!(!this._sourceLoaded||this._paused)){this.updateCacheSize($),this.handleWrapJump(this.transform.center.lng),this._coveredTiles={};var Be;this.used?this._source.tileID?Be=$.getVisibleUnwrappedCoordinates(this._source.tileID).map(function(Ha){return new e.OverscaledTileID(Ha.canonical.z,Ha.wrap,Ha.canonical.z,Ha.canonical.x,Ha.canonical.y)}):(Be=$.coveringTiles({tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled}),this._source.hasTile&&(Be=Be.filter(function(Ha){return ge._source.hasTile(Ha)}))):Be=[];var rt=$.coveringZoomLevel(this._source),st=Math.max(rt-j.maxOverzooming,this._source.minzoom),Ge=Math.max(rt+j.maxUnderzooming,this._source.minzoom),Qe=this._updateRetainedTiles(Be,rt);if(wa(this._source.type)){for(var pt={},Bt={},It=Object.keys(Qe),Nt=0,Xt=It;Ntthis._source.maxzoom){var Rt=Mt.children(this._source.maxzoom)[0],_r=this.getTile(Rt);if(_r&&_r.hasData()){Be[Rt.key]=Rt;continue}}else{var Ir=Mt.children(this._source.maxzoom);if(Be[Ir[0].key]&&Be[Ir[1].key]&&Be[Ir[2].key]&&Be[Ir[3].key])continue}for(var Xr=Ft.wasRequested(),Ua=Mt.overscaledZ-1;Ua>=st;--Ua){var ka=Mt.scaledTo(Ua);if(rt[ka.key]||(rt[ka.key]=!0,Ft=this.getTile(ka),!Ft&&Xr&&(Ft=this._addTile(ka)),Ft&&(Be[ka.key]=ka,Xr=Ft.wasRequested(),Ft.hasData())))break}}}return Be},j.prototype._updateLoadedParentTileCache=function(){this._loadedParentTiles={};for(var $ in this._tiles){for(var ge=[],Be=void 0,rt=this._tiles[$].tileID;rt.overscaledZ>0;){if(rt.key in this._loadedParentTiles){Be=this._loadedParentTiles[rt.key];break}ge.push(rt.key);var st=rt.scaledTo(rt.overscaledZ-1);if(Be=this._getLoadedTile(st),Be)break;rt=st}for(var Ge=0,Qe=ge;Ge0)&&(ge.hasData()&&ge.state!=="reloading"?this._cache.add(ge.tileID,ge,ge.getExpiryTimeout()):(ge.aborted=!0,this._abortTile(ge),this._unloadTile(ge))))},j.prototype.clearTiles=function(){this._shouldReloadOnResume=!1,this._paused=!1;for(var $ in this._tiles)this._removeTile($);this._cache.reset()},j.prototype.tilesIn=function($,ge,Be){var rt=this,st=[],Ge=this.transform;if(!Ge)return st;for(var Qe=Be?Ge.getCameraQueryGeometry($):$,pt=$.map(function(Ua){return Ge.pointCoordinate(Ua)}),Bt=Qe.map(function(Ua){return Ge.pointCoordinate(Ua)}),It=this.getIds(),Nt=1/0,Xt=1/0,qt=-1/0,Mt=-1/0,Ft=0,Rt=Bt;Ft=0&&on[1].y+Ha>=0){var qa=pt.map(function(Sn){return xa.getTilePoint(Sn)}),hn=Bt.map(function(Sn){return xa.getTilePoint(Sn)});st.push({tile:ka,tileID:xa,queryGeometry:qa,cameraQueryGeometry:hn,scale:ja})}}},Xr=0;Xr=e.browser.now())return!0}return!1},j.prototype.setFeatureState=function($,ge,Be){$=$||"_geojsonTileLayer",this._state.updateState($,ge,Be)},j.prototype.removeFeatureState=function($,ge,Be){$=$||"_geojsonTileLayer",this._state.removeFeatureState($,ge,Be)},j.prototype.getFeatureState=function($,ge){return $=$||"_geojsonTileLayer",this._state.getState($,ge)},j.prototype.setDependencies=function($,ge,Be){var rt=this._tiles[$];rt&&rt.setDependencies(ge,Be)},j.prototype.reloadTilesForDependencies=function($,ge){for(var Be in this._tiles){var rt=this._tiles[Be];rt.hasDependency($,ge)&&this._reloadTile(Be,"reloading")}this._cache.filter(function(st){return!st.hasDependency($,ge)})},j}(e.Evented);ha.maxOverzooming=10,ha.maxUnderzooming=3;function Gr(ye,j){var ce=Math.abs(ye.wrap*2)-+(ye.wrap<0),$=Math.abs(j.wrap*2)-+(j.wrap<0);return ye.overscaledZ-j.overscaledZ||$-ce||j.canonical.y-ye.canonical.y||j.canonical.x-ye.canonical.x}function wa(ye){return ye==="raster"||ye==="image"||ye==="video"}function Da(){return new e.window.Worker(mo.workerUrl)}var Ya="mapboxgl_preloaded_worker_pool",Ka=function(){this.active={}};Ka.prototype.acquire=function(j){if(!this.workers)for(this.workers=[];this.workers.length0?(ge-rt)/st:0;return this.points[Be].mult(1-Ge).add(this.points[ce].mult(Ge))};var ra=function(j,ce,$){var ge=this.boxCells=[],Be=this.circleCells=[];this.xCellCount=Math.ceil(j/$),this.yCellCount=Math.ceil(ce/$);for(var rt=0;rtthis.width||ge<0||ce>this.height)return Be?!1:[];var st=[];if(j<=0&&ce<=0&&this.width<=$&&this.height<=ge){if(Be)return!0;for(var Ge=0;Ge0:st}},ra.prototype._queryCircle=function(j,ce,$,ge,Be){var rt=j-$,st=j+$,Ge=ce-$,Qe=ce+$;if(st<0||rt>this.width||Qe<0||Ge>this.height)return ge?!1:[];var pt=[],Bt={hitTest:ge,circle:{x:j,y:ce,radius:$},seenUids:{box:{},circle:{}}};return this._forEachCell(rt,Ge,st,Qe,this._queryCellCircle,pt,Bt,Be),ge?pt.length>0:pt},ra.prototype.query=function(j,ce,$,ge,Be){return this._query(j,ce,$,ge,!1,Be)},ra.prototype.hitTest=function(j,ce,$,ge,Be){return this._query(j,ce,$,ge,!0,Be)},ra.prototype.hitTestCircle=function(j,ce,$,ge){return this._queryCircle(j,ce,$,!0,ge)},ra.prototype._queryCell=function(j,ce,$,ge,Be,rt,st,Ge){var Qe=st.seenUids,pt=this.boxCells[Be];if(pt!==null)for(var Bt=this.bboxes,It=0,Nt=pt;It=Bt[qt+0]&&ge>=Bt[qt+1]&&(!Ge||Ge(this.boxKeys[Xt]))){if(st.hitTest)return rt.push(!0),!0;rt.push({key:this.boxKeys[Xt],x1:Bt[qt],y1:Bt[qt+1],x2:Bt[qt+2],y2:Bt[qt+3]})}}}var Mt=this.circleCells[Be];if(Mt!==null)for(var Ft=this.circles,Rt=0,_r=Mt;Rt<_r.length;Rt+=1){var Ir=_r[Rt];if(!Qe.circle[Ir]){Qe.circle[Ir]=!0;var Xr=Ir*3;if(this._circleAndRectCollide(Ft[Xr],Ft[Xr+1],Ft[Xr+2],j,ce,$,ge)&&(!Ge||Ge(this.circleKeys[Ir]))){if(st.hitTest)return rt.push(!0),!0;var Ua=Ft[Xr],ka=Ft[Xr+1],xa=Ft[Xr+2];rt.push({key:this.circleKeys[Ir],x1:Ua-xa,y1:ka-xa,x2:Ua+xa,y2:ka+xa})}}}},ra.prototype._queryCellCircle=function(j,ce,$,ge,Be,rt,st,Ge){var Qe=st.circle,pt=st.seenUids,Bt=this.boxCells[Be];if(Bt!==null)for(var It=this.bboxes,Nt=0,Xt=Bt;Ntst*st+Ge*Ge},ra.prototype._circleAndRectCollide=function(j,ce,$,ge,Be,rt,st){var Ge=(rt-ge)/2,Qe=Math.abs(j-(ge+Ge));if(Qe>Ge+$)return!1;var pt=(st-Be)/2,Bt=Math.abs(ce-(Be+pt));if(Bt>pt+$)return!1;if(Qe<=Ge||Bt<=pt)return!0;var It=Qe-Ge,Nt=Bt-pt;return It*It+Nt*Nt<=$*$};function Ta(ye,j,ce,$,ge){var Be=e.create();return j?(e.scale(Be,Be,[1/ge,1/ge,1]),ce||e.rotateZ(Be,Be,$.angle)):e.multiply(Be,$.labelPlaneMatrix,ye),Be}function Fn(ye,j,ce,$,ge){if(j){var Be=e.clone(ye);return e.scale(Be,Be,[ge,ge,1]),ce||e.rotateZ(Be,Be,-$.angle),Be}else return $.glCoordMatrix}function mn(ye,j){var ce=[ye.x,ye.y,0,1];gs(ce,ce,j);var $=ce[3];return{point:new e.Point(ce[0]/$,ce[1]/$),signedDistanceFromCamera:$}}function Kn(ye,j){return .5+.5*(ye/j)}function ui(ye,j){var ce=ye[0]/ye[3],$=ye[1]/ye[3],ge=ce>=-j[0]&&ce<=j[0]&&$>=-j[1]&&$<=j[1];return ge}function pi(ye,j,ce,$,ge,Be,rt,st){var Ge=$?ye.textSizeData:ye.iconSizeData,Qe=e.evaluateSizeForZoom(Ge,ce.transform.zoom),pt=[256/ce.width*2+1,256/ce.height*2+1],Bt=$?ye.text.dynamicLayoutVertexArray:ye.icon.dynamicLayoutVertexArray;Bt.clear();for(var It=ye.lineVertexArray,Nt=$?ye.text.placedSymbolArray:ye.icon.placedSymbolArray,Xt=ce.transform.width/ce.transform.height,qt=!1,Mt=0;MtBe)return{useVertical:!0}}return(ye===e.WritingMode.vertical?j.yce.x)?{needsFlipping:!0}:null}function Ni(ye,j,ce,$,ge,Be,rt,st,Ge,Qe,pt,Bt,It,Nt){var Xt=j/24,qt=ye.lineOffsetX*Xt,Mt=ye.lineOffsetY*Xt,Ft;if(ye.numGlyphs>1){var Rt=ye.glyphStartIndex+ye.numGlyphs,_r=ye.lineStartIndex,Ir=ye.lineStartIndex+ye.lineLength,Xr=vi(Xt,st,qt,Mt,ce,pt,Bt,ye,Ge,Be,It);if(!Xr)return{notEnoughRoom:!0};var Ua=mn(Xr.first.point,rt).point,ka=mn(Xr.last.point,rt).point;if($&&!ce){var xa=Li(ye.writingMode,Ua,ka,Nt);if(xa)return xa}Ft=[Xr.first];for(var ja=ye.glyphStartIndex+1;ja0?hn.point:ci(Bt,qa,Ha,1,ge),Gn=Li(ye.writingMode,Ha,Sn,Nt);if(Gn)return Gn}var ti=bi(Xt*st.getoffsetX(ye.glyphStartIndex),qt,Mt,ce,pt,Bt,ye.segment,ye.lineStartIndex,ye.lineStartIndex+ye.lineLength,Ge,Be,It);if(!ti)return{notEnoughRoom:!0};Ft=[ti]}for(var yo=0,vo=Ft;yo0?1:-1,Xt=0;$&&(Nt*=-1,Xt=Math.PI),Nt<0&&(Xt+=Math.PI);for(var qt=Nt>0?st+rt:st+rt+1,Mt=ge,Ft=ge,Rt=0,_r=0,Ir=Math.abs(It),Xr=[];Rt+_r<=Ir;){if(qt+=Nt,qt=Ge)return null;if(Ft=Mt,Xr.push(Mt),Mt=Bt[qt],Mt===void 0){var Ua=new e.Point(Qe.getx(qt),Qe.gety(qt)),ka=mn(Ua,pt);if(ka.signedDistanceFromCamera>0)Mt=Bt[qt]=ka.point;else{var xa=qt-Nt,ja=Rt===0?Be:new e.Point(Qe.getx(xa),Qe.gety(xa));Mt=ci(ja,Ua,Ft,Ir-Rt+1,pt)}}Rt+=_r,_r=Ft.dist(Mt)}var Ha=(Ir-Rt)/_r,on=Mt.sub(Ft),qa=on.mult(Ha)._add(Ft);qa._add(on._unit()._perp()._mult(ce*Nt));var hn=Xt+Math.atan2(Mt.y-Ft.y,Mt.x-Ft.x);return Xr.push(qa),{point:qa,angle:hn,path:Xr}}var ho=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);function Bo(ye,j){for(var ce=0;ce=1;ss--)vo.push(ti.path[ss]);for(var rs=1;rs0){for(var Qo=vo[0].clone(),tl=vo[0].clone(),cc=1;cc=hn.x&&tl.x<=Sn.x&&Qo.y>=hn.y&&tl.y<=Sn.y?Cl=[vo]:tl.xSn.x||tl.ySn.y?Cl=[]:Cl=e.clipLine([vo],hn.x,hn.y,Sn.x,Sn.y)}for(var Dc=0,yh=Cl;Dc=this.screenRightBoundary||gethis.screenBottomBoundary},Ei.prototype.isInsideGrid=function(j,ce,$,ge){return $>=0&&j=0&&ce0){var Ir;return this.prevPlacement&&this.prevPlacement.variableOffsets[It.crossTileID]&&this.prevPlacement.placements[It.crossTileID]&&this.prevPlacement.placements[It.crossTileID].text&&(Ir=this.prevPlacement.variableOffsets[It.crossTileID].anchor),this.variableOffsets[It.crossTileID]={textOffset:Mt,width:$,height:ge,anchor:j,textBoxScale:Be,prevAnchor:Ir},this.markUsedJustification(Nt,j,It,Xt),Nt.allowVerticalPlacement&&(this.markUsedOrientation(Nt,Xt,It),this.placedOrientations[It.crossTileID]=Xt),{shift:Ft,placedGlyphBoxes:Rt}}},Mo.prototype.placeLayerBucketPart=function(j,ce,$){var ge=this,Be=j.parameters,rt=Be.bucket,st=Be.layout,Ge=Be.posMatrix,Qe=Be.textLabelPlaneMatrix,pt=Be.labelToScreenMatrix,Bt=Be.textPixelRatio,It=Be.holdingForFade,Nt=Be.collisionBoxArray,Xt=Be.partiallyEvaluatedTextSize,qt=Be.collisionGroup,Mt=st.get("text-optional"),Ft=st.get("icon-optional"),Rt=st.get("text-allow-overlap"),_r=st.get("icon-allow-overlap"),Ir=st.get("text-rotation-alignment")==="map",Xr=st.get("text-pitch-alignment")==="map",Ua=st.get("icon-text-fit")!=="none",ka=st.get("symbol-z-order")==="viewport-y",xa=Rt&&(_r||!rt.hasIconData()||Ft),ja=_r&&(Rt||!rt.hasTextData()||Mt);!rt.collisionArrays&&Nt&&rt.deserializeCollisionBoxes(Nt);var Ha=function(ti,yo){if(!ce[ti.crossTileID]){if(It){ge.placements[ti.crossTileID]=new bo(!1,!1,!1);return}var vo=!1,ss=!1,rs=!0,fs=null,ls={box:null,offscreen:null},Cl={box:null},Qo=null,tl=null,cc=null,Dc=0,yh=0,_h=0;yo.textFeatureIndex?Dc=yo.textFeatureIndex:ti.useRuntimeCollisionCircles&&(Dc=ti.featureIndex),yo.verticalTextFeatureIndex&&(yh=yo.verticalTextFeatureIndex);var qf=yo.textBox;if(qf){var Lh=function(Fu){var Nl=e.WritingMode.horizontal;if(rt.allowVerticalPlacement&&!Fu&&ge.prevPlacement){var Wf=ge.prevPlacement.placedOrientations[ti.crossTileID];Wf&&(ge.placedOrientations[ti.crossTileID]=Wf,Nl=Wf,ge.markUsedOrientation(rt,Nl,ti))}return Nl},cv=function(Fu,Nl){if(rt.allowVerticalPlacement&&ti.numVerticalGlyphVertices>0&&yo.verticalTextBox)for(var Wf=0,Yv=rt.writingModes;Wf0&&(th=th.filter(function(Fu){return Fu!==Hf.anchor}),th.unshift(Hf.anchor))}var xh=function(Fu,Nl,Wf){for(var Yv=Fu.x2-Fu.x1,md=Fu.y2-Fu.y1,Jl=ti.textBoxScale,fp=Ua&&!_r?Nl:null,kv={box:[],offscreen:!1},Jp=Rt?th.length*2:th.length,wh=0;wh=th.length,hp=ge.attemptAnchorPlacement(Cv,Fu,Yv,md,Jl,Ir,Xr,Bt,Ge,qt,Qp,ti,rt,Wf,fp);if(hp&&(kv=hp.placedGlyphBoxes,kv&&kv.box&&kv.box.length)){vo=!0,fs=hp.shift;break}}return kv},Ph=function(){return xh(qf,yo.iconBox,e.WritingMode.horizontal)},bh=function(){var Fu=yo.verticalTextBox,Nl=ls&&ls.box&&ls.box.length;return rt.allowVerticalPlacement&&!Nl&&ti.numVerticalGlyphVertices>0&&Fu?xh(Fu,yo.verticalIconBox,e.WritingMode.vertical):{box:null,offscreen:null}};cv(Ph,bh),ls&&(vo=ls.box,rs=ls.offscreen);var Wv=Lh(ls&&ls.box);if(!vo&&ge.prevPlacement){var fv=ge.prevPlacement.variableOffsets[ti.crossTileID];fv&&(ge.variableOffsets[ti.crossTileID]=fv,ge.markUsedJustification(rt,fv.anchor,ti,Wv))}}else{var Fh=function(Fu,Nl){var Wf=ge.collisionIndex.placeCollisionBox(Fu,Rt,Bt,Ge,qt.predicate);return Wf&&Wf.box&&Wf.box.length&&(ge.markUsedOrientation(rt,Nl,ti),ge.placedOrientations[ti.crossTileID]=Nl),Wf},Gf=function(){return Fh(qf,e.WritingMode.horizontal)},Oh=function(){var Fu=yo.verticalTextBox;return rt.allowVerticalPlacement&&ti.numVerticalGlyphVertices>0&&Fu?Fh(Fu,e.WritingMode.vertical):{box:null,offscreen:null}};cv(Gf,Oh),Lh(ls&&ls.box&&ls.box.length)}}if(Qo=ls,vo=Qo&&Qo.box&&Qo.box.length>0,rs=Qo&&Qo.offscreen,ti.useRuntimeCollisionCircles){var rf=rt.text.placedSymbolArray.get(ti.centerJustifiedTextSymbolIndex),hv=e.evaluateSizeForFeature(rt.textSizeData,Xt,rf),Xv=st.get("text-padding"),Tf=ti.collisionCircleDiameter;tl=ge.collisionIndex.placeCollisionCircles(Rt,rf,rt.lineVertexArray,rt.glyphOffsetArray,hv,Ge,Qe,pt,$,Xr,qt.predicate,Tf,Xv),vo=Rt||tl.circles.length>0&&!tl.collisionDetected,rs=rs&&tl.offscreen}if(yo.iconFeatureIndex&&(_h=yo.iconFeatureIndex),yo.iconBox){var Sv=function(Fu){var Nl=Ua&&fs?ms(Fu,fs.x,fs.y,Ir,Xr,ge.transform.angle):Fu;return ge.collisionIndex.placeCollisionBox(Nl,_r,Bt,Ge,qt.predicate)};Cl&&Cl.box&&Cl.box.length&&yo.verticalIconBox?(cc=Sv(yo.verticalIconBox),ss=cc.box.length>0):(cc=Sv(yo.iconBox),ss=cc.box.length>0),rs=rs&&cc.offscreen}var pd=Mt||ti.numHorizontalGlyphVertices===0&&ti.numVerticalGlyphVertices===0,gd=Ft||ti.numIconVertices===0;if(!pd&&!gd?ss=vo=ss&&vo:gd?pd||(ss=ss&&vo):vo=ss&&vo,vo&&Qo&&Qo.box&&(Cl&&Cl.box&&yh?ge.collisionIndex.insertCollisionBox(Qo.box,st.get("text-ignore-placement"),rt.bucketInstanceId,yh,qt.ID):ge.collisionIndex.insertCollisionBox(Qo.box,st.get("text-ignore-placement"),rt.bucketInstanceId,Dc,qt.ID)),ss&&cc&&ge.collisionIndex.insertCollisionBox(cc.box,st.get("icon-ignore-placement"),rt.bucketInstanceId,_h,qt.ID),tl&&(vo&&ge.collisionIndex.insertCollisionCircles(tl.circles,st.get("text-ignore-placement"),rt.bucketInstanceId,Dc,qt.ID),$)){var Zv=rt.bucketInstanceId,Mv=ge.collisionCircleArrays[Zv];Mv===void 0&&(Mv=ge.collisionCircleArrays[Zv]=new Ui);for(var Ev=0;Ev=0;--qa){var hn=on[qa];Ha(rt.symbolInstances.get(hn),rt.collisionArrays[hn])}else for(var Sn=j.symbolInstanceStart;Sn=0&&(rt>=0&&pt!==rt?j.text.placedSymbolArray.get(pt).crossTileID=0:j.text.placedSymbolArray.get(pt).crossTileID=$.crossTileID)}},Mo.prototype.markUsedOrientation=function(j,ce,$){for(var ge=ce===e.WritingMode.horizontal||ce===e.WritingMode.horizontalOnly?ce:0,Be=ce===e.WritingMode.vertical?ce:0,rt=[$.leftJustifiedTextSymbolIndex,$.centerJustifiedTextSymbolIndex,$.rightJustifiedTextSymbolIndex],st=0,Ge=rt;st0||Xr>0,Ha=_r.numIconVertices>0,on=ge.placedOrientations[_r.crossTileID],qa=on===e.WritingMode.vertical,hn=on===e.WritingMode.horizontal||on===e.WritingMode.horizontalOnly;if(ja){var Sn=Vs(xa.text),Gn=qa?hi:Sn;Xt(j.text,Ir,Gn);var ti=hn?hi:Sn;Xt(j.text,Xr,ti);var yo=xa.text.isHidden();[_r.rightJustifiedTextSymbolIndex,_r.centerJustifiedTextSymbolIndex,_r.leftJustifiedTextSymbolIndex].forEach(function(_h){_h>=0&&(j.text.placedSymbolArray.get(_h).hidden=yo||qa?1:0)}),_r.verticalPlacedTextSymbolIndex>=0&&(j.text.placedSymbolArray.get(_r.verticalPlacedTextSymbolIndex).hidden=yo||hn?1:0);var vo=ge.variableOffsets[_r.crossTileID];vo&&ge.markUsedJustification(j,vo.anchor,_r,on);var ss=ge.placedOrientations[_r.crossTileID];ss&&(ge.markUsedJustification(j,"left",_r,ss),ge.markUsedOrientation(j,ss,_r))}if(Ha){var rs=Vs(xa.icon),fs=!(It&&_r.verticalPlacedIconSymbolIndex&&qa);if(_r.placedIconSymbolIndex>=0){var ls=fs?rs:hi;Xt(j.icon,_r.numIconVertices,ls),j.icon.placedSymbolArray.get(_r.placedIconSymbolIndex).hidden=xa.icon.isHidden()}if(_r.verticalPlacedIconSymbolIndex>=0){var Cl=fs?hi:rs;Xt(j.icon,_r.numVerticalIconVertices,Cl),j.icon.placedSymbolArray.get(_r.verticalPlacedIconSymbolIndex).hidden=xa.icon.isHidden()}}if(j.hasIconCollisionBoxData()||j.hasTextCollisionBoxData()){var Qo=j.collisionArrays[Rt];if(Qo){var tl=new e.Point(0,0);if(Qo.textBox||Qo.verticalTextBox){var cc=!0;if(Qe){var Dc=ge.variableOffsets[Ua];Dc?(tl=ks(Dc.anchor,Dc.width,Dc.height,Dc.textOffset,Dc.textBoxScale),pt&&tl._rotate(Bt?ge.transform.angle:-ge.transform.angle)):cc=!1}Qo.textBox&&kn(j.textCollisionBox.collisionVertexArray,xa.text.placed,!cc||qa,tl.x,tl.y),Qo.verticalTextBox&&kn(j.textCollisionBox.collisionVertexArray,xa.text.placed,!cc||hn,tl.x,tl.y)}var yh=!!(!hn&&Qo.verticalIconBox);Qo.iconBox&&kn(j.iconCollisionBox.collisionVertexArray,xa.icon.placed,yh,It?tl.x:0,It?tl.y:0),Qo.verticalIconBox&&kn(j.iconCollisionBox.collisionVertexArray,xa.icon.placed,!yh,It?tl.x:0,It?tl.y:0)}}},Mt=0;Mtj},Mo.prototype.setStale=function(){this.stale=!0};function kn(ye,j,ce,$,ge){ye.emplaceBack(j?1:0,ce?1:0,$||0,ge||0),ye.emplaceBack(j?1:0,ce?1:0,$||0,ge||0),ye.emplaceBack(j?1:0,ce?1:0,$||0,ge||0),ye.emplaceBack(j?1:0,ce?1:0,$||0,ge||0)}var fi=Math.pow(2,25),Fs=Math.pow(2,24),Ss=Math.pow(2,17),Gi=Math.pow(2,16),js=Math.pow(2,9),No=Math.pow(2,8),es=Math.pow(2,1);function Vs(ye){if(ye.opacity===0&&!ye.placed)return 0;if(ye.opacity===1&&ye.placed)return 4294967295;var j=ye.placed?1:0,ce=Math.floor(ye.opacity*127);return ce*fi+j*Fs+ce*Ss+j*Gi+ce*js+j*No+ce*es+j}var hi=0,so=function(j){this._sortAcrossTiles=j.layout.get("symbol-z-order")!=="viewport-y"&&j.layout.get("symbol-sort-key").constantOr(1)!==void 0,this._currentTileIndex=0,this._currentPartIndex=0,this._seenCrossTileIDs={},this._bucketParts=[]};so.prototype.continuePlacement=function(j,ce,$,ge,Be){for(var rt=this._bucketParts;this._currentTileIndex2};this._currentPlacementIndex>=0;){var st=j[this._currentPlacementIndex],Ge=ce[st],Qe=this.placement.collisionIndex.transform.zoom;if(Ge.type==="symbol"&&(!Ge.minzoom||Ge.minzoom<=Qe)&&(!Ge.maxzoom||Ge.maxzoom>Qe)){this._inProgressLayer||(this._inProgressLayer=new so(Ge));var pt=this._inProgressLayer.continuePlacement($[Ge.source],this.placement,this._showCollisionBoxes,Ge,rt);if(pt)return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0},Oi.prototype.commit=function(j){return this.placement.commit(j),this.placement};var Zo=512/e.EXTENT/2,qs=function(j,ce,$){this.tileID=j,this.indexedSymbolInstances={},this.bucketInstanceId=$;for(var ge=0;gej.overscaledZ)for(var Qe in Ge){var pt=Ge[Qe];pt.tileID.isChildOf(j)&&pt.findMatches(ce.symbolInstances,j,rt)}else{var Bt=j.scaledTo(Number(st)),It=Ge[Bt.key];It&&It.findMatches(ce.symbolInstances,j,rt)}}for(var Nt=0;Nt0)throw new Error("Unimplemented: "+rt.map(function(st){return st.command}).join(", ")+".");return Be.forEach(function(st){st.command!=="setTransition"&&ge[st.command].apply(ge,st.args)}),this.stylesheet=$,!0},j.prototype.addImage=function($,ge){if(this.getImage($))return this.fire(new e.ErrorEvent(new Error("An image with this name already exists.")));this.imageManager.addImage($,ge),this._afterImageUpdated($)},j.prototype.updateImage=function($,ge){this.imageManager.updateImage($,ge)},j.prototype.getImage=function($){return this.imageManager.getImage($)},j.prototype.removeImage=function($){if(!this.getImage($))return this.fire(new e.ErrorEvent(new Error("No image with this name exists.")));this.imageManager.removeImage($),this._afterImageUpdated($)},j.prototype._afterImageUpdated=function($){this._availableImages=this.imageManager.listImages(),this._changedImages[$]=!0,this._changed=!0,this.dispatcher.broadcast("setImages",this._availableImages),this.fire(new e.Event("data",{dataType:"style"}))},j.prototype.listImages=function(){return this._checkLoaded(),this.imageManager.listImages()},j.prototype.addSource=function($,ge,Be){var rt=this;if(Be===void 0&&(Be={}),this._checkLoaded(),this.sourceCaches[$]!==void 0)throw new Error("There is already a source with this ID");if(!ge.type)throw new Error("The type property must be defined, but only the following properties were given: "+Object.keys(ge).join(", ")+".");var st=["vector","raster","geojson","video","image"],Ge=st.indexOf(ge.type)>=0;if(!(Ge&&this._validate(e.validateStyle.source,"sources."+$,ge,null,Be))){this.map&&this.map._collectResourceTiming&&(ge.collectResourceTiming=!0);var Qe=this.sourceCaches[$]=new ha($,ge,this.dispatcher);Qe.style=this,Qe.setEventedParent(this,function(){return{isSourceLoaded:rt.loaded(),source:Qe.serialize(),sourceId:$}}),Qe.onAdd(this.map),this._changed=!0}},j.prototype.removeSource=function($){if(this._checkLoaded(),this.sourceCaches[$]===void 0)throw new Error("There is no source with this ID");for(var ge in this._layers)if(this._layers[ge].source===$)return this.fire(new e.ErrorEvent(new Error('Source "'+$+'" cannot be removed while layer "'+ge+'" is using it.')));var Be=this.sourceCaches[$];delete this.sourceCaches[$],delete this._updatedSources[$],Be.fire(new e.Event("data",{sourceDataType:"metadata",dataType:"source",sourceId:$})),Be.setEventedParent(null),Be.clearTiles(),Be.onRemove&&Be.onRemove(this.map),this._changed=!0},j.prototype.setGeoJSONSourceData=function($,ge){this._checkLoaded();var Be=this.sourceCaches[$].getSource();Be.setData(ge),this._changed=!0},j.prototype.getSource=function($){return this.sourceCaches[$]&&this.sourceCaches[$].getSource()},j.prototype.addLayer=function($,ge,Be){Be===void 0&&(Be={}),this._checkLoaded();var rt=$.id;if(this.getLayer(rt)){this.fire(new e.ErrorEvent(new Error('Layer with id "'+rt+'" already exists on this map')));return}var st;if($.type==="custom"){if(Xs(this,e.validateCustomStyleLayer($)))return;st=e.createStyleLayer($)}else{if(typeof $.source=="object"&&(this.addSource(rt,$.source),$=e.clone$1($),$=e.extend($,{source:rt})),this._validate(e.validateStyle.layer,"layers."+rt,$,{arrayIndex:-1},Be))return;st=e.createStyleLayer($),this._validateLayer(st),st.setEventedParent(this,{layer:{id:rt}}),this._serializedLayers[st.id]=st.serialize()}var Ge=ge?this._order.indexOf(ge):this._order.length;if(ge&&Ge===-1){this.fire(new e.ErrorEvent(new Error('Layer with id "'+ge+'" does not exist on this map.')));return}if(this._order.splice(Ge,0,rt),this._layerOrderChanged=!0,this._layers[rt]=st,this._removedLayers[rt]&&st.source&&st.type!=="custom"){var Qe=this._removedLayers[rt];delete this._removedLayers[rt],Qe.type!==st.type?this._updatedSources[st.source]="clear":(this._updatedSources[st.source]="reload",this.sourceCaches[st.source].pause())}this._updateLayer(st),st.onAdd&&st.onAdd(this.map)},j.prototype.moveLayer=function($,ge){this._checkLoaded(),this._changed=!0;var Be=this._layers[$];if(!Be){this.fire(new e.ErrorEvent(new Error("The layer '"+$+"' does not exist in the map's style and cannot be moved.")));return}if($!==ge){var rt=this._order.indexOf($);this._order.splice(rt,1);var st=ge?this._order.indexOf(ge):this._order.length;if(ge&&st===-1){this.fire(new e.ErrorEvent(new Error('Layer with id "'+ge+'" does not exist on this map.')));return}this._order.splice(st,0,$),this._layerOrderChanged=!0}},j.prototype.removeLayer=function($){this._checkLoaded();var ge=this._layers[$];if(!ge){this.fire(new e.ErrorEvent(new Error("The layer '"+$+"' does not exist in the map's style and cannot be removed.")));return}ge.setEventedParent(null);var Be=this._order.indexOf($);this._order.splice(Be,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[$]=ge,delete this._layers[$],delete this._serializedLayers[$],delete this._updatedLayers[$],delete this._updatedPaintProps[$],ge.onRemove&&ge.onRemove(this.map)},j.prototype.getLayer=function($){return this._layers[$]},j.prototype.hasLayer=function($){return $ in this._layers},j.prototype.setLayerZoomRange=function($,ge,Be){this._checkLoaded();var rt=this.getLayer($);if(!rt){this.fire(new e.ErrorEvent(new Error("The layer '"+$+"' does not exist in the map's style and cannot have zoom extent.")));return}rt.minzoom===ge&&rt.maxzoom===Be||(ge!=null&&(rt.minzoom=ge),Be!=null&&(rt.maxzoom=Be),this._updateLayer(rt))},j.prototype.setFilter=function($,ge,Be){Be===void 0&&(Be={}),this._checkLoaded();var rt=this.getLayer($);if(!rt){this.fire(new e.ErrorEvent(new Error("The layer '"+$+"' does not exist in the map's style and cannot be filtered.")));return}if(!e.deepEqual(rt.filter,ge)){if(ge==null){rt.filter=void 0,this._updateLayer(rt);return}this._validate(e.validateStyle.filter,"layers."+rt.id+".filter",ge,null,Be)||(rt.filter=e.clone$1(ge),this._updateLayer(rt))}},j.prototype.getFilter=function($){return e.clone$1(this.getLayer($).filter)},j.prototype.setLayoutProperty=function($,ge,Be,rt){rt===void 0&&(rt={}),this._checkLoaded();var st=this.getLayer($);if(!st){this.fire(new e.ErrorEvent(new Error("The layer '"+$+"' does not exist in the map's style and cannot be styled.")));return}e.deepEqual(st.getLayoutProperty(ge),Be)||(st.setLayoutProperty(ge,Be,rt),this._updateLayer(st))},j.prototype.getLayoutProperty=function($,ge){var Be=this.getLayer($);if(!Be){this.fire(new e.ErrorEvent(new Error("The layer '"+$+"' does not exist in the map's style.")));return}return Be.getLayoutProperty(ge)},j.prototype.setPaintProperty=function($,ge,Be,rt){rt===void 0&&(rt={}),this._checkLoaded();var st=this.getLayer($);if(!st){this.fire(new e.ErrorEvent(new Error("The layer '"+$+"' does not exist in the map's style and cannot be styled.")));return}if(!e.deepEqual(st.getPaintProperty(ge),Be)){var Ge=st.setPaintProperty(ge,Be,rt);Ge&&this._updateLayer(st),this._changed=!0,this._updatedPaintProps[$]=!0}},j.prototype.getPaintProperty=function($,ge){return this.getLayer($).getPaintProperty(ge)},j.prototype.setFeatureState=function($,ge){this._checkLoaded();var Be=$.source,rt=$.sourceLayer,st=this.sourceCaches[Be];if(st===void 0){this.fire(new e.ErrorEvent(new Error("The source '"+Be+"' does not exist in the map's style.")));return}var Ge=st.getSource().type;if(Ge==="geojson"&&rt){this.fire(new e.ErrorEvent(new Error("GeoJSON sources cannot have a sourceLayer parameter.")));return}if(Ge==="vector"&&!rt){this.fire(new e.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")));return}$.id===void 0&&this.fire(new e.ErrorEvent(new Error("The feature id parameter must be provided."))),st.setFeatureState(rt,$.id,ge)},j.prototype.removeFeatureState=function($,ge){this._checkLoaded();var Be=$.source,rt=this.sourceCaches[Be];if(rt===void 0){this.fire(new e.ErrorEvent(new Error("The source '"+Be+"' does not exist in the map's style.")));return}var st=rt.getSource().type,Ge=st==="vector"?$.sourceLayer:void 0;if(st==="vector"&&!Ge){this.fire(new e.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")));return}if(ge&&typeof $.id!="string"&&typeof $.id!="number"){this.fire(new e.ErrorEvent(new Error("A feature id is required to remove its specific state property.")));return}rt.removeFeatureState(Ge,$.id,ge)},j.prototype.getFeatureState=function($){this._checkLoaded();var ge=$.source,Be=$.sourceLayer,rt=this.sourceCaches[ge];if(rt===void 0){this.fire(new e.ErrorEvent(new Error("The source '"+ge+"' does not exist in the map's style.")));return}var st=rt.getSource().type;if(st==="vector"&&!Be){this.fire(new e.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")));return}return $.id===void 0&&this.fire(new e.ErrorEvent(new Error("The feature id parameter must be provided."))),rt.getFeatureState(Be,$.id)},j.prototype.getTransition=function(){return e.extend({duration:300,delay:0},this.stylesheet&&this.stylesheet.transition)},j.prototype.serialize=function(){return e.filterObject({version:this.stylesheet.version,name:this.stylesheet.name,metadata:this.stylesheet.metadata,light:this.stylesheet.light,center:this.stylesheet.center,zoom:this.stylesheet.zoom,bearing:this.stylesheet.bearing,pitch:this.stylesheet.pitch,sprite:this.stylesheet.sprite,glyphs:this.stylesheet.glyphs,transition:this.stylesheet.transition,sources:e.mapObject(this.sourceCaches,function($){return $.serialize()}),layers:this._serializeLayers(this._order)},function($){return $!==void 0})},j.prototype._updateLayer=function($){this._updatedLayers[$.id]=!0,$.source&&!this._updatedSources[$.source]&&this.sourceCaches[$.source].getSource().type!=="raster"&&(this._updatedSources[$.source]="reload",this.sourceCaches[$.source].pause()),this._changed=!0},j.prototype._flattenAndSortRenderedFeatures=function($){for(var ge=this,Be=function(hn){return ge._layers[hn].type==="fill-extrusion"},rt={},st=[],Ge=this._order.length-1;Ge>=0;Ge--){var Qe=this._order[Ge];if(Be(Qe)){rt[Qe]=Ge;for(var pt=0,Bt=$;pt=0;Rt--){var _r=this._order[Rt];if(Be(_r))for(var Ir=st.length-1;Ir>=0;Ir--){var Xr=st[Ir].feature;if(rt[Xr.layer.id] 0.0 ? height : base,1);float colorvalue=color.r*0.2126+color.g*0.7152+color.b*0.0722;v_color=vec4(0.0,0.0,0.0,1.0);vec4 ambientlight=vec4(0.03,0.03,0.03,1.0);color+=ambientlight;float directional=clamp(dot(normal/16384.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((1.0-colorvalue+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_color.r+=clamp(color.r*directional*u_lightcolor.r,mix(0.0,0.3,1.0-u_lightcolor.r),1.0);v_color.g+=clamp(color.g*directional*u_lightcolor.g,mix(0.0,0.3,1.0-u_lightcolor.g),1.0);v_color.b+=clamp(color.b*directional*u_lightcolor.b,mix(0.0,0.3,1.0-u_lightcolor.b),1.0);v_color*=u_opacity;}`,Sl=`uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting; -#pragma mapbox: define lowp float base -#pragma mapbox: define lowp float height -#pragma mapbox: define lowp vec4 pattern_from -#pragma mapbox: define lowp vec4 pattern_to -#pragma mapbox: define lowp float pixel_ratio_from -#pragma mapbox: define lowp float pixel_ratio_to -void main() { -#pragma mapbox: initialize lowp float base -#pragma mapbox: initialize lowp float height -#pragma mapbox: initialize mediump vec4 pattern_from -#pragma mapbox: initialize mediump vec4 pattern_to -#pragma mapbox: initialize lowp float pixel_ratio_from -#pragma mapbox: initialize lowp float pixel_ratio_to -vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);vec4 mixedColor=mix(color1,color2,u_fade);gl_FragColor=mixedColor*v_lighting; -#ifdef OVERDRAW_INSPECTOR -gl_FragColor=vec4(1.0); -#endif -}`,hf=`uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_height_factor;uniform vec3 u_scale;uniform float u_vertical_gradient;uniform lowp float u_opacity;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;attribute vec2 a_pos;attribute vec4 a_normal_ed;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting; -#pragma mapbox: define lowp float base -#pragma mapbox: define lowp float height -#pragma mapbox: define lowp vec4 pattern_from -#pragma mapbox: define lowp vec4 pattern_to -#pragma mapbox: define lowp float pixel_ratio_from -#pragma mapbox: define lowp float pixel_ratio_to -void main() { -#pragma mapbox: initialize lowp float base -#pragma mapbox: initialize lowp float height -#pragma mapbox: initialize mediump vec4 pattern_from -#pragma mapbox: initialize mediump vec4 pattern_to -#pragma mapbox: initialize lowp float pixel_ratio_from -#pragma mapbox: initialize lowp float pixel_ratio_to -vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec3 normal=a_normal_ed.xyz;float edgedistance=a_normal_ed.w;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;base=max(0.0,base);height=max(0.0,height);float t=mod(normal.x,2.0);float z=t > 0.0 ? height : base;gl_Position=u_matrix*vec4(a_pos,z,1);vec2 pos=normal.x==1.0 && normal.y==0.0 && normal.z==16384.0 -? a_pos -: vec2(edgedistance,z*u_height_factor);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,pos);v_lighting=vec4(0.0,0.0,0.0,1.0);float directional=clamp(dot(normal/16383.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((0.5+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_lighting.rgb+=clamp(directional*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));v_lighting*=u_opacity;}`,Yc=`#ifdef GL_ES -precision highp float; -#endif -uniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_dimension;uniform float u_zoom;uniform vec4 u_unpack;float getElevation(vec2 coord,float bias) {vec4 data=texture2D(u_image,coord)*255.0;data.a=-1.0;return dot(data,u_unpack)/4.0;}void main() {vec2 epsilon=1.0/u_dimension;float a=getElevation(v_pos+vec2(-epsilon.x,-epsilon.y),0.0);float b=getElevation(v_pos+vec2(0,-epsilon.y),0.0);float c=getElevation(v_pos+vec2(epsilon.x,-epsilon.y),0.0);float d=getElevation(v_pos+vec2(-epsilon.x,0),0.0);float e=getElevation(v_pos,0.0);float f=getElevation(v_pos+vec2(epsilon.x,0),0.0);float g=getElevation(v_pos+vec2(-epsilon.x,epsilon.y),0.0);float h=getElevation(v_pos+vec2(0,epsilon.y),0.0);float i=getElevation(v_pos+vec2(epsilon.x,epsilon.y),0.0);float exaggerationFactor=u_zoom < 2.0 ? 0.4 : u_zoom < 4.5 ? 0.35 : 0.3;float exaggeration=u_zoom < 15.0 ? (u_zoom-15.0)*exaggerationFactor : 0.0;vec2 deriv=vec2((c+f+f+i)-(a+d+d+g),(g+h+h+i)-(a+b+b+c))/pow(2.0,exaggeration+(19.2562-u_zoom));gl_FragColor=clamp(vec4(deriv.x/2.0+0.5,deriv.y/2.0+0.5,1.0,1.0),0.0,1.0); -#ifdef OVERDRAW_INSPECTOR -gl_FragColor=vec4(1.0); -#endif -}`,Tc="uniform mat4 u_matrix;uniform vec2 u_dimension;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);highp vec2 epsilon=1.0/u_dimension;float scale=(u_dimension.x-2.0)/u_dimension.x;v_pos=(a_texture_pos/8192.0)*scale+epsilon;}",ec=`uniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_latrange;uniform vec2 u_light;uniform vec4 u_shadow;uniform vec4 u_highlight;uniform vec4 u_accent; -#define PI 3.141592653589793 -void main() {vec4 pixel=texture2D(u_image,v_pos);vec2 deriv=((pixel.rg*2.0)-1.0);float scaleFactor=cos(radians((u_latrange[0]-u_latrange[1])*(1.0-v_pos.y)+u_latrange[1]));float slope=atan(1.25*length(deriv)/scaleFactor);float aspect=deriv.x !=0.0 ? atan(deriv.y,-deriv.x) : PI/2.0*(deriv.y > 0.0 ? 1.0 :-1.0);float intensity=u_light.x;float azimuth=u_light.y+PI;float base=1.875-intensity*1.75;float maxValue=0.5*PI;float scaledSlope=intensity !=0.5 ? ((pow(base,slope)-1.0)/(pow(base,maxValue)-1.0))*maxValue : slope;float accent=cos(scaledSlope);vec4 accent_color=(1.0-accent)*u_accent*clamp(intensity*2.0,0.0,1.0);float shade=abs(mod((aspect+azimuth)/PI+0.5,2.0)-1.0);vec4 shade_color=mix(u_shadow,u_highlight,shade)*sin(scaledSlope)*clamp(intensity*2.0,0.0,1.0);gl_FragColor=accent_color*(1.0-shade_color.a)+shade_color; -#ifdef OVERDRAW_INSPECTOR -gl_FragColor=vec4(1.0); -#endif -}`,Gc="uniform mat4 u_matrix;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=a_texture_pos/8192.0;}",Hc=`uniform lowp float u_device_pixel_ratio;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale; -#pragma mapbox: define highp vec4 color -#pragma mapbox: define lowp float blur -#pragma mapbox: define lowp float opacity -void main() { -#pragma mapbox: initialize highp vec4 color -#pragma mapbox: initialize lowp float blur -#pragma mapbox: initialize lowp float opacity -float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);gl_FragColor=color*(alpha*opacity); -#ifdef OVERDRAW_INSPECTOR -gl_FragColor=vec4(1.0); -#endif -}`,bu=` -#define scale 0.015873016 -attribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform vec2 u_units_to_pixels;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_gamma_scale;varying highp float v_linesofar; -#pragma mapbox: define highp vec4 color -#pragma mapbox: define lowp float blur -#pragma mapbox: define lowp float opacity -#pragma mapbox: define mediump float gapwidth -#pragma mapbox: define lowp float offset -#pragma mapbox: define mediump float width -void main() { -#pragma mapbox: initialize highp vec4 color -#pragma mapbox: initialize lowp float blur -#pragma mapbox: initialize lowp float opacity -#pragma mapbox: initialize mediump float gapwidth -#pragma mapbox: initialize lowp float offset -#pragma mapbox: initialize mediump float width -float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;v_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*2.0;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_width2=vec2(outset,inset);}`,$c=`uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale;varying highp vec2 v_uv; -#pragma mapbox: define lowp float blur -#pragma mapbox: define lowp float opacity -void main() { -#pragma mapbox: initialize lowp float blur -#pragma mapbox: initialize lowp float opacity -float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);vec4 color=texture2D(u_image,v_uv);gl_FragColor=color*(alpha*opacity); -#ifdef OVERDRAW_INSPECTOR -gl_FragColor=vec4(1.0); -#endif -}`,Gu=` -#define scale 0.015873016 -attribute vec2 a_pos_normal;attribute vec4 a_data;attribute float a_uv_x;attribute float a_split_index;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_units_to_pixels;uniform float u_image_height;varying vec2 v_normal;varying vec2 v_width2;varying float v_gamma_scale;varying highp vec2 v_uv; -#pragma mapbox: define lowp float blur -#pragma mapbox: define lowp float opacity -#pragma mapbox: define mediump float gapwidth -#pragma mapbox: define lowp float offset -#pragma mapbox: define mediump float width -void main() { -#pragma mapbox: initialize lowp float blur -#pragma mapbox: initialize lowp float opacity -#pragma mapbox: initialize mediump float gapwidth -#pragma mapbox: initialize lowp float offset -#pragma mapbox: initialize mediump float width -float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;highp float texel_height=1.0/u_image_height;highp float half_texel_height=0.5*texel_height;v_uv=vec2(a_uv_x,a_split_index*texel_height-half_texel_height);vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_width2=vec2(outset,inset);}`,Lu=`uniform lowp float u_device_pixel_ratio;uniform vec2 u_texsize;uniform float u_fade;uniform mediump vec3 u_scale;uniform sampler2D u_image;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width; -#pragma mapbox: define lowp vec4 pattern_from -#pragma mapbox: define lowp vec4 pattern_to -#pragma mapbox: define lowp float pixel_ratio_from -#pragma mapbox: define lowp float pixel_ratio_to -#pragma mapbox: define lowp float blur -#pragma mapbox: define lowp float opacity -void main() { -#pragma mapbox: initialize mediump vec4 pattern_from -#pragma mapbox: initialize mediump vec4 pattern_to -#pragma mapbox: initialize lowp float pixel_ratio_from -#pragma mapbox: initialize lowp float pixel_ratio_to -#pragma mapbox: initialize lowp float blur -#pragma mapbox: initialize lowp float opacity -vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;vec2 pattern_size_a=vec2(display_size_a.x*fromScale/tileZoomRatio,display_size_a.y);vec2 pattern_size_b=vec2(display_size_b.x*toScale/tileZoomRatio,display_size_b.y);float aspect_a=display_size_a.y/v_width;float aspect_b=display_size_b.y/v_width;float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float x_a=mod(v_linesofar/pattern_size_a.x*aspect_a,1.0);float x_b=mod(v_linesofar/pattern_size_b.x*aspect_b,1.0);float y=0.5*v_normal.y+0.5;vec2 texel_size=1.0/u_texsize;vec2 pos_a=mix(pattern_tl_a*texel_size-texel_size,pattern_br_a*texel_size+texel_size,vec2(x_a,y));vec2 pos_b=mix(pattern_tl_b*texel_size-texel_size,pattern_br_b*texel_size+texel_size,vec2(x_b,y));vec4 color=mix(texture2D(u_image,pos_a),texture2D(u_image,pos_b),u_fade);gl_FragColor=color*alpha*opacity; -#ifdef OVERDRAW_INSPECTOR -gl_FragColor=vec4(1.0); -#endif -}`,Ml=` -#define scale 0.015873016 -#define LINE_DISTANCE_SCALE 2.0 -attribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform vec2 u_units_to_pixels;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width; -#pragma mapbox: define lowp float blur -#pragma mapbox: define lowp float opacity -#pragma mapbox: define lowp float offset -#pragma mapbox: define mediump float gapwidth -#pragma mapbox: define mediump float width -#pragma mapbox: define lowp float floorwidth -#pragma mapbox: define lowp vec4 pattern_from -#pragma mapbox: define lowp vec4 pattern_to -#pragma mapbox: define lowp float pixel_ratio_from -#pragma mapbox: define lowp float pixel_ratio_to -void main() { -#pragma mapbox: initialize lowp float blur -#pragma mapbox: initialize lowp float opacity -#pragma mapbox: initialize lowp float offset -#pragma mapbox: initialize mediump float gapwidth -#pragma mapbox: initialize mediump float width -#pragma mapbox: initialize lowp float floorwidth -#pragma mapbox: initialize mediump vec4 pattern_from -#pragma mapbox: initialize mediump vec4 pattern_to -#pragma mapbox: initialize lowp float pixel_ratio_from -#pragma mapbox: initialize lowp float pixel_ratio_to -float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_linesofar=a_linesofar;v_width2=vec2(outset,inset);v_width=floorwidth;}`,lc=`uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;uniform float u_sdfgamma;uniform float u_mix;varying vec2 v_normal;varying vec2 v_width2;varying vec2 v_tex_a;varying vec2 v_tex_b;varying float v_gamma_scale; -#pragma mapbox: define highp vec4 color -#pragma mapbox: define lowp float blur -#pragma mapbox: define lowp float opacity -#pragma mapbox: define mediump float width -#pragma mapbox: define lowp float floorwidth -void main() { -#pragma mapbox: initialize highp vec4 color -#pragma mapbox: initialize lowp float blur -#pragma mapbox: initialize lowp float opacity -#pragma mapbox: initialize mediump float width -#pragma mapbox: initialize lowp float floorwidth -float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float sdfdist_a=texture2D(u_image,v_tex_a).a;float sdfdist_b=texture2D(u_image,v_tex_b).a;float sdfdist=mix(sdfdist_a,sdfdist_b,u_mix);alpha*=smoothstep(0.5-u_sdfgamma/floorwidth,0.5+u_sdfgamma/floorwidth,sdfdist);gl_FragColor=color*(alpha*opacity); -#ifdef OVERDRAW_INSPECTOR -gl_FragColor=vec4(1.0); -#endif -}`,Wc=` -#define scale 0.015873016 -#define LINE_DISTANCE_SCALE 2.0 -attribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_patternscale_a;uniform float u_tex_y_a;uniform vec2 u_patternscale_b;uniform float u_tex_y_b;uniform vec2 u_units_to_pixels;varying vec2 v_normal;varying vec2 v_width2;varying vec2 v_tex_a;varying vec2 v_tex_b;varying float v_gamma_scale; -#pragma mapbox: define highp vec4 color -#pragma mapbox: define lowp float blur -#pragma mapbox: define lowp float opacity -#pragma mapbox: define mediump float gapwidth -#pragma mapbox: define lowp float offset -#pragma mapbox: define mediump float width -#pragma mapbox: define lowp float floorwidth -void main() { -#pragma mapbox: initialize highp vec4 color -#pragma mapbox: initialize lowp float blur -#pragma mapbox: initialize lowp float opacity -#pragma mapbox: initialize mediump float gapwidth -#pragma mapbox: initialize lowp float offset -#pragma mapbox: initialize mediump float width -#pragma mapbox: initialize lowp float floorwidth -float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_tex_a=vec2(a_linesofar*u_patternscale_a.x/floorwidth,normal.y*u_patternscale_a.y+u_tex_y_a);v_tex_b=vec2(a_linesofar*u_patternscale_b.x/floorwidth,normal.y*u_patternscale_b.y+u_tex_y_b);v_width2=vec2(outset,inset);}`,Ms=`uniform float u_fade_t;uniform float u_opacity;uniform sampler2D u_image0;uniform sampler2D u_image1;varying vec2 v_pos0;varying vec2 v_pos1;uniform float u_brightness_low;uniform float u_brightness_high;uniform float u_saturation_factor;uniform float u_contrast_factor;uniform vec3 u_spin_weights;void main() {vec4 color0=texture2D(u_image0,v_pos0);vec4 color1=texture2D(u_image1,v_pos1);if (color0.a > 0.0) {color0.rgb=color0.rgb/color0.a;}if (color1.a > 0.0) {color1.rgb=color1.rgb/color1.a;}vec4 color=mix(color0,color1,u_fade_t);color.a*=u_opacity;vec3 rgb=color.rgb;rgb=vec3(dot(rgb,u_spin_weights.xyz),dot(rgb,u_spin_weights.zxy),dot(rgb,u_spin_weights.yzx));float average=(color.r+color.g+color.b)/3.0;rgb+=(average-rgb)*u_saturation_factor;rgb=(rgb-0.5)*u_contrast_factor+0.5;vec3 u_high_vec=vec3(u_brightness_low,u_brightness_low,u_brightness_low);vec3 u_low_vec=vec3(u_brightness_high,u_brightness_high,u_brightness_high);gl_FragColor=vec4(mix(u_high_vec,u_low_vec,rgb)*color.a,color.a); -#ifdef OVERDRAW_INSPECTOR -gl_FragColor=vec4(1.0); -#endif -}`,Lc="uniform mat4 u_matrix;uniform vec2 u_tl_parent;uniform float u_scale_parent;uniform float u_buffer_scale;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos0;varying vec2 v_pos1;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos0=(((a_texture_pos/8192.0)-0.5)/u_buffer_scale )+0.5;v_pos1=(v_pos0*u_scale_parent)+u_tl_parent;}",xf=`uniform sampler2D u_texture;varying vec2 v_tex;varying float v_fade_opacity; -#pragma mapbox: define lowp float opacity -void main() { -#pragma mapbox: initialize lowp float opacity -lowp float alpha=opacity*v_fade_opacity;gl_FragColor=texture2D(u_texture,v_tex)*alpha; -#ifdef OVERDRAW_INSPECTOR -gl_FragColor=vec4(1.0); -#endif -}`,Kc=`const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec4 a_pixeloffset;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform highp float u_camera_to_center_distance;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform float u_fade_change;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform vec2 u_texsize;varying vec2 v_tex;varying float v_fade_opacity; -#pragma mapbox: define lowp float opacity -void main() { -#pragma mapbox: initialize lowp float opacity -vec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;vec2 a_minFontScale=a_pixeloffset.zw/256.0;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ? -camera_to_anchor_distance/u_camera_to_center_distance : -u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*max(a_minFontScale,fontScale)+a_pxoffset/16.0),0.0,1.0);v_tex=a_tex/u_texsize;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;v_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));}`,Ac=`#define SDF_PX 8.0 -uniform bool u_is_halo;uniform sampler2D u_texture;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;uniform bool u_is_text;varying vec2 v_data0;varying vec3 v_data1; -#pragma mapbox: define highp vec4 fill_color -#pragma mapbox: define highp vec4 halo_color -#pragma mapbox: define lowp float opacity -#pragma mapbox: define lowp float halo_width -#pragma mapbox: define lowp float halo_blur -void main() { -#pragma mapbox: initialize highp vec4 fill_color -#pragma mapbox: initialize highp vec4 halo_color -#pragma mapbox: initialize lowp float opacity -#pragma mapbox: initialize lowp float halo_width -#pragma mapbox: initialize lowp float halo_blur -float EDGE_GAMMA=0.105/u_device_pixel_ratio;vec2 tex=v_data0.xy;float gamma_scale=v_data1.x;float size=v_data1.y;float fade_opacity=v_data1[2];float fontScale=u_is_text ? size/24.0 : size;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);buff=(6.0-halo_width/fontScale)/SDF_PX;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);gl_FragColor=color*(alpha*opacity*fade_opacity); -#ifdef OVERDRAW_INSPECTOR -gl_FragColor=vec4(1.0); -#endif -}`,Jc=`const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec4 a_pixeloffset;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;varying vec2 v_data0;varying vec3 v_data1; -#pragma mapbox: define highp vec4 fill_color -#pragma mapbox: define highp vec4 halo_color -#pragma mapbox: define lowp float opacity -#pragma mapbox: define lowp float halo_width -#pragma mapbox: define lowp float halo_blur -void main() { -#pragma mapbox: initialize highp vec4 fill_color -#pragma mapbox: initialize highp vec4 halo_color -#pragma mapbox: initialize lowp float opacity -#pragma mapbox: initialize lowp float halo_width -#pragma mapbox: initialize lowp float halo_blur -vec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ? -camera_to_anchor_distance/u_camera_to_center_distance : -u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale+a_pxoffset),0.0,1.0);float gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));v_data0=a_tex/u_texsize;v_data1=vec3(gamma_scale,size,interpolated_fade_opacity);}`,tu=`#define SDF_PX 8.0 -#define SDF 1.0 -#define ICON 0.0 -uniform bool u_is_halo;uniform sampler2D u_texture;uniform sampler2D u_texture_icon;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;varying vec4 v_data0;varying vec4 v_data1; -#pragma mapbox: define highp vec4 fill_color -#pragma mapbox: define highp vec4 halo_color -#pragma mapbox: define lowp float opacity -#pragma mapbox: define lowp float halo_width -#pragma mapbox: define lowp float halo_blur -void main() { -#pragma mapbox: initialize highp vec4 fill_color -#pragma mapbox: initialize highp vec4 halo_color -#pragma mapbox: initialize lowp float opacity -#pragma mapbox: initialize lowp float halo_width -#pragma mapbox: initialize lowp float halo_blur -float fade_opacity=v_data1[2];if (v_data1.w==ICON) {vec2 tex_icon=v_data0.zw;lowp float alpha=opacity*fade_opacity;gl_FragColor=texture2D(u_texture_icon,tex_icon)*alpha; -#ifdef OVERDRAW_INSPECTOR -gl_FragColor=vec4(1.0); -#endif -return;}vec2 tex=v_data0.xy;float EDGE_GAMMA=0.105/u_device_pixel_ratio;float gamma_scale=v_data1.x;float size=v_data1.y;float fontScale=size/24.0;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);buff=(6.0-halo_width/fontScale)/SDF_PX;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);gl_FragColor=color*(alpha*opacity*fade_opacity); -#ifdef OVERDRAW_INSPECTOR -gl_FragColor=vec4(1.0); -#endif -}`,Qc=`const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;uniform vec2 u_texsize_icon;varying vec4 v_data0;varying vec4 v_data1; -#pragma mapbox: define highp vec4 fill_color -#pragma mapbox: define highp vec4 halo_color -#pragma mapbox: define lowp float opacity -#pragma mapbox: define lowp float halo_width -#pragma mapbox: define lowp float halo_blur -void main() { -#pragma mapbox: initialize highp vec4 fill_color -#pragma mapbox: initialize highp vec4 halo_color -#pragma mapbox: initialize lowp float opacity -#pragma mapbox: initialize lowp float halo_width -#pragma mapbox: initialize lowp float halo_blur -vec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);float is_sdf=a_size[0]-2.0*a_size_min;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ? -camera_to_anchor_distance/u_camera_to_center_distance : -u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=size/24.0;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale),0.0,1.0);float gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));v_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec4(gamma_scale,size,interpolated_fade_opacity,is_sdf);}`,el=Ws(Vu,yu),ru=Ws(jc,ff),tc=Ws(_s,Cu),Bs=Ws(Vc,Pl),Hu=Ws(Tl,Il),Gl=Ws(_u,Os),au=Ws(Al,Uo),Ys=Ws(bs,qu),vc=Ws(Zl,Ju),Pu=Ws(Zs,_f),rc=Ws(zo,Rf),Pc=Ws(is,Bi),bf=Ws(hc,xu),Vf=Ws(dl,qc),dc=Ws(Qu,wc),Ic=Ws(Sl,hf),fu=Ws(Yc,Tc),Rc=Ws(ec,Gc),Rl=Ws(Hc,bu),pc=Ws($c,Gu),ef=Ws(Lu,Ml),gc=Ws(lc,Wc),Gs=Ws(Ms,Lc),nu=Ws(xf,Kc),wu=Ws(Ac,Jc),Xc=Ws(tu,Qc);function Ws(ye,j){var ce=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,$=j.match(/attribute ([\w]+) ([\w]+)/g),ge=ye.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),Be=j.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),rt=Be?Be.concat(ge):ge,st={};return ye=ye.replace(ce,function(Ge,Qe,pt,Bt,It){return st[It]=!0,Qe==="define"?` -#ifndef HAS_UNIFORM_u_`+It+` -varying `+pt+" "+Bt+" "+It+`; -#else -uniform `+pt+" "+Bt+" u_"+It+`; -#endif -`:` -#ifdef HAS_UNIFORM_u_`+It+` - `+pt+" "+Bt+" "+It+" = u_"+It+`; -#endif -`}),j=j.replace(ce,function(Ge,Qe,pt,Bt,It){var Nt=Bt==="float"?"vec2":"vec4",Xt=It.match(/color/)?"color":Nt;return st[It]?Qe==="define"?` -#ifndef HAS_UNIFORM_u_`+It+` -uniform lowp float u_`+It+`_t; -attribute `+pt+" "+Nt+" a_"+It+`; -varying `+pt+" "+Bt+" "+It+`; -#else -uniform `+pt+" "+Bt+" u_"+It+`; -#endif -`:Xt==="vec4"?` -#ifndef HAS_UNIFORM_u_`+It+` - `+It+" = a_"+It+`; -#else - `+pt+" "+Bt+" "+It+" = u_"+It+`; -#endif -`:` -#ifndef HAS_UNIFORM_u_`+It+` - `+It+" = unpack_mix_"+Xt+"(a_"+It+", u_"+It+`_t); -#else - `+pt+" "+Bt+" "+It+" = u_"+It+`; -#endif -`:Qe==="define"?` -#ifndef HAS_UNIFORM_u_`+It+` -uniform lowp float u_`+It+`_t; -attribute `+pt+" "+Nt+" a_"+It+`; -#else -uniform `+pt+" "+Bt+" u_"+It+`; -#endif -`:Xt==="vec4"?` -#ifndef HAS_UNIFORM_u_`+It+` - `+pt+" "+Bt+" "+It+" = a_"+It+`; -#else - `+pt+" "+Bt+" "+It+" = u_"+It+`; -#endif -`:` -#ifndef HAS_UNIFORM_u_`+It+` - `+pt+" "+Bt+" "+It+" = unpack_mix_"+Xt+"(a_"+It+", u_"+It+`_t); -#else - `+pt+" "+Bt+" "+It+" = u_"+It+`; -#endif -`}),{fragmentSource:ye,vertexSource:j,staticAttributes:$,staticUniforms:rt}}var Sc=Object.freeze({__proto__:null,prelude:el,background:ru,backgroundPattern:tc,circle:Bs,clippingMask:Hu,heatmap:Gl,heatmapTexture:au,collisionBox:Ys,collisionCircle:vc,debug:Pu,fill:rc,fillOutline:Pc,fillOutlinePattern:bf,fillPattern:Vf,fillExtrusion:dc,fillExtrusionPattern:Ic,hillshadePrepare:fu,hillshade:Rc,line:Rl,lineGradient:pc,linePattern:ef,lineSDF:gc,raster:Gs,symbolIcon:nu,symbolSDF:wu,symbolTextAndIcon:Xc}),ac=function(){this.boundProgram=null,this.boundLayoutVertexBuffer=null,this.boundPaintVertexBuffers=[],this.boundIndexBuffer=null,this.boundVertexOffset=null,this.boundDynamicVertexBuffer=null,this.vao=null};ac.prototype.bind=function(j,ce,$,ge,Be,rt,st,Ge){this.context=j;for(var Qe=this.boundPaintVertexBuffers.length!==ge.length,pt=0;!Qe&&pt>16,st>>16],u_pixel_coord_lower:[rt&65535,st&65535]}}function Ec(ye,j,ce,$){var ge=ce.imageManager.getPattern(ye.from.toString()),Be=ce.imageManager.getPattern(ye.to.toString()),rt=ce.imageManager.getPixelSize(),st=rt.width,Ge=rt.height,Qe=Math.pow(2,$.tileID.overscaledZ),pt=$.tileSize*Math.pow(2,ce.transform.tileZoom)/Qe,Bt=pt*($.tileID.canonical.x+$.tileID.wrap*Qe),It=pt*$.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:ge.tl,u_pattern_br_a:ge.br,u_pattern_tl_b:Be.tl,u_pattern_br_b:Be.br,u_texsize:[st,Ge],u_mix:j.t,u_pattern_size_a:ge.displaySize,u_pattern_size_b:Be.displaySize,u_scale_a:j.fromScale,u_scale_b:j.toScale,u_tile_units_to_pixels:1/Ri($,1,ce.transform.tileZoom),u_pixel_coord_upper:[Bt>>16,It>>16],u_pixel_coord_lower:[Bt&65535,It&65535]}}var wf=function(ye,j){return{u_matrix:new e.UniformMatrix4f(ye,j.u_matrix),u_lightpos:new e.Uniform3f(ye,j.u_lightpos),u_lightintensity:new e.Uniform1f(ye,j.u_lightintensity),u_lightcolor:new e.Uniform3f(ye,j.u_lightcolor),u_vertical_gradient:new e.Uniform1f(ye,j.u_vertical_gradient),u_opacity:new e.Uniform1f(ye,j.u_opacity)}},Fl=function(ye,j){return{u_matrix:new e.UniformMatrix4f(ye,j.u_matrix),u_lightpos:new e.Uniform3f(ye,j.u_lightpos),u_lightintensity:new e.Uniform1f(ye,j.u_lightintensity),u_lightcolor:new e.Uniform3f(ye,j.u_lightcolor),u_vertical_gradient:new e.Uniform1f(ye,j.u_vertical_gradient),u_height_factor:new e.Uniform1f(ye,j.u_height_factor),u_image:new e.Uniform1i(ye,j.u_image),u_texsize:new e.Uniform2f(ye,j.u_texsize),u_pixel_coord_upper:new e.Uniform2f(ye,j.u_pixel_coord_upper),u_pixel_coord_lower:new e.Uniform2f(ye,j.u_pixel_coord_lower),u_scale:new e.Uniform3f(ye,j.u_scale),u_fade:new e.Uniform1f(ye,j.u_fade),u_opacity:new e.Uniform1f(ye,j.u_opacity)}},tf=function(ye,j,ce,$){var ge=j.style.light,Be=ge.properties.get("position"),rt=[Be.x,Be.y,Be.z],st=e.create$1();ge.properties.get("anchor")==="viewport"&&e.fromRotation(st,-j.transform.angle),e.transformMat3(rt,rt,st);var Ge=ge.properties.get("color");return{u_matrix:ye,u_lightpos:rt,u_lightintensity:ge.properties.get("intensity"),u_lightcolor:[Ge.r,Ge.g,Ge.b],u_vertical_gradient:+ce,u_opacity:$}},vu=function(ye,j,ce,$,ge,Be,rt){return e.extend(tf(ye,j,ce,$),Iu(Be,j,rt),{u_height_factor:-Math.pow(2,ge.overscaledZ)/rt.tileSize/8})},Wu=function(ye,j){return{u_matrix:new e.UniformMatrix4f(ye,j.u_matrix)}},Ru=function(ye,j){return{u_matrix:new e.UniformMatrix4f(ye,j.u_matrix),u_image:new e.Uniform1i(ye,j.u_image),u_texsize:new e.Uniform2f(ye,j.u_texsize),u_pixel_coord_upper:new e.Uniform2f(ye,j.u_pixel_coord_upper),u_pixel_coord_lower:new e.Uniform2f(ye,j.u_pixel_coord_lower),u_scale:new e.Uniform3f(ye,j.u_scale),u_fade:new e.Uniform1f(ye,j.u_fade)}},al=function(ye,j){return{u_matrix:new e.UniformMatrix4f(ye,j.u_matrix),u_world:new e.Uniform2f(ye,j.u_world)}},Yl=function(ye,j){return{u_matrix:new e.UniformMatrix4f(ye,j.u_matrix),u_world:new e.Uniform2f(ye,j.u_world),u_image:new e.Uniform1i(ye,j.u_image),u_texsize:new e.Uniform2f(ye,j.u_texsize),u_pixel_coord_upper:new e.Uniform2f(ye,j.u_pixel_coord_upper),u_pixel_coord_lower:new e.Uniform2f(ye,j.u_pixel_coord_lower),u_scale:new e.Uniform3f(ye,j.u_scale),u_fade:new e.Uniform1f(ye,j.u_fade)}},Ks=function(ye){return{u_matrix:ye}},nc=function(ye,j,ce,$){return e.extend(Ks(ye),Iu(ce,j,$))},Du=function(ye,j){return{u_matrix:ye,u_world:j}},Zc=function(ye,j,ce,$,ge){return e.extend(nc(ye,j,ce,$),{u_world:ge})},Qt=function(ye,j){return{u_camera_to_center_distance:new e.Uniform1f(ye,j.u_camera_to_center_distance),u_scale_with_map:new e.Uniform1i(ye,j.u_scale_with_map),u_pitch_with_map:new e.Uniform1i(ye,j.u_pitch_with_map),u_extrude_scale:new e.Uniform2f(ye,j.u_extrude_scale),u_device_pixel_ratio:new e.Uniform1f(ye,j.u_device_pixel_ratio),u_matrix:new e.UniformMatrix4f(ye,j.u_matrix)}},yr=function(ye,j,ce,$){var ge=ye.transform,Be,rt;if($.paint.get("circle-pitch-alignment")==="map"){var st=Ri(ce,1,ge.zoom);Be=!0,rt=[st,st]}else Be=!1,rt=ge.pixelsToGLUnits;return{u_camera_to_center_distance:ge.cameraToCenterDistance,u_scale_with_map:+($.paint.get("circle-pitch-scale")==="map"),u_matrix:ye.translatePosMatrix(j.posMatrix,ce,$.paint.get("circle-translate"),$.paint.get("circle-translate-anchor")),u_pitch_with_map:+Be,u_device_pixel_ratio:e.browser.devicePixelRatio,u_extrude_scale:rt}},$r=function(ye,j){return{u_matrix:new e.UniformMatrix4f(ye,j.u_matrix),u_camera_to_center_distance:new e.Uniform1f(ye,j.u_camera_to_center_distance),u_pixels_to_tile_units:new e.Uniform1f(ye,j.u_pixels_to_tile_units),u_extrude_scale:new e.Uniform2f(ye,j.u_extrude_scale),u_overscale_factor:new e.Uniform1f(ye,j.u_overscale_factor)}},Vr=function(ye,j){return{u_matrix:new e.UniformMatrix4f(ye,j.u_matrix),u_inv_matrix:new e.UniformMatrix4f(ye,j.u_inv_matrix),u_camera_to_center_distance:new e.Uniform1f(ye,j.u_camera_to_center_distance),u_viewport_size:new e.Uniform2f(ye,j.u_viewport_size)}},ma=function(ye,j,ce){var $=Ri(ce,1,j.zoom),ge=Math.pow(2,j.zoom-ce.tileID.overscaledZ),Be=ce.tileID.overscaleFactor();return{u_matrix:ye,u_camera_to_center_distance:j.cameraToCenterDistance,u_pixels_to_tile_units:$,u_extrude_scale:[j.pixelsToGLUnits[0]/($*ge),j.pixelsToGLUnits[1]/($*ge)],u_overscale_factor:Be}},tn=function(ye,j,ce){return{u_matrix:ye,u_inv_matrix:j,u_camera_to_center_distance:ce.cameraToCenterDistance,u_viewport_size:[ce.width,ce.height]}},Ja=function(ye,j){return{u_color:new e.UniformColor(ye,j.u_color),u_matrix:new e.UniformMatrix4f(ye,j.u_matrix),u_overlay:new e.Uniform1i(ye,j.u_overlay),u_overlay_scale:new e.Uniform1f(ye,j.u_overlay_scale)}},Ln=function(ye,j,ce){return ce===void 0&&(ce=1),{u_matrix:ye,u_color:j,u_overlay:0,u_overlay_scale:ce}},On=function(ye,j){return{u_matrix:new e.UniformMatrix4f(ye,j.u_matrix)}},Qn=function(ye){return{u_matrix:ye}},_n=function(ye,j){return{u_extrude_scale:new e.Uniform1f(ye,j.u_extrude_scale),u_intensity:new e.Uniform1f(ye,j.u_intensity),u_matrix:new e.UniformMatrix4f(ye,j.u_matrix)}},qn=function(ye,j){return{u_matrix:new e.UniformMatrix4f(ye,j.u_matrix),u_world:new e.Uniform2f(ye,j.u_world),u_image:new e.Uniform1i(ye,j.u_image),u_color_ramp:new e.Uniform1i(ye,j.u_color_ramp),u_opacity:new e.Uniform1f(ye,j.u_opacity)}},En=function(ye,j,ce,$){return{u_matrix:ye,u_extrude_scale:Ri(j,1,ce),u_intensity:$}},dn=function(ye,j,ce,$){var ge=e.create();e.ortho(ge,0,ye.width,ye.height,0,0,1);var Be=ye.context.gl;return{u_matrix:ge,u_world:[Be.drawingBufferWidth,Be.drawingBufferHeight],u_image:ce,u_color_ramp:$,u_opacity:j.paint.get("heatmap-opacity")}},ai=function(ye,j){return{u_matrix:new e.UniformMatrix4f(ye,j.u_matrix),u_image:new e.Uniform1i(ye,j.u_image),u_latrange:new e.Uniform2f(ye,j.u_latrange),u_light:new e.Uniform2f(ye,j.u_light),u_shadow:new e.UniformColor(ye,j.u_shadow),u_highlight:new e.UniformColor(ye,j.u_highlight),u_accent:new e.UniformColor(ye,j.u_accent)}},Hi=function(ye,j){return{u_matrix:new e.UniformMatrix4f(ye,j.u_matrix),u_image:new e.Uniform1i(ye,j.u_image),u_dimension:new e.Uniform2f(ye,j.u_dimension),u_zoom:new e.Uniform1f(ye,j.u_zoom),u_unpack:new e.Uniform4f(ye,j.u_unpack)}},Fi=function(ye,j,ce){var $=ce.paint.get("hillshade-shadow-color"),ge=ce.paint.get("hillshade-highlight-color"),Be=ce.paint.get("hillshade-accent-color"),rt=ce.paint.get("hillshade-illumination-direction")*(Math.PI/180);ce.paint.get("hillshade-illumination-anchor")==="viewport"&&(rt-=ye.transform.angle);var st=!ye.options.moving;return{u_matrix:ye.transform.calculatePosMatrix(j.tileID.toUnwrapped(),st),u_image:0,u_latrange:Wi(ye,j.tileID),u_light:[ce.paint.get("hillshade-exaggeration"),rt],u_shadow:$,u_highlight:ge,u_accent:Be}},Zi=function(ye,j){var ce=j.stride,$=e.create();return e.ortho($,0,e.EXTENT,-e.EXTENT,0,0,1),e.translate($,$,[0,-e.EXTENT,0]),{u_matrix:$,u_image:1,u_dimension:[ce,ce],u_zoom:ye.overscaledZ,u_unpack:j.getUnpackVector()}};function Wi(ye,j){var ce=Math.pow(2,j.canonical.z),$=j.canonical.y;return[new e.MercatorCoordinate(0,$/ce).toLngLat().lat,new e.MercatorCoordinate(0,($+1)/ce).toLngLat().lat]}var ii=function(ye,j){return{u_matrix:new e.UniformMatrix4f(ye,j.u_matrix),u_ratio:new e.Uniform1f(ye,j.u_ratio),u_device_pixel_ratio:new e.Uniform1f(ye,j.u_device_pixel_ratio),u_units_to_pixels:new e.Uniform2f(ye,j.u_units_to_pixels)}},Wn=function(ye,j){return{u_matrix:new e.UniformMatrix4f(ye,j.u_matrix),u_ratio:new e.Uniform1f(ye,j.u_ratio),u_device_pixel_ratio:new e.Uniform1f(ye,j.u_device_pixel_ratio),u_units_to_pixels:new e.Uniform2f(ye,j.u_units_to_pixels),u_image:new e.Uniform1i(ye,j.u_image),u_image_height:new e.Uniform1f(ye,j.u_image_height)}},ao=function(ye,j){return{u_matrix:new e.UniformMatrix4f(ye,j.u_matrix),u_texsize:new e.Uniform2f(ye,j.u_texsize),u_ratio:new e.Uniform1f(ye,j.u_ratio),u_device_pixel_ratio:new e.Uniform1f(ye,j.u_device_pixel_ratio),u_image:new e.Uniform1i(ye,j.u_image),u_units_to_pixels:new e.Uniform2f(ye,j.u_units_to_pixels),u_scale:new e.Uniform3f(ye,j.u_scale),u_fade:new e.Uniform1f(ye,j.u_fade)}},Fo=function(ye,j){return{u_matrix:new e.UniformMatrix4f(ye,j.u_matrix),u_ratio:new e.Uniform1f(ye,j.u_ratio),u_device_pixel_ratio:new e.Uniform1f(ye,j.u_device_pixel_ratio),u_units_to_pixels:new e.Uniform2f(ye,j.u_units_to_pixels),u_patternscale_a:new e.Uniform2f(ye,j.u_patternscale_a),u_patternscale_b:new e.Uniform2f(ye,j.u_patternscale_b),u_sdfgamma:new e.Uniform1f(ye,j.u_sdfgamma),u_image:new e.Uniform1i(ye,j.u_image),u_tex_y_a:new e.Uniform1f(ye,j.u_tex_y_a),u_tex_y_b:new e.Uniform1f(ye,j.u_tex_y_b),u_mix:new e.Uniform1f(ye,j.u_mix)}},hs=function(ye,j,ce){var $=ye.transform;return{u_matrix:sl(ye,j,ce),u_ratio:1/Ri(j,1,$.zoom),u_device_pixel_ratio:e.browser.devicePixelRatio,u_units_to_pixels:[1/$.pixelsToGLUnits[0],1/$.pixelsToGLUnits[1]]}},Is=function(ye,j,ce,$){return e.extend(hs(ye,j,ce),{u_image:0,u_image_height:$})},vs=function(ye,j,ce,$){var ge=ye.transform,Be=Yo(j,ge);return{u_matrix:sl(ye,j,ce),u_texsize:j.imageAtlasTexture.size,u_ratio:1/Ri(j,1,ge.zoom),u_device_pixel_ratio:e.browser.devicePixelRatio,u_image:0,u_scale:[Be,$.fromScale,$.toScale],u_fade:$.t,u_units_to_pixels:[1/ge.pixelsToGLUnits[0],1/ge.pixelsToGLUnits[1]]}},Rs=function(ye,j,ce,$,ge){var Be=ye.transform,rt=ye.lineAtlas,st=Yo(j,Be),Ge=ce.layout.get("line-cap")==="round",Qe=rt.getDash($.from,Ge),pt=rt.getDash($.to,Ge),Bt=Qe.width*ge.fromScale,It=pt.width*ge.toScale;return e.extend(hs(ye,j,ce),{u_patternscale_a:[st/Bt,-Qe.height/2],u_patternscale_b:[st/It,-pt.height/2],u_sdfgamma:rt.width/(Math.min(Bt,It)*256*e.browser.devicePixelRatio)/2,u_image:0,u_tex_y_a:Qe.y,u_tex_y_b:pt.y,u_mix:ge.t})};function Yo(ye,j){return 1/Ri(ye,1,j.tileZoom)}function sl(ye,j,ce){return ye.translatePosMatrix(j.tileID.posMatrix,j,ce.paint.get("line-translate"),ce.paint.get("line-translate-anchor"))}var nl=function(ye,j){return{u_matrix:new e.UniformMatrix4f(ye,j.u_matrix),u_tl_parent:new e.Uniform2f(ye,j.u_tl_parent),u_scale_parent:new e.Uniform1f(ye,j.u_scale_parent),u_buffer_scale:new e.Uniform1f(ye,j.u_buffer_scale),u_fade_t:new e.Uniform1f(ye,j.u_fade_t),u_opacity:new e.Uniform1f(ye,j.u_opacity),u_image0:new e.Uniform1i(ye,j.u_image0),u_image1:new e.Uniform1i(ye,j.u_image1),u_brightness_low:new e.Uniform1f(ye,j.u_brightness_low),u_brightness_high:new e.Uniform1f(ye,j.u_brightness_high),u_saturation_factor:new e.Uniform1f(ye,j.u_saturation_factor),u_contrast_factor:new e.Uniform1f(ye,j.u_contrast_factor),u_spin_weights:new e.Uniform3f(ye,j.u_spin_weights)}},Ls=function(ye,j,ce,$,ge){return{u_matrix:ye,u_tl_parent:j,u_scale_parent:ce,u_buffer_scale:1,u_fade_t:$.mix,u_opacity:$.opacity*ge.paint.get("raster-opacity"),u_image0:0,u_image1:1,u_brightness_low:ge.paint.get("raster-brightness-min"),u_brightness_high:ge.paint.get("raster-brightness-max"),u_saturation_factor:ws(ge.paint.get("raster-saturation")),u_contrast_factor:go(ge.paint.get("raster-contrast")),u_spin_weights:wi(ge.paint.get("raster-hue-rotate"))}};function wi(ye){ye*=Math.PI/180;var j=Math.sin(ye),ce=Math.cos(ye);return[(2*ce+1)/3,(-Math.sqrt(3)*j-ce+1)/3,(Math.sqrt(3)*j-ce+1)/3]}function go(ye){return ye>0?1/(1-ye):1+ye}function ws(ye){return ye>0?1-1/(1.001-ye):-ye}var os=function(ye,j){return{u_is_size_zoom_constant:new e.Uniform1i(ye,j.u_is_size_zoom_constant),u_is_size_feature_constant:new e.Uniform1i(ye,j.u_is_size_feature_constant),u_size_t:new e.Uniform1f(ye,j.u_size_t),u_size:new e.Uniform1f(ye,j.u_size),u_camera_to_center_distance:new e.Uniform1f(ye,j.u_camera_to_center_distance),u_pitch:new e.Uniform1f(ye,j.u_pitch),u_rotate_symbol:new e.Uniform1i(ye,j.u_rotate_symbol),u_aspect_ratio:new e.Uniform1f(ye,j.u_aspect_ratio),u_fade_change:new e.Uniform1f(ye,j.u_fade_change),u_matrix:new e.UniformMatrix4f(ye,j.u_matrix),u_label_plane_matrix:new e.UniformMatrix4f(ye,j.u_label_plane_matrix),u_coord_matrix:new e.UniformMatrix4f(ye,j.u_coord_matrix),u_is_text:new e.Uniform1i(ye,j.u_is_text),u_pitch_with_map:new e.Uniform1i(ye,j.u_pitch_with_map),u_texsize:new e.Uniform2f(ye,j.u_texsize),u_texture:new e.Uniform1i(ye,j.u_texture)}},Hl=function(ye,j){return{u_is_size_zoom_constant:new e.Uniform1i(ye,j.u_is_size_zoom_constant),u_is_size_feature_constant:new e.Uniform1i(ye,j.u_is_size_feature_constant),u_size_t:new e.Uniform1f(ye,j.u_size_t),u_size:new e.Uniform1f(ye,j.u_size),u_camera_to_center_distance:new e.Uniform1f(ye,j.u_camera_to_center_distance),u_pitch:new e.Uniform1f(ye,j.u_pitch),u_rotate_symbol:new e.Uniform1i(ye,j.u_rotate_symbol),u_aspect_ratio:new e.Uniform1f(ye,j.u_aspect_ratio),u_fade_change:new e.Uniform1f(ye,j.u_fade_change),u_matrix:new e.UniformMatrix4f(ye,j.u_matrix),u_label_plane_matrix:new e.UniformMatrix4f(ye,j.u_label_plane_matrix),u_coord_matrix:new e.UniformMatrix4f(ye,j.u_coord_matrix),u_is_text:new e.Uniform1i(ye,j.u_is_text),u_pitch_with_map:new e.Uniform1i(ye,j.u_pitch_with_map),u_texsize:new e.Uniform2f(ye,j.u_texsize),u_texture:new e.Uniform1i(ye,j.u_texture),u_gamma_scale:new e.Uniform1f(ye,j.u_gamma_scale),u_device_pixel_ratio:new e.Uniform1f(ye,j.u_device_pixel_ratio),u_is_halo:new e.Uniform1i(ye,j.u_is_halo)}},Wl=function(ye,j){return{u_is_size_zoom_constant:new e.Uniform1i(ye,j.u_is_size_zoom_constant),u_is_size_feature_constant:new e.Uniform1i(ye,j.u_is_size_feature_constant),u_size_t:new e.Uniform1f(ye,j.u_size_t),u_size:new e.Uniform1f(ye,j.u_size),u_camera_to_center_distance:new e.Uniform1f(ye,j.u_camera_to_center_distance),u_pitch:new e.Uniform1f(ye,j.u_pitch),u_rotate_symbol:new e.Uniform1i(ye,j.u_rotate_symbol),u_aspect_ratio:new e.Uniform1f(ye,j.u_aspect_ratio),u_fade_change:new e.Uniform1f(ye,j.u_fade_change),u_matrix:new e.UniformMatrix4f(ye,j.u_matrix),u_label_plane_matrix:new e.UniformMatrix4f(ye,j.u_label_plane_matrix),u_coord_matrix:new e.UniformMatrix4f(ye,j.u_coord_matrix),u_is_text:new e.Uniform1i(ye,j.u_is_text),u_pitch_with_map:new e.Uniform1i(ye,j.u_pitch_with_map),u_texsize:new e.Uniform2f(ye,j.u_texsize),u_texsize_icon:new e.Uniform2f(ye,j.u_texsize_icon),u_texture:new e.Uniform1i(ye,j.u_texture),u_texture_icon:new e.Uniform1i(ye,j.u_texture_icon),u_gamma_scale:new e.Uniform1f(ye,j.u_gamma_scale),u_device_pixel_ratio:new e.Uniform1f(ye,j.u_device_pixel_ratio),u_is_halo:new e.Uniform1i(ye,j.u_is_halo)}},$l=function(ye,j,ce,$,ge,Be,rt,st,Ge,Qe){var pt=ge.transform;return{u_is_size_zoom_constant:+(ye==="constant"||ye==="source"),u_is_size_feature_constant:+(ye==="constant"||ye==="camera"),u_size_t:j?j.uSizeT:0,u_size:j?j.uSize:0,u_camera_to_center_distance:pt.cameraToCenterDistance,u_pitch:pt.pitch/360*2*Math.PI,u_rotate_symbol:+ce,u_aspect_ratio:pt.width/pt.height,u_fade_change:ge.options.fadeDuration?ge.symbolFadeChange:1,u_matrix:Be,u_label_plane_matrix:rt,u_coord_matrix:st,u_is_text:+Ge,u_pitch_with_map:+$,u_texsize:Qe,u_texture:0}},uc=function(ye,j,ce,$,ge,Be,rt,st,Ge,Qe,pt){var Bt=ge.transform;return e.extend($l(ye,j,ce,$,ge,Be,rt,st,Ge,Qe),{u_gamma_scale:$?Math.cos(Bt._pitch)*Bt.cameraToCenterDistance:1,u_device_pixel_ratio:e.browser.devicePixelRatio,u_is_halo:1})},Xl=function(ye,j,ce,$,ge,Be,rt,st,Ge,Qe){return e.extend(uc(ye,j,ce,$,ge,Be,rt,st,!0,Ge),{u_texsize_icon:Qe,u_texture_icon:1})},Xu=function(ye,j){return{u_matrix:new e.UniformMatrix4f(ye,j.u_matrix),u_opacity:new e.Uniform1f(ye,j.u_opacity),u_color:new e.UniformColor(ye,j.u_color)}},ll=function(ye,j){return{u_matrix:new e.UniformMatrix4f(ye,j.u_matrix),u_opacity:new e.Uniform1f(ye,j.u_opacity),u_image:new e.Uniform1i(ye,j.u_image),u_pattern_tl_a:new e.Uniform2f(ye,j.u_pattern_tl_a),u_pattern_br_a:new e.Uniform2f(ye,j.u_pattern_br_a),u_pattern_tl_b:new e.Uniform2f(ye,j.u_pattern_tl_b),u_pattern_br_b:new e.Uniform2f(ye,j.u_pattern_br_b),u_texsize:new e.Uniform2f(ye,j.u_texsize),u_mix:new e.Uniform1f(ye,j.u_mix),u_pattern_size_a:new e.Uniform2f(ye,j.u_pattern_size_a),u_pattern_size_b:new e.Uniform2f(ye,j.u_pattern_size_b),u_scale_a:new e.Uniform1f(ye,j.u_scale_a),u_scale_b:new e.Uniform1f(ye,j.u_scale_b),u_pixel_coord_upper:new e.Uniform2f(ye,j.u_pixel_coord_upper),u_pixel_coord_lower:new e.Uniform2f(ye,j.u_pixel_coord_lower),u_tile_units_to_pixels:new e.Uniform1f(ye,j.u_tile_units_to_pixels)}},Zu=function(ye,j,ce){return{u_matrix:ye,u_opacity:j,u_color:ce}},Yi=function(ye,j,ce,$,ge,Be){return e.extend(Ec($,Be,ce,ge),{u_matrix:ye,u_opacity:j})},io={fillExtrusion:wf,fillExtrusionPattern:Fl,fill:Wu,fillPattern:Ru,fillOutline:al,fillOutlinePattern:Yl,circle:Qt,collisionBox:$r,collisionCircle:Vr,debug:Ja,clippingMask:On,heatmap:_n,heatmapTexture:qn,hillshade:ai,hillshadePrepare:Hi,line:ii,lineGradient:Wn,linePattern:ao,lineSDF:Fo,raster:nl,symbolIcon:os,symbolSDF:Hl,symbolTextAndIcon:Wl,background:Xu,backgroundPattern:ll},Yu;function du(ye,j,ce,$,ge,Be,rt){for(var st=ye.context,Ge=st.gl,Qe=ye.useProgram("collisionBox"),pt=[],Bt=0,It=0,Nt=0;Nt<$.length;Nt++){var Xt=$[Nt],qt=j.getTile(Xt),Mt=qt.getBucket(ce);if(Mt){var Ft=Xt.posMatrix;(ge[0]!==0||ge[1]!==0)&&(Ft=ye.translatePosMatrix(Xt.posMatrix,qt,ge,Be));var Rt=rt?Mt.textCollisionBox:Mt.iconCollisionBox,_r=Mt.collisionCircleArray;if(_r.length>0){var Ir=e.create(),Xr=Ft;e.mul(Ir,Mt.placementInvProjMatrix,ye.transform.glCoordMatrix),e.mul(Ir,Ir,Mt.placementViewportMatrix),pt.push({circleArray:_r,circleOffset:It,transform:Xr,invTransform:Ir}),Bt+=_r.length/4,It=Bt}Rt&&Qe.draw(st,Ge.LINES,La.disabled,ba.disabled,ye.colorModeForRenderPass(),Tr.disabled,ma(Ft,ye.transform,qt),ce.id,Rt.layoutVertexBuffer,Rt.indexBuffer,Rt.segments,null,ye.transform.zoom,null,null,Rt.collisionVertexBuffer)}}if(!(!rt||!pt.length)){var Ua=ye.useProgram("collisionCircle"),ka=new e.StructArrayLayout2f1f2i16;ka.resize(Bt*4),ka._trim();for(var xa=0,ja=0,Ha=pt;ja=0&&(Xt[Mt.associatedIconIndex]={shiftedAnchor:hn,angle:Sn})}}if(pt){Nt.clear();for(var ti=ye.icon.placedSymbolArray,yo=0;yo0){var rt=e.browser.now(),st=(rt-ye.timeAdded)/Be,Ge=j?(rt-j.timeAdded)/Be:-1,Qe=ce.getSource(),pt=ge.coveringZoomLevel({tileSize:Qe.tileSize,roundZoom:Qe.roundZoom}),Bt=!j||Math.abs(j.tileID.overscaledZ-pt)>Math.abs(ye.tileID.overscaledZ-pt),It=Bt&&ye.refreshedUponExpiration?1:e.clamp(Bt?st:1-Ge,0,1);return ye.refreshedUponExpiration&&st>=1&&(ye.refreshedUponExpiration=!1),j?{opacity:1,mix:1-It}:{opacity:It,mix:0}}else return{opacity:1,mix:0}}function gr(ye,j,ce){var $=ce.paint.get("background-color"),ge=ce.paint.get("background-opacity");if(ge!==0){var Be=ye.context,rt=Be.gl,st=ye.transform,Ge=st.tileSize,Qe=ce.paint.get("background-pattern");if(!ye.isPatternMissing(Qe)){var pt=!Qe&&$.a===1&&ge===1&&ye.opaquePassEnabledForLayer()?"opaque":"translucent";if(ye.renderPass===pt){var Bt=ba.disabled,It=ye.depthModeForSublayer(0,pt==="opaque"?La.ReadWrite:La.ReadOnly),Nt=ye.colorModeForRenderPass(),Xt=ye.useProgram(Qe?"backgroundPattern":"background"),qt=st.coveringTiles({tileSize:Ge});Qe&&(Be.activeTexture.set(rt.TEXTURE0),ye.imageManager.bind(ye.context));for(var Mt=ce.getCrossfadeParameters(),Ft=0,Rt=qt;Ft "+ce.overscaledZ);var Ft=Mt+" "+Nt+"kb";Ki(ye,Ft),rt.draw($,ge.TRIANGLES,st,Ge,zt.alphaBlended,Tr.disabled,Ln(Be,e.Color.transparent,qt),pt,ye.debugBuffer,ye.quadTriangleIndexBuffer,ye.debugSegments)}function Ki(ye,j){ye.initDebugOverlayCanvas();var ce=ye.debugOverlayCanvas,$=ye.context.gl,ge=ye.debugOverlayCanvas.getContext("2d");ge.clearRect(0,0,ce.width,ce.height),ge.shadowColor="white",ge.shadowBlur=2,ge.lineWidth=1.5,ge.strokeStyle="white",ge.textBaseline="top",ge.font="bold 36px Open Sans, sans-serif",ge.fillText(j,5,5),ge.strokeText(j,5,5),ye.debugOverlayTexture.update(ce),ye.debugOverlayTexture.bind($.LINEAR,$.CLAMP_TO_EDGE)}function Go(ye,j,ce){var $=ye.context,ge=ce.implementation;if(ye.renderPass==="offscreen"){var Be=ge.prerender;Be&&(ye.setCustomLayerDefaults(),$.setColorMode(ye.colorModeForRenderPass()),Be.call(ge,$.gl,ye.transform.customLayerMatrix()),$.setDirty(),ye.setBaseState())}else if(ye.renderPass==="translucent"){ye.setCustomLayerDefaults(),$.setColorMode(ye.colorModeForRenderPass()),$.setStencilMode(ba.disabled);var rt=ge.renderingMode==="3d"?new La(ye.context.gl.LEQUAL,La.ReadWrite,ye.depthRangeFor3D):ye.depthModeForSublayer(0,La.ReadOnly);$.setDepthMode(rt),ge.render($.gl,ye.transform.customLayerMatrix()),$.setDirty(),ye.setBaseState(),$.bindFramebuffer.set(null)}}var Ho={symbol:L,circle:Dt,heatmap:er,line:ea,fill:Ve,"fill-extrusion":it,hillshade:St,raster:nr,background:gr,debug:Si,custom:Go},Ao=function(j,ce){this.context=new qr(j),this.transform=ce,this._tileTextures={},this.setup(),this.numSublayers=ha.maxUnderzooming+ha.maxOverzooming+1,this.depthEpsilon=1/Math.pow(2,16),this.crossTileSymbolIndex=new wl,this.gpuTimers={}};Ao.prototype.resize=function(j,ce){if(this.width=j*e.browser.devicePixelRatio,this.height=ce*e.browser.devicePixelRatio,this.context.viewport.set([0,0,this.width,this.height]),this.style)for(var $=0,ge=this.style._order;$256&&this.clearStencil(),$.setColorMode(zt.disabled),$.setDepthMode(La.disabled);var Be=this.useProgram("clippingMask");this._tileClippingMaskIDs={};for(var rt=0,st=ce;rt256&&this.clearStencil();var j=this.nextStencilID++,ce=this.context.gl;return new ba({func:ce.NOTEQUAL,mask:255},j,255,ce.KEEP,ce.KEEP,ce.REPLACE)},Ao.prototype.stencilModeForClipping=function(j){var ce=this.context.gl;return new ba({func:ce.EQUAL,mask:255},this._tileClippingMaskIDs[j.key],0,ce.KEEP,ce.KEEP,ce.REPLACE)},Ao.prototype.stencilConfigForOverlap=function(j){var ce,$=this.context.gl,ge=j.sort(function(Qe,pt){return pt.overscaledZ-Qe.overscaledZ}),Be=ge[ge.length-1].overscaledZ,rt=ge[0].overscaledZ-Be+1;if(rt>1){this.currentStencilSource=void 0,this.nextStencilID+rt>256&&this.clearStencil();for(var st={},Ge=0;Ge=0;this.currentLayer--){var Ir=this.style._layers[ge[this.currentLayer]],Xr=Be[Ir.source],Ua=Ge[Ir.source];this._renderTileClippingMasks(Ir,Ua),this.renderLayer(this,Xr,Ir,Ua)}for(this.renderPass="translucent",this.currentLayer=0;this.currentLayer0?ce.pop():null},Ao.prototype.isPatternMissing=function(j){if(!j)return!1;if(!j.from||!j.to)return!0;var ce=this.imageManager.getPattern(j.from.toString()),$=this.imageManager.getPattern(j.to.toString());return!ce||!$},Ao.prototype.useProgram=function(j,ce){this.cache=this.cache||{};var $=""+j+(ce?ce.cacheKey:"")+(this._showOverdrawInspector?"/overdraw":"");return this.cache[$]||(this.cache[$]=new Mc(this.context,j,Sc[j],ce,io[j],this._showOverdrawInspector)),this.cache[$]},Ao.prototype.setCustomLayerDefaults=function(){this.context.unbindVAO(),this.context.cullFace.setDefault(),this.context.activeTexture.setDefault(),this.context.pixelStoreUnpack.setDefault(),this.context.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.context.pixelStoreUnpackFlipY.setDefault()},Ao.prototype.setBaseState=function(){var j=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(j.FUNC_ADD)},Ao.prototype.initDebugOverlayCanvas=function(){if(this.debugOverlayCanvas==null){this.debugOverlayCanvas=e.window.document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512;var j=this.context.gl;this.debugOverlayTexture=new e.Texture(this.context,this.debugOverlayCanvas,j.RGBA)}},Ao.prototype.destroy=function(){this.emptyTexture.destroy(),this.debugOverlayTexture&&this.debugOverlayTexture.destroy()};var Ko=function(j,ce){this.points=j,this.planes=ce};Ko.fromInvProjectionMatrix=function(j,ce,$){var ge=[[-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]],Be=Math.pow(2,$),rt=ge.map(function(Qe){return e.transformMat4([],Qe,j)}).map(function(Qe){return e.scale$1([],Qe,1/Qe[3]/ce*Be)}),st=[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]],Ge=st.map(function(Qe){var pt=e.sub([],rt[Qe[0]],rt[Qe[1]]),Bt=e.sub([],rt[Qe[2]],rt[Qe[1]]),It=e.normalize([],e.cross([],pt,Bt)),Nt=-e.dot(It,rt[Qe[1]]);return It.concat(Nt)});return new Ko(rt,Ge)};var Js=function(j,ce){this.min=j,this.max=ce,this.center=e.scale$2([],e.add([],this.min,this.max),.5)};Js.prototype.quadrant=function(j){for(var ce=[j%2===0,j<2],$=e.clone$2(this.min),ge=e.clone$2(this.max),Be=0;Be=0;if(rt===0)return 0;rt!==ce.length&&($=!1)}if($)return 2;for(var Ge=0;Ge<3;Ge++){for(var Qe=Number.MAX_VALUE,pt=-Number.MAX_VALUE,Bt=0;Btthis.max[Ge]-this.min[Ge])return 0}return 1};var Hs=function(j,ce,$,ge){if(j===void 0&&(j=0),ce===void 0&&(ce=0),$===void 0&&($=0),ge===void 0&&(ge=0),isNaN(j)||j<0||isNaN(ce)||ce<0||isNaN($)||$<0||isNaN(ge)||ge<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=j,this.bottom=ce,this.left=$,this.right=ge};Hs.prototype.interpolate=function(j,ce,$){return ce.top!=null&&j.top!=null&&(this.top=e.number(j.top,ce.top,$)),ce.bottom!=null&&j.bottom!=null&&(this.bottom=e.number(j.bottom,ce.bottom,$)),ce.left!=null&&j.left!=null&&(this.left=e.number(j.left,ce.left,$)),ce.right!=null&&j.right!=null&&(this.right=e.number(j.right,ce.right,$)),this},Hs.prototype.getCenter=function(j,ce){var $=e.clamp((this.left+j-this.right)/2,0,j),ge=e.clamp((this.top+ce-this.bottom)/2,0,ce);return new e.Point($,ge)},Hs.prototype.equals=function(j){return this.top===j.top&&this.bottom===j.bottom&&this.left===j.left&&this.right===j.right},Hs.prototype.clone=function(){return new Hs(this.top,this.bottom,this.left,this.right)},Hs.prototype.toJSON=function(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}};var ko=function(j,ce,$,ge,Be){this.tileSize=512,this.maxValidLatitude=85.051129,this._renderWorldCopies=Be===void 0?!0:Be,this._minZoom=j||0,this._maxZoom=ce||22,this._minPitch=$??0,this._maxPitch=ge??60,this.setMaxBounds(),this.width=0,this.height=0,this._center=new e.LngLat(0,0),this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this._unmodified=!0,this._edgeInsets=new Hs,this._posMatrixCache={},this._alignedPosMatrixCache={}},Co={minZoom:{configurable:!0},maxZoom:{configurable:!0},minPitch:{configurable:!0},maxPitch:{configurable:!0},renderWorldCopies:{configurable:!0},worldSize:{configurable:!0},centerOffset:{configurable:!0},size:{configurable:!0},bearing:{configurable:!0},pitch:{configurable:!0},fov:{configurable:!0},zoom:{configurable:!0},center:{configurable:!0},padding:{configurable:!0},centerPoint:{configurable:!0},unmodified:{configurable:!0},point:{configurable:!0}};ko.prototype.clone=function(){var j=new ko(this._minZoom,this._maxZoom,this._minPitch,this.maxPitch,this._renderWorldCopies);return j.tileSize=this.tileSize,j.latRange=this.latRange,j.width=this.width,j.height=this.height,j._center=this._center,j.zoom=this.zoom,j.angle=this.angle,j._fov=this._fov,j._pitch=this._pitch,j._unmodified=this._unmodified,j._edgeInsets=this._edgeInsets.clone(),j._calcMatrices(),j},Co.minZoom.get=function(){return this._minZoom},Co.minZoom.set=function(ye){this._minZoom!==ye&&(this._minZoom=ye,this.zoom=Math.max(this.zoom,ye))},Co.maxZoom.get=function(){return this._maxZoom},Co.maxZoom.set=function(ye){this._maxZoom!==ye&&(this._maxZoom=ye,this.zoom=Math.min(this.zoom,ye))},Co.minPitch.get=function(){return this._minPitch},Co.minPitch.set=function(ye){this._minPitch!==ye&&(this._minPitch=ye,this.pitch=Math.max(this.pitch,ye))},Co.maxPitch.get=function(){return this._maxPitch},Co.maxPitch.set=function(ye){this._maxPitch!==ye&&(this._maxPitch=ye,this.pitch=Math.min(this.pitch,ye))},Co.renderWorldCopies.get=function(){return this._renderWorldCopies},Co.renderWorldCopies.set=function(ye){ye===void 0?ye=!0:ye===null&&(ye=!1),this._renderWorldCopies=ye},Co.worldSize.get=function(){return this.tileSize*this.scale},Co.centerOffset.get=function(){return this.centerPoint._sub(this.size._div(2))},Co.size.get=function(){return new e.Point(this.width,this.height)},Co.bearing.get=function(){return-this.angle/Math.PI*180},Co.bearing.set=function(ye){var j=-e.wrap(ye,-180,180)*Math.PI/180;this.angle!==j&&(this._unmodified=!1,this.angle=j,this._calcMatrices(),this.rotationMatrix=e.create$2(),e.rotate(this.rotationMatrix,this.rotationMatrix,this.angle))},Co.pitch.get=function(){return this._pitch/Math.PI*180},Co.pitch.set=function(ye){var j=e.clamp(ye,this.minPitch,this.maxPitch)/180*Math.PI;this._pitch!==j&&(this._unmodified=!1,this._pitch=j,this._calcMatrices())},Co.fov.get=function(){return this._fov/Math.PI*180},Co.fov.set=function(ye){ye=Math.max(.01,Math.min(60,ye)),this._fov!==ye&&(this._unmodified=!1,this._fov=ye/180*Math.PI,this._calcMatrices())},Co.zoom.get=function(){return this._zoom},Co.zoom.set=function(ye){var j=Math.min(Math.max(ye,this.minZoom),this.maxZoom);this._zoom!==j&&(this._unmodified=!1,this._zoom=j,this.scale=this.zoomScale(j),this.tileZoom=Math.floor(j),this.zoomFraction=j-this.tileZoom,this._constrain(),this._calcMatrices())},Co.center.get=function(){return this._center},Co.center.set=function(ye){ye.lat===this._center.lat&&ye.lng===this._center.lng||(this._unmodified=!1,this._center=ye,this._constrain(),this._calcMatrices())},Co.padding.get=function(){return this._edgeInsets.toJSON()},Co.padding.set=function(ye){this._edgeInsets.equals(ye)||(this._unmodified=!1,this._edgeInsets.interpolate(this._edgeInsets,ye,1),this._calcMatrices())},Co.centerPoint.get=function(){return this._edgeInsets.getCenter(this.width,this.height)},ko.prototype.isPaddingEqual=function(j){return this._edgeInsets.equals(j)},ko.prototype.interpolatePadding=function(j,ce,$){this._unmodified=!1,this._edgeInsets.interpolate(j,ce,$),this._constrain(),this._calcMatrices()},ko.prototype.coveringZoomLevel=function(j){var ce=(j.roundZoom?Math.round:Math.floor)(this.zoom+this.scaleZoom(this.tileSize/j.tileSize));return Math.max(0,ce)},ko.prototype.getVisibleUnwrappedCoordinates=function(j){var ce=[new e.UnwrappedTileID(0,j)];if(this._renderWorldCopies)for(var $=this.pointCoordinate(new e.Point(0,0)),ge=this.pointCoordinate(new e.Point(this.width,0)),Be=this.pointCoordinate(new e.Point(this.width,this.height)),rt=this.pointCoordinate(new e.Point(0,this.height)),st=Math.floor(Math.min($.x,ge.x,Be.x,rt.x)),Ge=Math.floor(Math.max($.x,ge.x,Be.x,rt.x)),Qe=1,pt=st-Qe;pt<=Ge+Qe;pt++)pt!==0&&ce.push(new e.UnwrappedTileID(pt,j));return ce},ko.prototype.coveringTiles=function(j){var ce=this.coveringZoomLevel(j),$=ce;if(j.minzoom!==void 0&&cej.maxzoom&&(ce=j.maxzoom);var ge=e.MercatorCoordinate.fromLngLat(this.center),Be=Math.pow(2,ce),rt=[Be*ge.x,Be*ge.y,0],st=Ko.fromInvProjectionMatrix(this.invProjMatrix,this.worldSize,ce),Ge=j.minzoom||0;this.pitch<=60&&this._edgeInsets.top<.1&&(Ge=ce);var Qe=3,pt=function(qa){return{aabb:new Js([qa*Be,0,0],[(qa+1)*Be,Be,0]),zoom:0,x:0,y:0,wrap:qa,fullyVisible:!1}},Bt=[],It=[],Nt=ce,Xt=j.reparseOverscaled?$:ce;if(this._renderWorldCopies)for(var qt=1;qt<=3;qt++)Bt.push(pt(-qt)),Bt.push(pt(qt));for(Bt.push(pt(0));Bt.length>0;){var Mt=Bt.pop(),Ft=Mt.x,Rt=Mt.y,_r=Mt.fullyVisible;if(!_r){var Ir=Mt.aabb.intersects(st);if(Ir===0)continue;_r=Ir===2}var Xr=Mt.aabb.distanceX(rt),Ua=Mt.aabb.distanceY(rt),ka=Math.max(Math.abs(Xr),Math.abs(Ua)),xa=Qe+(1<xa&&Mt.zoom>=Ge){It.push({tileID:new e.OverscaledTileID(Mt.zoom===Nt?Xt:Mt.zoom,Mt.wrap,Mt.zoom,Ft,Rt),distanceSq:e.sqrLen([rt[0]-.5-Ft,rt[1]-.5-Rt])});continue}for(var ja=0;ja<4;ja++){var Ha=(Ft<<1)+ja%2,on=(Rt<<1)+(ja>>1);Bt.push({aabb:Mt.aabb.quadrant(ja),zoom:Mt.zoom+1,x:Ha,y:on,wrap:Mt.wrap,fullyVisible:_r})}}return It.sort(function(qa,hn){return qa.distanceSq-hn.distanceSq}).map(function(qa){return qa.tileID})},ko.prototype.resize=function(j,ce){this.width=j,this.height=ce,this.pixelsToGLUnits=[2/j,-2/ce],this._constrain(),this._calcMatrices()},Co.unmodified.get=function(){return this._unmodified},ko.prototype.zoomScale=function(j){return Math.pow(2,j)},ko.prototype.scaleZoom=function(j){return Math.log(j)/Math.LN2},ko.prototype.project=function(j){var ce=e.clamp(j.lat,-this.maxValidLatitude,this.maxValidLatitude);return new e.Point(e.mercatorXfromLng(j.lng)*this.worldSize,e.mercatorYfromLat(ce)*this.worldSize)},ko.prototype.unproject=function(j){return new e.MercatorCoordinate(j.x/this.worldSize,j.y/this.worldSize).toLngLat()},Co.point.get=function(){return this.project(this.center)},ko.prototype.setLocationAtPoint=function(j,ce){var $=this.pointCoordinate(ce),ge=this.pointCoordinate(this.centerPoint),Be=this.locationCoordinate(j),rt=new e.MercatorCoordinate(Be.x-($.x-ge.x),Be.y-($.y-ge.y));this.center=this.coordinateLocation(rt),this._renderWorldCopies&&(this.center=this.center.wrap())},ko.prototype.locationPoint=function(j){return this.coordinatePoint(this.locationCoordinate(j))},ko.prototype.pointLocation=function(j){return this.coordinateLocation(this.pointCoordinate(j))},ko.prototype.locationCoordinate=function(j){return e.MercatorCoordinate.fromLngLat(j)},ko.prototype.coordinateLocation=function(j){return j.toLngLat()},ko.prototype.pointCoordinate=function(j){var ce=0,$=[j.x,j.y,0,1],ge=[j.x,j.y,1,1];e.transformMat4($,$,this.pixelMatrixInverse),e.transformMat4(ge,ge,this.pixelMatrixInverse);var Be=$[3],rt=ge[3],st=$[0]/Be,Ge=ge[0]/rt,Qe=$[1]/Be,pt=ge[1]/rt,Bt=$[2]/Be,It=ge[2]/rt,Nt=Bt===It?0:(ce-Bt)/(It-Bt);return new e.MercatorCoordinate(e.number(st,Ge,Nt)/this.worldSize,e.number(Qe,pt,Nt)/this.worldSize)},ko.prototype.coordinatePoint=function(j){var ce=[j.x*this.worldSize,j.y*this.worldSize,0,1];return e.transformMat4(ce,ce,this.pixelMatrix),new e.Point(ce[0]/ce[3],ce[1]/ce[3])},ko.prototype.getBounds=function(){return new e.LngLatBounds().extend(this.pointLocation(new e.Point(0,0))).extend(this.pointLocation(new e.Point(this.width,0))).extend(this.pointLocation(new e.Point(this.width,this.height))).extend(this.pointLocation(new e.Point(0,this.height)))},ko.prototype.getMaxBounds=function(){return!this.latRange||this.latRange.length!==2||!this.lngRange||this.lngRange.length!==2?null:new e.LngLatBounds([this.lngRange[0],this.latRange[0]],[this.lngRange[1],this.latRange[1]])},ko.prototype.setMaxBounds=function(j){j?(this.lngRange=[j.getWest(),j.getEast()],this.latRange=[j.getSouth(),j.getNorth()],this._constrain()):(this.lngRange=null,this.latRange=[-this.maxValidLatitude,this.maxValidLatitude])},ko.prototype.calculatePosMatrix=function(j,ce){ce===void 0&&(ce=!1);var $=j.key,ge=ce?this._alignedPosMatrixCache:this._posMatrixCache;if(ge[$])return ge[$];var Be=j.canonical,rt=this.worldSize/this.zoomScale(Be.z),st=Be.x+Math.pow(2,Be.z)*j.wrap,Ge=e.identity(new Float64Array(16));return e.translate(Ge,Ge,[st*rt,Be.y*rt,0]),e.scale(Ge,Ge,[rt/e.EXTENT,rt/e.EXTENT,1]),e.multiply(Ge,ce?this.alignedProjMatrix:this.projMatrix,Ge),ge[$]=new Float32Array(Ge),ge[$]},ko.prototype.customLayerMatrix=function(){return this.mercatorMatrix.slice()},ko.prototype._constrain=function(){if(!(!this.center||!this.width||!this.height||this._constraining)){this._constraining=!0;var j=-90,ce=90,$=-180,ge=180,Be,rt,st,Ge,Qe=this.size,pt=this._unmodified;if(this.latRange){var Bt=this.latRange;j=e.mercatorYfromLat(Bt[1])*this.worldSize,ce=e.mercatorYfromLat(Bt[0])*this.worldSize,Be=ce-jce&&(Ge=ce-Mt)}if(this.lngRange){var Ft=Nt.x,Rt=Qe.x/2;Ft-Rt<$&&(st=$+Rt),Ft+Rt>ge&&(st=ge-Rt)}(st!==void 0||Ge!==void 0)&&(this.center=this.unproject(new e.Point(st!==void 0?st:Nt.x,Ge!==void 0?Ge:Nt.y))),this._unmodified=pt,this._constraining=!1}},ko.prototype._calcMatrices=function(){if(this.height){var j=this._fov/2,ce=this.centerOffset;this.cameraToCenterDistance=.5/Math.tan(j)*this.height;var $=Math.PI/2+this._pitch,ge=this._fov*(.5+ce.y/this.height),Be=Math.sin(ge)*this.cameraToCenterDistance/Math.sin(e.clamp(Math.PI-$-ge,.01,Math.PI-.01)),rt=this.point,st=rt.x,Ge=rt.y,Qe=Math.cos(Math.PI/2-this._pitch)*Be+this.cameraToCenterDistance,pt=Qe*1.01,Bt=this.height/50,It=new Float64Array(16);e.perspective(It,this._fov,this.width/this.height,Bt,pt),It[8]=-ce.x*2/this.width,It[9]=ce.y*2/this.height,e.scale(It,It,[1,-1,1]),e.translate(It,It,[0,0,-this.cameraToCenterDistance]),e.rotateX(It,It,this._pitch),e.rotateZ(It,It,this.angle),e.translate(It,It,[-st,-Ge,0]),this.mercatorMatrix=e.scale([],It,[this.worldSize,this.worldSize,this.worldSize]),e.scale(It,It,[1,1,e.mercatorZfromAltitude(1,this.center.lat)*this.worldSize,1]),this.projMatrix=It,this.invProjMatrix=e.invert([],this.projMatrix);var Nt=this.width%2/2,Xt=this.height%2/2,qt=Math.cos(this.angle),Mt=Math.sin(this.angle),Ft=st-Math.round(st)+qt*Nt+Mt*Xt,Rt=Ge-Math.round(Ge)+qt*Xt+Mt*Nt,_r=new Float64Array(It);if(e.translate(_r,_r,[Ft>.5?Ft-1:Ft,Rt>.5?Rt-1:Rt,0]),this.alignedProjMatrix=_r,It=e.create(),e.scale(It,It,[this.width/2,-this.height/2,1]),e.translate(It,It,[1,-1,0]),this.labelPlaneMatrix=It,It=e.create(),e.scale(It,It,[1,-1,1]),e.translate(It,It,[-1,-1,0]),e.scale(It,It,[2/this.width,2/this.height,1]),this.glCoordMatrix=It,this.pixelMatrix=e.multiply(new Float64Array(16),this.labelPlaneMatrix,this.projMatrix),It=e.invert(new Float64Array(16),this.pixelMatrix),!It)throw new Error("failed to invert matrix");this.pixelMatrixInverse=It,this._posMatrixCache={},this._alignedPosMatrixCache={}}},ko.prototype.maxPitchScaleFactor=function(){if(!this.pixelMatrixInverse)return 1;var j=this.pointCoordinate(new e.Point(0,0)),ce=[j.x*this.worldSize,j.y*this.worldSize,0,1],$=e.transformMat4(ce,ce,this.pixelMatrix);return $[3]/this.cameraToCenterDistance},ko.prototype.getCameraPoint=function(){var j=this._pitch,ce=Math.tan(j)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new e.Point(0,ce))},ko.prototype.getCameraQueryGeometry=function(j){var ce=this.getCameraPoint();if(j.length===1)return[j[0],ce];for(var $=ce.x,ge=ce.y,Be=ce.x,rt=ce.y,st=0,Ge=j;st=3&&!j.some(function($){return isNaN($)})){var ce=this._map.dragRotate.isEnabled()&&this._map.touchZoomRotate.isEnabled()?+(j[3]||0):this._map.getBearing();return this._map.jumpTo({center:[+j[2],+j[1]],zoom:+j[0],bearing:ce,pitch:+(j[4]||0)}),!0}return!1},Dl.prototype._updateHashUnthrottled=function(){var j=e.window.location.href.replace(/(#.+)?$/,this.getHashString());try{e.window.history.replaceState(e.window.history.state,null,j)}catch{}};var ou={linearity:.3,easing:e.bezier(0,0,.3,1)},pe=e.extend({deceleration:2500,maxSpeed:1400},ou),Le=e.extend({deceleration:20,maxSpeed:1400},ou),$e=e.extend({deceleration:1e3,maxSpeed:360},ou),dt=e.extend({deceleration:1e3,maxSpeed:90},ou),gt=function(j){this._map=j,this.clear()};gt.prototype.clear=function(){this._inertiaBuffer=[]},gt.prototype.record=function(j){this._drainInertiaBuffer(),this._inertiaBuffer.push({time:e.browser.now(),settings:j})},gt.prototype._drainInertiaBuffer=function(){for(var j=this._inertiaBuffer,ce=e.browser.now(),$=160;j.length>0&&ce-j[0].time>$;)j.shift()},gt.prototype._onMoveEnd=function(j){if(this._drainInertiaBuffer(),!(this._inertiaBuffer.length<2)){for(var ce={zoom:0,bearing:0,pitch:0,pan:new e.Point(0,0),pinchAround:void 0,around:void 0},$=0,ge=this._inertiaBuffer;$=this._clickTolerance||this._map.fire(new jt(j.type,this._map,j))},kr.prototype.dblclick=function(j){return this._firePreventable(new jt(j.type,this._map,j))},kr.prototype.mouseover=function(j){this._map.fire(new jt(j.type,this._map,j))},kr.prototype.mouseout=function(j){this._map.fire(new jt(j.type,this._map,j))},kr.prototype.touchstart=function(j){return this._firePreventable(new sr(j.type,this._map,j))},kr.prototype.touchmove=function(j){this._map.fire(new sr(j.type,this._map,j))},kr.prototype.touchend=function(j){this._map.fire(new sr(j.type,this._map,j))},kr.prototype.touchcancel=function(j){this._map.fire(new sr(j.type,this._map,j))},kr.prototype._firePreventable=function(j){if(this._map.fire(j),j.defaultPrevented)return{}},kr.prototype.isEnabled=function(){return!0},kr.prototype.isActive=function(){return!1},kr.prototype.enable=function(){},kr.prototype.disable=function(){};var Zr=function(j){this._map=j};Zr.prototype.reset=function(){this._delayContextMenu=!1,delete this._contextMenuEvent},Zr.prototype.mousemove=function(j){this._map.fire(new jt(j.type,this._map,j))},Zr.prototype.mousedown=function(){this._delayContextMenu=!0},Zr.prototype.mouseup=function(){this._delayContextMenu=!1,this._contextMenuEvent&&(this._map.fire(new jt("contextmenu",this._map,this._contextMenuEvent)),delete this._contextMenuEvent)},Zr.prototype.contextmenu=function(j){this._delayContextMenu?this._contextMenuEvent=j:this._map.fire(new jt(j.type,this._map,j)),this._map.listens("contextmenu")&&j.preventDefault()},Zr.prototype.isEnabled=function(){return!0},Zr.prototype.isActive=function(){return!1},Zr.prototype.enable=function(){},Zr.prototype.disable=function(){};var la=function(j,ce){this._map=j,this._el=j.getCanvasContainer(),this._container=j.getContainer(),this._clickTolerance=ce.clickTolerance||1};la.prototype.isEnabled=function(){return!!this._enabled},la.prototype.isActive=function(){return!!this._active},la.prototype.enable=function(){this.isEnabled()||(this._enabled=!0)},la.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},la.prototype.mousedown=function(j,ce){this.isEnabled()&&j.shiftKey&&j.button===0&&(r.disableDrag(),this._startPos=this._lastPos=ce,this._active=!0)},la.prototype.mousemoveWindow=function(j,ce){if(this._active){var $=ce;if(!(this._lastPos.equals($)||!this._box&&$.dist(this._startPos)this.numTouches)&&(this.aborted=!0),!this.aborted&&(this.startTime===void 0&&(this.startTime=j.timeStamp),$.length===this.numTouches&&(this.centroid=nn(ce),this.touches=ca($,ce)))},rn.prototype.touchmove=function(j,ce,$){if(!(this.aborted||!this.centroid)){var ge=ca($,ce);for(var Be in this.touches){var rt=this.touches[Be],st=ge[Be];(!st||st.dist(rt)>Na)&&(this.aborted=!0)}}},rn.prototype.touchend=function(j,ce,$){if((!this.centroid||j.timeStamp-this.startTime>Pa)&&(this.aborted=!0),$.length===0){var ge=!this.aborted&&this.centroid;if(this.reset(),ge)return ge}};var sn=function(j){this.singleTap=new rn(j),this.numTaps=j.numTaps,this.reset()};sn.prototype.reset=function(){this.lastTime=1/0,delete this.lastTap,this.count=0,this.singleTap.reset()},sn.prototype.touchstart=function(j,ce,$){this.singleTap.touchstart(j,ce,$)},sn.prototype.touchmove=function(j,ce,$){this.singleTap.touchmove(j,ce,$)},sn.prototype.touchend=function(j,ce,$){var ge=this.singleTap.touchend(j,ce,$);if(ge){var Be=j.timeStamp-this.lastTime0&&(this._active=!0);var ge=ca($,ce),Be=new e.Point(0,0),rt=new e.Point(0,0),st=0;for(var Ge in ge){var Qe=ge[Ge],pt=this._touches[Ge];pt&&(Be._add(Qe),rt._add(Qe.sub(pt)),st++,ge[Ge]=Qe)}if(this._touches=ge,!(stMath.abs(ye.x)}var ds=100,zs=function(ye){function j(){ye.apply(this,arguments)}return ye&&(j.__proto__=ye),j.prototype=Object.create(ye&&ye.prototype),j.prototype.constructor=j,j.prototype.reset=function(){ye.prototype.reset.call(this),this._valid=void 0,delete this._firstMove,delete this._lastPoints},j.prototype._start=function($){this._lastPoints=$,Kl($[0].sub($[1]))&&(this._valid=!1)},j.prototype._move=function($,ge,Be){var rt=$[0].sub(this._lastPoints[0]),st=$[1].sub(this._lastPoints[1]);if(this._valid=this.gestureBeginsVertically(rt,st,Be.timeStamp),!!this._valid){this._lastPoints=$,this._active=!0;var Ge=(rt.y+st.y)/2,Qe=-.5;return{pitchDelta:Ge*Qe}}},j.prototype.gestureBeginsVertically=function($,ge,Be){if(this._valid!==void 0)return this._valid;var rt=2,st=$.mag()>=rt,Ge=ge.mag()>=rt;if(!(!st&&!Ge)){if(!st||!Ge)return this._firstMove===void 0&&(this._firstMove=Be),Be-this._firstMove0==ge.y>0;return Kl($)&&Kl(ge)&&Qe}},j}($o),pu={panStep:100,bearingStep:15,pitchStep:10},ul=function(){var j=pu;this._panStep=j.panStep,this._bearingStep=j.bearingStep,this._pitchStep=j.pitchStep,this._rotationDisabled=!1};ul.prototype.reset=function(){this._active=!1},ul.prototype.keydown=function(j){var ce=this;if(!(j.altKey||j.ctrlKey||j.metaKey)){var $=0,ge=0,Be=0,rt=0,st=0;switch(j.keyCode){case 61:case 107:case 171:case 187:$=1;break;case 189:case 109:case 173:$=-1;break;case 37:j.shiftKey?ge=-1:(j.preventDefault(),rt=-1);break;case 39:j.shiftKey?ge=1:(j.preventDefault(),rt=1);break;case 38:j.shiftKey?Be=1:(j.preventDefault(),st=-1);break;case 40:j.shiftKey?Be=-1:(j.preventDefault(),st=1);break;default:return}return this._rotationDisabled&&(ge=0,Be=0),{cameraAnimation:function(Ge){var Qe=Ge.getZoom();Ge.easeTo({duration:300,easeId:"keyboardHandler",easing:lt,zoom:$?Math.round(Qe)+$*(j.shiftKey?2:1):Qe,bearing:Ge.getBearing()+ge*ce._bearingStep,pitch:Ge.getPitch()+Be*ce._pitchStep,offset:[-rt*ce._panStep,-st*ce._panStep],center:Ge.getCenter()},{originalEvent:j})}}}},ul.prototype.enable=function(){this._enabled=!0},ul.prototype.disable=function(){this._enabled=!1,this.reset()},ul.prototype.isEnabled=function(){return this._enabled},ul.prototype.isActive=function(){return this._active},ul.prototype.disableRotation=function(){this._rotationDisabled=!0},ul.prototype.enableRotation=function(){this._rotationDisabled=!1};function lt(ye){return ye*(2-ye)}var ir=4.000244140625,ur=1/100,fa=1/450,Va=2,Jr=function(j,ce){this._map=j,this._el=j.getCanvasContainer(),this._handler=ce,this._delta=0,this._defaultZoomRate=ur,this._wheelZoomRate=fa,e.bindAll(["_onTimeout"],this)};Jr.prototype.setZoomRate=function(j){this._defaultZoomRate=j},Jr.prototype.setWheelZoomRate=function(j){this._wheelZoomRate=j},Jr.prototype.isEnabled=function(){return!!this._enabled},Jr.prototype.isActive=function(){return!!this._active||this._finishTimeout!==void 0},Jr.prototype.isZooming=function(){return!!this._zooming},Jr.prototype.enable=function(j){this.isEnabled()||(this._enabled=!0,this._aroundCenter=j&&j.around==="center")},Jr.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},Jr.prototype.wheel=function(j){if(this.isEnabled()){var ce=j.deltaMode===e.window.WheelEvent.DOM_DELTA_LINE?j.deltaY*40:j.deltaY,$=e.browser.now(),ge=$-(this._lastWheelEventTime||0);this._lastWheelEventTime=$,ce!==0&&ce%ir===0?this._type="wheel":ce!==0&&Math.abs(ce)<4?this._type="trackpad":ge>400?(this._type=null,this._lastValue=ce,this._timeout=setTimeout(this._onTimeout,40,j)):this._type||(this._type=Math.abs(ge*ce)<200?"trackpad":"wheel",this._timeout&&(clearTimeout(this._timeout),this._timeout=null,ce+=this._lastValue)),j.shiftKey&&ce&&(ce=ce/4),this._type&&(this._lastWheelEvent=j,this._delta-=ce,this._active||this._start(j)),j.preventDefault()}},Jr.prototype._onTimeout=function(j){this._type="wheel",this._delta-=this._lastValue,this._active||this._start(j)},Jr.prototype._start=function(j){if(this._delta){this._frameId&&(this._frameId=null),this._active=!0,this.isZooming()||(this._zooming=!0),this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout);var ce=r.mousePos(this._el,j);this._around=e.LngLat.convert(this._aroundCenter?this._map.getCenter():this._map.unproject(ce)),this._aroundPoint=this._map.transform.locationPoint(this._around),this._frameId||(this._frameId=!0,this._handler._triggerRenderFrame())}},Jr.prototype.renderFrame=function(){var j=this;if(this._frameId&&(this._frameId=null,!!this.isActive())){var ce=this._map.transform;if(this._delta!==0){var $=this._type==="wheel"&&Math.abs(this._delta)>ir?this._wheelZoomRate:this._defaultZoomRate,ge=Va/(1+Math.exp(-Math.abs(this._delta*$)));this._delta<0&&ge!==0&&(ge=1/ge);var Be=typeof this._targetZoom=="number"?ce.zoomScale(this._targetZoom):ce.scale;this._targetZoom=Math.min(ce.maxZoom,Math.max(ce.minZoom,ce.scaleZoom(Be*ge))),this._type==="wheel"&&(this._startZoom=ce.zoom,this._easing=this._smoothOutEasing(200)),this._delta=0}var rt=typeof this._targetZoom=="number"?this._targetZoom:ce.zoom,st=this._startZoom,Ge=this._easing,Qe=!1,pt;if(this._type==="wheel"&&st&&Ge){var Bt=Math.min((e.browser.now()-this._lastWheelEventTime)/200,1),It=Ge(Bt);pt=e.number(st,rt,It),Bt<1?this._frameId||(this._frameId=!0):Qe=!0}else pt=rt,Qe=!0;return this._active=!0,Qe&&(this._active=!1,this._finishTimeout=setTimeout(function(){j._zooming=!1,j._handler._triggerRenderFrame(),delete j._targetZoom,delete j._finishTimeout},200)),{noInertia:!0,needsRenderFrame:!Qe,zoomDelta:pt-ce.zoom,around:this._aroundPoint,originalEvent:this._lastWheelEvent}}},Jr.prototype._smoothOutEasing=function(j){var ce=e.ease;if(this._prevEase){var $=this._prevEase,ge=(e.browser.now()-$.start)/$.duration,Be=$.easing(ge+.01)-$.easing(ge),rt=.27/Math.sqrt(Be*Be+1e-4)*.01,st=Math.sqrt(.27*.27-rt*rt);ce=e.bezier(rt,st,.25,1)}return this._prevEase={start:e.browser.now(),duration:j,easing:ce},ce},Jr.prototype.reset=function(){this._active=!1};var Kr=function(j,ce){this._clickZoom=j,this._tapZoom=ce};Kr.prototype.enable=function(){this._clickZoom.enable(),this._tapZoom.enable()},Kr.prototype.disable=function(){this._clickZoom.disable(),this._tapZoom.disable()},Kr.prototype.isEnabled=function(){return this._clickZoom.isEnabled()&&this._tapZoom.isEnabled()},Kr.prototype.isActive=function(){return this._clickZoom.isActive()||this._tapZoom.isActive()};var cn=function(){this.reset()};cn.prototype.reset=function(){this._active=!1},cn.prototype.dblclick=function(j,ce){return j.preventDefault(),{cameraAnimation:function($){$.easeTo({duration:300,zoom:$.getZoom()+(j.shiftKey?-1:1),around:$.unproject(ce)},{originalEvent:j})}}},cn.prototype.enable=function(){this._enabled=!0},cn.prototype.disable=function(){this._enabled=!1,this.reset()},cn.prototype.isEnabled=function(){return this._enabled},cn.prototype.isActive=function(){return this._active};var ln=function(){this._tap=new sn({numTouches:1,numTaps:1}),this.reset()};ln.prototype.reset=function(){this._active=!1,delete this._swipePoint,delete this._swipeTouch,delete this._tapTime,this._tap.reset()},ln.prototype.touchstart=function(j,ce,$){this._swipePoint||(this._tapTime&&j.timeStamp-this._tapTime>pa&&this.reset(),this._tapTime?$.length>0&&(this._swipePoint=ce[0],this._swipeTouch=$[0].identifier):this._tap.touchstart(j,ce,$))},ln.prototype.touchmove=function(j,ce,$){if(!this._tapTime)this._tap.touchmove(j,ce,$);else if(this._swipePoint){if($[0].identifier!==this._swipeTouch)return;var ge=ce[0],Be=ge.y-this._swipePoint.y;return this._swipePoint=ge,j.preventDefault(),this._active=!0,{zoomDelta:Be/128}}},ln.prototype.touchend=function(j,ce,$){if(this._tapTime)this._swipePoint&&$.length===0&&this.reset();else{var ge=this._tap.touchend(j,ce,$);ge&&(this._tapTime=j.timeStamp)}},ln.prototype.touchcancel=function(){this.reset()},ln.prototype.enable=function(){this._enabled=!0},ln.prototype.disable=function(){this._enabled=!1,this.reset()},ln.prototype.isEnabled=function(){return this._enabled},ln.prototype.isActive=function(){return this._active};var un=function(j,ce,$){this._el=j,this._mousePan=ce,this._touchPan=$};un.prototype.enable=function(j){this._inertiaOptions=j||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add("mapboxgl-touch-drag-pan")},un.prototype.disable=function(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove("mapboxgl-touch-drag-pan")},un.prototype.isEnabled=function(){return this._mousePan.isEnabled()&&this._touchPan.isEnabled()},un.prototype.isActive=function(){return this._mousePan.isActive()||this._touchPan.isActive()};var wn=function(j,ce,$){this._pitchWithRotate=j.pitchWithRotate,this._mouseRotate=ce,this._mousePitch=$};wn.prototype.enable=function(){this._mouseRotate.enable(),this._pitchWithRotate&&this._mousePitch.enable()},wn.prototype.disable=function(){this._mouseRotate.disable(),this._mousePitch.disable()},wn.prototype.isEnabled=function(){return this._mouseRotate.isEnabled()&&(!this._pitchWithRotate||this._mousePitch.isEnabled())},wn.prototype.isActive=function(){return this._mouseRotate.isActive()||this._mousePitch.isActive()};var Jn=function(j,ce,$,ge){this._el=j,this._touchZoom=ce,this._touchRotate=$,this._tapDragZoom=ge,this._rotationDisabled=!1,this._enabled=!0};Jn.prototype.enable=function(j){this._touchZoom.enable(j),this._rotationDisabled||this._touchRotate.enable(j),this._tapDragZoom.enable(),this._el.classList.add("mapboxgl-touch-zoom-rotate")},Jn.prototype.disable=function(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove("mapboxgl-touch-zoom-rotate")},Jn.prototype.isEnabled=function(){return this._touchZoom.isEnabled()&&(this._rotationDisabled||this._touchRotate.isEnabled())&&this._tapDragZoom.isEnabled()},Jn.prototype.isActive=function(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()},Jn.prototype.disableRotation=function(){this._rotationDisabled=!0,this._touchRotate.disable()},Jn.prototype.enableRotation=function(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&&this._touchRotate.enable()};var jn=function(ye){return ye.zoom||ye.drag||ye.pitch||ye.rotate},xn=function(ye){function j(){ye.apply(this,arguments)}return ye&&(j.__proto__=ye),j.prototype=Object.create(ye&&ye.prototype),j.prototype.constructor=j,j}(e.Event);function Za(ye){return ye.panDelta&&ye.panDelta.mag()||ye.zoomDelta||ye.bearingDelta||ye.pitchDelta}var Ur=function(j,ce){this._map=j,this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new gt(j),this._bearingSnap=ce.bearingSnap,this._previousActiveHandlers={},this._eventsInProgress={},this._addDefaultHandlers(ce),e.bindAll(["handleEvent","handleWindowEvent"],this);var $=this._el;this._listeners=[[$,"touchstart",{passive:!0}],[$,"touchmove",{passive:!1}],[$,"touchend",void 0],[$,"touchcancel",void 0],[$,"mousedown",void 0],[$,"mousemove",void 0],[$,"mouseup",void 0],[e.window.document,"mousemove",{capture:!0}],[e.window.document,"mouseup",void 0],[$,"mouseover",void 0],[$,"mouseout",void 0],[$,"dblclick",void 0],[$,"click",void 0],[$,"keydown",{capture:!1}],[$,"keyup",void 0],[$,"wheel",{passive:!1}],[$,"contextmenu",void 0],[e.window,"blur",void 0]];for(var ge=0,Be=this._listeners;gest?Math.min(2,Xr):Math.max(.5,Xr),qa=Math.pow(on,1-ja),hn=rt.unproject(_r.add(Ir.mult(ja*qa)).mult(Ha));rt.setLocationAtPoint(rt.renderWorldCopies?hn.wrap():hn,Mt)}Be._fireMoveEvents(ge)},function(ja){Be._afterEase(ge,ja)},$),this},j.prototype._prepareEase=function($,ge,Be){Be===void 0&&(Be={}),this._moving=!0,!ge&&!Be.moving&&this.fire(new e.Event("movestart",$)),this._zooming&&!Be.zooming&&this.fire(new e.Event("zoomstart",$)),this._rotating&&!Be.rotating&&this.fire(new e.Event("rotatestart",$)),this._pitching&&!Be.pitching&&this.fire(new e.Event("pitchstart",$))},j.prototype._fireMoveEvents=function($){this.fire(new e.Event("move",$)),this._zooming&&this.fire(new e.Event("zoom",$)),this._rotating&&this.fire(new e.Event("rotate",$)),this._pitching&&this.fire(new e.Event("pitch",$))},j.prototype._afterEase=function($,ge){if(!(this._easeId&&ge&&this._easeId===ge)){delete this._easeId;var Be=this._zooming,rt=this._rotating,st=this._pitching;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._padding=!1,Be&&this.fire(new e.Event("zoomend",$)),rt&&this.fire(new e.Event("rotateend",$)),st&&this.fire(new e.Event("pitchend",$)),this.fire(new e.Event("moveend",$))}},j.prototype.flyTo=function($,ge){var Be=this;if(!$.essential&&e.browser.prefersReducedMotion){var rt=e.pick($,["center","zoom","bearing","pitch","around"]);return this.jumpTo(rt,ge)}this.stop(),$=e.extend({offset:[0,0],speed:1.2,curve:1.42,easing:e.ease},$);var st=this.transform,Ge=this.getZoom(),Qe=this.getBearing(),pt=this.getPitch(),Bt=this.getPadding(),It="zoom"in $?e.clamp(+$.zoom,st.minZoom,st.maxZoom):Ge,Nt="bearing"in $?this._normalizeBearing($.bearing,Qe):Qe,Xt="pitch"in $?+$.pitch:pt,qt="padding"in $?$.padding:st.padding,Mt=st.zoomScale(It-Ge),Ft=e.Point.convert($.offset),Rt=st.centerPoint.add(Ft),_r=st.pointLocation(Rt),Ir=e.LngLat.convert($.center||_r);this._normalizeCenter(Ir);var Xr=st.project(_r),Ua=st.project(Ir).sub(Xr),ka=$.curve,xa=Math.max(st.width,st.height),ja=xa/Mt,Ha=Ua.mag();if("minZoom"in $){var on=e.clamp(Math.min($.minZoom,Ge,It),st.minZoom,st.maxZoom),qa=xa/st.zoomScale(on-Ge);ka=Math.sqrt(qa/Ha*2)}var hn=ka*ka;function Sn(Qo){var tl=(ja*ja-xa*xa+(Qo?-1:1)*hn*hn*Ha*Ha)/(2*(Qo?ja:xa)*hn*Ha);return Math.log(Math.sqrt(tl*tl+1)-tl)}function Gn(Qo){return(Math.exp(Qo)-Math.exp(-Qo))/2}function ti(Qo){return(Math.exp(Qo)+Math.exp(-Qo))/2}function yo(Qo){return Gn(Qo)/ti(Qo)}var vo=Sn(0),ss=function(Qo){return ti(vo)/ti(vo+ka*Qo)},rs=function(Qo){return xa*((ti(vo)*yo(vo+ka*Qo)-Gn(vo))/hn)/Ha},fs=(Sn(1)-vo)/ka;if(Math.abs(Ha)<1e-6||!isFinite(fs)){if(Math.abs(xa-ja)<1e-6)return this.easeTo($,ge);var ls=ja$.maxDuration&&($.duration=0),this._zooming=!0,this._rotating=Qe!==Nt,this._pitching=Xt!==pt,this._padding=!st.isPaddingEqual(qt),this._prepareEase(ge,!1),this._ease(function(Qo){var tl=Qo*fs,cc=1/ss(tl);st.zoom=Qo===1?It:Ge+st.scaleZoom(cc),Be._rotating&&(st.bearing=e.number(Qe,Nt,Qo)),Be._pitching&&(st.pitch=e.number(pt,Xt,Qo)),Be._padding&&(st.interpolatePadding(Bt,qt,Qo),Rt=st.centerPoint.add(Ft));var Dc=Qo===1?Ir:st.unproject(Xr.add(Ua.mult(rs(tl))).mult(cc));st.setLocationAtPoint(st.renderWorldCopies?Dc.wrap():Dc,Rt),Be._fireMoveEvents(ge)},function(){return Be._afterEase(ge)},$),this},j.prototype.isEasing=function(){return!!this._easeFrameId},j.prototype.stop=function(){return this._stop()},j.prototype._stop=function($,ge){if(this._easeFrameId&&(this._cancelRenderFrame(this._easeFrameId),delete this._easeFrameId,delete this._onEaseFrame),this._onEaseEnd){var Be=this._onEaseEnd;delete this._onEaseEnd,Be.call(this,ge)}if(!$){var rt=this.handlers;rt&&rt.stop(!1)}return this},j.prototype._ease=function($,ge,Be){Be.animate===!1||Be.duration===0?($(1),ge()):(this._easeStart=e.browser.now(),this._easeOptions=Be,this._onEaseFrame=$,this._onEaseEnd=ge,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))},j.prototype._renderFrameCallback=function(){var $=Math.min((e.browser.now()-this._easeStart)/this._easeOptions.duration,1);this._onEaseFrame(this._easeOptions.easing($)),$<1?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()},j.prototype._normalizeBearing=function($,ge){$=e.wrap($,-180,180);var Be=Math.abs($-ge);return Math.abs($-360-ge)180?-360:Be<-180?360:0}},j}(e.Evented),Ra=function(j){j===void 0&&(j={}),this.options=j,e.bindAll(["_toggleAttribution","_updateEditLink","_updateData","_updateCompact"],this)};Ra.prototype.getDefaultPosition=function(){return"bottom-right"},Ra.prototype.onAdd=function(j){var ce=this.options&&this.options.compact;return this._map=j,this._container=r.create("div","mapboxgl-ctrl mapboxgl-ctrl-attrib"),this._compactButton=r.create("button","mapboxgl-ctrl-attrib-button",this._container),this._compactButton.addEventListener("click",this._toggleAttribution),this._setElementTitle(this._compactButton,"ToggleAttribution"),this._innerContainer=r.create("div","mapboxgl-ctrl-attrib-inner",this._container),this._innerContainer.setAttribute("role","list"),ce&&this._container.classList.add("mapboxgl-compact"),this._updateAttributions(),this._updateEditLink(),this._map.on("styledata",this._updateData),this._map.on("sourcedata",this._updateData),this._map.on("moveend",this._updateEditLink),ce===void 0&&(this._map.on("resize",this._updateCompact),this._updateCompact()),this._container},Ra.prototype.onRemove=function(){r.remove(this._container),this._map.off("styledata",this._updateData),this._map.off("sourcedata",this._updateData),this._map.off("moveend",this._updateEditLink),this._map.off("resize",this._updateCompact),this._map=void 0,this._attribHTML=void 0},Ra.prototype._setElementTitle=function(j,ce){var $=this._map._getUIString("AttributionControl."+ce);j.title=$,j.setAttribute("aria-label",$)},Ra.prototype._toggleAttribution=function(){this._container.classList.contains("mapboxgl-compact-show")?(this._container.classList.remove("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-pressed","false")):(this._container.classList.add("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-pressed","true"))},Ra.prototype._updateEditLink=function(){var j=this._editLink;j||(j=this._editLink=this._container.querySelector(".mapbox-improve-map"));var ce=[{key:"owner",value:this.styleOwner},{key:"id",value:this.styleId},{key:"access_token",value:this._map._requestManager._customAccessToken||e.config.ACCESS_TOKEN}];if(j){var $=ce.reduce(function(ge,Be,rt){return Be.value&&(ge+=Be.key+"="+Be.value+(rt=0)return!1;return!0});var st=j.join(" | ");st!==this._attribHTML&&(this._attribHTML=st,j.length?(this._innerContainer.innerHTML=st,this._container.classList.remove("mapboxgl-attrib-empty")):this._container.classList.add("mapboxgl-attrib-empty"),this._editLink=null)}},Ra.prototype._updateCompact=function(){this._map.getCanvasContainer().offsetWidth<=640?this._container.classList.add("mapboxgl-compact"):this._container.classList.remove("mapboxgl-compact","mapboxgl-compact-show")};var $a=function(){e.bindAll(["_updateLogo"],this),e.bindAll(["_updateCompact"],this)};$a.prototype.onAdd=function(j){this._map=j,this._container=r.create("div","mapboxgl-ctrl");var ce=r.create("a","mapboxgl-ctrl-logo");return ce.target="_blank",ce.rel="noopener nofollow",ce.href="https://www.mapbox.com/",ce.setAttribute("aria-label",this._map._getUIString("LogoControl.Title")),ce.setAttribute("rel","noopener nofollow"),this._container.appendChild(ce),this._container.style.display="none",this._map.on("sourcedata",this._updateLogo),this._updateLogo(),this._map.on("resize",this._updateCompact),this._updateCompact(),this._container},$a.prototype.onRemove=function(){r.remove(this._container),this._map.off("sourcedata",this._updateLogo),this._map.off("resize",this._updateCompact)},$a.prototype.getDefaultPosition=function(){return"bottom-left"},$a.prototype._updateLogo=function(j){(!j||j.sourceDataType==="metadata")&&(this._container.style.display=this._logoRequired()?"block":"none")},$a.prototype._logoRequired=function(){if(this._map.style){var j=this._map.style.sourceCaches;for(var ce in j){var $=j[ce].getSource();if($.mapbox_logo)return!0}return!1}},$a.prototype._updateCompact=function(){var j=this._container.children;if(j.length){var ce=j[0];this._map.getCanvasContainer().offsetWidth<250?ce.classList.add("mapboxgl-compact"):ce.classList.remove("mapboxgl-compact")}};var Fa=function(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1};Fa.prototype.add=function(j){var ce=++this._id,$=this._queue;return $.push({callback:j,id:ce,cancelled:!1}),ce},Fa.prototype.remove=function(j){for(var ce=this._currentlyRunning,$=ce?this._queue.concat(ce):this._queue,ge=0,Be=$;ge$.maxZoom)throw new Error("maxZoom must be greater than or equal to minZoom");if($.minPitch!=null&&$.maxPitch!=null&&$.minPitch>$.maxPitch)throw new Error("maxPitch must be greater than or equal to minPitch");if($.minPitch!=null&&$.minPitchAn)throw new Error("maxPitch must be less than or equal to "+An);var Be=new ko($.minZoom,$.maxZoom,$.minPitch,$.maxPitch,$.renderWorldCopies);if(ye.call(this,Be,$),this._interactive=$.interactive,this._maxTileCacheSize=$.maxTileCacheSize,this._failIfMajorPerformanceCaveat=$.failIfMajorPerformanceCaveat,this._preserveDrawingBuffer=$.preserveDrawingBuffer,this._antialias=$.antialias,this._trackResize=$.trackResize,this._bearingSnap=$.bearingSnap,this._refreshExpiredTiles=$.refreshExpiredTiles,this._fadeDuration=$.fadeDuration,this._crossSourceCollisions=$.crossSourceCollisions,this._crossFadingFactor=1,this._collectResourceTiming=$.collectResourceTiming,this._renderTaskQueue=new Fa,this._controls=[],this._mapId=e.uniqueId(),this._locale=e.extend({},Bn,$.locale),this._clickTolerance=$.clickTolerance,this._requestManager=new e.RequestManager($.transformRequest,$.accessToken),typeof $.container=="string"){if(this._container=e.window.document.getElementById($.container),!this._container)throw new Error("Container '"+$.container+"' not found.")}else if($.container instanceof Xn)this._container=$.container;else throw new Error("Invalid type: 'container' must be a String or HTMLElement.");if($.maxBounds&&this.setMaxBounds($.maxBounds),e.bindAll(["_onWindowOnline","_onWindowResize","_onMapScroll","_contextLost","_contextRestored"],this),this._setupContainer(),this._setupPainter(),this.painter===void 0)throw new Error("Failed to initialize WebGL.");this.on("move",function(){return ge._update(!1)}),this.on("moveend",function(){return ge._update(!1)}),this.on("zoom",function(){return ge._update(!0)}),typeof e.window<"u"&&(e.window.addEventListener("online",this._onWindowOnline,!1),e.window.addEventListener("resize",this._onWindowResize,!1),e.window.addEventListener("orientationchange",this._onWindowResize,!1)),this.handlers=new Ur(this,$);var rt=typeof $.hash=="string"&&$.hash||void 0;this._hash=$.hash&&new Dl(rt).addTo(this),(!this._hash||!this._hash._onHashChange())&&(this.jumpTo({center:$.center,zoom:$.zoom,bearing:$.bearing,pitch:$.pitch}),$.bounds&&(this.resize(),this.fitBounds($.bounds,e.extend({},$.fitBoundsOptions,{duration:0})))),this.resize(),this._localIdeographFontFamily=$.localIdeographFontFamily,$.style&&this.setStyle($.style,{localIdeographFontFamily:$.localIdeographFontFamily}),$.attributionControl&&this.addControl(new Ra({customAttribution:$.customAttribution})),this.addControl(new $a,$.logoPosition),this.on("style.load",function(){ge.transform.unmodified&&ge.jumpTo(ge.style.stylesheet)}),this.on("data",function(st){ge._update(st.dataType==="style"),ge.fire(new e.Event(st.dataType+"data",st))}),this.on("dataloading",function(st){ge.fire(new e.Event(st.dataType+"dataloading",st))})}ye&&(j.__proto__=ye),j.prototype=Object.create(ye&&ye.prototype),j.prototype.constructor=j;var ce={showTileBoundaries:{configurable:!0},showPadding:{configurable:!0},showCollisionBoxes:{configurable:!0},showOverdrawInspector:{configurable:!0},repaint:{configurable:!0},vertices:{configurable:!0},version:{configurable:!0}};return j.prototype._getMapId=function(){return this._mapId},j.prototype.addControl=function(ge,Be){if(Be===void 0&&(ge.getDefaultPosition?Be=ge.getDefaultPosition():Be="top-right"),!ge||!ge.onAdd)return this.fire(new e.ErrorEvent(new Error("Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.")));var rt=ge.onAdd(this);this._controls.push(ge);var st=this._controlPositions[Be];return Be.indexOf("bottom")!==-1?st.insertBefore(rt,st.firstChild):st.appendChild(rt),this},j.prototype.removeControl=function(ge){if(!ge||!ge.onRemove)return this.fire(new e.ErrorEvent(new Error("Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.")));var Be=this._controls.indexOf(ge);return Be>-1&&this._controls.splice(Be,1),ge.onRemove(this),this},j.prototype.hasControl=function(ge){return this._controls.indexOf(ge)>-1},j.prototype.resize=function(ge){var Be=this._containerDimensions(),rt=Be[0],st=Be[1];this._resizeCanvas(rt,st),this.transform.resize(rt,st),this.painter.resize(rt,st);var Ge=!this._moving;return Ge&&(this.stop(),this.fire(new e.Event("movestart",ge)).fire(new e.Event("move",ge))),this.fire(new e.Event("resize",ge)),Ge&&this.fire(new e.Event("moveend",ge)),this},j.prototype.getBounds=function(){return this.transform.getBounds()},j.prototype.getMaxBounds=function(){return this.transform.getMaxBounds()},j.prototype.setMaxBounds=function(ge){return this.transform.setMaxBounds(e.LngLatBounds.convert(ge)),this._update()},j.prototype.setMinZoom=function(ge){if(ge=ge??Ea,ge>=Ea&&ge<=this.transform.maxZoom)return this.transform.minZoom=ge,this._update(),this.getZoom()=this.transform.minZoom)return this.transform.maxZoom=ge,this._update(),this.getZoom()>ge&&this.setZoom(ge),this;throw new Error("maxZoom must be greater than the current minZoom")},j.prototype.getMaxZoom=function(){return this.transform.maxZoom},j.prototype.setMinPitch=function(ge){if(ge=ge??da,ge=da&&ge<=this.transform.maxPitch)return this.transform.minPitch=ge,this._update(),this.getPitch()An)throw new Error("maxPitch must be less than or equal to "+An);if(ge>=this.transform.minPitch)return this.transform.maxPitch=ge,this._update(),this.getPitch()>ge&&this.setPitch(ge),this;throw new Error("maxPitch must be greater than the current minPitch")},j.prototype.getMaxPitch=function(){return this.transform.maxPitch},j.prototype.getRenderWorldCopies=function(){return this.transform.renderWorldCopies},j.prototype.setRenderWorldCopies=function(ge){return this.transform.renderWorldCopies=ge,this._update()},j.prototype.project=function(ge){return this.transform.locationPoint(e.LngLat.convert(ge))},j.prototype.unproject=function(ge){return this.transform.pointLocation(e.Point.convert(ge))},j.prototype.isMoving=function(){return this._moving||this.handlers.isMoving()},j.prototype.isZooming=function(){return this._zooming||this.handlers.isZooming()},j.prototype.isRotating=function(){return this._rotating||this.handlers.isRotating()},j.prototype._createDelegatedListener=function(ge,Be,rt){var st=this,Ge;if(ge==="mouseenter"||ge==="mouseover"){var Qe=!1,pt=function(Mt){var Ft=st.getLayer(Be)?st.queryRenderedFeatures(Mt.point,{layers:[Be]}):[];Ft.length?Qe||(Qe=!0,rt.call(st,new jt(ge,st,Mt.originalEvent,{features:Ft}))):Qe=!1},Bt=function(){Qe=!1};return{layer:Be,listener:rt,delegates:{mousemove:pt,mouseout:Bt}}}else if(ge==="mouseleave"||ge==="mouseout"){var It=!1,Nt=function(Mt){var Ft=st.getLayer(Be)?st.queryRenderedFeatures(Mt.point,{layers:[Be]}):[];Ft.length?It=!0:It&&(It=!1,rt.call(st,new jt(ge,st,Mt.originalEvent)))},Xt=function(Mt){It&&(It=!1,rt.call(st,new jt(ge,st,Mt.originalEvent)))};return{layer:Be,listener:rt,delegates:{mousemove:Nt,mouseout:Xt}}}else{var qt=function(Mt){var Ft=st.getLayer(Be)?st.queryRenderedFeatures(Mt.point,{layers:[Be]}):[];Ft.length&&(Mt.features=Ft,rt.call(st,Mt),delete Mt.features)};return{layer:Be,listener:rt,delegates:(Ge={},Ge[ge]=qt,Ge)}}},j.prototype.on=function(ge,Be,rt){if(rt===void 0)return ye.prototype.on.call(this,ge,Be);var st=this._createDelegatedListener(ge,Be,rt);this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[ge]=this._delegatedListeners[ge]||[],this._delegatedListeners[ge].push(st);for(var Ge in st.delegates)this.on(Ge,st.delegates[Ge]);return this},j.prototype.once=function(ge,Be,rt){if(rt===void 0)return ye.prototype.once.call(this,ge,Be);var st=this._createDelegatedListener(ge,Be,rt);for(var Ge in st.delegates)this.once(Ge,st.delegates[Ge]);return this},j.prototype.off=function(ge,Be,rt){var st=this;if(rt===void 0)return ye.prototype.off.call(this,ge,Be);var Ge=function(Qe){for(var pt=Qe[ge],Bt=0;Bt180;){var rt=ce.locationPoint(ye);if(rt.x>=0&&rt.y>=0&&rt.x<=ce.width&&rt.y<=ce.height)break;ye.lng>ce.center.lng?ye.lng-=360:ye.lng+=360}return ye}var Xi={center:"translate(-50%,-50%)",top:"translate(-50%,0)","top-left":"translate(0,0)","top-right":"translate(-100%,0)",bottom:"translate(-50%,-100%)","bottom-left":"translate(0,-100%)","bottom-right":"translate(-100%,-100%)",left:"translate(0,-50%)",right:"translate(-100%,-50%)"};function eo(ye,j,ce){var $=ye.classList;for(var ge in Xi)$.remove("mapboxgl-"+ce+"-anchor-"+ge);$.add("mapboxgl-"+ce+"-anchor-"+j)}var ts=function(ye){function j(ce,$){if(ye.call(this),(ce instanceof e.window.HTMLElement||$)&&(ce=e.extend({element:ce},$)),e.bindAll(["_update","_onMove","_onUp","_addDragHandler","_onMapClick","_onKeyPress"],this),this._anchor=ce&&ce.anchor||"center",this._color=ce&&ce.color||"#3FB1CE",this._scale=ce&&ce.scale||1,this._draggable=ce&&ce.draggable||!1,this._clickTolerance=ce&&ce.clickTolerance||0,this._isDragging=!1,this._state="inactive",this._rotation=ce&&ce.rotation||0,this._rotationAlignment=ce&&ce.rotationAlignment||"auto",this._pitchAlignment=ce&&ce.pitchAlignment&&ce.pitchAlignment!=="auto"?ce.pitchAlignment:this._rotationAlignment,!ce||!ce.element){this._defaultMarker=!0,this._element=r.create("div"),this._element.setAttribute("aria-label","Map marker");var ge=r.createNS("http://www.w3.org/2000/svg","svg"),Be=41,rt=27;ge.setAttributeNS(null,"display","block"),ge.setAttributeNS(null,"height",Be+"px"),ge.setAttributeNS(null,"width",rt+"px"),ge.setAttributeNS(null,"viewBox","0 0 "+rt+" "+Be);var st=r.createNS("http://www.w3.org/2000/svg","g");st.setAttributeNS(null,"stroke","none"),st.setAttributeNS(null,"stroke-width","1"),st.setAttributeNS(null,"fill","none"),st.setAttributeNS(null,"fill-rule","evenodd");var Ge=r.createNS("http://www.w3.org/2000/svg","g");Ge.setAttributeNS(null,"fill-rule","nonzero");var Qe=r.createNS("http://www.w3.org/2000/svg","g");Qe.setAttributeNS(null,"transform","translate(3.0, 29.0)"),Qe.setAttributeNS(null,"fill","#000000");for(var pt=[{rx:"10.5",ry:"5.25002273"},{rx:"10.5",ry:"5.25002273"},{rx:"9.5",ry:"4.77275007"},{rx:"8.5",ry:"4.29549936"},{rx:"7.5",ry:"3.81822308"},{rx:"6.5",ry:"3.34094679"},{rx:"5.5",ry:"2.86367051"},{rx:"4.5",ry:"2.38636864"}],Bt=0,It=pt;Bt=ge}this._isDragging&&(this._pos=$.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 e.Event("dragstart"))),this.fire(new e.Event("drag")))},j.prototype._onUp=function(){this._element.style.pointerEvents="auto",this._positionDelta=null,this._pointerdownPos=null,this._isDragging=!1,this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),this._state==="active"&&this.fire(new e.Event("dragend")),this._state="inactive"},j.prototype._addDragHandler=function($){this._element.contains($.originalEvent.target)&&($.preventDefault(),this._positionDelta=$.point.sub(this._pos).add(this._offset),this._pointerdownPos=$.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))},j.prototype.setDraggable=function($){return this._draggable=!!$,this._map&&($?(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},j.prototype.isDraggable=function(){return this._draggable},j.prototype.setRotation=function($){return this._rotation=$||0,this._update(),this},j.prototype.getRotation=function(){return this._rotation},j.prototype.setRotationAlignment=function($){return this._rotationAlignment=$||"auto",this._update(),this},j.prototype.getRotationAlignment=function(){return this._rotationAlignment},j.prototype.setPitchAlignment=function($){return this._pitchAlignment=$&&$!=="auto"?$:this._rotationAlignment,this._update(),this},j.prototype.getPitchAlignment=function(){return this._pitchAlignment},j}(e.Evented),to={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0},il;function Xo(ye){il!==void 0?ye(il):e.window.navigator.permissions!==void 0?e.window.navigator.permissions.query({name:"geolocation"}).then(function(j){il=j.state!=="denied",ye(il)}):(il=!!e.window.navigator.geolocation,ye(il))}var Qs=0,pl=!1,El=function(ye){function j(ce){ye.call(this),this.options=e.extend({},to,ce),e.bindAll(["_onSuccess","_onError","_onZoom","_finish","_setupUI","_updateCamera","_updateMarker"],this)}return ye&&(j.__proto__=ye),j.prototype=Object.create(ye&&ye.prototype),j.prototype.constructor=j,j.prototype.onAdd=function($){return this._map=$,this._container=r.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),Xo(this._setupUI),this._container},j.prototype.onRemove=function(){this._geolocationWatchID!==void 0&&(e.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(),r.remove(this._container),this._map.off("zoom",this._onZoom),this._map=void 0,Qs=0,pl=!1},j.prototype._isOutOfMapMaxBounds=function($){var ge=this._map.getMaxBounds(),Be=$.coords;return ge&&(Be.longitudege.getEast()||Be.latitudege.getNorth())},j.prototype._setErrorState=function(){switch(this._watchState){case"WAITING_ACTIVE":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"ACTIVE_LOCK":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting");break;case"BACKGROUND":this._watchState="BACKGROUND_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting");break}},j.prototype._onSuccess=function($){if(this._map){if(this._isOutOfMapMaxBounds($)){this._setErrorState(),this.fire(new e.Event("outofmaxbounds",$)),this._updateMarker(),this._finish();return}if(this.options.trackUserLocation)switch(this._lastKnownPosition=$,this._watchState){case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"BACKGROUND":case"BACKGROUND_ERROR":this._watchState="BACKGROUND",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background");break}this.options.showUserLocation&&this._watchState!=="OFF"&&this._updateMarker($),(!this.options.trackUserLocation||this._watchState==="ACTIVE_LOCK")&&this._updateCamera($),this.options.showUserLocation&&this._dotElement.classList.remove("mapboxgl-user-location-dot-stale"),this.fire(new e.Event("geolocate",$)),this._finish()}},j.prototype._updateCamera=function($){var ge=new e.LngLat($.coords.longitude,$.coords.latitude),Be=$.coords.accuracy,rt=this._map.getBearing(),st=e.extend({bearing:rt},this.options.fitBoundsOptions);this._map.fitBounds(ge.toBounds(Be),st,{geolocateSource:!0})},j.prototype._updateMarker=function($){if($){var ge=new e.LngLat($.coords.longitude,$.coords.latitude);this._accuracyCircleMarker.setLngLat(ge).addTo(this._map),this._userLocationDotMarker.setLngLat(ge).addTo(this._map),this._accuracy=$.coords.accuracy,this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()},j.prototype._updateCircleRadius=function(){var $=this._map._container.clientHeight/2,ge=this._map.unproject([0,$]),Be=this._map.unproject([1,$]),rt=ge.distanceTo(Be),st=Math.ceil(2*this._accuracy/rt);this._circleElement.style.width=st+"px",this._circleElement.style.height=st+"px"},j.prototype._onZoom=function(){this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()},j.prototype._onError=function($){if(this._map){if(this.options.trackUserLocation)if($.code===1){this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.disabled=!0;var ge=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.title=ge,this._geolocateButton.setAttribute("aria-label",ge),this._geolocationWatchID!==void 0&&this._clearWatch()}else{if($.code===3&&pl)return;this._setErrorState()}this._watchState!=="OFF"&&this.options.showUserLocation&&this._dotElement.classList.add("mapboxgl-user-location-dot-stale"),this.fire(new e.Event("error",$)),this._finish()}},j.prototype._finish=function(){this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0},j.prototype._setupUI=function($){var ge=this;if(this._container.addEventListener("contextmenu",function(st){return st.preventDefault()}),this._geolocateButton=r.create("button","mapboxgl-ctrl-geolocate",this._container),r.create("span","mapboxgl-ctrl-icon",this._geolocateButton).setAttribute("aria-hidden",!0),this._geolocateButton.type="button",$===!1){e.warnOnce("Geolocation support is not available so the GeolocateControl will be disabled.");var Be=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.disabled=!0,this._geolocateButton.title=Be,this._geolocateButton.setAttribute("aria-label",Be)}else{var rt=this._map._getUIString("GeolocateControl.FindMyLocation");this._geolocateButton.title=rt,this._geolocateButton.setAttribute("aria-label",rt)}this.options.trackUserLocation&&(this._geolocateButton.setAttribute("aria-pressed","false"),this._watchState="OFF"),this.options.showUserLocation&&(this._dotElement=r.create("div","mapboxgl-user-location-dot"),this._userLocationDotMarker=new ts(this._dotElement),this._circleElement=r.create("div","mapboxgl-user-location-accuracy-circle"),this._accuracyCircleMarker=new ts({element:this._circleElement,pitchAlignment:"map"}),this.options.trackUserLocation&&(this._watchState="OFF"),this._map.on("zoom",this._onZoom)),this._geolocateButton.addEventListener("click",this.trigger.bind(this)),this._setup=!0,this.options.trackUserLocation&&this._map.on("movestart",function(st){var Ge=st.originalEvent&&st.originalEvent.type==="resize";!st.geolocateSource&&ge._watchState==="ACTIVE_LOCK"&&!Ge&&(ge._watchState="BACKGROUND",ge._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background"),ge._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),ge.fire(new e.Event("trackuserlocationend")))})},j.prototype.trigger=function(){if(!this._setup)return e.warnOnce("Geolocate control triggered before added to a map"),!1;if(this.options.trackUserLocation){switch(this._watchState){case"OFF":this._watchState="WAITING_ACTIVE",this.fire(new e.Event("trackuserlocationstart"));break;case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":case"BACKGROUND_ERROR":Qs--,pl=!1,this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this.fire(new e.Event("trackuserlocationend"));break;case"BACKGROUND":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._lastKnownPosition&&this._updateCamera(this._lastKnownPosition),this.fire(new e.Event("trackuserlocationstart"));break}switch(this._watchState){case"WAITING_ACTIVE":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_LOCK":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"BACKGROUND":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background");break;case"BACKGROUND_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error");break}if(this._watchState==="OFF"&&this._geolocationWatchID!==void 0)this._clearWatch();else if(this._geolocationWatchID===void 0){this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),Qs++;var $;Qs>1?($={maximumAge:6e5,timeout:0},pl=!0):($=this.options.positionOptions,pl=!1),this._geolocationWatchID=e.window.navigator.geolocation.watchPosition(this._onSuccess,this._onError,$)}}else e.window.navigator.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0},j.prototype._clearWatch=function(){e.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","false"),this.options.showUserLocation&&this._updateMarker(null)},j}(e.Evented),zu={maxWidth:100,unit:"metric"},Us=function(j){this.options=e.extend({},zu,j),e.bindAll(["_onMove","setUnit"],this)};Us.prototype.getDefaultPosition=function(){return"bottom-left"},Us.prototype._onMove=function(){$s(this._map,this._container,this.options)},Us.prototype.onAdd=function(j){return this._map=j,this._container=r.create("div","mapboxgl-ctrl mapboxgl-ctrl-scale",j.getContainer()),this._map.on("move",this._onMove),this._onMove(),this._container},Us.prototype.onRemove=function(){r.remove(this._container),this._map.off("move",this._onMove),this._map=void 0},Us.prototype.setUnit=function(j){this.options.unit=j,$s(this._map,this._container,this.options)};function $s(ye,j,ce){var $=ce&&ce.maxWidth||100,ge=ye._container.clientHeight/2,Be=ye.unproject([0,ge]),rt=ye.unproject([$,ge]),st=Be.distanceTo(rt);if(ce&&ce.unit==="imperial"){var Ge=3.2808*st;if(Ge>5280){var Qe=Ge/5280;mi(j,$,Qe,ye._getUIString("ScaleControl.Miles"))}else mi(j,$,Ge,ye._getUIString("ScaleControl.Feet"))}else if(ce&&ce.unit==="nautical"){var pt=st/1852;mi(j,$,pt,ye._getUIString("ScaleControl.NauticalMiles"))}else st>=1e3?mi(j,$,st/1e3,ye._getUIString("ScaleControl.Kilometers")):mi(j,$,st,ye._getUIString("ScaleControl.Meters"))}function mi(ye,j,ce,$){var ge=Oo(ce),Be=ge/ce;ye.style.width=j*Be+"px",ye.innerHTML=ge+" "+$}function kl(ye){var j=Math.pow(10,Math.ceil(-Math.log(ye)/Math.LN10));return Math.round(ye*j)/j}function Oo(ye){var j=Math.pow(10,(""+Math.floor(ye)).length-1),ce=ye/j;return ce=ce>=10?10:ce>=5?5:ce>=3?3:ce>=2?2:ce>=1?1:kl(ce),j*ce}var As=function(j){this._fullscreen=!1,j&&j.container&&(j.container instanceof e.window.HTMLElement?this._container=j.container:e.warnOnce("Full screen control 'container' must be a DOM element.")),e.bindAll(["_onClickFullscreen","_changeIcon"],this),"onfullscreenchange"in e.window.document?this._fullscreenchange="fullscreenchange":"onmozfullscreenchange"in e.window.document?this._fullscreenchange="mozfullscreenchange":"onwebkitfullscreenchange"in e.window.document?this._fullscreenchange="webkitfullscreenchange":"onmsfullscreenchange"in e.window.document&&(this._fullscreenchange="MSFullscreenChange")};As.prototype.onAdd=function(j){return this._map=j,this._container||(this._container=this._map.getContainer()),this._controlContainer=r.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._checkFullscreenSupport()?this._setupUI():(this._controlContainer.style.display="none",e.warnOnce("This device does not support fullscreen mode.")),this._controlContainer},As.prototype.onRemove=function(){r.remove(this._controlContainer),this._map=null,e.window.document.removeEventListener(this._fullscreenchange,this._changeIcon)},As.prototype._checkFullscreenSupport=function(){return!!(e.window.document.fullscreenEnabled||e.window.document.mozFullScreenEnabled||e.window.document.msFullscreenEnabled||e.window.document.webkitFullscreenEnabled)},As.prototype._setupUI=function(){var j=this._fullscreenButton=r.create("button","mapboxgl-ctrl-fullscreen",this._controlContainer);r.create("span","mapboxgl-ctrl-icon",j).setAttribute("aria-hidden",!0),j.type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),e.window.document.addEventListener(this._fullscreenchange,this._changeIcon)},As.prototype._updateTitle=function(){var j=this._getTitle();this._fullscreenButton.setAttribute("aria-label",j),this._fullscreenButton.title=j},As.prototype._getTitle=function(){return this._map._getUIString(this._isFullscreen()?"FullscreenControl.Exit":"FullscreenControl.Enter")},As.prototype._isFullscreen=function(){return this._fullscreen},As.prototype._changeIcon=function(){var j=e.window.document.fullscreenElement||e.window.document.mozFullScreenElement||e.window.document.webkitFullscreenElement||e.window.document.msFullscreenElement;j===this._container!==this._fullscreen&&(this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle("mapboxgl-ctrl-shrink"),this._fullscreenButton.classList.toggle("mapboxgl-ctrl-fullscreen"),this._updateTitle())},As.prototype._onClickFullscreen=function(){this._isFullscreen()?e.window.document.exitFullscreen?e.window.document.exitFullscreen():e.window.document.mozCancelFullScreen?e.window.document.mozCancelFullScreen():e.window.document.msExitFullscreen?e.window.document.msExitFullscreen():e.window.document.webkitCancelFullScreen&&e.window.document.webkitCancelFullScreen():this._container.requestFullscreen?this._container.requestFullscreen():this._container.mozRequestFullScreen?this._container.mozRequestFullScreen():this._container.msRequestFullscreen?this._container.msRequestFullscreen():this._container.webkitRequestFullscreen&&this._container.webkitRequestFullscreen()};var Ol={closeButton:!0,closeOnClick:!0,focusAfterOpen:!0,className:"",maxWidth:"240px"},Bl=["a[href]","[tabindex]:not([tabindex='-1'])","[contenteditable]:not([contenteditable='false'])","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].join(", "),Ci=function(ye){function j(ce){ye.call(this),this.options=e.extend(Object.create(Ol),ce),e.bindAll(["_update","_onClose","remove","_onMouseMove","_onMouseUp","_onDrag"],this)}return ye&&(j.__proto__=ye),j.prototype=Object.create(ye&&ye.prototype),j.prototype.constructor=j,j.prototype.addTo=function($){return this._map&&this.remove(),this._map=$,this.options.closeOnClick&&this._map.on("click",this._onClose),this.options.closeOnMove&&this._map.on("move",this._onClose),this._map.on("remove",this.remove),this._update(),this._focusFirstElement(),this._trackPointer?(this._map.on("mousemove",this._onMouseMove),this._map.on("mouseup",this._onMouseUp),this._container&&this._container.classList.add("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")):this._map.on("move",this._update),this.fire(new e.Event("open")),this},j.prototype.isOpen=function(){return!!this._map},j.prototype.remove=function(){return this._content&&r.remove(this._content),this._container&&(r.remove(this._container),delete this._container),this._map&&(this._map.off("move",this._update),this._map.off("move",this._onClose),this._map.off("click",this._onClose),this._map.off("remove",this.remove),this._map.off("mousemove",this._onMouseMove),this._map.off("mouseup",this._onMouseUp),this._map.off("drag",this._onDrag),delete this._map),this.fire(new e.Event("close")),this},j.prototype.getLngLat=function(){return this._lngLat},j.prototype.setLngLat=function($){return this._lngLat=e.LngLat.convert($),this._pos=null,this._trackPointer=!1,this._update(),this._map&&(this._map.on("move",this._update),this._map.off("mousemove",this._onMouseMove),this._container&&this._container.classList.remove("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.remove("mapboxgl-track-pointer")),this},j.prototype.trackPointer=function(){return this._trackPointer=!0,this._pos=null,this._update(),this._map&&(this._map.off("move",this._update),this._map.on("mousemove",this._onMouseMove),this._map.on("drag",this._onDrag),this._container&&this._container.classList.add("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")),this},j.prototype.getElement=function(){return this._container},j.prototype.setText=function($){return this.setDOMContent(e.window.document.createTextNode($))},j.prototype.setHTML=function($){var ge=e.window.document.createDocumentFragment(),Be=e.window.document.createElement("body"),rt;for(Be.innerHTML=$;rt=Be.firstChild,!!rt;)ge.appendChild(rt);return this.setDOMContent(ge)},j.prototype.getMaxWidth=function(){return this._container&&this._container.style.maxWidth},j.prototype.setMaxWidth=function($){return this.options.maxWidth=$,this._update(),this},j.prototype.setDOMContent=function($){if(this._content)for(;this._content.hasChildNodes();)this._content.firstChild&&this._content.removeChild(this._content.firstChild);else this._content=r.create("div","mapboxgl-popup-content",this._container);return this._content.appendChild($),this._createCloseButton(),this._update(),this._focusFirstElement(),this},j.prototype.addClassName=function($){this._container&&this._container.classList.add($)},j.prototype.removeClassName=function($){this._container&&this._container.classList.remove($)},j.prototype.setOffset=function($){return this.options.offset=$,this._update(),this},j.prototype.toggleClassName=function($){if(this._container)return this._container.classList.toggle($)},j.prototype._createCloseButton=function(){this.options.closeButton&&(this._closeButton=r.create("button","mapboxgl-popup-close-button",this._content),this._closeButton.type="button",this._closeButton.setAttribute("aria-label","Close popup"),this._closeButton.innerHTML="×",this._closeButton.addEventListener("click",this._onClose))},j.prototype._onMouseUp=function($){this._update($.point)},j.prototype._onMouseMove=function($){this._update($.point)},j.prototype._onDrag=function($){this._update($.point)},j.prototype._update=function($){var ge=this,Be=this._lngLat||this._trackPointer;if(!(!this._map||!Be||!this._content)&&(this._container||(this._container=r.create("div","mapboxgl-popup",this._map.getContainer()),this._tip=r.create("div","mapboxgl-popup-tip",this._container),this._container.appendChild(this._content),this.options.className&&this.options.className.split(" ").forEach(function(Nt){return ge._container.classList.add(Nt)}),this._trackPointer&&this._container.classList.add("mapboxgl-popup-track-pointer")),this.options.maxWidth&&this._container.style.maxWidth!==this.options.maxWidth&&(this._container.style.maxWidth=this.options.maxWidth),this._map.transform.renderWorldCopies&&!this._trackPointer&&(this._lngLat=Mi(this._lngLat,this._pos,this._map.transform)),!(this._trackPointer&&!$))){var rt=this._pos=this._trackPointer&&$?$:this._map.project(this._lngLat),st=this.options.anchor,Ge=fo(this.options.offset);if(!st){var Qe=this._container.offsetWidth,pt=this._container.offsetHeight,Bt;rt.y+Ge.bottom.ythis._map.transform.height-pt?Bt=["bottom"]:Bt=[],rt.xthis._map.transform.width-Qe/2&&Bt.push("right"),Bt.length===0?st="bottom":st=Bt.join("-")}var It=rt.add(Ge[st]).round();r.setTransform(this._container,Xi[st]+" translate("+It.x+"px,"+It.y+"px)"),eo(this._container,st,"popup")}},j.prototype._focusFirstElement=function(){if(!(!this.options.focusAfterOpen||!this._container)){var $=this._container.querySelector(Bl);$&&$.focus()}},j.prototype._onClose=function(){this.remove()},j}(e.Evented);function fo(ye){if(ye)if(typeof ye=="number"){var j=Math.round(Math.sqrt(.5*Math.pow(ye,2)));return{center:new e.Point(0,0),top:new e.Point(0,ye),"top-left":new e.Point(j,j),"top-right":new e.Point(-j,j),bottom:new e.Point(0,-ye),"bottom-left":new e.Point(j,-j),"bottom-right":new e.Point(-j,-j),left:new e.Point(ye,0),right:new e.Point(-ye,0)}}else if(ye instanceof e.Point||Array.isArray(ye)){var ce=e.Point.convert(ye);return{center:ce,top:ce,"top-left":ce,"top-right":ce,bottom:ce,"bottom-left":ce,"bottom-right":ce,left:ce,right:ce}}else return{center:e.Point.convert(ye.center||[0,0]),top:e.Point.convert(ye.top||[0,0]),"top-left":e.Point.convert(ye["top-left"]||[0,0]),"top-right":e.Point.convert(ye["top-right"]||[0,0]),bottom:e.Point.convert(ye.bottom||[0,0]),"bottom-left":e.Point.convert(ye["bottom-left"]||[0,0]),"bottom-right":e.Point.convert(ye["bottom-right"]||[0,0]),left:e.Point.convert(ye.left||[0,0]),right:e.Point.convert(ye.right||[0,0])};else return fo(new e.Point(0,0))}var mo={version:e.version,supported:t,setRTLTextPlugin:e.setRTLTextPlugin,getRTLTextPluginStatus:e.getRTLTextPluginStatus,Map:Yn,NavigationControl:ei,GeolocateControl:El,AttributionControl:Ra,ScaleControl:Us,FullscreenControl:As,Popup:Ci,Marker:ts,Style:ql,LngLat:e.LngLat,LngLatBounds:e.LngLatBounds,Point:e.Point,MercatorCoordinate:e.MercatorCoordinate,Evented:e.Evented,config:e.config,prewarm:Lr,clearPrewarmedResources:Er,get accessToken(){return e.config.ACCESS_TOKEN},set accessToken(ye){e.config.ACCESS_TOKEN=ye},get baseApiUrl(){return e.config.API_URL},set baseApiUrl(ye){e.config.API_URL=ye},get workerCount(){return Ka.workerCount},set workerCount(ye){Ka.workerCount=ye},get maxParallelImageRequests(){return e.config.MAX_PARALLEL_IMAGE_REQUESTS},set maxParallelImageRequests(ye){e.config.MAX_PARALLEL_IMAGE_REQUESTS=ye},clearStorage:function(j){e.clearTileCache(j)},workerUrl:""};return mo}),A})}}),IR=He({"src/plots/mapbox/layers.js"(Y,H){var h=Qr(),x=jl().sanitizeHTML,A=JT(),E=dd();function e(o,n){this.subplot=o,this.uid=o.uid+"-"+n,this.index=n,this.idSource="source-"+this.uid,this.idLayer=E.layoutLayerPrefix+this.uid,this.sourceType=null,this.source=null,this.layerType=null,this.below=null,this.visible=!1}var t=e.prototype;t.update=function(n){this.visible?this.needsNewImage(n)?this.updateImage(n):this.needsNewSource(n)?(this.removeLayer(),this.updateSource(n),this.updateLayer(n)):this.needsNewLayer(n)?this.updateLayer(n):this.updateStyle(n):(this.updateSource(n),this.updateLayer(n)),this.visible=r(n)},t.needsNewImage=function(o){var n=this.subplot.map;return n.getSource(this.idSource)&&this.sourceType==="image"&&o.sourcetype==="image"&&(this.source!==o.source||JSON.stringify(this.coordinates)!==JSON.stringify(o.coordinates))},t.needsNewSource=function(o){return this.sourceType!==o.sourcetype||JSON.stringify(this.source)!==JSON.stringify(o.source)||this.layerType!==o.type},t.needsNewLayer=function(o){return this.layerType!==o.type||this.below!==this.subplot.belowLookup["layout-"+this.index]},t.lookupBelow=function(){return this.subplot.belowLookup["layout-"+this.index]},t.updateImage=function(o){var n=this.subplot.map;n.getSource(this.idSource).updateImage({url:o.source,coordinates:o.coordinates});var s=this.findFollowingMapboxLayerId(this.lookupBelow());s!==null&&this.subplot.map.moveLayer(this.idLayer,s)},t.updateSource=function(o){var n=this.subplot.map;if(n.getSource(this.idSource)&&n.removeSource(this.idSource),this.sourceType=o.sourcetype,this.source=o.source,!!r(o)){var s=a(o);n.addSource(this.idSource,s)}},t.findFollowingMapboxLayerId=function(o){if(o==="traces")for(var n=this.subplot.getMapLayers(),s=0;s0){for(var s=0;s0}function i(o){var n={},s={};switch(o.type){case"circle":h.extendFlat(s,{"circle-radius":o.circle.radius,"circle-color":o.color,"circle-opacity":o.opacity});break;case"line":h.extendFlat(s,{"line-width":o.line.width,"line-color":o.color,"line-opacity":o.opacity,"line-dasharray":o.line.dash});break;case"fill":h.extendFlat(s,{"fill-color":o.color,"fill-outline-color":o.fill.outlinecolor,"fill-opacity":o.opacity});break;case"symbol":var c=o.symbol,f=A(c.textposition,c.iconsize);h.extendFlat(n,{"icon-image":c.icon+"-15","icon-size":c.iconsize/10,"text-field":c.text,"text-size":c.textfont.size,"text-anchor":f.anchor,"text-offset":f.offset,"symbol-placement":c.placement}),h.extendFlat(s,{"icon-color":o.color,"text-color":c.textfont.color,"text-opacity":o.opacity});break;case"raster":h.extendFlat(s,{"raster-fade-duration":0,"raster-opacity":o.opacity});break}return{layout:n,paint:s}}function a(o){var n=o.sourcetype,s=o.source,c={type:n},f;return n==="geojson"?f="data":n==="vector"?f=typeof s=="string"?"url":"tiles":n==="raster"?(f="tiles",c.tileSize=256):n==="image"&&(f="url",c.coordinates=o.coordinates),c[f]=s,o.sourceattribution&&(c.attribution=x(o.sourceattribution)),c}H.exports=function(n,s,c){var f=new e(n,s);return f.update(c),f}}}),RR=He({"src/plots/mapbox/mapbox.js"(Y,H){var h=QT(),x=Qr(),A=op(),E=qi(),e=wo(),t=ph(),r=xc(),i=yv(),a=i.drawMode,o=i.selectMode,n=Uc().prepSelect,s=Uc().clearOutline,c=Uc().clearSelectionsCache,f=Uc().selectOnClick,p=dd(),v=IR();function T(_,b){this.id=b,this.gd=_;var d=_._fullLayout,u=_._context;this.container=d._glcontainer.node(),this.isStatic=u.staticPlot,this.uid=d._uid+"-"+this.id,this.div=null,this.xaxis=null,this.yaxis=null,this.createFramework(d),this.map=null,this.accessToken=null,this.styleObj=null,this.traceHash={},this.layerList=[],this.belowLookup={},this.dragging=!1,this.wheeling=!1}var l=T.prototype;l.plot=function(_,b,d){var u=this,g=b[u.id];u.map&&g.accesstoken!==u.accessToken&&(u.map.remove(),u.map=null,u.styleObj=null,u.traceHash={},u.layerList=[]);var y;u.map?y=new Promise(function(R,I){u.updateMap(_,b,R,I)}):y=new Promise(function(R,I){u.createMap(_,b,R,I)}),d.push(y)},l.createMap=function(_,b,d,u){var g=this,y=b[g.id],R=g.styleObj=w(y.style,b);g.accessToken=y.accesstoken;var I=y.bounds,z=I?[[I.west,I.south],[I.east,I.north]]:null,F=g.map=new h.Map({container:g.div,style:R.style,center:M(y.center),zoom:y.zoom,bearing:y.bearing,pitch:y.pitch,maxBounds:z,interactive:!g.isStatic,preserveDrawingBuffer:g.isStatic,doubleClickZoom:!1,boxZoom:!1,attributionControl:!1}).addControl(new h.AttributionControl({compact:!0}));F._canvas.style.left="0px",F._canvas.style.top="0px",g.rejectOnError(u),g.isStatic||g.initFx(_,b);var B=[];B.push(new Promise(function(O){F.once("load",O)})),B=B.concat(A.fetchTraceGeoData(_)),Promise.all(B).then(function(){g.fillBelowLookup(_,b),g.updateData(_),g.updateLayout(b),g.resolveOnRender(d)}).catch(u)},l.updateMap=function(_,b,d,u){var g=this,y=g.map,R=b[this.id];g.rejectOnError(u);var I=[],z=w(R.style,b);JSON.stringify(g.styleObj)!==JSON.stringify(z)&&(g.styleObj=z,y.setStyle(z.style),g.traceHash={},I.push(new Promise(function(F){y.once("styledata",F)}))),I=I.concat(A.fetchTraceGeoData(_)),Promise.all(I).then(function(){g.fillBelowLookup(_,b),g.updateData(_),g.updateLayout(b),g.resolveOnRender(d)}).catch(u)},l.fillBelowLookup=function(_,b){var d=b[this.id],u=d.layers,g,y,R=this.belowLookup={},I=!1;for(g=0;g<_.length;g++){var z=_[g][0].trace,F=z._module;typeof z.below=="string"?y=z.below:F.getBelow&&(y=F.getBelow(z,this)),y===""&&(I=!0),R["trace-"+z.uid]=y||""}for(g=0;g1)for(g=0;g-1&&f(z.originalEvent,u,[d.xaxis],[d.yaxis],d.id,I),F.indexOf("event")>-1&&r.click(u,z.originalEvent)}}},l.updateFx=function(_){var b=this,d=b.map,u=b.gd;if(b.isStatic)return;function g(z){var F=b.map.unproject(z);return[F.lng,F.lat]}var y=_.dragmode,R;R=function(z,F){if(F.isRect){var B=z.range={};B[b.id]=[g([F.xmin,F.ymin]),g([F.xmax,F.ymax])]}else{var O=z.lassoPoints={};O[b.id]=F.map(g)}};var I=b.dragOptions;b.dragOptions=x.extendDeep(I||{},{dragmode:_.dragmode,element:b.div,gd:u,plotinfo:{id:b.id,domain:_[b.id].domain,xaxis:b.xaxis,yaxis:b.yaxis,fillRangeItems:R},xaxes:[b.xaxis],yaxes:[b.yaxis],subplot:b.id}),d.off("click",b.onClickInPanHandler),o(y)||a(y)?(d.dragPan.disable(),d.on("zoomstart",b.clearOutline),b.dragOptions.prepFn=function(z,F,B){n(z,F,B,b.dragOptions,y)},t.init(b.dragOptions)):(d.dragPan.enable(),d.off("zoomstart",b.clearOutline),b.div.onmousedown=null,b.div.ontouchstart=null,b.div.removeEventListener("touchstart",b.div._ontouchstart),b.onClickInPanHandler=b.onClickInPanFn(b.dragOptions),d.on("click",b.onClickInPanHandler))},l.updateFramework=function(_){var b=_[this.id].domain,d=_._size,u=this.div.style;u.width=d.w*(b.x[1]-b.x[0])+"px",u.height=d.h*(b.y[1]-b.y[0])+"px",u.left=d.l+b.x[0]*d.w+"px",u.top=d.t+(1-b.y[1])*d.h+"px",this.xaxis._offset=d.l+b.x[0]*d.w,this.xaxis._length=d.w*(b.x[1]-b.x[0]),this.yaxis._offset=d.t+(1-b.y[1])*d.h,this.yaxis._length=d.h*(b.y[1]-b.y[0])},l.updateLayers=function(_){var b=_[this.id],d=b.layers,u=this.layerList,g;if(d.length!==u.length){for(g=0;gB/2){var O=R.split("|").join("
");z.text(O).attr("data-unformatted",O).call(i.convertToTspans,v),F=r.bBox(z.node())}z.attr("transform",x(-3,-F.height+8)),I.insert("rect",".static-attribution").attr({x:-F.width-6,y:-F.height-3,width:F.width+6,height:F.height+3,fill:"rgba(255, 255, 255, 0.75)"});var P=1;F.width+6>B&&(P=B/(F.width+6));var N=[m.l+m.w*M.x[1],m.t+m.h*(1-M.y[0])];I.attr("transform",x(N[0],N[1])+A(P))}};function f(v,T){var l=v._fullLayout,m=v._context;if(m.mapboxAccessToken==="")return"";for(var w=[],S=[],M=!1,_=!1,b=0;b1&&h.warn(n.multipleTokensErrorMsg),w[0]):(S.length&&h.log(["Listed mapbox access token(s)",S.join(","),"but did not use a Mapbox map style, ignoring token(s)."].join(" ")),"")}function p(v){return typeof v=="string"&&(n.styleValuesMapbox.indexOf(v)!==-1||v.indexOf("mapbox://")===0||v.indexOf("stamen")===0)}Y.updateFx=function(v){for(var T=v._fullLayout,l=T._subplots[o],m=0;m=0;i--)t.removeLayer(r[i][1])},e.dispose=function(){var t=this.subplot.map;this._removeLayers(),t.removeSource(this.sourceId)},H.exports=function(r,i){var a=i[0].trace,o=new E(r,a.uid),n=o.sourceId,s=h(i),c=o.below=r.belowLookup["trace-"+a.uid];return r.map.addSource(n,{type:"geojson",data:s.geojson}),o._addLayers(s,c),i[0].trace._glTrace=o,o}}}),NR=He({"src/traces/choroplethmapbox/index.js"(Y,H){H.exports={attributes:eA(),supplyDefaults:OR(),colorbar:Zd(),calc:K_(),plot:BR(),hoverPoints:Q_(),eventData:ex(),selectPoints:tx(),styleOnSelect:function(h,x){if(x){var A=x[0].trace;A._glTrace.updateOnSelect(x)}},getBelow:function(h,x){for(var A=x.getMapLayers(),E=A.length-2;E>=0;E--){var e=A[E].id;if(typeof e=="string"&&e.indexOf("water")===0){for(var t=E+1;t0?+v[f]:0),c.push({type:"Feature",geometry:{type:"Point",coordinates:w},properties:S})}}var _=E.extractOpts(a),b=_.reversescale?E.flipScale(_.colorscale):_.colorscale,d=b[0][1],u=A.opacity(d)<1?d:A.addOpacity(d,0),g=["interpolate",["linear"],["heatmap-density"],0,u];for(f=1;f=0;r--)e.removeLayer(t[r][1])},E.dispose=function(){var e=this.subplot.map;this._removeLayers(),e.removeSource(this.sourceId)},H.exports=function(t,r){var i=r[0].trace,a=new A(t,i.uid),o=a.sourceId,n=h(r),s=a.below=t.belowLookup["trace-"+i.uid];return t.map.addSource(o,{type:"geojson",data:n.geojson}),a._addLayers(n,s),a}}}),HR=He({"src/traces/densitymapbox/hover.js"(Y,H){var h=wo(),x=dx().hoverPoints,A=dx().getExtraText;H.exports=function(e,t,r){var i=x(e,t,r);if(i){var a=i[0],o=a.cd,n=o[0].trace,s=o[a.index];if(delete a.color,"z"in s){var c=a.subplot.mockAxis;a.z=s.z,a.zLabel=h.tickText(c,c.c2l(s.z),"hover").text}return a.extraText=A(n,s,o[0].t.labels),[a]}}}}),WR=He({"src/traces/densitymapbox/event_data.js"(Y,H){H.exports=function(x,A){return x.lon=A.lon,x.lat=A.lat,x.z=A.z,x}}}),XR=He({"src/traces/densitymapbox/index.js"(Y,H){H.exports={attributes:rA(),supplyDefaults:jR(),colorbar:Zd(),formatLabels:KT(),calc:VR(),plot:GR(),hoverPoints:HR(),eventData:WR(),getBelow:function(h,x){for(var A=x.getMapLayers(),E=0;EESRI"},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} -{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-1",type:"symbol",source:"openmaptiles","source-layer":"poi",minzoom:14,filter:["all",["==","$type","Point"],["<=","rank",14],["has","name"]],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":11,"text-max-width":9},paint:{"text-halo-blur":.5,"text-color":"rgba(191, 228, 172, 1)","text-halo-width":1,"text-halo-color":"rgba(30, 29, 29, 1)"}},{id:"poi-railway",type:"symbol",source:"openmaptiles","source-layer":"poi",minzoom:13,filter:["all",["==","$type","Point"],["has","name"],["==","class","railway"],["==","subclass","station"]],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,"icon-optional":!1,"icon-ignore-placement":!1,"icon-allow-overlap":!1,"text-ignore-placement":!1,"text-allow-overlap":!1,"text-optional":!0},paint:{"text-halo-blur":.5,"text-color":"#666","text-halo-width":1,"text-halo-color":"#ffffff"}},{id:"road_oneway",type:"symbol",source:"openmaptiles","source-layer":"transportation",minzoom:15,filter:["all",["==","oneway",1],["in","class","motorway","trunk","primary","secondary","tertiary","minor","service"]],layout:{"symbol-placement":"line","icon-image":"oneway","symbol-spacing":75,"icon-padding":2,"icon-rotation-alignment":"map","icon-rotate":90,"icon-size":{stops:[[15,.5],[19,1]]}},paint:{"icon-opacity":.5}},{id:"road_oneway_opposite",type:"symbol",source:"openmaptiles","source-layer":"transportation",minzoom:15,filter:["all",["==","oneway",-1],["in","class","motorway","trunk","primary","secondary","tertiary","minor","service"]],layout:{"symbol-placement":"line","icon-image":"oneway","symbol-spacing":75,"icon-padding":2,"icon-rotation-alignment":"map","icon-rotate":-90,"icon-size":{stops:[[15,.5],[19,1]]}},paint:{"icon-opacity":.5}},{id:"highway-name-path",type:"symbol",source:"openmaptiles","source-layer":"transportation_name",minzoom:15.5,filter:["==","class","path"],layout:{"text-size":{base:1,stops:[[13,12],[14,13]]},"text-font":["Noto Sans Regular"],"text-field":"{name:latin} {name:nonlatin}","symbol-placement":"line","text-rotation-alignment":"map"},paint:{"text-halo-color":"#f8f4f0","text-color":"hsl(30, 23%, 62%)","text-halo-width":.5}},{id:"highway-name-minor",type:"symbol",source:"openmaptiles","source-layer":"transportation_name",minzoom:15,filter:["all",["==","$type","LineString"],["in","class","minor","service","track"]],layout:{"text-size":{base:1,stops:[[13,12],[14,13]]},"text-font":["Noto Sans Regular"],"text-field":"{name:latin} {name:nonlatin}","symbol-placement":"line","text-rotation-alignment":"map"},paint:{"text-halo-blur":.5,"text-color":"#765","text-halo-width":1}},{id:"highway-name-major",type:"symbol",source:"openmaptiles","source-layer":"transportation_name",minzoom:12.2,filter:["in","class","primary","secondary","tertiary","trunk"],layout:{"text-size":{base:1,stops:[[13,12],[14,13]]},"text-font":["Noto Sans Regular"],"text-field":"{name:latin} {name:nonlatin}","symbol-placement":"line","text-rotation-alignment":"map"},paint:{"text-halo-blur":.5,"text-color":"#765","text-halo-width":1}},{id:"highway-shield",type:"symbol",source:"openmaptiles","source-layer":"transportation_name",minzoom:8,filter:["all",["<=","ref_length",6],["==","$type","LineString"],["!in","network","us-interstate","us-highway","us-state"]],layout:{"text-size":10,"icon-image":"road_{ref_length}","icon-rotation-alignment":"viewport","symbol-spacing":200,"text-font":["Noto Sans Regular"],"symbol-placement":{base:1,stops:[[10,"point"],[11,"line"]]},"text-rotation-alignment":"viewport","icon-size":1,"text-field":"{ref}"},paint:{"text-opacity":1,"text-color":"rgba(20, 19, 19, 1)","text-halo-color":"rgba(230, 221, 221, 0)","text-halo-width":2,"icon-color":"rgba(183, 18, 18, 1)","icon-opacity":.3,"icon-halo-color":"rgba(183, 55, 55, 0)"}},{id:"highway-shield-us-interstate",type:"symbol",source:"openmaptiles","source-layer":"transportation_name",minzoom:7,filter:["all",["<=","ref_length",6],["==","$type","LineString"],["in","network","us-interstate"]],layout:{"text-size":10,"icon-image":"{network}_{ref_length}","icon-rotation-alignment":"viewport","symbol-spacing":200,"text-font":["Noto Sans Regular"],"symbol-placement":{base:1,stops:[[7,"point"],[7,"line"],[8,"line"]]},"text-rotation-alignment":"viewport","icon-size":1,"text-field":"{ref}"},paint:{"text-color":"rgba(0, 0, 0, 1)"}},{id:"highway-shield-us-other",type:"symbol",source:"openmaptiles","source-layer":"transportation_name",minzoom:9,filter:["all",["<=","ref_length",6],["==","$type","LineString"],["in","network","us-highway","us-state"]],layout:{"text-size":10,"icon-image":"{network}_{ref_length}","icon-rotation-alignment":"viewport","symbol-spacing":200,"text-font":["Noto Sans Regular"],"symbol-placement":{base:1,stops:[[10,"point"],[11,"line"]]},"text-rotation-alignment":"viewport","icon-size":1,"text-field":"{ref}"},paint:{"text-color":"rgba(0, 0, 0, 1)"}},{id:"place-other",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",minzoom:12,filter:["!in","class","city","town","village","country","continent"],layout:{"text-letter-spacing":.1,"text-size":{base:1.2,stops:[[12,10],[15,14]]},"text-font":["Noto Sans Bold"],"text-field":`{name:latin} -{name:nonlatin}`,"text-transform":"uppercase","text-max-width":9,visibility:"visible"},paint:{"text-color":"rgba(255,255,255,1)","text-halo-width":1.2,"text-halo-color":"rgba(57, 28, 28, 1)"}},{id:"place-village",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",minzoom:10,filter:["==","class","village"],layout:{"text-font":["Noto Sans Regular"],"text-size":{base:1.2,stops:[[10,12],[15,16]]},"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(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"}}}),$R=He({"src/plots/map/styles/arcgis-sat.js"(Y,H){H.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"}}]}}}),cp=He({"src/plots/map/constants.js"(Y,H){var h=jd(),x=YR(),A=$R(),E='© OpenStreetMap contributors',e="https://basemaps.cartocdn.com/gl/positron-gl-style/style.json",t="https://basemaps.cartocdn.com/gl/dark-matter-gl-style/style.json",r="https://basemaps.cartocdn.com/gl/voyager-gl-style/style.json",i="https://basemaps.cartocdn.com/gl/positron-nolabels-gl-style/style.json",a="https://basemaps.cartocdn.com/gl/dark-matter-nolabels-gl-style/style.json",o="https://basemaps.cartocdn.com/gl/voyager-nolabels-gl-style/style.json",n={basic:r,streets:r,outdoors:r,light:e,dark:t,satellite:A,"satellite-streets":x,"open-street-map":{id:"osm",version:8,sources:{"plotly-osm-tiles":{type:"raster",attribution:E,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":e,"carto-darkmatter":t,"carto-voyager":r,"carto-positron-nolabels":i,"carto-darkmatter-nolabels":a,"carto-voyager-nolabels":o},s=h(n);H.exports={styleValueDflt:"basic",stylesMap:n,styleValuesMap:s,traceLayerPrefix:"plotly-trace-layer-",layoutLayerPrefix:"plotly-layout-layer-",missingStyleErrorMsg:["No valid maplibre style found, please set `map.style` to one of:",s.join(", "),"or use a tile service."].join(` -`),mapOnErrorMsg:"Map error."}}}),ey=He({"src/plots/map/layout_attributes.js"(Y,H){var h=Qr(),x=zi().defaultLine,A=Ku().attributes,E=Mu(),e=bc().textposition,t=Uu().overrideAll,r=cl().templatedArray,i=cp(),a=E({noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0});a.family.dflt="Open Sans Regular, Arial Unicode MS Regular";var o=H.exports=t({_arrayAttrRegexps:[h.counterRegex("map",".layers",!0)],domain:A({name:"map"}),style:{valType:"any",values:i.styleValuesMap,dflt:i.styleValueDflt},center:{lon:{valType:"number",dflt:0},lat:{valType:"number",dflt:0}},zoom:{valType:"number",dflt:1},bearing:{valType:"number",dflt:0},pitch:{valType:"number",dflt:0},bounds:{west:{valType:"number"},east:{valType:"number"},south:{valType:"number"},north:{valType:"number"}},layers:r("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:x},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:x}},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:a,textposition:h.extendFlat({},e,{arrayOk:!1})}})},"plot","from-root");o.uirevision={valType:"any",editType:"none"}}}),gx=He({"src/traces/scattermap/attributes.js"(Y,H){var h=us().hovertemplateAttrs,x=us().texttemplateAttrs,A=_v(),E=Xp(),e=bc(),t=ey(),r=Ll(),i=eu(),a=Po().extendFlat,o=Uu().overrideAll,n=ey(),s=E.line,c=E.marker;H.exports=o({lon:E.lon,lat:E.lat,cluster:{enabled:{valType:"boolean"},maxzoom:a({},n.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:a({},c.opacity,{dflt:1})},mode:a({},e.mode,{dflt:"markers"}),text:a({},e.text,{}),texttemplate:x({editType:"plot"},{keys:["lat","lon","text"]}),hovertext:a({},e.hovertext,{}),line:{color:s.color,width:s.width},connectgaps:e.connectgaps,marker:a({symbol:{valType:"string",dflt:"circle",arrayOk:!0},angle:{valType:"number",dflt:"auto",arrayOk:!0},allowoverlap:{valType:"boolean",dflt:!1},opacity:c.opacity,size:c.size,sizeref:c.sizeref,sizemin:c.sizemin,sizemode:c.sizemode},i("marker")),fill:E.fill,fillcolor:A(),textfont:t.layers.symbol.textfont,textposition:t.layers.symbol.textposition,below:{valType:"string"},selected:{marker:e.selected.marker},unselected:{marker:e.unselected.marker},hoverinfo:a({},r.hoverinfo,{flags:["lon","lat","text","name"]}),hovertemplate:h()},"calc","nested")}}),aA=He({"src/traces/scattermap/constants.js"(Y,H){var h=["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"];H.exports={isSupportedFont:function(x){return h.indexOf(x)!==-1}}}}),KR=He({"src/traces/scattermap/defaults.js"(Y,H){var h=Qr(),x=cu(),A=Zh(),E=rv(),e=av(),t=bv(),r=gx(),i=aA().isSupportedFont;H.exports=function(n,s,c,f){function p(g,y){return h.coerce(n,s,r,g,y)}function v(g,y){return h.coerce2(n,s,r,g,y)}var T=a(n,s,p);if(!T){s.visible=!1;return}if(p("text"),p("texttemplate"),p("hovertext"),p("hovertemplate"),p("mode"),p("below"),x.hasMarkers(s)){A(n,s,c,f,p,{noLine:!0,noAngle:!0}),p("marker.allowoverlap"),p("marker.angle");var l=s.marker;l.symbol!=="circle"&&(h.isArrayOrTypedArray(l.size)&&(l.size=l.size[0]),h.isArrayOrTypedArray(l.color)&&(l.color=l.color[0]))}x.hasLines(s)&&(E(n,s,c,f,p,{noDash:!0}),p("connectgaps"));var m=v("cluster.maxzoom"),w=v("cluster.step"),S=v("cluster.color",s.marker&&s.marker.color||c),M=v("cluster.size"),_=v("cluster.opacity"),b=m!==!1||w!==!1||S!==!1||M!==!1||_!==!1,d=p("cluster.enabled",b);if(d||x.hasText(s)){var u=f.font.family;e(n,s,f,p,{noSelect:!0,noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,font:{family:i(u)?u:"Open Sans Regular",weight:f.font.weight,style:f.font.style,size:f.font.size,color:f.font.color}})}p("fill"),s.fill!=="none"&&t(n,s,c,p),h.coerceSelectionMarkerOpacity(s,p)};function a(o,n,s){var c=s("lon")||[],f=s("lat")||[],p=Math.min(c.length,f.length);return n._length=p,p}}}),nA=He({"src/traces/scattermap/format_labels.js"(Y,H){var h=wo();H.exports=function(A,E,e){var t={},r=e[E.subplot]._subplot,i=r.mockAxis,a=A.lonlat;return t.lonLabel=h.tickText(i,i.c2l(a[0]),!0).text,t.latLabel=h.tickText(i,i.c2l(a[1]),!0).text,t}}}),iA=He({"src/plots/map/convert_text_opts.js"(Y,H){var h=Qr();H.exports=function(A,E){var e=A.split(" "),t=e[0],r=e[1],i=h.isArrayOrTypedArray(E)?h.mean(E):E,a=.5+i/100,o=1.5+i/100,n=["",""],s=[0,0];switch(t){case"top":n[0]="top",s[1]=-o;break;case"bottom":n[0]="bottom",s[1]=o;break}switch(r){case"left":n[1]="right",s[0]=-a;break;case"right":n[1]="left",s[0]=a;break}var c;return n[0]&&n[1]?c=n.join("-"):n[0]?c=n[0]:n[1]?c=n[1]:c="center",{anchor:c,offset:s}}}}),JR=He({"src/traces/scattermap/convert.js"(Y,H){var h=Vi(),x=Qr(),A=qo().BADNUM,E=ip(),e=Eu(),t=Io(),r=U0(),i=cu(),a=aA().isSupportedFont,o=iA(),n=Dh().appendArrayPointValue,s=jl().NEWLINES,c=jl().BR_TAG_ALL;H.exports=function(_,b){var d=b[0].trace,u=d.visible===!0&&d._length!==0,g=d.fill!=="none",y=i.hasLines(d),R=i.hasMarkers(d),I=i.hasText(d),z=R&&d.marker.symbol==="circle",F=R&&d.marker.symbol!=="circle",B=d.cluster&&d.cluster.enabled,O=f("fill"),P=f("line"),N=f("circle"),U=f("symbol"),X={fill:O,line:P,circle:N,symbol:U};if(!u)return X;var te;if((g||y)&&(te=E.calcTraceToLineCoords(b)),g&&(O.geojson=E.makePolygon(te),O.layout.visibility="visible",x.extendFlat(O.paint,{"fill-color":d.fillcolor})),y&&(P.geojson=E.makeLine(te),P.layout.visibility="visible",x.extendFlat(P.paint,{"line-width":d.line.width,"line-color":d.line.color,"line-opacity":d.opacity})),z){var ue=p(b);N.geojson=ue.geojson,N.layout.visibility="visible",B&&(N.filter=["!",["has","point_count"]],X.cluster={type:"circle",filter:["has","point_count"],layout:{visibility:"visible"},paint:{"circle-color":w(d.cluster.color,d.cluster.step),"circle-radius":w(d.cluster.size,d.cluster.step),"circle-opacity":w(d.cluster.opacity,d.cluster.step)}},X.clusterCount={type:"symbol",filter:["has","point_count"],paint:{},layout:{"text-field":"{point_count_abbreviated}","text-font":S(d),"text-size":12}}),x.extendFlat(N.paint,{"circle-color":ue.mcc,"circle-radius":ue.mrc,"circle-opacity":ue.mo})}if(z&&B&&(N.filter=["!",["has","point_count"]]),(F||I)&&(U.geojson=v(b,_),x.extendFlat(U.layout,{visibility:"visible","icon-image":"{symbol}-15","text-field":"{text}"}),F&&(x.extendFlat(U.layout,{"icon-size":d.marker.size/10}),"angle"in d.marker&&d.marker.angle!=="auto"&&x.extendFlat(U.layout,{"icon-rotate":{type:"identity",property:"angle"},"icon-rotation-alignment":"map"}),U.layout["icon-allow-overlap"]=d.marker.allowoverlap,x.extendFlat(U.paint,{"icon-opacity":d.opacity*d.marker.opacity,"icon-color":d.marker.color})),I)){var ie=(d.marker||{}).size,le=o(d.textposition,ie);x.extendFlat(U.layout,{"text-size":d.textfont.size,"text-anchor":le.anchor,"text-offset":le.offset,"text-font":S(d)}),x.extendFlat(U.paint,{"text-color":d.textfont.color,"text-opacity":d.opacity})}return X};function f(M){return{type:M,geojson:E.makeBlank(),layout:{visibility:"none"},filter:null,paint:{}}}function p(M){var _=M[0].trace,b=_.marker,d=_.selectedpoints,u=x.isArrayOrTypedArray(b.color),g=x.isArrayOrTypedArray(b.size),y=x.isArrayOrTypedArray(b.opacity),R;function I(ie){return _.opacity*ie}function z(ie){return ie/2}var F;u&&(e.hasColorscale(_,"marker")?F=e.makeColorScaleFuncFromTrace(b):F=x.identity);var B;g&&(B=r(_));var O;y&&(O=function(ie){var le=h(ie)?+x.constrain(ie,0,1):0;return I(le)});var P=[];for(R=0;R850?R+=" Black":u>750?R+=" Extra Bold":u>650?R+=" Bold":u>550?R+=" Semi Bold":u>450?R+=" Medium":u>350?R+=" Regular":u>250?R+=" Light":u>150?R+=" Extra Light":R+=" Thin"):g.slice(0,2).join(" ")==="Open Sans"?(R="Open Sans",u>750?R+=" Extrabold":u>650?R+=" Bold":u>550?R+=" Semibold":u>350?R+=" Regular":R+=" Light"):g.slice(0,3).join(" ")==="Klokantech Noto Sans"&&(R="Klokantech Noto Sans",g[3]==="CJK"&&(R+=" CJK"),R+=u>500?" Bold":" Regular")),y&&(R+=" Italic"),R==="Open Sans Regular Italic"?R="Open Sans Italic":R==="Open Sans Regular Bold"?R="Open Sans Bold":R==="Open Sans Regular Bold Italic"?R="Open Sans Bold Italic":R==="Klokantech Noto Sans Regular Italic"&&(R="Klokantech Noto Sans Italic"),a(R)||(R=b);var I=R.split(", ");return I}}}),QR=He({"src/traces/scattermap/plot.js"(Y,H){var h=Qr(),x=JR(),A=cp().traceLayerPrefix,E={cluster:["cluster","clusterCount","circle"],nonCluster:["fill","line","circle","symbol"]};function e(r,i,a,o){this.type="scattermap",this.subplot=r,this.uid=i,this.clusterEnabled=a,this.isHidden=o,this.sourceIds={fill:"source-"+i+"-fill",line:"source-"+i+"-line",circle:"source-"+i+"-circle",symbol:"source-"+i+"-symbol",cluster:"source-"+i+"-circle",clusterCount:"source-"+i+"-circle"},this.layerIds={fill:A+i+"-fill",line:A+i+"-line",circle:A+i+"-circle",symbol:A+i+"-symbol",cluster:A+i+"-cluster",clusterCount:A+i+"-cluster-count"},this.below=null}var t=e.prototype;t.addSource=function(r,i,a){var o={type:"geojson",data:i.geojson};a&&a.enabled&&h.extendFlat(o,{cluster:!0,clusterMaxZoom:a.maxzoom});var n=this.subplot.map.getSource(this.sourceIds[r]);n?n.setData(i.geojson):this.subplot.map.addSource(this.sourceIds[r],o)},t.setSourceData=function(r,i){this.subplot.map.getSource(this.sourceIds[r]).setData(i.geojson)},t.addLayer=function(r,i,a){var o={type:i.type,id:this.layerIds[r],source:this.sourceIds[r],layout:i.layout,paint:i.paint};i.filter&&(o.filter=i.filter);for(var n=this.layerIds[r],s,c=this.subplot.getMapLayers(),f=0;f=0;y--){var R=g[y];n.removeLayer(v.layerIds[R])}u||n.removeSource(v.sourceIds.circle)}function m(u){for(var g=E.nonCluster,y=0;y=0;y--){var R=g[y];n.removeLayer(v.layerIds[R]),u||n.removeSource(v.sourceIds[R])}}function S(u){p?l(u):w(u)}function M(u){f?T(u):m(u)}function _(){for(var u=f?E.cluster:E.nonCluster,g=0;g=0;o--){var n=a[o];i.removeLayer(this.layerIds[n]),i.removeSource(this.sourceIds[n])}},H.exports=function(i,a){var o=a[0].trace,n=o.cluster&&o.cluster.enabled,s=o.visible!==!0,c=new e(i,o.uid,n,s),f=x(i.gd,a),p=c.below=i.belowLookup["trace-"+o.uid],v,T,l;if(n)for(c.addSource("circle",f.circle,o.cluster),v=0;v=0?Math.floor((o+180)/360):Math.ceil((o-180)/360),M=S*360,_=o-M;function b(B){var O=B.lonlat;if(O[0]===e||m&&T.indexOf(B.i+1)===-1)return 1/0;var P=x.modHalf(O[0],360),N=O[1],U=v.project([P,N]),X=U.x-f.c2p([_,N]),te=U.y-p.c2p([P,n]),ue=Math.max(3,B.mrc||0);return Math.max(Math.sqrt(X*X+te*te)-ue,1-3/ue)}if(h.getClosest(s,b,a),a.index!==!1){var d=s[a.index],u=d.lonlat,g=[x.modHalf(u[0],360)+M,u[1]],y=f.c2p(g),R=p.c2p(g),I=d.mrc||1;a.x0=y-I,a.x1=y+I,a.y0=R-I,a.y1=R+I;var z={};z[c.subplot]={_subplot:v};var F=c._module.formatLabels(d,c,z);return a.lonLabel=F.lonLabel,a.latLabel=F.latLabel,a.color=A(c,d),a.extraText=i(c,d,s[0].t.labels),a.hovertemplate=c.hovertemplate,[a]}}function i(a,o,n){if(a.hovertemplate)return;var s=o.hi||a.hoverinfo,c=s.split("+"),f=c.indexOf("all")!==-1,p=c.indexOf("lon")!==-1,v=c.indexOf("lat")!==-1,T=o.lonlat,l=[];function m(w){return w+"°"}return f||p&&v?l.push("("+m(T[1])+", "+m(T[0])+")"):p?l.push(n.lon+m(T[0])):v&&l.push(n.lat+m(T[1])),(f||c.indexOf("text")!==-1)&&E(o,a,l),l.join("
")}H.exports={hoverPoints:r,getExtraText:i}}}),eD=He({"src/traces/scattermap/event_data.js"(Y,H){H.exports=function(x,A){return x.lon=A.lon,x.lat=A.lat,x}}}),tD=He({"src/traces/scattermap/select.js"(Y,H){var h=Qr(),x=cu(),A=qo().BADNUM;H.exports=function(e,t){var r=e.cd,i=e.xaxis,a=e.yaxis,o=[],n=r[0].trace,s;if(!x.hasMarkers(n))return[];if(t===!1)for(s=0;s1)return 1;for(var K=W,ve=0;ve<8;ve++){var Ee=this.sampleCurveX(K)-W;if(Math.abs(Ee)Ee?qe=K:ut=K,K=.5*(ut-qe)+qe;return K},solve:function(W,D){return this.sampleCurveY(this.solveCurveX(W,D))}};var c=r(n);let f,p;function v(){return f==null&&(f=typeof OffscreenCanvas<"u"&&new OffscreenCanvas(1,1).getContext("2d")&&typeof createImageBitmap=="function"),f}function T(){if(p==null&&(p=!1,v())){const D=new OffscreenCanvas(5,5).getContext("2d",{willReadFrequently:!0});if(D){for(let ve=0;ve<25;ve++){const Ee=4*ve;D.fillStyle=`rgb(${Ee},${Ee+1},${Ee+2})`,D.fillRect(ve%5,Math.floor(ve/5),1,1)}const K=D.getImageData(0,0,5,5).data;for(let ve=0;ve<100;ve++)if(ve%4!=3&&K[ve]!==ve){p=!0;break}}}return p||!1}function l(W,D,K,ve){const Ee=new c(W,D,K,ve);return Ne=>Ee.solve(Ne)}const m=l(.25,.1,.25,1);function w(W,D,K){return Math.min(K,Math.max(D,W))}function S(W,D,K){const ve=K-D,Ee=((W-D)%ve+ve)%ve+D;return Ee===D?K:Ee}function M(W,...D){for(const K of D)for(const ve in K)W[ve]=K[ve];return W}let _=1;function b(W,D,K){const ve={};for(const Ee in W)ve[Ee]=D.call(this,W[Ee],Ee,W);return ve}function d(W,D,K){const ve={};for(const Ee in W)D.call(this,W[Ee],Ee,W)&&(ve[Ee]=W[Ee]);return ve}function u(W){return Array.isArray(W)?W.map(u):typeof W=="object"&&W?b(W,u):W}const g={};function y(W){g[W]||(typeof console<"u"&&console.warn(W),g[W]=!0)}function R(W,D,K){return(K.y-W.y)*(D.x-W.x)>(D.y-W.y)*(K.x-W.x)}function I(W){return typeof WorkerGlobalScope<"u"&&W!==void 0&&W instanceof WorkerGlobalScope}let z=null;function F(W){return typeof ImageBitmap<"u"&&W instanceof ImageBitmap}const B="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";function O(W,D,K,ve,Ee){return t(this,void 0,void 0,function*(){if(typeof VideoFrame>"u")throw new Error("VideoFrame not supported");const Ne=new VideoFrame(W,{timestamp:0});try{const qe=Ne?.format;if(!qe||!qe.startsWith("BGR")&&!qe.startsWith("RGB"))throw new Error(`Unrecognized format ${qe}`);const ut=qe.startsWith("BGR"),wt=new Uint8ClampedArray(ve*Ee*4);if(yield Ne.copyTo(wt,function(Ot,ar,lr,Sr,Fr){const Yr=4*Math.max(-ar,0),sa=(Math.max(0,lr)-lr)*Sr*4+Yr,_a=4*Sr,Wa=Math.max(0,ar),zn=Math.max(0,lr);return{rect:{x:Wa,y:zn,width:Math.min(Ot.width,ar+Sr)-Wa,height:Math.min(Ot.height,lr+Fr)-zn},layout:[{offset:sa,stride:_a}]}}(W,D,K,ve,Ee)),ut)for(let Ot=0;OtI(self)?self.worker&&self.worker.referrer:(window.location.protocol==="blob:"?window.parent:window).location.href,J=function(W,D){if(/:\/\//.test(W.url)&&!/^https?:|^file:/.test(W.url)){const ve=ue(W.url);if(ve)return ve(W,D);if(I(self)&&self.worker&&self.worker.actor)return self.worker.actor.sendAsync({type:"GR",data:W,targetMapId:ie},D)}if(!(/^file:/.test(K=W.url)||/^file:/.test(q())&&!/^\w+:/.test(K))){if(fetch&&Request&&AbortController&&Object.prototype.hasOwnProperty.call(Request.prototype,"signal"))return function(ve,Ee){return t(this,void 0,void 0,function*(){const Ne=new Request(ve.url,{method:ve.method||"GET",body:ve.body,credentials:ve.credentials,headers:ve.headers,cache:ve.cache,referrer:q(),signal:Ee.signal});ve.type!=="json"||Ne.headers.has("Accept")||Ne.headers.set("Accept","application/json");const qe=yield fetch(Ne);if(!qe.ok){const Ot=yield qe.blob();throw new le(qe.status,qe.statusText,ve.url,Ot)}let ut;ut=ve.type==="arrayBuffer"||ve.type==="image"?qe.arrayBuffer():ve.type==="json"?qe.json():qe.text();const wt=yield ut;if(Ee.signal.aborted)throw X();return{data:wt,cacheControl:qe.headers.get("Cache-Control"),expires:qe.headers.get("Expires")}})}(W,D);if(I(self)&&self.worker&&self.worker.actor)return self.worker.actor.sendAsync({type:"GR",data:W,mustQueue:!0,targetMapId:ie},D)}var K;return function(ve,Ee){return new Promise((Ne,qe)=>{var ut;const wt=new XMLHttpRequest;wt.open(ve.method||"GET",ve.url,!0),ve.type!=="arrayBuffer"&&ve.type!=="image"||(wt.responseType="arraybuffer");for(const Ot in ve.headers)wt.setRequestHeader(Ot,ve.headers[Ot]);ve.type==="json"&&(wt.responseType="text",!((ut=ve.headers)===null||ut===void 0)&&ut.Accept||wt.setRequestHeader("Accept","application/json")),wt.withCredentials=ve.credentials==="include",wt.onerror=()=>{qe(new Error(wt.statusText))},wt.onload=()=>{if(!Ee.signal.aborted)if((wt.status>=200&&wt.status<300||wt.status===0)&&wt.response!==null){let Ot=wt.response;if(ve.type==="json")try{Ot=JSON.parse(wt.response)}catch(ar){return void qe(ar)}Ne({data:Ot,cacheControl:wt.getResponseHeader("Cache-Control"),expires:wt.getResponseHeader("Expires")})}else{const Ot=new Blob([wt.response],{type:wt.getResponseHeader("Content-Type")});qe(new le(wt.status,wt.statusText,ve.url,Ot))}},Ee.signal.addEventListener("abort",()=>{wt.abort(),qe(X())}),wt.send(ve.body)})}(W,D)};function ee(W){if(!W||W.indexOf("://")<=0||W.indexOf("data:image/")===0||W.indexOf("blob:")===0)return!0;const D=new URL(W),K=window.location;return D.protocol===K.protocol&&D.host===K.host}function Z(W,D,K){K[W]&&K[W].indexOf(D)!==-1||(K[W]=K[W]||[],K[W].push(D))}function se(W,D,K){if(K&&K[W]){const ve=K[W].indexOf(D);ve!==-1&&K[W].splice(ve,1)}}class Q{constructor(D,K={}){M(this,K),this.type=D}}class V extends Q{constructor(D,K={}){super("error",M({error:D},K))}}class re{on(D,K){return this._listeners=this._listeners||{},Z(D,K,this._listeners),this}off(D,K){return se(D,K,this._listeners),se(D,K,this._oneTimeListeners),this}once(D,K){return K?(this._oneTimeListeners=this._oneTimeListeners||{},Z(D,K,this._oneTimeListeners),this):new Promise(ve=>this.once(D,ve))}fire(D,K){typeof D=="string"&&(D=new Q(D,K||{}));const ve=D.type;if(this.listens(ve)){D.target=this;const Ee=this._listeners&&this._listeners[ve]?this._listeners[ve].slice():[];for(const ut of Ee)ut.call(this,D);const Ne=this._oneTimeListeners&&this._oneTimeListeners[ve]?this._oneTimeListeners[ve].slice():[];for(const ut of Ne)se(ve,ut,this._oneTimeListeners),ut.call(this,D);const qe=this._eventedParent;qe&&(M(D,typeof this._eventedParentData=="function"?this._eventedParentData():this._eventedParentData),qe.fire(D))}else D instanceof V&&console.error(D.error);return this}listens(D){return this._listeners&&this._listeners[D]&&this._listeners[D].length>0||this._oneTimeListeners&&this._oneTimeListeners[D]&&this._oneTimeListeners[D].length>0||this._eventedParent&&this._eventedParent.listens(D)}setEventedParent(D,K){return this._eventedParent=D,this._eventedParentData=K,this}}var ae={$version:8,$root:{version:{required:!0,type:"enum",values:[8]},name:{type:"string"},metadata:{type:"*"},center:{type:"array",value:"number"},zoom:{type:"number"},bearing:{type:"number",default:0,period:360,units:"degrees"},pitch:{type:"number",default:0,units:"degrees"},light:{type:"light"},sky:{type:"sky"},projection:{type:"projection"},terrain:{type:"terrain"},sources:{required:!0,type:"sources"},sprite:{type:"sprite"},glyphs:{type:"string"},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},"*":{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:"*"},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:{required:!0,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:{},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_background"],layout_background:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"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","property-type":"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","property-type":"constant"}},layout_heatmap:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_line:{"line-cap":{type:"enum",values:{butt:{},round:{},square:{}},default:"butt",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-join":{type:"enum",values:{bevel:{},round:{},miter:{}},default:"miter",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{type:"number",default:2,requires:[{"line-join":"miter"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-round-limit":{type:"number",default:1.05,requires:[{"line-join":"round"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},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"]},"property-type":"data-constant"},"icon-size":{type:"number",default:1,minimum:0,units:"factor of the original icon size",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{type:"enum",values:{none:{},width:{},height:{},both:{}},default:"none",requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-text-fit-padding":{type:"array",value:"number",length:4,default:[0,0,0,0],units:"pixels",requires:["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-image":{type:"resolvedImage",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{type:"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"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_raster:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_hillshade:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},filter:{type:"array",value:"*"},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:"*",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:"enum",default:"mercator",values:{mercator:{},globe:{}}}},paint:["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","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-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{type:"color",transition:!0,requires:[{"!":"fill-pattern"},{"fill-antialias":!0}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"}},"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-extrusion-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",transition:!0,requires:["fill-extrusion-height"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_line:{"line-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"line-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["line-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-width":{type:"number",default:1,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{type:"number",default:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{type:"array",value:"number",minimum:0,transition:!0,units:"line widths",requires:[{"!":"line-pattern"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"line-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-gradient":{type:"color",transition:!1,requires:[{"!":"line-dasharray"},{"!":"line-pattern"},{source:"geojson",has:{lineMetrics:!0}}],expression:{interpolated:!0,parameters:["line-progress"]},"property-type":"color-ramp"}},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"},"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:"number",default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{type:"number",default:.5,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"color",default:"#FFFFFF",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},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"}}};const fe=["type","source","source-layer","minzoom","maxzoom","filter","layout"];function xe(W,D){const K={};for(const ve in W)ve!=="ref"&&(K[ve]=W[ve]);return fe.forEach(ve=>{ve in D&&(K[ve]=D[ve])}),K}function Ae(W,D){if(Array.isArray(W)){if(!Array.isArray(D)||W.length!==D.length)return!1;for(let K=0;K`:W.itemType.kind==="value"?"array":`array<${D}>`}return W.kind}const Oe=[nt,Ke,Et,kt,Ut,Rr,Yt,Fe(vr),dr,wr,yt];function de(W,D){if(D.kind==="error")return null;if(W.kind==="array"){if(D.kind==="array"&&(D.N===0&&D.itemType.kind==="value"||!de(W.itemType,D.itemType))&&(typeof W.N!="number"||W.N===D.N))return null}else{if(W.kind===D.kind)return null;if(W.kind==="value"){for(const K of Oe)if(!de(K,D))return null}}return`Expected ${We(W)} but found ${We(D)} instead.`}function me(W,D){return D.some(K=>K.kind===W.kind)}function be(W,D){return D.some(K=>K==="null"?W===null:K==="array"?Array.isArray(W):K==="object"?W&&!Array.isArray(W)&&typeof W=="object":K===typeof W)}function Ie(W,D){return W.kind==="array"&&D.kind==="array"?W.itemType.kind===D.itemType.kind&&typeof W.N=="number":W.kind===D.kind}const Xe=.96422,ht=.82521,bt=4/29,Ct=6/29,Zt=3*Ct*Ct,Wt=Ct*Ct*Ct,rr=Math.PI/180,Jt=180/Math.PI;function mr(W){return(W%=360)<0&&(W+=360),W}function ia([W,D,K,ve]){let Ee,Ne;const qe=La((.2225045*(W=Ia(W))+.7168786*(D=Ia(D))+.0606169*(K=Ia(K)))/1);W===D&&D===K?Ee=Ne=qe:(Ee=La((.4360747*W+.3850649*D+.1430804*K)/Xe),Ne=La((.0139322*W+.0971045*D+.7141733*K)/ht));const ut=116*qe-16;return[ut<0?0:ut,500*(Ee-qe),200*(qe-Ne),ve]}function Ia(W){return W<=.04045?W/12.92:Math.pow((W+.055)/1.055,2.4)}function La(W){return W>Wt?Math.pow(W,1/3):W/Zt+bt}function Aa([W,D,K,ve]){let Ee=(W+16)/116,Ne=isNaN(D)?Ee:Ee+D/500,qe=isNaN(K)?Ee:Ee-K/200;return Ee=1*ba(Ee),Ne=Xe*ba(Ne),qe=ht*ba(qe),[Ga(3.1338561*Ne-1.6168667*Ee-.4906146*qe),Ga(-.9787684*Ne+1.9161415*Ee+.033454*qe),Ga(.0719453*Ne-.2289914*Ee+1.4052427*qe),ve]}function Ga(W){return(W=W<=.00304?12.92*W:1.055*Math.pow(W,1/2.4)-.055)<0?0:W>1?1:W}function ba(W){return W>Ct?W*W*W:Zt*(W-bt)}function Xa(W){return parseInt(W.padEnd(2,W),16)/255}function yn(W,D){return Kt(D?W/100:W,0,1)}function Kt(W,D,K){return Math.min(Math.max(D,W),K)}function zt(W){return!W.some(Number.isNaN)}const $t={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]};class Ht{constructor(D,K,ve,Ee=1,Ne=!0){this.r=D,this.g=K,this.b=ve,this.a=Ee,Ne||(this.r*=Ee,this.g*=Ee,this.b*=Ee,Ee||this.overwriteGetter("rgb",[D,K,ve,Ee]))}static parse(D){if(D instanceof Ht)return D;if(typeof D!="string")return;const K=function(ve){if((ve=ve.toLowerCase().trim())==="transparent")return[0,0,0,0];const Ee=$t[ve];if(Ee){const[qe,ut,wt]=Ee;return[qe/255,ut/255,wt/255,1]}if(ve.startsWith("#")&&/^#(?:[0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/.test(ve)){const qe=ve.length<6?1:2;let ut=1;return[Xa(ve.slice(ut,ut+=qe)),Xa(ve.slice(ut,ut+=qe)),Xa(ve.slice(ut,ut+=qe)),Xa(ve.slice(ut,ut+qe)||"ff")]}if(ve.startsWith("rgb")){const qe=ve.match(/^rgba?\(\s*([\de.+-]+)(%)?(?:\s+|\s*(,)\s*)([\de.+-]+)(%)?(?:\s+|\s*(,)\s*)([\de.+-]+)(%)?(?:\s*([,\/])\s*([\de.+-]+)(%)?)?\s*\)$/);if(qe){const[ut,wt,Ot,ar,lr,Sr,Fr,Yr,sa,_a,Wa,zn]=qe,vn=[ar||" ",Fr||" ",_a].join("");if(vn===" "||vn===" /"||vn===",,"||vn===",,,"){const Cn=[Ot,Sr,sa].join(""),$n=Cn==="%%%"?100:Cn===""?255:0;if($n){const gi=[Kt(+wt/$n,0,1),Kt(+lr/$n,0,1),Kt(+Yr/$n,0,1),Wa?yn(+Wa,zn):1];if(zt(gi))return gi}}return}}const Ne=ve.match(/^hsla?\(\s*([\de.+-]+)(?:deg)?(?:\s+|\s*(,)\s*)([\de.+-]+)%(?:\s+|\s*(,)\s*)([\de.+-]+)%(?:\s*([,\/])\s*([\de.+-]+)(%)?)?\s*\)$/);if(Ne){const[qe,ut,wt,Ot,ar,lr,Sr,Fr,Yr]=Ne,sa=[wt||" ",ar||" ",Sr].join("");if(sa===" "||sa===" /"||sa===",,"||sa===",,,"){const _a=[+ut,Kt(+Ot,0,100),Kt(+lr,0,100),Fr?yn(+Fr,Yr):1];if(zt(_a))return function([Wa,zn,vn,Cn]){function $n(gi){const Ji=(gi+Wa/30)%12,as=zn*Math.min(vn,1-vn);return vn-as*Math.max(-1,Math.min(Ji-3,9-Ji,1))}return Wa=mr(Wa),zn/=100,vn/=100,[$n(0),$n(8),$n(4),Cn]}(_a)}}}(D);return K?new Ht(...K,!1):void 0}get rgb(){const{r:D,g:K,b:ve,a:Ee}=this,Ne=Ee||1/0;return this.overwriteGetter("rgb",[D/Ne,K/Ne,ve/Ne,Ee])}get hcl(){return this.overwriteGetter("hcl",function(D){const[K,ve,Ee,Ne]=ia(D),qe=Math.sqrt(ve*ve+Ee*Ee);return[Math.round(1e4*qe)?mr(Math.atan2(Ee,ve)*Jt):NaN,qe,K,Ne]}(this.rgb))}get lab(){return this.overwriteGetter("lab",ia(this.rgb))}overwriteGetter(D,K){return Object.defineProperty(this,D,{value:K}),K}toString(){const[D,K,ve,Ee]=this.rgb;return`rgba(${[D,K,ve].map(Ne=>Math.round(255*Ne)).join(",")},${Ee})`}}Ht.black=new Ht(0,0,0,1),Ht.white=new Ht(1,1,1,1),Ht.transparent=new Ht(0,0,0,0),Ht.red=new Ht(1,0,0,1);class Tr{constructor(D,K,ve){this.sensitivity=D?K?"variant":"case":K?"accent":"base",this.locale=ve,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})}compare(D,K){return this.collator.compare(D,K)}resolvedLocale(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale}}class qr{constructor(D,K,ve,Ee,Ne){this.text=D,this.image=K,this.scale=ve,this.fontStack=Ee,this.textColor=Ne}}class ha{constructor(D){this.sections=D}static fromString(D){return new ha([new qr(D,null,null,null,null)])}isEmpty(){return this.sections.length===0||!this.sections.some(D=>D.text.length!==0||D.image&&D.image.name.length!==0)}static factory(D){return D instanceof ha?D:ha.fromString(D)}toString(){return this.sections.length===0?"":this.sections.map(D=>D.text).join("")}}class Gr{constructor(D){this.values=D.slice()}static parse(D){if(D instanceof Gr)return D;if(typeof D=="number")return new Gr([D,D,D,D]);if(Array.isArray(D)&&!(D.length<1||D.length>4)){for(const K of D)if(typeof K!="number")return;switch(D.length){case 1:D=[D[0],D[0],D[0],D[0]];break;case 2:D=[D[0],D[1],D[0],D[1]];break;case 3:D=[D[0],D[1],D[2],D[1]]}return new Gr(D)}}toString(){return JSON.stringify(this.values)}}const wa=new Set(["center","left","right","top","bottom","top-left","top-right","bottom-left","bottom-right"]);class Da{constructor(D){this.values=D.slice()}static parse(D){if(D instanceof Da)return D;if(Array.isArray(D)&&!(D.length<1)&&D.length%2==0){for(let K=0;K=0&&W<=255&&typeof D=="number"&&D>=0&&D<=255&&typeof K=="number"&&K>=0&&K<=255?ve===void 0||typeof ve=="number"&&ve>=0&&ve<=1?null:`Invalid rgba value [${[W,D,K,ve].join(", ")}]: 'a' must be between 0 and 1.`:`Invalid rgba value [${(typeof ve=="number"?[W,D,K,ve]:[W,D,K]).join(", ")}]: 'r', 'g', and 'b' must be between 0 and 255.`}function an(W){if(W===null||typeof W=="string"||typeof W=="boolean"||typeof W=="number"||W instanceof Ht||W instanceof Tr||W instanceof ha||W instanceof Gr||W instanceof Da||W instanceof Ya)return!0;if(Array.isArray(W)){for(const D of W)if(!an(D))return!1;return!0}if(typeof W=="object"){for(const D in W)if(!an(W[D]))return!1;return!0}return!1}function mt(W){if(W===null)return nt;if(typeof W=="string")return Et;if(typeof W=="boolean")return kt;if(typeof W=="number")return Ke;if(W instanceof Ht)return Ut;if(W instanceof Tr)return hr;if(W instanceof ha)return Rr;if(W instanceof Gr)return dr;if(W instanceof Da)return yt;if(W instanceof Ya)return wr;if(Array.isArray(W)){const D=W.length;let K;for(const ve of W){const Ee=mt(ve);if(K){if(K===Ee)continue;K=vr;break}K=Ee}return Fe(K||vr,D)}return Yt}function ot(W){const D=typeof W;return W===null?"":D==="string"||D==="number"||D==="boolean"?String(W):W instanceof Ht||W instanceof ha||W instanceof Gr||W instanceof Da||W instanceof Ya?W.toString():JSON.stringify(W)}class Lr{constructor(D,K){this.type=D,this.value=K}static parse(D,K){if(D.length!==2)return K.error(`'literal' expression requires exactly one argument, but found ${D.length-1} instead.`);if(!an(D[1]))return K.error("invalid value");const ve=D[1];let Ee=mt(ve);const Ne=K.expectedType;return Ee.kind!=="array"||Ee.N!==0||!Ne||Ne.kind!=="array"||typeof Ne.N=="number"&&Ne.N!==0||(Ee=Ne),new Lr(Ee,ve)}evaluate(){return this.value}eachChild(){}outputDefined(){return!0}}class Er{constructor(D){this.name="ExpressionEvaluationError",this.message=D}toJSON(){return this.message}}const Mr={string:Et,number:Ke,boolean:kt,object:Yt};class br{constructor(D,K){this.type=D,this.args=K}static parse(D,K){if(D.length<2)return K.error("Expected at least one argument.");let ve,Ee=1;const Ne=D[0];if(Ne==="array"){let ut,wt;if(D.length>2){const Ot=D[1];if(typeof Ot!="string"||!(Ot in Mr)||Ot==="object")return K.error('The item type argument of "array" must be one of string, number, boolean',1);ut=Mr[Ot],Ee++}else ut=vr;if(D.length>3){if(D[2]!==null&&(typeof D[2]!="number"||D[2]<0||D[2]!==Math.floor(D[2])))return K.error('The length argument to "array" must be a positive integer literal',2);wt=D[2],Ee++}ve=Fe(ut,wt)}else{if(!Mr[Ne])throw new Error(`Types doesn't contain name = ${Ne}`);ve=Mr[Ne]}const qe=[];for(;EeD.outputDefined())}}const Or={"to-boolean":kt,"to-color":Ut,"to-number":Ke,"to-string":Et};class jr{constructor(D,K){this.type=D,this.args=K}static parse(D,K){if(D.length<2)return K.error("Expected at least one argument.");const ve=D[0];if(!Or[ve])throw new Error(`Can't parse ${ve} as it is not part of the known types`);if((ve==="to-boolean"||ve==="to-string")&&D.length!==2)return K.error("Expected one argument.");const Ee=Or[ve],Ne=[];for(let qe=1;qe4?`Invalid rbga value ${JSON.stringify(K)}: expected an array containing either three or four numeric values.`:Ka(K[0],K[1],K[2],K[3]),!ve))return new Ht(K[0]/255,K[1]/255,K[2]/255,K[3])}throw new Er(ve||`Could not parse color from value '${typeof K=="string"?K:JSON.stringify(K)}'`)}case"padding":{let K;for(const ve of this.args){K=ve.evaluate(D);const Ee=Gr.parse(K);if(Ee)return Ee}throw new Er(`Could not parse padding from value '${typeof K=="string"?K:JSON.stringify(K)}'`)}case"variableAnchorOffsetCollection":{let K;for(const ve of this.args){K=ve.evaluate(D);const Ee=Da.parse(K);if(Ee)return Ee}throw new Er(`Could not parse variableAnchorOffsetCollection from value '${typeof K=="string"?K:JSON.stringify(K)}'`)}case"number":{let K=null;for(const ve of this.args){if(K=ve.evaluate(D),K===null)return 0;const Ee=Number(K);if(!isNaN(Ee))return Ee}throw new Er(`Could not convert ${JSON.stringify(K)} to number.`)}case"formatted":return ha.fromString(ot(this.args[0].evaluate(D)));case"resolvedImage":return Ya.fromString(ot(this.args[0].evaluate(D)));default:return ot(this.args[0].evaluate(D))}}eachChild(D){this.args.forEach(D)}outputDefined(){return this.args.every(D=>D.outputDefined())}}const Dr=["Unknown","Point","LineString","Polygon"];class Hr{constructor(){this.globals=null,this.feature=null,this.featureState=null,this.formattedSection=null,this._parseColorCache={},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"?Dr[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(D){let K=this._parseColorCache[D];return K||(K=this._parseColorCache[D]=Ht.parse(D)),K}}class na{constructor(D,K,ve=[],Ee,Ne=new et,qe=[]){this.registry=D,this.path=ve,this.key=ve.map(ut=>`[${ut}]`).join(""),this.scope=Ne,this.errors=qe,this.expectedType=Ee,this._isConstant=K}parse(D,K,ve,Ee,Ne={}){return K?this.concat(K,ve,Ee)._parse(D,Ne):this._parse(D,Ne)}_parse(D,K){function ve(Ee,Ne,qe){return qe==="assert"?new br(Ne,[Ee]):qe==="coerce"?new jr(Ne,[Ee]):Ee}if(D!==null&&typeof D!="string"&&typeof D!="boolean"&&typeof D!="number"||(D=["literal",D]),Array.isArray(D)){if(D.length===0)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');const Ee=D[0];if(typeof Ee!="string")return this.error(`Expression name must be a string, but found ${typeof Ee} instead. If you wanted a literal array, use ["literal", [...]].`,0),null;const Ne=this.registry[Ee];if(Ne){let qe=Ne.parse(D,this);if(!qe)return null;if(this.expectedType){const ut=this.expectedType,wt=qe.type;if(ut.kind!=="string"&&ut.kind!=="number"&&ut.kind!=="boolean"&&ut.kind!=="object"&&ut.kind!=="array"||wt.kind!=="value")if(ut.kind!=="color"&&ut.kind!=="formatted"&&ut.kind!=="resolvedImage"||wt.kind!=="value"&&wt.kind!=="string")if(ut.kind!=="padding"||wt.kind!=="value"&&wt.kind!=="number"&&wt.kind!=="array")if(ut.kind!=="variableAnchorOffsetCollection"||wt.kind!=="value"&&wt.kind!=="array"){if(this.checkSubtype(ut,wt))return null}else qe=ve(qe,ut,K.typeAnnotation||"coerce");else qe=ve(qe,ut,K.typeAnnotation||"coerce");else qe=ve(qe,ut,K.typeAnnotation||"coerce");else qe=ve(qe,ut,K.typeAnnotation||"assert")}if(!(qe instanceof Lr)&&qe.type.kind!=="resolvedImage"&&this._isConstant(qe)){const ut=new Hr;try{qe=new Lr(qe.type,qe.evaluate(ut))}catch(wt){return this.error(wt.message),null}}return qe}return this.error(`Unknown expression "${Ee}". If you wanted a literal array, use ["literal", [...]].`,0)}return this.error(D===void 0?"'undefined' value invalid. Use null instead.":typeof D=="object"?'Bare objects invalid. Use ["literal", {...}] instead.':`Expected an array, but found ${typeof D} instead.`)}concat(D,K,ve){const Ee=typeof D=="number"?this.path.concat(D):this.path,Ne=ve?this.scope.concat(ve):this.scope;return new na(this.registry,this._isConstant,Ee,K||null,Ne,this.errors)}error(D,...K){const ve=`${this.key}${K.map(Ee=>`[${Ee}]`).join("")}`;this.errors.push(new De(ve,D))}checkSubtype(D,K){const ve=de(D,K);return ve&&this.error(ve),ve}}class ta{constructor(D,K){this.type=K.type,this.bindings=[].concat(D),this.result=K}evaluate(D){return this.result.evaluate(D)}eachChild(D){for(const K of this.bindings)D(K[1]);D(this.result)}static parse(D,K){if(D.length<4)return K.error(`Expected at least 3 arguments, but found ${D.length-1} instead.`);const ve=[];for(let Ne=1;Ne=ve.length)throw new Er(`Array index out of bounds: ${K} > ${ve.length-1}.`);if(K!==Math.floor(K))throw new Er(`Array index must be an integer, but found ${K} instead.`);return ve[K]}eachChild(D){D(this.index),D(this.input)}outputDefined(){return!1}}class Ar{constructor(D,K){this.type=kt,this.needle=D,this.haystack=K}static parse(D,K){if(D.length!==3)return K.error(`Expected 2 arguments, but found ${D.length-1} instead.`);const ve=K.parse(D[1],1,vr),Ee=K.parse(D[2],2,vr);return ve&&Ee?me(ve.type,[kt,Et,Ke,nt,vr])?new Ar(ve,Ee):K.error(`Expected first argument to be of type boolean, string, number or null, but found ${We(ve.type)} instead`):null}evaluate(D){const K=this.needle.evaluate(D),ve=this.haystack.evaluate(D);if(!ve)return!1;if(!be(K,["boolean","string","number","null"]))throw new Er(`Expected first argument to be of type boolean, string, number or null, but found ${We(mt(K))} instead.`);if(!be(ve,["string","array"]))throw new Er(`Expected second argument to be of type array or string, but found ${We(mt(ve))} instead.`);return ve.indexOf(K)>=0}eachChild(D){D(this.needle),D(this.haystack)}outputDefined(){return!0}}class oa{constructor(D,K,ve){this.type=Ke,this.needle=D,this.haystack=K,this.fromIndex=ve}static parse(D,K){if(D.length<=2||D.length>=5)return K.error(`Expected 3 or 4 arguments, but found ${D.length-1} instead.`);const ve=K.parse(D[1],1,vr),Ee=K.parse(D[2],2,vr);if(!ve||!Ee)return null;if(!me(ve.type,[kt,Et,Ke,nt,vr]))return K.error(`Expected first argument to be of type boolean, string, number or null, but found ${We(ve.type)} instead`);if(D.length===4){const Ne=K.parse(D[3],3,Ke);return Ne?new oa(ve,Ee,Ne):null}return new oa(ve,Ee)}evaluate(D){const K=this.needle.evaluate(D),ve=this.haystack.evaluate(D);if(!be(K,["boolean","string","number","null"]))throw new Er(`Expected first argument to be of type boolean, string, number or null, but found ${We(mt(K))} instead.`);let Ee;if(this.fromIndex&&(Ee=this.fromIndex.evaluate(D)),be(ve,["string"])){const Ne=ve.indexOf(K,Ee);return Ne===-1?-1:[...ve.slice(0,Ne)].length}if(be(ve,["array"]))return ve.indexOf(K,Ee);throw new Er(`Expected second argument to be of type array or string, but found ${We(mt(ve))} instead.`)}eachChild(D){D(this.needle),D(this.haystack),this.fromIndex&&D(this.fromIndex)}outputDefined(){return!1}}class ga{constructor(D,K,ve,Ee,Ne,qe){this.inputType=D,this.type=K,this.input=ve,this.cases=Ee,this.outputs=Ne,this.otherwise=qe}static parse(D,K){if(D.length<5)return K.error(`Expected at least 4 arguments, but found only ${D.length-1}.`);if(D.length%2!=1)return K.error("Expected an even number of arguments.");let ve,Ee;K.expectedType&&K.expectedType.kind!=="value"&&(Ee=K.expectedType);const Ne={},qe=[];for(let Ot=2;OtNumber.MAX_SAFE_INTEGER)return Sr.error(`Branch labels must be integers no larger than ${Number.MAX_SAFE_INTEGER}.`);if(typeof Yr=="number"&&Math.floor(Yr)!==Yr)return Sr.error("Numeric branch labels must be integer values.");if(ve){if(Sr.checkSubtype(ve,mt(Yr)))return null}else ve=mt(Yr);if(Ne[String(Yr)]!==void 0)return Sr.error("Branch labels must be unique.");Ne[String(Yr)]=qe.length}const Fr=K.parse(lr,Ot,Ee);if(!Fr)return null;Ee=Ee||Fr.type,qe.push(Fr)}const ut=K.parse(D[1],1,vr);if(!ut)return null;const wt=K.parse(D[D.length-1],D.length-1,Ee);return wt?ut.type.kind!=="value"&&K.concat(1).checkSubtype(ve,ut.type)?null:new ga(ve,Ee,ut,Ne,qe,wt):null}evaluate(D){const K=this.input.evaluate(D);return(mt(K)===this.inputType&&this.outputs[this.cases[K]]||this.otherwise).evaluate(D)}eachChild(D){D(this.input),this.outputs.forEach(D),D(this.otherwise)}outputDefined(){return this.outputs.every(D=>D.outputDefined())&&this.otherwise.outputDefined()}}class Sa{constructor(D,K,ve){this.type=D,this.branches=K,this.otherwise=ve}static parse(D,K){if(D.length<4)return K.error(`Expected at least 3 arguments, but found only ${D.length-1}.`);if(D.length%2!=0)return K.error("Expected an odd number of arguments.");let ve;K.expectedType&&K.expectedType.kind!=="value"&&(ve=K.expectedType);const Ee=[];for(let qe=1;qeK.outputDefined())&&this.otherwise.outputDefined()}}class za{constructor(D,K,ve,Ee){this.type=D,this.input=K,this.beginIndex=ve,this.endIndex=Ee}static parse(D,K){if(D.length<=2||D.length>=5)return K.error(`Expected 3 or 4 arguments, but found ${D.length-1} instead.`);const ve=K.parse(D[1],1,vr),Ee=K.parse(D[2],2,Ke);if(!ve||!Ee)return null;if(!me(ve.type,[Fe(vr),Et,vr]))return K.error(`Expected first argument to be of type array or string, but found ${We(ve.type)} instead`);if(D.length===4){const Ne=K.parse(D[3],3,Ke);return Ne?new za(ve.type,ve,Ee,Ne):null}return new za(ve.type,ve,Ee)}evaluate(D){const K=this.input.evaluate(D),ve=this.beginIndex.evaluate(D);let Ee;if(this.endIndex&&(Ee=this.endIndex.evaluate(D)),be(K,["string"]))return[...K].slice(ve,Ee).join("");if(be(K,["array"]))return K.slice(ve,Ee);throw new Er(`Expected first argument to be of type array or string, but found ${We(mt(K))} instead.`)}eachChild(D){D(this.input),D(this.beginIndex),this.endIndex&&D(this.endIndex)}outputDefined(){return!1}}function ra(W,D){const K=W.length-1;let ve,Ee,Ne=0,qe=K,ut=0;for(;Ne<=qe;)if(ut=Math.floor((Ne+qe)/2),ve=W[ut],Ee=W[ut+1],ve<=D){if(ut===K||DD))throw new Er("Input is not a number.");qe=ut-1}return 0}class Ta{constructor(D,K,ve){this.type=D,this.input=K,this.labels=[],this.outputs=[];for(const[Ee,Ne]of ve)this.labels.push(Ee),this.outputs.push(Ne)}static parse(D,K){if(D.length-1<4)return K.error(`Expected at least 4 arguments, but found only ${D.length-1}.`);if((D.length-1)%2!=0)return K.error("Expected an even number of arguments.");const ve=K.parse(D[1],1,Ke);if(!ve)return null;const Ee=[];let Ne=null;K.expectedType&&K.expectedType.kind!=="value"&&(Ne=K.expectedType);for(let qe=1;qe=ut)return K.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',Ot);const lr=K.parse(wt,ar,Ne);if(!lr)return null;Ne=Ne||lr.type,Ee.push([ut,lr])}return new Ta(Ne,ve,Ee)}evaluate(D){const K=this.labels,ve=this.outputs;if(K.length===1)return ve[0].evaluate(D);const Ee=this.input.evaluate(D);if(Ee<=K[0])return ve[0].evaluate(D);const Ne=K.length;return Ee>=K[Ne-1]?ve[Ne-1].evaluate(D):ve[ra(K,Ee)].evaluate(D)}eachChild(D){D(this.input);for(const K of this.outputs)D(K)}outputDefined(){return this.outputs.every(D=>D.outputDefined())}}function Fn(W){return W&&W.__esModule&&Object.prototype.hasOwnProperty.call(W,"default")?W.default:W}var mn=Kn;function Kn(W,D,K,ve){this.cx=3*W,this.bx=3*(K-W)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*D,this.by=3*(ve-D)-this.cy,this.ay=1-this.cy-this.by,this.p1x=W,this.p1y=D,this.p2x=K,this.p2y=ve}Kn.prototype={sampleCurveX:function(W){return((this.ax*W+this.bx)*W+this.cx)*W},sampleCurveY:function(W){return((this.ay*W+this.by)*W+this.cy)*W},sampleCurveDerivativeX:function(W){return(3*this.ax*W+2*this.bx)*W+this.cx},solveCurveX:function(W,D){if(D===void 0&&(D=1e-6),W<0)return 0;if(W>1)return 1;for(var K=W,ve=0;ve<8;ve++){var Ee=this.sampleCurveX(K)-W;if(Math.abs(Ee)Ee?qe=K:ut=K,K=.5*(ut-qe)+qe;return K},solve:function(W,D){return this.sampleCurveY(this.solveCurveX(W,D))}};var ui=Fn(mn);function pi(W,D,K){return W+K*(D-W)}function vi(W,D,K){return W.map((ve,Ee)=>pi(ve,D[Ee],K))}const Li={number:pi,color:function(W,D,K,ve="rgb"){switch(ve){case"rgb":{const[Ee,Ne,qe,ut]=vi(W.rgb,D.rgb,K);return new Ht(Ee,Ne,qe,ut,!1)}case"hcl":{const[Ee,Ne,qe,ut]=W.hcl,[wt,Ot,ar,lr]=D.hcl;let Sr,Fr;if(isNaN(Ee)||isNaN(wt))isNaN(Ee)?isNaN(wt)?Sr=NaN:(Sr=wt,qe!==1&&qe!==0||(Fr=Ot)):(Sr=Ee,ar!==1&&ar!==0||(Fr=Ne));else{let zn=wt-Ee;wt>Ee&&zn>180?zn-=360:wt180&&(zn+=360),Sr=Ee+K*zn}const[Yr,sa,_a,Wa]=function([zn,vn,Cn,$n]){return zn=isNaN(zn)?0:zn*rr,Aa([Cn,Math.cos(zn)*vn,Math.sin(zn)*vn,$n])}([Sr,Fr??pi(Ne,Ot,K),pi(qe,ar,K),pi(ut,lr,K)]);return new Ht(Yr,sa,_a,Wa,!1)}case"lab":{const[Ee,Ne,qe,ut]=Aa(vi(W.lab,D.lab,K));return new Ht(Ee,Ne,qe,ut,!1)}}},array:vi,padding:function(W,D,K){return new Gr(vi(W.values,D.values,K))},variableAnchorOffsetCollection:function(W,D,K){const ve=W.values,Ee=D.values;if(ve.length!==Ee.length)throw new Er(`Cannot interpolate values of different length. from: ${W.toString()}, to: ${D.toString()}`);const Ne=[];for(let qe=0;qetypeof ar!="number"||ar<0||ar>1))return K.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);Ee={name:"cubic-bezier",controlPoints:Ot}}}if(D.length-1<4)return K.error(`Expected at least 4 arguments, but found only ${D.length-1}.`);if((D.length-1)%2!=0)return K.error("Expected an even number of arguments.");if(Ne=K.parse(Ne,2,Ke),!Ne)return null;const ut=[];let wt=null;ve==="interpolate-hcl"||ve==="interpolate-lab"?wt=Ut:K.expectedType&&K.expectedType.kind!=="value"&&(wt=K.expectedType);for(let Ot=0;Ot=ar)return K.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',Sr);const Yr=K.parse(lr,Fr,wt);if(!Yr)return null;wt=wt||Yr.type,ut.push([ar,Yr])}return Ie(wt,Ke)||Ie(wt,Ut)||Ie(wt,dr)||Ie(wt,yt)||Ie(wt,Fe(Ke))?new Ni(wt,ve,Ee,Ne,ut):K.error(`Type ${We(wt)} is not interpolatable.`)}evaluate(D){const K=this.labels,ve=this.outputs;if(K.length===1)return ve[0].evaluate(D);const Ee=this.input.evaluate(D);if(Ee<=K[0])return ve[0].evaluate(D);const Ne=K.length;if(Ee>=K[Ne-1])return ve[Ne-1].evaluate(D);const qe=ra(K,Ee),ut=Ni.interpolationFactor(this.interpolation,Ee,K[qe],K[qe+1]),wt=ve[qe].evaluate(D),Ot=ve[qe+1].evaluate(D);switch(this.operator){case"interpolate":return Li[this.type.kind](wt,Ot,ut);case"interpolate-hcl":return Li.color(wt,Ot,ut,"hcl");case"interpolate-lab":return Li.color(wt,Ot,ut,"lab")}}eachChild(D){D(this.input);for(const K of this.outputs)D(K)}outputDefined(){return this.outputs.every(D=>D.outputDefined())}}function ci(W,D,K,ve){const Ee=ve-K,Ne=W-K;return Ee===0?0:D===1?Ne/Ee:(Math.pow(D,Ne)-1)/(Math.pow(D,Ee)-1)}class bi{constructor(D,K){this.type=D,this.args=K}static parse(D,K){if(D.length<2)return K.error("Expectected at least one argument.");let ve=null;const Ee=K.expectedType;Ee&&Ee.kind!=="value"&&(ve=Ee);const Ne=[];for(const ut of D.slice(1)){const wt=K.parse(ut,1+Ne.length,ve,void 0,{typeAnnotation:"omit"});if(!wt)return null;ve=ve||wt.type,Ne.push(wt)}if(!ve)throw new Error("No output type");const qe=Ee&&Ne.some(ut=>de(Ee,ut.type));return new bi(qe?vr:ve,Ne)}evaluate(D){let K,ve=null,Ee=0;for(const Ne of this.args)if(Ee++,ve=Ne.evaluate(D),ve&&ve instanceof Ya&&!ve.available&&(K||(K=ve.name),ve=null,Ee===this.args.length&&(ve=K)),ve!==null)break;return ve}eachChild(D){this.args.forEach(D)}outputDefined(){return this.args.every(D=>D.outputDefined())}}function ho(W,D){return W==="=="||W==="!="?D.kind==="boolean"||D.kind==="string"||D.kind==="number"||D.kind==="null"||D.kind==="value":D.kind==="string"||D.kind==="number"||D.kind==="value"}function Bo(W,D,K,ve){return ve.compare(D,K)===0}function gs(W,D,K){const ve=W!=="=="&&W!=="!=";return class lS{constructor(Ne,qe,ut){this.type=kt,this.lhs=Ne,this.rhs=qe,this.collator=ut,this.hasUntypedArgument=Ne.type.kind==="value"||qe.type.kind==="value"}static parse(Ne,qe){if(Ne.length!==3&&Ne.length!==4)return qe.error("Expected two or three arguments.");const ut=Ne[0];let wt=qe.parse(Ne[1],1,vr);if(!wt)return null;if(!ho(ut,wt.type))return qe.concat(1).error(`"${ut}" comparisons are not supported for type '${We(wt.type)}'.`);let Ot=qe.parse(Ne[2],2,vr);if(!Ot)return null;if(!ho(ut,Ot.type))return qe.concat(2).error(`"${ut}" comparisons are not supported for type '${We(Ot.type)}'.`);if(wt.type.kind!==Ot.type.kind&&wt.type.kind!=="value"&&Ot.type.kind!=="value")return qe.error(`Cannot compare types '${We(wt.type)}' and '${We(Ot.type)}'.`);ve&&(wt.type.kind==="value"&&Ot.type.kind!=="value"?wt=new br(Ot.type,[wt]):wt.type.kind!=="value"&&Ot.type.kind==="value"&&(Ot=new br(wt.type,[Ot])));let ar=null;if(Ne.length===4){if(wt.type.kind!=="string"&&Ot.type.kind!=="string"&&wt.type.kind!=="value"&&Ot.type.kind!=="value")return qe.error("Cannot use collator to compare non-string types.");if(ar=qe.parse(Ne[3],3,hr),!ar)return null}return new lS(wt,Ot,ar)}evaluate(Ne){const qe=this.lhs.evaluate(Ne),ut=this.rhs.evaluate(Ne);if(ve&&this.hasUntypedArgument){const wt=mt(qe),Ot=mt(ut);if(wt.kind!==Ot.kind||wt.kind!=="string"&&wt.kind!=="number")throw new Er(`Expected arguments for "${W}" to be (string, string) or (number, number), but found (${wt.kind}, ${Ot.kind}) instead.`)}if(this.collator&&!ve&&this.hasUntypedArgument){const wt=mt(qe),Ot=mt(ut);if(wt.kind!=="string"||Ot.kind!=="string")return D(Ne,qe,ut)}return this.collator?K(Ne,qe,ut,this.collator.evaluate(Ne)):D(Ne,qe,ut)}eachChild(Ne){Ne(this.lhs),Ne(this.rhs),this.collator&&Ne(this.collator)}outputDefined(){return!0}}}const ro=gs("==",function(W,D,K){return D===K},Bo),Ei=gs("!=",function(W,D,K){return D!==K},function(W,D,K,ve){return!Bo(0,D,K,ve)}),Ri=gs("<",function(W,D,K){return D",function(W,D,K){return D>K},function(W,D,K,ve){return ve.compare(D,K)>0}),So=gs("<=",function(W,D,K){return D<=K},function(W,D,K,ve){return ve.compare(D,K)<=0}),bo=gs(">=",function(W,D,K){return D>=K},function(W,D,K,ve){return ve.compare(D,K)>=0});class Ui{constructor(D,K,ve){this.type=hr,this.locale=ve,this.caseSensitive=D,this.diacriticSensitive=K}static parse(D,K){if(D.length!==2)return K.error("Expected one argument.");const ve=D[1];if(typeof ve!="object"||Array.isArray(ve))return K.error("Collator options argument must be an object.");const Ee=K.parse(ve["case-sensitive"]!==void 0&&ve["case-sensitive"],1,kt);if(!Ee)return null;const Ne=K.parse(ve["diacritic-sensitive"]!==void 0&&ve["diacritic-sensitive"],1,kt);if(!Ne)return null;let qe=null;return ve.locale&&(qe=K.parse(ve.locale,1,Et),!qe)?null:new Ui(Ee,Ne,qe)}evaluate(D){return new Tr(this.caseSensitive.evaluate(D),this.diacriticSensitive.evaluate(D),this.locale?this.locale.evaluate(D):null)}eachChild(D){D(this.caseSensitive),D(this.diacriticSensitive),this.locale&&D(this.locale)}outputDefined(){return!1}}class no{constructor(D,K,ve,Ee,Ne){this.type=Et,this.number=D,this.locale=K,this.currency=ve,this.minFractionDigits=Ee,this.maxFractionDigits=Ne}static parse(D,K){if(D.length!==3)return K.error("Expected two arguments.");const ve=K.parse(D[1],1,Ke);if(!ve)return null;const Ee=D[2];if(typeof Ee!="object"||Array.isArray(Ee))return K.error("NumberFormat options argument must be an object.");let Ne=null;if(Ee.locale&&(Ne=K.parse(Ee.locale,1,Et),!Ne))return null;let qe=null;if(Ee.currency&&(qe=K.parse(Ee.currency,1,Et),!qe))return null;let ut=null;if(Ee["min-fraction-digits"]&&(ut=K.parse(Ee["min-fraction-digits"],1,Ke),!ut))return null;let wt=null;return Ee["max-fraction-digits"]&&(wt=K.parse(Ee["max-fraction-digits"],1,Ke),!wt)?null:new no(ve,Ne,qe,ut,wt)}evaluate(D){return new Intl.NumberFormat(this.locale?this.locale.evaluate(D):[],{style:this.currency?"currency":"decimal",currency:this.currency?this.currency.evaluate(D):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(D):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(D):void 0}).format(this.number.evaluate(D))}eachChild(D){D(this.number),this.locale&&D(this.locale),this.currency&&D(this.currency),this.minFractionDigits&&D(this.minFractionDigits),this.maxFractionDigits&&D(this.maxFractionDigits)}outputDefined(){return!1}}class cs{constructor(D){this.type=Rr,this.sections=D}static parse(D,K){if(D.length<2)return K.error("Expected at least one argument.");const ve=D[1];if(!Array.isArray(ve)&&typeof ve=="object")return K.error("First argument must be an image or text section.");const Ee=[];let Ne=!1;for(let qe=1;qe<=D.length-1;++qe){const ut=D[qe];if(Ne&&typeof ut=="object"&&!Array.isArray(ut)){Ne=!1;let wt=null;if(ut["font-scale"]&&(wt=K.parse(ut["font-scale"],1,Ke),!wt))return null;let Ot=null;if(ut["text-font"]&&(Ot=K.parse(ut["text-font"],1,Fe(Et)),!Ot))return null;let ar=null;if(ut["text-color"]&&(ar=K.parse(ut["text-color"],1,Ut),!ar))return null;const lr=Ee[Ee.length-1];lr.scale=wt,lr.font=Ot,lr.textColor=ar}else{const wt=K.parse(D[qe],1,vr);if(!wt)return null;const Ot=wt.type.kind;if(Ot!=="string"&&Ot!=="value"&&Ot!=="null"&&Ot!=="resolvedImage")return K.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");Ne=!0,Ee.push({content:wt,scale:null,font:null,textColor:null})}}return new cs(Ee)}evaluate(D){return new ha(this.sections.map(K=>{const ve=K.content.evaluate(D);return mt(ve)===wr?new qr("",ve,null,null,null):new qr(ot(ve),null,K.scale?K.scale.evaluate(D):null,K.font?K.font.evaluate(D).join(","):null,K.textColor?K.textColor.evaluate(D):null)}))}eachChild(D){for(const K of this.sections)D(K.content),K.scale&&D(K.scale),K.font&&D(K.font),K.textColor&&D(K.textColor)}outputDefined(){return!1}}class ks{constructor(D){this.type=wr,this.input=D}static parse(D,K){if(D.length!==2)return K.error("Expected two arguments.");const ve=K.parse(D[1],1,Et);return ve?new ks(ve):K.error("No image name provided.")}evaluate(D){const K=this.input.evaluate(D),ve=Ya.fromString(K);return ve&&D.availableImages&&(ve.available=D.availableImages.indexOf(K)>-1),ve}eachChild(D){D(this.input)}outputDefined(){return!1}}class ms{constructor(D){this.type=Ke,this.input=D}static parse(D,K){if(D.length!==2)return K.error(`Expected 1 argument, but found ${D.length-1} instead.`);const ve=K.parse(D[1],1);return ve?ve.type.kind!=="array"&&ve.type.kind!=="string"&&ve.type.kind!=="value"?K.error(`Expected argument of type string or array, but found ${We(ve.type)} instead.`):new ms(ve):null}evaluate(D){const K=this.input.evaluate(D);if(typeof K=="string")return[...K].length;if(Array.isArray(K))return K.length;throw new Er(`Expected value to be of type string or array, but found ${We(mt(K))} instead.`)}eachChild(D){D(this.input)}outputDefined(){return!1}}const Mo=8192;function kn(W,D){const K=(180+W[0])/360,ve=(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+W[1]*Math.PI/360)))/360,Ee=Math.pow(2,D.z);return[Math.round(K*Ee*Mo),Math.round(ve*Ee*Mo)]}function fi(W,D){const K=Math.pow(2,D.z);return[(Ee=(W[0]/Mo+D.x)/K,360*Ee-180),(ve=(W[1]/Mo+D.y)/K,360/Math.PI*Math.atan(Math.exp((180-360*ve)*Math.PI/180))-90)];var ve,Ee}function Fs(W,D){W[0]=Math.min(W[0],D[0]),W[1]=Math.min(W[1],D[1]),W[2]=Math.max(W[2],D[0]),W[3]=Math.max(W[3],D[1])}function Ss(W,D){return!(W[0]<=D[0]||W[2]>=D[2]||W[1]<=D[1]||W[3]>=D[3])}function Gi(W,D,K){const ve=W[0]-D[0],Ee=W[1]-D[1],Ne=W[0]-K[0],qe=W[1]-K[1];return ve*qe-Ne*Ee==0&&ve*Ne<=0&&Ee*qe<=0}function js(W,D,K,ve){return(Ee=[ve[0]-K[0],ve[1]-K[1]])[0]*(Ne=[D[0]-W[0],D[1]-W[1]])[1]-Ee[1]*Ne[0]!=0&&!(!Oi(W,D,K,ve)||!Oi(K,ve,W,D));var Ee,Ne}function No(W,D,K){for(const ve of K)for(let Ee=0;Ee(Ee=W)[1]!=(qe=ut[wt+1])[1]>Ee[1]&&Ee[0]<(qe[0]-Ne[0])*(Ee[1]-Ne[1])/(qe[1]-Ne[1])+Ne[0]&&(ve=!ve)}var Ee,Ne,qe;return ve}function Vs(W,D){for(const K of D)if(es(W,K))return!0;return!1}function hi(W,D){for(const K of W)if(!es(K,D))return!1;for(let K=0;K0&&ut<0||qe<0&&ut>0}function Zo(W,D,K){const ve=[];for(let Ee=0;EeK[2]){const Ee=.5*ve;let Ne=W[0]-K[0]>Ee?-ve:K[0]-W[0]>Ee?ve:0;Ne===0&&(Ne=W[0]-K[2]>Ee?-ve:K[2]-W[0]>Ee?ve:0),W[0]+=Ne}Fs(D,W)}function ys(W,D,K,ve){const Ee=Math.pow(2,ve.z)*Mo,Ne=[ve.x*Mo,ve.y*Mo],qe=[];for(const ut of W)for(const wt of ut){const Ot=[wt.x+Ne[0],wt.y+Ne[1]];Di(Ot,D,K,Ee),qe.push(Ot)}return qe}function wl(W,D,K,ve){const Ee=Math.pow(2,ve.z)*Mo,Ne=[ve.x*Mo,ve.y*Mo],qe=[];for(const wt of W){const Ot=[];for(const ar of wt){const lr=[ar.x+Ne[0],ar.y+Ne[1]];Fs(D,lr),Ot.push(lr)}qe.push(Ot)}if(D[2]-D[0]<=Ee/2){(ut=D)[0]=ut[1]=1/0,ut[2]=ut[3]=-1/0;for(const wt of qe)for(const Ot of wt)Di(Ot,D,K,Ee)}var ut;return qe}class Xs{constructor(D,K){this.type=kt,this.geojson=D,this.geometries=K}static parse(D,K){if(D.length!==2)return K.error(`'within' expression requires exactly one argument, but found ${D.length-1} instead.`);if(an(D[1])){const ve=D[1];if(ve.type==="FeatureCollection"){const Ee=[];for(const Ne of ve.features){const{type:qe,coordinates:ut}=Ne.geometry;qe==="Polygon"&&Ee.push(ut),qe==="MultiPolygon"&&Ee.push(...ut)}if(Ee.length)return new Xs(ve,{type:"MultiPolygon",coordinates:Ee})}else if(ve.type==="Feature"){const Ee=ve.geometry.type;if(Ee==="Polygon"||Ee==="MultiPolygon")return new Xs(ve,ve.geometry)}else if(ve.type==="Polygon"||ve.type==="MultiPolygon")return new Xs(ve,ve)}return K.error("'within' expression requires valid geojson object that contains polygon geometry type.")}evaluate(D){if(D.geometry()!=null&&D.canonicalID()!=null){if(D.geometryType()==="Point")return function(K,ve){const Ee=[1/0,1/0,-1/0,-1/0],Ne=[1/0,1/0,-1/0,-1/0],qe=K.canonicalID();if(ve.type==="Polygon"){const ut=Zo(ve.coordinates,Ne,qe),wt=ys(K.geometry(),Ee,Ne,qe);if(!Ss(Ee,Ne))return!1;for(const Ot of wt)if(!es(Ot,ut))return!1}if(ve.type==="MultiPolygon"){const ut=qs(ve.coordinates,Ne,qe),wt=ys(K.geometry(),Ee,Ne,qe);if(!Ss(Ee,Ne))return!1;for(const Ot of wt)if(!Vs(Ot,ut))return!1}return!0}(D,this.geometries);if(D.geometryType()==="LineString")return function(K,ve){const Ee=[1/0,1/0,-1/0,-1/0],Ne=[1/0,1/0,-1/0,-1/0],qe=K.canonicalID();if(ve.type==="Polygon"){const ut=Zo(ve.coordinates,Ne,qe),wt=wl(K.geometry(),Ee,Ne,qe);if(!Ss(Ee,Ne))return!1;for(const Ot of wt)if(!hi(Ot,ut))return!1}if(ve.type==="MultiPolygon"){const ut=qs(ve.coordinates,Ne,qe),wt=wl(K.geometry(),Ee,Ne,qe);if(!Ss(Ee,Ne))return!1;for(const Ot of wt)if(!so(Ot,ut))return!1}return!0}(D,this.geometries)}return!1}eachChild(){}outputDefined(){return!0}}let Vl=class{constructor(W=[],D=(K,ve)=>Kve?1:0){if(this.data=W,this.length=this.data.length,this.compare=D,this.length>0)for(let K=(this.length>>1)-1;K>=0;K--)this._down(K)}push(W){this.data.push(W),this._up(this.length++)}pop(){if(this.length===0)return;const W=this.data[0],D=this.data.pop();return--this.length>0&&(this.data[0]=D,this._down(0)),W}peek(){return this.data[0]}_up(W){const{data:D,compare:K}=this,ve=D[W];for(;W>0;){const Ee=W-1>>1,Ne=D[Ee];if(K(ve,Ne)>=0)break;D[W]=Ne,W=Ee}D[W]=ve}_down(W){const{data:D,compare:K}=this,ve=this.length>>1,Ee=D[W];for(;W=0)break;D[W]=D[Ne],W=Ne}D[W]=Ee}};function rl(W,D,K,ve,Ee){Cs(W,D,K,ve||W.length-1,Ee||ju)}function Cs(W,D,K,ve,Ee){for(;ve>K;){if(ve-K>600){var Ne=ve-K+1,qe=D-K+1,ut=Math.log(Ne),wt=.5*Math.exp(2*ut/3),Ot=.5*Math.sqrt(ut*wt*(Ne-wt)/Ne)*(qe-Ne/2<0?-1:1);Cs(W,D,Math.max(K,Math.floor(D-qe*wt/Ne+Ot)),Math.min(ve,Math.floor(D+(Ne-qe)*wt/Ne+Ot)),Ee)}var ar=W[D],lr=K,Sr=ve;for(ql(W,K,D),Ee(W[ve],ar)>0&&ql(W,K,ve);lr0;)Sr--}Ee(W[K],ar)===0?ql(W,K,Sr):ql(W,++Sr,ve),Sr<=D&&(K=Sr+1),D<=Sr&&(ve=Sr-1)}}function ql(W,D,K){var ve=W[D];W[D]=W[K],W[K]=ve}function ju(W,D){return WD?1:0}function Vu(W,D){if(W.length<=1)return[W];const K=[];let ve,Ee;for(const Ne of W){const qe=jc(Ne);qe!==0&&(Ne.area=Math.abs(qe),Ee===void 0&&(Ee=qe<0),Ee===qe<0?(ve&&K.push(ve),ve=[Ne]):ve.push(Ne))}if(ve&&K.push(ve),D>1)for(let Ne=0;Ne1?(Ot=D[wt+1][0],ar=D[wt+1][1]):Fr>0&&(Ot+=lr/this.kx*Fr,ar+=Sr/this.ky*Fr)),lr=this.wrap(K[0]-Ot)*this.kx,Sr=(K[1]-ar)*this.ky;const Yr=lr*lr+Sr*Sr;Yr180;)D-=360;return D}}function Pl(W,D){return D[0]-W[0]}function Tl(W){return W[1]-W[0]+1}function Il(W,D){return W[1]>=W[0]&&W[1]W[1])return[null,null];const K=Tl(W);if(D){if(K===2)return[W,null];const Ee=Math.floor(K/2);return[[W[0],W[0]+Ee],[W[0]+Ee,W[1]]]}if(K===1)return[W,null];const ve=Math.floor(K/2)-1;return[[W[0],W[0]+ve],[W[0]+ve+1,W[1]]]}function Os(W,D){if(!Il(D,W.length))return[1/0,1/0,-1/0,-1/0];const K=[1/0,1/0,-1/0,-1/0];for(let ve=D[0];ve<=D[1];++ve)Fs(K,W[ve]);return K}function Al(W){const D=[1/0,1/0,-1/0,-1/0];for(const K of W)for(const ve of K)Fs(D,ve);return D}function Uo(W){return W[0]!==-1/0&&W[1]!==-1/0&&W[2]!==1/0&&W[3]!==1/0}function bs(W,D,K){if(!Uo(W)||!Uo(D))return NaN;let ve=0,Ee=0;return W[2]D[2]&&(ve=W[0]-D[2]),W[1]>D[3]&&(Ee=W[1]-D[3]),W[3]=ve)return ve;if(Ss(Ee,Ne)){if(Rf(W,D))return 0}else if(Rf(D,W))return 0;let qe=1/0;for(const ut of W)for(let wt=0,Ot=ut.length,ar=Ot-1;wt0;){const wt=qe.pop();if(wt[0]>=Ne)continue;const Ot=wt[1],ar=D?50:100;if(Tl(Ot)<=ar){if(!Il(Ot,W.length))return NaN;if(D){const lr=zo(W,Ot,K,ve);if(isNaN(lr)||lr===0)return lr;Ne=Math.min(Ne,lr)}else for(let lr=Ot[0];lr<=Ot[1];++lr){const Sr=_f(W[lr],K,ve);if(Ne=Math.min(Ne,Sr),Ne===0)return 0}}else{const lr=_u(Ot,D);Bi(qe,Ne,ve,W,ut,lr[0]),Bi(qe,Ne,ve,W,ut,lr[1])}}return Ne}function dl(W,D,K,ve,Ee,Ne=1/0){let qe=Math.min(Ne,Ee.distance(W[0],K[0]));if(qe===0)return qe;const ut=new Vl([[0,[0,W.length-1],[0,K.length-1]]],Pl);for(;ut.length>0;){const wt=ut.pop();if(wt[0]>=qe)continue;const Ot=wt[1],ar=wt[2],lr=D?50:100,Sr=ve?50:100;if(Tl(Ot)<=lr&&Tl(ar)<=Sr){if(!Il(Ot,W.length)&&Il(ar,K.length))return NaN;let Fr;if(D&&ve)Fr=Ju(W,Ot,K,ar,Ee),qe=Math.min(qe,Fr);else if(D&&!ve){const Yr=W.slice(Ot[0],Ot[1]+1);for(let sa=ar[0];sa<=ar[1];++sa)if(Fr=qu(K[sa],Yr,Ee),qe=Math.min(qe,Fr),qe===0)return qe}else if(!D&&ve){const Yr=K.slice(ar[0],ar[1]+1);for(let sa=Ot[0];sa<=Ot[1];++sa)if(Fr=qu(W[sa],Yr,Ee),qe=Math.min(qe,Fr),qe===0)return qe}else Fr=Zs(W,Ot,K,ar,Ee),qe=Math.min(qe,Fr)}else{const Fr=_u(Ot,D),Yr=_u(ar,ve);hc(ut,qe,Ee,W,K,Fr[0],Yr[0]),hc(ut,qe,Ee,W,K,Fr[0],Yr[1]),hc(ut,qe,Ee,W,K,Fr[1],Yr[0]),hc(ut,qe,Ee,W,K,Fr[1],Yr[1])}}return qe}function qc(W){return W.type==="MultiPolygon"?W.coordinates.map(D=>({type:"Polygon",coordinates:D})):W.type==="MultiLineString"?W.coordinates.map(D=>({type:"LineString",coordinates:D})):W.type==="MultiPoint"?W.coordinates.map(D=>({type:"Point",coordinates:D})):[W]}class Qu{constructor(D,K){this.type=Ke,this.geojson=D,this.geometries=K}static parse(D,K){if(D.length!==2)return K.error(`'distance' expression requires exactly one argument, but found ${D.length-1} instead.`);if(an(D[1])){const ve=D[1];if(ve.type==="FeatureCollection")return new Qu(ve,ve.features.map(Ee=>qc(Ee.geometry)).flat());if(ve.type==="Feature")return new Qu(ve,qc(ve.geometry));if("type"in ve&&"coordinates"in ve)return new Qu(ve,qc(ve))}return K.error("'distance' expression requires valid geojson object that contains polygon geometry type.")}evaluate(D){if(D.geometry()!=null&&D.canonicalID()!=null){if(D.geometryType()==="Point")return function(K,ve){const Ee=K.geometry(),Ne=Ee.flat().map(wt=>fi([wt.x,wt.y],K.canonical));if(Ee.length===0)return NaN;const qe=new Vc(Ne[0][1]);let ut=1/0;for(const wt of ve){switch(wt.type){case"Point":ut=Math.min(ut,dl(Ne,!1,[wt.coordinates],!1,qe,ut));break;case"LineString":ut=Math.min(ut,dl(Ne,!1,wt.coordinates,!0,qe,ut));break;case"Polygon":ut=Math.min(ut,xu(Ne,!1,wt.coordinates,qe,ut))}if(ut===0)return ut}return ut}(D,this.geometries);if(D.geometryType()==="LineString")return function(K,ve){const Ee=K.geometry(),Ne=Ee.flat().map(wt=>fi([wt.x,wt.y],K.canonical));if(Ee.length===0)return NaN;const qe=new Vc(Ne[0][1]);let ut=1/0;for(const wt of ve){switch(wt.type){case"Point":ut=Math.min(ut,dl(Ne,!0,[wt.coordinates],!1,qe,ut));break;case"LineString":ut=Math.min(ut,dl(Ne,!0,wt.coordinates,!0,qe,ut));break;case"Polygon":ut=Math.min(ut,xu(Ne,!0,wt.coordinates,qe,ut))}if(ut===0)return ut}return ut}(D,this.geometries);if(D.geometryType()==="Polygon")return function(K,ve){const Ee=K.geometry();if(Ee.length===0||Ee[0].length===0)return NaN;const Ne=Vu(Ee,0).map(wt=>wt.map(Ot=>Ot.map(ar=>fi([ar.x,ar.y],K.canonical)))),qe=new Vc(Ne[0][0][0][1]);let ut=1/0;for(const wt of ve)for(const Ot of Ne){switch(wt.type){case"Point":ut=Math.min(ut,xu([wt.coordinates],!1,Ot,qe,ut));break;case"LineString":ut=Math.min(ut,xu(wt.coordinates,!0,Ot,qe,ut));break;case"Polygon":ut=Math.min(ut,is(Ot,wt.coordinates,qe,ut))}if(ut===0)return ut}return ut}(D,this.geometries)}return NaN}eachChild(){}outputDefined(){return!0}}const wc={"==":ro,"!=":Ei,">":xo,"<":Ri,">=":bo,"<=":So,array:br,at:or,boolean:br,case:Sa,coalesce:bi,collator:Ui,format:cs,image:ks,in:Ar,"index-of":oa,interpolate:Ni,"interpolate-hcl":Ni,"interpolate-lab":Ni,length:ms,let:ta,literal:Lr,match:ga,number:br,"number-format":no,object:br,slice:za,step:Ta,string:br,"to-boolean":jr,"to-color":jr,"to-number":jr,"to-string":jr,var:At,within:Xs,distance:Qu};class Sl{constructor(D,K,ve,Ee){this.name=D,this.type=K,this._evaluate=ve,this.args=Ee}evaluate(D){return this._evaluate(D,this.args)}eachChild(D){this.args.forEach(D)}outputDefined(){return!1}static parse(D,K){const ve=D[0],Ee=Sl.definitions[ve];if(!Ee)return K.error(`Unknown expression "${ve}". If you wanted a literal array, use ["literal", [...]].`,0);const Ne=Array.isArray(Ee)?Ee[0]:Ee.type,qe=Array.isArray(Ee)?[[Ee[1],Ee[2]]]:Ee.overloads,ut=qe.filter(([Ot])=>!Array.isArray(Ot)||Ot.length===D.length-1);let wt=null;for(const[Ot,ar]of ut){wt=new na(K.registry,Gc,K.path,null,K.scope);const lr=[];let Sr=!1;for(let Fr=1;Fr{return Sr=lr,Array.isArray(Sr)?`(${Sr.map(We).join(", ")})`:`(${We(Sr.type)}...)`;var Sr}).join(" | "),ar=[];for(let lr=1;lr{K=D?K&&Gc(ve):K&&ve instanceof Lr}),!!K&&Hc(W)&&$c(W,["zoom","heatmap-density","line-progress","accumulated","is-supported-script"])}function Hc(W){if(W instanceof Sl&&(W.name==="get"&&W.args.length===1||W.name==="feature-state"||W.name==="has"&&W.args.length===1||W.name==="properties"||W.name==="geometry-type"||W.name==="id"||/^filter-/.test(W.name))||W instanceof Xs||W instanceof Qu)return!1;let D=!0;return W.eachChild(K=>{D&&!Hc(K)&&(D=!1)}),D}function bu(W){if(W instanceof Sl&&W.name==="feature-state")return!1;let D=!0;return W.eachChild(K=>{D&&!bu(K)&&(D=!1)}),D}function $c(W,D){if(W instanceof Sl&&D.indexOf(W.name)>=0)return!1;let K=!0;return W.eachChild(ve=>{K&&!$c(ve,D)&&(K=!1)}),K}function Gu(W){return{result:"success",value:W}}function Lu(W){return{result:"error",value:W}}function Ml(W){return W["property-type"]==="data-driven"||W["property-type"]==="cross-faded-data-driven"}function lc(W){return!!W.expression&&W.expression.parameters.indexOf("zoom")>-1}function Wc(W){return!!W.expression&&W.expression.interpolated}function Ms(W){return W instanceof Number?"number":W instanceof String?"string":W instanceof Boolean?"boolean":Array.isArray(W)?"array":W===null?"null":typeof W}function Lc(W){return typeof W=="object"&&W!==null&&!Array.isArray(W)}function xf(W){return W}function Kc(W,D){const K=D.type==="color",ve=W.stops&&typeof W.stops[0][0]=="object",Ee=ve||!(ve||W.property!==void 0),Ne=W.type||(Wc(D)?"exponential":"interval");if(K||D.type==="padding"){const ar=K?Ht.parse:Gr.parse;(W=he({},W)).stops&&(W.stops=W.stops.map(lr=>[lr[0],ar(lr[1])])),W.default=ar(W.default?W.default:D.default)}if(W.colorSpace&&(qe=W.colorSpace)!=="rgb"&&qe!=="hcl"&&qe!=="lab")throw new Error(`Unknown color space: "${W.colorSpace}"`);var qe;let ut,wt,Ot;if(Ne==="exponential")ut=Qc;else if(Ne==="interval")ut=tu;else if(Ne==="categorical"){ut=Jc,wt=Object.create(null);for(const ar of W.stops)wt[ar[0]]=ar[1];Ot=typeof W.stops[0][0]}else{if(Ne!=="identity")throw new Error(`Unknown function type "${Ne}"`);ut=el}if(ve){const ar={},lr=[];for(let Yr=0;YrYr[0]),evaluate:({zoom:Yr},sa)=>Qc({stops:Sr,base:W.base},D,Yr).evaluate(Yr,sa)}}if(Ee){const ar=Ne==="exponential"?{name:"exponential",base:W.base!==void 0?W.base:1}:null;return{kind:"camera",interpolationType:ar,interpolationFactor:Ni.interpolationFactor.bind(void 0,ar),zoomStops:W.stops.map(lr=>lr[0]),evaluate:({zoom:lr})=>ut(W,D,lr,wt,Ot)}}return{kind:"source",evaluate(ar,lr){const Sr=lr&&lr.properties?lr.properties[W.property]:void 0;return Sr===void 0?Ac(W.default,D.default):ut(W,D,Sr,wt,Ot)}}}function Ac(W,D,K){return W!==void 0?W:D!==void 0?D:K!==void 0?K:void 0}function Jc(W,D,K,ve,Ee){return Ac(typeof K===Ee?ve[K]:void 0,W.default,D.default)}function tu(W,D,K){if(Ms(K)!=="number")return Ac(W.default,D.default);const ve=W.stops.length;if(ve===1||K<=W.stops[0][0])return W.stops[0][1];if(K>=W.stops[ve-1][0])return W.stops[ve-1][1];const Ee=ra(W.stops.map(Ne=>Ne[0]),K);return W.stops[Ee][1]}function Qc(W,D,K){const ve=W.base!==void 0?W.base:1;if(Ms(K)!=="number")return Ac(W.default,D.default);const Ee=W.stops.length;if(Ee===1||K<=W.stops[0][0])return W.stops[0][1];if(K>=W.stops[Ee-1][0])return W.stops[Ee-1][1];const Ne=ra(W.stops.map(ar=>ar[0]),K),qe=function(ar,lr,Sr,Fr){const Yr=Fr-Sr,sa=ar-Sr;return Yr===0?0:lr===1?sa/Yr:(Math.pow(lr,sa)-1)/(Math.pow(lr,Yr)-1)}(K,ve,W.stops[Ne][0],W.stops[Ne+1][0]),ut=W.stops[Ne][1],wt=W.stops[Ne+1][1],Ot=Li[D.type]||xf;return typeof ut.evaluate=="function"?{evaluate(...ar){const lr=ut.evaluate.apply(void 0,ar),Sr=wt.evaluate.apply(void 0,ar);if(lr!==void 0&&Sr!==void 0)return Ot(lr,Sr,qe,W.colorSpace)}}:Ot(ut,wt,qe,W.colorSpace)}function el(W,D,K){switch(D.type){case"color":K=Ht.parse(K);break;case"formatted":K=ha.fromString(K.toString());break;case"resolvedImage":K=Ya.fromString(K.toString());break;case"padding":K=Gr.parse(K);break;default:Ms(K)===D.type||D.type==="enum"&&D.values[K]||(K=void 0)}return Ac(K,W.default,D.default)}Sl.register(wc,{error:[{kind:"error"},[Et],(W,[D])=>{throw new Er(D.evaluate(W))}],typeof:[Et,[vr],(W,[D])=>We(mt(D.evaluate(W)))],"to-rgba":[Fe(Ke,4),[Ut],(W,[D])=>{const[K,ve,Ee,Ne]=D.evaluate(W).rgb;return[255*K,255*ve,255*Ee,Ne]}],rgb:[Ut,[Ke,Ke,Ke],hf],rgba:[Ut,[Ke,Ke,Ke,Ke],hf],has:{type:kt,overloads:[[[Et],(W,[D])=>Yc(D.evaluate(W),W.properties())],[[Et,Yt],(W,[D,K])=>Yc(D.evaluate(W),K.evaluate(W))]]},get:{type:vr,overloads:[[[Et],(W,[D])=>Tc(D.evaluate(W),W.properties())],[[Et,Yt],(W,[D,K])=>Tc(D.evaluate(W),K.evaluate(W))]]},"feature-state":[vr,[Et],(W,[D])=>Tc(D.evaluate(W),W.featureState||{})],properties:[Yt,[],W=>W.properties()],"geometry-type":[Et,[],W=>W.geometryType()],id:[vr,[],W=>W.id()],zoom:[Ke,[],W=>W.globals.zoom],"heatmap-density":[Ke,[],W=>W.globals.heatmapDensity||0],"line-progress":[Ke,[],W=>W.globals.lineProgress||0],accumulated:[vr,[],W=>W.globals.accumulated===void 0?null:W.globals.accumulated],"+":[Ke,ec(Ke),(W,D)=>{let K=0;for(const ve of D)K+=ve.evaluate(W);return K}],"*":[Ke,ec(Ke),(W,D)=>{let K=1;for(const ve of D)K*=ve.evaluate(W);return K}],"-":{type:Ke,overloads:[[[Ke,Ke],(W,[D,K])=>D.evaluate(W)-K.evaluate(W)],[[Ke],(W,[D])=>-D.evaluate(W)]]},"/":[Ke,[Ke,Ke],(W,[D,K])=>D.evaluate(W)/K.evaluate(W)],"%":[Ke,[Ke,Ke],(W,[D,K])=>D.evaluate(W)%K.evaluate(W)],ln2:[Ke,[],()=>Math.LN2],pi:[Ke,[],()=>Math.PI],e:[Ke,[],()=>Math.E],"^":[Ke,[Ke,Ke],(W,[D,K])=>Math.pow(D.evaluate(W),K.evaluate(W))],sqrt:[Ke,[Ke],(W,[D])=>Math.sqrt(D.evaluate(W))],log10:[Ke,[Ke],(W,[D])=>Math.log(D.evaluate(W))/Math.LN10],ln:[Ke,[Ke],(W,[D])=>Math.log(D.evaluate(W))],log2:[Ke,[Ke],(W,[D])=>Math.log(D.evaluate(W))/Math.LN2],sin:[Ke,[Ke],(W,[D])=>Math.sin(D.evaluate(W))],cos:[Ke,[Ke],(W,[D])=>Math.cos(D.evaluate(W))],tan:[Ke,[Ke],(W,[D])=>Math.tan(D.evaluate(W))],asin:[Ke,[Ke],(W,[D])=>Math.asin(D.evaluate(W))],acos:[Ke,[Ke],(W,[D])=>Math.acos(D.evaluate(W))],atan:[Ke,[Ke],(W,[D])=>Math.atan(D.evaluate(W))],min:[Ke,ec(Ke),(W,D)=>Math.min(...D.map(K=>K.evaluate(W)))],max:[Ke,ec(Ke),(W,D)=>Math.max(...D.map(K=>K.evaluate(W)))],abs:[Ke,[Ke],(W,[D])=>Math.abs(D.evaluate(W))],round:[Ke,[Ke],(W,[D])=>{const K=D.evaluate(W);return K<0?-Math.round(-K):Math.round(K)}],floor:[Ke,[Ke],(W,[D])=>Math.floor(D.evaluate(W))],ceil:[Ke,[Ke],(W,[D])=>Math.ceil(D.evaluate(W))],"filter-==":[kt,[Et,vr],(W,[D,K])=>W.properties()[D.value]===K.value],"filter-id-==":[kt,[vr],(W,[D])=>W.id()===D.value],"filter-type-==":[kt,[Et],(W,[D])=>W.geometryType()===D.value],"filter-<":[kt,[Et,vr],(W,[D,K])=>{const ve=W.properties()[D.value],Ee=K.value;return typeof ve==typeof Ee&&ve{const K=W.id(),ve=D.value;return typeof K==typeof ve&&K":[kt,[Et,vr],(W,[D,K])=>{const ve=W.properties()[D.value],Ee=K.value;return typeof ve==typeof Ee&&ve>Ee}],"filter-id->":[kt,[vr],(W,[D])=>{const K=W.id(),ve=D.value;return typeof K==typeof ve&&K>ve}],"filter-<=":[kt,[Et,vr],(W,[D,K])=>{const ve=W.properties()[D.value],Ee=K.value;return typeof ve==typeof Ee&&ve<=Ee}],"filter-id-<=":[kt,[vr],(W,[D])=>{const K=W.id(),ve=D.value;return typeof K==typeof ve&&K<=ve}],"filter->=":[kt,[Et,vr],(W,[D,K])=>{const ve=W.properties()[D.value],Ee=K.value;return typeof ve==typeof Ee&&ve>=Ee}],"filter-id->=":[kt,[vr],(W,[D])=>{const K=W.id(),ve=D.value;return typeof K==typeof ve&&K>=ve}],"filter-has":[kt,[vr],(W,[D])=>D.value in W.properties()],"filter-has-id":[kt,[],W=>W.id()!==null&&W.id()!==void 0],"filter-type-in":[kt,[Fe(Et)],(W,[D])=>D.value.indexOf(W.geometryType())>=0],"filter-id-in":[kt,[Fe(vr)],(W,[D])=>D.value.indexOf(W.id())>=0],"filter-in-small":[kt,[Et,Fe(vr)],(W,[D,K])=>K.value.indexOf(W.properties()[D.value])>=0],"filter-in-large":[kt,[Et,Fe(vr)],(W,[D,K])=>function(ve,Ee,Ne,qe){for(;Ne<=qe;){const ut=Ne+qe>>1;if(Ee[ut]===ve)return!0;Ee[ut]>ve?qe=ut-1:Ne=ut+1}return!1}(W.properties()[D.value],K.value,0,K.value.length-1)],all:{type:kt,overloads:[[[kt,kt],(W,[D,K])=>D.evaluate(W)&&K.evaluate(W)],[ec(kt),(W,D)=>{for(const K of D)if(!K.evaluate(W))return!1;return!0}]]},any:{type:kt,overloads:[[[kt,kt],(W,[D,K])=>D.evaluate(W)||K.evaluate(W)],[ec(kt),(W,D)=>{for(const K of D)if(K.evaluate(W))return!0;return!1}]]},"!":[kt,[kt],(W,[D])=>!D.evaluate(W)],"is-supported-script":[kt,[Et],(W,[D])=>{const K=W.globals&&W.globals.isSupportedScript;return!K||K(D.evaluate(W))}],upcase:[Et,[Et],(W,[D])=>D.evaluate(W).toUpperCase()],downcase:[Et,[Et],(W,[D])=>D.evaluate(W).toLowerCase()],concat:[Et,ec(vr),(W,D)=>D.map(K=>ot(K.evaluate(W))).join("")],"resolved-locale":[Et,[hr],(W,[D])=>D.evaluate(W).resolvedLocale()]});class ru{constructor(D,K){var ve;this.expression=D,this._warningHistory={},this._evaluator=new Hr,this._defaultValue=K?(ve=K).type==="color"&&Lc(ve.default)?new Ht(0,0,0,0):ve.type==="color"?Ht.parse(ve.default)||null:ve.type==="padding"?Gr.parse(ve.default)||null:ve.type==="variableAnchorOffsetCollection"?Da.parse(ve.default)||null:ve.default===void 0?null:ve.default:null,this._enumValues=K&&K.type==="enum"?K.values:null}evaluateWithoutErrorHandling(D,K,ve,Ee,Ne,qe){return this._evaluator.globals=D,this._evaluator.feature=K,this._evaluator.featureState=ve,this._evaluator.canonical=Ee,this._evaluator.availableImages=Ne||null,this._evaluator.formattedSection=qe,this.expression.evaluate(this._evaluator)}evaluate(D,K,ve,Ee,Ne,qe){this._evaluator.globals=D,this._evaluator.feature=K||null,this._evaluator.featureState=ve||null,this._evaluator.canonical=Ee,this._evaluator.availableImages=Ne||null,this._evaluator.formattedSection=qe||null;try{const ut=this.expression.evaluate(this._evaluator);if(ut==null||typeof ut=="number"&&ut!=ut)return this._defaultValue;if(this._enumValues&&!(ut in this._enumValues))throw new Er(`Expected value to be one of ${Object.keys(this._enumValues).map(wt=>JSON.stringify(wt)).join(", ")}, but found ${JSON.stringify(ut)} instead.`);return ut}catch(ut){return this._warningHistory[ut.message]||(this._warningHistory[ut.message]=!0,typeof console<"u"&&console.warn(ut.message)),this._defaultValue}}}function tc(W){return Array.isArray(W)&&W.length>0&&typeof W[0]=="string"&&W[0]in wc}function Bs(W,D){const K=new na(wc,Gc,[],D?function(Ee){const Ne={color:Ut,string:Et,number:Ke,enum:Et,boolean:kt,formatted:Rr,padding:dr,resolvedImage:wr,variableAnchorOffsetCollection:yt};return Ee.type==="array"?Fe(Ne[Ee.value]||vr,Ee.length):Ne[Ee.type]}(D):void 0),ve=K.parse(W,void 0,void 0,void 0,D&&D.type==="string"?{typeAnnotation:"coerce"}:void 0);return ve?Gu(new ru(ve,D)):Lu(K.errors)}class Hu{constructor(D,K){this.kind=D,this._styleExpression=K,this.isStateDependent=D!=="constant"&&!bu(K.expression)}evaluateWithoutErrorHandling(D,K,ve,Ee,Ne,qe){return this._styleExpression.evaluateWithoutErrorHandling(D,K,ve,Ee,Ne,qe)}evaluate(D,K,ve,Ee,Ne,qe){return this._styleExpression.evaluate(D,K,ve,Ee,Ne,qe)}}class Gl{constructor(D,K,ve,Ee){this.kind=D,this.zoomStops=ve,this._styleExpression=K,this.isStateDependent=D!=="camera"&&!bu(K.expression),this.interpolationType=Ee}evaluateWithoutErrorHandling(D,K,ve,Ee,Ne,qe){return this._styleExpression.evaluateWithoutErrorHandling(D,K,ve,Ee,Ne,qe)}evaluate(D,K,ve,Ee,Ne,qe){return this._styleExpression.evaluate(D,K,ve,Ee,Ne,qe)}interpolationFactor(D,K,ve){return this.interpolationType?Ni.interpolationFactor(this.interpolationType,D,K,ve):0}}function au(W,D){const K=Bs(W,D);if(K.result==="error")return K;const ve=K.value.expression,Ee=Hc(ve);if(!Ee&&!Ml(D))return Lu([new De("","data expressions not supported")]);const Ne=$c(ve,["zoom"]);if(!Ne&&!lc(D))return Lu([new De("","zoom expressions not supported")]);const qe=vc(ve);return qe||Ne?qe instanceof De?Lu([qe]):qe instanceof Ni&&!Wc(D)?Lu([new De("",'"interpolate" expressions cannot be used with this property')]):Gu(qe?new Gl(Ee?"camera":"composite",K.value,qe.labels,qe instanceof Ni?qe.interpolation:void 0):new Hu(Ee?"constant":"source",K.value)):Lu([new De("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')])}class Ys{constructor(D,K){this._parameters=D,this._specification=K,he(this,Kc(this._parameters,this._specification))}static deserialize(D){return new Ys(D._parameters,D._specification)}static serialize(D){return{_parameters:D._parameters,_specification:D._specification}}}function vc(W){let D=null;if(W instanceof ta)D=vc(W.result);else if(W instanceof bi){for(const K of W.args)if(D=vc(K),D)break}else(W instanceof Ta||W instanceof Ni)&&W.input instanceof Sl&&W.input.name==="zoom"&&(D=W);return D instanceof De||W.eachChild(K=>{const ve=vc(K);ve instanceof De?D=ve:!D&&ve?D=new De("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.'):D&&ve&&D!==ve&&(D=new De("",'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'))}),D}function Pu(W){if(W===!0||W===!1)return!0;if(!Array.isArray(W)||W.length===0)return!1;switch(W[0]){case"has":return W.length>=2&&W[1]!=="$id"&&W[1]!=="$type";case"in":return W.length>=3&&(typeof W[1]!="string"||Array.isArray(W[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return W.length!==3||Array.isArray(W[1])||Array.isArray(W[2]);case"any":case"all":for(const D of W.slice(1))if(!Pu(D)&&typeof D!="boolean")return!1;return!0;default:return!0}}const rc={type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}};function Pc(W){if(W==null)return{filter:()=>!0,needGeometry:!1};Pu(W)||(W=dc(W));const D=Bs(W,rc);if(D.result==="error")throw new Error(D.value.map(K=>`${K.key}: ${K.message}`).join(", "));return{filter:(K,ve,Ee)=>D.value.evaluate(K,ve,{},Ee),needGeometry:Vf(W)}}function bf(W,D){return WD?1:0}function Vf(W){if(!Array.isArray(W))return!1;if(W[0]==="within"||W[0]==="distance")return!0;for(let D=1;D"||D==="<="||D===">="?Ic(W[1],W[2],D):D==="any"?(K=W.slice(1),["any"].concat(K.map(dc))):D==="all"?["all"].concat(W.slice(1).map(dc)):D==="none"?["all"].concat(W.slice(1).map(dc).map(Rl)):D==="in"?fu(W[1],W.slice(2)):D==="!in"?Rl(fu(W[1],W.slice(2))):D==="has"?Rc(W[1]):D!=="!has"||Rl(Rc(W[1]));var K}function Ic(W,D,K){switch(W){case"$type":return[`filter-type-${K}`,D];case"$id":return[`filter-id-${K}`,D];default:return[`filter-${K}`,W,D]}}function fu(W,D){if(D.length===0)return!1;switch(W){case"$type":return["filter-type-in",["literal",D]];case"$id":return["filter-id-in",["literal",D]];default:return D.length>200&&!D.some(K=>typeof K!=typeof D[0])?["filter-in-large",W,["literal",D.sort(bf)]]:["filter-in-small",W,["literal",D]]}}function Rc(W){switch(W){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",W]}}function Rl(W){return["!",W]}function pc(W){const D=typeof W;if(D==="number"||D==="boolean"||D==="string"||W==null)return JSON.stringify(W);if(Array.isArray(W)){let Ee="[";for(const Ne of W)Ee+=`${pc(Ne)},`;return`${Ee}]`}const K=Object.keys(W).sort();let ve="{";for(let Ee=0;Eeve.maximum?[new we(D,K,`${K} is greater than the maximum value ${ve.maximum}`)]:[]}function Sc(W){const D=W.valueSpec,K=Gs(W.value.type);let ve,Ee,Ne,qe={};const ut=K!=="categorical"&&W.value.property===void 0,wt=!ut,Ot=Ms(W.value.stops)==="array"&&Ms(W.value.stops[0])==="array"&&Ms(W.value.stops[0][0])==="object",ar=wu({key:W.key,value:W.value,valueSpec:W.styleSpec.function,validateSpec:W.validateSpec,style:W.style,styleSpec:W.styleSpec,objectElementValidators:{stops:function(Fr){if(K==="identity")return[new we(Fr.key,Fr.value,'identity function may not have a "stops" property')];let Yr=[];const sa=Fr.value;return Yr=Yr.concat(Xc({key:Fr.key,value:sa,valueSpec:Fr.valueSpec,validateSpec:Fr.validateSpec,style:Fr.style,styleSpec:Fr.styleSpec,arrayElementValidator:lr})),Ms(sa)==="array"&&sa.length===0&&Yr.push(new we(Fr.key,sa,"array must have at least one stop")),Yr},default:function(Fr){return Fr.validateSpec({key:Fr.key,value:Fr.value,valueSpec:D,validateSpec:Fr.validateSpec,style:Fr.style,styleSpec:Fr.styleSpec})}}});return K==="identity"&&ut&&ar.push(new we(W.key,W.value,'missing required property "property"')),K==="identity"||W.value.stops||ar.push(new we(W.key,W.value,'missing required property "stops"')),K==="exponential"&&W.valueSpec.expression&&!Wc(W.valueSpec)&&ar.push(new we(W.key,W.value,"exponential functions not supported")),W.styleSpec.$version>=8&&(wt&&!Ml(W.valueSpec)?ar.push(new we(W.key,W.value,"property functions not supported")):ut&&!lc(W.valueSpec)&&ar.push(new we(W.key,W.value,"zoom functions not supported"))),K!=="categorical"&&!Ot||W.value.property!==void 0||ar.push(new we(W.key,W.value,'"property" property is required')),ar;function lr(Fr){let Yr=[];const sa=Fr.value,_a=Fr.key;if(Ms(sa)!=="array")return[new we(_a,sa,`array expected, ${Ms(sa)} found`)];if(sa.length!==2)return[new we(_a,sa,`array length 2 expected, length ${sa.length} found`)];if(Ot){if(Ms(sa[0])!=="object")return[new we(_a,sa,`object expected, ${Ms(sa[0])} found`)];if(sa[0].zoom===void 0)return[new we(_a,sa,"object stop key must have zoom")];if(sa[0].value===void 0)return[new we(_a,sa,"object stop key must have value")];if(Ne&&Ne>Gs(sa[0].zoom))return[new we(_a,sa[0].zoom,"stop zoom values must appear in ascending order")];Gs(sa[0].zoom)!==Ne&&(Ne=Gs(sa[0].zoom),Ee=void 0,qe={}),Yr=Yr.concat(wu({key:`${_a}[0]`,value:sa[0],valueSpec:{zoom:{}},validateSpec:Fr.validateSpec,style:Fr.style,styleSpec:Fr.styleSpec,objectElementValidators:{zoom:Ws,value:Sr}}))}else Yr=Yr.concat(Sr({key:`${_a}[0]`,value:sa[0],validateSpec:Fr.validateSpec,style:Fr.style,styleSpec:Fr.styleSpec},sa));return tc(nu(sa[1]))?Yr.concat([new we(`${_a}[1]`,sa[1],"expressions are not allowed in function stops.")]):Yr.concat(Fr.validateSpec({key:`${_a}[1]`,value:sa[1],valueSpec:D,validateSpec:Fr.validateSpec,style:Fr.style,styleSpec:Fr.styleSpec}))}function Sr(Fr,Yr){const sa=Ms(Fr.value),_a=Gs(Fr.value),Wa=Fr.value!==null?Fr.value:Yr;if(ve){if(sa!==ve)return[new we(Fr.key,Wa,`${sa} stop domain type must match previous stop domain type ${ve}`)]}else ve=sa;if(sa!=="number"&&sa!=="string"&&sa!=="boolean")return[new we(Fr.key,Wa,"stop domain value must be a number, string, or boolean")];if(sa!=="number"&&K!=="categorical"){let zn=`number expected, ${sa} found`;return Ml(D)&&K===void 0&&(zn+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new we(Fr.key,Wa,zn)]}return K!=="categorical"||sa!=="number"||isFinite(_a)&&Math.floor(_a)===_a?K!=="categorical"&&sa==="number"&&Ee!==void 0&&_anew we(`${W.key}${ve.key}`,W.value,ve.message));const K=D.value.expression||D.value._styleExpression.expression;if(W.expressionContext==="property"&&W.propertyKey==="text-font"&&!K.outputDefined())return[new we(W.key,W.value,`Invalid data expression for "${W.propertyKey}". Output values must be contained as literals within the expression.`)];if(W.expressionContext==="property"&&W.propertyType==="layout"&&!bu(K))return[new we(W.key,W.value,'"feature-state" data expressions are not supported with layout properties.')];if(W.expressionContext==="filter"&&!bu(K))return[new we(W.key,W.value,'"feature-state" data expressions are not supported with filters.')];if(W.expressionContext&&W.expressionContext.indexOf("cluster")===0){if(!$c(K,["zoom","feature-state"]))return[new we(W.key,W.value,'"zoom" and "feature-state" expressions are not supported with cluster properties.')];if(W.expressionContext==="cluster-initial"&&!Hc(K))return[new we(W.key,W.value,"Feature data expressions are not supported with initial expression part of cluster properties.")]}return[]}function hu(W){const D=W.key,K=W.value,ve=W.valueSpec,Ee=[];return Array.isArray(ve.values)?ve.values.indexOf(Gs(K))===-1&&Ee.push(new we(D,K,`expected one of [${ve.values.join(", ")}], ${JSON.stringify(K)} found`)):Object.keys(ve.values).indexOf(Gs(K))===-1&&Ee.push(new we(D,K,`expected one of [${Object.keys(ve.values).join(", ")}], ${JSON.stringify(K)} found`)),Ee}function Mc(W){return Pu(nu(W.value))?ac(he({},W,{expressionContext:"filter",valueSpec:{value:"boolean"}})):Iu(W)}function Iu(W){const D=W.value,K=W.key;if(Ms(D)!=="array")return[new we(K,D,`array expected, ${Ms(D)} found`)];const ve=W.styleSpec;let Ee,Ne=[];if(D.length<1)return[new we(K,D,"filter array must have at least 1 element")];switch(Ne=Ne.concat(hu({key:`${K}[0]`,value:D[0],valueSpec:ve.filter_operator,style:W.style,styleSpec:W.styleSpec})),Gs(D[0])){case"<":case"<=":case">":case">=":D.length>=2&&Gs(D[1])==="$type"&&Ne.push(new we(K,D,`"$type" cannot be use with operator "${D[0]}"`));case"==":case"!=":D.length!==3&&Ne.push(new we(K,D,`filter array for operator "${D[0]}" must have 3 elements`));case"in":case"!in":D.length>=2&&(Ee=Ms(D[1]),Ee!=="string"&&Ne.push(new we(`${K}[1]`,D[1],`string expected, ${Ee} found`)));for(let qe=2;qe{Ot in K&&D.push(new we(ve,K[Ot],`"${Ot}" is prohibited for ref layers`))}),Ee.layers.forEach(Ot=>{Gs(Ot.id)===ut&&(wt=Ot)}),wt?wt.ref?D.push(new we(ve,K.ref,"ref cannot reference another ref layer")):qe=Gs(wt.type):D.push(new we(ve,K.ref,`ref layer "${ut}" not found`))}else if(qe!=="background")if(K.source){const wt=Ee.sources&&Ee.sources[K.source],Ot=wt&&Gs(wt.type);wt?Ot==="vector"&&qe==="raster"?D.push(new we(ve,K.source,`layer "${K.id}" requires a raster source`)):Ot!=="raster-dem"&&qe==="hillshade"?D.push(new we(ve,K.source,`layer "${K.id}" requires a raster-dem source`)):Ot==="raster"&&qe!=="raster"?D.push(new we(ve,K.source,`layer "${K.id}" requires a vector source`)):Ot!=="vector"||K["source-layer"]?Ot==="raster-dem"&&qe!=="hillshade"?D.push(new we(ve,K.source,"raster-dem source can only be used with layer type 'hillshade'.")):qe!=="line"||!K.paint||!K.paint["line-gradient"]||Ot==="geojson"&&wt.lineMetrics||D.push(new we(ve,K,`layer "${K.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)):D.push(new we(ve,K,`layer "${K.id}" must specify a "source-layer"`)):D.push(new we(ve,K.source,`source "${K.source}" not found`))}else D.push(new we(ve,K,'missing required property "source"'));return D=D.concat(wu({key:ve,value:K,valueSpec:Ne.layer,style:W.style,styleSpec:W.styleSpec,validateSpec:W.validateSpec,objectElementValidators:{"*":()=>[],type:()=>W.validateSpec({key:`${ve}.type`,value:K.type,valueSpec:Ne.layer.type,style:W.style,styleSpec:W.styleSpec,validateSpec:W.validateSpec,object:K,objectKey:"type"}),filter:Mc,layout:wt=>wu({layer:K,key:wt.key,value:wt.value,style:wt.style,styleSpec:wt.styleSpec,validateSpec:wt.validateSpec,objectElementValidators:{"*":Ot=>Fl(he({layerType:qe},Ot))}}),paint:wt=>wu({layer:K,key:wt.key,value:wt.value,style:wt.style,styleSpec:wt.styleSpec,validateSpec:wt.validateSpec,objectElementValidators:{"*":Ot=>wf(he({layerType:qe},Ot))}})}})),D}function vu(W){const D=W.value,K=W.key,ve=Ms(D);return ve!=="string"?[new we(K,D,`string expected, ${ve} found`)]:[]}const Wu={promoteId:function({key:W,value:D}){if(Ms(D)==="string")return vu({key:W,value:D});{const K=[];for(const ve in D)K.push(...vu({key:`${W}.${ve}`,value:D[ve]}));return K}}};function Ru(W){const D=W.value,K=W.key,ve=W.styleSpec,Ee=W.style,Ne=W.validateSpec;if(!D.type)return[new we(K,D,'"type" is required')];const qe=Gs(D.type);let ut;switch(qe){case"vector":case"raster":return ut=wu({key:K,value:D,valueSpec:ve[`source_${qe.replace("-","_")}`],style:W.style,styleSpec:ve,objectElementValidators:Wu,validateSpec:Ne}),ut;case"raster-dem":return ut=function(wt){var Ot;const ar=(Ot=wt.sourceName)!==null&&Ot!==void 0?Ot:"",lr=wt.value,Sr=wt.styleSpec,Fr=Sr.source_raster_dem,Yr=wt.style;let sa=[];const _a=Ms(lr);if(lr===void 0)return sa;if(_a!=="object")return sa.push(new we("source_raster_dem",lr,`object expected, ${_a} found`)),sa;const Wa=Gs(lr.encoding)==="custom",zn=["redFactor","greenFactor","blueFactor","baseShift"],vn=wt.value.encoding?`"${wt.value.encoding}"`:"Default";for(const Cn in lr)!Wa&&zn.includes(Cn)?sa.push(new we(Cn,lr[Cn],`In "${ar}": "${Cn}" is only valid when "encoding" is set to "custom". ${vn} encoding found`)):Fr[Cn]?sa=sa.concat(wt.validateSpec({key:Cn,value:lr[Cn],valueSpec:Fr[Cn],validateSpec:wt.validateSpec,style:Yr,styleSpec:Sr})):sa.push(new we(Cn,lr[Cn],`unknown property "${Cn}"`));return sa}({sourceName:K,value:D,style:W.style,styleSpec:ve,validateSpec:Ne}),ut;case"geojson":if(ut=wu({key:K,value:D,valueSpec:ve.source_geojson,style:Ee,styleSpec:ve,validateSpec:Ne,objectElementValidators:Wu}),D.cluster)for(const wt in D.clusterProperties){const[Ot,ar]=D.clusterProperties[wt],lr=typeof Ot=="string"?[Ot,["accumulated"],["get",wt]]:Ot;ut.push(...ac({key:`${K}.${wt}.map`,value:ar,expressionContext:"cluster-map"})),ut.push(...ac({key:`${K}.${wt}.reduce`,value:lr,expressionContext:"cluster-reduce"}))}return ut;case"video":return wu({key:K,value:D,valueSpec:ve.source_video,style:Ee,validateSpec:Ne,styleSpec:ve});case"image":return wu({key:K,value:D,valueSpec:ve.source_image,style:Ee,validateSpec:Ne,styleSpec:ve});case"canvas":return[new we(K,null,"Please use runtime APIs to add canvas sources, rather than including them in stylesheets.","source.canvas")];default:return hu({key:`${K}.type`,value:D.type,valueSpec:{values:["vector","raster","raster-dem","geojson","video","image"]}})}}function al(W){const D=W.value,K=W.styleSpec,ve=K.light,Ee=W.style;let Ne=[];const qe=Ms(D);if(D===void 0)return Ne;if(qe!=="object")return Ne=Ne.concat([new we("light",D,`object expected, ${qe} found`)]),Ne;for(const ut in D){const wt=ut.match(/^(.*)-transition$/);Ne=Ne.concat(wt&&ve[wt[1]]&&ve[wt[1]].transition?W.validateSpec({key:ut,value:D[ut],valueSpec:K.transition,validateSpec:W.validateSpec,style:Ee,styleSpec:K}):ve[ut]?W.validateSpec({key:ut,value:D[ut],valueSpec:ve[ut],validateSpec:W.validateSpec,style:Ee,styleSpec:K}):[new we(ut,D[ut],`unknown property "${ut}"`)])}return Ne}function Yl(W){const D=W.value,K=W.styleSpec,ve=K.sky,Ee=W.style,Ne=Ms(D);if(D===void 0)return[];if(Ne!=="object")return[new we("sky",D,`object expected, ${Ne} found`)];let qe=[];for(const ut in D)qe=qe.concat(ve[ut]?W.validateSpec({key:ut,value:D[ut],valueSpec:ve[ut],style:Ee,styleSpec:K}):[new we(ut,D[ut],`unknown property "${ut}"`)]);return qe}function Ks(W){const D=W.value,K=W.styleSpec,ve=K.terrain,Ee=W.style;let Ne=[];const qe=Ms(D);if(D===void 0)return Ne;if(qe!=="object")return Ne=Ne.concat([new we("terrain",D,`object expected, ${qe} found`)]),Ne;for(const ut in D)Ne=Ne.concat(ve[ut]?W.validateSpec({key:ut,value:D[ut],valueSpec:ve[ut],validateSpec:W.validateSpec,style:Ee,styleSpec:K}):[new we(ut,D[ut],`unknown property "${ut}"`)]);return Ne}function nc(W){let D=[];const K=W.value,ve=W.key;if(Array.isArray(K)){const Ee=[],Ne=[];for(const qe in K)K[qe].id&&Ee.includes(K[qe].id)&&D.push(new we(ve,K,`all the sprites' ids must be unique, but ${K[qe].id} is duplicated`)),Ee.push(K[qe].id),K[qe].url&&Ne.includes(K[qe].url)&&D.push(new we(ve,K,`all the sprites' URLs must be unique, but ${K[qe].url} is duplicated`)),Ne.push(K[qe].url),D=D.concat(wu({key:`${ve}[${qe}]`,value:K[qe],valueSpec:{id:{type:"string",required:!0},url:{type:"string",required:!0}},validateSpec:W.validateSpec}));return D}return vu({key:ve,value:K})}const Du={"*":()=>[],array:Xc,boolean:function(W){const D=W.value,K=W.key,ve=Ms(D);return ve!=="boolean"?[new we(K,D,`boolean expected, ${ve} found`)]:[]},number:Ws,color:function(W){const D=W.key,K=W.value,ve=Ms(K);return ve!=="string"?[new we(D,K,`color expected, ${ve} found`)]:Ht.parse(String(K))?[]:[new we(D,K,`color expected, "${K}" found`)]},constants:gc,enum:hu,filter:Mc,function:Sc,layer:tf,object:wu,source:Ru,light:al,sky:Yl,terrain:Ks,projection:function(W){const D=W.value,K=W.styleSpec,ve=K.projection,Ee=W.style,Ne=Ms(D);if(D===void 0)return[];if(Ne!=="object")return[new we("projection",D,`object expected, ${Ne} found`)];let qe=[];for(const ut in D)qe=qe.concat(ve[ut]?W.validateSpec({key:ut,value:D[ut],valueSpec:ve[ut],style:Ee,styleSpec:K}):[new we(ut,D[ut],`unknown property "${ut}"`)]);return qe},string:vu,formatted:function(W){return vu(W).length===0?[]:ac(W)},resolvedImage:function(W){return vu(W).length===0?[]:ac(W)},padding:function(W){const D=W.key,K=W.value;if(Ms(K)==="array"){if(K.length<1||K.length>4)return[new we(D,K,`padding requires 1 to 4 values; ${K.length} values found`)];const ve={type:"number"};let Ee=[];for(let Ne=0;Ne[]}})),W.constants&&(K=K.concat(gc({key:"constants",value:W.constants}))),Vr(K)}function $r(W){return function(D){return W(pv(Od({},D),{validateSpec:Zc}))}}function Vr(W){return[].concat(W).sort((D,K)=>D.line-K.line)}function ma(W){return function(...D){return Vr(W.apply(this,D))}}yr.source=ma($r(Ru)),yr.sprite=ma($r(nc)),yr.glyphs=ma($r(Qt)),yr.light=ma($r(al)),yr.sky=ma($r(Yl)),yr.terrain=ma($r(Ks)),yr.layer=ma($r(tf)),yr.filter=ma($r(Mc)),yr.paintProperty=ma($r(wf)),yr.layoutProperty=ma($r(Fl));const tn=yr,Ja=tn.light,Ln=tn.sky,On=tn.paintProperty,Qn=tn.layoutProperty;function _n(W,D){let K=!1;if(D&&D.length)for(const ve of D)W.fire(new V(new Error(ve.message))),K=!0;return K}class qn{constructor(D,K,ve){const Ee=this.cells=[];if(D instanceof ArrayBuffer){this.arrayBuffer=D;const qe=new Int32Array(this.arrayBuffer);D=qe[0],this.d=(K=qe[1])+2*(ve=qe[2]);for(let wt=0;wt=lr[Yr+0]&&Ee>=lr[Yr+1])?(ut[Fr]=!0,qe.push(ar[Fr])):ut[Fr]=!1}}}}_forEachCell(D,K,ve,Ee,Ne,qe,ut,wt){const Ot=this._convertToCellCoord(D),ar=this._convertToCellCoord(K),lr=this._convertToCellCoord(ve),Sr=this._convertToCellCoord(Ee);for(let Fr=Ot;Fr<=lr;Fr++)for(let Yr=ar;Yr<=Sr;Yr++){const sa=this.d*Yr+Fr;if((!wt||wt(this._convertFromCellCoord(Fr),this._convertFromCellCoord(Yr),this._convertFromCellCoord(Fr+1),this._convertFromCellCoord(Yr+1)))&&Ne.call(this,D,K,ve,Ee,sa,qe,ut,wt))return}}_convertFromCellCoord(D){return(D-this.padding)/this.scale}_convertToCellCoord(D){return Math.max(0,Math.min(this.d-1,Math.floor(D*this.scale)+this.padding))}toArrayBuffer(){if(this.arrayBuffer)return this.arrayBuffer;const D=this.cells,K=3+this.cells.length+1+1;let ve=0;for(let qe=0;qe=0)continue;const qe=W[Ne];Ee[Ne]=En[K].shallow.indexOf(Ne)>=0?qe:Zi(qe,D)}W instanceof Error&&(Ee.message=W.message)}if(Ee.$name)throw new Error("$name property is reserved for worker serialization logic.");return K!=="Object"&&(Ee.$name=K),Ee}function Wi(W){if(Fi(W))return W;if(Array.isArray(W))return W.map(Wi);if(typeof W!="object")throw new Error("can't deserialize object of type "+typeof W);const D=Hi(W)||"Object";if(!En[D])throw new Error(`can't deserialize unregistered class ${D}`);const{klass:K}=En[D];if(!K)throw new Error(`can't deserialize unregistered class ${D}`);if(K.deserialize)return K.deserialize(W);const ve=Object.create(K.prototype);for(const Ee of Object.keys(W)){if(Ee==="$name")continue;const Ne=W[Ee];ve[Ee]=En[D].shallow.indexOf(Ee)>=0?Ne:Wi(Ne)}return ve}class ii{constructor(){this.first=!0}update(D,K){const ve=Math.floor(D);return this.first?(this.first=!1,this.lastIntegerZoom=ve,this.lastIntegerZoomTime=0,this.lastZoom=D,this.lastFloorZoom=ve,!0):(this.lastFloorZoom>ve?(this.lastIntegerZoom=ve+1,this.lastIntegerZoomTime=K):this.lastFloorZoomW>=128&&W<=255,"Hangul Jamo":W=>W>=4352&&W<=4607,Khmer:W=>W>=6016&&W<=6143,"General Punctuation":W=>W>=8192&&W<=8303,"Letterlike Symbols":W=>W>=8448&&W<=8527,"Number Forms":W=>W>=8528&&W<=8591,"Miscellaneous Technical":W=>W>=8960&&W<=9215,"Control Pictures":W=>W>=9216&&W<=9279,"Optical Character Recognition":W=>W>=9280&&W<=9311,"Enclosed Alphanumerics":W=>W>=9312&&W<=9471,"Geometric Shapes":W=>W>=9632&&W<=9727,"Miscellaneous Symbols":W=>W>=9728&&W<=9983,"Miscellaneous Symbols and Arrows":W=>W>=11008&&W<=11263,"Ideographic Description Characters":W=>W>=12272&&W<=12287,"CJK Symbols and Punctuation":W=>W>=12288&&W<=12351,Katakana:W=>W>=12448&&W<=12543,Kanbun:W=>W>=12688&&W<=12703,"CJK Strokes":W=>W>=12736&&W<=12783,"Enclosed CJK Letters and Months":W=>W>=12800&&W<=13055,"CJK Compatibility":W=>W>=13056&&W<=13311,"Yijing Hexagram Symbols":W=>W>=19904&&W<=19967,"Private Use Area":W=>W>=57344&&W<=63743,"Vertical Forms":W=>W>=65040&&W<=65055,"CJK Compatibility Forms":W=>W>=65072&&W<=65103,"Small Form Variants":W=>W>=65104&&W<=65135,"Halfwidth and Fullwidth Forms":W=>W>=65280&&W<=65519};function ao(W){for(const D of W)if(Yo(D.charCodeAt(0)))return!0;return!1}function Fo(W){for(const D of W)if(!vs(D.charCodeAt(0)))return!1;return!0}function hs(W){const D=W.map(K=>{try{return new RegExp(`\\p{sc=${K}}`,"u").source}catch{return null}}).filter(K=>K);return new RegExp(D.join("|"),"u")}const Is=hs(["Arab","Dupl","Mong","Ougr","Syrc"]);function vs(W){return!Is.test(String.fromCodePoint(W))}const Rs=hs(["Bopo","Hani","Hira","Kana","Kits","Nshu","Tang","Yiii"]);function Yo(W){return!(W!==746&&W!==747&&(W<4352||!(Wn["CJK Compatibility Forms"](W)&&!(W>=65097&&W<=65103)||Wn["CJK Compatibility"](W)||Wn["CJK Strokes"](W)||!(!Wn["CJK Symbols and Punctuation"](W)||W>=12296&&W<=12305||W>=12308&&W<=12319||W===12336)||Wn["Enclosed CJK Letters and Months"](W)||Wn["Ideographic Description Characters"](W)||Wn.Kanbun(W)||Wn.Katakana(W)&&W!==12540||!(!Wn["Halfwidth and Fullwidth Forms"](W)||W===65288||W===65289||W===65293||W>=65306&&W<=65310||W===65339||W===65341||W===65343||W>=65371&&W<=65503||W===65507||W>=65512&&W<=65519)||!(!Wn["Small Form Variants"](W)||W>=65112&&W<=65118||W>=65123&&W<=65126)||Wn["Vertical Forms"](W)||Wn["Yijing Hexagram Symbols"](W)||new RegExp("\\p{sc=Cans}","u").test(String.fromCodePoint(W))||new RegExp("\\p{sc=Hang}","u").test(String.fromCodePoint(W))||Rs.test(String.fromCodePoint(W)))))}function sl(W){return!(Yo(W)||function(D){return!!(Wn["Latin-1 Supplement"](D)&&(D===167||D===169||D===174||D===177||D===188||D===189||D===190||D===215||D===247)||Wn["General Punctuation"](D)&&(D===8214||D===8224||D===8225||D===8240||D===8241||D===8251||D===8252||D===8258||D===8263||D===8264||D===8265||D===8273)||Wn["Letterlike Symbols"](D)||Wn["Number Forms"](D)||Wn["Miscellaneous Technical"](D)&&(D>=8960&&D<=8967||D>=8972&&D<=8991||D>=8996&&D<=9e3||D===9003||D>=9085&&D<=9114||D>=9150&&D<=9165||D===9167||D>=9169&&D<=9179||D>=9186&&D<=9215)||Wn["Control Pictures"](D)&&D!==9251||Wn["Optical Character Recognition"](D)||Wn["Enclosed Alphanumerics"](D)||Wn["Geometric Shapes"](D)||Wn["Miscellaneous Symbols"](D)&&!(D>=9754&&D<=9759)||Wn["Miscellaneous Symbols and Arrows"](D)&&(D>=11026&&D<=11055||D>=11088&&D<=11097||D>=11192&&D<=11243)||Wn["CJK Symbols and Punctuation"](D)||Wn.Katakana(D)||Wn["Private Use Area"](D)||Wn["CJK Compatibility Forms"](D)||Wn["Small Form Variants"](D)||Wn["Halfwidth and Fullwidth Forms"](D)||D===8734||D===8756||D===8757||D>=9984&&D<=10087||D>=10102&&D<=10131||D===65532||D===65533)}(W))}const nl=hs(["Adlm","Arab","Armi","Avst","Chrs","Cprt","Egyp","Elym","Gara","Hatr","Hebr","Hung","Khar","Lydi","Mand","Mani","Mend","Merc","Mero","Narb","Nbat","Nkoo","Orkh","Palm","Phli","Phlp","Phnx","Prti","Rohg","Samr","Sarb","Sogo","Syrc","Thaa","Todr","Yezi"]);function Ls(W){return nl.test(String.fromCodePoint(W))}function wi(W,D){return!(!D&&Ls(W)||W>=2304&&W<=3583||W>=3840&&W<=4255||Wn.Khmer(W))}function go(W){for(const D of W)if(Ls(D.charCodeAt(0)))return!0;return!1}const ws=new class{constructor(){this.applyArabicShaping=null,this.processBidirectionalText=null,this.processStyledBidirectionalText=null,this.pluginStatus="unavailable",this.pluginURL=null}setState(W){this.pluginStatus=W.pluginStatus,this.pluginURL=W.pluginURL}getState(){return{pluginStatus:this.pluginStatus,pluginURL:this.pluginURL}}setMethods(W){this.applyArabicShaping=W.applyArabicShaping,this.processBidirectionalText=W.processBidirectionalText,this.processStyledBidirectionalText=W.processStyledBidirectionalText}isParsed(){return this.applyArabicShaping!=null&&this.processBidirectionalText!=null&&this.processStyledBidirectionalText!=null}getPluginURL(){return this.pluginURL}getRTLTextPluginStatus(){return this.pluginStatus}};class os{constructor(D,K){this.zoom=D,K?(this.now=K.now,this.fadeDuration=K.fadeDuration,this.zoomHistory=K.zoomHistory,this.transition=K.transition):(this.now=0,this.fadeDuration=0,this.zoomHistory=new ii,this.transition={})}isSupportedScript(D){return function(K,ve){for(const Ee of K)if(!wi(Ee.charCodeAt(0),ve))return!1;return!0}(D,ws.getRTLTextPluginStatus()==="loaded")}crossFadingFactor(){return this.fadeDuration===0?1:Math.min((this.now-this.zoomHistory.lastIntegerZoomTime)/this.fadeDuration,1)}getCrossfadeParameters(){const D=this.zoom,K=D-Math.floor(D),ve=this.crossFadingFactor();return D>this.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:K+(1-K)*ve}:{fromScale:.5,toScale:1,t:1-(1-ve)*K}}}class Hl{constructor(D,K){this.property=D,this.value=K,this.expression=function(ve,Ee){if(Lc(ve))return new Ys(ve,Ee);if(tc(ve)){const Ne=au(ve,Ee);if(Ne.result==="error")throw new Error(Ne.value.map(qe=>`${qe.key}: ${qe.message}`).join(", "));return Ne.value}{let Ne=ve;return Ee.type==="color"&&typeof ve=="string"?Ne=Ht.parse(ve):Ee.type!=="padding"||typeof ve!="number"&&!Array.isArray(ve)?Ee.type==="variableAnchorOffsetCollection"&&Array.isArray(ve)&&(Ne=Da.parse(ve)):Ne=Gr.parse(ve),{kind:"constant",evaluate:()=>Ne}}}(K===void 0?D.specification.default:K,D.specification)}isDataDriven(){return this.expression.kind==="source"||this.expression.kind==="composite"}possiblyEvaluate(D,K,ve){return this.property.possiblyEvaluate(this,D,K,ve)}}class Wl{constructor(D){this.property=D,this.value=new Hl(D,void 0)}transitioned(D,K){return new uc(this.property,this.value,K,M({},D.transition,this.transition),D.now)}untransitioned(){return new uc(this.property,this.value,null,{},0)}}class $l{constructor(D){this._properties=D,this._values=Object.create(D.defaultTransitionablePropertyValues)}getValue(D){return u(this._values[D].value.value)}setValue(D,K){Object.prototype.hasOwnProperty.call(this._values,D)||(this._values[D]=new Wl(this._values[D].property)),this._values[D].value=new Hl(this._values[D].property,K===null?void 0:u(K))}getTransition(D){return u(this._values[D].transition)}setTransition(D,K){Object.prototype.hasOwnProperty.call(this._values,D)||(this._values[D]=new Wl(this._values[D].property)),this._values[D].transition=u(K)||void 0}serialize(){const D={};for(const K of Object.keys(this._values)){const ve=this.getValue(K);ve!==void 0&&(D[K]=ve);const Ee=this.getTransition(K);Ee!==void 0&&(D[`${K}-transition`]=Ee)}return D}transitioned(D,K){const ve=new Xl(this._properties);for(const Ee of Object.keys(this._values))ve._values[Ee]=this._values[Ee].transitioned(D,K._values[Ee]);return ve}untransitioned(){const D=new Xl(this._properties);for(const K of Object.keys(this._values))D._values[K]=this._values[K].untransitioned();return D}}class uc{constructor(D,K,ve,Ee,Ne){this.property=D,this.value=K,this.begin=Ne+Ee.delay||0,this.end=this.begin+Ee.duration||0,D.specification.transition&&(Ee.delay||Ee.duration)&&(this.prior=ve)}possiblyEvaluate(D,K,ve){const Ee=D.now||0,Ne=this.value.possiblyEvaluate(D,K,ve),qe=this.prior;if(qe){if(Ee>this.end)return this.prior=null,Ne;if(this.value.isDataDriven())return this.prior=null,Ne;if(Ee=1)return 1;const Ot=wt*wt,ar=Ot*wt;return 4*(wt<.5?ar:3*(wt-Ot)+ar-.75)}(ut))}}return Ne}}class Xl{constructor(D){this._properties=D,this._values=Object.create(D.defaultTransitioningPropertyValues)}possiblyEvaluate(D,K,ve){const Ee=new Zu(this._properties);for(const Ne of Object.keys(this._values))Ee._values[Ne]=this._values[Ne].possiblyEvaluate(D,K,ve);return Ee}hasTransition(){for(const D of Object.keys(this._values))if(this._values[D].prior)return!0;return!1}}class Xu{constructor(D){this._properties=D,this._values=Object.create(D.defaultPropertyValues)}hasValue(D){return this._values[D].value!==void 0}getValue(D){return u(this._values[D].value)}setValue(D,K){this._values[D]=new Hl(this._values[D].property,K===null?void 0:u(K))}serialize(){const D={};for(const K of Object.keys(this._values)){const ve=this.getValue(K);ve!==void 0&&(D[K]=ve)}return D}possiblyEvaluate(D,K,ve){const Ee=new Zu(this._properties);for(const Ne of Object.keys(this._values))Ee._values[Ne]=this._values[Ne].possiblyEvaluate(D,K,ve);return Ee}}class ll{constructor(D,K,ve){this.property=D,this.value=K,this.parameters=ve}isConstant(){return this.value.kind==="constant"}constantOr(D){return this.value.kind==="constant"?this.value.value:D}evaluate(D,K,ve,Ee){return this.property.evaluate(this.value,this.parameters,D,K,ve,Ee)}}class Zu{constructor(D){this._properties=D,this._values=Object.create(D.defaultPossiblyEvaluatedValues)}get(D){return this._values[D]}}class Yi{constructor(D){this.specification=D}possiblyEvaluate(D,K){if(D.isDataDriven())throw new Error("Value should not be data driven");return D.expression.evaluate(K)}interpolate(D,K,ve){const Ee=Li[this.specification.type];return Ee?Ee(D,K,ve):D}}class io{constructor(D,K){this.specification=D,this.overrides=K}possiblyEvaluate(D,K,ve,Ee){return new ll(this,D.expression.kind==="constant"||D.expression.kind==="camera"?{kind:"constant",value:D.expression.evaluate(K,null,{},ve,Ee)}:D.expression,K)}interpolate(D,K,ve){if(D.value.kind!=="constant"||K.value.kind!=="constant")return D;if(D.value.value===void 0||K.value.value===void 0)return new ll(this,{kind:"constant",value:void 0},D.parameters);const Ee=Li[this.specification.type];if(Ee){const Ne=Ee(D.value.value,K.value.value,ve);return new ll(this,{kind:"constant",value:Ne},D.parameters)}return D}evaluate(D,K,ve,Ee,Ne,qe){return D.kind==="constant"?D.value:D.evaluate(K,ve,Ee,Ne,qe)}}class Yu extends io{possiblyEvaluate(D,K,ve,Ee){if(D.value===void 0)return new ll(this,{kind:"constant",value:void 0},K);if(D.expression.kind==="constant"){const Ne=D.expression.evaluate(K,null,{},ve,Ee),qe=D.property.specification.type==="resolvedImage"&&typeof Ne!="string"?Ne.name:Ne,ut=this._calculate(qe,qe,qe,K);return new ll(this,{kind:"constant",value:ut},K)}if(D.expression.kind==="camera"){const Ne=this._calculate(D.expression.evaluate({zoom:K.zoom-1}),D.expression.evaluate({zoom:K.zoom}),D.expression.evaluate({zoom:K.zoom+1}),K);return new ll(this,{kind:"constant",value:Ne},K)}return new ll(this,D.expression,K)}evaluate(D,K,ve,Ee,Ne,qe){if(D.kind==="source"){const ut=D.evaluate(K,ve,Ee,Ne,qe);return this._calculate(ut,ut,ut,K)}return D.kind==="composite"?this._calculate(D.evaluate({zoom:Math.floor(K.zoom)-1},ve,Ee),D.evaluate({zoom:Math.floor(K.zoom)},ve,Ee),D.evaluate({zoom:Math.floor(K.zoom)+1},ve,Ee),K):D.value}_calculate(D,K,ve,Ee){return Ee.zoom>Ee.zoomHistory.lastIntegerZoom?{from:D,to:K}:{from:ve,to:K}}interpolate(D){return D}}class du{constructor(D){this.specification=D}possiblyEvaluate(D,K,ve,Ee){if(D.value!==void 0){if(D.expression.kind==="constant"){const Ne=D.expression.evaluate(K,null,{},ve,Ee);return this._calculate(Ne,Ne,Ne,K)}return this._calculate(D.expression.evaluate(new os(Math.floor(K.zoom-1),K)),D.expression.evaluate(new os(Math.floor(K.zoom),K)),D.expression.evaluate(new os(Math.floor(K.zoom+1),K)),K)}}_calculate(D,K,ve,Ee){return Ee.zoom>Ee.zoomHistory.lastIntegerZoom?{from:D,to:K}:{from:ve,to:K}}interpolate(D){return D}}class iu{constructor(D){this.specification=D}possiblyEvaluate(D,K,ve,Ee){return!!D.expression.evaluate(K,null,{},ve,Ee)}interpolate(){return!1}}class ze{constructor(D){this.properties=D,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[];for(const K in D){const ve=D[K];ve.specification.overridable&&this.overridableProperties.push(K);const Ee=this.defaultPropertyValues[K]=new Hl(ve,void 0),Ne=this.defaultTransitionablePropertyValues[K]=new Wl(ve);this.defaultTransitioningPropertyValues[K]=Ne.untransitioned(),this.defaultPossiblyEvaluatedValues[K]=Ee.possiblyEvaluate({})}}}dn("DataDrivenProperty",io),dn("DataConstantProperty",Yi),dn("CrossFadedDataDrivenProperty",Yu),dn("CrossFadedProperty",du),dn("ColorRampProperty",iu);const L="-transition";class ne extends re{constructor(D,K){if(super(),this.id=D.id,this.type=D.type,this._featureFilter={filter:()=>!0,needGeometry:!1},D.type!=="custom"&&(this.metadata=D.metadata,this.minzoom=D.minzoom,this.maxzoom=D.maxzoom,D.type!=="background"&&(this.source=D.source,this.sourceLayer=D["source-layer"],this.filter=D.filter),K.layout&&(this._unevaluatedLayout=new Xu(K.layout)),K.paint)){this._transitionablePaint=new $l(K.paint);for(const ve in D.paint)this.setPaintProperty(ve,D.paint[ve],{validate:!1});for(const ve in D.layout)this.setLayoutProperty(ve,D.layout[ve],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new Zu(K.paint)}}getCrossfadeParameters(){return this._crossfadeParameters}getLayoutProperty(D){return D==="visibility"?this.visibility:this._unevaluatedLayout.getValue(D)}setLayoutProperty(D,K,ve={}){K!=null&&this._validate(Qn,`layers.${this.id}.layout.${D}`,D,K,ve)||(D!=="visibility"?this._unevaluatedLayout.setValue(D,K):this.visibility=K)}getPaintProperty(D){return D.endsWith(L)?this._transitionablePaint.getTransition(D.slice(0,-11)):this._transitionablePaint.getValue(D)}setPaintProperty(D,K,ve={}){if(K!=null&&this._validate(On,`layers.${this.id}.paint.${D}`,D,K,ve))return!1;if(D.endsWith(L))return this._transitionablePaint.setTransition(D.slice(0,-11),K||void 0),!1;{const Ee=this._transitionablePaint._values[D],Ne=Ee.property.specification["property-type"]==="cross-faded-data-driven",qe=Ee.value.isDataDriven(),ut=Ee.value;this._transitionablePaint.setValue(D,K),this._handleSpecialPaintPropertyUpdate(D);const wt=this._transitionablePaint._values[D].value;return wt.isDataDriven()||qe||Ne||this._handleOverridablePaintPropertyUpdate(D,ut,wt)}}_handleSpecialPaintPropertyUpdate(D){}_handleOverridablePaintPropertyUpdate(D,K,ve){return!1}isHidden(D){return!!(this.minzoom&&D=this.maxzoom)||this.visibility==="none"}updateTransitions(D){this._transitioningPaint=this._transitionablePaint.transitioned(D,this._transitioningPaint)}hasTransition(){return this._transitioningPaint.hasTransition()}recalculate(D,K){D.getCrossfadeParameters&&(this._crossfadeParameters=D.getCrossfadeParameters()),this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(D,void 0,K)),this.paint=this._transitioningPaint.possiblyEvaluate(D,void 0,K)}serialize(){const D={id:this.id,type:this.type,source:this.source,"source-layer":this.sourceLayer,metadata:this.metadata,minzoom:this.minzoom,maxzoom:this.maxzoom,filter:this.filter,layout:this._unevaluatedLayout&&this._unevaluatedLayout.serialize(),paint:this._transitionablePaint&&this._transitionablePaint.serialize()};return this.visibility&&(D.layout=D.layout||{},D.layout.visibility=this.visibility),d(D,(K,ve)=>!(K===void 0||ve==="layout"&&!Object.keys(K).length||ve==="paint"&&!Object.keys(K).length))}_validate(D,K,ve,Ee,Ne={}){return(!Ne||Ne.validate!==!1)&&_n(this,D.call(tn,{key:K,layerType:this.type,objectKey:ve,value:Ee,styleSpec:ae,style:{glyphs:!0,sprite:!0}}))}is3D(){return!1}isTileClipped(){return!1}hasOffscreenPass(){return!1}resize(){}isStateDependent(){for(const D in this.paint._values){const K=this.paint.get(D);if(K instanceof ll&&Ml(K.property.specification)&&(K.value.kind==="source"||K.value.kind==="composite")&&K.value.isStateDependent)return!0}return!1}}const Te={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array};class Se{constructor(D,K){this._structArray=D,this._pos1=K*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8}}class Re{constructor(){this.isTransferred=!1,this.capacity=-1,this.resize(0)}static serialize(D,K){return D._trim(),K&&(D.isTransferred=!0,K.push(D.arrayBuffer)),{length:D.length,arrayBuffer:D.arrayBuffer}}static deserialize(D){const K=Object.create(this.prototype);return K.arrayBuffer=D.arrayBuffer,K.length=D.length,K.capacity=D.arrayBuffer.byteLength/K.bytesPerElement,K._refreshViews(),K}_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(D){this.reserve(D),this.length=D}reserve(D){if(D>this.capacity){this.capacity=Math.max(D,Math.floor(5*this.capacity),128),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);const K=this.uint8;this._refreshViews(),K&&this.uint8.set(K)}}_refreshViews(){throw new Error("_refreshViews() must be implemented by each concrete StructArray layout")}}function ft(W,D=1){let K=0,ve=0;return{members:W.map(Ee=>{const Ne=Te[Ee.type].BYTES_PER_ELEMENT,qe=K=xt(K,Math.max(D,Ne)),ut=Ee.components||1;return ve=Math.max(ve,Ne),K+=Ne*ut,{name:Ee.name,type:Ee.type,components:ut,offset:qe}}),size:xt(K,Math.max(ve,D)),alignment:D}}function xt(W,D){return Math.ceil(W/D)*D}class Dt extends Re{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(D,K){const ve=this.length;return this.resize(ve+1),this.emplace(ve,D,K)}emplace(D,K,ve){const Ee=2*D;return this.int16[Ee+0]=K,this.int16[Ee+1]=ve,D}}Dt.prototype.bytesPerElement=4,dn("StructArrayLayout2i4",Dt);class er extends Re{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(D,K,ve){const Ee=this.length;return this.resize(Ee+1),this.emplace(Ee,D,K,ve)}emplace(D,K,ve,Ee){const Ne=3*D;return this.int16[Ne+0]=K,this.int16[Ne+1]=ve,this.int16[Ne+2]=Ee,D}}er.prototype.bytesPerElement=6,dn("StructArrayLayout3i6",er);class fr extends Re{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(D,K,ve,Ee){const Ne=this.length;return this.resize(Ne+1),this.emplace(Ne,D,K,ve,Ee)}emplace(D,K,ve,Ee,Ne){const qe=4*D;return this.int16[qe+0]=K,this.int16[qe+1]=ve,this.int16[qe+2]=Ee,this.int16[qe+3]=Ne,D}}fr.prototype.bytesPerElement=8,dn("StructArrayLayout4i8",fr);class pr extends Re{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(D,K,ve,Ee,Ne,qe){const ut=this.length;return this.resize(ut+1),this.emplace(ut,D,K,ve,Ee,Ne,qe)}emplace(D,K,ve,Ee,Ne,qe,ut){const wt=6*D;return this.int16[wt+0]=K,this.int16[wt+1]=ve,this.int16[wt+2]=Ee,this.int16[wt+3]=Ne,this.int16[wt+4]=qe,this.int16[wt+5]=ut,D}}pr.prototype.bytesPerElement=12,dn("StructArrayLayout2i4i12",pr);class Br extends Re{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(D,K,ve,Ee,Ne,qe){const ut=this.length;return this.resize(ut+1),this.emplace(ut,D,K,ve,Ee,Ne,qe)}emplace(D,K,ve,Ee,Ne,qe,ut){const wt=4*D,Ot=8*D;return this.int16[wt+0]=K,this.int16[wt+1]=ve,this.uint8[Ot+4]=Ee,this.uint8[Ot+5]=Ne,this.uint8[Ot+6]=qe,this.uint8[Ot+7]=ut,D}}Br.prototype.bytesPerElement=8,dn("StructArrayLayout2i4ub8",Br);class ea extends Re{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(D,K){const ve=this.length;return this.resize(ve+1),this.emplace(ve,D,K)}emplace(D,K,ve){const Ee=2*D;return this.float32[Ee+0]=K,this.float32[Ee+1]=ve,D}}ea.prototype.bytesPerElement=8,dn("StructArrayLayout2f8",ea);class Ve extends Re{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(D,K,ve,Ee,Ne,qe,ut,wt,Ot,ar){const lr=this.length;return this.resize(lr+1),this.emplace(lr,D,K,ve,Ee,Ne,qe,ut,wt,Ot,ar)}emplace(D,K,ve,Ee,Ne,qe,ut,wt,Ot,ar,lr){const Sr=10*D;return this.uint16[Sr+0]=K,this.uint16[Sr+1]=ve,this.uint16[Sr+2]=Ee,this.uint16[Sr+3]=Ne,this.uint16[Sr+4]=qe,this.uint16[Sr+5]=ut,this.uint16[Sr+6]=wt,this.uint16[Sr+7]=Ot,this.uint16[Sr+8]=ar,this.uint16[Sr+9]=lr,D}}Ve.prototype.bytesPerElement=20,dn("StructArrayLayout10ui20",Ve);class Ye extends Re{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(D,K,ve,Ee,Ne,qe,ut,wt,Ot,ar,lr,Sr){const Fr=this.length;return this.resize(Fr+1),this.emplace(Fr,D,K,ve,Ee,Ne,qe,ut,wt,Ot,ar,lr,Sr)}emplace(D,K,ve,Ee,Ne,qe,ut,wt,Ot,ar,lr,Sr,Fr){const Yr=12*D;return this.int16[Yr+0]=K,this.int16[Yr+1]=ve,this.int16[Yr+2]=Ee,this.int16[Yr+3]=Ne,this.uint16[Yr+4]=qe,this.uint16[Yr+5]=ut,this.uint16[Yr+6]=wt,this.uint16[Yr+7]=Ot,this.int16[Yr+8]=ar,this.int16[Yr+9]=lr,this.int16[Yr+10]=Sr,this.int16[Yr+11]=Fr,D}}Ye.prototype.bytesPerElement=24,dn("StructArrayLayout4i4ui4i24",Ye);class it extends Re{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(D,K,ve){const Ee=this.length;return this.resize(Ee+1),this.emplace(Ee,D,K,ve)}emplace(D,K,ve,Ee){const Ne=3*D;return this.float32[Ne+0]=K,this.float32[Ne+1]=ve,this.float32[Ne+2]=Ee,D}}it.prototype.bytesPerElement=12,dn("StructArrayLayout3f12",it);class vt extends Re{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)}emplaceBack(D){const K=this.length;return this.resize(K+1),this.emplace(K,D)}emplace(D,K){return this.uint32[1*D+0]=K,D}}vt.prototype.bytesPerElement=4,dn("StructArrayLayout1ul4",vt);class St extends Re{_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(D,K,ve,Ee,Ne,qe,ut,wt,Ot){const ar=this.length;return this.resize(ar+1),this.emplace(ar,D,K,ve,Ee,Ne,qe,ut,wt,Ot)}emplace(D,K,ve,Ee,Ne,qe,ut,wt,Ot,ar){const lr=10*D,Sr=5*D;return this.int16[lr+0]=K,this.int16[lr+1]=ve,this.int16[lr+2]=Ee,this.int16[lr+3]=Ne,this.int16[lr+4]=qe,this.int16[lr+5]=ut,this.uint32[Sr+3]=wt,this.uint16[lr+8]=Ot,this.uint16[lr+9]=ar,D}}St.prototype.bytesPerElement=20,dn("StructArrayLayout6i1ul2ui20",St);class _t extends Re{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(D,K,ve,Ee,Ne,qe){const ut=this.length;return this.resize(ut+1),this.emplace(ut,D,K,ve,Ee,Ne,qe)}emplace(D,K,ve,Ee,Ne,qe,ut){const wt=6*D;return this.int16[wt+0]=K,this.int16[wt+1]=ve,this.int16[wt+2]=Ee,this.int16[wt+3]=Ne,this.int16[wt+4]=qe,this.int16[wt+5]=ut,D}}_t.prototype.bytesPerElement=12,dn("StructArrayLayout2i2i2i12",_t);class Lt extends Re{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(D,K,ve,Ee,Ne){const qe=this.length;return this.resize(qe+1),this.emplace(qe,D,K,ve,Ee,Ne)}emplace(D,K,ve,Ee,Ne,qe){const ut=4*D,wt=8*D;return this.float32[ut+0]=K,this.float32[ut+1]=ve,this.float32[ut+2]=Ee,this.int16[wt+6]=Ne,this.int16[wt+7]=qe,D}}Lt.prototype.bytesPerElement=16,dn("StructArrayLayout2f1f2i16",Lt);class nr extends Re{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(D,K,ve,Ee,Ne,qe){const ut=this.length;return this.resize(ut+1),this.emplace(ut,D,K,ve,Ee,Ne,qe)}emplace(D,K,ve,Ee,Ne,qe,ut){const wt=16*D,Ot=4*D,ar=8*D;return this.uint8[wt+0]=K,this.uint8[wt+1]=ve,this.float32[Ot+1]=Ee,this.float32[Ot+2]=Ne,this.int16[ar+6]=qe,this.int16[ar+7]=ut,D}}nr.prototype.bytesPerElement=16,dn("StructArrayLayout2ub2f2i16",nr);class cr extends Re{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(D,K,ve){const Ee=this.length;return this.resize(Ee+1),this.emplace(Ee,D,K,ve)}emplace(D,K,ve,Ee){const Ne=3*D;return this.uint16[Ne+0]=K,this.uint16[Ne+1]=ve,this.uint16[Ne+2]=Ee,D}}cr.prototype.bytesPerElement=6,dn("StructArrayLayout3ui6",cr);class gr extends Re{_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(D,K,ve,Ee,Ne,qe,ut,wt,Ot,ar,lr,Sr,Fr,Yr,sa,_a,Wa){const zn=this.length;return this.resize(zn+1),this.emplace(zn,D,K,ve,Ee,Ne,qe,ut,wt,Ot,ar,lr,Sr,Fr,Yr,sa,_a,Wa)}emplace(D,K,ve,Ee,Ne,qe,ut,wt,Ot,ar,lr,Sr,Fr,Yr,sa,_a,Wa,zn){const vn=24*D,Cn=12*D,$n=48*D;return this.int16[vn+0]=K,this.int16[vn+1]=ve,this.uint16[vn+2]=Ee,this.uint16[vn+3]=Ne,this.uint32[Cn+2]=qe,this.uint32[Cn+3]=ut,this.uint32[Cn+4]=wt,this.uint16[vn+10]=Ot,this.uint16[vn+11]=ar,this.uint16[vn+12]=lr,this.float32[Cn+7]=Sr,this.float32[Cn+8]=Fr,this.uint8[$n+36]=Yr,this.uint8[$n+37]=sa,this.uint8[$n+38]=_a,this.uint32[Cn+10]=Wa,this.int16[vn+22]=zn,D}}gr.prototype.bytesPerElement=48,dn("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48",gr);class Cr extends Re{_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(D,K,ve,Ee,Ne,qe,ut,wt,Ot,ar,lr,Sr,Fr,Yr,sa,_a,Wa,zn,vn,Cn,$n,gi,Ji,as,oo,$i,Ro,To){const _o=this.length;return this.resize(_o+1),this.emplace(_o,D,K,ve,Ee,Ne,qe,ut,wt,Ot,ar,lr,Sr,Fr,Yr,sa,_a,Wa,zn,vn,Cn,$n,gi,Ji,as,oo,$i,Ro,To)}emplace(D,K,ve,Ee,Ne,qe,ut,wt,Ot,ar,lr,Sr,Fr,Yr,sa,_a,Wa,zn,vn,Cn,$n,gi,Ji,as,oo,$i,Ro,To,_o){const li=32*D,jo=16*D;return this.int16[li+0]=K,this.int16[li+1]=ve,this.int16[li+2]=Ee,this.int16[li+3]=Ne,this.int16[li+4]=qe,this.int16[li+5]=ut,this.int16[li+6]=wt,this.int16[li+7]=Ot,this.uint16[li+8]=ar,this.uint16[li+9]=lr,this.uint16[li+10]=Sr,this.uint16[li+11]=Fr,this.uint16[li+12]=Yr,this.uint16[li+13]=sa,this.uint16[li+14]=_a,this.uint16[li+15]=Wa,this.uint16[li+16]=zn,this.uint16[li+17]=vn,this.uint16[li+18]=Cn,this.uint16[li+19]=$n,this.uint16[li+20]=gi,this.uint16[li+21]=Ji,this.uint16[li+22]=as,this.uint32[jo+12]=oo,this.float32[jo+13]=$i,this.float32[jo+14]=Ro,this.uint16[li+30]=To,this.uint16[li+31]=_o,D}}Cr.prototype.bytesPerElement=64,dn("StructArrayLayout8i15ui1ul2f2ui64",Cr);class Wr extends Re{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(D){const K=this.length;return this.resize(K+1),this.emplace(K,D)}emplace(D,K){return this.float32[1*D+0]=K,D}}Wr.prototype.bytesPerElement=4,dn("StructArrayLayout1f4",Wr);class ua extends Re{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(D,K,ve){const Ee=this.length;return this.resize(Ee+1),this.emplace(Ee,D,K,ve)}emplace(D,K,ve,Ee){const Ne=3*D;return this.uint16[6*D+0]=K,this.float32[Ne+1]=ve,this.float32[Ne+2]=Ee,D}}ua.prototype.bytesPerElement=12,dn("StructArrayLayout1ui2f12",ua);class va extends Re{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(D,K,ve){const Ee=this.length;return this.resize(Ee+1),this.emplace(Ee,D,K,ve)}emplace(D,K,ve,Ee){const Ne=4*D;return this.uint32[2*D+0]=K,this.uint16[Ne+2]=ve,this.uint16[Ne+3]=Ee,D}}va.prototype.bytesPerElement=8,dn("StructArrayLayout1ul2ui8",va);class Ma extends Re{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(D,K){const ve=this.length;return this.resize(ve+1),this.emplace(ve,D,K)}emplace(D,K,ve){const Ee=2*D;return this.uint16[Ee+0]=K,this.uint16[Ee+1]=ve,D}}Ma.prototype.bytesPerElement=4,dn("StructArrayLayout2ui4",Ma);class en extends Re{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(D){const K=this.length;return this.resize(K+1),this.emplace(K,D)}emplace(D,K){return this.uint16[1*D+0]=K,D}}en.prototype.bytesPerElement=2,dn("StructArrayLayout1ui2",en);class Pn extends Re{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(D,K,ve,Ee){const Ne=this.length;return this.resize(Ne+1),this.emplace(Ne,D,K,ve,Ee)}emplace(D,K,ve,Ee,Ne){const qe=4*D;return this.float32[qe+0]=K,this.float32[qe+1]=ve,this.float32[qe+2]=Ee,this.float32[qe+3]=Ne,D}}Pn.prototype.bytesPerElement=16,dn("StructArrayLayout4f16",Pn);class Tn extends Se{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 o(this.anchorPointX,this.anchorPointY)}}Tn.prototype.size=20;class In extends St{get(D){return new Tn(this,D)}}dn("CollisionBoxArray",In);class oi extends Se{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(D){this._structArray.uint8[this._pos1+37]=D}get hidden(){return this._structArray.uint8[this._pos1+38]}set hidden(D){this._structArray.uint8[this._pos1+38]=D}get crossTileID(){return this._structArray.uint32[this._pos4+10]}set crossTileID(D){this._structArray.uint32[this._pos4+10]=D}get associatedIconIndex(){return this._structArray.int16[this._pos2+22]}}oi.prototype.size=48;class Si extends gr{get(D){return new oi(this,D)}}dn("PlacedSymbolArray",Si);class _i extends Se{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(D){this._structArray.uint32[this._pos4+12]=D}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]}}_i.prototype.size=64;class Ki extends Cr{get(D){return new _i(this,D)}}dn("SymbolInstanceArray",Ki);class Go extends Wr{getoffsetX(D){return this.float32[1*D+0]}}dn("GlyphOffsetArray",Go);class Ho extends er{getx(D){return this.int16[3*D+0]}gety(D){return this.int16[3*D+1]}gettileUnitDistanceFromAnchor(D){return this.int16[3*D+2]}}dn("SymbolLineVertexArray",Ho);class Ao extends Se{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]}}Ao.prototype.size=12;class Ko extends ua{get(D){return new Ao(this,D)}}dn("TextAnchorOffsetArray",Ko);class Js extends Se{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]}}Js.prototype.size=8;class Hs extends va{get(D){return new Js(this,D)}}dn("FeatureIndexArray",Hs);class ko extends Dt{}class Co extends Dt{}class fl extends Dt{}class Dl extends pr{}class ou extends Br{}class pe extends ea{}class Le extends Ve{}class $e extends Ye{}class dt extends it{}class gt extends vt{}class Tt extends _t{}class Vt extends nr{}class jt extends cr{}class sr extends Ma{}const Pr=ft([{name:"a_pos",components:2,type:"Int16"}],4),{members:kr}=Pr;class Zr{constructor(D=[]){this.segments=D}prepareSegment(D,K,ve,Ee){let Ne=this.segments[this.segments.length-1];return D>Zr.MAX_VERTEX_ARRAY_LENGTH&&y(`Max vertices per segment is ${Zr.MAX_VERTEX_ARRAY_LENGTH}: bucket requested ${D}`),(!Ne||Ne.vertexLength+D>Zr.MAX_VERTEX_ARRAY_LENGTH||Ne.sortKey!==Ee)&&(Ne={vertexOffset:K.length,primitiveOffset:ve.length,vertexLength:0,primitiveLength:0},Ee!==void 0&&(Ne.sortKey=Ee),this.segments.push(Ne)),Ne}get(){return this.segments}destroy(){for(const D of this.segments)for(const K in D.vaos)D.vaos[K].destroy()}static simpleSegment(D,K,ve,Ee){return new Zr([{vertexOffset:D,primitiveOffset:K,vertexLength:ve,primitiveLength:Ee,vaos:{},sortKey:0}])}}function la(W,D){return 256*(W=w(Math.floor(W),0,255))+w(Math.floor(D),0,255)}Zr.MAX_VERTEX_ARRAY_LENGTH=Math.pow(2,16)-1,dn("SegmentVector",Zr);const ca=ft([{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"}]);var nn={exports:{}},pa={exports:{}};pa.exports=function(W,D){var K,ve,Ee,Ne,qe,ut,wt,Ot;for(ve=W.length-(K=3&W.length),Ee=D,qe=3432918353,ut=461845907,Ot=0;Ot>>16)*qe&65535)<<16)&4294967295)<<15|wt>>>17))*ut+(((wt>>>16)*ut&65535)<<16)&4294967295)<<13|Ee>>>19))+((5*(Ee>>>16)&65535)<<16)&4294967295))+((58964+(Ne>>>16)&65535)<<16);switch(wt=0,K){case 3:wt^=(255&W.charCodeAt(Ot+2))<<16;case 2:wt^=(255&W.charCodeAt(Ot+1))<<8;case 1:Ee^=wt=(65535&(wt=(wt=(65535&(wt^=255&W.charCodeAt(Ot)))*qe+(((wt>>>16)*qe&65535)<<16)&4294967295)<<15|wt>>>17))*ut+(((wt>>>16)*ut&65535)<<16)&4294967295}return Ee^=W.length,Ee=2246822507*(65535&(Ee^=Ee>>>16))+((2246822507*(Ee>>>16)&65535)<<16)&4294967295,Ee=3266489909*(65535&(Ee^=Ee>>>13))+((3266489909*(Ee>>>16)&65535)<<16)&4294967295,(Ee^=Ee>>>16)>>>0};var Pa=pa.exports,Na={exports:{}};Na.exports=function(W,D){for(var K,ve=W.length,Ee=D^ve,Ne=0;ve>=4;)K=1540483477*(65535&(K=255&W.charCodeAt(Ne)|(255&W.charCodeAt(++Ne))<<8|(255&W.charCodeAt(++Ne))<<16|(255&W.charCodeAt(++Ne))<<24))+((1540483477*(K>>>16)&65535)<<16),Ee=1540483477*(65535&Ee)+((1540483477*(Ee>>>16)&65535)<<16)^(K=1540483477*(65535&(K^=K>>>24))+((1540483477*(K>>>16)&65535)<<16)),ve-=4,++Ne;switch(ve){case 3:Ee^=(255&W.charCodeAt(Ne+2))<<16;case 2:Ee^=(255&W.charCodeAt(Ne+1))<<8;case 1:Ee=1540483477*(65535&(Ee^=255&W.charCodeAt(Ne)))+((1540483477*(Ee>>>16)&65535)<<16)}return Ee=1540483477*(65535&(Ee^=Ee>>>13))+((1540483477*(Ee>>>16)&65535)<<16),(Ee^=Ee>>>15)>>>0};var rn=Pa,sn=Na.exports;nn.exports=rn,nn.exports.murmur3=rn,nn.exports.murmur2=sn;var Ba=r(nn.exports);class Rn{constructor(){this.ids=[],this.positions=[],this.indexed=!1}add(D,K,ve,Ee){this.ids.push(ni(D)),this.positions.push(K,ve,Ee)}getPositions(D){if(!this.indexed)throw new Error("Trying to get index, but feature positions are not indexed");const K=ni(D);let ve=0,Ee=this.ids.length-1;for(;ve>1;this.ids[qe]>=K?Ee=qe:ve=qe+1}const Ne=[];for(;this.ids[ve]===K;)Ne.push({index:this.positions[3*ve],start:this.positions[3*ve+1],end:this.positions[3*ve+2]}),ve++;return Ne}static serialize(D,K){const ve=new Float64Array(D.ids),Ee=new Uint32Array(D.positions);return Zn(ve,Ee,0,ve.length-1),K&&K.push(ve.buffer,Ee.buffer),{ids:ve,positions:Ee}}static deserialize(D){const K=new Rn;return K.ids=D.ids,K.positions=D.positions,K.indexed=!0,K}}function ni(W){const D=+W;return!isNaN(D)&&D<=Number.MAX_SAFE_INTEGER?D:Ba(String(W))}function Zn(W,D,K,ve){for(;K>1];let Ne=K-1,qe=ve+1;for(;;){do Ne++;while(W[Ne]Ee);if(Ne>=qe)break;ri(W,Ne,qe),ri(D,3*Ne,3*qe),ri(D,3*Ne+1,3*qe+1),ri(D,3*Ne+2,3*qe+2)}qe-K`u_${Ee}`),this.type=ve}setUniform(D,K,ve){D.set(ve.constantOr(this.value))}getBinding(D,K,ve){return this.type==="color"?new Ii(D,K):new ki(D,K)}}class Ns{constructor(D,K){this.uniformNames=K.map(ve=>`u_${ve}`),this.patternFrom=null,this.patternTo=null,this.pixelRatioFrom=1,this.pixelRatioTo=1}setConstantPatternPositions(D,K){this.pixelRatioFrom=K.pixelRatio,this.pixelRatioTo=D.pixelRatio,this.patternFrom=K.tlbr,this.patternTo=D.tlbr}setUniform(D,K,ve,Ee){const Ne=Ee==="u_pattern_to"?this.patternTo:Ee==="u_pattern_from"?this.patternFrom:Ee==="u_pixel_ratio_to"?this.pixelRatioTo:Ee==="u_pixel_ratio_from"?this.pixelRatioFrom:null;Ne&&D.set(Ne)}getBinding(D,K,ve){return ve.substr(0,9)==="u_pattern"?new Vo(D,K):new ki(D,K)}}class di{constructor(D,K,ve,Ee){this.expression=D,this.type=ve,this.maxValue=0,this.paintVertexAttributes=K.map(Ne=>({name:`a_${Ne}`,type:"Float32",components:ve==="color"?2:1,offset:0})),this.paintVertexArray=new Ee}populatePaintArray(D,K,ve,Ee,Ne){const qe=this.paintVertexArray.length,ut=this.expression.evaluate(new os(0),K,{},Ee,[],Ne);this.paintVertexArray.resize(D),this._setPaintValue(qe,D,ut)}updatePaintArray(D,K,ve,Ee){const Ne=this.expression.evaluate({zoom:0},ve,Ee);this._setPaintValue(D,K,Ne)}_setPaintValue(D,K,ve){if(this.type==="color"){const Ee=$o(ve);for(let Ne=D;Ne`u_${ut}_t`),this.type=ve,this.useIntegerZoom=Ee,this.zoom=Ne,this.maxValue=0,this.paintVertexAttributes=K.map(ut=>({name:`a_${ut}`,type:"Float32",components:ve==="color"?4:2,offset:0})),this.paintVertexArray=new qe}populatePaintArray(D,K,ve,Ee,Ne){const qe=this.expression.evaluate(new os(this.zoom),K,{},Ee,[],Ne),ut=this.expression.evaluate(new os(this.zoom+1),K,{},Ee,[],Ne),wt=this.paintVertexArray.length;this.paintVertexArray.resize(D),this._setPaintValue(wt,D,qe,ut)}updatePaintArray(D,K,ve,Ee){const Ne=this.expression.evaluate({zoom:this.zoom},ve,Ee),qe=this.expression.evaluate({zoom:this.zoom+1},ve,Ee);this._setPaintValue(D,K,Ne,qe)}_setPaintValue(D,K,ve,Ee){if(this.type==="color"){const Ne=$o(ve),qe=$o(Ee);for(let ut=D;ut`#define HAS_UNIFORM_${Ee}`))}return D}getBinderAttributes(){const D=[];for(const K in this.binders){const ve=this.binders[K];if(ve instanceof di||ve instanceof Lo)for(let Ee=0;Ee!0){this.programConfigurations={};for(const Ee of D)this.programConfigurations[Ee.id]=new Ds(Ee,K,ve);this.needsUpload=!1,this._featureMap=new Rn,this._bufferOffset=0}populatePaintArrays(D,K,ve,Ee,Ne,qe){for(const ut in this.programConfigurations)this.programConfigurations[ut].populatePaintArrays(D,K,Ee,Ne,qe);K.id!==void 0&&this._featureMap.add(K.id,ve,this._bufferOffset,D),this._bufferOffset=D,this.needsUpload=!0}updatePaintArrays(D,K,ve,Ee){for(const Ne of ve)this.needsUpload=this.programConfigurations[Ne.id].updatePaintArrays(D,this._featureMap,K,Ne,Ee)||this.needsUpload}get(D){return this.programConfigurations[D]}upload(D){if(this.needsUpload){for(const K in this.programConfigurations)this.programConfigurations[K].upload(D);this.needsUpload=!1}}destroy(){for(const D in this.programConfigurations)this.programConfigurations[D].destroy()}}function Kl(W,D){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-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"]}[W]||[W.replace(`${D}-`,"").replace(/-/g,"_")]}function ds(W,D,K){const ve={color:{source:ea,composite:Pn},number:{source:Wr,composite:ea}},Ee=function(Ne){return{"line-pattern":{source:Le,composite:Le},"fill-pattern":{source:Le,composite:Le},"fill-extrusion-pattern":{source:Le,composite:Le}}[Ne]}(W);return Ee&&Ee[K]||ve[D][K]}dn("ConstantBinder",hl),dn("CrossFadedConstantBinder",Ns),dn("SourceExpressionBinder",di),dn("CrossFadedCompositeBinder",Wo),dn("CompositeExpressionBinder",Lo),dn("ProgramConfiguration",Ds,{omit:["_buffers"]}),dn("ProgramConfigurationSet",Ts);const zs=8192,pu=Math.pow(2,14)-1,ul=-pu-1;function lt(W){const D=zs/W.extent,K=W.loadGeometry();for(let ve=0;veqe.x+1||wtqe.y+1)&&y("Geometry exceeds allowed extent, reduce your vector tile buffer size")}}return K}function ir(W,D){return{type:W.type,id:W.id,properties:W.properties,geometry:D?lt(W):[]}}function ur(W,D,K,ve,Ee){W.emplaceBack(2*D+(ve+1)/2,2*K+(Ee+1)/2)}class fa{constructor(D){this.zoom=D.zoom,this.overscaling=D.overscaling,this.layers=D.layers,this.layerIds=this.layers.map(K=>K.id),this.index=D.index,this.hasPattern=!1,this.layoutVertexArray=new Co,this.indexArray=new jt,this.segments=new Zr,this.programConfigurations=new Ts(D.layers,D.zoom),this.stateDependentLayerIds=this.layers.filter(K=>K.isStateDependent()).map(K=>K.id)}populate(D,K,ve){const Ee=this.layers[0],Ne=[];let qe=null,ut=!1;Ee.type==="circle"&&(qe=Ee.layout.get("circle-sort-key"),ut=!qe.isConstant());for(const{feature:wt,id:Ot,index:ar,sourceLayerIndex:lr}of D){const Sr=this.layers[0]._featureFilter.needGeometry,Fr=ir(wt,Sr);if(!this.layers[0]._featureFilter.filter(new os(this.zoom),Fr,ve))continue;const Yr=ut?qe.evaluate(Fr,{},ve):void 0,sa={id:Ot,properties:wt.properties,type:wt.type,sourceLayerIndex:lr,index:ar,geometry:Sr?Fr.geometry:lt(wt),patterns:{},sortKey:Yr};Ne.push(sa)}ut&&Ne.sort((wt,Ot)=>wt.sortKey-Ot.sortKey);for(const wt of Ne){const{geometry:Ot,index:ar,sourceLayerIndex:lr}=wt,Sr=D[ar].feature;this.addFeature(wt,Ot,ar,ve),K.featureIndex.insert(Sr,Ot,ar,lr,this.index)}}update(D,K,ve){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(D,K,this.stateDependentLayers,ve)}isEmpty(){return this.layoutVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(D){this.uploaded||(this.layoutVertexBuffer=D.createVertexBuffer(this.layoutVertexArray,kr),this.indexBuffer=D.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(D),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}addFeature(D,K,ve,Ee){for(const Ne of K)for(const qe of Ne){const ut=qe.x,wt=qe.y;if(ut<0||ut>=zs||wt<0||wt>=zs)continue;const Ot=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,D.sortKey),ar=Ot.vertexLength;ur(this.layoutVertexArray,ut,wt,-1,-1),ur(this.layoutVertexArray,ut,wt,1,-1),ur(this.layoutVertexArray,ut,wt,1,1),ur(this.layoutVertexArray,ut,wt,-1,1),this.indexArray.emplaceBack(ar,ar+1,ar+2),this.indexArray.emplaceBack(ar,ar+3,ar+2),Ot.vertexLength+=4,Ot.primitiveLength+=2}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,D,ve,{},Ee)}}function Va(W,D){for(let K=0;K1){if(ln(W,D))return!0;for(let ve=0;ve1?K:K.sub(D)._mult(Ee)._add(D))}function jn(W,D){let K,ve,Ee,Ne=!1;for(let qe=0;qeD.y!=Ee.y>D.y&&D.x<(Ee.x-ve.x)*(D.y-ve.y)/(Ee.y-ve.y)+ve.x&&(Ne=!Ne)}return Ne}function xn(W,D){let K=!1;for(let ve=0,Ee=W.length-1;veD.y!=qe.y>D.y&&D.x<(qe.x-Ne.x)*(D.y-Ne.y)/(qe.y-Ne.y)+Ne.x&&(K=!K)}return K}function Za(W,D,K){const ve=K[0],Ee=K[2];if(W.xEe.x&&D.x>Ee.x||W.yEe.y&&D.y>Ee.y)return!1;const Ne=R(W,D,K[0]);return Ne!==R(W,D,K[1])||Ne!==R(W,D,K[2])||Ne!==R(W,D,K[3])}function Ur(W,D,K){const ve=D.paint.get(W).value;return ve.kind==="constant"?ve.value:K.programConfigurations.get(D.id).getMaxValue(W)}function ya(W){return Math.sqrt(W[0]*W[0]+W[1]*W[1])}function Ra(W,D,K,ve,Ee){if(!D[0]&&!D[1])return W;const Ne=o.convert(D)._mult(Ee);K==="viewport"&&Ne._rotate(-ve);const qe=[];for(let ut=0;utYn(_a,sa))}(Ot,wt),Fr=lr?ar*ut:ar;for(const Yr of Ee)for(const sa of Yr){const _a=lr?sa:Yn(sa,wt);let Wa=Fr;const zn=An([],[sa.x,sa.y,0,1],wt);if(this.paint.get("circle-pitch-scale")==="viewport"&&this.paint.get("circle-pitch-alignment")==="map"?Wa*=zn[3]/qe.cameraToCenterDistance:this.paint.get("circle-pitch-scale")==="map"&&this.paint.get("circle-pitch-alignment")==="viewport"&&(Wa*=qe.cameraToCenterDistance/zn[3]),Jr(Sr,_a,Wa))return!0}return!1}}function Yn(W,D){const K=An([],[W.x,W.y,0,1],D);return new o(K[0]/K[3],K[1]/K[3])}class Pi extends fa{}let Vn;dn("HeatmapBucket",Pi,{omit:["layers"]});var ei={get paint(){return Vn=Vn||new ze({"heatmap-radius":new io(ae.paint_heatmap["heatmap-radius"]),"heatmap-weight":new io(ae.paint_heatmap["heatmap-weight"]),"heatmap-intensity":new Yi(ae.paint_heatmap["heatmap-intensity"]),"heatmap-color":new iu(ae.paint_heatmap["heatmap-color"]),"heatmap-opacity":new Yi(ae.paint_heatmap["heatmap-opacity"])})}};function bn(W,{width:D,height:K},ve,Ee){if(Ee){if(Ee instanceof Uint8ClampedArray)Ee=new Uint8Array(Ee.buffer);else if(Ee.length!==D*K*ve)throw new RangeError(`mismatched image size. expected: ${Ee.length} but got: ${D*K*ve}`)}else Ee=new Uint8Array(D*K*ve);return W.width=D,W.height=K,W.data=Ee,W}function Mi(W,{width:D,height:K},ve){if(D===W.width&&K===W.height)return;const Ee=bn({},{width:D,height:K},ve);Xi(W,Ee,{x:0,y:0},{x:0,y:0},{width:Math.min(W.width,D),height:Math.min(W.height,K)},ve),W.width=D,W.height=K,W.data=Ee.data}function Xi(W,D,K,ve,Ee,Ne){if(Ee.width===0||Ee.height===0)return D;if(Ee.width>W.width||Ee.height>W.height||K.x>W.width-Ee.width||K.y>W.height-Ee.height)throw new RangeError("out of range source coordinates for image copy");if(Ee.width>D.width||Ee.height>D.height||ve.x>D.width-Ee.width||ve.y>D.height-Ee.height)throw new RangeError("out of range destination coordinates for image copy");const qe=W.data,ut=D.data;if(qe===ut)throw new Error("srcData equals dstData, so image is already copied");for(let wt=0;wt{D[W.evaluationKey]=wt;const Ot=W.expression.evaluate(D);Ee.data[qe+ut+0]=Math.floor(255*Ot.r/Ot.a),Ee.data[qe+ut+1]=Math.floor(255*Ot.g/Ot.a),Ee.data[qe+ut+2]=Math.floor(255*Ot.b/Ot.a),Ee.data[qe+ut+3]=Math.floor(255*Ot.a)};if(W.clips)for(let qe=0,ut=0;qe80*K){ut=1/0,wt=1/0;let ar=-1/0,lr=-1/0;for(let Sr=K;Srar&&(ar=Fr),Yr>lr&&(lr=Yr)}Ot=Math.max(ar-ut,lr-wt),Ot=Ot!==0?32767/Ot:0}return Oo(Ne,qe,K,ut,wt,Ot,0),qe}function mi(W,D,K,ve,Ee){let Ne;if(Ee===function(qe,ut,wt,Ot){let ar=0;for(let lr=ut,Sr=wt-Ot;lr0)for(let qe=D;qe=D;qe-=ve)Ne=It(qe/ve|0,W[qe],W[qe+1],Ne);return Ne&&rt(Ne,Ne.next)&&(Nt(Ne),Ne=Ne.next),Ne}function kl(W,D){if(!W)return W;D||(D=W);let K,ve=W;do if(K=!1,ve.steiner||!rt(ve,ve.next)&&Be(ve.prev,ve,ve.next)!==0)ve=ve.next;else{if(Nt(ve),ve=D=ve.prev,ve===ve.next)break;K=!0}while(K||ve!==D);return D}function Oo(W,D,K,ve,Ee,Ne,qe){if(!W)return;!qe&&Ne&&function(wt,Ot,ar,lr){let Sr=wt;do Sr.z===0&&(Sr.z=j(Sr.x,Sr.y,Ot,ar,lr)),Sr.prevZ=Sr.prev,Sr.nextZ=Sr.next,Sr=Sr.next;while(Sr!==wt);Sr.prevZ.nextZ=null,Sr.prevZ=null,function(Fr){let Yr,sa=1;do{let _a,Wa=Fr;Fr=null;let zn=null;for(Yr=0;Wa;){Yr++;let vn=Wa,Cn=0;for(let gi=0;gi0||$n>0&&vn;)Cn!==0&&($n===0||!vn||Wa.z<=vn.z)?(_a=Wa,Wa=Wa.nextZ,Cn--):(_a=vn,vn=vn.nextZ,$n--),zn?zn.nextZ=_a:Fr=_a,_a.prevZ=zn,zn=_a;Wa=vn}zn.nextZ=null,sa*=2}while(Yr>1)}(Sr)}(W,ve,Ee,Ne);let ut=W;for(;W.prev!==W.next;){const wt=W.prev,Ot=W.next;if(Ne?Ol(W,ve,Ee,Ne):As(W))D.push(wt.i,W.i,Ot.i),Nt(W),W=Ot.next,ut=Ot.next;else if((W=Ot)===ut){qe?qe===1?Oo(W=Bl(kl(W),D),D,K,ve,Ee,Ne,2):qe===2&&Ci(W,D,K,ve,Ee,Ne):Oo(kl(W),D,K,ve,Ee,Ne,1);break}}}function As(W){const D=W.prev,K=W,ve=W.next;if(Be(D,K,ve)>=0)return!1;const Ee=D.x,Ne=K.x,qe=ve.x,ut=D.y,wt=K.y,Ot=ve.y,ar=EeNe?Ee>qe?Ee:qe:Ne>qe?Ne:qe,Fr=ut>wt?ut>Ot?ut:Ot:wt>Ot?wt:Ot;let Yr=ve.next;for(;Yr!==D;){if(Yr.x>=ar&&Yr.x<=Sr&&Yr.y>=lr&&Yr.y<=Fr&&$(Ee,ut,Ne,wt,qe,Ot,Yr.x,Yr.y)&&Be(Yr.prev,Yr,Yr.next)>=0)return!1;Yr=Yr.next}return!0}function Ol(W,D,K,ve){const Ee=W.prev,Ne=W,qe=W.next;if(Be(Ee,Ne,qe)>=0)return!1;const ut=Ee.x,wt=Ne.x,Ot=qe.x,ar=Ee.y,lr=Ne.y,Sr=qe.y,Fr=utwt?ut>Ot?ut:Ot:wt>Ot?wt:Ot,_a=ar>lr?ar>Sr?ar:Sr:lr>Sr?lr:Sr,Wa=j(Fr,Yr,D,K,ve),zn=j(sa,_a,D,K,ve);let vn=W.prevZ,Cn=W.nextZ;for(;vn&&vn.z>=Wa&&Cn&&Cn.z<=zn;){if(vn.x>=Fr&&vn.x<=sa&&vn.y>=Yr&&vn.y<=_a&&vn!==Ee&&vn!==qe&&$(ut,ar,wt,lr,Ot,Sr,vn.x,vn.y)&&Be(vn.prev,vn,vn.next)>=0||(vn=vn.prevZ,Cn.x>=Fr&&Cn.x<=sa&&Cn.y>=Yr&&Cn.y<=_a&&Cn!==Ee&&Cn!==qe&&$(ut,ar,wt,lr,Ot,Sr,Cn.x,Cn.y)&&Be(Cn.prev,Cn,Cn.next)>=0))return!1;Cn=Cn.nextZ}for(;vn&&vn.z>=Wa;){if(vn.x>=Fr&&vn.x<=sa&&vn.y>=Yr&&vn.y<=_a&&vn!==Ee&&vn!==qe&&$(ut,ar,wt,lr,Ot,Sr,vn.x,vn.y)&&Be(vn.prev,vn,vn.next)>=0)return!1;vn=vn.prevZ}for(;Cn&&Cn.z<=zn;){if(Cn.x>=Fr&&Cn.x<=sa&&Cn.y>=Yr&&Cn.y<=_a&&Cn!==Ee&&Cn!==qe&&$(ut,ar,wt,lr,Ot,Sr,Cn.x,Cn.y)&&Be(Cn.prev,Cn,Cn.next)>=0)return!1;Cn=Cn.nextZ}return!0}function Bl(W,D){let K=W;do{const ve=K.prev,Ee=K.next.next;!rt(ve,Ee)&&st(ve,K,K.next,Ee)&&pt(ve,Ee)&&pt(Ee,ve)&&(D.push(ve.i,K.i,Ee.i),Nt(K),Nt(K.next),K=W=Ee),K=K.next}while(K!==W);return kl(K)}function Ci(W,D,K,ve,Ee,Ne){let qe=W;do{let ut=qe.next.next;for(;ut!==qe.prev;){if(qe.i!==ut.i&&ge(qe,ut)){let wt=Bt(qe,ut);return qe=kl(qe,qe.next),wt=kl(wt,wt.next),Oo(qe,D,K,ve,Ee,Ne,0),void Oo(wt,D,K,ve,Ee,Ne,0)}ut=ut.next}qe=qe.next}while(qe!==W)}function fo(W,D){return W.x-D.x}function mo(W,D){const K=function(Ee,Ne){let qe=Ne;const ut=Ee.x,wt=Ee.y;let Ot,ar=-1/0;do{if(wt<=qe.y&&wt>=qe.next.y&&qe.next.y!==qe.y){const sa=qe.x+(wt-qe.y)*(qe.next.x-qe.x)/(qe.next.y-qe.y);if(sa<=ut&&sa>ar&&(ar=sa,Ot=qe.x=qe.x&&qe.x>=Sr&&ut!==qe.x&&$(wtOt.x||qe.x===Ot.x&&ye(Ot,qe)))&&(Ot=qe,Yr=sa)}qe=qe.next}while(qe!==lr);return Ot}(W,D);if(!K)return D;const ve=Bt(K,W);return kl(ve,ve.next),kl(K,K.next)}function ye(W,D){return Be(W.prev,W,D.prev)<0&&Be(D.next,W,W.next)<0}function j(W,D,K,ve,Ee){return(W=1431655765&((W=858993459&((W=252645135&((W=16711935&((W=(W-K)*Ee|0)|W<<8))|W<<4))|W<<2))|W<<1))|(D=1431655765&((D=858993459&((D=252645135&((D=16711935&((D=(D-ve)*Ee|0)|D<<8))|D<<4))|D<<2))|D<<1))<<1}function ce(W){let D=W,K=W;do(D.x=(W-qe)*(Ne-ut)&&(W-qe)*(ve-ut)>=(K-qe)*(D-ut)&&(K-qe)*(Ne-ut)>=(Ee-qe)*(ve-ut)}function ge(W,D){return W.next.i!==D.i&&W.prev.i!==D.i&&!function(K,ve){let Ee=K;do{if(Ee.i!==K.i&&Ee.next.i!==K.i&&Ee.i!==ve.i&&Ee.next.i!==ve.i&&st(Ee,Ee.next,K,ve))return!0;Ee=Ee.next}while(Ee!==K);return!1}(W,D)&&(pt(W,D)&&pt(D,W)&&function(K,ve){let Ee=K,Ne=!1;const qe=(K.x+ve.x)/2,ut=(K.y+ve.y)/2;do Ee.y>ut!=Ee.next.y>ut&&Ee.next.y!==Ee.y&&qe<(Ee.next.x-Ee.x)*(ut-Ee.y)/(Ee.next.y-Ee.y)+Ee.x&&(Ne=!Ne),Ee=Ee.next;while(Ee!==K);return Ne}(W,D)&&(Be(W.prev,W,D.prev)||Be(W,D.prev,D))||rt(W,D)&&Be(W.prev,W,W.next)>0&&Be(D.prev,D,D.next)>0)}function Be(W,D,K){return(D.y-W.y)*(K.x-D.x)-(D.x-W.x)*(K.y-D.y)}function rt(W,D){return W.x===D.x&&W.y===D.y}function st(W,D,K,ve){const Ee=Qe(Be(W,D,K)),Ne=Qe(Be(W,D,ve)),qe=Qe(Be(K,ve,W)),ut=Qe(Be(K,ve,D));return Ee!==Ne&&qe!==ut||!(Ee!==0||!Ge(W,K,D))||!(Ne!==0||!Ge(W,ve,D))||!(qe!==0||!Ge(K,W,ve))||!(ut!==0||!Ge(K,D,ve))}function Ge(W,D,K){return D.x<=Math.max(W.x,K.x)&&D.x>=Math.min(W.x,K.x)&&D.y<=Math.max(W.y,K.y)&&D.y>=Math.min(W.y,K.y)}function Qe(W){return W>0?1:W<0?-1:0}function pt(W,D){return Be(W.prev,W,W.next)<0?Be(W,D,W.next)>=0&&Be(W,W.prev,D)>=0:Be(W,D,W.prev)<0||Be(W,W.next,D)<0}function Bt(W,D){const K=Xt(W.i,W.x,W.y),ve=Xt(D.i,D.x,D.y),Ee=W.next,Ne=D.prev;return W.next=D,D.prev=W,K.next=Ee,Ee.prev=K,ve.next=K,K.prev=ve,Ne.next=ve,ve.prev=Ne,ve}function It(W,D,K,ve){const Ee=Xt(W,D,K);return ve?(Ee.next=ve.next,Ee.prev=ve,ve.next.prev=Ee,ve.next=Ee):(Ee.prev=Ee,Ee.next=Ee),Ee}function Nt(W){W.next.prev=W.prev,W.prev.next=W.next,W.prevZ&&(W.prevZ.nextZ=W.nextZ),W.nextZ&&(W.nextZ.prevZ=W.prevZ)}function Xt(W,D,K){return{i:W,x:D,y:K,prev:null,next:null,z:0,prevZ:null,nextZ:null,steiner:!1}}function qt(W,D,K){const ve=K.patternDependencies;let Ee=!1;for(const Ne of D){const qe=Ne.paint.get(`${W}-pattern`);qe.isConstant()||(Ee=!0);const ut=qe.constantOr(null);ut&&(Ee=!0,ve[ut.to]=!0,ve[ut.from]=!0)}return Ee}function Mt(W,D,K,ve,Ee){const Ne=Ee.patternDependencies;for(const qe of D){const ut=qe.paint.get(`${W}-pattern`).value;if(ut.kind!=="constant"){let wt=ut.evaluate({zoom:ve-1},K,{},Ee.availableImages),Ot=ut.evaluate({zoom:ve},K,{},Ee.availableImages),ar=ut.evaluate({zoom:ve+1},K,{},Ee.availableImages);wt=wt&&wt.name?wt.name:wt,Ot=Ot&&Ot.name?Ot.name:Ot,ar=ar&&ar.name?ar.name:ar,Ne[wt]=!0,Ne[Ot]=!0,Ne[ar]=!0,K.patterns[qe.id]={min:wt,mid:Ot,max:ar}}}return K}class Ft{constructor(D){this.zoom=D.zoom,this.overscaling=D.overscaling,this.layers=D.layers,this.layerIds=this.layers.map(K=>K.id),this.index=D.index,this.hasPattern=!1,this.patternFeatures=[],this.layoutVertexArray=new fl,this.indexArray=new jt,this.indexArray2=new sr,this.programConfigurations=new Ts(D.layers,D.zoom),this.segments=new Zr,this.segments2=new Zr,this.stateDependentLayerIds=this.layers.filter(K=>K.isStateDependent()).map(K=>K.id)}populate(D,K,ve){this.hasPattern=qt("fill",this.layers,K);const Ee=this.layers[0].layout.get("fill-sort-key"),Ne=!Ee.isConstant(),qe=[];for(const{feature:ut,id:wt,index:Ot,sourceLayerIndex:ar}of D){const lr=this.layers[0]._featureFilter.needGeometry,Sr=ir(ut,lr);if(!this.layers[0]._featureFilter.filter(new os(this.zoom),Sr,ve))continue;const Fr=Ne?Ee.evaluate(Sr,{},ve,K.availableImages):void 0,Yr={id:wt,properties:ut.properties,type:ut.type,sourceLayerIndex:ar,index:Ot,geometry:lr?Sr.geometry:lt(ut),patterns:{},sortKey:Fr};qe.push(Yr)}Ne&&qe.sort((ut,wt)=>ut.sortKey-wt.sortKey);for(const ut of qe){const{geometry:wt,index:Ot,sourceLayerIndex:ar}=ut;if(this.hasPattern){const lr=Mt("fill",this.layers,ut,this.zoom,K);this.patternFeatures.push(lr)}else this.addFeature(ut,wt,Ot,ve,{});K.featureIndex.insert(D[Ot].feature,wt,Ot,ar,this.index)}}update(D,K,ve){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(D,K,this.stateDependentLayers,ve)}addFeatures(D,K,ve){for(const Ee of this.patternFeatures)this.addFeature(Ee,Ee.geometry,Ee.index,K,ve)}isEmpty(){return this.layoutVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(D){this.uploaded||(this.layoutVertexBuffer=D.createVertexBuffer(this.layoutVertexArray,Us),this.indexBuffer=D.createIndexBuffer(this.indexArray),this.indexBuffer2=D.createIndexBuffer(this.indexArray2)),this.programConfigurations.upload(D),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(D,K,ve,Ee,Ne){for(const qe of Vu(K,500)){let ut=0;for(const Fr of qe)ut+=Fr.length;const wt=this.segments.prepareSegment(ut,this.layoutVertexArray,this.indexArray),Ot=wt.vertexLength,ar=[],lr=[];for(const Fr of qe){if(Fr.length===0)continue;Fr!==qe[0]&&lr.push(ar.length/2);const Yr=this.segments2.prepareSegment(Fr.length,this.layoutVertexArray,this.indexArray2),sa=Yr.vertexLength;this.layoutVertexArray.emplaceBack(Fr[0].x,Fr[0].y),this.indexArray2.emplaceBack(sa+Fr.length-1,sa),ar.push(Fr[0].x),ar.push(Fr[0].y);for(let _a=1;_a>3}if(Ee--,ve===1||ve===2)Ne+=W.readSVarint(),qe+=W.readSVarint(),ve===1&&(D&&ut.push(D),D=[]),D.push(new Ha(Ne,qe));else{if(ve!==7)throw new Error("unknown command "+ve);D&&D.push(D[0].clone())}}return D&&ut.push(D),ut},qa.prototype.bbox=function(){var W=this._pbf;W.pos=this._geometry;for(var D=W.readVarint()+W.pos,K=1,ve=0,Ee=0,Ne=0,qe=1/0,ut=-1/0,wt=1/0,Ot=-1/0;W.pos>3}if(ve--,K===1||K===2)(Ee+=W.readSVarint())ut&&(ut=Ee),(Ne+=W.readSVarint())Ot&&(Ot=Ne);else if(K!==7)throw new Error("unknown command "+K)}return[qe,wt,ut,Ot]},qa.prototype.toGeoJSON=function(W,D,K){var ve,Ee,Ne=this.extent*Math.pow(2,K),qe=this.extent*W,ut=this.extent*D,wt=this.loadGeometry(),Ot=qa.types[this.type];function ar(Fr){for(var Yr=0;Yr>3;Ee=qe===1?ve.readString():qe===2?ve.readFloat():qe===3?ve.readDouble():qe===4?ve.readVarint64():qe===5?ve.readVarint():qe===6?ve.readSVarint():qe===7?ve.readBoolean():null}return Ee}(K))}yo.prototype.feature=function(W){if(W<0||W>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[W];var D=this._pbf.readVarint()+this._pbf.pos;return new Gn(this._pbf,D,this.extent,this._keys,this._values)};var ss=ti;function rs(W,D,K){if(W===3){var ve=new ss(K,K.readVarint()+K.pos);ve.length&&(D[ve.name]=ve)}}ja.VectorTile=function(W,D){this.layers=W.readFields(rs,{},D)},ja.VectorTileFeature=on,ja.VectorTileLayer=ti;const fs=ja.VectorTileFeature.types,ls=Math.pow(2,13);function Cl(W,D,K,ve,Ee,Ne,qe,ut){W.emplaceBack(D,K,2*Math.floor(ve*ls)+qe,Ee*ls*2,Ne*ls*2,Math.round(ut))}class Qo{constructor(D){this.zoom=D.zoom,this.overscaling=D.overscaling,this.layers=D.layers,this.layerIds=this.layers.map(K=>K.id),this.index=D.index,this.hasPattern=!1,this.layoutVertexArray=new Dl,this.centroidVertexArray=new ko,this.indexArray=new jt,this.programConfigurations=new Ts(D.layers,D.zoom),this.segments=new Zr,this.stateDependentLayerIds=this.layers.filter(K=>K.isStateDependent()).map(K=>K.id)}populate(D,K,ve){this.features=[],this.hasPattern=qt("fill-extrusion",this.layers,K);for(const{feature:Ee,id:Ne,index:qe,sourceLayerIndex:ut}of D){const wt=this.layers[0]._featureFilter.needGeometry,Ot=ir(Ee,wt);if(!this.layers[0]._featureFilter.filter(new os(this.zoom),Ot,ve))continue;const ar={id:Ne,sourceLayerIndex:ut,index:qe,geometry:wt?Ot.geometry:lt(Ee),properties:Ee.properties,type:Ee.type,patterns:{}};this.hasPattern?this.features.push(Mt("fill-extrusion",this.layers,ar,this.zoom,K)):this.addFeature(ar,ar.geometry,qe,ve,{}),K.featureIndex.insert(Ee,ar.geometry,qe,ut,this.index,!0)}}addFeatures(D,K,ve){for(const Ee of this.features){const{geometry:Ne}=Ee;this.addFeature(Ee,Ne,Ee.index,K,ve)}}update(D,K,ve){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(D,K,this.stateDependentLayers,ve)}isEmpty(){return this.layoutVertexArray.length===0&&this.centroidVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(D){this.uploaded||(this.layoutVertexBuffer=D.createVertexBuffer(this.layoutVertexArray,xa),this.centroidVertexBuffer=D.createVertexBuffer(this.centroidVertexArray,ka.members,!0),this.indexBuffer=D.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(D),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.centroidVertexBuffer.destroy())}addFeature(D,K,ve,Ee,Ne){for(const qe of Vu(K,500)){const ut={x:0,y:0,vertexCount:0};let wt=0;for(const Yr of qe)wt+=Yr.length;let Ot=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray);for(const Yr of qe){if(Yr.length===0||cc(Yr))continue;let sa=0;for(let _a=0;_a=1){const zn=Yr[_a-1];if(!tl(Wa,zn)){Ot.vertexLength+4>Zr.MAX_VERTEX_ARRAY_LENGTH&&(Ot=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));const vn=Wa.sub(zn)._perp()._unit(),Cn=zn.dist(Wa);sa+Cn>32768&&(sa=0),Cl(this.layoutVertexArray,Wa.x,Wa.y,vn.x,vn.y,0,0,sa),Cl(this.layoutVertexArray,Wa.x,Wa.y,vn.x,vn.y,0,1,sa),ut.x+=2*Wa.x,ut.y+=2*Wa.y,ut.vertexCount+=2,sa+=Cn,Cl(this.layoutVertexArray,zn.x,zn.y,vn.x,vn.y,0,0,sa),Cl(this.layoutVertexArray,zn.x,zn.y,vn.x,vn.y,0,1,sa),ut.x+=2*zn.x,ut.y+=2*zn.y,ut.vertexCount+=2;const $n=Ot.vertexLength;this.indexArray.emplaceBack($n,$n+2,$n+1),this.indexArray.emplaceBack($n+1,$n+2,$n+3),Ot.vertexLength+=4,Ot.primitiveLength+=2}}}}if(Ot.vertexLength+wt>Zr.MAX_VERTEX_ARRAY_LENGTH&&(Ot=this.segments.prepareSegment(wt,this.layoutVertexArray,this.indexArray)),fs[D.type]!=="Polygon")continue;const ar=[],lr=[],Sr=Ot.vertexLength;for(const Yr of qe)if(Yr.length!==0){Yr!==qe[0]&&lr.push(ar.length/2);for(let sa=0;sazs)||W.y===D.y&&(W.y<0||W.y>zs)}function cc(W){return W.every(D=>D.x<0)||W.every(D=>D.x>zs)||W.every(D=>D.y<0)||W.every(D=>D.y>zs)}let Dc;dn("FillExtrusionBucket",Qo,{omit:["layers","features"]});var yh={get paint(){return Dc=Dc||new ze({"fill-extrusion-opacity":new Yi(ae["paint_fill-extrusion"]["fill-extrusion-opacity"]),"fill-extrusion-color":new io(ae["paint_fill-extrusion"]["fill-extrusion-color"]),"fill-extrusion-translate":new Yi(ae["paint_fill-extrusion"]["fill-extrusion-translate"]),"fill-extrusion-translate-anchor":new Yi(ae["paint_fill-extrusion"]["fill-extrusion-translate-anchor"]),"fill-extrusion-pattern":new Yu(ae["paint_fill-extrusion"]["fill-extrusion-pattern"]),"fill-extrusion-height":new io(ae["paint_fill-extrusion"]["fill-extrusion-height"]),"fill-extrusion-base":new io(ae["paint_fill-extrusion"]["fill-extrusion-base"]),"fill-extrusion-vertical-gradient":new Yi(ae["paint_fill-extrusion"]["fill-extrusion-vertical-gradient"])})}};class _h extends ne{constructor(D){super(D,yh)}createBucket(D){return new Qo(D)}queryRadius(){return ya(this.paint.get("fill-extrusion-translate"))}is3D(){return!0}queryIntersectsFeature(D,K,ve,Ee,Ne,qe,ut,wt){const Ot=Ra(D,this.paint.get("fill-extrusion-translate"),this.paint.get("fill-extrusion-translate-anchor"),qe.angle,ut),ar=this.paint.get("fill-extrusion-height").evaluate(K,ve),lr=this.paint.get("fill-extrusion-base").evaluate(K,ve),Sr=function(Yr,sa,_a,Wa){const zn=[];for(const vn of Yr){const Cn=[vn.x,vn.y,0,1];An(Cn,Cn,sa),zn.push(new o(Cn[0]/Cn[3],Cn[1]/Cn[3]))}return zn}(Ot,wt),Fr=function(Yr,sa,_a,Wa){const zn=[],vn=[],Cn=Wa[8]*sa,$n=Wa[9]*sa,gi=Wa[10]*sa,Ji=Wa[11]*sa,as=Wa[8]*_a,oo=Wa[9]*_a,$i=Wa[10]*_a,Ro=Wa[11]*_a;for(const To of Yr){const _o=[],li=[];for(const jo of To){const Do=jo.x,xs=jo.y,Tu=Wa[0]*Do+Wa[4]*xs+Wa[12],gu=Wa[1]*Do+Wa[5]*xs+Wa[13],vf=Wa[2]*Do+Wa[6]*xs+Wa[14],fh=Wa[3]*Do+Wa[7]*xs+Wa[15],zc=vf+gi,nf=fh+Ji,rh=Tu+as,ah=gu+oo,nh=vf+$i,fc=fh+Ro,df=new o((Tu+Cn)/nf,(gu+$n)/nf);df.z=zc/nf,_o.push(df);const Xf=new o(rh/fc,ah/fc);Xf.z=nh/fc,li.push(Xf)}zn.push(_o),vn.push(li)}return[zn,vn]}(Ee,lr,ar,wt);return function(Yr,sa,_a){let Wa=1/0;Kr(_a,sa)&&(Wa=Lh(_a,sa[0]));for(let zn=0;znK.id),this.index=D.index,this.hasPattern=!1,this.patternFeatures=[],this.lineClipsArray=[],this.gradients={},this.layers.forEach(K=>{this.gradients[K.id]={}}),this.layoutVertexArray=new ou,this.layoutVertexArray2=new pe,this.indexArray=new jt,this.programConfigurations=new Ts(D.layers,D.zoom),this.segments=new Zr,this.maxLineLength=0,this.stateDependentLayerIds=this.layers.filter(K=>K.isStateDependent()).map(K=>K.id)}populate(D,K,ve){this.hasPattern=qt("line",this.layers,K);const Ee=this.layers[0].layout.get("line-sort-key"),Ne=!Ee.isConstant(),qe=[];for(const{feature:ut,id:wt,index:Ot,sourceLayerIndex:ar}of D){const lr=this.layers[0]._featureFilter.needGeometry,Sr=ir(ut,lr);if(!this.layers[0]._featureFilter.filter(new os(this.zoom),Sr,ve))continue;const Fr=Ne?Ee.evaluate(Sr,{},ve):void 0,Yr={id:wt,properties:ut.properties,type:ut.type,sourceLayerIndex:ar,index:Ot,geometry:lr?Sr.geometry:lt(ut),patterns:{},sortKey:Fr};qe.push(Yr)}Ne&&qe.sort((ut,wt)=>ut.sortKey-wt.sortKey);for(const ut of qe){const{geometry:wt,index:Ot,sourceLayerIndex:ar}=ut;if(this.hasPattern){const lr=Mt("line",this.layers,ut,this.zoom,K);this.patternFeatures.push(lr)}else this.addFeature(ut,wt,Ot,ve,{});K.featureIndex.insert(D[Ot].feature,wt,Ot,ar,this.index)}}update(D,K,ve){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(D,K,this.stateDependentLayers,ve)}addFeatures(D,K,ve){for(const Ee of this.patternFeatures)this.addFeature(Ee,Ee.geometry,Ee.index,K,ve)}isEmpty(){return this.layoutVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(D){this.uploaded||(this.layoutVertexArray2.length!==0&&(this.layoutVertexBuffer2=D.createVertexBuffer(this.layoutVertexArray2,Oh)),this.layoutVertexBuffer=D.createVertexBuffer(this.layoutVertexArray,Fh),this.indexBuffer=D.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(D),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}lineFeatureClips(D){if(D.properties&&Object.prototype.hasOwnProperty.call(D.properties,"mapbox_clip_start")&&Object.prototype.hasOwnProperty.call(D.properties,"mapbox_clip_end"))return{start:+D.properties.mapbox_clip_start,end:+D.properties.mapbox_clip_end}}addFeature(D,K,ve,Ee,Ne){const qe=this.layers[0].layout,ut=qe.get("line-join").evaluate(D,{}),wt=qe.get("line-cap"),Ot=qe.get("line-miter-limit"),ar=qe.get("line-round-limit");this.lineClips=this.lineFeatureClips(D);for(const lr of K)this.addLine(lr,D,ut,wt,Ot,ar);this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,D,ve,Ne,Ee)}addLine(D,K,ve,Ee,Ne,qe){if(this.distance=0,this.scaledDistance=0,this.totalDistance=0,this.lineClips){this.lineClipsArray.push(this.lineClips);for(let Wa=0;Wa=2&&D[wt-1].equals(D[wt-2]);)wt--;let Ot=0;for(;Ot0;if(Ji&&Wa>Ot){const Ro=Sr.dist(Fr);if(Ro>2*ar){const To=Sr.sub(Sr.sub(Fr)._mult(ar/Ro)._round());this.updateDistance(Fr,To),this.addCurrentVertex(To,sa,0,0,lr),Fr=To}}const oo=Fr&&Yr;let $i=oo?ve:ut?"butt":Ee;if(oo&&$i==="round"&&($nNe&&($i="bevel"),$i==="bevel"&&($n>2&&($i="flipbevel"),$n100)zn=_a.mult(-1);else{const Ro=$n*sa.add(_a).mag()/sa.sub(_a).mag();zn._perp()._mult(Ro*(as?-1:1))}this.addCurrentVertex(Sr,zn,0,0,lr),this.addCurrentVertex(Sr,zn.mult(-1),0,0,lr)}else if($i==="bevel"||$i==="fakeround"){const Ro=-Math.sqrt($n*$n-1),To=as?Ro:0,_o=as?0:Ro;if(Fr&&this.addCurrentVertex(Sr,sa,To,_o,lr),$i==="fakeround"){const li=Math.round(180*gi/Math.PI/20);for(let jo=1;jo2*ar){const To=Sr.add(Yr.sub(Sr)._mult(ar/Ro)._round());this.updateDistance(Sr,To),this.addCurrentVertex(To,_a,0,0,lr),Sr=To}}}}addCurrentVertex(D,K,ve,Ee,Ne,qe=!1){const ut=K.y*Ee-K.x,wt=-K.y-K.x*Ee;this.addHalfVertex(D,K.x+K.y*ve,K.y-K.x*ve,qe,!1,ve,Ne),this.addHalfVertex(D,ut,wt,qe,!0,-Ee,Ne),this.distance>xh/2&&this.totalDistance===0&&(this.distance=0,this.updateScaledDistance(),this.addCurrentVertex(D,K,ve,Ee,Ne,qe))}addHalfVertex({x:D,y:K},ve,Ee,Ne,qe,ut,wt){const Ot=.5*(this.lineClips?this.scaledDistance*(xh-1):this.scaledDistance);this.layoutVertexArray.emplaceBack((D<<1)+(Ne?1:0),(K<<1)+(qe?1:0),Math.round(63*ve)+128,Math.round(63*Ee)+128,1+(ut===0?0:ut<0?-1:1)|(63&Ot)<<2,Ot>>6),this.lineClips&&this.layoutVertexArray2.emplaceBack((this.scaledDistance-this.lineClips.start)/(this.lineClips.end-this.lineClips.start),this.lineClipsArray.length);const ar=wt.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,this.e2,ar),wt.primitiveLength++),qe?this.e2=ar:this.e1=ar}updateScaledDistance(){this.scaledDistance=this.lineClips?this.lineClips.start+(this.lineClips.end-this.lineClips.start)*this.distance/this.totalDistance:this.distance}updateDistance(D,K){this.distance+=D.dist(K),this.updateScaledDistance()}}let bh,Wv;dn("LineBucket",Ph,{omit:["layers","patternFeatures"]});var fv={get paint(){return Wv=Wv||new ze({"line-opacity":new io(ae.paint_line["line-opacity"]),"line-color":new io(ae.paint_line["line-color"]),"line-translate":new Yi(ae.paint_line["line-translate"]),"line-translate-anchor":new Yi(ae.paint_line["line-translate-anchor"]),"line-width":new io(ae.paint_line["line-width"]),"line-gap-width":new io(ae.paint_line["line-gap-width"]),"line-offset":new io(ae.paint_line["line-offset"]),"line-blur":new io(ae.paint_line["line-blur"]),"line-dasharray":new du(ae.paint_line["line-dasharray"]),"line-pattern":new Yu(ae.paint_line["line-pattern"]),"line-gradient":new iu(ae.paint_line["line-gradient"])})},get layout(){return bh=bh||new ze({"line-cap":new Yi(ae.layout_line["line-cap"]),"line-join":new io(ae.layout_line["line-join"]),"line-miter-limit":new Yi(ae.layout_line["line-miter-limit"]),"line-round-limit":new Yi(ae.layout_line["line-round-limit"]),"line-sort-key":new io(ae.layout_line["line-sort-key"])})}};class rf extends io{possiblyEvaluate(D,K){return K=new os(Math.floor(K.zoom),{now:K.now,fadeDuration:K.fadeDuration,zoomHistory:K.zoomHistory,transition:K.transition}),super.possiblyEvaluate(D,K)}evaluate(D,K,ve,Ee){return K=M({},K,{zoom:Math.floor(K.zoom)}),super.evaluate(D,K,ve,Ee)}}let hv;class Xv extends ne{constructor(D){super(D,fv),this.gradientVersion=0,hv||(hv=new rf(fv.paint.properties["line-width"].specification),hv.useIntegerZoom=!0)}_handleSpecialPaintPropertyUpdate(D){if(D==="line-gradient"){const K=this.gradientExpression();this.stepInterpolant=!!function(ve){return ve._styleExpression!==void 0}(K)&&K._styleExpression.expression instanceof Ta,this.gradientVersion=(this.gradientVersion+1)%Number.MAX_SAFE_INTEGER}}gradientExpression(){return this._transitionablePaint._values["line-gradient"].value.expression}recalculate(D,K){super.recalculate(D,K),this.paint._values["line-floorwidth"]=hv.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,D)}createBucket(D){return new Ph(D)}queryRadius(D){const K=D,ve=Tf(Ur("line-width",this,K),Ur("line-gap-width",this,K)),Ee=Ur("line-offset",this,K);return ve/2+Math.abs(Ee)+ya(this.paint.get("line-translate"))}queryIntersectsFeature(D,K,ve,Ee,Ne,qe,ut){const wt=Ra(D,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),qe.angle,ut),Ot=ut/2*Tf(this.paint.get("line-width").evaluate(K,ve),this.paint.get("line-gap-width").evaluate(K,ve)),ar=this.paint.get("line-offset").evaluate(K,ve);return ar&&(Ee=function(lr,Sr){const Fr=[];for(let Yr=0;Yr=3){for(let _a=0;_a0?D+2*W:W}const Sv=ft([{name:"a_pos_offset",components:4,type:"Int16"},{name:"a_data",components:4,type:"Uint16"},{name:"a_pixeloffset",components:4,type:"Int16"}],4),pd=ft([{name:"a_projected_pos",components:3,type:"Float32"}],4);ft([{name:"a_fade_opacity",components:1,type:"Uint32"}],4);const gd=ft([{name:"a_placed",components:2,type:"Uint8"},{name:"a_shift",components:2,type:"Float32"},{name:"a_box_real",components:2,type:"Int16"}]);ft([{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"}]);const Zv=ft([{name:"a_pos",components:2,type:"Int16"},{name:"a_anchor_pos",components:2,type:"Int16"},{name:"a_extrude",components:2,type:"Int16"}],4),Mv=ft([{name:"a_pos",components:2,type:"Float32"},{name:"a_radius",components:1,type:"Float32"},{name:"a_flags",components:2,type:"Int16"}],4);function Ev(W,D,K){return W.sections.forEach(ve=>{ve.text=function(Ee,Ne,qe){const ut=Ne.layout.get("text-transform").evaluate(qe,{});return ut==="uppercase"?Ee=Ee.toLocaleUpperCase():ut==="lowercase"&&(Ee=Ee.toLocaleLowerCase()),ws.applyArabicShaping&&(Ee=ws.applyArabicShaping(Ee)),Ee}(ve.text,D,K)}),W}ft([{name:"triangle",components:3,type:"Uint16"}]),ft([{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"}]),ft([{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"}]),ft([{type:"Float32",name:"offsetX"}]),ft([{type:"Int16",name:"x"},{type:"Int16",name:"y"},{type:"Int16",name:"tileUnitDistanceFromAnchor"}]),ft([{type:"Uint16",name:"textAnchor"},{type:"Float32",components:2,name:"textOffset"}]);const Fu={"!":"︕","#":"#",$:"$","%":"%","&":"&","(":"︵",")":"︶","*":"*","+":"+",",":"︐","-":"︲",".":"・","/":"/",":":"︓",";":"︔","<":"︿","=":"=",">":"﹀","?":"︖","@":"@","[":"﹇","\\":"\","]":"﹈","^":"^",_:"︳","`":"`","{":"︷","|":"―","}":"︸","~":"~","¢":"¢","£":"£","¥":"¥","¦":"¦","¬":"¬","¯":" ̄","–":"︲","—":"︱","‘":"﹃","’":"﹄","“":"﹁","”":"﹂","…":"︙","‧":"・","₩":"₩","、":"︑","。":"︒","〈":"︿","〉":"﹀","《":"︽","》":"︾","「":"﹁","」":"﹂","『":"﹃","』":"﹄","【":"︻","】":"︼","〔":"︹","〕":"︺","〖":"︗","〗":"︘","!":"︕","(":"︵",")":"︶",",":"︐","-":"︲",".":"・",":":"︓",";":"︔","<":"︿",">":"﹀","?":"︖","[":"﹇","]":"﹈","_":"︳","{":"︷","|":"―","}":"︸","⦅":"︵","⦆":"︶","。":"︒","「":"﹁","」":"﹂"};var Nl=24,Wf=Jl,Yv=function(W,D,K,ve,Ee){var Ne,qe,ut=8*Ee-ve-1,wt=(1<>1,ar=-7,lr=Ee-1,Sr=-1,Fr=W[D+lr];for(lr+=Sr,Ne=Fr&(1<<-ar)-1,Fr>>=-ar,ar+=ut;ar>0;Ne=256*Ne+W[D+lr],lr+=Sr,ar-=8);for(qe=Ne&(1<<-ar)-1,Ne>>=-ar,ar+=ve;ar>0;qe=256*qe+W[D+lr],lr+=Sr,ar-=8);if(Ne===0)Ne=1-Ot;else{if(Ne===wt)return qe?NaN:1/0*(Fr?-1:1);qe+=Math.pow(2,ve),Ne-=Ot}return(Fr?-1:1)*qe*Math.pow(2,Ne-ve)},md=function(W,D,K,ve,Ee,Ne){var qe,ut,wt,Ot=8*Ne-Ee-1,ar=(1<>1,Sr=Ee===23?Math.pow(2,-24)-Math.pow(2,-77):0,Fr=0,Yr=1,sa=D<0||D===0&&1/D<0?1:0;for(D=Math.abs(D),isNaN(D)||D===1/0?(ut=isNaN(D)?1:0,qe=ar):(qe=Math.floor(Math.log(D)/Math.LN2),D*(wt=Math.pow(2,-qe))<1&&(qe--,wt*=2),(D+=qe+lr>=1?Sr/wt:Sr*Math.pow(2,1-lr))*wt>=2&&(qe++,wt/=2),qe+lr>=ar?(ut=0,qe=ar):qe+lr>=1?(ut=(D*wt-1)*Math.pow(2,Ee),qe+=lr):(ut=D*Math.pow(2,lr-1)*Math.pow(2,Ee),qe=0));Ee>=8;W[K+Fr]=255&ut,Fr+=Yr,ut/=256,Ee-=8);for(qe=qe<0;W[K+Fr]=255&qe,Fr+=Yr,qe/=256,Ot-=8);W[K+Fr-Yr]|=128*sa};function Jl(W){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(W)?W:new Uint8Array(W||0),this.pos=0,this.type=0,this.length=this.buf.length}Jl.Varint=0,Jl.Fixed64=1,Jl.Bytes=2,Jl.Fixed32=5;var fp=4294967296,kv=1/fp,Jp=typeof TextDecoder>"u"?null:new TextDecoder("utf-8");function wh(W){return W.type===Jl.Bytes?W.readVarint()+W.pos:W.pos+1}function Cv(W,D,K){return K?4294967296*D+(W>>>0):4294967296*(D>>>0)+(W>>>0)}function Qp(W,D,K){var ve=D<=16383?1:D<=2097151?2:D<=268435455?3:Math.floor(Math.log(D)/(7*Math.LN2));K.realloc(ve);for(var Ee=K.pos-1;Ee>=W;Ee--)K.buf[Ee+ve]=K.buf[Ee]}function hp(W,D){for(var K=0;K>>8,W[K+2]=D>>>16,W[K+3]=D>>>24}function ry(W,D){return(W[D]|W[D+1]<<8|W[D+2]<<16)+(W[D+3]<<24)}Jl.prototype={destroy:function(){this.buf=null},readFields:function(W,D,K){for(K=K||this.length;this.pos>3,Ne=this.pos;this.type=7&ve,W(Ee,D,this),this.pos===Ne&&this.skip(ve)}return D},readMessage:function(W,D){return this.readFields(W,D,this.readVarint()+this.pos)},readFixed32:function(){var W=t0(this.buf,this.pos);return this.pos+=4,W},readSFixed32:function(){var W=ry(this.buf,this.pos);return this.pos+=4,W},readFixed64:function(){var W=t0(this.buf,this.pos)+t0(this.buf,this.pos+4)*fp;return this.pos+=8,W},readSFixed64:function(){var W=t0(this.buf,this.pos)+ry(this.buf,this.pos+4)*fp;return this.pos+=8,W},readFloat:function(){var W=Yv(this.buf,this.pos,!0,23,4);return this.pos+=4,W},readDouble:function(){var W=Yv(this.buf,this.pos,!0,52,8);return this.pos+=8,W},readVarint:function(W){var D,K,ve=this.buf;return D=127&(K=ve[this.pos++]),K<128?D:(D|=(127&(K=ve[this.pos++]))<<7,K<128?D:(D|=(127&(K=ve[this.pos++]))<<14,K<128?D:(D|=(127&(K=ve[this.pos++]))<<21,K<128?D:function(Ee,Ne,qe){var ut,wt,Ot=qe.buf;if(ut=(112&(wt=Ot[qe.pos++]))>>4,wt<128||(ut|=(127&(wt=Ot[qe.pos++]))<<3,wt<128)||(ut|=(127&(wt=Ot[qe.pos++]))<<10,wt<128)||(ut|=(127&(wt=Ot[qe.pos++]))<<17,wt<128)||(ut|=(127&(wt=Ot[qe.pos++]))<<24,wt<128)||(ut|=(1&(wt=Ot[qe.pos++]))<<31,wt<128))return Cv(Ee,ut,Ne);throw new Error("Expected varint not more than 10 bytes")}(D|=(15&(K=ve[this.pos]))<<28,W,this))))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var W=this.readVarint();return W%2==1?(W+1)/-2:W/2},readBoolean:function(){return!!this.readVarint()},readString:function(){var W=this.readVarint()+this.pos,D=this.pos;return this.pos=W,W-D>=12&&Jp?function(K,ve,Ee){return Jp.decode(K.subarray(ve,Ee))}(this.buf,D,W):function(K,ve,Ee){for(var Ne="",qe=ve;qe239?4:ar>223?3:ar>191?2:1;if(qe+Sr>Ee)break;Sr===1?ar<128&&(lr=ar):Sr===2?(192&(ut=K[qe+1]))==128&&(lr=(31&ar)<<6|63&ut)<=127&&(lr=null):Sr===3?(wt=K[qe+2],(192&(ut=K[qe+1]))==128&&(192&wt)==128&&((lr=(15&ar)<<12|(63&ut)<<6|63&wt)<=2047||lr>=55296&&lr<=57343)&&(lr=null)):Sr===4&&(wt=K[qe+2],Ot=K[qe+3],(192&(ut=K[qe+1]))==128&&(192&wt)==128&&(192&Ot)==128&&((lr=(15&ar)<<18|(63&ut)<<12|(63&wt)<<6|63&Ot)<=65535||lr>=1114112)&&(lr=null)),lr===null?(lr=65533,Sr=1):lr>65535&&(lr-=65536,Ne+=String.fromCharCode(lr>>>10&1023|55296),lr=56320|1023&lr),Ne+=String.fromCharCode(lr),qe+=Sr}return Ne}(this.buf,D,W)},readBytes:function(){var W=this.readVarint()+this.pos,D=this.buf.subarray(this.pos,W);return this.pos=W,D},readPackedVarint:function(W,D){if(this.type!==Jl.Bytes)return W.push(this.readVarint(D));var K=wh(this);for(W=W||[];this.pos127;);else if(D===Jl.Bytes)this.pos=this.readVarint()+this.pos;else if(D===Jl.Fixed32)this.pos+=4;else{if(D!==Jl.Fixed64)throw new Error("Unimplemented type: "+D);this.pos+=8}},writeTag:function(W,D){this.writeVarint(W<<3|D)},realloc:function(W){for(var D=this.length||16;D268435455||W<0?function(D,K){var ve,Ee;if(D>=0?(ve=D%4294967296|0,Ee=D/4294967296|0):(Ee=~(-D/4294967296),4294967295^(ve=~(-D%4294967296))?ve=ve+1|0:(ve=0,Ee=Ee+1|0)),D>=18446744073709552e3||D<-18446744073709552e3)throw new Error("Given varint doesn't fit into 10 bytes");K.realloc(10),function(Ne,qe,ut){ut.buf[ut.pos++]=127&Ne|128,Ne>>>=7,ut.buf[ut.pos++]=127&Ne|128,Ne>>>=7,ut.buf[ut.pos++]=127&Ne|128,Ne>>>=7,ut.buf[ut.pos++]=127&Ne|128,ut.buf[ut.pos]=127&(Ne>>>=7)}(ve,0,K),function(Ne,qe){var ut=(7&Ne)<<4;qe.buf[qe.pos++]|=ut|((Ne>>>=3)?128:0),Ne&&(qe.buf[qe.pos++]=127&Ne|((Ne>>>=7)?128:0),Ne&&(qe.buf[qe.pos++]=127&Ne|((Ne>>>=7)?128:0),Ne&&(qe.buf[qe.pos++]=127&Ne|((Ne>>>=7)?128:0),Ne&&(qe.buf[qe.pos++]=127&Ne|((Ne>>>=7)?128:0),Ne&&(qe.buf[qe.pos++]=127&Ne)))))}(Ee,K)}(W,this):(this.realloc(4),this.buf[this.pos++]=127&W|(W>127?128:0),W<=127||(this.buf[this.pos++]=127&(W>>>=7)|(W>127?128:0),W<=127||(this.buf[this.pos++]=127&(W>>>=7)|(W>127?128:0),W<=127||(this.buf[this.pos++]=W>>>7&127))))},writeSVarint:function(W){this.writeVarint(W<0?2*-W-1:2*W)},writeBoolean:function(W){this.writeVarint(!!W)},writeString:function(W){W=String(W),this.realloc(4*W.length),this.pos++;var D=this.pos;this.pos=function(ve,Ee,Ne){for(var qe,ut,wt=0;wt55295&&qe<57344){if(!ut){qe>56319||wt+1===Ee.length?(ve[Ne++]=239,ve[Ne++]=191,ve[Ne++]=189):ut=qe;continue}if(qe<56320){ve[Ne++]=239,ve[Ne++]=191,ve[Ne++]=189,ut=qe;continue}qe=ut-55296<<10|qe-56320|65536,ut=null}else ut&&(ve[Ne++]=239,ve[Ne++]=191,ve[Ne++]=189,ut=null);qe<128?ve[Ne++]=qe:(qe<2048?ve[Ne++]=qe>>6|192:(qe<65536?ve[Ne++]=qe>>12|224:(ve[Ne++]=qe>>18|240,ve[Ne++]=qe>>12&63|128),ve[Ne++]=qe>>6&63|128),ve[Ne++]=63&qe|128)}return Ne}(this.buf,W,this.pos);var K=this.pos-D;K>=128&&Qp(D,K,this),this.pos=D-1,this.writeVarint(K),this.pos+=K},writeFloat:function(W){this.realloc(4),md(this.buf,W,this.pos,!0,23,4),this.pos+=4},writeDouble:function(W){this.realloc(8),md(this.buf,W,this.pos,!0,52,8),this.pos+=8},writeBytes:function(W){var D=W.length;this.writeVarint(D),this.realloc(D);for(var K=0;K=128&&Qp(K,ve,this),this.pos=K-1,this.writeVarint(ve),this.pos+=ve},writeMessage:function(W,D,K){this.writeTag(W,Jl.Bytes),this.writeRawMessage(D,K)},writePackedVarint:function(W,D){D.length&&this.writeMessage(W,hp,D)},writePackedSVarint:function(W,D){D.length&&this.writeMessage(W,Cx,D)},writePackedBoolean:function(W,D){D.length&&this.writeMessage(W,Ix,D)},writePackedFloat:function(W,D){D.length&&this.writeMessage(W,Lx,D)},writePackedDouble:function(W,D){D.length&&this.writeMessage(W,Px,D)},writePackedFixed32:function(W,D){D.length&&this.writeMessage(W,Rx,D)},writePackedSFixed32:function(W,D){D.length&&this.writeMessage(W,Dx,D)},writePackedFixed64:function(W,D){D.length&&this.writeMessage(W,zx,D)},writePackedSFixed64:function(W,D){D.length&&this.writeMessage(W,e0,D)},writeBytesField:function(W,D){this.writeTag(W,Jl.Bytes),this.writeBytes(D)},writeFixed32Field:function(W,D){this.writeTag(W,Jl.Fixed32),this.writeFixed32(D)},writeSFixed32Field:function(W,D){this.writeTag(W,Jl.Fixed32),this.writeSFixed32(D)},writeFixed64Field:function(W,D){this.writeTag(W,Jl.Fixed64),this.writeFixed64(D)},writeSFixed64Field:function(W,D){this.writeTag(W,Jl.Fixed64),this.writeSFixed64(D)},writeVarintField:function(W,D){this.writeTag(W,Jl.Varint),this.writeVarint(D)},writeSVarintField:function(W,D){this.writeTag(W,Jl.Varint),this.writeSVarint(D)},writeStringField:function(W,D){this.writeTag(W,Jl.Bytes),this.writeString(D)},writeFloatField:function(W,D){this.writeTag(W,Jl.Fixed32),this.writeFloat(D)},writeDoubleField:function(W,D){this.writeTag(W,Jl.Fixed64),this.writeDouble(D)},writeBooleanField:function(W,D){this.writeVarintField(W,!!D)}};var pg=r(Wf);const r0=3;function Fx(W,D,K){W===1&&K.readMessage(ay,D)}function ay(W,D,K){if(W===3){const{id:ve,bitmap:Ee,width:Ne,height:qe,left:ut,top:wt,advance:Ot}=K.readMessage(gg,{});D.push({id:ve,bitmap:new eo({width:Ne+2*r0,height:qe+2*r0},Ee),metrics:{width:Ne,height:qe,left:ut,top:wt,advance:Ot}})}}function gg(W,D,K){W===1?D.id=K.readVarint():W===2?D.bitmap=K.readBytes():W===3?D.width=K.readVarint():W===4?D.height=K.readVarint():W===5?D.left=K.readSVarint():W===6?D.top=K.readSVarint():W===7&&(D.advance=K.readVarint())}const mg=r0;function a0(W){let D=0,K=0;for(const qe of W)D+=qe.w*qe.h,K=Math.max(K,qe.w);W.sort((qe,ut)=>ut.h-qe.h);const ve=[{x:0,y:0,w:Math.max(Math.ceil(Math.sqrt(D/.95)),K),h:1/0}];let Ee=0,Ne=0;for(const qe of W)for(let ut=ve.length-1;ut>=0;ut--){const wt=ve[ut];if(!(qe.w>wt.w||qe.h>wt.h)){if(qe.x=wt.x,qe.y=wt.y,Ne=Math.max(Ne,qe.y+qe.h),Ee=Math.max(Ee,qe.x+qe.w),qe.w===wt.w&&qe.h===wt.h){const Ot=ve.pop();ut=0&&ve>=D&&i0[this.text.charCodeAt(ve)];ve--)K--;this.text=this.text.substring(D,K),this.sectionIndex=this.sectionIndex.slice(D,K)}substring(D,K){const ve=new xd;return ve.text=this.text.substring(D,K),ve.sectionIndex=this.sectionIndex.slice(D,K),ve.sections=this.sections,ve}toString(){return this.text}getMaxScale(){return this.sectionIndex.reduce((D,K)=>Math.max(D,this.sections[K].scale),0)}addTextSection(D,K){this.text+=D.text,this.sections.push(vp.forText(D.scale,D.fontStack||K));const ve=this.sections.length-1;for(let Ee=0;Ee=63743?null:++this.imageSectionID:(this.imageSectionID=57344,this.imageSectionID)}}function n0(W,D,K,ve,Ee,Ne,qe,ut,wt,Ot,ar,lr,Sr,Fr,Yr){const sa=xd.fromFeature(W,Ee);let _a;lr===e.ah.vertical&&sa.verticalizePunctuation();const{processBidirectionalText:Wa,processStyledBidirectionalText:zn}=ws;if(Wa&&sa.sections.length===1){_a=[];const $n=Wa(sa.toString(),$v(sa,Ot,Ne,D,ve,Fr));for(const gi of $n){const Ji=new xd;Ji.text=gi,Ji.sections=sa.sections;for(let as=0;as0&&Nh>Sf&&(Sf=Nh)}else{const Au=Ji[ml.fontStack],Mf=Au&&Au[su];if(Mf&&Mf.rect)Cd=Mf.rect,Bu=Mf.metrics;else{const Nh=gi[ml.fontStack],Sh=Nh&&Nh[su];if(!Sh)continue;Bu=Sh.metrics}ic=(df-ml.scale)*Nl}Zf?($n.verticalizable=!0,ih.push({glyph:su,imageName:jh,x:xs,y:Tu+ic,vertical:Zf,scale:ml.scale,fontStack:ml.fontStack,sectionIndex:Ql,metrics:Bu,rect:Cd}),xs+=Vh*ml.scale+li):(ih.push({glyph:su,imageName:jh,x:xs,y:Tu+ic,vertical:Zf,scale:ml.scale,fontStack:ml.fontStack,sectionIndex:Ql,metrics:Bu,rect:Cd}),xs+=Bu.advance*ml.scale+li)}ih.length!==0&&(gu=Math.max(xs-li,gu),Nx(ih,0,ih.length-1,fh,Sf)),xs=0;const Ah=$i*df+Sf;Ff.lineOffset=Math.max(Sf,Xf),Tu+=Ah,vf=Math.max(Ah,vf),++zc}var nf;const rh=Tu-_d,{horizontalAlign:ah,verticalAlign:nh}=_g(Ro);(function(fc,df,Xf,Ff,ih,Sf,Ah,Ou,ml){const Ql=(df-Xf)*ih;let su=0;su=Sf!==Ah?-Ou*Ff-_d:(-Ff*ml+.5)*Ah;for(const ic of fc)for(const Bu of ic.positionedGlyphs)Bu.x+=Ql,Bu.y+=su})($n.positionedLines,fh,ah,nh,gu,vf,$i,rh,oo.length),$n.top+=-nh*rh,$n.bottom=$n.top+rh,$n.left+=-ah*gu,$n.right=$n.left+gu}(Cn,D,K,ve,_a,qe,ut,wt,lr,Ot,Sr,Yr),!function($n){for(const gi of $n)if(gi.positionedGlyphs.length!==0)return!1;return!0}(vn)&&Cn}const i0={9:!0,10:!0,11:!0,12:!0,13:!0,32:!0},Ox={10:!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},Bx={40:!0};function o0(W,D,K,ve,Ee,Ne){if(D.imageName){const qe=ve[D.imageName];return qe?qe.displaySize[0]*D.scale*Nl/Ne+Ee:0}{const qe=K[D.fontStack],ut=qe&&qe[W];return ut?ut.metrics.advance*D.scale+Ee:0}}function iy(W,D,K,ve){const Ee=Math.pow(W-D,2);return ve?W=0;let Ot=0;for(let lr=0;lrOt){const ar=Math.ceil(Ne/Ot);Ee*=ar/qe,qe=ar}return{x1:ve,y1:Ee,x2:ve+Ne,y2:Ee+qe}}function sy(W,D,K,ve,Ee,Ne){const qe=W.image;let ut;if(qe.content){const _a=qe.content,Wa=qe.pixelRatio||1;ut=[_a[0]/Wa,_a[1]/Wa,qe.displaySize[0]-_a[2]/Wa,qe.displaySize[1]-_a[3]/Wa]}const wt=D.left*Ne,Ot=D.right*Ne;let ar,lr,Sr,Fr;K==="width"||K==="both"?(Fr=Ee[0]+wt-ve[3],lr=Ee[0]+Ot+ve[1]):(Fr=Ee[0]+(wt+Ot-qe.displaySize[0])/2,lr=Fr+qe.displaySize[0]);const Yr=D.top*Ne,sa=D.bottom*Ne;return K==="height"||K==="both"?(ar=Ee[1]+Yr-ve[0],Sr=Ee[1]+sa+ve[2]):(ar=Ee[1]+(Yr+sa-qe.displaySize[1])/2,Sr=ar+qe.displaySize[1]),{image:qe,top:ar,right:lr,bottom:Sr,left:Fr,collisionPadding:ut}}const dp=255,$h=128,Pv=dp*$h;function ly(W,D){const{expression:K}=D;if(K.kind==="constant")return{kind:"constant",layoutSize:K.evaluate(new os(W+1))};if(K.kind==="source")return{kind:"source"};{const{zoomStops:ve,interpolationType:Ee}=K;let Ne=0;for(;Neqe.id),this.index=D.index,this.pixelRatio=D.pixelRatio,this.sourceLayerIndex=D.sourceLayerIndex,this.hasPattern=!1,this.hasRTLText=!1,this.sortKeyRanges=[],this.collisionCircleArray=[],this.placementInvProjMatrix=Oa([]),this.placementViewportMatrix=Oa([]);const K=this.layers[0]._unevaluatedLayout._values;this.textSizeData=ly(this.zoom,K["text-size"]),this.iconSizeData=ly(this.zoom,K["icon-size"]);const ve=this.layers[0].layout,Ee=ve.get("symbol-sort-key"),Ne=ve.get("symbol-z-order");this.canOverlap=xg(ve,"text-overlap","text-allow-overlap")!=="never"||xg(ve,"icon-overlap","icon-allow-overlap")!=="never"||ve.get("text-ignore-placement")||ve.get("icon-ignore-placement"),this.sortFeaturesByKey=Ne!=="viewport-y"&&!Ee.isConstant(),this.sortFeaturesByY=(Ne==="viewport-y"||Ne==="auto"&&!this.sortFeaturesByKey)&&this.canOverlap,ve.get("symbol-placement")==="point"&&(this.writingModes=ve.get("text-writing-mode").map(qe=>e.ah[qe])),this.stateDependentLayerIds=this.layers.filter(qe=>qe.isStateDependent()).map(qe=>qe.id),this.sourceID=D.sourceID}createArrays(){this.text=new mc(new Ts(this.layers,this.zoom,D=>/^text/.test(D))),this.icon=new mc(new Ts(this.layers,this.zoom,D=>/^icon/.test(D))),this.glyphOffsetArray=new Go,this.lineVertexArray=new Ho,this.symbolInstances=new Ki,this.textAnchorOffsets=new Ko}calculateGlyphDependencies(D,K,ve,Ee,Ne){for(let qe=0;qe0)&&(qe.value.kind!=="constant"||qe.value.value.length>0),ar=wt.value.kind!=="constant"||!!wt.value.value||Object.keys(wt.parameters).length>0,lr=Ne.get("symbol-sort-key");if(this.features=[],!Ot&&!ar)return;const Sr=K.iconDependencies,Fr=K.glyphDependencies,Yr=K.availableImages,sa=new os(this.zoom);for(const{feature:_a,id:Wa,index:zn,sourceLayerIndex:vn}of D){const Cn=Ee._featureFilter.needGeometry,$n=ir(_a,Cn);if(!Ee._featureFilter.filter(sa,$n,ve))continue;let gi,Ji;if(Cn||($n.geometry=lt(_a)),Ot){const oo=Ee.getValueAndResolveTokens("text-field",$n,ve,Yr),$i=ha.factory(oo),Ro=this.hasRTLText=this.hasRTLText||Vx($i);(!Ro||ws.getRTLTextPluginStatus()==="unavailable"||Ro&&ws.isParsed())&&(gi=Ev($i,Ee,$n))}if(ar){const oo=Ee.getValueAndResolveTokens("icon-image",$n,ve,Yr);Ji=oo instanceof Ya?oo:Ya.fromString(oo)}if(!gi&&!Ji)continue;const as=this.sortFeaturesByKey?lr.evaluate($n,{},ve):void 0;if(this.features.push({id:Wa,text:gi,icon:Ji,index:zn,sourceLayerIndex:vn,geometry:$n.geometry,properties:_a.properties,type:jx[_a.type],sortKey:as}),Ji&&(Sr[Ji.name]=!0),gi){const oo=qe.evaluate($n,{},ve).join(","),$i=Ne.get("text-rotation-alignment")!=="viewport"&&Ne.get("symbol-placement")!=="point";this.allowVerticalPlacement=this.writingModes&&this.writingModes.indexOf(e.ah.vertical)>=0;for(const Ro of gi.sections)if(Ro.image)Sr[Ro.image.name]=!0;else{const To=ao(gi.toString()),_o=Ro.fontStack||oo,li=Fr[_o]=Fr[_o]||{};this.calculateGlyphDependencies(Ro.text,li,$i,this.allowVerticalPlacement,To)}}}Ne.get("symbol-placement")==="line"&&(this.features=function(_a){const Wa={},zn={},vn=[];let Cn=0;function $n(oo){vn.push(_a[oo]),Cn++}function gi(oo,$i,Ro){const To=zn[oo];return delete zn[oo],zn[$i]=To,vn[To].geometry[0].pop(),vn[To].geometry[0]=vn[To].geometry[0].concat(Ro[0]),To}function Ji(oo,$i,Ro){const To=Wa[$i];return delete Wa[$i],Wa[oo]=To,vn[To].geometry[0].shift(),vn[To].geometry[0]=Ro[0].concat(vn[To].geometry[0]),To}function as(oo,$i,Ro){const To=Ro?$i[0][$i[0].length-1]:$i[0][0];return`${oo}:${To.x}:${To.y}`}for(let oo=0;oo<_a.length;oo++){const $i=_a[oo],Ro=$i.geometry,To=$i.text?$i.text.toString():null;if(!To){$n(oo);continue}const _o=as(To,Ro),li=as(To,Ro,!0);if(_o in zn&&li in Wa&&zn[_o]!==Wa[li]){const jo=Ji(_o,li,Ro),Do=gi(_o,li,vn[jo].geometry);delete Wa[_o],delete zn[li],zn[as(To,vn[Do].geometry,!0)]=Do,vn[jo].geometry=null}else _o in zn?gi(_o,li,Ro):li in Wa?Ji(_o,li,Ro):($n(oo),Wa[_o]=Cn-1,zn[li]=Cn-1)}return vn.filter(oo=>oo.geometry)}(this.features)),this.sortFeaturesByKey&&this.features.sort((_a,Wa)=>_a.sortKey-Wa.sortKey)}update(D,K,ve){this.stateDependentLayers.length&&(this.text.programConfigurations.updatePaintArrays(D,K,this.layers,ve),this.icon.programConfigurations.updatePaintArrays(D,K,this.layers,ve))}isEmpty(){return this.symbolInstances.length===0&&!this.hasRTLText}uploadPending(){return!this.uploaded||this.text.programConfigurations.needsUpload||this.icon.programConfigurations.needsUpload}upload(D){!this.uploaded&&this.hasDebugData()&&(this.textCollisionBox.upload(D),this.iconCollisionBox.upload(D)),this.text.upload(D,this.sortFeaturesByY,!this.uploaded,this.text.programConfigurations.needsUpload),this.icon.upload(D,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(D,K){const ve=this.lineVertexArray.length;if(D.segment!==void 0){let Ee=D.dist(K[D.segment+1]),Ne=D.dist(K[D.segment]);const qe={};for(let ut=D.segment+1;ut=0;ut--)qe[ut]={x:K[ut].x,y:K[ut].y,tileUnitDistanceFromAnchor:Ne},ut>0&&(Ne+=K[ut-1].dist(K[ut]));for(let ut=0;ut0}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(D,K){const ve=D.placedSymbolArray.get(K),Ee=ve.vertexStartIndex+4*ve.numGlyphs;for(let Ne=ve.vertexStartIndex;NeEe[ut]-Ee[wt]||Ne[wt]-Ne[ut]),qe}addToSortKeyRanges(D,K){const ve=this.sortKeyRanges[this.sortKeyRanges.length-1];ve&&ve.sortKey===K?ve.symbolInstanceEnd=D+1:this.sortKeyRanges.push({sortKey:K,symbolInstanceStart:D,symbolInstanceEnd:D+1})}sortFeatures(D){if(this.sortFeaturesByY&&this.sortedAngle!==D&&!(this.text.segments.get().length>1||this.icon.segments.get().length>1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(D),this.sortedAngle=D,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(const K of this.symbolInstanceIndexes){const ve=this.symbolInstances.get(K);this.featureSortOrder.push(ve.featureIndex),[ve.rightJustifiedTextSymbolIndex,ve.centerJustifiedTextSymbolIndex,ve.leftJustifiedTextSymbolIndex].forEach((Ee,Ne,qe)=>{Ee>=0&&qe.indexOf(Ee)===Ne&&this.addIndicesForPlacedSymbol(this.text,Ee)}),ve.verticalPlacedTextSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.text,ve.verticalPlacedTextSymbolIndex),ve.placedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,ve.placedIconSymbolIndex),ve.verticalPlacedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,ve.verticalPlacedIconSymbolIndex)}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}}}let pp,gp;dn("SymbolBucket",Kv,{omit:["layers","collisionBoxArray","features","compareText"]}),Kv.MAX_GLYPHS=65535,Kv.addDynamicAttributes=Iv;var wg={get paint(){return gp=gp||new ze({"icon-opacity":new io(ae.paint_symbol["icon-opacity"]),"icon-color":new io(ae.paint_symbol["icon-color"]),"icon-halo-color":new io(ae.paint_symbol["icon-halo-color"]),"icon-halo-width":new io(ae.paint_symbol["icon-halo-width"]),"icon-halo-blur":new io(ae.paint_symbol["icon-halo-blur"]),"icon-translate":new Yi(ae.paint_symbol["icon-translate"]),"icon-translate-anchor":new Yi(ae.paint_symbol["icon-translate-anchor"]),"text-opacity":new io(ae.paint_symbol["text-opacity"]),"text-color":new io(ae.paint_symbol["text-color"],{runtimeType:Ut,getOverride:W=>W.textColor,hasOverride:W=>!!W.textColor}),"text-halo-color":new io(ae.paint_symbol["text-halo-color"]),"text-halo-width":new io(ae.paint_symbol["text-halo-width"]),"text-halo-blur":new io(ae.paint_symbol["text-halo-blur"]),"text-translate":new Yi(ae.paint_symbol["text-translate"]),"text-translate-anchor":new Yi(ae.paint_symbol["text-translate-anchor"])})},get layout(){return pp=pp||new ze({"symbol-placement":new Yi(ae.layout_symbol["symbol-placement"]),"symbol-spacing":new Yi(ae.layout_symbol["symbol-spacing"]),"symbol-avoid-edges":new Yi(ae.layout_symbol["symbol-avoid-edges"]),"symbol-sort-key":new io(ae.layout_symbol["symbol-sort-key"]),"symbol-z-order":new Yi(ae.layout_symbol["symbol-z-order"]),"icon-allow-overlap":new Yi(ae.layout_symbol["icon-allow-overlap"]),"icon-overlap":new Yi(ae.layout_symbol["icon-overlap"]),"icon-ignore-placement":new Yi(ae.layout_symbol["icon-ignore-placement"]),"icon-optional":new Yi(ae.layout_symbol["icon-optional"]),"icon-rotation-alignment":new Yi(ae.layout_symbol["icon-rotation-alignment"]),"icon-size":new io(ae.layout_symbol["icon-size"]),"icon-text-fit":new Yi(ae.layout_symbol["icon-text-fit"]),"icon-text-fit-padding":new Yi(ae.layout_symbol["icon-text-fit-padding"]),"icon-image":new io(ae.layout_symbol["icon-image"]),"icon-rotate":new io(ae.layout_symbol["icon-rotate"]),"icon-padding":new io(ae.layout_symbol["icon-padding"]),"icon-keep-upright":new Yi(ae.layout_symbol["icon-keep-upright"]),"icon-offset":new io(ae.layout_symbol["icon-offset"]),"icon-anchor":new io(ae.layout_symbol["icon-anchor"]),"icon-pitch-alignment":new Yi(ae.layout_symbol["icon-pitch-alignment"]),"text-pitch-alignment":new Yi(ae.layout_symbol["text-pitch-alignment"]),"text-rotation-alignment":new Yi(ae.layout_symbol["text-rotation-alignment"]),"text-field":new io(ae.layout_symbol["text-field"]),"text-font":new io(ae.layout_symbol["text-font"]),"text-size":new io(ae.layout_symbol["text-size"]),"text-max-width":new io(ae.layout_symbol["text-max-width"]),"text-line-height":new Yi(ae.layout_symbol["text-line-height"]),"text-letter-spacing":new io(ae.layout_symbol["text-letter-spacing"]),"text-justify":new io(ae.layout_symbol["text-justify"]),"text-radial-offset":new io(ae.layout_symbol["text-radial-offset"]),"text-variable-anchor":new Yi(ae.layout_symbol["text-variable-anchor"]),"text-variable-anchor-offset":new io(ae.layout_symbol["text-variable-anchor-offset"]),"text-anchor":new io(ae.layout_symbol["text-anchor"]),"text-max-angle":new Yi(ae.layout_symbol["text-max-angle"]),"text-writing-mode":new Yi(ae.layout_symbol["text-writing-mode"]),"text-rotate":new io(ae.layout_symbol["text-rotate"]),"text-padding":new Yi(ae.layout_symbol["text-padding"]),"text-keep-upright":new Yi(ae.layout_symbol["text-keep-upright"]),"text-transform":new io(ae.layout_symbol["text-transform"]),"text-offset":new io(ae.layout_symbol["text-offset"]),"text-allow-overlap":new Yi(ae.layout_symbol["text-allow-overlap"]),"text-overlap":new Yi(ae.layout_symbol["text-overlap"]),"text-ignore-placement":new Yi(ae.layout_symbol["text-ignore-placement"]),"text-optional":new Yi(ae.layout_symbol["text-optional"])})}};class wd{constructor(D){if(D.property.overrides===void 0)throw new Error("overrides must be provided to instantiate FormatSectionOverride class");this.type=D.property.overrides?D.property.overrides.runtimeType:nt,this.defaultValue=D}evaluate(D){if(D.formattedSection){const K=this.defaultValue.property.overrides;if(K&&K.hasOverride(D.formattedSection))return K.getOverride(D.formattedSection)}return D.feature&&D.featureState?this.defaultValue.evaluate(D.feature,D.featureState):this.defaultValue.property.specification.default}eachChild(D){this.defaultValue.isConstant()||D(this.defaultValue.value._styleExpression.expression)}outputDefined(){return!1}serialize(){return null}}dn("FormatSectionOverride",wd,{omit:["defaultValue"]});class u0 extends ne{constructor(D){super(D,wg)}recalculate(D,K){if(super.recalculate(D,K),this.layout.get("icon-rotation-alignment")==="auto"&&(this.layout._values["icon-rotation-alignment"]=this.layout.get("symbol-placement")!=="point"?"map":"viewport"),this.layout.get("text-rotation-alignment")==="auto"&&(this.layout._values["text-rotation-alignment"]=this.layout.get("symbol-placement")!=="point"?"map":"viewport"),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")),this.layout.get("symbol-placement")==="point"){const ve=this.layout.get("text-writing-mode");if(ve){const Ee=[];for(const Ne of ve)Ee.indexOf(Ne)<0&&Ee.push(Ne);this.layout._values["text-writing-mode"]=Ee}else this.layout._values["text-writing-mode"]=["horizontal"]}this._setPaintOverrides()}getValueAndResolveTokens(D,K,ve,Ee){const Ne=this.layout.get(D).evaluate(K,{},ve,Ee),qe=this._unevaluatedLayout._values[D];return qe.isDataDriven()||tc(qe.value)||!Ne?Ne:function(ut,wt){return wt.replace(/{([^{}]+)}/g,(Ot,ar)=>ut&&ar in ut?String(ut[ar]):"")}(K.properties,Ne)}createBucket(D){return new Kv(D)}queryRadius(){return 0}queryIntersectsFeature(){throw new Error("Should take a different path in FeatureIndex")}_setPaintOverrides(){for(const D of wg.paint.overridableProperties){if(!u0.hasPaintOverride(this.layout,D))continue;const K=this.paint.get(D),ve=new wd(K),Ee=new ru(ve,K.property.specification);let Ne=null;Ne=K.value.kind==="constant"||K.value.kind==="source"?new Hu("source",Ee):new Gl("composite",Ee,K.value.zoomStops),this.paint._values[D]=new ll(K.property,Ne,K.parameters)}}_handleOverridablePaintPropertyUpdate(D,K,ve){return!(!this.layout||K.isDataDriven()||ve.isDataDriven())&&u0.hasPaintOverride(this.layout,D)}static hasPaintOverride(D,K){const ve=D.get("text-field"),Ee=wg.paint.properties[K];let Ne=!1;const qe=ut=>{for(const wt of ut)if(Ee.overrides&&Ee.overrides.hasOverride(wt))return void(Ne=!0)};if(ve.value.kind==="constant"&&ve.value.value instanceof ha)qe(ve.value.value.sections);else if(ve.value.kind==="source"){const ut=Ot=>{Ne||(Ot instanceof Lr&&mt(Ot.value)===Rr?qe(Ot.value.sections):Ot instanceof cs?qe(Ot.sections):Ot.eachChild(ut))},wt=ve.value;wt._styleExpression&&ut(wt._styleExpression.expression)}return Ne}}let Tg;var uy={get paint(){return Tg=Tg||new ze({"background-color":new Yi(ae.paint_background["background-color"]),"background-pattern":new du(ae.paint_background["background-pattern"]),"background-opacity":new Yi(ae.paint_background["background-opacity"])})}};class mp extends ne{constructor(D){super(D,uy)}}let c0;var Ag={get paint(){return c0=c0||new ze({"raster-opacity":new Yi(ae.paint_raster["raster-opacity"]),"raster-hue-rotate":new Yi(ae.paint_raster["raster-hue-rotate"]),"raster-brightness-min":new Yi(ae.paint_raster["raster-brightness-min"]),"raster-brightness-max":new Yi(ae.paint_raster["raster-brightness-max"]),"raster-saturation":new Yi(ae.paint_raster["raster-saturation"]),"raster-contrast":new Yi(ae.paint_raster["raster-contrast"]),"raster-resampling":new Yi(ae.paint_raster["raster-resampling"]),"raster-fade-duration":new Yi(ae.paint_raster["raster-fade-duration"])})}};class qx extends ne{constructor(D){super(D,Ag)}}class cy extends ne{constructor(D){super(D,{}),this.onAdd=K=>{this.implementation.onAdd&&this.implementation.onAdd(K,K.painter.context.gl)},this.onRemove=K=>{this.implementation.onRemove&&this.implementation.onRemove(K,K.painter.context.gl)},this.implementation=D}is3D(){return this.implementation.renderingMode==="3d"}hasOffscreenPass(){return this.implementation.prerender!==void 0}recalculate(){}updateTransitions(){}hasTransition(){return!1}serialize(){throw new Error("Custom layers cannot be serialized")}}class yp{constructor(D){this._methodToThrottle=D,this._triggered=!1,typeof MessageChannel<"u"&&(this._channel=new MessageChannel,this._channel.port2.onmessage=()=>{this._triggered=!1,this._methodToThrottle()})}trigger(){this._triggered||(this._triggered=!0,this._channel?this._channel.port1.postMessage(!0):setTimeout(()=>{this._triggered=!1,this._methodToThrottle()},0))}remove(){delete this._channel,this._methodToThrottle=()=>{}}}const Sg=63710088e-1;class Kh{constructor(D,K){if(isNaN(D)||isNaN(K))throw new Error(`Invalid LngLat object: (${D}, ${K})`);if(this.lng=+D,this.lat=+K,this.lat>90||this.lat<-90)throw new Error("Invalid LngLat latitude value: must be between -90 and 90")}wrap(){return new Kh(S(this.lng,-180,180),this.lat)}toArray(){return[this.lng,this.lat]}toString(){return`LngLat(${this.lng}, ${this.lat})`}distanceTo(D){const K=Math.PI/180,ve=this.lat*K,Ee=D.lat*K,Ne=Math.sin(ve)*Math.sin(Ee)+Math.cos(ve)*Math.cos(Ee)*Math.cos((D.lng-this.lng)*K);return Sg*Math.acos(Math.min(Ne,1))}static convert(D){if(D instanceof Kh)return D;if(Array.isArray(D)&&(D.length===2||D.length===3))return new Kh(Number(D[0]),Number(D[1]));if(!Array.isArray(D)&&typeof D=="object"&&D!==null)return new Kh(Number("lng"in D?D.lng:D.lon),Number(D.lat));throw new Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: , lat: }, an object {lon: , lat: }, or an array of [, ]")}}const fy=2*Math.PI*Sg;function f0(W){return fy*Math.cos(W*Math.PI/180)}function h0(W){return(180+W)/360}function hy(W){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+W*Math.PI/360)))/360}function Bh(W,D){return W/f0(D)}function Mg(W){return 360/Math.PI*Math.atan(Math.exp((180-360*W)*Math.PI/180))-90}class _p{constructor(D,K,ve=0){this.x=+D,this.y=+K,this.z=+ve}static fromLngLat(D,K=0){const ve=Kh.convert(D);return new _p(h0(ve.lng),hy(ve.lat),Bh(K,ve.lat))}toLngLat(){return new Kh(360*this.x-180,Mg(this.y))}toAltitude(){return this.z*f0(Mg(this.y))}meterInMercatorCoordinateUnits(){return 1/fy*(D=Mg(this.y),1/Math.cos(D*Math.PI/180));var D}}function vy(W,D,K){var ve=2*Math.PI*6378137/256/Math.pow(2,K);return[W*ve-2*Math.PI*6378137/2,D*ve-2*Math.PI*6378137/2]}class Eg{constructor(D,K,ve){if(!function(Ee,Ne,qe){return!(Ee<0||Ee>25||qe<0||qe>=Math.pow(2,Ee)||Ne<0||Ne>=Math.pow(2,Ee))}(D,K,ve))throw new Error(`x=${K}, y=${ve}, z=${D} outside of bounds. 0<=x<${Math.pow(2,D)}, 0<=y<${Math.pow(2,D)} 0<=z<=25 `);this.z=D,this.x=K,this.y=ve,this.key=Td(0,D,D,K,ve)}equals(D){return this.z===D.z&&this.x===D.x&&this.y===D.y}url(D,K,ve){const Ee=(qe=this.y,ut=this.z,wt=vy(256*(Ne=this.x),256*(qe=Math.pow(2,ut)-qe-1),ut),Ot=vy(256*(Ne+1),256*(qe+1),ut),wt[0]+","+wt[1]+","+Ot[0]+","+Ot[1]);var Ne,qe,ut,wt,Ot;const ar=function(lr,Sr,Fr){let Yr,sa="";for(let _a=lr;_a>0;_a--)Yr=1<<_a-1,sa+=(Sr&Yr?1:0)+(Fr&Yr?2:0);return sa}(this.z,this.x,this.y);return D[(this.x+this.y)%D.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(ve==="tms"?Math.pow(2,this.z)-this.y-1:this.y)).replace(/{ratio}/g,K>1?"@2x":"").replace(/{quadkey}/g,ar).replace(/{bbox-epsg-3857}/g,Ee)}isChildOf(D){const K=this.z-D.z;return K>0&&D.x===this.x>>K&&D.y===this.y>>K}getTilePoint(D){const K=Math.pow(2,this.z);return new o((D.x*K-this.x)*zs,(D.y*K-this.y)*zs)}toString(){return`${this.z}/${this.x}/${this.y}`}}class dy{constructor(D,K){this.wrap=D,this.canonical=K,this.key=Td(D,K.z,K.z,K.x,K.y)}}class Ih{constructor(D,K,ve,Ee,Ne){if(D= z; overscaledZ = ${D}; z = ${ve}`);this.overscaledZ=D,this.wrap=K,this.canonical=new Eg(ve,+Ee,+Ne),this.key=Td(K,D,ve,Ee,Ne)}clone(){return new Ih(this.overscaledZ,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)}equals(D){return this.overscaledZ===D.overscaledZ&&this.wrap===D.wrap&&this.canonical.equals(D.canonical)}scaledTo(D){if(D>this.overscaledZ)throw new Error(`targetZ > this.overscaledZ; targetZ = ${D}; overscaledZ = ${this.overscaledZ}`);const K=this.canonical.z-D;return D>this.canonical.z?new Ih(D,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new Ih(D,this.wrap,D,this.canonical.x>>K,this.canonical.y>>K)}calculateScaledKey(D,K){if(D>this.overscaledZ)throw new Error(`targetZ > this.overscaledZ; targetZ = ${D}; overscaledZ = ${this.overscaledZ}`);const ve=this.canonical.z-D;return D>this.canonical.z?Td(this.wrap*+K,D,this.canonical.z,this.canonical.x,this.canonical.y):Td(this.wrap*+K,D,D,this.canonical.x>>ve,this.canonical.y>>ve)}isChildOf(D){if(D.wrap!==this.wrap)return!1;const K=this.canonical.z-D.canonical.z;return D.overscaledZ===0||D.overscaledZ>K&&D.canonical.y===this.canonical.y>>K}children(D){if(this.overscaledZ>=D)return[new Ih(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];const K=this.canonical.z+1,ve=2*this.canonical.x,Ee=2*this.canonical.y;return[new Ih(K,this.wrap,K,ve,Ee),new Ih(K,this.wrap,K,ve+1,Ee),new Ih(K,this.wrap,K,ve,Ee+1),new Ih(K,this.wrap,K,ve+1,Ee+1)]}isLessThan(D){return this.wrapD.wrap)&&(this.overscaledZD.overscaledZ)&&(this.canonical.xD.canonical.x)&&this.canonical.ythis.max&&(this.max=lr),lr=this.dim+1||K<-1||K>=this.dim+1)throw new RangeError("out of range source coordinates for DEM data");return(K+1)*this.stride+(D+1)}unpack(D,K,ve){return D*this.redFactor+K*this.greenFactor+ve*this.blueFactor-this.baseShift}getPixels(){return new ts({width:this.stride,height:this.stride},new Uint8Array(this.data.buffer))}backfillBorder(D,K,ve){if(this.dim!==D.dim)throw new Error("dem dimension mismatch");let Ee=K*this.dim,Ne=K*this.dim+this.dim,qe=ve*this.dim,ut=ve*this.dim+this.dim;switch(K){case-1:Ee=Ne-1;break;case 1:Ne=Ee+1}switch(ve){case-1:qe=ut-1;break;case 1:ut=qe+1}const wt=-K*this.dim,Ot=-ve*this.dim;for(let ar=qe;ar=this._numberToString.length)throw new Error(`Out of bounds. Index requested n=${D} can't be >= this._numberToString.length ${this._numberToString.length}`);return this._numberToString[D]}}class gy{constructor(D,K,ve,Ee,Ne){this.type="Feature",this._vectorTileFeature=D,D._z=K,D._x=ve,D._y=Ee,this.properties=D.properties,this.id=Ne}get geometry(){return this._geometry===void 0&&(this._geometry=this._vectorTileFeature.toGeoJSON(this._vectorTileFeature._x,this._vectorTileFeature._y,this._vectorTileFeature._z).geometry),this._geometry}set geometry(D){this._geometry=D}toJSON(){const D={geometry:this.geometry};for(const K in this)K!=="_geometry"&&K!=="_vectorTileFeature"&&(D[K]=this[K]);return D}}class my{constructor(D,K){this.tileID=D,this.x=D.canonical.x,this.y=D.canonical.y,this.z=D.canonical.z,this.grid=new qn(zs,16,0),this.grid3D=new qn(zs,16,0),this.featureIndexArray=new Hs,this.promoteId=K}insert(D,K,ve,Ee,Ne,qe){const ut=this.featureIndexArray.length;this.featureIndexArray.emplaceBack(ve,Ee,Ne);const wt=qe?this.grid3D:this.grid;for(let Ot=0;Ot=0&&lr[3]>=0&&wt.insert(ut,lr[0],lr[1],lr[2],lr[3])}}loadVTLayers(){return this.vtLayers||(this.vtLayers=new ja.VectorTile(new pg(this.rawTileData)).layers,this.sourceLayerCoder=new py(this.vtLayers?Object.keys(this.vtLayers).sort():["_geojsonTileLayer"])),this.vtLayers}query(D,K,ve,Ee){this.loadVTLayers();const Ne=D.params||{},qe=zs/D.tileSize/D.scale,ut=Pc(Ne.filter),wt=D.queryGeometry,Ot=D.queryPadding*qe,ar=kg(wt),lr=this.grid.query(ar.minX-Ot,ar.minY-Ot,ar.maxX+Ot,ar.maxY+Ot),Sr=kg(D.cameraQueryGeometry),Fr=this.grid3D.query(Sr.minX-Ot,Sr.minY-Ot,Sr.maxX+Ot,Sr.maxY+Ot,(_a,Wa,zn,vn)=>function(Cn,$n,gi,Ji,as){for(const $i of Cn)if($n<=$i.x&&gi<=$i.y&&Ji>=$i.x&&as>=$i.y)return!0;const oo=[new o($n,gi),new o($n,as),new o(Ji,as),new o(Ji,gi)];if(Cn.length>2){for(const $i of oo)if(xn(Cn,$i))return!0}for(let $i=0;$i(vn||(vn=lt(Cn)),$n.queryIntersectsFeature(wt,Cn,gi,vn,this.z,D.transform,qe,D.pixelPosMatrix)))}return Yr}loadMatchingFeature(D,K,ve,Ee,Ne,qe,ut,wt,Ot,ar,lr){const Sr=this.bucketLayerIDs[K];if(qe&&!function(_a,Wa){for(let zn=0;zn<_a.length;zn++)if(Wa.indexOf(_a[zn])>=0)return!0;return!1}(qe,Sr))return;const Fr=this.sourceLayerCoder.decode(ve),Yr=this.vtLayers[Fr].feature(Ee);if(Ne.needGeometry){const _a=ir(Yr,!0);if(!Ne.filter(new os(this.tileID.overscaledZ),_a,this.tileID.canonical))return}else if(!Ne.filter(new os(this.tileID.overscaledZ),Yr))return;const sa=this.getId(Yr,Fr);for(let _a=0;_a{const ut=D instanceof Zu?D.get(qe):null;return ut&&ut.evaluate?ut.evaluate(K,ve,Ee):ut})}function kg(W){let D=1/0,K=1/0,ve=-1/0,Ee=-1/0;for(const Ne of W)D=Math.min(D,Ne.x),K=Math.min(K,Ne.y),ve=Math.max(ve,Ne.x),Ee=Math.max(Ee,Ne.y);return{minX:D,minY:K,maxX:ve,maxY:Ee}}function _y(W,D){return D-W}function xy(W,D,K,ve,Ee){const Ne=[];for(let qe=0;qe=ve&&lr.x>=ve||(ar.x>=ve?ar=new o(ve,ar.y+(ve-ar.x)/(lr.x-ar.x)*(lr.y-ar.y))._round():lr.x>=ve&&(lr=new o(ve,ar.y+(ve-ar.x)/(lr.x-ar.x)*(lr.y-ar.y))._round()),ar.y>=Ee&&lr.y>=Ee||(ar.y>=Ee?ar=new o(ar.x+(Ee-ar.y)/(lr.y-ar.y)*(lr.x-ar.x),Ee)._round():lr.y>=Ee&&(lr=new o(ar.x+(Ee-ar.y)/(lr.y-ar.y)*(lr.x-ar.x),Ee)._round()),wt&&ar.equals(wt[wt.length-1])||(wt=[ar],Ne.push(wt)),wt.push(lr)))))}}return Ne}dn("FeatureIndex",my,{omit:["rawTileData","sourceLayerCoder"]});class Rv extends o{constructor(D,K,ve,Ee){super(D,K),this.angle=ve,Ee!==void 0&&(this.segment=Ee)}clone(){return new Rv(this.x,this.y,this.angle,this.segment)}}function by(W,D,K,ve,Ee){if(D.segment===void 0||K===0)return!0;let Ne=D,qe=D.segment+1,ut=0;for(;ut>-K/2;){if(qe--,qe<0)return!1;ut-=W[qe].dist(Ne),Ne=W[qe]}ut+=W[qe].dist(W[qe+1]),qe++;const wt=[];let Ot=0;for(;utve;)Ot-=wt.shift().angleDelta;if(Ot>Ee)return!1;qe++,ut+=ar.dist(lr)}return!0}function wy(W){let D=0;for(let K=0;KOt){const Yr=(Ot-wt)/Fr,sa=Li.number(lr.x,Sr.x,Yr),_a=Li.number(lr.y,Sr.y,Yr),Wa=new Rv(sa,_a,Sr.angleTo(lr),ar);return Wa._round(),!qe||by(W,Wa,ut,qe,D)?Wa:void 0}wt+=Fr}}function Hx(W,D,K,ve,Ee,Ne,qe,ut,wt){const Ot=Ty(ve,Ne,qe),ar=Ay(ve,Ee),lr=ar*qe,Sr=W[0].x===0||W[0].x===wt||W[0].y===0||W[0].y===wt;return D-lr=0&&Cn=0&&$n=0&&Sr+Ot<=ar){const gi=new Rv(Cn,$n,zn,Yr);gi._round(),ve&&!by(W,gi,Ne,ve,Ee)||Fr.push(gi)}}lr+=Wa}return ut||Fr.length||qe||(Fr=Qv(W,lr/2,K,ve,Ee,Ne,qe,!0,wt)),Fr}dn("Anchor",Rv);const Ad=af;function Sy(W,D,K,ve){const Ee=[],Ne=W.image,qe=Ne.pixelRatio,ut=Ne.paddedRect.w-2*Ad,wt=Ne.paddedRect.h-2*Ad;let Ot={x1:W.left,y1:W.top,x2:W.right,y2:W.bottom};const ar=Ne.stretchX||[[0,ut]],lr=Ne.stretchY||[[0,wt]],Sr=(li,jo)=>li+jo[1]-jo[0],Fr=ar.reduce(Sr,0),Yr=lr.reduce(Sr,0),sa=ut-Fr,_a=wt-Yr;let Wa=0,zn=Fr,vn=0,Cn=Yr,$n=0,gi=sa,Ji=0,as=_a;if(Ne.content&&ve){const li=Ne.content,jo=li[2]-li[0],Do=li[3]-li[1];(Ne.textFitWidth||Ne.textFitHeight)&&(Ot=oy(W)),Wa=Sd(ar,0,li[0]),vn=Sd(lr,0,li[1]),zn=Sd(ar,li[0],li[2]),Cn=Sd(lr,li[1],li[3]),$n=li[0]-Wa,Ji=li[1]-vn,gi=jo-zn,as=Do-Cn}const oo=Ot.x1,$i=Ot.y1,Ro=Ot.x2-oo,To=Ot.y2-$i,_o=(li,jo,Do,xs)=>{const Tu=Th(li.stretch-Wa,zn,Ro,oo),gu=v0(li.fixed-$n,gi,li.stretch,Fr),vf=Th(jo.stretch-vn,Cn,To,$i),fh=v0(jo.fixed-Ji,as,jo.stretch,Yr),zc=Th(Do.stretch-Wa,zn,Ro,oo),nf=v0(Do.fixed-$n,gi,Do.stretch,Fr),rh=Th(xs.stretch-vn,Cn,To,$i),ah=v0(xs.fixed-Ji,as,xs.stretch,Yr),nh=new o(Tu,vf),fc=new o(zc,vf),df=new o(zc,rh),Xf=new o(Tu,rh),Ff=new o(gu/qe,fh/qe),ih=new o(nf/qe,ah/qe),Sf=D*Math.PI/180;if(Sf){const ml=Math.sin(Sf),Ql=Math.cos(Sf),su=[Ql,-ml,ml,Ql];nh._matMult(su),fc._matMult(su),Xf._matMult(su),df._matMult(su)}const Ah=li.stretch+li.fixed,Ou=jo.stretch+jo.fixed;return{tl:nh,tr:fc,bl:Xf,br:df,tex:{x:Ne.paddedRect.x+Ad+Ah,y:Ne.paddedRect.y+Ad+Ou,w:Do.stretch+Do.fixed-Ah,h:xs.stretch+xs.fixed-Ou},writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:Ff,pixelOffsetBR:ih,minFontScaleX:gi/qe/Ro,minFontScaleY:as/qe/To,isSDF:K}};if(ve&&(Ne.stretchX||Ne.stretchY)){const li=Md(ar,sa,Fr),jo=Md(lr,_a,Yr);for(let Do=0;Do0&&(sa=Math.max(10,sa),this.circleDiameter=sa)}else{const Sr=!((lr=qe.image)===null||lr===void 0)&&lr.content&&(qe.image.textFitWidth||qe.image.textFitHeight)?oy(qe):{x1:qe.left,y1:qe.top,x2:qe.right,y2:qe.bottom};Sr.y1=Sr.y1*ut-wt[0],Sr.y2=Sr.y2*ut+wt[2],Sr.x1=Sr.x1*ut-wt[3],Sr.x2=Sr.x2*ut+wt[1];const Fr=qe.collisionPadding;if(Fr&&(Sr.x1-=Fr[0]*ut,Sr.y1-=Fr[1]*ut,Sr.x2+=Fr[2]*ut,Sr.y2+=Fr[3]*ut),ar){const Yr=new o(Sr.x1,Sr.y1),sa=new o(Sr.x2,Sr.y1),_a=new o(Sr.x1,Sr.y2),Wa=new o(Sr.x2,Sr.y2),zn=ar*Math.PI/180;Yr._rotate(zn),sa._rotate(zn),_a._rotate(zn),Wa._rotate(zn),Sr.x1=Math.min(Yr.x,sa.x,_a.x,Wa.x),Sr.x2=Math.max(Yr.x,sa.x,_a.x,Wa.x),Sr.y1=Math.min(Yr.y,sa.y,_a.y,Wa.y),Sr.y2=Math.max(Yr.y,sa.y,_a.y,Wa.y)}D.emplaceBack(K.x,K.y,Sr.x1,Sr.y1,Sr.x2,Sr.y2,ve,Ee,Ne)}this.boxEndIndex=D.length}}class Wx{constructor(D=[],K=(ve,Ee)=>veEe?1:0){if(this.data=D,this.length=this.data.length,this.compare=K,this.length>0)for(let ve=(this.length>>1)-1;ve>=0;ve--)this._down(ve)}push(D){this.data.push(D),this._up(this.length++)}pop(){if(this.length===0)return;const D=this.data[0],K=this.data.pop();return--this.length>0&&(this.data[0]=K,this._down(0)),D}peek(){return this.data[0]}_up(D){const{data:K,compare:ve}=this,Ee=K[D];for(;D>0;){const Ne=D-1>>1,qe=K[Ne];if(ve(Ee,qe)>=0)break;K[D]=qe,D=Ne}K[D]=Ee}_down(D){const{data:K,compare:ve}=this,Ee=this.length>>1,Ne=K[D];for(;D=0)break;K[D]=K[qe],D=qe}K[D]=Ne}}function Xx(W,D=1,K=!1){let ve=1/0,Ee=1/0,Ne=-1/0,qe=-1/0;const ut=W[0];for(let Fr=0;FrNe)&&(Ne=Yr.x),(!Fr||Yr.y>qe)&&(qe=Yr.y)}const wt=Math.min(Ne-ve,qe-Ee);let Ot=wt/2;const ar=new Wx([],Zx);if(wt===0)return new o(ve,Ee);for(let Fr=ve;Frlr.d||!lr.d)&&(lr=Fr,K&&console.log("found best %d after %d probes",Math.round(1e4*Fr.d)/1e4,Sr)),Fr.max-lr.d<=D||(Ot=Fr.h/2,ar.push(new Jh(Fr.p.x-Ot,Fr.p.y-Ot,Ot,W)),ar.push(new Jh(Fr.p.x+Ot,Fr.p.y-Ot,Ot,W)),ar.push(new Jh(Fr.p.x-Ot,Fr.p.y+Ot,Ot,W)),ar.push(new Jh(Fr.p.x+Ot,Fr.p.y+Ot,Ot,W)),Sr+=4)}return K&&(console.log(`num probes: ${Sr}`),console.log(`best distance: ${lr.d}`)),lr.p}function Zx(W,D){return D.max-W.max}function Jh(W,D,K,ve){this.p=new o(W,D),this.h=K,this.d=function(Ee,Ne){let qe=!1,ut=1/0;for(let wt=0;wtEe.y!=Yr.y>Ee.y&&Ee.x<(Yr.x-Fr.x)*(Ee.y-Fr.y)/(Yr.y-Fr.y)+Fr.x&&(qe=!qe),ut=Math.min(ut,Jn(Ee,Fr,Yr))}}return(qe?1:-1)*Math.sqrt(ut)}(this.p,ve),this.max=this.d+this.h*Math.SQRT2}var Af;e.aq=void 0,(Af=e.aq||(e.aq={}))[Af.center=1]="center",Af[Af.left=2]="left",Af[Af.right=3]="right",Af[Af.top=4]="top",Af[Af.bottom=5]="bottom",Af[Af["top-left"]=6]="top-left",Af[Af["top-right"]=7]="top-right",Af[Af["bottom-left"]=8]="bottom-left",Af[Af["bottom-right"]=9]="bottom-right";const Dv=7,Cg=Number.POSITIVE_INFINITY;function My(W,D){return D[1]!==Cg?function(K,ve,Ee){let Ne=0,qe=0;switch(ve=Math.abs(ve),Ee=Math.abs(Ee),K){case"top-right":case"top-left":case"top":qe=Ee-Dv;break;case"bottom-right":case"bottom-left":case"bottom":qe=-Ee+Dv}switch(K){case"top-right":case"bottom-right":case"right":Ne=-ve;break;case"top-left":case"bottom-left":case"left":Ne=ve}return[Ne,qe]}(W,D[0],D[1]):function(K,ve){let Ee=0,Ne=0;ve<0&&(ve=0);const qe=ve/Math.SQRT2;switch(K){case"top-right":case"top-left":Ne=qe-Dv;break;case"bottom-right":case"bottom-left":Ne=-qe+Dv;break;case"bottom":Ne=-ve+Dv;break;case"top":Ne=ve-Dv}switch(K){case"top-right":case"bottom-right":Ee=-qe;break;case"top-left":case"bottom-left":Ee=qe;break;case"left":Ee=ve;break;case"right":Ee=-ve}return[Ee,Ne]}(W,D[0])}function Ey(W,D,K){var ve;const Ee=W.layout,Ne=(ve=Ee.get("text-variable-anchor-offset"))===null||ve===void 0?void 0:ve.evaluate(D,{},K);if(Ne){const ut=Ne.values,wt=[];for(let Ot=0;OtSr*Nl);ar.startsWith("top")?lr[1]-=Dv:ar.startsWith("bottom")&&(lr[1]+=Dv),wt[Ot+1]=lr}return new Da(wt)}const qe=Ee.get("text-variable-anchor");if(qe){let ut;ut=W._unevaluatedLayout.getValue("text-radial-offset")!==void 0?[Ee.get("text-radial-offset").evaluate(D,{},K)*Nl,Cg]:Ee.get("text-offset").evaluate(D,{},K).map(Ot=>Ot*Nl);const wt=[];for(const Ot of qe)wt.push(Ot,My(Ot,ut));return new Da(wt)}return null}function Lg(W){switch(W){case"right":case"top-right":case"bottom-right":return"right";case"left":case"top-left":case"bottom-left":return"left"}return"center"}function Yx(W,D,K,ve,Ee,Ne,qe,ut,wt,Ot,ar){let lr=Ne.textMaxSize.evaluate(D,{});lr===void 0&&(lr=qe);const Sr=W.layers[0].layout,Fr=Sr.get("icon-offset").evaluate(D,{},ar),Yr=Cy(K.horizontal),sa=qe/24,_a=W.tilePixelRatio*sa,Wa=W.tilePixelRatio*lr/24,zn=W.tilePixelRatio*ut,vn=W.tilePixelRatio*Sr.get("symbol-spacing"),Cn=Sr.get("text-padding")*W.tilePixelRatio,$n=function(li,jo,Do,xs=1){const Tu=li.get("icon-padding").evaluate(jo,{},Do),gu=Tu&&Tu.values;return[gu[0]*xs,gu[1]*xs,gu[2]*xs,gu[3]*xs]}(Sr,D,ar,W.tilePixelRatio),gi=Sr.get("text-max-angle")/180*Math.PI,Ji=Sr.get("text-rotation-alignment")!=="viewport"&&Sr.get("symbol-placement")!=="point",as=Sr.get("icon-rotation-alignment")==="map"&&Sr.get("symbol-placement")!=="point",oo=Sr.get("symbol-placement"),$i=vn/2,Ro=Sr.get("icon-text-fit");let To;ve&&Ro!=="none"&&(W.allowVerticalPlacement&&K.vertical&&(To=sy(ve,K.vertical,Ro,Sr.get("icon-text-fit-padding"),Fr,sa)),Yr&&(ve=sy(ve,Yr,Ro,Sr.get("icon-text-fit-padding"),Fr,sa)));const _o=(li,jo)=>{jo.x<0||jo.x>=zs||jo.y<0||jo.y>=zs||function(Do,xs,Tu,gu,vf,fh,zc,nf,rh,ah,nh,fc,df,Xf,Ff,ih,Sf,Ah,Ou,ml,Ql,su,ic,Bu,Cd){const jh=Do.addToLineVertexArray(xs,Tu);let Vh,Zf,Au,Mf,Nh=0,Sh=0,oh=0,Fg=0,Og=-1,y0=-1;const dv={};let Bg=Ba("");if(Do.allowVerticalPlacement&&gu.vertical){const Of=nf.layout.get("text-rotate").evaluate(Ql,{},Bu)+90;Au=new d0(rh,xs,ah,nh,fc,gu.vertical,df,Xf,Ff,Of),zc&&(Mf=new d0(rh,xs,ah,nh,fc,zc,Sf,Ah,Ff,Of))}if(vf){const Of=nf.layout.get("icon-rotate").evaluate(Ql,{}),Mh=nf.layout.get("icon-text-fit")!=="none",zv=Sy(vf,Of,ic,Mh),qh=zc?Sy(zc,Of,ic,Mh):void 0;Zf=new d0(rh,xs,ah,nh,fc,vf,Sf,Ah,!1,Of),Nh=4*zv.length;const ed=Do.iconSizeData;let Gh=null;ed.kind==="source"?(Gh=[$h*nf.layout.get("icon-size").evaluate(Ql,{})],Gh[0]>Pv&&y(`${Do.layerIds[0]}: Value for "icon-size" is >= ${dp}. Reduce your "icon-size".`)):ed.kind==="composite"&&(Gh=[$h*su.compositeIconSizes[0].evaluate(Ql,{},Bu),$h*su.compositeIconSizes[1].evaluate(Ql,{},Bu)],(Gh[0]>Pv||Gh[1]>Pv)&&y(`${Do.layerIds[0]}: Value for "icon-size" is >= ${dp}. Reduce your "icon-size".`)),Do.addSymbols(Do.icon,zv,Gh,ml,Ou,Ql,e.ah.none,xs,jh.lineStartIndex,jh.lineLength,-1,Bu),Og=Do.icon.placedSymbolArray.length-1,qh&&(Sh=4*qh.length,Do.addSymbols(Do.icon,qh,Gh,ml,Ou,Ql,e.ah.vertical,xs,jh.lineStartIndex,jh.lineLength,-1,Bu),y0=Do.icon.placedSymbolArray.length-1)}const Ng=Object.keys(gu.horizontal);for(const Of of Ng){const Mh=gu.horizontal[Of];if(!Vh){Bg=Ba(Mh.text);const qh=nf.layout.get("text-rotate").evaluate(Ql,{},Bu);Vh=new d0(rh,xs,ah,nh,fc,Mh,df,Xf,Ff,qh)}const zv=Mh.positionedLines.length===1;if(oh+=ky(Do,xs,Mh,fh,nf,Ff,Ql,ih,jh,gu.vertical?e.ah.horizontal:e.ah.horizontalOnly,zv?Ng:[Of],dv,Og,su,Bu),zv)break}gu.vertical&&(Fg+=ky(Do,xs,gu.vertical,fh,nf,Ff,Ql,ih,jh,e.ah.vertical,["vertical"],dv,y0,su,Bu));const Ug=Vh?Vh.boxStartIndex:Do.collisionBoxArray.length,jg=Vh?Vh.boxEndIndex:Do.collisionBoxArray.length,$x=Au?Au.boxStartIndex:Do.collisionBoxArray.length,Kx=Au?Au.boxEndIndex:Do.collisionBoxArray.length,Jx=Zf?Zf.boxStartIndex:Do.collisionBoxArray.length,Qx=Zf?Zf.boxEndIndex:Do.collisionBoxArray.length,Dy=Mf?Mf.boxStartIndex:Do.collisionBoxArray.length,Ld=Mf?Mf.boxEndIndex:Do.collisionBoxArray.length;let of=-1;const Pd=(Of,Mh)=>Of&&Of.circleDiameter?Math.max(Of.circleDiameter,Mh):Mh;of=Pd(Vh,of),of=Pd(Au,of),of=Pd(Zf,of),of=Pd(Mf,of);const Vg=of>-1?1:0;Vg&&(of*=Cd/Nl),Do.glyphOffsetArray.length>=Kv.MAX_GLYPHS&&y("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),Ql.sortKey!==void 0&&Do.addToSortKeyRanges(Do.symbolInstances.length,Ql.sortKey);const zy=Ey(nf,Ql,Bu),[eb,Fy]=function(Of,Mh){const zv=Of.length,qh=Mh?.values;if(qh?.length>0)for(let ed=0;ed=0?dv.right:-1,dv.center>=0?dv.center:-1,dv.left>=0?dv.left:-1,dv.vertical||-1,Og,y0,Bg,Ug,jg,$x,Kx,Jx,Qx,Dy,Ld,ah,oh,Fg,Nh,Sh,Vg,0,df,of,eb,Fy)}(W,jo,li,K,ve,Ee,To,W.layers[0],W.collisionBoxArray,D.index,D.sourceLayerIndex,W.index,_a,[Cn,Cn,Cn,Cn],Ji,wt,zn,$n,as,Fr,D,Ne,Ot,ar,qe)};if(oo==="line")for(const li of xy(D.geometry,0,0,zs,zs)){const jo=Hx(li,vn,gi,K.vertical||Yr,ve,24,Wa,W.overscaling,zs);for(const Do of jo)Yr&&Ly(W,Yr.text,$i,Do)||_o(li,Do)}else if(oo==="line-center"){for(const li of D.geometry)if(li.length>1){const jo=Gx(li,gi,K.vertical||Yr,ve,24,Wa);jo&&_o(li,jo)}}else if(D.type==="Polygon")for(const li of Vu(D.geometry,0)){const jo=Xx(li,16);_o(li[0],new Rv(jo.x,jo.y,0))}else if(D.type==="LineString")for(const li of D.geometry)_o(li,new Rv(li[0].x,li[0].y,0));else if(D.type==="Point")for(const li of D.geometry)for(const jo of li)_o([jo],new Rv(jo.x,jo.y,0))}function ky(W,D,K,ve,Ee,Ne,qe,ut,wt,Ot,ar,lr,Sr,Fr,Yr){const sa=function(zn,vn,Cn,$n,gi,Ji,as,oo){const $i=$n.layout.get("text-rotate").evaluate(Ji,{})*Math.PI/180,Ro=[];for(const To of vn.positionedLines)for(const _o of To.positionedGlyphs){if(!_o.rect)continue;const li=_o.rect||{};let jo=mg+1,Do=!0,xs=1,Tu=0;const gu=(gi||oo)&&_o.vertical,vf=_o.metrics.advance*_o.scale/2;if(oo&&vn.verticalizable&&(Tu=To.lineOffset/2-(_o.imageName?-(Nl-_o.metrics.width*_o.scale)/2:(_o.scale-1)*Nl)),_o.imageName){const ml=as[_o.imageName];Do=ml.sdf,xs=ml.pixelRatio,jo=af/xs}const fh=gi?[_o.x+vf,_o.y]:[0,0];let zc=gi?[0,0]:[_o.x+vf+Cn[0],_o.y+Cn[1]-Tu],nf=[0,0];gu&&(nf=zc,zc=[0,0]);const rh=_o.metrics.isDoubleResolution?2:1,ah=(_o.metrics.left-jo)*_o.scale-vf+zc[0],nh=(-_o.metrics.top-jo)*_o.scale+zc[1],fc=ah+li.w/rh*_o.scale/xs,df=nh+li.h/rh*_o.scale/xs,Xf=new o(ah,nh),Ff=new o(fc,nh),ih=new o(ah,df),Sf=new o(fc,df);if(gu){const ml=new o(-vf,vf-_d),Ql=-Math.PI/2,su=Nl/2-vf,ic=new o(5-_d-su,-(_o.imageName?su:0)),Bu=new o(...nf);Xf._rotateAround(Ql,ml)._add(ic)._add(Bu),Ff._rotateAround(Ql,ml)._add(ic)._add(Bu),ih._rotateAround(Ql,ml)._add(ic)._add(Bu),Sf._rotateAround(Ql,ml)._add(ic)._add(Bu)}if($i){const ml=Math.sin($i),Ql=Math.cos($i),su=[Ql,-ml,ml,Ql];Xf._matMult(su),Ff._matMult(su),ih._matMult(su),Sf._matMult(su)}const Ah=new o(0,0),Ou=new o(0,0);Ro.push({tl:Xf,tr:Ff,bl:ih,br:Sf,tex:li,writingMode:vn.writingMode,glyphOffset:fh,sectionIndex:_o.sectionIndex,isSDF:Do,pixelOffsetTL:Ah,pixelOffsetBR:Ou,minFontScaleX:0,minFontScaleY:0})}return Ro}(0,K,ut,Ee,Ne,qe,ve,W.allowVerticalPlacement),_a=W.textSizeData;let Wa=null;_a.kind==="source"?(Wa=[$h*Ee.layout.get("text-size").evaluate(qe,{})],Wa[0]>Pv&&y(`${W.layerIds[0]}: Value for "text-size" is >= ${dp}. Reduce your "text-size".`)):_a.kind==="composite"&&(Wa=[$h*Fr.compositeTextSizes[0].evaluate(qe,{},Yr),$h*Fr.compositeTextSizes[1].evaluate(qe,{},Yr)],(Wa[0]>Pv||Wa[1]>Pv)&&y(`${W.layerIds[0]}: Value for "text-size" is >= ${dp}. Reduce your "text-size".`)),W.addSymbols(W.text,sa,Wa,ut,Ne,qe,Ot,D,wt.lineStartIndex,wt.lineLength,Sr,Yr);for(const zn of ar)lr[zn]=W.text.placedSymbolArray.length-1;return 4*sa.length}function Cy(W){for(const D in W)return W[D];return null}function Ly(W,D,K,ve){const Ee=W.compareText;if(D in Ee){const Ne=Ee[D];for(let qe=Ne.length-1;qe>=0;qe--)if(ve.dist(Ne[qe])>4;if(Ee!==1)throw new Error(`Got v${Ee} data when expected v1.`);const Ne=Py[15&ve];if(!Ne)throw new Error("Unrecognized array type.");const[qe]=new Uint16Array(D,2,1),[ut]=new Uint32Array(D,4,1);return new Pg(ut,qe,Ne,D)}constructor(D,K=64,ve=Float64Array,Ee){if(isNaN(D)||D<0)throw new Error(`Unpexpected numItems value: ${D}.`);this.numItems=+D,this.nodeSize=Math.min(Math.max(+K,2),65535),this.ArrayType=ve,this.IndexArrayType=D<65536?Uint16Array:Uint32Array;const Ne=Py.indexOf(this.ArrayType),qe=2*D*this.ArrayType.BYTES_PER_ELEMENT,ut=D*this.IndexArrayType.BYTES_PER_ELEMENT,wt=(8-ut%8)%8;if(Ne<0)throw new Error(`Unexpected typed array class: ${ve}.`);Ee&&Ee instanceof ArrayBuffer?(this.data=Ee,this.ids=new this.IndexArrayType(this.data,8,D),this.coords=new this.ArrayType(this.data,8+ut+wt,2*D),this._pos=2*D,this._finished=!0):(this.data=new ArrayBuffer(8+qe+ut+wt),this.ids=new this.IndexArrayType(this.data,8,D),this.coords=new this.ArrayType(this.data,8+ut+wt,2*D),this._pos=0,this._finished=!1,new Uint8Array(this.data,0,2).set([219,16+Ne]),new Uint16Array(this.data,2,1)[0]=K,new Uint32Array(this.data,4,1)[0]=D)}add(D,K){const ve=this._pos>>1;return this.ids[ve]=ve,this.coords[this._pos++]=D,this.coords[this._pos++]=K,ve}finish(){const D=this._pos>>1;if(D!==this.numItems)throw new Error(`Added ${D} items when expected ${this.numItems}.`);return Ig(this.ids,this.coords,this.nodeSize,0,this.numItems-1,0),this._finished=!0,this}range(D,K,ve,Ee){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");const{ids:Ne,coords:qe,nodeSize:ut}=this,wt=[0,Ne.length-1,0],Ot=[];for(;wt.length;){const ar=wt.pop()||0,lr=wt.pop()||0,Sr=wt.pop()||0;if(lr-Sr<=ut){for(let _a=Sr;_a<=lr;_a++){const Wa=qe[2*_a],zn=qe[2*_a+1];Wa>=D&&Wa<=ve&&zn>=K&&zn<=Ee&&Ot.push(Ne[_a])}continue}const Fr=Sr+lr>>1,Yr=qe[2*Fr],sa=qe[2*Fr+1];Yr>=D&&Yr<=ve&&sa>=K&&sa<=Ee&&Ot.push(Ne[Fr]),(ar===0?D<=Yr:K<=sa)&&(wt.push(Sr),wt.push(Fr-1),wt.push(1-ar)),(ar===0?ve>=Yr:Ee>=sa)&&(wt.push(Fr+1),wt.push(lr),wt.push(1-ar))}return Ot}within(D,K,ve){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");const{ids:Ee,coords:Ne,nodeSize:qe}=this,ut=[0,Ee.length-1,0],wt=[],Ot=ve*ve;for(;ut.length;){const ar=ut.pop()||0,lr=ut.pop()||0,Sr=ut.pop()||0;if(lr-Sr<=qe){for(let _a=Sr;_a<=lr;_a++)zf(Ne[2*_a],Ne[2*_a+1],D,K)<=Ot&&wt.push(Ee[_a]);continue}const Fr=Sr+lr>>1,Yr=Ne[2*Fr],sa=Ne[2*Fr+1];zf(Yr,sa,D,K)<=Ot&&wt.push(Ee[Fr]),(ar===0?D-ve<=Yr:K-ve<=sa)&&(ut.push(Sr),ut.push(Fr-1),ut.push(1-ar)),(ar===0?D+ve>=Yr:K+ve>=sa)&&(ut.push(Fr+1),ut.push(lr),ut.push(1-ar))}return wt}}function Ig(W,D,K,ve,Ee,Ne){if(Ee-ve<=K)return;const qe=ve+Ee>>1;Iy(W,D,qe,ve,Ee,Ne),Ig(W,D,K,ve,qe-1,1-Ne),Ig(W,D,K,qe+1,Ee,1-Ne)}function Iy(W,D,K,ve,Ee,Ne){for(;Ee>ve;){if(Ee-ve>600){const Ot=Ee-ve+1,ar=K-ve+1,lr=Math.log(Ot),Sr=.5*Math.exp(2*lr/3),Fr=.5*Math.sqrt(lr*Sr*(Ot-Sr)/Ot)*(ar-Ot/2<0?-1:1);Iy(W,D,K,Math.max(ve,Math.floor(K-ar*Sr/Ot+Fr)),Math.min(Ee,Math.floor(K+(Ot-ar)*Sr/Ot+Fr)),Ne)}const qe=D[2*K+Ne];let ut=ve,wt=Ee;for(Ed(W,D,ve,K),D[2*Ee+Ne]>qe&&Ed(W,D,ve,Ee);utqe;)wt--}D[2*ve+Ne]===qe?Ed(W,D,ve,wt):(wt++,Ed(W,D,wt,Ee)),wt<=K&&(ve=wt+1),K<=wt&&(Ee=wt-1)}}function Ed(W,D,K,ve){p0(W,K,ve),p0(D,2*K,2*ve),p0(D,2*K+1,2*ve+1)}function p0(W,D,K){const ve=W[D];W[D]=W[K],W[K]=ve}function zf(W,D,K,ve){const Ee=W-K,Ne=D-ve;return Ee*Ee+Ne*Ne}var Rg;e.bg=void 0,(Rg=e.bg||(e.bg={})).create="create",Rg.load="load",Rg.fullLoad="fullLoad";let g0=null,kd=[];const Dg=1e3/60,m0="loadTime",zg="fullLoadTime",Ry={mark(W){performance.mark(W)},frame(W){const D=W;g0!=null&&kd.push(D-g0),g0=D},clearMetrics(){g0=null,kd=[],performance.clearMeasures(m0),performance.clearMeasures(zg);for(const W in e.bg)performance.clearMarks(e.bg[W])},getPerformanceMetrics(){performance.measure(m0,e.bg.create,e.bg.load),performance.measure(zg,e.bg.create,e.bg.fullLoad);const W=performance.getEntriesByName(m0)[0].duration,D=performance.getEntriesByName(zg)[0].duration,K=kd.length,ve=1/(kd.reduce((Ne,qe)=>Ne+qe,0)/K/1e3),Ee=kd.filter(Ne=>Ne>Dg).reduce((Ne,qe)=>Ne+(qe-Dg)/Dg,0);return{loadTime:W,fullLoadTime:D,fps:ve,percentDroppedFrames:Ee/(K+Ee)*100,totalFrames:K}}};e.$=class extends fr{},e.A=Xn,e.B=Ln,e.C=function(W){if(z==null){const D=W.navigator?W.navigator.userAgent:null;z=!!W.safari||!(!D||!(/\b(iPad|iPhone|iPod)\b/.test(D)||D.match("Safari")&&!D.match("Chrome")))}return z},e.D=Yi,e.E=re,e.F=class{constructor(W,D){this.target=W,this.mapId=D,this.resolveRejects={},this.tasks={},this.taskQueue=[],this.abortControllers={},this.messageHandlers={},this.invoker=new yp(()=>this.process()),this.subscription=function(K,ve,Ee,Ne){return K.addEventListener(ve,Ee,!1),{unsubscribe:()=>{K.removeEventListener(ve,Ee,!1)}}}(this.target,"message",K=>this.receive(K)),this.globalScope=I(self)?W:window}registerMessageHandler(W,D){this.messageHandlers[W]=D}sendAsync(W,D){return new Promise((K,ve)=>{const Ee=Math.round(1e18*Math.random()).toString(36).substring(0,10);this.resolveRejects[Ee]={resolve:K,reject:ve},D&&D.signal.addEventListener("abort",()=>{delete this.resolveRejects[Ee];const ut={id:Ee,type:"",origin:location.origin,targetMapId:W.targetMapId,sourceMapId:this.mapId};this.target.postMessage(ut)},{once:!0});const Ne=[],qe=Object.assign(Object.assign({},W),{id:Ee,sourceMapId:this.mapId,origin:location.origin,data:Zi(W.data,Ne)});this.target.postMessage(qe,{transfer:Ne})})}receive(W){const D=W.data,K=D.id;if(!(D.origin!=="file://"&&location.origin!=="file://"&&D.origin!=="resource://android"&&location.origin!=="resource://android"&&D.origin!==location.origin||D.targetMapId&&this.mapId!==D.targetMapId)){if(D.type===""){delete this.tasks[K];const ve=this.abortControllers[K];return delete this.abortControllers[K],void(ve&&ve.abort())}if(I(self)||D.mustQueue)return this.tasks[K]=D,this.taskQueue.push(K),void this.invoker.trigger();this.processTask(K,D)}}process(){if(this.taskQueue.length===0)return;const W=this.taskQueue.shift(),D=this.tasks[W];delete this.tasks[W],this.taskQueue.length>0&&this.invoker.trigger(),D&&this.processTask(W,D)}processTask(W,D){return t(this,void 0,void 0,function*(){if(D.type===""){const Ee=this.resolveRejects[W];return delete this.resolveRejects[W],Ee?void(D.error?Ee.reject(Wi(D.error)):Ee.resolve(Wi(D.data))):void 0}if(!this.messageHandlers[D.type])return void this.completeTask(W,new Error(`Could not find a registered handler for ${D.type}, map ID: ${this.mapId}, available handlers: ${Object.keys(this.messageHandlers).join(", ")}`));const K=Wi(D.data),ve=new AbortController;this.abortControllers[W]=ve;try{const Ee=yield this.messageHandlers[D.type](D.sourceMapId,K,ve);this.completeTask(W,null,Ee)}catch(Ee){this.completeTask(W,Ee)}})}completeTask(W,D,K){const ve=[];delete this.abortControllers[W];const Ee={id:W,type:"",sourceMapId:this.mapId,origin:location.origin,error:D?Zi(D):null,data:Zi(K,ve)};this.target.postMessage(Ee,{transfer:ve})}remove(){this.invoker.remove(),this.subscription.unsubscribe()}},e.G=ie,e.H=function(){var W=new Xn(16);return Xn!=Float32Array&&(W[1]=0,W[2]=0,W[3]=0,W[4]=0,W[6]=0,W[7]=0,W[8]=0,W[9]=0,W[11]=0,W[12]=0,W[13]=0,W[14]=0),W[0]=1,W[5]=1,W[10]=1,W[15]=1,W},e.I=Df,e.J=function(W,D,K){var ve,Ee,Ne,qe,ut,wt,Ot,ar,lr,Sr,Fr,Yr,sa=K[0],_a=K[1],Wa=K[2];return D===W?(W[12]=D[0]*sa+D[4]*_a+D[8]*Wa+D[12],W[13]=D[1]*sa+D[5]*_a+D[9]*Wa+D[13],W[14]=D[2]*sa+D[6]*_a+D[10]*Wa+D[14],W[15]=D[3]*sa+D[7]*_a+D[11]*Wa+D[15]):(Ee=D[1],Ne=D[2],qe=D[3],ut=D[4],wt=D[5],Ot=D[6],ar=D[7],lr=D[8],Sr=D[9],Fr=D[10],Yr=D[11],W[0]=ve=D[0],W[1]=Ee,W[2]=Ne,W[3]=qe,W[4]=ut,W[5]=wt,W[6]=Ot,W[7]=ar,W[8]=lr,W[9]=Sr,W[10]=Fr,W[11]=Yr,W[12]=ve*sa+ut*_a+lr*Wa+D[12],W[13]=Ee*sa+wt*_a+Sr*Wa+D[13],W[14]=Ne*sa+Ot*_a+Fr*Wa+D[14],W[15]=qe*sa+ar*_a+Yr*Wa+D[15]),W},e.K=function(W,D,K){var ve=K[0],Ee=K[1],Ne=K[2];return W[0]=D[0]*ve,W[1]=D[1]*ve,W[2]=D[2]*ve,W[3]=D[3]*ve,W[4]=D[4]*Ee,W[5]=D[5]*Ee,W[6]=D[6]*Ee,W[7]=D[7]*Ee,W[8]=D[8]*Ne,W[9]=D[9]*Ne,W[10]=D[10]*Ne,W[11]=D[11]*Ne,W[12]=D[12],W[13]=D[13],W[14]=D[14],W[15]=D[15],W},e.L=Ea,e.M=function(W,D){const K={};for(let ve=0;ve{const D=window.document.createElement("video");return D.muted=!0,new Promise(K=>{D.onloadstart=()=>{K(D)};for(const ve of W){const Ee=window.document.createElement("source");ee(ve)||(D.crossOrigin="Anonymous"),Ee.src=ve,D.appendChild(Ee)}})},e.a4=function(){return _++},e.a5=In,e.a6=Kv,e.a7=Pc,e.a8=ir,e.a9=gy,e.aA=function(W){if(W.type==="custom")return new cy(W);switch(W.type){case"background":return new mp(W);case"circle":return new fn(W);case"fill":return new Xr(W);case"fill-extrusion":return new _h(W);case"heatmap":return new Xo(W);case"hillshade":return new El(W);case"line":return new Xv(W);case"raster":return new qx(W);case"symbol":return new u0(W)}},e.aB=u,e.aC=function(W,D){if(!W)return[{command:"setStyle",args:[D]}];let K=[];try{if(!Ae(W.version,D.version))return[{command:"setStyle",args:[D]}];Ae(W.center,D.center)||K.push({command:"setCenter",args:[D.center]}),Ae(W.zoom,D.zoom)||K.push({command:"setZoom",args:[D.zoom]}),Ae(W.bearing,D.bearing)||K.push({command:"setBearing",args:[D.bearing]}),Ae(W.pitch,D.pitch)||K.push({command:"setPitch",args:[D.pitch]}),Ae(W.sprite,D.sprite)||K.push({command:"setSprite",args:[D.sprite]}),Ae(W.glyphs,D.glyphs)||K.push({command:"setGlyphs",args:[D.glyphs]}),Ae(W.transition,D.transition)||K.push({command:"setTransition",args:[D.transition]}),Ae(W.light,D.light)||K.push({command:"setLight",args:[D.light]}),Ae(W.terrain,D.terrain)||K.push({command:"setTerrain",args:[D.terrain]}),Ae(W.sky,D.sky)||K.push({command:"setSky",args:[D.sky]}),Ae(W.projection,D.projection)||K.push({command:"setProjection",args:[D.projection]});const ve={},Ee=[];(function(qe,ut,wt,Ot){let ar;for(ar in ut=ut||{},qe=qe||{})Object.prototype.hasOwnProperty.call(qe,ar)&&(Object.prototype.hasOwnProperty.call(ut,ar)||je(ar,wt,Ot));for(ar in ut)Object.prototype.hasOwnProperty.call(ut,ar)&&(Object.prototype.hasOwnProperty.call(qe,ar)?Ae(qe[ar],ut[ar])||(qe[ar].type==="geojson"&&ut[ar].type==="geojson"&&tt(qe,ut,ar)?Pe(wt,{command:"setGeoJSONSourceData",args:[ar,ut[ar].data]}):at(ar,ut,wt,Ot)):Ce(ar,ut,wt))})(W.sources,D.sources,Ee,ve);const Ne=[];W.layers&&W.layers.forEach(qe=>{"source"in qe&&ve[qe.source]?K.push({command:"removeLayer",args:[qe.id]}):Ne.push(qe)}),K=K.concat(Ee),function(qe,ut,wt){ut=ut||[];const Ot=(qe=qe||[]).map(Ze),ar=ut.map(Ze),lr=qe.reduce(Me,{}),Sr=ut.reduce(Me,{}),Fr=Ot.slice(),Yr=Object.create(null);let sa,_a,Wa,zn,vn;for(let Cn=0,$n=0;Cn@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,(K,ve,Ee,Ne)=>{const qe=Ee||Ne;return D[ve]=!qe||qe.toLowerCase(),""}),D["max-age"]){const K=parseInt(D["max-age"],10);isNaN(K)?delete D["max-age"]:D["max-age"]=K}return D},e.ab=function(W,D){const K=[];for(const ve in W)ve in D||K.push(ve);return K},e.ac=w,e.ad=function(W,D,K){var ve=Math.sin(K),Ee=Math.cos(K),Ne=D[0],qe=D[1],ut=D[2],wt=D[3],Ot=D[4],ar=D[5],lr=D[6],Sr=D[7];return D!==W&&(W[8]=D[8],W[9]=D[9],W[10]=D[10],W[11]=D[11],W[12]=D[12],W[13]=D[13],W[14]=D[14],W[15]=D[15]),W[0]=Ne*Ee+Ot*ve,W[1]=qe*Ee+ar*ve,W[2]=ut*Ee+lr*ve,W[3]=wt*Ee+Sr*ve,W[4]=Ot*Ee-Ne*ve,W[5]=ar*Ee-qe*ve,W[6]=lr*Ee-ut*ve,W[7]=Sr*Ee-wt*ve,W},e.ae=function(W){var D=new Xn(16);return D[0]=W[0],D[1]=W[1],D[2]=W[2],D[3]=W[3],D[4]=W[4],D[5]=W[5],D[6]=W[6],D[7]=W[7],D[8]=W[8],D[9]=W[9],D[10]=W[10],D[11]=W[11],D[12]=W[12],D[13]=W[13],D[14]=W[14],D[15]=W[15],D},e.af=An,e.ag=function(W,D){let K=0,ve=0;if(W.kind==="constant")ve=W.layoutSize;else if(W.kind!=="source"){const{interpolationType:Ee,minZoom:Ne,maxZoom:qe}=W,ut=Ee?w(Ni.interpolationFactor(Ee,D,Ne,qe),0,1):0;W.kind==="camera"?ve=Li.number(W.minSize,W.maxSize,ut):K=ut}return{uSizeT:K,uSize:ve}},e.ai=function(W,{uSize:D,uSizeT:K},{lowerSize:ve,upperSize:Ee}){return W.kind==="source"?ve/$h:W.kind==="composite"?Li.number(ve/$h,Ee/$h,K):D},e.aj=Iv,e.ak=function(W,D,K,ve){const Ee=D.y-W.y,Ne=D.x-W.x,qe=ve.y-K.y,ut=ve.x-K.x,wt=qe*Ne-ut*Ee;if(wt===0)return null;const Ot=(ut*(W.y-K.y)-qe*(W.x-K.x))/wt;return new o(W.x+Ot*Ne,W.y+Ot*Ee)},e.al=xy,e.am=Va,e.an=Oa,e.ao=function(W){let D=1/0,K=1/0,ve=-1/0,Ee=-1/0;for(const Ne of W)D=Math.min(D,Ne.x),K=Math.min(K,Ne.y),ve=Math.max(ve,Ne.x),Ee=Math.max(Ee,Ne.y);return[D,K,ve,Ee]},e.ap=Nl,e.ar=xg,e.as=function(W,D){var K=D[0],ve=D[1],Ee=D[2],Ne=D[3],qe=D[4],ut=D[5],wt=D[6],Ot=D[7],ar=D[8],lr=D[9],Sr=D[10],Fr=D[11],Yr=D[12],sa=D[13],_a=D[14],Wa=D[15],zn=K*ut-ve*qe,vn=K*wt-Ee*qe,Cn=K*Ot-Ne*qe,$n=ve*wt-Ee*ut,gi=ve*Ot-Ne*ut,Ji=Ee*Ot-Ne*wt,as=ar*sa-lr*Yr,oo=ar*_a-Sr*Yr,$i=ar*Wa-Fr*Yr,Ro=lr*_a-Sr*sa,To=lr*Wa-Fr*sa,_o=Sr*Wa-Fr*_a,li=zn*_o-vn*To+Cn*Ro+$n*$i-gi*oo+Ji*as;return li?(W[0]=(ut*_o-wt*To+Ot*Ro)*(li=1/li),W[1]=(Ee*To-ve*_o-Ne*Ro)*li,W[2]=(sa*Ji-_a*gi+Wa*$n)*li,W[3]=(Sr*gi-lr*Ji-Fr*$n)*li,W[4]=(wt*$i-qe*_o-Ot*oo)*li,W[5]=(K*_o-Ee*$i+Ne*oo)*li,W[6]=(_a*Cn-Yr*Ji-Wa*vn)*li,W[7]=(ar*Ji-Sr*Cn+Fr*vn)*li,W[8]=(qe*To-ut*$i+Ot*as)*li,W[9]=(ve*$i-K*To-Ne*as)*li,W[10]=(Yr*gi-sa*Cn+Wa*zn)*li,W[11]=(lr*Cn-ar*gi-Fr*zn)*li,W[12]=(ut*oo-qe*Ro-wt*as)*li,W[13]=(K*Ro-ve*oo+Ee*as)*li,W[14]=(sa*vn-Yr*$n-_a*zn)*li,W[15]=(ar*$n-lr*vn+Sr*zn)*li,W):null},e.at=Lg,e.au=_g,e.av=Pg,e.aw=function(){const W={},D=ae.$version;for(const K in ae.$root){const ve=ae.$root[K];if(ve.required){let Ee=null;Ee=K==="version"?D:ve.type==="array"?[]:{},Ee!=null&&(W[K]=Ee)}}return W},e.ax=ii,e.ay=q,e.az=function(W){W=W.slice();const D=Object.create(null);for(let K=0;K25||ve<0||ve>=1||K<0||K>=1)},e.bc=function(W,D){return W[0]=D[0],W[1]=0,W[2]=0,W[3]=0,W[4]=0,W[5]=D[1],W[6]=0,W[7]=0,W[8]=0,W[9]=0,W[10]=D[2],W[11]=0,W[12]=0,W[13]=0,W[14]=0,W[15]=1,W},e.bd=class extends er{},e.be=Sg,e.bf=Ry,e.bh=le,e.bi=function(W,D){te.REGISTERED_PROTOCOLS[W]=D},e.bj=function(W){delete te.REGISTERED_PROTOCOLS[W]},e.bk=function(W,D){const K={};for(let Ee=0;Ee_o*Nl)}let oo=qe?"center":K.get("text-justify").evaluate(Ot,{},W.canonical);const $i=K.get("symbol-placement")==="point"?K.get("text-max-width").evaluate(Ot,{},W.canonical)*Nl:1/0,Ro=()=>{W.bucket.allowVerticalPlacement&&ao(Cn)&&(Yr.vertical=n0(sa,W.glyphMap,W.glyphPositions,W.imagePositions,ar,$i,Ne,Ji,"left",gi,Wa,e.ah.vertical,!0,Sr,lr))};if(!qe&&as){const To=new Set;if(oo==="auto")for(let li=0;lit(void 0,void 0,void 0,function*(){if(W.byteLength===0)return createImageBitmap(new ImageData(1,1));const D=new Blob([new Uint8Array(W)],{type:"image/png"});try{return createImageBitmap(D)}catch(K){throw new Error(`Could not load image because of ${K.message}. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.`)}}),e.e=M,e.f=W=>new Promise((D,K)=>{const ve=new Image;ve.onload=()=>{D(ve),URL.revokeObjectURL(ve.src),ve.onload=null,window.requestAnimationFrame(()=>{ve.src=B})},ve.onerror=()=>K(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."));const Ee=new Blob([new Uint8Array(W)],{type:"image/png"});ve.src=W.byteLength?URL.createObjectURL(Ee):B}),e.g=ue,e.h=(W,D)=>J(M(W,{type:"json"}),D),e.i=I,e.j=V,e.k=Q,e.l=(W,D)=>J(M(W,{type:"arrayBuffer"}),D),e.m=J,e.n=function(W){return new pg(W).readFields(Fx,[])},e.o=eo,e.p=a0,e.q=ze,e.r=Ja,e.s=ee,e.t=_n,e.u=tn,e.v=ae,e.w=y,e.x=function([W,D,K]){return D+=90,D*=Math.PI/180,K*=Math.PI/180,{x:W*Math.cos(D)*Math.sin(K),y:W*Math.sin(D)*Math.sin(K),z:W*Math.cos(K)}},e.y=Li,e.z=os}),A("worker",["./shared"],function(e){class t{constructor(Fe){this.keyCache={},Fe&&this.replace(Fe)}replace(Fe){this._layerConfigs={},this._layers={},this.update(Fe,[])}update(Fe,We){for(const de of Fe){this._layerConfigs[de.id]=de;const me=this._layers[de.id]=e.aA(de);me._featureFilter=e.a7(me.filter),this.keyCache[de.id]&&delete this.keyCache[de.id]}for(const de of We)delete this.keyCache[de],delete this._layerConfigs[de],delete this._layers[de];this.familiesBySource={};const Oe=e.bk(Object.values(this._layerConfigs),this.keyCache);for(const de of Oe){const me=de.map(Ct=>this._layers[Ct.id]),be=me[0];if(be.visibility==="none")continue;const Ie=be.source||"";let Xe=this.familiesBySource[Ie];Xe||(Xe=this.familiesBySource[Ie]={});const ht=be.sourceLayer||"_geojsonTileLayer";let bt=Xe[ht];bt||(bt=Xe[ht]=[]),bt.push(me)}}}class r{constructor(Fe){const We={},Oe=[];for(const Ie in Fe){const Xe=Fe[Ie],ht=We[Ie]={};for(const bt in Xe){const Ct=Xe[+bt];if(!Ct||Ct.bitmap.width===0||Ct.bitmap.height===0)continue;const Zt={x:0,y:0,w:Ct.bitmap.width+2,h:Ct.bitmap.height+2};Oe.push(Zt),ht[bt]={rect:Zt,metrics:Ct.metrics}}}const{w:de,h:me}=e.p(Oe),be=new e.o({width:de||1,height:me||1});for(const Ie in Fe){const Xe=Fe[Ie];for(const ht in Xe){const bt=Xe[+ht];if(!bt||bt.bitmap.width===0||bt.bitmap.height===0)continue;const Ct=We[Ie][ht].rect;e.o.copy(bt.bitmap,be,{x:0,y:0},{x:Ct.x+1,y:Ct.y+1},bt.bitmap)}}this.image=be,this.positions=We}}e.bl("GlyphAtlas",r);class i{constructor(Fe){this.tileID=new e.S(Fe.tileID.overscaledZ,Fe.tileID.wrap,Fe.tileID.canonical.z,Fe.tileID.canonical.x,Fe.tileID.canonical.y),this.uid=Fe.uid,this.zoom=Fe.zoom,this.pixelRatio=Fe.pixelRatio,this.tileSize=Fe.tileSize,this.source=Fe.source,this.overscaling=this.tileID.overscaleFactor(),this.showCollisionBoxes=Fe.showCollisionBoxes,this.collectResourceTiming=!!Fe.collectResourceTiming,this.returnDependencies=!!Fe.returnDependencies,this.promoteId=Fe.promoteId,this.inFlightDependencies=[]}parse(Fe,We,Oe,de){return e._(this,void 0,void 0,function*(){this.status="parsing",this.data=Fe,this.collisionBoxArray=new e.a5;const me=new e.bm(Object.keys(Fe.layers).sort()),be=new e.bn(this.tileID,this.promoteId);be.bucketLayerIDs=[];const Ie={},Xe={featureIndex:be,iconDependencies:{},patternDependencies:{},glyphDependencies:{},availableImages:Oe},ht=We.familiesBySource[this.source];for(const Ga in ht){const ba=Fe.layers[Ga];if(!ba)continue;ba.version===1&&e.w(`Vector tile source "${this.source}" layer "${Ga}" does not use vector tile spec v2 and therefore may have some rendering errors.`);const Xa=me.encode(Ga),yn=[];for(let Kt=0;Kt=zt.maxzoom||zt.visibility!=="none"&&(a(Kt,this.zoom,Oe),(Ie[zt.id]=zt.createBucket({index:be.bucketLayerIDs.length,layers:Kt,zoom:this.zoom,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:Xa,sourceID:this.source})).populate(yn,Xe,this.tileID.canonical),be.bucketLayerIDs.push(Kt.map($t=>$t.id)))}}const bt=e.aF(Xe.glyphDependencies,Ga=>Object.keys(Ga).map(Number));this.inFlightDependencies.forEach(Ga=>Ga?.abort()),this.inFlightDependencies=[];let Ct=Promise.resolve({});if(Object.keys(bt).length){const Ga=new AbortController;this.inFlightDependencies.push(Ga),Ct=de.sendAsync({type:"GG",data:{stacks:bt,source:this.source,tileID:this.tileID,type:"glyphs"}},Ga)}const Zt=Object.keys(Xe.iconDependencies);let Wt=Promise.resolve({});if(Zt.length){const Ga=new AbortController;this.inFlightDependencies.push(Ga),Wt=de.sendAsync({type:"GI",data:{icons:Zt,source:this.source,tileID:this.tileID,type:"icons"}},Ga)}const rr=Object.keys(Xe.patternDependencies);let Jt=Promise.resolve({});if(rr.length){const Ga=new AbortController;this.inFlightDependencies.push(Ga),Jt=de.sendAsync({type:"GI",data:{icons:rr,source:this.source,tileID:this.tileID,type:"patterns"}},Ga)}const[mr,ia,Ia]=yield Promise.all([Ct,Wt,Jt]),La=new r(mr),Aa=new e.bo(ia,Ia);for(const Ga in Ie){const ba=Ie[Ga];ba instanceof e.a6?(a(ba.layers,this.zoom,Oe),e.bp({bucket:ba,glyphMap:mr,glyphPositions:La.positions,imageMap:ia,imagePositions:Aa.iconPositions,showCollisionBoxes:this.showCollisionBoxes,canonical:this.tileID.canonical})):ba.hasPattern&&(ba instanceof e.bq||ba instanceof e.br||ba instanceof e.bs)&&(a(ba.layers,this.zoom,Oe),ba.addFeatures(Xe,this.tileID.canonical,Aa.patternPositions))}return this.status="done",{buckets:Object.values(Ie).filter(Ga=>!Ga.isEmpty()),featureIndex:be,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:La.image,imageAtlas:Aa,glyphMap:this.returnDependencies?mr:null,iconMap:this.returnDependencies?ia:null,glyphPositions:this.returnDependencies?La.positions:null}})}}function a(yt,Fe,We){const Oe=new e.z(Fe);for(const de of yt)de.recalculate(Oe,We)}class o{constructor(Fe,We,Oe){this.actor=Fe,this.layerIndex=We,this.availableImages=Oe,this.fetching={},this.loading={},this.loaded={}}loadVectorTile(Fe,We){return e._(this,void 0,void 0,function*(){const Oe=yield e.l(Fe.request,We);try{return{vectorTile:new e.bt.VectorTile(new e.bu(Oe.data)),rawData:Oe.data,cacheControl:Oe.cacheControl,expires:Oe.expires}}catch(de){const me=new Uint8Array(Oe.data);let be=`Unable to parse the tile at ${Fe.request.url}, `;throw be+=me[0]===31&&me[1]===139?"please make sure the data is not gzipped and that you have configured the relevant header in the server":`got error: ${de.message}`,new Error(be)}})}loadTile(Fe){return e._(this,void 0,void 0,function*(){const We=Fe.uid,Oe=!!(Fe&&Fe.request&&Fe.request.collectResourceTiming)&&new e.bv(Fe.request),de=new i(Fe);this.loading[We]=de;const me=new AbortController;de.abort=me;try{const be=yield this.loadVectorTile(Fe,me);if(delete this.loading[We],!be)return null;const Ie=be.rawData,Xe={};be.expires&&(Xe.expires=be.expires),be.cacheControl&&(Xe.cacheControl=be.cacheControl);const ht={};if(Oe){const Ct=Oe.finish();Ct&&(ht.resourceTiming=JSON.parse(JSON.stringify(Ct)))}de.vectorTile=be.vectorTile;const bt=de.parse(be.vectorTile,this.layerIndex,this.availableImages,this.actor);this.loaded[We]=de,this.fetching[We]={rawTileData:Ie,cacheControl:Xe,resourceTiming:ht};try{const Ct=yield bt;return e.e({rawTileData:Ie.slice(0)},Ct,Xe,ht)}finally{delete this.fetching[We]}}catch(be){throw delete this.loading[We],de.status="done",this.loaded[We]=de,be}})}reloadTile(Fe){return e._(this,void 0,void 0,function*(){const We=Fe.uid;if(!this.loaded||!this.loaded[We])throw new Error("Should not be trying to reload a tile that was never loaded or has been removed");const Oe=this.loaded[We];if(Oe.showCollisionBoxes=Fe.showCollisionBoxes,Oe.status==="parsing"){const de=yield Oe.parse(Oe.vectorTile,this.layerIndex,this.availableImages,this.actor);let me;if(this.fetching[We]){const{rawTileData:be,cacheControl:Ie,resourceTiming:Xe}=this.fetching[We];delete this.fetching[We],me=e.e({rawTileData:be.slice(0)},de,Ie,Xe)}else me=de;return me}if(Oe.status==="done"&&Oe.vectorTile)return Oe.parse(Oe.vectorTile,this.layerIndex,this.availableImages,this.actor)})}abortTile(Fe){return e._(this,void 0,void 0,function*(){const We=this.loading,Oe=Fe.uid;We&&We[Oe]&&We[Oe].abort&&(We[Oe].abort.abort(),delete We[Oe])})}removeTile(Fe){return e._(this,void 0,void 0,function*(){this.loaded&&this.loaded[Fe.uid]&&delete this.loaded[Fe.uid]})}}class n{constructor(){this.loaded={}}loadTile(Fe){return e._(this,void 0,void 0,function*(){const{uid:We,encoding:Oe,rawImageData:de,redFactor:me,greenFactor:be,blueFactor:Ie,baseShift:Xe}=Fe,ht=de.width+2,bt=de.height+2,Ct=e.b(de)?new e.R({width:ht,height:bt},yield e.bw(de,-1,-1,ht,bt)):de,Zt=new e.bx(We,Ct,Oe,me,be,Ie,Xe);return this.loaded=this.loaded||{},this.loaded[We]=Zt,Zt})}removeTile(Fe){const We=this.loaded,Oe=Fe.uid;We&&We[Oe]&&delete We[Oe]}}function s(yt,Fe){if(yt.length!==0){c(yt[0],Fe);for(var We=1;We=Math.abs(Ie)?We-Xe+Ie:Ie-Xe+We,We=Xe}We+Oe>=0!=!!Fe&&yt.reverse()}var f=e.by(function yt(Fe,We){var Oe,de=Fe&&Fe.type;if(de==="FeatureCollection")for(Oe=0;Oe>31}function I(yt,Fe){for(var We=yt.loadGeometry(),Oe=yt.type,de=0,me=0,be=We.length,Ie=0;Ieyt},O=Math.fround||(P=new Float32Array(1),yt=>(P[0]=+yt,P[0]));var P;const N=3,U=5,X=6;class te{constructor(Fe){this.options=Object.assign(Object.create(B),Fe),this.trees=new Array(this.options.maxZoom+1),this.stride=this.options.reduce?7:6,this.clusterProps=[]}load(Fe){const{log:We,minZoom:Oe,maxZoom:de}=this.options;We&&console.time("total time");const me=`prepare ${Fe.length} points`;We&&console.time(me),this.points=Fe;const be=[];for(let Xe=0;Xe=Oe;Xe--){const ht=+Date.now();Ie=this.trees[Xe]=this._createTree(this._cluster(Ie,Xe)),We&&console.log("z%d: %d clusters in %dms",Xe,Ie.numItems,+Date.now()-ht)}return We&&console.timeEnd("total time"),this}getClusters(Fe,We){let Oe=((Fe[0]+180)%360+360)%360-180;const de=Math.max(-90,Math.min(90,Fe[1]));let me=Fe[2]===180?180:((Fe[2]+180)%360+360)%360-180;const be=Math.max(-90,Math.min(90,Fe[3]));if(Fe[2]-Fe[0]>=360)Oe=-180,me=180;else if(Oe>me){const Ct=this.getClusters([Oe,de,180,be],We),Zt=this.getClusters([-180,de,me,be],We);return Ct.concat(Zt)}const Ie=this.trees[this._limitZoom(We)],Xe=Ie.range(le(Oe),q(be),le(me),q(de)),ht=Ie.data,bt=[];for(const Ct of Xe){const Zt=this.stride*Ct;bt.push(ht[Zt+U]>1?ue(ht,Zt,this.clusterProps):this.points[ht[Zt+N]])}return bt}getChildren(Fe){const We=this._getOriginId(Fe),Oe=this._getOriginZoom(Fe),de="No cluster with the specified id.",me=this.trees[Oe];if(!me)throw new Error(de);const be=me.data;if(We*this.stride>=be.length)throw new Error(de);const Ie=this.options.radius/(this.options.extent*Math.pow(2,Oe-1)),Xe=me.within(be[We*this.stride],be[We*this.stride+1],Ie),ht=[];for(const bt of Xe){const Ct=bt*this.stride;be[Ct+4]===Fe&&ht.push(be[Ct+U]>1?ue(be,Ct,this.clusterProps):this.points[be[Ct+N]])}if(ht.length===0)throw new Error(de);return ht}getLeaves(Fe,We,Oe){const de=[];return this._appendLeaves(de,Fe,We=We||10,Oe=Oe||0,0),de}getTile(Fe,We,Oe){const de=this.trees[this._limitZoom(Fe)],me=Math.pow(2,Fe),{extent:be,radius:Ie}=this.options,Xe=Ie/be,ht=(Oe-Xe)/me,bt=(Oe+1+Xe)/me,Ct={features:[]};return this._addTileFeatures(de.range((We-Xe)/me,ht,(We+1+Xe)/me,bt),de.data,We,Oe,me,Ct),We===0&&this._addTileFeatures(de.range(1-Xe/me,ht,1,bt),de.data,me,Oe,me,Ct),We===me-1&&this._addTileFeatures(de.range(0,ht,Xe/me,bt),de.data,-1,Oe,me,Ct),Ct.features.length?Ct:null}getClusterExpansionZoom(Fe){let We=this._getOriginZoom(Fe)-1;for(;We<=this.options.maxZoom;){const Oe=this.getChildren(Fe);if(We++,Oe.length!==1)break;Fe=Oe[0].properties.cluster_id}return We}_appendLeaves(Fe,We,Oe,de,me){const be=this.getChildren(We);for(const Ie of be){const Xe=Ie.properties;if(Xe&&Xe.cluster?me+Xe.point_count<=de?me+=Xe.point_count:me=this._appendLeaves(Fe,Xe.cluster_id,Oe,de,me):me1;let bt,Ct,Zt;if(ht)bt=ie(We,Xe,this.clusterProps),Ct=We[Xe],Zt=We[Xe+1];else{const Jt=this.points[We[Xe+N]];bt=Jt.properties;const[mr,ia]=Jt.geometry.coordinates;Ct=le(mr),Zt=q(ia)}const Wt={type:1,geometry:[[Math.round(this.options.extent*(Ct*me-Oe)),Math.round(this.options.extent*(Zt*me-de))]],tags:bt};let rr;rr=ht||this.options.generateId?We[Xe+N]:this.points[We[Xe+N]].id,rr!==void 0&&(Wt.id=rr),be.features.push(Wt)}}_limitZoom(Fe){return Math.max(this.options.minZoom,Math.min(Math.floor(+Fe),this.options.maxZoom+1))}_cluster(Fe,We){const{radius:Oe,extent:de,reduce:me,minPoints:be}=this.options,Ie=Oe/(de*Math.pow(2,We)),Xe=Fe.data,ht=[],bt=this.stride;for(let Ct=0;CtWe&&(mr+=Xe[Ia+U])}if(mr>Jt&&mr>=be){let ia,Ia=Zt*Jt,La=Wt*Jt,Aa=-1;const Ga=((Ct/bt|0)<<5)+(We+1)+this.points.length;for(const ba of rr){const Xa=ba*bt;if(Xe[Xa+2]<=We)continue;Xe[Xa+2]=We;const yn=Xe[Xa+U];Ia+=Xe[Xa]*yn,La+=Xe[Xa+1]*yn,Xe[Xa+4]=Ga,me&&(ia||(ia=this._map(Xe,Ct,!0),Aa=this.clusterProps.length,this.clusterProps.push(ia)),me(ia,this._map(Xe,Xa)))}Xe[Ct+4]=Ga,ht.push(Ia/mr,La/mr,1/0,Ga,-1,mr),me&&ht.push(Aa)}else{for(let ia=0;ia1)for(const ia of rr){const Ia=ia*bt;if(!(Xe[Ia+2]<=We)){Xe[Ia+2]=We;for(let La=0;La>5}_getOriginZoom(Fe){return(Fe-this.points.length)%32}_map(Fe,We,Oe){if(Fe[We+U]>1){const be=this.clusterProps[Fe[We+X]];return Oe?Object.assign({},be):be}const de=this.points[Fe[We+N]].properties,me=this.options.map(de);return Oe&&me===de?Object.assign({},me):me}}function ue(yt,Fe,We){return{type:"Feature",id:yt[Fe+N],properties:ie(yt,Fe,We),geometry:{type:"Point",coordinates:[(Oe=yt[Fe],360*(Oe-.5)),J(yt[Fe+1])]}};var Oe}function ie(yt,Fe,We){const Oe=yt[Fe+U],de=Oe>=1e4?`${Math.round(Oe/1e3)}k`:Oe>=1e3?Math.round(Oe/100)/10+"k":Oe,me=yt[Fe+X],be=me===-1?{}:Object.assign({},We[me]);return Object.assign(be,{cluster:!0,cluster_id:yt[Fe+N],point_count:Oe,point_count_abbreviated:de})}function le(yt){return yt/360+.5}function q(yt){const Fe=Math.sin(yt*Math.PI/180),We=.5-.25*Math.log((1+Fe)/(1-Fe))/Math.PI;return We<0?0:We>1?1:We}function J(yt){const Fe=(180-360*yt)*Math.PI/180;return 360*Math.atan(Math.exp(Fe))/Math.PI-90}function ee(yt,Fe,We,Oe){let de=Oe;const me=Fe+(We-Fe>>1);let be,Ie=We-Fe;const Xe=yt[Fe],ht=yt[Fe+1],bt=yt[We],Ct=yt[We+1];for(let Zt=Fe+3;Ztde)be=Zt,de=Wt;else if(Wt===de){const rr=Math.abs(Zt-me);rrOe&&(be-Fe>3&&ee(yt,Fe,be,Oe),yt[be+2]=de,We-be>3&&ee(yt,be,We,Oe))}function Z(yt,Fe,We,Oe,de,me){let be=de-We,Ie=me-Oe;if(be!==0||Ie!==0){const Xe=((yt-We)*be+(Fe-Oe)*Ie)/(be*be+Ie*Ie);Xe>1?(We=de,Oe=me):Xe>0&&(We+=be*Xe,Oe+=Ie*Xe)}return be=yt-We,Ie=Fe-Oe,be*be+Ie*Ie}function se(yt,Fe,We,Oe){const de={id:yt??null,type:Fe,geometry:We,tags:Oe,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};if(Fe==="Point"||Fe==="MultiPoint"||Fe==="LineString")Q(de,We);else if(Fe==="Polygon")Q(de,We[0]);else if(Fe==="MultiLineString")for(const me of We)Q(de,me);else if(Fe==="MultiPolygon")for(const me of We)Q(de,me[0]);return de}function Q(yt,Fe){for(let We=0;We0&&(be+=Oe?(de*bt-ht*me)/2:Math.sqrt(Math.pow(ht-de,2)+Math.pow(bt-me,2))),de=ht,me=bt}const Ie=Fe.length-3;Fe[2]=1,ee(Fe,0,Ie,We),Fe[Ie+2]=1,Fe.size=Math.abs(be),Fe.start=0,Fe.end=Fe.size}function fe(yt,Fe,We,Oe){for(let de=0;de1?1:We}function Pe(yt,Fe,We,Oe,de,me,be,Ie){if(Oe/=Fe,me>=(We/=Fe)&&be=Oe)return null;const Xe=[];for(const ht of yt){const bt=ht.geometry;let Ct=ht.type;const Zt=de===0?ht.minX:ht.minY,Wt=de===0?ht.maxX:ht.maxY;if(Zt>=We&&Wt=Oe)continue;let rr=[];if(Ct==="Point"||Ct==="MultiPoint")Ce(bt,rr,We,Oe,de);else if(Ct==="LineString")je(bt,rr,We,Oe,de,!1,Ie.lineMetrics);else if(Ct==="MultiLineString")tt(bt,rr,We,Oe,de,!1);else if(Ct==="Polygon")tt(bt,rr,We,Oe,de,!0);else if(Ct==="MultiPolygon")for(const Jt of bt){const mr=[];tt(Jt,mr,We,Oe,de,!0),mr.length&&rr.push(mr)}if(rr.length){if(Ie.lineMetrics&&Ct==="LineString"){for(const Jt of rr)Xe.push(se(ht.id,Ct,Jt,ht.tags));continue}Ct!=="LineString"&&Ct!=="MultiLineString"||(rr.length===1?(Ct="LineString",rr=rr[0]):Ct="MultiLineString"),Ct!=="Point"&&Ct!=="MultiPoint"||(Ct=rr.length===3?"Point":"MultiPoint"),Xe.push(se(ht.id,Ct,rr,ht.tags))}}return Xe.length?Xe:null}function Ce(yt,Fe,We,Oe,de){for(let me=0;me=We&&be<=Oe&&Je(Fe,yt[me],yt[me+1],yt[me+2])}}function je(yt,Fe,We,Oe,de,me,be){let Ie=at(yt);const Xe=de===0?Ze:Me;let ht,bt,Ct=yt.start;for(let mr=0;mrWe&&(bt=Xe(Ie,ia,Ia,Aa,Ga,We),be&&(Ie.start=Ct+ht*bt)):ba>Oe?Xa=We&&(bt=Xe(Ie,ia,Ia,Aa,Ga,We),yn=!0),Xa>Oe&&ba<=Oe&&(bt=Xe(Ie,ia,Ia,Aa,Ga,Oe),yn=!0),!me&&yn&&(be&&(Ie.end=Ct+ht*bt),Fe.push(Ie),Ie=at(yt)),be&&(Ct+=ht)}let Zt=yt.length-3;const Wt=yt[Zt],rr=yt[Zt+1],Jt=de===0?Wt:rr;Jt>=We&&Jt<=Oe&&Je(Ie,Wt,rr,yt[Zt+2]),Zt=Ie.length-3,me&&Zt>=3&&(Ie[Zt]!==Ie[0]||Ie[Zt+1]!==Ie[1])&&Je(Ie,Ie[0],Ie[1],Ie[2]),Ie.length&&Fe.push(Ie)}function at(yt){const Fe=[];return Fe.size=yt.size,Fe.start=yt.start,Fe.end=yt.end,Fe}function tt(yt,Fe,We,Oe,de,me){for(const be of yt)je(be,Fe,We,Oe,de,me,!1)}function Je(yt,Fe,We,Oe){yt.push(Fe,We,Oe)}function Ze(yt,Fe,We,Oe,de,me){const be=(me-Fe)/(Oe-Fe);return Je(yt,me,We+(de-We)*be,1),be}function Me(yt,Fe,We,Oe,de,me){const be=(me-We)/(de-We);return Je(yt,Fe+(Oe-Fe)*be,me,1),be}function we(yt,Fe){const We=[];for(let Oe=0;Oe0&&Fe.size<(de?be:Oe))return void(We.numPoints+=Fe.length/3);const Ie=[];for(let Xe=0;Xebe)&&(We.numSimplified++,Ie.push(Fe[Xe],Fe[Xe+1])),We.numPoints++;de&&function(Xe,ht){let bt=0;for(let Ct=0,Zt=Xe.length,Wt=Zt-2;Ct0===ht)for(let Ct=0,Zt=Xe.length;Ct24)throw new Error("maxZoom should be in the 0-24 range");if(We.promoteId&&We.generateId)throw new Error("promoteId and generateId cannot be used together.");let de=function(me,be){const Ie=[];if(me.type==="FeatureCollection")for(let Xe=0;Xe1&&console.time("creation"),Wt=this.tiles[Zt]=nt(Fe,We,Oe,de,ht),this.tileCoords.push({z:We,x:Oe,y:de}),bt)){bt>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",We,Oe,de,Wt.numFeatures,Wt.numPoints,Wt.numSimplified),console.timeEnd("creation"));const yn=`z${We}`;this.stats[yn]=(this.stats[yn]||0)+1,this.total++}if(Wt.source=Fe,me==null){if(We===ht.indexMaxZoom||Wt.numPoints<=ht.indexMaxPoints)continue}else{if(We===ht.maxZoom||We===me)continue;if(me!=null){const yn=me-We;if(Oe!==be>>yn||de!==Ie>>yn)continue}}if(Wt.source=null,Fe.length===0)continue;bt>1&&console.time("clipping");const rr=.5*ht.buffer/ht.extent,Jt=.5-rr,mr=.5+rr,ia=1+rr;let Ia=null,La=null,Aa=null,Ga=null,ba=Pe(Fe,Ct,Oe-rr,Oe+mr,0,Wt.minX,Wt.maxX,ht),Xa=Pe(Fe,Ct,Oe+Jt,Oe+ia,0,Wt.minX,Wt.maxX,ht);Fe=null,ba&&(Ia=Pe(ba,Ct,de-rr,de+mr,1,Wt.minY,Wt.maxY,ht),La=Pe(ba,Ct,de+Jt,de+ia,1,Wt.minY,Wt.maxY,ht),ba=null),Xa&&(Aa=Pe(Xa,Ct,de-rr,de+mr,1,Wt.minY,Wt.maxY,ht),Ga=Pe(Xa,Ct,de+Jt,de+ia,1,Wt.minY,Wt.maxY,ht),Xa=null),bt>1&&console.timeEnd("clipping"),Xe.push(Ia||[],We+1,2*Oe,2*de),Xe.push(La||[],We+1,2*Oe,2*de+1),Xe.push(Aa||[],We+1,2*Oe+1,2*de),Xe.push(Ga||[],We+1,2*Oe+1,2*de+1)}}getTile(Fe,We,Oe){Fe=+Fe,We=+We,Oe=+Oe;const de=this.options,{extent:me,debug:be}=de;if(Fe<0||Fe>24)return null;const Ie=1<1&&console.log("drilling down to z%d-%d-%d",Fe,We,Oe);let ht,bt=Fe,Ct=We,Zt=Oe;for(;!ht&&bt>0;)bt--,Ct>>=1,Zt>>=1,ht=this.tiles[Yt(bt,Ct,Zt)];return ht&&ht.source?(be>1&&(console.log("found parent tile z%d-%d-%d",bt,Ct,Zt),console.time("drilling down")),this.splitTile(ht.source,bt,Ct,Zt,Fe,We,Oe),be>1&&console.timeEnd("drilling down"),this.tiles[Xe]?De(this.tiles[Xe],me):null):null}}function Yt(yt,Fe,We){return 32*((1<{Ct.properties=Wt;const rr={};for(const Jt of Zt)rr[Jt]=Xe[Jt].evaluate(bt,Ct);return rr},be.reduce=(Wt,rr)=>{Ct.properties=rr;for(const Jt of Zt)bt.accumulated=Wt[Jt],Wt[Jt]=ht[Jt].evaluate(bt,Ct)},be}(Fe)).load((yield this._pendingData).features):(de=yield this._pendingData,new Ut(de,Fe.geojsonVtOptions)),this.loaded={};const me={};if(Oe){const be=Oe.finish();be&&(me.resourceTiming={},me.resourceTiming[Fe.source]=JSON.parse(JSON.stringify(be)))}return me}catch(me){if(delete this._pendingRequest,e.bB(me))return{abandoned:!0};throw me}var de})}getData(){return e._(this,void 0,void 0,function*(){return this._pendingData})}reloadTile(Fe){const We=this.loaded;return We&&We[Fe.uid]?super.reloadTile(Fe):this.loadTile(Fe)}loadAndProcessGeoJSON(Fe,We){return e._(this,void 0,void 0,function*(){let Oe=yield this.loadGeoJSON(Fe,We);if(delete this._pendingRequest,typeof Oe!="object")throw new Error(`Input data given to '${Fe.source}' is not a valid GeoJSON object.`);if(f(Oe,!0),Fe.filter){const de=e.bC(Fe.filter,{type:"boolean","property-type":"data-driven",overridable:!1,transition:!1});if(de.result==="error")throw new Error(de.value.map(be=>`${be.key}: ${be.message}`).join(", "));Oe={type:"FeatureCollection",features:Oe.features.filter(be=>de.value.evaluate({zoom:0},be))}}return Oe})}loadGeoJSON(Fe,We){return e._(this,void 0,void 0,function*(){const{promoteId:Oe}=Fe;if(Fe.request){const de=yield e.h(Fe.request,We);return this._dataUpdateable=hr(de.data,Oe)?Rr(de.data,Oe):void 0,de.data}if(typeof Fe.data=="string")try{const de=JSON.parse(Fe.data);return this._dataUpdateable=hr(de,Oe)?Rr(de,Oe):void 0,de}catch{throw new Error(`Input data given to '${Fe.source}' is not a valid GeoJSON object.`)}if(!Fe.dataDiff)throw new Error(`Input data given to '${Fe.source}' is not a valid GeoJSON object.`);if(!this._dataUpdateable)throw new Error(`Cannot update existing geojson data in ${Fe.source}`);return function(de,me,be){var Ie,Xe,ht,bt;if(me.removeAll&&de.clear(),me.remove)for(const Ct of me.remove)de.delete(Ct);if(me.add)for(const Ct of me.add){const Zt=vr(Ct,be);Zt!=null&&de.set(Zt,Ct)}if(me.update)for(const Ct of me.update){let Zt=de.get(Ct.id);if(Zt==null)continue;const Wt=!Ct.removeAllProperties&&(((Ie=Ct.removeProperties)===null||Ie===void 0?void 0:Ie.length)>0||((Xe=Ct.addOrUpdateProperties)===null||Xe===void 0?void 0:Xe.length)>0);if((Ct.newGeometry||Ct.removeAllProperties||Wt)&&(Zt=Object.assign({},Zt),de.set(Ct.id,Zt),Wt&&(Zt.properties=Object.assign({},Zt.properties))),Ct.newGeometry&&(Zt.geometry=Ct.newGeometry),Ct.removeAllProperties)Zt.properties={};else if(((ht=Ct.removeProperties)===null||ht===void 0?void 0:ht.length)>0)for(const rr of Ct.removeProperties)Object.prototype.hasOwnProperty.call(Zt.properties,rr)&&delete Zt.properties[rr];if(((bt=Ct.addOrUpdateProperties)===null||bt===void 0?void 0:bt.length)>0)for(const{key:rr,value:Jt}of Ct.addOrUpdateProperties)Zt.properties[rr]=Jt}}(this._dataUpdateable,Fe.dataDiff,Oe),{type:"FeatureCollection",features:Array.from(this._dataUpdateable.values())}})}removeSource(Fe){return e._(this,void 0,void 0,function*(){this._pendingRequest&&this._pendingRequest.abort()})}getClusterExpansionZoom(Fe){return this._geoJSONIndex.getClusterExpansionZoom(Fe.clusterId)}getClusterChildren(Fe){return this._geoJSONIndex.getChildren(Fe.clusterId)}getClusterLeaves(Fe){return this._geoJSONIndex.getLeaves(Fe.clusterId,Fe.limit,Fe.offset)}}class wr{constructor(Fe){this.self=Fe,this.actor=new e.F(Fe),this.layerIndexes={},this.availableImages={},this.workerSources={},this.demWorkerSources={},this.externalWorkerSourceTypes={},this.self.registerWorkerSource=(We,Oe)=>{if(this.externalWorkerSourceTypes[We])throw new Error(`Worker source with name "${We}" already registered.`);this.externalWorkerSourceTypes[We]=Oe},this.self.addProtocol=e.bi,this.self.removeProtocol=e.bj,this.self.registerRTLTextPlugin=We=>{if(e.bD.isParsed())throw new Error("RTL text plugin already registered.");e.bD.setMethods(We)},this.actor.registerMessageHandler("LDT",(We,Oe)=>this._getDEMWorkerSource(We,Oe.source).loadTile(Oe)),this.actor.registerMessageHandler("RDT",(We,Oe)=>e._(this,void 0,void 0,function*(){this._getDEMWorkerSource(We,Oe.source).removeTile(Oe)})),this.actor.registerMessageHandler("GCEZ",(We,Oe)=>e._(this,void 0,void 0,function*(){return this._getWorkerSource(We,Oe.type,Oe.source).getClusterExpansionZoom(Oe)})),this.actor.registerMessageHandler("GCC",(We,Oe)=>e._(this,void 0,void 0,function*(){return this._getWorkerSource(We,Oe.type,Oe.source).getClusterChildren(Oe)})),this.actor.registerMessageHandler("GCL",(We,Oe)=>e._(this,void 0,void 0,function*(){return this._getWorkerSource(We,Oe.type,Oe.source).getClusterLeaves(Oe)})),this.actor.registerMessageHandler("LD",(We,Oe)=>this._getWorkerSource(We,Oe.type,Oe.source).loadData(Oe)),this.actor.registerMessageHandler("GD",(We,Oe)=>this._getWorkerSource(We,Oe.type,Oe.source).getData()),this.actor.registerMessageHandler("LT",(We,Oe)=>this._getWorkerSource(We,Oe.type,Oe.source).loadTile(Oe)),this.actor.registerMessageHandler("RT",(We,Oe)=>this._getWorkerSource(We,Oe.type,Oe.source).reloadTile(Oe)),this.actor.registerMessageHandler("AT",(We,Oe)=>this._getWorkerSource(We,Oe.type,Oe.source).abortTile(Oe)),this.actor.registerMessageHandler("RMT",(We,Oe)=>this._getWorkerSource(We,Oe.type,Oe.source).removeTile(Oe)),this.actor.registerMessageHandler("RS",(We,Oe)=>e._(this,void 0,void 0,function*(){if(!this.workerSources[We]||!this.workerSources[We][Oe.type]||!this.workerSources[We][Oe.type][Oe.source])return;const de=this.workerSources[We][Oe.type][Oe.source];delete this.workerSources[We][Oe.type][Oe.source],de.removeSource!==void 0&&de.removeSource(Oe)})),this.actor.registerMessageHandler("RM",We=>e._(this,void 0,void 0,function*(){delete this.layerIndexes[We],delete this.availableImages[We],delete this.workerSources[We],delete this.demWorkerSources[We]})),this.actor.registerMessageHandler("SR",(We,Oe)=>e._(this,void 0,void 0,function*(){this.referrer=Oe})),this.actor.registerMessageHandler("SRPS",(We,Oe)=>this._syncRTLPluginState(We,Oe)),this.actor.registerMessageHandler("IS",(We,Oe)=>e._(this,void 0,void 0,function*(){this.self.importScripts(Oe)})),this.actor.registerMessageHandler("SI",(We,Oe)=>this._setImages(We,Oe)),this.actor.registerMessageHandler("UL",(We,Oe)=>e._(this,void 0,void 0,function*(){this._getLayerIndex(We).update(Oe.layers,Oe.removedIds)})),this.actor.registerMessageHandler("SL",(We,Oe)=>e._(this,void 0,void 0,function*(){this._getLayerIndex(We).replace(Oe)}))}_setImages(Fe,We){return e._(this,void 0,void 0,function*(){this.availableImages[Fe]=We;for(const Oe in this.workerSources[Fe]){const de=this.workerSources[Fe][Oe];for(const me in de)de[me].availableImages=We}})}_syncRTLPluginState(Fe,We){return e._(this,void 0,void 0,function*(){if(e.bD.isParsed())return e.bD.getState();if(We.pluginStatus!=="loading")return e.bD.setState(We),We;const Oe=We.pluginURL;if(this.self.importScripts(Oe),e.bD.isParsed()){const de={pluginStatus:"loaded",pluginURL:Oe};return e.bD.setState(de),de}throw e.bD.setState({pluginStatus:"error",pluginURL:""}),new Error(`RTL Text Plugin failed to import scripts from ${Oe}`)})}_getAvailableImages(Fe){let We=this.availableImages[Fe];return We||(We=[]),We}_getLayerIndex(Fe){let We=this.layerIndexes[Fe];return We||(We=this.layerIndexes[Fe]=new t),We}_getWorkerSource(Fe,We,Oe){if(this.workerSources[Fe]||(this.workerSources[Fe]={}),this.workerSources[Fe][We]||(this.workerSources[Fe][We]={}),!this.workerSources[Fe][We][Oe]){const de={sendAsync:(me,be)=>(me.targetMapId=Fe,this.actor.sendAsync(me,be))};switch(We){case"vector":this.workerSources[Fe][We][Oe]=new o(de,this._getLayerIndex(Fe),this._getAvailableImages(Fe));break;case"geojson":this.workerSources[Fe][We][Oe]=new dr(de,this._getLayerIndex(Fe),this._getAvailableImages(Fe));break;default:this.workerSources[Fe][We][Oe]=new this.externalWorkerSourceTypes[We](de,this._getLayerIndex(Fe),this._getAvailableImages(Fe))}}return this.workerSources[Fe][We][Oe]}_getDEMWorkerSource(Fe,We){return this.demWorkerSources[Fe]||(this.demWorkerSources[Fe]={}),this.demWorkerSources[Fe][We]||(this.demWorkerSources[Fe][We]=new n),this.demWorkerSources[Fe][We]}}return e.i(self)&&(self.worker=new wr(self)),wr}),A("index",["exports","./shared"],function(e,t){var r="4.7.1";let i,a;const o={now:typeof performance<"u"&&performance&&performance.now?performance.now.bind(performance):Date.now.bind(Date),frameAsync:ze=>new Promise((L,ne)=>{const Te=requestAnimationFrame(L);ze.signal.addEventListener("abort",()=>{cancelAnimationFrame(Te),ne(t.c())})}),getImageData(ze,L=0){return this.getImageCanvasContext(ze).getImageData(-L,-L,ze.width+2*L,ze.height+2*L)},getImageCanvasContext(ze){const L=window.document.createElement("canvas"),ne=L.getContext("2d",{willReadFrequently:!0});if(!ne)throw new Error("failed to create canvas 2d context");return L.width=ze.width,L.height=ze.height,ne.drawImage(ze,0,0,ze.width,ze.height),ne},resolveURL:ze=>(i||(i=document.createElement("a")),i.href=ze,i.href),hardwareConcurrency:typeof navigator<"u"&&navigator.hardwareConcurrency||4,get prefersReducedMotion(){return!!matchMedia&&(a==null&&(a=matchMedia("(prefers-reduced-motion: reduce)")),a.matches)}};class n{static testProp(L){if(!n.docStyle)return L[0];for(let ne=0;ne{window.removeEventListener("click",n.suppressClickInternal,!0)},0)}static getScale(L){const ne=L.getBoundingClientRect();return{x:ne.width/L.offsetWidth||1,y:ne.height/L.offsetHeight||1,boundingClientRect:ne}}static getPoint(L,ne,Te){const Se=ne.boundingClientRect;return new t.P((Te.clientX-Se.left)/ne.x-L.clientLeft,(Te.clientY-Se.top)/ne.y-L.clientTop)}static mousePos(L,ne){const Te=n.getScale(L);return n.getPoint(L,Te,ne)}static touchPos(L,ne){const Te=[],Se=n.getScale(L);for(let Re=0;Re{c&&T(c),c=null,v=!0},f.onerror=()=>{p=!0,c=null},f.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA="),function(ze){let L,ne,Te,Se;ze.resetRequestQueue=()=>{L=[],ne=0,Te=0,Se={}},ze.addThrottleControl=Dt=>{const er=Te++;return Se[er]=Dt,er},ze.removeThrottleControl=Dt=>{delete Se[Dt],ft()},ze.getImage=(Dt,er,fr=!0)=>new Promise((pr,Br)=>{s.supported&&(Dt.headers||(Dt.headers={}),Dt.headers.accept="image/webp,*/*"),t.e(Dt,{type:"image"}),L.push({abortController:er,requestParameters:Dt,supportImageRefresh:fr,state:"queued",onError:ea=>{Br(ea)},onSuccess:ea=>{pr(ea)}}),ft()});const Re=Dt=>t._(this,void 0,void 0,function*(){Dt.state="running";const{requestParameters:er,supportImageRefresh:fr,onError:pr,onSuccess:Br,abortController:ea}=Dt,Ve=fr===!1&&!t.i(self)&&!t.g(er.url)&&(!er.headers||Object.keys(er.headers).reduce((vt,St)=>vt&&St==="accept",!0));ne++;const Ye=Ve?xt(er,ea):t.m(er,ea);try{const vt=yield Ye;delete Dt.abortController,Dt.state="completed",vt.data instanceof HTMLImageElement||t.b(vt.data)?Br(vt):vt.data&&Br({data:yield(it=vt.data,typeof createImageBitmap=="function"?t.d(it):t.f(it)),cacheControl:vt.cacheControl,expires:vt.expires})}catch(vt){delete Dt.abortController,pr(vt)}finally{ne--,ft()}var it}),ft=()=>{const Dt=(()=>{for(const er of Object.keys(Se))if(Se[er]())return!0;return!1})()?t.a.MAX_PARALLEL_IMAGE_REQUESTS_PER_FRAME:t.a.MAX_PARALLEL_IMAGE_REQUESTS;for(let er=ne;er0;er++){const fr=L.shift();fr.abortController.signal.aborted?er--:Re(fr)}},xt=(Dt,er)=>new Promise((fr,pr)=>{const Br=new Image,ea=Dt.url,Ve=Dt.credentials;Ve&&Ve==="include"?Br.crossOrigin="use-credentials":(Ve&&Ve==="same-origin"||!t.s(ea))&&(Br.crossOrigin="anonymous"),er.signal.addEventListener("abort",()=>{Br.src="",pr(t.c())}),Br.fetchPriority="high",Br.onload=()=>{Br.onerror=Br.onload=null,fr({data:Br})},Br.onerror=()=>{Br.onerror=Br.onload=null,er.signal.aborted||pr(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."))},Br.src=ea})}(l||(l={})),l.resetRequestQueue();class m{constructor(L){this._transformRequestFn=L}transformRequest(L,ne){return this._transformRequestFn&&this._transformRequestFn(L,ne)||{url:L}}setTransformRequest(L){this._transformRequestFn=L}}function w(ze){var L=new t.A(3);return L[0]=ze[0],L[1]=ze[1],L[2]=ze[2],L}var S,M=function(ze,L,ne){return ze[0]=L[0]-ne[0],ze[1]=L[1]-ne[1],ze[2]=L[2]-ne[2],ze};S=new t.A(3),t.A!=Float32Array&&(S[0]=0,S[1]=0,S[2]=0);var _=function(ze){var L=ze[0],ne=ze[1];return L*L+ne*ne};function b(ze){const L=[];if(typeof ze=="string")L.push({id:"default",url:ze});else if(ze&&ze.length>0){const ne=[];for(const{id:Te,url:Se}of ze){const Re=`${Te}${Se}`;ne.indexOf(Re)===-1&&(ne.push(Re),L.push({id:Te,url:Se}))}}return L}function d(ze,L,ne){const Te=ze.split("?");return Te[0]+=`${L}${ne}`,Te.join("?")}(function(){var ze=new t.A(2);t.A!=Float32Array&&(ze[0]=0,ze[1]=0)})();class u{constructor(L,ne,Te,Se){this.context=L,this.format=Te,this.texture=L.gl.createTexture(),this.update(ne,Se)}update(L,ne,Te){const{width:Se,height:Re}=L,ft=!(this.size&&this.size[0]===Se&&this.size[1]===Re||Te),{context:xt}=this,{gl:Dt}=xt;if(this.useMipmap=!!(ne&&ne.useMipmap),Dt.bindTexture(Dt.TEXTURE_2D,this.texture),xt.pixelStoreUnpackFlipY.set(!1),xt.pixelStoreUnpack.set(1),xt.pixelStoreUnpackPremultiplyAlpha.set(this.format===Dt.RGBA&&(!ne||ne.premultiply!==!1)),ft)this.size=[Se,Re],L instanceof HTMLImageElement||L instanceof HTMLCanvasElement||L instanceof HTMLVideoElement||L instanceof ImageData||t.b(L)?Dt.texImage2D(Dt.TEXTURE_2D,0,this.format,this.format,Dt.UNSIGNED_BYTE,L):Dt.texImage2D(Dt.TEXTURE_2D,0,this.format,Se,Re,0,this.format,Dt.UNSIGNED_BYTE,L.data);else{const{x:er,y:fr}=Te||{x:0,y:0};L instanceof HTMLImageElement||L instanceof HTMLCanvasElement||L instanceof HTMLVideoElement||L instanceof ImageData||t.b(L)?Dt.texSubImage2D(Dt.TEXTURE_2D,0,er,fr,Dt.RGBA,Dt.UNSIGNED_BYTE,L):Dt.texSubImage2D(Dt.TEXTURE_2D,0,er,fr,Se,Re,Dt.RGBA,Dt.UNSIGNED_BYTE,L.data)}this.useMipmap&&this.isSizePowerOfTwo()&&Dt.generateMipmap(Dt.TEXTURE_2D)}bind(L,ne,Te){const{context:Se}=this,{gl:Re}=Se;Re.bindTexture(Re.TEXTURE_2D,this.texture),Te!==Re.LINEAR_MIPMAP_NEAREST||this.isSizePowerOfTwo()||(Te=Re.LINEAR),L!==this.filter&&(Re.texParameteri(Re.TEXTURE_2D,Re.TEXTURE_MAG_FILTER,L),Re.texParameteri(Re.TEXTURE_2D,Re.TEXTURE_MIN_FILTER,Te||L),this.filter=L),ne!==this.wrap&&(Re.texParameteri(Re.TEXTURE_2D,Re.TEXTURE_WRAP_S,ne),Re.texParameteri(Re.TEXTURE_2D,Re.TEXTURE_WRAP_T,ne),this.wrap=ne)}isSizePowerOfTwo(){return this.size[0]===this.size[1]&&Math.log(this.size[0])/Math.LN2%1==0}destroy(){const{gl:L}=this.context;L.deleteTexture(this.texture),this.texture=null}}function g(ze){const{userImage:L}=ze;return!!(L&&L.render&&L.render())&&(ze.data.replace(new Uint8Array(L.data.buffer)),!0)}class y extends t.E{constructor(){super(),this.images={},this.updatedImages={},this.callbackDispatchedThisFrame={},this.loaded=!1,this.requestors=[],this.patterns={},this.atlasImage=new t.R({width:1,height:1}),this.dirty=!0}isLoaded(){return this.loaded}setLoaded(L){if(this.loaded!==L&&(this.loaded=L,L)){for(const{ids:ne,promiseResolve:Te}of this.requestors)Te(this._getImagesForIds(ne));this.requestors=[]}}getImage(L){const ne=this.images[L];if(ne&&!ne.data&&ne.spriteData){const Te=ne.spriteData;ne.data=new t.R({width:Te.width,height:Te.height},Te.context.getImageData(Te.x,Te.y,Te.width,Te.height).data),ne.spriteData=null}return ne}addImage(L,ne){if(this.images[L])throw new Error(`Image id ${L} already exist, use updateImage instead`);this._validate(L,ne)&&(this.images[L]=ne)}_validate(L,ne){let Te=!0;const Se=ne.data||ne.spriteData;return this._validateStretch(ne.stretchX,Se&&Se.width)||(this.fire(new t.j(new Error(`Image "${L}" has invalid "stretchX" value`))),Te=!1),this._validateStretch(ne.stretchY,Se&&Se.height)||(this.fire(new t.j(new Error(`Image "${L}" has invalid "stretchY" value`))),Te=!1),this._validateContent(ne.content,ne)||(this.fire(new t.j(new Error(`Image "${L}" has invalid "content" value`))),Te=!1),Te}_validateStretch(L,ne){if(!L)return!0;let Te=0;for(const Se of L){if(Se[0]{let Se=!0;if(!this.isLoaded())for(const Re of L)this.images[Re]||(Se=!1);this.isLoaded()||Se?ne(this._getImagesForIds(L)):this.requestors.push({ids:L,promiseResolve:ne})})}_getImagesForIds(L){const ne={};for(const Te of L){let Se=this.getImage(Te);Se||(this.fire(new t.k("styleimagemissing",{id:Te})),Se=this.getImage(Te)),Se?ne[Te]={data:Se.data.clone(),pixelRatio:Se.pixelRatio,sdf:Se.sdf,version:Se.version,stretchX:Se.stretchX,stretchY:Se.stretchY,content:Se.content,textFitWidth:Se.textFitWidth,textFitHeight:Se.textFitHeight,hasRenderCallback:!!(Se.userImage&&Se.userImage.render)}:t.w(`Image "${Te}" could not be loaded. Please make sure you have added the image with map.addImage() or a "sprite" property in your style. You can provide missing images by listening for the "styleimagemissing" map event.`)}return ne}getPixelSize(){const{width:L,height:ne}=this.atlasImage;return{width:L,height:ne}}getPattern(L){const ne=this.patterns[L],Te=this.getImage(L);if(!Te)return null;if(ne&&ne.position.version===Te.version)return ne.position;if(ne)ne.position.version=Te.version;else{const Se={w:Te.data.width+2,h:Te.data.height+2,x:0,y:0},Re=new t.I(Se,Te);this.patterns[L]={bin:Se,position:Re}}return this._updatePatternAtlas(),this.patterns[L].position}bind(L){const ne=L.gl;this.atlasTexture?this.dirty&&(this.atlasTexture.update(this.atlasImage),this.dirty=!1):this.atlasTexture=new u(L,this.atlasImage,ne.RGBA),this.atlasTexture.bind(ne.LINEAR,ne.CLAMP_TO_EDGE)}_updatePatternAtlas(){const L=[];for(const Re in this.patterns)L.push(this.patterns[Re].bin);const{w:ne,h:Te}=t.p(L),Se=this.atlasImage;Se.resize({width:ne||1,height:Te||1});for(const Re in this.patterns){const{bin:ft}=this.patterns[Re],xt=ft.x+1,Dt=ft.y+1,er=this.getImage(Re).data,fr=er.width,pr=er.height;t.R.copy(er,Se,{x:0,y:0},{x:xt,y:Dt},{width:fr,height:pr}),t.R.copy(er,Se,{x:0,y:pr-1},{x:xt,y:Dt-1},{width:fr,height:1}),t.R.copy(er,Se,{x:0,y:0},{x:xt,y:Dt+pr},{width:fr,height:1}),t.R.copy(er,Se,{x:fr-1,y:0},{x:xt-1,y:Dt},{width:1,height:pr}),t.R.copy(er,Se,{x:0,y:0},{x:xt+fr,y:Dt},{width:1,height:pr})}this.dirty=!0}beginFrame(){this.callbackDispatchedThisFrame={}}dispatchRenderCallbacks(L){for(const ne of L){if(this.callbackDispatchedThisFrame[ne])continue;this.callbackDispatchedThisFrame[ne]=!0;const Te=this.getImage(ne);Te||t.w(`Image with ID: "${ne}" was not found`),g(Te)&&this.updateImage(ne,Te)}}}const R=1e20;function I(ze,L,ne,Te,Se,Re,ft,xt,Dt){for(let er=L;er-1);Dt++,Re[Dt]=xt,ft[Dt]=er,ft[Dt+1]=R}for(let xt=0,Dt=0;xt65535)throw new Error("glyphs > 65535 not supported");if(Te.ranges[Re])return{stack:L,id:ne,glyph:Se};if(!this.url)throw new Error("glyphsUrl is not set");if(!Te.requests[Re]){const xt=F.loadGlyphRange(L,Re,this.url,this.requestManager);Te.requests[Re]=xt}const ft=yield Te.requests[Re];for(const xt in ft)this._doesCharSupportLocalGlyph(+xt)||(Te.glyphs[+xt]=ft[+xt]);return Te.ranges[Re]=!0,{stack:L,id:ne,glyph:ft[ne]||null}})}_doesCharSupportLocalGlyph(L){return!!this.localIdeographFontFamily&&new RegExp("\\p{Ideo}|\\p{sc=Hang}|\\p{sc=Hira}|\\p{sc=Kana}","u").test(String.fromCodePoint(L))}_tinySDF(L,ne,Te){const Se=this.localIdeographFontFamily;if(!Se||!this._doesCharSupportLocalGlyph(Te))return;let Re=L.tinySDF;if(!Re){let xt="400";/bold/i.test(ne)?xt="900":/medium/i.test(ne)?xt="500":/light/i.test(ne)&&(xt="200"),Re=L.tinySDF=new F.TinySDF({fontSize:48,buffer:6,radius:16,cutoff:.25,fontFamily:Se,fontWeight:xt})}const ft=Re.draw(String.fromCharCode(Te));return{id:Te,bitmap:new t.o({width:ft.width||60,height:ft.height||60},ft.data),metrics:{width:ft.glyphWidth/2||24,height:ft.glyphHeight/2||24,left:ft.glyphLeft/2+.5||0,top:ft.glyphTop/2-27.5||-8,advance:ft.glyphAdvance/2||24,isDoubleResolution:!0}}}}F.loadGlyphRange=function(ze,L,ne,Te){return t._(this,void 0,void 0,function*(){const Se=256*L,Re=Se+255,ft=Te.transformRequest(ne.replace("{fontstack}",ze).replace("{range}",`${Se}-${Re}`),"Glyphs"),xt=yield t.l(ft,new AbortController);if(!xt||!xt.data)throw new Error(`Could not load glyph range. range: ${L}, ${Se}-${Re}`);const Dt={};for(const er of t.n(xt.data))Dt[er.id]=er;return Dt})},F.TinySDF=class{constructor({fontSize:ze=24,buffer:L=3,radius:ne=8,cutoff:Te=.25,fontFamily:Se="sans-serif",fontWeight:Re="normal",fontStyle:ft="normal"}={}){this.buffer=L,this.cutoff=Te,this.radius=ne;const xt=this.size=ze+4*L,Dt=this._createCanvas(xt),er=this.ctx=Dt.getContext("2d",{willReadFrequently:!0});er.font=`${ft} ${Re} ${ze}px ${Se}`,er.textBaseline="alphabetic",er.textAlign="left",er.fillStyle="black",this.gridOuter=new Float64Array(xt*xt),this.gridInner=new Float64Array(xt*xt),this.f=new Float64Array(xt),this.z=new Float64Array(xt+1),this.v=new Uint16Array(xt)}_createCanvas(ze){const L=document.createElement("canvas");return L.width=L.height=ze,L}draw(ze){const{width:L,actualBoundingBoxAscent:ne,actualBoundingBoxDescent:Te,actualBoundingBoxLeft:Se,actualBoundingBoxRight:Re}=this.ctx.measureText(ze),ft=Math.ceil(ne),xt=Math.max(0,Math.min(this.size-this.buffer,Math.ceil(Re-Se))),Dt=Math.min(this.size-this.buffer,ft+Math.ceil(Te)),er=xt+2*this.buffer,fr=Dt+2*this.buffer,pr=Math.max(er*fr,0),Br=new Uint8ClampedArray(pr),ea={data:Br,width:er,height:fr,glyphWidth:xt,glyphHeight:Dt,glyphTop:ft,glyphLeft:0,glyphAdvance:L};if(xt===0||Dt===0)return ea;const{ctx:Ve,buffer:Ye,gridInner:it,gridOuter:vt}=this;Ve.clearRect(Ye,Ye,xt,Dt),Ve.fillText(ze,Ye,Ye+ft);const St=Ve.getImageData(Ye,Ye,xt,Dt);vt.fill(R,0,pr),it.fill(0,0,pr);for(let _t=0;_t0?gr*gr:0,it[cr]=gr<0?gr*gr:0}}I(vt,0,0,er,fr,er,this.f,this.v,this.z),I(it,Ye,Ye,xt,Dt,er,this.f,this.v,this.z);for(let _t=0;_t1&&(Dt=L[++xt]);const fr=Math.abs(er-Dt.left),pr=Math.abs(er-Dt.right),Br=Math.min(fr,pr);let ea;const Ve=Re/Te*(Se+1);if(Dt.isDash){const Ye=Se-Math.abs(Ve);ea=Math.sqrt(Br*Br+Ye*Ye)}else ea=Se-Math.sqrt(Br*Br+Ve*Ve);this.data[ft+er]=Math.max(0,Math.min(255,ea+128))}}}addRegularDash(L){for(let xt=L.length-1;xt>=0;--xt){const Dt=L[xt],er=L[xt+1];Dt.zeroLength?L.splice(xt,1):er&&er.isDash===Dt.isDash&&(er.left=Dt.left,L.splice(xt,1))}const ne=L[0],Te=L[L.length-1];ne.isDash===Te.isDash&&(ne.left=Te.left-this.width,Te.right=ne.right+this.width);const Se=this.width*this.nextRow;let Re=0,ft=L[Re];for(let xt=0;xt1&&(ft=L[++Re]);const Dt=Math.abs(xt-ft.left),er=Math.abs(xt-ft.right),fr=Math.min(Dt,er);this.data[Se+xt]=Math.max(0,Math.min(255,(ft.isDash?fr:-fr)+128))}}addDash(L,ne){const Te=ne?7:0,Se=2*Te+1;if(this.nextRow+Se>this.height)return t.w("LineAtlas out of space"),null;let Re=0;for(let xt=0;xt{ne.terminate()}),this.workers=null)}isPreloaded(){return!!this.active[te]}numActive(){return Object.keys(this.active).length}}const ie=Math.floor(o.hardwareConcurrency/2);let le,q;function J(){return le||(le=new ue),le}ue.workerCount=t.C(globalThis)?Math.max(Math.min(ie,3),1):1;class ee{constructor(L,ne){this.workerPool=L,this.actors=[],this.currentActor=0,this.id=ne;const Te=this.workerPool.acquire(ne);for(let Se=0;Se{ne.remove()}),this.actors=[],L&&this.workerPool.release(this.id)}registerMessageHandler(L,ne){for(const Te of this.actors)Te.registerMessageHandler(L,ne)}}function Z(){return q||(q=new ee(J(),t.G),q.registerMessageHandler("GR",(ze,L,ne)=>t.m(L,ne))),q}function se(ze,L){const ne=t.H();return t.J(ne,ne,[1,1,0]),t.K(ne,ne,[.5*ze.width,.5*ze.height,1]),t.L(ne,ne,ze.calculatePosMatrix(L.toUnwrapped()))}function Q(ze,L,ne,Te,Se,Re){const ft=function(pr,Br,ea){if(pr)for(const Ve of pr){const Ye=Br[Ve];if(Ye&&Ye.source===ea&&Ye.type==="fill-extrusion")return!0}else for(const Ve in Br){const Ye=Br[Ve];if(Ye.source===ea&&Ye.type==="fill-extrusion")return!0}return!1}(Se&&Se.layers,L,ze.id),xt=Re.maxPitchScaleFactor(),Dt=ze.tilesIn(Te,xt,ft);Dt.sort(V);const er=[];for(const pr of Dt)er.push({wrappedTileID:pr.tileID.wrapped().key,queryResults:pr.tile.queryRenderedFeatures(L,ne,ze._state,pr.queryGeometry,pr.cameraQueryGeometry,pr.scale,Se,Re,xt,se(ze.transform,pr.tileID))});const fr=function(pr){const Br={},ea={};for(const Ve of pr){const Ye=Ve.queryResults,it=Ve.wrappedTileID,vt=ea[it]=ea[it]||{};for(const St in Ye){const _t=Ye[St],Lt=vt[St]=vt[St]||{},nr=Br[St]=Br[St]||[];for(const cr of _t)Lt[cr.featureIndex]||(Lt[cr.featureIndex]=!0,nr.push(cr))}}return Br}(er);for(const pr in fr)fr[pr].forEach(Br=>{const ea=Br.feature,Ve=ze.getFeatureState(ea.layer["source-layer"],ea.id);ea.source=ea.layer.source,ea.layer["source-layer"]&&(ea.sourceLayer=ea.layer["source-layer"]),ea.state=Ve});return fr}function V(ze,L){const ne=ze.tileID,Te=L.tileID;return ne.overscaledZ-Te.overscaledZ||ne.canonical.y-Te.canonical.y||ne.wrap-Te.wrap||ne.canonical.x-Te.canonical.x}function re(ze,L,ne){return t._(this,void 0,void 0,function*(){let Te=ze;if(ze.url?Te=(yield t.h(L.transformRequest(ze.url,"Source"),ne)).data:yield o.frameAsync(ne),!Te)return null;const Se=t.M(t.e(Te,ze),["tiles","minzoom","maxzoom","attribution","bounds","scheme","tileSize","encoding"]);return"vector_layers"in Te&&Te.vector_layers&&(Se.vectorLayerIds=Te.vector_layers.map(Re=>Re.id)),Se})}class ae{constructor(L,ne){L&&(ne?this.setSouthWest(L).setNorthEast(ne):Array.isArray(L)&&(L.length===4?this.setSouthWest([L[0],L[1]]).setNorthEast([L[2],L[3]]):this.setSouthWest(L[0]).setNorthEast(L[1])))}setNorthEast(L){return this._ne=L instanceof t.N?new t.N(L.lng,L.lat):t.N.convert(L),this}setSouthWest(L){return this._sw=L instanceof t.N?new t.N(L.lng,L.lat):t.N.convert(L),this}extend(L){const ne=this._sw,Te=this._ne;let Se,Re;if(L instanceof t.N)Se=L,Re=L;else{if(!(L instanceof ae))return Array.isArray(L)?L.length===4||L.every(Array.isArray)?this.extend(ae.convert(L)):this.extend(t.N.convert(L)):L&&("lng"in L||"lon"in L)&&"lat"in L?this.extend(t.N.convert(L)):this;if(Se=L._sw,Re=L._ne,!Se||!Re)return this}return ne||Te?(ne.lng=Math.min(Se.lng,ne.lng),ne.lat=Math.min(Se.lat,ne.lat),Te.lng=Math.max(Re.lng,Te.lng),Te.lat=Math.max(Re.lat,Te.lat)):(this._sw=new t.N(Se.lng,Se.lat),this._ne=new t.N(Re.lng,Re.lat)),this}getCenter(){return new t.N((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 t.N(this.getWest(),this.getNorth())}getSouthEast(){return new t.N(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(L){const{lng:ne,lat:Te}=t.N.convert(L);let Se=this._sw.lng<=ne&&ne<=this._ne.lng;return this._sw.lng>this._ne.lng&&(Se=this._sw.lng>=ne&&ne>=this._ne.lng),this._sw.lat<=Te&&Te<=this._ne.lat&&Se}static convert(L){return L instanceof ae?L:L&&new ae(L)}static fromLngLat(L,ne=0){const Te=360*ne/40075017,Se=Te/Math.cos(Math.PI/180*L.lat);return new ae(new t.N(L.lng-Se,L.lat-Te),new t.N(L.lng+Se,L.lat+Te))}adjustAntiMeridian(){const L=new t.N(this._sw.lng,this._sw.lat),ne=new t.N(this._ne.lng,this._ne.lat);return new ae(L,L.lng>ne.lng?new t.N(ne.lng+360,ne.lat):ne)}}class fe{constructor(L,ne,Te){this.bounds=ae.convert(this.validateBounds(L)),this.minzoom=ne||0,this.maxzoom=Te||24}validateBounds(L){return Array.isArray(L)&&L.length===4?[Math.max(-180,L[0]),Math.max(-90,L[1]),Math.min(180,L[2]),Math.min(90,L[3])]:[-180,-90,180,90]}contains(L){const ne=Math.pow(2,L.z),Te=Math.floor(t.O(this.bounds.getWest())*ne),Se=Math.floor(t.Q(this.bounds.getNorth())*ne),Re=Math.ceil(t.O(this.bounds.getEast())*ne),ft=Math.ceil(t.Q(this.bounds.getSouth())*ne);return L.x>=Te&&L.x=Se&&L.y{this._options.tiles=L}),this}setUrl(L){return this.setSourceProperty(()=>{this.url=L,this._options.url=L}),this}onRemove(){this._tileJSONRequest&&(this._tileJSONRequest.abort(),this._tileJSONRequest=null)}serialize(){return t.e({},this._options)}loadTile(L){return t._(this,void 0,void 0,function*(){const ne=L.tileID.canonical.url(this.tiles,this.map.getPixelRatio(),this.scheme),Te={request:this.map._requestManager.transformRequest(ne,"Tile"),uid:L.uid,tileID:L.tileID,zoom:L.tileID.overscaledZ,tileSize:this.tileSize*L.tileID.overscaleFactor(),type:this.type,source:this.id,pixelRatio:this.map.getPixelRatio(),showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId};Te.request.collectResourceTiming=this._collectResourceTiming;let Se="RT";if(L.actor&&L.state!=="expired"){if(L.state==="loading")return new Promise((Re,ft)=>{L.reloadPromise={resolve:Re,reject:ft}})}else L.actor=this.dispatcher.getActor(),Se="LT";L.abortController=new AbortController;try{const Re=yield L.actor.sendAsync({type:Se,data:Te},L.abortController);if(delete L.abortController,L.aborted)return;this._afterTileLoadWorkerResponse(L,Re)}catch(Re){if(delete L.abortController,L.aborted)return;if(Re&&Re.status!==404)throw Re;this._afterTileLoadWorkerResponse(L,null)}})}_afterTileLoadWorkerResponse(L,ne){if(ne&&ne.resourceTiming&&(L.resourceTiming=ne.resourceTiming),ne&&this.map._refreshExpiredTiles&&L.setExpiryData(ne),L.loadVectorData(ne,this.map.painter),L.reloadPromise){const Te=L.reloadPromise;L.reloadPromise=null,this.loadTile(L).then(Te.resolve).catch(Te.reject)}}abortTile(L){return t._(this,void 0,void 0,function*(){L.abortController&&(L.abortController.abort(),delete L.abortController),L.actor&&(yield L.actor.sendAsync({type:"AT",data:{uid:L.uid,type:this.type,source:this.id}}))})}unloadTile(L){return t._(this,void 0,void 0,function*(){L.unloadVectorData(),L.actor&&(yield L.actor.sendAsync({type:"RMT",data:{uid:L.uid,type:this.type,source:this.id}}))})}hasTransition(){return!1}}class Ae extends t.E{constructor(L,ne,Te,Se){super(),this.id=L,this.dispatcher=Te,this.setEventedParent(Se),this.type="raster",this.minzoom=0,this.maxzoom=22,this.roundZoom=!0,this.scheme="xyz",this.tileSize=512,this._loaded=!1,this._options=t.e({type:"raster"},ne),t.e(this,t.M(ne,["url","scheme","tileSize"]))}load(){return t._(this,void 0,void 0,function*(){this._loaded=!1,this.fire(new t.k("dataloading",{dataType:"source"})),this._tileJSONRequest=new AbortController;try{const L=yield re(this._options,this.map._requestManager,this._tileJSONRequest);this._tileJSONRequest=null,this._loaded=!0,L&&(t.e(this,L),L.bounds&&(this.tileBounds=new fe(L.bounds,this.minzoom,this.maxzoom)),this.fire(new t.k("data",{dataType:"source",sourceDataType:"metadata"})),this.fire(new t.k("data",{dataType:"source",sourceDataType:"content"})))}catch(L){this._tileJSONRequest=null,this.fire(new t.j(L))}})}loaded(){return this._loaded}onAdd(L){this.map=L,this.load()}onRemove(){this._tileJSONRequest&&(this._tileJSONRequest.abort(),this._tileJSONRequest=null)}setSourceProperty(L){this._tileJSONRequest&&(this._tileJSONRequest.abort(),this._tileJSONRequest=null),L(),this.load()}setTiles(L){return this.setSourceProperty(()=>{this._options.tiles=L}),this}setUrl(L){return this.setSourceProperty(()=>{this.url=L,this._options.url=L}),this}serialize(){return t.e({},this._options)}hasTile(L){return!this.tileBounds||this.tileBounds.contains(L.canonical)}loadTile(L){return t._(this,void 0,void 0,function*(){const ne=L.tileID.canonical.url(this.tiles,this.map.getPixelRatio(),this.scheme);L.abortController=new AbortController;try{const Te=yield l.getImage(this.map._requestManager.transformRequest(ne,"Tile"),L.abortController,this.map._refreshExpiredTiles);if(delete L.abortController,L.aborted)return void(L.state="unloaded");if(Te&&Te.data){this.map._refreshExpiredTiles&&Te.cacheControl&&Te.expires&&L.setExpiryData({cacheControl:Te.cacheControl,expires:Te.expires});const Se=this.map.painter.context,Re=Se.gl,ft=Te.data;L.texture=this.map.painter.getTileTexture(ft.width),L.texture?L.texture.update(ft,{useMipmap:!0}):(L.texture=new u(Se,ft,Re.RGBA,{useMipmap:!0}),L.texture.bind(Re.LINEAR,Re.CLAMP_TO_EDGE,Re.LINEAR_MIPMAP_NEAREST)),L.state="loaded"}}catch(Te){if(delete L.abortController,L.aborted)L.state="unloaded";else if(Te)throw L.state="errored",Te}})}abortTile(L){return t._(this,void 0,void 0,function*(){L.abortController&&(L.abortController.abort(),delete L.abortController)})}unloadTile(L){return t._(this,void 0,void 0,function*(){L.texture&&this.map.painter.saveTileTexture(L.texture)})}hasTransition(){return!1}}class Pe extends Ae{constructor(L,ne,Te,Se){super(L,ne,Te,Se),this.type="raster-dem",this.maxzoom=22,this._options=t.e({type:"raster-dem"},ne),this.encoding=ne.encoding||"mapbox",this.redFactor=ne.redFactor,this.greenFactor=ne.greenFactor,this.blueFactor=ne.blueFactor,this.baseShift=ne.baseShift}loadTile(L){return t._(this,void 0,void 0,function*(){const ne=L.tileID.canonical.url(this.tiles,this.map.getPixelRatio(),this.scheme),Te=this.map._requestManager.transformRequest(ne,"Tile");L.neighboringTiles=this._getNeighboringTiles(L.tileID),L.abortController=new AbortController;try{const Se=yield l.getImage(Te,L.abortController,this.map._refreshExpiredTiles);if(delete L.abortController,L.aborted)return void(L.state="unloaded");if(Se&&Se.data){const Re=Se.data;this.map._refreshExpiredTiles&&Se.cacheControl&&Se.expires&&L.setExpiryData({cacheControl:Se.cacheControl,expires:Se.expires});const ft=t.b(Re)&&t.U()?Re:yield this.readImageNow(Re),xt={type:this.type,uid:L.uid,source:this.id,rawImageData:ft,encoding:this.encoding,redFactor:this.redFactor,greenFactor:this.greenFactor,blueFactor:this.blueFactor,baseShift:this.baseShift};if(!L.actor||L.state==="expired"){L.actor=this.dispatcher.getActor();const Dt=yield L.actor.sendAsync({type:"LDT",data:xt});L.dem=Dt,L.needsHillshadePrepare=!0,L.needsTerrainPrepare=!0,L.state="loaded"}}}catch(Se){if(delete L.abortController,L.aborted)L.state="unloaded";else if(Se)throw L.state="errored",Se}})}readImageNow(L){return t._(this,void 0,void 0,function*(){if(typeof VideoFrame<"u"&&t.V()){const ne=L.width+2,Te=L.height+2;try{return new t.R({width:ne,height:Te},yield t.W(L,-1,-1,ne,Te))}catch{}}return o.getImageData(L,1)})}_getNeighboringTiles(L){const ne=L.canonical,Te=Math.pow(2,ne.z),Se=(ne.x-1+Te)%Te,Re=ne.x===0?L.wrap-1:L.wrap,ft=(ne.x+1+Te)%Te,xt=ne.x+1===Te?L.wrap+1:L.wrap,Dt={};return Dt[new t.S(L.overscaledZ,Re,ne.z,Se,ne.y).key]={backfilled:!1},Dt[new t.S(L.overscaledZ,xt,ne.z,ft,ne.y).key]={backfilled:!1},ne.y>0&&(Dt[new t.S(L.overscaledZ,Re,ne.z,Se,ne.y-1).key]={backfilled:!1},Dt[new t.S(L.overscaledZ,L.wrap,ne.z,ne.x,ne.y-1).key]={backfilled:!1},Dt[new t.S(L.overscaledZ,xt,ne.z,ft,ne.y-1).key]={backfilled:!1}),ne.y+10&&t.e(Re,{resourceTiming:Se}),this.fire(new t.k("data",Object.assign(Object.assign({},Re),{sourceDataType:"metadata"}))),this.fire(new t.k("data",Object.assign(Object.assign({},Re),{sourceDataType:"content"})))}catch(Te){if(this._pendingLoads--,this._removed)return void this.fire(new t.k("dataabort",{dataType:"source"}));this.fire(new t.j(Te))}})}loaded(){return this._pendingLoads===0}loadTile(L){return t._(this,void 0,void 0,function*(){const ne=L.actor?"RT":"LT";L.actor=this.actor;const Te={type:this.type,uid:L.uid,tileID:L.tileID,zoom:L.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:this.map.getPixelRatio(),showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId};L.abortController=new AbortController;const Se=yield this.actor.sendAsync({type:ne,data:Te},L.abortController);delete L.abortController,L.unloadVectorData(),L.aborted||L.loadVectorData(Se,this.map.painter,ne==="RT")})}abortTile(L){return t._(this,void 0,void 0,function*(){L.abortController&&(L.abortController.abort(),delete L.abortController),L.aborted=!0})}unloadTile(L){return t._(this,void 0,void 0,function*(){L.unloadVectorData(),yield this.actor.sendAsync({type:"RMT",data:{uid:L.uid,type:this.type,source:this.id}})})}onRemove(){this._removed=!0,this.actor.sendAsync({type:"RS",data:{type:this.type,source:this.id}})}serialize(){return t.e({},this._options,{type:this.type,data:this._data})}hasTransition(){return!1}}var je=t.Y([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]);class at extends t.E{constructor(L,ne,Te,Se){super(),this.id=L,this.dispatcher=Te,this.coordinates=ne.coordinates,this.type="image",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent(Se),this.options=ne}load(L){return t._(this,void 0,void 0,function*(){this._loaded=!1,this.fire(new t.k("dataloading",{dataType:"source"})),this.url=this.options.url,this._request=new AbortController;try{const ne=yield l.getImage(this.map._requestManager.transformRequest(this.url,"Image"),this._request);this._request=null,this._loaded=!0,ne&&ne.data&&(this.image=ne.data,L&&(this.coordinates=L),this._finishLoading())}catch(ne){this._request=null,this._loaded=!0,this.fire(new t.j(ne))}})}loaded(){return this._loaded}updateImage(L){return L.url?(this._request&&(this._request.abort(),this._request=null),this.options.url=L.url,this.load(L.coordinates).finally(()=>{this.texture=null}),this):this}_finishLoading(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new t.k("data",{dataType:"source",sourceDataType:"metadata"})))}onAdd(L){this.map=L,this.load()}onRemove(){this._request&&(this._request.abort(),this._request=null)}setCoordinates(L){this.coordinates=L;const ne=L.map(t.Z.fromLngLat);this.tileID=function(Se){let Re=1/0,ft=1/0,xt=-1/0,Dt=-1/0;for(const Br of Se)Re=Math.min(Re,Br.x),ft=Math.min(ft,Br.y),xt=Math.max(xt,Br.x),Dt=Math.max(Dt,Br.y);const er=Math.max(xt-Re,Dt-ft),fr=Math.max(0,Math.floor(-Math.log(er)/Math.LN2)),pr=Math.pow(2,fr);return new t.a1(fr,Math.floor((Re+xt)/2*pr),Math.floor((ft+Dt)/2*pr))}(ne),this.minzoom=this.maxzoom=this.tileID.z;const Te=ne.map(Se=>this.tileID.getTilePoint(Se)._round());return this._boundsArray=new t.$,this._boundsArray.emplaceBack(Te[0].x,Te[0].y,0,0),this._boundsArray.emplaceBack(Te[1].x,Te[1].y,t.X,0),this._boundsArray.emplaceBack(Te[3].x,Te[3].y,0,t.X),this._boundsArray.emplaceBack(Te[2].x,Te[2].y,t.X,t.X),this.boundsBuffer&&(this.boundsBuffer.destroy(),delete this.boundsBuffer),this.fire(new t.k("data",{dataType:"source",sourceDataType:"content"})),this}prepare(){if(Object.keys(this.tiles).length===0||!this.image)return;const L=this.map.painter.context,ne=L.gl;this.boundsBuffer||(this.boundsBuffer=L.createVertexBuffer(this._boundsArray,je.members)),this.boundsSegments||(this.boundsSegments=t.a0.simpleSegment(0,0,4,2)),this.texture||(this.texture=new u(L,this.image,ne.RGBA),this.texture.bind(ne.LINEAR,ne.CLAMP_TO_EDGE));let Te=!1;for(const Se in this.tiles){const Re=this.tiles[Se];Re.state!=="loaded"&&(Re.state="loaded",Re.texture=this.texture,Te=!0)}Te&&this.fire(new t.k("data",{dataType:"source",sourceDataType:"idle",sourceId:this.id}))}loadTile(L){return t._(this,void 0,void 0,function*(){this.tileID&&this.tileID.equals(L.tileID.canonical)?(this.tiles[String(L.tileID.wrap)]=L,L.buckets={}):L.state="errored"})}serialize(){return{type:"image",url:this.options.url,coordinates:this.coordinates}}hasTransition(){return!1}}class tt extends at{constructor(L,ne,Te,Se){super(L,ne,Te,Se),this.roundZoom=!0,this.type="video",this.options=ne}load(){return t._(this,void 0,void 0,function*(){this._loaded=!1;const L=this.options;this.urls=[];for(const ne of L.urls)this.urls.push(this.map._requestManager.transformRequest(ne,"Source").url);try{const ne=yield t.a3(this.urls);if(this._loaded=!0,!ne)return;this.video=ne,this.video.loop=!0,this.video.addEventListener("playing",()=>{this.map.triggerRepaint()}),this.map&&this.video.play(),this._finishLoading()}catch(ne){this.fire(new t.j(ne))}})}pause(){this.video&&this.video.pause()}play(){this.video&&this.video.play()}seek(L){if(this.video){const ne=this.video.seekable;Lne.end(0)?this.fire(new t.j(new t.a2(`sources.${this.id}`,null,`Playback for this video can be set only between the ${ne.start(0)} and ${ne.end(0)}-second mark.`))):this.video.currentTime=L}}getVideo(){return this.video}onAdd(L){this.map||(this.map=L,this.load(),this.video&&(this.video.play(),this.setCoordinates(this.coordinates)))}prepare(){if(Object.keys(this.tiles).length===0||this.video.readyState<2)return;const L=this.map.painter.context,ne=L.gl;this.boundsBuffer||(this.boundsBuffer=L.createVertexBuffer(this._boundsArray,je.members)),this.boundsSegments||(this.boundsSegments=t.a0.simpleSegment(0,0,4,2)),this.texture?this.video.paused||(this.texture.bind(ne.LINEAR,ne.CLAMP_TO_EDGE),ne.texSubImage2D(ne.TEXTURE_2D,0,0,0,ne.RGBA,ne.UNSIGNED_BYTE,this.video)):(this.texture=new u(L,this.video,ne.RGBA),this.texture.bind(ne.LINEAR,ne.CLAMP_TO_EDGE));let Te=!1;for(const Se in this.tiles){const Re=this.tiles[Se];Re.state!=="loaded"&&(Re.state="loaded",Re.texture=this.texture,Te=!0)}Te&&this.fire(new t.k("data",{dataType:"source",sourceDataType:"idle",sourceId:this.id}))}serialize(){return{type:"video",urls:this.urls,coordinates:this.coordinates}}hasTransition(){return this.video&&!this.video.paused}}class Je extends at{constructor(L,ne,Te,Se){super(L,ne,Te,Se),ne.coordinates?Array.isArray(ne.coordinates)&&ne.coordinates.length===4&&!ne.coordinates.some(Re=>!Array.isArray(Re)||Re.length!==2||Re.some(ft=>typeof ft!="number"))||this.fire(new t.j(new t.a2(`sources.${L}`,null,'"coordinates" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new t.j(new t.a2(`sources.${L}`,null,'missing required property "coordinates"'))),ne.animate&&typeof ne.animate!="boolean"&&this.fire(new t.j(new t.a2(`sources.${L}`,null,'optional "animate" property must be a boolean value'))),ne.canvas?typeof ne.canvas=="string"||ne.canvas instanceof HTMLCanvasElement||this.fire(new t.j(new t.a2(`sources.${L}`,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 t.j(new t.a2(`sources.${L}`,null,'missing required property "canvas"'))),this.options=ne,this.animate=ne.animate===void 0||ne.animate}load(){return t._(this,void 0,void 0,function*(){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 t.j(new Error("Canvas dimensions cannot be less than or equal to zero."))):(this.play=function(){this._playing=!0,this.map.triggerRepaint()},this.pause=function(){this._playing&&(this.prepare(),this._playing=!1)},this._finishLoading())})}getCanvas(){return this.canvas}onAdd(L){this.map=L,this.load(),this.canvas&&this.animate&&this.play()}onRemove(){this.pause()}prepare(){let L=!1;if(this.canvas.width!==this.width&&(this.width=this.canvas.width,L=!0),this.canvas.height!==this.height&&(this.height=this.canvas.height,L=!0),this._hasInvalidDimensions()||Object.keys(this.tiles).length===0)return;const ne=this.map.painter.context,Te=ne.gl;this.boundsBuffer||(this.boundsBuffer=ne.createVertexBuffer(this._boundsArray,je.members)),this.boundsSegments||(this.boundsSegments=t.a0.simpleSegment(0,0,4,2)),this.texture?(L||this._playing)&&this.texture.update(this.canvas,{premultiply:!0}):this.texture=new u(ne,this.canvas,Te.RGBA,{premultiply:!0});let Se=!1;for(const Re in this.tiles){const ft=this.tiles[Re];ft.state!=="loaded"&&(ft.state="loaded",ft.texture=this.texture,Se=!0)}Se&&this.fire(new t.k("data",{dataType:"source",sourceDataType:"idle",sourceId:this.id}))}serialize(){return{type:"canvas",coordinates:this.coordinates}}hasTransition(){return this._playing}_hasInvalidDimensions(){for(const L of[this.canvas.width,this.canvas.height])if(isNaN(L)||L<=0)return!0;return!1}}const Ze={},Me=ze=>{switch(ze){case"geojson":return Ce;case"image":return at;case"raster":return Ae;case"raster-dem":return Pe;case"vector":return xe;case"video":return tt;case"canvas":return Je}return Ze[ze]},we="RTLPluginLoaded";class he extends t.E{constructor(){super(...arguments),this.status="unavailable",this.url=null,this.dispatcher=Z()}_syncState(L){return this.status=L,this.dispatcher.broadcast("SRPS",{pluginStatus:L,pluginURL:this.url}).catch(ne=>{throw this.status="error",ne})}getRTLTextPluginStatus(){return this.status}clearRTLTextPlugin(){this.status="unavailable",this.url=null}setRTLTextPlugin(L){return t._(this,arguments,void 0,function*(ne,Te=!1){if(this.url)throw new Error("setRTLTextPlugin cannot be called multiple times.");if(this.url=o.resolveURL(ne),!this.url)throw new Error(`requested url ${ne} is invalid`);if(this.status==="unavailable"){if(!Te)return this._requestImport();this.status="deferred",this._syncState(this.status)}else if(this.status==="requested")return this._requestImport()})}_requestImport(){return t._(this,void 0,void 0,function*(){yield this._syncState("loading"),this.status="loaded",this.fire(new t.k(we))})}lazyLoad(){this.status==="unavailable"?this.status="requested":this.status==="deferred"&&this._requestImport()}}let De=null;function et(){return De||(De=new he),De}class nt{constructor(L,ne){this.timeAdded=0,this.fadeEndTime=0,this.tileID=L,this.uid=t.a4(),this.uses=0,this.tileSize=ne,this.buckets={},this.expirationTime=null,this.queryPadding=0,this.hasSymbolBuckets=!1,this.hasRTLText=!1,this.dependencies={},this.rtt=[],this.rttCoords={},this.expiredRequestCount=0,this.state="loading"}registerFadeDuration(L){const ne=L+this.timeAdded;neRe.getLayer(er)).filter(Boolean);if(Dt.length!==0){xt.layers=Dt,xt.stateDependentLayerIds&&(xt.stateDependentLayers=xt.stateDependentLayerIds.map(er=>Dt.filter(fr=>fr.id===er)[0]));for(const er of Dt)ft[er.id]=xt}}return ft}(L.buckets,ne.style),this.hasSymbolBuckets=!1;for(const Se in this.buckets){const Re=this.buckets[Se];if(Re instanceof t.a6){if(this.hasSymbolBuckets=!0,!Te)break;Re.justReloaded=!0}}if(this.hasRTLText=!1,this.hasSymbolBuckets)for(const Se in this.buckets){const Re=this.buckets[Se];if(Re instanceof t.a6&&Re.hasRTLText){this.hasRTLText=!0,et().lazyLoad();break}}this.queryPadding=0;for(const Se in this.buckets){const Re=this.buckets[Se];this.queryPadding=Math.max(this.queryPadding,ne.style.getLayer(Se).queryRadius(Re))}L.imageAtlas&&(this.imageAtlas=L.imageAtlas),L.glyphAtlasImage&&(this.glyphAtlasImage=L.glyphAtlasImage)}else this.collisionBoxArray=new t.a5}unloadVectorData(){for(const L in this.buckets)this.buckets[L].destroy();this.buckets={},this.imageAtlasTexture&&this.imageAtlasTexture.destroy(),this.imageAtlas&&(this.imageAtlas=null),this.glyphAtlasTexture&&this.glyphAtlasTexture.destroy(),this.latestFeatureIndex=null,this.state="unloaded"}getBucket(L){return this.buckets[L.id]}upload(L){for(const Te in this.buckets){const Se=this.buckets[Te];Se.uploadPending()&&Se.upload(L)}const ne=L.gl;this.imageAtlas&&!this.imageAtlas.uploaded&&(this.imageAtlasTexture=new u(L,this.imageAtlas.image,ne.RGBA),this.imageAtlas.uploaded=!0),this.glyphAtlasImage&&(this.glyphAtlasTexture=new u(L,this.glyphAtlasImage,ne.ALPHA),this.glyphAtlasImage=null)}prepare(L){this.imageAtlas&&this.imageAtlas.patchUpdatedImages(L,this.imageAtlasTexture)}queryRenderedFeatures(L,ne,Te,Se,Re,ft,xt,Dt,er,fr){return this.latestFeatureIndex&&this.latestFeatureIndex.rawTileData?this.latestFeatureIndex.query({queryGeometry:Se,cameraQueryGeometry:Re,scale:ft,tileSize:this.tileSize,pixelPosMatrix:fr,transform:Dt,params:xt,queryPadding:this.queryPadding*er},L,ne,Te):{}}querySourceFeatures(L,ne){const Te=this.latestFeatureIndex;if(!Te||!Te.rawTileData)return;const Se=Te.loadVTLayers(),Re=ne&&ne.sourceLayer?ne.sourceLayer:"",ft=Se._geojsonTileLayer||Se[Re];if(!ft)return;const xt=t.a7(ne&&ne.filter),{z:Dt,x:er,y:fr}=this.tileID.canonical,pr={z:Dt,x:er,y:fr};for(let Br=0;BrTe)Se=!1;else if(ne)if(this.expirationTime{this.remove(L,Re)},Te)),this.data[Se].push(Re),this.order.push(Se),this.order.length>this.max){const ft=this._getAndRemoveByKey(this.order[0]);ft&&this.onRemove(ft)}return this}has(L){return L.wrapped().key in this.data}getAndRemove(L){return this.has(L)?this._getAndRemoveByKey(L.wrapped().key):null}_getAndRemoveByKey(L){const ne=this.data[L].shift();return ne.timeout&&clearTimeout(ne.timeout),this.data[L].length===0&&delete this.data[L],this.order.splice(this.order.indexOf(L),1),ne.value}getByKey(L){const ne=this.data[L];return ne?ne[0].value:null}get(L){return this.has(L)?this.data[L.wrapped().key][0].value:null}remove(L,ne){if(!this.has(L))return this;const Te=L.wrapped().key,Se=ne===void 0?0:this.data[Te].indexOf(ne),Re=this.data[Te][Se];return this.data[Te].splice(Se,1),Re.timeout&&clearTimeout(Re.timeout),this.data[Te].length===0&&delete this.data[Te],this.onRemove(Re.value),this.order.splice(this.order.indexOf(Te),1),this}setMaxSize(L){for(this.max=L;this.order.length>this.max;){const ne=this._getAndRemoveByKey(this.order[0]);ne&&this.onRemove(ne)}return this}filter(L){const ne=[];for(const Te in this.data)for(const Se of this.data[Te])L(Se.value)||ne.push(Se);for(const Te of ne)this.remove(Te.value.tileID,Te)}}class Et{constructor(){this.state={},this.stateChanges={},this.deletedStates={}}updateState(L,ne,Te){const Se=String(ne);if(this.stateChanges[L]=this.stateChanges[L]||{},this.stateChanges[L][Se]=this.stateChanges[L][Se]||{},t.e(this.stateChanges[L][Se],Te),this.deletedStates[L]===null){this.deletedStates[L]={};for(const Re in this.state[L])Re!==Se&&(this.deletedStates[L][Re]=null)}else if(this.deletedStates[L]&&this.deletedStates[L][Se]===null){this.deletedStates[L][Se]={};for(const Re in this.state[L][Se])Te[Re]||(this.deletedStates[L][Se][Re]=null)}else for(const Re in Te)this.deletedStates[L]&&this.deletedStates[L][Se]&&this.deletedStates[L][Se][Re]===null&&delete this.deletedStates[L][Se][Re]}removeFeatureState(L,ne,Te){if(this.deletedStates[L]===null)return;const Se=String(ne);if(this.deletedStates[L]=this.deletedStates[L]||{},Te&&ne!==void 0)this.deletedStates[L][Se]!==null&&(this.deletedStates[L][Se]=this.deletedStates[L][Se]||{},this.deletedStates[L][Se][Te]=null);else if(ne!==void 0)if(this.stateChanges[L]&&this.stateChanges[L][Se])for(Te in this.deletedStates[L][Se]={},this.stateChanges[L][Se])this.deletedStates[L][Se][Te]=null;else this.deletedStates[L][Se]=null;else this.deletedStates[L]=null}getState(L,ne){const Te=String(ne),Se=t.e({},(this.state[L]||{})[Te],(this.stateChanges[L]||{})[Te]);if(this.deletedStates[L]===null)return{};if(this.deletedStates[L]){const Re=this.deletedStates[L][ne];if(Re===null)return{};for(const ft in Re)delete Se[ft]}return Se}initializeTileState(L,ne){L.setFeatureState(this.state,ne)}coalesceChanges(L,ne){const Te={};for(const Se in this.stateChanges){this.state[Se]=this.state[Se]||{};const Re={};for(const ft in this.stateChanges[Se])this.state[Se][ft]||(this.state[Se][ft]={}),t.e(this.state[Se][ft],this.stateChanges[Se][ft]),Re[ft]=this.state[Se][ft];Te[Se]=Re}for(const Se in this.deletedStates){this.state[Se]=this.state[Se]||{};const Re={};if(this.deletedStates[Se]===null)for(const ft in this.state[Se])Re[ft]={},this.state[Se][ft]={};else for(const ft in this.deletedStates[Se]){if(this.deletedStates[Se][ft]===null)this.state[Se][ft]={};else for(const xt of Object.keys(this.deletedStates[Se][ft]))delete this.state[Se][ft][xt];Re[ft]=this.state[Se][ft]}Te[Se]=Te[Se]||{},t.e(Te[Se],Re)}if(this.stateChanges={},this.deletedStates={},Object.keys(Te).length!==0)for(const Se in L)L[Se].setFeatureState(Te,ne)}}class kt extends t.E{constructor(L,ne,Te){super(),this.id=L,this.dispatcher=Te,this.on("data",Se=>this._dataHandler(Se)),this.on("dataloading",()=>{this._sourceErrored=!1}),this.on("error",()=>{this._sourceErrored=this._source.loaded()}),this._source=((Se,Re,ft,xt)=>{const Dt=new(Me(Re.type))(Se,Re,ft,xt);if(Dt.id!==Se)throw new Error(`Expected Source id to be ${Se} instead of ${Dt.id}`);return Dt})(L,ne,Te,this),this._tiles={},this._cache=new Ke(0,Se=>this._unloadTile(Se)),this._timers={},this._cacheTimers={},this._maxTileCacheSize=null,this._maxTileCacheZoomLevels=null,this._loadedParentTiles={},this._coveredTiles={},this._state=new Et,this._didEmitContent=!1,this._updated=!1}onAdd(L){this.map=L,this._maxTileCacheSize=L?L._maxTileCacheSize:null,this._maxTileCacheZoomLevels=L?L._maxTileCacheZoomLevels:null,this._source&&this._source.onAdd&&this._source.onAdd(L)}onRemove(L){this.clearTiles(),this._source&&this._source.onRemove&&this._source.onRemove(L)}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(const L in this._tiles){const ne=this._tiles[L];if(ne.state!=="loaded"&&ne.state!=="errored")return!1}return!0}getSource(){return this._source}pause(){this._paused=!0}resume(){if(!this._paused)return;const L=this._shouldReloadOnResume;this._paused=!1,this._shouldReloadOnResume=!1,L&&this.reload(),this.transform&&this.update(this.transform,this.terrain)}_loadTile(L,ne,Te){return t._(this,void 0,void 0,function*(){try{yield this._source.loadTile(L),this._tileLoaded(L,ne,Te)}catch(Se){L.state="errored",Se.status!==404?this._source.fire(new t.j(Se,{tile:L})):this.update(this.transform,this.terrain)}})}_unloadTile(L){this._source.unloadTile&&this._source.unloadTile(L)}_abortTile(L){this._source.abortTile&&this._source.abortTile(L),this._source.fire(new t.k("dataabort",{tile:L,coord:L.tileID,dataType:"source"}))}serialize(){return this._source.serialize()}prepare(L){this._source.prepare&&this._source.prepare(),this._state.coalesceChanges(this._tiles,this.map?this.map.painter:null);for(const ne in this._tiles){const Te=this._tiles[ne];Te.upload(L),Te.prepare(this.map.style.imageManager)}}getIds(){return Object.values(this._tiles).map(L=>L.tileID).sort(Ut).map(L=>L.key)}getRenderableIds(L){const ne=[];for(const Te in this._tiles)this._isIdRenderable(Te,L)&&ne.push(this._tiles[Te]);return L?ne.sort((Te,Se)=>{const Re=Te.tileID,ft=Se.tileID,xt=new t.P(Re.canonical.x,Re.canonical.y)._rotate(this.transform.angle),Dt=new t.P(ft.canonical.x,ft.canonical.y)._rotate(this.transform.angle);return Re.overscaledZ-ft.overscaledZ||Dt.y-xt.y||Dt.x-xt.x}).map(Te=>Te.tileID.key):ne.map(Te=>Te.tileID).sort(Ut).map(Te=>Te.key)}hasRenderableParent(L){const ne=this.findLoadedParent(L,0);return!!ne&&this._isIdRenderable(ne.tileID.key)}_isIdRenderable(L,ne){return this._tiles[L]&&this._tiles[L].hasData()&&!this._coveredTiles[L]&&(ne||!this._tiles[L].holdingForFade())}reload(){if(this._paused)this._shouldReloadOnResume=!0;else{this._cache.reset();for(const L in this._tiles)this._tiles[L].state!=="errored"&&this._reloadTile(L,"reloading")}}_reloadTile(L,ne){return t._(this,void 0,void 0,function*(){const Te=this._tiles[L];Te&&(Te.state!=="loading"&&(Te.state=ne),yield this._loadTile(Te,L,ne))})}_tileLoaded(L,ne,Te){L.timeAdded=o.now(),Te==="expired"&&(L.refreshedUponExpiration=!0),this._setTileReloadTimer(ne,L),this.getSource().type==="raster-dem"&&L.dem&&this._backfillDEM(L),this._state.initializeTileState(L,this.map?this.map.painter:null),L.aborted||this._source.fire(new t.k("data",{dataType:"source",tile:L,coord:L.tileID}))}_backfillDEM(L){const ne=this.getRenderableIds();for(let Se=0;Se1||(Math.abs(ft)>1&&(Math.abs(ft+Dt)===1?ft+=Dt:Math.abs(ft-Dt)===1&&(ft-=Dt)),Re.dem&&Se.dem&&(Se.dem.backfillBorder(Re.dem,ft,xt),Se.neighboringTiles&&Se.neighboringTiles[er]&&(Se.neighboringTiles[er].backfilled=!0)))}}getTile(L){return this.getTileByID(L.key)}getTileByID(L){return this._tiles[L]}_retainLoadedChildren(L,ne,Te,Se){for(const Re in this._tiles){let ft=this._tiles[Re];if(Se[Re]||!ft.hasData()||ft.tileID.overscaledZ<=ne||ft.tileID.overscaledZ>Te)continue;let xt=ft.tileID;for(;ft&&ft.tileID.overscaledZ>ne+1;){const er=ft.tileID.scaledTo(ft.tileID.overscaledZ-1);ft=this._tiles[er.key],ft&&ft.hasData()&&(xt=er)}let Dt=xt;for(;Dt.overscaledZ>ne;)if(Dt=Dt.scaledTo(Dt.overscaledZ-1),L[Dt.key]){Se[xt.key]=xt;break}}}findLoadedParent(L,ne){if(L.key in this._loadedParentTiles){const Te=this._loadedParentTiles[L.key];return Te&&Te.tileID.overscaledZ>=ne?Te:null}for(let Te=L.overscaledZ-1;Te>=ne;Te--){const Se=L.scaledTo(Te),Re=this._getLoadedTile(Se);if(Re)return Re}}findLoadedSibling(L){return this._getLoadedTile(L)}_getLoadedTile(L){const ne=this._tiles[L.key];return ne&&ne.hasData()?ne:this._cache.getByKey(L.wrapped().key)}updateCacheSize(L){const ne=Math.ceil(L.width/this._source.tileSize)+1,Te=Math.ceil(L.height/this._source.tileSize)+1,Se=Math.floor(ne*Te*(this._maxTileCacheZoomLevels===null?t.a.MAX_TILE_CACHE_ZOOM_LEVELS:this._maxTileCacheZoomLevels)),Re=typeof this._maxTileCacheSize=="number"?Math.min(this._maxTileCacheSize,Se):Se;this._cache.setMaxSize(Re)}handleWrapJump(L){const ne=Math.round((L-(this._prevLng===void 0?L:this._prevLng))/360);if(this._prevLng=L,ne){const Te={};for(const Se in this._tiles){const Re=this._tiles[Se];Re.tileID=Re.tileID.unwrapTo(Re.tileID.wrap+ne),Te[Re.tileID.key]=Re}this._tiles=Te;for(const Se in this._timers)clearTimeout(this._timers[Se]),delete this._timers[Se];for(const Se in this._tiles)this._setTileReloadTimer(Se,this._tiles[Se])}}_updateCoveredAndRetainedTiles(L,ne,Te,Se,Re,ft){const xt={},Dt={},er=Object.keys(L),fr=o.now();for(const pr of er){const Br=L[pr],ea=this._tiles[pr];if(!ea||ea.fadeEndTime!==0&&ea.fadeEndTime<=fr)continue;const Ve=this.findLoadedParent(Br,ne),Ye=this.findLoadedSibling(Br),it=Ve||Ye||null;it&&(this._addTile(it.tileID),xt[it.tileID.key]=it.tileID),Dt[pr]=Br}this._retainLoadedChildren(Dt,Se,Te,L);for(const pr in xt)L[pr]||(this._coveredTiles[pr]=!0,L[pr]=xt[pr]);if(ft){const pr={},Br={};for(const ea of Re)this._tiles[ea.key].hasData()?pr[ea.key]=ea:Br[ea.key]=ea;for(const ea in Br){const Ve=Br[ea].children(this._source.maxzoom);this._tiles[Ve[0].key]&&this._tiles[Ve[1].key]&&this._tiles[Ve[2].key]&&this._tiles[Ve[3].key]&&(pr[Ve[0].key]=L[Ve[0].key]=Ve[0],pr[Ve[1].key]=L[Ve[1].key]=Ve[1],pr[Ve[2].key]=L[Ve[2].key]=Ve[2],pr[Ve[3].key]=L[Ve[3].key]=Ve[3],delete Br[ea])}for(const ea in Br){const Ve=Br[ea],Ye=this.findLoadedParent(Ve,this._source.minzoom),it=this.findLoadedSibling(Ve),vt=Ye||it||null;if(vt){pr[vt.tileID.key]=L[vt.tileID.key]=vt.tileID;for(const St in pr)pr[St].isChildOf(vt.tileID)&&delete pr[St]}}for(const ea in this._tiles)pr[ea]||(this._coveredTiles[ea]=!0)}}update(L,ne){if(!this._sourceLoaded||this._paused)return;let Te;this.transform=L,this.terrain=ne,this.updateCacheSize(L),this.handleWrapJump(this.transform.center.lng),this._coveredTiles={},this.used||this.usedForTerrain?this._source.tileID?Te=L.getVisibleUnwrappedCoordinates(this._source.tileID).map(fr=>new t.S(fr.canonical.z,fr.wrap,fr.canonical.z,fr.canonical.x,fr.canonical.y)):(Te=L.coveringTiles({tileSize:this.usedForTerrain?this.tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:!this.usedForTerrain&&this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled,terrain:ne}),this._source.hasTile&&(Te=Te.filter(fr=>this._source.hasTile(fr)))):Te=[];const Se=L.coveringZoomLevel(this._source),Re=Math.max(Se-kt.maxOverzooming,this._source.minzoom),ft=Math.max(Se+kt.maxUnderzooming,this._source.minzoom);if(this.usedForTerrain){const fr={};for(const pr of Te)if(pr.canonical.z>this._source.minzoom){const Br=pr.scaledTo(pr.canonical.z-1);fr[Br.key]=Br;const ea=pr.scaledTo(Math.max(this._source.minzoom,Math.min(pr.canonical.z,5)));fr[ea.key]=ea}Te=Te.concat(Object.values(fr))}const xt=Te.length===0&&!this._updated&&this._didEmitContent;this._updated=!0,xt&&this.fire(new t.k("data",{sourceDataType:"idle",dataType:"source",sourceId:this.id}));const Dt=this._updateRetainedTiles(Te,Se);Yt(this._source.type)&&this._updateCoveredAndRetainedTiles(Dt,Re,ft,Se,Te,ne);for(const fr in Dt)this._tiles[fr].clearFadeHold();const er=t.ab(this._tiles,Dt);for(const fr of er){const pr=this._tiles[fr];pr.hasSymbolBuckets&&!pr.holdingForFade()?pr.setHoldDuration(this.map._fadeDuration):pr.hasSymbolBuckets&&!pr.symbolFadeFinished()||this._removeTile(fr)}this._updateLoadedParentTileCache(),this._updateLoadedSiblingTileCache()}releaseSymbolFadeTiles(){for(const L in this._tiles)this._tiles[L].holdingForFade()&&this._removeTile(L)}_updateRetainedTiles(L,ne){var Te;const Se={},Re={},ft=Math.max(ne-kt.maxOverzooming,this._source.minzoom),xt=Math.max(ne+kt.maxUnderzooming,this._source.minzoom),Dt={};for(const er of L){const fr=this._addTile(er);Se[er.key]=er,fr.hasData()||nethis._source.maxzoom){const Br=er.children(this._source.maxzoom)[0],ea=this.getTile(Br);if(ea&&ea.hasData()){Se[Br.key]=Br;continue}}else{const Br=er.children(this._source.maxzoom);if(Se[Br[0].key]&&Se[Br[1].key]&&Se[Br[2].key]&&Se[Br[3].key])continue}let pr=fr.wasRequested();for(let Br=er.overscaledZ-1;Br>=ft;--Br){const ea=er.scaledTo(Br);if(Re[ea.key])break;if(Re[ea.key]=!0,fr=this.getTile(ea),!fr&&pr&&(fr=this._addTile(ea)),fr){const Ve=fr.hasData();if((Ve||!(!((Te=this.map)===null||Te===void 0)&&Te.cancelPendingTileRequestsWhileZooming)||pr)&&(Se[ea.key]=ea),pr=fr.wasRequested(),Ve)break}}}return Se}_updateLoadedParentTileCache(){this._loadedParentTiles={};for(const L in this._tiles){const ne=[];let Te,Se=this._tiles[L].tileID;for(;Se.overscaledZ>0;){if(Se.key in this._loadedParentTiles){Te=this._loadedParentTiles[Se.key];break}ne.push(Se.key);const Re=Se.scaledTo(Se.overscaledZ-1);if(Te=this._getLoadedTile(Re),Te)break;Se=Re}for(const Re of ne)this._loadedParentTiles[Re]=Te}}_updateLoadedSiblingTileCache(){this._loadedSiblingTiles={};for(const L in this._tiles){const ne=this._tiles[L].tileID,Te=this._getLoadedTile(ne);this._loadedSiblingTiles[ne.key]=Te}}_addTile(L){let ne=this._tiles[L.key];if(ne)return ne;ne=this._cache.getAndRemove(L),ne&&(this._setTileReloadTimer(L.key,ne),ne.tileID=L,this._state.initializeTileState(ne,this.map?this.map.painter:null),this._cacheTimers[L.key]&&(clearTimeout(this._cacheTimers[L.key]),delete this._cacheTimers[L.key],this._setTileReloadTimer(L.key,ne)));const Te=ne;return ne||(ne=new nt(L,this._source.tileSize*L.overscaleFactor()),this._loadTile(ne,L.key,ne.state)),ne.uses++,this._tiles[L.key]=ne,Te||this._source.fire(new t.k("dataloading",{tile:ne,coord:ne.tileID,dataType:"source"})),ne}_setTileReloadTimer(L,ne){L in this._timers&&(clearTimeout(this._timers[L]),delete this._timers[L]);const Te=ne.getExpiryTimeout();Te&&(this._timers[L]=setTimeout(()=>{this._reloadTile(L,"expired"),delete this._timers[L]},Te))}_removeTile(L){const ne=this._tiles[L];ne&&(ne.uses--,delete this._tiles[L],this._timers[L]&&(clearTimeout(this._timers[L]),delete this._timers[L]),ne.uses>0||(ne.hasData()&&ne.state!=="reloading"?this._cache.add(ne.tileID,ne,ne.getExpiryTimeout()):(ne.aborted=!0,this._abortTile(ne),this._unloadTile(ne))))}_dataHandler(L){const ne=L.sourceDataType;L.dataType==="source"&&ne==="metadata"&&(this._sourceLoaded=!0),this._sourceLoaded&&!this._paused&&L.dataType==="source"&&ne==="content"&&(this.reload(),this.transform&&this.update(this.transform,this.terrain),this._didEmitContent=!0)}clearTiles(){this._shouldReloadOnResume=!1,this._paused=!1;for(const L in this._tiles)this._removeTile(L);this._cache.reset()}tilesIn(L,ne,Te){const Se=[],Re=this.transform;if(!Re)return Se;const ft=Te?Re.getCameraQueryGeometry(L):L,xt=L.map(Ve=>Re.pointCoordinate(Ve,this.terrain)),Dt=ft.map(Ve=>Re.pointCoordinate(Ve,this.terrain)),er=this.getIds();let fr=1/0,pr=1/0,Br=-1/0,ea=-1/0;for(const Ve of Dt)fr=Math.min(fr,Ve.x),pr=Math.min(pr,Ve.y),Br=Math.max(Br,Ve.x),ea=Math.max(ea,Ve.y);for(let Ve=0;Ve=0&&_t[1].y+St>=0){const Lt=xt.map(cr=>it.getTilePoint(cr)),nr=Dt.map(cr=>it.getTilePoint(cr));Se.push({tile:Ye,tileID:it,queryGeometry:Lt,cameraQueryGeometry:nr,scale:vt})}}return Se}getVisibleCoordinates(L){const ne=this.getRenderableIds(L).map(Te=>this._tiles[Te].tileID);for(const Te of ne)Te.posMatrix=this.transform.calculatePosMatrix(Te.toUnwrapped());return ne}hasTransition(){if(this._source.hasTransition())return!0;if(Yt(this._source.type)){const L=o.now();for(const ne in this._tiles)if(this._tiles[ne].fadeEndTime>=L)return!0}return!1}setFeatureState(L,ne,Te){this._state.updateState(L=L||"_geojsonTileLayer",ne,Te)}removeFeatureState(L,ne,Te){this._state.removeFeatureState(L=L||"_geojsonTileLayer",ne,Te)}getFeatureState(L,ne){return this._state.getState(L=L||"_geojsonTileLayer",ne)}setDependencies(L,ne,Te){const Se=this._tiles[L];Se&&Se.setDependencies(ne,Te)}reloadTilesForDependencies(L,ne){for(const Te in this._tiles)this._tiles[Te].hasDependency(L,ne)&&this._reloadTile(Te,"reloading");this._cache.filter(Te=>!Te.hasDependency(L,ne))}}function Ut(ze,L){const ne=Math.abs(2*ze.wrap)-+(ze.wrap<0),Te=Math.abs(2*L.wrap)-+(L.wrap<0);return ze.overscaledZ-L.overscaledZ||Te-ne||L.canonical.y-ze.canonical.y||L.canonical.x-ze.canonical.x}function Yt(ze){return ze==="raster"||ze==="image"||ze==="video"}kt.maxOverzooming=10,kt.maxUnderzooming=3;class vr{constructor(L,ne){this.reset(L,ne)}reset(L,ne){this.points=L||[],this._distances=[0];for(let Te=1;Te0?(Se-ft)/xt:0;return this.points[Re].mult(1-Dt).add(this.points[ne].mult(Dt))}}function hr(ze,L){let ne=!0;return ze==="always"||ze!=="never"&&L!=="never"||(ne=!1),ne}class Rr{constructor(L,ne,Te){const Se=this.boxCells=[],Re=this.circleCells=[];this.xCellCount=Math.ceil(L/Te),this.yCellCount=Math.ceil(ne/Te);for(let ft=0;ftthis.width||Se<0||ne>this.height)return[];const Dt=[];if(L<=0&&ne<=0&&this.width<=Te&&this.height<=Se){if(Re)return[{key:null,x1:L,y1:ne,x2:Te,y2:Se}];for(let er=0;er0}hitTestCircle(L,ne,Te,Se,Re){const ft=L-Te,xt=L+Te,Dt=ne-Te,er=ne+Te;if(xt<0||ft>this.width||er<0||Dt>this.height)return!1;const fr=[];return this._forEachCell(ft,Dt,xt,er,this._queryCellCircle,fr,{hitTest:!0,overlapMode:Se,circle:{x:L,y:ne,radius:Te},seenUids:{box:{},circle:{}}},Re),fr.length>0}_queryCell(L,ne,Te,Se,Re,ft,xt,Dt){const{seenUids:er,hitTest:fr,overlapMode:pr}=xt,Br=this.boxCells[Re];if(Br!==null){const Ve=this.bboxes;for(const Ye of Br)if(!er.box[Ye]){er.box[Ye]=!0;const it=4*Ye,vt=this.boxKeys[Ye];if(L<=Ve[it+2]&&ne<=Ve[it+3]&&Te>=Ve[it+0]&&Se>=Ve[it+1]&&(!Dt||Dt(vt))&&(!fr||!hr(pr,vt.overlapMode))&&(ft.push({key:vt,x1:Ve[it],y1:Ve[it+1],x2:Ve[it+2],y2:Ve[it+3]}),fr))return!0}}const ea=this.circleCells[Re];if(ea!==null){const Ve=this.circles;for(const Ye of ea)if(!er.circle[Ye]){er.circle[Ye]=!0;const it=3*Ye,vt=this.circleKeys[Ye];if(this._circleAndRectCollide(Ve[it],Ve[it+1],Ve[it+2],L,ne,Te,Se)&&(!Dt||Dt(vt))&&(!fr||!hr(pr,vt.overlapMode))){const St=Ve[it],_t=Ve[it+1],Lt=Ve[it+2];if(ft.push({key:vt,x1:St-Lt,y1:_t-Lt,x2:St+Lt,y2:_t+Lt}),fr)return!0}}}return!1}_queryCellCircle(L,ne,Te,Se,Re,ft,xt,Dt){const{circle:er,seenUids:fr,overlapMode:pr}=xt,Br=this.boxCells[Re];if(Br!==null){const Ve=this.bboxes;for(const Ye of Br)if(!fr.box[Ye]){fr.box[Ye]=!0;const it=4*Ye,vt=this.boxKeys[Ye];if(this._circleAndRectCollide(er.x,er.y,er.radius,Ve[it+0],Ve[it+1],Ve[it+2],Ve[it+3])&&(!Dt||Dt(vt))&&!hr(pr,vt.overlapMode))return ft.push(!0),!0}}const ea=this.circleCells[Re];if(ea!==null){const Ve=this.circles;for(const Ye of ea)if(!fr.circle[Ye]){fr.circle[Ye]=!0;const it=3*Ye,vt=this.circleKeys[Ye];if(this._circlesCollide(Ve[it],Ve[it+1],Ve[it+2],er.x,er.y,er.radius)&&(!Dt||Dt(vt))&&!hr(pr,vt.overlapMode))return ft.push(!0),!0}}}_forEachCell(L,ne,Te,Se,Re,ft,xt,Dt){const er=this._convertToXCellCoord(L),fr=this._convertToYCellCoord(ne),pr=this._convertToXCellCoord(Te),Br=this._convertToYCellCoord(Se);for(let ea=er;ea<=pr;ea++)for(let Ve=fr;Ve<=Br;Ve++)if(Re.call(this,L,ne,Te,Se,this.xCellCount*Ve+ea,ft,xt,Dt))return}_convertToXCellCoord(L){return Math.max(0,Math.min(this.xCellCount-1,Math.floor(L*this.xScale)))}_convertToYCellCoord(L){return Math.max(0,Math.min(this.yCellCount-1,Math.floor(L*this.yScale)))}_circlesCollide(L,ne,Te,Se,Re,ft){const xt=Se-L,Dt=Re-ne,er=Te+ft;return er*er>xt*xt+Dt*Dt}_circleAndRectCollide(L,ne,Te,Se,Re,ft,xt){const Dt=(ft-Se)/2,er=Math.abs(L-(Se+Dt));if(er>Dt+Te)return!1;const fr=(xt-Re)/2,pr=Math.abs(ne-(Re+fr));if(pr>fr+Te)return!1;if(er<=Dt||pr<=fr)return!0;const Br=er-Dt,ea=pr-fr;return Br*Br+ea*ea<=Te*Te}}function dr(ze,L,ne,Te,Se){const Re=t.H();return L?(t.K(Re,Re,[1/Se,1/Se,1]),ne||t.ad(Re,Re,Te.angle)):t.L(Re,Te.labelPlaneMatrix,ze),Re}function wr(ze,L,ne,Te,Se){if(L){const Re=t.ae(ze);return t.K(Re,Re,[Se,Se,1]),ne||t.ad(Re,Re,-Te.angle),Re}return Te.glCoordMatrix}function yt(ze,L,ne,Te){let Se;Te?(Se=[ze,L,Te(ze,L),1],t.af(Se,Se,ne)):(Se=[ze,L,0,1],Jt(Se,Se,ne));const Re=Se[3];return{point:new t.P(Se[0]/Re,Se[1]/Re),signedDistanceFromCamera:Re,isOccluded:!1}}function Fe(ze,L){return .5+ze/L*.5}function We(ze,L){return ze.x>=-L[0]&&ze.x<=L[0]&&ze.y>=-L[1]&&ze.y<=L[1]}function Oe(ze,L,ne,Te,Se,Re,ft,xt,Dt,er,fr,pr,Br,ea,Ve){const Ye=Te?ze.textSizeData:ze.iconSizeData,it=t.ag(Ye,ne.transform.zoom),vt=[256/ne.width*2+1,256/ne.height*2+1],St=Te?ze.text.dynamicLayoutVertexArray:ze.icon.dynamicLayoutVertexArray;St.clear();const _t=ze.lineVertexArray,Lt=Te?ze.text.placedSymbolArray:ze.icon.placedSymbolArray,nr=ne.transform.width/ne.transform.height;let cr=!1;for(let gr=0;grMath.abs(ne.x-L.x)*Te?{useVertical:!0}:(ze===t.ah.vertical?L.yne.x)?{needsFlipping:!0}:null}function be(ze,L,ne,Te,Se,Re,ft,xt,Dt,er,fr){const pr=ne/24,Br=L.lineOffsetX*pr,ea=L.lineOffsetY*pr;let Ve;if(L.numGlyphs>1){const Ye=L.glyphStartIndex+L.numGlyphs,it=L.lineStartIndex,vt=L.lineStartIndex+L.lineLength,St=de(pr,xt,Br,ea,Te,L,fr,ze);if(!St)return{notEnoughRoom:!0};const _t=yt(St.first.point.x,St.first.point.y,ft,ze.getElevation).point,Lt=yt(St.last.point.x,St.last.point.y,ft,ze.getElevation).point;if(Se&&!Te){const nr=me(L.writingMode,_t,Lt,er);if(nr)return nr}Ve=[St.first];for(let nr=L.glyphStartIndex+1;nr0?_t.point:function(cr,gr,Cr,Wr,ua,va){return Ie(cr,gr,Cr,1,ua,va)}(ze.tileAnchorPoint,St,it,0,Re,ze),nr=me(L.writingMode,it,Lt,er);if(nr)return nr}const Ye=Zt(pr*xt.getoffsetX(L.glyphStartIndex),Br,ea,Te,L.segment,L.lineStartIndex,L.lineStartIndex+L.lineLength,ze,fr);if(!Ye||ze.projectionCache.anyProjectionOccluded)return{notEnoughRoom:!0};Ve=[Ye]}for(const Ye of Ve)t.aj(Dt,Ye.point,Ye.angle);return{}}function Ie(ze,L,ne,Te,Se,Re){const ft=ze.add(ze.sub(L)._unit()),xt=Se!==void 0?yt(ft.x,ft.y,Se,Re.getElevation).point:ht(ft.x,ft.y,Re).point,Dt=ne.sub(xt);return ne.add(Dt._mult(Te/Dt.mag()))}function Xe(ze,L,ne){const Te=L.projectionCache;if(Te.projections[ze])return Te.projections[ze];const Se=new t.P(L.lineVertexArray.getx(ze),L.lineVertexArray.gety(ze)),Re=ht(Se.x,Se.y,L);if(Re.signedDistanceFromCamera>0)return Te.projections[ze]=Re.point,Te.anyProjectionOccluded=Te.anyProjectionOccluded||Re.isOccluded,Re.point;const ft=ze-ne.direction;return function(xt,Dt,er,fr,pr){return Ie(xt,Dt,er,fr,void 0,pr)}(ne.distanceFromAnchor===0?L.tileAnchorPoint:new t.P(L.lineVertexArray.getx(ft),L.lineVertexArray.gety(ft)),Se,ne.previousVertex,ne.absOffsetX-ne.distanceFromAnchor+1,L)}function ht(ze,L,ne){const Te=ze+ne.translation[0],Se=L+ne.translation[1];let Re;return!ne.pitchWithMap&&ne.projection.useSpecialProjectionForSymbols?(Re=ne.projection.projectTileCoordinates(Te,Se,ne.unwrappedTileID,ne.getElevation),Re.point.x=(.5*Re.point.x+.5)*ne.width,Re.point.y=(.5*-Re.point.y+.5)*ne.height):(Re=yt(Te,Se,ne.labelPlaneMatrix,ne.getElevation),Re.isOccluded=!1),Re}function bt(ze,L,ne){return ze._unit()._perp()._mult(L*ne)}function Ct(ze,L,ne,Te,Se,Re,ft,xt,Dt){if(xt.projectionCache.offsets[ze])return xt.projectionCache.offsets[ze];const er=ne.add(L);if(ze+Dt.direction=Se)return xt.projectionCache.offsets[ze]=er,er;const fr=Xe(ze+Dt.direction,xt,Dt),pr=bt(fr.sub(ne),ft,Dt.direction),Br=ne.add(pr),ea=fr.add(pr);return xt.projectionCache.offsets[ze]=t.ak(Re,er,Br,ea)||er,xt.projectionCache.offsets[ze]}function Zt(ze,L,ne,Te,Se,Re,ft,xt,Dt){const er=Te?ze-L:ze+L;let fr=er>0?1:-1,pr=0;Te&&(fr*=-1,pr=Math.PI),fr<0&&(pr+=Math.PI);let Br,ea=fr>0?Re+Se:Re+Se+1;xt.projectionCache.cachedAnchorPoint?Br=xt.projectionCache.cachedAnchorPoint:(Br=ht(xt.tileAnchorPoint.x,xt.tileAnchorPoint.y,xt).point,xt.projectionCache.cachedAnchorPoint=Br);let Ve,Ye,it=Br,vt=Br,St=0,_t=0;const Lt=Math.abs(er),nr=[];let cr;for(;St+_t<=Lt;){if(ea+=fr,ea=ft)return null;St+=_t,vt=it,Ye=Ve;const Wr={absOffsetX:Lt,direction:fr,distanceFromAnchor:St,previousVertex:vt};if(it=Xe(ea,xt,Wr),ne===0)nr.push(vt),cr=it.sub(vt);else{let ua;const va=it.sub(vt);ua=va.mag()===0?bt(Xe(ea+fr,xt,Wr).sub(it),ne,fr):bt(va,ne,fr),Ye||(Ye=vt.add(ua)),Ve=Ct(ea,ua,it,Re,ft,Ye,ne,xt,Wr),nr.push(Ye),cr=Ve.sub(Ye)}_t=cr.mag()}const gr=cr._mult((Lt-St)/_t)._add(Ye||vt),Cr=pr+Math.atan2(it.y-vt.y,it.x-vt.x);return nr.push(gr),{point:gr,angle:Dt?Cr:0,path:nr}}const Wt=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);function rr(ze,L){for(let ne=0;ne=1;_i--)In.push(Pn.path[_i]);for(let _i=1;_iKi.signedDistanceFromCamera<=0)?[]:_i.map(Ki=>Ki.point)}let Si=[];if(In.length>0){const _i=In[0].clone(),Ki=In[0].clone();for(let Go=1;Go=va.x&&Ki.x<=Ma.x&&_i.y>=va.y&&Ki.y<=Ma.y?[In]:Ki.xMa.x||Ki.yMa.y?[]:t.al([In],va.x,va.y,Ma.x,Ma.y)}for(const _i of Si){en.reset(_i,.25*ua);let Ki=0;Ki=en.length<=.5*ua?1:Math.ceil(en.paddedLength/oi)+1;for(let Go=0;Goyt(Se.x,Se.y,Te,ne.getElevation))}queryRenderedSymbols(L){if(L.length===0||this.grid.keysLength()===0&&this.ignoredGrid.keysLength()===0)return{};const ne=[];let Te=1/0,Se=1/0,Re=-1/0,ft=-1/0;for(const fr of L){const pr=new t.P(fr.x+mr,fr.y+mr);Te=Math.min(Te,pr.x),Se=Math.min(Se,pr.y),Re=Math.max(Re,pr.x),ft=Math.max(ft,pr.y),ne.push(pr)}const xt=this.grid.query(Te,Se,Re,ft).concat(this.ignoredGrid.query(Te,Se,Re,ft)),Dt={},er={};for(const fr of xt){const pr=fr.key;if(Dt[pr.bucketInstanceId]===void 0&&(Dt[pr.bucketInstanceId]={}),Dt[pr.bucketInstanceId][pr.featureIndex])continue;const Br=[new t.P(fr.x1,fr.y1),new t.P(fr.x2,fr.y1),new t.P(fr.x2,fr.y2),new t.P(fr.x1,fr.y2)];t.am(ne,Br)&&(Dt[pr.bucketInstanceId][pr.featureIndex]=!0,er[pr.bucketInstanceId]===void 0&&(er[pr.bucketInstanceId]=[]),er[pr.bucketInstanceId].push(pr.featureIndex))}return er}insertCollisionBox(L,ne,Te,Se,Re,ft){(Te?this.ignoredGrid:this.grid).insert({bucketInstanceId:Se,featureIndex:Re,collisionGroupID:ft,overlapMode:ne},L[0],L[1],L[2],L[3])}insertCollisionCircles(L,ne,Te,Se,Re,ft){const xt=Te?this.ignoredGrid:this.grid,Dt={bucketInstanceId:Se,featureIndex:Re,collisionGroupID:ft,overlapMode:ne};for(let er=0;er=this.screenRightBoundary||Sethis.screenBottomBoundary}isInsideGrid(L,ne,Te,Se){return Te>=0&&L=0&&nethis.projectAndGetPerspectiveRatio(Te,ua.x,ua.y,Se,er));Cr=Wr.some(ua=>!ua.isOccluded),gr=Wr.map(ua=>ua.point)}else Cr=!0;return{box:t.ao(gr),allPointsOccluded:!Cr}}}function Ia(ze,L,ne){return L*(t.X/(ze.tileSize*Math.pow(2,ne-ze.tileID.overscaledZ)))}class La{constructor(L,ne,Te,Se){this.opacity=L?Math.max(0,Math.min(1,L.opacity+(L.placed?ne:-ne))):Se&&Te?1:0,this.placed=Te}isHidden(){return this.opacity===0&&!this.placed}}class Aa{constructor(L,ne,Te,Se,Re){this.text=new La(L?L.text:null,ne,Te,Re),this.icon=new La(L?L.icon:null,ne,Se,Re)}isHidden(){return this.text.isHidden()&&this.icon.isHidden()}}class Ga{constructor(L,ne,Te){this.text=L,this.icon=ne,this.skipFade=Te}}class ba{constructor(){this.invProjMatrix=t.H(),this.viewportMatrix=t.H(),this.circles=[]}}class Xa{constructor(L,ne,Te,Se,Re){this.bucketInstanceId=L,this.featureIndex=ne,this.sourceLayerIndex=Te,this.bucketIndex=Se,this.tileID=Re}}class yn{constructor(L){this.crossSourceCollisions=L,this.maxGroupID=0,this.collisionGroups={}}get(L){if(this.crossSourceCollisions)return{ID:0,predicate:null};if(!this.collisionGroups[L]){const ne=++this.maxGroupID;this.collisionGroups[L]={ID:ne,predicate:Te=>Te.collisionGroupID===ne}}return this.collisionGroups[L]}}function Kt(ze,L,ne,Te,Se){const{horizontalAlign:Re,verticalAlign:ft}=t.au(ze);return new t.P(-(Re-.5)*L+Te[0]*Se,-(ft-.5)*ne+Te[1]*Se)}class zt{constructor(L,ne,Te,Se,Re,ft){this.transform=L.clone(),this.terrain=Te,this.collisionIndex=new ia(this.transform,ne),this.placements={},this.opacities={},this.variableOffsets={},this.stale=!1,this.commitTime=0,this.fadeDuration=Se,this.retainedQueryData={},this.collisionGroups=new yn(Re),this.collisionCircleArrays={},this.collisionBoxArrays=new Map,this.prevPlacement=ft,ft&&(ft.prevPlacement=void 0),this.placedOrientations={}}_getTerrainElevationFunc(L){const ne=this.terrain;return ne?(Te,Se)=>ne.getElevation(L,Te,Se):null}getBucketParts(L,ne,Te,Se){const Re=Te.getBucket(ne),ft=Te.latestFeatureIndex;if(!Re||!ft||ne.id!==Re.layerIds[0])return;const xt=Te.collisionBoxArray,Dt=Re.layers[0].layout,er=Re.layers[0].paint,fr=Math.pow(2,this.transform.zoom-Te.tileID.overscaledZ),pr=Te.tileSize/t.X,Br=Te.tileID.toUnwrapped(),ea=this.transform.calculatePosMatrix(Br),Ve=Dt.get("text-pitch-alignment")==="map",Ye=Dt.get("text-rotation-alignment")==="map",it=Ia(Te,1,this.transform.zoom),vt=this.collisionIndex.mapProjection.translatePosition(this.transform,Te,er.get("text-translate"),er.get("text-translate-anchor")),St=this.collisionIndex.mapProjection.translatePosition(this.transform,Te,er.get("icon-translate"),er.get("icon-translate-anchor")),_t=dr(ea,Ve,Ye,this.transform,it);let Lt=null;if(Ve){const cr=wr(ea,Ve,Ye,this.transform,it);Lt=t.L([],this.transform.labelPlaneMatrix,cr)}this.retainedQueryData[Re.bucketInstanceId]=new Xa(Re.bucketInstanceId,ft,Re.sourceLayerIndex,Re.index,Te.tileID);const nr={bucket:Re,layout:Dt,translationText:vt,translationIcon:St,posMatrix:ea,unwrappedTileID:Br,textLabelPlaneMatrix:_t,labelToScreenMatrix:Lt,scale:fr,textPixelRatio:pr,holdingForFade:Te.holdingForFade(),collisionBoxArray:xt,partiallyEvaluatedTextSize:t.ag(Re.textSizeData,this.transform.zoom),collisionGroup:this.collisionGroups.get(Re.sourceID)};if(Se)for(const cr of Re.sortKeyRanges){const{sortKey:gr,symbolInstanceStart:Cr,symbolInstanceEnd:Wr}=cr;L.push({sortKey:gr,symbolInstanceStart:Cr,symbolInstanceEnd:Wr,parameters:nr})}else L.push({symbolInstanceStart:0,symbolInstanceEnd:Re.symbolInstances.length,parameters:nr})}attemptAnchorPlacement(L,ne,Te,Se,Re,ft,xt,Dt,er,fr,pr,Br,ea,Ve,Ye,it,vt,St,_t){const Lt=t.aq[L.textAnchor],nr=[L.textOffset0,L.textOffset1],cr=Kt(Lt,Te,Se,nr,Re),gr=this.collisionIndex.placeCollisionBox(ne,Br,Dt,er,fr,xt,ft,it,pr.predicate,_t,cr);if((!St||this.collisionIndex.placeCollisionBox(St,Br,Dt,er,fr,xt,ft,vt,pr.predicate,_t,cr).placeable)&&gr.placeable){let Cr;if(this.prevPlacement&&this.prevPlacement.variableOffsets[ea.crossTileID]&&this.prevPlacement.placements[ea.crossTileID]&&this.prevPlacement.placements[ea.crossTileID].text&&(Cr=this.prevPlacement.variableOffsets[ea.crossTileID].anchor),ea.crossTileID===0)throw new Error("symbolInstance.crossTileID can't be 0");return this.variableOffsets[ea.crossTileID]={textOffset:nr,width:Te,height:Se,anchor:Lt,textBoxScale:Re,prevAnchor:Cr},this.markUsedJustification(Ve,Lt,ea,Ye),Ve.allowVerticalPlacement&&(this.markUsedOrientation(Ve,Ye,ea),this.placedOrientations[ea.crossTileID]=Ye),{shift:cr,placedGlyphBoxes:gr}}}placeLayerBucketPart(L,ne,Te){const{bucket:Se,layout:Re,translationText:ft,translationIcon:xt,posMatrix:Dt,unwrappedTileID:er,textLabelPlaneMatrix:fr,labelToScreenMatrix:pr,textPixelRatio:Br,holdingForFade:ea,collisionBoxArray:Ve,partiallyEvaluatedTextSize:Ye,collisionGroup:it}=L.parameters,vt=Re.get("text-optional"),St=Re.get("icon-optional"),_t=t.ar(Re,"text-overlap","text-allow-overlap"),Lt=_t==="always",nr=t.ar(Re,"icon-overlap","icon-allow-overlap"),cr=nr==="always",gr=Re.get("text-rotation-alignment")==="map",Cr=Re.get("text-pitch-alignment")==="map",Wr=Re.get("icon-text-fit")!=="none",ua=Re.get("symbol-z-order")==="viewport-y",va=Lt&&(cr||!Se.hasIconData()||St),Ma=cr&&(Lt||!Se.hasTextData()||vt);!Se.collisionArrays&&Ve&&Se.deserializeCollisionBoxes(Ve);const en=this._getTerrainElevationFunc(this.retainedQueryData[Se.bucketInstanceId].tileID),Pn=(Tn,In,oi)=>{var Si,_i;if(ne[Tn.crossTileID])return;if(ea)return void(this.placements[Tn.crossTileID]=new Ga(!1,!1,!1));let Ki=!1,Go=!1,Ho=!0,Ao=null,Ko={box:null,placeable:!1,offscreen:null},Js={placeable:!1},Hs=null,ko=null,Co=null,fl=0,Dl=0,ou=0;In.textFeatureIndex?fl=In.textFeatureIndex:Tn.useRuntimeCollisionCircles&&(fl=Tn.featureIndex),In.verticalTextFeatureIndex&&(Dl=In.verticalTextFeatureIndex);const pe=In.textBox;if(pe){const gt=sr=>{let Pr=t.ah.horizontal;if(Se.allowVerticalPlacement&&!sr&&this.prevPlacement){const kr=this.prevPlacement.placedOrientations[Tn.crossTileID];kr&&(this.placedOrientations[Tn.crossTileID]=kr,Pr=kr,this.markUsedOrientation(Se,Pr,Tn))}return Pr},Tt=(sr,Pr)=>{if(Se.allowVerticalPlacement&&Tn.numVerticalGlyphVertices>0&&In.verticalTextBox){for(const kr of Se.writingModes)if(kr===t.ah.vertical?(Ko=Pr(),Js=Ko):Ko=sr(),Ko&&Ko.placeable)break}else Ko=sr()},Vt=Tn.textAnchorOffsetStartIndex,jt=Tn.textAnchorOffsetEndIndex;if(jt===Vt){const sr=(Pr,kr)=>{const Zr=this.collisionIndex.placeCollisionBox(Pr,_t,Br,Dt,er,Cr,gr,ft,it.predicate,en);return Zr&&Zr.placeable&&(this.markUsedOrientation(Se,kr,Tn),this.placedOrientations[Tn.crossTileID]=kr),Zr};Tt(()=>sr(pe,t.ah.horizontal),()=>{const Pr=In.verticalTextBox;return Se.allowVerticalPlacement&&Tn.numVerticalGlyphVertices>0&&Pr?sr(Pr,t.ah.vertical):{box:null,offscreen:null}}),gt(Ko&&Ko.placeable)}else{let sr=t.aq[(_i=(Si=this.prevPlacement)===null||Si===void 0?void 0:Si.variableOffsets[Tn.crossTileID])===null||_i===void 0?void 0:_i.anchor];const Pr=(Zr,la,ca)=>{const nn=Zr.x2-Zr.x1,pa=Zr.y2-Zr.y1,Pa=Tn.textBoxScale,Na=Wr&&nr==="never"?la:null;let rn=null,sn=_t==="never"?1:2,Ba="never";sr&&sn++;for(let Rn=0;RnPr(pe,In.iconBox,t.ah.horizontal),()=>{const Zr=In.verticalTextBox;return Se.allowVerticalPlacement&&(!Ko||!Ko.placeable)&&Tn.numVerticalGlyphVertices>0&&Zr?Pr(Zr,In.verticalIconBox,t.ah.vertical):{box:null,occluded:!0,offscreen:null}}),Ko&&(Ki=Ko.placeable,Ho=Ko.offscreen);const kr=gt(Ko&&Ko.placeable);if(!Ki&&this.prevPlacement){const Zr=this.prevPlacement.variableOffsets[Tn.crossTileID];Zr&&(this.variableOffsets[Tn.crossTileID]=Zr,this.markUsedJustification(Se,Zr.anchor,Tn,kr))}}}if(Hs=Ko,Ki=Hs&&Hs.placeable,Ho=Hs&&Hs.offscreen,Tn.useRuntimeCollisionCircles){const gt=Se.text.placedSymbolArray.get(Tn.centerJustifiedTextSymbolIndex),Tt=t.ai(Se.textSizeData,Ye,gt),Vt=Re.get("text-padding");ko=this.collisionIndex.placeCollisionCircles(_t,gt,Se.lineVertexArray,Se.glyphOffsetArray,Tt,Dt,er,fr,pr,Te,Cr,it.predicate,Tn.collisionCircleDiameter,Vt,ft,en),ko.circles.length&&ko.collisionDetected&&!Te&&t.w("Collisions detected, but collision boxes are not shown"),Ki=Lt||ko.circles.length>0&&!ko.collisionDetected,Ho=Ho&&ko.offscreen}if(In.iconFeatureIndex&&(ou=In.iconFeatureIndex),In.iconBox){const gt=Tt=>this.collisionIndex.placeCollisionBox(Tt,nr,Br,Dt,er,Cr,gr,xt,it.predicate,en,Wr&&Ao?Ao:void 0);Js&&Js.placeable&&In.verticalIconBox?(Co=gt(In.verticalIconBox),Go=Co.placeable):(Co=gt(In.iconBox),Go=Co.placeable),Ho=Ho&&Co.offscreen}const Le=vt||Tn.numHorizontalGlyphVertices===0&&Tn.numVerticalGlyphVertices===0,$e=St||Tn.numIconVertices===0;Le||$e?$e?Le||(Go=Go&&Ki):Ki=Go&&Ki:Go=Ki=Go&&Ki;const dt=Go&&Co.placeable;if(Ki&&Hs.placeable&&this.collisionIndex.insertCollisionBox(Hs.box,_t,Re.get("text-ignore-placement"),Se.bucketInstanceId,Js&&Js.placeable&&Dl?Dl:fl,it.ID),dt&&this.collisionIndex.insertCollisionBox(Co.box,nr,Re.get("icon-ignore-placement"),Se.bucketInstanceId,ou,it.ID),ko&&Ki&&this.collisionIndex.insertCollisionCircles(ko.circles,_t,Re.get("text-ignore-placement"),Se.bucketInstanceId,fl,it.ID),Te&&this.storeCollisionData(Se.bucketInstanceId,oi,In,Hs,Co,ko),Tn.crossTileID===0)throw new Error("symbolInstance.crossTileID can't be 0");if(Se.bucketInstanceId===0)throw new Error("bucket.bucketInstanceId can't be 0");this.placements[Tn.crossTileID]=new Ga(Ki||va,Go||Ma,Ho||Se.justReloaded),ne[Tn.crossTileID]=!0};if(ua){if(L.symbolInstanceStart!==0)throw new Error("bucket.bucketInstanceId should be 0");const Tn=Se.getSortedSymbolIndexes(this.transform.angle);for(let In=Tn.length-1;In>=0;--In){const oi=Tn[In];Pn(Se.symbolInstances.get(oi),Se.collisionArrays[oi],oi)}}else for(let Tn=L.symbolInstanceStart;Tn=0&&(L.text.placedSymbolArray.get(xt).crossTileID=Re>=0&&xt!==Re?0:Te.crossTileID)}markUsedOrientation(L,ne,Te){const Se=ne===t.ah.horizontal||ne===t.ah.horizontalOnly?ne:0,Re=ne===t.ah.vertical?ne:0,ft=[Te.leftJustifiedTextSymbolIndex,Te.centerJustifiedTextSymbolIndex,Te.rightJustifiedTextSymbolIndex];for(const xt of ft)L.text.placedSymbolArray.get(xt).placedOrientation=Se;Te.verticalPlacedTextSymbolIndex&&(L.text.placedSymbolArray.get(Te.verticalPlacedTextSymbolIndex).placedOrientation=Re)}commit(L){this.commitTime=L,this.zoomAtLastRecencyCheck=this.transform.zoom;const ne=this.prevPlacement;let Te=!1;this.prevZoomAdjustment=ne?ne.zoomAdjustment(this.transform.zoom):0;const Se=ne?ne.symbolFadeChange(L):1,Re=ne?ne.opacities:{},ft=ne?ne.variableOffsets:{},xt=ne?ne.placedOrientations:{};for(const Dt in this.placements){const er=this.placements[Dt],fr=Re[Dt];fr?(this.opacities[Dt]=new Aa(fr,Se,er.text,er.icon),Te=Te||er.text!==fr.text.placed||er.icon!==fr.icon.placed):(this.opacities[Dt]=new Aa(null,Se,er.text,er.icon,er.skipFade),Te=Te||er.text||er.icon)}for(const Dt in Re){const er=Re[Dt];if(!this.opacities[Dt]){const fr=new Aa(er,Se,!1,!1);fr.isHidden()||(this.opacities[Dt]=fr,Te=Te||er.text.placed||er.icon.placed)}}for(const Dt in ft)this.variableOffsets[Dt]||!this.opacities[Dt]||this.opacities[Dt].isHidden()||(this.variableOffsets[Dt]=ft[Dt]);for(const Dt in xt)this.placedOrientations[Dt]||!this.opacities[Dt]||this.opacities[Dt].isHidden()||(this.placedOrientations[Dt]=xt[Dt]);if(ne&&ne.lastPlacementChangeTime===void 0)throw new Error("Last placement time for previous placement is not defined");Te?this.lastPlacementChangeTime=L:typeof this.lastPlacementChangeTime!="number"&&(this.lastPlacementChangeTime=ne?ne.lastPlacementChangeTime:L)}updateLayerOpacities(L,ne){const Te={};for(const Se of ne){const Re=Se.getBucket(L);Re&&Se.latestFeatureIndex&&L.id===Re.layerIds[0]&&this.updateBucketOpacities(Re,Se.tileID,Te,Se.collisionBoxArray)}}updateBucketOpacities(L,ne,Te,Se){L.hasTextData()&&(L.text.opacityVertexArray.clear(),L.text.hasVisibleVertices=!1),L.hasIconData()&&(L.icon.opacityVertexArray.clear(),L.icon.hasVisibleVertices=!1),L.hasIconCollisionBoxData()&&L.iconCollisionBox.collisionVertexArray.clear(),L.hasTextCollisionBoxData()&&L.textCollisionBox.collisionVertexArray.clear();const Re=L.layers[0],ft=Re.layout,xt=new Aa(null,0,!1,!1,!0),Dt=ft.get("text-allow-overlap"),er=ft.get("icon-allow-overlap"),fr=Re._unevaluatedLayout.hasValue("text-variable-anchor")||Re._unevaluatedLayout.hasValue("text-variable-anchor-offset"),pr=ft.get("text-rotation-alignment")==="map",Br=ft.get("text-pitch-alignment")==="map",ea=ft.get("icon-text-fit")!=="none",Ve=new Aa(null,0,Dt&&(er||!L.hasIconData()||ft.get("icon-optional")),er&&(Dt||!L.hasTextData()||ft.get("text-optional")),!0);!L.collisionArrays&&Se&&(L.hasIconCollisionBoxData()||L.hasTextCollisionBoxData())&&L.deserializeCollisionBoxes(Se);const Ye=(vt,St,_t)=>{for(let Lt=0;Lt0,Cr=this.placedOrientations[St.crossTileID],Wr=Cr===t.ah.vertical,ua=Cr===t.ah.horizontal||Cr===t.ah.horizontalOnly;if(_t>0||Lt>0){const Ma=Ya(cr.text);Ye(L.text,_t,Wr?Ka:Ma),Ye(L.text,Lt,ua?Ka:Ma);const en=cr.text.isHidden();[St.rightJustifiedTextSymbolIndex,St.centerJustifiedTextSymbolIndex,St.leftJustifiedTextSymbolIndex].forEach(In=>{In>=0&&(L.text.placedSymbolArray.get(In).hidden=en||Wr?1:0)}),St.verticalPlacedTextSymbolIndex>=0&&(L.text.placedSymbolArray.get(St.verticalPlacedTextSymbolIndex).hidden=en||ua?1:0);const Pn=this.variableOffsets[St.crossTileID];Pn&&this.markUsedJustification(L,Pn.anchor,St,Cr);const Tn=this.placedOrientations[St.crossTileID];Tn&&(this.markUsedJustification(L,"left",St,Tn),this.markUsedOrientation(L,Tn,St))}if(gr){const Ma=Ya(cr.icon),en=!(ea&&St.verticalPlacedIconSymbolIndex&&Wr);St.placedIconSymbolIndex>=0&&(Ye(L.icon,St.numIconVertices,en?Ma:Ka),L.icon.placedSymbolArray.get(St.placedIconSymbolIndex).hidden=cr.icon.isHidden()),St.verticalPlacedIconSymbolIndex>=0&&(Ye(L.icon,St.numVerticalIconVertices,en?Ka:Ma),L.icon.placedSymbolArray.get(St.verticalPlacedIconSymbolIndex).hidden=cr.icon.isHidden())}const va=it&&it.has(vt)?it.get(vt):{text:null,icon:null};if(L.hasIconCollisionBoxData()||L.hasTextCollisionBoxData()){const Ma=L.collisionArrays[vt];if(Ma){let en=new t.P(0,0);if(Ma.textBox||Ma.verticalTextBox){let Pn=!0;if(fr){const Tn=this.variableOffsets[nr];Tn?(en=Kt(Tn.anchor,Tn.width,Tn.height,Tn.textOffset,Tn.textBoxScale),pr&&en._rotate(Br?this.transform.angle:-this.transform.angle)):Pn=!1}if(Ma.textBox||Ma.verticalTextBox){let Tn;Ma.textBox&&(Tn=Wr),Ma.verticalTextBox&&(Tn=ua),$t(L.textCollisionBox.collisionVertexArray,cr.text.placed,!Pn||Tn,va.text,en.x,en.y)}}if(Ma.iconBox||Ma.verticalIconBox){const Pn=!!(!ua&&Ma.verticalIconBox);let Tn;Ma.iconBox&&(Tn=Pn),Ma.verticalIconBox&&(Tn=!Pn),$t(L.iconCollisionBox.collisionVertexArray,cr.icon.placed,Tn,va.icon,ea?en.x:0,ea?en.y:0)}}}}if(L.sortFeatures(this.transform.angle),this.retainedQueryData[L.bucketInstanceId]&&(this.retainedQueryData[L.bucketInstanceId].featureSortOrder=L.featureSortOrder),L.hasTextData()&&L.text.opacityVertexBuffer&&L.text.opacityVertexBuffer.updateData(L.text.opacityVertexArray),L.hasIconData()&&L.icon.opacityVertexBuffer&&L.icon.opacityVertexBuffer.updateData(L.icon.opacityVertexArray),L.hasIconCollisionBoxData()&&L.iconCollisionBox.collisionVertexBuffer&&L.iconCollisionBox.collisionVertexBuffer.updateData(L.iconCollisionBox.collisionVertexArray),L.hasTextCollisionBoxData()&&L.textCollisionBox.collisionVertexBuffer&&L.textCollisionBox.collisionVertexBuffer.updateData(L.textCollisionBox.collisionVertexArray),L.text.opacityVertexArray.length!==L.text.layoutVertexArray.length/4)throw new Error(`bucket.text.opacityVertexArray.length (= ${L.text.opacityVertexArray.length}) !== bucket.text.layoutVertexArray.length (= ${L.text.layoutVertexArray.length}) / 4`);if(L.icon.opacityVertexArray.length!==L.icon.layoutVertexArray.length/4)throw new Error(`bucket.icon.opacityVertexArray.length (= ${L.icon.opacityVertexArray.length}) !== bucket.icon.layoutVertexArray.length (= ${L.icon.layoutVertexArray.length}) / 4`);if(L.bucketInstanceId in this.collisionCircleArrays){const vt=this.collisionCircleArrays[L.bucketInstanceId];L.placementInvProjMatrix=vt.invProjMatrix,L.placementViewportMatrix=vt.viewportMatrix,L.collisionCircleArray=vt.circles,delete this.collisionCircleArrays[L.bucketInstanceId]}}symbolFadeChange(L){return this.fadeDuration===0?1:(L-this.commitTime)/this.fadeDuration+this.prevZoomAdjustment}zoomAdjustment(L){return Math.max(0,(this.transform.zoom-L)/1.5)}hasTransitions(L){return this.stale||L-this.lastPlacementChangeTimeL}setStale(){this.stale=!0}}function $t(ze,L,ne,Te,Se,Re){Te&&Te.length!==0||(Te=[0,0,0,0]);const ft=Te[0]-mr,xt=Te[1]-mr,Dt=Te[2]-mr,er=Te[3]-mr;ze.emplaceBack(L?1:0,ne?1:0,Se||0,Re||0,ft,xt),ze.emplaceBack(L?1:0,ne?1:0,Se||0,Re||0,Dt,xt),ze.emplaceBack(L?1:0,ne?1:0,Se||0,Re||0,Dt,er),ze.emplaceBack(L?1:0,ne?1:0,Se||0,Re||0,ft,er)}const Ht=Math.pow(2,25),Tr=Math.pow(2,24),qr=Math.pow(2,17),ha=Math.pow(2,16),Gr=Math.pow(2,9),wa=Math.pow(2,8),Da=Math.pow(2,1);function Ya(ze){if(ze.opacity===0&&!ze.placed)return 0;if(ze.opacity===1&&ze.placed)return 4294967295;const L=ze.placed?1:0,ne=Math.floor(127*ze.opacity);return ne*Ht+L*Tr+ne*qr+L*ha+ne*Gr+L*wa+ne*Da+L}const Ka=0;function an(){return{isOccluded:(ze,L,ne)=>!1,getPitchedTextCorrection:(ze,L,ne)=>1,get useSpecialProjectionForSymbols(){return!1},projectTileCoordinates(ze,L,ne,Te){throw new Error("Not implemented.")},translatePosition:(ze,L,ne,Te)=>function(Se,Re,ft,xt,Dt=!1){if(!ft[0]&&!ft[1])return[0,0];const er=Dt?xt==="map"?Se.angle:0:xt==="viewport"?-Se.angle:0;if(er){const fr=Math.sin(er),pr=Math.cos(er);ft=[ft[0]*pr-ft[1]*fr,ft[0]*fr+ft[1]*pr]}return[Dt?ft[0]:Ia(Re,ft[0],Se.zoom),Dt?ft[1]:Ia(Re,ft[1],Se.zoom)]}(ze,L,ne,Te),getCircleRadiusCorrection:ze=>1}}class mt{constructor(L){this._sortAcrossTiles=L.layout.get("symbol-z-order")!=="viewport-y"&&!L.layout.get("symbol-sort-key").isConstant(),this._currentTileIndex=0,this._currentPartIndex=0,this._seenCrossTileIDs={},this._bucketParts=[]}continuePlacement(L,ne,Te,Se,Re){const ft=this._bucketParts;for(;this._currentTileIndexxt.sortKey-Dt.sortKey));this._currentPartIndex!this._forceFullPlacement&&o.now()-Se>2;for(;this._currentPlacementIndex>=0;){const ft=ne[L[this._currentPlacementIndex]],xt=this.placement.collisionIndex.transform.zoom;if(ft.type==="symbol"&&(!ft.minzoom||ft.minzoom<=xt)&&(!ft.maxzoom||ft.maxzoom>xt)){if(this._inProgressLayer||(this._inProgressLayer=new mt(ft)),this._inProgressLayer.continuePlacement(Te[ft.source],this.placement,this._showCollisionBoxes,ft,Re))return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0}commit(L){return this.placement.commit(L),this.placement}}const Lr=512/t.X/2;class Er{constructor(L,ne,Te){this.tileID=L,this.bucketInstanceId=Te,this._symbolsByKey={};const Se=new Map;for(let Re=0;Re({x:Math.floor(Dt.anchorX*Lr),y:Math.floor(Dt.anchorY*Lr)})),crossTileIDs:ft.map(Dt=>Dt.crossTileID)};if(xt.positions.length>128){const Dt=new t.av(xt.positions.length,16,Uint16Array);for(const{x:er,y:fr}of xt.positions)Dt.add(er,fr);Dt.finish(),delete xt.positions,xt.index=Dt}this._symbolsByKey[Re]=xt}}getScaledCoordinates(L,ne){const{x:Te,y:Se,z:Re}=this.tileID.canonical,{x:ft,y:xt,z:Dt}=ne.canonical,er=Lr/Math.pow(2,Dt-Re),fr=(xt*t.X+L.anchorY)*er,pr=Se*t.X*Lr;return{x:Math.floor((ft*t.X+L.anchorX)*er-Te*t.X*Lr),y:Math.floor(fr-pr)}}findMatches(L,ne,Te){const Se=this.tileID.canonical.zL)}}class Mr{constructor(){this.maxCrossTileID=0}generate(){return++this.maxCrossTileID}}class br{constructor(){this.indexes={},this.usedCrossTileIDs={},this.lng=0}handleWrapJump(L){const ne=Math.round((L-this.lng)/360);if(ne!==0)for(const Te in this.indexes){const Se=this.indexes[Te],Re={};for(const ft in Se){const xt=Se[ft];xt.tileID=xt.tileID.unwrapTo(xt.tileID.wrap+ne),Re[xt.tileID.key]=xt}this.indexes[Te]=Re}this.lng=L}addBucket(L,ne,Te){if(this.indexes[L.overscaledZ]&&this.indexes[L.overscaledZ][L.key]){if(this.indexes[L.overscaledZ][L.key].bucketInstanceId===ne.bucketInstanceId)return!1;this.removeBucketCrossTileIDs(L.overscaledZ,this.indexes[L.overscaledZ][L.key])}for(let Re=0;ReL.overscaledZ)for(const xt in ft){const Dt=ft[xt];Dt.tileID.isChildOf(L)&&Dt.findMatches(ne.symbolInstances,L,Se)}else{const xt=ft[L.scaledTo(Number(Re)).key];xt&&xt.findMatches(ne.symbolInstances,L,Se)}}for(let Re=0;Re{ne[Te]=!0});for(const Te in this.layerIndexes)ne[Te]||delete this.layerIndexes[Te]}}const jr=(ze,L)=>t.t(ze,L&&L.filter(ne=>ne.identifier!=="source.canvas")),Dr=t.aw();class Hr extends t.E{constructor(L,ne={}){super(),this._rtlPluginLoaded=()=>{for(const Te in this.sourceCaches){const Se=this.sourceCaches[Te].getSource().type;Se!=="vector"&&Se!=="geojson"||this.sourceCaches[Te].reload()}},this.map=L,this.dispatcher=new ee(J(),L._getMapId()),this.dispatcher.registerMessageHandler("GG",(Te,Se)=>this.getGlyphs(Te,Se)),this.dispatcher.registerMessageHandler("GI",(Te,Se)=>this.getImages(Te,Se)),this.imageManager=new y,this.imageManager.setEventedParent(this),this.glyphManager=new F(L._requestManager,ne.localIdeographFontFamily),this.lineAtlas=new X(256,512),this.crossTileSymbolIndex=new Or,this._spritesImagesIds={},this._layers={},this._order=[],this.sourceCaches={},this.zoomHistory=new t.ax,this._loaded=!1,this._availableImages=[],this._resetUpdates(),this.dispatcher.broadcast("SR",t.ay()),et().on(we,this._rtlPluginLoaded),this.on("data",Te=>{if(Te.dataType!=="source"||Te.sourceDataType!=="metadata")return;const Se=this.sourceCaches[Te.sourceId];if(!Se)return;const Re=Se.getSource();if(Re&&Re.vectorLayerIds)for(const ft in this._layers){const xt=this._layers[ft];xt.source===Re.id&&this._validateLayer(xt)}})}loadURL(L,ne={},Te){this.fire(new t.k("dataloading",{dataType:"style"})),ne.validate=typeof ne.validate!="boolean"||ne.validate;const Se=this.map._requestManager.transformRequest(L,"Style");this._loadStyleRequest=new AbortController;const Re=this._loadStyleRequest;t.h(Se,this._loadStyleRequest).then(ft=>{this._loadStyleRequest=null,this._load(ft.data,ne,Te)}).catch(ft=>{this._loadStyleRequest=null,ft&&!Re.signal.aborted&&this.fire(new t.j(ft))})}loadJSON(L,ne={},Te){this.fire(new t.k("dataloading",{dataType:"style"})),this._frameRequest=new AbortController,o.frameAsync(this._frameRequest).then(()=>{this._frameRequest=null,ne.validate=ne.validate!==!1,this._load(L,ne,Te)}).catch(()=>{})}loadEmpty(){this.fire(new t.k("dataloading",{dataType:"style"})),this._load(Dr,{validate:!1})}_load(L,ne,Te){var Se;const Re=ne.transformStyle?ne.transformStyle(Te,L):L;if(!ne.validate||!jr(this,t.u(Re))){this._loaded=!0,this.stylesheet=Re;for(const ft in Re.sources)this.addSource(ft,Re.sources[ft],{validate:!1});Re.sprite?this._loadSprite(Re.sprite):this.imageManager.setLoaded(!0),this.glyphManager.setURL(Re.glyphs),this._createLayers(),this.light=new P(this.stylesheet.light),this.sky=new U(this.stylesheet.sky),this.map.setTerrain((Se=this.stylesheet.terrain)!==null&&Se!==void 0?Se:null),this.fire(new t.k("data",{dataType:"style"})),this.fire(new t.k("style.load"))}}_createLayers(){const L=t.az(this.stylesheet.layers);this.dispatcher.broadcast("SL",L),this._order=L.map(ne=>ne.id),this._layers={},this._serializedLayers=null;for(const ne of L){const Te=t.aA(ne);Te.setEventedParent(this,{layer:{id:ne.id}}),this._layers[ne.id]=Te}}_loadSprite(L,ne=!1,Te=void 0){let Se;this.imageManager.setLoaded(!1),this._spriteRequest=new AbortController,function(Re,ft,xt,Dt){return t._(this,void 0,void 0,function*(){const er=b(Re),fr=xt>1?"@2x":"",pr={},Br={};for(const{id:ea,url:Ve}of er){const Ye=ft.transformRequest(d(Ve,fr,".json"),"SpriteJSON");pr[ea]=t.h(Ye,Dt);const it=ft.transformRequest(d(Ve,fr,".png"),"SpriteImage");Br[ea]=l.getImage(it,Dt)}return yield Promise.all([...Object.values(pr),...Object.values(Br)]),function(ea,Ve){return t._(this,void 0,void 0,function*(){const Ye={};for(const it in ea){Ye[it]={};const vt=o.getImageCanvasContext((yield Ve[it]).data),St=(yield ea[it]).data;for(const _t in St){const{width:Lt,height:nr,x:cr,y:gr,sdf:Cr,pixelRatio:Wr,stretchX:ua,stretchY:va,content:Ma,textFitWidth:en,textFitHeight:Pn}=St[_t];Ye[it][_t]={data:null,pixelRatio:Wr,sdf:Cr,stretchX:ua,stretchY:va,content:Ma,textFitWidth:en,textFitHeight:Pn,spriteData:{width:Lt,height:nr,x:cr,y:gr,context:vt}}}}return Ye})}(pr,Br)})}(L,this.map._requestManager,this.map.getPixelRatio(),this._spriteRequest).then(Re=>{if(this._spriteRequest=null,Re)for(const ft in Re){this._spritesImagesIds[ft]=[];const xt=this._spritesImagesIds[ft]?this._spritesImagesIds[ft].filter(Dt=>!(Dt in Re)):[];for(const Dt of xt)this.imageManager.removeImage(Dt),this._changedImages[Dt]=!0;for(const Dt in Re[ft]){const er=ft==="default"?Dt:`${ft}:${Dt}`;this._spritesImagesIds[ft].push(er),er in this.imageManager.images?this.imageManager.updateImage(er,Re[ft][Dt],!1):this.imageManager.addImage(er,Re[ft][Dt]),ne&&(this._changedImages[er]=!0)}}}).catch(Re=>{this._spriteRequest=null,Se=Re,this.fire(new t.j(Se))}).finally(()=>{this.imageManager.setLoaded(!0),this._availableImages=this.imageManager.listImages(),ne&&(this._changed=!0),this.dispatcher.broadcast("SI",this._availableImages),this.fire(new t.k("data",{dataType:"style"})),Te&&Te(Se)})}_unloadSprite(){for(const L of Object.values(this._spritesImagesIds).flat())this.imageManager.removeImage(L),this._changedImages[L]=!0;this._spritesImagesIds={},this._availableImages=this.imageManager.listImages(),this._changed=!0,this.dispatcher.broadcast("SI",this._availableImages),this.fire(new t.k("data",{dataType:"style"}))}_validateLayer(L){const ne=this.sourceCaches[L.source];if(!ne)return;const Te=L.sourceLayer;if(!Te)return;const Se=ne.getSource();(Se.type==="geojson"||Se.vectorLayerIds&&Se.vectorLayerIds.indexOf(Te)===-1)&&this.fire(new t.j(new Error(`Source layer "${Te}" does not exist on source "${Se.id}" as specified by style layer "${L.id}".`)))}loaded(){if(!this._loaded||Object.keys(this._updatedSources).length)return!1;for(const L in this.sourceCaches)if(!this.sourceCaches[L].loaded())return!1;return!!this.imageManager.isLoaded()}_serializeByIds(L,ne=!1){const Te=this._serializedAllLayers();if(!L||L.length===0)return Object.values(ne?t.aB(Te):Te);const Se=[];for(const Re of L)if(Te[Re]){const ft=ne?t.aB(Te[Re]):Te[Re];Se.push(ft)}return Se}_serializedAllLayers(){let L=this._serializedLayers;if(L)return L;L=this._serializedLayers={};const ne=Object.keys(this._layers);for(const Te of ne){const Se=this._layers[Te];Se.type!=="custom"&&(L[Te]=Se.serialize())}return L}hasTransitions(){if(this.light&&this.light.hasTransition()||this.sky&&this.sky.hasTransition())return!0;for(const L in this.sourceCaches)if(this.sourceCaches[L].hasTransition())return!0;for(const L in this._layers)if(this._layers[L].hasTransition())return!0;return!1}_checkLoaded(){if(!this._loaded)throw new Error("Style is not done loading.")}update(L){if(!this._loaded)return;const ne=this._changed;if(ne){const Se=Object.keys(this._updatedLayers),Re=Object.keys(this._removedLayers);(Se.length||Re.length)&&this._updateWorkerLayers(Se,Re);for(const ft in this._updatedSources){const xt=this._updatedSources[ft];if(xt==="reload")this._reloadSource(ft);else{if(xt!=="clear")throw new Error(`Invalid action ${xt}`);this._clearSource(ft)}}this._updateTilesForChangedImages(),this._updateTilesForChangedGlyphs();for(const ft in this._updatedPaintProps)this._layers[ft].updateTransitions(L);this.light.updateTransitions(L),this.sky.updateTransitions(L),this._resetUpdates()}const Te={};for(const Se in this.sourceCaches){const Re=this.sourceCaches[Se];Te[Se]=Re.used,Re.used=!1}for(const Se of this._order){const Re=this._layers[Se];Re.recalculate(L,this._availableImages),!Re.isHidden(L.zoom)&&Re.source&&(this.sourceCaches[Re.source].used=!0)}for(const Se in Te){const Re=this.sourceCaches[Se];!!Te[Se]!=!!Re.used&&Re.fire(new t.k("data",{sourceDataType:"visibility",dataType:"source",sourceId:Se}))}this.light.recalculate(L),this.sky.recalculate(L),this.z=L.zoom,ne&&this.fire(new t.k("data",{dataType:"style"}))}_updateTilesForChangedImages(){const L=Object.keys(this._changedImages);if(L.length){for(const ne in this.sourceCaches)this.sourceCaches[ne].reloadTilesForDependencies(["icons","patterns"],L);this._changedImages={}}}_updateTilesForChangedGlyphs(){if(this._glyphsDidChange){for(const L in this.sourceCaches)this.sourceCaches[L].reloadTilesForDependencies(["glyphs"],[""]);this._glyphsDidChange=!1}}_updateWorkerLayers(L,ne){this.dispatcher.broadcast("UL",{layers:this._serializeByIds(L,!1),removedIds:ne})}_resetUpdates(){this._changed=!1,this._updatedLayers={},this._removedLayers={},this._updatedSources={},this._updatedPaintProps={},this._changedImages={},this._glyphsDidChange=!1}setState(L,ne={}){var Te;this._checkLoaded();const Se=this.serialize();if(L=ne.transformStyle?ne.transformStyle(Se,L):L,((Te=ne.validate)===null||Te===void 0||Te)&&jr(this,t.u(L)))return!1;(L=t.aB(L)).layers=t.az(L.layers);const Re=t.aC(Se,L),ft=this._getOperationsToPerform(Re);if(ft.unimplemented.length>0)throw new Error(`Unimplemented: ${ft.unimplemented.join(", ")}.`);if(ft.operations.length===0)return!1;for(const xt of ft.operations)xt();return this.stylesheet=L,this._serializedLayers=null,!0}_getOperationsToPerform(L){const ne=[],Te=[];for(const Se of L)switch(Se.command){case"setCenter":case"setZoom":case"setBearing":case"setPitch":continue;case"addLayer":ne.push(()=>this.addLayer.apply(this,Se.args));break;case"removeLayer":ne.push(()=>this.removeLayer.apply(this,Se.args));break;case"setPaintProperty":ne.push(()=>this.setPaintProperty.apply(this,Se.args));break;case"setLayoutProperty":ne.push(()=>this.setLayoutProperty.apply(this,Se.args));break;case"setFilter":ne.push(()=>this.setFilter.apply(this,Se.args));break;case"addSource":ne.push(()=>this.addSource.apply(this,Se.args));break;case"removeSource":ne.push(()=>this.removeSource.apply(this,Se.args));break;case"setLayerZoomRange":ne.push(()=>this.setLayerZoomRange.apply(this,Se.args));break;case"setLight":ne.push(()=>this.setLight.apply(this,Se.args));break;case"setGeoJSONSourceData":ne.push(()=>this.setGeoJSONSourceData.apply(this,Se.args));break;case"setGlyphs":ne.push(()=>this.setGlyphs.apply(this,Se.args));break;case"setSprite":ne.push(()=>this.setSprite.apply(this,Se.args));break;case"setSky":ne.push(()=>this.setSky.apply(this,Se.args));break;case"setTerrain":ne.push(()=>this.map.setTerrain.apply(this,Se.args));break;case"setTransition":ne.push(()=>{});break;default:Te.push(Se.command)}return{operations:ne,unimplemented:Te}}addImage(L,ne){if(this.getImage(L))return this.fire(new t.j(new Error(`An image named "${L}" already exists.`)));this.imageManager.addImage(L,ne),this._afterImageUpdated(L)}updateImage(L,ne){this.imageManager.updateImage(L,ne)}getImage(L){return this.imageManager.getImage(L)}removeImage(L){if(!this.getImage(L))return this.fire(new t.j(new Error(`An image named "${L}" does not exist.`)));this.imageManager.removeImage(L),this._afterImageUpdated(L)}_afterImageUpdated(L){this._availableImages=this.imageManager.listImages(),this._changedImages[L]=!0,this._changed=!0,this.dispatcher.broadcast("SI",this._availableImages),this.fire(new t.k("data",{dataType:"style"}))}listImages(){return this._checkLoaded(),this.imageManager.listImages()}addSource(L,ne,Te={}){if(this._checkLoaded(),this.sourceCaches[L]!==void 0)throw new Error(`Source "${L}" already exists.`);if(!ne.type)throw new Error(`The type property must be defined, but only the following properties were given: ${Object.keys(ne).join(", ")}.`);if(["vector","raster","geojson","video","image"].indexOf(ne.type)>=0&&this._validate(t.u.source,`sources.${L}`,ne,null,Te))return;this.map&&this.map._collectResourceTiming&&(ne.collectResourceTiming=!0);const Se=this.sourceCaches[L]=new kt(L,ne,this.dispatcher);Se.style=this,Se.setEventedParent(this,()=>({isSourceLoaded:Se.loaded(),source:Se.serialize(),sourceId:L})),Se.onAdd(this.map),this._changed=!0}removeSource(L){if(this._checkLoaded(),this.sourceCaches[L]===void 0)throw new Error("There is no source with this ID");for(const Te in this._layers)if(this._layers[Te].source===L)return this.fire(new t.j(new Error(`Source "${L}" cannot be removed while layer "${Te}" is using it.`)));const ne=this.sourceCaches[L];delete this.sourceCaches[L],delete this._updatedSources[L],ne.fire(new t.k("data",{sourceDataType:"metadata",dataType:"source",sourceId:L})),ne.setEventedParent(null),ne.onRemove(this.map),this._changed=!0}setGeoJSONSourceData(L,ne){if(this._checkLoaded(),this.sourceCaches[L]===void 0)throw new Error(`There is no source with this ID=${L}`);const Te=this.sourceCaches[L].getSource();if(Te.type!=="geojson")throw new Error(`geojsonSource.type is ${Te.type}, which is !== 'geojson`);Te.setData(ne),this._changed=!0}getSource(L){return this.sourceCaches[L]&&this.sourceCaches[L].getSource()}addLayer(L,ne,Te={}){this._checkLoaded();const Se=L.id;if(this.getLayer(Se))return void this.fire(new t.j(new Error(`Layer "${Se}" already exists on this map.`)));let Re;if(L.type==="custom"){if(jr(this,t.aD(L)))return;Re=t.aA(L)}else{if("source"in L&&typeof L.source=="object"&&(this.addSource(Se,L.source),L=t.aB(L),L=t.e(L,{source:Se})),this._validate(t.u.layer,`layers.${Se}`,L,{arrayIndex:-1},Te))return;Re=t.aA(L),this._validateLayer(Re),Re.setEventedParent(this,{layer:{id:Se}})}const ft=ne?this._order.indexOf(ne):this._order.length;if(ne&&ft===-1)this.fire(new t.j(new Error(`Cannot add layer "${Se}" before non-existing layer "${ne}".`)));else{if(this._order.splice(ft,0,Se),this._layerOrderChanged=!0,this._layers[Se]=Re,this._removedLayers[Se]&&Re.source&&Re.type!=="custom"){const xt=this._removedLayers[Se];delete this._removedLayers[Se],xt.type!==Re.type?this._updatedSources[Re.source]="clear":(this._updatedSources[Re.source]="reload",this.sourceCaches[Re.source].pause())}this._updateLayer(Re),Re.onAdd&&Re.onAdd(this.map)}}moveLayer(L,ne){if(this._checkLoaded(),this._changed=!0,!this._layers[L])return void this.fire(new t.j(new Error(`The layer '${L}' does not exist in the map's style and cannot be moved.`)));if(L===ne)return;const Te=this._order.indexOf(L);this._order.splice(Te,1);const Se=ne?this._order.indexOf(ne):this._order.length;ne&&Se===-1?this.fire(new t.j(new Error(`Cannot move layer "${L}" before non-existing layer "${ne}".`))):(this._order.splice(Se,0,L),this._layerOrderChanged=!0)}removeLayer(L){this._checkLoaded();const ne=this._layers[L];if(!ne)return void this.fire(new t.j(new Error(`Cannot remove non-existing layer "${L}".`)));ne.setEventedParent(null);const Te=this._order.indexOf(L);this._order.splice(Te,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[L]=ne,delete this._layers[L],this._serializedLayers&&delete this._serializedLayers[L],delete this._updatedLayers[L],delete this._updatedPaintProps[L],ne.onRemove&&ne.onRemove(this.map)}getLayer(L){return this._layers[L]}getLayersOrder(){return[...this._order]}hasLayer(L){return L in this._layers}setLayerZoomRange(L,ne,Te){this._checkLoaded();const Se=this.getLayer(L);Se?Se.minzoom===ne&&Se.maxzoom===Te||(ne!=null&&(Se.minzoom=ne),Te!=null&&(Se.maxzoom=Te),this._updateLayer(Se)):this.fire(new t.j(new Error(`Cannot set the zoom range of non-existing layer "${L}".`)))}setFilter(L,ne,Te={}){this._checkLoaded();const Se=this.getLayer(L);if(Se){if(!t.aE(Se.filter,ne))return ne==null?(Se.filter=void 0,void this._updateLayer(Se)):void(this._validate(t.u.filter,`layers.${Se.id}.filter`,ne,null,Te)||(Se.filter=t.aB(ne),this._updateLayer(Se)))}else this.fire(new t.j(new Error(`Cannot filter non-existing layer "${L}".`)))}getFilter(L){return t.aB(this.getLayer(L).filter)}setLayoutProperty(L,ne,Te,Se={}){this._checkLoaded();const Re=this.getLayer(L);Re?t.aE(Re.getLayoutProperty(ne),Te)||(Re.setLayoutProperty(ne,Te,Se),this._updateLayer(Re)):this.fire(new t.j(new Error(`Cannot style non-existing layer "${L}".`)))}getLayoutProperty(L,ne){const Te=this.getLayer(L);if(Te)return Te.getLayoutProperty(ne);this.fire(new t.j(new Error(`Cannot get style of non-existing layer "${L}".`)))}setPaintProperty(L,ne,Te,Se={}){this._checkLoaded();const Re=this.getLayer(L);Re?t.aE(Re.getPaintProperty(ne),Te)||(Re.setPaintProperty(ne,Te,Se)&&this._updateLayer(Re),this._changed=!0,this._updatedPaintProps[L]=!0,this._serializedLayers=null):this.fire(new t.j(new Error(`Cannot style non-existing layer "${L}".`)))}getPaintProperty(L,ne){return this.getLayer(L).getPaintProperty(ne)}setFeatureState(L,ne){this._checkLoaded();const Te=L.source,Se=L.sourceLayer,Re=this.sourceCaches[Te];if(Re===void 0)return void this.fire(new t.j(new Error(`The source '${Te}' does not exist in the map's style.`)));const ft=Re.getSource().type;ft==="geojson"&&Se?this.fire(new t.j(new Error("GeoJSON sources cannot have a sourceLayer parameter."))):ft!=="vector"||Se?(L.id===void 0&&this.fire(new t.j(new Error("The feature id parameter must be provided."))),Re.setFeatureState(Se,L.id,ne)):this.fire(new t.j(new Error("The sourceLayer parameter must be provided for vector source types.")))}removeFeatureState(L,ne){this._checkLoaded();const Te=L.source,Se=this.sourceCaches[Te];if(Se===void 0)return void this.fire(new t.j(new Error(`The source '${Te}' does not exist in the map's style.`)));const Re=Se.getSource().type,ft=Re==="vector"?L.sourceLayer:void 0;Re!=="vector"||ft?ne&&typeof L.id!="string"&&typeof L.id!="number"?this.fire(new t.j(new Error("A feature id is required to remove its specific state property."))):Se.removeFeatureState(ft,L.id,ne):this.fire(new t.j(new Error("The sourceLayer parameter must be provided for vector source types.")))}getFeatureState(L){this._checkLoaded();const ne=L.source,Te=L.sourceLayer,Se=this.sourceCaches[ne];if(Se!==void 0)return Se.getSource().type!=="vector"||Te?(L.id===void 0&&this.fire(new t.j(new Error("The feature id parameter must be provided."))),Se.getFeatureState(Te,L.id)):void this.fire(new t.j(new Error("The sourceLayer parameter must be provided for vector source types.")));this.fire(new t.j(new Error(`The source '${ne}' does not exist in the map's style.`)))}getTransition(){return t.e({duration:300,delay:0},this.stylesheet&&this.stylesheet.transition)}serialize(){if(!this._loaded)return;const L=t.aF(this.sourceCaches,Re=>Re.serialize()),ne=this._serializeByIds(this._order,!0),Te=this.map.getTerrain()||void 0,Se=this.stylesheet;return t.aG({version:Se.version,name:Se.name,metadata:Se.metadata,light:Se.light,sky:Se.sky,center:Se.center,zoom:Se.zoom,bearing:Se.bearing,pitch:Se.pitch,sprite:Se.sprite,glyphs:Se.glyphs,transition:Se.transition,sources:L,layers:ne,terrain:Te},Re=>Re!==void 0)}_updateLayer(L){this._updatedLayers[L.id]=!0,L.source&&!this._updatedSources[L.source]&&this.sourceCaches[L.source].getSource().type!=="raster"&&(this._updatedSources[L.source]="reload",this.sourceCaches[L.source].pause()),this._serializedLayers=null,this._changed=!0}_flattenAndSortRenderedFeatures(L){const ne=ft=>this._layers[ft].type==="fill-extrusion",Te={},Se=[];for(let ft=this._order.length-1;ft>=0;ft--){const xt=this._order[ft];if(ne(xt)){Te[xt]=ft;for(const Dt of L){const er=Dt[xt];if(er)for(const fr of er)Se.push(fr)}}}Se.sort((ft,xt)=>xt.intersectionZ-ft.intersectionZ);const Re=[];for(let ft=this._order.length-1;ft>=0;ft--){const xt=this._order[ft];if(ne(xt))for(let Dt=Se.length-1;Dt>=0;Dt--){const er=Se[Dt].feature;if(Te[er.layer.id]{const Cr=vt.featureSortOrder;if(Cr){const Wr=Cr.indexOf(cr.featureIndex);return Cr.indexOf(gr.featureIndex)-Wr}return gr.featureIndex-cr.featureIndex});for(const cr of nr)Lt.push(cr)}}for(const vt in Ve)Ve[vt].forEach(St=>{const _t=St.feature,Lt=er[xt[vt].source].getFeatureState(_t.layer["source-layer"],_t.id);_t.source=_t.layer.source,_t.layer["source-layer"]&&(_t.sourceLayer=_t.layer["source-layer"]),_t.state=Lt});return Ve}(this._layers,ft,this.sourceCaches,L,ne,this.placement.collisionIndex,this.placement.retainedQueryData)),this._flattenAndSortRenderedFeatures(Re)}querySourceFeatures(L,ne){ne&&ne.filter&&this._validate(t.u.filter,"querySourceFeatures.filter",ne.filter,null,ne);const Te=this.sourceCaches[L];return Te?function(Se,Re){const ft=Se.getRenderableIds().map(er=>Se.getTileByID(er)),xt=[],Dt={};for(let er=0;erBr.getTileByID(ea)).sort((ea,Ve)=>Ve.tileID.overscaledZ-ea.tileID.overscaledZ||(ea.tileID.isLessThan(Ve.tileID)?-1:1))}const pr=this.crossTileSymbolIndex.addLayer(fr,Dt[fr.source],L.center.lng);ft=ft||pr}if(this.crossTileSymbolIndex.pruneUnusedLayers(this._order),((Re=Re||this._layerOrderChanged||Te===0)||!this.pauseablePlacement||this.pauseablePlacement.isDone()&&!this.placement.stillRecent(o.now(),L.zoom))&&(this.pauseablePlacement=new ot(L,this.map.terrain,this._order,Re,ne,Te,Se,this.placement),this._layerOrderChanged=!1),this.pauseablePlacement.isDone()?this.placement.setStale():(this.pauseablePlacement.continuePlacement(this._order,this._layers,Dt),this.pauseablePlacement.isDone()&&(this.placement=this.pauseablePlacement.commit(o.now()),xt=!0),ft&&this.pauseablePlacement.placement.setStale()),xt||ft)for(const er of this._order){const fr=this._layers[er];fr.type==="symbol"&&this.placement.updateLayerOpacities(fr,Dt[fr.source])}return!this.pauseablePlacement.isDone()||this.placement.hasTransitions(o.now())}_releaseSymbolFadeTiles(){for(const L in this.sourceCaches)this.sourceCaches[L].releaseSymbolFadeTiles()}getImages(L,ne){return t._(this,void 0,void 0,function*(){const Te=yield this.imageManager.getImages(ne.icons);this._updateTilesForChangedImages();const Se=this.sourceCaches[ne.source];return Se&&Se.setDependencies(ne.tileID.key,ne.type,ne.icons),Te})}getGlyphs(L,ne){return t._(this,void 0,void 0,function*(){const Te=yield this.glyphManager.getGlyphs(ne.stacks),Se=this.sourceCaches[ne.source];return Se&&Se.setDependencies(ne.tileID.key,ne.type,[""]),Te})}getGlyphsUrl(){return this.stylesheet.glyphs||null}setGlyphs(L,ne={}){this._checkLoaded(),L&&this._validate(t.u.glyphs,"glyphs",L,null,ne)||(this._glyphsDidChange=!0,this.stylesheet.glyphs=L,this.glyphManager.entries={},this.glyphManager.setURL(L))}addSprite(L,ne,Te={},Se){this._checkLoaded();const Re=[{id:L,url:ne}],ft=[...b(this.stylesheet.sprite),...Re];this._validate(t.u.sprite,"sprite",ft,null,Te)||(this.stylesheet.sprite=ft,this._loadSprite(Re,!0,Se))}removeSprite(L){this._checkLoaded();const ne=b(this.stylesheet.sprite);if(ne.find(Te=>Te.id===L)){if(this._spritesImagesIds[L])for(const Te of this._spritesImagesIds[L])this.imageManager.removeImage(Te),this._changedImages[Te]=!0;ne.splice(ne.findIndex(Te=>Te.id===L),1),this.stylesheet.sprite=ne.length>0?ne:void 0,delete this._spritesImagesIds[L],this._availableImages=this.imageManager.listImages(),this._changed=!0,this.dispatcher.broadcast("SI",this._availableImages),this.fire(new t.k("data",{dataType:"style"}))}else this.fire(new t.j(new Error(`Sprite "${L}" doesn't exists on this map.`)))}getSprite(){return b(this.stylesheet.sprite)}setSprite(L,ne={},Te){this._checkLoaded(),L&&this._validate(t.u.sprite,"sprite",L,null,ne)||(this.stylesheet.sprite=L,L?this._loadSprite(L,!0,Te):(this._unloadSprite(),Te&&Te(null)))}}var na=t.Y([{name:"a_pos",type:"Int16",components:2}]);const ta={prelude:At(`#ifdef GL_ES -precision mediump float; -#else -#if !defined(lowp) -#define lowp -#endif -#if !defined(mediump) -#define mediump -#endif -#if !defined(highp) -#define highp -#endif -#endif -`,`#ifdef GL_ES -precision highp float; -#else -#if !defined(lowp) -#define lowp -#endif -#if !defined(mediump) -#define mediump -#endif -#if !defined(highp) -#define highp -#endif -#endif -vec2 unpack_float(const float packedValue) {int packedIntValue=int(packedValue);int v0=packedIntValue/256;return vec2(v0,packedIntValue-v0*256);}vec2 unpack_opacity(const float packedOpacity) {int intOpacity=int(packedOpacity)/2;return vec2(float(intOpacity)/127.0,mod(packedOpacity,2.0));}vec4 decode_color(const vec2 encodedColor) {return vec4(unpack_float(encodedColor[0])/255.0,unpack_float(encodedColor[1])/255.0 -);}float unpack_mix_vec2(const vec2 packedValue,const float t) {return mix(packedValue[0],packedValue[1],t);}vec4 unpack_mix_color(const vec4 packedColors,const float t) {vec4 minColor=decode_color(vec2(packedColors[0],packedColors[1]));vec4 maxColor=decode_color(vec2(packedColors[2],packedColors[3]));return mix(minColor,maxColor,t);}vec2 get_pattern_pos(const vec2 pixel_coord_upper,const vec2 pixel_coord_lower,const vec2 pattern_size,const float tile_units_to_pixels,const vec2 pos) {vec2 offset=mod(mod(mod(pixel_coord_upper,pattern_size)*256.0,pattern_size)*256.0+pixel_coord_lower,pattern_size);return (tile_units_to_pixels*pos+offset)/pattern_size;} -#ifdef TERRAIN3D -uniform sampler2D u_terrain;uniform float u_terrain_dim;uniform mat4 u_terrain_matrix;uniform vec4 u_terrain_unpack;uniform float u_terrain_exaggeration;uniform highp sampler2D u_depth; -#endif -const highp vec4 bitSh=vec4(256.*256.*256.,256.*256.,256.,1.);const highp vec4 bitShifts=vec4(1.)/bitSh;highp float unpack(highp vec4 color) {return dot(color,bitShifts);}highp float depthOpacity(vec3 frag) { -#ifdef TERRAIN3D -highp float d=unpack(texture2D(u_depth,frag.xy*0.5+0.5))+0.0001-frag.z;return 1.0-max(0.0,min(1.0,-d*500.0)); -#else -return 1.0; -#endif -}float calculate_visibility(vec4 pos) { -#ifdef TERRAIN3D -vec3 frag=pos.xyz/pos.w;highp float d=depthOpacity(frag);if (d > 0.95) return 1.0;return (d+depthOpacity(frag+vec3(0.0,0.01,0.0)))/2.0; -#else -return 1.0; -#endif -}float ele(vec2 pos) { -#ifdef TERRAIN3D -vec4 rgb=(texture2D(u_terrain,pos)*255.0)*u_terrain_unpack;return rgb.r+rgb.g+rgb.b-u_terrain_unpack.a; -#else -return 0.0; -#endif -}float get_elevation(vec2 pos) { -#ifdef TERRAIN3D -vec2 coord=(u_terrain_matrix*vec4(pos,0.0,1.0)).xy*u_terrain_dim+1.0;vec2 f=fract(coord);vec2 c=(floor(coord)+0.5)/(u_terrain_dim+2.0);float d=1.0/(u_terrain_dim+2.0);float tl=ele(c);float tr=ele(c+vec2(d,0.0));float bl=ele(c+vec2(0.0,d));float br=ele(c+vec2(d,d));float elevation=mix(mix(tl,tr,f.x),mix(bl,br,f.x),f.y);return elevation*u_terrain_exaggeration; -#else -return 0.0; -#endif -}`),background:At(`uniform vec4 u_color;uniform float u_opacity;void main() {gl_FragColor=u_color*u_opacity; -#ifdef OVERDRAW_INSPECTOR -gl_FragColor=vec4(1.0); -#endif -}`,"attribute vec2 a_pos;uniform mat4 u_matrix;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);}"),backgroundPattern:At(`uniform vec2 u_pattern_tl_a;uniform vec2 u_pattern_br_a;uniform vec2 u_pattern_tl_b;uniform vec2 u_pattern_br_b;uniform vec2 u_texsize;uniform float u_mix;uniform float u_opacity;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;void main() {vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(u_pattern_tl_a/u_texsize,u_pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(u_pattern_tl_b/u_texsize,u_pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);gl_FragColor=mix(color1,color2,u_mix)*u_opacity; -#ifdef OVERDRAW_INSPECTOR -gl_FragColor=vec4(1.0); -#endif -}`,"uniform mat4 u_matrix;uniform vec2 u_pattern_size_a;uniform vec2 u_pattern_size_b;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_scale_a;uniform float u_scale_b;uniform float u_tile_units_to_pixels;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_scale_a*u_pattern_size_a,u_tile_units_to_pixels,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_scale_b*u_pattern_size_b,u_tile_units_to_pixels,a_pos);}"),circle:At(`varying vec3 v_data;varying float v_visibility; -#pragma mapbox: define highp vec4 color -#pragma mapbox: define mediump float radius -#pragma mapbox: define lowp float blur -#pragma mapbox: define lowp float opacity -#pragma mapbox: define highp vec4 stroke_color -#pragma mapbox: define mediump float stroke_width -#pragma mapbox: define lowp float stroke_opacity -void main() { -#pragma mapbox: initialize highp vec4 color -#pragma mapbox: initialize mediump float radius -#pragma mapbox: initialize lowp float blur -#pragma mapbox: initialize lowp float opacity -#pragma mapbox: initialize highp vec4 stroke_color -#pragma mapbox: initialize mediump float stroke_width -#pragma mapbox: initialize lowp float stroke_opacity -vec2 extrude=v_data.xy;float extrude_length=length(extrude);float antialiased_blur=v_data.z;float opacity_t=smoothstep(0.0,antialiased_blur,extrude_length-1.0);float color_t=stroke_width < 0.01 ? 0.0 : smoothstep(antialiased_blur,0.0,extrude_length-radius/(radius+stroke_width));gl_FragColor=v_visibility*opacity_t*mix(color*opacity,stroke_color*stroke_opacity,color_t); -#ifdef OVERDRAW_INSPECTOR -gl_FragColor=vec4(1.0); -#endif -}`,`uniform mat4 u_matrix;uniform bool u_scale_with_map;uniform bool u_pitch_with_map;uniform vec2 u_extrude_scale;uniform lowp float u_device_pixel_ratio;uniform highp float u_camera_to_center_distance;attribute vec2 a_pos;varying vec3 v_data;varying float v_visibility; -#pragma mapbox: define highp vec4 color -#pragma mapbox: define mediump float radius -#pragma mapbox: define lowp float blur -#pragma mapbox: define lowp float opacity -#pragma mapbox: define highp vec4 stroke_color -#pragma mapbox: define mediump float stroke_width -#pragma mapbox: define lowp float stroke_opacity -void main(void) { -#pragma mapbox: initialize highp vec4 color -#pragma mapbox: initialize mediump float radius -#pragma mapbox: initialize lowp float blur -#pragma mapbox: initialize lowp float opacity -#pragma mapbox: initialize highp vec4 stroke_color -#pragma mapbox: initialize mediump float stroke_width -#pragma mapbox: initialize lowp float stroke_opacity -vec2 extrude=vec2(mod(a_pos,2.0)*2.0-1.0);vec2 circle_center=floor(a_pos*0.5);float ele=get_elevation(circle_center);v_visibility=calculate_visibility(u_matrix*vec4(circle_center,ele,1.0));if (u_pitch_with_map) {vec2 corner_position=circle_center;if (u_scale_with_map) {corner_position+=extrude*(radius+stroke_width)*u_extrude_scale;} else {vec4 projected_center=u_matrix*vec4(circle_center,0,1);corner_position+=extrude*(radius+stroke_width)*u_extrude_scale*(projected_center.w/u_camera_to_center_distance);}gl_Position=u_matrix*vec4(corner_position,ele,1);} else {gl_Position=u_matrix*vec4(circle_center,ele,1);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);}`),clippingMask:At("void main() {gl_FragColor=vec4(1.0);}","attribute vec2 a_pos;uniform mat4 u_matrix;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);}"),heatmap:At(`uniform highp float u_intensity;varying vec2 v_extrude; -#pragma mapbox: define highp float weight -#define GAUSS_COEF 0.3989422804014327 -void main() { -#pragma mapbox: initialize highp float weight -float d=-0.5*3.0*3.0*dot(v_extrude,v_extrude);float val=weight*u_intensity*GAUSS_COEF*exp(d);gl_FragColor=vec4(val,1.0,1.0,1.0); -#ifdef OVERDRAW_INSPECTOR -gl_FragColor=vec4(1.0); -#endif -}`,`uniform mat4 u_matrix;uniform float u_extrude_scale;uniform float u_opacity;uniform float u_intensity;attribute vec2 a_pos;varying vec2 v_extrude; -#pragma mapbox: define highp float weight -#pragma mapbox: define mediump float radius -const highp float ZERO=1.0/255.0/16.0; -#define GAUSS_COEF 0.3989422804014327 -void main(void) { -#pragma mapbox: initialize highp float weight -#pragma mapbox: initialize mediump float radius -vec2 unscaled_extrude=vec2(mod(a_pos,2.0)*2.0-1.0);float S=sqrt(-2.0*log(ZERO/weight/u_intensity/GAUSS_COEF))/3.0;v_extrude=S*unscaled_extrude;vec2 extrude=v_extrude*radius*u_extrude_scale;vec4 pos=vec4(floor(a_pos*0.5)+extrude,get_elevation(floor(a_pos*0.5)),1);gl_Position=u_matrix*pos;}`),heatmapTexture:At(`uniform sampler2D u_image;uniform sampler2D u_color_ramp;uniform float u_opacity;varying vec2 v_pos;void main() {float t=texture2D(u_image,v_pos).r;vec4 color=texture2D(u_color_ramp,vec2(t,0.5));gl_FragColor=color*u_opacity; -#ifdef OVERDRAW_INSPECTOR -gl_FragColor=vec4(0.0); -#endif -}`,"uniform mat4 u_matrix;uniform vec2 u_world;attribute vec2 a_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos*u_world,0,1);v_pos.x=a_pos.x;v_pos.y=1.0-a_pos.y;}"),collisionBox:At("varying float v_placed;varying float v_notUsed;void main() {float alpha=0.5;gl_FragColor=vec4(1.0,0.0,0.0,1.0)*alpha;if (v_placed > 0.5) {gl_FragColor=vec4(0.0,0.0,1.0,0.5)*alpha;}if (v_notUsed > 0.5) {gl_FragColor*=.1;}}","attribute vec2 a_anchor_pos;attribute vec2 a_placed;attribute vec2 a_box_real;uniform mat4 u_matrix;uniform vec2 u_pixel_extrude_scale;varying float v_placed;varying float v_notUsed;vec4 projectTileWithElevation(vec2 posInTile,float elevation) {return u_matrix*vec4(posInTile,elevation,1.0);}void main() {gl_Position=projectTileWithElevation(a_anchor_pos,get_elevation(a_anchor_pos));gl_Position.xy=((a_box_real+0.5)*u_pixel_extrude_scale*2.0-1.0)*vec2(1.0,-1.0)*gl_Position.w;if (gl_Position.z/gl_Position.w < 1.1) {gl_Position.z=0.5;}v_placed=a_placed.x;v_notUsed=a_placed.y;}"),collisionCircle:At("varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;void main() {float alpha=0.5*min(v_perspective_ratio,1.0);float stroke_radius=0.9*max(v_perspective_ratio,1.0);float distance_to_center=length(v_extrude);float distance_to_edge=abs(distance_to_center-v_radius);float opacity_t=smoothstep(-stroke_radius,0.0,-distance_to_edge);vec4 color=mix(vec4(0.0,0.0,1.0,0.5),vec4(1.0,0.0,0.0,1.0),v_collision);gl_FragColor=color*alpha*opacity_t;}","attribute vec2 a_pos;attribute float a_radius;attribute vec2 a_flags;uniform mat4 u_matrix;uniform mat4 u_inv_matrix;uniform vec2 u_viewport_size;uniform float u_camera_to_center_distance;varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;vec3 toTilePosition(vec2 screenPos) {vec4 rayStart=u_inv_matrix*vec4(screenPos,-1.0,1.0);vec4 rayEnd =u_inv_matrix*vec4(screenPos, 1.0,1.0);rayStart.xyz/=rayStart.w;rayEnd.xyz /=rayEnd.w;highp float t=(0.0-rayStart.z)/(rayEnd.z-rayStart.z);return mix(rayStart.xyz,rayEnd.xyz,t);}void main() {vec2 quadCenterPos=a_pos;float radius=a_radius;float collision=a_flags.x;float vertexIdx=a_flags.y;vec2 quadVertexOffset=vec2(mix(-1.0,1.0,float(vertexIdx >=2.0)),mix(-1.0,1.0,float(vertexIdx >=1.0 && vertexIdx <=2.0)));vec2 quadVertexExtent=quadVertexOffset*radius;vec3 tilePos=toTilePosition(quadCenterPos);vec4 clipPos=u_matrix*vec4(tilePos,1.0);highp float camera_to_anchor_distance=clipPos.w;highp float collision_perspective_ratio=clamp(0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);float padding_factor=1.2;v_radius=radius;v_extrude=quadVertexExtent*padding_factor;v_perspective_ratio=collision_perspective_ratio;v_collision=collision;gl_Position=vec4(clipPos.xyz/clipPos.w,1.0)+vec4(quadVertexExtent*padding_factor/u_viewport_size*2.0,0.0,0.0);}"),debug:At("uniform highp vec4 u_color;uniform sampler2D u_overlay;varying vec2 v_uv;void main() {vec4 overlay_color=texture2D(u_overlay,v_uv);gl_FragColor=mix(u_color,overlay_color,overlay_color.a);}","attribute vec2 a_pos;varying vec2 v_uv;uniform mat4 u_matrix;uniform float u_overlay_scale;void main() {v_uv=a_pos/8192.0;gl_Position=u_matrix*vec4(a_pos*u_overlay_scale,get_elevation(a_pos),1);}"),fill:At(`#pragma mapbox: define highp vec4 color -#pragma mapbox: define lowp float opacity -void main() { -#pragma mapbox: initialize highp vec4 color -#pragma mapbox: initialize lowp float opacity -gl_FragColor=color*opacity; -#ifdef OVERDRAW_INSPECTOR -gl_FragColor=vec4(1.0); -#endif -}`,`attribute vec2 a_pos;uniform mat4 u_matrix; -#pragma mapbox: define highp vec4 color -#pragma mapbox: define lowp float opacity -void main() { -#pragma mapbox: initialize highp vec4 color -#pragma mapbox: initialize lowp float opacity -gl_Position=u_matrix*vec4(a_pos,0,1);}`),fillOutline:At(`varying vec2 v_pos; -#pragma mapbox: define highp vec4 outline_color -#pragma mapbox: define lowp float opacity -void main() { -#pragma mapbox: initialize highp vec4 outline_color -#pragma mapbox: initialize lowp float opacity -float dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);gl_FragColor=outline_color*(alpha*opacity); -#ifdef OVERDRAW_INSPECTOR -gl_FragColor=vec4(1.0); -#endif -}`,`attribute vec2 a_pos;uniform mat4 u_matrix;uniform vec2 u_world;varying vec2 v_pos; -#pragma mapbox: define highp vec4 outline_color -#pragma mapbox: define lowp float opacity -void main() { -#pragma mapbox: initialize highp vec4 outline_color -#pragma mapbox: initialize lowp float opacity -gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;}`),fillOutlinePattern:At(`uniform vec2 u_texsize;uniform sampler2D u_image;uniform float u_fade;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec2 v_pos; -#pragma mapbox: define lowp float opacity -#pragma mapbox: define lowp vec4 pattern_from -#pragma mapbox: define lowp vec4 pattern_to -void main() { -#pragma mapbox: initialize lowp float opacity -#pragma mapbox: initialize mediump vec4 pattern_from -#pragma mapbox: initialize mediump vec4 pattern_to -vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);float dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);gl_FragColor=mix(color1,color2,u_fade)*alpha*opacity; -#ifdef OVERDRAW_INSPECTOR -gl_FragColor=vec4(1.0); -#endif -}`,`uniform mat4 u_matrix;uniform vec2 u_world;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec3 u_scale;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec2 v_pos; -#pragma mapbox: define lowp float opacity -#pragma mapbox: define lowp vec4 pattern_from -#pragma mapbox: define lowp vec4 pattern_to -#pragma mapbox: define lowp float pixel_ratio_from -#pragma mapbox: define lowp float pixel_ratio_to -void main() { -#pragma mapbox: initialize lowp float opacity -#pragma mapbox: initialize mediump vec4 pattern_from -#pragma mapbox: initialize mediump vec4 pattern_to -#pragma mapbox: initialize lowp float pixel_ratio_from -#pragma mapbox: initialize lowp float pixel_ratio_to -vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;gl_Position=u_matrix*vec4(a_pos,0,1);vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,a_pos);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;}`),fillPattern:At(`#ifdef GL_ES -precision highp float; -#endif -uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b; -#pragma mapbox: define lowp float opacity -#pragma mapbox: define lowp vec4 pattern_from -#pragma mapbox: define lowp vec4 pattern_to -void main() { -#pragma mapbox: initialize lowp float opacity -#pragma mapbox: initialize mediump vec4 pattern_from -#pragma mapbox: initialize mediump vec4 pattern_to -vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);gl_FragColor=mix(color1,color2,u_fade)*opacity; -#ifdef OVERDRAW_INSPECTOR -gl_FragColor=vec4(1.0); -#endif -}`,`uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec3 u_scale;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b; -#pragma mapbox: define lowp float opacity -#pragma mapbox: define lowp vec4 pattern_from -#pragma mapbox: define lowp vec4 pattern_to -#pragma mapbox: define lowp float pixel_ratio_from -#pragma mapbox: define lowp float pixel_ratio_to -void main() { -#pragma mapbox: initialize lowp float opacity -#pragma mapbox: initialize mediump vec4 pattern_from -#pragma mapbox: initialize mediump vec4 pattern_to -#pragma mapbox: initialize lowp float pixel_ratio_from -#pragma mapbox: initialize lowp float pixel_ratio_to -vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;gl_Position=u_matrix*vec4(a_pos,0,1);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileZoomRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileZoomRatio,a_pos);}`),fillExtrusion:At(`varying vec4 v_color;void main() {gl_FragColor=v_color; -#ifdef OVERDRAW_INSPECTOR -gl_FragColor=vec4(1.0); -#endif -}`,`uniform mat4 u_matrix;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;uniform float u_vertical_gradient;uniform lowp float u_opacity;attribute vec2 a_pos;attribute vec4 a_normal_ed; -#ifdef TERRAIN3D -attribute vec2 a_centroid; -#endif -varying vec4 v_color; -#pragma mapbox: define highp float base -#pragma mapbox: define highp float height -#pragma mapbox: define highp vec4 color -void main() { -#pragma mapbox: initialize highp float base -#pragma mapbox: initialize highp float height -#pragma mapbox: initialize highp vec4 color -vec3 normal=a_normal_ed.xyz; -#ifdef TERRAIN3D -float height_terrain3d_offset=get_elevation(a_centroid);float base_terrain3d_offset=height_terrain3d_offset-(base > 0.0 ? 0.0 : 10.0); -#else -float height_terrain3d_offset=0.0;float base_terrain3d_offset=0.0; -#endif -base=max(0.0,base)+base_terrain3d_offset;height=max(0.0,height)+height_terrain3d_offset;float t=mod(normal.x,2.0);gl_Position=u_matrix*vec4(a_pos,t > 0.0 ? height : base,1);float colorvalue=color.r*0.2126+color.g*0.7152+color.b*0.0722;v_color=vec4(0.0,0.0,0.0,1.0);vec4 ambientlight=vec4(0.03,0.03,0.03,1.0);color+=ambientlight;float directional=clamp(dot(normal/16384.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((1.0-colorvalue+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_color.r+=clamp(color.r*directional*u_lightcolor.r,mix(0.0,0.3,1.0-u_lightcolor.r),1.0);v_color.g+=clamp(color.g*directional*u_lightcolor.g,mix(0.0,0.3,1.0-u_lightcolor.g),1.0);v_color.b+=clamp(color.b*directional*u_lightcolor.b,mix(0.0,0.3,1.0-u_lightcolor.b),1.0);v_color*=u_opacity;}`),fillExtrusionPattern:At(`uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting; -#pragma mapbox: define lowp float base -#pragma mapbox: define lowp float height -#pragma mapbox: define lowp vec4 pattern_from -#pragma mapbox: define lowp vec4 pattern_to -#pragma mapbox: define lowp float pixel_ratio_from -#pragma mapbox: define lowp float pixel_ratio_to -void main() { -#pragma mapbox: initialize lowp float base -#pragma mapbox: initialize lowp float height -#pragma mapbox: initialize mediump vec4 pattern_from -#pragma mapbox: initialize mediump vec4 pattern_to -#pragma mapbox: initialize lowp float pixel_ratio_from -#pragma mapbox: initialize lowp float pixel_ratio_to -vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);vec4 mixedColor=mix(color1,color2,u_fade);gl_FragColor=mixedColor*v_lighting; -#ifdef OVERDRAW_INSPECTOR -gl_FragColor=vec4(1.0); -#endif -}`,`uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_height_factor;uniform vec3 u_scale;uniform float u_vertical_gradient;uniform lowp float u_opacity;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;attribute vec2 a_pos;attribute vec4 a_normal_ed; -#ifdef TERRAIN3D -attribute vec2 a_centroid; -#endif -varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting; -#pragma mapbox: define lowp float base -#pragma mapbox: define lowp float height -#pragma mapbox: define lowp vec4 pattern_from -#pragma mapbox: define lowp vec4 pattern_to -#pragma mapbox: define lowp float pixel_ratio_from -#pragma mapbox: define lowp float pixel_ratio_to -void main() { -#pragma mapbox: initialize lowp float base -#pragma mapbox: initialize lowp float height -#pragma mapbox: initialize mediump vec4 pattern_from -#pragma mapbox: initialize mediump vec4 pattern_to -#pragma mapbox: initialize lowp float pixel_ratio_from -#pragma mapbox: initialize lowp float pixel_ratio_to -vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec3 normal=a_normal_ed.xyz;float edgedistance=a_normal_ed.w;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to; -#ifdef TERRAIN3D -float height_terrain3d_offset=get_elevation(a_centroid);float base_terrain3d_offset=height_terrain3d_offset-(base > 0.0 ? 0.0 : 10.0); -#else -float height_terrain3d_offset=0.0;float base_terrain3d_offset=0.0; -#endif -base=max(0.0,base)+base_terrain3d_offset;height=max(0.0,height)+height_terrain3d_offset;float t=mod(normal.x,2.0);float z=t > 0.0 ? height : base;gl_Position=u_matrix*vec4(a_pos,z,1);vec2 pos=normal.x==1.0 && normal.y==0.0 && normal.z==16384.0 -? a_pos -: vec2(edgedistance,z*u_height_factor);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,pos);v_lighting=vec4(0.0,0.0,0.0,1.0);float directional=clamp(dot(normal/16383.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((0.5+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_lighting.rgb+=clamp(directional*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));v_lighting*=u_opacity;}`),hillshadePrepare:At(`#ifdef GL_ES -precision highp float; -#endif -uniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_dimension;uniform float u_zoom;uniform vec4 u_unpack;float getElevation(vec2 coord,float bias) {vec4 data=texture2D(u_image,coord)*255.0;data.a=-1.0;return dot(data,u_unpack)/4.0;}void main() {vec2 epsilon=1.0/u_dimension;float a=getElevation(v_pos+vec2(-epsilon.x,-epsilon.y),0.0);float b=getElevation(v_pos+vec2(0,-epsilon.y),0.0);float c=getElevation(v_pos+vec2(epsilon.x,-epsilon.y),0.0);float d=getElevation(v_pos+vec2(-epsilon.x,0),0.0);float e=getElevation(v_pos,0.0);float f=getElevation(v_pos+vec2(epsilon.x,0),0.0);float g=getElevation(v_pos+vec2(-epsilon.x,epsilon.y),0.0);float h=getElevation(v_pos+vec2(0,epsilon.y),0.0);float i=getElevation(v_pos+vec2(epsilon.x,epsilon.y),0.0);float exaggerationFactor=u_zoom < 2.0 ? 0.4 : u_zoom < 4.5 ? 0.35 : 0.3;float exaggeration=u_zoom < 15.0 ? (u_zoom-15.0)*exaggerationFactor : 0.0;vec2 deriv=vec2((c+f+f+i)-(a+d+d+g),(g+h+h+i)-(a+b+b+c))/pow(2.0,exaggeration+(19.2562-u_zoom));gl_FragColor=clamp(vec4(deriv.x/2.0+0.5,deriv.y/2.0+0.5,1.0,1.0),0.0,1.0); -#ifdef OVERDRAW_INSPECTOR -gl_FragColor=vec4(1.0); -#endif -}`,"uniform mat4 u_matrix;uniform vec2 u_dimension;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);highp vec2 epsilon=1.0/u_dimension;float scale=(u_dimension.x-2.0)/u_dimension.x;v_pos=(a_texture_pos/8192.0)*scale+epsilon;}"),hillshade:At(`uniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_latrange;uniform vec2 u_light;uniform vec4 u_shadow;uniform vec4 u_highlight;uniform vec4 u_accent; -#define PI 3.141592653589793 -void main() {vec4 pixel=texture2D(u_image,v_pos);vec2 deriv=((pixel.rg*2.0)-1.0);float scaleFactor=cos(radians((u_latrange[0]-u_latrange[1])*(1.0-v_pos.y)+u_latrange[1]));float slope=atan(1.25*length(deriv)/scaleFactor);float aspect=deriv.x !=0.0 ? atan(deriv.y,-deriv.x) : PI/2.0*(deriv.y > 0.0 ? 1.0 :-1.0);float intensity=u_light.x;float azimuth=u_light.y+PI;float base=1.875-intensity*1.75;float maxValue=0.5*PI;float scaledSlope=intensity !=0.5 ? ((pow(base,slope)-1.0)/(pow(base,maxValue)-1.0))*maxValue : slope;float accent=cos(scaledSlope);vec4 accent_color=(1.0-accent)*u_accent*clamp(intensity*2.0,0.0,1.0);float shade=abs(mod((aspect+azimuth)/PI+0.5,2.0)-1.0);vec4 shade_color=mix(u_shadow,u_highlight,shade)*sin(scaledSlope)*clamp(intensity*2.0,0.0,1.0);gl_FragColor=accent_color*(1.0-shade_color.a)+shade_color; -#ifdef OVERDRAW_INSPECTOR -gl_FragColor=vec4(1.0); -#endif -}`,"uniform mat4 u_matrix;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=a_texture_pos/8192.0;}"),line:At(`uniform lowp float u_device_pixel_ratio;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale; -#pragma mapbox: define highp vec4 color -#pragma mapbox: define lowp float blur -#pragma mapbox: define lowp float opacity -void main() { -#pragma mapbox: initialize highp vec4 color -#pragma mapbox: initialize lowp float blur -#pragma mapbox: initialize lowp float opacity -float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);gl_FragColor=color*(alpha*opacity); -#ifdef OVERDRAW_INSPECTOR -gl_FragColor=vec4(1.0); -#endif -}`,` -#define scale 0.015873016 -attribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform vec2 u_units_to_pixels;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_gamma_scale;varying highp float v_linesofar; -#pragma mapbox: define highp vec4 color -#pragma mapbox: define lowp float blur -#pragma mapbox: define lowp float opacity -#pragma mapbox: define mediump float gapwidth -#pragma mapbox: define lowp float offset -#pragma mapbox: define mediump float width -void main() { -#pragma mapbox: initialize highp vec4 color -#pragma mapbox: initialize lowp float blur -#pragma mapbox: initialize lowp float opacity -#pragma mapbox: initialize mediump float gapwidth -#pragma mapbox: initialize lowp float offset -#pragma mapbox: initialize mediump float width -float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;v_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*2.0;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude; -#ifdef TERRAIN3D -v_gamma_scale=1.0; -#else -float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective; -#endif -v_width2=vec2(outset,inset);}`),lineGradient:At(`uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale;varying highp vec2 v_uv; -#pragma mapbox: define lowp float blur -#pragma mapbox: define lowp float opacity -void main() { -#pragma mapbox: initialize lowp float blur -#pragma mapbox: initialize lowp float opacity -float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);vec4 color=texture2D(u_image,v_uv);gl_FragColor=color*(alpha*opacity); -#ifdef OVERDRAW_INSPECTOR -gl_FragColor=vec4(1.0); -#endif -}`,` -#define scale 0.015873016 -attribute vec2 a_pos_normal;attribute vec4 a_data;attribute float a_uv_x;attribute float a_split_index;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_units_to_pixels;uniform float u_image_height;varying vec2 v_normal;varying vec2 v_width2;varying float v_gamma_scale;varying highp vec2 v_uv; -#pragma mapbox: define lowp float blur -#pragma mapbox: define lowp float opacity -#pragma mapbox: define mediump float gapwidth -#pragma mapbox: define lowp float offset -#pragma mapbox: define mediump float width -void main() { -#pragma mapbox: initialize lowp float blur -#pragma mapbox: initialize lowp float opacity -#pragma mapbox: initialize mediump float gapwidth -#pragma mapbox: initialize lowp float offset -#pragma mapbox: initialize mediump float width -float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;highp float texel_height=1.0/u_image_height;highp float half_texel_height=0.5*texel_height;v_uv=vec2(a_uv_x,a_split_index*texel_height-half_texel_height);vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude; -#ifdef TERRAIN3D -v_gamma_scale=1.0; -#else -float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective; -#endif -v_width2=vec2(outset,inset);}`),linePattern:At(`#ifdef GL_ES -precision highp float; -#endif -uniform lowp float u_device_pixel_ratio;uniform vec2 u_texsize;uniform float u_fade;uniform mediump vec3 u_scale;uniform sampler2D u_image;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width; -#pragma mapbox: define lowp vec4 pattern_from -#pragma mapbox: define lowp vec4 pattern_to -#pragma mapbox: define lowp float pixel_ratio_from -#pragma mapbox: define lowp float pixel_ratio_to -#pragma mapbox: define lowp float blur -#pragma mapbox: define lowp float opacity -void main() { -#pragma mapbox: initialize mediump vec4 pattern_from -#pragma mapbox: initialize mediump vec4 pattern_to -#pragma mapbox: initialize lowp float pixel_ratio_from -#pragma mapbox: initialize lowp float pixel_ratio_to -#pragma mapbox: initialize lowp float blur -#pragma mapbox: initialize lowp float opacity -vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;vec2 pattern_size_a=vec2(display_size_a.x*fromScale/tileZoomRatio,display_size_a.y);vec2 pattern_size_b=vec2(display_size_b.x*toScale/tileZoomRatio,display_size_b.y);float aspect_a=display_size_a.y/v_width;float aspect_b=display_size_b.y/v_width;float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float x_a=mod(v_linesofar/pattern_size_a.x*aspect_a,1.0);float x_b=mod(v_linesofar/pattern_size_b.x*aspect_b,1.0);float y=0.5*v_normal.y+0.5;vec2 texel_size=1.0/u_texsize;vec2 pos_a=mix(pattern_tl_a*texel_size-texel_size,pattern_br_a*texel_size+texel_size,vec2(x_a,y));vec2 pos_b=mix(pattern_tl_b*texel_size-texel_size,pattern_br_b*texel_size+texel_size,vec2(x_b,y));vec4 color=mix(texture2D(u_image,pos_a),texture2D(u_image,pos_b),u_fade);gl_FragColor=color*alpha*opacity; -#ifdef OVERDRAW_INSPECTOR -gl_FragColor=vec4(1.0); -#endif -}`,` -#define scale 0.015873016 -#define LINE_DISTANCE_SCALE 2.0 -attribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform vec2 u_units_to_pixels;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width; -#pragma mapbox: define lowp float blur -#pragma mapbox: define lowp float opacity -#pragma mapbox: define lowp float offset -#pragma mapbox: define mediump float gapwidth -#pragma mapbox: define mediump float width -#pragma mapbox: define lowp float floorwidth -#pragma mapbox: define lowp vec4 pattern_from -#pragma mapbox: define lowp vec4 pattern_to -#pragma mapbox: define lowp float pixel_ratio_from -#pragma mapbox: define lowp float pixel_ratio_to -void main() { -#pragma mapbox: initialize lowp float blur -#pragma mapbox: initialize lowp float opacity -#pragma mapbox: initialize lowp float offset -#pragma mapbox: initialize mediump float gapwidth -#pragma mapbox: initialize mediump float width -#pragma mapbox: initialize lowp float floorwidth -#pragma mapbox: initialize mediump vec4 pattern_from -#pragma mapbox: initialize mediump vec4 pattern_to -#pragma mapbox: initialize lowp float pixel_ratio_from -#pragma mapbox: initialize lowp float pixel_ratio_to -float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude; -#ifdef TERRAIN3D -v_gamma_scale=1.0; -#else -float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective; -#endif -v_linesofar=a_linesofar;v_width2=vec2(outset,inset);v_width=floorwidth;}`),lineSDF:At(`uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;uniform float u_sdfgamma;uniform float u_mix;varying vec2 v_normal;varying vec2 v_width2;varying vec2 v_tex_a;varying vec2 v_tex_b;varying float v_gamma_scale; -#pragma mapbox: define highp vec4 color -#pragma mapbox: define lowp float blur -#pragma mapbox: define lowp float opacity -#pragma mapbox: define mediump float width -#pragma mapbox: define lowp float floorwidth -void main() { -#pragma mapbox: initialize highp vec4 color -#pragma mapbox: initialize lowp float blur -#pragma mapbox: initialize lowp float opacity -#pragma mapbox: initialize mediump float width -#pragma mapbox: initialize lowp float floorwidth -float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float sdfdist_a=texture2D(u_image,v_tex_a).a;float sdfdist_b=texture2D(u_image,v_tex_b).a;float sdfdist=mix(sdfdist_a,sdfdist_b,u_mix);alpha*=smoothstep(0.5-u_sdfgamma/floorwidth,0.5+u_sdfgamma/floorwidth,sdfdist);gl_FragColor=color*(alpha*opacity); -#ifdef OVERDRAW_INSPECTOR -gl_FragColor=vec4(1.0); -#endif -}`,` -#define scale 0.015873016 -#define LINE_DISTANCE_SCALE 2.0 -attribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_patternscale_a;uniform float u_tex_y_a;uniform vec2 u_patternscale_b;uniform float u_tex_y_b;uniform vec2 u_units_to_pixels;varying vec2 v_normal;varying vec2 v_width2;varying vec2 v_tex_a;varying vec2 v_tex_b;varying float v_gamma_scale; -#pragma mapbox: define highp vec4 color -#pragma mapbox: define lowp float blur -#pragma mapbox: define lowp float opacity -#pragma mapbox: define mediump float gapwidth -#pragma mapbox: define lowp float offset -#pragma mapbox: define mediump float width -#pragma mapbox: define lowp float floorwidth -void main() { -#pragma mapbox: initialize highp vec4 color -#pragma mapbox: initialize lowp float blur -#pragma mapbox: initialize lowp float opacity -#pragma mapbox: initialize mediump float gapwidth -#pragma mapbox: initialize lowp float offset -#pragma mapbox: initialize mediump float width -#pragma mapbox: initialize lowp float floorwidth -float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude; -#ifdef TERRAIN3D -v_gamma_scale=1.0; -#else -float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective; -#endif -v_tex_a=vec2(a_linesofar*u_patternscale_a.x/floorwidth,normal.y*u_patternscale_a.y+u_tex_y_a);v_tex_b=vec2(a_linesofar*u_patternscale_b.x/floorwidth,normal.y*u_patternscale_b.y+u_tex_y_b);v_width2=vec2(outset,inset);}`),raster:At(`uniform float u_fade_t;uniform float u_opacity;uniform sampler2D u_image0;uniform sampler2D u_image1;varying vec2 v_pos0;varying vec2 v_pos1;uniform float u_brightness_low;uniform float u_brightness_high;uniform float u_saturation_factor;uniform float u_contrast_factor;uniform vec3 u_spin_weights;void main() {vec4 color0=texture2D(u_image0,v_pos0);vec4 color1=texture2D(u_image1,v_pos1);if (color0.a > 0.0) {color0.rgb=color0.rgb/color0.a;}if (color1.a > 0.0) {color1.rgb=color1.rgb/color1.a;}vec4 color=mix(color0,color1,u_fade_t);color.a*=u_opacity;vec3 rgb=color.rgb;rgb=vec3(dot(rgb,u_spin_weights.xyz),dot(rgb,u_spin_weights.zxy),dot(rgb,u_spin_weights.yzx));float average=(color.r+color.g+color.b)/3.0;rgb+=(average-rgb)*u_saturation_factor;rgb=(rgb-0.5)*u_contrast_factor+0.5;vec3 u_high_vec=vec3(u_brightness_low,u_brightness_low,u_brightness_low);vec3 u_low_vec=vec3(u_brightness_high,u_brightness_high,u_brightness_high);gl_FragColor=vec4(mix(u_high_vec,u_low_vec,rgb)*color.a,color.a); -#ifdef OVERDRAW_INSPECTOR -gl_FragColor=vec4(1.0); -#endif -}`,"uniform mat4 u_matrix;uniform vec2 u_tl_parent;uniform float u_scale_parent;uniform float u_buffer_scale;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos0;varying vec2 v_pos1;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos0=(((a_texture_pos/8192.0)-0.5)/u_buffer_scale )+0.5;v_pos1=(v_pos0*u_scale_parent)+u_tl_parent;}"),symbolIcon:At(`uniform sampler2D u_texture;varying vec2 v_tex;varying float v_fade_opacity; -#pragma mapbox: define lowp float opacity -void main() { -#pragma mapbox: initialize lowp float opacity -lowp float alpha=opacity*v_fade_opacity;gl_FragColor=texture2D(u_texture,v_tex)*alpha; -#ifdef OVERDRAW_INSPECTOR -gl_FragColor=vec4(1.0); -#endif -}`,`attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec4 a_pixeloffset;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform highp float u_camera_to_center_distance;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform float u_fade_change;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform vec2 u_texsize;uniform bool u_is_along_line;uniform bool u_is_variable_anchor;uniform vec2 u_translation;uniform float u_pitched_scale;varying vec2 v_tex;varying float v_fade_opacity;vec4 projectTileWithElevation(vec2 posInTile,float elevation) {return u_matrix*vec4(posInTile,elevation,1.0);} -#pragma mapbox: define lowp float opacity -void main() { -#pragma mapbox: initialize lowp float opacity -vec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;vec2 a_minFontScale=a_pixeloffset.zw/256.0;float ele=get_elevation(a_pos);highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec2 translated_a_pos=a_pos+u_translation;vec4 projectedPoint=projectTileWithElevation(translated_a_pos,ele);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ? -camera_to_anchor_distance/u_camera_to_center_distance : -u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=projectTileWithElevation(translated_a_pos+vec2(1,0),ele);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos;if (u_is_along_line || u_is_variable_anchor) {projected_pos=vec4(a_projected_pos.xy,ele,1.0);} else if (u_pitch_with_map) {projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy+u_translation,ele,1.0);} else {projected_pos=u_label_plane_matrix*projectTileWithElevation(a_projected_pos.xy+u_translation,ele);}float z=float(u_pitch_with_map)*projected_pos.z/projected_pos.w;float projectionScaling=1.0;vec4 finalPos=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*max(a_minFontScale,fontScale)+a_pxoffset/16.0)*projectionScaling,z,1.0);if(u_pitch_with_map) {finalPos=projectTileWithElevation(finalPos.xy,finalPos.z);}gl_Position=finalPos;v_tex=a_tex/u_texsize;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float visibility=calculate_visibility(projectedPoint);v_fade_opacity=max(0.0,min(visibility,fade_opacity[0]+fade_change));}`),symbolSDF:At(`#define SDF_PX 8.0 -uniform bool u_is_halo;uniform sampler2D u_texture;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;uniform bool u_is_text;varying vec2 v_data0;varying vec3 v_data1; -#pragma mapbox: define highp vec4 fill_color -#pragma mapbox: define highp vec4 halo_color -#pragma mapbox: define lowp float opacity -#pragma mapbox: define lowp float halo_width -#pragma mapbox: define lowp float halo_blur -void main() { -#pragma mapbox: initialize highp vec4 fill_color -#pragma mapbox: initialize highp vec4 halo_color -#pragma mapbox: initialize lowp float opacity -#pragma mapbox: initialize lowp float halo_width -#pragma mapbox: initialize lowp float halo_blur -float EDGE_GAMMA=0.105/u_device_pixel_ratio;vec2 tex=v_data0.xy;float gamma_scale=v_data1.x;float size=v_data1.y;float fade_opacity=v_data1[2];float fontScale=u_is_text ? size/24.0 : size;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float inner_edge=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);inner_edge=inner_edge+gamma*gamma_scale;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(inner_edge-gamma_scaled,inner_edge+gamma_scaled,dist);if (u_is_halo) {lowp float halo_edge=(6.0-halo_width/fontScale)/SDF_PX;alpha=min(smoothstep(halo_edge-gamma_scaled,halo_edge+gamma_scaled,dist),1.0-alpha);}gl_FragColor=color*(alpha*opacity*fade_opacity); -#ifdef OVERDRAW_INSPECTOR -gl_FragColor=vec4(1.0); -#endif -}`,`attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec4 a_pixeloffset;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform bool u_is_along_line;uniform bool u_is_variable_anchor;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;uniform vec2 u_translation;uniform float u_pitched_scale;varying vec2 v_data0;varying vec3 v_data1;vec4 projectTileWithElevation(vec2 posInTile,float elevation) {return u_matrix*vec4(posInTile,elevation,1.0);} -#pragma mapbox: define highp vec4 fill_color -#pragma mapbox: define highp vec4 halo_color -#pragma mapbox: define lowp float opacity -#pragma mapbox: define lowp float halo_width -#pragma mapbox: define lowp float halo_blur -void main() { -#pragma mapbox: initialize highp vec4 fill_color -#pragma mapbox: initialize highp vec4 halo_color -#pragma mapbox: initialize lowp float opacity -#pragma mapbox: initialize lowp float halo_width -#pragma mapbox: initialize lowp float halo_blur -vec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;float ele=get_elevation(a_pos);highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec2 translated_a_pos=a_pos+u_translation;vec4 projectedPoint=projectTileWithElevation(translated_a_pos,ele);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ? -camera_to_anchor_distance/u_camera_to_center_distance : -u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=projectTileWithElevation(translated_a_pos+vec2(1,0),ele);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos;if (u_is_along_line || u_is_variable_anchor) {projected_pos=vec4(a_projected_pos.xy,ele,1.0);} else if (u_pitch_with_map) {projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy+u_translation,ele,1.0);} else {projected_pos=u_label_plane_matrix*projectTileWithElevation(a_projected_pos.xy+u_translation,ele);}float z=float(u_pitch_with_map)*projected_pos.z/projected_pos.w;float projectionScaling=1.0;vec4 finalPos=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale+a_pxoffset)*projectionScaling,z,1.0);if(u_pitch_with_map) {finalPos=projectTileWithElevation(finalPos.xy,finalPos.z);}float gamma_scale=finalPos.w;gl_Position=finalPos;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float visibility=calculate_visibility(projectedPoint);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(visibility,fade_opacity[0]+fade_change));v_data0=a_tex/u_texsize;v_data1=vec3(gamma_scale,size,interpolated_fade_opacity);}`),symbolTextAndIcon:At(`#define SDF_PX 8.0 -#define SDF 1.0 -#define ICON 0.0 -uniform bool u_is_halo;uniform sampler2D u_texture;uniform sampler2D u_texture_icon;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;varying vec4 v_data0;varying vec4 v_data1; -#pragma mapbox: define highp vec4 fill_color -#pragma mapbox: define highp vec4 halo_color -#pragma mapbox: define lowp float opacity -#pragma mapbox: define lowp float halo_width -#pragma mapbox: define lowp float halo_blur -void main() { -#pragma mapbox: initialize highp vec4 fill_color -#pragma mapbox: initialize highp vec4 halo_color -#pragma mapbox: initialize lowp float opacity -#pragma mapbox: initialize lowp float halo_width -#pragma mapbox: initialize lowp float halo_blur -float fade_opacity=v_data1[2];if (v_data1.w==ICON) {vec2 tex_icon=v_data0.zw;lowp float alpha=opacity*fade_opacity;gl_FragColor=texture2D(u_texture_icon,tex_icon)*alpha; -#ifdef OVERDRAW_INSPECTOR -gl_FragColor=vec4(1.0); -#endif -return;}vec2 tex=v_data0.xy;float EDGE_GAMMA=0.105/u_device_pixel_ratio;float gamma_scale=v_data1.x;float size=v_data1.y;float fontScale=size/24.0;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);buff=(6.0-halo_width/fontScale)/SDF_PX;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);gl_FragColor=color*(alpha*opacity*fade_opacity); -#ifdef OVERDRAW_INSPECTOR -gl_FragColor=vec4(1.0); -#endif -}`,`attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;uniform vec2 u_texsize_icon;uniform bool u_is_along_line;uniform bool u_is_variable_anchor;uniform vec2 u_translation;uniform float u_pitched_scale;varying vec4 v_data0;varying vec4 v_data1;vec4 projectTileWithElevation(vec2 posInTile,float elevation) {return u_matrix*vec4(posInTile,elevation,1.0);} -#pragma mapbox: define highp vec4 fill_color -#pragma mapbox: define highp vec4 halo_color -#pragma mapbox: define lowp float opacity -#pragma mapbox: define lowp float halo_width -#pragma mapbox: define lowp float halo_blur -void main() { -#pragma mapbox: initialize highp vec4 fill_color -#pragma mapbox: initialize highp vec4 halo_color -#pragma mapbox: initialize lowp float opacity -#pragma mapbox: initialize lowp float halo_width -#pragma mapbox: initialize lowp float halo_blur -vec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);float is_sdf=a_size[0]-2.0*a_size_min;float ele=get_elevation(a_pos);highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec2 translated_a_pos=a_pos+u_translation;vec4 projectedPoint=projectTileWithElevation(translated_a_pos,ele);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ? -camera_to_anchor_distance/u_camera_to_center_distance : -u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=size/24.0;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=projectTileWithElevation(translated_a_pos+vec2(1,0),ele);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos;if (u_is_along_line || u_is_variable_anchor) {projected_pos=vec4(a_projected_pos.xy,ele,1.0);} else if (u_pitch_with_map) {projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy+u_translation,ele,1.0);} else {projected_pos=u_label_plane_matrix*projectTileWithElevation(a_projected_pos.xy+u_translation,ele);}float z=float(u_pitch_with_map)*projected_pos.z/projected_pos.w;float projectionScaling=1.0;vec4 finalPos=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale)*projectionScaling,z,1.0);if(u_pitch_with_map) {finalPos=projectTileWithElevation(finalPos.xy,finalPos.z);}float gamma_scale=finalPos.w;gl_Position=finalPos;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float visibility=calculate_visibility(projectedPoint);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(visibility,fade_opacity[0]+fade_change));v_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec4(gamma_scale,size,interpolated_fade_opacity,is_sdf);}`),terrain:At("uniform sampler2D u_texture;uniform vec4 u_fog_color;uniform vec4 u_horizon_color;uniform float u_fog_ground_blend;uniform float u_fog_ground_blend_opacity;uniform float u_horizon_fog_blend;varying vec2 v_texture_pos;varying float v_fog_depth;const float gamma=2.2;vec4 gammaToLinear(vec4 color) {return pow(color,vec4(gamma));}vec4 linearToGamma(vec4 color) {return pow(color,vec4(1.0/gamma));}void main() {vec4 surface_color=texture2D(u_texture,v_texture_pos);if (v_fog_depth > u_fog_ground_blend) {vec4 surface_color_linear=gammaToLinear(surface_color);float blend_color=smoothstep(0.0,1.0,max((v_fog_depth-u_horizon_fog_blend)/(1.0-u_horizon_fog_blend),0.0));vec4 fog_horizon_color_linear=mix(gammaToLinear(u_fog_color),gammaToLinear(u_horizon_color),blend_color);float factor_fog=max(v_fog_depth-u_fog_ground_blend,0.0)/(1.0-u_fog_ground_blend);gl_FragColor=linearToGamma(mix(surface_color_linear,fog_horizon_color_linear,pow(factor_fog,2.0)*u_fog_ground_blend_opacity));} else {gl_FragColor=surface_color;}}","attribute vec3 a_pos3d;uniform mat4 u_matrix;uniform mat4 u_fog_matrix;uniform float u_ele_delta;varying vec2 v_texture_pos;varying float v_fog_depth;void main() {float ele=get_elevation(a_pos3d.xy);float ele_delta=a_pos3d.z==1.0 ? u_ele_delta : 0.0;v_texture_pos=a_pos3d.xy/8192.0;gl_Position=u_matrix*vec4(a_pos3d.xy,ele-ele_delta,1.0);vec4 pos=u_fog_matrix*vec4(a_pos3d.xy,ele,1.0);v_fog_depth=pos.z/pos.w*0.5+0.5;}"),terrainDepth:At("varying float v_depth;const highp vec4 bitSh=vec4(256.*256.*256.,256.*256.,256.,1.);const highp vec4 bitMsk=vec4(0.,vec3(1./256.0));highp vec4 pack(highp float value) {highp vec4 comp=fract(value*bitSh);comp-=comp.xxyz*bitMsk;return comp;}void main() {gl_FragColor=pack(v_depth);}","attribute vec3 a_pos3d;uniform mat4 u_matrix;uniform float u_ele_delta;varying float v_depth;void main() {float ele=get_elevation(a_pos3d.xy);float ele_delta=a_pos3d.z==1.0 ? u_ele_delta : 0.0;gl_Position=u_matrix*vec4(a_pos3d.xy,ele-ele_delta,1.0);v_depth=gl_Position.z/gl_Position.w;}"),terrainCoords:At("precision mediump float;uniform sampler2D u_texture;uniform float u_terrain_coords_id;varying vec2 v_texture_pos;void main() {vec4 rgba=texture2D(u_texture,v_texture_pos);gl_FragColor=vec4(rgba.r,rgba.g,rgba.b,u_terrain_coords_id);}","attribute vec3 a_pos3d;uniform mat4 u_matrix;uniform float u_ele_delta;varying vec2 v_texture_pos;void main() {float ele=get_elevation(a_pos3d.xy);float ele_delta=a_pos3d.z==1.0 ? u_ele_delta : 0.0;v_texture_pos=a_pos3d.xy/8192.0;gl_Position=u_matrix*vec4(a_pos3d.xy,ele-ele_delta,1.0);}"),sky:At("uniform vec4 u_sky_color;uniform vec4 u_horizon_color;uniform float u_horizon;uniform float u_sky_horizon_blend;void main() {float y=gl_FragCoord.y;if (y > u_horizon) {float blend=y-u_horizon;if (blend < u_sky_horizon_blend) {gl_FragColor=mix(u_sky_color,u_horizon_color,pow(1.0-blend/u_sky_horizon_blend,2.0));} else {gl_FragColor=u_sky_color;}}}","attribute vec2 a_pos;void main() {gl_Position=vec4(a_pos,1.0,1.0);}")};function At(ze,L){const ne=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,Te=L.match(/attribute ([\w]+) ([\w]+)/g),Se=ze.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),Re=L.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),ft=Re?Re.concat(Se):Se,xt={};return{fragmentSource:ze=ze.replace(ne,(Dt,er,fr,pr,Br)=>(xt[Br]=!0,er==="define"?` -#ifndef HAS_UNIFORM_u_${Br} -varying ${fr} ${pr} ${Br}; -#else -uniform ${fr} ${pr} u_${Br}; -#endif -`:` -#ifdef HAS_UNIFORM_u_${Br} - ${fr} ${pr} ${Br} = u_${Br}; -#endif -`)),vertexSource:L=L.replace(ne,(Dt,er,fr,pr,Br)=>{const ea=pr==="float"?"vec2":"vec4",Ve=Br.match(/color/)?"color":ea;return xt[Br]?er==="define"?` -#ifndef HAS_UNIFORM_u_${Br} -uniform lowp float u_${Br}_t; -attribute ${fr} ${ea} a_${Br}; -varying ${fr} ${pr} ${Br}; -#else -uniform ${fr} ${pr} u_${Br}; -#endif -`:Ve==="vec4"?` -#ifndef HAS_UNIFORM_u_${Br} - ${Br} = a_${Br}; -#else - ${fr} ${pr} ${Br} = u_${Br}; -#endif -`:` -#ifndef HAS_UNIFORM_u_${Br} - ${Br} = unpack_mix_${Ve}(a_${Br}, u_${Br}_t); -#else - ${fr} ${pr} ${Br} = u_${Br}; -#endif -`:er==="define"?` -#ifndef HAS_UNIFORM_u_${Br} -uniform lowp float u_${Br}_t; -attribute ${fr} ${ea} a_${Br}; -#else -uniform ${fr} ${pr} u_${Br}; -#endif -`:Ve==="vec4"?` -#ifndef HAS_UNIFORM_u_${Br} - ${fr} ${pr} ${Br} = a_${Br}; -#else - ${fr} ${pr} ${Br} = u_${Br}; -#endif -`:` -#ifndef HAS_UNIFORM_u_${Br} - ${fr} ${pr} ${Br} = unpack_mix_${Ve}(a_${Br}, u_${Br}_t); -#else - ${fr} ${pr} ${Br} = u_${Br}; -#endif -`}),staticAttributes:Te,staticUniforms:ft}}class or{constructor(){this.boundProgram=null,this.boundLayoutVertexBuffer=null,this.boundPaintVertexBuffers=[],this.boundIndexBuffer=null,this.boundVertexOffset=null,this.boundDynamicVertexBuffer=null,this.vao=null}bind(L,ne,Te,Se,Re,ft,xt,Dt,er){this.context=L;let fr=this.boundPaintVertexBuffers.length!==Se.length;for(let pr=0;!fr&&pr({u_matrix:ze,u_texture:0,u_ele_delta:L,u_fog_matrix:ne,u_fog_color:Te?Te.properties.get("fog-color"):t.aM.white,u_fog_ground_blend:Te?Te.properties.get("fog-ground-blend"):1,u_fog_ground_blend_opacity:Te?Te.calculateFogBlendOpacity(Se):0,u_horizon_color:Te?Te.properties.get("horizon-color"):t.aM.white,u_horizon_fog_blend:Te?Te.properties.get("horizon-fog-blend"):1});function oa(ze){const L=[];for(let ne=0;ne({u_depth:new t.aH(cr,gr.u_depth),u_terrain:new t.aH(cr,gr.u_terrain),u_terrain_dim:new t.aI(cr,gr.u_terrain_dim),u_terrain_matrix:new t.aJ(cr,gr.u_terrain_matrix),u_terrain_unpack:new t.aK(cr,gr.u_terrain_unpack),u_terrain_exaggeration:new t.aI(cr,gr.u_terrain_exaggeration)}))(L,nr),this.binderUniforms=Te?Te.getUniforms(L,nr):[]}draw(L,ne,Te,Se,Re,ft,xt,Dt,er,fr,pr,Br,ea,Ve,Ye,it,vt,St){const _t=L.gl;if(this.failedToCreate)return;if(L.program.set(this.program),L.setDepthMode(Te),L.setStencilMode(Se),L.setColorMode(Re),L.setCullFace(ft),Dt){L.activeTexture.set(_t.TEXTURE2),_t.bindTexture(_t.TEXTURE_2D,Dt.depthTexture),L.activeTexture.set(_t.TEXTURE3),_t.bindTexture(_t.TEXTURE_2D,Dt.texture);for(const nr in this.terrainUniforms)this.terrainUniforms[nr].set(Dt[nr])}for(const nr in this.fixedUniforms)this.fixedUniforms[nr].set(xt[nr]);Ye&&Ye.setUniforms(L,this.binderUniforms,ea,{zoom:Ve});let Lt=0;switch(ne){case _t.LINES:Lt=2;break;case _t.TRIANGLES:Lt=3;break;case _t.LINE_STRIP:Lt=1}for(const nr of Br.get()){const cr=nr.vaos||(nr.vaos={});(cr[er]||(cr[er]=new or)).bind(L,this,fr,Ye?Ye.getPaintVertexBuffers():[],pr,nr.vertexOffset,it,vt,St),_t.drawElements(ne,nr.primitiveLength*Lt,_t.UNSIGNED_SHORT,nr.primitiveOffset*Lt*2)}}}function Sa(ze,L,ne){const Te=1/Ia(ne,1,L.transform.tileZoom),Se=Math.pow(2,ne.tileID.overscaledZ),Re=ne.tileSize*Math.pow(2,L.transform.tileZoom)/Se,ft=Re*(ne.tileID.canonical.x+ne.tileID.wrap*Se),xt=Re*ne.tileID.canonical.y;return{u_image:0,u_texsize:ne.imageAtlasTexture.size,u_scale:[Te,ze.fromScale,ze.toScale],u_fade:ze.t,u_pixel_coord_upper:[ft>>16,xt>>16],u_pixel_coord_lower:[65535&ft,65535&xt]}}const za=(ze,L,ne,Te)=>{const Se=L.style.light,Re=Se.properties.get("position"),ft=[Re.x,Re.y,Re.z],xt=function(){var er=new t.A(9);return t.A!=Float32Array&&(er[1]=0,er[2]=0,er[3]=0,er[5]=0,er[6]=0,er[7]=0),er[0]=1,er[4]=1,er[8]=1,er}();Se.properties.get("anchor")==="viewport"&&function(er,fr){var pr=Math.sin(fr),Br=Math.cos(fr);er[0]=Br,er[1]=pr,er[2]=0,er[3]=-pr,er[4]=Br,er[5]=0,er[6]=0,er[7]=0,er[8]=1}(xt,-L.transform.angle),function(er,fr,pr){var Br=fr[0],ea=fr[1],Ve=fr[2];er[0]=Br*pr[0]+ea*pr[3]+Ve*pr[6],er[1]=Br*pr[1]+ea*pr[4]+Ve*pr[7],er[2]=Br*pr[2]+ea*pr[5]+Ve*pr[8]}(ft,ft,xt);const Dt=Se.properties.get("color");return{u_matrix:ze,u_lightpos:ft,u_lightintensity:Se.properties.get("intensity"),u_lightcolor:[Dt.r,Dt.g,Dt.b],u_vertical_gradient:+ne,u_opacity:Te}},ra=(ze,L,ne,Te,Se,Re,ft)=>t.e(za(ze,L,ne,Te),Sa(Re,L,ft),{u_height_factor:-Math.pow(2,Se.overscaledZ)/ft.tileSize/8}),Ta=ze=>({u_matrix:ze}),Fn=(ze,L,ne,Te)=>t.e(Ta(ze),Sa(ne,L,Te)),mn=(ze,L)=>({u_matrix:ze,u_world:L}),Kn=(ze,L,ne,Te,Se)=>t.e(Fn(ze,L,ne,Te),{u_world:Se}),ui=(ze,L,ne,Te)=>{const Se=ze.transform;let Re,ft;if(Te.paint.get("circle-pitch-alignment")==="map"){const xt=Ia(ne,1,Se.zoom);Re=!0,ft=[xt,xt]}else Re=!1,ft=Se.pixelsToGLUnits;return{u_camera_to_center_distance:Se.cameraToCenterDistance,u_scale_with_map:+(Te.paint.get("circle-pitch-scale")==="map"),u_matrix:ze.translatePosMatrix(L.posMatrix,ne,Te.paint.get("circle-translate"),Te.paint.get("circle-translate-anchor")),u_pitch_with_map:+Re,u_device_pixel_ratio:ze.pixelRatio,u_extrude_scale:ft}},pi=(ze,L,ne)=>({u_matrix:ze,u_inv_matrix:L,u_camera_to_center_distance:ne.cameraToCenterDistance,u_viewport_size:[ne.width,ne.height]}),vi=(ze,L,ne=1)=>({u_matrix:ze,u_color:L,u_overlay:0,u_overlay_scale:ne}),Li=ze=>({u_matrix:ze}),Ni=(ze,L,ne,Te)=>({u_matrix:ze,u_extrude_scale:Ia(L,1,ne),u_intensity:Te}),ci=(ze,L,ne,Te)=>{const Se=t.H();t.aP(Se,0,ze.width,ze.height,0,0,1);const Re=ze.context.gl;return{u_matrix:Se,u_world:[Re.drawingBufferWidth,Re.drawingBufferHeight],u_image:ne,u_color_ramp:Te,u_opacity:L.paint.get("heatmap-opacity")}};function bi(ze,L){const ne=Math.pow(2,L.canonical.z),Te=L.canonical.y;return[new t.Z(0,Te/ne).toLngLat().lat,new t.Z(0,(Te+1)/ne).toLngLat().lat]}const ho=(ze,L,ne,Te)=>{const Se=ze.transform;return{u_matrix:Ri(ze,L,ne,Te),u_ratio:1/Ia(L,1,Se.zoom),u_device_pixel_ratio:ze.pixelRatio,u_units_to_pixels:[1/Se.pixelsToGLUnits[0],1/Se.pixelsToGLUnits[1]]}},Bo=(ze,L,ne,Te,Se)=>t.e(ho(ze,L,ne,Se),{u_image:0,u_image_height:Te}),gs=(ze,L,ne,Te,Se)=>{const Re=ze.transform,ft=Ei(L,Re);return{u_matrix:Ri(ze,L,ne,Se),u_texsize:L.imageAtlasTexture.size,u_ratio:1/Ia(L,1,Re.zoom),u_device_pixel_ratio:ze.pixelRatio,u_image:0,u_scale:[ft,Te.fromScale,Te.toScale],u_fade:Te.t,u_units_to_pixels:[1/Re.pixelsToGLUnits[0],1/Re.pixelsToGLUnits[1]]}},ro=(ze,L,ne,Te,Se,Re)=>{const ft=ze.lineAtlas,xt=Ei(L,ze.transform),Dt=ne.layout.get("line-cap")==="round",er=ft.getDash(Te.from,Dt),fr=ft.getDash(Te.to,Dt),pr=er.width*Se.fromScale,Br=fr.width*Se.toScale;return t.e(ho(ze,L,ne,Re),{u_patternscale_a:[xt/pr,-er.height/2],u_patternscale_b:[xt/Br,-fr.height/2],u_sdfgamma:ft.width/(256*Math.min(pr,Br)*ze.pixelRatio)/2,u_image:0,u_tex_y_a:er.y,u_tex_y_b:fr.y,u_mix:Se.t})};function Ei(ze,L){return 1/Ia(ze,1,L.tileZoom)}function Ri(ze,L,ne,Te){return ze.translatePosMatrix(Te?Te.posMatrix:L.tileID.posMatrix,L,ne.paint.get("line-translate"),ne.paint.get("line-translate-anchor"))}const xo=(ze,L,ne,Te,Se)=>{return{u_matrix:ze,u_tl_parent:L,u_scale_parent:ne,u_buffer_scale:1,u_fade_t:Te.mix,u_opacity:Te.opacity*Se.paint.get("raster-opacity"),u_image0:0,u_image1:1,u_brightness_low:Se.paint.get("raster-brightness-min"),u_brightness_high:Se.paint.get("raster-brightness-max"),u_saturation_factor:(ft=Se.paint.get("raster-saturation"),ft>0?1-1/(1.001-ft):-ft),u_contrast_factor:(Re=Se.paint.get("raster-contrast"),Re>0?1/(1-Re):1+Re),u_spin_weights:So(Se.paint.get("raster-hue-rotate"))};var Re,ft};function So(ze){ze*=Math.PI/180;const L=Math.sin(ze),ne=Math.cos(ze);return[(2*ne+1)/3,(-Math.sqrt(3)*L-ne+1)/3,(Math.sqrt(3)*L-ne+1)/3]}const bo=(ze,L,ne,Te,Se,Re,ft,xt,Dt,er,fr,pr,Br,ea)=>{const Ve=ft.transform;return{u_is_size_zoom_constant:+(ze==="constant"||ze==="source"),u_is_size_feature_constant:+(ze==="constant"||ze==="camera"),u_size_t:L?L.uSizeT:0,u_size:L?L.uSize:0,u_camera_to_center_distance:Ve.cameraToCenterDistance,u_pitch:Ve.pitch/360*2*Math.PI,u_rotate_symbol:+ne,u_aspect_ratio:Ve.width/Ve.height,u_fade_change:ft.options.fadeDuration?ft.symbolFadeChange:1,u_matrix:xt,u_label_plane_matrix:Dt,u_coord_matrix:er,u_is_text:+pr,u_pitch_with_map:+Te,u_is_along_line:Se,u_is_variable_anchor:Re,u_texsize:Br,u_texture:0,u_translation:fr,u_pitched_scale:ea}},Ui=(ze,L,ne,Te,Se,Re,ft,xt,Dt,er,fr,pr,Br,ea,Ve)=>{const Ye=ft.transform;return t.e(bo(ze,L,ne,Te,Se,Re,ft,xt,Dt,er,fr,pr,Br,Ve),{u_gamma_scale:Te?Math.cos(Ye._pitch)*Ye.cameraToCenterDistance:1,u_device_pixel_ratio:ft.pixelRatio,u_is_halo:1})},no=(ze,L,ne,Te,Se,Re,ft,xt,Dt,er,fr,pr,Br,ea)=>t.e(Ui(ze,L,ne,Te,Se,Re,ft,xt,Dt,er,fr,!0,pr,!0,ea),{u_texsize_icon:Br,u_texture_icon:1}),cs=(ze,L,ne)=>({u_matrix:ze,u_opacity:L,u_color:ne}),ks=(ze,L,ne,Te,Se,Re)=>t.e(function(ft,xt,Dt,er){const fr=Dt.imageManager.getPattern(ft.from.toString()),pr=Dt.imageManager.getPattern(ft.to.toString()),{width:Br,height:ea}=Dt.imageManager.getPixelSize(),Ve=Math.pow(2,er.tileID.overscaledZ),Ye=er.tileSize*Math.pow(2,Dt.transform.tileZoom)/Ve,it=Ye*(er.tileID.canonical.x+er.tileID.wrap*Ve),vt=Ye*er.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:fr.tl,u_pattern_br_a:fr.br,u_pattern_tl_b:pr.tl,u_pattern_br_b:pr.br,u_texsize:[Br,ea],u_mix:xt.t,u_pattern_size_a:fr.displaySize,u_pattern_size_b:pr.displaySize,u_scale_a:xt.fromScale,u_scale_b:xt.toScale,u_tile_units_to_pixels:1/Ia(er,1,Dt.transform.tileZoom),u_pixel_coord_upper:[it>>16,vt>>16],u_pixel_coord_lower:[65535&it,65535&vt]}}(Te,Re,ne,Se),{u_matrix:ze,u_opacity:L}),ms={fillExtrusion:(ze,L)=>({u_matrix:new t.aJ(ze,L.u_matrix),u_lightpos:new t.aN(ze,L.u_lightpos),u_lightintensity:new t.aI(ze,L.u_lightintensity),u_lightcolor:new t.aN(ze,L.u_lightcolor),u_vertical_gradient:new t.aI(ze,L.u_vertical_gradient),u_opacity:new t.aI(ze,L.u_opacity)}),fillExtrusionPattern:(ze,L)=>({u_matrix:new t.aJ(ze,L.u_matrix),u_lightpos:new t.aN(ze,L.u_lightpos),u_lightintensity:new t.aI(ze,L.u_lightintensity),u_lightcolor:new t.aN(ze,L.u_lightcolor),u_vertical_gradient:new t.aI(ze,L.u_vertical_gradient),u_height_factor:new t.aI(ze,L.u_height_factor),u_image:new t.aH(ze,L.u_image),u_texsize:new t.aO(ze,L.u_texsize),u_pixel_coord_upper:new t.aO(ze,L.u_pixel_coord_upper),u_pixel_coord_lower:new t.aO(ze,L.u_pixel_coord_lower),u_scale:new t.aN(ze,L.u_scale),u_fade:new t.aI(ze,L.u_fade),u_opacity:new t.aI(ze,L.u_opacity)}),fill:(ze,L)=>({u_matrix:new t.aJ(ze,L.u_matrix)}),fillPattern:(ze,L)=>({u_matrix:new t.aJ(ze,L.u_matrix),u_image:new t.aH(ze,L.u_image),u_texsize:new t.aO(ze,L.u_texsize),u_pixel_coord_upper:new t.aO(ze,L.u_pixel_coord_upper),u_pixel_coord_lower:new t.aO(ze,L.u_pixel_coord_lower),u_scale:new t.aN(ze,L.u_scale),u_fade:new t.aI(ze,L.u_fade)}),fillOutline:(ze,L)=>({u_matrix:new t.aJ(ze,L.u_matrix),u_world:new t.aO(ze,L.u_world)}),fillOutlinePattern:(ze,L)=>({u_matrix:new t.aJ(ze,L.u_matrix),u_world:new t.aO(ze,L.u_world),u_image:new t.aH(ze,L.u_image),u_texsize:new t.aO(ze,L.u_texsize),u_pixel_coord_upper:new t.aO(ze,L.u_pixel_coord_upper),u_pixel_coord_lower:new t.aO(ze,L.u_pixel_coord_lower),u_scale:new t.aN(ze,L.u_scale),u_fade:new t.aI(ze,L.u_fade)}),circle:(ze,L)=>({u_camera_to_center_distance:new t.aI(ze,L.u_camera_to_center_distance),u_scale_with_map:new t.aH(ze,L.u_scale_with_map),u_pitch_with_map:new t.aH(ze,L.u_pitch_with_map),u_extrude_scale:new t.aO(ze,L.u_extrude_scale),u_device_pixel_ratio:new t.aI(ze,L.u_device_pixel_ratio),u_matrix:new t.aJ(ze,L.u_matrix)}),collisionBox:(ze,L)=>({u_matrix:new t.aJ(ze,L.u_matrix),u_pixel_extrude_scale:new t.aO(ze,L.u_pixel_extrude_scale)}),collisionCircle:(ze,L)=>({u_matrix:new t.aJ(ze,L.u_matrix),u_inv_matrix:new t.aJ(ze,L.u_inv_matrix),u_camera_to_center_distance:new t.aI(ze,L.u_camera_to_center_distance),u_viewport_size:new t.aO(ze,L.u_viewport_size)}),debug:(ze,L)=>({u_color:new t.aL(ze,L.u_color),u_matrix:new t.aJ(ze,L.u_matrix),u_overlay:new t.aH(ze,L.u_overlay),u_overlay_scale:new t.aI(ze,L.u_overlay_scale)}),clippingMask:(ze,L)=>({u_matrix:new t.aJ(ze,L.u_matrix)}),heatmap:(ze,L)=>({u_extrude_scale:new t.aI(ze,L.u_extrude_scale),u_intensity:new t.aI(ze,L.u_intensity),u_matrix:new t.aJ(ze,L.u_matrix)}),heatmapTexture:(ze,L)=>({u_matrix:new t.aJ(ze,L.u_matrix),u_world:new t.aO(ze,L.u_world),u_image:new t.aH(ze,L.u_image),u_color_ramp:new t.aH(ze,L.u_color_ramp),u_opacity:new t.aI(ze,L.u_opacity)}),hillshade:(ze,L)=>({u_matrix:new t.aJ(ze,L.u_matrix),u_image:new t.aH(ze,L.u_image),u_latrange:new t.aO(ze,L.u_latrange),u_light:new t.aO(ze,L.u_light),u_shadow:new t.aL(ze,L.u_shadow),u_highlight:new t.aL(ze,L.u_highlight),u_accent:new t.aL(ze,L.u_accent)}),hillshadePrepare:(ze,L)=>({u_matrix:new t.aJ(ze,L.u_matrix),u_image:new t.aH(ze,L.u_image),u_dimension:new t.aO(ze,L.u_dimension),u_zoom:new t.aI(ze,L.u_zoom),u_unpack:new t.aK(ze,L.u_unpack)}),line:(ze,L)=>({u_matrix:new t.aJ(ze,L.u_matrix),u_ratio:new t.aI(ze,L.u_ratio),u_device_pixel_ratio:new t.aI(ze,L.u_device_pixel_ratio),u_units_to_pixels:new t.aO(ze,L.u_units_to_pixels)}),lineGradient:(ze,L)=>({u_matrix:new t.aJ(ze,L.u_matrix),u_ratio:new t.aI(ze,L.u_ratio),u_device_pixel_ratio:new t.aI(ze,L.u_device_pixel_ratio),u_units_to_pixels:new t.aO(ze,L.u_units_to_pixels),u_image:new t.aH(ze,L.u_image),u_image_height:new t.aI(ze,L.u_image_height)}),linePattern:(ze,L)=>({u_matrix:new t.aJ(ze,L.u_matrix),u_texsize:new t.aO(ze,L.u_texsize),u_ratio:new t.aI(ze,L.u_ratio),u_device_pixel_ratio:new t.aI(ze,L.u_device_pixel_ratio),u_image:new t.aH(ze,L.u_image),u_units_to_pixels:new t.aO(ze,L.u_units_to_pixels),u_scale:new t.aN(ze,L.u_scale),u_fade:new t.aI(ze,L.u_fade)}),lineSDF:(ze,L)=>({u_matrix:new t.aJ(ze,L.u_matrix),u_ratio:new t.aI(ze,L.u_ratio),u_device_pixel_ratio:new t.aI(ze,L.u_device_pixel_ratio),u_units_to_pixels:new t.aO(ze,L.u_units_to_pixels),u_patternscale_a:new t.aO(ze,L.u_patternscale_a),u_patternscale_b:new t.aO(ze,L.u_patternscale_b),u_sdfgamma:new t.aI(ze,L.u_sdfgamma),u_image:new t.aH(ze,L.u_image),u_tex_y_a:new t.aI(ze,L.u_tex_y_a),u_tex_y_b:new t.aI(ze,L.u_tex_y_b),u_mix:new t.aI(ze,L.u_mix)}),raster:(ze,L)=>({u_matrix:new t.aJ(ze,L.u_matrix),u_tl_parent:new t.aO(ze,L.u_tl_parent),u_scale_parent:new t.aI(ze,L.u_scale_parent),u_buffer_scale:new t.aI(ze,L.u_buffer_scale),u_fade_t:new t.aI(ze,L.u_fade_t),u_opacity:new t.aI(ze,L.u_opacity),u_image0:new t.aH(ze,L.u_image0),u_image1:new t.aH(ze,L.u_image1),u_brightness_low:new t.aI(ze,L.u_brightness_low),u_brightness_high:new t.aI(ze,L.u_brightness_high),u_saturation_factor:new t.aI(ze,L.u_saturation_factor),u_contrast_factor:new t.aI(ze,L.u_contrast_factor),u_spin_weights:new t.aN(ze,L.u_spin_weights)}),symbolIcon:(ze,L)=>({u_is_size_zoom_constant:new t.aH(ze,L.u_is_size_zoom_constant),u_is_size_feature_constant:new t.aH(ze,L.u_is_size_feature_constant),u_size_t:new t.aI(ze,L.u_size_t),u_size:new t.aI(ze,L.u_size),u_camera_to_center_distance:new t.aI(ze,L.u_camera_to_center_distance),u_pitch:new t.aI(ze,L.u_pitch),u_rotate_symbol:new t.aH(ze,L.u_rotate_symbol),u_aspect_ratio:new t.aI(ze,L.u_aspect_ratio),u_fade_change:new t.aI(ze,L.u_fade_change),u_matrix:new t.aJ(ze,L.u_matrix),u_label_plane_matrix:new t.aJ(ze,L.u_label_plane_matrix),u_coord_matrix:new t.aJ(ze,L.u_coord_matrix),u_is_text:new t.aH(ze,L.u_is_text),u_pitch_with_map:new t.aH(ze,L.u_pitch_with_map),u_is_along_line:new t.aH(ze,L.u_is_along_line),u_is_variable_anchor:new t.aH(ze,L.u_is_variable_anchor),u_texsize:new t.aO(ze,L.u_texsize),u_texture:new t.aH(ze,L.u_texture),u_translation:new t.aO(ze,L.u_translation),u_pitched_scale:new t.aI(ze,L.u_pitched_scale)}),symbolSDF:(ze,L)=>({u_is_size_zoom_constant:new t.aH(ze,L.u_is_size_zoom_constant),u_is_size_feature_constant:new t.aH(ze,L.u_is_size_feature_constant),u_size_t:new t.aI(ze,L.u_size_t),u_size:new t.aI(ze,L.u_size),u_camera_to_center_distance:new t.aI(ze,L.u_camera_to_center_distance),u_pitch:new t.aI(ze,L.u_pitch),u_rotate_symbol:new t.aH(ze,L.u_rotate_symbol),u_aspect_ratio:new t.aI(ze,L.u_aspect_ratio),u_fade_change:new t.aI(ze,L.u_fade_change),u_matrix:new t.aJ(ze,L.u_matrix),u_label_plane_matrix:new t.aJ(ze,L.u_label_plane_matrix),u_coord_matrix:new t.aJ(ze,L.u_coord_matrix),u_is_text:new t.aH(ze,L.u_is_text),u_pitch_with_map:new t.aH(ze,L.u_pitch_with_map),u_is_along_line:new t.aH(ze,L.u_is_along_line),u_is_variable_anchor:new t.aH(ze,L.u_is_variable_anchor),u_texsize:new t.aO(ze,L.u_texsize),u_texture:new t.aH(ze,L.u_texture),u_gamma_scale:new t.aI(ze,L.u_gamma_scale),u_device_pixel_ratio:new t.aI(ze,L.u_device_pixel_ratio),u_is_halo:new t.aH(ze,L.u_is_halo),u_translation:new t.aO(ze,L.u_translation),u_pitched_scale:new t.aI(ze,L.u_pitched_scale)}),symbolTextAndIcon:(ze,L)=>({u_is_size_zoom_constant:new t.aH(ze,L.u_is_size_zoom_constant),u_is_size_feature_constant:new t.aH(ze,L.u_is_size_feature_constant),u_size_t:new t.aI(ze,L.u_size_t),u_size:new t.aI(ze,L.u_size),u_camera_to_center_distance:new t.aI(ze,L.u_camera_to_center_distance),u_pitch:new t.aI(ze,L.u_pitch),u_rotate_symbol:new t.aH(ze,L.u_rotate_symbol),u_aspect_ratio:new t.aI(ze,L.u_aspect_ratio),u_fade_change:new t.aI(ze,L.u_fade_change),u_matrix:new t.aJ(ze,L.u_matrix),u_label_plane_matrix:new t.aJ(ze,L.u_label_plane_matrix),u_coord_matrix:new t.aJ(ze,L.u_coord_matrix),u_is_text:new t.aH(ze,L.u_is_text),u_pitch_with_map:new t.aH(ze,L.u_pitch_with_map),u_is_along_line:new t.aH(ze,L.u_is_along_line),u_is_variable_anchor:new t.aH(ze,L.u_is_variable_anchor),u_texsize:new t.aO(ze,L.u_texsize),u_texsize_icon:new t.aO(ze,L.u_texsize_icon),u_texture:new t.aH(ze,L.u_texture),u_texture_icon:new t.aH(ze,L.u_texture_icon),u_gamma_scale:new t.aI(ze,L.u_gamma_scale),u_device_pixel_ratio:new t.aI(ze,L.u_device_pixel_ratio),u_is_halo:new t.aH(ze,L.u_is_halo),u_translation:new t.aO(ze,L.u_translation),u_pitched_scale:new t.aI(ze,L.u_pitched_scale)}),background:(ze,L)=>({u_matrix:new t.aJ(ze,L.u_matrix),u_opacity:new t.aI(ze,L.u_opacity),u_color:new t.aL(ze,L.u_color)}),backgroundPattern:(ze,L)=>({u_matrix:new t.aJ(ze,L.u_matrix),u_opacity:new t.aI(ze,L.u_opacity),u_image:new t.aH(ze,L.u_image),u_pattern_tl_a:new t.aO(ze,L.u_pattern_tl_a),u_pattern_br_a:new t.aO(ze,L.u_pattern_br_a),u_pattern_tl_b:new t.aO(ze,L.u_pattern_tl_b),u_pattern_br_b:new t.aO(ze,L.u_pattern_br_b),u_texsize:new t.aO(ze,L.u_texsize),u_mix:new t.aI(ze,L.u_mix),u_pattern_size_a:new t.aO(ze,L.u_pattern_size_a),u_pattern_size_b:new t.aO(ze,L.u_pattern_size_b),u_scale_a:new t.aI(ze,L.u_scale_a),u_scale_b:new t.aI(ze,L.u_scale_b),u_pixel_coord_upper:new t.aO(ze,L.u_pixel_coord_upper),u_pixel_coord_lower:new t.aO(ze,L.u_pixel_coord_lower),u_tile_units_to_pixels:new t.aI(ze,L.u_tile_units_to_pixels)}),terrain:(ze,L)=>({u_matrix:new t.aJ(ze,L.u_matrix),u_texture:new t.aH(ze,L.u_texture),u_ele_delta:new t.aI(ze,L.u_ele_delta),u_fog_matrix:new t.aJ(ze,L.u_fog_matrix),u_fog_color:new t.aL(ze,L.u_fog_color),u_fog_ground_blend:new t.aI(ze,L.u_fog_ground_blend),u_fog_ground_blend_opacity:new t.aI(ze,L.u_fog_ground_blend_opacity),u_horizon_color:new t.aL(ze,L.u_horizon_color),u_horizon_fog_blend:new t.aI(ze,L.u_horizon_fog_blend)}),terrainDepth:(ze,L)=>({u_matrix:new t.aJ(ze,L.u_matrix),u_ele_delta:new t.aI(ze,L.u_ele_delta)}),terrainCoords:(ze,L)=>({u_matrix:new t.aJ(ze,L.u_matrix),u_texture:new t.aH(ze,L.u_texture),u_terrain_coords_id:new t.aI(ze,L.u_terrain_coords_id),u_ele_delta:new t.aI(ze,L.u_ele_delta)}),sky:(ze,L)=>({u_sky_color:new t.aL(ze,L.u_sky_color),u_horizon_color:new t.aL(ze,L.u_horizon_color),u_horizon:new t.aI(ze,L.u_horizon),u_sky_horizon_blend:new t.aI(ze,L.u_sky_horizon_blend)})};class Mo{constructor(L,ne,Te){this.context=L;const Se=L.gl;this.buffer=Se.createBuffer(),this.dynamicDraw=!!Te,this.context.unbindVAO(),L.bindElementBuffer.set(this.buffer),Se.bufferData(Se.ELEMENT_ARRAY_BUFFER,ne.arrayBuffer,this.dynamicDraw?Se.DYNAMIC_DRAW:Se.STATIC_DRAW),this.dynamicDraw||delete ne.arrayBuffer}bind(){this.context.bindElementBuffer.set(this.buffer)}updateData(L){const ne=this.context.gl;if(!this.dynamicDraw)throw new Error("Attempted to update data while not in dynamic mode.");this.context.unbindVAO(),this.bind(),ne.bufferSubData(ne.ELEMENT_ARRAY_BUFFER,0,L.arrayBuffer)}destroy(){this.buffer&&(this.context.gl.deleteBuffer(this.buffer),delete this.buffer)}}const kn={Int8:"BYTE",Uint8:"UNSIGNED_BYTE",Int16:"SHORT",Uint16:"UNSIGNED_SHORT",Int32:"INT",Uint32:"UNSIGNED_INT",Float32:"FLOAT"};class fi{constructor(L,ne,Te,Se){this.length=ne.length,this.attributes=Te,this.itemSize=ne.bytesPerElement,this.dynamicDraw=Se,this.context=L;const Re=L.gl;this.buffer=Re.createBuffer(),L.bindVertexBuffer.set(this.buffer),Re.bufferData(Re.ARRAY_BUFFER,ne.arrayBuffer,this.dynamicDraw?Re.DYNAMIC_DRAW:Re.STATIC_DRAW),this.dynamicDraw||delete ne.arrayBuffer}bind(){this.context.bindVertexBuffer.set(this.buffer)}updateData(L){if(L.length!==this.length)throw new Error(`Length of new data is ${L.length}, which doesn't match current length of ${this.length}`);const ne=this.context.gl;this.bind(),ne.bufferSubData(ne.ARRAY_BUFFER,0,L.arrayBuffer)}enableAttributes(L,ne){for(let Te=0;Te0){const cr=t.H();t.aQ(cr,_t.placementInvProjMatrix,ze.transform.glCoordMatrix),t.aQ(cr,cr,_t.placementViewportMatrix),Dt.push({circleArray:nr,circleOffset:fr,transform:St.posMatrix,invTransform:cr,coord:St}),er+=nr.length/4,fr=er}Lt&&xt.draw(Re,ft.LINES,zo.disabled,is.disabled,ze.colorModeForRenderPass(),Bi.disabled,{u_matrix:St.posMatrix,u_pixel_extrude_scale:[1/(pr=ze.transform).width,1/pr.height]},ze.style.map.terrain&&ze.style.map.terrain.getTerrainData(St),ne.id,Lt.layoutVertexBuffer,Lt.indexBuffer,Lt.segments,null,ze.transform.zoom,null,null,Lt.collisionVertexBuffer)}var pr;if(!Se||!Dt.length)return;const Br=ze.useProgram("collisionCircle"),ea=new t.aR;ea.resize(4*er),ea._trim();let Ve=0;for(const vt of Dt)for(let St=0;St=0&&(vt[_t.associatedIconIndex]={shiftedAnchor:oi,angle:Si})}else rr(_t.numGlyphs,Ye)}if(er){it.clear();const St=ze.icon.placedSymbolArray;for(let _t=0;_tze.style.map.terrain.getElevation(va,ca,nn):null,la=ne.layout.get("text-rotation-alignment")==="map";Oe(en,va.posMatrix,ze,Se,Dl,pe,vt,er,la,Ye,va.toUnwrapped(),Ve.width,Ve.height,Le,Zr)}const gt=va.posMatrix,Tt=Se&&Cr||dt,Vt=St||Tt?dl:Dl,jt=ou,sr=In&&ne.paint.get(Se?"text-halo-width":"icon-halo-width").constantOr(1)!==0;let Pr;Pr=In?en.iconsInText?no(oi.kind,Ki,_t,vt,St,Tt,ze,gt,Vt,jt,Le,Ho,Hs,ua):Ui(oi.kind,Ki,_t,vt,St,Tt,ze,gt,Vt,jt,Le,Se,Ho,!0,ua):bo(oi.kind,Ki,_t,vt,St,Tt,ze,gt,Vt,jt,Le,Se,Ho,ua);const kr={program:_i,buffers:Pn,uniformValues:Pr,atlasTexture:Ao,atlasTextureIcon:ko,atlasInterpolation:Ko,atlasInterpolationIcon:Js,isSDF:In,hasHalo:sr};if(nr&&en.canOverlap){cr=!0;const Zr=Pn.segments.get();for(const la of Zr)Wr.push({segments:new t.a0([la]),sortKey:la.sortKey,state:kr,terrainData:Go})}else Wr.push({segments:Pn.segments,sortKey:0,state:kr,terrainData:Go})}cr&&Wr.sort((va,Ma)=>va.sortKey-Ma.sortKey);for(const va of Wr){const Ma=va.state;if(Br.activeTexture.set(ea.TEXTURE0),Ma.atlasTexture.bind(Ma.atlasInterpolation,ea.CLAMP_TO_EDGE),Ma.atlasTextureIcon&&(Br.activeTexture.set(ea.TEXTURE1),Ma.atlasTextureIcon&&Ma.atlasTextureIcon.bind(Ma.atlasInterpolationIcon,ea.CLAMP_TO_EDGE)),Ma.isSDF){const en=Ma.uniformValues;Ma.hasHalo&&(en.u_is_halo=1,Yc(Ma.buffers,va.segments,ne,ze,Ma.program,gr,fr,pr,en,va.terrainData)),en.u_is_halo=0}Yc(Ma.buffers,va.segments,ne,ze,Ma.program,gr,fr,pr,Ma.uniformValues,va.terrainData)}}function Yc(ze,L,ne,Te,Se,Re,ft,xt,Dt,er){const fr=Te.context;Se.draw(fr,fr.gl.TRIANGLES,Re,ft,xt,Bi.disabled,Dt,er,ne.id,ze.layoutVertexBuffer,ze.indexBuffer,L,ne.paint,Te.transform.zoom,ze.programConfigurations.get(ne.id),ze.dynamicLayoutVertexBuffer,ze.opacityVertexBuffer)}function Tc(ze,L,ne,Te){const Se=ze.context,Re=Se.gl,ft=is.disabled,xt=new Zs([Re.ONE,Re.ONE],t.aM.transparent,[!0,!0,!0,!0]),Dt=L.getBucket(ne);if(!Dt)return;const er=Te.key;let fr=ne.heatmapFbos.get(er);fr||(fr=Gc(Se,L.tileSize,L.tileSize),ne.heatmapFbos.set(er,fr)),Se.bindFramebuffer.set(fr.framebuffer),Se.viewport.set([0,0,L.tileSize,L.tileSize]),Se.clear({color:t.aM.transparent});const pr=Dt.programConfigurations.get(ne.id),Br=ze.useProgram("heatmap",pr),ea=ze.style.map.terrain.getTerrainData(Te);Br.draw(Se,Re.TRIANGLES,zo.disabled,ft,xt,Bi.disabled,Ni(Te.posMatrix,L,ze.transform.zoom,ne.paint.get("heatmap-intensity")),ea,ne.id,Dt.layoutVertexBuffer,Dt.indexBuffer,Dt.segments,ne.paint,ze.transform.zoom,pr)}function ec(ze,L,ne){const Te=ze.context,Se=Te.gl;Te.setColorMode(ze.colorModeForRenderPass());const Re=Hc(Te,L),ft=ne.key,xt=L.heatmapFbos.get(ft);xt&&(Te.activeTexture.set(Se.TEXTURE0),Se.bindTexture(Se.TEXTURE_2D,xt.colorAttachment.get()),Te.activeTexture.set(Se.TEXTURE1),Re.bind(Se.LINEAR,Se.CLAMP_TO_EDGE),ze.useProgram("heatmapTexture").draw(Te,Se.TRIANGLES,zo.disabled,is.disabled,ze.colorModeForRenderPass(),Bi.disabled,ci(ze,L,0,1),null,L.id,ze.rasterBoundsBuffer,ze.quadTriangleIndexBuffer,ze.rasterBoundsSegments,L.paint,ze.transform.zoom),xt.destroy(),L.heatmapFbos.delete(ft))}function Gc(ze,L,ne){var Te,Se;const Re=ze.gl,ft=Re.createTexture();Re.bindTexture(Re.TEXTURE_2D,ft),Re.texParameteri(Re.TEXTURE_2D,Re.TEXTURE_WRAP_S,Re.CLAMP_TO_EDGE),Re.texParameteri(Re.TEXTURE_2D,Re.TEXTURE_WRAP_T,Re.CLAMP_TO_EDGE),Re.texParameteri(Re.TEXTURE_2D,Re.TEXTURE_MIN_FILTER,Re.LINEAR),Re.texParameteri(Re.TEXTURE_2D,Re.TEXTURE_MAG_FILTER,Re.LINEAR);const xt=(Te=ze.HALF_FLOAT)!==null&&Te!==void 0?Te:Re.UNSIGNED_BYTE,Dt=(Se=ze.RGBA16F)!==null&&Se!==void 0?Se:Re.RGBA;Re.texImage2D(Re.TEXTURE_2D,0,Dt,L,ne,0,Re.RGBA,xt,null);const er=ze.createFramebuffer(L,ne,!1,!1);return er.colorAttachment.set(ft),er}function Hc(ze,L){return L.colorRampTexture||(L.colorRampTexture=new u(ze,L.colorRamp,ze.gl.RGBA)),L.colorRampTexture}function bu(ze,L,ne,Te,Se){if(!ne||!Te||!Te.imageAtlas)return;const Re=Te.imageAtlas.patternPositions;let ft=Re[ne.to.toString()],xt=Re[ne.from.toString()];if(!ft&&xt&&(ft=xt),!xt&&ft&&(xt=ft),!ft||!xt){const Dt=Se.getPaintProperty(L);ft=Re[Dt],xt=Re[Dt]}ft&&xt&&ze.setConstantPatternPositions(ft,xt)}function $c(ze,L,ne,Te,Se,Re,ft){const xt=ze.context.gl,Dt="fill-pattern",er=ne.paint.get(Dt),fr=er&&er.constantOr(1),pr=ne.getCrossfadeParameters();let Br,ea,Ve,Ye,it;ft?(ea=fr&&!ne.getPaintProperty("fill-outline-color")?"fillOutlinePattern":"fillOutline",Br=xt.LINES):(ea=fr?"fillPattern":"fill",Br=xt.TRIANGLES);const vt=er.constantOr(null);for(const St of Te){const _t=L.getTile(St);if(fr&&!_t.patternsLoaded())continue;const Lt=_t.getBucket(ne);if(!Lt)continue;const nr=Lt.programConfigurations.get(ne.id),cr=ze.useProgram(ea,nr),gr=ze.style.map.terrain&&ze.style.map.terrain.getTerrainData(St);fr&&(ze.context.activeTexture.set(xt.TEXTURE0),_t.imageAtlasTexture.bind(xt.LINEAR,xt.CLAMP_TO_EDGE),nr.updatePaintBuffers(pr)),bu(nr,Dt,vt,_t,ne);const Cr=gr?St:null,Wr=ze.translatePosMatrix(Cr?Cr.posMatrix:St.posMatrix,_t,ne.paint.get("fill-translate"),ne.paint.get("fill-translate-anchor"));if(ft){Ye=Lt.indexBuffer2,it=Lt.segments2;const ua=[xt.drawingBufferWidth,xt.drawingBufferHeight];Ve=ea==="fillOutlinePattern"&&fr?Kn(Wr,ze,pr,_t,ua):mn(Wr,ua)}else Ye=Lt.indexBuffer,it=Lt.segments,Ve=fr?Fn(Wr,ze,pr,_t):Ta(Wr);cr.draw(ze.context,Br,Se,ze.stencilModeForClipping(St),Re,Bi.disabled,Ve,gr,ne.id,Lt.layoutVertexBuffer,Ye,it,ne.paint,ze.transform.zoom,nr)}}function Gu(ze,L,ne,Te,Se,Re,ft){const xt=ze.context,Dt=xt.gl,er="fill-extrusion-pattern",fr=ne.paint.get(er),pr=fr.constantOr(1),Br=ne.getCrossfadeParameters(),ea=ne.paint.get("fill-extrusion-opacity"),Ve=fr.constantOr(null);for(const Ye of Te){const it=L.getTile(Ye),vt=it.getBucket(ne);if(!vt)continue;const St=ze.style.map.terrain&&ze.style.map.terrain.getTerrainData(Ye),_t=vt.programConfigurations.get(ne.id),Lt=ze.useProgram(pr?"fillExtrusionPattern":"fillExtrusion",_t);pr&&(ze.context.activeTexture.set(Dt.TEXTURE0),it.imageAtlasTexture.bind(Dt.LINEAR,Dt.CLAMP_TO_EDGE),_t.updatePaintBuffers(Br)),bu(_t,er,Ve,it,ne);const nr=ze.translatePosMatrix(Ye.posMatrix,it,ne.paint.get("fill-extrusion-translate"),ne.paint.get("fill-extrusion-translate-anchor")),cr=ne.paint.get("fill-extrusion-vertical-gradient"),gr=pr?ra(nr,ze,cr,ea,Ye,Br,it):za(nr,ze,cr,ea);Lt.draw(xt,xt.gl.TRIANGLES,Se,Re,ft,Bi.backCCW,gr,St,ne.id,vt.layoutVertexBuffer,vt.indexBuffer,vt.segments,ne.paint,ze.transform.zoom,_t,ze.style.map.terrain&&vt.centroidVertexBuffer)}}function Lu(ze,L,ne,Te,Se,Re,ft){const xt=ze.context,Dt=xt.gl,er=ne.fbo;if(!er)return;const fr=ze.useProgram("hillshade"),pr=ze.style.map.terrain&&ze.style.map.terrain.getTerrainData(L);xt.activeTexture.set(Dt.TEXTURE0),Dt.bindTexture(Dt.TEXTURE_2D,er.colorAttachment.get()),fr.draw(xt,Dt.TRIANGLES,Se,Re,ft,Bi.disabled,((Br,ea,Ve,Ye)=>{const it=Ve.paint.get("hillshade-shadow-color"),vt=Ve.paint.get("hillshade-highlight-color"),St=Ve.paint.get("hillshade-accent-color");let _t=Ve.paint.get("hillshade-illumination-direction")*(Math.PI/180);Ve.paint.get("hillshade-illumination-anchor")==="viewport"&&(_t-=Br.transform.angle);const Lt=!Br.options.moving;return{u_matrix:Ye?Ye.posMatrix:Br.transform.calculatePosMatrix(ea.tileID.toUnwrapped(),Lt),u_image:0,u_latrange:bi(0,ea.tileID),u_light:[Ve.paint.get("hillshade-exaggeration"),_t],u_shadow:it,u_highlight:vt,u_accent:St}})(ze,ne,Te,pr?L:null),pr,Te.id,ze.rasterBoundsBuffer,ze.quadTriangleIndexBuffer,ze.rasterBoundsSegments)}function Ml(ze,L,ne,Te,Se,Re){const ft=ze.context,xt=ft.gl,Dt=L.dem;if(Dt&&Dt.data){const er=Dt.dim,fr=Dt.stride,pr=Dt.getPixels();if(ft.activeTexture.set(xt.TEXTURE1),ft.pixelStoreUnpackPremultiplyAlpha.set(!1),L.demTexture=L.demTexture||ze.getTileTexture(fr),L.demTexture){const ea=L.demTexture;ea.update(pr,{premultiply:!1}),ea.bind(xt.NEAREST,xt.CLAMP_TO_EDGE)}else L.demTexture=new u(ft,pr,xt.RGBA,{premultiply:!1}),L.demTexture.bind(xt.NEAREST,xt.CLAMP_TO_EDGE);ft.activeTexture.set(xt.TEXTURE0);let Br=L.fbo;if(!Br){const ea=new u(ft,{width:er,height:er,data:null},xt.RGBA);ea.bind(xt.LINEAR,xt.CLAMP_TO_EDGE),Br=L.fbo=ft.createFramebuffer(er,er,!0,!1),Br.colorAttachment.set(ea.texture)}ft.bindFramebuffer.set(Br.framebuffer),ft.viewport.set([0,0,er,er]),ze.useProgram("hillshadePrepare").draw(ft,xt.TRIANGLES,Te,Se,Re,Bi.disabled,((ea,Ve)=>{const Ye=Ve.stride,it=t.H();return t.aP(it,0,t.X,-t.X,0,0,1),t.J(it,it,[0,-t.X,0]),{u_matrix:it,u_image:1,u_dimension:[Ye,Ye],u_zoom:ea.overscaledZ,u_unpack:Ve.getUnpackVector()}})(L.tileID,Dt),null,ne.id,ze.rasterBoundsBuffer,ze.quadTriangleIndexBuffer,ze.rasterBoundsSegments),L.needsHillshadePrepare=!1}}function lc(ze,L,ne,Te,Se,Re){const ft=Te.paint.get("raster-fade-duration");if(!Re&&ft>0){const xt=o.now(),Dt=(xt-ze.timeAdded)/ft,er=L?(xt-L.timeAdded)/ft:-1,fr=ne.getSource(),pr=Se.coveringZoomLevel({tileSize:fr.tileSize,roundZoom:fr.roundZoom}),Br=!L||Math.abs(L.tileID.overscaledZ-pr)>Math.abs(ze.tileID.overscaledZ-pr),ea=Br&&ze.refreshedUponExpiration?1:t.ac(Br?Dt:1-er,0,1);return ze.refreshedUponExpiration&&Dt>=1&&(ze.refreshedUponExpiration=!1),L?{opacity:1,mix:1-ea}:{opacity:ea,mix:0}}return{opacity:1,mix:0}}const Wc=new t.aM(1,0,0,1),Ms=new t.aM(0,1,0,1),Lc=new t.aM(0,0,1,1),xf=new t.aM(1,0,1,1),Kc=new t.aM(0,1,1,1);function Ac(ze,L,ne,Te){tu(ze,0,L+ne/2,ze.transform.width,ne,Te)}function Jc(ze,L,ne,Te){tu(ze,L-ne/2,0,ne,ze.transform.height,Te)}function tu(ze,L,ne,Te,Se,Re){const ft=ze.context,xt=ft.gl;xt.enable(xt.SCISSOR_TEST),xt.scissor(L*ze.pixelRatio,ne*ze.pixelRatio,Te*ze.pixelRatio,Se*ze.pixelRatio),ft.clear({color:Re}),xt.disable(xt.SCISSOR_TEST)}function Qc(ze,L,ne){const Te=ze.context,Se=Te.gl,Re=ne.posMatrix,ft=ze.useProgram("debug"),xt=zo.disabled,Dt=is.disabled,er=ze.colorModeForRenderPass(),fr="$debug",pr=ze.style.map.terrain&&ze.style.map.terrain.getTerrainData(ne);Te.activeTexture.set(Se.TEXTURE0);const Br=L.getTileByID(ne.key).latestRawTileData,ea=Math.floor((Br&&Br.byteLength||0)/1024),Ve=L.getTile(ne).tileSize,Ye=512/Math.min(Ve,512)*(ne.overscaledZ/ze.transform.zoom)*.5;let it=ne.canonical.toString();ne.overscaledZ!==ne.canonical.z&&(it+=` => ${ne.overscaledZ}`),function(vt,St){vt.initDebugOverlayCanvas();const _t=vt.debugOverlayCanvas,Lt=vt.context.gl,nr=vt.debugOverlayCanvas.getContext("2d");nr.clearRect(0,0,_t.width,_t.height),nr.shadowColor="white",nr.shadowBlur=2,nr.lineWidth=1.5,nr.strokeStyle="white",nr.textBaseline="top",nr.font="bold 36px Open Sans, sans-serif",nr.fillText(St,5,5),nr.strokeText(St,5,5),vt.debugOverlayTexture.update(_t),vt.debugOverlayTexture.bind(Lt.LINEAR,Lt.CLAMP_TO_EDGE)}(ze,`${it} ${ea}kB`),ft.draw(Te,Se.TRIANGLES,xt,Dt,Zs.alphaBlended,Bi.disabled,vi(Re,t.aM.transparent,Ye),null,fr,ze.debugBuffer,ze.quadTriangleIndexBuffer,ze.debugSegments),ft.draw(Te,Se.LINE_STRIP,xt,Dt,er,Bi.disabled,vi(Re,t.aM.red),pr,fr,ze.debugBuffer,ze.tileBorderIndexBuffer,ze.debugSegments)}function el(ze,L,ne){const Te=ze.context,Se=Te.gl,Re=ze.colorModeForRenderPass(),ft=new zo(Se.LEQUAL,zo.ReadWrite,ze.depthRangeFor3D),xt=ze.useProgram("terrain"),Dt=L.getTerrainMesh();Te.bindFramebuffer.set(null),Te.viewport.set([0,0,ze.width,ze.height]);for(const er of ne){const fr=ze.renderToTexture.getTexture(er),pr=L.getTerrainData(er.tileID);Te.activeTexture.set(Se.TEXTURE0),Se.bindTexture(Se.TEXTURE_2D,fr.texture);const Br=ze.transform.calculatePosMatrix(er.tileID.toUnwrapped()),ea=L.getMeshFrameDelta(ze.transform.zoom),Ve=ze.transform.calculateFogMatrix(er.tileID.toUnwrapped()),Ye=Ar(Br,ea,Ve,ze.style.sky,ze.transform.pitch);xt.draw(Te,Se.TRIANGLES,ft,is.disabled,Re,Bi.backCCW,Ye,pr,"terrain",Dt.vertexBuffer,Dt.indexBuffer,Dt.segments)}}class ru{constructor(L,ne,Te){this.vertexBuffer=L,this.indexBuffer=ne,this.segments=Te}destroy(){this.vertexBuffer.destroy(),this.indexBuffer.destroy(),this.segments.destroy(),this.vertexBuffer=null,this.indexBuffer=null,this.segments=null}}class tc{constructor(L,ne){this.context=new _f(L),this.transform=ne,this._tileTextures={},this.terrainFacilitator={dirty:!0,matrix:t.an(new Float64Array(16)),renderTime:0},this.setup(),this.numSublayers=kt.maxUnderzooming+kt.maxOverzooming+1,this.depthEpsilon=1/Math.pow(2,16),this.crossTileSymbolIndex=new Or}resize(L,ne,Te){if(this.width=Math.floor(L*Te),this.height=Math.floor(ne*Te),this.pixelRatio=Te,this.context.viewport.set([0,0,this.width,this.height]),this.style)for(const Se of this.style._order)this.style._layers[Se].resize()}setup(){const L=this.context,ne=new t.aX;ne.emplaceBack(0,0),ne.emplaceBack(t.X,0),ne.emplaceBack(0,t.X),ne.emplaceBack(t.X,t.X),this.tileExtentBuffer=L.createVertexBuffer(ne,na.members),this.tileExtentSegments=t.a0.simpleSegment(0,0,4,2);const Te=new t.aX;Te.emplaceBack(0,0),Te.emplaceBack(t.X,0),Te.emplaceBack(0,t.X),Te.emplaceBack(t.X,t.X),this.debugBuffer=L.createVertexBuffer(Te,na.members),this.debugSegments=t.a0.simpleSegment(0,0,4,5);const Se=new t.$;Se.emplaceBack(0,0,0,0),Se.emplaceBack(t.X,0,t.X,0),Se.emplaceBack(0,t.X,0,t.X),Se.emplaceBack(t.X,t.X,t.X,t.X),this.rasterBoundsBuffer=L.createVertexBuffer(Se,je.members),this.rasterBoundsSegments=t.a0.simpleSegment(0,0,4,2);const Re=new t.aX;Re.emplaceBack(0,0),Re.emplaceBack(1,0),Re.emplaceBack(0,1),Re.emplaceBack(1,1),this.viewportBuffer=L.createVertexBuffer(Re,na.members),this.viewportSegments=t.a0.simpleSegment(0,0,4,2);const ft=new t.aZ;ft.emplaceBack(0),ft.emplaceBack(1),ft.emplaceBack(3),ft.emplaceBack(2),ft.emplaceBack(0),this.tileBorderIndexBuffer=L.createIndexBuffer(ft);const xt=new t.aY;xt.emplaceBack(0,1,2),xt.emplaceBack(2,1,3),this.quadTriangleIndexBuffer=L.createIndexBuffer(xt);const Dt=this.context.gl;this.stencilClearMode=new is({func:Dt.ALWAYS,mask:0},0,255,Dt.ZERO,Dt.ZERO,Dt.ZERO)}clearStencil(){const L=this.context,ne=L.gl;this.nextStencilID=1,this.currentStencilSource=void 0;const Te=t.H();t.aP(Te,0,this.width,this.height,0,0,1),t.K(Te,Te,[ne.drawingBufferWidth,ne.drawingBufferHeight,0]),this.useProgram("clippingMask").draw(L,ne.TRIANGLES,zo.disabled,this.stencilClearMode,Zs.disabled,Bi.disabled,Li(Te),null,"$clipping",this.viewportBuffer,this.quadTriangleIndexBuffer,this.viewportSegments)}_renderTileClippingMasks(L,ne){if(this.currentStencilSource===L.source||!L.isTileClipped()||!ne||!ne.length)return;this.currentStencilSource=L.source;const Te=this.context,Se=Te.gl;this.nextStencilID+ne.length>256&&this.clearStencil(),Te.setColorMode(Zs.disabled),Te.setDepthMode(zo.disabled);const Re=this.useProgram("clippingMask");this._tileClippingMaskIDs={};for(const ft of ne){const xt=this._tileClippingMaskIDs[ft.key]=this.nextStencilID++,Dt=this.style.map.terrain&&this.style.map.terrain.getTerrainData(ft);Re.draw(Te,Se.TRIANGLES,zo.disabled,new is({func:Se.ALWAYS,mask:0},xt,255,Se.KEEP,Se.KEEP,Se.REPLACE),Zs.disabled,Bi.disabled,Li(ft.posMatrix),Dt,"$clipping",this.tileExtentBuffer,this.quadTriangleIndexBuffer,this.tileExtentSegments)}}stencilModeFor3D(){this.currentStencilSource=void 0,this.nextStencilID+1>256&&this.clearStencil();const L=this.nextStencilID++,ne=this.context.gl;return new is({func:ne.NOTEQUAL,mask:255},L,255,ne.KEEP,ne.KEEP,ne.REPLACE)}stencilModeForClipping(L){const ne=this.context.gl;return new is({func:ne.EQUAL,mask:255},this._tileClippingMaskIDs[L.key],0,ne.KEEP,ne.KEEP,ne.REPLACE)}stencilConfigForOverlap(L){const ne=this.context.gl,Te=L.sort((ft,xt)=>xt.overscaledZ-ft.overscaledZ),Se=Te[Te.length-1].overscaledZ,Re=Te[0].overscaledZ-Se+1;if(Re>1){this.currentStencilSource=void 0,this.nextStencilID+Re>256&&this.clearStencil();const ft={};for(let xt=0;xt({u_sky_color:vt.properties.get("sky-color"),u_horizon_color:vt.properties.get("horizon-color"),u_horizon:(St.height/2+St.getHorizon())*_t,u_sky_horizon_blend:vt.properties.get("sky-horizon-blend")*St.height/2*_t}))(er,Dt.style.map.transform,Dt.pixelRatio),ea=new zo(pr.LEQUAL,zo.ReadWrite,[0,1]),Ve=is.disabled,Ye=Dt.colorModeForRenderPass(),it=Dt.useProgram("sky");if(!er.mesh){const vt=new t.aX;vt.emplaceBack(-1,-1),vt.emplaceBack(1,-1),vt.emplaceBack(1,1),vt.emplaceBack(-1,1);const St=new t.aY;St.emplaceBack(0,1,2),St.emplaceBack(0,2,3),er.mesh=new ru(fr.createVertexBuffer(vt,na.members),fr.createIndexBuffer(St),t.a0.simpleSegment(0,0,vt.length,St.length))}it.draw(fr,pr.TRIANGLES,ea,Ve,Ye,Bi.disabled,Br,void 0,"sky",er.mesh.vertexBuffer,er.mesh.indexBuffer,er.mesh.segments)}(this,this.style.sky),this._showOverdrawInspector=ne.showOverdrawInspector,this.depthRangeFor3D=[0,1-(L._order.length+2)*this.numSublayers*this.depthEpsilon],!this.renderToTexture)for(this.renderPass="opaque",this.currentLayer=Te.length-1;this.currentLayer>=0;this.currentLayer--){const Dt=this.style._layers[Te[this.currentLayer]],er=Se[Dt.source],fr=Re[Dt.source];this._renderTileClippingMasks(Dt,fr),this.renderLayer(this,er,Dt,fr)}for(this.renderPass="translucent",this.currentLayer=0;this.currentLayerit.source&&!it.isHidden(fr)?[er.sourceCaches[it.source]]:[]),ea=Br.filter(it=>it.getSource().type==="vector"),Ve=Br.filter(it=>it.getSource().type!=="vector"),Ye=it=>{(!pr||pr.getSource().maxzoomYe(it)),pr||Ve.forEach(it=>Ye(it)),pr}(this.style,this.transform.zoom);Dt&&function(er,fr,pr){for(let Br=0;Br0),Se&&(t.b0(ne,Te),this.terrainFacilitator.renderTime=Date.now(),this.terrainFacilitator.dirty=!1,function(Re,ft){const xt=Re.context,Dt=xt.gl,er=Zs.unblended,fr=new zo(Dt.LEQUAL,zo.ReadWrite,[0,1]),pr=ft.getTerrainMesh(),Br=ft.sourceCache.getRenderableTiles(),ea=Re.useProgram("terrainDepth");xt.bindFramebuffer.set(ft.getFramebuffer("depth").framebuffer),xt.viewport.set([0,0,Re.width/devicePixelRatio,Re.height/devicePixelRatio]),xt.clear({color:t.aM.transparent,depth:1});for(const Ve of Br){const Ye=ft.getTerrainData(Ve.tileID),it={u_matrix:Re.transform.calculatePosMatrix(Ve.tileID.toUnwrapped()),u_ele_delta:ft.getMeshFrameDelta(Re.transform.zoom)};ea.draw(xt,Dt.TRIANGLES,fr,is.disabled,er,Bi.backCCW,it,Ye,"terrain",pr.vertexBuffer,pr.indexBuffer,pr.segments)}xt.bindFramebuffer.set(null),xt.viewport.set([0,0,Re.width,Re.height])}(this,this.style.map.terrain),function(Re,ft){const xt=Re.context,Dt=xt.gl,er=Zs.unblended,fr=new zo(Dt.LEQUAL,zo.ReadWrite,[0,1]),pr=ft.getTerrainMesh(),Br=ft.getCoordsTexture(),ea=ft.sourceCache.getRenderableTiles(),Ve=Re.useProgram("terrainCoords");xt.bindFramebuffer.set(ft.getFramebuffer("coords").framebuffer),xt.viewport.set([0,0,Re.width/devicePixelRatio,Re.height/devicePixelRatio]),xt.clear({color:t.aM.transparent,depth:1}),ft.coordsIndex=[];for(const Ye of ea){const it=ft.getTerrainData(Ye.tileID);xt.activeTexture.set(Dt.TEXTURE0),Dt.bindTexture(Dt.TEXTURE_2D,Br.texture);const vt={u_matrix:Re.transform.calculatePosMatrix(Ye.tileID.toUnwrapped()),u_terrain_coords_id:(255-ft.coordsIndex.length)/255,u_texture:0,u_ele_delta:ft.getMeshFrameDelta(Re.transform.zoom)};Ve.draw(xt,Dt.TRIANGLES,fr,is.disabled,er,Bi.backCCW,vt,it,"terrain",pr.vertexBuffer,pr.indexBuffer,pr.segments),ft.coordsIndex.push(Ye.tileID.key)}xt.bindFramebuffer.set(null),xt.viewport.set([0,0,Re.width,Re.height])}(this,this.style.map.terrain))}renderLayer(L,ne,Te,Se){if(!Te.isHidden(this.transform.zoom)&&(Te.type==="background"||Te.type==="custom"||(Se||[]).length))switch(this.id=Te.id,Te.type){case"symbol":(function(Re,ft,xt,Dt,er){if(Re.renderPass!=="translucent")return;const fr=is.disabled,pr=Re.colorModeForRenderPass();(xt._unevaluatedLayout.hasValue("text-variable-anchor")||xt._unevaluatedLayout.hasValue("text-variable-anchor-offset"))&&function(Br,ea,Ve,Ye,it,vt,St,_t,Lt){const nr=ea.transform,cr=an(),gr=it==="map",Cr=vt==="map";for(const Wr of Br){const ua=Ye.getTile(Wr),va=ua.getBucket(Ve);if(!va||!va.text||!va.text.segments.get().length)continue;const Ma=t.ag(va.textSizeData,nr.zoom),en=Ia(ua,1,ea.transform.zoom),Pn=dr(Wr.posMatrix,Cr,gr,ea.transform,en),Tn=Ve.layout.get("icon-text-fit")!=="none"&&va.hasIconData();if(Ma){const In=Math.pow(2,nr.zoom-ua.tileID.overscaledZ),oi=ea.style.map.terrain?(_i,Ki)=>ea.style.map.terrain.getElevation(Wr,_i,Ki):null,Si=cr.translatePosition(nr,ua,St,_t);wc(va,gr,Cr,Lt,nr,Pn,Wr.posMatrix,In,Ma,Tn,cr,Si,Wr.toUnwrapped(),oi)}}}(Dt,Re,xt,ft,xt.layout.get("text-rotation-alignment"),xt.layout.get("text-pitch-alignment"),xt.paint.get("text-translate"),xt.paint.get("text-translate-anchor"),er),xt.paint.get("icon-opacity").constantOr(1)!==0&&hf(Re,ft,xt,Dt,!1,xt.paint.get("icon-translate"),xt.paint.get("icon-translate-anchor"),xt.layout.get("icon-rotation-alignment"),xt.layout.get("icon-pitch-alignment"),xt.layout.get("icon-keep-upright"),fr,pr),xt.paint.get("text-opacity").constantOr(1)!==0&&hf(Re,ft,xt,Dt,!0,xt.paint.get("text-translate"),xt.paint.get("text-translate-anchor"),xt.layout.get("text-rotation-alignment"),xt.layout.get("text-pitch-alignment"),xt.layout.get("text-keep-upright"),fr,pr),ft.map.showCollisionBoxes&&(xu(Re,ft,xt,Dt,!0),xu(Re,ft,xt,Dt,!1))})(L,ne,Te,Se,this.style.placement.variableOffsets);break;case"circle":(function(Re,ft,xt,Dt){if(Re.renderPass!=="translucent")return;const er=xt.paint.get("circle-opacity"),fr=xt.paint.get("circle-stroke-width"),pr=xt.paint.get("circle-stroke-opacity"),Br=!xt.layout.get("circle-sort-key").isConstant();if(er.constantOr(1)===0&&(fr.constantOr(1)===0||pr.constantOr(1)===0))return;const ea=Re.context,Ve=ea.gl,Ye=Re.depthModeForSublayer(0,zo.ReadOnly),it=is.disabled,vt=Re.colorModeForRenderPass(),St=[];for(let _t=0;_t_t.sortKey-Lt.sortKey);for(const _t of St){const{programConfiguration:Lt,program:nr,layoutVertexBuffer:cr,indexBuffer:gr,uniformValues:Cr,terrainData:Wr}=_t.state;nr.draw(ea,Ve.TRIANGLES,Ye,it,vt,Bi.disabled,Cr,Wr,xt.id,cr,gr,_t.segments,xt.paint,Re.transform.zoom,Lt)}})(L,ne,Te,Se);break;case"heatmap":(function(Re,ft,xt,Dt){if(xt.paint.get("heatmap-opacity")===0)return;const er=Re.context;if(Re.style.map.terrain){for(const fr of Dt){const pr=ft.getTile(fr);ft.hasRenderableParent(fr)||(Re.renderPass==="offscreen"?Tc(Re,pr,xt,fr):Re.renderPass==="translucent"&&ec(Re,xt,fr))}er.viewport.set([0,0,Re.width,Re.height])}else Re.renderPass==="offscreen"?function(fr,pr,Br,ea){const Ve=fr.context,Ye=Ve.gl,it=is.disabled,vt=new Zs([Ye.ONE,Ye.ONE],t.aM.transparent,[!0,!0,!0,!0]);(function(St,_t,Lt){const nr=St.gl;St.activeTexture.set(nr.TEXTURE1),St.viewport.set([0,0,_t.width/4,_t.height/4]);let cr=Lt.heatmapFbos.get(t.aU);cr?(nr.bindTexture(nr.TEXTURE_2D,cr.colorAttachment.get()),St.bindFramebuffer.set(cr.framebuffer)):(cr=Gc(St,_t.width/4,_t.height/4),Lt.heatmapFbos.set(t.aU,cr))})(Ve,fr,Br),Ve.clear({color:t.aM.transparent});for(let St=0;St20&&fr.texParameterf(fr.TEXTURE_2D,er.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,er.extTextureFilterAnisotropicMax);const va=Re.style.map.terrain&&Re.style.map.terrain.getTerrainData(St),Ma=va?St:null,en=Ma?Ma.posMatrix:Re.transform.calculatePosMatrix(St.toUnwrapped(),vt),Pn=xo(en,Wr||[0,0],Cr||1,gr,xt);pr instanceof at?Br.draw(er,fr.TRIANGLES,_t,is.disabled,ea,Bi.disabled,Pn,va,xt.id,pr.boundsBuffer,Re.quadTriangleIndexBuffer,pr.boundsSegments):Br.draw(er,fr.TRIANGLES,_t,Ve[St.overscaledZ],ea,Bi.disabled,Pn,va,xt.id,Re.rasterBoundsBuffer,Re.quadTriangleIndexBuffer,Re.rasterBoundsSegments)}})(L,ne,Te,Se);break;case"background":(function(Re,ft,xt,Dt){const er=xt.paint.get("background-color"),fr=xt.paint.get("background-opacity");if(fr===0)return;const pr=Re.context,Br=pr.gl,ea=Re.transform,Ve=ea.tileSize,Ye=xt.paint.get("background-pattern");if(Re.isPatternMissing(Ye))return;const it=!Ye&&er.a===1&&fr===1&&Re.opaquePassEnabledForLayer()?"opaque":"translucent";if(Re.renderPass!==it)return;const vt=is.disabled,St=Re.depthModeForSublayer(0,it==="opaque"?zo.ReadWrite:zo.ReadOnly),_t=Re.colorModeForRenderPass(),Lt=Re.useProgram(Ye?"backgroundPattern":"background"),nr=Dt||ea.coveringTiles({tileSize:Ve,terrain:Re.style.map.terrain});Ye&&(pr.activeTexture.set(Br.TEXTURE0),Re.imageManager.bind(Re.context));const cr=xt.getCrossfadeParameters();for(const gr of nr){const Cr=Dt?gr.posMatrix:Re.transform.calculatePosMatrix(gr.toUnwrapped()),Wr=Ye?ks(Cr,fr,Re,Ye,{tileID:gr,tileSize:Ve},cr):cs(Cr,fr,er),ua=Re.style.map.terrain&&Re.style.map.terrain.getTerrainData(gr);Lt.draw(pr,Br.TRIANGLES,St,vt,_t,Bi.disabled,Wr,ua,xt.id,Re.tileExtentBuffer,Re.quadTriangleIndexBuffer,Re.tileExtentSegments)}})(L,0,Te,Se);break;case"custom":(function(Re,ft,xt){const Dt=Re.context,er=xt.implementation;if(Re.renderPass==="offscreen"){const fr=er.prerender;fr&&(Re.setCustomLayerDefaults(),Dt.setColorMode(Re.colorModeForRenderPass()),fr.call(er,Dt.gl,Re.transform.customLayerMatrix()),Dt.setDirty(),Re.setBaseState())}else if(Re.renderPass==="translucent"){Re.setCustomLayerDefaults(),Dt.setColorMode(Re.colorModeForRenderPass()),Dt.setStencilMode(is.disabled);const fr=er.renderingMode==="3d"?new zo(Re.context.gl.LEQUAL,zo.ReadWrite,Re.depthRangeFor3D):Re.depthModeForSublayer(0,zo.ReadOnly);Dt.setDepthMode(fr),er.render(Dt.gl,Re.transform.customLayerMatrix(),{farZ:Re.transform.farZ,nearZ:Re.transform.nearZ,fov:Re.transform._fov,modelViewProjectionMatrix:Re.transform.modelViewProjectionMatrix,projectionMatrix:Re.transform.projectionMatrix}),Dt.setDirty(),Re.setBaseState(),Dt.bindFramebuffer.set(null)}})(L,0,Te)}}translatePosMatrix(L,ne,Te,Se,Re){if(!Te[0]&&!Te[1])return L;const ft=Re?Se==="map"?this.transform.angle:0:Se==="viewport"?-this.transform.angle:0;if(ft){const er=Math.sin(ft),fr=Math.cos(ft);Te=[Te[0]*fr-Te[1]*er,Te[0]*er+Te[1]*fr]}const xt=[Re?Te[0]:Ia(ne,Te[0],this.transform.zoom),Re?Te[1]:Ia(ne,Te[1],this.transform.zoom),0],Dt=new Float32Array(16);return t.J(Dt,L,xt),Dt}saveTileTexture(L){const ne=this._tileTextures[L.size[0]];ne?ne.push(L):this._tileTextures[L.size[0]]=[L]}getTileTexture(L){const ne=this._tileTextures[L];return ne&&ne.length>0?ne.pop():null}isPatternMissing(L){if(!L)return!1;if(!L.from||!L.to)return!0;const ne=this.imageManager.getPattern(L.from.toString()),Te=this.imageManager.getPattern(L.to.toString());return!ne||!Te}useProgram(L,ne){this.cache=this.cache||{};const Te=L+(ne?ne.cacheKey:"")+(this._showOverdrawInspector?"/overdraw":"")+(this.style.map.terrain?"/terrain":"");return this.cache[Te]||(this.cache[Te]=new ga(this.context,ta[L],ne,ms[L],this._showOverdrawInspector,this.style.map.terrain)),this.cache[Te]}setCustomLayerDefaults(){this.context.unbindVAO(),this.context.cullFace.setDefault(),this.context.activeTexture.setDefault(),this.context.pixelStoreUnpack.setDefault(),this.context.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.context.pixelStoreUnpackFlipY.setDefault()}setBaseState(){const L=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(L.FUNC_ADD)}initDebugOverlayCanvas(){this.debugOverlayCanvas==null&&(this.debugOverlayCanvas=document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512,this.debugOverlayTexture=new u(this.context,this.debugOverlayCanvas,this.context.gl.RGBA))}destroy(){this.debugOverlayTexture&&this.debugOverlayTexture.destroy()}overLimit(){const{drawingBufferWidth:L,drawingBufferHeight:ne}=this.context.gl;return this.width!==L||this.height!==ne}}class Bs{constructor(L,ne){this.points=L,this.planes=ne}static fromInvProjectionMatrix(L,ne,Te){const Se=Math.pow(2,Te),Re=[[-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]].map(xt=>{const Dt=1/(xt=t.af([],xt,L))[3]/ne*Se;return t.b1(xt,xt,[Dt,Dt,1/xt[3],Dt])}),ft=[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]].map(xt=>{const Dt=function(Br,ea){var Ve=ea[0],Ye=ea[1],it=ea[2],vt=Ve*Ve+Ye*Ye+it*it;return vt>0&&(vt=1/Math.sqrt(vt)),Br[0]=ea[0]*vt,Br[1]=ea[1]*vt,Br[2]=ea[2]*vt,Br}([],function(Br,ea,Ve){var Ye=ea[0],it=ea[1],vt=ea[2],St=Ve[0],_t=Ve[1],Lt=Ve[2];return Br[0]=it*Lt-vt*_t,Br[1]=vt*St-Ye*Lt,Br[2]=Ye*_t-it*St,Br}([],M([],Re[xt[0]],Re[xt[1]]),M([],Re[xt[2]],Re[xt[1]]))),er=-((fr=Dt)[0]*(pr=Re[xt[1]])[0]+fr[1]*pr[1]+fr[2]*pr[2]);var fr,pr;return Dt.concat(er)});return new Bs(Re,ft)}}class Hu{constructor(L,ne){this.min=L,this.max=ne,this.center=function(Te,Se,Re){return Te[0]=.5*Se[0],Te[1]=.5*Se[1],Te[2]=.5*Se[2],Te}([],function(Te,Se,Re){return Te[0]=Se[0]+Re[0],Te[1]=Se[1]+Re[1],Te[2]=Se[2]+Re[2],Te}([],this.min,this.max))}quadrant(L){const ne=[L%2==0,L<2],Te=w(this.min),Se=w(this.max);for(let Re=0;Re=0&&ft++;if(ft===0)return 0;ft!==ne.length&&(Te=!1)}if(Te)return 2;for(let Se=0;Se<3;Se++){let Re=Number.MAX_VALUE,ft=-Number.MAX_VALUE;for(let xt=0;xtthis.max[Se]-this.min[Se])return 0}return 1}}class Gl{constructor(L=0,ne=0,Te=0,Se=0){if(isNaN(L)||L<0||isNaN(ne)||ne<0||isNaN(Te)||Te<0||isNaN(Se)||Se<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=L,this.bottom=ne,this.left=Te,this.right=Se}interpolate(L,ne,Te){return ne.top!=null&&L.top!=null&&(this.top=t.y.number(L.top,ne.top,Te)),ne.bottom!=null&&L.bottom!=null&&(this.bottom=t.y.number(L.bottom,ne.bottom,Te)),ne.left!=null&&L.left!=null&&(this.left=t.y.number(L.left,ne.left,Te)),ne.right!=null&&L.right!=null&&(this.right=t.y.number(L.right,ne.right,Te)),this}getCenter(L,ne){const Te=t.ac((this.left+L-this.right)/2,0,L),Se=t.ac((this.top+ne-this.bottom)/2,0,ne);return new t.P(Te,Se)}equals(L){return this.top===L.top&&this.bottom===L.bottom&&this.left===L.left&&this.right===L.right}clone(){return new Gl(this.top,this.bottom,this.left,this.right)}toJSON(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}}}const au=85.051129;class Ys{constructor(L,ne,Te,Se,Re){this.tileSize=512,this._renderWorldCopies=Re===void 0||!!Re,this._minZoom=L||0,this._maxZoom=ne||22,this._minPitch=Te??0,this._maxPitch=Se??60,this.setMaxBounds(),this.width=0,this.height=0,this._center=new t.N(0,0),this._elevation=0,this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this._unmodified=!0,this._edgeInsets=new Gl,this._posMatrixCache={},this._alignedPosMatrixCache={},this._fogMatrixCache={},this.minElevationForCurrentTile=0}clone(){const L=new Ys(this._minZoom,this._maxZoom,this._minPitch,this.maxPitch,this._renderWorldCopies);return L.apply(this),L}apply(L){this.tileSize=L.tileSize,this.latRange=L.latRange,this.lngRange=L.lngRange,this.width=L.width,this.height=L.height,this._center=L._center,this._elevation=L._elevation,this.minElevationForCurrentTile=L.minElevationForCurrentTile,this.zoom=L.zoom,this.angle=L.angle,this._fov=L._fov,this._pitch=L._pitch,this._unmodified=L._unmodified,this._edgeInsets=L._edgeInsets.clone(),this._calcMatrices()}get minZoom(){return this._minZoom}set minZoom(L){this._minZoom!==L&&(this._minZoom=L,this.zoom=Math.max(this.zoom,L))}get maxZoom(){return this._maxZoom}set maxZoom(L){this._maxZoom!==L&&(this._maxZoom=L,this.zoom=Math.min(this.zoom,L))}get minPitch(){return this._minPitch}set minPitch(L){this._minPitch!==L&&(this._minPitch=L,this.pitch=Math.max(this.pitch,L))}get maxPitch(){return this._maxPitch}set maxPitch(L){this._maxPitch!==L&&(this._maxPitch=L,this.pitch=Math.min(this.pitch,L))}get renderWorldCopies(){return this._renderWorldCopies}set renderWorldCopies(L){L===void 0?L=!0:L===null&&(L=!1),this._renderWorldCopies=L}get worldSize(){return this.tileSize*this.scale}get centerOffset(){return this.centerPoint._sub(this.size._div(2))}get size(){return new t.P(this.width,this.height)}get bearing(){return-this.angle/Math.PI*180}set bearing(L){const ne=-t.b3(L,-180,180)*Math.PI/180;this.angle!==ne&&(this._unmodified=!1,this.angle=ne,this._calcMatrices(),this.rotationMatrix=function(){var Te=new t.A(4);return t.A!=Float32Array&&(Te[1]=0,Te[2]=0),Te[0]=1,Te[3]=1,Te}(),function(Te,Se,Re){var ft=Se[0],xt=Se[1],Dt=Se[2],er=Se[3],fr=Math.sin(Re),pr=Math.cos(Re);Te[0]=ft*pr+Dt*fr,Te[1]=xt*pr+er*fr,Te[2]=ft*-fr+Dt*pr,Te[3]=xt*-fr+er*pr}(this.rotationMatrix,this.rotationMatrix,this.angle))}get pitch(){return this._pitch/Math.PI*180}set pitch(L){const ne=t.ac(L,this.minPitch,this.maxPitch)/180*Math.PI;this._pitch!==ne&&(this._unmodified=!1,this._pitch=ne,this._calcMatrices())}get fov(){return this._fov/Math.PI*180}set fov(L){L=Math.max(.01,Math.min(60,L)),this._fov!==L&&(this._unmodified=!1,this._fov=L/180*Math.PI,this._calcMatrices())}get zoom(){return this._zoom}set zoom(L){const ne=Math.min(Math.max(L,this.minZoom),this.maxZoom);this._zoom!==ne&&(this._unmodified=!1,this._zoom=ne,this.tileZoom=Math.max(0,Math.floor(ne)),this.scale=this.zoomScale(ne),this._constrain(),this._calcMatrices())}get center(){return this._center}set center(L){L.lat===this._center.lat&&L.lng===this._center.lng||(this._unmodified=!1,this._center=L,this._constrain(),this._calcMatrices())}get elevation(){return this._elevation}set elevation(L){L!==this._elevation&&(this._elevation=L,this._constrain(),this._calcMatrices())}get padding(){return this._edgeInsets.toJSON()}set padding(L){this._edgeInsets.equals(L)||(this._unmodified=!1,this._edgeInsets.interpolate(this._edgeInsets,L,1),this._calcMatrices())}get centerPoint(){return this._edgeInsets.getCenter(this.width,this.height)}isPaddingEqual(L){return this._edgeInsets.equals(L)}interpolatePadding(L,ne,Te){this._unmodified=!1,this._edgeInsets.interpolate(L,ne,Te),this._constrain(),this._calcMatrices()}coveringZoomLevel(L){const ne=(L.roundZoom?Math.round:Math.floor)(this.zoom+this.scaleZoom(this.tileSize/L.tileSize));return Math.max(0,ne)}getVisibleUnwrappedCoordinates(L){const ne=[new t.b4(0,L)];if(this._renderWorldCopies){const Te=this.pointCoordinate(new t.P(0,0)),Se=this.pointCoordinate(new t.P(this.width,0)),Re=this.pointCoordinate(new t.P(this.width,this.height)),ft=this.pointCoordinate(new t.P(0,this.height)),xt=Math.floor(Math.min(Te.x,Se.x,Re.x,ft.x)),Dt=Math.floor(Math.max(Te.x,Se.x,Re.x,ft.x)),er=1;for(let fr=xt-er;fr<=Dt+er;fr++)fr!==0&&ne.push(new t.b4(fr,L))}return ne}coveringTiles(L){var ne,Te;let Se=this.coveringZoomLevel(L);const Re=Se;if(L.minzoom!==void 0&&SeL.maxzoom&&(Se=L.maxzoom);const ft=this.pointCoordinate(this.getCameraPoint()),xt=t.Z.fromLngLat(this.center),Dt=Math.pow(2,Se),er=[Dt*ft.x,Dt*ft.y,0],fr=[Dt*xt.x,Dt*xt.y,0],pr=Bs.fromInvProjectionMatrix(this.invModelViewProjectionMatrix,this.worldSize,Se);let Br=L.minzoom||0;!L.terrain&&this.pitch<=60&&this._edgeInsets.top<.1&&(Br=Se);const ea=L.terrain?2/Math.min(this.tileSize,L.tileSize)*this.tileSize:3,Ve=_t=>({aabb:new Hu([_t*Dt,0,0],[(_t+1)*Dt,Dt,0]),zoom:0,x:0,y:0,wrap:_t,fullyVisible:!1}),Ye=[],it=[],vt=Se,St=L.reparseOverscaled?Re:Se;if(this._renderWorldCopies)for(let _t=1;_t<=3;_t++)Ye.push(Ve(-_t)),Ye.push(Ve(_t));for(Ye.push(Ve(0));Ye.length>0;){const _t=Ye.pop(),Lt=_t.x,nr=_t.y;let cr=_t.fullyVisible;if(!cr){const va=_t.aabb.intersects(pr);if(va===0)continue;cr=va===2}const gr=L.terrain?er:fr,Cr=_t.aabb.distanceX(gr),Wr=_t.aabb.distanceY(gr),ua=Math.max(Math.abs(Cr),Math.abs(Wr));if(_t.zoom===vt||ua>ea+(1<=Br){const va=vt-_t.zoom,Ma=er[0]-.5-(Lt<>1),Pn=_t.zoom+1;let Tn=_t.aabb.quadrant(va);if(L.terrain){const In=new t.S(Pn,_t.wrap,Pn,Ma,en),oi=L.terrain.getMinMaxElevation(In),Si=(ne=oi.minElevation)!==null&&ne!==void 0?ne:this.elevation,_i=(Te=oi.maxElevation)!==null&&Te!==void 0?Te:this.elevation;Tn=new Hu([Tn.min[0],Tn.min[1],Si],[Tn.max[0],Tn.max[1],_i])}Ye.push({aabb:Tn,zoom:Pn,x:Ma,y:en,wrap:_t.wrap,fullyVisible:cr})}}return it.sort((_t,Lt)=>_t.distanceSq-Lt.distanceSq).map(_t=>_t.tileID)}resize(L,ne){this.width=L,this.height=ne,this.pixelsToGLUnits=[2/L,-2/ne],this._constrain(),this._calcMatrices()}get unmodified(){return this._unmodified}zoomScale(L){return Math.pow(2,L)}scaleZoom(L){return Math.log(L)/Math.LN2}project(L){const ne=t.ac(L.lat,-85.051129,au);return new t.P(t.O(L.lng)*this.worldSize,t.Q(ne)*this.worldSize)}unproject(L){return new t.Z(L.x/this.worldSize,L.y/this.worldSize).toLngLat()}get point(){return this.project(this.center)}getCameraPosition(){return{lngLat:this.pointLocation(this.getCameraPoint()),altitude:Math.cos(this._pitch)*this.cameraToCenterDistance/this._pixelPerMeter+this.elevation}}recalculateZoom(L){const ne=this.elevation,Te=Math.cos(this._pitch)*this.cameraToCenterDistance/this._pixelPerMeter,Se=this.pointLocation(this.centerPoint,L),Re=L.getElevationForLngLatZoom(Se,this.tileZoom);if(!(this.elevation-Re))return;const ft=Te+ne-Re,xt=Math.cos(this._pitch)*this.cameraToCenterDistance/ft/t.b5(1,Se.lat),Dt=this.scaleZoom(xt/this.tileSize);this._elevation=Re,this._center=Se,this.zoom=Dt}setLocationAtPoint(L,ne){const Te=this.pointCoordinate(ne),Se=this.pointCoordinate(this.centerPoint),Re=this.locationCoordinate(L),ft=new t.Z(Re.x-(Te.x-Se.x),Re.y-(Te.y-Se.y));this.center=this.coordinateLocation(ft),this._renderWorldCopies&&(this.center=this.center.wrap())}locationPoint(L,ne){return ne?this.coordinatePoint(this.locationCoordinate(L),ne.getElevationForLngLatZoom(L,this.tileZoom),this.pixelMatrix3D):this.coordinatePoint(this.locationCoordinate(L))}pointLocation(L,ne){return this.coordinateLocation(this.pointCoordinate(L,ne))}locationCoordinate(L){return t.Z.fromLngLat(L)}coordinateLocation(L){return L&&L.toLngLat()}pointCoordinate(L,ne){if(ne){const Br=ne.pointCoordinate(L);if(Br!=null)return Br}const Te=[L.x,L.y,0,1],Se=[L.x,L.y,1,1];t.af(Te,Te,this.pixelMatrixInverse),t.af(Se,Se,this.pixelMatrixInverse);const Re=Te[3],ft=Se[3],xt=Te[1]/Re,Dt=Se[1]/ft,er=Te[2]/Re,fr=Se[2]/ft,pr=er===fr?0:(0-er)/(fr-er);return new t.Z(t.y.number(Te[0]/Re,Se[0]/ft,pr)/this.worldSize,t.y.number(xt,Dt,pr)/this.worldSize)}coordinatePoint(L,ne=0,Te=this.pixelMatrix){const Se=[L.x*this.worldSize,L.y*this.worldSize,ne,1];return t.af(Se,Se,Te),new t.P(Se[0]/Se[3],Se[1]/Se[3])}getBounds(){const L=Math.max(0,this.height/2-this.getHorizon());return new ae().extend(this.pointLocation(new t.P(0,L))).extend(this.pointLocation(new t.P(this.width,L))).extend(this.pointLocation(new t.P(this.width,this.height))).extend(this.pointLocation(new t.P(0,this.height)))}getMaxBounds(){return this.latRange&&this.latRange.length===2&&this.lngRange&&this.lngRange.length===2?new ae([this.lngRange[0],this.latRange[0]],[this.lngRange[1],this.latRange[1]]):null}getHorizon(){return Math.tan(Math.PI/2-this._pitch)*this.cameraToCenterDistance*.85}setMaxBounds(L){L?(this.lngRange=[L.getWest(),L.getEast()],this.latRange=[L.getSouth(),L.getNorth()],this._constrain()):(this.lngRange=null,this.latRange=[-85.051129,au])}calculateTileMatrix(L){const ne=L.canonical,Te=this.worldSize/this.zoomScale(ne.z),Se=ne.x+Math.pow(2,ne.z)*L.wrap,Re=t.an(new Float64Array(16));return t.J(Re,Re,[Se*Te,ne.y*Te,0]),t.K(Re,Re,[Te/t.X,Te/t.X,1]),Re}calculatePosMatrix(L,ne=!1){const Te=L.key,Se=ne?this._alignedPosMatrixCache:this._posMatrixCache;if(Se[Te])return Se[Te];const Re=this.calculateTileMatrix(L);return t.L(Re,ne?this.alignedModelViewProjectionMatrix:this.modelViewProjectionMatrix,Re),Se[Te]=new Float32Array(Re),Se[Te]}calculateFogMatrix(L){const ne=L.key,Te=this._fogMatrixCache;if(Te[ne])return Te[ne];const Se=this.calculateTileMatrix(L);return t.L(Se,this.fogMatrix,Se),Te[ne]=new Float32Array(Se),Te[ne]}customLayerMatrix(){return this.mercatorMatrix.slice()}getConstrained(L,ne){ne=t.ac(+ne,this.minZoom,this.maxZoom);const Te={center:new t.N(L.lng,L.lat),zoom:ne};let Se=this.lngRange;if(!this._renderWorldCopies&&Se===null){const _t=179.9999999999;Se=[-_t,_t]}const Re=this.tileSize*this.zoomScale(Te.zoom);let ft=0,xt=Re,Dt=0,er=Re,fr=0,pr=0;const{x:Br,y:ea}=this.size;if(this.latRange){const _t=this.latRange;ft=t.Q(_t[1])*Re,xt=t.Q(_t[0])*Re,xt-ftxt&&(vt=xt-_t)}if(Se){const _t=(Dt+er)/2;let Lt=Ve;this._renderWorldCopies&&(Lt=t.b3(Ve,_t-Re/2,_t+Re/2));const nr=Br/2;Lt-nrer&&(it=er-nr)}if(it!==void 0||vt!==void 0){const _t=new t.P(it??Ve,vt??Ye);Te.center=this.unproject.call({worldSize:Re},_t).wrap()}return Te}_constrain(){if(!this.center||!this.width||!this.height||this._constraining)return;this._constraining=!0;const L=this._unmodified,{center:ne,zoom:Te}=this.getConstrained(this.center,this.zoom);this.center=ne,this.zoom=Te,this._unmodified=L,this._constraining=!1}_calcMatrices(){if(!this.height)return;const L=this.centerOffset,ne=this.point.x,Te=this.point.y;this.cameraToCenterDistance=.5/Math.tan(this._fov/2)*this.height,this._pixelPerMeter=t.b5(1,this.center.lat)*this.worldSize;let Se=t.an(new Float64Array(16));t.K(Se,Se,[this.width/2,-this.height/2,1]),t.J(Se,Se,[1,-1,0]),this.labelPlaneMatrix=Se,Se=t.an(new Float64Array(16)),t.K(Se,Se,[1,-1,1]),t.J(Se,Se,[-1,-1,0]),t.K(Se,Se,[2/this.width,2/this.height,1]),this.glCoordMatrix=Se;const Re=this.cameraToCenterDistance+this._elevation*this._pixelPerMeter/Math.cos(this._pitch),ft=Math.min(this.elevation,this.minElevationForCurrentTile),xt=Re-ft*this._pixelPerMeter/Math.cos(this._pitch),Dt=ft<0?xt:Re,er=Math.PI/2+this._pitch,fr=this._fov*(.5+L.y/this.height),pr=Math.sin(fr)*Dt/Math.sin(t.ac(Math.PI-er-fr,.01,Math.PI-.01)),Br=this.getHorizon(),ea=2*Math.atan(Br/this.cameraToCenterDistance)*(.5+L.y/(2*Br)),Ve=Math.sin(ea)*Dt/Math.sin(t.ac(Math.PI-er-ea,.01,Math.PI-.01)),Ye=Math.min(pr,Ve);this.farZ=1.01*(Math.cos(Math.PI/2-this._pitch)*Ye+Dt),this.nearZ=this.height/50,Se=new Float64Array(16),t.b6(Se,this._fov,this.width/this.height,this.nearZ,this.farZ),Se[8]=2*-L.x/this.width,Se[9]=2*L.y/this.height,this.projectionMatrix=t.ae(Se),t.K(Se,Se,[1,-1,1]),t.J(Se,Se,[0,0,-this.cameraToCenterDistance]),t.b7(Se,Se,this._pitch),t.ad(Se,Se,this.angle),t.J(Se,Se,[-ne,-Te,0]),this.mercatorMatrix=t.K([],Se,[this.worldSize,this.worldSize,this.worldSize]),t.K(Se,Se,[1,1,this._pixelPerMeter]),this.pixelMatrix=t.L(new Float64Array(16),this.labelPlaneMatrix,Se),t.J(Se,Se,[0,0,-this.elevation]),this.modelViewProjectionMatrix=Se,this.invModelViewProjectionMatrix=t.as([],Se),this.fogMatrix=new Float64Array(16),t.b6(this.fogMatrix,this._fov,this.width/this.height,Re,this.farZ),this.fogMatrix[8]=2*-L.x/this.width,this.fogMatrix[9]=2*L.y/this.height,t.K(this.fogMatrix,this.fogMatrix,[1,-1,1]),t.J(this.fogMatrix,this.fogMatrix,[0,0,-this.cameraToCenterDistance]),t.b7(this.fogMatrix,this.fogMatrix,this._pitch),t.ad(this.fogMatrix,this.fogMatrix,this.angle),t.J(this.fogMatrix,this.fogMatrix,[-ne,-Te,0]),t.K(this.fogMatrix,this.fogMatrix,[1,1,this._pixelPerMeter]),t.J(this.fogMatrix,this.fogMatrix,[0,0,-this.elevation]),this.pixelMatrix3D=t.L(new Float64Array(16),this.labelPlaneMatrix,Se);const it=this.width%2/2,vt=this.height%2/2,St=Math.cos(this.angle),_t=Math.sin(this.angle),Lt=ne-Math.round(ne)+St*it+_t*vt,nr=Te-Math.round(Te)+St*vt+_t*it,cr=new Float64Array(Se);if(t.J(cr,cr,[Lt>.5?Lt-1:Lt,nr>.5?nr-1:nr,0]),this.alignedModelViewProjectionMatrix=cr,Se=t.as(new Float64Array(16),this.pixelMatrix),!Se)throw new Error("failed to invert matrix");this.pixelMatrixInverse=Se,this._posMatrixCache={},this._alignedPosMatrixCache={},this._fogMatrixCache={}}maxPitchScaleFactor(){if(!this.pixelMatrixInverse)return 1;const L=this.pointCoordinate(new t.P(0,0)),ne=[L.x*this.worldSize,L.y*this.worldSize,0,1];return t.af(ne,ne,this.pixelMatrix)[3]/this.cameraToCenterDistance}getCameraPoint(){const L=Math.tan(this._pitch)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new t.P(0,L))}getCameraQueryGeometry(L){const ne=this.getCameraPoint();if(L.length===1)return[L[0],ne];{let Te=ne.x,Se=ne.y,Re=ne.x,ft=ne.y;for(const xt of L)Te=Math.min(Te,xt.x),Se=Math.min(Se,xt.y),Re=Math.max(Re,xt.x),ft=Math.max(ft,xt.y);return[new t.P(Te,Se),new t.P(Re,Se),new t.P(Re,ft),new t.P(Te,ft),new t.P(Te,Se)]}}lngLatToCameraDepth(L,ne){const Te=this.locationCoordinate(L),Se=[Te.x*this.worldSize,Te.y*this.worldSize,ne,1];return t.af(Se,Se,this.modelViewProjectionMatrix),Se[2]/Se[3]}}function vc(ze,L){let ne,Te=!1,Se=null,Re=null;const ft=()=>{Se=null,Te&&(ze.apply(Re,ne),Se=setTimeout(ft,L),Te=!1)};return(...xt)=>(Te=!0,Re=this,ne=xt,Se||ft(),Se)}class Pu{constructor(L){this._getCurrentHash=()=>{const ne=window.location.hash.replace("#","");if(this._hashName){let Te;return ne.split("&").map(Se=>Se.split("=")).forEach(Se=>{Se[0]===this._hashName&&(Te=Se)}),(Te&&Te[1]||"").split("/")}return ne.split("/")},this._onHashChange=()=>{const ne=this._getCurrentHash();if(ne.length>=3&&!ne.some(Te=>isNaN(Te))){const Te=this._map.dragRotate.isEnabled()&&this._map.touchZoomRotate.isEnabled()?+(ne[3]||0):this._map.getBearing();return this._map.jumpTo({center:[+ne[2],+ne[1]],zoom:+ne[0],bearing:Te,pitch:+(ne[4]||0)}),!0}return!1},this._updateHashUnthrottled=()=>{const ne=window.location.href.replace(/(#.*)?$/,this.getHashString());window.history.replaceState(window.history.state,null,ne)},this._removeHash=()=>{const ne=this._getCurrentHash();if(ne.length===0)return;const Te=ne.join("/");let Se=Te;Se.split("&").length>0&&(Se=Se.split("&")[0]),this._hashName&&(Se=`${this._hashName}=${Te}`);let Re=window.location.hash.replace(Se,"");Re.startsWith("#&")?Re=Re.slice(0,1)+Re.slice(2):Re==="#"&&(Re="");let ft=window.location.href.replace(/(#.+)?$/,Re);ft=ft.replace("&&","&"),window.history.replaceState(window.history.state,null,ft)},this._updateHash=vc(this._updateHashUnthrottled,300),this._hashName=L&&encodeURIComponent(L)}addTo(L){return this._map=L,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(L){const ne=this._map.getCenter(),Te=Math.round(100*this._map.getZoom())/100,Se=Math.ceil((Te*Math.LN2+Math.log(512/360/.5))/Math.LN10),Re=Math.pow(10,Se),ft=Math.round(ne.lng*Re)/Re,xt=Math.round(ne.lat*Re)/Re,Dt=this._map.getBearing(),er=this._map.getPitch();let fr="";if(fr+=L?`/${ft}/${xt}/${Te}`:`${Te}/${xt}/${ft}`,(Dt||er)&&(fr+="/"+Math.round(10*Dt)/10),er&&(fr+=`/${Math.round(er)}`),this._hashName){const pr=this._hashName;let Br=!1;const ea=window.location.hash.slice(1).split("&").map(Ve=>{const Ye=Ve.split("=")[0];return Ye===pr?(Br=!0,`${Ye}=${fr}`):Ve}).filter(Ve=>Ve);return Br||ea.push(`${pr}=${fr}`),`#${ea.join("&")}`}return`#${fr}`}}const rc={linearity:.3,easing:t.b8(0,0,.3,1)},Pc=t.e({deceleration:2500,maxSpeed:1400},rc),bf=t.e({deceleration:20,maxSpeed:1400},rc),Vf=t.e({deceleration:1e3,maxSpeed:360},rc),dc=t.e({deceleration:1e3,maxSpeed:90},rc);class Ic{constructor(L){this._map=L,this.clear()}clear(){this._inertiaBuffer=[]}record(L){this._drainInertiaBuffer(),this._inertiaBuffer.push({time:o.now(),settings:L})}_drainInertiaBuffer(){const L=this._inertiaBuffer,ne=o.now();for(;L.length>0&&ne-L[0].time>160;)L.shift()}_onMoveEnd(L){if(this._drainInertiaBuffer(),this._inertiaBuffer.length<2)return;const ne={zoom:0,bearing:0,pitch:0,pan:new t.P(0,0),pinchAround:void 0,around:void 0};for(const{settings:Re}of this._inertiaBuffer)ne.zoom+=Re.zoomDelta||0,ne.bearing+=Re.bearingDelta||0,ne.pitch+=Re.pitchDelta||0,Re.panDelta&&ne.pan._add(Re.panDelta),Re.around&&(ne.around=Re.around),Re.pinchAround&&(ne.pinchAround=Re.pinchAround);const Te=this._inertiaBuffer[this._inertiaBuffer.length-1].time-this._inertiaBuffer[0].time,Se={};if(ne.pan.mag()){const Re=Rc(ne.pan.mag(),Te,t.e({},Pc,L||{}));Se.offset=ne.pan.mult(Re.amount/ne.pan.mag()),Se.center=this._map.transform.center,fu(Se,Re)}if(ne.zoom){const Re=Rc(ne.zoom,Te,bf);Se.zoom=this._map.transform.zoom+Re.amount,fu(Se,Re)}if(ne.bearing){const Re=Rc(ne.bearing,Te,Vf);Se.bearing=this._map.transform.bearing+t.ac(Re.amount,-179,179),fu(Se,Re)}if(ne.pitch){const Re=Rc(ne.pitch,Te,dc);Se.pitch=this._map.transform.pitch+Re.amount,fu(Se,Re)}if(Se.zoom||Se.bearing){const Re=ne.pinchAround===void 0?ne.around:ne.pinchAround;Se.around=Re?this._map.unproject(Re):this._map.getCenter()}return this.clear(),t.e(Se,{noMoveStart:!0})}}function fu(ze,L){(!ze.duration||ze.durationne.unproject(Dt)),xt=Re.reduce((Dt,er,fr,pr)=>Dt.add(er.div(pr.length)),new t.P(0,0));super(L,{points:Re,point:xt,lngLats:ft,lngLat:ne.unproject(xt),originalEvent:Te}),this._defaultPrevented=!1}}class ef extends t.k{preventDefault(){this._defaultPrevented=!0}get defaultPrevented(){return this._defaultPrevented}constructor(L,ne,Te){super(L,{originalEvent:Te}),this._defaultPrevented=!1}}class gc{constructor(L,ne){this._map=L,this._clickTolerance=ne.clickTolerance}reset(){delete this._mousedownPos}wheel(L){return this._firePreventable(new ef(L.type,this._map,L))}mousedown(L,ne){return this._mousedownPos=ne,this._firePreventable(new Rl(L.type,this._map,L))}mouseup(L){this._map.fire(new Rl(L.type,this._map,L))}click(L,ne){this._mousedownPos&&this._mousedownPos.dist(ne)>=this._clickTolerance||this._map.fire(new Rl(L.type,this._map,L))}dblclick(L){return this._firePreventable(new Rl(L.type,this._map,L))}mouseover(L){this._map.fire(new Rl(L.type,this._map,L))}mouseout(L){this._map.fire(new Rl(L.type,this._map,L))}touchstart(L){return this._firePreventable(new pc(L.type,this._map,L))}touchmove(L){this._map.fire(new pc(L.type,this._map,L))}touchend(L){this._map.fire(new pc(L.type,this._map,L))}touchcancel(L){this._map.fire(new pc(L.type,this._map,L))}_firePreventable(L){if(this._map.fire(L),L.defaultPrevented)return{}}isEnabled(){return!0}isActive(){return!1}enable(){}disable(){}}class Gs{constructor(L){this._map=L}reset(){this._delayContextMenu=!1,this._ignoreContextMenu=!0,delete this._contextMenuEvent}mousemove(L){this._map.fire(new Rl(L.type,this._map,L))}mousedown(){this._delayContextMenu=!0,this._ignoreContextMenu=!1}mouseup(){this._delayContextMenu=!1,this._contextMenuEvent&&(this._map.fire(new Rl("contextmenu",this._map,this._contextMenuEvent)),delete this._contextMenuEvent)}contextmenu(L){this._delayContextMenu?this._contextMenuEvent=L:this._ignoreContextMenu||this._map.fire(new Rl(L.type,this._map,L)),this._map.listens("contextmenu")&&L.preventDefault()}isEnabled(){return!0}isActive(){return!1}enable(){}disable(){}}class nu{constructor(L){this._map=L}get transform(){return this._map._requestedCameraState||this._map.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(L){return this.transform.pointLocation(t.P.convert(L),this._map.terrain)}}class wu{constructor(L,ne){this._map=L,this._tr=new nu(L),this._el=L.getCanvasContainer(),this._container=L.getContainer(),this._clickTolerance=ne.clickTolerance||1}isEnabled(){return!!this._enabled}isActive(){return!!this._active}enable(){this.isEnabled()||(this._enabled=!0)}disable(){this.isEnabled()&&(this._enabled=!1)}mousedown(L,ne){this.isEnabled()&&L.shiftKey&&L.button===0&&(n.disableDrag(),this._startPos=this._lastPos=ne,this._active=!0)}mousemoveWindow(L,ne){if(!this._active)return;const Te=ne;if(this._lastPos.equals(Te)||!this._box&&Te.dist(this._startPos)Re.fitScreenCoordinates(Te,Se,this._tr.bearing,{linear:!0})};this._fireEvent("boxzoomcancel",L)}keydown(L){this._active&&L.keyCode===27&&(this.reset(),this._fireEvent("boxzoomcancel",L))}reset(){this._active=!1,this._container.classList.remove("maplibregl-crosshair"),this._box&&(n.remove(this._box),this._box=null),n.enableDrag(),delete this._startPos,delete this._lastPos}_fireEvent(L,ne){return this._map.fire(new t.k(L,{originalEvent:ne}))}}function Xc(ze,L){if(ze.length!==L.length)throw new Error(`The number of touches and points are not equal - touches ${ze.length}, points ${L.length}`);const ne={};for(let Te=0;Tethis.numTouches)&&(this.aborted=!0),this.aborted||(this.startTime===void 0&&(this.startTime=L.timeStamp),Te.length===this.numTouches&&(this.centroid=function(Se){const Re=new t.P(0,0);for(const ft of Se)Re._add(ft);return Re.div(Se.length)}(ne),this.touches=Xc(Te,ne)))}touchmove(L,ne,Te){if(this.aborted||!this.centroid)return;const Se=Xc(Te,ne);for(const Re in this.touches){const ft=Se[Re];(!ft||ft.dist(this.touches[Re])>30)&&(this.aborted=!0)}}touchend(L,ne,Te){if((!this.centroid||L.timeStamp-this.startTime>500)&&(this.aborted=!0),Te.length===0){const Se=!this.aborted&&this.centroid;if(this.reset(),Se)return Se}}}class Sc{constructor(L){this.singleTap=new Ws(L),this.numTaps=L.numTaps,this.reset()}reset(){this.lastTime=1/0,delete this.lastTap,this.count=0,this.singleTap.reset()}touchstart(L,ne,Te){this.singleTap.touchstart(L,ne,Te)}touchmove(L,ne,Te){this.singleTap.touchmove(L,ne,Te)}touchend(L,ne,Te){const Se=this.singleTap.touchend(L,ne,Te);if(Se){const Re=L.timeStamp-this.lastTime<500,ft=!this.lastTap||this.lastTap.dist(Se)<30;if(Re&&ft||this.reset(),this.count++,this.lastTime=L.timeStamp,this.lastTap=Se,this.count===this.numTaps)return this.reset(),Se}}}class ac{constructor(L){this._tr=new nu(L),this._zoomIn=new Sc({numTouches:1,numTaps:2}),this._zoomOut=new Sc({numTouches:2,numTaps:1}),this.reset()}reset(){this._active=!1,this._zoomIn.reset(),this._zoomOut.reset()}touchstart(L,ne,Te){this._zoomIn.touchstart(L,ne,Te),this._zoomOut.touchstart(L,ne,Te)}touchmove(L,ne,Te){this._zoomIn.touchmove(L,ne,Te),this._zoomOut.touchmove(L,ne,Te)}touchend(L,ne,Te){const Se=this._zoomIn.touchend(L,ne,Te),Re=this._zoomOut.touchend(L,ne,Te),ft=this._tr;return Se?(this._active=!0,L.preventDefault(),setTimeout(()=>this.reset(),0),{cameraAnimation:xt=>xt.easeTo({duration:300,zoom:ft.zoom+1,around:ft.unproject(Se)},{originalEvent:L})}):Re?(this._active=!0,L.preventDefault(),setTimeout(()=>this.reset(),0),{cameraAnimation:xt=>xt.easeTo({duration:300,zoom:ft.zoom-1,around:ft.unproject(Re)},{originalEvent:L})}):void 0}touchcancel(){this.reset()}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class hu{constructor(L){this._enabled=!!L.enable,this._moveStateManager=L.moveStateManager,this._clickTolerance=L.clickTolerance||1,this._moveFunction=L.move,this._activateOnStart=!!L.activateOnStart,L.assignEvents(this),this.reset()}reset(L){this._active=!1,this._moved=!1,delete this._lastPoint,this._moveStateManager.endMove(L)}_move(...L){const ne=this._moveFunction(...L);if(ne.bearingDelta||ne.pitchDelta||ne.around||ne.panDelta)return this._active=!0,ne}dragStart(L,ne){this.isEnabled()&&!this._lastPoint&&this._moveStateManager.isValidStartEvent(L)&&(this._moveStateManager.startMove(L),this._lastPoint=ne.length?ne[0]:ne,this._activateOnStart&&this._lastPoint&&(this._active=!0))}dragMove(L,ne){if(!this.isEnabled())return;const Te=this._lastPoint;if(!Te)return;if(L.preventDefault(),!this._moveStateManager.isValidMoveEvent(L))return void this.reset(L);const Se=ne.length?ne[0]:ne;return!this._moved&&Se.dist(Te){ze.mousedown=ze.dragStart,ze.mousemoveWindow=ze.dragMove,ze.mouseup=ze.dragEnd,ze.contextmenu=L=>{L.preventDefault()}},Fl=({enable:ze,clickTolerance:L,bearingDegreesPerPixelMoved:ne=.8})=>{const Te=new Iu({checkCorrectEvent:Se=>n.mouseButton(Se)===0&&Se.ctrlKey||n.mouseButton(Se)===2});return new hu({clickTolerance:L,move:(Se,Re)=>({bearingDelta:(Re.x-Se.x)*ne}),moveStateManager:Te,enable:ze,assignEvents:wf})},tf=({enable:ze,clickTolerance:L,pitchDegreesPerPixelMoved:ne=-.5})=>{const Te=new Iu({checkCorrectEvent:Se=>n.mouseButton(Se)===0&&Se.ctrlKey||n.mouseButton(Se)===2});return new hu({clickTolerance:L,move:(Se,Re)=>({pitchDelta:(Re.y-Se.y)*ne}),moveStateManager:Te,enable:ze,assignEvents:wf})};class vu{constructor(L,ne){this._clickTolerance=L.clickTolerance||1,this._map=ne,this.reset()}reset(){this._active=!1,this._touches={},this._sum=new t.P(0,0)}_shouldBePrevented(L){return L<(this._map.cooperativeGestures.isEnabled()?2:1)}touchstart(L,ne,Te){return this._calculateTransform(L,ne,Te)}touchmove(L,ne,Te){if(this._active){if(!this._shouldBePrevented(Te.length))return L.preventDefault(),this._calculateTransform(L,ne,Te);this._map.cooperativeGestures.notifyGestureBlocked("touch_pan",L)}}touchend(L,ne,Te){this._calculateTransform(L,ne,Te),this._active&&this._shouldBePrevented(Te.length)&&this.reset()}touchcancel(){this.reset()}_calculateTransform(L,ne,Te){Te.length>0&&(this._active=!0);const Se=Xc(Te,ne),Re=new t.P(0,0),ft=new t.P(0,0);let xt=0;for(const er in Se){const fr=Se[er],pr=this._touches[er];pr&&(Re._add(fr),ft._add(fr.sub(pr)),xt++,Se[er]=fr)}if(this._touches=Se,this._shouldBePrevented(xt)||!ft.mag())return;const Dt=ft.div(xt);return this._sum._add(Dt),this._sum.mag()Math.abs(ze.x)}class Zc extends Wu{constructor(L){super(),this._currentTouchCount=0,this._map=L}reset(){super.reset(),this._valid=void 0,delete this._firstMove,delete this._lastPoints}touchstart(L,ne,Te){super.touchstart(L,ne,Te),this._currentTouchCount=Te.length}_start(L){this._lastPoints=L,Du(L[0].sub(L[1]))&&(this._valid=!1)}_move(L,ne,Te){if(this._map.cooperativeGestures.isEnabled()&&this._currentTouchCount<3)return;const Se=L[0].sub(this._lastPoints[0]),Re=L[1].sub(this._lastPoints[1]);return this._valid=this.gestureBeginsVertically(Se,Re,Te.timeStamp),this._valid?(this._lastPoints=L,this._active=!0,{pitchDelta:(Se.y+Re.y)/2*-.5}):void 0}gestureBeginsVertically(L,ne,Te){if(this._valid!==void 0)return this._valid;const Se=L.mag()>=2,Re=ne.mag()>=2;if(!Se&&!Re)return;if(!Se||!Re)return this._firstMove===void 0&&(this._firstMove=Te),Te-this._firstMove<100&&void 0;const ft=L.y>0==ne.y>0;return Du(L)&&Du(ne)&&ft}}const Qt={panStep:100,bearingStep:15,pitchStep:10};class yr{constructor(L){this._tr=new nu(L);const ne=Qt;this._panStep=ne.panStep,this._bearingStep=ne.bearingStep,this._pitchStep=ne.pitchStep,this._rotationDisabled=!1}reset(){this._active=!1}keydown(L){if(L.altKey||L.ctrlKey||L.metaKey)return;let ne=0,Te=0,Se=0,Re=0,ft=0;switch(L.keyCode){case 61:case 107:case 171:case 187:ne=1;break;case 189:case 109:case 173:ne=-1;break;case 37:L.shiftKey?Te=-1:(L.preventDefault(),Re=-1);break;case 39:L.shiftKey?Te=1:(L.preventDefault(),Re=1);break;case 38:L.shiftKey?Se=1:(L.preventDefault(),ft=-1);break;case 40:L.shiftKey?Se=-1:(L.preventDefault(),ft=1);break;default:return}return this._rotationDisabled&&(Te=0,Se=0),{cameraAnimation:xt=>{const Dt=this._tr;xt.easeTo({duration:300,easeId:"keyboardHandler",easing:$r,zoom:ne?Math.round(Dt.zoom)+ne*(L.shiftKey?2:1):Dt.zoom,bearing:Dt.bearing+Te*this._bearingStep,pitch:Dt.pitch+Se*this._pitchStep,offset:[-Re*this._panStep,-ft*this._panStep],center:Dt.center},{originalEvent:L})}}}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}}function $r(ze){return ze*(2-ze)}const Vr=4.000244140625;class ma{constructor(L,ne){this._onTimeout=Te=>{this._type="wheel",this._delta-=this._lastValue,this._active||this._start(Te)},this._map=L,this._tr=new nu(L),this._triggerRenderFrame=ne,this._delta=0,this._defaultZoomRate=.01,this._wheelZoomRate=.0022222222222222222}setZoomRate(L){this._defaultZoomRate=L}setWheelZoomRate(L){this._wheelZoomRate=L}isEnabled(){return!!this._enabled}isActive(){return!!this._active||this._finishTimeout!==void 0}isZooming(){return!!this._zooming}enable(L){this.isEnabled()||(this._enabled=!0,this._aroundCenter=!!L&&L.around==="center")}disable(){this.isEnabled()&&(this._enabled=!1)}_shouldBePrevented(L){return!!this._map.cooperativeGestures.isEnabled()&&!(L.ctrlKey||this._map.cooperativeGestures.isBypassed(L))}wheel(L){if(!this.isEnabled())return;if(this._shouldBePrevented(L))return void this._map.cooperativeGestures.notifyGestureBlocked("wheel_zoom",L);let ne=L.deltaMode===WheelEvent.DOM_DELTA_LINE?40*L.deltaY:L.deltaY;const Te=o.now(),Se=Te-(this._lastWheelEventTime||0);this._lastWheelEventTime=Te,ne!==0&&ne%Vr==0?this._type="wheel":ne!==0&&Math.abs(ne)<4?this._type="trackpad":Se>400?(this._type=null,this._lastValue=ne,this._timeout=setTimeout(this._onTimeout,40,L)):this._type||(this._type=Math.abs(Se*ne)<200?"trackpad":"wheel",this._timeout&&(clearTimeout(this._timeout),this._timeout=null,ne+=this._lastValue)),L.shiftKey&&ne&&(ne/=4),this._type&&(this._lastWheelEvent=L,this._delta-=ne,this._active||this._start(L)),L.preventDefault()}_start(L){if(!this._delta)return;this._frameId&&(this._frameId=null),this._active=!0,this.isZooming()||(this._zooming=!0),this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout);const ne=n.mousePos(this._map.getCanvas(),L),Te=this._tr;this._around=ne.y>Te.transform.height/2-Te.transform.getHorizon()?t.N.convert(this._aroundCenter?Te.center:Te.unproject(ne)):t.N.convert(Te.center),this._aroundPoint=Te.transform.locationPoint(this._around),this._frameId||(this._frameId=!0,this._triggerRenderFrame())}renderFrame(){if(!this._frameId||(this._frameId=null,!this.isActive()))return;const L=this._tr.transform;if(this._delta!==0){const Dt=this._type==="wheel"&&Math.abs(this._delta)>Vr?this._wheelZoomRate:this._defaultZoomRate;let er=2/(1+Math.exp(-Math.abs(this._delta*Dt)));this._delta<0&&er!==0&&(er=1/er);const fr=typeof this._targetZoom=="number"?L.zoomScale(this._targetZoom):L.scale;this._targetZoom=Math.min(L.maxZoom,Math.max(L.minZoom,L.scaleZoom(fr*er))),this._type==="wheel"&&(this._startZoom=L.zoom,this._easing=this._smoothOutEasing(200)),this._delta=0}const ne=typeof this._targetZoom=="number"?this._targetZoom:L.zoom,Te=this._startZoom,Se=this._easing;let Re,ft=!1;const xt=o.now()-this._lastWheelEventTime;if(this._type==="wheel"&&Te&&Se&&xt){const Dt=Math.min(xt/200,1),er=Se(Dt);Re=t.y.number(Te,ne,er),Dt<1?this._frameId||(this._frameId=!0):ft=!0}else Re=ne,ft=!0;return this._active=!0,ft&&(this._active=!1,this._finishTimeout=setTimeout(()=>{this._zooming=!1,this._triggerRenderFrame(),delete this._targetZoom,delete this._finishTimeout},200)),{noInertia:!0,needsRenderFrame:!ft,zoomDelta:Re-L.zoom,around:this._aroundPoint,originalEvent:this._lastWheelEvent}}_smoothOutEasing(L){let ne=t.b9;if(this._prevEase){const Te=this._prevEase,Se=(o.now()-Te.start)/Te.duration,Re=Te.easing(Se+.01)-Te.easing(Se),ft=.27/Math.sqrt(Re*Re+1e-4)*.01,xt=Math.sqrt(.0729-ft*ft);ne=t.b8(ft,xt,.25,1)}return this._prevEase={start:o.now(),duration:L,easing:ne},ne}reset(){this._active=!1,this._zooming=!1,delete this._targetZoom,this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout)}}class tn{constructor(L,ne){this._clickZoom=L,this._tapZoom=ne}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()}}class Ja{constructor(L){this._tr=new nu(L),this.reset()}reset(){this._active=!1}dblclick(L,ne){return L.preventDefault(),{cameraAnimation:Te=>{Te.easeTo({duration:300,zoom:this._tr.zoom+(L.shiftKey?-1:1),around:this._tr.unproject(ne)},{originalEvent:L})}}}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class Ln{constructor(){this._tap=new Sc({numTouches:1,numTaps:1}),this.reset()}reset(){this._active=!1,delete this._swipePoint,delete this._swipeTouch,delete this._tapTime,delete this._tapPoint,this._tap.reset()}touchstart(L,ne,Te){if(!this._swipePoint)if(this._tapTime){const Se=ne[0],Re=L.timeStamp-this._tapTime<500,ft=this._tapPoint.dist(Se)<30;Re&&ft?Te.length>0&&(this._swipePoint=Se,this._swipeTouch=Te[0].identifier):this.reset()}else this._tap.touchstart(L,ne,Te)}touchmove(L,ne,Te){if(this._tapTime){if(this._swipePoint){if(Te[0].identifier!==this._swipeTouch)return;const Se=ne[0],Re=Se.y-this._swipePoint.y;return this._swipePoint=Se,L.preventDefault(),this._active=!0,{zoomDelta:Re/128}}}else this._tap.touchmove(L,ne,Te)}touchend(L,ne,Te){if(this._tapTime)this._swipePoint&&Te.length===0&&this.reset();else{const Se=this._tap.touchend(L,ne,Te);Se&&(this._tapTime=L.timeStamp,this._tapPoint=Se)}}touchcancel(){this.reset()}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class On{constructor(L,ne,Te){this._el=L,this._mousePan=ne,this._touchPan=Te}enable(L){this._inertiaOptions=L||{},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()}}class Qn{constructor(L,ne,Te){this._pitchWithRotate=L.pitchWithRotate,this._mouseRotate=ne,this._mousePitch=Te}enable(){this._mouseRotate.enable(),this._pitchWithRotate&&this._mousePitch.enable()}disable(){this._mouseRotate.disable(),this._mousePitch.disable()}isEnabled(){return this._mouseRotate.isEnabled()&&(!this._pitchWithRotate||this._mousePitch.isEnabled())}isActive(){return this._mouseRotate.isActive()||this._mousePitch.isActive()}}class _n{constructor(L,ne,Te,Se){this._el=L,this._touchZoom=ne,this._touchRotate=Te,this._tapDragZoom=Se,this._rotationDisabled=!1,this._enabled=!0}enable(L){this._touchZoom.enable(L),this._rotationDisabled||this._touchRotate.enable(L),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()}disableRotation(){this._rotationDisabled=!0,this._touchRotate.disable()}enableRotation(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&&this._touchRotate.enable()}}class qn{constructor(L,ne){this._bypassKey=navigator.userAgent.indexOf("Mac")!==-1?"metaKey":"ctrlKey",this._map=L,this._options=ne,this._enabled=!1}isActive(){return!1}reset(){}_setupUI(){if(this._container)return;const L=this._map.getCanvasContainer();L.classList.add("maplibregl-cooperative-gestures"),this._container=n.create("div","maplibregl-cooperative-gesture-screen",L);let ne=this._map._getUIString("CooperativeGesturesHandler.WindowsHelpText");this._bypassKey==="metaKey"&&(ne=this._map._getUIString("CooperativeGesturesHandler.MacHelpText"));const Te=this._map._getUIString("CooperativeGesturesHandler.MobileHelpText"),Se=document.createElement("div");Se.className="maplibregl-desktop-message",Se.textContent=ne,this._container.appendChild(Se);const Re=document.createElement("div");Re.className="maplibregl-mobile-message",Re.textContent=Te,this._container.appendChild(Re),this._container.setAttribute("aria-hidden","true")}_destroyUI(){this._container&&(n.remove(this._container),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(L){return L[this._bypassKey]}notifyGestureBlocked(L,ne){this._enabled&&(this._map.fire(new t.k("cooperativegestureprevented",{gestureType:L,originalEvent:ne})),this._container.classList.add("maplibregl-show"),setTimeout(()=>{this._container.classList.remove("maplibregl-show")},100))}}const En=ze=>ze.zoom||ze.drag||ze.pitch||ze.rotate;class dn extends t.k{}function ai(ze){return ze.panDelta&&ze.panDelta.mag()||ze.zoomDelta||ze.bearingDelta||ze.pitchDelta}class Hi{constructor(L,ne){this.handleWindowEvent=Se=>{this.handleEvent(Se,`${Se.type}Window`)},this.handleEvent=(Se,Re)=>{if(Se.type==="blur")return void this.stop(!0);this._updatingCamera=!0;const ft=Se.type==="renderFrame"?void 0:Se,xt={needsRenderFrame:!1},Dt={},er={},fr=Se.touches,pr=fr?this._getMapTouches(fr):void 0,Br=pr?n.touchPos(this._map.getCanvas(),pr):n.mousePos(this._map.getCanvas(),Se);for(const{handlerName:Ye,handler:it,allowed:vt}of this._handlers){if(!it.isEnabled())continue;let St;this._blockedByActive(er,vt,Ye)?it.reset():it[Re||Se.type]&&(St=it[Re||Se.type](Se,Br,pr),this.mergeHandlerResult(xt,Dt,St,Ye,ft),St&&St.needsRenderFrame&&this._triggerRenderFrame()),(St||it.isActive())&&(er[Ye]=it)}const ea={};for(const Ye in this._previousActiveHandlers)er[Ye]||(ea[Ye]=ft);this._previousActiveHandlers=er,(Object.keys(ea).length||ai(xt))&&(this._changes.push([xt,Dt,ea]),this._triggerRenderFrame()),(Object.keys(er).length||ai(xt))&&this._map._stop(!0),this._updatingCamera=!1;const{cameraAnimation:Ve}=xt;Ve&&(this._inertia.clear(),this._fireEvents({},{},!0),this._changes=[],Ve(this._map))},this._map=L,this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new Ic(L),this._bearingSnap=ne.bearingSnap,this._previousActiveHandlers={},this._eventsInProgress={},this._addDefaultHandlers(ne);const Te=this._el;this._listeners=[[Te,"touchstart",{passive:!0}],[Te,"touchmove",{passive:!1}],[Te,"touchend",void 0],[Te,"touchcancel",void 0],[Te,"mousedown",void 0],[Te,"mousemove",void 0],[Te,"mouseup",void 0],[document,"mousemove",{capture:!0}],[document,"mouseup",void 0],[Te,"mouseover",void 0],[Te,"mouseout",void 0],[Te,"dblclick",void 0],[Te,"click",void 0],[Te,"keydown",{capture:!1}],[Te,"keyup",void 0],[Te,"wheel",{passive:!1}],[Te,"contextmenu",void 0],[window,"blur",void 0]];for(const[Se,Re,ft]of this._listeners)n.addEventListener(Se,Re,Se===document?this.handleWindowEvent:this.handleEvent,ft)}destroy(){for(const[L,ne,Te]of this._listeners)n.removeEventListener(L,ne,L===document?this.handleWindowEvent:this.handleEvent,Te)}_addDefaultHandlers(L){const ne=this._map,Te=ne.getCanvasContainer();this._add("mapEvent",new gc(ne,L));const Se=ne.boxZoom=new wu(ne,L);this._add("boxZoom",Se),L.interactive&&L.boxZoom&&Se.enable();const Re=ne.cooperativeGestures=new qn(ne,L.cooperativeGestures);this._add("cooperativeGestures",Re),L.cooperativeGestures&&Re.enable();const ft=new ac(ne),xt=new Ja(ne);ne.doubleClickZoom=new tn(xt,ft),this._add("tapZoom",ft),this._add("clickZoom",xt),L.interactive&&L.doubleClickZoom&&ne.doubleClickZoom.enable();const Dt=new Ln;this._add("tapDragZoom",Dt);const er=ne.touchPitch=new Zc(ne);this._add("touchPitch",er),L.interactive&&L.touchPitch&&ne.touchPitch.enable(L.touchPitch);const fr=Fl(L),pr=tf(L);ne.dragRotate=new Qn(L,fr,pr),this._add("mouseRotate",fr,["mousePitch"]),this._add("mousePitch",pr,["mouseRotate"]),L.interactive&&L.dragRotate&&ne.dragRotate.enable();const Br=(({enable:St,clickTolerance:_t})=>{const Lt=new Iu({checkCorrectEvent:nr=>n.mouseButton(nr)===0&&!nr.ctrlKey});return new hu({clickTolerance:_t,move:(nr,cr)=>({around:cr,panDelta:cr.sub(nr)}),activateOnStart:!0,moveStateManager:Lt,enable:St,assignEvents:wf})})(L),ea=new vu(L,ne);ne.dragPan=new On(Te,Br,ea),this._add("mousePan",Br),this._add("touchPan",ea,["touchZoom","touchRotate"]),L.interactive&&L.dragPan&&ne.dragPan.enable(L.dragPan);const Ve=new nc,Ye=new Yl;ne.touchZoomRotate=new _n(Te,Ye,Ve,Dt),this._add("touchRotate",Ve,["touchPan","touchZoom"]),this._add("touchZoom",Ye,["touchPan","touchRotate"]),L.interactive&&L.touchZoomRotate&&ne.touchZoomRotate.enable(L.touchZoomRotate);const it=ne.scrollZoom=new ma(ne,()=>this._triggerRenderFrame());this._add("scrollZoom",it,["mousePan"]),L.interactive&&L.scrollZoom&&ne.scrollZoom.enable(L.scrollZoom);const vt=ne.keyboard=new yr(ne);this._add("keyboard",vt),L.interactive&&L.keyboard&&ne.keyboard.enable(),this._add("blockableMapEvent",new Gs(ne))}_add(L,ne,Te){this._handlers.push({handlerName:L,handler:ne,allowed:Te}),this._handlersById[L]=ne}stop(L){if(!this._updatingCamera){for(const{handler:ne}of this._handlers)ne.reset();this._inertia.clear(),this._fireEvents({},{},L),this._changes=[]}}isActive(){for(const{handler:L}of this._handlers)if(L.isActive())return!0;return!1}isZooming(){return!!this._eventsInProgress.zoom||this._map.scrollZoom.isZooming()}isRotating(){return!!this._eventsInProgress.rotate}isMoving(){return!!En(this._eventsInProgress)||this.isZooming()}_blockedByActive(L,ne,Te){for(const Se in L)if(Se!==Te&&(!ne||ne.indexOf(Se)<0))return!0;return!1}_getMapTouches(L){const ne=[];for(const Te of L)this._el.contains(Te.target)&&ne.push(Te);return ne}mergeHandlerResult(L,ne,Te,Se,Re){if(!Te)return;t.e(L,Te);const ft={handlerName:Se,originalEvent:Te.originalEvent||Re};Te.zoomDelta!==void 0&&(ne.zoom=ft),Te.panDelta!==void 0&&(ne.drag=ft),Te.pitchDelta!==void 0&&(ne.pitch=ft),Te.bearingDelta!==void 0&&(ne.rotate=ft)}_applyChanges(){const L={},ne={},Te={};for(const[Se,Re,ft]of this._changes)Se.panDelta&&(L.panDelta=(L.panDelta||new t.P(0,0))._add(Se.panDelta)),Se.zoomDelta&&(L.zoomDelta=(L.zoomDelta||0)+Se.zoomDelta),Se.bearingDelta&&(L.bearingDelta=(L.bearingDelta||0)+Se.bearingDelta),Se.pitchDelta&&(L.pitchDelta=(L.pitchDelta||0)+Se.pitchDelta),Se.around!==void 0&&(L.around=Se.around),Se.pinchAround!==void 0&&(L.pinchAround=Se.pinchAround),Se.noInertia&&(L.noInertia=Se.noInertia),t.e(ne,Re),t.e(Te,ft);this._updateMapTransform(L,ne,Te),this._changes=[]}_updateMapTransform(L,ne,Te){const Se=this._map,Re=Se._getTransformForUpdate(),ft=Se.terrain;if(!(ai(L)||ft&&this._terrainMovement))return this._fireEvents(ne,Te,!0);let{panDelta:xt,zoomDelta:Dt,bearingDelta:er,pitchDelta:fr,around:pr,pinchAround:Br}=L;Br!==void 0&&(pr=Br),Se._stop(!0),pr=pr||Se.transform.centerPoint;const ea=Re.pointLocation(xt?pr.sub(xt):pr);er&&(Re.bearing+=er),fr&&(Re.pitch+=fr),Dt&&(Re.zoom+=Dt),ft?this._terrainMovement||!ne.drag&&!ne.zoom?ne.drag&&this._terrainMovement?Re.center=Re.pointLocation(Re.centerPoint.sub(xt)):Re.setLocationAtPoint(ea,pr):(this._terrainMovement=!0,this._map._elevationFreeze=!0,Re.setLocationAtPoint(ea,pr)):Re.setLocationAtPoint(ea,pr),Se._applyUpdatedTransform(Re),this._map._update(),L.noInertia||this._inertia.record(L),this._fireEvents(ne,Te,!0)}_fireEvents(L,ne,Te){const Se=En(this._eventsInProgress),Re=En(L),ft={};for(const pr in L){const{originalEvent:Br}=L[pr];this._eventsInProgress[pr]||(ft[`${pr}start`]=Br),this._eventsInProgress[pr]=L[pr]}!Se&&Re&&this._fireEvent("movestart",Re.originalEvent);for(const pr in ft)this._fireEvent(pr,ft[pr]);Re&&this._fireEvent("move",Re.originalEvent);for(const pr in L){const{originalEvent:Br}=L[pr];this._fireEvent(pr,Br)}const xt={};let Dt;for(const pr in this._eventsInProgress){const{handlerName:Br,originalEvent:ea}=this._eventsInProgress[pr];this._handlersById[Br].isActive()||(delete this._eventsInProgress[pr],Dt=ne[Br]||ea,xt[`${pr}end`]=Dt)}for(const pr in xt)this._fireEvent(pr,xt[pr]);const er=En(this._eventsInProgress),fr=(Se||Re)&&!er;if(fr&&this._terrainMovement){this._map._elevationFreeze=!1,this._terrainMovement=!1;const pr=this._map._getTransformForUpdate();pr.recalculateZoom(this._map.terrain),this._map._applyUpdatedTransform(pr)}if(Te&&fr){this._updatingCamera=!0;const pr=this._inertia._onMoveEnd(this._map.dragPan._inertiaOptions),Br=ea=>ea!==0&&-this._bearingSnap{delete this._frameId,this.handleEvent(new dn("renderFrame",{timeStamp:L})),this._applyChanges()})}_triggerRenderFrame(){this._frameId===void 0&&(this._frameId=this._requestFrame())}}class Fi extends t.E{constructor(L,ne){super(),this._renderFrameCallback=()=>{const Te=Math.min((o.now()-this._easeStart)/this._easeOptions.duration,1);this._onEaseFrame(this._easeOptions.easing(Te)),Te<1&&this._easeFrameId?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()},this._moving=!1,this._zooming=!1,this.transform=L,this._bearingSnap=ne.bearingSnap,this.on("moveend",()=>{delete this._requestedCameraState})}getCenter(){return new t.N(this.transform.center.lng,this.transform.center.lat)}setCenter(L,ne){return this.jumpTo({center:L},ne)}panBy(L,ne,Te){return L=t.P.convert(L).mult(-1),this.panTo(this.transform.center,t.e({offset:L},ne),Te)}panTo(L,ne,Te){return this.easeTo(t.e({center:L},ne),Te)}getZoom(){return this.transform.zoom}setZoom(L,ne){return this.jumpTo({zoom:L},ne),this}zoomTo(L,ne,Te){return this.easeTo(t.e({zoom:L},ne),Te)}zoomIn(L,ne){return this.zoomTo(this.getZoom()+1,L,ne),this}zoomOut(L,ne){return this.zoomTo(this.getZoom()-1,L,ne),this}getBearing(){return this.transform.bearing}setBearing(L,ne){return this.jumpTo({bearing:L},ne),this}getPadding(){return this.transform.padding}setPadding(L,ne){return this.jumpTo({padding:L},ne),this}rotateTo(L,ne,Te){return this.easeTo(t.e({bearing:L},ne),Te)}resetNorth(L,ne){return this.rotateTo(0,t.e({duration:1e3},L),ne),this}resetNorthPitch(L,ne){return this.easeTo(t.e({bearing:0,pitch:0,duration:1e3},L),ne),this}snapToNorth(L,ne){return Math.abs(this.getBearing()){if(this._zooming&&(Se.zoom=t.y.number(Re,it,gr)),this._rotating&&(Se.bearing=t.y.number(ft,er,gr)),this._pitching&&(Se.pitch=t.y.number(xt,fr,gr)),this._padding&&(Se.interpolatePadding(Dt,pr,gr),ea=Se.centerPoint.add(Br)),this.terrain&&!L.freezeElevation&&this._updateElevation(gr),Lt)Se.setLocationAtPoint(Lt,nr);else{const Cr=Se.zoomScale(Se.zoom-Re),Wr=it>Re?Math.min(2,_t):Math.max(.5,_t),ua=Math.pow(Wr,1-gr),va=Se.unproject(vt.add(St.mult(gr*ua)).mult(Cr));Se.setLocationAtPoint(Se.renderWorldCopies?va.wrap():va,ea)}this._applyUpdatedTransform(Se),this._fireMoveEvents(ne)},gr=>{this.terrain&&L.freezeElevation&&this._finalizeElevation(),this._afterEase(ne,gr)},L),this}_prepareEase(L,ne,Te={}){this._moving=!0,ne||Te.moving||this.fire(new t.k("movestart",L)),this._zooming&&!Te.zooming&&this.fire(new t.k("zoomstart",L)),this._rotating&&!Te.rotating&&this.fire(new t.k("rotatestart",L)),this._pitching&&!Te.pitching&&this.fire(new t.k("pitchstart",L))}_prepareElevation(L){this._elevationCenter=L,this._elevationStart=this.transform.elevation,this._elevationTarget=this.terrain.getElevationForLngLatZoom(L,this.transform.tileZoom),this._elevationFreeze=!0}_updateElevation(L){this.transform.minElevationForCurrentTile=this.terrain.getMinTileElevationForLngLatZoom(this._elevationCenter,this.transform.tileZoom);const ne=this.terrain.getElevationForLngLatZoom(this._elevationCenter,this.transform.tileZoom);if(L<1&&ne!==this._elevationTarget){const Te=this._elevationTarget-this._elevationStart;this._elevationStart+=L*(Te-(ne-(Te*L+this._elevationStart))/(1-L)),this._elevationTarget=ne}this.transform.elevation=t.y.number(this._elevationStart,this._elevationTarget,L)}_finalizeElevation(){this._elevationFreeze=!1,this.transform.recalculateZoom(this.terrain)}_getTransformForUpdate(){return this.transformCameraUpdate||this.terrain?(this._requestedCameraState||(this._requestedCameraState=this.transform.clone()),this._requestedCameraState):this.transform}_elevateCameraIfInsideTerrain(L){const ne=L.getCameraPosition(),Te=this.terrain.getElevationForLngLatZoom(ne.lngLat,L.zoom);if(ne.altitudethis._elevateCameraIfInsideTerrain(Se)),this.transformCameraUpdate&&ne.push(Se=>this.transformCameraUpdate(Se)),!ne.length)return;const Te=L.clone();for(const Se of ne){const Re=Te.clone(),{center:ft,zoom:xt,pitch:Dt,bearing:er,elevation:fr}=Se(Re);ft&&(Re.center=ft),xt!==void 0&&(Re.zoom=xt),Dt!==void 0&&(Re.pitch=Dt),er!==void 0&&(Re.bearing=er),fr!==void 0&&(Re.elevation=fr),Te.apply(Re)}this.transform.apply(Te)}_fireMoveEvents(L){this.fire(new t.k("move",L)),this._zooming&&this.fire(new t.k("zoom",L)),this._rotating&&this.fire(new t.k("rotate",L)),this._pitching&&this.fire(new t.k("pitch",L))}_afterEase(L,ne){if(this._easeId&&ne&&this._easeId===ne)return;delete this._easeId;const Te=this._zooming,Se=this._rotating,Re=this._pitching;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._padding=!1,Te&&this.fire(new t.k("zoomend",L)),Se&&this.fire(new t.k("rotateend",L)),Re&&this.fire(new t.k("pitchend",L)),this.fire(new t.k("moveend",L))}flyTo(L,ne){var Te;if(!L.essential&&o.prefersReducedMotion){const In=t.M(L,["center","zoom","bearing","pitch","around"]);return this.jumpTo(In,ne)}this.stop(),L=t.e({offset:[0,0],speed:1.2,curve:1.42,easing:t.b9},L);const Se=this._getTransformForUpdate(),Re=Se.zoom,ft=Se.bearing,xt=Se.pitch,Dt=Se.padding,er="bearing"in L?this._normalizeBearing(L.bearing,ft):ft,fr="pitch"in L?+L.pitch:xt,pr="padding"in L?L.padding:Se.padding,Br=t.P.convert(L.offset);let ea=Se.centerPoint.add(Br);const Ve=Se.pointLocation(ea),{center:Ye,zoom:it}=Se.getConstrained(t.N.convert(L.center||Ve),(Te=L.zoom)!==null&&Te!==void 0?Te:Re);this._normalizeCenter(Ye,Se);const vt=Se.zoomScale(it-Re),St=Se.project(Ve),_t=Se.project(Ye).sub(St);let Lt=L.curve;const nr=Math.max(Se.width,Se.height),cr=nr/vt,gr=_t.mag();if("minZoom"in L){const In=t.ac(Math.min(L.minZoom,Re,it),Se.minZoom,Se.maxZoom),oi=nr/Se.zoomScale(In-Re);Lt=Math.sqrt(oi/gr*2)}const Cr=Lt*Lt;function Wr(In){const oi=(cr*cr-nr*nr+(In?-1:1)*Cr*Cr*gr*gr)/(2*(In?cr:nr)*Cr*gr);return Math.log(Math.sqrt(oi*oi+1)-oi)}function ua(In){return(Math.exp(In)-Math.exp(-In))/2}function va(In){return(Math.exp(In)+Math.exp(-In))/2}const Ma=Wr(!1);let en=function(In){return va(Ma)/va(Ma+Lt*In)},Pn=function(In){return nr*((va(Ma)*(ua(oi=Ma+Lt*In)/va(oi))-ua(Ma))/Cr)/gr;var oi},Tn=(Wr(!0)-Ma)/Lt;if(Math.abs(gr)<1e-6||!isFinite(Tn)){if(Math.abs(nr-cr)<1e-6)return this.easeTo(L,ne);const In=cr0,en=oi=>Math.exp(In*Lt*oi)}return L.duration="duration"in L?+L.duration:1e3*Tn/("screenSpeed"in L?+L.screenSpeed/Lt:+L.speed),L.maxDuration&&L.duration>L.maxDuration&&(L.duration=0),this._zooming=!0,this._rotating=ft!==er,this._pitching=fr!==xt,this._padding=!Se.isPaddingEqual(pr),this._prepareEase(ne,!1),this.terrain&&this._prepareElevation(Ye),this._ease(In=>{const oi=In*Tn,Si=1/en(oi);Se.zoom=In===1?it:Re+Se.scaleZoom(Si),this._rotating&&(Se.bearing=t.y.number(ft,er,In)),this._pitching&&(Se.pitch=t.y.number(xt,fr,In)),this._padding&&(Se.interpolatePadding(Dt,pr,In),ea=Se.centerPoint.add(Br)),this.terrain&&!L.freezeElevation&&this._updateElevation(In);const _i=In===1?Ye:Se.unproject(St.add(_t.mult(Pn(oi))).mult(Si));Se.setLocationAtPoint(Se.renderWorldCopies?_i.wrap():_i,ea),this._applyUpdatedTransform(Se),this._fireMoveEvents(ne)},()=>{this.terrain&&L.freezeElevation&&this._finalizeElevation(),this._afterEase(ne)},L),this}isEasing(){return!!this._easeFrameId}stop(){return this._stop()}_stop(L,ne){var Te;if(this._easeFrameId&&(this._cancelRenderFrame(this._easeFrameId),delete this._easeFrameId,delete this._onEaseFrame),this._onEaseEnd){const Se=this._onEaseEnd;delete this._onEaseEnd,Se.call(this,ne)}return L||(Te=this.handlers)===null||Te===void 0||Te.stop(!1),this}_ease(L,ne,Te){Te.animate===!1||Te.duration===0?(L(1),ne()):(this._easeStart=o.now(),this._easeOptions=Te,this._onEaseFrame=L,this._onEaseEnd=ne,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))}_normalizeBearing(L,ne){L=t.b3(L,-180,180);const Te=Math.abs(L-ne);return Math.abs(L-360-ne)180?-360:Te<-180?360:0}queryTerrainElevation(L){return this.terrain?this.terrain.getElevationForLngLatZoom(t.N.convert(L),this.transform.tileZoom)-this.transform.elevation:null}}const Zi={compact:!0,customAttribution:'MapLibre'};class Wi{constructor(L=Zi){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=ne=>{!ne||ne.sourceDataType!=="metadata"&&ne.sourceDataType!=="visibility"&&ne.dataType!=="style"&&ne.type!=="terrain"||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=L}getDefaultPosition(){return"bottom-right"}onAdd(L){return this._map=L,this._compact=this.options.compact,this._container=n.create("details","maplibregl-ctrl maplibregl-ctrl-attrib"),this._compactButton=n.create("summary","maplibregl-ctrl-attrib-button",this._container),this._compactButton.addEventListener("click",this._toggleAttribution),this._setElementTitle(this._compactButton,"ToggleAttribution"),this._innerContainer=n.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(){n.remove(this._container),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(L,ne){const Te=this._map._getUIString(`AttributionControl.${ne}`);L.title=Te,L.setAttribute("aria-label",Te)}_updateAttributions(){if(!this._map.style)return;let L=[];if(this.options.customAttribution&&(Array.isArray(this.options.customAttribution)?L=L.concat(this.options.customAttribution.map(Se=>typeof Se!="string"?"":Se)):typeof this.options.customAttribution=="string"&&L.push(this.options.customAttribution)),this._map.style.stylesheet){const Se=this._map.style.stylesheet;this.styleOwner=Se.owner,this.styleId=Se.id}const ne=this._map.style.sourceCaches;for(const Se in ne){const Re=ne[Se];if(Re.used||Re.usedForTerrain){const ft=Re.getSource();ft.attribution&&L.indexOf(ft.attribution)<0&&L.push(ft.attribution)}}L=L.filter(Se=>String(Se).trim()),L.sort((Se,Re)=>Se.length-Re.length),L=L.filter((Se,Re)=>{for(let ft=Re+1;ft=0)return!1;return!0});const Te=L.join(" | ");Te!==this._attribHTML&&(this._attribHTML=Te,L.length?(this._innerContainer.innerHTML=Te,this._container.classList.remove("maplibregl-attrib-empty")):this._container.classList.add("maplibregl-attrib-empty"),this._updateCompact(),this._editLink=null)}}class ii{constructor(L={}){this._updateCompact=()=>{const ne=this._container.children;if(ne.length){const Te=ne[0];this._map.getCanvasContainer().offsetWidth<=640||this._compact?this._compact!==!1&&Te.classList.add("maplibregl-compact"):Te.classList.remove("maplibregl-compact")}},this.options=L}getDefaultPosition(){return"bottom-left"}onAdd(L){this._map=L,this._compact=this.options&&this.options.compact,this._container=n.create("div","maplibregl-ctrl");const ne=n.create("a","maplibregl-ctrl-logo");return ne.target="_blank",ne.rel="noopener nofollow",ne.href="https://maplibre.org/",ne.setAttribute("aria-label",this._map._getUIString("LogoControl.Title")),ne.setAttribute("rel","noopener nofollow"),this._container.appendChild(ne),this._container.style.display="block",this._map.on("resize",this._updateCompact),this._updateCompact(),this._container}onRemove(){n.remove(this._container),this._map.off("resize",this._updateCompact),this._map=void 0,this._compact=void 0}}class Wn{constructor(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1}add(L){const ne=++this._id;return this._queue.push({callback:L,id:ne,cancelled:!1}),ne}remove(L){const ne=this._currentlyRunning,Te=ne?this._queue.concat(ne):this._queue;for(const Se of Te)if(Se.id===L)return void(Se.cancelled=!0)}run(L=0){if(this._currentlyRunning)throw new Error("Attempting to run(), but is already running.");const ne=this._currentlyRunning=this._queue;this._queue=[];for(const Te of ne)if(!Te.cancelled&&(Te.callback(L),this._cleared))break;this._cleared=!1,this._currentlyRunning=!1}clear(){this._currentlyRunning&&(this._cleared=!0),this._queue=[]}}var ao=t.Y([{name:"a_pos3d",type:"Int16",components:3}]);class Fo extends t.E{constructor(L){super(),this.sourceCache=L,this._tiles={},this._renderableTilesKeys=[],this._sourceTileCache={},this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.deltaZoom=1,L.usedForTerrain=!0,L.tileSize=this.tileSize*2**this.deltaZoom}destruct(){this.sourceCache.usedForTerrain=!1,this.sourceCache.tileSize=null}update(L,ne){this.sourceCache.update(L,ne),this._renderableTilesKeys=[];const Te={};for(const Se of L.coveringTiles({tileSize:this.tileSize,minzoom:this.minzoom,maxzoom:this.maxzoom,reparseOverscaled:!1,terrain:ne}))Te[Se.key]=!0,this._renderableTilesKeys.push(Se.key),this._tiles[Se.key]||(Se.posMatrix=new Float64Array(16),t.aP(Se.posMatrix,0,t.X,0,t.X,0,1),this._tiles[Se.key]=new nt(Se,this.tileSize));for(const Se in this._tiles)Te[Se]||delete this._tiles[Se]}freeRtt(L){for(const ne in this._tiles){const Te=this._tiles[ne];(!L||Te.tileID.equals(L)||Te.tileID.isChildOf(L)||L.isChildOf(Te.tileID))&&(Te.rtt=[])}}getRenderableTiles(){return this._renderableTilesKeys.map(L=>this.getTileByID(L))}getTileByID(L){return this._tiles[L]}getTerrainCoords(L){const ne={};for(const Te of this._renderableTilesKeys){const Se=this._tiles[Te].tileID;if(Se.canonical.equals(L.canonical)){const Re=L.clone();Re.posMatrix=new Float64Array(16),t.aP(Re.posMatrix,0,t.X,0,t.X,0,1),ne[Te]=Re}else if(Se.canonical.isChildOf(L.canonical)){const Re=L.clone();Re.posMatrix=new Float64Array(16);const ft=Se.canonical.z-L.canonical.z,xt=Se.canonical.x-(Se.canonical.x>>ft<>ft<>ft;t.aP(Re.posMatrix,0,er,0,er,0,1),t.J(Re.posMatrix,Re.posMatrix,[-xt*er,-Dt*er,0]),ne[Te]=Re}else if(L.canonical.isChildOf(Se.canonical)){const Re=L.clone();Re.posMatrix=new Float64Array(16);const ft=L.canonical.z-Se.canonical.z,xt=L.canonical.x-(L.canonical.x>>ft<>ft<>ft;t.aP(Re.posMatrix,0,t.X,0,t.X,0,1),t.J(Re.posMatrix,Re.posMatrix,[xt*er,Dt*er,0]),t.K(Re.posMatrix,Re.posMatrix,[1/2**ft,1/2**ft,0]),ne[Te]=Re}}return ne}getSourceTile(L,ne){const Te=this.sourceCache._source;let Se=L.overscaledZ-this.deltaZoom;if(Se>Te.maxzoom&&(Se=Te.maxzoom),Se=Te.minzoom&&(!Re||!Re.dem);)Re=this.sourceCache.getTileByID(L.scaledTo(Se--).key);return Re}tilesAfterTime(L=Date.now()){return Object.values(this._tiles).filter(ne=>ne.timeAdded>=L)}}class hs{constructor(L,ne,Te){this.painter=L,this.sourceCache=new Fo(ne),this.options=Te,this.exaggeration=typeof Te.exaggeration=="number"?Te.exaggeration:1,this.qualityFactor=2,this.meshSize=128,this._demMatrixCache={},this.coordsIndex=[],this._coordsTextureSize=1024}getDEMElevation(L,ne,Te,Se=t.X){var Re;if(!(ne>=0&&ne=0&&TeL.canonical.z&&(L.canonical.z>=Se?Re=L.canonical.z-Se:t.w("cannot calculate elevation if elevation maxzoom > source.maxzoom"));const ft=L.canonical.x-(L.canonical.x>>Re<>Re<>8<<4|Re>>8,ne[ft+3]=0;const Te=new t.R({width:this._coordsTextureSize,height:this._coordsTextureSize},new Uint8Array(ne.buffer)),Se=new u(L,Te,L.gl.RGBA,{premultiply:!1});return Se.bind(L.gl.NEAREST,L.gl.CLAMP_TO_EDGE),this._coordsTexture=Se,Se}pointCoordinate(L){this.painter.maybeDrawDepthAndCoords(!0);const ne=new Uint8Array(4),Te=this.painter.context,Se=Te.gl,Re=Math.round(L.x*this.painter.pixelRatio/devicePixelRatio),ft=Math.round(L.y*this.painter.pixelRatio/devicePixelRatio),xt=Math.round(this.painter.height/devicePixelRatio);Te.bindFramebuffer.set(this.getFramebuffer("coords").framebuffer),Se.readPixels(Re,xt-ft-1,1,1,Se.RGBA,Se.UNSIGNED_BYTE,ne),Te.bindFramebuffer.set(null);const Dt=ne[0]+(ne[2]>>4<<8),er=ne[1]+((15&ne[2])<<8),fr=this.coordsIndex[255-ne[3]],pr=fr&&this.sourceCache.getTileByID(fr);if(!pr)return null;const Br=this._coordsTextureSize,ea=(1<L.id!==ne),this._recentlyUsed.push(L.id)}stampObject(L){L.stamp=++this._stamp}getOrCreateFreeObject(){for(const ne of this._recentlyUsed)if(!this._objects[ne].inUse)return this._objects[ne];if(this._objects.length>=this._size)throw new Error("No free RenderPool available, call freeAllObjects() required!");const L=this._createObject(this._objects.length);return this._objects.push(L),L}freeObject(L){L.inUse=!1}freeAllObjects(){for(const L of this._objects)this.freeObject(L)}isFull(){return!(this._objects.length!L.inUse)===!1}}const vs={background:!0,fill:!0,line:!0,raster:!0,hillshade:!0};class Rs{constructor(L,ne){this.painter=L,this.terrain=ne,this.pool=new Is(L.context,30,ne.sourceCache.tileSize*ne.qualityFactor)}destruct(){this.pool.destruct()}getTexture(L){return this.pool.getObjectForId(L.rtt[this._stacks.length-1].id).texture}prepareForRender(L,ne){this._stacks=[],this._prevType=null,this._rttTiles=[],this._renderableTiles=this.terrain.sourceCache.getRenderableTiles(),this._renderableLayerIds=L._order.filter(Te=>!L._layers[Te].isHidden(ne)),this._coordsDescendingInv={};for(const Te in L.sourceCaches){this._coordsDescendingInv[Te]={};const Se=L.sourceCaches[Te].getVisibleCoordinates();for(const Re of Se){const ft=this.terrain.sourceCache.getTerrainCoords(Re);for(const xt in ft)this._coordsDescendingInv[Te][xt]||(this._coordsDescendingInv[Te][xt]=[]),this._coordsDescendingInv[Te][xt].push(ft[xt])}}this._coordsDescendingInvStr={};for(const Te of L._order){const Se=L._layers[Te],Re=Se.source;if(vs[Se.type]&&!this._coordsDescendingInvStr[Re]){this._coordsDescendingInvStr[Re]={};for(const ft in this._coordsDescendingInv[Re])this._coordsDescendingInvStr[Re][ft]=this._coordsDescendingInv[Re][ft].map(xt=>xt.key).sort().join()}}for(const Te of this._renderableTiles)for(const Se in this._coordsDescendingInvStr){const Re=this._coordsDescendingInvStr[Se][Te.tileID.key];Re&&Re!==Te.rttCoords[Se]&&(Te.rtt=[])}}renderLayer(L){if(L.isHidden(this.painter.transform.zoom))return!1;const ne=L.type,Te=this.painter,Se=this._renderableLayerIds[this._renderableLayerIds.length-1]===L.id;if(vs[ne]&&(this._prevType&&vs[this._prevType]||this._stacks.push([]),this._prevType=ne,this._stacks[this._stacks.length-1].push(L.id),!Se))return!0;if(vs[this._prevType]||vs[ne]&&Se){this._prevType=ne;const Re=this._stacks.length-1,ft=this._stacks[Re]||[];for(const xt of this._renderableTiles){if(this.pool.isFull()&&(el(this.painter,this.terrain,this._rttTiles),this._rttTiles=[],this.pool.freeAllObjects()),this._rttTiles.push(xt),xt.rtt[Re]){const er=this.pool.getObjectForId(xt.rtt[Re].id);if(er.stamp===xt.rtt[Re].stamp){this.pool.useObject(er);continue}}const Dt=this.pool.getOrCreateFreeObject();this.pool.useObject(Dt),this.pool.stampObject(Dt),xt.rtt[Re]={id:Dt.id,stamp:Dt.stamp},Te.context.bindFramebuffer.set(Dt.fbo.framebuffer),Te.context.clear({color:t.aM.transparent,stencil:0}),Te.currentStencilSource=void 0;for(let er=0;er{ze.touchstart=ze.dragStart,ze.touchmoveWindow=ze.dragMove,ze.touchend=ze.dragEnd},wi={showCompass:!0,showZoom:!0,visualizePitch:!1};class go{constructor(L,ne,Te=!1){this.mousedown=ft=>{this.startMouse(t.e({},ft,{ctrlKey:!0,preventDefault:()=>ft.preventDefault()}),n.mousePos(this.element,ft)),n.addEventListener(window,"mousemove",this.mousemove),n.addEventListener(window,"mouseup",this.mouseup)},this.mousemove=ft=>{this.moveMouse(ft,n.mousePos(this.element,ft))},this.mouseup=ft=>{this.mouseRotate.dragEnd(ft),this.mousePitch&&this.mousePitch.dragEnd(ft),this.offTemp()},this.touchstart=ft=>{ft.targetTouches.length!==1?this.reset():(this._startPos=this._lastPos=n.touchPos(this.element,ft.targetTouches)[0],this.startTouch(ft,this._startPos),n.addEventListener(window,"touchmove",this.touchmove,{passive:!1}),n.addEventListener(window,"touchend",this.touchend))},this.touchmove=ft=>{ft.targetTouches.length!==1?this.reset():(this._lastPos=n.touchPos(this.element,ft.targetTouches)[0],this.moveTouch(ft,this._lastPos))},this.touchend=ft=>{ft.targetTouches.length===0&&this._startPos&&this._lastPos&&this._startPos.dist(this._lastPos){this.mouseRotate.reset(),this.mousePitch&&this.mousePitch.reset(),this.touchRotate.reset(),this.touchPitch&&this.touchPitch.reset(),delete this._startPos,delete this._lastPos,this.offTemp()},this._clickTolerance=10;const Se=L.dragRotate._mouseRotate.getClickTolerance(),Re=L.dragRotate._mousePitch.getClickTolerance();this.element=ne,this.mouseRotate=Fl({clickTolerance:Se,enable:!0}),this.touchRotate=(({enable:ft,clickTolerance:xt,bearingDegreesPerPixelMoved:Dt=.8})=>{const er=new Ec;return new hu({clickTolerance:xt,move:(fr,pr)=>({bearingDelta:(pr.x-fr.x)*Dt}),moveStateManager:er,enable:ft,assignEvents:Ls})})({clickTolerance:Se,enable:!0}),this.map=L,Te&&(this.mousePitch=tf({clickTolerance:Re,enable:!0}),this.touchPitch=(({enable:ft,clickTolerance:xt,pitchDegreesPerPixelMoved:Dt=-.5})=>{const er=new Ec;return new hu({clickTolerance:xt,move:(fr,pr)=>({pitchDelta:(pr.y-fr.y)*Dt}),moveStateManager:er,enable:ft,assignEvents:Ls})})({clickTolerance:Re,enable:!0})),n.addEventListener(ne,"mousedown",this.mousedown),n.addEventListener(ne,"touchstart",this.touchstart,{passive:!1}),n.addEventListener(ne,"touchcancel",this.reset)}startMouse(L,ne){this.mouseRotate.dragStart(L,ne),this.mousePitch&&this.mousePitch.dragStart(L,ne),n.disableDrag()}startTouch(L,ne){this.touchRotate.dragStart(L,ne),this.touchPitch&&this.touchPitch.dragStart(L,ne),n.disableDrag()}moveMouse(L,ne){const Te=this.map,{bearingDelta:Se}=this.mouseRotate.dragMove(L,ne)||{};if(Se&&Te.setBearing(Te.getBearing()+Se),this.mousePitch){const{pitchDelta:Re}=this.mousePitch.dragMove(L,ne)||{};Re&&Te.setPitch(Te.getPitch()+Re)}}moveTouch(L,ne){const Te=this.map,{bearingDelta:Se}=this.touchRotate.dragMove(L,ne)||{};if(Se&&Te.setBearing(Te.getBearing()+Se),this.touchPitch){const{pitchDelta:Re}=this.touchPitch.dragMove(L,ne)||{};Re&&Te.setPitch(Te.getPitch()+Re)}}off(){const L=this.element;n.removeEventListener(L,"mousedown",this.mousedown),n.removeEventListener(L,"touchstart",this.touchstart,{passive:!1}),n.removeEventListener(window,"touchmove",this.touchmove,{passive:!1}),n.removeEventListener(window,"touchend",this.touchend),n.removeEventListener(L,"touchcancel",this.reset),this.offTemp()}offTemp(){n.enableDrag(),n.removeEventListener(window,"mousemove",this.mousemove),n.removeEventListener(window,"mouseup",this.mouseup),n.removeEventListener(window,"touchmove",this.touchmove,{passive:!1}),n.removeEventListener(window,"touchend",this.touchend)}}let ws;function os(ze,L,ne){const Te=new t.N(ze.lng,ze.lat);if(ze=new t.N(ze.lng,ze.lat),L){const Se=new t.N(ze.lng-360,ze.lat),Re=new t.N(ze.lng+360,ze.lat),ft=ne.locationPoint(ze).distSqr(L);ne.locationPoint(Se).distSqr(L)180;){const Se=ne.locationPoint(ze);if(Se.x>=0&&Se.y>=0&&Se.x<=ne.width&&Se.y<=ne.height)break;ze.lng>ne.center.lng?ze.lng-=360:ze.lng+=360}return ze.lng!==Te.lng&&ne.locationPoint(ze).y>ne.height/2-ne.getHorizon()?ze:Te}const Hl={center:"translate(-50%,-50%)",top:"translate(-50%,0)","top-left":"translate(0,0)","top-right":"translate(-100%,0)",bottom:"translate(-50%,-100%)","bottom-left":"translate(0,-100%)","bottom-right":"translate(-100%,-100%)",left:"translate(0,-50%)",right:"translate(-100%,-50%)"};function Wl(ze,L,ne){const Te=ze.classList;for(const Se in Hl)Te.remove(`maplibregl-${ne}-anchor-${Se}`);Te.add(`maplibregl-${ne}-anchor-${L}`)}class $l extends t.E{constructor(L){if(super(),this._onKeyPress=ne=>{const Te=ne.code,Se=ne.charCode||ne.keyCode;Te!=="Space"&&Te!=="Enter"&&Se!==32&&Se!==13||this.togglePopup()},this._onMapClick=ne=>{const Te=ne.originalEvent.target,Se=this._element;this._popup&&(Te===Se||Se.contains(Te))&&this.togglePopup()},this._update=ne=>{var Te;if(!this._map)return;const Se=this._map.loaded()&&!this._map.isMoving();(ne?.type==="terrain"||ne?.type==="render"&&!Se)&&this._map.once("render",this._update),this._lngLat=this._map.transform.renderWorldCopies?os(this._lngLat,this._flatPos,this._map.transform):(Te=this._lngLat)===null||Te===void 0?void 0:Te.wrap(),this._flatPos=this._pos=this._map.project(this._lngLat)._add(this._offset),this._map.terrain&&(this._flatPos=this._map.transform.locationPoint(this._lngLat)._add(this._offset));let Re="";this._rotationAlignment==="viewport"||this._rotationAlignment==="auto"?Re=`rotateZ(${this._rotation}deg)`:this._rotationAlignment==="map"&&(Re=`rotateZ(${this._rotation-this._map.getBearing()}deg)`);let ft="";this._pitchAlignment==="viewport"||this._pitchAlignment==="auto"?ft="rotateX(0deg)":this._pitchAlignment==="map"&&(ft=`rotateX(${this._map.getPitch()}deg)`),this._subpixelPositioning||ne&&ne.type!=="moveend"||(this._pos=this._pos.round()),n.setTransform(this._element,`${Hl[this._anchor]} translate(${this._pos.x}px, ${this._pos.y}px) ${ft} ${Re}`),o.frameAsync(new AbortController).then(()=>{this._updateOpacity(ne&&ne.type==="moveend")}).catch(()=>{})},this._onMove=ne=>{if(!this._isDragging){const Te=this._clickTolerance||this._map._clickTolerance;this._isDragging=ne.point.dist(this._pointerdownPos)>=Te}this._isDragging&&(this._pos=ne.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 t.k("dragstart"))),this.fire(new t.k("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 t.k("dragend")),this._state="inactive"},this._addDragHandler=ne=>{this._element.contains(ne.originalEvent.target)&&(ne.preventDefault(),this._positionDelta=ne.point.sub(this._pos).add(this._offset),this._pointerdownPos=ne.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=L&&L.anchor||"center",this._color=L&&L.color||"#3FB1CE",this._scale=L&&L.scale||1,this._draggable=L&&L.draggable||!1,this._clickTolerance=L&&L.clickTolerance||0,this._subpixelPositioning=L&&L.subpixelPositioning||!1,this._isDragging=!1,this._state="inactive",this._rotation=L&&L.rotation||0,this._rotationAlignment=L&&L.rotationAlignment||"auto",this._pitchAlignment=L&&L.pitchAlignment&&L.pitchAlignment!=="auto"?L.pitchAlignment:this._rotationAlignment,this.setOpacity(),this.setOpacity(L?.opacity,L?.opacityWhenCovered),L&&L.element)this._element=L.element,this._offset=t.P.convert(L&&L.offset||[0,0]);else{this._defaultMarker=!0,this._element=n.create("div");const ne=n.createNS("http://www.w3.org/2000/svg","svg"),Te=41,Se=27;ne.setAttributeNS(null,"display","block"),ne.setAttributeNS(null,"height",`${Te}px`),ne.setAttributeNS(null,"width",`${Se}px`),ne.setAttributeNS(null,"viewBox",`0 0 ${Se} ${Te}`);const Re=n.createNS("http://www.w3.org/2000/svg","g");Re.setAttributeNS(null,"stroke","none"),Re.setAttributeNS(null,"stroke-width","1"),Re.setAttributeNS(null,"fill","none"),Re.setAttributeNS(null,"fill-rule","evenodd");const ft=n.createNS("http://www.w3.org/2000/svg","g");ft.setAttributeNS(null,"fill-rule","nonzero");const xt=n.createNS("http://www.w3.org/2000/svg","g");xt.setAttributeNS(null,"transform","translate(3.0, 29.0)"),xt.setAttributeNS(null,"fill","#000000");const Dt=[{rx:"10.5",ry:"5.25002273"},{rx:"10.5",ry:"5.25002273"},{rx:"9.5",ry:"4.77275007"},{rx:"8.5",ry:"4.29549936"},{rx:"7.5",ry:"3.81822308"},{rx:"6.5",ry:"3.34094679"},{rx:"5.5",ry:"2.86367051"},{rx:"4.5",ry:"2.38636864"}];for(const vt of Dt){const St=n.createNS("http://www.w3.org/2000/svg","ellipse");St.setAttributeNS(null,"opacity","0.04"),St.setAttributeNS(null,"cx","10.5"),St.setAttributeNS(null,"cy","5.80029008"),St.setAttributeNS(null,"rx",vt.rx),St.setAttributeNS(null,"ry",vt.ry),xt.appendChild(St)}const er=n.createNS("http://www.w3.org/2000/svg","g");er.setAttributeNS(null,"fill",this._color);const fr=n.createNS("http://www.w3.org/2000/svg","path");fr.setAttributeNS(null,"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"),er.appendChild(fr);const pr=n.createNS("http://www.w3.org/2000/svg","g");pr.setAttributeNS(null,"opacity","0.25"),pr.setAttributeNS(null,"fill","#000000");const Br=n.createNS("http://www.w3.org/2000/svg","path");Br.setAttributeNS(null,"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"),pr.appendChild(Br);const ea=n.createNS("http://www.w3.org/2000/svg","g");ea.setAttributeNS(null,"transform","translate(6.0, 7.0)"),ea.setAttributeNS(null,"fill","#FFFFFF");const Ve=n.createNS("http://www.w3.org/2000/svg","g");Ve.setAttributeNS(null,"transform","translate(8.0, 8.0)");const Ye=n.createNS("http://www.w3.org/2000/svg","circle");Ye.setAttributeNS(null,"fill","#000000"),Ye.setAttributeNS(null,"opacity","0.25"),Ye.setAttributeNS(null,"cx","5.5"),Ye.setAttributeNS(null,"cy","5.5"),Ye.setAttributeNS(null,"r","5.4999962");const it=n.createNS("http://www.w3.org/2000/svg","circle");it.setAttributeNS(null,"fill","#FFFFFF"),it.setAttributeNS(null,"cx","5.5"),it.setAttributeNS(null,"cy","5.5"),it.setAttributeNS(null,"r","5.4999962"),Ve.appendChild(Ye),Ve.appendChild(it),ft.appendChild(xt),ft.appendChild(er),ft.appendChild(pr),ft.appendChild(ea),ft.appendChild(Ve),ne.appendChild(ft),ne.setAttributeNS(null,"height",Te*this._scale+"px"),ne.setAttributeNS(null,"width",Se*this._scale+"px"),this._element.appendChild(ne),this._offset=t.P.convert(L&&L.offset||[0,-14])}if(this._element.classList.add("maplibregl-marker"),this._element.addEventListener("dragstart",ne=>{ne.preventDefault()}),this._element.addEventListener("mousedown",ne=>{ne.preventDefault()}),Wl(this._element,this._anchor,"marker"),L&&L.className)for(const ne of L.className.split(" "))this._element.classList.add(ne);this._popup=null}addTo(L){return this.remove(),this._map=L,this._element.setAttribute("aria-label",L._getUIString("Marker.Title")),L.getCanvasContainer().appendChild(this._element),L.on("move",this._update),L.on("moveend",this._update),L.on("terrain",this._update),this.setDraggable(this._draggable),this._update(),this._map.on("click",this._onMapClick),this}remove(){return this._opacityTimeout&&(clearTimeout(this._opacityTimeout),delete this._opacityTimeout),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("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),n.remove(this._element),this._popup&&this._popup.remove(),this}getLngLat(){return this._lngLat}setLngLat(L){return this._lngLat=t.N.convert(L),this._pos=null,this._popup&&this._popup.setLngLat(this._lngLat),this._update(),this}getElement(){return this._element}setPopup(L){if(this._popup&&(this._popup.remove(),this._popup=null,this._element.removeEventListener("keypress",this._onKeyPress),this._originalTabIndex||this._element.removeAttribute("tabindex")),L){if(!("offset"in L.options)){const Se=Math.abs(13.5)/Math.SQRT2;L.options.offset=this._defaultMarker?{top:[0,0],"top-left":[0,0],"top-right":[0,0],bottom:[0,-38.1],"bottom-left":[Se,-1*(38.1-13.5+Se)],"bottom-right":[-Se,-1*(38.1-13.5+Se)],left:[13.5,-1*(38.1-13.5)],right:[-13.5,-1*(38.1-13.5)]}:this._offset}this._popup=L,this._originalTabIndex=this._element.getAttribute("tabindex"),this._originalTabIndex||this._element.setAttribute("tabindex","0"),this._element.addEventListener("keypress",this._onKeyPress)}return this}setSubpixelPositioning(L){return this._subpixelPositioning=L,this}getPopup(){return this._popup}togglePopup(){const L=this._popup;return this._element.style.opacity===this._opacityWhenCovered?this:L?(L.isOpen()?L.remove():(L.setLngLat(this._lngLat),L.addTo(this._map)),this):this}_updateOpacity(L=!1){var ne,Te;if(!(!((ne=this._map)===null||ne===void 0)&&ne.terrain))return void(this._element.style.opacity!==this._opacity&&(this._element.style.opacity=this._opacity));if(L)this._opacityTimeout=null;else{if(this._opacityTimeout)return;this._opacityTimeout=setTimeout(()=>{this._opacityTimeout=null},100)}const Se=this._map,Re=Se.terrain.depthAtPoint(this._pos),ft=Se.terrain.getElevationForLngLatZoom(this._lngLat,Se.transform.tileZoom);if(Se.transform.lngLatToCameraDepth(this._lngLat,ft)-Re<.006)return void(this._element.style.opacity=this._opacity);const xt=-this._offset.y/Se.transform._pixelPerMeter,Dt=Math.sin(Se.getPitch()*Math.PI/180)*xt,er=Se.terrain.depthAtPoint(new t.P(this._pos.x,this._pos.y-this._offset.y)),fr=Se.transform.lngLatToCameraDepth(this._lngLat,ft+Dt)-er>.006;!((Te=this._popup)===null||Te===void 0)&&Te.isOpen()&&fr&&this._popup.remove(),this._element.style.opacity=fr?this._opacityWhenCovered:this._opacity}getOffset(){return this._offset}setOffset(L){return this._offset=t.P.convert(L),this._update(),this}addClassName(L){this._element.classList.add(L)}removeClassName(L){this._element.classList.remove(L)}toggleClassName(L){return this._element.classList.toggle(L)}setDraggable(L){return this._draggable=!!L,this._map&&(L?(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}isDraggable(){return this._draggable}setRotation(L){return this._rotation=L||0,this._update(),this}getRotation(){return this._rotation}setRotationAlignment(L){return this._rotationAlignment=L||"auto",this._update(),this}getRotationAlignment(){return this._rotationAlignment}setPitchAlignment(L){return this._pitchAlignment=L&&L!=="auto"?L:this._rotationAlignment,this._update(),this}getPitchAlignment(){return this._pitchAlignment}setOpacity(L,ne){return L===void 0&&ne===void 0&&(this._opacity="1",this._opacityWhenCovered="0.2"),L!==void 0&&(this._opacity=L),ne!==void 0&&(this._opacityWhenCovered=ne),this._map&&this._updateOpacity(!0),this}}const uc={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0};let Xl=0,Xu=!1;const ll={maxWidth:100,unit:"metric"};function Zu(ze,L,ne){const Te=ne&&ne.maxWidth||100,Se=ze._container.clientHeight/2,Re=ze.unproject([0,Se]),ft=ze.unproject([Te,Se]),xt=Re.distanceTo(ft);if(ne&&ne.unit==="imperial"){const Dt=3.2808*xt;Dt>5280?Yi(L,Te,Dt/5280,ze._getUIString("ScaleControl.Miles")):Yi(L,Te,Dt,ze._getUIString("ScaleControl.Feet"))}else ne&&ne.unit==="nautical"?Yi(L,Te,xt/1852,ze._getUIString("ScaleControl.NauticalMiles")):xt>=1e3?Yi(L,Te,xt/1e3,ze._getUIString("ScaleControl.Kilometers")):Yi(L,Te,xt,ze._getUIString("ScaleControl.Meters"))}function Yi(ze,L,ne,Te){const Se=function(Re){const ft=Math.pow(10,`${Math.floor(Re)}`.length-1);let xt=Re/ft;return xt=xt>=10?10:xt>=5?5:xt>=3?3:xt>=2?2:xt>=1?1:function(Dt){const er=Math.pow(10,Math.ceil(-Math.log(Dt)/Math.LN10));return Math.round(Dt*er)/er}(xt),ft*xt}(ne);ze.style.width=L*(Se/ne)+"px",ze.innerHTML=`${Se} ${Te}`}const io={closeButton:!0,closeOnClick:!0,focusAfterOpen:!0,className:"",maxWidth:"240px",subpixelPositioning:!1},Yu=["a[href]","[tabindex]:not([tabindex='-1'])","[contenteditable]:not([contenteditable='false'])","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].join(", ");function du(ze){if(ze){if(typeof ze=="number"){const L=Math.round(Math.abs(ze)/Math.SQRT2);return{center:new t.P(0,0),top:new t.P(0,ze),"top-left":new t.P(L,L),"top-right":new t.P(-L,L),bottom:new t.P(0,-ze),"bottom-left":new t.P(L,-L),"bottom-right":new t.P(-L,-L),left:new t.P(ze,0),right:new t.P(-ze,0)}}if(ze instanceof t.P||Array.isArray(ze)){const L=t.P.convert(ze);return{center:L,top:L,"top-left":L,"top-right":L,bottom:L,"bottom-left":L,"bottom-right":L,left:L,right:L}}return{center:t.P.convert(ze.center||[0,0]),top:t.P.convert(ze.top||[0,0]),"top-left":t.P.convert(ze["top-left"]||[0,0]),"top-right":t.P.convert(ze["top-right"]||[0,0]),bottom:t.P.convert(ze.bottom||[0,0]),"bottom-left":t.P.convert(ze["bottom-left"]||[0,0]),"bottom-right":t.P.convert(ze["bottom-right"]||[0,0]),left:t.P.convert(ze.left||[0,0]),right:t.P.convert(ze.right||[0,0])}}return du(new t.P(0,0))}const iu=r;e.AJAXError=t.bh,e.Evented=t.E,e.LngLat=t.N,e.MercatorCoordinate=t.Z,e.Point=t.P,e.addProtocol=t.bi,e.config=t.a,e.removeProtocol=t.bj,e.AttributionControl=Wi,e.BoxZoomHandler=wu,e.CanvasSource=Je,e.CooperativeGesturesHandler=qn,e.DoubleClickZoomHandler=tn,e.DragPanHandler=On,e.DragRotateHandler=Qn,e.EdgeInsets=Gl,e.FullscreenControl=class extends t.E{constructor(ze={}){super(),this._onFullscreenChange=()=>{var L;let ne=window.document.fullscreenElement||window.document.mozFullScreenElement||window.document.webkitFullscreenElement||window.document.msFullscreenElement;for(;!((L=ne?.shadowRoot)===null||L===void 0)&&L.fullscreenElement;)ne=ne.shadowRoot.fullscreenElement;ne===this._container!==this._fullscreen&&this._handleFullscreenChange()},this._onClickFullscreen=()=>{this._isFullscreen()?this._exitFullscreen():this._requestFullscreen()},this._fullscreen=!1,ze&&ze.container&&(ze.container instanceof HTMLElement?this._container=ze.container:t.w("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(ze){return this._map=ze,this._container||(this._container=this._map.getContainer()),this._controlContainer=n.create("div","maplibregl-ctrl maplibregl-ctrl-group"),this._setupUI(),this._controlContainer}onRemove(){n.remove(this._controlContainer),this._map=null,window.document.removeEventListener(this._fullscreenchange,this._onFullscreenChange)}_setupUI(){const ze=this._fullscreenButton=n.create("button","maplibregl-ctrl-fullscreen",this._controlContainer);n.create("span","maplibregl-ctrl-icon",ze).setAttribute("aria-hidden","true"),ze.type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),window.document.addEventListener(this._fullscreenchange,this._onFullscreenChange)}_updateTitle(){const ze=this._getTitle();this._fullscreenButton.setAttribute("aria-label",ze),this._fullscreenButton.title=ze}_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 t.k("fullscreenstart")),this._prevCooperativeGesturesEnabled=this._map.cooperativeGestures.isEnabled(),this._map.cooperativeGestures.disable()):(this.fire(new t.k("fullscreenend")),this._prevCooperativeGesturesEnabled&&this._map.cooperativeGestures.enable())}_exitFullscreen(){window.document.exitFullscreen?window.document.exitFullscreen():window.document.mozCancelFullScreen?window.document.mozCancelFullScreen():window.document.msExitFullscreen?window.document.msExitFullscreen():window.document.webkitCancelFullScreen?window.document.webkitCancelFullScreen():this._togglePseudoFullScreen()}_requestFullscreen(){this._container.requestFullscreen?this._container.requestFullscreen():this._container.mozRequestFullScreen?this._container.mozRequestFullScreen():this._container.msRequestFullscreen?this._container.msRequestFullscreen():this._container.webkitRequestFullscreen?this._container.webkitRequestFullscreen():this._togglePseudoFullScreen()}_togglePseudoFullScreen(){this._container.classList.toggle("maplibregl-pseudo-fullscreen"),this._handleFullscreenChange(),this._map.resize()}},e.GeoJSONSource=Ce,e.GeolocateControl=class extends t.E{constructor(ze){super(),this._onSuccess=L=>{if(this._map){if(this._isOutOfMapMaxBounds(L))return this._setErrorState(),this.fire(new t.k("outofmaxbounds",L)),this._updateMarker(),void this._finish();if(this.options.trackUserLocation)switch(this._lastKnownPosition=L,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 new Error(`Unexpected watchState ${this._watchState}`)}this.options.showUserLocation&&this._watchState!=="OFF"&&this._updateMarker(L),this.options.trackUserLocation&&this._watchState!=="ACTIVE_LOCK"||this._updateCamera(L),this.options.showUserLocation&&this._dotElement.classList.remove("maplibregl-user-location-dot-stale"),this.fire(new t.k("geolocate",L)),this._finish()}},this._updateCamera=L=>{const ne=new t.N(L.coords.longitude,L.coords.latitude),Te=L.coords.accuracy,Se=this._map.getBearing(),Re=t.e({bearing:Se},this.options.fitBoundsOptions),ft=ae.fromLngLat(ne,Te);this._map.fitBounds(ft,Re,{geolocateSource:!0})},this._updateMarker=L=>{if(L){const ne=new t.N(L.coords.longitude,L.coords.latitude);this._accuracyCircleMarker.setLngLat(ne).addTo(this._map),this._userLocationDotMarker.setLngLat(ne).addTo(this._map),this._accuracy=L.coords.accuracy,this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()},this._onZoom=()=>{this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()},this._onError=L=>{if(this._map){if(this.options.trackUserLocation)if(L.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;const ne=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.title=ne,this._geolocateButton.setAttribute("aria-label",ne),this._geolocationWatchID!==void 0&&this._clearWatch()}else{if(L.code===3&&Xu)return;this._setErrorState()}this._watchState!=="OFF"&&this.options.showUserLocation&&this._dotElement.classList.add("maplibregl-user-location-dot-stale"),this.fire(new t.k("error",L)),this._finish()}},this._finish=()=>{this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0},this._setupUI=()=>{this._map&&(this._container.addEventListener("contextmenu",L=>L.preventDefault()),this._geolocateButton=n.create("button","maplibregl-ctrl-geolocate",this._container),n.create("span","maplibregl-ctrl-icon",this._geolocateButton).setAttribute("aria-hidden","true"),this._geolocateButton.type="button",this._geolocateButton.disabled=!0)},this._finishSetupUI=L=>{if(this._map){if(L===!1){t.w("Geolocation support is not available so the GeolocateControl will be disabled.");const ne=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.disabled=!0,this._geolocateButton.title=ne,this._geolocateButton.setAttribute("aria-label",ne)}else{const ne=this._map._getUIString("GeolocateControl.FindMyLocation");this._geolocateButton.disabled=!1,this._geolocateButton.title=ne,this._geolocateButton.setAttribute("aria-label",ne)}this.options.trackUserLocation&&(this._geolocateButton.setAttribute("aria-pressed","false"),this._watchState="OFF"),this.options.showUserLocation&&(this._dotElement=n.create("div","maplibregl-user-location-dot"),this._userLocationDotMarker=new $l({element:this._dotElement}),this._circleElement=n.create("div","maplibregl-user-location-accuracy-circle"),this._accuracyCircleMarker=new $l({element:this._circleElement,pitchAlignment:"map"}),this.options.trackUserLocation&&(this._watchState="OFF"),this._map.on("zoom",this._onZoom)),this._geolocateButton.addEventListener("click",()=>this.trigger()),this._setup=!0,this.options.trackUserLocation&&this._map.on("movestart",ne=>{ne.geolocateSource||this._watchState!=="ACTIVE_LOCK"||ne.originalEvent&&ne.originalEvent.type==="resize"||(this._watchState="BACKGROUND",this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this.fire(new t.k("trackuserlocationend")),this.fire(new t.k("userlocationlostfocus")))})}},this.options=t.e({},uc,ze)}onAdd(ze){return this._map=ze,this._container=n.create("div","maplibregl-ctrl maplibregl-ctrl-group"),this._setupUI(),function(){return t._(this,arguments,void 0,function*(L=!1){if(ws!==void 0&&!L)return ws;if(window.navigator.permissions===void 0)return ws=!!window.navigator.geolocation,ws;try{ws=(yield window.navigator.permissions.query({name:"geolocation"})).state!=="denied"}catch{ws=!!window.navigator.geolocation}return ws})}().then(L=>this._finishSetupUI(L)),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(),n.remove(this._container),this._map.off("zoom",this._onZoom),this._map=void 0,Xl=0,Xu=!1}_isOutOfMapMaxBounds(ze){const L=this._map.getMaxBounds(),ne=ze.coords;return L&&(ne.longitudeL.getEast()||ne.latitudeL.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":break;default:throw new Error(`Unexpected watchState ${this._watchState}`)}}_updateCircleRadius(){const ze=this._map.getBounds(),L=ze.getSouthEast(),ne=ze.getNorthEast(),Te=L.distanceTo(ne),Se=Math.ceil(this._accuracy/(Te/this._map._container.clientHeight)*2);this._circleElement.style.width=`${Se}px`,this._circleElement.style.height=`${Se}px`}trigger(){if(!this._setup)return t.w("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 t.k("trackuserlocationstart"));break;case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":case"BACKGROUND_ERROR":Xl--,Xu=!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 t.k("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 t.k("trackuserlocationstart")),this.fire(new t.k("userlocationfocus"));break;default:throw new 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 new Error(`Unexpected watchState ${this._watchState}`)}if(this._watchState==="OFF"&&this._geolocationWatchID!==void 0)this._clearWatch();else if(this._geolocationWatchID===void 0){let ze;this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),Xl++,Xl>1?(ze={maximumAge:6e5,timeout:0},Xu=!0):(ze=this.options.positionOptions,Xu=!1),this._geolocationWatchID=window.navigator.geolocation.watchPosition(this._onSuccess,this._onError,ze)}}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)}},e.Hash=Pu,e.ImageSource=at,e.KeyboardHandler=yr,e.LngLatBounds=ae,e.LogoControl=ii,e.Map=class extends Fi{constructor(ze){t.bf.mark(t.bg.create);const L=Object.assign(Object.assign({},nl),ze);if(L.minZoom!=null&&L.maxZoom!=null&&L.minZoom>L.maxZoom)throw new Error("maxZoom must be greater than or equal to minZoom");if(L.minPitch!=null&&L.maxPitch!=null&&L.minPitch>L.maxPitch)throw new Error("maxPitch must be greater than or equal to minPitch");if(L.minPitch!=null&&L.minPitch<0)throw new Error("minPitch must be greater than or equal to 0");if(L.maxPitch!=null&&L.maxPitch>85)throw new Error("maxPitch must be less than or equal to 85");if(super(new Ys(L.minZoom,L.maxZoom,L.minPitch,L.maxPitch,L.renderWorldCopies),{bearingSnap:L.bearingSnap}),this._idleTriggered=!1,this._crossFadingFactor=1,this._renderTaskQueue=new Wn,this._controls=[],this._mapId=t.a4(),this._contextLost=ne=>{ne.preventDefault(),this._frameRequest&&(this._frameRequest.abort(),this._frameRequest=null),this.fire(new t.k("webglcontextlost",{originalEvent:ne}))},this._contextRestored=ne=>{this._setupPainter(),this.resize(),this._update(),this.fire(new t.k("webglcontextrestored",{originalEvent:ne}))},this._onMapScroll=ne=>{if(ne.target===this._container)return this._container.scrollTop=0,this._container.scrollLeft=0,!1},this._onWindowOnline=()=>{this._update()},this._interactive=L.interactive,this._maxTileCacheSize=L.maxTileCacheSize,this._maxTileCacheZoomLevels=L.maxTileCacheZoomLevels,this._failIfMajorPerformanceCaveat=L.failIfMajorPerformanceCaveat===!0,this._preserveDrawingBuffer=L.preserveDrawingBuffer===!0,this._antialias=L.antialias===!0,this._trackResize=L.trackResize===!0,this._bearingSnap=L.bearingSnap,this._refreshExpiredTiles=L.refreshExpiredTiles===!0,this._fadeDuration=L.fadeDuration,this._crossSourceCollisions=L.crossSourceCollisions===!0,this._collectResourceTiming=L.collectResourceTiming===!0,this._locale=Object.assign(Object.assign({},Yo),L.locale),this._clickTolerance=L.clickTolerance,this._overridePixelRatio=L.pixelRatio,this._maxCanvasSize=L.maxCanvasSize,this.transformCameraUpdate=L.transformCameraUpdate,this.cancelPendingTileRequestsWhileZooming=L.cancelPendingTileRequestsWhileZooming===!0,this._imageQueueHandle=l.addThrottleControl(()=>this.isMoving()),this._requestManager=new m(L.transformRequest),typeof L.container=="string"){if(this._container=document.getElementById(L.container),!this._container)throw new Error(`Container '${L.container}' not found.`)}else{if(!(L.container instanceof HTMLElement))throw new Error("Invalid type: 'container' must be a String or HTMLElement.");this._container=L.container}if(L.maxBounds&&this.setMaxBounds(L.maxBounds),this._setupContainer(),this._setupPainter(),this.on("move",()=>this._update(!1)).on("moveend",()=>this._update(!1)).on("zoom",()=>this._update(!0)).on("terrain",()=>{this.painter.terrainFacilitator.dirty=!0,this._update(!0)}).once("idle",()=>{this._idleTriggered=!0}),typeof window<"u"){addEventListener("online",this._onWindowOnline,!1);let ne=!1;const Te=vc(Se=>{this._trackResize&&!this._removed&&(this.resize(Se),this.redraw())},50);this._resizeObserver=new ResizeObserver(Se=>{ne?Te(Se):ne=!0}),this._resizeObserver.observe(this._container)}this.handlers=new Hi(this,L),this._hash=L.hash&&new Pu(typeof L.hash=="string"&&L.hash||void 0).addTo(this),this._hash&&this._hash._onHashChange()||(this.jumpTo({center:L.center,zoom:L.zoom,bearing:L.bearing,pitch:L.pitch}),L.bounds&&(this.resize(),this.fitBounds(L.bounds,t.e({},L.fitBoundsOptions,{duration:0})))),this.resize(),this._localIdeographFontFamily=L.localIdeographFontFamily,this._validateStyle=L.validateStyle,L.style&&this.setStyle(L.style,{localIdeographFontFamily:L.localIdeographFontFamily}),L.attributionControl&&this.addControl(new Wi(typeof L.attributionControl=="boolean"?void 0:L.attributionControl)),L.maplibreLogo&&this.addControl(new ii,L.logoPosition),this.on("style.load",()=>{this.transform.unmodified&&this.jumpTo(this.style.stylesheet)}),this.on("data",ne=>{this._update(ne.dataType==="style"),this.fire(new t.k(`${ne.dataType}data`,ne))}),this.on("dataloading",ne=>{this.fire(new t.k(`${ne.dataType}dataloading`,ne))}),this.on("dataabort",ne=>{this.fire(new t.k("sourcedataabort",ne))})}_getMapId(){return this._mapId}addControl(ze,L){if(L===void 0&&(L=ze.getDefaultPosition?ze.getDefaultPosition():"top-right"),!ze||!ze.onAdd)return this.fire(new t.j(new Error("Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.")));const ne=ze.onAdd(this);this._controls.push(ze);const Te=this._controlPositions[L];return L.indexOf("bottom")!==-1?Te.insertBefore(ne,Te.firstChild):Te.appendChild(ne),this}removeControl(ze){if(!ze||!ze.onRemove)return this.fire(new t.j(new Error("Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.")));const L=this._controls.indexOf(ze);return L>-1&&this._controls.splice(L,1),ze.onRemove(this),this}hasControl(ze){return this._controls.indexOf(ze)>-1}calculateCameraOptionsFromTo(ze,L,ne,Te){return Te==null&&this.terrain&&(Te=this.terrain.getElevationForLngLatZoom(ne,this.transform.tileZoom)),super.calculateCameraOptionsFromTo(ze,L,ne,Te)}resize(ze){var L;const ne=this._containerDimensions(),Te=ne[0],Se=ne[1],Re=this._getClampedPixelRatio(Te,Se);if(this._resizeCanvas(Te,Se,Re),this.painter.resize(Te,Se,Re),this.painter.overLimit()){const xt=this.painter.context.gl;this._maxCanvasSize=[xt.drawingBufferWidth,xt.drawingBufferHeight];const Dt=this._getClampedPixelRatio(Te,Se);this._resizeCanvas(Te,Se,Dt),this.painter.resize(Te,Se,Dt)}this.transform.resize(Te,Se),(L=this._requestedCameraState)===null||L===void 0||L.resize(Te,Se);const ft=!this._moving;return ft&&(this.stop(),this.fire(new t.k("movestart",ze)).fire(new t.k("move",ze))),this.fire(new t.k("resize",ze)),ft&&this.fire(new t.k("moveend",ze)),this}_getClampedPixelRatio(ze,L){const{0:ne,1:Te}=this._maxCanvasSize,Se=this.getPixelRatio(),Re=ze*Se,ft=L*Se;return Math.min(Re>ne?ne/Re:1,ft>Te?Te/ft:1)*Se}getPixelRatio(){var ze;return(ze=this._overridePixelRatio)!==null&&ze!==void 0?ze:devicePixelRatio}setPixelRatio(ze){this._overridePixelRatio=ze,this.resize()}getBounds(){return this.transform.getBounds()}getMaxBounds(){return this.transform.getMaxBounds()}setMaxBounds(ze){return this.transform.setMaxBounds(ae.convert(ze)),this._update()}setMinZoom(ze){if((ze=ze??-2)>=-2&&ze<=this.transform.maxZoom)return this.transform.minZoom=ze,this._update(),this.getZoom()=this.transform.minZoom)return this.transform.maxZoom=ze,this._update(),this.getZoom()>ze&&this.setZoom(ze),this;throw new Error("maxZoom must be greater than the current minZoom")}getMaxZoom(){return this.transform.maxZoom}setMinPitch(ze){if((ze=ze??0)<0)throw new Error("minPitch must be greater than or equal to 0");if(ze>=0&&ze<=this.transform.maxPitch)return this.transform.minPitch=ze,this._update(),this.getPitch()85)throw new Error("maxPitch must be less than or equal to 85");if(ze>=this.transform.minPitch)return this.transform.maxPitch=ze,this._update(),this.getPitch()>ze&&this.setPitch(ze),this;throw new Error("maxPitch must be greater than the current minPitch")}getMaxPitch(){return this.transform.maxPitch}getRenderWorldCopies(){return this.transform.renderWorldCopies}setRenderWorldCopies(ze){return this.transform.renderWorldCopies=ze,this._update()}project(ze){return this.transform.locationPoint(t.N.convert(ze),this.style&&this.terrain)}unproject(ze){return this.transform.pointLocation(t.P.convert(ze),this.terrain)}isMoving(){var ze;return this._moving||((ze=this.handlers)===null||ze===void 0?void 0:ze.isMoving())}isZooming(){var ze;return this._zooming||((ze=this.handlers)===null||ze===void 0?void 0:ze.isZooming())}isRotating(){var ze;return this._rotating||((ze=this.handlers)===null||ze===void 0?void 0:ze.isRotating())}_createDelegatedListener(ze,L,ne){if(ze==="mouseenter"||ze==="mouseover"){let Te=!1;return{layers:L,listener:ne,delegates:{mousemove:Re=>{const ft=L.filter(Dt=>this.getLayer(Dt)),xt=ft.length!==0?this.queryRenderedFeatures(Re.point,{layers:ft}):[];xt.length?Te||(Te=!0,ne.call(this,new Rl(ze,this,Re.originalEvent,{features:xt}))):Te=!1},mouseout:()=>{Te=!1}}}}if(ze==="mouseleave"||ze==="mouseout"){let Te=!1;return{layers:L,listener:ne,delegates:{mousemove:ft=>{const xt=L.filter(Dt=>this.getLayer(Dt));(xt.length!==0?this.queryRenderedFeatures(ft.point,{layers:xt}):[]).length?Te=!0:Te&&(Te=!1,ne.call(this,new Rl(ze,this,ft.originalEvent)))},mouseout:ft=>{Te&&(Te=!1,ne.call(this,new Rl(ze,this,ft.originalEvent)))}}}}{const Te=Se=>{const Re=L.filter(xt=>this.getLayer(xt)),ft=Re.length!==0?this.queryRenderedFeatures(Se.point,{layers:Re}):[];ft.length&&(Se.features=ft,ne.call(this,Se),delete Se.features)};return{layers:L,listener:ne,delegates:{[ze]:Te}}}}_saveDelegatedListener(ze,L){this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[ze]=this._delegatedListeners[ze]||[],this._delegatedListeners[ze].push(L)}_removeDelegatedListener(ze,L,ne){if(!this._delegatedListeners||!this._delegatedListeners[ze])return;const Te=this._delegatedListeners[ze];for(let Se=0;SeL.includes(ft))){for(const ft in Re.delegates)this.off(ft,Re.delegates[ft]);return void Te.splice(Se,1)}}}on(ze,L,ne){if(ne===void 0)return super.on(ze,L);const Te=this._createDelegatedListener(ze,typeof L=="string"?[L]:L,ne);this._saveDelegatedListener(ze,Te);for(const Se in Te.delegates)this.on(Se,Te.delegates[Se]);return this}once(ze,L,ne){if(ne===void 0)return super.once(ze,L);const Te=typeof L=="string"?[L]:L,Se=this._createDelegatedListener(ze,Te,ne);for(const Re in Se.delegates){const ft=Se.delegates[Re];Se.delegates[Re]=(...xt)=>{this._removeDelegatedListener(ze,Te,ne),ft(...xt)}}this._saveDelegatedListener(ze,Se);for(const Re in Se.delegates)this.once(Re,Se.delegates[Re]);return this}off(ze,L,ne){return ne===void 0?super.off(ze,L):(this._removeDelegatedListener(ze,typeof L=="string"?[L]:L,ne),this)}queryRenderedFeatures(ze,L){if(!this.style)return[];let ne;const Te=ze instanceof t.P||Array.isArray(ze),Se=Te?ze:[[0,0],[this.transform.width,this.transform.height]];if(L=L||(Te?{}:ze)||{},Se instanceof t.P||typeof Se[0]=="number")ne=[t.P.convert(Se)];else{const Re=t.P.convert(Se[0]),ft=t.P.convert(Se[1]);ne=[Re,new t.P(ft.x,Re.y),ft,new t.P(Re.x,ft.y),Re]}return this.style.queryRenderedFeatures(ne,L,this.transform)}querySourceFeatures(ze,L){return this.style.querySourceFeatures(ze,L)}setStyle(ze,L){return(L=t.e({},{localIdeographFontFamily:this._localIdeographFontFamily,validate:this._validateStyle},L)).diff!==!1&&L.localIdeographFontFamily===this._localIdeographFontFamily&&this.style&&ze?(this._diffStyle(ze,L),this):(this._localIdeographFontFamily=L.localIdeographFontFamily,this._updateStyle(ze,L))}setTransformRequest(ze){return this._requestManager.setTransformRequest(ze),this}_getUIString(ze){const L=this._locale[ze];if(L==null)throw new Error(`Missing UI string '${ze}'`);return L}_updateStyle(ze,L){if(L.transformStyle&&this.style&&!this.style._loaded)return void this.style.once("style.load",()=>this._updateStyle(ze,L));const ne=this.style&&L.transformStyle?this.style.serialize():void 0;return this.style&&(this.style.setEventedParent(null),this.style._remove(!ze)),ze?(this.style=new Hr(this,L||{}),this.style.setEventedParent(this,{style:this.style}),typeof ze=="string"?this.style.loadURL(ze,L,ne):this.style.loadJSON(ze,L,ne),this):(delete this.style,this)}_lazyInitEmptyStyle(){this.style||(this.style=new Hr(this,{}),this.style.setEventedParent(this,{style:this.style}),this.style.loadEmpty())}_diffStyle(ze,L){if(typeof ze=="string"){const ne=this._requestManager.transformRequest(ze,"Style");t.h(ne,new AbortController).then(Te=>{this._updateDiff(Te.data,L)}).catch(Te=>{Te&&this.fire(new t.j(Te))})}else typeof ze=="object"&&this._updateDiff(ze,L)}_updateDiff(ze,L){try{this.style.setState(ze,L)&&this._update(!0)}catch(ne){t.w(`Unable to perform style diff: ${ne.message||ne.error||ne}. Rebuilding the style from scratch.`),this._updateStyle(ze,L)}}getStyle(){if(this.style)return this.style.serialize()}isStyleLoaded(){return this.style?this.style.loaded():t.w("There is no style added to the map.")}addSource(ze,L){return this._lazyInitEmptyStyle(),this.style.addSource(ze,L),this._update(!0)}isSourceLoaded(ze){const L=this.style&&this.style.sourceCaches[ze];if(L!==void 0)return L.loaded();this.fire(new t.j(new Error(`There is no source with ID '${ze}'`)))}setTerrain(ze){if(this.style._checkLoaded(),this._terrainDataCallback&&this.style.off("data",this._terrainDataCallback),ze){const L=this.style.sourceCaches[ze.source];if(!L)throw new Error(`cannot load terrain, because there exists no source with ID: ${ze.source}`);this.terrain===null&&L.reload();for(const ne in this.style._layers){const Te=this.style._layers[ne];Te.type==="hillshade"&&Te.source===ze.source&&t.w("You are using the same source for a hillshade layer and for 3D terrain. Please consider using two separate sources to improve rendering quality.")}this.terrain=new hs(this.painter,L,ze),this.painter.renderToTexture=new Rs(this.painter,this.terrain),this.transform.minElevationForCurrentTile=this.terrain.getMinTileElevationForLngLatZoom(this.transform.center,this.transform.tileZoom),this.transform.elevation=this.terrain.getElevationForLngLatZoom(this.transform.center,this.transform.tileZoom),this._terrainDataCallback=ne=>{ne.dataType==="style"?this.terrain.sourceCache.freeRtt():ne.dataType==="source"&&ne.tile&&(ne.sourceId!==ze.source||this._elevationFreeze||(this.transform.minElevationForCurrentTile=this.terrain.getMinTileElevationForLngLatZoom(this.transform.center,this.transform.tileZoom),this.transform.elevation=this.terrain.getElevationForLngLatZoom(this.transform.center,this.transform.tileZoom)),this.terrain.sourceCache.freeRtt(ne.tile.tileID))},this.style.on("data",this._terrainDataCallback)}else this.terrain&&this.terrain.sourceCache.destruct(),this.terrain=null,this.painter.renderToTexture&&this.painter.renderToTexture.destruct(),this.painter.renderToTexture=null,this.transform.minElevationForCurrentTile=0,this.transform.elevation=0;return this.fire(new t.k("terrain",{terrain:ze})),this}getTerrain(){var ze,L;return(L=(ze=this.terrain)===null||ze===void 0?void 0:ze.options)!==null&&L!==void 0?L:null}areTilesLoaded(){const ze=this.style&&this.style.sourceCaches;for(const L in ze){const ne=ze[L]._tiles;for(const Te in ne){const Se=ne[Te];if(Se.state!=="loaded"&&Se.state!=="errored")return!1}}return!0}removeSource(ze){return this.style.removeSource(ze),this._update(!0)}getSource(ze){return this.style.getSource(ze)}addImage(ze,L,ne={}){const{pixelRatio:Te=1,sdf:Se=!1,stretchX:Re,stretchY:ft,content:xt,textFitWidth:Dt,textFitHeight:er}=ne;if(this._lazyInitEmptyStyle(),!(L instanceof HTMLImageElement||t.b(L))){if(L.width===void 0||L.height===void 0)return this.fire(new t.j(new 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`")));{const{width:fr,height:pr,data:Br}=L,ea=L;return this.style.addImage(ze,{data:new t.R({width:fr,height:pr},new Uint8Array(Br)),pixelRatio:Te,stretchX:Re,stretchY:ft,content:xt,textFitWidth:Dt,textFitHeight:er,sdf:Se,version:0,userImage:ea}),ea.onAdd&&ea.onAdd(this,ze),this}}{const{width:fr,height:pr,data:Br}=o.getImageData(L);this.style.addImage(ze,{data:new t.R({width:fr,height:pr},Br),pixelRatio:Te,stretchX:Re,stretchY:ft,content:xt,textFitWidth:Dt,textFitHeight:er,sdf:Se,version:0})}}updateImage(ze,L){const ne=this.style.getImage(ze);if(!ne)return this.fire(new t.j(new Error("The map has no image with that id. If you are adding a new image use `map.addImage(...)` instead.")));const Te=L instanceof HTMLImageElement||t.b(L)?o.getImageData(L):L,{width:Se,height:Re,data:ft}=Te;if(Se===void 0||Re===void 0)return this.fire(new t.j(new 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(Se!==ne.data.width||Re!==ne.data.height)return this.fire(new t.j(new Error("The width and height of the updated image must be that same as the previous version of the image")));const xt=!(L instanceof HTMLImageElement||t.b(L));return ne.data.replace(ft,xt),this.style.updateImage(ze,ne),this}getImage(ze){return this.style.getImage(ze)}hasImage(ze){return ze?!!this.style.getImage(ze):(this.fire(new t.j(new Error("Missing required image id"))),!1)}removeImage(ze){this.style.removeImage(ze)}loadImage(ze){return l.getImage(this._requestManager.transformRequest(ze,"Image"),new AbortController)}listImages(){return this.style.listImages()}addLayer(ze,L){return this._lazyInitEmptyStyle(),this.style.addLayer(ze,L),this._update(!0)}moveLayer(ze,L){return this.style.moveLayer(ze,L),this._update(!0)}removeLayer(ze){return this.style.removeLayer(ze),this._update(!0)}getLayer(ze){return this.style.getLayer(ze)}getLayersOrder(){return this.style.getLayersOrder()}setLayerZoomRange(ze,L,ne){return this.style.setLayerZoomRange(ze,L,ne),this._update(!0)}setFilter(ze,L,ne={}){return this.style.setFilter(ze,L,ne),this._update(!0)}getFilter(ze){return this.style.getFilter(ze)}setPaintProperty(ze,L,ne,Te={}){return this.style.setPaintProperty(ze,L,ne,Te),this._update(!0)}getPaintProperty(ze,L){return this.style.getPaintProperty(ze,L)}setLayoutProperty(ze,L,ne,Te={}){return this.style.setLayoutProperty(ze,L,ne,Te),this._update(!0)}getLayoutProperty(ze,L){return this.style.getLayoutProperty(ze,L)}setGlyphs(ze,L={}){return this._lazyInitEmptyStyle(),this.style.setGlyphs(ze,L),this._update(!0)}getGlyphs(){return this.style.getGlyphsUrl()}addSprite(ze,L,ne={}){return this._lazyInitEmptyStyle(),this.style.addSprite(ze,L,ne,Te=>{Te||this._update(!0)}),this}removeSprite(ze){return this._lazyInitEmptyStyle(),this.style.removeSprite(ze),this._update(!0)}getSprite(){return this.style.getSprite()}setSprite(ze,L={}){return this._lazyInitEmptyStyle(),this.style.setSprite(ze,L,ne=>{ne||this._update(!0)}),this}setLight(ze,L={}){return this._lazyInitEmptyStyle(),this.style.setLight(ze,L),this._update(!0)}getLight(){return this.style.getLight()}setSky(ze){return this._lazyInitEmptyStyle(),this.style.setSky(ze),this._update(!0)}getSky(){return this.style.getSky()}setFeatureState(ze,L){return this.style.setFeatureState(ze,L),this._update()}removeFeatureState(ze,L){return this.style.removeFeatureState(ze,L),this._update()}getFeatureState(ze){return this.style.getFeatureState(ze)}getContainer(){return this._container}getCanvasContainer(){return this._canvasContainer}getCanvas(){return this._canvas}_containerDimensions(){let ze=0,L=0;return this._container&&(ze=this._container.clientWidth||400,L=this._container.clientHeight||300),[ze,L]}_setupContainer(){const ze=this._container;ze.classList.add("maplibregl-map");const L=this._canvasContainer=n.create("div","maplibregl-canvas-container",ze);this._interactive&&L.classList.add("maplibregl-interactive"),this._canvas=n.create("canvas","maplibregl-canvas",L),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");const ne=this._containerDimensions(),Te=this._getClampedPixelRatio(ne[0],ne[1]);this._resizeCanvas(ne[0],ne[1],Te);const Se=this._controlContainer=n.create("div","maplibregl-control-container",ze),Re=this._controlPositions={};["top-left","top-right","bottom-left","bottom-right"].forEach(ft=>{Re[ft]=n.create("div",`maplibregl-ctrl-${ft} `,Se)}),this._container.addEventListener("scroll",this._onMapScroll,!1)}_resizeCanvas(ze,L,ne){this._canvas.width=Math.floor(ne*ze),this._canvas.height=Math.floor(ne*L),this._canvas.style.width=`${ze}px`,this._canvas.style.height=`${L}px`}_setupPainter(){const ze={alpha:!0,stencil:!0,depth:!0,failIfMajorPerformanceCaveat:this._failIfMajorPerformanceCaveat,preserveDrawingBuffer:this._preserveDrawingBuffer,antialias:this._antialias||!1};let L=null;this._canvas.addEventListener("webglcontextcreationerror",Te=>{L={requestedAttributes:ze},Te&&(L.statusMessage=Te.statusMessage,L.type=Te.type)},{once:!0});const ne=this._canvas.getContext("webgl2",ze)||this._canvas.getContext("webgl",ze);if(!ne){const Te="Failed to initialize WebGL";throw L?(L.message=Te,new Error(JSON.stringify(L))):new Error(Te)}this.painter=new tc(ne,this.transform),s.testSupport(ne)}loaded(){return!this._styleDirty&&!this._sourcesDirty&&!!this.style&&this.style.loaded()}_update(ze){return this.style&&this.style._loaded?(this._styleDirty=this._styleDirty||ze,this._sourcesDirty=!0,this.triggerRepaint(),this):this}_requestRenderFrame(ze){return this._update(),this._renderTaskQueue.add(ze)}_cancelRenderFrame(ze){this._renderTaskQueue.remove(ze)}_render(ze){const L=this._idleTriggered?this._fadeDuration:0;if(this.painter.context.setDirty(),this.painter.setBaseState(),this._renderTaskQueue.run(ze),this._removed)return;let ne=!1;if(this.style&&this._styleDirty){this._styleDirty=!1;const Se=this.transform.zoom,Re=o.now();this.style.zoomHistory.update(Se,Re);const ft=new t.z(Se,{now:Re,fadeDuration:L,zoomHistory:this.style.zoomHistory,transition:this.style.getTransition()}),xt=ft.crossFadingFactor();xt===1&&xt===this._crossFadingFactor||(ne=!0,this._crossFadingFactor=xt),this.style.update(ft)}this.style&&this._sourcesDirty&&(this._sourcesDirty=!1,this.style._updateSources(this.transform)),this.terrain?(this.terrain.sourceCache.update(this.transform,this.terrain),this.transform.minElevationForCurrentTile=this.terrain.getMinTileElevationForLngLatZoom(this.transform.center,this.transform.tileZoom),this._elevationFreeze||(this.transform.elevation=this.terrain.getElevationForLngLatZoom(this.transform.center,this.transform.tileZoom))):(this.transform.minElevationForCurrentTile=0,this.transform.elevation=0),this._placementDirty=this.style&&this.style._updatePlacement(this.painter.transform,this.showCollisionBoxes,L,this._crossSourceCollisions),this.painter.render(this.style,{showTileBoundaries:this.showTileBoundaries,showOverdrawInspector:this._showOverdrawInspector,rotating:this.isRotating(),zooming:this.isZooming(),moving:this.isMoving(),fadeDuration:L,showPadding:this.showPadding}),this.fire(new t.k("render")),this.loaded()&&!this._loaded&&(this._loaded=!0,t.bf.mark(t.bg.load),this.fire(new t.k("load"))),this.style&&(this.style.hasTransitions()||ne)&&(this._styleDirty=!0),this.style&&!this._placementDirty&&this.style._releaseSymbolFadeTiles();const Te=this._sourcesDirty||this._styleDirty||this._placementDirty;return Te||this._repaint?this.triggerRepaint():!this.isMoving()&&this.loaded()&&this.fire(new t.k("idle")),!this._loaded||this._fullyLoaded||Te||(this._fullyLoaded=!0,t.bf.mark(t.bg.fullLoad)),this}redraw(){return this.style&&(this._frameRequest&&(this._frameRequest.abort(),this._frameRequest=null),this._render(0)),this}remove(){var ze;this._hash&&this._hash.remove();for(const ne of this._controls)ne.onRemove(this);this._controls=[],this._frameRequest&&(this._frameRequest.abort(),this._frameRequest=null),this._renderTaskQueue.clear(),this.painter.destroy(),this.handlers.destroy(),delete this.handlers,this.setStyle(null),typeof window<"u"&&removeEventListener("online",this._onWindowOnline,!1),l.removeThrottleControl(this._imageQueueHandle),(ze=this._resizeObserver)===null||ze===void 0||ze.disconnect();const L=this.painter.context.gl.getExtension("WEBGL_lose_context");L?.loseContext&&L.loseContext(),this._canvas.removeEventListener("webglcontextrestored",this._contextRestored,!1),this._canvas.removeEventListener("webglcontextlost",this._contextLost,!1),n.remove(this._canvasContainer),n.remove(this._controlContainer),this._container.classList.remove("maplibregl-map"),t.bf.clearMetrics(),this._removed=!0,this.fire(new t.k("remove"))}triggerRepaint(){this.style&&!this._frameRequest&&(this._frameRequest=new AbortController,o.frameAsync(this._frameRequest).then(ze=>{t.bf.frame(ze),this._frameRequest=null,this._render(ze)}).catch(()=>{}))}get showTileBoundaries(){return!!this._showTileBoundaries}set showTileBoundaries(ze){this._showTileBoundaries!==ze&&(this._showTileBoundaries=ze,this._update())}get showPadding(){return!!this._showPadding}set showPadding(ze){this._showPadding!==ze&&(this._showPadding=ze,this._update())}get showCollisionBoxes(){return!!this._showCollisionBoxes}set showCollisionBoxes(ze){this._showCollisionBoxes!==ze&&(this._showCollisionBoxes=ze,ze?this.style._generateCollisionBoxes():this._update())}get showOverdrawInspector(){return!!this._showOverdrawInspector}set showOverdrawInspector(ze){this._showOverdrawInspector!==ze&&(this._showOverdrawInspector=ze,this._update())}get repaint(){return!!this._repaint}set repaint(ze){this._repaint!==ze&&(this._repaint=ze,this.triggerRepaint())}get vertices(){return!!this._vertices}set vertices(ze){this._vertices=ze,this._update()}get version(){return sl}getCameraTargetElevation(){return this.transform.elevation}},e.MapMouseEvent=Rl,e.MapTouchEvent=pc,e.MapWheelEvent=ef,e.Marker=$l,e.NavigationControl=class{constructor(ze){this._updateZoomButtons=()=>{const L=this._map.getZoom(),ne=L===this._map.getMaxZoom(),Te=L===this._map.getMinZoom();this._zoomInButton.disabled=ne,this._zoomOutButton.disabled=Te,this._zoomInButton.setAttribute("aria-disabled",ne.toString()),this._zoomOutButton.setAttribute("aria-disabled",Te.toString())},this._rotateCompassArrow=()=>{const L=this.options.visualizePitch?`scale(${1/Math.pow(Math.cos(this._map.transform.pitch*(Math.PI/180)),.5)}) rotateX(${this._map.transform.pitch}deg) rotateZ(${this._map.transform.angle*(180/Math.PI)}deg)`:`rotate(${this._map.transform.angle*(180/Math.PI)}deg)`;this._compassIcon.style.transform=L},this._setButtonTitle=(L,ne)=>{const Te=this._map._getUIString(`NavigationControl.${ne}`);L.title=Te,L.setAttribute("aria-label",Te)},this.options=t.e({},wi,ze),this._container=n.create("div","maplibregl-ctrl maplibregl-ctrl-group"),this._container.addEventListener("contextmenu",L=>L.preventDefault()),this.options.showZoom&&(this._zoomInButton=this._createButton("maplibregl-ctrl-zoom-in",L=>this._map.zoomIn({},{originalEvent:L})),n.create("span","maplibregl-ctrl-icon",this._zoomInButton).setAttribute("aria-hidden","true"),this._zoomOutButton=this._createButton("maplibregl-ctrl-zoom-out",L=>this._map.zoomOut({},{originalEvent:L})),n.create("span","maplibregl-ctrl-icon",this._zoomOutButton).setAttribute("aria-hidden","true")),this.options.showCompass&&(this._compass=this._createButton("maplibregl-ctrl-compass",L=>{this.options.visualizePitch?this._map.resetNorthPitch({},{originalEvent:L}):this._map.resetNorth({},{originalEvent:L})}),this._compassIcon=n.create("span","maplibregl-ctrl-icon",this._compass),this._compassIcon.setAttribute("aria-hidden","true"))}onAdd(ze){return this._map=ze,this.options.showZoom&&(this._setButtonTitle(this._zoomInButton,"ZoomIn"),this._setButtonTitle(this._zoomOutButton,"ZoomOut"),this._map.on("zoom",this._updateZoomButtons),this._updateZoomButtons()),this.options.showCompass&&(this._setButtonTitle(this._compass,"ResetBearing"),this.options.visualizePitch&&this._map.on("pitch",this._rotateCompassArrow),this._map.on("rotate",this._rotateCompassArrow),this._rotateCompassArrow(),this._handler=new go(this._map,this._compass,this.options.visualizePitch)),this._container}onRemove(){n.remove(this._container),this.options.showZoom&&this._map.off("zoom",this._updateZoomButtons),this.options.showCompass&&(this.options.visualizePitch&&this._map.off("pitch",this._rotateCompassArrow),this._map.off("rotate",this._rotateCompassArrow),this._handler.off(),delete this._handler),delete this._map}_createButton(ze,L){const ne=n.create("button",ze,this._container);return ne.type="button",ne.addEventListener("click",L),ne}},e.Popup=class extends t.E{constructor(ze){super(),this.remove=()=>(this._content&&n.remove(this._content),this._container&&(n.remove(this._container),delete this._container),this._map&&(this._map.off("move",this._update),this._map.off("move",this._onClose),this._map.off("click",this._onClose),this._map.off("remove",this.remove),this._map.off("mousemove",this._onMouseMove),this._map.off("mouseup",this._onMouseUp),this._map.off("drag",this._onDrag),this._map._canvasContainer.classList.remove("maplibregl-track-pointer"),delete this._map,this.fire(new t.k("close"))),this),this._onMouseUp=L=>{this._update(L.point)},this._onMouseMove=L=>{this._update(L.point)},this._onDrag=L=>{this._update(L.point)},this._update=L=>{var ne;if(!this._map||!this._lngLat&&!this._trackPointer||!this._content)return;if(!this._container){if(this._container=n.create("div","maplibregl-popup",this._map.getContainer()),this._tip=n.create("div","maplibregl-popup-tip",this._container),this._container.appendChild(this._content),this.options.className)for(const xt of this.options.className.split(" "))this._container.classList.add(xt);this._closeButton&&this._closeButton.setAttribute("aria-label",this._map._getUIString("Popup.Close")),this._trackPointer&&this._container.classList.add("maplibregl-popup-track-pointer")}if(this.options.maxWidth&&this._container.style.maxWidth!==this.options.maxWidth&&(this._container.style.maxWidth=this.options.maxWidth),this._lngLat=this._map.transform.renderWorldCopies&&!this._trackPointer?os(this._lngLat,this._flatPos,this._map.transform):(ne=this._lngLat)===null||ne===void 0?void 0:ne.wrap(),this._trackPointer&&!L)return;const Te=this._flatPos=this._pos=this._trackPointer&&L?L:this._map.project(this._lngLat);this._map.terrain&&(this._flatPos=this._trackPointer&&L?L:this._map.transform.locationPoint(this._lngLat));let Se=this.options.anchor;const Re=du(this.options.offset);if(!Se){const xt=this._container.offsetWidth,Dt=this._container.offsetHeight;let er;er=Te.y+Re.bottom.ythis._map.transform.height-Dt?["bottom"]:[],Te.xthis._map.transform.width-xt/2&&er.push("right"),Se=er.length===0?"bottom":er.join("-")}let ft=Te.add(Re[Se]);this.options.subpixelPositioning||(ft=ft.round()),n.setTransform(this._container,`${Hl[Se]} translate(${ft.x}px,${ft.y}px)`),Wl(this._container,Se,"popup")},this._onClose=()=>{this.remove()},this.options=t.e(Object.create(io),ze)}addTo(ze){return this._map&&this.remove(),this._map=ze,this.options.closeOnClick&&this._map.on("click",this._onClose),this.options.closeOnMove&&this._map.on("move",this._onClose),this._map.on("remove",this.remove),this._update(),this._focusFirstElement(),this._trackPointer?(this._map.on("mousemove",this._onMouseMove),this._map.on("mouseup",this._onMouseUp),this._container&&this._container.classList.add("maplibregl-popup-track-pointer"),this._map._canvasContainer.classList.add("maplibregl-track-pointer")):this._map.on("move",this._update),this.fire(new t.k("open")),this}isOpen(){return!!this._map}getLngLat(){return this._lngLat}setLngLat(ze){return this._lngLat=t.N.convert(ze),this._pos=null,this._flatPos=null,this._trackPointer=!1,this._update(),this._map&&(this._map.on("move",this._update),this._map.off("mousemove",this._onMouseMove),this._container&&this._container.classList.remove("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._onMouseMove),this._map.on("drag",this._onDrag),this._container&&this._container.classList.add("maplibregl-popup-track-pointer"),this._map._canvasContainer.classList.add("maplibregl-track-pointer")),this}getElement(){return this._container}setText(ze){return this.setDOMContent(document.createTextNode(ze))}setHTML(ze){const L=document.createDocumentFragment(),ne=document.createElement("body");let Te;for(ne.innerHTML=ze;Te=ne.firstChild,Te;)L.appendChild(Te);return this.setDOMContent(L)}getMaxWidth(){var ze;return(ze=this._container)===null||ze===void 0?void 0:ze.style.maxWidth}setMaxWidth(ze){return this.options.maxWidth=ze,this._update(),this}setDOMContent(ze){if(this._content)for(;this._content.hasChildNodes();)this._content.firstChild&&this._content.removeChild(this._content.firstChild);else this._content=n.create("div","maplibregl-popup-content",this._container);return this._content.appendChild(ze),this._createCloseButton(),this._update(),this._focusFirstElement(),this}addClassName(ze){return this._container&&this._container.classList.add(ze),this}removeClassName(ze){return this._container&&this._container.classList.remove(ze),this}setOffset(ze){return this.options.offset=ze,this._update(),this}toggleClassName(ze){if(this._container)return this._container.classList.toggle(ze)}setSubpixelPositioning(ze){this.options.subpixelPositioning=ze}_createCloseButton(){this.options.closeButton&&(this._closeButton=n.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;const ze=this._container.querySelector(Yu);ze&&ze.focus()}},e.RasterDEMTileSource=Pe,e.RasterTileSource=Ae,e.ScaleControl=class{constructor(ze){this._onMove=()=>{Zu(this._map,this._container,this.options)},this.setUnit=L=>{this.options.unit=L,Zu(this._map,this._container,this.options)},this.options=Object.assign(Object.assign({},ll),ze)}getDefaultPosition(){return"bottom-left"}onAdd(ze){return this._map=ze,this._container=n.create("div","maplibregl-ctrl maplibregl-ctrl-scale",ze.getContainer()),this._map.on("move",this._onMove),this._onMove(),this._container}onRemove(){n.remove(this._container),this._map.off("move",this._onMove),this._map=void 0}},e.ScrollZoomHandler=ma,e.Style=Hr,e.TerrainControl=class{constructor(ze){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=ze}onAdd(ze){return this._map=ze,this._container=n.create("div","maplibregl-ctrl maplibregl-ctrl-group"),this._terrainButton=n.create("button","maplibregl-ctrl-terrain",this._container),n.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(){n.remove(this._container),this._map.off("terrain",this._updateTerrainIcon),this._map=void 0}},e.TwoFingersTouchPitchHandler=Zc,e.TwoFingersTouchRotateHandler=nc,e.TwoFingersTouchZoomHandler=Yl,e.TwoFingersTouchZoomRotateHandler=_n,e.VectorTileSource=xe,e.VideoSource=tt,e.addSourceType=(ze,L)=>t._(void 0,void 0,void 0,function*(){if(Me(ze))throw new Error(`A source type called "${ze}" already exists.`);((ne,Te)=>{Ze[ne]=Te})(ze,L)}),e.clearPrewarmedResources=function(){const ze=le;ze&&(ze.isPreloaded()&&ze.numActive()===1?(ze.release(te),le=null):console.warn("Could not clear WebWorkers since there are active Map instances that still reference it. The pre-warmed WebWorker pool can only be cleared when all map instances have been removed with map.remove()"))},e.getMaxParallelImageRequests=function(){return t.a.MAX_PARALLEL_IMAGE_REQUESTS},e.getRTLTextPluginStatus=function(){return et().getRTLTextPluginStatus()},e.getVersion=function(){return iu},e.getWorkerCount=function(){return ue.workerCount},e.getWorkerUrl=function(){return t.a.WORKER_URL},e.importScriptInWorkers=function(ze){return Z().broadcast("IS",ze)},e.prewarm=function(){J().acquire(te)},e.setMaxParallelImageRequests=function(ze){t.a.MAX_PARALLEL_IMAGE_REQUESTS=ze},e.setRTLTextPlugin=function(ze,L){return et().setRTLTextPlugin(ze,L)},e.setWorkerCount=function(ze){ue.workerCount=ze},e.setWorkerUrl=function(ze){t.a.WORKER_URL=ze}});var E=h;return E})}}),aD=He({"src/plots/map/layers.js"(Y,H){var h=Qr(),x=jl().sanitizeHTML,A=iA(),E=cp();function e(o,n){this.subplot=o,this.uid=o.uid+"-"+n,this.index=n,this.idSource="source-"+this.uid,this.idLayer=E.layoutLayerPrefix+this.uid,this.sourceType=null,this.source=null,this.layerType=null,this.below=null,this.visible=!1}var t=e.prototype;t.update=function(n){this.visible?this.needsNewImage(n)?this.updateImage(n):this.needsNewSource(n)?(this.removeLayer(),this.updateSource(n),this.updateLayer(n)):this.needsNewLayer(n)?this.updateLayer(n):this.updateStyle(n):(this.updateSource(n),this.updateLayer(n)),this.visible=r(n)},t.needsNewImage=function(o){var n=this.subplot.map;return n.getSource(this.idSource)&&this.sourceType==="image"&&o.sourcetype==="image"&&(this.source!==o.source||JSON.stringify(this.coordinates)!==JSON.stringify(o.coordinates))},t.needsNewSource=function(o){return this.sourceType!==o.sourcetype||JSON.stringify(this.source)!==JSON.stringify(o.source)||this.layerType!==o.type},t.needsNewLayer=function(o){return this.layerType!==o.type||this.below!==this.subplot.belowLookup["layout-"+this.index]},t.lookupBelow=function(){return this.subplot.belowLookup["layout-"+this.index]},t.updateImage=function(o){var n=this.subplot.map;n.getSource(this.idSource).updateImage({url:o.source,coordinates:o.coordinates});var s=this.findFollowingMapLayerId(this.lookupBelow());s!==null&&this.subplot.map.moveLayer(this.idLayer,s)},t.updateSource=function(o){var n=this.subplot.map;if(n.getSource(this.idSource)&&n.removeSource(this.idSource),this.sourceType=o.sourcetype,this.source=o.source,!!r(o)){var s=a(o);n.addSource(this.idSource,s)}},t.findFollowingMapLayerId=function(o){if(o==="traces")for(var n=this.subplot.getMapLayers(),s=0;s0){for(var s=0;s0}function i(o){var n={},s={};switch(o.type){case"circle":h.extendFlat(s,{"circle-radius":o.circle.radius,"circle-color":o.color,"circle-opacity":o.opacity});break;case"line":h.extendFlat(s,{"line-width":o.line.width,"line-color":o.color,"line-opacity":o.opacity,"line-dasharray":o.line.dash});break;case"fill":h.extendFlat(s,{"fill-color":o.color,"fill-outline-color":o.fill.outlinecolor,"fill-opacity":o.opacity});break;case"symbol":var c=o.symbol,f=A(c.textposition,c.iconsize);h.extendFlat(n,{"icon-image":c.icon+"-15","icon-size":c.iconsize/10,"text-field":c.text,"text-size":c.textfont.size,"text-anchor":f.anchor,"text-offset":f.offset,"symbol-placement":c.placement}),h.extendFlat(s,{"icon-color":o.color,"text-color":c.textfont.color,"text-opacity":o.opacity});break;case"raster":h.extendFlat(s,{"raster-fade-duration":0,"raster-opacity":o.opacity});break}return{layout:n,paint:s}}function a(o){var n=o.sourcetype,s=o.source,c={type:n},f;return n==="geojson"?f="data":n==="vector"?f=typeof s=="string"?"url":"tiles":n==="raster"?(f="tiles",c.tileSize=256):n==="image"&&(f="url",c.coordinates=o.coordinates),c[f]=s,o.sourceattribution&&(c.attribution=x(o.sourceattribution)),c}H.exports=function(n,s,c){var f=new e(n,s);return f.update(c),f}}}),nD=He({"src/plots/map/map.js"(Y,H){var h=rD(),x=Qr(),A=op(),E=qi(),e=wo(),t=ph(),r=xc(),i=yv(),a=i.drawMode,o=i.selectMode,n=Uc().prepSelect,s=Uc().clearOutline,c=Uc().clearSelectionsCache,f=Uc().selectOnClick,p=cp(),v=aD();function T(_,b){this.id=b,this.gd=_;var d=_._fullLayout,u=_._context;this.container=d._glcontainer.node(),this.isStatic=u.staticPlot,this.uid=d._uid+"-"+this.id,this.div=null,this.xaxis=null,this.yaxis=null,this.createFramework(d),this.map=null,this.styleObj=null,this.traceHash={},this.layerList=[],this.belowLookup={},this.dragging=!1,this.wheeling=!1}var l=T.prototype;l.plot=function(_,b,d){var u=this,g;u.map?g=new Promise(function(y,R){u.updateMap(_,b,y,R)}):g=new Promise(function(y,R){u.createMap(_,b,y,R)}),d.push(g)},l.createMap=function(_,b,d,u){var g=this,y=b[g.id],R=g.styleObj=w(y.style),I=y.bounds,z=I?[[I.west,I.south],[I.east,I.north]]:null,F=g.map=new h.Map({container:g.div,style:R.style,center:M(y.center),zoom:y.zoom,bearing:y.bearing,pitch:y.pitch,maxBounds:z,interactive:!g.isStatic,preserveDrawingBuffer:g.isStatic,doubleClickZoom:!1,boxZoom:!1,attributionControl:!1}).addControl(new h.AttributionControl({compact:!0})),B={};F.on("styleimagemissing",function(P){var N=P.id;if(!B[N]&&N.includes("-15")){B[N]=!0;var U=new Image(15,15);U.onload=function(){F.addImage(N,U)},U.crossOrigin="Anonymous",U.src="https://unpkg.com/maki@2.1.0/icons/"+N+".svg"}}),F.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}}),F._canvas.style.left="0px",F._canvas.style.top="0px",g.rejectOnError(u),g.isStatic||g.initFx(_,b);var O=[];O.push(new Promise(function(P){F.once("load",P)})),O=O.concat(A.fetchTraceGeoData(_)),Promise.all(O).then(function(){g.fillBelowLookup(_,b),g.updateData(_),g.updateLayout(b),g.resolveOnRender(d)}).catch(u)},l.updateMap=function(_,b,d,u){var g=this,y=g.map,R=b[this.id];g.rejectOnError(u);var I=[],z=w(R.style);JSON.stringify(g.styleObj)!==JSON.stringify(z)&&(g.styleObj=z,y.setStyle(z.style),g.traceHash={},I.push(new Promise(function(F){y.once("styledata",F)}))),I=I.concat(A.fetchTraceGeoData(_)),Promise.all(I).then(function(){g.fillBelowLookup(_,b),g.updateData(_),g.updateLayout(b),g.resolveOnRender(d)}).catch(u)},l.fillBelowLookup=function(_,b){var d=b[this.id],u=d.layers,g,y,R=this.belowLookup={},I=!1;for(g=0;g<_.length;g++){var z=_[g][0].trace,F=z._module;typeof z.below=="string"?y=z.below:F.getBelow&&(y=F.getBelow(z,this)),y===""&&(I=!0),R["trace-"+z.uid]=y||""}for(g=0;g1)for(g=0;g-1&&f(z.originalEvent,u,[d.xaxis],[d.yaxis],d.id,I),F.indexOf("event")>-1&&r.click(u,z.originalEvent)}}},l.updateFx=function(_){var b=this,d=b.map,u=b.gd;if(b.isStatic)return;function g(z){var F=b.map.unproject(z);return[F.lng,F.lat]}var y=_.dragmode,R;R=function(z,F){if(F.isRect){var B=z.range={};B[b.id]=[g([F.xmin,F.ymin]),g([F.xmax,F.ymax])]}else{var O=z.lassoPoints={};O[b.id]=F.map(g)}};var I=b.dragOptions;b.dragOptions=x.extendDeep(I||{},{dragmode:_.dragmode,element:b.div,gd:u,plotinfo:{id:b.id,domain:_[b.id].domain,xaxis:b.xaxis,yaxis:b.yaxis,fillRangeItems:R},xaxes:[b.xaxis],yaxes:[b.yaxis],subplot:b.id}),d.off("click",b.onClickInPanHandler),o(y)||a(y)?(d.dragPan.disable(),d.on("zoomstart",b.clearOutline),b.dragOptions.prepFn=function(z,F,B){n(z,F,B,b.dragOptions,y)},t.init(b.dragOptions)):(d.dragPan.enable(),d.off("zoomstart",b.clearOutline),b.div.onmousedown=null,b.div.ontouchstart=null,b.div.removeEventListener("touchstart",b.div._ontouchstart),b.onClickInPanHandler=b.onClickInPanFn(b.dragOptions),d.on("click",b.onClickInPanHandler))},l.updateFramework=function(_){var b=_[this.id].domain,d=_._size,u=this.div.style;u.width=d.w*(b.x[1]-b.x[0])+"px",u.height=d.h*(b.y[1]-b.y[0])+"px",u.left=d.l+b.x[0]*d.w+"px",u.top=d.t+(1-b.y[1])*d.h+"px",this.xaxis._offset=d.l+b.x[0]*d.w,this.xaxis._length=d.w*(b.x[1]-b.x[0]),this.yaxis._offset=d.t+(1-b.y[1])*d.h,this.yaxis._length=d.h*(b.y[1]-b.y[0])},l.updateLayers=function(_){var b=_[this.id],d=b.layers,u=this.layerList,g;if(d.length!==u.length){for(g=0;gd/2){var u=S.split("|").join("
");_.text(u).attr("data-unformatted",u).call(r.convertToTspans,o),b=t.bBox(_.node())}_.attr("transform",h(-3,-b.height+8)),M.insert("rect",".static-attribution").attr({x:-b.width-6,y:-b.height-3,width:b.width+6,height:b.height+3,fill:"rgba(255, 255, 255, 0.75)"});var g=1;b.width+6>d&&(g=d/(b.width+6));var y=[c.l+c.w*v.x[1],c.t+c.h*(1-v.y[0])];M.attr("transform",h(y[0],y[1])+x(g))}},Y.updateFx=function(o){for(var n=o._fullLayout,s=n._subplots[a],c=0;c=0;i--)t.removeLayer(r[i][1])},e.dispose=function(){var t=this.subplot.map;this._removeLayers(),t.removeSource(this.sourceId)},H.exports=function(r,i){var a=i[0].trace,o=new E(r,a.uid),n=o.sourceId,s=h(i),c=o.below=r.belowLookup["trace-"+a.uid];return r.map.addSource(n,{type:"geojson",data:s.geojson}),o._addLayers(s,c),i[0].trace._glTrace=o,o}}}),cD=He({"src/traces/choroplethmap/index.js"(Y,H){H.exports={attributes:oA(),supplyDefaults:lD(),colorbar:Zd(),calc:K_(),plot:uD(),hoverPoints:Q_(),eventData:ex(),selectPoints:tx(),styleOnSelect:function(h,x){if(x){var A=x[0].trace;A._glTrace.updateOnSelect(x)}},getBelow:function(h,x){for(var A=x.getMapLayers(),E=A.length-2;E>=0;E--){var e=A[E].id;if(typeof e=="string"&&e.indexOf("water")===0){for(var t=E+1;t0?+v[f]:0),c.push({type:"Feature",geometry:{type:"Point",coordinates:w},properties:S})}}var _=E.extractOpts(a),b=_.reversescale?E.flipScale(_.colorscale):_.colorscale,d=b[0][1],u=A.opacity(d)<1?d:A.addOpacity(d,0),g=["interpolate",["linear"],["heatmap-density"],0,u];for(f=1;f=0;r--)e.removeLayer(t[r][1])},E.dispose=function(){var e=this.subplot.map;this._removeLayers(),e.removeSource(this.sourceId)},H.exports=function(t,r){var i=r[0].trace,a=new A(t,i.uid),o=a.sourceId,n=h(r),s=a.below=t.belowLookup["trace-"+i.uid];return t.map.addSource(o,{type:"geojson",data:n.geojson}),a._addLayers(n,s),a}}}),gD=He({"src/traces/densitymap/hover.js"(Y,H){var h=wo(),x=mx().hoverPoints,A=mx().getExtraText;H.exports=function(e,t,r){var i=x(e,t,r);if(i){var a=i[0],o=a.cd,n=o[0].trace,s=o[a.index];if(delete a.color,"z"in s){var c=a.subplot.mockAxis;a.z=s.z,a.zLabel=h.tickText(c,c.c2l(s.z),"hover").text}return a.extraText=A(n,s,o[0].t.labels),[a]}}}}),mD=He({"src/traces/densitymap/event_data.js"(Y,H){H.exports=function(x,A){return x.lon=A.lon,x.lat=A.lat,x.z=A.z,x}}}),yD=He({"src/traces/densitymap/index.js"(Y,H){H.exports={attributes:lA(),supplyDefaults:hD(),colorbar:Zd(),formatLabels:nA(),calc:vD(),plot:pD(),hoverPoints:gD(),eventData:mD(),getBelow:function(h,x){for(var A=x.getMapLayers(),E=0;E0;){l=w[w.length-1];var S=x[l];if(r[l]=0&&a[l].push(i[_])}r[l]=M}else{if(e[l]===E[l]){for(var b=[],d=[],u=0,M=m.length-1;M>=0;--M){var g=m[M];if(t[g]=!1,b.push(g),d.push(a[g]),u+=a[g].length,i[g]=s.length,g===l){m.length=M;break}}s.push(b);for(var y=new Array(u),M=0;M_&&(_=n.source[m]),n.target[m]>_&&(_=n.target[m]);var b=_+1;a.node._count=b;var d,u=a.node.groups,g={};for(m=0;m0&&e(B,b)&&e(O,b)&&!(g.hasOwnProperty(B)&&g.hasOwnProperty(O)&&g[B]===g[O])){g.hasOwnProperty(O)&&(O=g[O]),g.hasOwnProperty(B)&&(B=g[B]),B=+B,O=+O,v[B]=v[O]=!0;var P="";n.label&&n.label[m]&&(P=n.label[m]);var N=null;P&&T.hasOwnProperty(P)&&(N=T[P]),s.push({pointNumber:m,label:P,color:c?n.color[m]:n.color,hovercolor:f?n.hovercolor[m]:n.hovercolor,customdata:p?n.customdata[m]:n.customdata,concentrationscale:N,source:B,target:O,value:+F}),z.source.push(B),z.target.push(O)}}var U=b+u.length,X=E(o.color),te=E(o.customdata),ue=[];for(m=0;mb-1,childrenNodes:[],pointNumber:m,label:ie,color:X?o.color[m]:o.color,customdata:te?o.customdata[m]:o.customdata})}var le=!1;return i(U,z.source,z.target)&&(le=!0),{circular:le,links:s,nodes:ue,groups:u,groupLookup:g}}function i(a,o,n){for(var s=x.init2dArray(a,0),c=0;c1})}H.exports=function(o,n){var s=r(n);return A({circular:s.circular,_nodes:s.nodes,_links:s.links,_groups:s.groups,_groupLookup:s.groupLookup})}}}),wD=He({"node_modules/d3-quadtree/dist/d3-quadtree.js"(Y,H){(function(h,x){typeof Y=="object"&&typeof H<"u"?x(Y):(h=h||self,x(h.d3=h.d3||{}))})(Y,function(h){function x(b){var d=+this._x.call(null,b),u=+this._y.call(null,b);return A(this.cover(d,u),d,u,b)}function A(b,d,u,g){if(isNaN(d)||isNaN(u))return b;var y,R=b._root,I={data:g},z=b._x0,F=b._y0,B=b._x1,O=b._y1,P,N,U,X,te,ue,ie,le;if(!R)return b._root=I,b;for(;R.length;)if((te=d>=(P=(z+B)/2))?z=P:B=P,(ue=u>=(N=(F+O)/2))?F=N:O=N,y=R,!(R=R[ie=ue<<1|te]))return y[ie]=I,b;if(U=+b._x.call(null,R.data),X=+b._y.call(null,R.data),d===U&&u===X)return I.next=R,y?y[ie]=I:b._root=I,b;do y=y?y[ie]=new Array(4):b._root=new Array(4),(te=d>=(P=(z+B)/2))?z=P:B=P,(ue=u>=(N=(F+O)/2))?F=N:O=N;while((ie=ue<<1|te)===(le=(X>=N)<<1|U>=P));return y[le]=R,y[ie]=I,b}function E(b){var d,u,g=b.length,y,R,I=new Array(g),z=new Array(g),F=1/0,B=1/0,O=-1/0,P=-1/0;for(u=0;uO&&(O=y),RP&&(P=R));if(F>O||B>P)return this;for(this.cover(F,B).cover(O,P),u=0;ub||b>=y||g>d||d>=R;)switch(B=(dO||(z=X.y0)>P||(F=X.x1)=ie)<<1|b>=ue)&&(X=N[N.length-1],N[N.length-1]=N[N.length-1-te],N[N.length-1-te]=X)}else{var le=b-+this._x.call(null,U.data),q=d-+this._y.call(null,U.data),J=le*le+q*q;if(J=(N=(I+F)/2))?I=N:F=N,(te=P>=(U=(z+B)/2))?z=U:B=U,d=u,!(u=u[ue=te<<1|X]))return this;if(!u.length)break;(d[ue+1&3]||d[ue+2&3]||d[ue+3&3])&&(g=d,ie=ue)}for(;u.data!==b;)if(y=u,!(u=u.next))return this;return(R=u.next)&&delete u.next,y?(R?y.next=R:delete y.next,this):d?(R?d[ue]=R:delete d[ue],(u=d[0]||d[1]||d[2]||d[3])&&u===(d[3]||d[2]||d[1]||d[0])&&!u.length&&(g?g[ie]=u:this._root=u),this):(this._root=R,this)}function n(b){for(var d=0,u=b.length;d=v.length)return l!=null&&_.sort(l),m!=null?m(_):_;for(var g=-1,y=_.length,R=v[b++],I,z,F=E(),B,O=d();++gv.length)return _;var d,u=T[b-1];return m!=null&&b>=v.length?d=_.entries():(d=[],_.each(function(g,y){d.push({key:y,values:M(g,b)})})),u!=null?d.sort(function(g,y){return u(g.key,y.key)}):d}return w={object:function(_){return S(_,0,t,r)},map:function(_){return S(_,0,i,a)},entries:function(_){return M(S(_,0,i,a),0)},key:function(_){return v.push(_),w},sortKeys:function(_){return T[v.length-1]=_,w},sortValues:function(_){return l=_,w},rollup:function(_){return m=_,w}}}function t(){return{}}function r(v,T,l){v[T]=l}function i(){return E()}function a(v,T,l){v.set(T,l)}function o(){}var n=E.prototype;o.prototype=s.prototype={constructor:o,has:n.has,add:function(v){return v+="",this[x+v]=v,this},remove:n.remove,clear:n.clear,values:n.keys,size:n.size,empty:n.empty,each:n.each};function s(v,T){var l=new o;if(v instanceof o)v.each(function(S){l.add(S)});else if(v){var m=-1,w=v.length;if(T==null)for(;++m=0&&(n=o.slice(s+1),o=o.slice(0,s)),o&&!a.hasOwnProperty(o))throw new Error("unknown type: "+o);return{type:o,name:n}})}E.prototype=A.prototype={constructor:E,on:function(i,a){var o=this._,n=e(i+"",o),s,c=-1,f=n.length;if(arguments.length<2){for(;++c0)for(var o=new Array(s),n=0,s,c;n=0&&b._call.call(null,d),b=b._next;--x}function l(){a=(i=n.now())+o,x=A=0;try{T()}finally{x=0,w(),a=0}}function m(){var b=n.now(),d=b-i;d>e&&(o-=d,i=b)}function w(){for(var b,d=t,u,g=1/0;d;)d._call?(g>d._time&&(g=d._time),b=d,d=d._next):(u=d._next,d._next=null,d=b?b._next=u:t=u);r=b,S(g)}function S(b){if(!x){A&&(A=clearTimeout(A));var d=b-a;d>24?(b<1/0&&(A=setTimeout(l,b-n.now()-o)),E&&(E=clearInterval(E))):(E||(i=n.now(),E=setInterval(m,e)),x=1,s(l))}}function M(b,d,u){var g=new p;return d=d==null?0:+d,g.restart(function(y){g.stop(),b(y+d)},d,u),g}function _(b,d,u){var g=new p,y=d;return d==null?(g.restart(b,d,u),g):(d=+d,u=u==null?c():+u,g.restart(function R(I){I+=y,g.restart(R,y+=d,u),b(I)},d,u),g)}h.interval=_,h.now=c,h.timeout=M,h.timer=v,h.timerFlush=T,Object.defineProperty(h,"__esModule",{value:!0})})}}),SD=He({"node_modules/d3-force/dist/d3-force.js"(Y,H){(function(h,x){typeof Y=="object"&&typeof H<"u"?x(Y,wD(),_x(),TD(),AD()):x(h.d3=h.d3||{},h.d3,h.d3,h.d3,h.d3)})(Y,function(h,x,A,E,e){function t(b,d){var u;b==null&&(b=0),d==null&&(d=0);function g(){var y,R=u.length,I,z=0,F=0;for(y=0;yP.index){var re=N-se.x-se.vx,ae=U-se.y-se.vy,fe=re*re+ae*ae;feN+V||eeU+V||ZF.r&&(F.r=F[B].r)}function z(){if(d){var F,B=d.length,O;for(u=new Array(B),F=0;F1?(te==null?z.remove(X):z.set(X,U(te)),d):z.get(X)},find:function(X,te,ue){var ie=0,le=b.length,q,J,ee,Z,se;for(ue==null?ue=1/0:ue*=ue,ie=0;ie1?(B.on(X,te),d):B.on(X)}}}function w(){var b,d,u,g=r(-30),y,R=1,I=1/0,z=.81;function F(N){var U,X=b.length,te=x.quadtree(b,p,v).visitAfter(O);for(u=N,U=0;U=I)return;(N.data!==d||N.next)&&(ue===0&&(ue=i(),q+=ue*ue),ie===0&&(ie=i(),q+=ie*ie),qE)if(!(Math.abs(l*p-v*T)>E)||!s)this._+="L"+(this._x1=i)+","+(this._y1=a);else{var w=o-c,S=n-f,M=p*p+v*v,_=w*w+S*S,b=Math.sqrt(M),d=Math.sqrt(m),u=s*Math.tan((x-Math.acos((M+m-_)/(2*b*d)))/2),g=u/d,y=u/b;Math.abs(g-1)>E&&(this._+="L"+(i+g*T)+","+(a+g*l)),this._+="A"+s+","+s+",0,0,"+ +(l*w>T*S)+","+(this._x1=i+y*p)+","+(this._y1=a+y*v)}},arc:function(i,a,o,n,s,c){i=+i,a=+a,o=+o,c=!!c;var f=o*Math.cos(n),p=o*Math.sin(n),v=i+f,T=a+p,l=1^c,m=c?n-s:s-n;if(o<0)throw new Error("negative radius: "+o);this._x1===null?this._+="M"+v+","+T:(Math.abs(this._x1-v)>E||Math.abs(this._y1-T)>E)&&(this._+="L"+v+","+T),o&&(m<0&&(m=m%A+A),m>e?this._+="A"+o+","+o+",0,1,"+l+","+(i-f)+","+(a-p)+"A"+o+","+o+",0,1,"+l+","+(this._x1=v)+","+(this._y1=T):m>E&&(this._+="A"+o+","+o+",0,"+ +(m>=x)+","+l+","+(this._x1=i+o*Math.cos(s))+","+(this._y1=a+o*Math.sin(s))))},rect:function(i,a,o,n){this._+="M"+(this._x0=this._x1=+i)+","+(this._y0=this._y1=+a)+"h"+ +o+"v"+ +n+"h"+-o+"Z"},toString:function(){return this._}},h.path=r,Object.defineProperty(h,"__esModule",{value:!0})})}}),fA=He({"node_modules/d3-shape/dist/d3-shape.js"(Y,H){(function(h,x){typeof Y=="object"&&typeof H<"u"?x(Y,MD()):(h=h||self,x(h.d3=h.d3||{},h.d3))})(Y,function(h,x){function A(At){return function(){return At}}var E=Math.abs,e=Math.atan2,t=Math.cos,r=Math.max,i=Math.min,a=Math.sin,o=Math.sqrt,n=1e-12,s=Math.PI,c=s/2,f=2*s;function p(At){return At>1?0:At<-1?s:Math.acos(At)}function v(At){return At>=1?c:At<=-1?-c:Math.asin(At)}function T(At){return At.innerRadius}function l(At){return At.outerRadius}function m(At){return At.startAngle}function w(At){return At.endAngle}function S(At){return At&&At.padAngle}function M(At,or,Ar,oa,ga,Sa,za,ra){var Ta=Ar-At,Fn=oa-or,mn=za-ga,Kn=ra-Sa,ui=Kn*Ta-mn*Fn;if(!(ui*uics*cs+ks*ks&&(Ri=So,xo=bo),{cx:Ri,cy:xo,x01:-mn,y01:-Kn,x11:Ri*(ga/gs-1),y11:xo*(ga/gs-1)}}function b(){var At=T,or=l,Ar=A(0),oa=null,ga=m,Sa=w,za=S,ra=null;function Ta(){var Fn,mn,Kn=+At.apply(this,arguments),ui=+or.apply(this,arguments),pi=ga.apply(this,arguments)-c,vi=Sa.apply(this,arguments)-c,Li=E(vi-pi),Ni=vi>pi;if(ra||(ra=Fn=x.path()),uin))ra.moveTo(0,0);else if(Li>f-n)ra.moveTo(ui*t(pi),ui*a(pi)),ra.arc(0,0,ui,pi,vi,!Ni),Kn>n&&(ra.moveTo(Kn*t(vi),Kn*a(vi)),ra.arc(0,0,Kn,vi,pi,Ni));else{var ci=pi,bi=vi,ho=pi,Bo=vi,gs=Li,ro=Li,Ei=za.apply(this,arguments)/2,Ri=Ei>n&&(oa?+oa.apply(this,arguments):o(Kn*Kn+ui*ui)),xo=i(E(ui-Kn)/2,+Ar.apply(this,arguments)),So=xo,bo=xo,Ui,no;if(Ri>n){var cs=v(Ri/Kn*a(Ei)),ks=v(Ri/ui*a(Ei));(gs-=cs*2)>n?(cs*=Ni?1:-1,ho+=cs,Bo-=cs):(gs=0,ho=Bo=(pi+vi)/2),(ro-=ks*2)>n?(ks*=Ni?1:-1,ci+=ks,bi-=ks):(ro=0,ci=bi=(pi+vi)/2)}var ms=ui*t(ci),Mo=ui*a(ci),kn=Kn*t(Bo),fi=Kn*a(Bo);if(xo>n){var Fs=ui*t(bi),Ss=ui*a(bi),Gi=Kn*t(ho),js=Kn*a(ho),No;if(Lin?bo>n?(Ui=_(Gi,js,ms,Mo,ui,bo,Ni),no=_(Fs,Ss,kn,fi,ui,bo,Ni),ra.moveTo(Ui.cx+Ui.x01,Ui.cy+Ui.y01),bon)||!(gs>n)?ra.lineTo(kn,fi):So>n?(Ui=_(kn,fi,Fs,Ss,Kn,-So,Ni),no=_(ms,Mo,Gi,js,Kn,-So,Ni),ra.lineTo(Ui.cx+Ui.x01,Ui.cy+Ui.y01),So=ui;--pi)ra.point(bi[pi],ho[pi]);ra.lineEnd(),ra.areaEnd()}Ni&&(bi[Kn]=+At(Li,Kn,mn),ho[Kn]=+Ar(Li,Kn,mn),ra.point(or?+or(Li,Kn,mn):bi[Kn],oa?+oa(Li,Kn,mn):ho[Kn]))}if(ci)return ra=null,ci+""||null}function Fn(){return R().defined(ga).curve(za).context(Sa)}return Ta.x=function(mn){return arguments.length?(At=typeof mn=="function"?mn:A(+mn),or=null,Ta):At},Ta.x0=function(mn){return arguments.length?(At=typeof mn=="function"?mn:A(+mn),Ta):At},Ta.x1=function(mn){return arguments.length?(or=mn==null?null:typeof mn=="function"?mn:A(+mn),Ta):or},Ta.y=function(mn){return arguments.length?(Ar=typeof mn=="function"?mn:A(+mn),oa=null,Ta):Ar},Ta.y0=function(mn){return arguments.length?(Ar=typeof mn=="function"?mn:A(+mn),Ta):Ar},Ta.y1=function(mn){return arguments.length?(oa=mn==null?null:typeof mn=="function"?mn:A(+mn),Ta):oa},Ta.lineX0=Ta.lineY0=function(){return Fn().x(At).y(Ar)},Ta.lineY1=function(){return Fn().x(At).y(oa)},Ta.lineX1=function(){return Fn().x(or).y(Ar)},Ta.defined=function(mn){return arguments.length?(ga=typeof mn=="function"?mn:A(!!mn),Ta):ga},Ta.curve=function(mn){return arguments.length?(za=mn,Sa!=null&&(ra=za(Sa)),Ta):za},Ta.context=function(mn){return arguments.length?(mn==null?Sa=ra=null:ra=za(Sa=mn),Ta):Sa},Ta}function z(At,or){return orAt?1:or>=At?0:NaN}function F(At){return At}function B(){var At=F,or=z,Ar=null,oa=A(0),ga=A(f),Sa=A(0);function za(ra){var Ta,Fn=ra.length,mn,Kn,ui=0,pi=new Array(Fn),vi=new Array(Fn),Li=+oa.apply(this,arguments),Ni=Math.min(f,Math.max(-f,ga.apply(this,arguments)-Li)),ci,bi=Math.min(Math.abs(Ni)/Fn,Sa.apply(this,arguments)),ho=bi*(Ni<0?-1:1),Bo;for(Ta=0;Ta0&&(ui+=Bo);for(or!=null?pi.sort(function(gs,ro){return or(vi[gs],vi[ro])}):Ar!=null&&pi.sort(function(gs,ro){return Ar(ra[gs],ra[ro])}),Ta=0,Kn=ui?(Ni-Fn*ho)/ui:0;Ta0?Bo*Kn:0)+ho,vi[mn]={data:ra[mn],index:Ta,value:Bo,startAngle:Li,endAngle:ci,padAngle:bi};return vi}return za.value=function(ra){return arguments.length?(At=typeof ra=="function"?ra:A(+ra),za):At},za.sortValues=function(ra){return arguments.length?(or=ra,Ar=null,za):or},za.sort=function(ra){return arguments.length?(Ar=ra,or=null,za):Ar},za.startAngle=function(ra){return arguments.length?(oa=typeof ra=="function"?ra:A(+ra),za):oa},za.endAngle=function(ra){return arguments.length?(ga=typeof ra=="function"?ra:A(+ra),za):ga},za.padAngle=function(ra){return arguments.length?(Sa=typeof ra=="function"?ra:A(+ra),za):Sa},za}var O=N(u);function P(At){this._curve=At}P.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(At,or){this._curve.point(or*Math.sin(At),or*-Math.cos(At))}};function N(At){function or(Ar){return new P(At(Ar))}return or._curve=At,or}function U(At){var or=At.curve;return At.angle=At.x,delete At.x,At.radius=At.y,delete At.y,At.curve=function(Ar){return arguments.length?or(N(Ar)):or()._curve},At}function X(){return U(R().curve(O))}function te(){var At=I().curve(O),or=At.curve,Ar=At.lineX0,oa=At.lineX1,ga=At.lineY0,Sa=At.lineY1;return At.angle=At.x,delete At.x,At.startAngle=At.x0,delete At.x0,At.endAngle=At.x1,delete At.x1,At.radius=At.y,delete At.y,At.innerRadius=At.y0,delete At.y0,At.outerRadius=At.y1,delete At.y1,At.lineStartAngle=function(){return U(Ar())},delete At.lineX0,At.lineEndAngle=function(){return U(oa())},delete At.lineX1,At.lineInnerRadius=function(){return U(ga())},delete At.lineY0,At.lineOuterRadius=function(){return U(Sa())},delete At.lineY1,At.curve=function(za){return arguments.length?or(N(za)):or()._curve},At}function ue(At,or){return[(or=+or)*Math.cos(At-=Math.PI/2),or*Math.sin(At)]}var ie=Array.prototype.slice;function le(At){return At.source}function q(At){return At.target}function J(At){var or=le,Ar=q,oa=g,ga=y,Sa=null;function za(){var ra,Ta=ie.call(arguments),Fn=or.apply(this,Ta),mn=Ar.apply(this,Ta);if(Sa||(Sa=ra=x.path()),At(Sa,+oa.apply(this,(Ta[0]=Fn,Ta)),+ga.apply(this,Ta),+oa.apply(this,(Ta[0]=mn,Ta)),+ga.apply(this,Ta)),ra)return Sa=null,ra+""||null}return za.source=function(ra){return arguments.length?(or=ra,za):or},za.target=function(ra){return arguments.length?(Ar=ra,za):Ar},za.x=function(ra){return arguments.length?(oa=typeof ra=="function"?ra:A(+ra),za):oa},za.y=function(ra){return arguments.length?(ga=typeof ra=="function"?ra:A(+ra),za):ga},za.context=function(ra){return arguments.length?(Sa=ra??null,za):Sa},za}function ee(At,or,Ar,oa,ga){At.moveTo(or,Ar),At.bezierCurveTo(or=(or+oa)/2,Ar,or,ga,oa,ga)}function Z(At,or,Ar,oa,ga){At.moveTo(or,Ar),At.bezierCurveTo(or,Ar=(Ar+ga)/2,oa,Ar,oa,ga)}function se(At,or,Ar,oa,ga){var Sa=ue(or,Ar),za=ue(or,Ar=(Ar+ga)/2),ra=ue(oa,Ar),Ta=ue(oa,ga);At.moveTo(Sa[0],Sa[1]),At.bezierCurveTo(za[0],za[1],ra[0],ra[1],Ta[0],Ta[1])}function Q(){return J(ee)}function V(){return J(Z)}function re(){var At=J(se);return At.angle=At.x,delete At.x,At.radius=At.y,delete At.y,At}var ae={draw:function(At,or){var Ar=Math.sqrt(or/s);At.moveTo(Ar,0),At.arc(0,0,Ar,0,f)}},fe={draw:function(At,or){var Ar=Math.sqrt(or/5)/2;At.moveTo(-3*Ar,-Ar),At.lineTo(-Ar,-Ar),At.lineTo(-Ar,-3*Ar),At.lineTo(Ar,-3*Ar),At.lineTo(Ar,-Ar),At.lineTo(3*Ar,-Ar),At.lineTo(3*Ar,Ar),At.lineTo(Ar,Ar),At.lineTo(Ar,3*Ar),At.lineTo(-Ar,3*Ar),At.lineTo(-Ar,Ar),At.lineTo(-3*Ar,Ar),At.closePath()}},xe=Math.sqrt(1/3),Ae=xe*2,Pe={draw:function(At,or){var Ar=Math.sqrt(or/Ae),oa=Ar*xe;At.moveTo(0,-Ar),At.lineTo(oa,0),At.lineTo(0,Ar),At.lineTo(-oa,0),At.closePath()}},Ce=.8908130915292852,je=Math.sin(s/10)/Math.sin(7*s/10),at=Math.sin(f/10)*je,tt=-Math.cos(f/10)*je,Je={draw:function(At,or){var Ar=Math.sqrt(or*Ce),oa=at*Ar,ga=tt*Ar;At.moveTo(0,-Ar),At.lineTo(oa,ga);for(var Sa=1;Sa<5;++Sa){var za=f*Sa/5,ra=Math.cos(za),Ta=Math.sin(za);At.lineTo(Ta*Ar,-ra*Ar),At.lineTo(ra*oa-Ta*ga,Ta*oa+ra*ga)}At.closePath()}},Ze={draw:function(At,or){var Ar=Math.sqrt(or),oa=-Ar/2;At.rect(oa,oa,Ar,Ar)}},Me=Math.sqrt(3),we={draw:function(At,or){var Ar=-Math.sqrt(or/(Me*3));At.moveTo(0,Ar*2),At.lineTo(-Me*Ar,-Ar),At.lineTo(Me*Ar,-Ar),At.closePath()}},he=-.5,De=Math.sqrt(3)/2,et=1/Math.sqrt(12),nt=(et/2+1)*3,Ke={draw:function(At,or){var Ar=Math.sqrt(or/nt),oa=Ar/2,ga=Ar*et,Sa=oa,za=Ar*et+Ar,ra=-Sa,Ta=za;At.moveTo(oa,ga),At.lineTo(Sa,za),At.lineTo(ra,Ta),At.lineTo(he*oa-De*ga,De*oa+he*ga),At.lineTo(he*Sa-De*za,De*Sa+he*za),At.lineTo(he*ra-De*Ta,De*ra+he*Ta),At.lineTo(he*oa+De*ga,he*ga-De*oa),At.lineTo(he*Sa+De*za,he*za-De*Sa),At.lineTo(he*ra+De*Ta,he*Ta-De*ra),At.closePath()}},Et=[ae,fe,Pe,Ze,Je,we,Ke];function kt(){var At=A(ae),or=A(64),Ar=null;function oa(){var ga;if(Ar||(Ar=ga=x.path()),At.apply(this,arguments).draw(Ar,+or.apply(this,arguments)),ga)return Ar=null,ga+""||null}return oa.type=function(ga){return arguments.length?(At=typeof ga=="function"?ga:A(ga),oa):At},oa.size=function(ga){return arguments.length?(or=typeof ga=="function"?ga:A(+ga),oa):or},oa.context=function(ga){return arguments.length?(Ar=ga??null,oa):Ar},oa}function Ut(){}function Yt(At,or,Ar){At._context.bezierCurveTo((2*At._x0+At._x1)/3,(2*At._y0+At._y1)/3,(At._x0+2*At._x1)/3,(At._y0+2*At._y1)/3,(At._x0+4*At._x1+or)/6,(At._y0+4*At._y1+Ar)/6)}function vr(At){this._context=At}vr.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:Yt(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(At,or){switch(At=+At,or=+or,this._point){case 0:this._point=1,this._line?this._context.lineTo(At,or):this._context.moveTo(At,or);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:Yt(this,At,or);break}this._x0=this._x1,this._x1=At,this._y0=this._y1,this._y1=or}};function hr(At){return new vr(At)}function Rr(At){this._context=At}Rr.prototype={areaStart:Ut,areaEnd:Ut,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(At,or){switch(At=+At,or=+or,this._point){case 0:this._point=1,this._x2=At,this._y2=or;break;case 1:this._point=2,this._x3=At,this._y3=or;break;case 2:this._point=3,this._x4=At,this._y4=or,this._context.moveTo((this._x0+4*this._x1+At)/6,(this._y0+4*this._y1+or)/6);break;default:Yt(this,At,or);break}this._x0=this._x1,this._x1=At,this._y0=this._y1,this._y1=or}};function dr(At){return new Rr(At)}function wr(At){this._context=At}wr.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(At,or){switch(At=+At,or=+or,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var Ar=(this._x0+4*this._x1+At)/6,oa=(this._y0+4*this._y1+or)/6;this._line?this._context.lineTo(Ar,oa):this._context.moveTo(Ar,oa);break;case 3:this._point=4;default:Yt(this,At,or);break}this._x0=this._x1,this._x1=At,this._y0=this._y1,this._y1=or}};function yt(At){return new wr(At)}function Fe(At,or){this._basis=new vr(At),this._beta=or}Fe.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var At=this._x,or=this._y,Ar=At.length-1;if(Ar>0)for(var oa=At[0],ga=or[0],Sa=At[Ar]-oa,za=or[Ar]-ga,ra=-1,Ta;++ra<=Ar;)Ta=ra/Ar,this._basis.point(this._beta*At[ra]+(1-this._beta)*(oa+Ta*Sa),this._beta*or[ra]+(1-this._beta)*(ga+Ta*za));this._x=this._y=null,this._basis.lineEnd()},point:function(At,or){this._x.push(+At),this._y.push(+or)}};var We=function At(or){function Ar(oa){return or===1?new vr(oa):new Fe(oa,or)}return Ar.beta=function(oa){return At(+oa)},Ar}(.85);function Oe(At,or,Ar){At._context.bezierCurveTo(At._x1+At._k*(At._x2-At._x0),At._y1+At._k*(At._y2-At._y0),At._x2+At._k*(At._x1-or),At._y2+At._k*(At._y1-Ar),At._x2,At._y2)}function de(At,or){this._context=At,this._k=(1-or)/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: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(At,or){switch(At=+At,or=+or,this._point){case 0:this._point=1,this._line?this._context.lineTo(At,or):this._context.moveTo(At,or);break;case 1:this._point=2,this._x1=At,this._y1=or;break;case 2:this._point=3;default:Oe(this,At,or);break}this._x0=this._x1,this._x1=this._x2,this._x2=At,this._y0=this._y1,this._y1=this._y2,this._y2=or}};var me=function At(or){function Ar(oa){return new de(oa,or)}return Ar.tension=function(oa){return At(+oa)},Ar}(0);function be(At,or){this._context=At,this._k=(1-or)/6}be.prototype={areaStart:Ut,areaEnd:Ut,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(At,or){switch(At=+At,or=+or,this._point){case 0:this._point=1,this._x3=At,this._y3=or;break;case 1:this._point=2,this._context.moveTo(this._x4=At,this._y4=or);break;case 2:this._point=3,this._x5=At,this._y5=or;break;default:Oe(this,At,or);break}this._x0=this._x1,this._x1=this._x2,this._x2=At,this._y0=this._y1,this._y1=this._y2,this._y2=or}};var Ie=function At(or){function Ar(oa){return new be(oa,or)}return Ar.tension=function(oa){return At(+oa)},Ar}(0);function Xe(At,or){this._context=At,this._k=(1-or)/6}Xe.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(At,or){switch(At=+At,or=+or,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,At,or);break}this._x0=this._x1,this._x1=this._x2,this._x2=At,this._y0=this._y1,this._y1=this._y2,this._y2=or}};var ht=function At(or){function Ar(oa){return new Xe(oa,or)}return Ar.tension=function(oa){return At(+oa)},Ar}(0);function bt(At,or,Ar){var oa=At._x1,ga=At._y1,Sa=At._x2,za=At._y2;if(At._l01_a>n){var ra=2*At._l01_2a+3*At._l01_a*At._l12_a+At._l12_2a,Ta=3*At._l01_a*(At._l01_a+At._l12_a);oa=(oa*ra-At._x0*At._l12_2a+At._x2*At._l01_2a)/Ta,ga=(ga*ra-At._y0*At._l12_2a+At._y2*At._l01_2a)/Ta}if(At._l23_a>n){var Fn=2*At._l23_2a+3*At._l23_a*At._l12_a+At._l12_2a,mn=3*At._l23_a*(At._l23_a+At._l12_a);Sa=(Sa*Fn+At._x1*At._l23_2a-or*At._l12_2a)/mn,za=(za*Fn+At._y1*At._l23_2a-Ar*At._l12_2a)/mn}At._context.bezierCurveTo(oa,ga,Sa,za,At._x2,At._y2)}function Ct(At,or){this._context=At,this._alpha=or}Ct.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(At,or){if(At=+At,or=+or,this._point){var Ar=this._x2-At,oa=this._y2-or;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(Ar*Ar+oa*oa,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(At,or):this._context.moveTo(At,or);break;case 1:this._point=2;break;case 2:this._point=3;default:bt(this,At,or);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=At,this._y0=this._y1,this._y1=this._y2,this._y2=or}};var Zt=function At(or){function Ar(oa){return or?new Ct(oa,or):new de(oa,0)}return Ar.alpha=function(oa){return At(+oa)},Ar}(.5);function Wt(At,or){this._context=At,this._alpha=or}Wt.prototype={areaStart:Ut,areaEnd:Ut,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(At,or){if(At=+At,or=+or,this._point){var Ar=this._x2-At,oa=this._y2-or;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(Ar*Ar+oa*oa,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=At,this._y3=or;break;case 1:this._point=2,this._context.moveTo(this._x4=At,this._y4=or);break;case 2:this._point=3,this._x5=At,this._y5=or;break;default:bt(this,At,or);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=At,this._y0=this._y1,this._y1=this._y2,this._y2=or}};var rr=function At(or){function Ar(oa){return or?new Wt(oa,or):new be(oa,0)}return Ar.alpha=function(oa){return At(+oa)},Ar}(.5);function Jt(At,or){this._context=At,this._alpha=or}Jt.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(At,or){if(At=+At,or=+or,this._point){var Ar=this._x2-At,oa=this._y2-or;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(Ar*Ar+oa*oa,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:bt(this,At,or);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=At,this._y0=this._y1,this._y1=this._y2,this._y2=or}};var mr=function At(or){function Ar(oa){return or?new Jt(oa,or):new Xe(oa,0)}return Ar.alpha=function(oa){return At(+oa)},Ar}(.5);function ia(At){this._context=At}ia.prototype={areaStart:Ut,areaEnd:Ut,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(At,or){At=+At,or=+or,this._point?this._context.lineTo(At,or):(this._point=1,this._context.moveTo(At,or))}};function Ia(At){return new ia(At)}function La(At){return At<0?-1:1}function Aa(At,or,Ar){var oa=At._x1-At._x0,ga=or-At._x1,Sa=(At._y1-At._y0)/(oa||ga<0&&-0),za=(Ar-At._y1)/(ga||oa<0&&-0),ra=(Sa*ga+za*oa)/(oa+ga);return(La(Sa)+La(za))*Math.min(Math.abs(Sa),Math.abs(za),.5*Math.abs(ra))||0}function Ga(At,or){var Ar=At._x1-At._x0;return Ar?(3*(At._y1-At._y0)/Ar-or)/2:or}function ba(At,or,Ar){var oa=At._x0,ga=At._y0,Sa=At._x1,za=At._y1,ra=(Sa-oa)/3;At._context.bezierCurveTo(oa+ra,ga+ra*or,Sa-ra,za-ra*Ar,Sa,za)}function Xa(At){this._context=At}Xa.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:ba(this,this._t0,Ga(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(At,or){var Ar=NaN;if(At=+At,or=+or,!(At===this._x1&&or===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(At,or):this._context.moveTo(At,or);break;case 1:this._point=2;break;case 2:this._point=3,ba(this,Ga(this,Ar=Aa(this,At,or)),Ar);break;default:ba(this,this._t0,Ar=Aa(this,At,or));break}this._x0=this._x1,this._x1=At,this._y0=this._y1,this._y1=or,this._t0=Ar}}};function yn(At){this._context=new Kt(At)}(yn.prototype=Object.create(Xa.prototype)).point=function(At,or){Xa.prototype.point.call(this,or,At)};function Kt(At){this._context=At}Kt.prototype={moveTo:function(At,or){this._context.moveTo(or,At)},closePath:function(){this._context.closePath()},lineTo:function(At,or){this._context.lineTo(or,At)},bezierCurveTo:function(At,or,Ar,oa,ga,Sa){this._context.bezierCurveTo(or,At,oa,Ar,Sa,ga)}};function zt(At){return new Xa(At)}function $t(At){return new yn(At)}function Ht(At){this._context=At}Ht.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var At=this._x,or=this._y,Ar=At.length;if(Ar)if(this._line?this._context.lineTo(At[0],or[0]):this._context.moveTo(At[0],or[0]),Ar===2)this._context.lineTo(At[1],or[1]);else for(var oa=Tr(At),ga=Tr(or),Sa=0,za=1;za=0;--or)ga[or]=(za[or]-ga[or+1])/Sa[or];for(Sa[Ar-1]=(At[Ar]+ga[Ar-1])/2,or=0;or=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(At,or){switch(At=+At,or=+or,this._point){case 0:this._point=1,this._line?this._context.lineTo(At,or):this._context.moveTo(At,or);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,or),this._context.lineTo(At,or);else{var Ar=this._x*(1-this._t)+At*this._t;this._context.lineTo(Ar,this._y),this._context.lineTo(Ar,or)}break}}this._x=At,this._y=or}};function Gr(At){return new ha(At,.5)}function wa(At){return new ha(At,0)}function Da(At){return new ha(At,1)}function Ya(At,or){if((za=At.length)>1)for(var Ar=1,oa,ga,Sa=At[or[0]],za,ra=Sa.length;Ar=0;)Ar[or]=or;return Ar}function an(At,or){return At[or]}function mt(){var At=A([]),or=Ka,Ar=Ya,oa=an;function ga(Sa){var za=At.apply(this,arguments),ra,Ta=Sa.length,Fn=za.length,mn=new Array(Fn),Kn;for(ra=0;ra0){for(var Ar,oa,ga=0,Sa=At[0].length,za;ga0)for(var Ar,oa=0,ga,Sa,za,ra,Ta,Fn=At[or[0]].length;oa0?(ga[0]=za,ga[1]=za+=Sa):Sa<0?(ga[1]=ra,ga[0]=ra+=Sa):(ga[0]=0,ga[1]=Sa)}function Er(At,or){if((ga=At.length)>0){for(var Ar=0,oa=At[or[0]],ga,Sa=oa.length;Ar0)||!((Sa=(ga=At[or[0]]).length)>0))){for(var Ar=0,oa=1,ga,Sa,za;oaSa&&(Sa=ga,Ar=or);return Ar}function jr(At){var or=At.map(Dr);return Ka(At).sort(function(Ar,oa){return or[Ar]-or[oa]})}function Dr(At){for(var or=0,Ar=-1,oa=At.length,ga;++Ar0;--se)re(Z*=.99),ae(),V(Z),ae();function Q(){var fe=x.max(ee,function(Pe){return Pe.length}),xe=U*(R-g)/(fe-1);z>xe&&(z=xe);var Ae=x.min(ee,function(Pe){return(R-g-(Pe.length-1)*z)/x.sum(Pe,f)});ee.forEach(function(Pe){Pe.forEach(function(Ce,je){Ce.y1=(Ce.y0=je)+Ce.value*Ae})}),J.links.forEach(function(Pe){Pe.width=Pe.value*Ae})}function V(fe){ee.forEach(function(xe){xe.forEach(function(Ae){if(Ae.targetLinks.length){var Pe=(x.sum(Ae.targetLinks,v)/x.sum(Ae.targetLinks,f)-p(Ae))*fe;Ae.y0+=Pe,Ae.y1+=Pe}})})}function re(fe){ee.slice().reverse().forEach(function(xe){xe.forEach(function(Ae){if(Ae.sourceLinks.length){var Pe=(x.sum(Ae.sourceLinks,T)/x.sum(Ae.sourceLinks,f)-p(Ae))*fe;Ae.y0+=Pe,Ae.y1+=Pe}})})}function ae(){ee.forEach(function(fe){var xe,Ae,Pe=g,Ce=fe.length,je;for(fe.sort(c),je=0;je0&&(xe.y0+=Ae,xe.y1+=Ae),Pe=xe.y1+z;if(Ae=Pe-z-R,Ae>0)for(Pe=xe.y0-=Ae,xe.y1-=Ae,je=Ce-2;je>=0;--je)xe=fe[je],Ae=xe.y1+z-Pe,Ae>0&&(xe.y0-=Ae,xe.y1-=Ae),Pe=xe.y0})}}function q(J){J.nodes.forEach(function(ee){ee.sourceLinks.sort(s),ee.targetLinks.sort(n)}),J.nodes.forEach(function(ee){var Z=ee.y0,se=Z;ee.sourceLinks.forEach(function(Q){Q.y0=Z+Q.width/2,Z+=Q.width}),ee.targetLinks.forEach(function(Q){Q.y1=se+Q.width/2,se+=Q.width})})}return X};function _(u){return[u.source.x1,u.y0]}function b(u){return[u.target.x0,u.y1]}var d=function(){return E.linkHorizontal().source(_).target(b)};h.sankey=M,h.sankeyCenter=a,h.sankeyLeft=t,h.sankeyRight=r,h.sankeyJustify=i,h.sankeyLinkHorizontal=d,Object.defineProperty(h,"__esModule",{value:!0})})}}),kD=He({"node_modules/elementary-circuits-directed-graph/johnson.js"(Y,H){var h=cA();H.exports=function(A,E){var e=[],t=[],r=[],i={},a=[],o;function n(S){r[S]=!1,i.hasOwnProperty(S)&&Object.keys(i[S]).forEach(function(M){delete i[S][M],r[M]&&n(M)})}function s(S){var M=!1;t.push(S),r[S]=!0;var _,b;for(_=0;_=S})}function p(S){f(S);for(var M=A,_=h(M),b=_.components.filter(function(z){return z.length>1}),d=1/0,u,g=0;g"u"?"undefined":s(de))!=="object"&&(de=We.source=_(Fe,de)),(typeof me>"u"?"undefined":s(me))!=="object"&&(me=We.target=_(Fe,me)),de.sourceLinks.push(We),me.targetLinks.push(We)}),yt}function Yt(yt){yt.nodes.forEach(function(Fe){Fe.partOfCycle=!1,Fe.value=Math.max(x.sum(Fe.sourceLinks,v),x.sum(Fe.targetLinks,v)),Fe.sourceLinks.forEach(function(We){We.circular&&(Fe.partOfCycle=!0,Fe.circularLinkType=We.circularLinkType)}),Fe.targetLinks.forEach(function(We){We.circular&&(Fe.partOfCycle=!0,Fe.circularLinkType=We.circularLinkType)})})}function vr(yt){var Fe=0,We=0,Oe=0,de=0,me=x.max(yt.nodes,function(be){return be.column});return yt.links.forEach(function(be){be.circular&&(be.circularLinkType=="top"?Fe=Fe+be.width:We=We+be.width,be.target.column==0&&(de=de+be.width),be.source.column==me&&(Oe=Oe+be.width))}),Fe=Fe>0?Fe+d+u:Fe,We=We>0?We+d+u:We,Oe=Oe>0?Oe+d+u:Oe,de=de>0?de+d+u:de,{top:Fe,bottom:We,left:de,right:Oe}}function hr(yt,Fe){var We=x.max(yt.nodes,function(ht){return ht.column}),Oe=at-Ce,de=tt-je,me=Oe+Fe.right+Fe.left,be=de+Fe.top+Fe.bottom,Ie=Oe/me,Xe=de/be;return Ce=Ce*Ie+Fe.left,at=Fe.right==0?at:at*Ie,je=je*Xe+Fe.top,tt=tt*Xe,yt.nodes.forEach(function(ht){ht.x0=Ce+ht.column*((at-Ce-Je)/We),ht.x1=ht.x0+Je}),Xe}function Rr(yt){var Fe,We,Oe;for(Fe=yt.nodes,We=[],Oe=0;Fe.length;++Oe,Fe=We,We=[])Fe.forEach(function(de){de.depth=Oe,de.sourceLinks.forEach(function(me){We.indexOf(me.target)<0&&!me.circular&&We.push(me.target)})});for(Fe=yt.nodes,We=[],Oe=0;Fe.length;++Oe,Fe=We,We=[])Fe.forEach(function(de){de.height=Oe,de.targetLinks.forEach(function(me){We.indexOf(me.source)<0&&!me.circular&&We.push(me.source)})});yt.nodes.forEach(function(de){de.column=Math.floor(we.call(null,de,Oe))})}function dr(yt,Fe,We){var Oe=A.nest().key(function(ht){return ht.column}).sortKeys(x.ascending).entries(yt.nodes).map(function(ht){return ht.values});be(We),Xe();for(var de=1,me=Fe;me>0;--me)Ie(de*=.99,We),Xe();function be(ht){if(Ke){var bt=1/0;Oe.forEach(function(rr){var Jt=tt*Ke/(rr.length+1);bt=Jt0))if(rr==0&&Wt==1)mr=Jt.y1-Jt.y0,Jt.y0=tt/2-mr/2,Jt.y1=tt/2+mr/2;else if(rr==Ct-1&&Wt==1)mr=Jt.y1-Jt.y0,Jt.y0=tt/2-mr/2,Jt.y1=tt/2+mr/2;else{var ia=0,Ia=x.mean(Jt.sourceLinks,m),La=x.mean(Jt.targetLinks,l);Ia&&La?ia=(Ia+La)/2:ia=Ia||La;var Aa=(ia-T(Jt))*ht;Jt.y0+=Aa,Jt.y1+=Aa}})})}function Xe(){Oe.forEach(function(ht){var bt,Ct,Zt=je,Wt=ht.length,rr;for(ht.sort(p),rr=0;rr0&&(bt.y0+=Ct,bt.y1+=Ct),Zt=bt.y1+Ze;if(Ct=Zt-Ze-tt,Ct>0)for(Zt=bt.y0-=Ct,bt.y1-=Ct,rr=Wt-2;rr>=0;--rr)bt=ht[rr],Ct=bt.y1+Ze-Zt,Ct>0&&(bt.y0-=Ct,bt.y1-=Ct),Zt=bt.y0})}}function wr(yt){yt.nodes.forEach(function(Fe){Fe.sourceLinks.sort(f),Fe.targetLinks.sort(c)}),yt.nodes.forEach(function(Fe){var We=Fe.y0,Oe=We,de=Fe.y1,me=de;Fe.sourceLinks.forEach(function(be){be.circular?(be.y0=de-be.width/2,de=de-be.width):(be.y0=We+be.width/2,We+=be.width)}),Fe.targetLinks.forEach(function(be){be.circular?(be.y1=me-be.width/2,me=me-be.width):(be.y1=Oe+be.width/2,Oe+=be.width)})})}return kt}function R(Ce,je,at){var tt=0;if(at===null){for(var Je=[],Ze=0;Zeje.source.column)}function B(Ce,je){var at=0;Ce.sourceLinks.forEach(function(Je){at=Je.circular&&!Ae(Je,je)?at+1:at});var tt=0;return Ce.targetLinks.forEach(function(Je){tt=Je.circular&&!Ae(Je,je)?tt+1:tt}),at+tt}function O(Ce){var je=Ce.source.sourceLinks,at=0;je.forEach(function(Ze){at=Ze.circular?at+1:at});var tt=Ce.target.targetLinks,Je=0;return tt.forEach(function(Ze){Je=Ze.circular?Je+1:Je}),!(at>1||Je>1)}function P(Ce,je,at){return Ce.sort(X),Ce.forEach(function(tt,Je){var Ze=0;if(Ae(tt,at)&&O(tt))tt.circularPathData.verticalBuffer=Ze+tt.width/2;else{var Me=0;for(Me;MeZe?we:Ze}tt.circularPathData.verticalBuffer=Ze+tt.width/2}}),Ce}function N(Ce,je,at,tt){var Je=5,Ze=x.min(Ce.links,function(he){return he.source.y0});Ce.links.forEach(function(he){he.circular&&(he.circularPathData={})});var Me=Ce.links.filter(function(he){return he.circularLinkType=="top"});P(Me,je,tt);var we=Ce.links.filter(function(he){return he.circularLinkType=="bottom"});P(we,je,tt),Ce.links.forEach(function(he){if(he.circular){if(he.circularPathData.arcRadius=he.width+u,he.circularPathData.leftNodeBuffer=Je,he.circularPathData.rightNodeBuffer=Je,he.circularPathData.sourceWidth=he.source.x1-he.source.x0,he.circularPathData.sourceX=he.source.x0+he.circularPathData.sourceWidth,he.circularPathData.targetX=he.target.x0,he.circularPathData.sourceY=he.y0,he.circularPathData.targetY=he.y1,Ae(he,tt)&&O(he))he.circularPathData.leftSmallArcRadius=u+he.width/2,he.circularPathData.leftLargeArcRadius=u+he.width/2,he.circularPathData.rightSmallArcRadius=u+he.width/2,he.circularPathData.rightLargeArcRadius=u+he.width/2,he.circularLinkType=="bottom"?(he.circularPathData.verticalFullExtent=he.source.y1+d+he.circularPathData.verticalBuffer,he.circularPathData.verticalLeftInnerExtent=he.circularPathData.verticalFullExtent-he.circularPathData.leftLargeArcRadius,he.circularPathData.verticalRightInnerExtent=he.circularPathData.verticalFullExtent-he.circularPathData.rightLargeArcRadius):(he.circularPathData.verticalFullExtent=he.source.y0-d-he.circularPathData.verticalBuffer,he.circularPathData.verticalLeftInnerExtent=he.circularPathData.verticalFullExtent+he.circularPathData.leftLargeArcRadius,he.circularPathData.verticalRightInnerExtent=he.circularPathData.verticalFullExtent+he.circularPathData.rightLargeArcRadius);else{var De=he.source.column,et=he.circularLinkType,nt=Ce.links.filter(function(kt){return kt.source.column==De&&kt.circularLinkType==et});he.circularLinkType=="bottom"?nt.sort(ue):nt.sort(te);var Ke=0;nt.forEach(function(kt,Ut){kt.circularLinkID==he.circularLinkID&&(he.circularPathData.leftSmallArcRadius=u+he.width/2+Ke,he.circularPathData.leftLargeArcRadius=u+he.width/2+Ut*je+Ke),Ke=Ke+kt.width}),De=he.target.column,nt=Ce.links.filter(function(kt){return kt.target.column==De&&kt.circularLinkType==et}),he.circularLinkType=="bottom"?nt.sort(le):nt.sort(ie),Ke=0,nt.forEach(function(kt,Ut){kt.circularLinkID==he.circularLinkID&&(he.circularPathData.rightSmallArcRadius=u+he.width/2+Ke,he.circularPathData.rightLargeArcRadius=u+he.width/2+Ut*je+Ke),Ke=Ke+kt.width}),he.circularLinkType=="bottom"?(he.circularPathData.verticalFullExtent=Math.max(at,he.source.y1,he.target.y1)+d+he.circularPathData.verticalBuffer,he.circularPathData.verticalLeftInnerExtent=he.circularPathData.verticalFullExtent-he.circularPathData.leftLargeArcRadius,he.circularPathData.verticalRightInnerExtent=he.circularPathData.verticalFullExtent-he.circularPathData.rightLargeArcRadius):(he.circularPathData.verticalFullExtent=Ze-d-he.circularPathData.verticalBuffer,he.circularPathData.verticalLeftInnerExtent=he.circularPathData.verticalFullExtent+he.circularPathData.leftLargeArcRadius,he.circularPathData.verticalRightInnerExtent=he.circularPathData.verticalFullExtent+he.circularPathData.rightLargeArcRadius)}he.circularPathData.leftInnerExtent=he.circularPathData.sourceX+he.circularPathData.leftNodeBuffer,he.circularPathData.rightInnerExtent=he.circularPathData.targetX-he.circularPathData.rightNodeBuffer,he.circularPathData.leftFullExtent=he.circularPathData.sourceX+he.circularPathData.leftLargeArcRadius+he.circularPathData.leftNodeBuffer,he.circularPathData.rightFullExtent=he.circularPathData.targetX-he.circularPathData.rightLargeArcRadius-he.circularPathData.rightNodeBuffer}if(he.circular)he.path=U(he);else{var Et=E.linkHorizontal().source(function(kt){var Ut=kt.source.x0+(kt.source.x1-kt.source.x0),Yt=kt.y0;return[Ut,Yt]}).target(function(kt){var Ut=kt.target.x0,Yt=kt.y1;return[Ut,Yt]});he.path=Et(he)}})}function U(Ce){var je="";return Ce.circularLinkType=="top"?je="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:je="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,je}function X(Ce,je){return q(Ce)==q(je)?Ce.circularLinkType=="bottom"?ue(Ce,je):te(Ce,je):q(je)-q(Ce)}function te(Ce,je){return Ce.y0-je.y0}function ue(Ce,je){return je.y0-Ce.y0}function ie(Ce,je){return Ce.y1-je.y1}function le(Ce,je){return je.y1-Ce.y1}function q(Ce){return Ce.target.column-Ce.source.column}function J(Ce){return Ce.target.x0-Ce.source.x1}function ee(Ce,je){var at=z(Ce),tt=J(je)/Math.tan(at),Je=xe(Ce)=="up"?Ce.y1+tt:Ce.y1-tt;return Je}function Z(Ce,je){var at=z(Ce),tt=J(je)/Math.tan(at),Je=xe(Ce)=="up"?Ce.y1-tt:Ce.y1+tt;return Je}function se(Ce,je,at,tt){Ce.links.forEach(function(Je){if(!Je.circular&&Je.target.column-Je.source.column>1){var Ze=Je.source.column+1,Me=Je.target.column-1,we=1,he=Me-Ze+1;for(we=1;Ze<=Me;Ze++,we++)Ce.nodes.forEach(function(De){if(De.column==Ze){var et=we/(he+1),nt=Math.pow(1-et,3),Ke=3*et*Math.pow(1-et,2),Et=3*Math.pow(et,2)*(1-et),kt=Math.pow(et,3),Ut=nt*Je.y0+Ke*Je.y0+Et*Je.y1+kt*Je.y1,Yt=Ut-Je.width/2,vr=Ut+Je.width/2,hr;Yt>De.y0&&YtDe.y0&&vrDe.y1&&V(Rr,hr,je,at)})):YtDe.y1&&(hr=vr-De.y0+10,De=V(De,hr,je,at),Ce.nodes.forEach(function(Rr){b(Rr,tt)==b(De,tt)||Rr.column!=De.column||Rr.y0De.y1&&V(Rr,hr,je,at)}))}})}})}function Q(Ce,je){return Ce.y0>je.y0&&Ce.y0je.y0&&Ce.y1je.y1}function V(Ce,je,at,tt){return Ce.y0+je>=at&&Ce.y1+je<=tt&&(Ce.y0=Ce.y0+je,Ce.y1=Ce.y1+je,Ce.targetLinks.forEach(function(Je){Je.y1=Je.y1+je}),Ce.sourceLinks.forEach(function(Je){Je.y0=Je.y0+je})),Ce}function re(Ce,je,at,tt){Ce.nodes.forEach(function(Je){tt&&Je.y+(Je.y1-Je.y0)>je&&(Je.y=Je.y-(Je.y+(Je.y1-Je.y0)-je));var Ze=Ce.links.filter(function(he){return b(he.source,at)==b(Je,at)}),Me=Ze.length;Me>1&&Ze.sort(function(he,De){if(!he.circular&&!De.circular){if(he.target.column==De.target.column)return he.y1-De.y1;if(fe(he,De)){if(he.target.column>De.target.column){var et=Z(De,he);return he.y1-et}if(De.target.column>he.target.column){var nt=Z(he,De);return nt-De.y1}}else return he.y1-De.y1}if(he.circular&&!De.circular)return he.circularLinkType=="top"?-1:1;if(De.circular&&!he.circular)return De.circularLinkType=="top"?1:-1;if(he.circular&&De.circular)return he.circularLinkType===De.circularLinkType&&he.circularLinkType=="top"?he.target.column===De.target.column?he.target.y1-De.target.y1:De.target.column-he.target.column:he.circularLinkType===De.circularLinkType&&he.circularLinkType=="bottom"?he.target.column===De.target.column?De.target.y1-he.target.y1:he.target.column-De.target.column:he.circularLinkType=="top"?-1:1});var we=Je.y0;Ze.forEach(function(he){he.y0=we+he.width/2,we=we+he.width}),Ze.forEach(function(he,De){if(he.circularLinkType=="bottom"){var et=De+1,nt=0;for(et;et1&&Je.sort(function(we,he){if(!we.circular&&!he.circular){if(we.source.column==he.source.column)return we.y0-he.y0;if(fe(we,he)){if(he.source.column0?"up":"down"}function Ae(Ce,je){return b(Ce.source,je)==b(Ce.target,je)}function Pe(Ce,je,at){var tt=Ce.nodes,Je=Ce.links,Ze=!1,Me=!1;if(Je.forEach(function(Ke){Ke.circularLinkType=="top"?Ze=!0:Ke.circularLinkType=="bottom"&&(Me=!0)}),Ze==!1||Me==!1){var we=x.min(tt,function(Ke){return Ke.y0}),he=x.max(tt,function(Ke){return Ke.y1}),De=he-we,et=at-je,nt=et/De;tt.forEach(function(Ke){var Et=(Ke.y1-Ke.y0)*nt;Ke.y0=(Ke.y0-we)*nt,Ke.y1=Ke.y0+Et}),Je.forEach(function(Ke){Ke.y0=(Ke.y0-we)*nt,Ke.y1=(Ke.y1-we)*nt,Ke.width=Ke.width*nt})}}h.sankeyCircular=y,h.sankeyCenter=o,h.sankeyLeft=r,h.sankeyRight=i,h.sankeyJustify=a,Object.defineProperty(h,"__esModule",{value:!0})})}}),hA=He({"src/traces/sankey/constants.js"(Y,H){H.exports={nodeTextOffsetHorizontal:4,nodeTextOffsetVertical:3,nodePadAcross:10,sankeyIterations:50,forceIterations:5,forceTicksPerFrame:10,duration:500,ease:"linear",cn:{sankey:"sankey",sankeyLinks:"sankey-links",sankeyLink:"sankey-link",sankeyNodeSet:"sankey-node-set",sankeyNode:"sankey-node",nodeRect:"node-rect",nodeLabel:"node-label"}}}}),LD=He({"src/traces/sankey/render.js"(Y,H){var h=SD(),x=(Hp(),Bv(rp)).interpolateNumber,A=yi(),E=ED(),e=CD(),t=hA(),r=Uf(),i=zi(),a=Io(),o=Qr(),n=o.strTranslate,s=o.strRotate,c=Hv(),f=c.keyFun,p=c.repeat,v=c.unwrap,T=jl(),l=qi(),m=Pf(),w=m.CAP_SHIFT,S=m.LINE_SPACING,M=3;function _(ee,Z,se){var Q=v(Z),V=Q.trace,re=V.domain,ae=V.orientation==="h",fe=V.node.pad,xe=V.node.thickness,Ae={justify:E.sankeyJustify,left:E.sankeyLeft,right:E.sankeyRight,center:E.sankeyCenter}[V.node.align],Pe=ee.width*(re.x[1]-re.x[0]),Ce=ee.height*(re.y[1]-re.y[0]),je=Q._nodes,at=Q._links,tt=Q.circular,Je;tt?Je=e.sankeyCircular().circularLinkGap(0):Je=E.sankey(),Je.iterations(t.sankeyIterations).size(ae?[Pe,Ce]:[Ce,Pe]).nodeWidth(xe).nodePadding(fe).nodeId(function(Rr){return Rr.pointNumber}).nodeAlign(Ae).nodes(je).links(at);var Ze=Je();Je.nodePadding()=Fe||(yt=Fe-wr.y0,yt>1e-6&&(wr.y0+=yt,wr.y1+=yt)),Fe=wr.y1+fe})}function Ut(Rr){var dr=Rr.map(function(me,be){return{x0:me.x0,index:be}}).sort(function(me,be){return me.x0-be.x0}),wr=[],yt=-1,Fe,We=-1/0,Oe;for(Me=0;MeWe+xe&&(yt+=1,Fe=de.x0),We=de.x0,wr[yt]||(wr[yt]=[]),wr[yt].push(de),Oe=Fe-de.x0,de.x0+=Oe,de.x1+=Oe}return wr}if(V.node.x.length&&V.node.y.length){for(Me=0;Me0?" L "+V.targetX+" "+V.targetY:"")+"Z"):(se="M "+(V.targetX-Z)+" "+(V.targetY-Q)+" L "+(V.rightInnerExtent-Z)+" "+(V.targetY-Q)+" A "+(V.rightLargeArcRadius+Q)+" "+(V.rightSmallArcRadius+Q)+" 0 0 0 "+(V.rightFullExtent-Q-Z)+" "+(V.targetY+V.rightSmallArcRadius)+" L "+(V.rightFullExtent-Q-Z)+" "+V.verticalRightInnerExtent,re&&ae?se+=" A "+(V.rightLargeArcRadius+Q)+" "+(V.rightLargeArcRadius+Q)+" 0 0 0 "+(V.rightInnerExtent-Q-Z)+" "+(V.verticalFullExtent+Q)+" L "+(V.rightFullExtent+Q-Z-(V.rightLargeArcRadius-Q))+" "+(V.verticalFullExtent+Q)+" A "+(V.rightLargeArcRadius+Q)+" "+(V.rightLargeArcRadius+Q)+" 0 0 0 "+(V.leftFullExtent+Q)+" "+V.verticalLeftInnerExtent:re?se+=" A "+(V.rightLargeArcRadius-Q)+" "+(V.rightSmallArcRadius-Q)+" 0 0 1 "+(V.rightFullExtent-Z-Q-(V.rightLargeArcRadius-Q))+" "+(V.verticalFullExtent-Q)+" L "+(V.leftFullExtent+Q+(V.rightLargeArcRadius-Q))+" "+(V.verticalFullExtent-Q)+" A "+(V.rightLargeArcRadius-Q)+" "+(V.rightSmallArcRadius-Q)+" 0 0 1 "+(V.leftFullExtent+Q)+" "+V.verticalLeftInnerExtent:se+=" A "+(V.rightLargeArcRadius+Q)+" "+(V.rightLargeArcRadius+Q)+" 0 0 0 "+(V.rightInnerExtent-Z)+" "+(V.verticalFullExtent+Q)+" L "+V.leftInnerExtent+" "+(V.verticalFullExtent+Q)+" A "+(V.leftLargeArcRadius+Q)+" "+(V.leftLargeArcRadius+Q)+" 0 0 0 "+(V.leftFullExtent+Q)+" "+V.verticalLeftInnerExtent,se+=" L "+(V.leftFullExtent+Q)+" "+(V.sourceY+V.leftSmallArcRadius)+" A "+(V.leftLargeArcRadius+Q)+" "+(V.leftSmallArcRadius+Q)+" 0 0 0 "+V.leftInnerExtent+" "+(V.sourceY-Q)+" L "+V.sourceX+" "+(V.sourceY-Q)+" L "+V.sourceX+" "+(V.sourceY+Q)+" L "+V.leftInnerExtent+" "+(V.sourceY+Q)+" A "+(V.leftLargeArcRadius-Q)+" "+(V.leftSmallArcRadius-Q)+" 0 0 1 "+(V.leftFullExtent-Q)+" "+(V.sourceY+V.leftSmallArcRadius)+" L "+(V.leftFullExtent-Q)+" "+V.verticalLeftInnerExtent,re&&ae?se+=" A "+(V.rightLargeArcRadius-Q)+" "+(V.rightSmallArcRadius-Q)+" 0 0 1 "+(V.leftFullExtent-Q-(V.rightLargeArcRadius-Q))+" "+(V.verticalFullExtent-Q)+" L "+(V.rightFullExtent+Q-Z+(V.rightLargeArcRadius-Q))+" "+(V.verticalFullExtent-Q)+" A "+(V.rightLargeArcRadius-Q)+" "+(V.rightSmallArcRadius-Q)+" 0 0 1 "+(V.rightFullExtent+Q-Z)+" "+V.verticalRightInnerExtent:re?se+=" A "+(V.rightLargeArcRadius+Q)+" "+(V.rightLargeArcRadius+Q)+" 0 0 0 "+(V.leftFullExtent+Q)+" "+(V.verticalFullExtent+Q)+" L "+(V.rightFullExtent-Z-Q)+" "+(V.verticalFullExtent+Q)+" A "+(V.rightLargeArcRadius+Q)+" "+(V.rightLargeArcRadius+Q)+" 0 0 0 "+(V.rightFullExtent+Q-Z)+" "+V.verticalRightInnerExtent:se+=" A "+(V.leftLargeArcRadius-Q)+" "+(V.leftLargeArcRadius-Q)+" 0 0 1 "+V.leftInnerExtent+" "+(V.verticalFullExtent-Q)+" L "+(V.rightInnerExtent-Z)+" "+(V.verticalFullExtent-Q)+" A "+(V.rightLargeArcRadius-Q)+" "+(V.rightLargeArcRadius-Q)+" 0 0 1 "+(V.rightFullExtent+Q-Z)+" "+V.verticalRightInnerExtent,se+=" L "+(V.rightFullExtent+Q-Z)+" "+(V.targetY+V.rightSmallArcRadius)+" A "+(V.rightLargeArcRadius-Q)+" "+(V.rightSmallArcRadius-Q)+" 0 0 1 "+(V.rightInnerExtent-Z)+" "+(V.targetY+Q)+" L "+(V.targetX-Z)+" "+(V.targetY+Q)+(Z>0?" L "+V.targetX+" "+V.targetY:"")+"Z"),se}function u(){var ee=.5;function Z(se){var Q=se.linkArrowLength;if(se.link.circular)return d(se.link,Q);var V=Math.abs((se.link.target.x0-se.link.source.x1)/2);Q>V&&(Q=V);var re=se.link.source.x1,ae=se.link.target.x0-Q,fe=x(re,ae),xe=fe(ee),Ae=fe(1-ee),Pe=se.link.y0-se.link.width/2,Ce=se.link.y0+se.link.width/2,je=se.link.y1-se.link.width/2,at=se.link.y1+se.link.width/2,tt="M"+re+","+Pe,Je="C"+xe+","+Pe+" "+Ae+","+je+" "+ae+","+je,Ze="C"+Ae+","+at+" "+xe+","+Ce+" "+re+","+Ce,Me=Q>0?"L"+(ae+Q)+","+(je+se.link.width/2):"";return Me+="L"+ae+","+at,tt+Je+Me+Ze+"Z"}return Z}function g(ee,Z){var se=r(Z.color),Q=t.nodePadAcross,V=ee.nodePad/2;Z.dx=Z.x1-Z.x0,Z.dy=Z.y1-Z.y0;var re=Z.dx,ae=Math.max(.5,Z.dy),fe="node_"+Z.pointNumber;return Z.group&&(fe=o.randstr()),Z.trace=ee.trace,Z.curveNumber=ee.trace.index,{index:Z.pointNumber,key:fe,partOfGroup:Z.partOfGroup||!1,group:Z.group,traceId:ee.key,trace:ee.trace,node:Z,nodePad:ee.nodePad,nodeLineColor:ee.nodeLineColor,nodeLineWidth:ee.nodeLineWidth,textFont:ee.textFont,size:ee.horizontal?ee.height:ee.width,visibleWidth:Math.ceil(re),visibleHeight:ae,zoneX:-Q,zoneY:-V,zoneWidth:re+2*Q,zoneHeight:ae+2*V,labelY:ee.horizontal?Z.dy/2+1:Z.dx/2+1,left:Z.originalLayer===1,sizeAcross:ee.width,forceLayouts:ee.forceLayouts,horizontal:ee.horizontal,darkBackground:se.getBrightness()<=128,tinyColorHue:i.tinyRGB(se),tinyColorAlpha:se.getAlpha(),valueFormat:ee.valueFormat,valueSuffix:ee.valueSuffix,sankey:ee.sankey,graph:ee.graph,arrangement:ee.arrangement,uniqueNodeLabelPathId:[ee.guid,ee.key,fe].join("_"),interactionState:ee.interactionState,figure:ee}}function y(ee){ee.attr("transform",function(Z){return n(Z.node.x0.toFixed(3),Z.node.y0.toFixed(3))})}function R(ee){ee.call(y)}function I(ee,Z){ee.call(R),Z.attr("d",u())}function z(ee){ee.attr("width",function(Z){return Z.node.x1-Z.node.x0}).attr("height",function(Z){return Z.visibleHeight})}function F(ee){return ee.link.width>1||ee.linkLineWidth>0}function B(ee){var Z=n(ee.translateX,ee.translateY);return Z+(ee.horizontal?"matrix(1 0 0 1 0 0)":"matrix(0 1 1 0 0 0)")}function O(ee,Z,se){ee.on(".basic",null).on("mouseover.basic",function(Q){!Q.interactionState.dragInProgress&&!Q.partOfGroup&&(se.hover(this,Q,Z),Q.interactionState.hovered=[this,Q])}).on("mousemove.basic",function(Q){!Q.interactionState.dragInProgress&&!Q.partOfGroup&&(se.follow(this,Q),Q.interactionState.hovered=[this,Q])}).on("mouseout.basic",function(Q){!Q.interactionState.dragInProgress&&!Q.partOfGroup&&(se.unhover(this,Q,Z),Q.interactionState.hovered=!1)}).on("click.basic",function(Q){Q.interactionState.hovered&&(se.unhover(this,Q,Z),Q.interactionState.hovered=!1),!Q.interactionState.dragInProgress&&!Q.partOfGroup&&se.select(this,Q,Z)})}function P(ee,Z,se,Q){var V=A.behavior.drag().origin(function(re){return{x:re.node.x0+re.visibleWidth/2,y:re.node.y0+re.visibleHeight/2}}).on("dragstart",function(re){if(re.arrangement!=="fixed"&&(o.ensureSingle(Q._fullLayout._infolayer,"g","dragcover",function(fe){Q._fullLayout._dragCover=fe}),o.raiseToTop(this),re.interactionState.dragInProgress=re.node,ie(re.node),re.interactionState.hovered&&(se.nodeEvents.unhover.apply(0,re.interactionState.hovered),re.interactionState.hovered=!1),re.arrangement==="snap")){var ae=re.traceId+"|"+re.key;re.forceLayouts[ae]?re.forceLayouts[ae].alpha(1):N(ee,ae,re),U(ee,Z,re,ae,Q)}}).on("drag",function(re){if(re.arrangement!=="fixed"){var ae=A.event.x,fe=A.event.y;re.arrangement==="snap"?(re.node.x0=ae-re.visibleWidth/2,re.node.x1=ae+re.visibleWidth/2,re.node.y0=fe-re.visibleHeight/2,re.node.y1=fe+re.visibleHeight/2):(re.arrangement==="freeform"&&(re.node.x0=ae-re.visibleWidth/2,re.node.x1=ae+re.visibleWidth/2),fe=Math.max(0,Math.min(re.size-re.visibleHeight/2,fe)),re.node.y0=fe-re.visibleHeight/2,re.node.y1=fe+re.visibleHeight/2),ie(re.node),re.arrangement!=="snap"&&(re.sankey.update(re.graph),I(ee.filter(le(re)),Z))}}).on("dragend",function(re){if(re.arrangement!=="fixed"){re.interactionState.dragInProgress=!1;for(var ae=0;ae0)window.requestAnimationFrame(re);else{var xe=se.node.originalX;se.node.x0=xe-se.visibleWidth/2,se.node.x1=xe+se.visibleWidth/2,te(se,V)}})}function X(ee,Z,se,Q){return function(){for(var re=0,ae=0;ae0&&Q.forceLayouts[Z].alpha(0)}}function te(ee,Z){for(var se=[],Q=[],V=0;V"),color:m(q,"bgcolor")||t.addOpacity(Q.color,1),borderColor:m(q,"bordercolor"),fontFamily:m(q,"font.family"),fontSize:m(q,"font.size"),fontColor:m(q,"font.color"),fontWeight:m(q,"font.weight"),fontStyle:m(q,"font.style"),fontVariant:m(q,"font.variant"),fontTextcase:m(q,"font.textcase"),fontLineposition:m(q,"font.lineposition"),fontShadow:m(q,"font.shadow"),nameLength:m(q,"namelength"),textAlign:m(q,"align"),idealAlign:h.event.x"),color:m(q,"bgcolor")||le.tinyColorHue,borderColor:m(q,"bordercolor"),fontFamily:m(q,"font.family"),fontSize:m(q,"font.size"),fontColor:m(q,"font.color"),fontWeight:m(q,"font.weight"),fontStyle:m(q,"font.style"),fontVariant:m(q,"font.variant"),fontTextcase:m(q,"font.textcase"),fontLineposition:m(q,"font.lineposition"),fontShadow:m(q,"font.shadow"),nameLength:m(q,"namelength"),textAlign:m(q,"align"),idealAlign:"left",hovertemplate:q.hovertemplate,hovertemplateLabels:re,eventData:[le.node]},{container:_._hoverlayer.node(),outerContainer:_._paper.node(),gd:S});n(xe,.85),s(xe)}}},ue=function(ie,le,q){S._fullLayout.hovermode!==!1&&(h.select(ie).call(v,le,q),le.node.trace.node.hoverinfo!=="skip"&&(le.node.fullData=le.node.trace,S.emit("plotly_unhover",{event:h.event,points:[le.node]})),e.loneUnhover(_._hoverlayer.node()))};E(S,b,M,{width:d.w,height:d.h,margin:{t:d.t,r:d.r,b:d.b,l:d.l}},{linkEvents:{hover:R,follow:P,unhover:N,select:y},nodeEvents:{hover:X,follow:te,unhover:ue,select:U}})}}}),PD=He({"src/traces/sankey/base_plot.js"(Y){var H=Uu().overrideAll,h=$f().getModuleCalcData,x=vA(),A=Bd(),E=mv(),e=ph(),t=Uc().prepSelect,r=Qr(),i=qi(),a="sankey";Y.name=a,Y.baseLayoutAttrOverrides=H({hoverlabel:A.hoverlabel},"plot","nested"),Y.plot=function(n){var s=h(n.calcdata,a)[0];x(n,s),Y.updateFx(n)},Y.clean=function(n,s,c,f){var p=f._has&&f._has(a),v=s._has&&s._has(a);p&&!v&&(f._paperdiv.selectAll(".sankey").remove(),f._paperdiv.selectAll(".bgsankey").remove())},Y.updateFx=function(n){for(var s=0;s0}H.exports=function(F,B,O,P){var N=F._fullLayout,U;w(O)&&P&&(U=P()),E.makeTraceGroups(N._indicatorlayer,B,"trace").each(function(X){var te=X[0],ue=te.trace,ie=h.select(this),le=ue._hasGauge,q=ue._isAngular,J=ue._isBullet,ee=ue.domain,Z={w:N._size.w*(ee.x[1]-ee.x[0]),h:N._size.h*(ee.y[1]-ee.y[0]),l:N._size.l+N._size.w*ee.x[0],r:N._size.r+N._size.w*(1-ee.x[1]),t:N._size.t+N._size.h*(1-ee.y[1]),b:N._size.b+N._size.h*ee.y[0]},se=Z.l+Z.w/2,Q=Z.t+Z.h/2,V=Math.min(Z.w/2,Z.h),re=o.innerRadius*V,ae,fe,xe,Ae=ue.align||"center";if(fe=Q,!le)ae=Z.l+l[Ae]*Z.w,xe=function(he){return g(he,Z.w,Z.h)};else if(q&&(ae=se,fe=Q+V/2,xe=function(he){return y(he,.9*re)}),J){var Pe=o.bulletPadding,Ce=1-o.bulletNumberDomainSize+Pe;ae=Z.l+(Ce+(1-Ce)*l[Ae])*Z.w,xe=function(he){return g(he,(o.bulletNumberDomainSize-Pe)*Z.w,Z.h)}}_(F,ie,X,{numbersX:ae,numbersY:fe,numbersScaler:xe,transitionOpts:O,onComplete:U});var je,at;le&&(je={range:ue.gauge.axis.range,color:ue.gauge.bgcolor,line:{color:ue.gauge.bordercolor,width:0},thickness:1},at={range:ue.gauge.axis.range,color:"rgba(0, 0, 0, 0)",line:{color:ue.gauge.bordercolor,width:ue.gauge.borderwidth},thickness:1});var tt=ie.selectAll("g.angular").data(q?X:[]);tt.exit().remove();var Je=ie.selectAll("g.angularaxis").data(q?X:[]);Je.exit().remove(),q&&M(F,ie,X,{radius:V,innerRadius:re,gauge:tt,layer:Je,size:Z,gaugeBg:je,gaugeOutline:at,transitionOpts:O,onComplete:U});var Ze=ie.selectAll("g.bullet").data(J?X:[]);Ze.exit().remove();var Me=ie.selectAll("g.bulletaxis").data(J?X:[]);Me.exit().remove(),J&&S(F,ie,X,{gauge:Ze,layer:Me,size:Z,gaugeBg:je,gaugeOutline:at,transitionOpts:O,onComplete:U});var we=ie.selectAll("text.title").data(X);we.exit().remove(),we.enter().append("text").classed("title",!0),we.attr("text-anchor",function(){return J?T.right:T[ue.title.align]}).text(ue.title.text).call(a.font,ue.title.font).call(n.convertToTspans,F),we.attr("transform",function(){var he=Z.l+Z.w*l[ue.title.align],De,et=o.titlePadding,nt=a.bBox(we.node());if(le){if(q)if(ue.gauge.axis.visible){var Ke=a.bBox(Je.node());De=Ke.top-et-nt.bottom}else De=Z.t+Z.h/2-V/2-nt.bottom-et;J&&(De=fe-(nt.top+nt.bottom)/2,he=Z.l-o.bulletPadding*Z.w)}else De=ue._numbersTop-et-nt.bottom;return t(he,De)})})};function S(z,F,B,O){var P=B[0].trace,N=O.gauge,U=O.layer,X=O.gaugeBg,te=O.gaugeOutline,ue=O.size,ie=P.domain,le=O.transitionOpts,q=O.onComplete,J,ee,Z,se,Q;N.enter().append("g").classed("bullet",!0),N.attr("transform",t(ue.l,ue.t)),U.enter().append("g").classed("bulletaxis",!0).classed("crisp",!0),U.selectAll("g.xbulletaxistick,path,text").remove();var V=ue.h,re=P.gauge.bar.thickness*V,ae=ie.x[0],fe=ie.x[0]+(ie.x[1]-ie.x[0])*(P._hasNumber||P._hasDelta?1-o.bulletNumberDomainSize:1);J=u(z,P.gauge.axis),J._id="xbulletaxis",J.domain=[ae,fe],J.setScale(),ee=s.calcTicks(J),Z=s.makeTransTickFn(J),se=s.getTickSigns(J)[2],Q=ue.t+ue.h,J.visible&&(s.drawTicks(z,J,{vals:J.ticks==="inside"?s.clipEnds(J,ee):ee,layer:U,path:s.makeTickPath(J,Q,se),transFn:Z}),s.drawLabels(z,J,{vals:ee,layer:U,transFn:Z,labelFns:s.makeLabelFns(J,Q)}));function xe(Je){Je.attr("width",function(Ze){return Math.max(0,J.c2p(Ze.range[1])-J.c2p(Ze.range[0]))}).attr("x",function(Ze){return J.c2p(Ze.range[0])}).attr("y",function(Ze){return .5*(1-Ze.thickness)*V}).attr("height",function(Ze){return Ze.thickness*V})}var Ae=[X].concat(P.gauge.steps),Pe=N.selectAll("g.bg-bullet").data(Ae);Pe.enter().append("g").classed("bg-bullet",!0).append("rect"),Pe.select("rect").call(xe).call(b),Pe.exit().remove();var Ce=N.selectAll("g.value-bullet").data([P.gauge.bar]);Ce.enter().append("g").classed("value-bullet",!0).append("rect"),Ce.select("rect").attr("height",re).attr("y",(V-re)/2).call(b),w(le)?Ce.select("rect").transition().duration(le.duration).ease(le.easing).each("end",function(){q&&q()}).each("interrupt",function(){q&&q()}).attr("width",Math.max(0,J.c2p(Math.min(P.gauge.axis.range[1],B[0].y)))):Ce.select("rect").attr("width",typeof B[0].y=="number"?Math.max(0,J.c2p(Math.min(P.gauge.axis.range[1],B[0].y))):0),Ce.exit().remove();var je=B.filter(function(){return P.gauge.threshold.value||P.gauge.threshold.value===0}),at=N.selectAll("g.threshold-bullet").data(je);at.enter().append("g").classed("threshold-bullet",!0).append("line"),at.select("line").attr("x1",J.c2p(P.gauge.threshold.value)).attr("x2",J.c2p(P.gauge.threshold.value)).attr("y1",(1-P.gauge.threshold.thickness)/2*V).attr("y2",(1-(1-P.gauge.threshold.thickness)/2)*V).call(v.stroke,P.gauge.threshold.line.color).style("stroke-width",P.gauge.threshold.line.width),at.exit().remove();var tt=N.selectAll("g.gauge-outline").data([te]);tt.enter().append("g").classed("gauge-outline",!0).append("rect"),tt.select("rect").call(xe).call(b),tt.exit().remove()}function M(z,F,B,O){var P=B[0].trace,N=O.size,U=O.radius,X=O.innerRadius,te=O.gaugeBg,ue=O.gaugeOutline,ie=[N.l+N.w/2,N.t+N.h/2+U/2],le=O.gauge,q=O.layer,J=O.transitionOpts,ee=O.onComplete,Z=Math.PI/2;function se(Et){var kt=P.gauge.axis.range[0],Ut=P.gauge.axis.range[1],Yt=(Et-kt)/(Ut-kt)*Math.PI-Z;return Yt<-Z?-Z:Yt>Z?Z:Yt}function Q(Et){return h.svg.arc().innerRadius((X+U)/2-Et/2*(U-X)).outerRadius((X+U)/2+Et/2*(U-X)).startAngle(-Z)}function V(Et){Et.attr("d",function(kt){return Q(kt.thickness).startAngle(se(kt.range[0])).endAngle(se(kt.range[1]))()})}var re,ae,fe,xe;le.enter().append("g").classed("angular",!0),le.attr("transform",t(ie[0],ie[1])),q.enter().append("g").classed("angularaxis",!0).classed("crisp",!0),q.selectAll("g.xangularaxistick,path,text").remove(),re=u(z,P.gauge.axis),re.type="linear",re.range=P.gauge.axis.range,re._id="xangularaxis",re.ticklabeloverflow="allow",re.setScale();var Ae=function(Et){return(re.range[0]-Et.x)/(re.range[1]-re.range[0])*Math.PI+Math.PI},Pe={},Ce=s.makeLabelFns(re,0),je=Ce.labelStandoff;Pe.xFn=function(Et){var kt=Ae(Et);return Math.cos(kt)*je},Pe.yFn=function(Et){var kt=Ae(Et),Ut=Math.sin(kt)>0?.2:1;return-Math.sin(kt)*(je+Et.fontSize*Ut)+Math.abs(Math.cos(kt))*(Et.fontSize*i)},Pe.anchorFn=function(Et){var kt=Ae(Et),Ut=Math.cos(kt);return Math.abs(Ut)<.1?"middle":Ut>0?"start":"end"},Pe.heightFn=function(Et,kt,Ut){var Yt=Ae(Et);return-.5*(1+Math.sin(Yt))*Ut};var at=function(Et){return t(ie[0]+U*Math.cos(Et),ie[1]-U*Math.sin(Et))};fe=function(Et){return at(Ae(Et))};var tt=function(Et){var kt=Ae(Et);return at(kt)+"rotate("+-r(kt)+")"};if(ae=s.calcTicks(re),xe=s.getTickSigns(re)[2],re.visible){xe=re.ticks==="inside"?-1:1;var Je=(re.linewidth||1)/2;s.drawTicks(z,re,{vals:ae,layer:q,path:"M"+xe*Je+",0h"+xe*re.ticklen,transFn:tt}),s.drawLabels(z,re,{vals:ae,layer:q,transFn:fe,labelFns:Pe})}var Ze=[te].concat(P.gauge.steps),Me=le.selectAll("g.bg-arc").data(Ze);Me.enter().append("g").classed("bg-arc",!0).append("path"),Me.select("path").call(V).call(b),Me.exit().remove();var we=Q(P.gauge.bar.thickness),he=le.selectAll("g.value-arc").data([P.gauge.bar]);he.enter().append("g").classed("value-arc",!0).append("path");var De=he.select("path");w(J)?(De.transition().duration(J.duration).ease(J.easing).each("end",function(){ee&&ee()}).each("interrupt",function(){ee&&ee()}).attrTween("d",d(we,se(B[0].lastY),se(B[0].y))),P._lastValue=B[0].y):De.attr("d",typeof B[0].y=="number"?we.endAngle(se(B[0].y)):"M0,0Z"),De.call(b),he.exit().remove(),Ze=[];var et=P.gauge.threshold.value;(et||et===0)&&Ze.push({range:[et,et],color:P.gauge.threshold.color,line:{color:P.gauge.threshold.line.color,width:P.gauge.threshold.line.width},thickness:P.gauge.threshold.thickness});var nt=le.selectAll("g.threshold-arc").data(Ze);nt.enter().append("g").classed("threshold-arc",!0).append("path"),nt.select("path").call(V).call(b),nt.exit().remove();var Ke=le.selectAll("g.gauge-outline").data([ue]);Ke.enter().append("g").classed("gauge-outline",!0).append("path"),Ke.select("path").call(V).call(b),Ke.exit().remove()}function _(z,F,B,O){var P=B[0].trace,N=O.numbersX,U=O.numbersY,X=P.align||"center",te=T[X],ue=O.transitionOpts,ie=O.onComplete,le=E.ensureSingle(F,"g","numbers"),q,J,ee,Z=[];P._hasNumber&&Z.push("number"),P._hasDelta&&(Z.push("delta"),P.delta.position==="left"&&Z.reverse());var se=le.selectAll("text").data(Z);se.enter().append("text"),se.attr("text-anchor",function(){return te}).attr("class",function(at){return at}).attr("x",null).attr("y",null).attr("dx",null).attr("dy",null),se.exit().remove();function Q(at,tt,Je,Ze){if(at.match("s")&&Je>=0!=Ze>=0&&!tt(Je).slice(-1).match(m)&&!tt(Ze).slice(-1).match(m)){var Me=at.slice().replace("s","f").replace(/\d+/,function(he){return parseInt(he)-1}),we=u(z,{tickformat:Me});return function(he){return Math.abs(he)<1?s.tickText(we,he).text:tt(he)}}else return tt}function V(){var at=u(z,{tickformat:P.number.valueformat},P._range);at.setScale(),s.prepTicks(at);var tt=function(he){return s.tickText(at,he).text},Je=P.number.suffix,Ze=P.number.prefix,Me=le.select("text.number");function we(){var he=typeof B[0].y=="number"?Ze+tt(B[0].y)+Je:"-";Me.text(he).call(a.font,P.number.font).call(n.convertToTspans,z)}return w(ue)?Me.transition().duration(ue.duration).ease(ue.easing).each("end",function(){we(),ie&&ie()}).each("interrupt",function(){we(),ie&&ie()}).attrTween("text",function(){var he=h.select(this),De=A(B[0].lastY,B[0].y);P._lastValue=B[0].y;var et=Q(P.number.valueformat,tt,B[0].lastY,B[0].y);return function(nt){he.text(Ze+et(De(nt))+Je)}}):we(),q=R(Ze+tt(B[0].y)+Je,P.number.font,te,z),Me}function re(){var at=u(z,{tickformat:P.delta.valueformat},P._range);at.setScale(),s.prepTicks(at);var tt=function(nt){return s.tickText(at,nt).text},Je=P.delta.suffix,Ze=P.delta.prefix,Me=function(nt){var Ke=P.delta.relative?nt.relativeDelta:nt.delta;return Ke},we=function(nt,Ke){return nt===0||typeof nt!="number"||isNaN(nt)?"-":(nt>0?P.delta.increasing.symbol:P.delta.decreasing.symbol)+Ze+Ke(nt)+Je},he=function(nt){return nt.delta>=0?P.delta.increasing.color:P.delta.decreasing.color};P._deltaLastValue===void 0&&(P._deltaLastValue=Me(B[0]));var De=le.select("text.delta");De.call(a.font,P.delta.font).call(v.fill,he({delta:P._deltaLastValue}));function et(){De.text(we(Me(B[0]),tt)).call(v.fill,he(B[0])).call(n.convertToTspans,z)}return w(ue)?De.transition().duration(ue.duration).ease(ue.easing).tween("text",function(){var nt=h.select(this),Ke=Me(B[0]),Et=P._deltaLastValue,kt=Q(P.delta.valueformat,tt,Et,Ke),Ut=A(Et,Ke);return P._deltaLastValue=Ke,function(Yt){nt.text(we(Ut(Yt),kt)),nt.call(v.fill,he({delta:Ut(Yt)}))}}).each("end",function(){et(),ie&&ie()}).each("interrupt",function(){et(),ie&&ie()}):et(),J=R(we(Me(B[0]),tt),P.delta.font,te,z),De}var ae=P.mode+P.align,fe;if(P._hasDelta&&(fe=re(),ae+=P.delta.position+P.delta.font.size+P.delta.font.family+P.delta.valueformat,ae+=P.delta.increasing.symbol+P.delta.decreasing.symbol,ee=J),P._hasNumber&&(V(),ae+=P.number.font.size+P.number.font.family+P.number.valueformat+P.number.suffix+P.number.prefix,ee=q),P._hasDelta&&P._hasNumber){var xe=[(q.left+q.right)/2,(q.top+q.bottom)/2],Ae=[(J.left+J.right)/2,(J.top+J.bottom)/2],Pe,Ce,je=.75*P.delta.font.size;P.delta.position==="left"&&(Pe=I(P,"deltaPos",0,-1*(q.width*l[P.align]+J.width*(1-l[P.align])+je),ae,Math.min),Ce=xe[1]-Ae[1],ee={width:q.width+J.width+je,height:Math.max(q.height,J.height),left:J.left+Pe,right:q.right,top:Math.min(q.top,J.top+Ce),bottom:Math.max(q.bottom,J.bottom+Ce)}),P.delta.position==="right"&&(Pe=I(P,"deltaPos",0,q.width*(1-l[P.align])+J.width*l[P.align]+je,ae,Math.max),Ce=xe[1]-Ae[1],ee={width:q.width+J.width+je,height:Math.max(q.height,J.height),left:q.left,right:J.right+Pe,top:Math.min(q.top,J.top+Ce),bottom:Math.max(q.bottom,J.bottom+Ce)}),P.delta.position==="bottom"&&(Pe=null,Ce=J.height,ee={width:Math.max(q.width,J.width),height:q.height+J.height,left:Math.min(q.left,J.left),right:Math.max(q.right,J.right),top:q.bottom-q.height,bottom:q.bottom+J.height}),P.delta.position==="top"&&(Pe=null,Ce=q.top,ee={width:Math.max(q.width,J.width),height:q.height+J.height,left:Math.min(q.left,J.left),right:Math.max(q.right,J.right),top:q.bottom-q.height-J.height,bottom:q.bottom}),fe.attr({dx:Pe,dy:Ce})}(P._hasNumber||P._hasDelta)&&le.attr("transform",function(){var at=O.numbersScaler(ee);ae+=at[2];var tt=I(P,"numbersScale",1,at[0],ae,Math.min),Je;P._scaleNumbers||(tt=1),P._isAngular?Je=U-tt*ee.bottom:Je=U-tt*(ee.top+ee.bottom)/2,P._numbersTop=tt*ee.top+Je;var Ze=ee[X];X==="center"&&(Ze=(ee.left+ee.right)/2);var Me=N-tt*Ze;return Me=I(P,"numbersTranslate",0,Me,ae,Math.max),t(Me,Je)+e(tt)})}function b(z){z.each(function(F){v.stroke(h.select(this),F.line.color)}).each(function(F){v.fill(h.select(this),F.color)}).style("stroke-width",function(F){return F.line.width})}function d(z,F,B){return function(){var O=x(F,B);return function(P){return z.endAngle(O(P))()}}}function u(z,F,B){var O=z._fullLayout,P=E.extendFlat({type:"linear",ticks:"outside",range:B,showline:!0},F),N={type:"linear",_id:"x"+F._id},U={letter:"x",font:O.font,noAutotickangles:!0,noHover:!0,noTickson:!0};function X(te,ue){return E.coerce(P,N,p,te,ue)}return c(P,N,X,U,O),f(P,N,X,U),N}function g(z,F,B){var O=Math.min(F/z.width,B/z.height);return[O,z,F+"x"+B]}function y(z,F){var B=Math.sqrt(z.width/2*(z.width/2)+z.height*z.height),O=F/B;return[O,z,F]}function R(z,F,B,O){var P=document.createElementNS("http://www.w3.org/2000/svg","text"),N=h.select(P);return N.text(z).attr("x",0).attr("y",0).attr("text-anchor",B).attr("data-unformatted",z).call(n.convertToTspans,O).call(a.font,F),a.bBox(N.node())}function I(z,F,B,O,P,N){var U="_cache"+F;z[U]&&z[U].key===P||(z[U]={key:P,value:B});var X=E.aggNums(N,null,[z[U].value,O],2);return z[U].value=X,X}}}),ND=He({"src/traces/indicator/index.js"(Y,H){H.exports={moduleType:"trace",name:"indicator",basePlotModule:zD(),categories:["svg","noOpacity","noHover"],animatable:!0,attributes:dA(),supplyDefaults:FD().supplyDefaults,calc:OD().calc,plot:BD(),meta:{}}}}),UD=He({"lib/indicator.js"(Y,H){H.exports=ND()}}),gA=He({"src/traces/table/attributes.js"(Y,H){var h=Cp(),x=Po().extendFlat,A=Uu().overrideAll,E=Mu(),e=Ku().attributes,t=_c().descriptionOnlyNumbers;H.exports=A({domain:e({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:t("cell value")},prefix:{valType:"string",arrayOk:!0,dflt:null},suffix:{valType:"string",arrayOk:!0,dflt:null},height:{valType:"number",dflt:28},align:x({},h.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:x({},E({arrayOk:!0}))},cells:{values:{valType:"data_array",dflt:[]},format:{valType:"data_array",dflt:[],description:t("cell value")},prefix:{valType:"string",arrayOk:!0,dflt:null},suffix:{valType:"string",arrayOk:!0,dflt:null},height:{valType:"number",dflt:20},align:x({},h.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:x({},E({arrayOk:!0}))}},"calc","from-root")}}),jD=He({"src/traces/table/defaults.js"(Y,H){var h=Qr(),x=gA(),A=Ku().defaults;function E(e,t){for(var r=e.columnorder||[],i=e.header.values.length,a=r.slice(0,i),o=a.slice().sort(function(c,f){return c-f}),n=a.map(function(c){return o.indexOf(c)}),s=n.length;s",maxDimensionCount:60,overdrag:45,releaseTransitionDuration:120,releaseTransitionEase:"cubic-out",scrollbarCaptureWidth:18,scrollbarHideDelay:1e3,scrollbarHideDuration:1e3,scrollbarOffset:5,scrollbarWidth:8,transitionDuration:100,transitionEase:"cubic-out",uplift:5,wrapSpacer:" ",wrapSplitCharacter:" ",cn:{table:"table",tableControlView:"table-control-view",scrollBackground:"scroll-background",yColumn:"y-column",columnBlock:"column-block",scrollAreaClip:"scroll-area-clip",scrollAreaClipRect:"scroll-area-clip-rect",columnBoundary:"column-boundary",columnBoundaryClippath:"column-boundary-clippath",columnBoundaryRect:"column-boundary-rect",columnCells:"column-cells",columnCell:"column-cell",cellRect:"cell-rect",cellText:"cell-text",cellTextHolder:"cell-text-holder",scrollbarKit:"scrollbar-kit",scrollbar:"scrollbar",scrollbarSlider:"scrollbar-slider",scrollbarGlyph:"scrollbar-glyph",scrollbarCaptureZone:"scrollbar-capture-zone"}}}}),qD=He({"src/traces/table/data_preparation_helper.js"(Y,H){var h=mA(),x=Po().extendFlat,A=Vi(),E=Lf().isTypedArray,e=Lf().isArrayOrTypedArray;H.exports=function(p,v){var T=i(v.cells.values),l=function(te){return te.slice(v.header.values.length,te.length)},m=i(v.header.values);m.length&&!m[0].length&&(m[0]=[""],m=i(m));var w=m.concat(l(T).map(function(){return a((m[0]||[""]).length)})),S=v.domain,M=Math.floor(p._fullLayout._size.w*(S.x[1]-S.x[0])),_=Math.floor(p._fullLayout._size.h*(S.y[1]-S.y[0])),b=v.header.values.length?w[0].map(function(){return v.header.height}):[h.emptyHeaderHeight],d=T.length?T[0].map(function(){return v.cells.height}):[],u=b.reduce(r,0),g=_-u,y=g+h.uplift,R=s(d,y),I=s(b,u),z=n(I,[]),F=n(R,z),B={},O=v._fullInput.columnorder;e(O)&&(O=Array.from(O)),O=O.concat(l(T.map(function(te,ue){return ue})));var P=w.map(function(te,ue){var ie=e(v.columnwidth)?v.columnwidth[Math.min(ue,v.columnwidth.length-1)]:v.columnwidth;return A(ie)?Number(ie):1}),N=P.reduce(r,0);P=P.map(function(te){return te/N*M});var U=Math.max(t(v.header.line.width),t(v.cells.line.width)),X={key:v.uid+p._context.staticPlot,translateX:S.x[0]*p._fullLayout._size.w,translateY:p._fullLayout._size.h*(1-S.y[1]),size:p._fullLayout._size,width:M,maxLineWidth:U,height:_,columnOrder:O,groupHeight:_,rowBlocks:F,headerRowBlocks:z,scrollY:0,cells:x({},v.cells,{values:T}),headerCells:x({},v.header,{values:w}),gdColumns:w.map(function(te){return te[0]}),gdColumnsOriginalOrder:w.map(function(te){return te[0]}),prevPages:[0,0],scrollbarState:{scrollbarScrollInProgress:!1},columns:w.map(function(te,ue){var ie=B[te];B[te]=(ie||0)+1;var le=te+"__"+B[te];return{key:le,label:te,specIndex:ue,xIndex:O[ue],xScale:o,x:void 0,calcdata:void 0,columnWidth:P[ue]}})};return X.columns.forEach(function(te){te.calcdata=X,te.x=o(te)}),X};function t(f){if(e(f)){for(var p=0,v=0;v=p||_===f.length-1)&&(v[l]=w,w.key=M++,w.firstRowIndex=S,w.lastRowIndex=_,w=c(),l+=m,S=_+1,m=0);return v}function c(){return{firstRowIndex:null,lastRowIndex:null,rows:[]}}}}),GD=He({"src/traces/table/data_split_helpers.js"(Y){var H=Po().extendFlat;Y.splitToPanels=function(x){var A=[0,0],E=H({},x,{key:"header",type:"header",page:0,prevPages:A,currentRepaint:[null,null],dragHandle:!0,values:x.calcdata.headerCells.values[x.specIndex],rowBlocks:x.calcdata.headerRowBlocks,calcdata:H({},x.calcdata,{cells:x.calcdata.headerCells})}),e=H({},x,{key:"cells1",type:"cells",page:0,prevPages:A,currentRepaint:[null,null],dragHandle:!1,values:x.calcdata.cells.values[x.specIndex],rowBlocks:x.calcdata.rowBlocks}),t=H({},x,{key:"cells2",type:"cells",page:1,prevPages:A,currentRepaint:[null,null],dragHandle:!1,values:x.calcdata.cells.values[x.specIndex],rowBlocks:x.calcdata.rowBlocks});return[e,t,E]},Y.splitToCells=function(x){var A=h(x);return(x.values||[]).slice(A[0],A[1]).map(function(E,e){var t=typeof E=="string"&&E.match(/[<$&> ]/)?"_keybuster_"+Math.random():"";return{keyWithinBlock:e+t,key:A[0]+e,column:x,calcdata:x.calcdata,page:x.page,rowBlocks:x.rowBlocks,value:E}})};function h(x){var A=x.rowBlocks[x.page],E=A?A.rows[0].rowIndex:0,e=A?E+A.rows.length:0;return[E,e]}}}),yA=He({"src/traces/table/plot.js"(Y,H){var h=mA(),x=yi(),A=Qr(),E=A.numberFormat,e=Hv(),t=Io(),r=jl(),i=Qr().raiseToTop,a=Qr().strTranslate,o=Qr().cancelTransition,n=qD(),s=GD(),c=zi();H.exports=function(ae,fe){var xe=!ae._context.staticPlot,Ae=ae._fullLayout._paper.selectAll("."+h.cn.table).data(fe.map(function(Ke){var Et=e.unwrap(Ke),kt=Et.trace;return n(ae,kt)}),e.keyFun);Ae.exit().remove(),Ae.enter().append("g").classed(h.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"),Ae.attr("width",function(Ke){return Ke.width+Ke.size.l+Ke.size.r}).attr("height",function(Ke){return Ke.height+Ke.size.t+Ke.size.b}).attr("transform",function(Ke){return a(Ke.translateX,Ke.translateY)});var Pe=Ae.selectAll("."+h.cn.tableControlView).data(e.repeat,e.keyFun),Ce=Pe.enter().append("g").classed(h.cn.tableControlView,!0).style("box-sizing","content-box");if(xe){var je="onwheel"in document?"wheel":"mousewheel";Ce.on("mousemove",function(Ke){Pe.filter(function(Et){return Ke===Et}).call(l,ae)}).on(je,function(Ke){if(!Ke.scrollbarState.wheeling){Ke.scrollbarState.wheeling=!0;var Et=Ke.scrollY+x.event.deltaY,kt=te(ae,Pe,null,Et)(Ke);kt||(x.event.stopPropagation(),x.event.preventDefault()),Ke.scrollbarState.wheeling=!1}}).call(l,ae,!0)}Pe.attr("transform",function(Ke){return a(Ke.size.l,Ke.size.t)});var at=Pe.selectAll("."+h.cn.scrollBackground).data(e.repeat,e.keyFun);at.enter().append("rect").classed(h.cn.scrollBackground,!0).attr("fill","none"),at.attr("width",function(Ke){return Ke.width}).attr("height",function(Ke){return Ke.height}),Pe.each(function(Ke){t.setClipUrl(x.select(this),p(ae,Ke),ae)});var tt=Pe.selectAll("."+h.cn.yColumn).data(function(Ke){return Ke.columns},e.keyFun);tt.enter().append("g").classed(h.cn.yColumn,!0),tt.exit().remove(),tt.attr("transform",function(Ke){return a(Ke.x,0)}),xe&&tt.call(x.behavior.drag().origin(function(Ke){var Et=x.select(this);return B(Et,Ke,-h.uplift),i(this),Ke.calcdata.columnDragInProgress=!0,l(Pe.filter(function(kt){return Ke.calcdata.key===kt.key}),ae),Ke}).on("drag",function(Ke){var Et=x.select(this),kt=function(vr){return(Ke===vr?x.event.x:vr.x)+vr.columnWidth/2};Ke.x=Math.max(-h.overdrag,Math.min(Ke.calcdata.width+h.overdrag-Ke.columnWidth,x.event.x));var Ut=T(tt).filter(function(vr){return vr.calcdata.key===Ke.calcdata.key}),Yt=Ut.sort(function(vr,hr){return kt(vr)-kt(hr)});Yt.forEach(function(vr,hr){vr.xIndex=hr,vr.x=Ke===vr?vr.x:vr.xScale(vr)}),tt.filter(function(vr){return Ke!==vr}).transition().ease(h.transitionEase).duration(h.transitionDuration).attr("transform",function(vr){return a(vr.x,0)}),Et.call(o).attr("transform",a(Ke.x,-h.uplift))}).on("dragend",function(Ke){var Et=x.select(this),kt=Ke.calcdata;Ke.x=Ke.xScale(Ke),Ke.calcdata.columnDragInProgress=!1,B(Et,Ke,0),z(ae,kt,kt.columns.map(function(Ut){return Ut.xIndex}))})),tt.each(function(Ke){t.setClipUrl(x.select(this),v(ae,Ke),ae)});var Je=tt.selectAll("."+h.cn.columnBlock).data(s.splitToPanels,e.keyFun);Je.enter().append("g").classed(h.cn.columnBlock,!0).attr("id",function(Ke){return Ke.key}),Je.style("cursor",function(Ke){return Ke.dragHandle?"ew-resize":Ke.calcdata.scrollbarState.barWiggleRoom?"ns-resize":"default"});var Ze=Je.filter(P),Me=Je.filter(O);xe&&Me.call(x.behavior.drag().origin(function(Ke){return x.event.stopPropagation(),Ke}).on("drag",te(ae,Pe,-1)).on("dragend",function(){})),m(ae,Pe,Ze,Je),m(ae,Pe,Me,Je);var we=Pe.selectAll("."+h.cn.scrollAreaClip).data(e.repeat,e.keyFun);we.enter().append("clipPath").classed(h.cn.scrollAreaClip,!0).attr("id",function(Ke){return p(ae,Ke)});var he=we.selectAll("."+h.cn.scrollAreaClipRect).data(e.repeat,e.keyFun);he.enter().append("rect").classed(h.cn.scrollAreaClipRect,!0).attr("x",-h.overdrag).attr("y",-h.uplift).attr("fill","none"),he.attr("width",function(Ke){return Ke.width+2*h.overdrag}).attr("height",function(Ke){return Ke.height+h.uplift});var De=tt.selectAll("."+h.cn.columnBoundary).data(e.repeat,e.keyFun);De.enter().append("g").classed(h.cn.columnBoundary,!0);var et=tt.selectAll("."+h.cn.columnBoundaryClippath).data(e.repeat,e.keyFun);et.enter().append("clipPath").classed(h.cn.columnBoundaryClippath,!0),et.attr("id",function(Ke){return v(ae,Ke)});var nt=et.selectAll("."+h.cn.columnBoundaryRect).data(e.repeat,e.keyFun);nt.enter().append("rect").classed(h.cn.columnBoundaryRect,!0).attr("fill","none"),nt.attr("width",function(Ke){return Ke.columnWidth+2*f(Ke)}).attr("height",function(Ke){return Ke.calcdata.height+2*f(Ke)+h.uplift}).attr("x",function(Ke){return-f(Ke)}).attr("y",function(Ke){return-f(Ke)}),X(null,Me,Pe)};function f(re){return Math.ceil(re.calcdata.maxLineWidth/2)}function p(re,ae){return"clip"+re._fullLayout._uid+"_scrollAreaBottomClip_"+ae.key}function v(re,ae){return"clip"+re._fullLayout._uid+"_columnBoundaryClippath_"+ae.calcdata.key+"_"+ae.specIndex}function T(re){return[].concat.apply([],re.map(function(ae){return ae})).map(function(ae){return ae.__data__})}function l(re,ae,fe){function xe(tt){var Je=tt.rowBlocks;return ee(Je,Je.length-1)+(Je.length?Z(Je[Je.length-1],1/0):1)}var Ae=re.selectAll("."+h.cn.scrollbarKit).data(e.repeat,e.keyFun);Ae.enter().append("g").classed(h.cn.scrollbarKit,!0).style("shape-rendering","geometricPrecision"),Ae.each(function(tt){var Je=tt.scrollbarState;Je.totalHeight=xe(tt),Je.scrollableAreaHeight=tt.groupHeight-N(tt),Je.currentlyVisibleHeight=Math.min(Je.totalHeight,Je.scrollableAreaHeight),Je.ratio=Je.currentlyVisibleHeight/Je.totalHeight,Je.barLength=Math.max(Je.ratio*Je.currentlyVisibleHeight,h.goldenRatio*h.scrollbarWidth),Je.barWiggleRoom=Je.currentlyVisibleHeight-Je.barLength,Je.wiggleRoom=Math.max(0,Je.totalHeight-Je.scrollableAreaHeight),Je.topY=Je.barWiggleRoom===0?0:tt.scrollY/Je.wiggleRoom*Je.barWiggleRoom,Je.bottomY=Je.topY+Je.barLength,Je.dragMultiplier=Je.wiggleRoom/Je.barWiggleRoom}).attr("transform",function(tt){var Je=tt.width+h.scrollbarWidth/2+h.scrollbarOffset;return a(Je,N(tt))});var Pe=Ae.selectAll("."+h.cn.scrollbar).data(e.repeat,e.keyFun);Pe.enter().append("g").classed(h.cn.scrollbar,!0);var Ce=Pe.selectAll("."+h.cn.scrollbarSlider).data(e.repeat,e.keyFun);Ce.enter().append("g").classed(h.cn.scrollbarSlider,!0),Ce.attr("transform",function(tt){return a(0,tt.scrollbarState.topY||0)});var je=Ce.selectAll("."+h.cn.scrollbarGlyph).data(e.repeat,e.keyFun);je.enter().append("line").classed(h.cn.scrollbarGlyph,!0).attr("stroke","black").attr("stroke-width",h.scrollbarWidth).attr("stroke-linecap","round").attr("y1",h.scrollbarWidth/2),je.attr("y2",function(tt){return tt.scrollbarState.barLength-h.scrollbarWidth/2}).attr("stroke-opacity",function(tt){return tt.columnDragInProgress||!tt.scrollbarState.barWiggleRoom||fe?0:.4}),je.transition().delay(0).duration(0),je.transition().delay(h.scrollbarHideDelay).duration(h.scrollbarHideDuration).attr("stroke-opacity",0);var at=Pe.selectAll("."+h.cn.scrollbarCaptureZone).data(e.repeat,e.keyFun);at.enter().append("line").classed(h.cn.scrollbarCaptureZone,!0).attr("stroke","white").attr("stroke-opacity",.01).attr("stroke-width",h.scrollbarCaptureWidth).attr("stroke-linecap","butt").attr("y1",0).on("mousedown",function(tt){var Je=x.event.y,Ze=this.getBoundingClientRect(),Me=tt.scrollbarState,we=Je-Ze.top,he=x.scale.linear().domain([0,Me.scrollableAreaHeight]).range([0,Me.totalHeight]).clamp(!0);Me.topY<=we&&we<=Me.bottomY||te(ae,re,null,he(we-Me.barLength/2))(tt)}).call(x.behavior.drag().origin(function(tt){return x.event.stopPropagation(),tt.scrollbarState.scrollbarScrollInProgress=!0,tt}).on("drag",te(ae,re)).on("dragend",function(){})),at.attr("y2",function(tt){return tt.scrollbarState.scrollableAreaHeight}),ae._context.staticPlot&&(je.remove(),at.remove())}function m(re,ae,fe,xe){var Ae=w(fe),Pe=S(Ae);d(Pe);var Ce=M(Pe);g(Ce);var je=b(Pe),at=_(je);u(at),y(at,ae,xe,re),J(Pe)}function w(re){var ae=re.selectAll("."+h.cn.columnCells).data(e.repeat,e.keyFun);return ae.enter().append("g").classed(h.cn.columnCells,!0),ae.exit().remove(),ae}function S(re){var ae=re.selectAll("."+h.cn.columnCell).data(s.splitToCells,function(fe){return fe.keyWithinBlock});return ae.enter().append("g").classed(h.cn.columnCell,!0),ae.exit().remove(),ae}function M(re){var ae=re.selectAll("."+h.cn.cellRect).data(e.repeat,function(fe){return fe.keyWithinBlock});return ae.enter().append("rect").classed(h.cn.cellRect,!0),ae}function _(re){var ae=re.selectAll("."+h.cn.cellText).data(e.repeat,function(fe){return fe.keyWithinBlock});return ae.enter().append("text").classed(h.cn.cellText,!0).style("cursor",function(){return"auto"}).on("mousedown",function(){x.event.stopPropagation()}),ae}function b(re){var ae=re.selectAll("."+h.cn.cellTextHolder).data(e.repeat,function(fe){return fe.keyWithinBlock});return ae.enter().append("g").classed(h.cn.cellTextHolder,!0).style("shape-rendering","geometricPrecision"),ae}function d(re){re.each(function(ae,fe){var xe=ae.calcdata.cells.font,Ae=ae.column.specIndex,Pe={size:F(xe.size,Ae,fe),color:F(xe.color,Ae,fe),family:F(xe.family,Ae,fe),weight:F(xe.weight,Ae,fe),style:F(xe.style,Ae,fe),variant:F(xe.variant,Ae,fe),textcase:F(xe.textcase,Ae,fe),lineposition:F(xe.lineposition,Ae,fe),shadow:F(xe.shadow,Ae,fe)};ae.rowNumber=ae.key,ae.align=F(ae.calcdata.cells.align,Ae,fe),ae.cellBorderWidth=F(ae.calcdata.cells.line.width,Ae,fe),ae.font=Pe})}function u(re){re.each(function(ae){t.font(x.select(this),ae.font)})}function g(re){re.attr("width",function(ae){return ae.column.columnWidth}).attr("stroke-width",function(ae){return ae.cellBorderWidth}).each(function(ae){var fe=x.select(this);c.stroke(fe,F(ae.calcdata.cells.line.color,ae.column.specIndex,ae.rowNumber)),c.fill(fe,F(ae.calcdata.cells.fill.color,ae.column.specIndex,ae.rowNumber))})}function y(re,ae,fe,xe){re.text(function(Ae){var Pe=Ae.column.specIndex,Ce=Ae.rowNumber,je=Ae.value,at=typeof je=="string",tt=at&&je.match(/
/i),Je=!at||tt;Ae.mayHaveMarkup=at&&je.match(/[<&>]/);var Ze=R(je);Ae.latex=Ze;var Me=Ze?"":F(Ae.calcdata.cells.prefix,Pe,Ce)||"",we=Ze?"":F(Ae.calcdata.cells.suffix,Pe,Ce)||"",he=Ze?null:F(Ae.calcdata.cells.format,Pe,Ce)||null,De=Me+(he?E(he)(Ae.value):Ae.value)+we,et;Ae.wrappingNeeded=!Ae.wrapped&&!Je&&!Ze&&(et=I(De)),Ae.cellHeightMayIncrease=tt||Ze||Ae.mayHaveMarkup||(et===void 0?I(De):et),Ae.needsConvertToTspans=Ae.mayHaveMarkup||Ae.wrappingNeeded||Ae.latex;var nt;if(Ae.wrappingNeeded){var Ke=h.wrapSplitCharacter===" "?De.replace(/Ae&&xe.push(Pe),Ae+=at}return xe}function X(re,ae,fe){var xe=T(ae)[0];if(xe!==void 0){var Ae=xe.rowBlocks,Pe=xe.calcdata,Ce=ee(Ae,Ae.length),je=xe.calcdata.groupHeight-N(xe),at=Pe.scrollY=Math.max(0,Math.min(Ce-je,Pe.scrollY)),tt=U(Ae,at,je);tt.length===1&&(tt[0]===Ae.length-1?tt.unshift(tt[0]-1):tt.push(tt[0]+1)),tt[0]%2&&tt.reverse(),ae.each(function(Je,Ze){Je.page=tt[Ze],Je.scrollY=at}),ae.attr("transform",function(Je){var Ze=ee(Je.rowBlocks,Je.page)-Je.scrollY;return a(0,Ze)}),re&&(ue(re,fe,ae,tt,xe.prevPages,xe,0),ue(re,fe,ae,tt,xe.prevPages,xe,1),l(fe,re))}}function te(re,ae,fe,xe){return function(Pe){var Ce=Pe.calcdata?Pe.calcdata:Pe,je=ae.filter(function(Ze){return Ce.key===Ze.key}),at=fe||Ce.scrollbarState.dragMultiplier,tt=Ce.scrollY;Ce.scrollY=xe===void 0?Ce.scrollY+at*x.event.dy:xe;var Je=je.selectAll("."+h.cn.yColumn).selectAll("."+h.cn.columnBlock).filter(O);return X(re,Je,je),Ce.scrollY===tt}}function ue(re,ae,fe,xe,Ae,Pe,Ce){var je=xe[Ce]!==Ae[Ce];je&&(clearTimeout(Pe.currentRepaint[Ce]),Pe.currentRepaint[Ce]=setTimeout(function(){var at=fe.filter(function(tt,Je){return Je===Ce&&xe[Je]!==Ae[Je]});m(re,ae,at,fe),Ae[Ce]=xe[Ce]}))}function ie(re,ae,fe,xe){return function(){var Pe=x.select(ae.parentNode);Pe.each(function(Ce){var je=Ce.fragments;Pe.selectAll("tspan.line").each(function(De,et){je[et].width=this.getComputedTextLength()});var at=je[je.length-1].width,tt=je.slice(0,-1),Je=[],Ze,Me,we=0,he=Ce.column.columnWidth-2*h.cellPad;for(Ce.value="";tt.length;)Ze=tt.shift(),Me=Ze.width+at,we+Me>he&&(Ce.value+=Je.join(h.wrapSpacer)+h.lineBreaker,Je=[],we=0),Je.push(Ze.text),we+=Me;we&&(Ce.value+=Je.join(h.wrapSpacer)),Ce.wrapped=!0}),Pe.selectAll("tspan.line").remove(),y(Pe.select("."+h.cn.cellText),fe,re,xe),x.select(ae.parentNode.parentNode).call(J)}}function le(re,ae,fe,xe,Ae){return function(){if(!Ae.settledY){var Ce=x.select(ae.parentNode),je=Q(Ae),at=Ae.key-je.firstRowIndex,tt=je.rows[at].rowHeight,Je=Ae.cellHeightMayIncrease?ae.parentNode.getBoundingClientRect().height+2*h.cellPad:tt,Ze=Math.max(Je,tt),Me=Ze-je.rows[at].rowHeight;Me&&(je.rows[at].rowHeight=Ze,re.selectAll("."+h.cn.columnCell).call(J),X(null,re.filter(O),0),l(fe,xe,!0)),Ce.attr("transform",function(){var we=this,he=we.parentNode,De=he.getBoundingClientRect(),et=x.select(we.parentNode).select("."+h.cn.cellRect).node().getBoundingClientRect(),nt=we.transform.baseVal.consolidate(),Ke=et.top-De.top+(nt?nt.matrix.f:h.cellPad);return a(q(Ae,x.select(we.parentNode).select("."+h.cn.cellTextHolder).node().getBoundingClientRect().width),Ke)}),Ae.settledY=!0}}}function q(re,ae){switch(re.align){case"left":return h.cellPad;case"right":return re.column.columnWidth-(ae||0)-h.cellPad;case"center":return(re.column.columnWidth-(ae||0))/2;default:return h.cellPad}}function J(re){re.attr("transform",function(ae){var fe=ae.rowBlocks[0].auxiliaryBlocks.reduce(function(Ce,je){return Ce+Z(je,1/0)},0),xe=Q(ae),Ae=Z(xe,ae.key),Pe=Ae+fe;return a(0,Pe)}).selectAll("."+h.cn.cellRect).attr("height",function(ae){return V(Q(ae),ae.key).rowHeight})}function ee(re,ae){for(var fe=0,xe=ae-1;xe>=0;xe--)fe+=se(re[xe]);return fe}function Z(re,ae){for(var fe=0,xe=0;xeE.length&&(A=A.slice(0,E.length)):A=[],t=0;t90&&(p-=180,o=-o),{angle:p,flip:o,p:x.c2p(e,A,E),offsetMultplier:n}}}}),ez=He({"src/traces/carpet/plot.js"(Y,H){var h=yi(),x=Io(),A=_A(),E=xA(),e=QD(),t=jl(),r=Qr(),i=r.strRotate,a=r.strTranslate,o=Pf();H.exports=function(m,w,S,M){var _=m._context.staticPlot,b=w.xaxis,d=w.yaxis,u=m._fullLayout,g=u._clips;r.makeTraceGroups(M,S,"trace").each(function(y){var R=h.select(this),I=y[0],z=I.trace,F=z.aaxis,B=z.baxis,O=r.ensureSingle(R,"g","minorlayer"),P=r.ensureSingle(R,"g","majorlayer"),N=r.ensureSingle(R,"g","boundarylayer"),U=r.ensureSingle(R,"g","labellayer");R.style("opacity",z.opacity),s(b,d,P,F,"a",F._gridlines,!0),s(b,d,P,B,"b",B._gridlines,!0),s(b,d,O,F,"a",F._minorgridlines,!0),s(b,d,O,B,"b",B._minorgridlines,!0),s(b,d,N,F,"a-boundary",F._boundarylines,_),s(b,d,N,B,"b-boundary",B._boundarylines,_);var X=c(m,b,d,z,I,U,F._labels,"a-label"),te=c(m,b,d,z,I,U,B._labels,"b-label");f(m,U,z,I,b,d,X,te),n(z,I,g,b,d)})};function n(l,m,w,S,M){var _,b,d,u,g=w.select("#"+l._clipPathId);g.size()||(g=w.append("clipPath").classed("carpetclip",!0));var y=r.ensureSingle(g,"path","carpetboundary"),R=m.clipsegments,I=[];for(u=0;u0?"start":"end","data-notex":1}).call(x.font,R.font).text(R.text).call(t.convertToTspans,l),P=x.bBox(this);O.attr("transform",a(z.p[0],z.p[1])+i(z.angle)+a(R.axis.labelpadding*B,P.height*.3)),g=Math.max(g,P.width+R.axis.labelpadding)}),u.exit().remove(),y.maxExtent=g,y}function f(l,m,w,S,M,_,b,d){var u,g,y,R,I=r.aggNums(Math.min,null,w.a),z=r.aggNums(Math.max,null,w.a),F=r.aggNums(Math.min,null,w.b),B=r.aggNums(Math.max,null,w.b);u=.5*(I+z),g=F,y=w.ab2xy(u,g,!0),R=w.dxyda_rough(u,g),b.angle===void 0&&r.extendFlat(b,e(w,M,_,y,w.dxydb_rough(u,g))),T(l,m,w,S,y,R,w.aaxis,M,_,b,"a-title"),u=I,g=.5*(F+B),y=w.ab2xy(u,g,!0),R=w.dxydb_rough(u,g),d.angle===void 0&&r.extendFlat(d,e(w,M,_,y,w.dxyda_rough(u,g))),T(l,m,w,S,y,R,w.baxis,M,_,d,"b-title")}var p=o.LINE_SPACING,v=(1-o.MID_SHIFT)/p+1;function T(l,m,w,S,M,_,b,d,u,g,y){var R=[];b.title.text&&R.push(b.title.text);var I=m.selectAll("text."+y).data(R),z=g.maxExtent;I.enter().append("text").classed(y,!0),I.each(function(){var F=e(w,d,u,M,_);["start","both"].indexOf(b.showticklabels)===-1&&(z=0);var B=b.title.font.size;z+=B+b.title.offset;var O=g.angle+(g.flip<0?180:0),P=(O-F.angle+450)%360,N=P>90&&P<270,U=h.select(this);U.text(b.title.text).call(t.convertToTspans,l),N&&(z=(-t.lineCount(U)+v)*p*B-z),U.attr("transform",a(F.p[0],F.p[1])+i(F.angle)+a(0,z)).attr("text-anchor","middle").call(x.font,b.title.font)}),I.exit().remove()}}}),tz=He({"src/traces/carpet/cheater_basis.js"(Y,H){var h=Qr().isArrayOrTypedArray;H.exports=function(x,A,E){var e,t,r,i,a,o,n=[],s=h(x)?x.length:x,c=h(A)?A.length:A,f=h(x)?x:null,p=h(A)?A:null;f&&(r=(f.length-1)/(f[f.length-1]-f[0])/(s-1)),p&&(i=(p.length-1)/(p[p.length-1]-p[0])/(c-1));var v,T=1/0,l=-1/0;for(t=0;t=10)return null;for(var e=1/0,t=-1/0,r=A.length,i=0;i0&&(Z=E.dxydi([],X-1,ue,0,ie),re.push(le[0]+Z[0]/3),ae.push(le[1]+Z[1]/3),se=E.dxydi([],X-1,ue,1,ie),re.push(ee[0]-se[0]/3),ae.push(ee[1]-se[1]/3)),re.push(ee[0]),ae.push(ee[1]),le=ee;else for(X=E.a2i(U),q=Math.floor(Math.max(0,Math.min(F-2,X))),J=X-q,fe.length=F,fe.crossLength=B,fe.xy=function(xe){return E.evalxy([],X,xe)},fe.dxy=function(xe,Ae){return E.dxydj([],q,xe,J,Ae)},te=0;te0&&(Q=E.dxydj([],q,te-1,J,0),re.push(le[0]+Q[0]/3),ae.push(le[1]+Q[1]/3),V=E.dxydj([],q,te-1,J,1),re.push(ee[0]-V[0]/3),ae.push(ee[1]-V[1]/3)),re.push(ee[0]),ae.push(ee[1]),le=ee;return fe.axisLetter=e,fe.axis=M,fe.crossAxis=g,fe.value=U,fe.constvar=t,fe.index=f,fe.x=re,fe.y=ae,fe.smoothing=g.smoothing,fe}function N(U){var X,te,ue,ie,le,q=[],J=[],ee={};if(ee.length=S.length,ee.crossLength=u.length,e==="b")for(ue=Math.max(0,Math.min(B-2,U)),le=Math.min(1,Math.max(0,U-ue)),ee.xy=function(Z){return E.evalxy([],Z,U)},ee.dxy=function(Z,se){return E.dxydi([],Z,ue,se,le)},X=0;XS.length-1)&&_.push(x(N(i),{color:M.gridcolor,width:M.gridwidth,dash:M.griddash}));for(f=s;fS.length-1)&&!(T<0||T>S.length-1))for(l=S[a],m=S[T],r=0;rS[S.length-1])&&b.push(x(P(v),{color:M.minorgridcolor,width:M.minorgridwidth,dash:M.minorgriddash})));M.startline&&d.push(x(N(0),{color:M.startlinecolor,width:M.startlinewidth})),M.endline&&d.push(x(N(S.length-1),{color:M.endlinecolor,width:M.endlinewidth}))}else{for(o=5e-15,n=[Math.floor((S[S.length-1]-M.tick0)/M.dtick*(1+o)),Math.ceil((S[0]-M.tick0)/M.dtick/(1+o))].sort(function(U,X){return U-X}),s=n[0],c=n[1],f=s;f<=c;f++)p=M.tick0+M.dtick*f,_.push(x(P(p),{color:M.gridcolor,width:M.gridwidth,dash:M.griddash}));for(f=s-1;fS[S.length-1])&&b.push(x(P(v),{color:M.minorgridcolor,width:M.minorgridwidth,dash:M.minorgriddash}));M.startline&&d.push(x(P(S[0]),{color:M.startlinecolor,width:M.startlinewidth})),M.endline&&d.push(x(P(S[S.length-1]),{color:M.endlinecolor,width:M.endlinewidth}))}}}}),nz=He({"src/traces/carpet/calc_labels.js"(Y,H){var h=wo(),x=Po().extendFlat;H.exports=function(E,e){var t,r,i,a,o,n=e._labels=[],s=e._gridlines;for(t=0;t=0;t--)r[s-t]=x[c][t],i[s-t]=A[c][t];for(a.push({x:r,y:i,bicubic:o}),t=c,r=[],i=[];t>=0;t--)r[c-t]=x[t][0],i[c-t]=A[t][0];return a.push({x:r,y:i,bicubic:n}),a}}}),oz=He({"src/traces/carpet/smooth_fill_2d_array.js"(Y,H){var h=Qr();H.exports=function(A,E,e){var t,r,i,a=[],o=[],n=A[0].length,s=A.length;function c(te,ue){var ie=0,le,q=0;return te>0&&(le=A[ue][te-1])!==void 0&&(q++,ie+=le),te0&&(le=A[ue-1][te])!==void 0&&(q++,ie+=le),ue0&&r0&&tu);return h.log("Smoother converged to",g,"after",R,"iterations"),A}}}),sz=He({"src/traces/carpet/constants.js"(Y,H){H.exports={RELATIVE_CULL_TOLERANCE:1e-6}}}),lz=He({"src/traces/carpet/catmull_rom.js"(Y,H){var h=.5;H.exports=function(A,E,e,t){var r=A[0]-E[0],i=A[1]-E[1],a=e[0]-E[0],o=e[1]-E[1],n=Math.pow(r*r+i*i,h/2),s=Math.pow(a*a+o*o,h/2),c=(s*s*r-n*n*a)*t,f=(s*s*i-n*n*o)*t,p=s*(n+s)*3,v=n*(n+s)*3;return[[E[0]+(p&&c/p),E[1]+(p&&f/p)],[E[0]-(v&&c/v),E[1]-(v&&f/v)]]}}}),uz=He({"src/traces/carpet/compute_control_points.js"(Y,H){var h=lz(),x=Qr().ensureArray;function A(E,e,t){var r=-.5*t[0]+1.5*e[0],i=-.5*t[1]+1.5*e[1];return[(2*r+E[0])/3,(2*i+E[1])/3]}H.exports=function(e,t,r,i,a,o){var n,s,c,f,p,v,T,l,m,w,S=r[0].length,M=r.length,_=a?3*S-2:S,b=o?3*M-2:M;for(e=x(e,b),t=x(t,b),c=0;cp&&_T&&bv||bl},i.setScale=function(){var _=i._x,b=i._y,d=A(i._xctrl,i._yctrl,_,b,c.smoothing,f.smoothing);i._xctrl=d[0],i._yctrl=d[1],i.evalxy=E([i._xctrl,i._yctrl],n,s,c.smoothing,f.smoothing),i.dxydi=e([i._xctrl,i._yctrl],c.smoothing,f.smoothing),i.dxydj=t([i._xctrl,i._yctrl],c.smoothing,f.smoothing)},i.i2a=function(_){var b=Math.max(0,Math.floor(_[0]),n-2),d=_[0]-b;return(1-d)*a[b]+d*a[b+1]},i.j2b=function(_){var b=Math.max(0,Math.floor(_[1]),n-2),d=_[1]-b;return(1-d)*o[b]+d*o[b+1]},i.ij2ab=function(_){return[i.i2a(_[0]),i.j2b(_[1])]},i.a2i=function(_){var b=Math.max(0,Math.min(x(_,a),n-2)),d=a[b],u=a[b+1];return Math.max(0,Math.min(n-1,b+(_-d)/(u-d)))},i.b2j=function(_){var b=Math.max(0,Math.min(x(_,o),s-2)),d=o[b],u=o[b+1];return Math.max(0,Math.min(s-1,b+(_-d)/(u-d)))},i.ab2ij=function(_){return[i.a2i(_[0]),i.b2j(_[1])]},i.i2c=function(_,b){return i.evalxy([],_,b)},i.ab2xy=function(_,b,d){if(!d&&(_a[n-1]|bo[s-1]))return[!1,!1];var u=i.a2i(_),g=i.b2j(b),y=i.evalxy([],u,g);if(d){var R=0,I=0,z=[],F,B,O,P;_a[n-1]?(F=n-2,B=1,R=(_-a[n-1])/(a[n-1]-a[n-2])):(F=Math.max(0,Math.min(n-2,Math.floor(u))),B=u-F),bo[s-1]?(O=s-2,P=1,I=(b-o[s-1])/(o[s-1]-o[s-2])):(O=Math.max(0,Math.min(s-2,Math.floor(g))),P=g-O),R&&(i.dxydi(z,F,O,B,P),y[0]+=z[0]*R,y[1]+=z[1]*R),I&&(i.dxydj(z,F,O,B,P),y[0]+=z[0]*I,y[1]+=z[1]*I)}return y},i.c2p=function(_,b,d){return[b.c2p(_[0]),d.c2p(_[1])]},i.p2x=function(_,b,d){return[b.p2c(_[0]),d.p2c(_[1])]},i.dadi=function(_){var b=Math.max(0,Math.min(a.length-2,_));return a[b+1]-a[b]},i.dbdj=function(_){var b=Math.max(0,Math.min(o.length-2,_));return o[b+1]-o[b]},i.dxyda=function(_,b,d,u){var g=i.dxydi(null,_,b,d,u),y=i.dadi(_,d);return[g[0]/y,g[1]/y]},i.dxydb=function(_,b,d,u){var g=i.dxydj(null,_,b,d,u),y=i.dbdj(b,u);return[g[0]/y,g[1]/y]},i.dxyda_rough=function(_,b,d){var u=m*(d||.1),g=i.ab2xy(_+u,b,!0),y=i.ab2xy(_-u,b,!0);return[(g[0]-y[0])*.5/u,(g[1]-y[1])*.5/u]},i.dxydb_rough=function(_,b,d){var u=w*(d||.1),g=i.ab2xy(_,b+u,!0),y=i.ab2xy(_,b-u,!0);return[(g[0]-y[0])*.5/u,(g[1]-y[1])*.5/u]},i.dpdx=function(_){return _._m},i.dpdy=function(_){return _._m}}}}),dz=He({"src/traces/carpet/calc.js"(Y,H){var h=wo(),x=Qr().isArray1D,A=tz(),E=rz(),e=az(),t=nz(),r=iz(),i=B1(),a=oz(),o=O1(),n=vz();H.exports=function(c,f){var p=h.getFromId(c,f.xaxis),v=h.getFromId(c,f.yaxis),T=f.aaxis,l=f.baxis,m=f.x,w=f.y,S=[];m&&x(m)&&S.push("x"),w&&x(w)&&S.push("y"),S.length&&o(f,T,l,"a","b",S);var M=f._a=f._a||f.a,_=f._b=f._b||f.b;m=f._x||f.x,w=f._y||f.y;var b={};if(f._cheater){var d=T.cheatertype==="index"?M.length:M,u=l.cheatertype==="index"?_.length:_;m=A(d,u,f.cheaterslope)}f._x=m=i(m),f._y=w=i(w),a(m,M,_),a(w,M,_),n(f),f.setScale();var g=E(m),y=E(w),R=.5*(g[1]-g[0]),I=.5*(g[1]+g[0]),z=.5*(y[1]-y[0]),F=.5*(y[1]+y[0]),B=1.3;return g=[I-R*B,I+R*B],y=[F-z*B,F+z*B],f._extremes[p._id]=h.findExtremes(p,g,{padded:!0}),f._extremes[v._id]=h.findExtremes(v,y,{padded:!0}),e(f,"a","b"),e(f,"b","a"),t(f,T),t(f,l),b.clipsegments=r(f._xctrl,f._yctrl,T,l),b.x=m,b.y=w,b.a=M,b.b=_,[b]}}}),pz=He({"src/traces/carpet/index.js"(Y,H){H.exports={attributes:xx(),supplyDefaults:JD(),plot:ez(),calc:dz(),animatable:!0,isContainer:!0,moduleType:"trace",name:"carpet",basePlotModule:cf(),categories:["cartesian","svg","carpet","carpetAxis","notLegendIsolatable","noMultiCategory","noHover","noSortingByValue"],meta:{}}}}),gz=He({"lib/carpet.js"(Y,H){H.exports=pz()}}),bA=He({"src/traces/scattercarpet/attributes.js"(Y,H){var h=_v(),x=bc(),A=Ll(),E=us().hovertemplateAttrs,e=us().texttemplateAttrs,t=eu(),r=Po().extendFlat,i=x.marker,a=x.line,o=i.line;H.exports={carpet:{valType:"string",editType:"calc"},a:{valType:"data_array",editType:"calc"},b:{valType:"data_array",editType:"calc"},mode:r({},x.mode,{dflt:"markers"}),text:r({},x.text,{}),texttemplate:e({editType:"plot"},{keys:["a","b","text"]}),hovertext:r({},x.hovertext,{}),line:{color:a.color,width:a.width,dash:a.dash,backoff:a.backoff,shape:r({},a.shape,{values:["linear","spline"]}),smoothing:a.smoothing,editType:"calc"},connectgaps:x.connectgaps,fill:r({},x.fill,{values:["none","toself","tonext"],dflt:"none"}),fillcolor:h(),marker:r({symbol:i.symbol,opacity:i.opacity,maxdisplayed:i.maxdisplayed,angle:i.angle,angleref:i.angleref,standoff:i.standoff,size:i.size,sizeref:i.sizeref,sizemin:i.sizemin,sizemode:i.sizemode,line:r({width:o.width,editType:"calc"},t("marker.line")),gradient:i.gradient,editType:"calc"},t("marker")),textfont:x.textfont,textposition:x.textposition,selected:x.selected,unselected:x.unselected,hoverinfo:r({},A.hoverinfo,{flags:["a","b","text","name"]}),hoveron:x.hoveron,hovertemplate:E(),zorder:x.zorder}}}),mz=He({"src/traces/scattercarpet/defaults.js"(Y,H){var h=Qr(),x=Uv(),A=cu(),E=Zh(),e=rv(),t=G0(),r=av(),i=bv(),a=bA();H.exports=function(n,s,c,f){function p(M,_){return h.coerce(n,s,a,M,_)}p("carpet"),s.xaxis="x",s.yaxis="y";var v=p("a"),T=p("b"),l=Math.min(v.length,T.length);if(!l){s.visible=!1;return}s._length=l,p("text"),p("texttemplate"),p("hovertext");var m=l0?b=M.labelprefix.replace(/ = $/,""):b=M._hovertitle,l.push(b+": "+_.toFixed(3)+M.labelsuffix)}if(!p.hovertemplate){var w=f.hi||p.hoverinfo,S=w.split("+");S.indexOf("all")!==-1&&(S=["a","b","text"]),S.indexOf("a")!==-1&&m(v.aaxis,f.a),S.indexOf("b")!==-1&&m(v.baxis,f.b),l.push("y: "+a.yLabel),S.indexOf("text")!==-1&&x(f,p,l),a.extraText=l.join("
")}return i}}}),wz=He({"src/traces/scattercarpet/event_data.js"(Y,H){H.exports=function(x,A,E,e,t){var r=e[t];return x.a=r.a,x.b=r.b,x.y=r.y,x}}}),Tz=He({"src/traces/scattercarpet/index.js"(Y,H){H.exports={attributes:bA(),supplyDefaults:mz(),colorbar:ch(),formatLabels:yz(),calc:_z(),plot:xz(),style:zh().style,styleOnSelect:zh().styleOnSelect,hoverPoints:bz(),selectPoints:Z0(),eventData:wz(),moduleType:"trace",name:"scattercarpet",basePlotModule:cf(),categories:["svg","carpet","symbols","showLegend","carpetDependent","zoomScale"],meta:{}}}}),Az=He({"lib/scattercarpet.js"(Y,H){H.exports=Tz()}}),wA=He({"src/traces/contourcarpet/attributes.js"(Y,H){var h=K0(),x=pm(),A=eu(),E=Po().extendFlat,e=x.contours;H.exports=E({carpet:{valType:"string",editType:"calc"},z:h.z,a:h.x,a0:h.x0,da:h.dx,b:h.y,b0:h.y0,db:h.dy,text:h.text,hovertext:h.hovertext,transpose:h.transpose,atype:h.xtype,btype:h.ytype,fillcolor:x.fillcolor,autocontour:x.autocontour,ncontours:x.ncontours,contours:{type:e.type,start:e.start,end:e.end,size:e.size,coloring:{valType:"enumerated",values:["fill","lines","none"],dflt:"fill",editType:"calc"},showlines:e.showlines,showlabels:e.showlabels,labelfont:e.labelfont,labelformat:e.labelformat,operation:e.operation,value:e.value,editType:"calc",impliedEdits:{autocontour:!1}},line:{color:x.line.color,width:x.line.width,dash:x.line.dash,smoothing:x.line.smoothing,editType:"plot"},zorder:x.zorder},A("",{cLetter:"z",autoColorDflt:!1}))}}),TA=He({"src/traces/contourcarpet/defaults.js"(Y,H){var h=Qr(),x=F1(),A=wA(),E=Zw(),e=$1(),t=K1();H.exports=function(i,a,o,n){function s(v,T){return h.coerce(i,a,A,v,T)}function c(v){return h.coerce2(i,a,A,v)}if(s("carpet"),i.a&&i.b){var f=x(i,a,s,n,"a","b");if(!f){a.visible=!1;return}s("text");var p=s("contours.type")==="constraint";p?E(i,a,s,n,o,{hasHover:!1}):(e(i,a,s,c),t(i,a,s,n,{hasHover:!1}))}else a._defaultColor=o,a._length=null;s("zorder")}}}),Sz=He({"src/traces/contourcarpet/calc.js"(Y,H){var h=Ch(),x=Qr(),A=O1(),E=B1(),e=N1(),t=U1(),r=Iw(),i=TA(),a=bx(),o=Nw();H.exports=function(c,f){var p=f._carpetTrace=a(c,f);if(!(!p||!p.visible||p.visible==="legendonly")){if(!f.a||!f.b){var v=c.data[p.index],T=c.data[f.index];T.a||(T.a=v.a),T.b||(T.b=v.b),i(T,f,f._defaultColor,c._fullLayout)}var l=n(c,f);return o(f,f._z),l}};function n(s,c){var f=c._carpetTrace,p=f.aaxis,v=f.baxis,T,l,m,w,S,M,_;p._minDtick=0,v._minDtick=0,x.isArray1D(c.z)&&A(c,p,v,"a","b",["z"]),T=c._a=c._a||c.a,w=c._b=c._b||c.b,T=T?p.makeCalcdata(c,"_a"):[],w=w?v.makeCalcdata(c,"_b"):[],l=c.a0||0,m=c.da||1,S=c.b0||0,M=c.db||1,_=c._z=E(c._z||c.z,c.transpose),c._emptypoints=t(_),e(_,c._emptypoints);var b=x.maxRowLength(_),d=c.xtype==="scaled"?"":T,u=r(c,d,l,m,b,p),g=c.ytype==="scaled"?"":w,y=r(c,g,S,M,_.length,v),R={a:u,b:y,z:_};return c.contours.type==="levels"&&c.contours.coloring!=="none"&&h(s,c,{vals:_,containerStr:"",cLetter:"z"}),[R]}}}),Mz=He({"src/traces/carpet/axis_aligned_line.js"(Y,H){var h=Qr().isArrayOrTypedArray;H.exports=function(x,A,E,e){var t,r,i,a,o,n,s,c,f,p,v,T,l,m=h(E)?"a":"b",w=m==="a"?x.aaxis:x.baxis,S=w.smoothing,M=m==="a"?x.a2i:x.b2j,_=m==="a"?E:e,b=m==="a"?e:E,d=m==="a"?A.a.length:A.b.length,u=m==="a"?A.b.length:A.a.length,g=Math.floor(m==="a"?x.b2j(b):x.a2i(b)),y=m==="a"?function(ue){return x.evalxy([],ue,g)}:function(ue){return x.evalxy([],g,ue)};S&&(i=Math.max(0,Math.min(u-2,g)),a=g-i,r=m==="a"?function(ue,ie){return x.dxydi([],ue,i,ie,a)}:function(ue,ie){return x.dxydj([],i,ue,a,ie)});var R=M(_[0]),I=M(_[1]),z=R0?Math.floor:Math.ceil,O=z>0?Math.ceil:Math.floor,P=z>0?Math.min:Math.max,N=z>0?Math.max:Math.min,U=B(R+F),X=O(I-F);s=y(R);var te=[[s]];for(t=U;t*z=0;fe--)V=N.clipsegments[fe],re=x([],V.x,R.c2p),ae=x([],V.y,I.c2p),re.reverse(),ae.reverse(),xe.push(A(re,ae,V.bicubic));var Ae="M"+xe.join("L")+"Z";S(F,N.clipsegments,R,I,ie,q),M(O,F,R,I,Q,ee,J,P,N,q,Ae),v(F,ue,d,B,te,u,P),E.setClipUrl(F,P._clipPathId,d)})};function p(b,d){var u,g,y,R,I,z,F,B,O;for(u=0;uue&&(g.max=ue),g.len=g.max-g.min}function l(b,d,u){var g=b.getPointAtLength(d),y=b.getPointAtLength(u),R=y.x-g.x,I=y.y-g.y,z=Math.sqrt(R*R+I*I);return[R/z,I/z]}function m(b){var d=Math.sqrt(b[0]*b[0]+b[1]*b[1]);return[b[0]/d,b[1]/d]}function w(b,d){var u=Math.abs(b[0]*d[0]+b[1]*d[1]),g=Math.sqrt(1-u*u);return g/u}function S(b,d,u,g,y,R){var I,z,F,B,O=e.ensureSingle(b,"g","contourbg"),P=O.selectAll("path").data(R==="fill"&&!y?[0]:[]);P.enter().append("path"),P.exit().remove();var N=[];for(B=0;B=0&&(U=re,te=ue):Math.abs(N[1]-U[1])=0&&(U=re,te=ue):e.log("endpt to newendpt is not vert. or horz.",N,U,re)}if(te>=0)break;B+=Q(N,U),N=U}if(te===d.edgepaths.length){e.log("unclosed perimeter path");break}F=te,P=O.indexOf(F)===-1,P&&(F=O[0],B+=Q(N,U)+"Z",N=null)}for(F=0;F_):M=z>y,_=z;var F=p(y,R,I,z);F.pos=g,F.yc=(y+z)/2,F.i=u,F.dir=M?"increasing":"decreasing",F.x=F.pos,F.y=[I,R],b&&(F.orig_p=s[u]),w&&(F.tx=n.text[u]),S&&(F.htx=n.hovertext[u]),d.push(F)}else d.push({pos:g,empty:!0})}return n._extremes[f._id]=A.findExtremes(f,h.concat(l,T),{padded:!0}),d.length&&(d[0].t={labels:{open:x(o,"open:")+" ",high:x(o,"high:")+" ",low:x(o,"low:")+" ",close:x(o,"close:")+" "}}),d}function a(o,n,s){var c=s._minDiff;if(!c){var f=o._fullData,p=[];c=1/0;var v;for(v=0;v"+m.labels[z]+h.hoverLabelText(T,F,l.yhoverformat)):(O=x.extendFlat({},S),O.y0=O.y1=B,O.yLabelVal=F,O.yLabel=m.labels[z]+h.hoverLabelText(T,F,l.yhoverformat),O.name="",w.push(O),R[F]=O)}return w}function n(s,c,f,p){var v=s.cd,T=s.ya,l=v[0].trace,m=v[0].t,w=a(s,c,f,p);if(!w)return[];var S=w.index,M=v[S],_=w.index=M.i,b=M.dir;function d(F){return m.labels[F]+h.hoverLabelText(T,l[F][_],l.yhoverformat)}var u=M.hi||l.hoverinfo,g=u.split("+"),y=u==="all",R=y||g.indexOf("y")!==-1,I=y||g.indexOf("text")!==-1,z=R?[d("open"),d("high"),d("low"),d("close")+" "+r[b]]:[];return I&&e(M,l,z),w.extraText=z.join("
"),w.y0=w.y1=T.c2p(M.yc,!0),[w]}H.exports={hoverPoints:i,hoverSplit:o,hoverOnPoints:n}}}),EA=He({"src/traces/ohlc/select.js"(Y,H){H.exports=function(x,A){var E=x.cd,e=x.xaxis,t=x.yaxis,r=[],i,a=E[0].t.bPos||0;if(A===!1)for(i=0;ic?function(l){return l<=0}:function(l){return l>=0};a.c2g=function(l){var m=a.c2l(l)-s;return(T(m)?m:0)+v},a.g2c=function(l){return a.l2c(l+s-v)},a.g2p=function(l){return l*p},a.c2p=function(l){return a.g2p(a.c2g(l))}}}function t(a,o){return o==="degrees"?A(a):a}function r(a,o){return o==="degrees"?E(a):a}function i(a,o){var n=a.type;if(n==="linear"){var s=a.d2c,c=a.c2d;a.d2c=function(f,p){return t(s(f),p)},a.c2d=function(f,p){return c(r(f,p))}}a.makeCalcdata=function(f,p){var v=f[p],T=f._length,l,m,w=function(d){return a.d2c(d,f.thetaunit)};if(v)for(l=new Array(T),m=0;m0?d:1/0},M=A(w,S),_=h.mod(M+1,w.length);return[w[M],w[_]]}function p(m){return Math.abs(m)>1e-10?m:0}function v(m,w,S){w=w||0,S=S||0;for(var M=m.length,_=new Array(M),b=0;b0?1:0}function x(r){var i=r[0],a=r[1];if(!isFinite(i)||!isFinite(a))return[1,0];var o=(i+1)*(i+1)+a*a;return[(i*i+a*a-1)/o,2*a/o]}function A(r,i){var a=i[0],o=i[1];return[a*r.radius+r.cx,-o*r.radius+r.cy]}function E(r,i){return i*r.radius}function e(r,i,a,o){var n=A(r,x([a,i])),s=n[0],c=n[1],f=A(r,x([o,i])),p=f[0],v=f[1];if(i===0)return["M"+s+","+c,"L"+p+","+v].join(" ");var T=E(r,1/Math.abs(i));return["M"+s+","+c,"A"+T+","+T+" 0 0,"+(i<0?1:0)+" "+p+","+v].join(" ")}function t(r,i,a,o){var n=E(r,1/(i+1)),s=A(r,x([i,a])),c=s[0],f=s[1],p=A(r,x([i,o])),v=p[0],T=p[1];if(h(a)!==h(o)){var l=A(r,x([i,0])),m=l[0],w=l[1];return["M"+c+","+f,"A"+n+","+n+" 0 0,"+(0at?(tt=ae,Je=ae*at,we=(fe-Je)/Z.h/2,Ze=[V[0],V[1]],Me=[re[0]+we,re[1]-we]):(tt=fe/at,Je=fe,we=(ae-tt)/Z.w/2,Ze=[V[0]+we,V[1]-we],Me=[re[0],re[1]]),J.xLength2=tt,J.yLength2=Je,J.xDomain2=Ze,J.yDomain2=Me;var he=J.xOffset2=Z.l+Z.w*Ze[0],De=J.yOffset2=Z.t+Z.h*(1-Me[1]),et=J.radius=tt/Pe,nt=J.innerRadius=J.getHole(q)*et,Ke=J.cx=he-et*Ae[0],Et=J.cy=De+et*Ae[3],kt=J.cxx=Ke-he,Ut=J.cyy=Et-De,Yt=se.side,vr;Yt==="counterclockwise"?(vr=Yt,Yt="top"):Yt==="clockwise"&&(vr=Yt,Yt="bottom"),J.radialAxis=J.mockAxis(le,q,se,{_id:"x",side:Yt,_trueSide:vr,domain:[nt/Z.w,et/Z.w]}),J.angularAxis=J.mockAxis(le,q,Q,{side:"right",domain:[0,Math.PI],autorange:!1}),J.doAutoRange(le,q),J.updateAngularAxis(le,q),J.updateRadialAxis(le,q),J.updateRadialAxisTitle(le,q),J.xaxis=J.mockCartesianAxis(le,q,{_id:"x",domain:Ze}),J.yaxis=J.mockCartesianAxis(le,q,{_id:"y",domain:Me});var hr=J.pathSubplot();J.clipPaths.forTraces.select("path").attr("d",hr).attr("transform",t(kt,Ut)),ee.frontplot.attr("transform",t(he,De)).call(i.setClipUrl,J._hasClipOnAxisFalse?null:J.clipIds.forTraces,J.gd),ee.bg.attr("d",hr).attr("transform",t(Ke,Et)).call(r.fill,q.bgcolor)},U.mockAxis=function(le,q,J,ee){var Z=E.extendFlat({},J,ee);return s(Z,q,le),Z},U.mockCartesianAxis=function(le,q,J){var ee=this,Z=ee.isSmith,se=J._id,Q=E.extendFlat({type:"linear"},J);n(Q,le);var V={x:[0,2],y:[1,3]};return Q.setRange=function(){var re=ee.sectorBBox,ae=V[se],fe=ee.radialAxis._rl,xe=(fe[1]-fe[0])/(1-ee.getHole(q));Q.range=[re[ae[0]]*xe,re[ae[1]]*xe]},Q.isPtWithinRange=se==="x"&&!Z?function(re){return ee.isPtInside(re)}:function(){return!0},Q.setRange(),Q.setScale(),Q},U.doAutoRange=function(le,q){var J=this,ee=J.gd,Z=J.radialAxis,se=J.getRadial(q);c(ee,Z);var Q=Z.range;if(se.range=Q.slice(),se._input.range=Q.slice(),Z._rl=[Z.r2l(Q[0],null,"gregorian"),Z.r2l(Q[1],null,"gregorian")],Z.minallowed!==void 0){var V=Z.r2l(Z.minallowed);Z._rl[0]>Z._rl[1]?Z._rl[1]=Math.max(Z._rl[1],V):Z._rl[0]=Math.max(Z._rl[0],V)}if(Z.maxallowed!==void 0){var re=Z.r2l(Z.maxallowed);Z._rl[0]90&&fe<=270&&(xe.tickangle=180);var Ce=Pe?function(et){var nt=z(J,y([et.x,0]));return t(nt[0]-V,nt[1]-re)}:function(et){return t(xe.l2p(et.x)+Q,0)},je=Pe?function(et){return I(J,et.x,-1/0,1/0)}:function(et){return J.pathArc(xe.r2p(et.x)+Q)},at=X(ae);if(J.radialTickLayout!==at&&(Z["radial-axis"].selectAll(".xtick").remove(),J.radialTickLayout=at),Ae){xe.setScale();var tt=0,Je=Pe?(xe.tickvals||[]).filter(function(et){return et>=0}).map(function(et){return o.tickText(xe,et,!0,!1)}):o.calcTicks(xe),Ze=Pe?Je:o.clipEnds(xe,Je),Me=o.getTickSigns(xe)[2];Pe&&((xe.ticks==="top"&&xe.side==="bottom"||xe.ticks==="bottom"&&xe.side==="top")&&(Me=-Me),xe.ticks==="top"&&xe.side==="top"&&(tt=-xe.ticklen),xe.ticks==="bottom"&&xe.side==="bottom"&&(tt=xe.ticklen)),o.drawTicks(ee,xe,{vals:Je,layer:Z["radial-axis"],path:o.makeTickPath(xe,0,Me),transFn:Ce,crisp:!1}),o.drawGrid(ee,xe,{vals:Ze,layer:Z["radial-grid"],path:je,transFn:E.noop,crisp:!1}),o.drawLabels(ee,xe,{vals:Je,layer:Z["radial-axis"],transFn:Ce,labelFns:o.makeLabelFns(xe,tt)})}var we=J.radialAxisAngle=J.vangles?P(ue(O(ae.angle),J.vangles)):ae.angle,he=t(V,re),De=he+e(-we);ie(Z["radial-axis"],Ae&&(ae.showticklabels||ae.ticks),{transform:De}),ie(Z["radial-grid"],Ae&&ae.showgrid,{transform:Pe?"":he}),ie(Z["radial-line"].select("line"),Ae&&ae.showline,{x1:Pe?-se:Q,y1:0,x2:se,y2:0,transform:De}).attr("stroke-width",ae.linewidth).call(r.stroke,ae.linecolor)},U.updateRadialAxisTitle=function(le,q,J){if(!this.isSmith){var ee=this,Z=ee.gd,se=ee.radius,Q=ee.cx,V=ee.cy,re=ee.getRadial(q),ae=ee.id+"title",fe=0;if(re.title){var xe=i.bBox(ee.layers["radial-axis"].node()).height,Ae=re.title.font.size,Pe=re.side;fe=Pe==="top"?Ae:Pe==="counterclockwise"?-(xe+Ae*.4):xe+Ae*.8}var Ce=J!==void 0?J:ee.radialAxisAngle,je=O(Ce),at=Math.cos(je),tt=Math.sin(je),Je=Q+se/2*at+fe*tt,Ze=V-se/2*tt+fe*at;ee.layers["radial-axis-title"]=T.draw(Z,ae,{propContainer:re,propName:ee.id+".radialaxis.title",placeholder:F(Z,"Click to enter radial axis title"),attributes:{x:Je,y:Ze,"text-anchor":"middle"},transform:{rotate:-Ce}})}},U.updateAngularAxis=function(le,q){var J=this,ee=J.gd,Z=J.layers,se=J.radius,Q=J.innerRadius,V=J.cx,re=J.cy,ae=J.getAngular(q),fe=J.angularAxis,xe=J.isSmith;xe||(J.fillViewInitialKey("angularaxis.rotation",ae.rotation),fe.setGeometry(),fe.setScale());var Ae=xe?function(nt){var Ke=z(J,y([0,nt.x]));return Math.atan2(Ke[0]-V,Ke[1]-re)-Math.PI/2}:function(nt){return fe.t2g(nt.x)};fe.type==="linear"&&fe.thetaunit==="radians"&&(fe.tick0=P(fe.tick0),fe.dtick=P(fe.dtick));var Pe=function(nt){return t(V+se*Math.cos(nt),re-se*Math.sin(nt))},Ce=xe?function(nt){var Ke=z(J,y([0,nt.x]));return t(Ke[0],Ke[1])}:function(nt){return Pe(Ae(nt))},je=xe?function(nt){var Ke=z(J,y([0,nt.x])),Et=Math.atan2(Ke[0]-V,Ke[1]-re)-Math.PI/2;return t(Ke[0],Ke[1])+e(-P(Et))}:function(nt){var Ke=Ae(nt);return Pe(Ke)+e(-P(Ke))},at=xe?function(nt){return R(J,nt.x,0,1/0)}:function(nt){var Ke=Ae(nt),Et=Math.cos(Ke),kt=Math.sin(Ke);return"M"+[V+Q*Et,re-Q*kt]+"L"+[V+se*Et,re-se*kt]},tt=o.makeLabelFns(fe,0),Je=tt.labelStandoff,Ze={};Ze.xFn=function(nt){var Ke=Ae(nt);return Math.cos(Ke)*Je},Ze.yFn=function(nt){var Ke=Ae(nt),Et=Math.sin(Ke)>0?.2:1;return-Math.sin(Ke)*(Je+nt.fontSize*Et)+Math.abs(Math.cos(Ke))*(nt.fontSize*b)},Ze.anchorFn=function(nt){var Ke=Ae(nt),Et=Math.cos(Ke);return Math.abs(Et)<.1?"middle":Et>0?"start":"end"},Ze.heightFn=function(nt,Ke,Et){var kt=Ae(nt);return-.5*(1+Math.sin(kt))*Et};var Me=X(ae);J.angularTickLayout!==Me&&(Z["angular-axis"].selectAll("."+fe._id+"tick").remove(),J.angularTickLayout=Me);var we=xe?[1/0].concat(fe.tickvals||[]).map(function(nt){return o.tickText(fe,nt,!0,!1)}):o.calcTicks(fe);xe&&(we[0].text="∞",we[0].fontSize*=1.75);var he;if(q.gridshape==="linear"?(he=we.map(Ae),E.angleDelta(he[0],he[1])<0&&(he=he.slice().reverse())):he=null,J.vangles=he,fe.type==="category"&&(we=we.filter(function(nt){return E.isAngleInsideSector(Ae(nt),J.sectorInRad)})),fe.visible){var De=fe.ticks==="inside"?-1:1,et=(fe.linewidth||1)/2;o.drawTicks(ee,fe,{vals:we,layer:Z["angular-axis"],path:"M"+De*et+",0h"+De*fe.ticklen,transFn:je,crisp:!1}),o.drawGrid(ee,fe,{vals:we,layer:Z["angular-grid"],path:at,transFn:E.noop,crisp:!1}),o.drawLabels(ee,fe,{vals:we,layer:Z["angular-axis"],repositionOnUpdate:!0,transFn:Ce,labelFns:Ze})}ie(Z["angular-line"].select("path"),ae.showline,{d:J.pathSubplot(),transform:t(V,re)}).attr("stroke-width",ae.linewidth).call(r.stroke,ae.linecolor)},U.updateFx=function(le,q){if(!this.gd._context.staticPlot){var J=!this.isSmith;J&&(this.updateAngularDrag(le),this.updateRadialDrag(le,q,0),this.updateRadialDrag(le,q,1)),this.updateHoverAndMainDrag(le)}},U.updateHoverAndMainDrag=function(le){var q=this,J=q.isSmith,ee=q.gd,Z=q.layers,se=le._zoomlayer,Q=d.MINZOOM,V=d.OFFEDGE,re=q.radius,ae=q.innerRadius,fe=q.cx,xe=q.cy,Ae=q.cxx,Pe=q.cyy,Ce=q.sectorInRad,je=q.vangles,at=q.radialAxis,tt=u.clampTiny,Je=u.findXYatLength,Ze=u.findEnclosingVertexAngles,Me=d.cornerHalfWidth,we=d.cornerLen/2,he,De,et=f.makeDragger(Z,"path","maindrag",le.dragmode===!1?"none":"crosshair");h.select(et).attr("d",q.pathSubplot()).attr("transform",t(fe,xe)),et.onmousemove=function(rr){v.hover(ee,rr,q.id),ee._fullLayout._lasthover=et,ee._fullLayout._hoversubplot=q.id},et.onmouseout=function(rr){ee._dragging||p.unhover(ee,rr)};var nt={element:et,gd:ee,subplot:q.id,plotinfo:{id:q.id,xaxis:q.xaxis,yaxis:q.yaxis},xaxes:[q.xaxis],yaxes:[q.yaxis]},Ke,Et,kt,Ut,Yt,vr,hr,Rr,dr;function wr(rr,Jt){return Math.sqrt(rr*rr+Jt*Jt)}function yt(rr,Jt){return wr(rr-Ae,Jt-Pe)}function Fe(rr,Jt){return Math.atan2(Pe-Jt,rr-Ae)}function We(rr,Jt){return[rr*Math.cos(Jt),rr*Math.sin(-Jt)]}function Oe(rr,Jt){if(rr===0)return q.pathSector(2*Me);var mr=we/rr,ia=Jt-mr,Ia=Jt+mr,La=Math.max(0,Math.min(rr,re)),Aa=La-Me,Ga=La+Me;return"M"+We(Aa,ia)+"A"+[Aa,Aa]+" 0,0,0 "+We(Aa,Ia)+"L"+We(Ga,Ia)+"A"+[Ga,Ga]+" 0,0,1 "+We(Ga,ia)+"Z"}function de(rr,Jt,mr){if(rr===0)return q.pathSector(2*Me);var ia=We(rr,Jt),Ia=We(rr,mr),La=tt((ia[0]+Ia[0])/2),Aa=tt((ia[1]+Ia[1])/2),Ga,ba;if(La&&Aa){var Xa=Aa/La,yn=-1/Xa,Kt=Je(Me,Xa,La,Aa);Ga=Je(we,yn,Kt[0][0],Kt[0][1]),ba=Je(we,yn,Kt[1][0],Kt[1][1])}else{var zt,$t;Aa?(zt=we,$t=Me):(zt=Me,$t=we),Ga=[[La-zt,Aa-$t],[La+zt,Aa-$t]],ba=[[La-zt,Aa+$t],[La+zt,Aa+$t]]}return"M"+Ga.join("L")+"L"+ba.reverse().join("L")+"Z"}function me(){kt=null,Ut=null,Yt=q.pathSubplot(),vr=!1;var rr=ee._fullLayout[q.id];hr=x(rr.bgcolor).getLuminance(),Rr=f.makeZoombox(se,hr,fe,xe,Yt),Rr.attr("fill-rule","evenodd"),dr=f.makeCorners(se,fe,xe),w(ee)}function be(rr,Jt){return Jt=Math.max(Math.min(Jt,re),ae),rrQ?(rr-1&&rr===1&&m(Jt,ee,[q.xaxis],[q.yaxis],q.id,nt),mr.indexOf("event")>-1&&v.click(ee,Jt,q.id)}nt.prepFn=function(rr,Jt,mr){var ia=ee._fullLayout.dragmode,Ia=et.getBoundingClientRect();ee._fullLayout._calcInverseTransform(ee);var La=ee._fullLayout._invTransform;he=ee._fullLayout._invScaleX,De=ee._fullLayout._invScaleY;var Aa=E.apply3DTransform(La)(Jt-Ia.left,mr-Ia.top);if(Ke=Aa[0],Et=Aa[1],je){var Ga=u.findPolygonOffset(re,Ce[0],Ce[1],je);Ke+=Ae+Ga[0],Et+=Pe+Ga[1]}switch(ia){case"zoom":nt.clickFn=Wt,J||(je?nt.moveFn=bt:nt.moveFn=Xe,nt.doneFn=Ct,me());break;case"select":case"lasso":l(rr,Jt,mr,nt,ia);break}},p.init(nt)},U.updateRadialDrag=function(le,q,J){var ee=this,Z=ee.gd,se=ee.layers,Q=ee.radius,V=ee.innerRadius,re=ee.cx,ae=ee.cy,fe=ee.radialAxis,xe=d.radialDragBoxSize,Ae=xe/2;if(!fe.visible)return;var Pe=O(ee.radialAxisAngle),Ce=fe._rl,je=Ce[0],at=Ce[1],tt=Ce[J],Je=.75*(Ce[1]-Ce[0])/(1-ee.getHole(q))/Q,Ze,Me,we;J?(Ze=re+(Q+Ae)*Math.cos(Pe),Me=ae-(Q+Ae)*Math.sin(Pe),we="radialdrag"):(Ze=re+(V-Ae)*Math.cos(Pe),Me=ae-(V-Ae)*Math.sin(Pe),we="radialdrag-inner");var he=f.makeRectDragger(se,we,"crosshair",-Ae,-Ae,xe,xe),De={element:he,gd:Z};le.dragmode===!1&&(De.dragmode=!1),ie(h.select(he),fe.visible&&V0!=(J?Ke>je:Ke=90||Z>90&&se>=450?Pe=1:V<=0&&ae<=0?Pe=0:Pe=Math.max(V,ae),Z<=180&&se>=180||Z>180&&se>=540?fe=-1:Q>=0&&re>=0?fe=0:fe=Math.min(Q,re),Z<=270&&se>=270||Z>270&&se>=630?xe=-1:V>=0&&ae>=0?xe=0:xe=Math.min(V,ae),se>=360?Ae=1:Q<=0&&re<=0?Ae=0:Ae=Math.max(Q,re),[fe,xe,Ae,Pe]}function ue(le,q){var J=function(Z){return E.angleDist(le,Z)},ee=E.findIndexOfMin(q,J);return q[ee]}function ie(le,q,J){return q?(le.attr("display",null),le.attr(J)):le&&le.attr("display","none"),le}}}),IA=He({"src/plots/polar/layout_attributes.js"(Y,H){var h=mf(),x=Kf(),A=Ku().attributes,E=Qr().extendFlat,e=Uu().overrideAll,t=e({color:x.color,showline:E({},x.showline,{dflt:!0}),linecolor:x.linecolor,linewidth:x.linewidth,showgrid:E({},x.showgrid,{dflt:!0}),gridcolor:x.gridcolor,gridwidth:x.gridwidth,griddash:x.griddash},"plot","from-root"),r=e({tickmode:x.minor.tickmode,nticks:x.nticks,tick0:x.tick0,dtick:x.dtick,tickvals:x.tickvals,ticktext:x.ticktext,ticks:x.ticks,ticklen:x.ticklen,tickwidth:x.tickwidth,tickcolor:x.tickcolor,ticklabelstep:x.ticklabelstep,showticklabels:x.showticklabels,labelalias:x.labelalias,minorloglabels:x.minorloglabels,showtickprefix:x.showtickprefix,tickprefix:x.tickprefix,showticksuffix:x.showticksuffix,ticksuffix:x.ticksuffix,showexponent:x.showexponent,exponentformat:x.exponentformat,minexponent:x.minexponent,separatethousands:x.separatethousands,tickfont:x.tickfont,tickangle:x.tickangle,tickformat:x.tickformat,tickformatstops:x.tickformatstops,layer:x.layer},"plot","from-root"),i={visible:E({},x.visible,{dflt:!0}),type:E({},x.type,{values:["-","linear","log","date","category"]}),autotypenumbers:x.autotypenumbers,autorangeoptions:{minallowed:x.autorangeoptions.minallowed,maxallowed:x.autorangeoptions.maxallowed,clipmin:x.autorangeoptions.clipmin,clipmax:x.autorangeoptions.clipmax,include:x.autorangeoptions.include,editType:"plot"},autorange:E({},x.autorange,{editType:"plot"}),rangemode:{valType:"enumerated",values:["tozero","nonnegative","normal"],dflt:"tozero",editType:"calc"},minallowed:E({},x.minallowed,{editType:"plot"}),maxallowed:E({},x.maxallowed,{editType:"plot"}),range:E({},x.range,{items:[{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}}],editType:"plot"}),categoryorder:x.categoryorder,categoryarray:x.categoryarray,angle:{valType:"angle",editType:"plot"},autotickangles:x.autotickangles,side:{valType:"enumerated",values:["clockwise","counterclockwise"],dflt:"clockwise",editType:"plot"},title:{text:E({},x.title.text,{editType:"plot",dflt:""}),font:E({},x.title.font,{editType:"plot"}),editType:"plot"},hoverformat:x.hoverformat,uirevision:{valType:"any",editType:"none"},editType:"calc"};E(i,t,r);var a={visible:E({},x.visible,{dflt:!0}),type:{valType:"enumerated",values:["-","linear","category"],dflt:"-",editType:"calc",_noTemplating:!0},autotypenumbers:x.autotypenumbers,categoryorder:x.categoryorder,categoryarray:x.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:x.hoverformat,uirevision:{valType:"any",editType:"none"},editType:"calc"};E(a,t,r),H.exports={domain:A({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:h.background},radialaxis:i,angularaxis:a,gridshape:{valType:"enumerated",values:["circular","linear"],dflt:"circular",editType:"plot"},uirevision:{valType:"any",editType:"none"},editType:"calc"}}}),Nz=He({"src/plots/polar/layout_defaults.js"(Y,H){var h=Qr(),x=zi(),A=cl(),E=Yd(),e=$f().getSubplotData,t=Mp(),r=N0(),i=qd(),a=Gd(),o=b1(),n=sm(),s=Ob(),c=j0(),f=IA(),p=CA(),v=Tx(),T=v.axisNames;function l(w,S,M,_){var b=M("bgcolor");_.bgColor=x.combine(b,_.paper_bgcolor);var d=M("sector");M("hole");var u=e(_.fullData,v.name,_.id),g=_.layoutOut,y;function R(xe,Ae){return M(y+"."+xe,Ae)}for(var I=0;I")}}H.exports={hoverPoints:x,makeHoverPointText:A}}}),Vz=He({"src/traces/scatterpolar/index.js"(Y,H){H.exports={moduleType:"trace",name:"scatterpolar",basePlotModule:Sx(),categories:["polar","symbols","showLegend","scatter-like"],attributes:ty(),supplyDefaults:Mx().supplyDefaults,colorbar:ch(),formatLabels:Ex(),calc:Uz(),plot:jz(),style:zh().style,styleOnSelect:zh().styleOnSelect,hoverPoints:kx().hoverPoints,selectPoints:Z0(),meta:{}}}}),qz=He({"lib/scatterpolar.js"(Y,H){H.exports=Vz()}}),RA=He({"src/traces/scatterpolargl/attributes.js"(Y,H){var h=ty(),x=Wm(),A=us().texttemplateAttrs;H.exports={mode:h.mode,r:h.r,theta:h.theta,r0:h.r0,dr:h.dr,theta0:h.theta0,dtheta:h.dtheta,thetaunit:h.thetaunit,text:h.text,texttemplate:A({editType:"plot"},{keys:["r","theta","text"]}),hovertext:h.hovertext,hovertemplate:h.hovertemplate,line:{color:x.line.color,width:x.line.width,dash:x.line.dash,editType:"calc"},connectgaps:x.connectgaps,marker:x.marker,fill:x.fill,fillcolor:x.fillcolor,textposition:x.textposition,textfont:x.textfont,hoverinfo:h.hoverinfo,selected:h.selected,unselected:h.unselected}}}),Gz=He({"src/traces/scatterpolargl/defaults.js"(Y,H){var h=Qr(),x=cu(),A=Mx().handleRThetaDefaults,E=Zh(),e=rv(),t=av(),r=bv(),i=Uv().PTS_LINESONLY,a=RA();H.exports=function(n,s,c,f){function p(T,l){return h.coerce(n,s,a,T,l)}var v=A(n,s,f,p);if(!v){s.visible=!1;return}p("thetaunit"),p("mode",v=r&&(_.marker.cluster=m.tree),_.marker&&(_.markerSel.positions=_.markerUnsel.positions=_.marker.positions=g),_.line&&g.length>1&&t.extendFlat(_.line,e.linePositions(o,l,g)),_.text&&(t.extendFlat(_.text,{positions:g},e.textPosition(o,l,_.text,_.marker)),t.extendFlat(_.textSel,{positions:g},e.textPosition(o,l,_.text,_.markerSel)),t.extendFlat(_.textUnsel,{positions:g},e.textPosition(o,l,_.text,_.markerUnsel))),_.fill&&!p.fill2d&&(p.fill2d=!0),_.marker&&!p.scatter2d&&(p.scatter2d=!0),_.line&&!p.line2d&&(p.line2d=!0),_.text&&!p.glText&&(p.glText=!0),p.lineOptions.push(_.line),p.fillOptions.push(_.fill),p.markerOptions.push(_.marker),p.markerSelectedOptions.push(_.markerSel),p.markerUnselectedOptions.push(_.markerUnsel),p.textOptions.push(_.text),p.textSelectedOptions.push(_.textSel),p.textUnselectedOptions.push(_.textUnsel),p.selectBatch.push([]),p.unselectBatch.push([]),m.x=y,m.y=R,m.rawx=y,m.rawy=R,m.r=S,m.theta=M,m.positions=g,m._scene=p,m.index=p.count,p.count++}}),A(o,n,s)}},H.exports.reglPrecompiled=i}}),$z=He({"src/traces/scatterpolargl/index.js"(Y,H){var h=Zz();h.plot=Yz(),H.exports=h}}),Kz=He({"lib/scatterpolargl.js"(Y,H){H.exports=$z()}}),DA=He({"src/traces/barpolar/attributes.js"(Y,H){var h=us().hovertemplateAttrs,x=Po().extendFlat,A=ty(),E=Vv();H.exports={r:A.r,theta:A.theta,r0:A.r0,dr:A.dr,theta0:A.theta0,dtheta:A.dtheta,thetaunit:A.thetaunit,base:x({},E.base,{}),offset:x({},E.offset,{}),width:x({},E.width,{}),text:x({},E.text,{}),hovertext:x({},E.hovertext,{}),marker:e(),hoverinfo:A.hoverinfo,hovertemplate:h(),selected:E.selected,unselected:E.unselected};function e(){var t=x({},E.marker);return delete t.cornerradius,t}}}),zA=He({"src/traces/barpolar/layout_attributes.js"(Y,H){H.exports={barmode:{valType:"enumerated",values:["stack","overlay"],dflt:"stack",editType:"calc"},bargap:{valType:"number",dflt:.1,min:0,max:1,editType:"calc"}}}}),Jz=He({"src/traces/barpolar/defaults.js"(Y,H){var h=Qr(),x=Mx().handleRThetaDefaults,A=L1(),E=DA();H.exports=function(t,r,i,a){function o(s,c){return h.coerce(t,r,E,s,c)}var n=x(t,r,a,o);if(!n){r.visible=!1;return}o("thetaunit"),o("base"),o("offset"),o("width"),o("text"),o("hovertext"),o("hovertemplate"),A(t,r,o,i,a),h.coerceSelectionMarkerOpacity(r,o)}}}),Qz=He({"src/traces/barpolar/layout_defaults.js"(Y,H){var h=Qr(),x=zA();H.exports=function(A,E,e){var t={},r;function i(n,s){return h.coerce(A[r]||{},E[r],x,n,s)}for(var a=0;a0?(f=s,p=c):(f=c,p=s);var v=e.findEnclosingVertexAngles(f,r.vangles)[0],T=e.findEnclosingVertexAngles(p,r.vangles)[1],l=[v,(f+p)/2,T];return e.pathPolygonAnnulus(o,n,f,p,l,i,a)}:function(o,n,s,c){return A.pathAnnulus(o,n,s,c,i,a)}}}}),t8=He({"src/traces/barpolar/hover.js"(Y,H){var h=xc(),x=Qr(),A=Y0().getTraceColor,E=x.fillText,e=kx().makeHoverPointText,t=Ax().isPtInsidePolygon;H.exports=function(i,a,o){var n=i.cd,s=n[0].trace,c=i.subplot,f=c.radialAxis,p=c.angularAxis,v=c.vangles,T=v?t:x.isPtInsideSector,l=i.maxHoverDistance,m=p._period||2*Math.PI,w=Math.abs(f.g2p(Math.sqrt(a*a+o*o))),S=Math.atan2(o,a);f.range[0]>f.range[1]&&(S+=Math.PI);var M=function(u){return T(w,S,[u.rp0,u.rp1],[u.thetag0,u.thetag1],v)?l+Math.min(1,Math.abs(u.thetag1-u.thetag0)/m)-1+(u.rp1-w)/(u.rp1-u.rp0)-1:1/0};if(h.getClosest(n,M,i),i.index!==!1){var _=i.index,b=n[_];i.x0=i.x1=b.ct[0],i.y0=i.y1=b.ct[1];var d=x.extendFlat({},b,{r:b.s,theta:b.p});return E(b,s,i),e(d,s,c,i),i.hovertemplate=s.hovertemplate,i.color=A(s,b),i.xLabelVal=i.yLabelVal=void 0,b.s<0&&(i.idealAlign="left"),[i]}}}}),r8=He({"src/traces/barpolar/index.js"(Y,H){H.exports={moduleType:"trace",name:"barpolar",basePlotModule:Sx(),categories:["polar","bar","showLegend"],attributes:DA(),layoutAttributes:zA(),supplyDefaults:Jz(),supplyLayoutDefaults:Qz(),calc:FA().calc,crossTraceCalc:FA().crossTraceCalc,plot:e8(),colorbar:ch(),formatLabels:Ex(),style:sv().style,styleOnSelect:sv().styleOnSelect,hoverPoints:t8(),selectPoints:$0(),meta:{}}}}),a8=He({"lib/barpolar.js"(Y,H){H.exports=r8()}}),OA=He({"src/plots/smith/constants.js"(Y,H){H.exports={attr:"subplot",name:"smith",axisNames:["realaxis","imaginaryaxis"],axisName2dataArray:{imaginaryaxis:"imag",realaxis:"real"}}}}),BA=He({"src/plots/smith/layout_attributes.js"(Y,H){var h=mf(),x=Kf(),A=Ku().attributes,E=Qr().extendFlat,e=Uu().overrideAll,t=e({color:x.color,showline:E({},x.showline,{dflt:!0}),linecolor:x.linecolor,linewidth:x.linewidth,showgrid:E({},x.showgrid,{dflt:!0}),gridcolor:x.gridcolor,gridwidth:x.gridwidth,griddash:x.griddash},"plot","from-root"),r=e({ticklen:x.ticklen,tickwidth:E({},x.tickwidth,{dflt:2}),tickcolor:x.tickcolor,showticklabels:x.showticklabels,labelalias:x.labelalias,showtickprefix:x.showtickprefix,tickprefix:x.tickprefix,showticksuffix:x.showticksuffix,ticksuffix:x.ticksuffix,tickfont:x.tickfont,tickformat:x.tickformat,hoverformat:x.hoverformat,layer:x.layer},"plot","from-root"),i=E({visible:E({},x.visible,{dflt:!0}),tickvals:{dflt:[.2,.5,1,2,5],valType:"data_array",editType:"plot"},tickangle:E({},x.tickangle,{dflt:90}),ticks:{valType:"enumerated",values:["top","bottom",""],editType:"ticks"},side:{valType:"enumerated",values:["top","bottom"],dflt:"top",editType:"plot"},editType:"calc"},t,r),a=E({visible:E({},x.visible,{dflt:!0}),tickvals:{valType:"data_array",editType:"plot"},ticks:x.ticks,editType:"calc"},t,r);H.exports={domain:A({name:"smith",editType:"plot"}),bgcolor:{valType:"color",editType:"plot",dflt:h.background},realaxis:i,imaginaryaxis:a,editType:"calc"}}}),n8=He({"src/plots/smith/layout_defaults.js"(Y,H){var h=Qr(),x=zi(),A=cl(),E=Yd(),e=$f().getSubplotData,t=Gd(),r=qd(),i=sm(),a=Nv(),o=BA(),n=OA(),s=n.axisNames,c=p(function(v){return h.isTypedArray(v)&&(v=Array.from(v)),v.slice().reverse().map(function(T){return-T}).concat([0]).concat(v)},String);function f(v,T,l,m){var w=l("bgcolor");m.bgColor=x.combine(w,m.paper_bgcolor);var S=e(m.fullData,n.name,m.id),M=m.layoutOut,_;function b(U,X){return l(_+"."+U,X)}for(var d=0;d")}}H.exports={hoverPoints:x,makeHoverPointText:A}}}),f8=He({"src/traces/scattersmith/index.js"(Y,H){H.exports={moduleType:"trace",name:"scattersmith",basePlotModule:i8(),categories:["smith","symbols","showLegend","scatter-like"],attributes:NA(),supplyDefaults:o8(),colorbar:ch(),formatLabels:s8(),calc:l8(),plot:u8(),style:zh().style,styleOnSelect:zh().styleOnSelect,hoverPoints:c8().hoverPoints,selectPoints:Z0(),meta:{}}}}),h8=He({"lib/scattersmith.js"(Y,H){H.exports=f8()}}),mh=He({"node_modules/world-calendars/dist/main.js"(Y,H){var h=yf();function x(){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={}}h(x.prototype,{instance:function(i,a){i=(i||"gregorian").toLowerCase(),a=a||"";var o=this._localCals[i+"-"+a];if(!o&&this.calendars[i]&&(o=new this.calendars[i](a),this._localCals[i+"-"+a]=o),!o)throw(this.local.invalidCalendar||this.regionalOptions[""].invalidCalendar).replace(/\{0\}/,i);return o},newDate:function(i,a,o,n,s){return n=(i!=null&&i.year?i.calendar():typeof n=="string"?this.instance(n,s):n)||this.instance(),n.newDate(i,a,o)},substituteDigits:function(i){return function(a){return(a+"").replace(/[0-9]/g,function(o){return i[o]})}},substituteChineseDigits:function(i,a){return function(o){for(var n="",s=0;o>0;){var c=o%10;n=(c===0?"":i[c]+a[s])+n,s++,o=Math.floor(o/10)}return n.indexOf(i[1]+a[1])===0&&(n=n.substr(1)),n||i[0]}}});function A(i,a,o,n){if(this._calendar=i,this._year=a,this._month=o,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 E(i,a){return i=""+i,"000000".substring(0,a-i.length)+i}h(A.prototype,{newDate:function(i,a,o){return this._calendar.newDate(i??this,a,o)},year:function(i){return arguments.length===0?this._year:this.set(i,"y")},month:function(i){return arguments.length===0?this._month:this.set(i,"m")},day:function(i){return arguments.length===0?this._day:this.set(i,"d")},date:function(i,a,o){if(!this._calendar.isValid(i,a,o))throw(r.local.invalidDate||r.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=i,this._month=a,this._day=o,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(i,a){return this._calendar.add(this,i,a)},set:function(i,a){return this._calendar.set(this,i,a)},compareTo:function(i){if(this._calendar.name!==i._calendar.name)throw(r.local.differentCalendars||r.regionalOptions[""].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,i._calendar.local.name);var a=this._year!==i._year?this._year-i._year:this._month!==i._month?this.monthOfYear()-i.monthOfYear():this._day-i._day;return a===0?0:a<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(i){return this._calendar.fromJD(i)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(i){return this._calendar.fromJSDate(i)},toString:function(){return(this.year()<0?"-":"")+E(Math.abs(this.year()),4)+"-"+E(this.month(),2)+"-"+E(this.day(),2)}});function e(){this.shortYearCutoff="+10"}h(e.prototype,{_validateLevel:0,newDate:function(i,a,o){return i==null?this.today():(i.year&&(this._validate(i,a,o,r.local.invalidDate||r.regionalOptions[""].invalidDate),o=i.day(),a=i.month(),i=i.year()),new A(this,i,a,o))},today:function(){return this.fromJSDate(new Date)},epoch:function(i){var a=this._validate(i,this.minMonth,this.minDay,r.local.invalidYear||r.regionalOptions[""].invalidYear);return a.year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(i){var a=this._validate(i,this.minMonth,this.minDay,r.local.invalidYear||r.regionalOptions[""].invalidYear);return(a.year()<0?"-":"")+E(Math.abs(a.year()),4)},monthsInYear:function(i){return this._validate(i,this.minMonth,this.minDay,r.local.invalidYear||r.regionalOptions[""].invalidYear),12},monthOfYear:function(i,a){var o=this._validate(i,a,this.minDay,r.local.invalidMonth||r.regionalOptions[""].invalidMonth);return(o.month()+this.monthsInYear(o)-this.firstMonth)%this.monthsInYear(o)+this.minMonth},fromMonthOfYear:function(i,a){var o=(a+this.firstMonth-2*this.minMonth)%this.monthsInYear(i)+this.minMonth;return this._validate(i,o,this.minDay,r.local.invalidMonth||r.regionalOptions[""].invalidMonth),o},daysInYear:function(i){var a=this._validate(i,this.minMonth,this.minDay,r.local.invalidYear||r.regionalOptions[""].invalidYear);return this.leapYear(a)?366:365},dayOfYear:function(i,a,o){var n=this._validate(i,a,o,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(i,a,o){var n=this._validate(i,a,o,r.local.invalidDate||r.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(n))+2)%this.daysInWeek()},extraInfo:function(i,a,o){return this._validate(i,a,o,r.local.invalidDate||r.regionalOptions[""].invalidDate),{}},add:function(i,a,o){return this._validate(i,this.minMonth,this.minDay,r.local.invalidDate||r.regionalOptions[""].invalidDate),this._correctAdd(i,this._add(i,a,o),a,o)},_add:function(i,a,o){if(this._validateLevel++,o==="d"||o==="w"){var n=i.toJD()+a*(o==="w"?this.daysInWeek():1),s=i.calendar().fromJD(n);return this._validateLevel--,[s.year(),s.month(),s.day()]}try{var c=i.year()+(o==="y"?a:0),f=i.monthOfYear()+(o==="m"?a:0),s=i.day(),p=function(l){for(;fm-1+l.minMonth;)c++,f-=m,m=l.monthsInYear(c)};o==="y"?(i.month()!==this.fromMonthOfYear(c,f)&&(f=this.newDate(c,i.month(),this.minDay).monthOfYear()),f=Math.min(f,this.monthsInYear(c)),s=Math.min(s,this.daysInMonth(c,this.fromMonthOfYear(c,f)))):o==="m"&&(p(this),s=Math.min(s,this.daysInMonth(c,this.fromMonthOfYear(c,f))));var v=[c,this.fromMonthOfYear(c,f),s];return this._validateLevel--,v}catch(T){throw this._validateLevel--,T}},_correctAdd:function(i,a,o,n){if(!this.hasYearZero&&(n==="y"||n==="m")&&(a[0]===0||i.year()>0!=a[0]>0)){var s={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[n],c=o<0?-1:1;a=this._add(i,o*s[0]+c*s[1],s[2])}return i.date(a[0],a[1],a[2])},set:function(i,a,o){this._validate(i,this.minMonth,this.minDay,r.local.invalidDate||r.regionalOptions[""].invalidDate);var n=o==="y"?a:i.year(),s=o==="m"?a:i.month(),c=o==="d"?a:i.day();return(o==="y"||o==="m")&&(c=Math.min(c,this.daysInMonth(n,s))),i.date(n,s,c)},isValid:function(i,a,o){this._validateLevel++;var n=this.hasYearZero||i!==0;if(n){var s=this.newDate(i,a,this.minDay);n=a>=this.minMonth&&a-this.minMonth=this.minDay&&o-this.minDay13.5?13:1),T=s-(v>2.5?4716:4715);return T<=0&&T--,this.newDate(T,v,p)},toJSDate:function(i,a,o){var n=this._validate(i,a,o,r.local.invalidDate||r.regionalOptions[""].invalidDate),s=new Date(n.year(),n.month()-1,n.day());return s.setHours(0),s.setMinutes(0),s.setSeconds(0),s.setMilliseconds(0),s.setHours(s.getHours()>12?s.getHours()+2:0),s},fromJSDate:function(i){return this.newDate(i.getFullYear(),i.getMonth()+1,i.getDate())}});var r=H.exports=new x;r.cdate=A,r.baseCalendar=e,r.calendars.gregorian=t}}),v8=He({"node_modules/world-calendars/dist/plus.js"(){var Y=yf(),H=mh();Y(H.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"}),H.local=H.regionalOptions[""],Y(H.cdate.prototype,{formatDate:function(h,x){return typeof h!="string"&&(x=h,h=""),this._calendar.formatDate(h||"",this,x)}}),Y(H.baseCalendar.prototype,{UNIX_EPOCH:H.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:1440*60,TICKS_EPOCH:H.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(h,x,A){if(typeof h!="string"&&(A=x,x=h,h=""),!x)return"";if(x.calendar()!==this)throw H.local.invalidFormat||H.regionalOptions[""].invalidFormat;h=h||this.local.dateFormat,A=A||{};var E=A.dayNamesShort||this.local.dayNamesShort,e=A.dayNames||this.local.dayNames,t=A.monthNumbers||this.local.monthNumbers,r=A.monthNamesShort||this.local.monthNamesShort,i=A.monthNames||this.local.monthNames;A.calculateWeek||this.local.calculateWeek;for(var a=function(w,S){for(var M=1;m+M1},o=function(w,S,M,_){var b=""+S;if(a(w,_))for(;b.length1},m=function(R,I){var z=l(R,I),F=[2,3,z?4:2,z?4:2,10,11,20]["oyYJ@!".indexOf(R)+1],B=new RegExp("^-?\\d{1,"+F+"}"),O=x.substring(d).match(B);if(!O)throw(H.local.missingNumberAt||H.regionalOptions[""].missingNumberAt).replace(/\{0\}/,d);return d+=O[0].length,parseInt(O[0],10)},w=this,S=function(){if(typeof i=="function"){l("m");var R=i.call(w,x.substring(d));return d+=R.length,R}return m("m")},M=function(R,I,z,F){for(var B=l(R,F)?z:I,O=0;O-1){c=1,f=p;for(var y=this.daysInMonth(s,c);f>y;y=this.daysInMonth(s,c))c++,f-=y}return n>-1?this.fromJD(n):this.newDate(s,c,f)},determineDate:function(h,x,A,E,e){A&&typeof A!="object"&&(e=E,E=A,A=null),typeof E!="string"&&(e=E,E="");var t=this,r=function(i){try{return t.parseDate(E,i,e)}catch{}i=i.toLowerCase();for(var a=(i.match(/^c/)&&A?A.newDate():null)||t.today(),o=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,n=o.exec(i);n;)a.add(parseInt(n[1],10),n[2]||"d"),n=o.exec(i);return a};return x=x?x.newDate():null,h=h==null?x:typeof h=="string"?r(h):typeof h=="number"?isNaN(h)||h===1/0||h===-1/0?x:t.today().add(h,"d"):t.newDate(h),h}})}}),d8=He({"node_modules/world-calendars/dist/calendars/chinese.js"(){var Y=mh(),H=yf(),h=Y.instance();function x(n){this.local=this.regionalOptions[n||""]||this.regionalOptions[""]}x.prototype=new Y.baseCalendar,H(x.prototype,{name:"Chinese",jdEpoch:17214255e-1,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{"":{name:"Chinese",epochs:["BEC","EC"],monthNumbers:function(n,s){if(typeof n=="string"){var c=n.match(E);return c?c[0]:""}var f=this._validateYear(n),p=n.month(),v=""+this.toChineseMonth(f,p);return s&&v.length<2&&(v="0"+v),this.isIntercalaryMonth(f,p)&&(v+="i"),v},monthNames:function(n){if(typeof n=="string"){var s=n.match(e);return s?s[0]:""}var c=this._validateYear(n),f=n.month(),p=this.toChineseMonth(c,f),v=["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"][p-1];return this.isIntercalaryMonth(c,f)&&(v="闰"+v),v},monthNamesShort:function(n){if(typeof n=="string"){var s=n.match(t);return s?s[0]:""}var c=this._validateYear(n),f=n.month(),p=this.toChineseMonth(c,f),v=["一","二","三","四","五","六","七","八","九","十","十一","十二"][p-1];return this.isIntercalaryMonth(c,f)&&(v="闰"+v),v},parseMonth:function(n,s){n=this._validateYear(n);var c=parseInt(s),f;if(isNaN(c))s[0]==="闰"&&(f=!0,s=s.substring(1)),s[s.length-1]==="月"&&(s=s.substring(0,s.length-1)),c=1+["一","二","三","四","五","六","七","八","九","十","十一","十二"].indexOf(s);else{var p=s[s.length-1];f=p==="i"||p==="I"}var v=this.toMonthIndex(n,c,f);return v},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(n,s){if(n.year&&(n=n.year()),typeof n!="number"||n<1888||n>2111)throw s.replace(/\{0\}/,this.local.name);return n},toMonthIndex:function(n,s,c){var f=this.intercalaryMonth(n),p=c&&s!==f;if(p||s<1||s>12)throw Y.local.invalidMonth.replace(/\{0\}/,this.local.name);var v;return f?!c&&s<=f?v=s-1:v=s:v=s-1,v},toChineseMonth:function(n,s){n.year&&(n=n.year(),s=n.month());var c=this.intercalaryMonth(n),f=c?12:11;if(s<0||s>f)throw Y.local.invalidMonth.replace(/\{0\}/,this.local.name);var p;return c?s>13;return c},isIntercalaryMonth:function(n,s){n.year&&(n=n.year(),s=n.month());var c=this.intercalaryMonth(n);return!!c&&c===s},leapYear:function(n){return this.intercalaryMonth(n)!==0},weekOfYear:function(n,s,c){var f=this._validateYear(n,Y.local.invalidyear),p=i[f-i[0]],v=p>>9&4095,T=p>>5&15,l=p&31,m;m=h.newDate(v,T,l),m.add(4-(m.dayOfWeek()||7),"d");var w=this.toJD(n,s,c)-m.toJD();return 1+Math.floor(w/7)},monthsInYear:function(n){return this.leapYear(n)?13:12},daysInMonth:function(n,s){n.year&&(s=n.month(),n=n.year()),n=this._validateYear(n);var c=r[n-r[0]],f=c>>13,p=f?12:11;if(s>p)throw Y.local.invalidMonth.replace(/\{0\}/,this.local.name);var v=c&1<<12-s?30:29;return v},weekDay:function(n,s,c){return(this.dayOfWeek(n,s,c)||7)<6},toJD:function(n,s,c){var f=this._validate(n,v,c,Y.local.invalidDate);n=this._validateYear(f.year()),s=f.month(),c=f.day();var p=this.isIntercalaryMonth(n,s),v=this.toChineseMonth(n,s),T=o(n,v,c,p);return h.toJD(T.year,T.month,T.day)},fromJD:function(n){var s=h.fromJD(n),c=a(s.year(),s.month(),s.day()),f=this.toMonthIndex(c.year,c.month,c.isIntercalary);return this.newDate(c.year,f,c.day)},fromString:function(n){var s=n.match(A),c=this._validateYear(+s[1]),f=+s[2],p=!!s[3],v=this.toMonthIndex(c,f,p),T=+s[4];return this.newDate(c,v,T)},add:function(n,s,c){var f=n.year(),p=n.month(),v=this.isIntercalaryMonth(f,p),T=this.toChineseMonth(f,p),l=Object.getPrototypeOf(x.prototype).add.call(this,n,s,c);if(c==="y"){var m=l.year(),w=l.month(),S=this.isIntercalaryMonth(m,T),M=v&&S?this.toMonthIndex(m,T,!0):this.toMonthIndex(m,T,!1);M!==w&&l.month(M)}return l}});var A=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,E=/^\d?\d[iI]?/m,e=/^闰?十?[一二三四五六七八九]?月/m,t=/^闰?十?[一二三四五六七八九]?/m;Y.calendars.chinese=x;var r=[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],i=[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 a(n,s,c,f){var p,v;if(typeof n=="object")p=n,v=s||{};else{var T=typeof n=="number"&&n>=1888&&n<=2111;if(!T)throw new Error("Solar year outside range 1888-2111");var l=typeof s=="number"&&s>=1&&s<=12;if(!l)throw new Error("Solar month outside range 1 - 12");var m=typeof c=="number"&&c>=1&&c<=31;if(!m)throw new Error("Solar day outside range 1 - 31");p={year:n,month:s,day:c},v={}}var w=i[p.year-i[0]],S=p.year<<9|p.month<<5|p.day;v.year=S>=w?p.year:p.year-1,w=i[v.year-i[0]];var M=w>>9&4095,_=w>>5&15,b=w&31,d,u=new Date(M,_-1,b),g=new Date(p.year,p.month-1,p.day);d=Math.round((g-u)/(24*3600*1e3));var y=r[v.year-r[0]],R;for(R=0;R<13;R++){var I=y&1<<12-R?30:29;if(d>13;return!z||R=1888&&n<=2111;if(!l)throw new Error("Lunar year outside range 1888-2111");var m=typeof s=="number"&&s>=1&&s<=12;if(!m)throw new Error("Lunar month outside range 1 - 12");var w=typeof c=="number"&&c>=1&&c<=30;if(!w)throw new Error("Lunar day outside range 1 - 30");var S;typeof f=="object"?(S=!1,v=f):(S=!!f,v={}),T={year:n,month:s,day:c,isIntercalary:S}}var M;M=T.day-1;var _=r[T.year-r[0]],b=_>>13,d;b&&(T.month>b||T.isIntercalary)?d=T.month:d=T.month-1;for(var u=0;u>9&4095,I=y>>5&15,z=y&31,F=new Date(R,I-1,z+M);return v.year=F.getFullYear(),v.month=1+F.getMonth(),v.day=F.getDate(),v}}}),p8=He({"node_modules/world-calendars/dist/calendars/coptic.js"(){var Y=mh(),H=yf();function h(x){this.local=this.regionalOptions[x||""]||this.regionalOptions[""]}h.prototype=new Y.baseCalendar,H(h.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(E){var A=this._validate(E,this.minMonth,this.minDay,Y.local.invalidYear),E=A.year()+(A.year()<0?1:0);return E%4===3||E%4===-1},monthsInYear:function(x){return this._validate(x,this.minMonth,this.minDay,Y.local.invalidYear||Y.regionalOptions[""].invalidYear),13},weekOfYear:function(x,A,E){var e=this.newDate(x,A,E);return e.add(-e.dayOfWeek(),"d"),Math.floor((e.dayOfYear()-1)/7)+1},daysInMonth:function(x,A){var E=this._validate(x,A,this.minDay,Y.local.invalidMonth);return this.daysPerMonth[E.month()-1]+(E.month()===13&&this.leapYear(E.year())?1:0)},weekDay:function(x,A,E){return(this.dayOfWeek(x,A,E)||7)<6},toJD:function(x,A,E){var e=this._validate(x,A,E,Y.local.invalidDate);return x=e.year(),x<0&&x++,e.day()+(e.month()-1)*30+(x-1)*365+Math.floor(x/4)+this.jdEpoch-1},fromJD:function(x){var A=Math.floor(x)+.5-this.jdEpoch,E=Math.floor((A-Math.floor((A+366)/1461))/365)+1;E<=0&&E--,A=Math.floor(x)+.5-this.newDate(E,1,1).toJD();var e=Math.floor(A/30)+1,t=A-(e-1)*30+1;return this.newDate(E,e,t)}}),Y.calendars.coptic=h}}),g8=He({"node_modules/world-calendars/dist/calendars/discworld.js"(){var Y=mh(),H=yf();function h(A){this.local=this.regionalOptions[A||""]||this.regionalOptions[""]}h.prototype=new Y.baseCalendar,H(h.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(A){return this._validate(A,this.minMonth,this.minDay,Y.local.invalidYear),!1},monthsInYear:function(A){return this._validate(A,this.minMonth,this.minDay,Y.local.invalidYear),13},daysInYear:function(A){return this._validate(A,this.minMonth,this.minDay,Y.local.invalidYear),400},weekOfYear:function(A,E,e){var t=this.newDate(A,E,e);return t.add(-t.dayOfWeek(),"d"),Math.floor((t.dayOfYear()-1)/8)+1},daysInMonth:function(A,E){var e=this._validate(A,E,this.minDay,Y.local.invalidMonth);return this.daysPerMonth[e.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(A,E,e){var t=this._validate(A,E,e,Y.local.invalidDate);return(t.day()+1)%8},weekDay:function(A,E,e){var t=this.dayOfWeek(A,E,e);return t>=2&&t<=6},extraInfo:function(A,E,e){var t=this._validate(A,E,e,Y.local.invalidDate);return{century:x[Math.floor((t.year()-1)/100)+1]||""}},toJD:function(A,E,e){var t=this._validate(A,E,e,Y.local.invalidDate);return A=t.year()+(t.year()<0?1:0),E=t.month(),e=t.day(),e+(E>1?16:0)+(E>2?(E-2)*32:0)+(A-1)*400+this.jdEpoch-1},fromJD:function(A){A=Math.floor(A+.5)-Math.floor(this.jdEpoch)-1;var E=Math.floor(A/400)+1;A-=(E-1)*400,A+=A>15?16:0;var e=Math.floor(A/32)+1,t=A-(e-1)*32+1;return this.newDate(E<=0?E-1:E,e,t)}});var x={20:"Fruitbat",21:"Anchovy"};Y.calendars.discworld=h}}),m8=He({"node_modules/world-calendars/dist/calendars/ethiopian.js"(){var Y=mh(),H=yf();function h(x){this.local=this.regionalOptions[x||""]||this.regionalOptions[""]}h.prototype=new Y.baseCalendar,H(h.prototype,{name:"Ethiopian",jdEpoch:17242205e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Ethiopian",epochs:["BEE","EE"],monthNames:["Meskerem","Tikemet","Hidar","Tahesas","Tir","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehase","Pagume"],monthNamesShort:["Mes","Tik","Hid","Tah","Tir","Yek","Meg","Mia","Gen","Sen","Ham","Neh","Pag"],dayNames:["Ehud","Segno","Maksegno","Irob","Hamus","Arb","Kidame"],dayNamesShort:["Ehu","Seg","Mak","Iro","Ham","Arb","Kid"],dayNamesMin:["Eh","Se","Ma","Ir","Ha","Ar","Ki"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(E){var A=this._validate(E,this.minMonth,this.minDay,Y.local.invalidYear),E=A.year()+(A.year()<0?1:0);return E%4===3||E%4===-1},monthsInYear:function(x){return this._validate(x,this.minMonth,this.minDay,Y.local.invalidYear||Y.regionalOptions[""].invalidYear),13},weekOfYear:function(x,A,E){var e=this.newDate(x,A,E);return e.add(-e.dayOfWeek(),"d"),Math.floor((e.dayOfYear()-1)/7)+1},daysInMonth:function(x,A){var E=this._validate(x,A,this.minDay,Y.local.invalidMonth);return this.daysPerMonth[E.month()-1]+(E.month()===13&&this.leapYear(E.year())?1:0)},weekDay:function(x,A,E){return(this.dayOfWeek(x,A,E)||7)<6},toJD:function(x,A,E){var e=this._validate(x,A,E,Y.local.invalidDate);return x=e.year(),x<0&&x++,e.day()+(e.month()-1)*30+(x-1)*365+Math.floor(x/4)+this.jdEpoch-1},fromJD:function(x){var A=Math.floor(x)+.5-this.jdEpoch,E=Math.floor((A-Math.floor((A+366)/1461))/365)+1;E<=0&&E--,A=Math.floor(x)+.5-this.newDate(E,1,1).toJD();var e=Math.floor(A/30)+1,t=A-(e-1)*30+1;return this.newDate(E,e,t)}}),Y.calendars.ethiopian=h}}),y8=He({"node_modules/world-calendars/dist/calendars/hebrew.js"(){var Y=mh(),H=yf();function h(A){this.local=this.regionalOptions[A||""]||this.regionalOptions[""]}h.prototype=new Y.baseCalendar,H(h.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(A){var E=this._validate(A,this.minMonth,this.minDay,Y.local.invalidYear);return this._leapYear(E.year())},_leapYear:function(A){return A=A<0?A+1:A,x(A*7+1,19)<7},monthsInYear:function(A){return this._validate(A,this.minMonth,this.minDay,Y.local.invalidYear),this._leapYear(A.year?A.year():A)?13:12},weekOfYear:function(A,E,e){var t=this.newDate(A,E,e);return t.add(-t.dayOfWeek(),"d"),Math.floor((t.dayOfYear()-1)/7)+1},daysInYear:function(A){var E=this._validate(A,this.minMonth,this.minDay,Y.local.invalidYear);return A=E.year(),this.toJD(A===-1?1:A+1,7,1)-this.toJD(A,7,1)},daysInMonth:function(A,E){return A.year&&(E=A.month(),A=A.year()),this._validate(A,E,this.minDay,Y.local.invalidMonth),E===12&&this.leapYear(A)||E===8&&x(this.daysInYear(A),10)===5?30:E===9&&x(this.daysInYear(A),10)===3?29:this.daysPerMonth[E-1]},weekDay:function(A,E,e){return this.dayOfWeek(A,E,e)!==6},extraInfo:function(A,E,e){var t=this._validate(A,E,e,Y.local.invalidDate);return{yearType:(this.leapYear(t)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(t)%10-3]}},toJD:function(A,E,e){var t=this._validate(A,E,e,Y.local.invalidDate);A=t.year(),E=t.month(),e=t.day();var r=A<=0?A+1:A,i=this.jdEpoch+this._delay1(r)+this._delay2(r)+e+1;if(E<7){for(var a=7;a<=this.monthsInYear(A);a++)i+=this.daysInMonth(A,a);for(var a=1;a=this.toJD(E===-1?1:E+1,7,1);)E++;for(var e=Athis.toJD(E,e,this.daysInMonth(E,e));)e++;var t=A-this.toJD(E,e,1)+1;return this.newDate(E,e,t)}});function x(A,E){return A-E*Math.floor(A/E)}Y.calendars.hebrew=h}}),_8=He({"node_modules/world-calendars/dist/calendars/islamic.js"(){var Y=mh(),H=yf();function h(x){this.local=this.regionalOptions[x||""]||this.regionalOptions[""]}h.prototype=new Y.baseCalendar,H(h.prototype,{name:"Islamic",jdEpoch:19484395e-1,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Islamic",epochs:["BH","AH"],monthNames:["Muharram","Safar","Rabi' al-awwal","Rabi' al-thani","Jumada al-awwal","Jumada al-thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-ahad","Yawm al-ithnayn","Yawm ath-thulaathaa'","Yawm al-arbi'aa'","Yawm al-khamīs","Yawm al-jum'a","Yawm as-sabt"],dayNamesShort:["Aha","Ith","Thu","Arb","Kha","Jum","Sab"],dayNamesMin:["Ah","It","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(x){var A=this._validate(x,this.minMonth,this.minDay,Y.local.invalidYear);return(A.year()*11+14)%30<11},weekOfYear:function(x,A,E){var e=this.newDate(x,A,E);return e.add(-e.dayOfWeek(),"d"),Math.floor((e.dayOfYear()-1)/7)+1},daysInYear:function(x){return this.leapYear(x)?355:354},daysInMonth:function(x,A){var E=this._validate(x,A,this.minDay,Y.local.invalidMonth);return this.daysPerMonth[E.month()-1]+(E.month()===12&&this.leapYear(E.year())?1:0)},weekDay:function(x,A,E){return this.dayOfWeek(x,A,E)!==5},toJD:function(x,A,E){var e=this._validate(x,A,E,Y.local.invalidDate);return x=e.year(),A=e.month(),E=e.day(),x=x<=0?x+1:x,E+Math.ceil(29.5*(A-1))+(x-1)*354+Math.floor((3+11*x)/30)+this.jdEpoch-1},fromJD:function(x){x=Math.floor(x)+.5;var A=Math.floor((30*(x-this.jdEpoch)+10646)/10631);A=A<=0?A-1:A;var E=Math.min(12,Math.ceil((x-29-this.toJD(A,1,1))/29.5)+1),e=x-this.toJD(A,E,1)+1;return this.newDate(A,E,e)}}),Y.calendars.islamic=h}}),x8=He({"node_modules/world-calendars/dist/calendars/julian.js"(){var Y=mh(),H=yf();function h(x){this.local=this.regionalOptions[x||""]||this.regionalOptions[""]}h.prototype=new Y.baseCalendar,H(h.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(E){var A=this._validate(E,this.minMonth,this.minDay,Y.local.invalidYear),E=A.year()<0?A.year()+1:A.year();return E%4===0},weekOfYear:function(x,A,E){var e=this.newDate(x,A,E);return e.add(4-(e.dayOfWeek()||7),"d"),Math.floor((e.dayOfYear()-1)/7)+1},daysInMonth:function(x,A){var E=this._validate(x,A,this.minDay,Y.local.invalidMonth);return this.daysPerMonth[E.month()-1]+(E.month()===2&&this.leapYear(E.year())?1:0)},weekDay:function(x,A,E){return(this.dayOfWeek(x,A,E)||7)<6},toJD:function(x,A,E){var e=this._validate(x,A,E,Y.local.invalidDate);return x=e.year(),A=e.month(),E=e.day(),x<0&&x++,A<=2&&(x--,A+=12),Math.floor(365.25*(x+4716))+Math.floor(30.6001*(A+1))+E-1524.5},fromJD:function(x){var A=Math.floor(x+.5),E=A+1524,e=Math.floor((E-122.1)/365.25),t=Math.floor(365.25*e),r=Math.floor((E-t)/30.6001),i=r-Math.floor(r<14?1:13),a=e-Math.floor(i>2?4716:4715),o=E-t-Math.floor(30.6001*r);return a<=0&&a--,this.newDate(a,i,o)}}),Y.calendars.julian=h}}),b8=He({"node_modules/world-calendars/dist/calendars/mayan.js"(){var Y=mh(),H=yf();function h(E){this.local=this.regionalOptions[E||""]||this.regionalOptions[""]}h.prototype=new Y.baseCalendar,H(h.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,Y.local.invalidYear),!1},formatYear:function(E){var e=this._validate(E,this.minMonth,this.minDay,Y.local.invalidYear);E=e.year();var t=Math.floor(E/400);E=E%400,E+=E<0?400:0;var r=Math.floor(E/20);return t+"."+r+"."+E%20},forYear:function(E){if(E=E.split("."),E.length<3)throw"Invalid Mayan year";for(var e=0,t=0;t19||t>0&&r<0)throw"Invalid Mayan year";e=e*20+r}return e},monthsInYear:function(E){return this._validate(E,this.minMonth,this.minDay,Y.local.invalidYear),18},weekOfYear:function(E,e,t){return this._validate(E,e,t,Y.local.invalidDate),0},daysInYear:function(E){return this._validate(E,this.minMonth,this.minDay,Y.local.invalidYear),360},daysInMonth:function(E,e){return this._validate(E,e,this.minDay,Y.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(E,e,t){var r=this._validate(E,e,t,Y.local.invalidDate);return r.day()},weekDay:function(E,e,t){return this._validate(E,e,t,Y.local.invalidDate),!0},extraInfo:function(E,e,t){var r=this._validate(E,e,t,Y.local.invalidDate),i=r.toJD(),a=this._toHaab(i),o=this._toTzolkin(i);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 e=x(E+8+340,365);return[Math.floor(e/20)+1,x(e,20)]},_toTzolkin:function(E){return E-=this.jdEpoch,[A(E+20,20),A(E+4,13)]},toJD:function(E,e,t){var r=this._validate(E,e,t,Y.local.invalidDate);return r.day()+r.month()*20+r.year()*360+this.jdEpoch},fromJD:function(E){E=Math.floor(E)+.5-this.jdEpoch;var e=Math.floor(E/360);E=E%360,E+=E<0?360:0;var t=Math.floor(E/20),r=E%20;return this.newDate(e,t,r)}});function x(E,e){return E-e*Math.floor(E/e)}function A(E,e){return x(E-1,e)+1}Y.calendars.mayan=h}}),w8=He({"node_modules/world-calendars/dist/calendars/nanakshahi.js"(){var Y=mh(),H=yf();function h(A){this.local=this.regionalOptions[A||""]||this.regionalOptions[""]}h.prototype=new Y.baseCalendar;var x=Y.instance("gregorian");H(h.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(A){var E=this._validate(A,this.minMonth,this.minDay,Y.local.invalidYear||Y.regionalOptions[""].invalidYear);return x.leapYear(E.year()+(E.year()<1?1:0)+1469)},weekOfYear:function(A,E,e){var t=this.newDate(A,E,e);return t.add(1-(t.dayOfWeek()||7),"d"),Math.floor((t.dayOfYear()-1)/7)+1},daysInMonth:function(A,E){var e=this._validate(A,E,this.minDay,Y.local.invalidMonth);return this.daysPerMonth[e.month()-1]+(e.month()===12&&this.leapYear(e.year())?1:0)},weekDay:function(A,E,e){return(this.dayOfWeek(A,E,e)||7)<6},toJD:function(r,E,e){var t=this._validate(r,E,e,Y.local.invalidMonth),r=t.year();r<0&&r++;for(var i=t.day(),a=1;a=this.toJD(E+1,1,1);)E++;for(var e=A-Math.floor(this.toJD(E,1,1)+.5)+1,t=1;e>this.daysInMonth(E,t);)e-=this.daysInMonth(E,t),t++;return this.newDate(E,t,e)}}),Y.calendars.nanakshahi=h}}),T8=He({"node_modules/world-calendars/dist/calendars/nepali.js"(){var Y=mh(),H=yf();function h(x){this.local=this.regionalOptions[x||""]||this.regionalOptions[""]}h.prototype=new Y.baseCalendar,H(h.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(x){return this.daysInYear(x)!==this.daysPerYear},weekOfYear:function(x,A,E){var e=this.newDate(x,A,E);return e.add(-e.dayOfWeek(),"d"),Math.floor((e.dayOfYear()-1)/7)+1},daysInYear:function(x){var A=this._validate(x,this.minMonth,this.minDay,Y.local.invalidYear);if(x=A.year(),typeof this.NEPALI_CALENDAR_DATA[x]>"u")return this.daysPerYear;for(var E=0,e=this.minMonth;e<=12;e++)E+=this.NEPALI_CALENDAR_DATA[x][e];return E},daysInMonth:function(x,A){return x.year&&(A=x.month(),x=x.year()),this._validate(x,A,this.minDay,Y.local.invalidMonth),typeof this.NEPALI_CALENDAR_DATA[x]>"u"?this.daysPerMonth[A-1]:this.NEPALI_CALENDAR_DATA[x][A]},weekDay:function(x,A,E){return this.dayOfWeek(x,A,E)!==6},toJD:function(x,A,E){var e=this._validate(x,A,E,Y.local.invalidDate);x=e.year(),A=e.month(),E=e.day();var t=Y.instance(),r=0,i=A,a=x;this._createMissingCalendarData(x);var o=x-(i>9||i===9&&E>=this.NEPALI_CALENDAR_DATA[a][0]?56:57);for(A!==9&&(r=E,i--);i!==9;)i<=0&&(i=12,a--),r+=this.NEPALI_CALENDAR_DATA[a][i],i--;return A===9?(r+=E-this.NEPALI_CALENDAR_DATA[a][0],r<0&&(r+=t.daysInYear(o))):r+=this.NEPALI_CALENDAR_DATA[a][9]-this.NEPALI_CALENDAR_DATA[a][0],t.newDate(o,1,1).add(r,"d").toJD()},fromJD:function(x){var A=Y.instance(),E=A.fromJD(x),e=E.year(),t=E.dayOfYear(),r=e+56;this._createMissingCalendarData(r);for(var i=9,a=this.NEPALI_CALENDAR_DATA[r][0],o=this.NEPALI_CALENDAR_DATA[r][i]-a+1;t>o;)i++,i>12&&(i=1,r++),o+=this.NEPALI_CALENDAR_DATA[r][i];var n=this.NEPALI_CALENDAR_DATA[r][i]-(o-t);return this.newDate(r,i,n)},_createMissingCalendarData:function(x){var A=this.daysPerMonth.slice(0);A.unshift(17);for(var E=x-1;E"u"&&(this.NEPALI_CALENDAR_DATA[E]=A)},NEPALI_CALENDAR_DATA:{1970:[18,31,31,32,31,31,31,30,29,30,29,30,30],1971:[18,31,31,32,31,32,30,30,29,30,29,30,30],1972:[17,31,32,31,32,31,30,30,30,29,29,30,30],1973:[19,30,32,31,32,31,30,30,30,29,30,29,31],1974:[19,31,31,32,30,31,31,30,29,30,29,30,30],1975:[18,31,31,32,32,30,31,30,29,30,29,30,30],1976:[17,31,32,31,32,31,30,30,30,29,29,30,31],1977:[18,31,32,31,32,31,31,29,30,29,30,29,31],1978:[18,31,31,32,31,31,31,30,29,30,29,30,30],1979:[18,31,31,32,32,31,30,30,29,30,29,30,30],1980:[17,31,32,31,32,31,30,30,30,29,29,30,31],1981:[18,31,31,31,32,31,31,29,30,30,29,30,30],1982:[18,31,31,32,31,31,31,30,29,30,29,30,30],1983:[18,31,31,32,32,31,30,30,29,30,29,30,30],1984:[17,31,32,31,32,31,30,30,30,29,29,30,31],1985:[18,31,31,31,32,31,31,29,30,30,29,30,30],1986:[18,31,31,32,31,31,31,30,29,30,29,30,30],1987:[18,31,32,31,32,31,30,30,29,30,29,30,30],1988:[17,31,32,31,32,31,30,30,30,29,29,30,31],1989:[18,31,31,31,32,31,31,30,29,30,29,30,30],1990:[18,31,31,32,31,31,31,30,29,30,29,30,30],1991:[18,31,32,31,32,31,30,30,29,30,29,30,30],1992:[17,31,32,31,32,31,30,30,30,29,30,29,31],1993:[18,31,31,31,32,31,31,30,29,30,29,30,30],1994:[18,31,31,32,31,31,31,30,29,30,29,30,30],1995:[17,31,32,31,32,31,30,30,30,29,29,30,30],1996:[17,31,32,31,32,31,30,30,30,29,30,29,31],1997:[18,31,31,32,31,31,31,30,29,30,29,30,30],1998:[18,31,31,32,31,31,31,30,29,30,29,30,30],1999:[17,31,32,31,32,31,30,30,30,29,29,30,31],2e3:[17,30,32,31,32,31,30,30,30,29,30,29,31],2001:[18,31,31,32,31,31,31,30,29,30,29,30,30],2002:[18,31,31,32,32,31,30,30,29,30,29,30,30],2003:[17,31,32,31,32,31,30,30,30,29,29,30,31],2004:[17,30,32,31,32,31,30,30,30,29,30,29,31],2005:[18,31,31,32,31,31,31,30,29,30,29,30,30],2006:[18,31,31,32,32,31,30,30,29,30,29,30,30],2007:[17,31,32,31,32,31,30,30,30,29,29,30,31],2008:[17,31,31,31,32,31,31,29,30,30,29,29,31],2009:[18,31,31,32,31,31,31,30,29,30,29,30,30],2010:[18,31,31,32,32,31,30,30,29,30,29,30,30],2011:[17,31,32,31,32,31,30,30,30,29,29,30,31],2012:[17,31,31,31,32,31,31,29,30,30,29,30,30],2013:[18,31,31,32,31,31,31,30,29,30,29,30,30],2014:[18,31,31,32,32,31,30,30,29,30,29,30,30],2015:[17,31,32,31,32,31,30,30,30,29,29,30,31],2016:[17,31,31,31,32,31,31,29,30,30,29,30,30],2017:[18,31,31,32,31,31,31,30,29,30,29,30,30],2018:[18,31,32,31,32,31,30,30,29,30,29,30,30],2019:[17,31,32,31,32,31,30,30,30,29,30,29,31],2020:[17,31,31,31,32,31,31,30,29,30,29,30,30],2021:[18,31,31,32,31,31,31,30,29,30,29,30,30],2022:[17,31,32,31,32,31,30,30,30,29,29,30,30],2023:[17,31,32,31,32,31,30,30,30,29,30,29,31],2024:[17,31,31,31,32,31,31,30,29,30,29,30,30],2025:[18,31,31,32,31,31,31,30,29,30,29,30,30],2026:[17,31,32,31,32,31,30,30,30,29,29,30,31],2027:[17,30,32,31,32,31,30,30,30,29,30,29,31],2028:[17,31,31,32,31,31,31,30,29,30,29,30,30],2029:[18,31,31,32,31,32,30,30,29,30,29,30,30],2030:[17,31,32,31,32,31,30,30,30,30,30,30,31],2031:[17,31,32,31,32,31,31,31,31,31,31,31,31],2032:[17,32,32,32,32,32,32,32,32,32,32,32,32],2033:[18,31,31,32,32,31,30,30,29,30,29,30,30],2034:[17,31,32,31,32,31,30,30,30,29,29,30,31],2035:[17,30,32,31,32,31,31,29,30,30,29,29,31],2036:[17,31,31,32,31,31,31,30,29,30,29,30,30],2037:[18,31,31,32,32,31,30,30,29,30,29,30,30],2038:[17,31,32,31,32,31,30,30,30,29,29,30,31],2039:[17,31,31,31,32,31,31,29,30,30,29,30,30],2040:[17,31,31,32,31,31,31,30,29,30,29,30,30],2041:[18,31,31,32,32,31,30,30,29,30,29,30,30],2042:[17,31,32,31,32,31,30,30,30,29,29,30,31],2043:[17,31,31,31,32,31,31,29,30,30,29,30,30],2044:[17,31,31,32,31,31,31,30,29,30,29,30,30],2045:[18,31,32,31,32,31,30,30,29,30,29,30,30],2046:[17,31,32,31,32,31,30,30,30,29,29,30,31],2047:[17,31,31,31,32,31,31,30,29,30,29,30,30],2048:[17,31,31,32,31,31,31,30,29,30,29,30,30],2049:[17,31,32,31,32,31,30,30,30,29,29,30,30],2050:[17,31,32,31,32,31,30,30,30,29,30,29,31],2051:[17,31,31,31,32,31,31,30,29,30,29,30,30],2052:[17,31,31,32,31,31,31,30,29,30,29,30,30],2053:[17,31,32,31,32,31,30,30,30,29,29,30,30],2054:[17,31,32,31,32,31,30,30,30,29,30,29,31],2055:[17,31,31,32,31,31,31,30,29,30,30,29,30],2056:[17,31,31,32,31,32,30,30,29,30,29,30,30],2057:[17,31,32,31,32,31,30,30,30,29,29,30,31],2058:[17,30,32,31,32,31,30,30,30,29,30,29,31],2059:[17,31,31,32,31,31,31,30,29,30,29,30,30],2060:[17,31,31,32,32,31,30,30,29,30,29,30,30],2061:[17,31,32,31,32,31,30,30,30,29,29,30,31],2062:[17,30,32,31,32,31,31,29,30,29,30,29,31],2063:[17,31,31,32,31,31,31,30,29,30,29,30,30],2064:[17,31,31,32,32,31,30,30,29,30,29,30,30],2065:[17,31,32,31,32,31,30,30,30,29,29,30,31],2066:[17,31,31,31,32,31,31,29,30,30,29,29,31],2067:[17,31,31,32,31,31,31,30,29,30,29,30,30],2068:[17,31,31,32,32,31,30,30,29,30,29,30,30],2069:[17,31,32,31,32,31,30,30,30,29,29,30,31],2070:[17,31,31,31,32,31,31,29,30,30,29,30,30],2071:[17,31,31,32,31,31,31,30,29,30,29,30,30],2072:[17,31,32,31,32,31,30,30,29,30,29,30,30],2073:[17,31,32,31,32,31,30,30,30,29,29,30,31],2074:[17,31,31,31,32,31,31,30,29,30,29,30,30],2075:[17,31,31,32,31,31,31,30,29,30,29,30,30],2076:[16,31,32,31,32,31,30,30,30,29,29,30,30],2077:[17,31,32,31,32,31,30,30,30,29,30,29,31],2078:[17,31,31,31,32,31,31,30,29,30,29,30,30],2079:[17,31,31,32,31,31,31,30,29,30,29,30,30],2080:[16,31,32,31,32,31,30,30,30,29,29,30,30],2081:[17,31,31,32,32,31,30,30,30,29,30,30,30],2082:[17,31,32,31,32,31,30,30,30,29,30,30,30],2083:[17,31,31,32,31,31,30,30,30,29,30,30,30],2084:[17,31,31,32,31,31,30,30,30,29,30,30,30],2085:[17,31,32,31,32,31,31,30,30,29,30,30,30],2086:[17,31,32,31,32,31,30,30,30,29,30,30,30],2087:[16,31,31,32,31,31,31,30,30,29,30,30,30],2088:[16,30,31,32,32,30,31,30,30,29,30,30,30],2089:[17,31,32,31,32,31,30,30,30,29,30,30,30],2090:[17,31,32,31,32,31,30,30,30,29,30,30,30],2091:[16,31,31,32,31,31,31,30,30,29,30,30,30],2092:[16,31,31,32,32,31,30,30,30,29,30,30,30],2093:[17,31,32,31,32,31,30,30,30,29,30,30,30],2094:[17,31,31,32,31,31,30,30,30,29,30,30,30],2095:[17,31,31,32,31,31,31,30,29,30,30,30,30],2096:[17,30,31,32,32,31,30,30,29,30,29,30,30],2097:[17,31,32,31,32,31,30,30,30,29,30,30,30],2098:[17,31,31,32,31,31,31,29,30,29,30,30,31],2099:[17,31,31,32,31,31,31,30,29,29,30,30,30],2100:[17,31,32,31,32,30,31,30,29,30,29,30,30]}}),Y.calendars.nepali=h}}),A8=He({"node_modules/world-calendars/dist/calendars/persian.js"(){var Y=mh(),H=yf();function h(A){this.local=this.regionalOptions[A||""]||this.regionalOptions[""]}function x(A){var E=A-475;A<0&&E++;var e=.242197,t=e*E,r=e*(E+1),i=t-Math.floor(t),a=r-Math.floor(r);return i>a}h.prototype=new Y.baseCalendar,H(h.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ārshanbeh","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(A){var E=this._validate(A,this.minMonth,this.minDay,Y.local.invalidYear);return x(E.year())},weekOfYear:function(A,E,e){var t=this.newDate(A,E,e);return t.add(-((t.dayOfWeek()+1)%7),"d"),Math.floor((t.dayOfYear()-1)/7)+1},daysInMonth:function(A,E){var e=this._validate(A,E,this.minDay,Y.local.invalidMonth);return this.daysPerMonth[e.month()-1]+(e.month()===12&&this.leapYear(e.year())?1:0)},weekDay:function(A,E,e){return this.dayOfWeek(A,E,e)!==5},toJD:function(A,E,e){var t=this._validate(A,E,e,Y.local.invalidDate);A=t.year(),E=t.month(),e=t.day();var r=0;if(A>0)for(var i=1;i0?A-1:A)*365+r+this.jdEpoch-1},fromJD:function(A){A=Math.floor(A)+.5;var E=475+(A-this.toJD(475,1,1))/365.242197,e=Math.floor(E);e<=0&&e--,A>this.toJD(e,12,x(e)?30:29)&&(e++,e===0&&e++);var t=A-this.toJD(e,1,1)+1,r=t<=186?Math.ceil(t/31):Math.ceil((t-6)/30),i=A-this.toJD(e,r,1)+1;return this.newDate(e,r,i)}}),Y.calendars.persian=h,Y.calendars.jalali=h}}),S8=He({"node_modules/world-calendars/dist/calendars/taiwan.js"(){var Y=mh(),H=yf(),h=Y.instance();function x(A){this.local=this.regionalOptions[A||""]||this.regionalOptions[""]}x.prototype=new Y.baseCalendar,H(x.prototype,{name:"Taiwan",jdEpoch:24194025e-1,yearsOffset:1911,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Taiwan",epochs:["BROC","ROC"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},leapYear:function(e){var E=this._validate(e,this.minMonth,this.minDay,Y.local.invalidYear),e=this._t2gYear(E.year());return h.leapYear(e)},weekOfYear:function(r,E,e){var t=this._validate(r,this.minMonth,this.minDay,Y.local.invalidYear),r=this._t2gYear(t.year());return h.weekOfYear(r,t.month(),t.day())},daysInMonth:function(A,E){var e=this._validate(A,E,this.minDay,Y.local.invalidMonth);return this.daysPerMonth[e.month()-1]+(e.month()===2&&this.leapYear(e.year())?1:0)},weekDay:function(A,E,e){return(this.dayOfWeek(A,E,e)||7)<6},toJD:function(r,E,e){var t=this._validate(r,E,e,Y.local.invalidDate),r=this._t2gYear(t.year());return h.toJD(r,t.month(),t.day())},fromJD:function(A){var E=h.fromJD(A),e=this._g2tYear(E.year());return this.newDate(e,E.month(),E.day())},_t2gYear:function(A){return A+this.yearsOffset+(A>=-this.yearsOffset&&A<=-1?1:0)},_g2tYear:function(A){return A-this.yearsOffset-(A>=1&&A<=this.yearsOffset?1:0)}}),Y.calendars.taiwan=x}}),M8=He({"node_modules/world-calendars/dist/calendars/thai.js"(){var Y=mh(),H=yf(),h=Y.instance();function x(A){this.local=this.regionalOptions[A||""]||this.regionalOptions[""]}x.prototype=new Y.baseCalendar,H(x.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(e){var E=this._validate(e,this.minMonth,this.minDay,Y.local.invalidYear),e=this._t2gYear(E.year());return h.leapYear(e)},weekOfYear:function(r,E,e){var t=this._validate(r,this.minMonth,this.minDay,Y.local.invalidYear),r=this._t2gYear(t.year());return h.weekOfYear(r,t.month(),t.day())},daysInMonth:function(A,E){var e=this._validate(A,E,this.minDay,Y.local.invalidMonth);return this.daysPerMonth[e.month()-1]+(e.month()===2&&this.leapYear(e.year())?1:0)},weekDay:function(A,E,e){return(this.dayOfWeek(A,E,e)||7)<6},toJD:function(r,E,e){var t=this._validate(r,E,e,Y.local.invalidDate),r=this._t2gYear(t.year());return h.toJD(r,t.month(),t.day())},fromJD:function(A){var E=h.fromJD(A),e=this._g2tYear(E.year());return this.newDate(e,E.month(),E.day())},_t2gYear:function(A){return A-this.yearsOffset-(A>=1&&A<=this.yearsOffset?1:0)},_g2tYear:function(A){return A+this.yearsOffset+(A>=-this.yearsOffset&&A<=-1?1:0)}}),Y.calendars.thai=x}}),E8=He({"node_modules/world-calendars/dist/calendars/ummalqura.js"(){var Y=mh(),H=yf();function h(A){this.local=this.regionalOptions[A||""]||this.regionalOptions[""]}h.prototype=new Y.baseCalendar,H(h.prototype,{name:"UmmAlQura",hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Umm al-Qura",epochs:["BH","AH"],monthNames:["Al-Muharram","Safar","Rabi' al-awwal","Rabi' Al-Thani","Jumada Al-Awwal","Jumada Al-Thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-Ahad","Yawm al-Ithnain","Yawm al-Thalāthā’","Yawm al-Arba‘ā’","Yawm al-Khamīs","Yawm al-Jum‘a","Yawm al-Sabt"],dayNamesMin:["Ah","Ith","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!0}},leapYear:function(A){var E=this._validate(A,this.minMonth,this.minDay,Y.local.invalidYear);return this.daysInYear(E.year())===355},weekOfYear:function(A,E,e){var t=this.newDate(A,E,e);return t.add(-t.dayOfWeek(),"d"),Math.floor((t.dayOfYear()-1)/7)+1},daysInYear:function(A){for(var E=0,e=1;e<=12;e++)E+=this.daysInMonth(A,e);return E},daysInMonth:function(A,E){for(var e=this._validate(A,E,this.minDay,Y.local.invalidMonth),t=e.toJD()-24e5+.5,r=0,i=0;it)return x[r]-x[r-1];r++}return 30},weekDay:function(A,E,e){return this.dayOfWeek(A,E,e)!==5},toJD:function(A,E,e){var t=this._validate(A,E,e,Y.local.invalidDate),r=12*(t.year()-1)+t.month()-15292,i=t.day()+x[r-1]-1;return i+24e5-.5},fromJD:function(A){for(var E=A-24e5+.5,e=0,t=0;tE);t++)e++;var r=e+15292,i=Math.floor((r-1)/12),a=i+1,o=r-12*i,n=E-x[e-1]+1;return this.newDate(a,o,n)},isValid:function(A,E,e){var t=Y.baseCalendar.prototype.isValid.apply(this,arguments);return t&&(A=A.year!=null?A.year:A,t=A>=1276&&A<=1500),t},_validate:function(A,E,e,t){var r=Y.baseCalendar.prototype._validate.apply(this,arguments);if(r.year<1276||r.year>1500)throw t.replace(/\{0\}/,this.local.name);return r}}),Y.calendars.ummalqura=h;var x=[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]}}),k8=He({"src/components/calendars/calendars.js"(Y,H){H.exports=mh(),v8(),d8(),p8(),g8(),m8(),y8(),_8(),x8(),b8(),w8(),T8(),A8(),S8(),M8(),E8()}}),C8=He({"src/components/calendars/index.js"(Y,H){var h=k8(),x=Qr(),A=qo(),E=A.EPOCHJD,e=A.ONEDAY,t={valType:"enumerated",values:x.sortObjectKeys(h.calendars),editType:"calc",dflt:"gregorian"},r=function(_,b,d,u){var g={};return g[d]=t,x.coerce(_,b,g,d,u)},i=function(_,b,d,u){for(var g=0;g - * @license MIT - *//*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh *//*! - * Determine if an object is a Buffer - * - * @author Feross Aboukhadijeh - * @license MIT - *//*! - * pad-left - * - * Copyright (c) 2014-2015, Jon Schlinkert. - * Licensed under the MIT license. - *//*! - * repeat-string - * - * Copyright (c) 2014-2015, Jon Schlinkert. - * Licensed under the MIT License. - *//*! Bundled license information: - - native-promise-only/lib/npo.src.js: - (*! Native Promise Only - v0.8.1 (c) Kyle Simpson - MIT License: http://getify.mit-license.org - *) - - polybooljs/index.js: - (* - * @copyright 2016 Sean Connelly (@voidqk), http://syntheti.cc - * @license MIT - * @preserve Project Home: https://github.com/voidqk/polybooljs - *) - - ieee754/index.js: - (*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh *) - - buffer/index.js: - (*! - * The buffer module from node.js, for the browser. - * - * @author Feross Aboukhadijeh - * @license MIT - *) - - safe-buffer/index.js: - (*! safe-buffer. MIT License. Feross Aboukhadijeh *) - - assert/build/internal/util/comparisons.js: - (*! - * The buffer module from node.js, for the browser. - * - * @author Feross Aboukhadijeh - * @license MIT - *) - - object-assign/index.js: - (* - object-assign - (c) Sindre Sorhus - @license MIT - *) - - maplibre-gl/dist/maplibre-gl.js: - (** - * MapLibre GL JS - * @license 3-Clause BSD. Full text of license: https://github.com/maplibre/maplibre-gl-js/blob/v4.7.1/LICENSE.txt - *) - */return window.Plotly=mu,mu})}(Xg)),Xg.exports}var _b;function _S(){return _b||(_b=1,function(zl){Object.defineProperty(zl,"__esModule",{value:!0}),zl.default=void 0;var mu=Es(gS()),Oc=Es(yS());function Es(Bf){return Bf&&Bf.__esModule?Bf:{default:Bf}}var Ul=(0,mu.default)(Oc.default),Bc=Ul;zl.default=Bc}(Yy)),Yy}var xS=_S();const xb=cS(xS),bb=1e3,bS=({value:zl})=>{const[mu,Oc]=Wh.useState(zl),Es=Wh.useRef(zl),Ul=Wh.useRef(null),Bc=Wh.useRef(0),Bf=Wh.useCallback(()=>{Ul.current&&clearTimeout(Ul.current);const tv=Date.now()-Bc.current,Od=Math.max(0,bb-tv);Ul.current=setTimeout(()=>{Oc(Es.current),Bc.current=Date.now(),Ul.current=null},Od)},[]);if(Wh.useEffect(()=>(Es.current=zl,Bf(),()=>{Ul.current&&clearTimeout(Ul.current)}),[zl,Bf]),!mu)return Eh.jsx(Eh.Fragment,{});if(typeof mu!="object")return Eh.jsx(Eh.Fragment,{});if(!("data"in mu)||!("layout"in mu))return Eh.jsx(Eh.Fragment,{});const{data:Rh,layout:Fv,...nd}=mu,ev=Fv;return ev.autosize=!0,Eh.jsx("div",{className:"funcnodes_plotly_container",children:Eh.jsx(xb,{data:Rh,layout:ev,config:{staticPlot:!0,displayModeBar:!1,responsive:!0,doubleClick:!1,scrollZoom:!1},useResizeHandler:!0,style:{width:"100%",height:"100%",pointerEvents:"none"},...nd})})},wS=({value:zl})=>{const[mu,Oc]=Wh.useState(zl),Es=Wh.useRef(zl),Ul=Wh.useRef(null),Bc=Wh.useRef(0),Bf=Wh.useCallback(()=>{Ul.current&&clearTimeout(Ul.current);const tv=Date.now()-Bc.current,Od=Math.max(0,bb-tv);Ul.current=setTimeout(()=>{Oc(Es.current),Bc.current=Date.now(),Ul.current=null},Od)},[]);if(Wh.useEffect(()=>(Es.current=zl,Bf(),()=>{Ul.current&&clearTimeout(Ul.current)}),[zl,Bf]),!mu)return Eh.jsx(Eh.Fragment,{});if(typeof mu!="object")return Eh.jsx(Eh.Fragment,{});if(!("data"in mu)||!("layout"in mu))return Eh.jsx(Eh.Fragment,{});const{data:Rh,layout:Fv,...nd}=mu,ev=Fv;return ev.autosize=!0,Eh.jsx(xb,{data:Rh,layout:ev,style:{width:"100%",height:"100%"},useResizeHandler:!0,...nd})};return{renderpluginfactory:({})=>({data_preview_renderers:{"plotly.Figure":fb.DataViewRendererToDataPreviewViewRenderer(bS)},data_view_renderers:{"plotly.Figure":wS}}),v:fb.LATEST_VERSION}}(React,FuncNodesReactFlow); + */var p;function v(){if(p)return f;p=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function o(c,r,i){var u=null;if(i!==void 0&&(u=""+i),r.key!==void 0&&(u=""+r.key),"key"in r){i={};for(var a in r)a!=="key"&&(i[a]=r[a])}else i=r;return r=i.ref,{$$typeof:e,type:c,key:u,ref:r!==void 0?r:null,props:i}}return f.Fragment=t,f.jsx=o,f.jsxs=o,f}var m;function _(){return m||(m=1,R.exports=v()),R.exports}var n=_();const E=1e3;function T(e){const t={...e};return t.autosize=!0,t.font={...t.font||{},family:"Arial, Helvetica, sans-serif"},t}function P({value:e,staticMode:t}){const o=s.useRef(null),c=s.useRef(e),r=s.useRef(null),i=s.useRef(0),u=s.useRef(null),a=s.useRef(!1),y=s.useCallback(()=>{r.current&&clearTimeout(r.current);const x=Date.now()-i.current,k=Math.max(0,E-x);r.current=window.setTimeout(async()=>{if(!a.current)return;const d=c.current;if(!d||typeof d!="object"||!("data"in d)||!("layout"in d))return;const D=d.data||[],M=T(d.layout),S={staticPlot:t,displayModeBar:!t,responsive:!0,scrollZoom:!1,doubleClick:!1},h=o.current;if(!(!h||typeof window>"u"||!window.Plotly)){try{await window.Plotly.react(h,D,M,S)}catch(z){console.error("Plotly.react failed:",z)}i.current=Date.now(),r.current=null}},k)},[t]);return s.useEffect(()=>{a.current=!0;const l=o.current;return(()=>{l&&(u.current=new ResizeObserver(()=>{if(l&&window.Plotly)try{window.Plotly.Plots.resize(l)}catch{}}),u.current.observe(l))})(),y(),()=>{if(a.current=!1,r.current&&clearTimeout(r.current),u.current&&u.current.disconnect(),l&&window.Plotly)try{window.Plotly.purge(l)}catch{}}},[]),s.useEffect(()=>{c.current=e,y()},[e,y]),o}const F=({value:e})=>{const t=P({value:e,staticMode:!0});return typeof window>"u"?n.jsx(n.Fragment,{}):!e||typeof e!="object"||!("data"in e)||!("layout"in e)?n.jsx(n.Fragment,{}):n.jsx("div",{className:"funcnodes_plotly_container",style:{width:"100%",height:"100%",pointerEvents:"none"},children:n.jsx("div",{ref:t,style:{width:"100%",height:"100%"}})})},b=({value:e})=>{const t=P({value:e,staticMode:!1});return typeof window>"u"?n.jsx(n.Fragment,{}):!e||typeof e!="object"||!("data"in e)||!("layout"in e)?n.jsx(n.Fragment,{}):n.jsx("div",{className:"funcnodes_plotly_container",style:{width:"100%",height:"100%"},children:n.jsx("div",{ref:t,style:{width:"100%",height:"100%"}})})};return{renderpluginfactory:({})=>({data_preview_renderers:{"plotly.Figure":w.DataViewRendererToDataPreviewViewRenderer(F)},data_view_renderers:{"plotly.Figure":b}}),v:w.LATEST_VERSION}}(React,FuncNodesReactFlow); diff --git a/src/funcnodes_plotly/react_plugin/plotly-3.1.0.min.js b/src/funcnodes_plotly/react_plugin/plotly-3.1.0.min.js new file mode 100644 index 0000000..7ae27cd --- /dev/null +++ b/src/funcnodes_plotly/react_plugin/plotly-3.1.0.min.js @@ -0,0 +1,3882 @@ +/** +* plotly.js v3.1.0 +* Copyright 2012-2025, Plotly, Inc. +* All rights reserved. +* Licensed under the MIT license +*/ +( + function(root, factory) { + if (typeof module === "object" && module.exports) { + module.exports = factory(); + } else { + root.moduleName = factory(); + } +} (typeof self !== "undefined" ? self : this, () => { +"use strict";var Plotly=(()=>{var Uet=Object.create;var ES=Object.defineProperty,Vet=Object.defineProperties,Get=Object.getOwnPropertyDescriptor,Het=Object.getOwnPropertyDescriptors,jet=Object.getOwnPropertyNames,aee=Object.getOwnPropertySymbols,Wet=Object.getPrototypeOf,see=Object.prototype.hasOwnProperty,Xet=Object.prototype.propertyIsEnumerable;var oee=(e,t,r)=>t in e?ES(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,lee=(e,t)=>{for(var r in t||(t={}))see.call(t,r)&&oee(e,r,t[r]);if(aee)for(var r of aee(t))Xet.call(t,r)&&oee(e,r,t[r]);return e},uee=(e,t)=>Vet(e,Het(t));var ru=(e,t)=>()=>(e&&(t=e(e=0)),t);var ye=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),cee=(e,t)=>{for(var r in t)ES(e,r,{get:t[r],enumerable:!0})},fee=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of jet(t))!see.call(e,i)&&i!==r&&ES(e,i,{get:()=>t[i],enumerable:!(n=Get(t,i))||n.enumerable});return e};var Zet=(e,t,r)=>(r=e!=null?Uet(Wet(e)):{},fee(t||!e||!e.__esModule?ES(r,"default",{value:e,enumerable:!0}):r,e)),B1=e=>fee(ES({},"__esModule",{value:!0}),e);var o6=ye(hee=>{"use strict";hee.version="3.1.0"});var vee=ye((dee,s6)=>{(function(t,r,n){r[t]=r[t]||n(),typeof s6!="undefined"&&s6.exports&&(s6.exports=r[t])})("Promise",typeof window!="undefined"?window:dee,function(){"use strict";var t,r,n,i=Object.prototype.toString,a=typeof setImmediate!="undefined"?function(C){return setImmediate(C)}:setTimeout;try{Object.defineProperty({},"x",{}),t=function(C,E,A,L){return Object.defineProperty(C,E,{value:A,writable:!0,configurable:L!==!1})}}catch(p){t=function(E,A,L){return E[A]=L,E}}n=function(){var C,E,A;function L(_,k){this.fn=_,this.self=k,this.next=void 0}return{add:function(k,M){A=new L(k,M),E?E.next=A:C=A,E=A,A=void 0},drain:function(){var k=C;for(C=E=r=void 0;k;)k.fn.call(k.self),k=k.next}}}();function o(p,C){n.add(p,C),r||(r=a(n.drain))}function s(p){var C,E=typeof p;return p!=null&&(E=="object"||E=="function")&&(C=p.then),typeof C=="function"?C:!1}function l(){for(var p=0;p0&&o(l,E))}catch(A){f.call(new d(E),A)}}}function f(p){var C=this;C.triggered||(C.triggered=!0,C.def&&(C=C.def),C.msg=p,C.state=2,C.chain.length>0&&o(l,C))}function h(p,C,E,A){for(var L=0;L{(function(){var e={version:"3.8.2"},t=[].slice,r=function(X){return t.call(X)},n=self.document;function i(X){return X&&(X.ownerDocument||X.document||X).documentElement}function a(X){return X&&(X.ownerDocument&&X.ownerDocument.defaultView||X.document&&X||X.defaultView)}if(n)try{r(n.documentElement.childNodes)[0].nodeType}catch(X){r=function(se){for(var Te=se.length,Ne=new Array(Te);Te--;)Ne[Te]=se[Te];return Ne}}if(Date.now||(Date.now=function(){return+new Date}),n)try{n.createElement("DIV").style.setProperty("opacity",0,"")}catch(X){var o=this.Element.prototype,s=o.setAttribute,l=o.setAttributeNS,u=this.CSSStyleDeclaration.prototype,c=u.setProperty;o.setAttribute=function(se,Te){s.call(this,se,Te+"")},o.setAttributeNS=function(se,Te,Ne){l.call(this,se,Te,Ne+"")},u.setProperty=function(se,Te,Ne){c.call(this,se,Te+"",Ne)}}e.ascending=f;function f(X,se){return Xse?1:X>=se?0:NaN}e.descending=function(X,se){return seX?1:se>=X?0:NaN},e.min=function(X,se){var Te=-1,Ne=X.length,He,Ye;if(arguments.length===1){for(;++Te=Ye){He=Ye;break}for(;++TeYe&&(He=Ye)}else{for(;++Te=Ye){He=Ye;break}for(;++TeYe&&(He=Ye)}return He},e.max=function(X,se){var Te=-1,Ne=X.length,He,Ye;if(arguments.length===1){for(;++Te=Ye){He=Ye;break}for(;++TeHe&&(He=Ye)}else{for(;++Te=Ye){He=Ye;break}for(;++TeHe&&(He=Ye)}return He},e.extent=function(X,se){var Te=-1,Ne=X.length,He,Ye,Ct;if(arguments.length===1){for(;++Te=Ye){He=Ct=Ye;break}for(;++TeYe&&(He=Ye),Ct=Ye){He=Ct=Ye;break}for(;++TeYe&&(He=Ye),Ct1)return Ct/(jt-1)},e.deviation=function(){var X=e.variance.apply(this,arguments);return X&&Math.sqrt(X)};function v(X){return{left:function(se,Te,Ne,He){for(arguments.length<3&&(Ne=0),arguments.length<4&&(He=se.length);Ne>>1;X(se[Ye],Te)<0?Ne=Ye+1:He=Ye}return Ne},right:function(se,Te,Ne,He){for(arguments.length<3&&(Ne=0),arguments.length<4&&(He=se.length);Ne>>1;X(se[Ye],Te)>0?He=Ye:Ne=Ye+1}return Ne}}}var x=v(f);e.bisectLeft=x.left,e.bisect=e.bisectRight=x.right,e.bisector=function(X){return v(X.length===1?function(se,Te){return f(X(se),Te)}:X)},e.shuffle=function(X,se,Te){(Ne=arguments.length)<3&&(Te=X.length,Ne<2&&(se=0));for(var Ne=Te-se,He,Ye;Ne;)Ye=Math.random()*Ne--|0,He=X[Ne+se],X[Ne+se]=X[Ye+se],X[Ye+se]=He;return X},e.permute=function(X,se){for(var Te=se.length,Ne=new Array(Te);Te--;)Ne[Te]=X[se[Te]];return Ne},e.pairs=function(X){for(var se=0,Te=X.length-1,Ne,He=X[0],Ye=new Array(Te<0?0:Te);se=0;)for(Ct=X[se],Te=Ct.length;--Te>=0;)Ye[--He]=Ct[Te];return Ye};var p=Math.abs;e.range=function(X,se,Te){if(arguments.length<3&&(Te=1,arguments.length<2&&(se=X,X=0)),(se-X)/Te===1/0)throw new Error("infinite range");var Ne=[],He=C(p(Te)),Ye=-1,Ct;if(X*=He,se*=He,Te*=He,Te<0)for(;(Ct=X+Te*++Ye)>se;)Ne.push(Ct/He);else for(;(Ct=X+Te*++Ye)=se.length)return He?He.call(X,jt):Ne?jt.sort(Ne):jt;for(var yr=-1,Gr=jt.length,qr=se[gr++],_i,bi,Xr,ni=new A,gi;++yr=se.length)return nt;var gr=[],yr=Te[jt++];return nt.forEach(function(Gr,qr){gr.push({key:Gr,values:Ct(qr,jt)})}),yr?gr.sort(function(Gr,qr){return yr(Gr.key,qr.key)}):gr}return X.map=function(nt,jt){return Ye(jt,nt,0)},X.entries=function(nt){return Ct(Ye(e.map,nt,0),0)},X.key=function(nt){return se.push(nt),X},X.sortKeys=function(nt){return Te[se.length-1]=nt,X},X.sortValues=function(nt){return Ne=nt,X},X.rollup=function(nt){return He=nt,X},X},e.set=function(X){var se=new V;if(X)for(var Te=0,Ne=X.length;Te=0&&(Ne=X.slice(Te+1),X=X.slice(0,Te)),X)return arguments.length<2?this[X].on(Ne):this[X].on(Ne,se);if(arguments.length===2){if(se==null)for(X in this)this.hasOwnProperty(X)&&this[X].on(Ne,null);return this}};function oe(X){var se=[],Te=new A;function Ne(){for(var He=se,Ye=-1,Ct=He.length,nt;++Ye=0&&(Te=X.slice(0,se))!=="xmlns"&&(X=X.slice(se+1)),Ze.hasOwnProperty(Te)?{space:Ze[Te],local:X}:X}},Pe.attr=function(X,se){if(arguments.length<2){if(typeof X=="string"){var Te=this.node();return X=e.ns.qualify(X),X.local?Te.getAttributeNS(X.space,X.local):Te.getAttribute(X)}for(se in X)this.each(ct(se,X[se]));return this}return this.each(ct(X,se))};function ct(X,se){X=e.ns.qualify(X);function Te(){this.removeAttribute(X)}function Ne(){this.removeAttributeNS(X.space,X.local)}function He(){this.setAttribute(X,se)}function Ye(){this.setAttributeNS(X.space,X.local,se)}function Ct(){var jt=se.apply(this,arguments);jt==null?this.removeAttribute(X):this.setAttribute(X,jt)}function nt(){var jt=se.apply(this,arguments);jt==null?this.removeAttributeNS(X.space,X.local):this.setAttributeNS(X.space,X.local,jt)}return se==null?X.local?Ne:Te:typeof se=="function"?X.local?nt:Ct:X.local?Ye:He}function pt(X){return X.trim().replace(/\s+/g," ")}Pe.classed=function(X,se){if(arguments.length<2){if(typeof X=="string"){var Te=this.node(),Ne=(X=st(X)).length,He=-1;if(se=Te.classList){for(;++He=0;)(Ye=Te[Ne])&&(He&&He!==Ye.nextSibling&&He.parentNode.insertBefore(Ye,He),He=Ye);return this},Pe.sort=function(X){X=Et.apply(this,arguments);for(var se=-1,Te=this.length;++se=se&&(se=He+1);!(jt=Ct[se])&&++se0&&(X=X.slice(0,He));var Ct=Yt.get(X);Ct&&(X=Ct,Ye=Tr);function nt(){var yr=this[Ne];yr&&(this.removeEventListener(X,yr,yr.$),delete this[Ne])}function jt(){var yr=Ye(se,r(arguments));nt.call(this),this.addEventListener(X,this[Ne]=yr,yr.$=Te),yr._=se}function gr(){var yr=new RegExp("^__on([^.]+)"+e.requote(X)+"$"),Gr;for(var qr in this)if(Gr=qr.match(yr)){var _i=this[qr];this.removeEventListener(Gr[1],_i,_i.$),delete this[qr]}}return He?se?jt:nt:se?j:gr}var Yt=e.map({mouseenter:"mouseover",mouseleave:"mouseout"});n&&Yt.forEach(function(X){"on"+X in n&&Yt.remove(X)});function lr(X,se){return function(Te){var Ne=e.event;e.event=Te,se[0]=this.__data__;try{X.apply(this,se)}finally{e.event=Ne}}}function Tr(X,se){var Te=lr(X,se);return function(Ne){var He=this,Ye=Ne.relatedTarget;(!Ye||Ye!==He&&!(Ye.compareDocumentPosition(He)&8))&&Te.call(He,Ne)}}var Rr,ei=0;function Wr(X){var se=".dragsuppress-"+ ++ei,Te="click"+se,Ne=e.select(a(X)).on("touchmove"+se,_e).on("dragstart"+se,_e).on("selectstart"+se,_e);if(Rr==null&&(Rr="onselectstart"in X?!1:H(X.style,"userSelect")),Rr){var He=i(X).style,Ye=He[Rr];He[Rr]="none"}return function(Ct){if(Ne.on(se,null),Rr&&(He[Rr]=Ye),Ct){var nt=function(){Ne.on(Te,null)};Ne.on(Te,function(){_e(),nt()},!0),setTimeout(nt,0)}}}e.mouse=function(X){return dt(X,Me())};var Ur=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function dt(X,se){se.changedTouches&&(se=se.changedTouches[0]);var Te=X.ownerSVGElement||X;if(Te.createSVGPoint){var Ne=Te.createSVGPoint();if(Ur<0){var He=a(X);if(He.scrollX||He.scrollY){Te=e.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var Ye=Te[0][0].getScreenCTM();Ur=!(Ye.f||Ye.e),Te.remove()}}return Ur?(Ne.x=se.pageX,Ne.y=se.pageY):(Ne.x=se.clientX,Ne.y=se.clientY),Ne=Ne.matrixTransform(X.getScreenCTM().inverse()),[Ne.x,Ne.y]}var Ct=X.getBoundingClientRect();return[se.clientX-Ct.left-X.clientLeft,se.clientY-Ct.top-X.clientTop]}e.touch=function(X,se,Te){if(arguments.length<3&&(Te=se,se=Me().changedTouches),se){for(var Ne=0,He=se.length,Ye;Ne0?1:X<0?-1:0}function ir(X,se,Te){return(se[0]-X[0])*(Te[1]-X[1])-(se[1]-X[1])*(Te[0]-X[0])}function pr(X){return X>1?0:X<-1?$e:Math.acos(X)}function oi(X){return X>1?xe:X<-1?-xe:Math.asin(X)}function di(X){return((X=Math.exp(X))-1/X)/2}function Jr(X){return((X=Math.exp(X))+1/X)/2}function fi(X){return((X=Math.exp(2*X))-1)/(X+1)}function Hi(X){return(X=Math.sin(X/2))*X}var Pn=Math.SQRT2,wn=2,pn=4;e.interpolateZoom=function(X,se){var Te=X[0],Ne=X[1],He=X[2],Ye=se[0],Ct=se[1],nt=se[2],jt=Ye-Te,gr=Ct-Ne,yr=jt*jt+gr*gr,Gr,qr;if(yr0&&(Gn=Gn.transition().duration(Ct)),Gn.call(Ai.event)}function Ea(){ni&&ni.domain(Xr.range().map(function(Gn){return(Gn-X.x)/X.k}).map(Xr.invert)),Pi&&Pi.domain(gi.range().map(function(Gn){return(Gn-X.y)/X.k}).map(gi.invert))}function Ia(Gn){nt++||Gn({type:"zoomstart"})}function yo(Gn){Ea(),Gn({type:"zoom",scale:X.k,translate:[X.x,X.y]})}function Da(Gn){--nt||(Gn({type:"zoomend"}),Te=null)}function go(){var Gn=this,Ha=bi.of(Gn,arguments),Fo=0,Uo=e.select(a(Gn)).on(gr,bu).on(yr,vl),Qs=ti(e.mouse(Gn)),Sl=Wr(Gn);fa.call(Gn),Ia(Ha);function bu(){Fo=1,Nn(e.mouse(Gn),Qs),yo(Ha)}function vl(){Uo.on(gr,null).on(yr,null),Sl(Fo),Da(Ha)}}function Rs(){var Gn=this,Ha=bi.of(Gn,arguments),Fo={},Uo=0,Qs,Sl=".zoom-"+e.event.changedTouches[0].identifier,bu="touchmove"+Sl,vl="touchend"+Sl,Sc=[],Ee=e.select(Gn),xt=Wr(Gn);Ir(),Ia(Ha),Ee.on(jt,null).on(qr,Ir);function zt(){var Vr=e.touches(Gn);return Qs=X.k,Vr.forEach(function(mi){mi.identifier in Fo&&(Fo[mi.identifier]=ti(mi))}),Vr}function Ir(){var Vr=e.event.target;e.select(Vr).on(bu,Hr).on(vl,Br),Sc.push(Vr);for(var mi=e.event.changedTouches,Ni=0,Oi=mi.length;Ni1){var Qi=Mi[0],ji=Mi[1],si=Qi[0]-ji[0],Mr=Qi[1]-ji[1];Uo=si*si+Mr*Mr}}function Hr(){var Vr=e.touches(Gn),mi,Ni,Oi,Mi;fa.call(Gn);for(var Hn=0,Qi=Vr.length;Hn1?1:se,Te=Te<0?0:Te>1?1:Te,He=Te<=.5?Te*(1+se):Te+se-Te*se,Ne=2*Te-He;function Ye(nt){return nt>360?nt-=360:nt<0&&(nt+=360),nt<60?Ne+(He-Ne)*nt/60:nt<180?He:nt<240?Ne+(He-Ne)*(240-nt)/60:Ne}function Ct(nt){return Math.round(Ye(nt)*255)}return new Wa(Ct(X+120),Ct(X),Ct(X-120))}e.hcl=ar;function ar(X,se,Te){return this instanceof ar?(this.h=+X,this.c=+se,void(this.l=+Te)):arguments.length<2?X instanceof ar?new ar(X.h,X.c,X.l):X instanceof ri?Mn(X.l,X.a,X.b):Mn((X=jn((X=e.rgb(X)).r,X.g,X.b)).l,X.a,X.b):new ar(X,se,Te)}var Er=ar.prototype=new ua;Er.brighter=function(X){return new ar(this.h,this.c,Math.min(100,this.l+$r*(arguments.length?X:1)))},Er.darker=function(X){return new ar(this.h,this.c,Math.max(0,this.l-$r*(arguments.length?X:1)))},Er.rgb=function(){return Zr(this.h,this.c,this.l).rgb()};function Zr(X,se,Te){return isNaN(X)&&(X=0),isNaN(se)&&(se=0),new ri(Te,Math.cos(X*=Ce)*se,Math.sin(X)*se)}e.lab=ri;function ri(X,se,Te){return this instanceof ri?(this.l=+X,this.a=+se,void(this.b=+Te)):arguments.length<2?X instanceof ri?new ri(X.l,X.a,X.b):X instanceof ar?Zr(X.h,X.c,X.l):jn((X=Wa(X)).r,X.g,X.b):new ri(X,se,Te)}var $r=18,zi=.95047,Ji=1,en=1.08883,cn=ri.prototype=new ua;cn.brighter=function(X){return new ri(Math.min(100,this.l+$r*(arguments.length?X:1)),this.a,this.b)},cn.darker=function(X){return new ri(Math.max(0,this.l-$r*(arguments.length?X:1)),this.a,this.b)},cn.rgb=function(){return yn(this.l,this.a,this.b)};function yn(X,se,Te){var Ne=(X+16)/116,He=Ne+se/500,Ye=Ne-Te/200;return He=Ba(He)*zi,Ne=Ba(Ne)*Ji,Ye=Ba(Ye)*en,new Wa(ma(3.2404542*He-1.5371385*Ne-.4985314*Ye),ma(-.969266*He+1.8760108*Ne+.041556*Ye),ma(.0556434*He-.2040259*Ne+1.0572252*Ye))}function Mn(X,se,Te){return X>0?new ar(Math.atan2(Te,se)*vt,Math.sqrt(se*se+Te*Te),X):new ar(NaN,NaN,X)}function Ba(X){return X>.206893034?X*X*X:(X-4/29)/7.787037}function la(X){return X>.008856?Math.pow(X,1/3):7.787037*X+4/29}function ma(X){return Math.round(255*(X<=.00304?12.92*X:1.055*Math.pow(X,1/2.4)-.055))}e.rgb=Wa;function Wa(X,se,Te){return this instanceof Wa?(this.r=~~X,this.g=~~se,void(this.b=~~Te)):arguments.length<2?X instanceof Wa?new Wa(X.r,X.g,X.b):Ga(""+X,Wa,tr):new Wa(X,se,Te)}function Fa(X){return new Wa(X>>16,X>>8&255,X&255)}function Wo(X){return Fa(X)+""}var da=Wa.prototype=new ua;da.brighter=function(X){X=Math.pow(.7,arguments.length?X:1);var se=this.r,Te=this.g,Ne=this.b,He=30;return!se&&!Te&&!Ne?new Wa(He,He,He):(se&&se>4,Ne=Ne>>4|Ne,He=jt&240,He=He>>4|He,Ye=jt&15,Ye=Ye<<4|Ye):X.length===7&&(Ne=(jt&16711680)>>16,He=(jt&65280)>>8,Ye=jt&255)),se(Ne,He,Ye))}function vo(X,se,Te){var Ne=Math.min(X/=255,se/=255,Te/=255),He=Math.max(X,se,Te),Ye=He-Ne,Ct,nt,jt=(He+Ne)/2;return Ye?(nt=jt<.5?Ye/(He+Ne):Ye/(2-He-Ne),X==He?Ct=(se-Te)/Ye+(se0&&jt<1?0:Ct),new Vt(Ct,nt,jt)}function jn(X,se,Te){X=St(X),se=St(se),Te=St(Te);var Ne=la((.4124564*X+.3575761*se+.1804375*Te)/zi),He=la((.2126729*X+.7151522*se+.072175*Te)/Ji),Ye=la((.0193339*X+.119192*se+.9503041*Te)/en);return ri(116*He-16,500*(Ne-He),200*(He-Ye))}function St(X){return(X/=255)<=.04045?X/12.92:Math.pow((X+.055)/1.055,2.4)}function Cr(X){var se=parseFloat(X);return X.charAt(X.length-1)==="%"?Math.round(se*2.55):se}var Qr=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});Qr.forEach(function(X,se){Qr.set(X,Fa(se))});function pi(X){return typeof X=="function"?X:function(){return X}}e.functor=pi,e.xhr=fn(G);function fn(X){return function(se,Te,Ne){return arguments.length===2&&typeof Te=="function"&&(Ne=Te,Te=null),Sn(se,Te,X,Ne)}}function Sn(X,se,Te,Ne){var He={},Ye=e.dispatch("beforesend","progress","load","error"),Ct={},nt=new XMLHttpRequest,jt=null;self.XDomainRequest&&!("withCredentials"in nt)&&/^(http(s)?:)?\/\//.test(X)&&(nt=new XDomainRequest),"onload"in nt?nt.onload=nt.onerror=gr:nt.onreadystatechange=function(){nt.readyState>3&&gr()};function gr(){var yr=nt.status,Gr;if(!yr&&ki(nt)||yr>=200&&yr<300||yr===304){try{Gr=Te.call(He,nt)}catch(qr){Ye.error.call(He,qr);return}Ye.load.call(He,Gr)}else Ye.error.call(He,nt)}return nt.onprogress=function(yr){var Gr=e.event;e.event=yr;try{Ye.progress.call(He,nt)}finally{e.event=Gr}},He.header=function(yr,Gr){return yr=(yr+"").toLowerCase(),arguments.length<2?Ct[yr]:(Gr==null?delete Ct[yr]:Ct[yr]=Gr+"",He)},He.mimeType=function(yr){return arguments.length?(se=yr==null?null:yr+"",He):se},He.responseType=function(yr){return arguments.length?(jt=yr,He):jt},He.response=function(yr){return Te=yr,He},["get","post"].forEach(function(yr){He[yr]=function(){return He.send.apply(He,[yr].concat(r(arguments)))}}),He.send=function(yr,Gr,qr){if(arguments.length===2&&typeof Gr=="function"&&(qr=Gr,Gr=null),nt.open(yr,X,!0),se!=null&&!("accept"in Ct)&&(Ct.accept=se+",*/*"),nt.setRequestHeader)for(var _i in Ct)nt.setRequestHeader(_i,Ct[_i]);return se!=null&&nt.overrideMimeType&&nt.overrideMimeType(se),jt!=null&&(nt.responseType=jt),qr!=null&&He.on("error",qr).on("load",function(bi){qr(null,bi)}),Ye.beforesend.call(He,nt),nt.send(Gr==null?null:Gr),He},He.abort=function(){return nt.abort(),He},e.rebind(He,Ye,"on"),Ne==null?He:He.get(En(Ne))}function En(X){return X.length===1?function(se,Te){X(se==null?Te:null)}:X}function ki(X){var se=X.responseType;return se&&se!=="text"?X.response:X.responseText}e.dsv=function(X,se){var Te=new RegExp('["'+X+` +]`),Ne=X.charCodeAt(0);function He(gr,yr,Gr){arguments.length<3&&(Gr=yr,yr=null);var qr=Sn(gr,se,yr==null?Ye:Ct(yr),Gr);return qr.row=function(_i){return arguments.length?qr.response((yr=_i)==null?Ye:Ct(_i)):yr},qr}function Ye(gr){return He.parse(gr.responseText)}function Ct(gr){return function(yr){return He.parse(yr.responseText,gr)}}He.parse=function(gr,yr){var Gr;return He.parseRows(gr,function(qr,_i){if(Gr)return Gr(qr,_i-1);var bi=function(Xr){for(var ni={},gi=qr.length,Pi=0;Pi=bi)return qr;if(Pi)return Pi=!1,Gr;var Rn=Xr;if(gr.charCodeAt(Rn)===34){for(var Cn=Rn;Cn++24?(isFinite(se)&&(clearTimeout(Ma),Ma=setTimeout(po,se)),Jn=0):(Jn=1,_o(po))}e.timer.flush=function(){Lo(),Co()};function Lo(){for(var X=Date.now(),se=_n;se;)X>=se.t&&se.c(X-se.t)&&(se.c=null),se=se.n;return X}function Co(){for(var X,se=_n,Te=1/0;se;)se.c?(se.t=0;--nt)Xr.push(He[gr[Gr[nt]][2]]);for(nt=+_i;nt1&&ir(X[Te[Ne-2]],X[Te[Ne-1]],X[He])<=0;)--Ne;Te[Ne++]=He}return Te.slice(0,Ne)}function cl(X,se){return X[0]-se[0]||X[1]-se[1]}e.geom.polygon=function(X){return ie(X,Fl),X};var Fl=e.geom.polygon.prototype=[];Fl.area=function(){for(var X=-1,se=this.length,Te,Ne=this[se-1],He=0;++XJe)nt=nt.L;else if(Ct=se-xo(nt,Te),Ct>Je){if(!nt.R){Ne=nt;break}nt=nt.R}else{Ye>-Je?(Ne=nt.P,He=nt):Ct>-Je?(Ne=nt,He=nt.N):Ne=He=nt;break}var jt=ws(X);if(Os.insert(Ne,jt),!(!Ne&&!He)){if(Ne===He){Oo(Ne),He=ws(Ne.site),Os.insert(jt,He),jt.edge=He.edge=rf(Ne.site,jt.site),aa(Ne),aa(He);return}if(!He){jt.edge=rf(Ne.site,jt.site);return}Oo(Ne),Oo(He);var gr=Ne.site,yr=gr.x,Gr=gr.y,qr=X.x-yr,_i=X.y-Gr,bi=He.site,Xr=bi.x-yr,ni=bi.y-Gr,gi=2*(qr*ni-_i*Xr),Pi=qr*qr+_i*_i,Ai=Xr*Xr+ni*ni,ti={x:(ni*Pi-_i*Ai)/gi+yr,y:(qr*Ai-Xr*Pi)/gi+Gr};ml(He.edge,gr,bi,ti),jt.edge=rf(gr,X,null,ti),He.edge=rf(X,bi,null,ti),aa(Ne),aa(He)}}function zl(X,se){var Te=X.site,Ne=Te.x,He=Te.y,Ye=He-se;if(!Ye)return Ne;var Ct=X.P;if(!Ct)return-1/0;Te=Ct.site;var nt=Te.x,jt=Te.y,gr=jt-se;if(!gr)return nt;var yr=nt-Ne,Gr=1/Ye-1/gr,qr=yr/gr;return Gr?(-qr+Math.sqrt(qr*qr-2*Gr*(yr*yr/(-2*gr)-jt+gr/2+He-Ye/2)))/Gr+Ne:(Ne+nt)/2}function xo(X,se){var Te=X.N;if(Te)return zl(Te,se);var Ne=X.site;return Ne.y===se?Ne.x:1/0}function Yl(X){this.site=X,this.edges=[]}Yl.prototype.prepare=function(){for(var X=this.edges,se=X.length,Te;se--;)Te=X[se].edge,(!Te.b||!Te.a)&&X.splice(se,1);return X.sort(Hl),X.length};function Us(X){for(var se=X[0][0],Te=X[1][0],Ne=X[0][1],He=X[1][1],Ye,Ct,nt,jt,gr=Js,yr=gr.length,Gr,qr,_i,bi,Xr,ni;yr--;)if(Gr=gr[yr],!(!Gr||!Gr.prepare()))for(_i=Gr.edges,bi=_i.length,qr=0;qrJe||p(jt-Ct)>Je)&&(_i.splice(qr,0,new Zc(Uf(Gr.site,ni,p(nt-se)Je?{x:se,y:p(Ye-se)Je?{x:p(Ct-He)Je?{x:Te,y:p(Ye-Te)Je?{x:p(Ct-Ne)=-je)){var qr=jt*jt+gr*gr,_i=yr*yr+ni*ni,bi=(ni*qr-gr*_i)/Gr,Xr=(jt*_i-yr*qr)/Gr,ni=Xr+nt,gi=Su.pop()||new ac;gi.arc=X,gi.site=He,gi.x=bi+Ct,gi.y=ni+Math.sqrt(bi*bi+Xr*Xr),gi.cy=ni,X.circle=gi;for(var Pi=null,Ai=Zl._;Ai;)if(gi.y0)){if(Xr/=_i,_i<0){if(Xr0){if(Xr>qr)return;Xr>Gr&&(Gr=Xr)}if(Xr=Te-nt,!(!_i&&Xr<0)){if(Xr/=_i,_i<0){if(Xr>qr)return;Xr>Gr&&(Gr=Xr)}else if(_i>0){if(Xr0)){if(Xr/=bi,bi<0){if(Xr0){if(Xr>qr)return;Xr>Gr&&(Gr=Xr)}if(Xr=Ne-jt,!(!bi&&Xr<0)){if(Xr/=bi,bi<0){if(Xr>qr)return;Xr>Gr&&(Gr=Xr)}else if(bi>0){if(Xr0&&(He.a={x:nt+Gr*_i,y:jt+Gr*bi}),qr<1&&(He.b={x:nt+qr*_i,y:jt+qr*bi}),He}}}}}}function Ol(X){for(var se=fl,Te=qo(X[0][0],X[0][1],X[1][0],X[1][1]),Ne=se.length,He;Ne--;)He=se[Ne],(!Pc(He,X)||!Te(He)||p(He.a.x-He.b.x)=Ye)return;if(yr>qr){if(!Ne)Ne={x:bi,y:Ct};else if(Ne.y>=nt)return;Te={x:bi,y:nt}}else{if(!Ne)Ne={x:bi,y:nt};else if(Ne.y1)if(yr>qr){if(!Ne)Ne={x:(Ct-gi)/ni,y:Ct};else if(Ne.y>=nt)return;Te={x:(nt-gi)/ni,y:nt}}else{if(!Ne)Ne={x:(nt-gi)/ni,y:nt};else if(Ne.y=Ye)return;Te={x:Ye,y:ni*Ye+gi}}else{if(!Ne)Ne={x:Ye,y:ni*Ye+gi};else if(Ne.x=yr&&gi.x<=qr&&gi.y>=Gr&&gi.y<=_i?[[yr,_i],[qr,_i],[qr,Gr],[yr,Gr]]:[];Pi.point=jt[Xr]}),gr}function nt(jt){return jt.map(function(gr,yr){return{x:Math.round(Ne(gr,yr)/Je)*Je,y:Math.round(He(gr,yr)/Je)*Je,i:yr}})}return Ct.links=function(jt){return sc(nt(jt)).edges.filter(function(gr){return gr.l&&gr.r}).map(function(gr){return{source:jt[gr.l.i],target:jt[gr.r.i]}})},Ct.triangles=function(jt){var gr=[];return sc(nt(jt)).cells.forEach(function(yr,Gr){for(var qr=yr.site,_i=yr.edges.sort(Hl),bi=-1,Xr=_i.length,ni,gi,Pi=_i[Xr-1].edge,Ai=Pi.l===qr?Pi.r:Pi.l;++biAi&&(Ai=yr.x),yr.y>ti&&(ti=yr.y),_i.push(yr.x),bi.push(yr.y);else for(Xr=0;XrAi&&(Ai=Rn),Cn>ti&&(ti=Cn),_i.push(Rn),bi.push(Cn)}var Nn=Ai-gi,ia=ti-Pi;Nn>ia?ti=Pi+Nn:Ai=gi+ia;function Ea(Da,go,Rs,Es,Zs,Gn,Ha,Fo){if(!(isNaN(Rs)||isNaN(Es)))if(Da.leaf){var Uo=Da.x,Qs=Da.y;if(Uo!=null)if(p(Uo-Rs)+p(Qs-Es)<.01)Ia(Da,go,Rs,Es,Zs,Gn,Ha,Fo);else{var Sl=Da.point;Da.x=Da.y=Da.point=null,Ia(Da,Sl,Uo,Qs,Zs,Gn,Ha,Fo),Ia(Da,go,Rs,Es,Zs,Gn,Ha,Fo)}else Da.x=Rs,Da.y=Es,Da.point=go}else Ia(Da,go,Rs,Es,Zs,Gn,Ha,Fo)}function Ia(Da,go,Rs,Es,Zs,Gn,Ha,Fo){var Uo=(Zs+Ha)*.5,Qs=(Gn+Fo)*.5,Sl=Rs>=Uo,bu=Es>=Qs,vl=bu<<1|Sl;Da.leaf=!1,Da=Da.nodes[vl]||(Da.nodes[vl]=Jl()),Sl?Zs=Uo:Ha=Uo,bu?Gn=Qs:Fo=Qs,Ea(Da,go,Rs,Es,Zs,Gn,Ha,Fo)}var yo=Jl();if(yo.add=function(Da){Ea(yo,Da,+Gr(Da,++Xr),+qr(Da,Xr),gi,Pi,Ai,ti)},yo.visit=function(Da){hl(Da,yo,gi,Pi,Ai,ti)},yo.find=function(Da){return lc(yo,Da[0],Da[1],gi,Pi,Ai,ti)},Xr=-1,se==null){for(;++XrYe||qr>Ct||_i=Rn,ia=Te>=Cn,Ea=ia<<1|Nn,Ia=Ea+4;EaTe&&(Ye=se.slice(Te,Ye),nt[Ct]?nt[Ct]+=Ye:nt[++Ct]=Ye),(Ne=Ne[0])===(He=He[0])?nt[Ct]?nt[Ct]+=He:nt[++Ct]=He:(nt[++Ct]=null,jt.push({i:Ct,x:js(Ne,He)})),Te=uc.lastIndex;return Te=0&&!(Ne=e.interpolators[Te](X,se)););return Ne}e.interpolators=[function(X,se){var Te=typeof se;return(Te==="string"?Qr.has(se.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(se)?Fu:Go:se instanceof ua?Fu:Array.isArray(se)?Gu:Te==="object"&&isNaN(se)?Cs:js)(X,se)}],e.interpolateArray=Gu;function Gu(X,se){var Te=[],Ne=[],He=X.length,Ye=se.length,Ct=Math.min(X.length,se.length),nt;for(nt=0;nt=0?X.slice(0,se):X,Ne=se>=0?X.slice(se+1):"in";return Te=ad.get(Te)||Bs,Ne=Po.get(Ne)||G,od(Ne(Te.apply(null,t.call(arguments,1))))};function od(X){return function(se){return se<=0?0:se>=1?1:X(se)}}function Yo(X){return function(se){return 1-X(1-se)}}function Pa(X){return function(se){return .5*(se<.5?X(2*se):2-X(2-2*se))}}function af(X){return X*X}function Hu(X){return X*X*X}function bl(X){if(X<=0)return 0;if(X>=1)return 1;var se=X*X,Te=se*X;return 4*(X<.5?Te:3*(X-se)+Te-.75)}function Gf(X){return function(se){return Math.pow(se,X)}}function Ic(X){return 1-Math.cos(X*xe)}function mf(X){return Math.pow(2,10*(X-1))}function ql(X){return 1-Math.sqrt(1-X*X)}function _h(X,se){var Te;return arguments.length<2&&(se=.45),arguments.length?Te=se/wt*Math.asin(1/X):(X=1,Te=se/4),function(Ne){return 1+X*Math.pow(2,-10*Ne)*Math.sin((Ne-Te)*wt/se)}}function Qf(X){return X||(X=1.70158),function(se){return se*se*((X+1)*se-X)}}function yf(X){return X<1/2.75?7.5625*X*X:X<2/2.75?7.5625*(X-=1.5/2.75)*X+.75:X<2.5/2.75?7.5625*(X-=2.25/2.75)*X+.9375:7.5625*(X-=2.625/2.75)*X+.984375}e.interpolateHcl=Yc;function Yc(X,se){X=e.hcl(X),se=e.hcl(se);var Te=X.h,Ne=X.c,He=X.l,Ye=se.h-Te,Ct=se.c-Ne,nt=se.l-He;return isNaN(Ct)&&(Ct=0,Ne=isNaN(Ne)?se.c:Ne),isNaN(Ye)?(Ye=0,Te=isNaN(Te)?se.h:Te):Ye>180?Ye-=360:Ye<-180&&(Ye+=360),function(jt){return Zr(Te+Ye*jt,Ne+Ct*jt,He+nt*jt)+""}}e.interpolateHsl=eh;function eh(X,se){X=e.hsl(X),se=e.hsl(se);var Te=X.h,Ne=X.s,He=X.l,Ye=se.h-Te,Ct=se.s-Ne,nt=se.l-He;return isNaN(Ct)&&(Ct=0,Ne=isNaN(Ne)?se.s:Ne),isNaN(Ye)?(Ye=0,Te=isNaN(Te)?se.h:Te):Ye>180?Ye-=360:Ye<-180&&(Ye+=360),function(jt){return tr(Te+Ye*jt,Ne+Ct*jt,He+nt*jt)+""}}e.interpolateLab=th;function th(X,se){X=e.lab(X),se=e.lab(se);var Te=X.l,Ne=X.a,He=X.b,Ye=se.l-Te,Ct=se.a-Ne,nt=se.b-He;return function(jt){return yn(Te+Ye*jt,Ne+Ct*jt,He+nt*jt)+""}}e.interpolateRound=ju;function ju(X,se){return se-=X,function(Te){return Math.round(X+se*Te)}}e.transform=function(X){var se=n.createElementNS(e.ns.prefix.svg,"g");return(e.transform=function(Te){if(Te!=null){se.setAttribute("transform",Te);var Ne=se.transform.baseVal.consolidate()}return new Hf(Ne?Ne.matrix:Kc)})(X)};function Hf(X){var se=[X.a,X.b],Te=[X.c,X.d],Ne=of(se),He=cc(se,Te),Ye=of(Bl(Te,se,-He))||0;se[0]*Te[1]180?se+=360:se-X>180&&(X+=360),Ne.push({i:Te.push(Rc(Te)+"rotate(",null,")")-2,x:js(X,se)})):se&&Te.push(Rc(Te)+"rotate("+se+")")}function Uh(X,se,Te,Ne){X!==se?Ne.push({i:Te.push(Rc(Te)+"skewX(",null,")")-2,x:js(X,se)}):se&&Te.push(Rc(Te)+"skewX("+se+")")}function rh(X,se,Te,Ne){if(X[0]!==se[0]||X[1]!==se[1]){var He=Te.push(Rc(Te)+"scale(",null,",",null,")");Ne.push({i:He-4,x:js(X[0],se[0])},{i:He-2,x:js(X[1],se[1])})}else(se[0]!==1||se[1]!==1)&&Te.push(Rc(Te)+"scale("+se+")")}function sf(X,se){var Te=[],Ne=[];return X=e.transform(X),se=e.transform(se),ms(X.translate,se.translate,Te,Ne),jf(X.rotate,se.rotate,Te,Ne),Uh(X.skew,se.skew,Te,Ne),rh(X.scale,se.scale,Te,Ne),X=se=null,function(He){for(var Ye=-1,Ct=Ne.length,nt;++Ye0?Ye=ti:(Te.c=null,Te.t=NaN,Te=null,se.end({type:"end",alpha:Ye=0})):ti>0&&(se.start({type:"start",alpha:Ye=ti}),Te=No(X.tick)),X):Ye},X.start=function(){var ti,Rn=_i.length,Cn=bi.length,Nn=Ne[0],ia=Ne[1],Ea,Ia;for(ti=0;ti=0;)Ye.push(yr=gr[jt]),yr.parent=nt,yr.depth=nt.depth+1;Te&&(nt.value=0),nt.children=gr}else Te&&(nt.value=+Te.call(Ne,nt,nt.depth)||0),delete nt.children;return wc(He,function(Gr){var qr,_i;X&&(qr=Gr.children)&&qr.sort(X),Te&&(_i=Gr.parent)&&(_i.value+=Gr.value)}),Ct}return Ne.sort=function(He){return arguments.length?(X=He,Ne):X},Ne.children=function(He){return arguments.length?(se=He,Ne):se},Ne.value=function(He){return arguments.length?(Te=He,Ne):Te},Ne.revalue=function(He){return Te&&(Fc(He,function(Ye){Ye.children&&(Ye.value=0)}),wc(He,function(Ye){var Ct;Ye.children||(Ye.value=+Te.call(Ne,Ye,Ye.depth)||0),(Ct=Ye.parent)&&(Ct.value+=Ye.value)})),He},Ne};function zu(X,se){return e.rebind(X,se,"sort","children","value"),X.nodes=X,X.links=Ou,X}function Fc(X,se){for(var Te=[X];(X=Te.pop())!=null;)if(se(X),(He=X.children)&&(Ne=He.length))for(var Ne,He;--Ne>=0;)Te.push(He[Ne])}function wc(X,se){for(var Te=[X],Ne=[];(X=Te.pop())!=null;)if(Ne.push(X),(Ct=X.children)&&(Ye=Ct.length))for(var He=-1,Ye,Ct;++HeHe&&(He=nt),Ne.push(nt)}for(Ct=0;CtNe&&(Te=se,Ne=He);return Te}function Vs(X){return X.reduce(bf,0)}function bf(X,se){return X+se[1]}e.layout.histogram=function(){var X=!0,se=Number,Te=If,Ne=zc;function He(Ye,qr){for(var nt=[],jt=Ye.map(se,this),gr=Te.call(this,jt,qr),yr=Ne.call(this,gr,jt,qr),Gr,qr=-1,_i=jt.length,bi=yr.length-1,Xr=X?1:1/_i,ni;++qr0)for(qr=-1;++qr<_i;)ni=jt[qr],ni>=gr[0]&&ni<=gr[1]&&(Gr=nt[e.bisect(yr,ni,1,bi)-1],Gr.y+=Xr,Gr.push(Ye[qr]));return nt}return He.value=function(Ye){return arguments.length?(se=Ye,He):se},He.range=function(Ye){return arguments.length?(Te=pi(Ye),He):Te},He.bins=function(Ye){return arguments.length?(Ne=typeof Ye=="number"?function(Ct){return Wu(Ct,Ye)}:pi(Ye),He):Ne},He.frequency=function(Ye){return arguments.length?(X=!!Ye,He):X},He};function zc(X,se){return Wu(X,Math.ceil(Math.log(se.length)/Math.LN2+1))}function Wu(X,se){for(var Te=-1,Ne=+X[0],He=(X[1]-Ne)/se,Ye=[];++Te<=se;)Ye[Te]=He*Te+Ne;return Ye}function If(X){return[e.min(X),e.max(X)]}e.layout.pack=function(){var X=e.layout.hierarchy().sort(Xu),se=0,Te=[1,1],Ne;function He(Ye,Ct){var nt=X.call(this,Ye,Ct),jt=nt[0],gr=Te[0],yr=Te[1],Gr=Ne==null?Math.sqrt:typeof Ne=="function"?Ne:function(){return Ne};if(jt.x=jt.y=0,wc(jt,function(_i){_i.r=+Gr(_i.value)}),wc(jt,ah),se){var qr=se*(Ne?1:Math.max(2*jt.r/gr,2*jt.r/yr))/2;wc(jt,function(_i){_i.r+=qr}),wc(jt,ah),wc(jt,function(_i){_i.r-=qr})}return Tc(jt,gr/2,yr/2,Ne?1:1/Math.max(2*jt.r/gr,2*jt.r/yr)),nt}return He.size=function(Ye){return arguments.length?(Te=Ye,He):Te},He.radius=function(Ye){return arguments.length?(Ne=Ye==null||typeof Ye=="function"?Ye:+Ye,He):Ne},He.padding=function(Ye){return arguments.length?(se=+Ye,He):se},zu(He,X)};function Xu(X,se){return X.value-se.value}function uf(X,se){var Te=X._pack_next;X._pack_next=se,se._pack_prev=X,se._pack_next=Te,Te._pack_prev=se}function Xf(X,se){X._pack_next=se,se._pack_prev=X}function Wl(X,se){var Te=se.x-X.x,Ne=se.y-X.y,He=X.r+se.r;return .999*He*He>Te*Te+Ne*Ne}function ah(X){if(!(se=X.children)||!(qr=se.length))return;var se,Te=1/0,Ne=-1/0,He=1/0,Ye=-1/0,Ct,nt,jt,gr,yr,Gr,qr;function _i(ti){Te=Math.min(ti.x-ti.r,Te),Ne=Math.max(ti.x+ti.r,Ne),He=Math.min(ti.y-ti.r,He),Ye=Math.max(ti.y+ti.r,Ye)}if(se.forEach(Zu),Ct=se[0],Ct.x=-Ct.r,Ct.y=0,_i(Ct),qr>1&&(nt=se[1],nt.x=nt.r,nt.y=0,_i(nt),qr>2))for(jt=se[2],wl(Ct,nt,jt),_i(jt),uf(Ct,jt),Ct._pack_prev=jt,uf(jt,nt),nt=Ct._pack_next,gr=3;grni.x&&(ni=Rn),Rn.depth>gi.depth&&(gi=Rn)});var Pi=se(Xr,ni)/2-Xr.x,Ai=Te[0]/(ni.x+se(ni,Xr)/2+Pi),ti=Te[1]/(gi.depth||1);Fc(_i,function(Rn){Rn.x=(Rn.x+Pi)*Ai,Rn.y=Rn.depth*ti})}return qr}function Ye(yr){for(var Gr={A:null,children:[yr]},qr=[Gr],_i;(_i=qr.pop())!=null;)for(var bi=_i.children,Xr,ni=0,gi=bi.length;ni0&&(fc(At(Xr,yr,qr),yr,Rn),gi+=Rn,Pi+=Rn),Ai+=Xr.m,gi+=_i.m,ti+=ni.m,Pi+=bi.m;Xr&&!cf(bi)&&(bi.t=Xr,bi.m+=Ai-Pi),_i&&!qc(ni)&&(ni.t=_i,ni.m+=gi-ti,qr=yr)}return qr}function gr(yr){yr.x*=Te[0],yr.y=yr.depth*Te[1]}return He.separation=function(yr){return arguments.length?(se=yr,He):se},He.size=function(yr){return arguments.length?(Ne=(Te=yr)==null?gr:null,He):Ne?null:Te},He.nodeSize=function(yr){return arguments.length?(Ne=(Te=yr)==null?null:gr,He):Ne?Te:null},zu(He,X)};function pu(X,se){return X.parent==se.parent?1:2}function qc(X){var se=X.children;return se.length?se[0]:X.t}function cf(X){var se=X.children,Te;return(Te=se.length)?se[Te-1]:X.t}function fc(X,se,Te){var Ne=Te/(se.i-X.i);se.c-=Ne,se.s+=Te,X.c+=Ne,se.z+=Te,se.m+=Te}function Bc(X){for(var se=0,Te=0,Ne=X.children,He=Ne.length,Ye;--He>=0;)Ye=Ne[He],Ye.z+=se,Ye.m+=se,se+=Ye.s+(Te+=Ye.c)}function At(X,se,Te){return X.a.parent===se.parent?X.a:Te}e.layout.cluster=function(){var X=e.layout.hierarchy().sort(null).value(null),se=pu,Te=[1,1],Ne=!1;function He(Ye,Ct){var nt=X.call(this,Ye,Ct),jt=nt[0],gr,yr=0;wc(jt,function(Xr){var ni=Xr.children;ni&&ni.length?(Xr.x=kr(ni),Xr.y=Xt(ni)):(Xr.x=gr?yr+=se(Xr,gr):0,Xr.y=0,gr=Xr)});var Gr=Ar(jt),qr=Kr(jt),_i=Gr.x-se(Gr,qr)/2,bi=qr.x+se(qr,Gr)/2;return wc(jt,Ne?function(Xr){Xr.x=(Xr.x-jt.x)*Te[0],Xr.y=(jt.y-Xr.y)*Te[1]}:function(Xr){Xr.x=(Xr.x-_i)/(bi-_i)*Te[0],Xr.y=(1-(jt.y?Xr.y/jt.y:1))*Te[1]}),nt}return He.separation=function(Ye){return arguments.length?(se=Ye,He):se},He.size=function(Ye){return arguments.length?(Ne=(Te=Ye)==null,He):Ne?null:Te},He.nodeSize=function(Ye){return arguments.length?(Ne=(Te=Ye)!=null,He):Ne?Te:null},zu(He,X)};function Xt(X){return 1+e.max(X,function(se){return se.y})}function kr(X){return X.reduce(function(se,Te){return se+Te.x},0)/X.length}function Ar(X){var se=X.children;return se&&se.length?Ar(se[0]):X}function Kr(X){var se=X.children,Te;return se&&(Te=se.length)?Kr(se[Te-1]):X}e.layout.treemap=function(){var X=e.layout.hierarchy(),se=Math.round,Te=[1,1],Ne=null,He=Ei,Ye=!1,Ct,nt="squarify",jt=.5*(1+Math.sqrt(5));function gr(Xr,ni){for(var gi=-1,Pi=Xr.length,Ai,ti;++gi0;)Pi.push(ti=Ai[ia-1]),Pi.area+=ti.area,nt!=="squarify"||(Cn=qr(Pi,Nn))<=Rn?(Ai.pop(),Rn=Cn):(Pi.area-=Pi.pop().area,_i(Pi,Nn,gi,!1),Nn=Math.min(gi.dx,gi.dy),Pi.length=Pi.area=0,Rn=1/0);Pi.length&&(_i(Pi,Nn,gi,!0),Pi.length=Pi.area=0),ni.forEach(yr)}}function Gr(Xr){var ni=Xr.children;if(ni&&ni.length){var gi=He(Xr),Pi=ni.slice(),Ai,ti=[];for(gr(Pi,gi.dx*gi.dy/Xr.value),ti.area=0;Ai=Pi.pop();)ti.push(Ai),ti.area+=Ai.area,Ai.z!=null&&(_i(ti,Ai.z?gi.dx:gi.dy,gi,!Pi.length),ti.length=ti.area=0);ni.forEach(Gr)}}function qr(Xr,ni){for(var gi=Xr.area,Pi,Ai=0,ti=1/0,Rn=-1,Cn=Xr.length;++RnAi&&(Ai=Pi));return gi*=gi,ni*=ni,gi?Math.max(ni*Ai*jt/gi,gi/(ni*ti*jt)):1/0}function _i(Xr,ni,gi,Pi){var Ai=-1,ti=Xr.length,Rn=gi.x,Cn=gi.y,Nn=ni?se(Xr.area/ni):0,ia;if(ni==gi.dx){for((Pi||Nn>gi.dy)&&(Nn=gi.dy);++Aigi.dx)&&(Nn=gi.dx);++Ai1);return X+se*Ne*Math.sqrt(-2*Math.log(Ye)/Ye)}},logNormal:function(){var X=e.random.normal.apply(e,arguments);return function(){return Math.exp(X())}},bates:function(X){var se=e.random.irwinHall(X);return function(){return se()/X}},irwinHall:function(X){return function(){for(var se=0,Te=0;Te2?Di:Bn,gr=Ne?Mu:xh;return He=jt(X,se,gr,Te),Ye=jt(se,X,gr,xl),nt}function nt(jt){return He(jt)}return nt.invert=function(jt){return Ye(jt)},nt.domain=function(jt){return arguments.length?(X=jt.map(Number),Ct()):X},nt.range=function(jt){return arguments.length?(se=jt,Ct()):se},nt.rangeRound=function(jt){return nt.range(jt).interpolate(ju)},nt.clamp=function(jt){return arguments.length?(Ne=jt,Ct()):Ne},nt.interpolate=function(jt){return arguments.length?(Te=jt,Ct()):Te},nt.ticks=function(jt){return Na(X,jt)},nt.tickFormat=function(jt,gr){return d3_scale_linearTickFormat(X,jt,gr)},nt.nice=function(jt){return Ra(X,jt),Ct()},nt.copy=function(){return $n(X,se,Te,Ne)},Ct()}function ka(X,se){return e.rebind(X,se,"range","rangeRound","interpolate","clamp")}function Ra(X,se){return Zi(X,$i(La(X,se)[2])),Zi(X,$i(La(X,se)[2])),X}function La(X,se){se==null&&(se=10);var Te=hn(X),Ne=Te[1]-Te[0],He=Math.pow(10,Math.floor(Math.log(Ne/se)/Math.LN10)),Ye=se/Ne*He;return Ye<=.15?He*=10:Ye<=.35?He*=5:Ye<=.75&&(He*=2),Te[0]=Math.ceil(Te[0]/He)*He,Te[1]=Math.floor(Te[1]/He)*He+He*.5,Te[2]=He,Te}function Na(X,se){return e.range.apply(e,La(X,se))}var Yn={s:1,g:1,p:1,r:1,e:1};function zn(X){return-Math.floor(Math.log(X)/Math.LN10+.01)}function Ka(X,se){var Te=zn(se[2]);return X in Yn?Math.abs(Te-zn(Math.max(p(se[0]),p(se[1]))))+ +(X!=="e"):Te-(X==="%")*2}e.scale.log=function(){return bo(e.scale.linear().domain([0,1]),10,!0,[1,10])};function bo(X,se,Te,Ne){function He(nt){return(Te?Math.log(nt<0?0:nt):-Math.log(nt>0?0:-nt))/Math.log(se)}function Ye(nt){return Te?Math.pow(se,nt):-Math.pow(se,-nt)}function Ct(nt){return X(He(nt))}return Ct.invert=function(nt){return Ye(X.invert(nt))},Ct.domain=function(nt){return arguments.length?(Te=nt[0]>=0,X.domain((Ne=nt.map(Number)).map(He)),Ct):Ne},Ct.base=function(nt){return arguments.length?(se=+nt,X.domain(Ne.map(He)),Ct):se},Ct.nice=function(){var nt=Zi(Ne.map(He),Te?Math:Xo);return X.domain(nt),Ne=nt.map(Ye),Ct},Ct.ticks=function(){var nt=hn(Ne),jt=[],gr=nt[0],yr=nt[1],Gr=Math.floor(He(gr)),qr=Math.ceil(He(yr)),_i=se%1?2:se;if(isFinite(qr-Gr)){if(Te){for(;Gr0;bi--)jt.push(Ye(Gr)*bi);for(Gr=0;jt[Gr]yr;qr--);jt=jt.slice(Gr,qr)}return jt},Ct.copy=function(){return bo(X.copy(),se,Te,Ne)},ka(Ct,X)}var Xo={floor:function(X){return-Math.ceil(-X)},ceil:function(X){return-Math.floor(-X)}};e.scale.pow=function(){return Ms(e.scale.linear(),1,[0,1])};function Ms(X,se,Te){var Ne=os(se),He=os(1/se);function Ye(Ct){return X(Ne(Ct))}return Ye.invert=function(Ct){return He(X.invert(Ct))},Ye.domain=function(Ct){return arguments.length?(X.domain((Te=Ct.map(Number)).map(Ne)),Ye):Te},Ye.ticks=function(Ct){return Na(Te,Ct)},Ye.tickFormat=function(Ct,nt){return d3_scale_linearTickFormat(Te,Ct,nt)},Ye.nice=function(Ct){return Ye.domain(Ra(Te,Ct))},Ye.exponent=function(Ct){return arguments.length?(Ne=os(se=Ct),He=os(1/se),X.domain(Te.map(Ne)),Ye):se},Ye.copy=function(){return Ms(X.copy(),se,Te)},ka(Ye,X)}function os(X){return function(se){return se<0?-Math.pow(-se,X):Math.pow(se,X)}}e.scale.sqrt=function(){return e.scale.pow().exponent(.5)},e.scale.ordinal=function(){return Ts([],{t:"range",a:[[]]})};function Ts(X,se){var Te,Ne,He;function Ye(nt){return Ne[((Te.get(nt)||(se.t==="range"?Te.set(nt,X.push(nt)):NaN))-1)%Ne.length]}function Ct(nt,jt){return e.range(X.length).map(function(gr){return nt+jt*gr})}return Ye.domain=function(nt){if(!arguments.length)return X;X=[],Te=new A;for(var jt=-1,gr=nt.length,yr;++jt0?Te[Ye-1]:X[0],Yeqr?0:1;if(yr=Ie)return jt(yr,bi)+(gr?jt(gr,1-bi):"")+"Z";var Xr,ni,gi,Pi,Ai=0,ti=0,Rn,Cn,Nn,ia,Ea,Ia,yo,Da,go=[];if((Pi=(+Ct.apply(this,arguments)||0)/2)&&(gi=Ne===ku?Math.sqrt(gr*gr+yr*yr):+Ne.apply(this,arguments),bi||(ti*=-1),yr&&(ti=oi(gi/yr*Math.sin(Pi))),gr&&(Ai=oi(gi/gr*Math.sin(Pi)))),yr){Rn=yr*Math.cos(Gr+ti),Cn=yr*Math.sin(Gr+ti),Nn=yr*Math.cos(qr-ti),ia=yr*Math.sin(qr-ti);var Rs=Math.abs(qr-Gr-2*ti)<=$e?0:1;if(ti&&Ac(Rn,Cn,Nn,ia)===bi^Rs){var Es=(Gr+qr)/2;Rn=yr*Math.cos(Es),Cn=yr*Math.sin(Es),Nn=ia=null}}else Rn=Cn=0;if(gr){Ea=gr*Math.cos(qr-Ai),Ia=gr*Math.sin(qr-Ai),yo=gr*Math.cos(Gr+Ai),Da=gr*Math.sin(Gr+Ai);var Zs=Math.abs(Gr-qr+2*Ai)<=$e?0:1;if(Ai&&Ac(Ea,Ia,yo,Da)===1-bi^Zs){var Gn=(Gr+qr)/2;Ea=gr*Math.cos(Gn),Ia=gr*Math.sin(Gn),yo=Da=null}}else Ea=Ia=0;if(_i>Je&&(Xr=Math.min(Math.abs(yr-gr)/2,+Te.apply(this,arguments)))>.001){ni=gr0?0:1}function Ua(X,se,Te,Ne,He){var Ye=X[0]-se[0],Ct=X[1]-se[1],nt=(He?Ne:-Ne)/Math.sqrt(Ye*Ye+Ct*Ct),jt=nt*Ct,gr=-nt*Ye,yr=X[0]+jt,Gr=X[1]+gr,qr=se[0]+jt,_i=se[1]+gr,bi=(yr+qr)/2,Xr=(Gr+_i)/2,ni=qr-yr,gi=_i-Gr,Pi=ni*ni+gi*gi,Ai=Te-Ne,ti=yr*_i-qr*Gr,Rn=(gi<0?-1:1)*Math.sqrt(Math.max(0,Ai*Ai*Pi-ti*ti)),Cn=(ti*gi-ni*Rn)/Pi,Nn=(-ti*ni-gi*Rn)/Pi,ia=(ti*gi+ni*Rn)/Pi,Ea=(-ti*ni+gi*Rn)/Pi,Ia=Cn-bi,yo=Nn-Xr,Da=ia-bi,go=Ea-Xr;return Ia*Ia+yo*yo>Da*Da+go*go&&(Cn=ia,Nn=Ea),[[Cn-jt,Nn-gr],[Cn*Te/Ai,Nn*Te/Ai]]}function oo(){return!0}function Vc(X){var se=Fs,Te=zs,Ne=oo,He=Ku,Ye=He.key,Ct=.7;function nt(jt){var gr=[],yr=[],Gr=-1,qr=jt.length,_i,bi=pi(se),Xr=pi(Te);function ni(){gr.push("M",He(X(yr),Ct))}for(;++Gr1?X.join("L"):X+"Z"}function ue(X){return X.join("L")+"Z"}function w(X){for(var se=0,Te=X.length,Ne=X[0],He=[Ne[0],",",Ne[1]];++se1&&He.push("H",Ne[0]),He.join("")}function B(X){for(var se=0,Te=X.length,Ne=X[0],He=[Ne[0],",",Ne[1]];++se1){nt=se[1],Ye=X[jt],jt++,Ne+="C"+(He[0]+Ct[0])+","+(He[1]+Ct[1])+","+(Ye[0]-nt[0])+","+(Ye[1]-nt[1])+","+Ye[0]+","+Ye[1];for(var gr=2;gr9&&(Ye=Te*3/Math.sqrt(Ye),Ct[nt]=Ye*Ne,Ct[nt+1]=Ye*He));for(nt=-1;++nt<=jt;)Ye=(X[Math.min(jt,nt+1)][0]-X[Math.max(0,nt-1)][0])/(6*(1+Ct[nt]*Ct[nt])),se.push([Ye||0,Ct[nt]*Ye||0]);return se}function Dt(X){return X.length<3?Ku(X):X[0]+Xe(X,it(X))}e.svg.line.radial=function(){var X=Vc(Ht);return X.radius=X.x,delete X.x,X.angle=X.y,delete X.y,X};function Ht(X){for(var se,Te=-1,Ne=X.length,He,Ye;++Te$e)+",1 "+Gr}function gr(yr,Gr,qr,_i){return"Q 0,0 "+_i}return Ye.radius=function(yr){return arguments.length?(Te=pi(yr),Ye):Te},Ye.source=function(yr){return arguments.length?(X=pi(yr),Ye):X},Ye.target=function(yr){return arguments.length?(se=pi(yr),Ye):se},Ye.startAngle=function(yr){return arguments.length?(Ne=pi(yr),Ye):Ne},Ye.endAngle=function(yr){return arguments.length?(He=pi(yr),Ye):He},Ye};function Or(X){return X.radius}e.svg.diagonal=function(){var X=dr,se=Sr,Te=jr;function Ne(He,Ye){var Ct=X.call(this,He,Ye),nt=se.call(this,He,Ye),jt=(Ct.y+nt.y)/2,gr=[Ct,{x:Ct.x,y:jt},{x:nt.x,y:jt},nt];return gr=gr.map(Te),"M"+gr[0]+"C"+gr[1]+" "+gr[2]+" "+gr[3]}return Ne.source=function(He){return arguments.length?(X=pi(He),Ne):X},Ne.target=function(He){return arguments.length?(se=pi(He),Ne):se},Ne.projection=function(He){return arguments.length?(Te=He,Ne):Te},Ne};function jr(X){return[X.x,X.y]}e.svg.diagonal.radial=function(){var X=e.svg.diagonal(),se=jr,Te=X.projection;return X.projection=function(Ne){return arguments.length?Te(ii(se=Ne)):se},X};function ii(X){return function(){var se=X.apply(this,arguments),Te=se[0],Ne=se[1]-xe;return[Te*Math.cos(Ne),Te*Math.sin(Ne)]}}e.svg.symbol=function(){var X=un,se=Li;function Te(Ne,He){return(In.get(X.call(this,Ne,He))||sn)(se.call(this,Ne,He))}return Te.type=function(Ne){return arguments.length?(X=pi(Ne),Te):X},Te.size=function(Ne){return arguments.length?(se=pi(Ne),Te):se},Te};function Li(){return 64}function un(){return"circle"}function sn(X){var se=Math.sqrt(X/$e);return"M0,"+se+"A"+se+","+se+" 0 1,1 0,"+-se+"A"+se+","+se+" 0 1,1 0,"+se+"Z"}var In=e.map({circle:sn,cross:function(X){var se=Math.sqrt(X/5)/2;return"M"+-3*se+","+-se+"H"+-se+"V"+-3*se+"H"+se+"V"+-se+"H"+3*se+"V"+se+"H"+se+"V"+3*se+"H"+-se+"V"+se+"H"+-3*se+"Z"},diamond:function(X){var se=Math.sqrt(X/(2*Aa)),Te=se*Aa;return"M0,"+-se+"L"+Te+",0 0,"+se+" "+-Te+",0Z"},square:function(X){var se=Math.sqrt(X)/2;return"M"+-se+","+-se+"L"+se+","+-se+" "+se+","+se+" "+-se+","+se+"Z"},"triangle-down":function(X){var se=Math.sqrt(X/Kn),Te=se*Kn/2;return"M0,"+Te+"L"+se+","+-Te+" "+-se+","+-Te+"Z"},"triangle-up":function(X){var se=Math.sqrt(X/Kn),Te=se*Kn/2;return"M0,"+-Te+"L"+se+","+Te+" "+-se+","+Te+"Z"}});e.svg.symbolTypes=In.keys();var Kn=Math.sqrt(3),Aa=Math.tan(30*Ce);Pe.transition=function(X){for(var se=Bo||++mo,Te=To(X),Ne=[],He,Ye,Ct=Is||{time:Date.now(),ease:bl,delay:0,duration:250},nt=-1,jt=this.length;++nt0;)Gr[--Pi].call(X,gi);if(ni>=1)return Ct.event&&Ct.event.end.call(X,X.__data__,se),--Ye.count?delete Ye[Ne]:delete X[Te],1}Ct||(nt=He.time,jt=No(qr,0,nt),Ct=Ye[Ne]={tween:new A,time:nt,timer:jt,delay:He.delay,duration:He.duration,ease:He.ease,index:se},He=null,++Ye.count)}e.svg.axis=function(){var X=e.scale.linear(),se=Nl,Te=6,Ne=6,He=3,Ye=[10],Ct=null,nt;function jt(gr){gr.each(function(){var yr=e.select(this),Gr=this.__chart__||X,qr=this.__chart__=X.copy(),_i=Ct==null?qr.ticks?qr.ticks.apply(qr,Ye):qr.domain():Ct,bi=nt==null?qr.tickFormat?qr.tickFormat.apply(qr,Ye):G:nt,Xr=yr.selectAll(".tick").data(_i,qr),ni=Xr.enter().insert("g",".domain").attr("class","tick").style("opacity",Je),gi=e.transition(Xr.exit()).style("opacity",Je).remove(),Pi=e.transition(Xr.order()).style("opacity",1),Ai=Math.max(Te,0)+He,ti,Rn=Tn(qr),Cn=yr.selectAll(".domain").data([0]),Nn=(Cn.enter().append("path").attr("class","domain"),e.transition(Cn));ni.append("line"),ni.append("text");var ia=ni.select("line"),Ea=Pi.select("line"),Ia=Xr.select("text").text(bi),yo=ni.select("text"),Da=Pi.select("text"),go=se==="top"||se==="left"?-1:1,Rs,Es,Zs,Gn;if(se==="bottom"||se==="top"?(ti=ou,Rs="x",Zs="y",Es="x2",Gn="y2",Ia.attr("dy",go<0?"0em":".71em").style("text-anchor","middle"),Nn.attr("d","M"+Rn[0]+","+go*Ne+"V0H"+Rn[1]+"V"+go*Ne)):(ti=$s,Rs="y",Zs="x",Es="y2",Gn="x2",Ia.attr("dy",".32em").style("text-anchor",go<0?"end":"start"),Nn.attr("d","M"+go*Ne+","+Rn[0]+"H0V"+Rn[1]+"H"+go*Ne)),ia.attr(Gn,go*Te),yo.attr(Zs,go*Ai),Ea.attr(Es,0).attr(Gn,go*Te),Da.attr(Rs,0).attr(Zs,go*Ai),qr.rangeBand){var Ha=qr,Fo=Ha.rangeBand()/2;Gr=qr=function(Uo){return Ha(Uo)+Fo}}else Gr.rangeBand?Gr=qr:gi.call(ti,qr,Gr);ni.call(ti,Gr,qr),Pi.call(ti,qr,qr)})}return jt.scale=function(gr){return arguments.length?(X=gr,jt):X},jt.orient=function(gr){return arguments.length?(se=gr in Lu?gr+"":Nl,jt):se},jt.ticks=function(){return arguments.length?(Ye=r(arguments),jt):Ye},jt.tickValues=function(gr){return arguments.length?(Ct=gr,jt):Ct},jt.tickFormat=function(gr){return arguments.length?(nt=gr,jt):nt},jt.tickSize=function(gr){var yr=arguments.length;return yr?(Te=+gr,Ne=+arguments[yr-1],jt):Te},jt.innerTickSize=function(gr){return arguments.length?(Te=+gr,jt):Te},jt.outerTickSize=function(gr){return arguments.length?(Ne=+gr,jt):Ne},jt.tickPadding=function(gr){return arguments.length?(He=+gr,jt):He},jt.tickSubdivide=function(){return arguments.length&&jt},jt};var Nl="bottom",Lu={top:1,right:1,bottom:1,left:1};function ou(X,se,Te){X.attr("transform",function(Ne){var He=se(Ne);return"translate("+(isFinite(He)?He:Te(Ne))+",0)"})}function $s(X,se,Te){X.attr("transform",function(Ne){var He=se(Ne);return"translate(0,"+(isFinite(He)?He:Te(Ne))+")"})}e.svg.brush=function(){var X=ke(yr,"brushstart","brush","brushend"),se=null,Te=null,Ne=[0,0],He=[0,0],Ye,Ct,nt=!0,jt=!0,gr=dc[0];function yr(Xr){Xr.each(function(){var ni=e.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",bi).on("touchstart.brush",bi),gi=ni.selectAll(".background").data([0]);gi.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),ni.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var Pi=ni.selectAll(".resize").data(gr,G);Pi.exit().remove(),Pi.enter().append("g").attr("class",function(Cn){return"resize "+Cn}).style("cursor",function(Cn){return Ql[Cn]}).append("rect").attr("x",function(Cn){return/[ew]$/.test(Cn)?-3:null}).attr("y",function(Cn){return/^[ns]/.test(Cn)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),Pi.style("display",yr.empty()?"none":null);var Ai=e.transition(ni),ti=e.transition(gi),Rn;se&&(Rn=Tn(se),ti.attr("x",Rn[0]).attr("width",Rn[1]-Rn[0]),qr(Ai)),Te&&(Rn=Tn(Te),ti.attr("y",Rn[0]).attr("height",Rn[1]-Rn[0]),_i(Ai)),Gr(Ai)})}yr.event=function(Xr){Xr.each(function(){var ni=X.of(this,arguments),gi={x:Ne,y:He,i:Ye,j:Ct},Pi=this.__chart__||gi;this.__chart__=gi,Bo?e.select(this).transition().each("start.brush",function(){Ye=Pi.i,Ct=Pi.j,Ne=Pi.x,He=Pi.y,ni({type:"brushstart"})}).tween("brush:brush",function(){var Ai=Gu(Ne,gi.x),ti=Gu(He,gi.y);return Ye=Ct=null,function(Rn){Ne=gi.x=Ai(Rn),He=gi.y=ti(Rn),ni({type:"brush",mode:"resize"})}}).each("end.brush",function(){Ye=gi.i,Ct=gi.j,ni({type:"brush",mode:"resize"}),ni({type:"brushend"})}):(ni({type:"brushstart"}),ni({type:"brush",mode:"resize"}),ni({type:"brushend"}))})};function Gr(Xr){Xr.selectAll(".resize").attr("transform",function(ni){return"translate("+Ne[+/e$/.test(ni)]+","+He[+/^s/.test(ni)]+")"})}function qr(Xr){Xr.select(".extent").attr("x",Ne[0]),Xr.selectAll(".extent,.n>rect,.s>rect").attr("width",Ne[1]-Ne[0])}function _i(Xr){Xr.select(".extent").attr("y",He[0]),Xr.selectAll(".extent,.e>rect,.w>rect").attr("height",He[1]-He[0])}function bi(){var Xr=this,ni=e.select(e.event.target),gi=X.of(Xr,arguments),Pi=e.select(Xr),Ai=ni.datum(),ti=!/^(n|s)$/.test(Ai)&&se,Rn=!/^(e|w)$/.test(Ai)&&Te,Cn=ni.classed("extent"),Nn=Wr(Xr),ia,Ea=e.mouse(Xr),Ia,yo=e.select(a(Xr)).on("keydown.brush",Rs).on("keyup.brush",Es);if(e.event.changedTouches?yo.on("touchmove.brush",Zs).on("touchend.brush",Ha):yo.on("mousemove.brush",Zs).on("mouseup.brush",Ha),Pi.interrupt().selectAll("*").interrupt(),Cn)Ea[0]=Ne[0]-Ea[0],Ea[1]=He[0]-Ea[1];else if(Ai){var Da=+/w$/.test(Ai),go=+/^n/.test(Ai);Ia=[Ne[1-Da]-Ea[0],He[1-go]-Ea[1]],Ea[0]=Ne[Da],Ea[1]=He[go]}else e.event.altKey&&(ia=Ea.slice());Pi.style("pointer-events","none").selectAll(".resize").style("display",null),e.select("body").style("cursor",ni.style("cursor")),gi({type:"brushstart"}),Zs();function Rs(){e.event.keyCode==32&&(Cn||(ia=null,Ea[0]-=Ne[1],Ea[1]-=He[1],Cn=2),_e())}function Es(){e.event.keyCode==32&&Cn==2&&(Ea[0]+=Ne[1],Ea[1]+=He[1],Cn=0,_e())}function Zs(){var Fo=e.mouse(Xr),Uo=!1;Ia&&(Fo[0]+=Ia[0],Fo[1]+=Ia[1]),Cn||(e.event.altKey?(ia||(ia=[(Ne[0]+Ne[1])/2,(He[0]+He[1])/2]),Ea[0]=Ne[+(Fo[0]{(function(e,t){typeof u6=="object"&&typeof pee!="undefined"?t(u6):(e=e||self,t(e.d3=e.d3||{}))})(u6,function(e){"use strict";var t=new Date,r=new Date;function n(Qe,Et,er,Ut){function Ft(bt){return Qe(bt=arguments.length===0?new Date:new Date(+bt)),bt}return Ft.floor=function(bt){return Qe(bt=new Date(+bt)),bt},Ft.ceil=function(bt){return Qe(bt=new Date(bt-1)),Et(bt,1),Qe(bt),bt},Ft.round=function(bt){var yt=Ft(bt),Yt=Ft.ceil(bt);return bt-yt0))return lr;do lr.push(Tr=new Date(+bt)),Et(bt,Yt),Qe(bt);while(Tr=yt)for(;Qe(yt),!bt(yt);)yt.setTime(yt-1)},function(yt,Yt){if(yt>=yt)if(Yt<0)for(;++Yt<=0;)for(;Et(yt,-1),!bt(yt););else for(;--Yt>=0;)for(;Et(yt,1),!bt(yt););})},er&&(Ft.count=function(bt,yt){return t.setTime(+bt),r.setTime(+yt),Qe(t),Qe(r),Math.floor(er(t,r))},Ft.every=function(bt){return bt=Math.floor(bt),!isFinite(bt)||!(bt>0)?null:bt>1?Ft.filter(Ut?function(yt){return Ut(yt)%bt===0}:function(yt){return Ft.count(0,yt)%bt===0}):Ft}),Ft}var i=n(function(){},function(Qe,Et){Qe.setTime(+Qe+Et)},function(Qe,Et){return Et-Qe});i.every=function(Qe){return Qe=Math.floor(Qe),!isFinite(Qe)||!(Qe>0)?null:Qe>1?n(function(Et){Et.setTime(Math.floor(Et/Qe)*Qe)},function(Et,er){Et.setTime(+Et+er*Qe)},function(Et,er){return(er-Et)/Qe}):i};var a=i.range,o=1e3,s=6e4,l=36e5,u=864e5,c=6048e5,f=n(function(Qe){Qe.setTime(Qe-Qe.getMilliseconds())},function(Qe,Et){Qe.setTime(+Qe+Et*o)},function(Qe,Et){return(Et-Qe)/o},function(Qe){return Qe.getUTCSeconds()}),h=f.range,d=n(function(Qe){Qe.setTime(Qe-Qe.getMilliseconds()-Qe.getSeconds()*o)},function(Qe,Et){Qe.setTime(+Qe+Et*s)},function(Qe,Et){return(Et-Qe)/s},function(Qe){return Qe.getMinutes()}),v=d.range,x=n(function(Qe){Qe.setTime(Qe-Qe.getMilliseconds()-Qe.getSeconds()*o-Qe.getMinutes()*s)},function(Qe,Et){Qe.setTime(+Qe+Et*l)},function(Qe,Et){return(Et-Qe)/l},function(Qe){return Qe.getHours()}),b=x.range,p=n(function(Qe){Qe.setHours(0,0,0,0)},function(Qe,Et){Qe.setDate(Qe.getDate()+Et)},function(Qe,Et){return(Et-Qe-(Et.getTimezoneOffset()-Qe.getTimezoneOffset())*s)/u},function(Qe){return Qe.getDate()-1}),C=p.range;function E(Qe){return n(function(Et){Et.setDate(Et.getDate()-(Et.getDay()+7-Qe)%7),Et.setHours(0,0,0,0)},function(Et,er){Et.setDate(Et.getDate()+er*7)},function(Et,er){return(er-Et-(er.getTimezoneOffset()-Et.getTimezoneOffset())*s)/c})}var A=E(0),L=E(1),_=E(2),k=E(3),M=E(4),g=E(5),P=E(6),T=A.range,z=L.range,O=_.range,V=k.range,G=M.range,Z=g.range,H=P.range,N=n(function(Qe){Qe.setDate(1),Qe.setHours(0,0,0,0)},function(Qe,Et){Qe.setMonth(Qe.getMonth()+Et)},function(Qe,Et){return Et.getMonth()-Qe.getMonth()+(Et.getFullYear()-Qe.getFullYear())*12},function(Qe){return Qe.getMonth()}),j=N.range,re=n(function(Qe){Qe.setMonth(0,1),Qe.setHours(0,0,0,0)},function(Qe,Et){Qe.setFullYear(Qe.getFullYear()+Et)},function(Qe,Et){return Et.getFullYear()-Qe.getFullYear()},function(Qe){return Qe.getFullYear()});re.every=function(Qe){return!isFinite(Qe=Math.floor(Qe))||!(Qe>0)?null:n(function(Et){Et.setFullYear(Math.floor(Et.getFullYear()/Qe)*Qe),Et.setMonth(0,1),Et.setHours(0,0,0,0)},function(Et,er){Et.setFullYear(Et.getFullYear()+er*Qe)})};var oe=re.range,_e=n(function(Qe){Qe.setUTCSeconds(0,0)},function(Qe,Et){Qe.setTime(+Qe+Et*s)},function(Qe,Et){return(Et-Qe)/s},function(Qe){return Qe.getUTCMinutes()}),Me=_e.range,ke=n(function(Qe){Qe.setUTCMinutes(0,0,0)},function(Qe,Et){Qe.setTime(+Qe+Et*l)},function(Qe,Et){return(Et-Qe)/l},function(Qe){return Qe.getUTCHours()}),me=ke.range,ie=n(function(Qe){Qe.setUTCHours(0,0,0,0)},function(Qe,Et){Qe.setUTCDate(Qe.getUTCDate()+Et)},function(Qe,Et){return(Et-Qe)/u},function(Qe){return Qe.getUTCDate()-1}),Se=ie.range;function Le(Qe){return n(function(Et){Et.setUTCDate(Et.getUTCDate()-(Et.getUTCDay()+7-Qe)%7),Et.setUTCHours(0,0,0,0)},function(Et,er){Et.setUTCDate(Et.getUTCDate()+er*7)},function(Et,er){return(er-Et)/c})}var Ae=Le(0),De=Le(1),Pe=Le(2),ge=Le(3),Fe=Le(4),ce=Le(5),Ze=Le(6),ct=Ae.range,pt=De.range,Wt=Pe.range,st=ge.range,lt=Fe.range,Gt=ce.range,Nt=Ze.range,$t=n(function(Qe){Qe.setUTCDate(1),Qe.setUTCHours(0,0,0,0)},function(Qe,Et){Qe.setUTCMonth(Qe.getUTCMonth()+Et)},function(Qe,Et){return Et.getUTCMonth()-Qe.getUTCMonth()+(Et.getUTCFullYear()-Qe.getUTCFullYear())*12},function(Qe){return Qe.getUTCMonth()}),sr=$t.range,wr=n(function(Qe){Qe.setUTCMonth(0,1),Qe.setUTCHours(0,0,0,0)},function(Qe,Et){Qe.setUTCFullYear(Qe.getUTCFullYear()+Et)},function(Qe,Et){return Et.getUTCFullYear()-Qe.getUTCFullYear()},function(Qe){return Qe.getUTCFullYear()});wr.every=function(Qe){return!isFinite(Qe=Math.floor(Qe))||!(Qe>0)?null:n(function(Et){Et.setUTCFullYear(Math.floor(Et.getUTCFullYear()/Qe)*Qe),Et.setUTCMonth(0,1),Et.setUTCHours(0,0,0,0)},function(Et,er){Et.setUTCFullYear(Et.getUTCFullYear()+er*Qe)})};var ur=wr.range;e.timeDay=p,e.timeDays=C,e.timeFriday=g,e.timeFridays=Z,e.timeHour=x,e.timeHours=b,e.timeInterval=n,e.timeMillisecond=i,e.timeMilliseconds=a,e.timeMinute=d,e.timeMinutes=v,e.timeMonday=L,e.timeMondays=z,e.timeMonth=N,e.timeMonths=j,e.timeSaturday=P,e.timeSaturdays=H,e.timeSecond=f,e.timeSeconds=h,e.timeSunday=A,e.timeSundays=T,e.timeThursday=M,e.timeThursdays=G,e.timeTuesday=_,e.timeTuesdays=O,e.timeWednesday=k,e.timeWednesdays=V,e.timeWeek=A,e.timeWeeks=T,e.timeYear=re,e.timeYears=oe,e.utcDay=ie,e.utcDays=Se,e.utcFriday=ce,e.utcFridays=Gt,e.utcHour=ke,e.utcHours=me,e.utcMillisecond=i,e.utcMilliseconds=a,e.utcMinute=_e,e.utcMinutes=Me,e.utcMonday=De,e.utcMondays=pt,e.utcMonth=$t,e.utcMonths=sr,e.utcSaturday=Ze,e.utcSaturdays=Nt,e.utcSecond=f,e.utcSeconds=h,e.utcSunday=Ae,e.utcSundays=ct,e.utcThursday=Fe,e.utcThursdays=lt,e.utcTuesday=Pe,e.utcTuesdays=Wt,e.utcWednesday=ge,e.utcWednesdays=st,e.utcWeek=Ae,e.utcWeeks=ct,e.utcYear=wr,e.utcYears=ur,Object.defineProperty(e,"__esModule",{value:!0})})});var e3=ye((c6,gee)=>{(function(e,t){typeof c6=="object"&&typeof gee!="undefined"?t(c6,gO()):(e=e||self,t(e.d3=e.d3||{},e.d3))})(c6,function(e,t){"use strict";function r(Ge){if(0<=Ge.y&&Ge.y<100){var Je=new Date(-1,Ge.m,Ge.d,Ge.H,Ge.M,Ge.S,Ge.L);return Je.setFullYear(Ge.y),Je}return new Date(Ge.y,Ge.m,Ge.d,Ge.H,Ge.M,Ge.S,Ge.L)}function n(Ge){if(0<=Ge.y&&Ge.y<100){var Je=new Date(Date.UTC(-1,Ge.m,Ge.d,Ge.H,Ge.M,Ge.S,Ge.L));return Je.setUTCFullYear(Ge.y),Je}return new Date(Date.UTC(Ge.y,Ge.m,Ge.d,Ge.H,Ge.M,Ge.S,Ge.L))}function i(Ge,Je,je){return{y:Ge,m:Je,d:je,H:0,M:0,S:0,L:0}}function a(Ge){var Je=Ge.dateTime,je=Ge.date,$e=Ge.time,wt=Ge.periods,Ie=Ge.days,xe=Ge.shortDays,Ce=Ge.months,vt=Ge.shortMonths,nr=h(wt),ir=d(wt),pr=h(Ie),oi=d(Ie),di=h(xe),Jr=d(xe),fi=h(Ce),Hi=d(Ce),Pn=h(vt),wn=d(vt),pn={a:Ji,A:en,b:cn,B:yn,c:null,d:N,e:N,f:Me,H:j,I:re,j:oe,L:_e,m:ke,M:me,p:Mn,q:Ba,Q:yt,s:Yt,S:ie,u:Se,U:Le,V:Ae,w:De,W:Pe,x:null,X:null,y:ge,Y:Fe,Z:ce,"%":bt},Vn={a:la,A:ma,b:Wa,B:Fa,c:null,d:Ze,e:Ze,f:lt,H:ct,I:pt,j:Wt,L:st,m:Gt,M:Nt,p:Wo,q:da,Q:yt,s:Yt,S:$t,u:sr,U:wr,V:ur,w:Qe,W:Et,x:null,X:null,y:er,Y:Ut,Z:Ft,"%":bt},kn={a:tr,A:ar,b:Er,B:Zr,c:ri,d:M,e:M,f:V,H:P,I:P,j:g,L:O,m:k,M:T,p:_t,q:_,Q:Z,s:H,S:z,u:x,U:b,V:p,w:v,W:C,x:$r,X:zi,y:A,Y:E,Z:L,"%":G};pn.x=ea(je,pn),pn.X=ea($e,pn),pn.c=ea(Je,pn),Vn.x=ea(je,Vn),Vn.X=ea($e,Vn),Vn.c=ea(Je,Vn);function ea(Wn,Ga){return function(vo){var jn=[],St=-1,Cr=0,Qr=Wn.length,pi,fn,Sn;for(vo instanceof Date||(vo=new Date(+vo));++St53)return null;"w"in jn||(jn.w=1),"Z"in jn?(Cr=n(i(jn.y,0,1)),Qr=Cr.getUTCDay(),Cr=Qr>4||Qr===0?t.utcMonday.ceil(Cr):t.utcMonday(Cr),Cr=t.utcDay.offset(Cr,(jn.V-1)*7),jn.y=Cr.getUTCFullYear(),jn.m=Cr.getUTCMonth(),jn.d=Cr.getUTCDate()+(jn.w+6)%7):(Cr=r(i(jn.y,0,1)),Qr=Cr.getDay(),Cr=Qr>4||Qr===0?t.timeMonday.ceil(Cr):t.timeMonday(Cr),Cr=t.timeDay.offset(Cr,(jn.V-1)*7),jn.y=Cr.getFullYear(),jn.m=Cr.getMonth(),jn.d=Cr.getDate()+(jn.w+6)%7)}else("W"in jn||"U"in jn)&&("w"in jn||(jn.w="u"in jn?jn.u%7:"W"in jn?1:0),Qr="Z"in jn?n(i(jn.y,0,1)).getUTCDay():r(i(jn.y,0,1)).getDay(),jn.m=0,jn.d="W"in jn?(jn.w+6)%7+jn.W*7-(Qr+5)%7:jn.w+jn.U*7-(Qr+6)%7);return"Z"in jn?(jn.H+=jn.Z/100|0,jn.M+=jn.Z%100,n(jn)):r(jn)}}function Vt(Wn,Ga,vo,jn){for(var St=0,Cr=Ga.length,Qr=vo.length,pi,fn;St=Qr)return-1;if(pi=Ga.charCodeAt(St++),pi===37){if(pi=Ga.charAt(St++),fn=kn[pi in o?Ga.charAt(St++):pi],!fn||(jn=fn(Wn,vo,jn))<0)return-1}else if(pi!=vo.charCodeAt(jn++))return-1}return jn}function _t(Wn,Ga,vo){var jn=nr.exec(Ga.slice(vo));return jn?(Wn.p=ir[jn[0].toLowerCase()],vo+jn[0].length):-1}function tr(Wn,Ga,vo){var jn=di.exec(Ga.slice(vo));return jn?(Wn.w=Jr[jn[0].toLowerCase()],vo+jn[0].length):-1}function ar(Wn,Ga,vo){var jn=pr.exec(Ga.slice(vo));return jn?(Wn.w=oi[jn[0].toLowerCase()],vo+jn[0].length):-1}function Er(Wn,Ga,vo){var jn=Pn.exec(Ga.slice(vo));return jn?(Wn.m=wn[jn[0].toLowerCase()],vo+jn[0].length):-1}function Zr(Wn,Ga,vo){var jn=fi.exec(Ga.slice(vo));return jn?(Wn.m=Hi[jn[0].toLowerCase()],vo+jn[0].length):-1}function ri(Wn,Ga,vo){return Vt(Wn,Je,Ga,vo)}function $r(Wn,Ga,vo){return Vt(Wn,je,Ga,vo)}function zi(Wn,Ga,vo){return Vt(Wn,$e,Ga,vo)}function Ji(Wn){return xe[Wn.getDay()]}function en(Wn){return Ie[Wn.getDay()]}function cn(Wn){return vt[Wn.getMonth()]}function yn(Wn){return Ce[Wn.getMonth()]}function Mn(Wn){return wt[+(Wn.getHours()>=12)]}function Ba(Wn){return 1+~~(Wn.getMonth()/3)}function la(Wn){return xe[Wn.getUTCDay()]}function ma(Wn){return Ie[Wn.getUTCDay()]}function Wa(Wn){return vt[Wn.getUTCMonth()]}function Fa(Wn){return Ce[Wn.getUTCMonth()]}function Wo(Wn){return wt[+(Wn.getUTCHours()>=12)]}function da(Wn){return 1+~~(Wn.getUTCMonth()/3)}return{format:function(Wn){var Ga=ea(Wn+="",pn);return Ga.toString=function(){return Wn},Ga},parse:function(Wn){var Ga=ua(Wn+="",!1);return Ga.toString=function(){return Wn},Ga},utcFormat:function(Wn){var Ga=ea(Wn+="",Vn);return Ga.toString=function(){return Wn},Ga},utcParse:function(Wn){var Ga=ua(Wn+="",!0);return Ga.toString=function(){return Wn},Ga}}}var o={"-":"",_:" ",0:"0"},s=/^\s*\d+/,l=/^%/,u=/[\\^$*+?|[\]().{}]/g;function c(Ge,Je,je){var $e=Ge<0?"-":"",wt=($e?-Ge:Ge)+"",Ie=wt.length;return $e+(Ie68?1900:2e3),je+$e[0].length):-1}function L(Ge,Je,je){var $e=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(Je.slice(je,je+6));return $e?(Ge.Z=$e[1]?0:-($e[2]+($e[3]||"00")),je+$e[0].length):-1}function _(Ge,Je,je){var $e=s.exec(Je.slice(je,je+1));return $e?(Ge.q=$e[0]*3-3,je+$e[0].length):-1}function k(Ge,Je,je){var $e=s.exec(Je.slice(je,je+2));return $e?(Ge.m=$e[0]-1,je+$e[0].length):-1}function M(Ge,Je,je){var $e=s.exec(Je.slice(je,je+2));return $e?(Ge.d=+$e[0],je+$e[0].length):-1}function g(Ge,Je,je){var $e=s.exec(Je.slice(je,je+3));return $e?(Ge.m=0,Ge.d=+$e[0],je+$e[0].length):-1}function P(Ge,Je,je){var $e=s.exec(Je.slice(je,je+2));return $e?(Ge.H=+$e[0],je+$e[0].length):-1}function T(Ge,Je,je){var $e=s.exec(Je.slice(je,je+2));return $e?(Ge.M=+$e[0],je+$e[0].length):-1}function z(Ge,Je,je){var $e=s.exec(Je.slice(je,je+2));return $e?(Ge.S=+$e[0],je+$e[0].length):-1}function O(Ge,Je,je){var $e=s.exec(Je.slice(je,je+3));return $e?(Ge.L=+$e[0],je+$e[0].length):-1}function V(Ge,Je,je){var $e=s.exec(Je.slice(je,je+6));return $e?(Ge.L=Math.floor($e[0]/1e3),je+$e[0].length):-1}function G(Ge,Je,je){var $e=l.exec(Je.slice(je,je+1));return $e?je+$e[0].length:-1}function Z(Ge,Je,je){var $e=s.exec(Je.slice(je));return $e?(Ge.Q=+$e[0],je+$e[0].length):-1}function H(Ge,Je,je){var $e=s.exec(Je.slice(je));return $e?(Ge.s=+$e[0],je+$e[0].length):-1}function N(Ge,Je){return c(Ge.getDate(),Je,2)}function j(Ge,Je){return c(Ge.getHours(),Je,2)}function re(Ge,Je){return c(Ge.getHours()%12||12,Je,2)}function oe(Ge,Je){return c(1+t.timeDay.count(t.timeYear(Ge),Ge),Je,3)}function _e(Ge,Je){return c(Ge.getMilliseconds(),Je,3)}function Me(Ge,Je){return _e(Ge,Je)+"000"}function ke(Ge,Je){return c(Ge.getMonth()+1,Je,2)}function me(Ge,Je){return c(Ge.getMinutes(),Je,2)}function ie(Ge,Je){return c(Ge.getSeconds(),Je,2)}function Se(Ge){var Je=Ge.getDay();return Je===0?7:Je}function Le(Ge,Je){return c(t.timeSunday.count(t.timeYear(Ge)-1,Ge),Je,2)}function Ae(Ge,Je){var je=Ge.getDay();return Ge=je>=4||je===0?t.timeThursday(Ge):t.timeThursday.ceil(Ge),c(t.timeThursday.count(t.timeYear(Ge),Ge)+(t.timeYear(Ge).getDay()===4),Je,2)}function De(Ge){return Ge.getDay()}function Pe(Ge,Je){return c(t.timeMonday.count(t.timeYear(Ge)-1,Ge),Je,2)}function ge(Ge,Je){return c(Ge.getFullYear()%100,Je,2)}function Fe(Ge,Je){return c(Ge.getFullYear()%1e4,Je,4)}function ce(Ge){var Je=Ge.getTimezoneOffset();return(Je>0?"-":(Je*=-1,"+"))+c(Je/60|0,"0",2)+c(Je%60,"0",2)}function Ze(Ge,Je){return c(Ge.getUTCDate(),Je,2)}function ct(Ge,Je){return c(Ge.getUTCHours(),Je,2)}function pt(Ge,Je){return c(Ge.getUTCHours()%12||12,Je,2)}function Wt(Ge,Je){return c(1+t.utcDay.count(t.utcYear(Ge),Ge),Je,3)}function st(Ge,Je){return c(Ge.getUTCMilliseconds(),Je,3)}function lt(Ge,Je){return st(Ge,Je)+"000"}function Gt(Ge,Je){return c(Ge.getUTCMonth()+1,Je,2)}function Nt(Ge,Je){return c(Ge.getUTCMinutes(),Je,2)}function $t(Ge,Je){return c(Ge.getUTCSeconds(),Je,2)}function sr(Ge){var Je=Ge.getUTCDay();return Je===0?7:Je}function wr(Ge,Je){return c(t.utcSunday.count(t.utcYear(Ge)-1,Ge),Je,2)}function ur(Ge,Je){var je=Ge.getUTCDay();return Ge=je>=4||je===0?t.utcThursday(Ge):t.utcThursday.ceil(Ge),c(t.utcThursday.count(t.utcYear(Ge),Ge)+(t.utcYear(Ge).getUTCDay()===4),Je,2)}function Qe(Ge){return Ge.getUTCDay()}function Et(Ge,Je){return c(t.utcMonday.count(t.utcYear(Ge)-1,Ge),Je,2)}function er(Ge,Je){return c(Ge.getUTCFullYear()%100,Je,2)}function Ut(Ge,Je){return c(Ge.getUTCFullYear()%1e4,Je,4)}function Ft(){return"+0000"}function bt(){return"%"}function yt(Ge){return+Ge}function Yt(Ge){return Math.floor(+Ge/1e3)}var lr;Tr({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function Tr(Ge){return lr=a(Ge),e.timeFormat=lr.format,e.timeParse=lr.parse,e.utcFormat=lr.utcFormat,e.utcParse=lr.utcParse,lr}var Rr="%Y-%m-%dT%H:%M:%S.%LZ";function ei(Ge){return Ge.toISOString()}var Wr=Date.prototype.toISOString?ei:e.utcFormat(Rr);function Ur(Ge){var Je=new Date(Ge);return isNaN(Je)?null:Je}var dt=+new Date("2000-01-01T00:00:00.000Z")?Ur:e.utcParse(Rr);e.isoFormat=Wr,e.isoParse=dt,e.timeFormatDefaultLocale=Tr,e.timeFormatLocale=a,Object.defineProperty(e,"__esModule",{value:!0})})});var mO=ye((f6,mee)=>{(function(e,t){typeof f6=="object"&&typeof mee!="undefined"?t(f6):(e=typeof globalThis!="undefined"?globalThis:e||self,t(e.d3=e.d3||{}))})(f6,function(e){"use strict";function t(k){return Math.abs(k=Math.round(k))>=1e21?k.toLocaleString("en").replace(/,/g,""):k.toString(10)}function r(k,M){if((g=(k=M?k.toExponential(M-1):k.toExponential()).indexOf("e"))<0)return null;var g,P=k.slice(0,g);return[P.length>1?P[0]+P.slice(2):P,+k.slice(g+1)]}function n(k){return k=r(Math.abs(k)),k?k[1]:NaN}function i(k,M){return function(g,P){for(var T=g.length,z=[],O=0,V=k[0],G=0;T>0&&V>0&&(G+V+1>P&&(V=Math.max(1,P-G)),z.push(g.substring(T-=V,T+V)),!((G+=V+1)>P));)V=k[O=(O+1)%k.length];return z.reverse().join(M)}}function a(k){return function(M){return M.replace(/[0-9]/g,function(g){return k[+g]})}}var o=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function s(k){if(!(M=o.exec(k)))throw new Error("invalid format: "+k);var M;return new l({fill:M[1],align:M[2],sign:M[3],symbol:M[4],zero:M[5],width:M[6],comma:M[7],precision:M[8]&&M[8].slice(1),trim:M[9],type:M[10]})}s.prototype=l.prototype;function l(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+""}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(k){e:for(var M=k.length,g=1,P=-1,T;g0&&(P=0);break}return P>0?k.slice(0,P)+k.slice(T+1):k}var c;function f(k,M){var g=r(k,M);if(!g)return k+"";var P=g[0],T=g[1],z=T-(c=Math.max(-8,Math.min(8,Math.floor(T/3)))*3)+1,O=P.length;return z===O?P:z>O?P+new Array(z-O+1).join("0"):z>0?P.slice(0,z)+"."+P.slice(z):"0."+new Array(1-z).join("0")+r(k,Math.max(0,M+z-1))[0]}function h(k,M){var g=r(k,M);if(!g)return k+"";var P=g[0],T=g[1];return T<0?"0."+new Array(-T).join("0")+P:P.length>T+1?P.slice(0,T+1)+"."+P.slice(T+1):P+new Array(T-P.length+2).join("0")}var d={"%":function(k,M){return(k*100).toFixed(M)},b:function(k){return Math.round(k).toString(2)},c:function(k){return k+""},d:t,e:function(k,M){return k.toExponential(M)},f:function(k,M){return k.toFixed(M)},g:function(k,M){return k.toPrecision(M)},o:function(k){return Math.round(k).toString(8)},p:function(k,M){return h(k*100,M)},r:h,s:f,X:function(k){return Math.round(k).toString(16).toUpperCase()},x:function(k){return Math.round(k).toString(16)}};function v(k){return k}var x=Array.prototype.map,b=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function p(k){var M=k.grouping===void 0||k.thousands===void 0?v:i(x.call(k.grouping,Number),k.thousands+""),g=k.currency===void 0?"":k.currency[0]+"",P=k.currency===void 0?"":k.currency[1]+"",T=k.decimal===void 0?".":k.decimal+"",z=k.numerals===void 0?v:a(x.call(k.numerals,String)),O=k.percent===void 0?"%":k.percent+"",V=k.minus===void 0?"-":k.minus+"",G=k.nan===void 0?"NaN":k.nan+"";function Z(N){N=s(N);var j=N.fill,re=N.align,oe=N.sign,_e=N.symbol,Me=N.zero,ke=N.width,me=N.comma,ie=N.precision,Se=N.trim,Le=N.type;Le==="n"?(me=!0,Le="g"):d[Le]||(ie===void 0&&(ie=12),Se=!0,Le="g"),(Me||j==="0"&&re==="=")&&(Me=!0,j="0",re="=");var Ae=_e==="$"?g:_e==="#"&&/[boxX]/.test(Le)?"0"+Le.toLowerCase():"",De=_e==="$"?P:/[%p]/.test(Le)?O:"",Pe=d[Le],ge=/[defgprs%]/.test(Le);ie=ie===void 0?6:/[gprs]/.test(Le)?Math.max(1,Math.min(21,ie)):Math.max(0,Math.min(20,ie));function Fe(ce){var Ze=Ae,ct=De,pt,Wt,st;if(Le==="c")ct=Pe(ce)+ct,ce="";else{ce=+ce;var lt=ce<0||1/ce<0;if(ce=isNaN(ce)?G:Pe(Math.abs(ce),ie),Se&&(ce=u(ce)),lt&&+ce==0&&oe!=="+"&&(lt=!1),Ze=(lt?oe==="("?oe:V:oe==="-"||oe==="("?"":oe)+Ze,ct=(Le==="s"?b[8+c/3]:"")+ct+(lt&&oe==="("?")":""),ge){for(pt=-1,Wt=ce.length;++ptst||st>57){ct=(st===46?T+ce.slice(pt+1):ce.slice(pt))+ct,ce=ce.slice(0,pt);break}}}me&&!Me&&(ce=M(ce,1/0));var Gt=Ze.length+ce.length+ct.length,Nt=Gt>1)+Ze+ce+ct+Nt.slice(Gt);break;default:ce=Nt+Ze+ce+ct;break}return z(ce)}return Fe.toString=function(){return N+""},Fe}function H(N,j){var re=Z((N=s(N),N.type="f",N)),oe=Math.max(-8,Math.min(8,Math.floor(n(j)/3)))*3,_e=Math.pow(10,-oe),Me=b[8+oe/3];return function(ke){return re(_e*ke)+Me}}return{format:Z,formatPrefix:H}}var C;E({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function E(k){return C=p(k),e.format=C.format,e.formatPrefix=C.formatPrefix,C}function A(k){return Math.max(0,-n(Math.abs(k)))}function L(k,M){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(n(M)/3)))*3-n(Math.abs(k)))}function _(k,M){return k=Math.abs(k),M=Math.abs(M)-k,Math.max(0,n(M)-n(k))+1}e.FormatSpecifier=l,e.formatDefaultLocale=E,e.formatLocale=p,e.formatSpecifier=s,e.precisionFixed=A,e.precisionPrefix=L,e.precisionRound=_,Object.defineProperty(e,"__esModule",{value:!0})})});var _ee=ye((atr,yee)=>{"use strict";yee.exports=function(e){for(var t=e.length,r,n=0;n13)&&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 Eo=ye((otr,xee)=>{"use strict";var Yet=_ee();xee.exports=function(e){var t=typeof e;if(t==="string"){var r=e;if(e=+e,e===0&&Yet(r))return!1}else if(t!=="number")return!1;return e-e<1}});var hs=ye((str,bee)=>{"use strict";bee.exports={BADNUM:void 0,FP_SAFE:Number.MAX_VALUE*1e-4,ONEMAXYEAR:316224e5,ONEAVGYEAR:315576e5,ONEMINYEAR:31536e6,ONEMAXQUARTER:79488e5,ONEAVGQUARTER:78894e5,ONEMINQUARTER:76896e5,ONEMAXMONTH:26784e5,ONEAVGMONTH:26298e5,ONEMINMONTH:24192e5,ONEWEEK:6048e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,ONEMILLI:1,ONEMICROSEC:.001,EPOCHJD:24405875e-1,ALMOST_EQUAL:1-1e-6,LOG_CLIP:10,MINUS_SIGN:"\u2212"}});var yO=ye((h6,wee)=>{(function(e,t){typeof h6=="object"&&typeof wee!="undefined"?t(h6):(e=typeof globalThis!="undefined"?globalThis:e||self,t(e["base64-arraybuffer"]={}))})(h6,function(e){"use strict";for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),n=0;n>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,d,v;o[o.length-1]==="="&&(s--,o[o.length-2]==="="&&s--);var x=new ArrayBuffer(s),b=new Uint8Array(x);for(u=0;u>4,b[c++]=(h&15)<<4|d>>2,b[c++]=(d&3)<<6|v&63;return x};e.decode=a,e.encode=i,Object.defineProperty(e,"__esModule",{value:!0})})});var gy=ye((ltr,Tee)=>{"use strict";Tee.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 vv=ye(mg=>{"use strict";var Ket=yO().decode,Jet=gy(),_O=Array.isArray,$et=ArrayBuffer,Qet=DataView;function Aee(e){return $et.isView(e)&&!(e instanceof Qet)}mg.isTypedArray=Aee;function d6(e){return _O(e)||Aee(e)}mg.isArrayOrTypedArray=d6;function ett(e){return!d6(e[0])}mg.isArray1D=ett;mg.ensureArray=function(e,t){return _O(e)||(e=[]),e.length=t,e};var Ld={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};Ld.uint8c=Ld.u1c;Ld.uint8=Ld.u1;Ld.int8=Ld.i1;Ld.uint16=Ld.u2;Ld.int16=Ld.i2;Ld.uint32=Ld.u4;Ld.int32=Ld.i4;Ld.float32=Ld.f4;Ld.float64=Ld.f8;function xO(e){return e.constructor===ArrayBuffer}mg.isArrayBuffer=xO;mg.decodeTypedArraySpec=function(e){var t=[],r=ttt(e),n=r.dtype,i=Ld[n];if(!i)throw new Error('Error in dtype: "'+n+'"');var a=i.BYTES_PER_ELEMENT,o=r.bdata;xO(o)||(o=Ket(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,d=0;if(l===1)t=new i(o);else if(l===2)for(u=+s[1],c=0;c{"use strict";var Mee=Eo(),wO=vv().isArrayOrTypedArray;Lee.exports=function(t,r){if(Mee(r))r=String(r);else if(typeof r!="string"||r.substr(r.length-4)==="[-1]")throw"bad property string";var n=r.split("."),i,a,o,s;for(s=0;s{"use strict";var t3=CS(),ott=/^\w*$/,stt=0,Pee=1,v6=2,Iee=3,ob=4;Ree.exports=function(t,r,n,i){n=n||"name",i=i||"value";var a,o,s,l={};r&&r.length?(s=t3(t,r),o=s.get()):o=t,r=r||"";var u={};if(o)for(a=0;a2)return l[d]=l[d]|v6,f.set(h,null);if(c){for(a=d;a{"use strict";var ltt=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,utt=/^[^\.\[\]]+$/;Fee.exports=function(e,t){for(;t;){var r=e.match(ltt);if(r)e=r[1];else if(e.match(utt))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 p6=ye((dtr,Oee)=>{"use strict";var ctt=Eo();Oee.exports=function(t,r){if(t>0)return Math.log(t)/Math.LN10;var n=Math.log(Math.min(r[0],r[1]))/Math.LN10;return ctt(n)||(n=Math.log(Math.max(r[0],r[1]))/Math.LN10-6),n}});var Nee=ye((vtr,Bee)=>{"use strict";var qee=vv().isArrayOrTypedArray,kS=gy();Bee.exports=function e(t,r){for(var n in r){var i=r[n],a=t[n];if(a!==i)if(n.charAt(0)==="_"||typeof i=="function"){if(n in t)continue;t[n]=i}else if(qee(i)&&qee(a)&&kS(i[0])){if(n==="customdata"||n==="ids")continue;for(var o=Math.min(i.length,a.length),s=0;s{"use strict";function ftt(e,t){var r=e%t;return r<0?r+t:r}function htt(e,t){return Math.abs(e)>t/2?e-Math.round(e/t)*t:e}Uee.exports={mod:ftt,modHalf:htt}});var cd=ye((gtr,g6)=>{(function(e){var t=/^\s+/,r=/\s+$/,n=0,i=e.round,a=e.min,o=e.max,s=e.random;function l(ge,Fe){if(ge=ge||"",Fe=Fe||{},ge instanceof l)return ge;if(!(this instanceof l))return new l(ge,Fe);var ce=u(ge);this._originalInput=ge,this._r=ce.r,this._g=ce.g,this._b=ce.b,this._a=ce.a,this._roundA=i(100*this._a)/100,this._format=Fe.format||ce.format,this._gradientType=Fe.gradientType,this._r<1&&(this._r=i(this._r)),this._g<1&&(this._g=i(this._g)),this._b<1&&(this._b=i(this._b)),this._ok=ce.ok,this._tc_id=n++}l.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var ge=this.toRgb();return(ge.r*299+ge.g*587+ge.b*114)/1e3},getLuminance:function(){var ge=this.toRgb(),Fe,ce,Ze,ct,pt,Wt;return Fe=ge.r/255,ce=ge.g/255,Ze=ge.b/255,Fe<=.03928?ct=Fe/12.92:ct=e.pow((Fe+.055)/1.055,2.4),ce<=.03928?pt=ce/12.92:pt=e.pow((ce+.055)/1.055,2.4),Ze<=.03928?Wt=Ze/12.92:Wt=e.pow((Ze+.055)/1.055,2.4),.2126*ct+.7152*pt+.0722*Wt},setAlpha:function(ge){return this._a=N(ge),this._roundA=i(100*this._a)/100,this},toHsv:function(){var ge=d(this._r,this._g,this._b);return{h:ge.h*360,s:ge.s,v:ge.v,a:this._a}},toHsvString:function(){var ge=d(this._r,this._g,this._b),Fe=i(ge.h*360),ce=i(ge.s*100),Ze=i(ge.v*100);return this._a==1?"hsv("+Fe+", "+ce+"%, "+Ze+"%)":"hsva("+Fe+", "+ce+"%, "+Ze+"%, "+this._roundA+")"},toHsl:function(){var ge=f(this._r,this._g,this._b);return{h:ge.h*360,s:ge.s,l:ge.l,a:this._a}},toHslString:function(){var ge=f(this._r,this._g,this._b),Fe=i(ge.h*360),ce=i(ge.s*100),Ze=i(ge.l*100);return this._a==1?"hsl("+Fe+", "+ce+"%, "+Ze+"%)":"hsla("+Fe+", "+ce+"%, "+Ze+"%, "+this._roundA+")"},toHex:function(ge){return x(this._r,this._g,this._b,ge)},toHexString:function(ge){return"#"+this.toHex(ge)},toHex8:function(ge){return b(this._r,this._g,this._b,this._a,ge)},toHex8String:function(ge){return"#"+this.toHex8(ge)},toRgb:function(){return{r:i(this._r),g:i(this._g),b:i(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+i(this._r)+", "+i(this._g)+", "+i(this._b)+")":"rgba("+i(this._r)+", "+i(this._g)+", "+i(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:i(j(this._r,255)*100)+"%",g:i(j(this._g,255)*100)+"%",b:i(j(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+i(j(this._r,255)*100)+"%, "+i(j(this._g,255)*100)+"%, "+i(j(this._b,255)*100)+"%)":"rgba("+i(j(this._r,255)*100)+"%, "+i(j(this._g,255)*100)+"%, "+i(j(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:Z[x(this._r,this._g,this._b,!0)]||!1},toFilter:function(ge){var Fe="#"+p(this._r,this._g,this._b,this._a),ce=Fe,Ze=this._gradientType?"GradientType = 1, ":"";if(ge){var ct=l(ge);ce="#"+p(ct._r,ct._g,ct._b,ct._a)}return"progid:DXImageTransform.Microsoft.gradient("+Ze+"startColorstr="+Fe+",endColorstr="+ce+")"},toString:function(ge){var Fe=!!ge;ge=ge||this._format;var ce=!1,Ze=this._a<1&&this._a>=0,ct=!Fe&&Ze&&(ge==="hex"||ge==="hex6"||ge==="hex3"||ge==="hex4"||ge==="hex8"||ge==="name");return ct?ge==="name"&&this._a===0?this.toName():this.toRgbString():(ge==="rgb"&&(ce=this.toRgbString()),ge==="prgb"&&(ce=this.toPercentageRgbString()),(ge==="hex"||ge==="hex6")&&(ce=this.toHexString()),ge==="hex3"&&(ce=this.toHexString(!0)),ge==="hex4"&&(ce=this.toHex8String(!0)),ge==="hex8"&&(ce=this.toHex8String()),ge==="name"&&(ce=this.toName()),ge==="hsl"&&(ce=this.toHslString()),ge==="hsv"&&(ce=this.toHsvString()),ce||this.toHexString())},clone:function(){return l(this.toString())},_applyModification:function(ge,Fe){var ce=ge.apply(null,[this].concat([].slice.call(Fe)));return this._r=ce._r,this._g=ce._g,this._b=ce._b,this.setAlpha(ce._a),this},lighten:function(){return this._applyModification(L,arguments)},brighten:function(){return this._applyModification(_,arguments)},darken:function(){return this._applyModification(k,arguments)},desaturate:function(){return this._applyModification(C,arguments)},saturate:function(){return this._applyModification(E,arguments)},greyscale:function(){return this._applyModification(A,arguments)},spin:function(){return this._applyModification(M,arguments)},_applyCombination:function(ge,Fe){return ge.apply(null,[this].concat([].slice.call(Fe)))},analogous:function(){return this._applyCombination(O,arguments)},complement:function(){return this._applyCombination(g,arguments)},monochromatic:function(){return this._applyCombination(V,arguments)},splitcomplement:function(){return this._applyCombination(z,arguments)},triad:function(){return this._applyCombination(P,arguments)},tetrad:function(){return this._applyCombination(T,arguments)}},l.fromRatio=function(ge,Fe){if(typeof ge=="object"){var ce={};for(var Ze in ge)ge.hasOwnProperty(Ze)&&(Ze==="a"?ce[Ze]=ge[Ze]:ce[Ze]=me(ge[Ze]));ge=ce}return l(ge,Fe)};function u(ge){var Fe={r:0,g:0,b:0},ce=1,Ze=null,ct=null,pt=null,Wt=!1,st=!1;return typeof ge=="string"&&(ge=De(ge)),typeof ge=="object"&&(Ae(ge.r)&&Ae(ge.g)&&Ae(ge.b)?(Fe=c(ge.r,ge.g,ge.b),Wt=!0,st=String(ge.r).substr(-1)==="%"?"prgb":"rgb"):Ae(ge.h)&&Ae(ge.s)&&Ae(ge.v)?(Ze=me(ge.s),ct=me(ge.v),Fe=v(ge.h,Ze,ct),Wt=!0,st="hsv"):Ae(ge.h)&&Ae(ge.s)&&Ae(ge.l)&&(Ze=me(ge.s),pt=me(ge.l),Fe=h(ge.h,Ze,pt),Wt=!0,st="hsl"),ge.hasOwnProperty("a")&&(ce=ge.a)),ce=N(ce),{ok:Wt,format:ge.format||st,r:a(255,o(Fe.r,0)),g:a(255,o(Fe.g,0)),b:a(255,o(Fe.b,0)),a:ce}}function c(ge,Fe,ce){return{r:j(ge,255)*255,g:j(Fe,255)*255,b:j(ce,255)*255}}function f(ge,Fe,ce){ge=j(ge,255),Fe=j(Fe,255),ce=j(ce,255);var Ze=o(ge,Fe,ce),ct=a(ge,Fe,ce),pt,Wt,st=(Ze+ct)/2;if(Ze==ct)pt=Wt=0;else{var lt=Ze-ct;switch(Wt=st>.5?lt/(2-Ze-ct):lt/(Ze+ct),Ze){case ge:pt=(Fe-ce)/lt+(Fe1&&($t-=1),$t<1/6?Gt+(Nt-Gt)*6*$t:$t<1/2?Nt:$t<2/3?Gt+(Nt-Gt)*(2/3-$t)*6:Gt}if(Fe===0)Ze=ct=pt=ce;else{var st=ce<.5?ce*(1+Fe):ce+Fe-ce*Fe,lt=2*ce-st;Ze=Wt(lt,st,ge+1/3),ct=Wt(lt,st,ge),pt=Wt(lt,st,ge-1/3)}return{r:Ze*255,g:ct*255,b:pt*255}}function d(ge,Fe,ce){ge=j(ge,255),Fe=j(Fe,255),ce=j(ce,255);var Ze=o(ge,Fe,ce),ct=a(ge,Fe,ce),pt,Wt,st=Ze,lt=Ze-ct;if(Wt=Ze===0?0:lt/Ze,Ze==ct)pt=0;else{switch(Ze){case ge:pt=(Fe-ce)/lt+(Fe>1)+720)%360;--Fe;)Ze.h=(Ze.h+ct)%360,pt.push(l(Ze));return pt}function V(ge,Fe){Fe=Fe||6;for(var ce=l(ge).toHsv(),Ze=ce.h,ct=ce.s,pt=ce.v,Wt=[],st=1/Fe;Fe--;)Wt.push(l({h:Ze,s:ct,v:pt})),pt=(pt+st)%1;return Wt}l.mix=function(ge,Fe,ce){ce=ce===0?0:ce||50;var Ze=l(ge).toRgb(),ct=l(Fe).toRgb(),pt=ce/100,Wt={r:(ct.r-Ze.r)*pt+Ze.r,g:(ct.g-Ze.g)*pt+Ze.g,b:(ct.b-Ze.b)*pt+Ze.b,a:(ct.a-Ze.a)*pt+Ze.a};return l(Wt)},l.readability=function(ge,Fe){var ce=l(ge),Ze=l(Fe);return(e.max(ce.getLuminance(),Ze.getLuminance())+.05)/(e.min(ce.getLuminance(),Ze.getLuminance())+.05)},l.isReadable=function(ge,Fe,ce){var Ze=l.readability(ge,Fe),ct,pt;switch(pt=!1,ct=Pe(ce),ct.level+ct.size){case"AAsmall":case"AAAlarge":pt=Ze>=4.5;break;case"AAlarge":pt=Ze>=3;break;case"AAAsmall":pt=Ze>=7;break}return pt},l.mostReadable=function(ge,Fe,ce){var Ze=null,ct=0,pt,Wt,st,lt;ce=ce||{},Wt=ce.includeFallbackColors,st=ce.level,lt=ce.size;for(var Gt=0;Gtct&&(ct=pt,Ze=l(Fe[Gt]));return l.isReadable(ge,Ze,{level:st,size:lt})||!Wt?Ze:(ce.includeFallbackColors=!1,l.mostReadable(ge,["#fff","#000"],ce))};var G=l.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},Z=l.hexNames=H(G);function H(ge){var Fe={};for(var ce in ge)ge.hasOwnProperty(ce)&&(Fe[ge[ce]]=ce);return Fe}function N(ge){return ge=parseFloat(ge),(isNaN(ge)||ge<0||ge>1)&&(ge=1),ge}function j(ge,Fe){_e(ge)&&(ge="100%");var ce=Me(ge);return ge=a(Fe,o(0,parseFloat(ge))),ce&&(ge=parseInt(ge*Fe,10)/100),e.abs(ge-Fe)<1e-6?1:ge%Fe/parseFloat(Fe)}function re(ge){return a(1,o(0,ge))}function oe(ge){return parseInt(ge,16)}function _e(ge){return typeof ge=="string"&&ge.indexOf(".")!=-1&&parseFloat(ge)===1}function Me(ge){return typeof ge=="string"&&ge.indexOf("%")!=-1}function ke(ge){return ge.length==1?"0"+ge:""+ge}function me(ge){return ge<=1&&(ge=ge*100+"%"),ge}function ie(ge){return e.round(parseFloat(ge)*255).toString(16)}function Se(ge){return oe(ge)/255}var Le=function(){var ge="[-\\+]?\\d+%?",Fe="[-\\+]?\\d*\\.\\d+%?",ce="(?:"+Fe+")|(?:"+ge+")",Ze="[\\s|\\(]+("+ce+")[,|\\s]+("+ce+")[,|\\s]+("+ce+")\\s*\\)?",ct="[\\s|\\(]+("+ce+")[,|\\s]+("+ce+")[,|\\s]+("+ce+")[,|\\s]+("+ce+")\\s*\\)?";return{CSS_UNIT:new RegExp(ce),rgb:new RegExp("rgb"+Ze),rgba:new RegExp("rgba"+ct),hsl:new RegExp("hsl"+Ze),hsla:new RegExp("hsla"+ct),hsv:new RegExp("hsv"+Ze),hsva:new RegExp("hsva"+ct),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function Ae(ge){return!!Le.CSS_UNIT.exec(ge)}function De(ge){ge=ge.replace(t,"").replace(r,"").toLowerCase();var Fe=!1;if(G[ge])ge=G[ge],Fe=!0;else if(ge=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var ce;return(ce=Le.rgb.exec(ge))?{r:ce[1],g:ce[2],b:ce[3]}:(ce=Le.rgba.exec(ge))?{r:ce[1],g:ce[2],b:ce[3],a:ce[4]}:(ce=Le.hsl.exec(ge))?{h:ce[1],s:ce[2],l:ce[3]}:(ce=Le.hsla.exec(ge))?{h:ce[1],s:ce[2],l:ce[3],a:ce[4]}:(ce=Le.hsv.exec(ge))?{h:ce[1],s:ce[2],v:ce[3]}:(ce=Le.hsva.exec(ge))?{h:ce[1],s:ce[2],v:ce[3],a:ce[4]}:(ce=Le.hex8.exec(ge))?{r:oe(ce[1]),g:oe(ce[2]),b:oe(ce[3]),a:Se(ce[4]),format:Fe?"name":"hex8"}:(ce=Le.hex6.exec(ge))?{r:oe(ce[1]),g:oe(ce[2]),b:oe(ce[3]),format:Fe?"name":"hex"}:(ce=Le.hex4.exec(ge))?{r:oe(ce[1]+""+ce[1]),g:oe(ce[2]+""+ce[2]),b:oe(ce[3]+""+ce[3]),a:Se(ce[4]+""+ce[4]),format:Fe?"name":"hex8"}:(ce=Le.hex3.exec(ge))?{r:oe(ce[1]+""+ce[1]),g:oe(ce[2]+""+ce[2]),b:oe(ce[3]+""+ce[3]),format:Fe?"name":"hex"}:!1}function Pe(ge){var Fe,ce;return ge=ge||{level:"AA",size:"small"},Fe=(ge.level||"AA").toUpperCase(),ce=(ge.size||"small").toLowerCase(),Fe!=="AA"&&Fe!=="AAA"&&(Fe="AA"),ce!=="small"&&ce!=="large"&&(ce="small"),{level:Fe,size:ce}}typeof g6!="undefined"&&g6.exports?g6.exports=l:window.tinycolor=l})(Math)});var Ao=ye(IS=>{"use strict";var Vee=gy(),LS=Array.isArray;function dtt(e,t){var r,n;for(r=0;r{"use strict";Gee.exports=function(e){var t=e.variantValues,r=e.editType,n=e.colorEditType;n===void 0&&(n=r);var i={editType:r,valType:"integer",min:1,max:1e3,extras:["normal","bold"],dflt:"normal"};e.noNumericWeightValues&&(i.valType="enumerated",i.values=i.extras,i.extras=void 0,i.min=void 0,i.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:n},weight:i,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 RS=ye((_tr,Hee)=>{"use strict";Hee.exports={YANGLE:60,HOVERARROWSIZE:6,HOVERTEXTPAD:3,HOVERFONTSIZE:13,HOVERFONT:"Arial, sans-serif",HOVERMINTIME:50,HOVERID:"-hover"}});var N1=ye((xtr,Xee)=>{"use strict";var jee=RS(),Wee=ec(),TO=Wee({editType:"none"});TO.family.dflt=jee.HOVERFONT;TO.size.dflt=jee.HOVERFONTSIZE;Xee.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"},hoversubplots:{valType:"enumerated",values:["single","overlaying","axis"],dflt:"overlaying",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:TO,grouptitlefont:Wee({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 i3=ye((btr,Zee)=>{"use strict";var vtt=ec(),DS=N1().hoverlabel,FS=Ao().extendFlat;Zee.exports={hoverlabel:{bgcolor:FS({},DS.bgcolor,{arrayOk:!0}),bordercolor:FS({},DS.bordercolor,{arrayOk:!0}),font:vtt({arrayOk:!0,editType:"none"}),align:FS({},DS.align,{arrayOk:!0}),namelength:FS({},DS.namelength,{arrayOk:!0}),showarrow:FS({},DS.showarrow),editType:"none"}}});var Vl=ye((wtr,Yee)=>{"use strict";var ptt=ec(),gtt=i3();Yee.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:ptt({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:gtt.hoverlabel,stream:{token:{valType:"string",noBlank:!0,strict:!0,editType:"calc"},maxpoints:{valType:"number",min:0,max:1e4,dflt:500,editType:"calc"},editType:"calc"},uirevision:{valType:"any",editType:"none"}}});var sb=ye((Ttr,$ee)=>{"use strict";var mtt=cd(),m6={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)"]]},Kee=m6.RdBu;function ytt(e,t){if(t||(t=Kee),!e)return t;function r(){try{e=m6[e]||JSON.parse(e)}catch(n){e=t}}return typeof e=="string"&&(r(),typeof e=="string"&&r()),Jee(e)?e:t}function Jee(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;r{"use strict";lb.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"];lb.defaultLine="#444";lb.lightLine="#eee";lb.background="#fff";lb.borderLine="#BEC8D9";lb.lightFraction=100*10/11});var Ca=ye((Str,Qee)=>{"use strict";var _p=cd(),xtt=Eo(),btt=vv().isTypedArray,fd=Qee.exports={},y6=Eh();fd.defaults=y6.defaults;var wtt=fd.defaultLine=y6.defaultLine;fd.lightLine=y6.lightLine;var SO=fd.background=y6.background;fd.tinyRGB=function(e){var t=e.toRgb();return"rgb("+Math.round(t.r)+", "+Math.round(t.g)+", "+Math.round(t.b)+")"};fd.rgb=function(e){return fd.tinyRGB(_p(e))};fd.opacity=function(e){return e?_p(e).getAlpha():0};fd.addOpacity=function(e,t){var r=_p(e).toRgb();return"rgba("+Math.round(r.r)+", "+Math.round(r.g)+", "+Math.round(r.b)+", "+t+")"};fd.combine=function(e,t){var r=_p(e).toRgb();if(r.a===1)return _p(e).toRgbString();var n=_p(t||SO).toRgb(),i=n.a===1?n:{r:255*(1-n.a)+n.r*n.a,g:255*(1-n.a)+n.g*n.a,b:255*(1-n.a)+n.b*n.a},a={r:i.r*(1-r.a)+r.r*r.a,g:i.g*(1-r.a)+r.g*r.a,b:i.b*(1-r.a)+r.b*r.a};return _p(a).toRgbString()};fd.interpolate=function(e,t,r){var n=_p(e).toRgb(),i=_p(t).toRgb(),a={r:r*n.r+(1-r)*i.r,g:r*n.g+(1-r)*i.g,b:r*n.b+(1-r)*i.b};return _p(a).toRgbString()};fd.contrast=function(e,t,r){var n=_p(e);n.getAlpha()!==1&&(n=_p(fd.combine(e,SO)));var i=n.isDark()?t?n.lighten(t):SO:r?n.darken(r):wtt;return i.toString()};fd.stroke=function(e,t){var r=_p(t);e.style({stroke:fd.tinyRGB(r),"stroke-opacity":r.getAlpha()})};fd.fill=function(e,t){var r=_p(t);e.style({fill:fd.tinyRGB(r),"fill-opacity":r.getAlpha()})};fd.clean=function(e){if(!(!e||typeof e!="object")){var t=Object.keys(e),r,n,i,a;for(r=0;r=0)))return e;if(a===3)n[a]>1&&(n[a]=1);else if(n[a]>=1)return e}var o=Math.round(n[0]*255)+", "+Math.round(n[1]*255)+", "+Math.round(n[2]*255);return i?"rgba("+o+", "+n[3]+")":"rgb("+o+")"}});var U1=ye((Mtr,ete)=>{"use strict";ete.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}});var n3=ye(tte=>{"use strict";tte.counter=function(e,t,r,n){var i=(t||"")+(r?"":"$"),a=n===!1?"":"^";return e==="xy"?new RegExp(a+"x([2-9]|[1-9][0-9]+)?y([2-9]|[1-9][0-9]+)?"+i):new RegExp(a+e+"([2-9]|[1-9][0-9]+)?"+i)}});var ate=ye(xp=>{"use strict";var MO=Eo(),rte=cd(),ite=Ao().extendFlat,Ttt=Vl(),Att=sb(),Stt=Ca(),Mtt=U1().DESELECTDIM,a3=CS(),nte=n3().counter,Ett=r3().modHalf,dm=vv().isArrayOrTypedArray,V1=vv().isTypedArraySpec,G1=vv().decodeTypedArraySpec;xp.valObjectMeta={data_array:{coerceFunction:function(e,t,r){t.set(dm(e)?e:V1(e)?G1(e):r)}},enumerated:{coerceFunction:function(e,t,r,n){n.coerceNumber&&(e=+e),n.values.indexOf(e)===-1?t.set(r):t.set(e)},validateFunction:function(e,t){t.coerceNumber&&(e=+e);for(var r=t.values,n=0;nn.max?t.set(r):t.set(+e)}},integer:{coerceFunction:function(e,t,r,n){if((n.extras||[]).indexOf(e)!==-1){t.set(e);return}V1(e)&&(e=G1(e)),e%1||!MO(e)||n.min!==void 0&&en.max?t.set(r):t.set(+e)}},string:{coerceFunction:function(e,t,r,n){if(typeof e!="string"){var i=typeof e=="number";n.strict===!0||!i?t.set(r):t.set(String(e))}else n.noBlank&&!e?t.set(r):t.set(e)}},color:{coerceFunction:function(e,t,r){V1(e)&&(e=G1(e)),rte(e).isValid()?t.set(e):t.set(r)}},colorlist:{coerceFunction:function(e,t,r){function n(i){return rte(i).isValid()}!Array.isArray(e)||!e.length?t.set(r):e.every(n)?t.set(e):t.set(r)}},colorscale:{coerceFunction:function(e,t,r){t.set(Att.get(e,r))}},angle:{coerceFunction:function(e,t,r){V1(e)&&(e=G1(e)),e==="auto"?t.set("auto"):MO(e)?t.set(Ett(+e,360)):t.set(r)}},subplotid:{coerceFunction:function(e,t,r,n){var i=n.regex||nte(r);if(typeof e=="string"&&i.test(e)){t.set(e);return}t.set(r)},validateFunction:function(e,t){var r=t.dflt;return e===r?!0:typeof e!="string"?!1:!!nte(r).test(e)}},flaglist:{coerceFunction:function(e,t,r,n){if((n.extras||[]).indexOf(e)!==-1){t.set(e);return}if(typeof e!="string"){t.set(r);return}for(var i=e.split("+"),a=0;a{"use strict";var ote={staticPlot:{valType:"boolean",dflt:!1},typesetMath:{valType:"boolean",dflt:!0},plotlyServerURL:{valType:"string",dflt:""},editable:{valType:"boolean",dflt:!1},edits:{annotationPosition:{valType:"boolean",dflt:!1},annotationTail:{valType:"boolean",dflt:!1},annotationText:{valType:"boolean",dflt:!1},axisTitleText:{valType:"boolean",dflt:!1},colorbarPosition:{valType:"boolean",dflt:!1},colorbarTitleText:{valType:"boolean",dflt:!1},legendPosition:{valType:"boolean",dflt:!1},legendText:{valType:"boolean",dflt:!1},shapePosition:{valType:"boolean",dflt:!1},titleText:{valType:"boolean",dflt:!1}},editSelection:{valType:"boolean",dflt:!0},autosizable:{valType:"boolean",dflt:!1},responsive:{valType:"boolean",dflt:!1},fillFrame:{valType:"boolean",dflt:!1},frameMargins:{valType:"number",dflt:0,min:0,max:.5},scrollZoom:{valType:"flaglist",flags:["cartesian","gl3d","geo","mapbox","map"],extras:[!0,!1],dflt:"gl3d+geo+map"},doubleClick:{valType:"enumerated",values:[!1,"reset","autosize","reset+autosize"],dflt:"reset+autosize"},doubleClickDelay:{valType:"number",dflt:300,min:0},showAxisDragHandles:{valType:"boolean",dflt:!0},showAxisRangeEntryBoxes:{valType:"boolean",dflt:!0},showTips:{valType:"boolean",dflt:!0},showLink:{valType:"boolean",dflt:!1},linkText:{valType:"string",dflt:"Edit chart",noBlank:!0},sendData:{valType:"boolean",dflt:!0},showSources:{valType:"any",dflt:!1},displayModeBar:{valType:"enumerated",values:["hover",!0,!1],dflt:"hover"},showSendToCloud:{valType:"boolean",dflt:!1},showEditInChartStudio:{valType:"boolean",dflt:!1},modeBarButtonsToRemove:{valType:"any",dflt:[]},modeBarButtonsToAdd:{valType:"any",dflt:[]},modeBarButtons:{valType:"any",dflt:!1},toImageButtonOptions:{valType:"any",dflt:{}},displaylogo:{valType:"boolean",dflt:!0},watermark:{valType:"boolean",dflt:!1},plotGlPixelRatio:{valType:"number",dflt:2,min:1,max:4},setBackground:{valType:"any",dflt:"transparent"},topojsonURL:{valType:"string",noBlank:!0,dflt:"https://cdn.plot.ly/un/"},mapboxAccessToken:{valType:"string",dflt:null},logging:{valType:"integer",min:0,max:2,dflt:1},notifyOnLogging:{valType:"integer",min:0,max:2,dflt:0},queueLength:{valType:"integer",min:0,dflt:0},locale:{valType:"string",dflt:"en-US"},locales:{valType:"any",dflt:{}}},ste={};function lte(e,t){for(var r in e){var n=e[r];n.valType?t[r]=n.dflt:(t[r]||(t[r]={}),lte(n,t[r]))}}lte(ote,ste);ute.exports={configAttributes:ote,dfltConfig:ste}});var CO=ye((Ltr,cte)=>{"use strict";var EO=Oa(),Ctt=Eo(),zS=[];cte.exports=function(e,t){if(zS.indexOf(e)!==-1)return;zS.push(e);var r=1e3;Ctt(t)?r=t:t==="long"&&(r=3e3);var n=EO.select("body").selectAll(".plotly-notifier").data([0]);n.enter().append("div").classed("plotly-notifier",!0);var i=n.selectAll(".notifier-note").data(zS);function a(o){o.duration(700).style("opacity",0).each("end",function(s){var l=zS.indexOf(s);l!==-1&&zS.splice(l,1),EO.select(this).remove()})}i.enter().append("div").classed("notifier-note",!0).style("opacity",0).each(function(o){var s=EO.select(this);s.append("button").classed("notifier-close",!0).html("×").on("click",function(){s.transition().call(a)});for(var l=s.append("p"),u=o.split(//g),c=0;c{"use strict";var o3=ub().dfltConfig,kO=CO(),LO=fte.exports={};LO.log=function(){var e;if(o3.logging>1){var t=["LOG:"];for(e=0;e1){var r=[];for(e=0;e"),"long")}};LO.warn=function(){var e;if(o3.logging>0){var t=["WARN:"];for(e=0;e0){var r=[];for(e=0;e"),"stick")}};LO.error=function(){var e;if(o3.logging>0){var t=["ERROR:"];for(e=0;e0){var r=[];for(e=0;e"),"stick")}}});var x6=ye((Itr,hte)=>{"use strict";hte.exports=function(){}});var PO=ye((Rtr,dte)=>{"use strict";dte.exports=function(t,r){if(r instanceof RegExp){for(var n=r.toString(),i=0;i{vte.exports=ktt;function ktt(){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 mte=ye((Ftr,gte)=>{gte.exports=Ltt;function Ltt(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 _te=ye((ztr,yte)=>{yte.exports=Ptt;function Ptt(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 IO=ye((Otr,xte)=>{xte.exports=Itt;function Itt(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 wte=ye((qtr,bte)=>{bte.exports=Rtt;function Rtt(e,t){if(e===t){var r=t[1],n=t[2],i=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]=n,e[9]=a,e[11]=t[14],e[12]=i,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 Ate=ye((Btr,Tte)=>{Tte.exports=Dtt;function Dtt(e,t){var r=t[0],n=t[1],i=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],d=t[11],v=t[12],x=t[13],b=t[14],p=t[15],C=r*s-n*o,E=r*l-i*o,A=r*u-a*o,L=n*l-i*s,_=n*u-a*s,k=i*u-a*l,M=c*x-f*v,g=c*b-h*v,P=c*p-d*v,T=f*b-h*x,z=f*p-d*x,O=h*p-d*b,V=C*O-E*z+A*T+L*P-_*g+k*M;return V?(V=1/V,e[0]=(s*O-l*z+u*T)*V,e[1]=(i*z-n*O-a*T)*V,e[2]=(x*k-b*_+p*L)*V,e[3]=(h*_-f*k-d*L)*V,e[4]=(l*P-o*O-u*g)*V,e[5]=(r*O-i*P+a*g)*V,e[6]=(b*A-v*k-p*E)*V,e[7]=(c*k-h*A+d*E)*V,e[8]=(o*z-s*P+u*M)*V,e[9]=(n*P-r*z-a*M)*V,e[10]=(v*_-x*A+p*C)*V,e[11]=(f*A-c*_-d*C)*V,e[12]=(s*g-o*T-l*M)*V,e[13]=(r*T-n*g+i*M)*V,e[14]=(x*E-v*L-b*C)*V,e[15]=(c*L-f*E+h*C)*V,e):null}});var Mte=ye((Ntr,Ste)=>{Ste.exports=Ftt;function Ftt(e,t){var r=t[0],n=t[1],i=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],d=t[11],v=t[12],x=t[13],b=t[14],p=t[15];return e[0]=s*(h*p-d*b)-f*(l*p-u*b)+x*(l*d-u*h),e[1]=-(n*(h*p-d*b)-f*(i*p-a*b)+x*(i*d-a*h)),e[2]=n*(l*p-u*b)-s*(i*p-a*b)+x*(i*u-a*l),e[3]=-(n*(l*d-u*h)-s*(i*d-a*h)+f*(i*u-a*l)),e[4]=-(o*(h*p-d*b)-c*(l*p-u*b)+v*(l*d-u*h)),e[5]=r*(h*p-d*b)-c*(i*p-a*b)+v*(i*d-a*h),e[6]=-(r*(l*p-u*b)-o*(i*p-a*b)+v*(i*u-a*l)),e[7]=r*(l*d-u*h)-o*(i*d-a*h)+c*(i*u-a*l),e[8]=o*(f*p-d*x)-c*(s*p-u*x)+v*(s*d-u*f),e[9]=-(r*(f*p-d*x)-c*(n*p-a*x)+v*(n*d-a*f)),e[10]=r*(s*p-u*x)-o*(n*p-a*x)+v*(n*u-a*s),e[11]=-(r*(s*d-u*f)-o*(n*d-a*f)+c*(n*u-a*s)),e[12]=-(o*(f*b-h*x)-c*(s*b-l*x)+v*(s*h-l*f)),e[13]=r*(f*b-h*x)-c*(n*b-i*x)+v*(n*h-i*f),e[14]=-(r*(s*b-l*x)-o*(n*b-i*x)+v*(n*l-i*s)),e[15]=r*(s*h-l*f)-o*(n*h-i*f)+c*(n*l-i*s),e}});var Cte=ye((Utr,Ete)=>{Ete.exports=ztt;function ztt(e){var t=e[0],r=e[1],n=e[2],i=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],d=e[12],v=e[13],x=e[14],b=e[15],p=t*o-r*a,C=t*s-n*a,E=t*l-i*a,A=r*s-n*o,L=r*l-i*o,_=n*l-i*s,k=u*v-c*d,M=u*x-f*d,g=u*b-h*d,P=c*x-f*v,T=c*b-h*v,z=f*b-h*x;return p*z-C*T+E*P+A*g-L*M+_*k}});var Lte=ye((Vtr,kte)=>{kte.exports=Ott;function Ott(e,t,r){var n=t[0],i=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],d=t[10],v=t[11],x=t[12],b=t[13],p=t[14],C=t[15],E=r[0],A=r[1],L=r[2],_=r[3];return e[0]=E*n+A*s+L*f+_*x,e[1]=E*i+A*l+L*h+_*b,e[2]=E*a+A*u+L*d+_*p,e[3]=E*o+A*c+L*v+_*C,E=r[4],A=r[5],L=r[6],_=r[7],e[4]=E*n+A*s+L*f+_*x,e[5]=E*i+A*l+L*h+_*b,e[6]=E*a+A*u+L*d+_*p,e[7]=E*o+A*c+L*v+_*C,E=r[8],A=r[9],L=r[10],_=r[11],e[8]=E*n+A*s+L*f+_*x,e[9]=E*i+A*l+L*h+_*b,e[10]=E*a+A*u+L*d+_*p,e[11]=E*o+A*c+L*v+_*C,E=r[12],A=r[13],L=r[14],_=r[15],e[12]=E*n+A*s+L*f+_*x,e[13]=E*i+A*l+L*h+_*b,e[14]=E*a+A*u+L*d+_*p,e[15]=E*o+A*c+L*v+_*C,e}});var Ite=ye((Gtr,Pte)=>{Pte.exports=qtt;function qtt(e,t,r){var n=r[0],i=r[1],a=r[2],o,s,l,u,c,f,h,d,v,x,b,p;return t===e?(e[12]=t[0]*n+t[4]*i+t[8]*a+t[12],e[13]=t[1]*n+t[5]*i+t[9]*a+t[13],e[14]=t[2]*n+t[6]*i+t[10]*a+t[14],e[15]=t[3]*n+t[7]*i+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],d=t[7],v=t[8],x=t[9],b=t[10],p=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]=d,e[8]=v,e[9]=x,e[10]=b,e[11]=p,e[12]=o*n+c*i+v*a+t[12],e[13]=s*n+f*i+x*a+t[13],e[14]=l*n+h*i+b*a+t[14],e[15]=u*n+d*i+p*a+t[15]),e}});var Dte=ye((Htr,Rte)=>{Rte.exports=Btt;function Btt(e,t,r){var n=r[0],i=r[1],a=r[2];return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e[3]=t[3]*n,e[4]=t[4]*i,e[5]=t[5]*i,e[6]=t[6]*i,e[7]=t[7]*i,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 zte=ye((jtr,Fte)=>{Fte.exports=Ntt;function Ntt(e,t,r,n){var i=n[0],a=n[1],o=n[2],s=Math.sqrt(i*i+a*a+o*o),l,u,c,f,h,d,v,x,b,p,C,E,A,L,_,k,M,g,P,T,z,O,V,G;return Math.abs(s)<1e-6?null:(s=1/s,i*=s,a*=s,o*=s,l=Math.sin(r),u=Math.cos(r),c=1-u,f=t[0],h=t[1],d=t[2],v=t[3],x=t[4],b=t[5],p=t[6],C=t[7],E=t[8],A=t[9],L=t[10],_=t[11],k=i*i*c+u,M=a*i*c+o*l,g=o*i*c-a*l,P=i*a*c-o*l,T=a*a*c+u,z=o*a*c+i*l,O=i*o*c+a*l,V=a*o*c-i*l,G=o*o*c+u,e[0]=f*k+x*M+E*g,e[1]=h*k+b*M+A*g,e[2]=d*k+p*M+L*g,e[3]=v*k+C*M+_*g,e[4]=f*P+x*T+E*z,e[5]=h*P+b*T+A*z,e[6]=d*P+p*T+L*z,e[7]=v*P+C*T+_*z,e[8]=f*O+x*V+E*G,e[9]=h*O+b*V+A*G,e[10]=d*O+p*V+L*G,e[11]=v*O+C*V+_*G,t!==e&&(e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e)}});var qte=ye((Wtr,Ote)=>{Ote.exports=Utt;function Utt(e,t,r){var n=Math.sin(r),i=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*i+u*n,e[5]=o*i+c*n,e[6]=s*i+f*n,e[7]=l*i+h*n,e[8]=u*i-a*n,e[9]=c*i-o*n,e[10]=f*i-s*n,e[11]=h*i-l*n,e}});var Nte=ye((Xtr,Bte)=>{Bte.exports=Vtt;function Vtt(e,t,r){var n=Math.sin(r),i=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*i-u*n,e[1]=o*i-c*n,e[2]=s*i-f*n,e[3]=l*i-h*n,e[8]=a*n+u*i,e[9]=o*n+c*i,e[10]=s*n+f*i,e[11]=l*n+h*i,e}});var Vte=ye((Ztr,Ute)=>{Ute.exports=Gtt;function Gtt(e,t,r){var n=Math.sin(r),i=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*i+u*n,e[1]=o*i+c*n,e[2]=s*i+f*n,e[3]=l*i+h*n,e[4]=u*i-a*n,e[5]=c*i-o*n,e[6]=f*i-s*n,e[7]=h*i-l*n,e}});var Hte=ye((Ytr,Gte)=>{Gte.exports=Htt;function Htt(e,t,r){var n,i,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,n=Math.sin(t),i=Math.cos(t),a=1-i,e[0]=o*o*a+i,e[1]=s*o*a+l*n,e[2]=l*o*a-s*n,e[3]=0,e[4]=o*s*a-l*n,e[5]=s*s*a+i,e[6]=l*s*a+o*n,e[7]=0,e[8]=o*l*a+s*n,e[9]=s*l*a-o*n,e[10]=l*l*a+i,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}});var Wte=ye((Ktr,jte)=>{jte.exports=jtt;function jtt(e,t,r){var n=t[0],i=t[1],a=t[2],o=t[3],s=n+n,l=i+i,u=a+a,c=n*s,f=n*l,h=n*u,d=i*l,v=i*u,x=a*u,b=o*s,p=o*l,C=o*u;return e[0]=1-(d+x),e[1]=f+C,e[2]=h-p,e[3]=0,e[4]=f-C,e[5]=1-(c+x),e[6]=v+b,e[7]=0,e[8]=h+p,e[9]=v-b,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 Zte=ye((Jtr,Xte)=>{Xte.exports=Wtt;function Wtt(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 Kte=ye(($tr,Yte)=>{Yte.exports=Xtt;function Xtt(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 $te=ye((Qtr,Jte)=>{Jte.exports=Ztt;function Ztt(e,t){var r=Math.sin(t),n=Math.cos(t);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=n,e[6]=r,e[7]=0,e[8]=0,e[9]=-r,e[10]=n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var ere=ye((err,Qte)=>{Qte.exports=Ytt;function Ytt(e,t){var r=Math.sin(t),n=Math.cos(t);return e[0]=n,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]=n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var rre=ye((trr,tre)=>{tre.exports=Ktt;function Ktt(e,t){var r=Math.sin(t),n=Math.cos(t);return e[0]=n,e[1]=r,e[2]=0,e[3]=0,e[4]=-r,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 RO=ye((rrr,ire)=>{ire.exports=Jtt;function Jtt(e,t){var r=t[0],n=t[1],i=t[2],a=t[3],o=r+r,s=n+n,l=i+i,u=r*o,c=n*o,f=n*s,h=i*o,d=i*s,v=i*l,x=a*o,b=a*s,p=a*l;return e[0]=1-f-v,e[1]=c+p,e[2]=h-b,e[3]=0,e[4]=c-p,e[5]=1-u-v,e[6]=d+x,e[7]=0,e[8]=h+b,e[9]=d-x,e[10]=1-u-f,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var are=ye((irr,nre)=>{nre.exports=$tt;function $tt(e,t,r,n,i,a,o){var s=1/(r-t),l=1/(i-n),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]=(i+n)*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 sre=ye((nrr,ore)=>{ore.exports=Qtt;function Qtt(e,t,r,n,i){var a=1/Math.tan(t/2),o=1/(n-i);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]=(i+n)*o,e[11]=-1,e[12]=0,e[13]=0,e[14]=2*i*n*o,e[15]=0,e}});var ure=ye((arr,lre)=>{lre.exports=ert;function ert(e,t,r,n){var i=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/(i+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]=(i-a)*u*.5,e[10]=n/(r-n),e[11]=-1,e[12]=0,e[13]=0,e[14]=n*r/(r-n),e[15]=0,e}});var fre=ye((orr,cre)=>{cre.exports=trt;function trt(e,t,r,n,i,a,o){var s=1/(t-r),l=1/(n-i),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]=(i+n)*l,e[14]=(o+a)*u,e[15]=1,e}});var dre=ye((srr,hre)=>{var rrt=IO();hre.exports=irt;function irt(e,t,r,n){var i,a,o,s,l,u,c,f,h,d,v=t[0],x=t[1],b=t[2],p=n[0],C=n[1],E=n[2],A=r[0],L=r[1],_=r[2];return Math.abs(v-A)<1e-6&&Math.abs(x-L)<1e-6&&Math.abs(b-_)<1e-6?rrt(e):(c=v-A,f=x-L,h=b-_,d=1/Math.sqrt(c*c+f*f+h*h),c*=d,f*=d,h*=d,i=C*h-E*f,a=E*c-p*h,o=p*f-C*c,d=Math.sqrt(i*i+a*a+o*o),d?(d=1/d,i*=d,a*=d,o*=d):(i=0,a=0,o=0),s=f*o-h*a,l=h*i-c*o,u=c*a-f*i,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]=i,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]=-(i*v+a*x+o*b),e[13]=-(s*v+l*x+u*b),e[14]=-(c*v+f*x+h*b),e[15]=1,e)}});var pre=ye((lrr,vre)=>{vre.exports=nrt;function nrt(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 DO=ye((urr,gre)=>{gre.exports={create:pte(),clone:mte(),copy:_te(),identity:IO(),transpose:wte(),invert:Ate(),adjoint:Mte(),determinant:Cte(),multiply:Lte(),translate:Ite(),scale:Dte(),rotate:zte(),rotateX:qte(),rotateY:Nte(),rotateZ:Vte(),fromRotation:Hte(),fromRotationTranslation:Wte(),fromScaling:Zte(),fromTranslation:Kte(),fromXRotation:$te(),fromYRotation:ere(),fromZRotation:rre(),fromQuat:RO(),frustum:are(),perspective:sre(),perspectiveFromFieldOfView:ure(),ortho:fre(),lookAt:dre(),str:pre()}});var b6=ye(fh=>{"use strict";var art=DO();fh.init2dArray=function(e,t){for(var r=new Array(e),n=0;n{"use strict";var ort=Oa(),mre=H1(),srt=b6(),lrt=DO();function urt(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 crt(e){var t=ort.select(e);return t.node()instanceof HTMLElement&&t.size()&&t.classed("js-plotly-plot")}function yre(e){var t=e&&e.parentNode;t&&t.removeChild(e)}function frt(e,t){_re("global",e,t)}function _re(e,t,r){var n="plotly.js-style-"+e,i=document.getElementById(n);if(!(i&&i.matches(".no-inline-styles"))){i||(i=document.createElement("style"),i.setAttribute("id",n),i.appendChild(document.createTextNode("")),document.head.appendChild(i));var a=i.sheet;a?a.insertRule?a.insertRule(t+"{"+r+"}",0):a.addRule?a.addRule(t,r,0):mre.warn("addStyleRule failed"):mre.warn("Cannot addRelatedStyleRule, probably due to strict CSP...")}}function hrt(e){var t="plotly.js-style-"+e,r=document.getElementById(t);r&&yre(r)}function drt(e,t,r,n,i,a){var o=n.split(":"),s=i.split(":"),l="data-btn-style-event-added";a||(a=document),a.querySelectorAll(e).forEach(function(u){u.getAttribute(l)||(u.addEventListener("mouseenter",function(){var c=this.querySelector(r);c&&(c.style[o[0]]=o[1])}),u.addEventListener("mouseleave",function(){var c=this.querySelector(r);c&&(t&&this.matches(t)?c.style[o[0]]=o[1]:c.style[s[0]]=s[1])}),u.setAttribute(l,!0))})}function vrt(e){var t=bre(e),r=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return t.forEach(function(n){var i=xre(n);if(i){var a=srt.convertCssMatrix(i);r=lrt.multiply(r,r,a)}}),r}function xre(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(n){return+n})}function bre(e){for(var t=[];prt(e);)t.push(e),e=e.parentNode,typeof ShadowRoot=="function"&&e instanceof ShadowRoot&&(e=e.host);return t}function prt(e){return e&&(e instanceof Element||e instanceof HTMLElement)}function grt(e,t){return e&&t&&e.top===t.top&&e.left===t.left&&e.right===t.right&&e.bottom===t.bottom}wre.exports={getGraphDiv:urt,isPlotDiv:crt,removeElement:yre,addStyleRule:frt,addRelatedStyleRule:_re,deleteRelatedStyleRule:hrt,setStyleOnHover:drt,getFullTransformMatrix:vrt,getElementTransformMatrix:xre,getElementAndAncestors:bre,equalDomRects:grt}});var qS=ye((hrr,Tre)=>{"use strict";Tre.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 mc=ye((drr,Lre)=>{"use strict";var Sre=Ao().extendFlat,mrt=gy(),Mre={valType:"flaglist",extras:["none"],flags:["calc","clearAxisTypes","plot","style","markerSize","colorbars"]},Ere={valType:"flaglist",extras:["none"],flags:["calc","plot","legend","ticks","axrange","layoutstyle","modebar","camera","arraydraw","colorbars"]},yrt=Mre.flags.slice().concat(["fullReplot"]),_rt=Ere.flags.slice().concat("layoutReplot");Lre.exports={traces:Mre,layout:Ere,traceFlags:function(){return Are(yrt)},layoutFlags:function(){return Are(_rt)},update:function(e,t){var r=t.editType;if(r&&r!=="none")for(var n=r.split("+"),i=0;i{"use strict";FO.dash={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"};FO.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 zO=ye((prr,Pre)=>{"use strict";Pre.exports={FORMAT_LINK:"https://github.com/d3/d3-format/tree/v1.4.5#d3-format",DATE_FORMAT_LINK:"https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"}});var Qo=ye(BS=>{"use strict";var Ire=zO(),xrt=Ire.FORMAT_LINK,brt=Ire.DATE_FORMAT_LINK;function wrt(e){var t=e&&e.supportOther;return["Variables are inserted using %{variable},",'for example "y: %{y}"'+(t?" 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}".`,xrt,"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}".`,brt,"for details on the date formatting syntax."].join(" ")}BS.templateFormatStringDescription=wrt;function OO(e){var t=e.description?" "+e.description:"",r=e.keys||[];if(r.length>0){for(var n=[],i=0;i{"use strict";function j1(e,t){return t?t.d2l(e):e}function Rre(e,t){return t?t.l2d(e):e}function Trt(e){return e.x0}function Art(e){return e.x1}function Srt(e){return e.y0}function Mrt(e){return e.y1}function Dre(e){return e.x0shift||0}function Fre(e){return e.x1shift||0}function zre(e){return e.y0shift||0}function Ore(e){return e.y1shift||0}function w6(e,t){return j1(e.x1,t)+Fre(e)-j1(e.x0,t)-Dre(e)}function T6(e,t,r){return j1(e.y1,r)+Ore(e)-j1(e.y0,r)-zre(e)}function Ert(e,t){return Math.abs(w6(e,t))}function Crt(e,t,r){return Math.abs(T6(e,t,r))}function krt(e,t,r){return e.type!=="line"?void 0:Math.sqrt(Math.pow(w6(e,t),2)+Math.pow(T6(e,t,r),2))}function Lrt(e,t){return Rre((j1(e.x1,t)+Fre(e)+j1(e.x0,t)+Dre(e))/2,t)}function Prt(e,t,r){return Rre((j1(e.y1,r)+Ore(e)+j1(e.y0,r)+zre(e))/2,r)}function Irt(e,t,r){return e.type!=="line"?void 0:T6(e,t,r)/w6(e,t)}qre.exports={x0:Trt,x1:Art,y0:Srt,y1:Mrt,slope:Irt,dx:w6,dy:T6,width:Ert,height:Crt,length:krt,xcenter:Lrt,ycenter:Prt}});var Ure=ye((yrr,Nre)=>{"use strict";var Rrt=mc().overrideAll,cb=Vl(),Bre=ec(),Drt=Pd().dash,W1=Ao().extendFlat,Frt=Qo().shapeTexttemplateAttrs,zrt=A6();Nre.exports=Rrt({newshape:{visible:W1({},cb.visible,{}),showlegend:{valType:"boolean",dflt:!1},legend:W1({},cb.legend,{}),legendgroup:W1({},cb.legendgroup,{}),legendgrouptitle:{text:W1({},cb.legendgrouptitle.text,{}),font:Bre({})},legendrank:W1({},cb.legendrank,{}),legendwidth:W1({},cb.legendwidth,{}),line:{color:{valType:"color"},width:{valType:"number",min:0,dflt:4},dash:W1({},Drt,{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:W1({},cb.name,{}),label:{text:{valType:"string",dflt:""},texttemplate:Frt({newshape:!0},{keys:Object.keys(zrt)}),font:Bre({}),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)"},opacity:{valType:"number",min:0,max:1,dflt:.5}}},"none","from-root")});var Gre=ye((_rr,Vre)=>{"use strict";var Ort=Pd().dash,qrt=Ao().extendFlat;Vre.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:qrt({},Ort,{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 S6=ye((xrr,Hre)=>{"use strict";Hre.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 s3=ye((brr,Zre)=>{"use strict";var qO=ec(),Brt=qS(),M6=Eh(),jre=Ure(),Wre=Gre(),Nrt=S6(),Xre=Ao().extendFlat,E6=qO({editType:"calc"});E6.family.dflt='"Open Sans", verdana, arial, sans-serif';E6.size.dflt=12;E6.color.dflt=M6.defaultLine;Zre.exports={font:E6,title:{text:{valType:"string",editType:"layoutstyle"},font:qO({editType:"layoutstyle"}),subtitle:{text:{valType:"string",editType:"layoutstyle"},font:qO({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:Xre(Nrt({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:M6.background,editType:"plot"},plot_bgcolor:{valType:"color",dflt:M6.background,editType:"layoutstyle"},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},separators:{valType:"string",editType:"plot"},hidesources:{valType:"boolean",dflt:!1,editType:"plot"},showlegend:{valType:"boolean",editType:"legend"},colorway:{valType:"colorlist",dflt:M6.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:jre.newshape,activeshape:jre.activeshape,newselection:Wre.newselection,activeselection:Wre.activeselection,meta:{valType:"any",arrayOk:!0,editType:"plot"},transition:Xre({},Brt.transition,{editType:"none"})}});var Yre=ru(()=>{});var Urt={};var Kre=ru(()=>{Yre()});var qa=ye(tl=>{"use strict";var l3=H1(),Jre=x6(),$re=PO(),Vrt=gy(),Grt=OS().addStyleRule,Qre=Ao(),Hrt=Vl(),jrt=s3(),Wrt=Qre.extendFlat,BO=Qre.extendDeepAll;tl.modules={};tl.allCategories={};tl.allTypes=[];tl.subplotsRegistry={};tl.componentsRegistry={};tl.layoutArrayContainers=[];tl.layoutArrayRegexes=[];tl.traceLayoutAttributes={};tl.localeRegistry={};tl.apiMethodRegistry={};tl.collectableSubplotTypes=null;tl.register=function(t){if(tl.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 $rt=e3().timeFormat,cie=Eo(),NO=H1(),Z1=r3().mod,f3=hs(),_0=f3.BADNUM,bp=f3.ONEDAY,NS=f3.ONEHOUR,X1=f3.ONEMIN,c3=f3.ONESEC,US=f3.EPOCHJD,my=qa(),nie=e3().utcFormat,Qrt=/^\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,eit=/^\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,aie=new Date().getFullYear()-70;function yy(e){return e&&my.componentsRegistry.calendars&&typeof e=="string"&&e!=="gregorian"}hh.dateTick0=function(e,t){var r=tit(e,!!t);if(t<2)return r;var n=hh.dateTime2ms(r,e);return n+=bp*(t-1),hh.ms2DateTime(n,0,e)};function tit(e,t){return yy(e)?t?my.getComponentMethod("calendars","CANONICAL_SUNDAY")[e]:my.getComponentMethod("calendars","CANONICAL_TICK")[e]:t?"2000-01-02":"2000-01-01"}hh.dfltRange=function(e){return yy(e)?my.getComponentMethod("calendars","DFLTRANGE")[e]:["2000-01-01","2001-01-01"]};hh.isJSDate=function(e){return typeof e=="object"&&e!==null&&typeof e.getTime=="function"};var k6,L6;hh.dateTime2ms=function(e,t){if(hh.isJSDate(e)){var r=e.getTimezoneOffset()*X1,n=(e.getUTCMinutes()-e.getMinutes())*X1+(e.getUTCSeconds()-e.getSeconds())*c3+(e.getUTCMilliseconds()-e.getMilliseconds());if(n){var i=3*X1;r=r-i/2+Z1(n-r+i/2,i)}return e=Number(e)-r,e>=k6&&e<=L6?e:_0}if(typeof e!="string"&&typeof e!="number")return _0;e=String(e);var a=yy(t),o=e.charAt(0);a&&(o==="G"||o==="g")&&(e=e.substr(1),t="");var s=a&&t.substr(0,7)==="chinese",l=e.match(s?eit:Qrt);if(!l)return _0;var u=l[1],c=l[3]||"1",f=Number(l[5]||1),h=Number(l[7]||0),d=Number(l[9]||0),v=Number(l[11]||0);if(a){if(u.length===2)return _0;u=Number(u);var x;try{var b=my.getComponentMethod("calendars","getCal")(t);if(s){var p=c.charAt(c.length-1)==="i";c=parseInt(c,10),x=b.newDate(u,b.toMonthIndex(u,c,p),f)}else x=b.newDate(u,Number(c),f)}catch(E){return _0}return x?(x.toJD()-US)*bp+h*NS+d*X1+v*c3:_0}u.length===2?u=(Number(u)+2e3-aie)%100+aie:u=Number(u),c-=1;var C=new Date(Date.UTC(2e3,c,f,h,d));return C.setUTCFullYear(u),C.getUTCMonth()!==c||C.getUTCDate()!==f?_0:C.getTime()+v*c3};k6=hh.MIN_MS=hh.dateTime2ms("-9999");L6=hh.MAX_MS=hh.dateTime2ms("9999-12-31 23:59:59.9999");hh.isDateTime=function(e,t){return hh.dateTime2ms(e,t)!==_0};function u3(e,t){return String(e+Math.pow(10,t)).substr(1)}var C6=90*bp,oie=3*NS,sie=5*X1;hh.ms2DateTime=function(e,t,r){if(typeof e!="number"||!(e>=k6&&e<=L6))return _0;t||(t=0);var n=Math.floor(Z1(e+.05,1)*10),i=Math.round(e-n/10),a,o,s,l,u,c;if(yy(r)){var f=Math.floor(i/bp)+US,h=Math.floor(Z1(e,bp));try{a=my.getComponentMethod("calendars","getCal")(r).fromJD(f).formatDate("yyyy-mm-dd")}catch(d){a=nie("G%Y-%m-%d")(new Date(i))}if(a.charAt(0)==="-")for(;a.length<11;)a="-0"+a.substr(1);else for(;a.length<10;)a="0"+a;o=t=k6+bp&&e<=L6-bp))return _0;var t=Math.floor(Z1(e+.05,1)*10),r=new Date(Math.round(e-t/10)),n=$rt("%Y-%m-%d")(r),i=r.getHours(),a=r.getMinutes(),o=r.getSeconds(),s=r.getUTCMilliseconds()*10+t;return fie(n,i,a,o,s)};function fie(e,t,r,n,i){if((t||r||n||i)&&(e+=" "+u3(t,2)+":"+u3(r,2),(n||i)&&(e+=":"+u3(n,2),i))){for(var a=4;i%10===0;)a-=1,i/=10;e+="."+u3(i,a)}return e}hh.cleanDate=function(e,t,r){if(e===_0)return t;if(hh.isJSDate(e)||typeof e=="number"&&isFinite(e)){if(yy(r))return NO.error("JS Dates and milliseconds are incompatible with world calendars",e),t;if(e=hh.ms2DateTimeLocal(+e),!e&&t!==void 0)return t}else if(!hh.isDateTime(e,r))return NO.error("unrecognized date",e),t;return e};var rit=/%\d?f/g,iit=/%h/g,nit={1:"1",2:"1",3:"2",4:"2"};function lie(e,t,r,n){e=e.replace(rit,function(a){var o=Math.min(+a.charAt(1)||6,6),s=(t/1e3%1+2).toFixed(o).substr(2).replace(/0+$/,"")||"0";return s});var i=new Date(Math.floor(t+.05));if(e=e.replace(iit,function(){return nit[r("%q")(i)]}),yy(n))try{e=my.getComponentMethod("calendars","worldCalFmt")(e,t,n)}catch(a){return"Invalid"}return r(e)(i)}var ait=[59,59.9,59.99,59.999,59.9999];function oit(e,t){var r=Z1(e+.05,bp),n=u3(Math.floor(r/NS),2)+":"+u3(Z1(Math.floor(r/X1),60),2);if(t!=="M"){cie(t)||(t=0);var i=Math.min(Z1(e/c3,60),ait[t]),a=(100+i).toFixed(t).substr(1);t>0&&(a=a.replace(/0+$/,"").replace(/[\.]$/,"")),n+=":"+a}return n}hh.formatDate=function(e,t,r,n,i,a){if(i=yy(i)&&i,!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 oit(e,r)+` +`+lie(a.dayMonthYear,e,n,i);return lie(t,e,n,i)};var uie=3*bp;hh.incrementMonth=function(e,t,r){r=yy(r)&&r;var n=Z1(e,bp);if(e=Math.round(e-n),r)try{var i=Math.round(e/bp)+US,a=my.getComponentMethod("calendars","getCal")(r),o=a.fromJD(i);return t%12?a.add(o,t,"m"):a.add(o,t/12,"y"),(o.toJD()-US)*bp+n}catch(l){NO.error("invalid ms "+e+" in calendar "+r)}var s=new Date(e+uie);return s.setUTCMonth(s.getUTCMonth()+t)+n-uie};hh.findExactDates=function(e,t){for(var r=0,n=0,i=0,a=0,o,s,l=yy(t)&&my.getComponentMethod("calendars","getCal")(t),u=0;u{"use strict";die.exports=function(t){return t}});var P6=ye(_y=>{"use strict";var sit=Eo(),lit=H1(),uit=VS(),cit=hs().BADNUM,UO=1e-9;_y.findBin=function(e,t,r){if(sit(t.start))return r?Math.ceil((e-t.start)/t.size-UO)-1:Math.floor((e-t.start)/t.size+UO);var n=0,i=t.length,a=0,o=i>1?(t[i-1]-t[0])/(i-1):1,s,l;for(o>=0?l=r?fit:hit:l=r?vit:dit,e+=o*UO*(r?-1:1)*(o>=0?1:-1);n90&&lit.log("Long binary search..."),n-1};function fit(e,t){return et}function vit(e,t){return e>=t}_y.sorterAsc=function(e,t){return e-t};_y.sorterDes=function(e,t){return t-e};_y.distinctVals=function(e){var t=e.slice();t.sort(_y.sorterAsc);var r;for(r=t.length-1;r>-1&&t[r]===cit;r--);for(var n=t[r]-t[0]||1,i=n/(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>i&&(n=Math.min(n,u),a.push(l),o=l)}return{vals:a,minDiff:n}};_y.roundUp=function(e,t,r){for(var n=0,i=t.length-1,a,o=0,s=r?0:1,l=r?1:0,u=r?Math.ceil:Math.floor;n0&&(n=1),r&&n)return e.sort(t)}return n?e:e.reverse()};_y.findIndexOfMin=function(e,t){t=t||uit;for(var r=1/0,n,i=0;i{"use strict";vie.exports=function(t){return Object.keys(t).sort()}});var pie=ye(dh=>{"use strict";var GS=Eo(),pit=vv().isArrayOrTypedArray;dh.aggNums=function(e,t,r,n){var i,a;if((!n||n>r.length)&&(n=r.length),GS(t)||(t=!1),pit(r[0])){for(a=new Array(n),i=0;ie.length-1)return e[e.length-1];var r=t%1;return r*e[Math.ceil(t)]+(1-r)*e[Math.floor(t)]}});var xie=ye((Prr,_ie)=>{"use strict";var gie=r3(),VO=gie.mod,git=gie.modHalf,HS=Math.PI,K1=2*HS;function mit(e){return e/180*HS}function yit(e){return e/HS*180}function GO(e){return Math.abs(e[1]-e[0])>K1-1e-14}function mie(e,t){return git(t-e,K1)}function _it(e,t){return Math.abs(mie(e,t))}function yie(e,t){if(GO(t))return!0;var r,n;t[0]n&&(n+=K1);var i=VO(e,K1),a=i+K1;return i>=r&&i<=n||a>=r&&a<=n}function xit(e,t,r,n){if(!yie(t,n))return!1;var i,a;return r[0]=i&&e<=a}function HO(e,t,r,n,i,a,o){i=i||0,a=a||0;var s=GO([r,n]),l,u,c,f,h;s?(l=0,u=HS,c=K1):r{"use strict";fb.isLeftAnchor=function(t){return t.xanchor==="left"||t.xanchor==="auto"&&t.x<=1/3};fb.isCenterAnchor=function(t){return t.xanchor==="center"||t.xanchor==="auto"&&t.x>1/3&&t.x<2/3};fb.isRightAnchor=function(t){return t.xanchor==="right"||t.xanchor==="auto"&&t.x>=2/3};fb.isTopAnchor=function(t){return t.yanchor==="top"||t.yanchor==="auto"&&t.y>=2/3};fb.isMiddleAnchor=function(t){return t.yanchor==="middle"||t.yanchor==="auto"&&t.y>1/3&&t.y<2/3};fb.isBottomAnchor=function(t){return t.yanchor==="bottom"||t.yanchor==="auto"&&t.y<=1/3}});var Aie=ye(hb=>{"use strict";var jO=r3().mod;hb.segmentsIntersect=Tie;function Tie(e,t,r,n,i,a,o,s){var l=r-e,u=i-e,c=o-i,f=n-t,h=a-t,d=s-a,v=l*d-c*f;if(v===0)return null;var x=(u*d-c*h)/v,b=(u*f-l*h)/v;return b<0||b>1||x<0||x>1?null:{x:e+l*x,y:t+f*x}}hb.segmentDistance=function(t,r,n,i,a,o,s,l){if(Tie(t,r,n,i,a,o,s,l))return 0;var u=n-t,c=i-r,f=s-a,h=l-o,d=u*u+c*c,v=f*f+h*h,x=Math.min(I6(u,c,d,a-t,o-r),I6(u,c,d,s-t,l-r),I6(f,h,v,t-a,r-o),I6(f,h,v,n-a,i-o));return Math.sqrt(x)};function I6(e,t,r,n,i){var a=n*e+i*t;if(a<0)return n*n+i*i;if(a>r){var o=n-e,s=i-t;return o*o+s*s}else{var l=n*t-i*e;return l*l/r}}var R6,WO,wie;hb.getTextLocation=function(t,r,n,i){if((t!==WO||i!==wie)&&(R6={},WO=t,wie=i),R6[n])return R6[n];var a=t.getPointAtLength(jO(n-i/2,r)),o=t.getPointAtLength(jO(n+i/2,r)),s=Math.atan((o.y-a.y)/(o.x-a.x)),l=t.getPointAtLength(jO(n,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 R6[n]=f,f};hb.clearLocationCache=function(){WO=null};hb.getVisibleSegment=function(t,r,n){var i=r.left,a=r.right,o=r.top,s=r.bottom,l=0,u=t.getTotalLength(),c=u,f,h;function d(x){var b=t.getPointAtLength(x);x===0?f=b:x===u&&(h=b);var p=b.xa?b.x-a:0,C=b.ys?b.y-s:0;return Math.sqrt(p*p+C*C)}for(var v=d(l);v;){if(l+=v+n,l>c)return;v=d(l)}for(v=d(c);v;){if(c-=v+n,l>c)return;v=d(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}};hb.findPointOnPath=function(t,r,n,i){i=i||{};for(var a=i.pathLength||t.getTotalLength(),o=i.tolerance||.001,s=i.iterationLimit||30,l=t.getPointAtLength(0)[n]>t.getPointAtLength(a)[n]?-1:1,u=0,c=0,f=a,h,d,v;u0?f=h:c=h,u++}return d}});var D6=ye(jS=>{"use strict";var xy={};jS.throttle=function(t,r,n){var i=xy[t],a=Date.now();if(!i){for(var o in xy)xy[o].tsi.ts+r){s();return}i.timer=setTimeout(function(){s(),i.timer=null},r)};jS.done=function(e){var t=xy[e];return!t||!t.timer?Promise.resolve():new Promise(function(r){var n=t.onDone;t.onDone=function(){n&&n(),r(),t.onDone=null}})};jS.clear=function(e){if(e)Sie(xy[e]),delete xy[e];else for(var t in xy)jS.clear(t)};function Sie(e){e&&e.timer!==null&&(clearTimeout(e.timer),e.timer=null)}});var Eie=ye((Frr,Mie)=>{"use strict";Mie.exports=function(t){t._responsiveChartHandler&&(window.removeEventListener("resize",t._responsiveChartHandler),delete t._responsiveChartHandler)}});var Cie=ye((zrr,F6)=>{"use strict";F6.exports=XO;F6.exports.isMobile=XO;F6.exports.default=XO;var Ait=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,Sit=/CrOS/,Mit=/android|ipad|playbook|silk/i;function XO(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=Ait.test(t)&&!Sit.test(t)||!!e.tablet&&Mit.test(t);return!r&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&t.indexOf("Macintosh")!==-1&&t.indexOf("Safari")!==-1&&(r=!0),r}});var Lie=ye((Orr,kie)=>{"use strict";var Eit=Eo(),Cit=Cie();kie.exports=function(t){var r;if(t&&t.hasOwnProperty("userAgent")?r=t.userAgent:r=kit(),typeof r!="string")return!0;var n=Cit({ua:{headers:{"user-agent":r}},tablet:!0,featureDetect:!1});if(!n)for(var i=r.split(" "),a=1;a-1;s--){var l=i[s];if(l.substr(0,8)==="Version/"){var u=l.substr(8).split(".")[0];if(Eit(u)&&(u=+u),u>=13)return!0}}}return n};function kit(){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 Iie=ye((qrr,Pie)=>{"use strict";var Lit=Oa();Pie.exports=function(t,r,n){var i=t.selectAll("g."+n.replace(/\s/g,".")).data(r,function(o){return o[0].trace.uid});i.exit().remove(),i.enter().append("g").attr("class",n),i.order();var a=t.classed("rangeplot")?"nodeRangePlot3":"node3";return i.each(function(o){o[0][a]=Lit.select(this)}),i}});var Die=ye((Brr,Rie)=>{"use strict";var Pit=qa();Rie.exports=function(t,r){for(var n=t._context.locale,i=0;i<2;i++){for(var a=t._context.locales,o=0;o<2;o++){var s=(a[n]||{}).dictionary;if(s){var l=s[r];if(l)return l}a=Pit.localeRegistry}var u=n.split("-")[0];if(u===n)break;n=u}return r}});var ZO=ye((Nrr,Fie)=>{"use strict";Fie.exports=function(t){for(var r={},n=[],i=0,a=0;a{"use strict";zie.exports=function(t){for(var r=Dit(t)?Rit:Iit,n=[],i=0;i{"use strict";qie.exports=function(t,r){if(!r)return t;var n=1/Math.abs(r),i=n>1?(n*t+n*r)/n:t+r,a=String(i).length;if(a>16){var o=String(r).length,s=String(t).length;if(a>=s+o){var l=parseFloat(i).toPrecision(12);l.indexOf("e+")===-1&&(i=+l)}}return i}});var Uie=ye((Grr,Nie)=>{"use strict";var Fit=Eo(),zit=hs().BADNUM,Oit=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;Nie.exports=function(t){return typeof t=="string"&&(t=t.replace(Oit,"")),Fit(t)?Number(t):zit}});var Dr=ye((Hrr,ene)=>{"use strict";var WS=Oa(),qit=e3().utcFormat,Bit=mO().format,Xie=Eo(),Zie=hs(),Yie=Zie.FP_SAFE,Nit=-Yie,Vie=Zie.BADNUM,Si=ene.exports={};Si.adjustFormat=function(t){return!t||/^\d[.]\df/.test(t)||/[.]\d%/.test(t)?t:t==="0.f"?"~f":/^\d%/.test(t)?"~%":/^\ds/.test(t)?"~s":!/^[~,.0$]/.test(t)&&/[&fps]/.test(t)?"~"+t:t};var Gie={};Si.warnBadFormat=function(e){var t=String(e);Gie[t]||(Gie[t]=1,Si.warn('encountered bad format: "'+t+'"'))};Si.noFormat=function(e){return String(e)};Si.numberFormat=function(e){var t;try{t=Bit(Si.adjustFormat(e))}catch(r){return Si.warnBadFormat(e),Si.noFormat}return t};Si.nestedProperty=CS();Si.keyedContainer=Dee();Si.relativeAttr=zee();Si.isPlainObject=gy();Si.toLogRange=p6();Si.relinkPrivateKeys=Nee();var J1=vv();Si.isArrayBuffer=J1.isArrayBuffer;Si.isTypedArray=J1.isTypedArray;Si.isArrayOrTypedArray=J1.isArrayOrTypedArray;Si.isArray1D=J1.isArray1D;Si.ensureArray=J1.ensureArray;Si.concat=J1.concat;Si.maxRowLength=J1.maxRowLength;Si.minRowLength=J1.minRowLength;var Kie=r3();Si.mod=Kie.mod;Si.modHalf=Kie.modHalf;var $1=ate();Si.valObjectMeta=$1.valObjectMeta;Si.coerce=$1.coerce;Si.coerce2=$1.coerce2;Si.coerceFont=$1.coerceFont;Si.coercePattern=$1.coercePattern;Si.coerceHoverinfo=$1.coerceHoverinfo;Si.coerceSelectionMarkerOpacity=$1.coerceSelectionMarkerOpacity;Si.validate=$1.validate;var jp=hie();Si.dateTime2ms=jp.dateTime2ms;Si.isDateTime=jp.isDateTime;Si.ms2DateTime=jp.ms2DateTime;Si.ms2DateTimeLocal=jp.ms2DateTimeLocal;Si.cleanDate=jp.cleanDate;Si.isJSDate=jp.isJSDate;Si.formatDate=jp.formatDate;Si.incrementMonth=jp.incrementMonth;Si.dateTick0=jp.dateTick0;Si.dfltRange=jp.dfltRange;Si.findExactDates=jp.findExactDates;Si.MIN_MS=jp.MIN_MS;Si.MAX_MS=jp.MAX_MS;var db=P6();Si.findBin=db.findBin;Si.sorterAsc=db.sorterAsc;Si.sorterDes=db.sorterDes;Si.distinctVals=db.distinctVals;Si.roundUp=db.roundUp;Si.sort=db.sort;Si.findIndexOfMin=db.findIndexOfMin;Si.sortObjectKeys=Y1();var by=pie();Si.aggNums=by.aggNums;Si.len=by.len;Si.mean=by.mean;Si.geometricMean=by.geometricMean;Si.median=by.median;Si.midRange=by.midRange;Si.variance=by.variance;Si.stdev=by.stdev;Si.interp=by.interp;var yg=b6();Si.init2dArray=yg.init2dArray;Si.transposeRagged=yg.transposeRagged;Si.dot=yg.dot;Si.translationMatrix=yg.translationMatrix;Si.rotationMatrix=yg.rotationMatrix;Si.rotationXYMatrix=yg.rotationXYMatrix;Si.apply3DTransform=yg.apply3DTransform;Si.apply2DTransform=yg.apply2DTransform;Si.apply2DTransform2=yg.apply2DTransform2;Si.convertCssMatrix=yg.convertCssMatrix;Si.inverseTransformMatrix=yg.inverseTransformMatrix;var vm=xie();Si.deg2rad=vm.deg2rad;Si.rad2deg=vm.rad2deg;Si.angleDelta=vm.angleDelta;Si.angleDist=vm.angleDist;Si.isFullCircle=vm.isFullCircle;Si.isAngleInsideSector=vm.isAngleInsideSector;Si.isPtInsideSector=vm.isPtInsideSector;Si.pathArc=vm.pathArc;Si.pathSector=vm.pathSector;Si.pathAnnulus=vm.pathAnnulus;var d3=bie();Si.isLeftAnchor=d3.isLeftAnchor;Si.isCenterAnchor=d3.isCenterAnchor;Si.isRightAnchor=d3.isRightAnchor;Si.isTopAnchor=d3.isTopAnchor;Si.isMiddleAnchor=d3.isMiddleAnchor;Si.isBottomAnchor=d3.isBottomAnchor;var v3=Aie();Si.segmentsIntersect=v3.segmentsIntersect;Si.segmentDistance=v3.segmentDistance;Si.getTextLocation=v3.getTextLocation;Si.clearLocationCache=v3.clearLocationCache;Si.getVisibleSegment=v3.getVisibleSegment;Si.findPointOnPath=v3.findPointOnPath;var q6=Ao();Si.extendFlat=q6.extendFlat;Si.extendDeep=q6.extendDeep;Si.extendDeepAll=q6.extendDeepAll;Si.extendDeepNoArrays=q6.extendDeepNoArrays;var YO=H1();Si.log=YO.log;Si.warn=YO.warn;Si.error=YO.error;var Uit=n3();Si.counterRegex=Uit.counter;var KO=D6();Si.throttle=KO.throttle;Si.throttleDone=KO.done;Si.clearThrottle=KO.clear;var _g=OS();Si.getGraphDiv=_g.getGraphDiv;Si.isPlotDiv=_g.isPlotDiv;Si.removeElement=_g.removeElement;Si.addStyleRule=_g.addStyleRule;Si.addRelatedStyleRule=_g.addRelatedStyleRule;Si.deleteRelatedStyleRule=_g.deleteRelatedStyleRule;Si.setStyleOnHover=_g.setStyleOnHover;Si.getFullTransformMatrix=_g.getFullTransformMatrix;Si.getElementTransformMatrix=_g.getElementTransformMatrix;Si.getElementAndAncestors=_g.getElementAndAncestors;Si.equalDomRects=_g.equalDomRects;Si.clearResponsive=Eie();Si.preserveDrawingBuffer=Lie();Si.makeTraceGroups=Iie();Si._=Die();Si.notifier=CO();Si.filterUnique=ZO();Si.filterVisible=Oie();Si.pushUnique=PO();Si.increment=Bie();Si.cleanNumber=Uie();Si.ensureNumber=function(t){return Xie(t)?(t=Number(t),t>Yie||t=t?!1:Xie(e)&&e>=0&&e%1===0};Si.noop=x6();Si.identity=VS();Si.repeat=function(e,t){for(var r=new Array(t),n=0;nr?Math.max(r,Math.min(t,e)):Math.max(t,Math.min(r,e))};Si.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};Si.simpleMap=function(e,t,r,n,i){for(var a=e.length,o=new Array(a),s=0;s=Math.pow(2,r)?i>10?(Si.warn("randstr failed uniqueness"),o):e(t,r,n,(i||0)+1):o};Si.OptionControl=function(e,t){e||(e={}),t||(t="opt");var r={};return r.optionList=[],r._newoption=function(n){n[t]=e,r[n.name]=n,r.optionList.push(n)},r["_"+t]=e,r};Si.smooth=function(e,t){if(t=Math.round(t)||0,t<2)return e;var r=e.length,n=2*r,i=2*t-1,a=new Array(i),o=new Array(r),s,l,u,c;for(s=0;s=n&&(u-=n*Math.floor(u/n)),u<0?u=-1-u:u>=r&&(u=n-1-u),c+=e[u]*a[l];o[s]=c}return o};Si.syncOrAsync=function(e,t,r){var n,i;function a(){return Si.syncOrAsync(e,t,r)}for(;e.length;)if(i=e.splice(0,1)[0],n=i(t),n&&n.then)return n.then(a);return r&&r(t)};Si.stripTrailingSlash=function(e){return e.substr(-1)==="/"?e.substr(0,e.length-1):e};Si.noneOrAll=function(e,t,r){if(e){var n=!1,i=!0,a,o;for(a=0;a0?i:0})};Si.fillArray=function(e,t,r,n){if(n=n||Si.identity,Si.isArrayOrTypedArray(e))for(var i=0;iHit.test(window.navigator.userAgent);var jit=/Firefox\/(\d+)\.\d+/;Si.getFirefoxVersion=function(){var e=jit.exec(window.navigator.userAgent);if(e&&e.length===2){var t=parseInt(e[1]);if(!isNaN(t))return t}return null};Si.isD3Selection=function(e){return e instanceof WS.selection};Si.ensureSingle=function(e,t,r,n){var i=e.select(t+(r?"."+r:""));if(i.size())return i;var a=e.append(t);return r&&a.classed(r,!0),n&&a.call(n),a};Si.ensureSingleById=function(e,t,r,n){var i=e.select(t+"#"+r);if(i.size())return i;var a=e.append(t).attr("id",r);return n&&a.call(n),a};Si.objectFromPath=function(e,t){for(var r=e.split("."),n,i=n={},a=0;a1?i+o[1]:"";if(a&&(o.length>1||s.length>4||r))for(;n.test(s);)s=s.replace(n,"$1"+a+"$2");return s+l};Si.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var Qie=/^\w*$/;Si.templateString=function(e,t){var r={};return e.replace(Si.TEMPLATE_STRING_REGEX,function(n,i){var a;return Qie.test(i)?a=t[i]:(r[i]=r[i]||Si.nestedProperty(t,i).get,a=r[i](!0)),a!==void 0?a:""})};var Zit={max:10,count:0,name:"hovertemplate"};Si.hovertemplateString=function(){return JO.apply(Zit,arguments)};var Yit={max:10,count:0,name:"texttemplate"};Si.texttemplateString=function(){return JO.apply(Yit,arguments)};var Kit=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;function Jit(e){var t=e.match(Kit);return t?{key:t[1],op:t[2],number:Number(t[3])}:{key:e,op:null,number:null}}var $it={max:10,count:0,name:"texttemplate",parseMultDiv:!0};Si.texttemplateStringForShapes=function(){return JO.apply($it,arguments)};var Hie=/^[:|\|]/;function JO(e,t,r){var n=this,i=arguments;return t||(t={}),e.replace(Si.TEMPLATE_STRING_REGEX,function(a,o,s){var l=o==="xother"||o==="yother",u=o==="_xother"||o==="_yother",c=o==="_xother_"||o==="_yother_",f=o==="xother_"||o==="yother_",h=l||u||f||c,d=o;(u||c)&&(d=d.substring(1)),(f||c)&&(d=d.substring(0,d.length-1));var v=null,x=null;if(n.parseMultDiv){var b=Jit(d);d=b.key,v=b.op,x=b.number}var p;if(h){if(p=t[d],p===void 0)return""}else{var C,E;for(E=3;E=O6&&o<=jie,u=s>=O6&&s<=jie;if(l&&(n=10*n+o-O6),u&&(i=10*i+s-O6),!l||!u){if(n!==i)return n-i;if(o!==s)return o-s}}return i-n};var h3=2e9;Si.seedPseudoRandom=function(){h3=2e9};Si.pseudoRandom=function(){var e=h3;return h3=(69069*h3+1)%4294967296,Math.abs(h3-e)<429496729?Si.pseudoRandom():h3/4294967296};Si.fillText=function(e,t,r){var n=Array.isArray(r)?function(o){r.push(o)}:function(o){r.text=o},i=Si.extractOption(e,t,"htx","hovertext");if(Si.isValidTextValue(i))return n(i);var a=Si.extractOption(e,t,"tx","text");if(Si.isValidTextValue(a))return n(a)};Si.isValidTextValue=function(e){return e||e===0};Si.formatPercent=function(e,t){t=t||0;for(var r=(Math.round(100*e*Math.pow(10,t))*Math.pow(.1,t)).toFixed(t)+"%",n=0;n1&&(u=1):u=0,Si.strTranslate(i-u*(r+o),a-u*(n+s))+Si.strScale(u)+(l?"rotate("+l+(t?"":" "+r+" "+n)+")":"")};Si.setTransormAndDisplay=function(e,t){e.attr("transform",Si.getTextTransform(t)),e.style("display",t.scale?null:"none")};Si.ensureUniformFontSize=function(e,t){var r=Si.extendFlat({},t);return r.size=Math.max(t.size,e._fullLayout.uniformtext.minsize||0),r};Si.join2=function(e,t,r){var n=e.length;return n>1?e.slice(0,-1).join(t)+r+e[n-1]:e.join(t)};Si.bigFont=function(e){return Math.round(1.2*e)};var Wie=Si.getFirefoxVersion(),Qit=Wie!==null&&Wie<86;Si.getPositionFromD3Event=function(){return Qit?[WS.event.layerX,WS.event.layerY]:[WS.event.offsetX,WS.event.offsetY]}});var ine=ye(()=>{"use strict";var ent=Dr(),tne={"X,X div":'direction:ltr;font-family:"Open Sans",verdana,arial,sans-serif;margin:0;padding:0;',"X input,X button":'font-family:"Open Sans",verdana,arial,sans-serif;',"X input:focus,X button:focus":"outline:none;","X a":"text-decoration:none;","X a:hover":"text-decoration:none;","X .crisp":"shape-rendering:crispEdges;","X .user-select-none":"-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;","X svg 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;",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($O in tne)rne=$O.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier"),ent.addStyleRule(rne,tne[$O]);var rne,$O});var QO=ye((Xrr,nne)=>{nne.exports=!0});var tq=ye((Zrr,ane)=>{"use strict";var tnt=QO(),eq;typeof window.matchMedia=="function"?eq=!window.matchMedia("(hover: none)").matches:eq=tnt;ane.exports=eq});var vb=ye((Yrr,rq)=>{"use strict";var p3=typeof Reflect=="object"?Reflect:null,one=p3&&typeof p3.apply=="function"?p3.apply:function(t,r,n){return Function.prototype.apply.call(t,r,n)},B6;p3&&typeof p3.ownKeys=="function"?B6=p3.ownKeys:Object.getOwnPropertySymbols?B6=function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:B6=function(t){return Object.getOwnPropertyNames(t)};function rnt(e){console&&console.warn&&console.warn(e)}var lne=Number.isNaN||function(t){return t!==t};function Jc(){Jc.init.call(this)}rq.exports=Jc;rq.exports.once=ont;Jc.EventEmitter=Jc;Jc.prototype._events=void 0;Jc.prototype._eventsCount=0;Jc.prototype._maxListeners=void 0;var sne=10;function N6(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(Jc,"defaultMaxListeners",{enumerable:!0,get:function(){return sne},set:function(e){if(typeof e!="number"||e<0||lne(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");sne=e}});Jc.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};Jc.prototype.setMaxListeners=function(t){if(typeof t!="number"||t<0||lne(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 une(e){return e._maxListeners===void 0?Jc.defaultMaxListeners:e._maxListeners}Jc.prototype.getMaxListeners=function(){return une(this)};Jc.prototype.emit=function(t){for(var r=[],n=1;n0&&(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")one(l,this,r);else for(var u=l.length,c=vne(l,u),n=0;n0&&o.length>i&&!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,rnt(s)}return e}Jc.prototype.addListener=function(t,r){return cne(this,t,r,!1)};Jc.prototype.on=Jc.prototype.addListener;Jc.prototype.prependListener=function(t,r){return cne(this,t,r,!0)};function int(){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 fne(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=int.bind(n);return i.listener=r,n.wrapFn=i,i}Jc.prototype.once=function(t,r){return N6(r),this.on(t,fne(this,t,r)),this};Jc.prototype.prependOnceListener=function(t,r){return N6(r),this.prependListener(t,fne(this,t,r)),this};Jc.prototype.removeListener=function(t,r){var n,i,a,o,s;if(N6(r),i=this._events,i===void 0)return this;if(n=i[t],n===void 0)return this;if(n===r||n.listener===r)--this._eventsCount===0?this._events=Object.create(null):(delete i[t],i.removeListener&&this.emit("removeListener",t,n.listener||r));else if(typeof n!="function"){for(a=-1,o=n.length-1;o>=0;o--)if(n[o]===r||n[o].listener===r){s=n[o].listener,a=o;break}if(a<0)return this;a===0?n.shift():nnt(n,a),n.length===1&&(i[t]=n[0]),i.removeListener!==void 0&&this.emit("removeListener",t,s||r)}return this};Jc.prototype.off=Jc.prototype.removeListener;Jc.prototype.removeAllListeners=function(t){var r,n,i;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[t]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete n[t]),this;if(arguments.length===0){var a=Object.keys(n),o;for(i=0;i=0;i--)this.removeListener(t,r[i]);return this};function hne(e,t,r){var n=e._events;if(n===void 0)return[];var i=n[t];return i===void 0?[]:typeof i=="function"?r?[i.listener||i]:[i]:r?ant(i):vne(i,i.length)}Jc.prototype.listeners=function(t){return hne(this,t,!0)};Jc.prototype.rawListeners=function(t){return hne(this,t,!1)};Jc.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):dne.call(e,t)};Jc.prototype.listenerCount=dne;function dne(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}Jc.prototype.eventNames=function(){return this._eventsCount>0?B6(this._events):[]};function vne(e,t){for(var r=new Array(t),n=0;n{"use strict";var iq=vb().EventEmitter,lnt={init:function(e){if(e._ev instanceof iq)return e;var t=new iq,r=new iq;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(n,i){t.emit(n,i),r.emit(n,i)},typeof e.addEventListener=="function"&&e.addEventListener("wheel",()=>{}),e},triggerHandler:function(e,t,r){var n,i=e._ev;if(!i)return;var a=i._events[t];if(!a)return;function o(l){if(l.listener){if(i.removeListener(t,l.listener),!l.fired)return l.fired=!0,l.listener.apply(i,[r])}else return l.apply(i,[r])}a=Array.isArray(a)?a:[a];var s;for(s=0;s{"use strict";var mne=Dr(),unt=ub().dfltConfig;function cnt(e,t){for(var r=[],n,i=0;iunt.queueLength&&(e.undoQueue.queue.shift(),e.undoQueue.index--)};wy.startSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!0,e.undoQueue.beginSequence=!0};wy.stopSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!1,e.undoQueue.beginSequence=!1};wy.undo=function(t){var r,n;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,n=0;n=t.undoQueue.queue.length)){for(r=t.undoQueue.queue[t.undoQueue.index],t.undoQueue.inSequence=!0,n=0;n{"use strict";xne.exports={_isLinkedToArray:"frames_entry",group:{valType:"string"},name:{valType:"string"},traces:{valType:"any"},baseframe:{valType:"string"},data:{valType:"any"},layout:{valType:"any"}}});var _3=ye(Yh=>{"use strict";var x0=qa(),XS=Dr(),V6=Vl(),aq=s3(),fnt=nq(),hnt=qS(),dnt=ub().configAttributes,bne=mc(),xg=XS.extendDeepAll,m3=XS.isPlainObject,vnt=XS.isArrayOrTypedArray,G6=XS.nestedProperty,pnt=XS.valObjectMeta,oq="_isSubplotObj",H6="_isLinkedToArray",gnt="_arrayAttrRegexps",Tne="_deprecated",sq=[oq,H6,gnt,Tne];Yh.IS_SUBPLOT_OBJ=oq;Yh.IS_LINKED_TO_ARRAY=H6;Yh.DEPRECATED=Tne;Yh.UNDERSCORE_ATTRS=sq;Yh.get=function(){var e={};return x0.allTypes.forEach(function(t){e[t]=ynt(t)}),{defs:{valObjects:pnt,metaKeys:sq.concat(["description","role","editType","impliedEdits"]),editType:{traces:bne.traces,layout:bne.layout},impliedEdits:{}},traces:e,layout:_nt(),frames:xnt(),animation:y3(hnt),config:y3(dnt)}};Yh.crawl=function(e,t,r,n){var i=r||0;n=n||"",Object.keys(e).forEach(function(a){var o=e[a];if(sq.indexOf(a)===-1){var s=(n?n+".":"")+a;t(o,a,e,i,s),!Yh.isValObject(o)&&m3(o)&&a!=="impliedEdits"&&Yh.crawl(o,t,i+1,s)}})};Yh.isValObject=function(e){return e&&e.valType!==void 0};Yh.findArrayAttributes=function(e){var t=[],r=[],n=[],i,a;function o(l,u,c,f){r=r.slice(0,f).concat([u]),n=n.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(i,0,"")}function s(l,u,c){var f=l[r[u]],h=c+r[u];if(u===r.length-1)vnt(f)&&t.push(a+h);else if(n[u]){if(Array.isArray(f))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(!U6(o))return!1;e=a[i][o]}else e=a[i]}else e=a}}return e}function U6(e){return e===Math.round(e)&&e>=0}function ynt(e){var t,r;t=x0.modules[e]._module,r=t.basePlotModule;var n={};n.type=null;var i=xg({},V6),a=xg({},t.attributes);Yh.crawl(a,function(l,u,c,f,h){G6(i,h).set(void 0),l===void 0&&G6(a,h).set(void 0)}),xg(n,i),x0.traceIs(e,"noOpacity")&&delete n.opacity,x0.traceIs(e,"showLegend")||(delete n.showlegend,delete n.legendgroup),x0.traceIs(e,"noHover")&&(delete n.hoverinfo,delete n.hoverlabel),t.selectPoints||delete n.selectedpoints,xg(n,a),r.attributes&&xg(n,r.attributes),n.type=e;var o={meta:t.meta||{},categories:t.categories||{},animatable:!!t.animatable,type:e,attributes:y3(n)};if(t.layoutAttributes){var s={};xg(s,t.layoutAttributes),o.layoutAttributes=y3(s)}return t.animatable||Yh.crawl(o,function(l){Yh.isValObject(l)&&"anim"in l&&delete l.anim}),o}function _nt(){var e={},t,r;xg(e,aq);for(t in x0.subplotsRegistry)if(r=x0.subplotsRegistry[t],!!r.layoutAttributes)if(Array.isArray(r.attr))for(var n=0;n{"use strict";var x3=Dr(),Snt=Vl(),Q1="templateitemname",lq={name:{valType:"string",editType:"none"}};lq[Q1]={valType:"string",editType:"calc"};pb.templatedArray=function(e,t){return t._isLinkedToArray=e,t.name=lq.name,t[Q1]=lq[Q1],t};pb.traceTemplater=function(e){var t={},r,n;for(r in e)n=e[r],Array.isArray(n)&&n.length&&(t[r]=0);function i(a){r=x3.coerce(a,{},Snt,"type");var o={type:r,_template:null};if(r in t){n=e[r];var s=t[r]%n.length;t[r]++,o._template=n[s]}return o}return{newTrace:i}};pb.newContainer=function(e,t,r){var n=e._template,i=n&&(n[t]||r&&n[r]);x3.isPlainObject(i)||(i=null);var a=e[t]={_template:i};return a};pb.arrayTemplater=function(e,t,r){var n=e._template,i=n&&n[Mne(t)],a=n&&n[t];(!Array.isArray(a)||!a.length)&&(a=[]);var o={};function s(u){var c={name:u.name,_input:u},f=c[Q1]=u[Q1];if(!Sne(f))return c._template=i,c;for(var h=0;h=n&&(r._input||{})._templateitemname;a&&(i=n);var o=t+"["+i+"]",s;function l(){s={},a&&(s[o]={},s[o][Q1]=a)}l();function u(d,v){s[d]=v}function c(d,v){a?x3.nestedProperty(s[o],d).set(v):s[o+"."+d]=v}function f(){var d=s;return l(),d}function h(d,v){d&&c(d,v);var x=f();for(var b in x)x3.nestedProperty(e,b).set(x[b])}return{modifyBase:u,modifyItem:c,getUpdateObj:f,applyUpdate:h}}});var hd=ye((tir,Ene)=>{"use strict";var ZS=n3().counter;Ene.exports={idRegex:{x:ZS("x","( domain)?"),y:ZS("y","( domain)?")},attrRegex:ZS("[xy]axis"),xAxisMatch:ZS("xaxis"),yAxisMatch:ZS("yaxis"),AX_ID_PATTERN:/^[xyz][0-9]*( domain)?$/,AX_NAME_PATTERN:/^[xyz]axis[0-9]*$/,SUBPLOT_PATTERN:/^x([0-9]*)y([0-9]*)$/,HOUR_PATTERN:"hour",WEEKDAY_PATTERN:"day of week",MINDRAG:8,MINZOOM:20,DRAGGERSIZE:20,REDRAWDELAY:50,DFLTRANGEX:[-1,6],DFLTRANGEY:[-1,4],traceLayerClasses:["imagelayer","heatmaplayer","contourcarpetlayer","contourlayer","funnellayer","waterfalllayer","barlayer","carpetlayer","violinlayer","boxlayer","ohlclayer","scattercarpetlayer","scatterlayer"],clipOnAxisFalseQuery:[".scatterlayer",".barlayer",".funnellayer",".waterfalllayer"],layerValue2layerClass:{"above traces":"above","below traces":"below"},zindexSeparator:"z"}});var hf=ye(wp=>{"use strict";var Mnt=qa(),uq=hd();wp.id2name=function(t){if(!(typeof t!="string"||!t.match(uq.AX_ID_PATTERN))){var r=t.split(" ")[0].substr(1);return r==="1"&&(r=""),t.charAt(0)+"axis"+r}};wp.name2id=function(t){if(t.match(uq.AX_NAME_PATTERN)){var r=t.substr(5);return r==="1"&&(r=""),t.charAt(0)+r}};wp.cleanId=function(t,r,n){var i=/( domain)$/.test(t);if(!(typeof t!="string"||!t.match(uq.AX_ID_PATTERN))&&!(r&&t.charAt(0)!==r)&&!(i&&!n)){var a=t.split(" ")[0].substr(1).replace(/^0+/,"");return a==="1"&&(a=""),t.charAt(0)+a+(i&&n?" domain":"")}};wp.list=function(e,t,r){var n=e._fullLayout;if(!n)return[];var i=wp.listIds(e,t),a=new Array(i.length),o;for(o=0;on?1:-1:+(e.substr(1)||1)-+(t.substr(1)||1)};wp.ref2id=function(e){return/^[xyz]/.test(e)?e.split(" ")[0]:!1};function Cne(e,t){if(t&&t.length){for(var r=0;r{"use strict";function Ent(e){var t=e._fullLayout._zoomlayer;t&&t.selectAll(".outline-controllers").remove()}function Cnt(e){var t=e._fullLayout._zoomlayer;t&&t.selectAll(".select-outline").remove(),e._fullLayout._outlining=!1}kne.exports={clearOutlineControllers:Ent,clearOutline:Cnt}});var j6=ye((nir,Lne)=>{"use strict";Lne.exports={scattermode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},scattergap:{valType:"number",min:0,max:1,editType:"calc"}}});var Id=ye(X6=>{"use strict";var W6=qa(),air=hd().SUBPLOT_PATTERN;X6.getSubplotCalcData=function(e,t,r){var n=W6.subplotsRegistry[t];if(!n)return[];for(var i=n.attr,a=[],o=0;o{"use strict";var knt=qa(),b3=Dr();gb.manageCommandObserver=function(e,t,r,n){var i={},a=!0;t&&t._commandObserver&&(i=t._commandObserver),i.cache||(i.cache={}),i.lookupTable={};var o=gb.hasSimpleAPICommandBindings(e,r,i.lookupTable);if(t&&t._commandObserver){if(o)return i;if(t._commandObserver.remove)return t._commandObserver.remove(),t._commandObserver=null,i}if(o){Pne(e,o,i.cache),i.check=function(){if(a){var c=Pne(e,o,i.cache);return c.changed&&n&&i.lookupTable[c.value]!==void 0&&(i.disable(),Promise.resolve(n({value:c.value,type:o.type,prop:o.prop,traces:o.traces,index:i.lookupTable[c.value]})).then(i.enable,i.enable)),c.changed}};for(var s=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],l=0;l0?".":"")+i;b3.isPlainObject(a)?cq(a,t,o,n+1):t(o,i,a)}})}});var Mc=ye((lir,Zne)=>{"use strict";var Une=Oa(),Pnt=e3().timeFormatLocale,Int=mO().formatLocale,YS=Eo(),Rnt=yO(),Xl=qa(),Vne=_3(),Dnt=pl(),ja=Dr(),Gne=Ca(),Fne=hs().BADNUM,Tp=hf(),Fnt=e_().clearOutline,znt=j6(),fq=qS(),Ont=nq(),qnt=Id().getModuleCalcData,zne=ja.relinkPrivateKeys,mb=ja._,ba=Zne.exports={};ja.extendFlat(ba,Xl);ba.attributes=Vl();ba.attributes.type.values=ba.allTypes;ba.fontAttrs=ec();ba.layoutAttributes=s3();var Y6=Dne();ba.executeAPICommand=Y6.executeAPICommand;ba.computeAPICommandBindings=Y6.computeAPICommandBindings;ba.manageCommandObserver=Y6.manageCommandObserver;ba.hasSimpleAPICommandBindings=Y6.hasSimpleAPICommandBindings;ba.redrawText=function(e){return e=ja.getGraphDiv(e),new Promise(function(t){setTimeout(function(){e._fullLayout&&(Xl.getComponentMethod("annotations","draw")(e),Xl.getComponentMethod("legend","draw")(e),Xl.getComponentMethod("colorbar","draw")(e),t(ba.previousPromises(e)))},300)})};ba.resize=function(e){e=ja.getGraphDiv(e);var t,r=new Promise(function(n,i){(!e||ja.isHidden(e))&&i(new Error("Resize must be passed a displayed plot div element.")),e._redrawTimer&&clearTimeout(e._redrawTimer),e._resolveResize&&(t=e._resolveResize),e._resolveResize=n,e._redrawTimer=setTimeout(function(){if(!e.layout||e.layout.width&&e.layout.height||ja.isHidden(e)){n(e);return}delete e.layout.width,delete e.layout.height;var a=e.changed;e.autoplay=!0,Xl.call("relayout",e,{autosize:!0}).then(function(){e.changed=a,e._resolveResize===n&&(delete e._resolveResize,n(e))})},100)});return t&&t(r),r};ba.previousPromises=function(e){if((e._promises||[]).length)return Promise.all(e._promises).then(function(){e._promises=[]})};ba.addLinks=function(e){if(!(!e._context.showLink&&!e._context.showSources)){var t=e._fullLayout,r=ja.ensureSingle(t._paper,"text","js-plot-link-container",function(l){l.style({"font-family":'"Open Sans", Arial, sans-serif',"font-size":"12px",fill:Gne.defaultLine,"pointer-events":"all"}).each(function(){var u=Une.select(this);u.append("tspan").classed("js-link-to-tool",!0),u.append("tspan").classed("js-link-spacer",!0),u.append("tspan").classed("js-sourcelinks",!0)})}),n=r.node(),i={y:t._paper.attr("height")-9};document.body.contains(n)&&n.getComputedTextLength()>=t.width-20?(i["text-anchor"]="start",i.x=5):(i["text-anchor"]="end",i.x=t._paper.attr("width")-7),r.attr(i);var a=r.select(".js-link-to-tool"),o=r.select(".js-link-spacer"),s=r.select(".js-sourcelinks");e._context.showSources&&e._context.showSources(e),e._context.showLink&&Bnt(e,a),o.text(a.text()&&s.text()?" - ":"")}};function Bnt(e,t){t.text("");var r=t.append("a").attr({"xlink:xlink:href":"#",class:"link--impt link--embedview","font-weight":"bold"}).text(e._context.linkText+" \xBB");if(e._context.sendData)r.on("click",function(){ba.sendDataToCloud(e)});else{var n=window.location.pathname.split("/"),i=window.location.search;r.attr({"xlink:xlink:show":"new","xlink:xlink:href":"/"+n[2].split(".")[0]+"/"+n[1]+i})}}ba.sendDataToCloud=function(e){var t=(window.PLOTLYENV||{}).BASE_URL||e._context.plotlyServerURL;if(t){e.emit("plotly_beforeexport");var r=Une.select(e).append("div").attr("id","hiddenform").style("display","none"),n=r.append("form").attr({action:t+"/external",method:"post",target:"_blank"}),i=n.append("input").attr({type:"text",name:"data"});return i.node().value=ba.graphJson(e,!1,"keepdata"),n.node().submit(),r.remove(),e.emit("plotly_afterexport"),!1}};var Nnt=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],Unt=["year","month","dayMonth","dayMonthYear"];ba.supplyDefaults=function(e,t){var r=t&&t.skipUpdateCalc,n=e._fullLayout||{};if(n._skipDefaults){delete n._skipDefaults;return}var i=e._fullLayout={},a=e.layout||{},o=e._fullData||[],s=e._fullData=[],l=e.data||[],u=e.calcdata||[],c=e._context||{},f;e._transitionData||ba.createTransitionData(e),i._dfltTitle={plot:mb(e,"Click to enter Plot title"),subtitle:mb(e,"Click to enter Plot subtitle"),x:mb(e,"Click to enter X axis title"),y:mb(e,"Click to enter Y axis title"),colorbar:mb(e,"Click to enter Colorscale title"),annotation:mb(e,"new text")},i._traceWord=mb(e,"trace");var h=One(e,Nnt);if(i._mapboxAccessToken=c.mapboxAccessToken,n._initialAutoSizeIsDone){var d=n.width,v=n.height;ba.supplyLayoutGlobalDefaults(a,i,h),a.width||(i.width=d),a.height||(i.height=v),ba.sanitizeMargins(i)}else{ba.supplyLayoutGlobalDefaults(a,i,h);var x=!a.width||!a.height,b=i.autosize,p=c.autosizable,C=x&&(b||p);C?ba.plotAutoSize(e,a,i):x&&ba.sanitizeMargins(i),!b&&x&&(a.width=i.width,a.height=i.height)}i._d3locale=Hnt(h,i.separators),i._extraFormat=One(e,Unt),i._initialAutoSizeIsDone=!0,i._dataLength=l.length,i._modules=[],i._visibleModules=[],i._basePlotModules=[];var E=i._subplots=Gnt(),A=i._splomAxes={x:{},y:{}},L=i._splomSubplots={};i._splomGridDflt={},i._scatterStackOpts={},i._firstScatter={},i._alignmentOpts={},i._colorAxes={},i._requestRangeslider={},i._traceUids=Vnt(o,l),ba.supplyDataDefaults(l,s,a,i);var _=Object.keys(A.x),k=Object.keys(A.y);if(_.length>1&&k.length>1){for(Xl.getComponentMethod("grid","sizeDefaults")(a,i),f=0;f<_.length;f++)ja.pushUnique(E.xaxis,_[f]);for(f=0;f15&&k.length>15&&i.shapes.length===0&&i.images.length===0,ba.linkSubplots(s,i,o,n),ba.cleanPlot(s,i,o,n);var z=!!(n._has&&n._has("cartesian")),O=!!(i._has&&i._has("cartesian")),V=z,G=O;V&&!G?n._bgLayer.remove():G&&!V&&(i._shouldCreateBgLayer=!0),n._zoomlayer&&!e._dragging&&Fnt({_fullLayout:n}),jnt(s,i),zne(i,n),Xl.getComponentMethod("colorscale","crossTraceDefaults")(s,i),i._preGUI||(i._preGUI={}),i._tracePreGUI||(i._tracePreGUI={});var Z=i._tracePreGUI,H={},N;for(N in Z)H[N]="old";for(f=0;f0){var c=1-2*a;o=Math.round(c*o),s=Math.round(c*s)}}var f=ba.layoutAttributes.width.min,h=ba.layoutAttributes.height.min;o1,v=!r.height&&Math.abs(n.height-s)>1;(v||d)&&(d&&(n.width=o),v&&(n.height=s)),t._initialAutoSize||(t._initialAutoSize={width:o,height:s}),ba.sanitizeMargins(n)};ba.supplyLayoutModuleDefaults=function(e,t,r,n){var i=Xl.componentsRegistry,a=t._basePlotModules,o,s,l,u=Xl.subplotsRegistry.cartesian;for(o in i)l=i[o],l.includeBasePlot&&l.includeBasePlot(e,t);a.length||a.push(u),t._has("cartesian")&&(Xl.getComponentMethod("grid","contentDefaults")(e,t),u.finalizeSubplots(e,t));for(var c in t._subplots)t._subplots[c].sort(ja.subplotSort);for(s=0;s1&&(r.l/=b,r.r/=b)}if(h){var p=(r.t+r.b)/h;p>1&&(r.t/=p,r.b/=p)}var C=r.xl!==void 0?r.xl:r.x,E=r.xr!==void 0?r.xr:r.x,A=r.yt!==void 0?r.yt:r.y,L=r.yb!==void 0?r.yb:r.y;d[t]={l:{val:C,size:r.l+x},r:{val:E,size:r.r+x},b:{val:L,size:r.b+x},t:{val:A,size:r.t+x}},v[t]=1}if(!n._replotting)return ba.doAutoMargin(e)}};function Xnt(e){if("_redrawFromAutoMarginCount"in e._fullLayout)return!1;var t=Tp.list(e,"",!0);for(var r in t)if(t[r].autoshift||t[r].shift)return!0;return!1}ba.doAutoMargin=function(e){var t=e._fullLayout,r=t.width,n=t.height;t._size||(t._size={}),Hne(t);var i=t._size,a=t.margin,o={t:0,b:0,l:0,r:0},s=ja.extendFlat({},i),l=a.l,u=a.r,c=a.t,f=a.b,h=t._pushmargin,d=t._pushmarginIds,v=t.minreducedwidth,x=t.minreducedheight;if(a.autoexpand!==!1){for(var b in h)d[b]||delete h[b];var p=e._fullLayout._reservedMargin;for(var C in p)for(var E in p[C]){var A=p[C][E];o[E]=Math.max(o[E],A)}h.base={l:{val:0,size:l},r:{val:1,size:u},t:{val:1,size:c},b:{val:0,size:f}};for(var L in o){var _=0;for(var k in h)k!=="base"&&YS(h[k][L].size)&&(_=h[k][L].size>_?h[k][L].size:_);var M=Math.max(0,a[L]-_);o[L]=Math.max(0,o[L]-M)}for(var g in h){var P=h[g].l||{},T=h[g].b||{},z=P.val,O=P.size,V=T.val,G=T.size,Z=r-o.r-o.l,H=n-o.t-o.b;for(var N in h){if(YS(O)&&h[N].r){var j=h[N].r.val,re=h[N].r.size;if(j>z){var oe=(O*j+(re-Z)*z)/(j-z),_e=(re*(1-z)+(O-Z)*(1-j))/(j-z);oe+_e>l+u&&(l=oe,u=_e)}}if(YS(G)&&h[N].t){var Me=h[N].t.val,ke=h[N].t.size;if(Me>V){var me=(G*Me+(ke-H)*V)/(Me-V),ie=(ke*(1-V)+(G-H)*(1-Me))/(Me-V);me+ie>f+c&&(f=me,c=ie)}}}}}var Se=ja.constrain(r-a.l-a.r,jne,v),Le=ja.constrain(n-a.t-a.b,Wne,x),Ae=Math.max(0,r-Se),De=Math.max(0,n-Le);if(Ae){var Pe=(l+u)/Ae;Pe>1&&(l/=Pe,u/=Pe)}if(De){var ge=(f+c)/De;ge>1&&(f/=ge,c/=ge)}if(i.l=Math.round(l)+o.l,i.r=Math.round(u)+o.r,i.t=Math.round(c)+o.t,i.b=Math.round(f)+o.b,i.p=Math.round(a.pad),i.w=Math.round(r)-i.l-i.r,i.h=Math.round(n)-i.t-i.b,!t._replotting&&(ba.didMarginChange(s,i)||Xnt(e))){"_redrawFromAutoMarginCount"in t?t._redrawFromAutoMarginCount++:t._redrawFromAutoMarginCount=1;var Fe=3*(1+Object.keys(d).length);if(t._redrawFromAutoMarginCount1)return!0}return!1};ba.graphJson=function(e,t,r,n,i,a){(i&&t&&!e._fullData||i&&!t&&!e._fullLayout)&&ba.supplyDefaults(e);var o=i?e._fullData:e.data,s=i?e._fullLayout:e.layout,l=(e._transitionData||{})._frames;function u(h,d){if(typeof h=="function")return d?"_function_":null;if(ja.isPlainObject(h)){var v={},x;return Object.keys(h).sort().forEach(function(E){if(["_","["].indexOf(E.charAt(0))===-1){if(typeof h[E]=="function"){d&&(v[E]="_function");return}if(r==="keepdata"){if(E.substr(E.length-3)==="src")return}else if(r==="keepstream"){if(x=h[E+"src"],typeof x=="string"&&x.indexOf(":")>0&&!ja.isPlainObject(h.stream))return}else if(r!=="keepall"&&(x=h[E+"src"],typeof x=="string"&&x.indexOf(":")>0))return;v[E]=u(h[E],d)}}),v}var b=Array.isArray(h),p=ja.isTypedArray(h);if((b||p)&&h.dtype&&h.shape){var C=h.bdata;return u({dtype:h.dtype,shape:h.shape,bdata:ja.isArrayBuffer(C)?Rnt.encode(C):C},d)}return b?h.map(function(E){return u(E,d)}):p?ja.simpleMap(h,ja.identity):ja.isJSDate(h)?ja.ms2DateTimeLocal(+h):h}var c={data:(o||[]).map(function(h){var d=u(h);return t&&delete d.fit,d})};if(!t&&(c.layout=u(s),i)){var f=s._size;c.layout.computed={margin:{b:f.b,l:f.l,r:f.r,t:f.t}}}return l&&(c.frames=u(l)),a&&(c.config=u(e._context,!0)),n==="object"?c:JSON.stringify(c)};ba.modifyFrames=function(e,t){var r,n,i,a=e._transitionData._frames,o=e._transitionData._frameHash;for(r=0;r0&&(e._transitioningWithDuration=!0),e._transitionData._interruptCallbacks.push(function(){n=!0}),r.redraw&&e._transitionData._interruptCallbacks.push(function(){return Xl.call("redraw",e)}),e._transitionData._interruptCallbacks.push(function(){e.emit("plotly_transitioninterrupted",[])});var h=0,d=0;function v(){return h++,function(){d++,!n&&d===h&&s(f)}}r.runFn(v),setTimeout(v())})}function s(f){if(e._transitionData)return a(e._transitionData._interruptCallbacks),Promise.resolve().then(function(){if(r.redraw)return Xl.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,i(e._transitionData._interruptCallbacks)}var u=[ba.previousPromises,l,r.prepareFn,ba.rehover,ba.reselect,o],c=ja.syncOrAsync(u,e);return(!c||!c.then)&&(c=Promise.resolve()),c.then(function(){return e})}ba.doCalcdata=function(e,t){var r=Tp.list(e),n=e._fullData,i=e._fullLayout,a,o,s,l,u=new Array(n.length),c=(e.calcdata||[]).slice();for(e.calcdata=u,i._numBoxes=0,i._numViolins=0,i._violinScaleGroupStats={},e._hmpixcount=0,e._hmlumcount=0,i._piecolormap={},i._sunburstcolormap={},i._treemapcolormap={},i._iciclecolormap={},i._funnelareacolormap={},s=0;s=0;l--)if(L[l].enabled){a._indexToPoints=L[l]._indexToPoints;break}o&&o.calc&&(A=o.calc(e,a))}(!Array.isArray(A)||!A[0])&&(A=[{x:Fne,y:Fne}]),A[0].t||(A[0].t={}),A[0].trace=a,u[C]=A}}for(Bne(r,n,i),s=0;s{"use strict";yb.xmlns="http://www.w3.org/2000/xmlns/";yb.svg="http://www.w3.org/2000/svg";yb.xlink="http://www.w3.org/1999/xlink";yb.svgAttrs={xmlns:yb.svg,"xmlns:xlink":yb.xlink}});var Kh=ye((cir,Yne)=>{"use strict";Yne.exports={FROM_BL:{left:0,center:.5,right:1,bottom:0,middle:.5,top:1},FROM_TL:{left:0,center:.5,right:1,bottom:1,middle:.5,top:0},FROM_BR:{left:1,center:.5,right:0,bottom:0,middle:.5,top:1},LINE_SPACING:1.3,CAP_SHIFT:.7,MID_SHIFT:.35,OPPOSITE_SIDE:{left:"right",right:"left",top:"bottom",bottom:"top"}}});var iu=ye(b0=>{"use strict";var Ch=Oa(),Ty=Dr(),Jnt=Ty.strTranslate,hq=Wp(),$nt=Kh().LINE_SPACING,Qnt=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;b0.convertToTspans=function(e,t,r){var n=e.text(),i=!e.attr("data-notex")&&t&&t._context.typesetMath&&typeof MathJax!="undefined"&&n.match(Qnt),a=Ch.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":n,"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=hat(e.node(),n);l&&e.style("pointer-events","all"),b0.positionText(e),r&&r.call(e)}return i?(t&&t._promises||[]).push(new Promise(function(l){e.style("display","none");var u=parseInt(e.node().style.fontSize,10),c={fontSize:u};iat(i[2],c,function(f,h,d){a.selectAll("svg."+o).remove(),a.selectAll("g."+o+"-group").remove();var v=f&&f.select("svg");if(!v||!v.node()){s(),l();return}var x=a.append("g").classed(o+"-group",!0).attr({"pointer-events":"none","data-unformatted":n,"data-math":"Y"});x.node().appendChild(v.node()),h&&h.node()&&v.node().insertBefore(h.node().cloneNode(!0),v.node().firstChild);var b=d.width,p=d.height;v.attr({class:o,height:p,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none"});var C=e.node().style.fill||"black",E=v.select("g");E.attr({fill:C,stroke:C});var A=E.node().getBoundingClientRect(),L=A.width,_=A.height;(L>b||_>p)&&(v.style("overflow","hidden"),A=v.node().getBoundingClientRect(),L=A.width,_=A.height);var k=+e.attr("x"),M=+e.attr("y"),g=u||e.node().getBoundingClientRect().height,P=-g/4;if(o[0]==="y")x.attr({transform:"rotate("+[-90,k,M]+")"+Jnt(-L/2,P-_/2)});else if(o[0]==="l")M=P-_/2;else if(o[0]==="a"&&o.indexOf("atitle")!==0)k=0,M=P;else{var T=e.attr("text-anchor");k=k-L*(T==="middle"?.5:T==="end"?1:0),M=M+P-_/2}v.attr({x:k,y:M}),r&&r.call(e,x),l(x)})})):s(),e};var eat=/(<|<|<)/g,tat=/(>|>|>)/g;function rat(e){return e.replace(eat,"\\lt ").replace(tat,"\\gt ")}var Kne=[["$","$"],["\\(","\\)"]];function iat(e,t,r){var n=parseInt((MathJax.version||"").split(".")[0]);if(n!==2&&n!==3){Ty.warn("No MathJax version:",MathJax.version);return}var i,a,o,s,l=function(){return a=Ty.extendDeepAll({},MathJax.Hub.config),o=MathJax.Hub.processSectionDelay,MathJax.Hub.processSectionDelay!==void 0&&(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:"none",tex2jax:{inlineMath:Kne},displayAlign:"left"})},u=function(){a=Ty.extendDeepAll({},MathJax.config),MathJax.config.tex||(MathJax.config.tex={}),MathJax.config.tex.inlineMath=Kne},c=function(){if(i=MathJax.Hub.config.menuSettings.renderer,i!=="SVG")return MathJax.Hub.setRenderer("SVG")},f=function(){i=MathJax.config.startup.output,i!=="svg"&&(MathJax.config.startup.output="svg")},h=function(){var C="math-output-"+Ty.randstr({},64);s=Ch.select("body").append("div").attr({id:C}).style({visibility:"hidden",position:"absolute","font-size":t.fontSize+"px"}).text(rat(e));var E=s.node();return n===2?MathJax.Hub.Typeset(E):MathJax.typeset([E])},d=function(){var C=s.select(n===2?".MathJax_SVG":".MathJax"),E=!C.empty()&&s.select("svg").node();if(!E)Ty.log("There was an error in the tex syntax.",e),r();else{var A=E.getBoundingClientRect(),L;n===2?L=Ch.select("body").select("#MathJax_SVG_glyphs"):L=C.select("defs"),r(C,L,A)}s.remove()},v=function(){if(i!=="SVG")return MathJax.Hub.setRenderer(i)},x=function(){i!=="svg"&&(MathJax.config.startup.output=i)},b=function(){return o!==void 0&&(MathJax.Hub.processSectionDelay=o),MathJax.Hub.Config(a)},p=function(){MathJax.config=a};n===2?MathJax.Hub.Queue(l,c,h,d,v,b):n===3&&(u(),f(),MathJax.startup.defaultReady(),MathJax.startup.promise.then(function(){h(),d(),x(),p()}))}var eae={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"},nat={sub:"0.3em",sup:"-0.6em"},aat={sub:"-0.21em",sup:"0.42em"},Jne="\u200B",$ne=["http:","https:","mailto:","",void 0,":"],tae=b0.NEWLINES=/(\r\n?|\n)/g,vq=/(<[^<>]*>)/,pq=/<(\/?)([^ >]*)(\s+(.*))?>/i,oat=//i;b0.BR_TAG_ALL=//gi;var rae=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,iae=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,nae=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,sat=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function _b(e,t){if(!e)return null;var r=e.match(t),n=r&&(r[3]||r[4]);return n&&K6(n)}var lat=/(^|;)\s*color:/;b0.plainText=function(e,t){t=t||{};for(var r=t.len!==void 0&&t.len!==-1?t.len:1/0,n=t.allowedTags!==void 0?t.allowedTags:["br"],i="...",a=i.length,o=e.split(vq),s=[],l="",u=0,c=0;ca?s.push(f.substr(0,x-a)+i):s.push(f.substr(0,x));break}l=""}}return s.join("")};var uat={mu:"\u03BC",amp:"&",lt:"<",gt:">",nbsp:"\xA0",times:"\xD7",plusmn:"\xB1",deg:"\xB0"},cat=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function K6(e){return e.replace(cat,function(t,r){var n;return r.charAt(0)==="#"?n=fat(r.charAt(1)==="x"?parseInt(r.substr(2),16):parseInt(r.substr(1),10)):n=uat[r],n||t})}b0.convertEntities=K6;function fat(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 hat(e,t){t=t.replace(tae," ");var r=!1,n=[],i,a=-1;function o(){a++;var _=document.createElementNS(hq.svg,"tspan");Ch.select(_).attr({class:"line",dy:a*$nt+"em"}),e.appendChild(_),i=_;var k=n;if(n=[{node:_}],k.length>1)for(var M=1;M.",t);return}var k=n.pop();_!==k.type&&Ty.log("Start tag <"+k.type+"> doesnt match end tag <"+_+">. Pretending it did match.",t),i=n[n.length-1].node}var c=oat.test(t);c?o():(i=e,n=[{node:e}]);for(var f=t.split(vq),h=0;h{"use strict";var dat=Oa(),$6=cd(),JS=Eo(),J6=Dr(),oae=Ca(),vat=sb().isValid;function pat(e,t,r){var n=t?J6.nestedProperty(e,t).get()||{}:e,i=n[r||"color"];i&&i._inputArray&&(i=i._inputArray);var a=!1;if(J6.isArrayOrTypedArray(i)){for(var o=0;o=0;n--,i++){var a=e[n];r[i]=[1-a[0],a[1]]}return r}function hae(e,t){t=t||{};for(var r=e.domain,n=e.range,i=n.length,a=new Array(i),o=0;o{"use strict";var vae=zO(),mat=vae.FORMAT_LINK,yat=vae.DATE_FORMAT_LINK;function _at(e,t){return{valType:"string",dflt:"",editType:"none",description:(t?gq:pae)("hover text",e)+["By default the values are formatted using "+(t?"generic number format":"`"+e+"axis.hoverformat`")+"."].join(" ")}}function gq(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: "+mat+"."].join(" ")}function pae(e,t){return gq(e,t)+[" And for dates see: "+yat+".","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(" ")}gae.exports={axisHoverFormat:_at,descriptionOnlyNumbers:gq,descriptionWithDates:pae}});var Rd=ye((pir,Rae)=>{"use strict";var mae=ec(),w3=Eh(),Iae=Pd().dash,yq=Ao().extendFlat,yae=pl().templatedArray,vir=Qo().templateFormatStringDescription,_ae=df().descriptionWithDates,xat=hs().ONEDAY,pm=hd(),bat=pm.HOUR_PATTERN,wat=pm.WEEKDAY_PATTERN,mq={valType:"enumerated",values:["auto","linear","array"],editType:"ticks",impliedEdits:{tick0:void 0,dtick:void 0}},Tat=yq({},mq,{values:mq.values.slice().concat(["sync"])});function xae(e){return{valType:"integer",min:0,dflt:e?5:0,editType:"ticks"}}var bae={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},wae={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},Tae={valType:"data_array",editType:"ticks"},Aae={valType:"enumerated",values:["outside","inside",""],editType:"ticks"};function Sae(e){var t={valType:"number",min:0,editType:"ticks"};return e||(t.dflt=5),t}function Mae(e){var t={valType:"number",min:0,editType:"ticks"};return e||(t.dflt=1),t}var Eae={valType:"color",dflt:w3.defaultLine,editType:"ticks"},Cae={valType:"color",dflt:w3.lightLine,editType:"ticks"};function kae(e){var t={valType:"number",min:0,editType:"ticks"};return e||(t.dflt=1),t}var Lae=yq({},Iae,{editType:"ticks"}),Pae={valType:"boolean",editType:"ticks"};Rae.exports={visible:{valType:"boolean",editType:"plot"},color:{valType:"color",dflt:w3.defaultLine,editType:"ticks"},title:{text:{valType:"string",editType:"ticks"},font:mae({editType:"ticks"}),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:[pm.idRegex.x.toString(),pm.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:[pm.idRegex.x.toString(),pm.idRegex.y.toString()],editType:"calc"},rangebreaks:yae("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:[wat,bat,""],editType:"calc"},values:{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"any",editType:"calc"}},dvalue:{valType:"number",editType:"calc",min:0,dflt:xat},editType:"calc"}),tickmode:Tat,nticks:xae(),tick0:bae,dtick:wae,ticklabelstep:{valType:"integer",min:1,dflt:1,editType:"ticks"},tickvals:Tae,ticktext:{valType:"data_array",editType:"ticks"},ticks:Aae,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:Sae(),tickwidth:Mae(),tickcolor:Eae,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:yq({},Iae,{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:mae({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"],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:_ae("tick label")},tickformatstops:yae("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:_ae("hover text")},unifiedhovertitle:{text:{valType:"string",dflt:"",editType:"none"},editType:"none"},showline:{valType:"boolean",dflt:!1,editType:"ticks+layoutstyle"},linecolor:{valType:"color",dflt:w3.defaultLine,editType:"layoutstyle"},linewidth:{valType:"number",min:0,dflt:1,editType:"ticks+layoutstyle"},showgrid:Pae,gridcolor:Cae,gridwidth:kae(),griddash:Lae,zeroline:{valType:"boolean",editType:"ticks"},zerolinecolor:{valType:"color",dflt:w3.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:w3.defaultLine,editType:"ticks"},dividerwidth:{valType:"number",dflt:1,editType:"ticks"},anchor:{valType:"enumerated",values:["free",pm.idRegex.x.toString(),pm.idRegex.y.toString()],editType:"plot"},side:{valType:"enumerated",values:["top","bottom","left","right"],editType:"plot"},overlaying:{valType:"enumerated",values:["free",pm.idRegex.x.toString(),pm.idRegex.y.toString()],editType:"plot"},minor:{tickmode:mq,nticks:xae("minor"),tick0:bae,dtick:wae,tickvals:Tae,ticks:Aae,ticklen:Sae("minor"),tickwidth:Mae("minor"),tickcolor:Eae,gridcolor:Cae,gridwidth:kae("minor"),griddash:Lae,showgrid:Pae,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 Q6=ye((gir,zae)=>{"use strict";var $c=Rd(),Dae=ec(),Fae=Ao().extendFlat,Aat=mc().overrideAll;zae.exports=Aat({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:$c.linecolor,outlinewidth:$c.linewidth,bordercolor:$c.linecolor,borderwidth:{valType:"number",min:0,dflt:0},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},tickmode:$c.minor.tickmode,nticks:$c.nticks,tick0:$c.tick0,dtick:$c.dtick,tickvals:$c.tickvals,ticktext:$c.ticktext,ticks:Fae({},$c.ticks,{dflt:""}),ticklabeloverflow:Fae({},$c.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:$c.ticklen,tickwidth:$c.tickwidth,tickcolor:$c.tickcolor,ticklabelstep:$c.ticklabelstep,showticklabels:$c.showticklabels,labelalias:$c.labelalias,tickfont:Dae({}),tickangle:$c.tickangle,tickformat:$c.tickformat,tickformatstops:$c.tickformatstops,tickprefix:$c.tickprefix,showtickprefix:$c.showtickprefix,ticksuffix:$c.ticksuffix,showticksuffix:$c.showticksuffix,separatethousands:$c.separatethousands,exponentformat:$c.exponentformat,minexponent:$c.minexponent,showexponent:$c.showexponent,title:{text:{valType:"string"},font:Dae({}),side:{valType:"enumerated",values:["right","top","bottom"]}}},"colorbars","from-root")});var Tu=ye((yir,qae)=>{"use strict";var Sat=Q6(),Mat=n3().counter,Eat=Y1(),Oae=sb().scales,mir=Eat(Oae);function eL(e){return"`"+e+"`"}qae.exports=function(t,r){t=t||"",r=r||{};var n=r.cLetter||"c",i="onlyIfNumerical"in r?r.onlyIfNumerical:!!t,a="noScale"in r?r.noScale:t==="marker.line",o="showScaleDflt"in r?r.showScaleDflt:n==="z",s=typeof r.colorscaleDflt=="string"?Oae[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"}[n],f="in "+eL(u+c));var h=i?" Has an effect only if "+f+" is set to a numerical array.":"",d=n+"auto",v=n+"min",x=n+"max",b=n+"mid",p=eL(u+d),C=eL(u+v),E=eL(u+x),A=C+" and "+E,L={};L[v]=L[x]=void 0;var _={};_[d]=!1;var k={};return c==="color"&&(k.color={valType:"color",arrayOk:!0,editType:l||"style"},r.anim&&(k.color.anim=!0)),k[d]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:L},k[v]={valType:"number",dflt:null,editType:l||"plot",impliedEdits:_},k[x]={valType:"number",dflt:null,editType:l||"plot",impliedEdits:_},k[b]={valType:"number",dflt:null,editType:"calc",impliedEdits:L},k.colorscale={valType:"colorscale",editType:"calc",dflt:s,impliedEdits:{autocolorscale:!1}},k.autocolorscale={valType:"boolean",dflt:r.autoColorDflt!==!1,editType:"calc",impliedEdits:{colorscale:void 0}},k.reversescale={valType:"boolean",dflt:!1,editType:"plot"},a||(k.showscale={valType:"boolean",dflt:o,editType:"calc"},k.colorbar=Sat),r.noColorAxis||(k.coloraxis={valType:"subplotid",regex:Mat("coloraxis"),dflt:null,editType:"calc"}),k}});var xq=ye((_ir,Bae)=>{"use strict";var Cat=Ao().extendFlat,kat=Tu(),_q=sb().scales;Bae.exports={editType:"calc",colorscale:{editType:"calc",sequential:{valType:"colorscale",dflt:_q.Reds,editType:"calc"},sequentialminus:{valType:"colorscale",dflt:_q.Blues,editType:"calc"},diverging:{valType:"colorscale",dflt:_q.RdBu,editType:"calc"}},coloraxis:Cat({_isSubplotObj:!0,editType:"calc"},kat("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}});var bq=ye((xir,Nae)=>{"use strict";var Lat=Dr();Nae.exports=function(t){return Lat.isPlainObject(t.colorbar)}});var Aq=ye(Tq=>{"use strict";var wq=Eo(),Uae=Dr(),Vae=hs(),Pat=Vae.ONEDAY,Iat=Vae.ONEWEEK;Tq.dtick=function(e,t){var r=t==="log",n=t==="date",i=t==="category",a=n?Pat:1;if(!e)return a;if(wq(e))return e=Number(e),e<=0?a:i?Math.max(1,Math.round(e)):n?Math.max(.1,e):e;if(typeof e!="string"||!(n||r))return a;var o=e.charAt(0),s=e.substr(1);return s=wq(s)?Number(s):0,s<=0||!(n&&o==="M"&&s===Math.round(s)||r&&o==="L"||r&&o==="D"&&(s===1||s===2))?a:e};Tq.tick0=function(e,t,r,n){if(t==="date")return Uae.cleanDate(e,Uae.dateTick0(r,n%Iat===0?1:0));if(!(n==="D1"||n==="D2"))return wq(e)?Number(e):0}});var xb=ye((wir,Hae)=>{"use strict";var Gae=Aq(),Rat=Dr().isArrayOrTypedArray,Dat=vv().isTypedArraySpec,Fat=vv().decodeTypedArraySpec;Hae.exports=function(t,r,n,i,a){a||(a={});var o=a.isMinor,s=o?t.minor||{}:t,l=o?r.minor:r,u=o?"minor.":"";function c(C){var E=s[C];return Dat(E)&&(E=Fat(E)),E!==void 0?E:(l._template||{})[C]}var f=c("tick0"),h=c("dtick"),d=c("tickvals"),v=Rat(d)?"array":h?"linear":"auto",x=n(u+"tickmode",v);if(x==="auto"||x==="sync")n(u+"nticks");else if(x==="linear"){var b=l.dtick=Gae.dtick(h,i);l.tick0=Gae.tick0(f,i,r.calendar,b)}else if(i!=="multicategory"){var p=n(u+"tickvals");p===void 0?l.tickmode="auto":o||n("ticktext")}}});var T3=ye((Tir,Wae)=>{"use strict";var Sq=Dr(),jae=Rd();Wae.exports=function(t,r,n,i){var a=i.isMinor,o=a?t.minor||{}:t,s=a?r.minor:r,l=a?jae.minor:jae,u=a?"minor.":"",c=Sq.coerce2(o,s,l,"ticklen",a?(r.ticklen||5)*.6:void 0),f=Sq.coerce2(o,s,l,"tickwidth",a?r.tickwidth||1:void 0),h=Sq.coerce2(o,s,l,"tickcolor",(a?r.tickcolor:void 0)||s.color),d=n(u+"ticks",!a&&i.outerTicks||c||f||h?"outside":"");d||(delete s.ticklen,delete s.tickwidth,delete s.tickcolor)}});var Mq=ye((Air,Xae)=>{"use strict";Xae.exports=function(t){var r=["showexponent","showtickprefix","showticksuffix"],n=r.filter(function(a){return t[a]!==void 0}),i=function(a){return t[a]===t[n[0]]};if(n.every(i)||n.length===1)return t[n[0]]}});var Yd=ye((Sir,Zae)=>{"use strict";var tL=Dr(),zat=pl();Zae.exports=function(t,r,n){var i=n.name,a=n.inclusionAttr||"visible",o=r[i],s=tL.isArrayOrTypedArray(t[i])?t[i]:[],l=r[i]=[],u=zat.arrayTemplater(r,i,a),c,f;for(c=0;c{"use strict";var Eq=Dr(),Oat=Ca().contrast,Yae=Rd(),qat=Mq(),Bat=Yd();Kae.exports=function(t,r,n,i,a){a||(a={});var o=n("labelalias");Eq.isPlainObject(o)||delete r.labelalias;var s=qat(t),l=n("showticklabels");if(l){a.noTicklabelshift||n("ticklabelshift"),a.noTicklabelstandoff||n("ticklabelstandoff");var u=a.font||{},c=r.color,f=r.ticklabelposition||"",h=f.indexOf("inside")!==-1?Oat(a.bgColor):c&&c!==Yae.color.dflt?c:u.color;if(Eq.coerceFont(n,"tickfont",u,{overrideDflt:{color:h}}),!a.noTicklabelstep&&i!=="multicategory"&&i!=="log"&&n("ticklabelstep"),!a.noAng){var d=n("tickangle");!a.noAutotickangles&&d==="auto"&&n("autotickangles")}if(i!=="category"){var v=n("tickformat");Bat(t,r,{name:"tickformatstops",inclusionAttr:"enabled",handleItemDefaults:Nat}),r.tickformatstops.length||delete r.tickformatstops,!a.noExp&&!v&&i!=="date"&&(n("showexponent",s),n("exponentformat"),n("minexponent"),n("separatethousands"))}!a.noMinorloglabels&&i==="log"&&n("minorloglabels")}};function Nat(e,t){function r(i,a){return Eq.coerce(e,t,Yae.tickformatstops,i,a)}var n=r("enabled");n&&(r("dtickrange"),r("value"))}});var r_=ye((Eir,Jae)=>{"use strict";var Uat=Mq();Jae.exports=function(t,r,n,i,a){a||(a={});var o=a.tickSuffixDflt,s=Uat(t),l=n("tickprefix");l&&n("showtickprefix",s);var u=n("ticksuffix",o);u&&n("showticksuffix",s)}});var Cq=ye((Cir,$ae)=>{"use strict";var i_=Dr(),Vat=pl(),Gat=xb(),Hat=T3(),jat=t_(),Wat=r_(),Xat=Q6();$ae.exports=function(t,r,n){var i=Vat.newContainer(r,"colorbar"),a=t.colorbar||{};function o(T,z){return i_.coerce(a,i,Xat,T,z)}var s=n.margin||{t:0,b:0,l:0,r:0},l=n.width-s.l-s.r,u=n.height-s.t-s.b,c=o("orientation"),f=c==="v",h=o("thicknessmode");o("thickness",h==="fraction"?30/(f?l:u):30);var d=o("lenmode");o("len",d==="fraction"?1:f?u:l);var v=o("yref"),x=o("xref"),b=v==="paper",p=x==="paper",C,E,A,L="left";f?(A="middle",L=p?"left":"right",C=p?1.02:1,E=.5):(A=b?"bottom":"top",L="center",C=.5,E=b?1.02:1),i_.coerce(a,i,{x:{valType:"number",min:p?-2:0,max:p?3:1,dflt:C}},"x"),i_.coerce(a,i,{y:{valType:"number",min:b?-2:0,max:b?3:1,dflt:E}},"y"),o("xanchor",L),o("xpad"),o("yanchor",A),o("ypad"),i_.noneOrAll(a,i,["x","y"]),o("outlinecolor"),o("outlinewidth"),o("bordercolor"),o("borderwidth"),o("bgcolor");var _=i_.coerce(a,i,{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",_.indexOf("inside")!==-1?"hide past domain":"hide past div"),Gat(a,i,o,"linear");var k=n.font,M={noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,outerTicks:!1,font:k};_.indexOf("inside")!==-1&&(M.bgColor="black"),Wat(a,i,o,"linear",M),jat(a,i,o,"linear",M),Hat(a,i,o,"linear",M),o("title.text",n._dfltTitle.colorbar);var g=i.showticklabels?i.tickfont:k,P=i_.extendFlat({},k,{family:g.family,size:i_.bigFont(g.size)});i_.coerceFont(o,"title.font",P),o("title.side",f?"top":"right")}});var Jh=ye((kir,toe)=>{"use strict";var Qae=Eo(),Lq=Dr(),Zat=bq(),Yat=Cq(),eoe=sb().isValid,Kat=qa().traceIs;function kq(e,t){var r=t.slice(0,t.length-1);return t?Lq.nestedProperty(e,r).get()||{}:e}toe.exports=function e(t,r,n,i,a){var o=a.prefix,s=a.cLetter,l="_module"in r,u=kq(t,o),c=kq(r,o),f=kq(r._template||{},o)||{},h=function(){return delete t.coloraxis,delete r.coloraxis,e(t,r,n,i,a)};if(l){var d=n._colorAxes||{},v=i(o+"coloraxis");if(v){var x=Kat(r,"contour")&&Lq.nestedProperty(r,"contours.coloring").get()||"heatmap",b=d[v];b?(b[2].push(h),b[0]!==x&&(b[0]=!1,Lq.warn(["Ignoring coloraxis:",v,"setting","as it is linked to incompatible colorscales."].join(" ")))):d[v]=[x,r,[h]];return}}var p=u[s+"min"],C=u[s+"max"],E=Qae(p)&&Qae(C)&&p{"use strict";var roe=Dr(),Jat=pl(),ioe=xq(),$at=Jh();noe.exports=function(t,r){function n(f,h){return roe.coerce(t,r,ioe,f,h)}n("colorscale.sequential"),n("colorscale.sequentialminus"),n("colorscale.diverging");var i=r._colorAxes,a,o;function s(f,h){return roe.coerce(a,o,ioe.coloraxis,f,h)}for(var l in i){var u=i[l];if(u[0])a=t[l]||{},o=Jat.newContainer(r,l,"coloraxis"),o._name=l,$at(a,o,r,s,{prefix:"",cLetter:"c"});else{for(var c=0;c{"use strict";var Qat=Dr(),eot=Dv().hasColorscale,tot=Dv().extractOpts;ooe.exports=function(t,r){function n(c,f){var h=c["_"+f];h!==void 0&&(c[f]=h)}function i(c,f){var h=f.container?Qat.nestedProperty(c,f.container).get():c;if(h)if(h.coloraxis)h._colorAx=r[h.coloraxis];else{var d=tot(h),v=d.auto;(v||d.min===void 0)&&n(h,f.min),(v||d.max===void 0)&&n(h,f.max),d.autocolorscale&&n(h,"colorscale")}}for(var a=0;a{"use strict";var loe=Eo(),Pq=Dr(),rot=Dv().extractOpts;uoe.exports=function(t,r,n){var i=t._fullLayout,a=n.vals,o=n.containerStr,s=o?Pq.nestedProperty(r,o).get():r,l=rot(s),u=l.auto!==!1,c=l.min,f=l.max,h=l.mid,d=function(){return Pq.aggNums(Math.min,null,a)},v=function(){return Pq.aggNums(Math.max,null,a)};if(c===void 0?c=d():u&&(s._colorAx&&loe(c)?c=Math.min(c,d()):c=d()),f===void 0?f=v():u&&(s._colorAx&&loe(f)?f=Math.max(f,v()):f=v()),u&&h!==void 0&&(f-h>h-c?c=h-(f-h):f-h=0?x=i.colorscale.sequential:x=i.colorscale.sequentialminus,l._sync("colorscale",x)}}});var tc=ye((Rir,coe)=>{"use strict";var rL=sb(),A3=Dv();coe.exports={moduleType:"component",name:"colorscale",attributes:Tu(),layoutAttributes:xq(),supplyLayoutDefaults:aoe(),handleDefaults:Jh(),crossTraceDefaults:soe(),calc:Fv(),scales:rL.scales,defaultScale:rL.defaultScale,getScale:rL.get,isValidScale:rL.isValid,hasColorscale:A3.hasColorscale,extractOpts:A3.extractOpts,extractScale:A3.extractScale,flipScale:A3.flipScale,makeColorScaleFunc:A3.makeColorScaleFunc,makeColorScaleFuncFromTrace:A3.makeColorScaleFuncFromTrace}});var Ru=ye((Dir,hoe)=>{"use strict";var foe=Dr(),iot=vv().isTypedArraySpec;hoe.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 foe.isPlainObject(t)&&(foe.isArrayOrTypedArray(t.size)||iot(t.size))}}});var S3=ye((Fir,doe)=>{"use strict";var not=Eo();doe.exports=function(t,r){r||(r=2);var n=t.marker,i=n.sizeref||1,a=n.sizemin||0,o=n.sizemode==="area"?function(s){return Math.sqrt(s/i)}:function(s){return s/i};return function(s){var l=o(s/r);return not(l)&&l>0?Math.max(l,a):0}}});var rp=ye(pv=>{"use strict";var voe=Dr();pv.getSubplot=function(e){return e.subplot||e.xaxis+e.yaxis||e.geo};pv.isTraceInSubplots=function(e,t){if(e.type==="splom"){for(var r=e.xaxes||[],n=e.yaxes||[],i=0;i=0&&r.index{moe.exports=uot;var Iq={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},lot=/([astvzqmhlc])([^astvzqmhlc]*)/ig;function uot(e){var t=[];return e.replace(lot,function(r,n,i){var a=n.toLowerCase();for(i=fot(i),a=="m"&&i.length>2&&(t.push([n].concat(i.splice(0,2))),a="l",n=n=="m"?"l":"L");;){if(i.length==Iq[a])return i.unshift(n),t.push(i);if(i.length{"use strict";var hot=$S(),ca=function(e,t){return t?Math.round(e*(t=Math.pow(10,t)))/t:Math.round(e)},ds="M0,0Z",yoe=Math.sqrt(2),n_=Math.sqrt(3),Rq=Math.PI,Dq=Math.cos,Fq=Math.sin;Toe.exports={circle:{n:0,f:function(e,t,r){if(vs(t))return ds;var n=ca(e,2),i="M"+n+",0A"+n+","+n+" 0 1,1 0,-"+n+"A"+n+","+n+" 0 0,1 "+n+",0Z";return r?ps(t,r,i):i}},square:{n:1,f:function(e,t,r){if(vs(t))return ds;var n=ca(e,2);return ps(t,r,"M"+n+","+n+"H-"+n+"V-"+n+"H"+n+"Z")}},diamond:{n:2,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*1.3,2);return ps(t,r,"M"+n+",0L0,"+n+"L-"+n+",0L0,-"+n+"Z")}},cross:{n:3,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*.4,2),i=ca(e*1.2,2);return ps(t,r,"M"+i+","+n+"H"+n+"V"+i+"H-"+n+"V"+n+"H-"+i+"V-"+n+"H-"+n+"V-"+i+"H"+n+"V-"+n+"H"+i+"Z")}},x:{n:4,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*.8/yoe,2),i="l"+n+","+n,a="l"+n+",-"+n,o="l-"+n+",-"+n,s="l-"+n+","+n;return ps(t,r,"M0,"+n+i+a+o+a+o+s+o+s+i+s+i+"Z")}},"triangle-up":{n:5,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*2/n_,2),i=ca(e/2,2),a=ca(e,2);return ps(t,r,"M-"+n+","+i+"H"+n+"L0,-"+a+"Z")}},"triangle-down":{n:6,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*2/n_,2),i=ca(e/2,2),a=ca(e,2);return ps(t,r,"M-"+n+",-"+i+"H"+n+"L0,"+a+"Z")}},"triangle-left":{n:7,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*2/n_,2),i=ca(e/2,2),a=ca(e,2);return ps(t,r,"M"+i+",-"+n+"V"+n+"L-"+a+",0Z")}},"triangle-right":{n:8,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*2/n_,2),i=ca(e/2,2),a=ca(e,2);return ps(t,r,"M-"+i+",-"+n+"V"+n+"L"+a+",0Z")}},"triangle-ne":{n:9,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*.6,2),i=ca(e*1.2,2);return ps(t,r,"M-"+i+",-"+n+"H"+n+"V"+i+"Z")}},"triangle-se":{n:10,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*.6,2),i=ca(e*1.2,2);return ps(t,r,"M"+n+",-"+i+"V"+n+"H-"+i+"Z")}},"triangle-sw":{n:11,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*.6,2),i=ca(e*1.2,2);return ps(t,r,"M"+i+","+n+"H-"+n+"V-"+i+"Z")}},"triangle-nw":{n:12,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*.6,2),i=ca(e*1.2,2);return ps(t,r,"M-"+n+","+i+"V-"+n+"H"+i+"Z")}},pentagon:{n:13,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*.951,2),i=ca(e*.588,2),a=ca(-e,2),o=ca(e*-.309,2),s=ca(e*.809,2);return ps(t,r,"M"+n+","+o+"L"+i+","+s+"H-"+i+"L-"+n+","+o+"L0,"+a+"Z")}},hexagon:{n:14,f:function(e,t,r){if(vs(t))return ds;var n=ca(e,2),i=ca(e/2,2),a=ca(e*n_/2,2);return ps(t,r,"M"+a+",-"+i+"V"+i+"L0,"+n+"L-"+a+","+i+"V-"+i+"L0,-"+n+"Z")}},hexagon2:{n:15,f:function(e,t,r){if(vs(t))return ds;var n=ca(e,2),i=ca(e/2,2),a=ca(e*n_/2,2);return ps(t,r,"M-"+i+","+a+"H"+i+"L"+n+",0L"+i+",-"+a+"H-"+i+"L-"+n+",0Z")}},octagon:{n:16,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*.924,2),i=ca(e*.383,2);return ps(t,r,"M-"+i+",-"+n+"H"+i+"L"+n+",-"+i+"V"+i+"L"+i+","+n+"H-"+i+"L-"+n+","+i+"V-"+i+"Z")}},star:{n:17,f:function(e,t,r){if(vs(t))return ds;var n=e*1.4,i=ca(n*.225,2),a=ca(n*.951,2),o=ca(n*.363,2),s=ca(n*.588,2),l=ca(-n,2),u=ca(n*-.309,2),c=ca(n*.118,2),f=ca(n*.809,2),h=ca(n*.382,2);return ps(t,r,"M"+i+","+u+"H"+a+"L"+o+","+c+"L"+s+","+f+"L0,"+h+"L-"+s+","+f+"L-"+o+","+c+"L-"+a+","+u+"H-"+i+"L0,"+l+"Z")}},hexagram:{n:18,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*.66,2),i=ca(e*.38,2),a=ca(e*.76,2);return ps(t,r,"M-"+a+",0l-"+i+",-"+n+"h"+a+"l"+i+",-"+n+"l"+i+","+n+"h"+a+"l-"+i+","+n+"l"+i+","+n+"h-"+a+"l-"+i+","+n+"l-"+i+",-"+n+"h-"+a+"Z")}},"star-triangle-up":{n:19,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*n_*.8,2),i=ca(e*.8,2),a=ca(e*1.6,2),o=ca(e*4,2),s="A "+o+","+o+" 0 0 1 ";return ps(t,r,"M-"+n+","+i+s+n+","+i+s+"0,-"+a+s+"-"+n+","+i+"Z")}},"star-triangle-down":{n:20,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*n_*.8,2),i=ca(e*.8,2),a=ca(e*1.6,2),o=ca(e*4,2),s="A "+o+","+o+" 0 0 1 ";return ps(t,r,"M"+n+",-"+i+s+"-"+n+",-"+i+s+"0,"+a+s+n+",-"+i+"Z")}},"star-square":{n:21,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*1.1,2),i=ca(e*2,2),a="A "+i+","+i+" 0 0 1 ";return ps(t,r,"M-"+n+",-"+n+a+"-"+n+","+n+a+n+","+n+a+n+",-"+n+a+"-"+n+",-"+n+"Z")}},"star-diamond":{n:22,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*1.4,2),i=ca(e*1.9,2),a="A "+i+","+i+" 0 0 1 ";return ps(t,r,"M-"+n+",0"+a+"0,"+n+a+n+",0"+a+"0,-"+n+a+"-"+n+",0Z")}},"diamond-tall":{n:23,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*.7,2),i=ca(e*1.4,2);return ps(t,r,"M0,"+i+"L"+n+",0L0,-"+i+"L-"+n+",0Z")}},"diamond-wide":{n:24,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*1.4,2),i=ca(e*.7,2);return ps(t,r,"M0,"+i+"L"+n+",0L0,-"+i+"L-"+n+",0Z")}},hourglass:{n:25,f:function(e,t,r){if(vs(t))return ds;var n=ca(e,2);return ps(t,r,"M"+n+","+n+"H-"+n+"L"+n+",-"+n+"H-"+n+"Z")},noDot:!0},bowtie:{n:26,f:function(e,t,r){if(vs(t))return ds;var n=ca(e,2);return ps(t,r,"M"+n+","+n+"V-"+n+"L-"+n+","+n+"V-"+n+"Z")},noDot:!0},"circle-cross":{n:27,f:function(e,t,r){if(vs(t))return ds;var n=ca(e,2);return ps(t,r,"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,t,r){if(vs(t))return ds;var n=ca(e,2),i=ca(e/yoe,2);return ps(t,r,"M"+i+","+i+"L-"+i+",-"+i+"M"+i+",-"+i+"L-"+i+","+i+"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,t,r){if(vs(t))return ds;var n=ca(e,2);return ps(t,r,"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,t,r){if(vs(t))return ds;var n=ca(e,2);return ps(t,r,"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,t,r){if(vs(t))return ds;var n=ca(e*1.3,2);return ps(t,r,"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,t,r){if(vs(t))return ds;var n=ca(e*1.3,2),i=ca(e*.65,2);return ps(t,r,"M"+n+",0L0,"+n+"L-"+n+",0L0,-"+n+"ZM-"+i+",-"+i+"L"+i+","+i+"M-"+i+","+i+"L"+i+",-"+i)},needLine:!0,noDot:!0},"cross-thin":{n:33,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*1.4,2);return ps(t,r,"M0,"+n+"V-"+n+"M"+n+",0H-"+n)},needLine:!0,noDot:!0,noFill:!0},"x-thin":{n:34,f:function(e,t,r){if(vs(t))return ds;var n=ca(e,2);return ps(t,r,"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n)},needLine:!0,noDot:!0,noFill:!0},asterisk:{n:35,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*1.2,2),i=ca(e*.85,2);return ps(t,r,"M0,"+n+"V-"+n+"M"+n+",0H-"+n+"M"+i+","+i+"L-"+i+",-"+i+"M"+i+",-"+i+"L-"+i+","+i)},needLine:!0,noDot:!0,noFill:!0},hash:{n:36,f:function(e,t,r){if(vs(t))return ds;var n=ca(e/2,2),i=ca(e,2);return ps(t,r,"M"+n+","+i+"V-"+i+"M"+(n-i)+",-"+i+"V"+i+"M"+i+","+n+"H-"+i+"M-"+i+","+(n-i)+"H"+i)},needLine:!0,noFill:!0},"y-up":{n:37,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*1.2,2),i=ca(e*1.6,2),a=ca(e*.8,2);return ps(t,r,"M-"+n+","+a+"L0,0M"+n+","+a+"L0,0M0,-"+i+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-down":{n:38,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*1.2,2),i=ca(e*1.6,2),a=ca(e*.8,2);return ps(t,r,"M-"+n+",-"+a+"L0,0M"+n+",-"+a+"L0,0M0,"+i+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-left":{n:39,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*1.2,2),i=ca(e*1.6,2),a=ca(e*.8,2);return ps(t,r,"M"+a+","+n+"L0,0M"+a+",-"+n+"L0,0M-"+i+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-right":{n:40,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*1.2,2),i=ca(e*1.6,2),a=ca(e*.8,2);return ps(t,r,"M-"+a+","+n+"L0,0M-"+a+",-"+n+"L0,0M"+i+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"line-ew":{n:41,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*1.4,2);return ps(t,r,"M"+n+",0H-"+n)},needLine:!0,noDot:!0,noFill:!0},"line-ns":{n:42,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*1.4,2);return ps(t,r,"M0,"+n+"V-"+n)},needLine:!0,noDot:!0,noFill:!0},"line-ne":{n:43,f:function(e,t,r){if(vs(t))return ds;var n=ca(e,2);return ps(t,r,"M"+n+",-"+n+"L-"+n+","+n)},needLine:!0,noDot:!0,noFill:!0},"line-nw":{n:44,f:function(e,t,r){if(vs(t))return ds;var n=ca(e,2);return ps(t,r,"M"+n+","+n+"L-"+n+",-"+n)},needLine:!0,noDot:!0,noFill:!0},"arrow-up":{n:45,f:function(e,t,r){if(vs(t))return ds;var n=ca(e,2),i=ca(e*2,2);return ps(t,r,"M0,0L-"+n+","+i+"H"+n+"Z")},backoff:1,noDot:!0},"arrow-down":{n:46,f:function(e,t,r){if(vs(t))return ds;var n=ca(e,2),i=ca(e*2,2);return ps(t,r,"M0,0L-"+n+",-"+i+"H"+n+"Z")},noDot:!0},"arrow-left":{n:47,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*2,2),i=ca(e,2);return ps(t,r,"M0,0L"+n+",-"+i+"V"+i+"Z")},noDot:!0},"arrow-right":{n:48,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*2,2),i=ca(e,2);return ps(t,r,"M0,0L-"+n+",-"+i+"V"+i+"Z")},noDot:!0},"arrow-bar-up":{n:49,f:function(e,t,r){if(vs(t))return ds;var n=ca(e,2),i=ca(e*2,2);return ps(t,r,"M-"+n+",0H"+n+"M0,0L-"+n+","+i+"H"+n+"Z")},backoff:1,needLine:!0,noDot:!0},"arrow-bar-down":{n:50,f:function(e,t,r){if(vs(t))return ds;var n=ca(e,2),i=ca(e*2,2);return ps(t,r,"M-"+n+",0H"+n+"M0,0L-"+n+",-"+i+"H"+n+"Z")},needLine:!0,noDot:!0},"arrow-bar-left":{n:51,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*2,2),i=ca(e,2);return ps(t,r,"M0,-"+i+"V"+i+"M0,0L"+n+",-"+i+"V"+i+"Z")},needLine:!0,noDot:!0},"arrow-bar-right":{n:52,f:function(e,t,r){if(vs(t))return ds;var n=ca(e*2,2),i=ca(e,2);return ps(t,r,"M0,-"+i+"V"+i+"M0,0L-"+n+",-"+i+"V"+i+"Z")},needLine:!0,noDot:!0},arrow:{n:53,f:function(e,t,r){if(vs(t))return ds;var n=Rq/2.5,i=2*e*Dq(n),a=2*e*Fq(n);return ps(t,r,"M0,0L"+-i+","+a+"L"+i+","+a+"Z")},backoff:.9,noDot:!0},"arrow-wide":{n:54,f:function(e,t,r){if(vs(t))return ds;var n=Rq/4,i=2*e*Dq(n),a=2*e*Fq(n);return ps(t,r,"M0,0L"+-i+","+a+"A "+2*e+","+2*e+" 0 0 1 "+i+","+a+"Z")},backoff:.4,noDot:!0}};function vs(e){return e===null}var _oe,xoe,boe,woe;function ps(e,t,r){if((!e||e%360===0)&&!t)return r;if(boe===e&&woe===t&&_oe===r)return xoe;boe=e,woe=t,_oe=r;function n(b,p){var C=Dq(b),E=Fq(b),A=p[0],L=p[1]+(t||0);return[A*C-L*E,A*E+L*C]}for(var i=e/180*Rq,a=0,o=0,s=hot(r),l="",u=0;u{"use strict";var dd=Oa(),Du=Dr(),dot=Du.numberFormat,Ab=Eo(),Uq=cd(),nL=qa(),Kd=Ca(),vot=tc(),eM=Du.strTranslate,aL=iu(),pot=Wp(),got=Kh(),mot=got.LINE_SPACING,Doe=U1().DESELECTDIM,yot=Ru(),_ot=S3(),xot=rp().appendArrayPointValue,Sa=Hoe.exports={};Sa.font=function(e,t){var r=t.variant,n=t.style,i=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(Kd.fill,a),i&&e.style("font-weight",i),n&&e.style("font-style",n),r&&e.style("font-variant",r),c&&e.style("text-transform",zq(wot(c))),l&&e.style("text-shadow",l==="auto"?aL.makeTextShadow(Kd.contrast(a)):zq(l)),u&&e.style("text-decoration-line",zq(Tot(u)))};function zq(e){return e==="none"?void 0:e}var bot={normal:"none",lower:"lowercase",upper:"uppercase","word caps":"capitalize"};function wot(e){return bot[e]}function Tot(e){return e.replace("under","underline").replace("over","overline").replace("through","line-through").split("+").join(" ")}Sa.setPosition=function(e,t,r){e.attr("x",t).attr("y",r)};Sa.setSize=function(e,t,r){e.attr("width",t).attr("height",r)};Sa.setRect=function(e,t,r,n,i){e.call(Sa.setPosition,t,r).call(Sa.setSize,n,i)};Sa.translatePoint=function(e,t,r,n){var i=r.c2p(e.x),a=n.c2p(e.y);if(Ab(i)&&Ab(a)&&t.node())t.node().nodeName==="text"?t.attr("x",i).attr("y",a):t.attr("transform",eM(i,a));else return!1;return!0};Sa.translatePoints=function(e,t,r){e.each(function(n){var i=dd.select(this);Sa.translatePoint(n,i,t,r)})};Sa.hideOutsideRangePoint=function(e,t,r,n,i,a){t.attr("display",r.isPtWithinRange(e,i)&&n.isPtWithinRange(e,a)?null:"none")};Sa.hideOutsideRangePoints=function(e,t){if(t._hasClipOnAxisFalse){var r=t.xaxis,n=t.yaxis;e.each(function(i){var a=i[0].trace,o=a.xcalendar,s=a.ycalendar,l=nL.traceIs(a,"bar-like")?".bartext":".point,.textpoint";e.selectAll(l).each(function(u){Sa.hideOutsideRangePoint(u,dd.select(this),r,n,o,s)})})}};Sa.crispRound=function(e,t,r){return!t||!Ab(t)?r||0:e._context.staticPlot?t:t<1?1:Math.round(t)};Sa.singleLineStyle=function(e,t,r,n,i){t.style("fill","none");var a=(((e||[])[0]||{}).trace||{}).line||{},o=r||a.width||0,s=i||a.dash||"";Kd.stroke(t,n||a.color),Sa.dashLine(t,s,o)};Sa.lineGroupStyle=function(e,t,r,n){e.style("fill","none").each(function(i){var a=(((i||[])[0]||{}).trace||{}).line||{},o=t||a.width||0,s=n||a.dash||"";dd.select(this).call(Kd.stroke,r||a.color).call(Sa.dashLine,s,o)})};Sa.dashLine=function(e,t,r){r=+r||0,t=Sa.dashStyle(t,r),e.style({"stroke-dasharray":t,"stroke-width":r+"px"})};Sa.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 Foe(e,t,r,n){var i=t.fillpattern,a=t.fillgradient,o=Sa.getPatternAttr,s=i&&(o(i.shape,0,"")||o(i.path,0,""));if(s){var l=o(i.bgcolor,0,null),u=o(i.fgcolor,0,null),c=i.fgopacity,f=o(i.size,0,8),h=o(i.solidity,0,.3),d=t.uid;Sa.pattern(e,"point",r,d,s,f,h,void 0,i.fillmode,l,u,c)}else if(a&&a.type!=="none"){var v=a.type,x="scatterfill-"+t.uid;if(n&&(x="legendfill-"+t.uid),!n&&(a.start!==void 0||a.stop!==void 0)){var b,p;v==="horizontal"?(b={x:a.start,y:0},p={x:a.stop,y:0}):v==="vertical"&&(b={x:0,y:a.start},p={x:0,y:a.stop}),b.x=t._xA.c2p(b.x===void 0?t._extremes.x.min[0].val:b.x,!0),b.y=t._yA.c2p(b.y===void 0?t._extremes.y.min[0].val:b.y,!0),p.x=t._xA.c2p(p.x===void 0?t._extremes.x.max[0].val:p.x,!0),p.y=t._yA.c2p(p.y===void 0?t._extremes.y.max[0].val:p.y,!0),e.call(qoe,r,x,"linear",a.colorscale,"fill",b,p,!0,!1)}else v==="horizontal"&&(v=v+"reversed"),e.call(Sa.gradient,r,x,v,a.colorscale,"fill")}else t.fillcolor&&e.call(Kd.fill,t.fillcolor)}Sa.singleFillStyle=function(e,t){var r=dd.select(e.node()),n=r.data(),i=((n[0]||[])[0]||{}).trace||{};Foe(e,i,t,!1)};Sa.fillGroupStyle=function(e,t,r){e.style("stroke-width",0).each(function(n){var i=dd.select(this);n[0].trace&&Foe(i,n[0].trace,t,r)})};var Soe=Aoe();Sa.symbolNames=[];Sa.symbolFuncs=[];Sa.symbolBackOffs=[];Sa.symbolNeedLines={};Sa.symbolNoDot={};Sa.symbolNoFill={};Sa.symbolList=[];Object.keys(Soe).forEach(function(e){var t=Soe[e],r=t.n;Sa.symbolList.push(r,String(r),e,r+100,String(r+100),e+"-open"),Sa.symbolNames[r]=e,Sa.symbolFuncs[r]=t.f,Sa.symbolBackOffs[r]=t.backoff||0,t.needLine&&(Sa.symbolNeedLines[r]=!0),t.noDot?Sa.symbolNoDot[r]=!0:Sa.symbolList.push(r+200,String(r+200),e+"-dot",r+300,String(r+300),e+"-open-dot"),t.noFill&&(Sa.symbolNoFill[r]=!0)});var Aot=Sa.symbolNames.length,Sot="M0,0.5L0.5,0L0,-0.5L-0.5,0Z";Sa.symbolNumber=function(e){if(Ab(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=Sa.symbolNames.indexOf(e),e>=0&&(e+=t)}return e%100>=Aot||e>=400?0:Math.floor(Math.max(e,0))};function zoe(e,t,r,n){var i=e%100;return Sa.symbolFuncs[i](t,r,n)+(e>=200?Sot:"")}var Moe=dot("~f"),Ooe={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}};Sa.gradient=function(e,t,r,n,i,a){var o=Ooe[n];return qoe(e,t,r,o.type,i,a,o.start,o.stop,!1,o.reversed)};function qoe(e,t,r,n,i,a,o,s,l,u){var c=i.length,f;n==="linear"?f={node:"linearGradient",attrs:{x1:o.x,y1:o.y,x2:s.x,y2:s.y,gradientUnits:l?"userSpaceOnUse":"objectBoundingBox"},reversed:u}:n==="radial"&&(f={node:"radialGradient",reversed:u});for(var h=new Array(c),d=0;d=0&&e.i===void 0&&(e.i=a.i),t.style("opacity",n.selectedOpacityFn?n.selectedOpacityFn(e):e.mo===void 0?o.opacity:e.mo),n.ms2mrc){var l;e.ms==="various"||o.size==="various"?l=3:l=n.ms2mrc(e.ms),e.mrc=l,n.selectedSizeFn&&(l=e.mrc=n.selectedSizeFn(e));var u=Sa.symbolNumber(e.mx||o.symbol)||0;e.om=u%200>=100;var c=Hq(e,r),f=Gq(e,r);t.attr("d",zoe(u,l,c,f))}var h=!1,d,v,x;if(e.so)x=s.outlierwidth,v=s.outliercolor,d=o.outliercolor;else{var b=(s||{}).width;x=(e.mlw+1||b+1||(e.trace?(e.trace.marker.line||{}).width:0)+1)-1||0,"mlc"in e?v=e.mlcc=n.lineScale(e.mlc):Du.isArrayOrTypedArray(s.color)?v=Kd.defaultLine:v=s.color,Du.isArrayOrTypedArray(o.color)&&(d=Kd.defaultLine,h=!0),"mc"in e?d=e.mcc=n.markerScale(e.mc):d=o.color||o.colors||"rgba(0,0,0,0)",n.selectedColorFn&&(d=n.selectedColorFn(e))}if(e.om)t.call(Kd.stroke,d).style({"stroke-width":(x||1)+"px",fill:"none"});else{t.style("stroke-width",(e.isBlank?0:x)+"px");var p=o.gradient,C=e.mgt;C?h=!0:C=p&&p.type,Du.isArrayOrTypedArray(C)&&(C=C[0],Ooe[C]||(C=0));var E=o.pattern,A=Sa.getPatternAttr,L=E&&(A(E.shape,e.i,"")||A(E.path,e.i,""));if(C&&C!=="none"){var _=e.mgc;_?h=!0:_=p.color;var k=r.uid;h&&(k+="-"+e.i),Sa.gradient(t,i,k,C,[[0,_],[1,d]],"fill")}else if(L){var M=!1,g=E.fgcolor;!g&&a&&a.color&&(g=a.color,M=!0);var P=A(g,e.i,a&&a.color||null),T=A(E.bgcolor,e.i,null),z=E.fgopacity,O=A(E.size,e.i,8),V=A(E.solidity,e.i,.3);M=M||e.mcc||Du.isArrayOrTypedArray(E.shape)||Du.isArrayOrTypedArray(E.path)||Du.isArrayOrTypedArray(E.bgcolor)||Du.isArrayOrTypedArray(E.fgcolor)||Du.isArrayOrTypedArray(E.size)||Du.isArrayOrTypedArray(E.solidity);var G=r.uid;M&&(G+="-"+e.i),Sa.pattern(t,"point",i,G,L,O,V,e.mcc,E.fillmode,T,P,z)}else Du.isArrayOrTypedArray(d)?Kd.fill(t,d[e.i]):Kd.fill(t,d);x&&Kd.stroke(t,v)}};Sa.makePointStyleFns=function(e){var t={},r=e.marker;return t.markerScale=Sa.tryColorscale(r,""),t.lineScale=Sa.tryColorscale(r,"line"),nL.traceIs(e,"symbols")&&(t.ms2mrc=yot.isBubble(e)?_ot(e):function(){return(r.size||6)/2}),e.selectedpoints&&Du.extendFlat(t,Sa.makeSelectedPointStyleFns(e)),t};Sa.makeSelectedPointStyleFns=function(e){var t={},r=e.selected||{},n=e.unselected||{},i=e.marker||{},a=r.marker||{},o=n.marker||{},s=i.opacity,l=a.opacity,u=o.opacity,c=l!==void 0,f=u!==void 0;(Du.isArrayOrTypedArray(s)||c||f)&&(t.selectedOpacityFn=function(A){var L=A.mo===void 0?i.opacity:A.mo;return A.selected?c?l:L:f?u:Doe*L});var h=i.color,d=a.color,v=o.color;(d||v)&&(t.selectedColorFn=function(A){var L=A.mcc||h;return A.selected?d||L:v||L});var x=i.size,b=a.size,p=o.size,C=b!==void 0,E=p!==void 0;return nL.traceIs(e,"symbols")&&(C||E)&&(t.selectedSizeFn=function(A){var L=A.mrc||x/2;return A.selected?C?b/2:L:E?p/2:L}),t};Sa.makeSelectedTextStyleFns=function(e){var t={},r=e.selected||{},n=e.unselected||{},i=e.textfont||{},a=r.textfont||{},o=n.textfont||{},s=i.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:Kd.addOpacity(f,Doe))},t};Sa.selectedPointStyle=function(e,t){if(!(!e.size()||!t.selectedpoints)){var r=Sa.makeSelectedPointStyleFns(t),n=t.marker||{},i=[];r.selectedOpacityFn&&i.push(function(a,o){a.style("opacity",r.selectedOpacityFn(o))}),r.selectedColorFn&&i.push(function(a,o){Kd.fill(a,r.selectedColorFn(o))}),r.selectedSizeFn&&i.push(function(a,o){var s=o.mx||n.symbol||0,l=r.selectedSizeFn(o);a.attr("d",zoe(Sa.symbolNumber(s),l,Hq(o,t),Gq(o,t))),o.mrc2=l}),i.length&&e.each(function(a){for(var o=dd.select(this),s=0;s0?r:0}Sa.textPointStyle=function(e,t,r){if(e.size()){var n;if(t.selectedpoints){var i=Sa.makeSelectedTextStyleFns(t);n=i.selectedTextColorFn}var a=t.texttemplate,o=r._fullLayout;e.each(function(s){var l=dd.select(this),u=a?Du.extractOption(s,t,"txt","texttemplate"):Du.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={};xot(h,t,s.i);var d=t._meta||{};u=Du.texttemplateString(u,f,o._d3locale,h,s,d)}var v=s.tp||t.textposition,x=Noe(s,t),b=n?n(s):s.tc||t.textfont.color;l.call(Sa.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:x,color:b}).text(u).call(aL.convertToTspans,r).call(Boe,v,x,s.mrc)})}};Sa.selectedTextStyle=function(e,t){if(!(!e.size()||!t.selectedpoints)){var r=Sa.makeSelectedTextStyleFns(t);e.each(function(n){var i=dd.select(this),a=r.selectedTextColorFn(n),o=n.tp||t.textposition,s=Noe(n,t);Kd.fill(i,a);var l=nL.traceIs(t,"bar-like");Boe(i,o,s,n.mrc2||n.mrc,l)})}};var Eoe=.5;Sa.smoothopen=function(e,t){if(e.length<3)return"M"+e.join("L");var r="M"+e[0],n=[],i;for(i=1;i=l||A>=c&&A<=l)&&(L<=f&&L>=u||L>=f&&L<=u)&&(e=[A,L])}return e}Sa.applyBackoff=Goe;Sa.makeTester=function(){var e=Du.ensureSingleById(dd.select("body"),"svg","js-plotly-tester",function(r){r.attr(pot.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})}),t=Du.ensureSingle(e,"path","js-reference-point",function(r){r.attr("d","M0,0H1V1H0Z").style({"stroke-width":0,fill:"black"})});Sa.tester=e,Sa.testref=t};Sa.savedBBoxes={};var qq=0,Cot=1e4;Sa.bBox=function(e,t,r){r||(r=Coe(e));var n;if(r){if(n=Sa.savedBBoxes[r],n)return Du.extendFlat({},n)}else if(e.childNodes.length===1){var i=e.childNodes[0];if(r=Coe(i),r){var a=+i.getAttribute("x")||0,o=+i.getAttribute("y")||0,s=i.getAttribute("transform");if(!s){var l=Sa.bBox(i,!1,r);return a&&(l.left+=a,l.right+=a),o&&(l.top+=o,l.bottom+=o),l}if(r+="~"+a+"~"+o+"~"+s,n=Sa.savedBBoxes[r],n)return Du.extendFlat({},n)}}var u,c;t?u=e:(c=Sa.tester.node(),u=e.cloneNode(!0),c.appendChild(u)),dd.select(u).attr("transform",null).call(aL.positionText,0,0);var f=u.getBoundingClientRect(),h=Sa.testref.node().getBoundingClientRect();t||c.removeChild(u);var d={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 qq>=Cot&&(Sa.savedBBoxes={},qq=0),r&&(Sa.savedBBoxes[r]=d),qq++,Du.extendFlat({},d)};function Coe(e){var t=e.getAttribute("data-unformatted");if(t!==null)return t+e.getAttribute("data-math")+e.getAttribute("text-anchor")+e.getAttribute("style")}Sa.setClipUrl=function(e,t,r){e.attr("clip-path",Vq(t,r))};function Vq(e,t){if(!e)return null;var r=t._context,n=r._exportedPlot?"":r._baseUrl||"";return n?"url('"+n+"#"+e+"')":"url(#"+e+")"}Sa.getTranslate=function(e){var t=/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,r=e.attr?"attr":"getAttribute",n=e[r]("transform")||"",i=n.replace(t,function(a,o,s){return[o,s].join(" ")}).split(" ");return{x:+i[0]||0,y:+i[1]||0}};Sa.setTranslate=function(e,t,r){var n=/(\btranslate\(.*?\);?)/,i=e.attr?"attr":"getAttribute",a=e.attr?"attr":"setAttribute",o=e[i]("transform")||"";return t=t||0,r=r||0,o=o.replace(n,"").trim(),o+=eM(t,r),o=o.trim(),e[a]("transform",o),o};Sa.getScale=function(e){var t=/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,r=e.attr?"attr":"getAttribute",n=e[r]("transform")||"",i=n.replace(t,function(a,o,s){return[o,s].join(" ")}).split(" ");return{x:+i[0]||1,y:+i[1]||1}};Sa.setScale=function(e,t,r){var n=/(\bscale\(.*?\);?)/,i=e.attr?"attr":"getAttribute",a=e.attr?"attr":"setAttribute",o=e[i]("transform")||"";return t=t||1,r=r||1,o=o.replace(n,"").trim(),o+="scale("+t+","+r+")",o=o.trim(),e[a]("transform",o),o};var kot=/\s*sc.*/;Sa.setPointGroupScale=function(e,t,r){if(t=t||1,r=r||1,!!e){var n=t===1&&r===1?"":"scale("+t+","+r+")";e.each(function(){var i=(this.getAttribute("transform")||"").replace(kot,"");i+=n,i=i.trim(),this.setAttribute("transform",i)})}};var Lot=/translate\([^)]*\)\s*$/;Sa.setTextPointsScale=function(e,t,r){e&&e.each(function(){var n,i=dd.select(this),a=i.select("text");if(a.node()){var o=parseFloat(a.attr("x")||0),s=parseFloat(a.attr("y")||0),l=(i.attr("transform")||"").match(Lot);t===1&&r===1?n=[]:n=[eM(o,s),"scale("+t+","+r+")",eM(-o,-s)],l&&n.push(l),i.attr("transform",n.join(""))}})};function Gq(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}Sa.getMarkerStandoff=Gq;var QS=Math.atan2,bb=Math.cos,E3=Math.sin;function koe(e,t){var r=t[0],n=t[1];return[r*bb(e)-n*E3(e),r*E3(e)+n*bb(e)]}var Loe,Poe,Ioe,Roe,Bq,Nq;function Hq(e,t){var r=e.ma;r===void 0&&(r=t.marker.angle,(!r||Du.isArrayOrTypedArray(r))&&(r=0));var n,i,a=t.marker.angleref;if(a==="previous"||a==="north"){if(t._geo){var o=t._geo.project(e.lonlat);n=o[0],i=o[1]}else{var s=t._xA,l=t._yA;if(s&&l)n=s.c2p(e.x),i=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]),d=QS(h[1]-i,h[0]-n),v=QS(f[1]-i,f[0]-n),x;if(a==="north")x=r/180*Math.PI;else if(a==="previous"){var b=u/180*Math.PI,p=c/180*Math.PI,C=Loe/180*Math.PI,E=Poe/180*Math.PI,A=C-b,L=bb(E)*E3(A),_=E3(E)*bb(p)-bb(E)*E3(p)*bb(A);x=-QS(L,_)-Math.PI,Loe=u,Poe=c}var k=koe(d,[bb(x),0]),M=koe(v,[E3(x),0]);r=QS(k[1]+M[1],k[0]+M[0])/Math.PI*180,a==="previous"&&!(Nq===t.uid&&e.i===Bq+1)&&(r=null)}if(a==="previous"&&!t._geo)if(Nq===t.uid&&e.i===Bq+1&&Ab(n)&&Ab(i)){var g=n-Ioe,P=i-Roe,T=t.line&&t.line.shape||"",z=T.slice(T.length-1);z==="h"&&(P=0),z==="v"&&(g=0),r+=QS(P,g)/Math.PI*180+90}else r=null}return Ioe=n,Roe=i,Bq=e.i,Nq=t.uid,r}Sa.getMarkerAngle=Hq});var Mb=ye((Nir,Zoe)=>{"use strict";var C3=Oa(),Pot=Eo(),Iot=Mc(),jq=qa(),Sb=Dr(),joe=Sb.strTranslate,oL=So(),sL=Ca(),k3=iu(),Woe=U1(),Rot=Kh().OPPOSITE_SIDE,Xoe=/ [XY][0-9]* /,Wq=1.6,Xq=1.6;function Dot(e,t,r){var n=e._fullLayout,i=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,d=i.title,v=(d&&d.text?d.text:"").trim(),x=!1,b=d&&d.font?d.font:{},p=b.family,C=b.size,E=b.color,A=b.weight,L=b.style,_=b.variant,k=b.textcase,M=b.lineposition,g=b.shadow,P=r.subtitlePropName,T=!!P,z=r.subtitlePlaceholder,O=(i.title||{}).subtitle||{text:"",font:{}},V=O.text.trim(),G=!1,Z=1,H=O.font,N=H.family,j=H.size,re=H.color,oe=H.weight,_e=H.style,Me=H.variant,ke=H.textcase,me=H.lineposition,ie=H.shadow,Se;a==="title.text"?Se="titleText":a.indexOf("axis")!==-1?Se="axisTitleText":a.indexOf("colorbar")!==-1&&(Se="colorbarTitleText");var Le=e._context.edits[Se];function Ae(Nt,$t){return Nt===void 0||$t===void 0?!1:Nt.replace(Xoe," % ")===$t.replace(Xoe," % ")}v===""?h=0:Ae(v,o)&&(Le||(v=""),h=.2,x=!0),T&&(V===""?Z=0:Ae(V,z)&&(Le||(V=""),Z=.2,G=!0)),r._meta?v=Sb.templateString(v,r._meta):n._meta&&(v=Sb.templateString(v,n._meta));var De=v||V||Le,Pe;f||(f=Sb.ensureSingle(n._infolayer,"g","g-"+t),Pe=n._hColorbarMoveTitle);var ge=f.selectAll("text."+t).data(De?[0]:[]);ge.enter().append("text"),ge.text(v).attr("class",t),ge.exit().remove();var Fe=null,ce=t+"-subtitle",Ze=V||Le;if(T&&Ze&&(Fe=f.selectAll("text."+ce).data(Ze?[0]:[]),Fe.enter().append("text"),Fe.text(V).attr("class",ce),Fe.exit().remove()),!De)return f;function ct(Nt,$t){Sb.syncOrAsync([pt,Wt],{title:Nt,subtitle:$t})}function pt(Nt){var $t=Nt.title,sr=Nt.subtitle,wr;!c&&Pe&&(c={}),c?(wr="",c.rotate&&(wr+="rotate("+[c.rotate,u.x,u.y]+")"),(c.offset||Pe)&&(wr+=joe(0,(c.offset||0)-(Pe||0)))):wr=null,$t.attr("transform",wr);function ur(bt){if(bt){var yt=C3.select(bt.node().parentNode).select("."+ce);if(!yt.empty()){var Yt=bt.node().getBBox();if(Yt.height){var lr=Yt.y+Yt.height+Wq*j;yt.attr("y",lr)}}}}if($t.style("opacity",h*sL.opacity(E)).call(oL.font,{color:sL.rgb(E),size:C3.round(C,2),family:p,weight:A,style:L,variant:_,textcase:k,shadow:g,lineposition:M}).attr(u).call(k3.convertToTspans,e,ur),sr){var Qe=f.select("."+t+"-math-group"),Et=$t.node().getBBox(),er=Qe.node()?Qe.node().getBBox():void 0,Ut=er?er.y+er.height+Wq*j:Et.y+Et.height+Xq*j,Ft=Sb.extendFlat({},u,{y:Ut});sr.attr("transform",wr),sr.style("opacity",Z*sL.opacity(re)).call(oL.font,{color:sL.rgb(re),size:C3.round(j,2),family:N,weight:oe,style:_e,variant:Me,textcase:ke,shadow:ie,lineposition:me}).attr(Ft).call(k3.convertToTspans,e)}return Iot.previousPromises(e)}function Wt(Nt){var $t=Nt.title,sr=C3.select($t.node().parentNode);if(l&&l.selection&&l.side&&v){sr.attr("transform",null);var wr=Rot[l.side],ur=l.side==="left"||l.side==="top"?-1:1,Qe=Pot(l.pad)?l.pad:2,Et=oL.bBox(sr.node()),er={t:0,b:0,l:0,r:0},Ut=e._fullLayout._reservedMargin;for(var Ft in Ut)for(var bt in Ut[Ft]){var yt=Ut[Ft][bt];er[bt]=Math.max(er[bt],yt)}var Yt={left:er.l,top:er.t,right:n.width-er.r,bottom:n.height-er.b},lr=l.maxShift||ur*(Yt[l.side]-Et[l.side]),Tr=0;if(lr<0)Tr=lr;else{var Rr=l.offsetLeft||0,ei=l.offsetTop||0;Et.left-=Rr,Et.right-=Rr,Et.top-=ei,Et.bottom-=ei,l.selection.each(function(){var Ur=oL.bBox(this);Sb.bBoxIntersect(Et,Ur,Qe)&&(Tr=Math.max(Tr,ur*(Ur[l.side]-Et[wr])+Qe))}),Tr=Math.min(lr,Tr),i._titleScoot=Math.abs(Tr)}if(Tr>0||lr<0){var Wr={left:[-Tr,0],right:[Tr,0],top:[0,-Tr],bottom:[0,Tr]}[l.side];sr.attr("transform",joe(Wr[0],Wr[1]))}}}ge.call(ct,Fe);function st(Nt,$t){Nt.text($t).on("mouseover.opacity",function(){C3.select(this).transition().duration(Woe.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){C3.select(this).transition().duration(Woe.HIDE_PLACEHOLDER).style("opacity",0)})}if(Le&&(v?ge.on(".opacity",null):(st(ge,o),x=!0),ge.call(k3.makeEditable,{gd:e}).on("edit",function(Nt){s!==void 0?jq.call("_guiRestyle",e,a,Nt,s):jq.call("_guiRelayout",e,a,Nt)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(ct)}).on("input",function(Nt){this.text(Nt||" ").call(k3.positionText,u.x,u.y)}),T)){if(T&&!v){var lt=ge.node().getBBox(),Gt=lt.y+lt.height+Xq*j;Fe.attr("y",Gt)}V?Fe.on(".opacity",null):(st(Fe,z),G=!0),Fe.call(k3.makeEditable,{gd:e}).on("edit",function(Nt){jq.call("_guiRelayout",e,"title.subtitle.text",Nt)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(ct)}).on("input",function(Nt){this.text(Nt||" ").call(k3.positionText,Fe.attr("x"),Fe.attr("y"))})}return ge.classed("js-placeholder",x),Fe&&Fe.classed("js-placeholder",G),f}Zoe.exports={draw:Dot,SUBTITLE_PADDING_EM:Xq,SUBTITLE_PADDING_MATHJAX_EM:Wq}});var ym=ye((Uir,Qoe)=>{"use strict";var Fot=Oa(),zot=e3().utcFormat,yc=Dr(),Oot=yc.numberFormat,gm=Eo(),a_=yc.cleanNumber,qot=yc.ms2DateTime,Yoe=yc.dateTime2ms,mm=yc.ensureNumber,Koe=yc.isArrayOrTypedArray,o_=hs(),lL=o_.FP_SAFE,bg=o_.BADNUM,Bot=o_.LOG_CLIP,Not=o_.ONEWEEK,uL=o_.ONEDAY,cL=o_.ONEHOUR,Joe=o_.ONEMIN,$oe=o_.ONESEC,fL=hf(),vL=hd(),hL=vL.HOUR_PATTERN,dL=vL.WEEKDAY_PATTERN;function tM(e){return Math.pow(10,e)}function Zq(e){return e!=null}Qoe.exports=function(t,r){r=r||{};var n=t._id||"x",i=n.charAt(0);function a(A,L){if(A>0)return Math.log(A)/Math.LN10;if(A<=0&&L&&t.range&&t.range.length===2){var _=t.range[0],k=t.range[1];return .5*(_+k-2*Bot*Math.abs(_-k))}else return bg}function o(A,L,_,k){if((k||{}).msUTC&&gm(A))return+A;var M=Yoe(A,_||t.calendar);if(M===bg)if(gm(A)){A=+A;var g=Math.floor(yc.mod(A+.05,1)*10),P=Math.round(A-g/10);M=Yoe(new Date(P))+g/10}else return bg;return M}function s(A,L,_){return qot(A,L,_||t.calendar)}function l(A){return t._categories[Math.round(A)]}function u(A){if(Zq(A)){if(t._categoriesMap===void 0&&(t._categoriesMap={}),t._categoriesMap[A]!==void 0)return t._categoriesMap[A];t._categories.push(typeof A=="number"?String(A):A);var L=t._categories.length-1;return t._categoriesMap[A]=L,L}return bg}function c(A,L){for(var _=new Array(L),k=0;kt.range[1]&&(_=!_);for(var k=_?-1:1,M=k*A,g=0,P=0;Pz)g=P+1;else{g=M<(T+z)/2?P:P+1;break}}var O=t._B[g]||0;return isFinite(O)?v(A,t._m2,O):0},p=function(A){var L=t._rangebreaks.length;if(!L)return x(A,t._m,t._b);for(var _=0,k=0;kt._rangebreaks[k].pmax&&(_=k+1);return x(A,t._m2,t._B[_])}}t.c2l=t.type==="log"?a:mm,t.l2c=t.type==="log"?tM:mm,t.l2p=b,t.p2l=p,t.c2p=t.type==="log"?function(A,L){return b(a(A,L))}:b,t.p2c=t.type==="log"?function(A){return tM(p(A))}:p,["linear","-"].indexOf(t.type)!==-1?(t.d2r=t.r2d=t.d2c=t.r2c=t.d2l=t.r2l=a_,t.c2d=t.c2r=t.l2d=t.l2r=mm,t.d2p=t.r2p=function(A){return t.l2p(a_(A))},t.p2d=t.p2r=p,t.cleanPos=mm):t.type==="log"?(t.d2r=t.d2l=function(A,L){return a(a_(A),L)},t.r2d=t.r2c=function(A){return tM(a_(A))},t.d2c=t.r2l=a_,t.c2d=t.l2r=mm,t.c2r=a,t.l2d=tM,t.d2p=function(A,L){return t.l2p(t.d2r(A,L))},t.p2d=function(A){return tM(p(A))},t.r2p=function(A){return t.l2p(a_(A))},t.p2r=p,t.cleanPos=mm):t.type==="date"?(t.d2r=t.r2d=yc.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,L,_){return t.l2p(o(A,0,_))},t.p2d=t.p2r=function(A,L,_){return s(p(A),L,_)},t.cleanPos=function(A){return yc.cleanDate(A,bg,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(A){var L=d(A);return L!==void 0?L:t.fraction2r(.5)},t.l2r=t.c2r=mm,t.r2l=d,t.d2p=function(A){return t.l2p(t.r2c(A))},t.p2d=function(A){return l(p(A))},t.r2p=t.d2p,t.p2r=p,t.cleanPos=function(A){return typeof A=="string"&&A!==""?A:mm(A)}):t.type==="multicategory"&&(t.r2d=t.c2d=t.l2d=l,t.d2r=t.d2l_noadd=h,t.r2c=function(A){var L=h(A);return L!==void 0?L:t.fraction2r(.5)},t.r2c_just_indices=f,t.l2r=t.c2r=mm,t.r2l=h,t.d2p=function(A){return t.l2p(t.r2c(A))},t.p2d=function(A){return l(p(A))},t.r2p=t.d2p,t.p2r=p,t.cleanPos=function(A){return Array.isArray(A)||typeof A=="string"&&A!==""?A:mm(A)},t.setupMultiCategory=function(A){var L=t._traceIndices,_,k,M=t._matchGroup;if(M&&t._categories.length===0){for(var g in M)if(g!==n){var P=r[fL.id2name(g)];L=L.concat(P._traceIndices)}}var T=[[0,{}],[0,{}]],z=[];for(_=0;_P[1]&&(k[g?0:1]=_),k[0]===k[1]){var T=t.l2r(L),z=t.l2r(_);if(L!==void 0){var O=T+1;_!==void 0&&(O=Math.min(O,z)),k[g?1:0]=O}if(_!==void 0){var V=z+1;L!==void 0&&(V=Math.max(V,T)),k[g?0:1]=V}}}},t.cleanRange=function(A,L){t._cleanRange(A,L),t.limitRange(A)},t._cleanRange=function(A,L){L||(L={}),A||(A="range");var _=yc.nestedProperty(t,A).get(),k,M;if(t.type==="date"?M=yc.dfltRange(t.calendar):i==="y"?M=vL.DFLTRANGEY:t._name==="realaxis"?M=[0,1]:M=L.dfltRange||vL.DFLTRANGEX,M=M.slice(),(t.rangemode==="tozero"||t.rangemode==="nonnegative")&&(M[0]=0),!_||_.length!==2){yc.nestedProperty(t,A).set(M);return}var g=_[0]===null,P=_[1]===null;for(t.type==="date"&&!t.autorange&&(_[0]=yc.cleanDate(_[0],bg,t.calendar),_[1]=yc.cleanDate(_[1],bg,t.calendar)),k=0;k<2;k++)if(t.type==="date"){if(!yc.isDateTime(_[k],t.calendar)){t[A]=M;break}if(t.r2l(_[0])===t.r2l(_[1])){var T=yc.constrain(t.r2l(_[0]),yc.MIN_MS+1e3,yc.MAX_MS-1e3);_[0]=t.l2r(T-1e3),_[1]=t.l2r(T+1e3);break}}else{if(!gm(_[k]))if(!(g||P)&&gm(_[1-k]))_[k]=_[1-k]*(k?10:.1);else{t[A]=M;break}if(_[k]<-lL?_[k]=-lL:_[k]>lL&&(_[k]=lL),_[0]===_[1]){var z=Math.max(1,Math.abs(_[0]*1e-6));_[0]-=z,_[1]+=z}}},t.setScale=function(A){var L=r._size;if(t.overlaying){var _=fL.getFromId({_fullLayout:r},t.overlaying);t.domain=_.domain}var k=A&&t._r?"_r":"range",M=t.calendar;t.cleanRange(k);var g=t.r2l(t[k][0],M),P=t.r2l(t[k][1],M),T=i==="y";if(T?(t._offset=L.t+(1-t.domain[1])*L.h,t._length=L.h*(t.domain[1]-t.domain[0]),t._m=t._length/(g-P),t._b=-t._m*P):(t._offset=L.l+t.domain[0]*L.w,t._length=L.w*(t.domain[1]-t.domain[0]),t._m=t._length/(P-g),t._b=-t._m*g),t._rangebreaks=[],t._lBreaks=0,t._m2=0,t._B=[],t.rangebreaks){var z,O;if(t._rangebreaks=t.locateBreaks(Math.min(g,P),Math.max(g,P)),t._rangebreaks.length){for(z=0;zP&&(V=!V),V&&t._rangebreaks.reverse();var G=V?-1:1;for(t._m2=G*t._length/(Math.abs(P-g)-t._lBreaks),t._B.push(-t._m2*(T?P:g)),z=0;zM&&(M+=7,gM&&(M+=24,g=k&&g=k&&A=ie.min&&(_eie.max&&(ie.max=Me),ke=!1)}ke&&P.push({min:_e,max:Me})}};for(_=0;_{"use strict";var ese=Eo(),Yq=Dr(),Uot=hs().BADNUM,pL=Yq.isArrayOrTypedArray,Vot=Yq.isDateTime,Got=Yq.cleanNumber,tse=Math.round;ise.exports=function(t,r,n){var i=t,a=n.noMultiCategory;if(pL(i)&&!i.length)return"-";if(!a&&Zot(i))return"multicategory";if(a&&Array.isArray(i[0])){for(var o=[],s=0;sa*2}function rse(e){return Math.max(1,(e-1)/1e3)}function Xot(e,t){for(var r=e.length,n=rse(r),i=0,a=0,o={},s=0;si*2}function Zot(e){return pL(e[0])&&pL(e[1])}});var wg=ye((Gir,fse)=>{"use strict";var Yot=Oa(),sse=Eo(),s_=Dr(),gL=hs().FP_SAFE,Kot=qa(),Jot=So(),lse=hf(),$ot=lse.getFromId,Qot=lse.isLinked;fse.exports={applyAutorangeOptions:cse,getAutoRange:Kq,makePadFn:Jq,doAutoRange:tst,findExtremes:rst,concatExtremes:eB};function Kq(e,t){var r,n,i=[],a=e._fullLayout,o=Jq(a,t,0),s=Jq(a,t,1),l=eB(e,t),u=l.min,c=l.max;if(u.length===0||c.length===0)return s_.simpleMap(t.range,t.r2l);var f=u[0].val,h=c[0].val;for(r=1;r0&&(P=E-o(_)-s(k),P>A?T/P>L&&(M=_,g=k,L=T/P):T/E>L&&(M={val:_.val,nopad:1},g={val:k.val,nopad:1},L=T/E));function z(H,N){return Math.max(H,s(N))}if(f===h){var O=f-1,V=f+1;if(p)if(f===0)i=[0,1];else{var G=(f>0?c:u).reduce(z,0),Z=f/(1-Math.min(.5,G/E));i=f>0?[0,Z]:[Z,0]}else C?i=[Math.max(0,O),Math.max(1,V)]:i=[O,V]}else p?(M.val>=0&&(M={val:0,nopad:1}),g.val<=0&&(g={val:0,nopad:1})):C&&(M.val-L*o(M)<0&&(M={val:0,nopad:1}),g.val<=0&&(g={val:1,nopad:1})),L=(g.val-M.val-nse(t,_.val,k.val))/(E-o(M)-s(g)),i=[M.val-L*o(M),g.val+L*s(g)];return i=cse(i,t),t.limitRange&&t.limitRange(),v&&i.reverse(),s_.simpleMap(i,t.l2r||Number)}function nse(e,t,r){var n=0;if(e.rangebreaks)for(var i=e.locateBreaks(t,r),a=0;a0?r.ppadplus:r.ppadminus)||r.ppad||0),_=A((e._m>0?r.ppadminus:r.ppadplus)||r.ppad||0),k=A(r.vpadplus||r.vpad),M=A(r.vpadminus||r.vpad);if(!u){if(C=1/0,E=-1/0,l)for(f=0;f0&&(C=h),h>E&&h-gL&&(C=h),h>E&&h=T;f--)P(f);return{min:n,max:i,opts:r}}function $q(e,t,r,n){use(e,t,r,n,ist)}function Qq(e,t,r,n){use(e,t,r,n,nst)}function use(e,t,r,n,i){for(var a=n.tozero,o=n.extrapad,s=!0,l=0;l=r&&(u.extrapad||!o)){s=!1;break}else i(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 ose(e){return sse(e)&&Math.abs(e)=t}function ast(e,t){var r=t.autorangeoptions;return r&&r.minallowed!==void 0&&mL(t,r.minallowed,r.maxallowed)?r.minallowed:r&&r.clipmin!==void 0&&mL(t,r.clipmin,r.clipmax)?Math.max(e,t.d2l(r.clipmin)):e}function ost(e,t){var r=t.autorangeoptions;return r&&r.maxallowed!==void 0&&mL(t,r.minallowed,r.maxallowed)?r.maxallowed:r&&r.clipmax!==void 0&&mL(t,r.clipmin,r.clipmax)?Math.min(e,t.d2l(r.clipmax)):e}function mL(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,n=l)}}return r=ast(r,t),n=ost(n,t),[r,n]}});var ho=ye((Hir,Rse)=>{"use strict";var w0=Oa(),kh=Eo(),P3=Mc(),iM=qa(),Jo=Dr(),I3=Jo.strTranslate,Eb=iu(),sst=Mb(),nM=Ca(),Xp=So(),lst=Rd(),hse=Aq(),Jd=hs(),ust=Jd.ONEMAXYEAR,xL=Jd.ONEAVGYEAR,bL=Jd.ONEMINYEAR,cst=Jd.ONEMAXQUARTER,nB=Jd.ONEAVGQUARTER,wL=Jd.ONEMINQUARTER,fst=Jd.ONEMAXMONTH,R3=Jd.ONEAVGMONTH,TL=Jd.ONEMINMONTH,Zp=Jd.ONEWEEK,zv=Jd.ONEDAY,l_=zv/2,xm=Jd.ONEHOUR,aM=Jd.ONEMIN,AL=Jd.ONESEC,hst=Jd.ONEMILLI,dst=Jd.ONEMICROSEC,Cb=Jd.MINUS_SIGN,EL=Jd.BADNUM,aB={K:"zeroline"},oB={K:"gridline",L:"path"},sB={K:"minor-gridline",L:"path"},Tse={K:"tick",L:"path"},dse={K:"tick",L:"text"},vse={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},CL=Kh(),rM=CL.MID_SHIFT,kb=CL.CAP_SHIFT,oM=CL.LINE_SPACING,vst=CL.OPPOSITE_SIDE,SL=3,Qn=Rse.exports={};Qn.setConvert=ym();var pst=L3(),Ay=hf(),gst=Ay.idSort,mst=Ay.isLinked;Qn.id2name=Ay.id2name;Qn.name2id=Ay.name2id;Qn.cleanId=Ay.cleanId;Qn.list=Ay.list;Qn.listIds=Ay.listIds;Qn.getFromId=Ay.getFromId;Qn.getFromTrace=Ay.getFromTrace;var Ase=wg();Qn.getAutoRange=Ase.getAutoRange;Qn.findExtremes=Ase.findExtremes;var yst=1e-4;function fB(e){var t=(e[1]-e[0])*yst;return[e[0]-t,e[1]+t]}Qn.coerceRef=function(e,t,r,n,i,a){var o=n.charAt(n.length-1),s=r._fullLayout._subplots[o+"axis"],l=n+"ref",u={};return i||(i=s[0]||(typeof a=="string"?a:a[0])),a||(a=i),s=s.concat(s.map(function(c){return c+" domain"})),u[l]={valType:"enumerated",values:s.concat(a?typeof a=="string"?[a]:a:[]),dflt:i},Jo.coerce(e,t,u,l)};Qn.getRefType=function(e){return e===void 0?e:e==="paper"?"paper":e==="pixel"?"pixel":/( domain)$/.test(e)?"domain":"range"};Qn.coercePosition=function(e,t,r,n,i,a){var o,s,l=Qn.getRefType(n);if(l!=="range")o=Jo.ensureNumber,s=r(i,a);else{var u=Qn.getFromId(t,n);a=u.fraction2r(a),s=r(i,a),o=u.cleanPos}e[i]=o(s)};Qn.cleanPosition=function(e,t,r){var n=r==="paper"||r==="pixel"?Jo.ensureNumber:Qn.getFromId(t,r).cleanPos;return n(e)};Qn.redrawComponents=function(e,t){t=t||Qn.listIds(e);var r=e._fullLayout;function n(i,a,o,s){for(var l=iM.getComponentMethod(i,a),u={},c=0;c2e-6||((r-e._forceTick0)/e._minDtick%1+1.000001)%1>2e-6)&&(e._minDtick=0))};Qn.saveRangeInitial=function(e,t){for(var r=Qn.list(e,"",!0),n=!1,i=0;if*.3||u(n)||u(i))){var h=r.dtick/2;e+=e+ho){var s=Number(r.substr(1));a.exactYears>o&&s%12===0?e=Qn.tickIncrement(e,"M6","reverse")+zv*1.5:a.exactMonths>o?e=Qn.tickIncrement(e,"M1","reverse")+zv*15.5:e-=l_;var l=Qn.tickIncrement(e,r);if(l<=n)return l}return e}Qn.prepMinorTicks=function(e,t,r){if(!t.minor.dtick){delete e.dtick;var n=t.dtick&&kh(t._tmin),i;if(n){var a=Qn.tickIncrement(t._tmin,t.dtick,!0);i=[t._tmin,a*.99+t._tmin*.01]}else{var o=Jo.simpleMap(t.range,t.r2l);i=[o[0],.8*o[0]+.2*o[1]]}if(e.range=Jo.simpleMap(i,t.l2r),e._isMinor=!0,Qn.prepTicks(e,r),n){var s=kh(t.dtick),l=kh(e.dtick),u=s?t.dtick:+t.dtick.substring(1),c=l?e.dtick:+e.dtick.substring(1);s&&l?tB(u,c)?u===2*Zp&&c===2*zv&&(e.dtick=Zp):u===2*Zp&&c===3*zv?e.dtick=Zp:u===Zp&&!(t._input.minor||{}).nticks?e.dtick=zv:mse(u/c,2.5)?e.dtick=u/2:e.dtick=u:String(t.dtick).charAt(0)==="M"?l?e.dtick="M1":tB(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"?tB(u,c)||(e.dtick=mse(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}t.minor._tick0Init===void 0&&(e.tick0=t.tick0)};function tB(e,t){return Math.abs((e/t+.5)%1-.5)<.001}function mse(e,t){return Math.abs(e/t-1)<.001}Qn.prepTicks=function(e,t){var r=Jo.simpleMap(e.range,e.r2l,void 0,void 0,t);if(e.tickmode==="auto"||!e.dtick){var n=e.nticks,i;n||(e.type==="category"||e.type==="multicategory"?(i=e.tickfont?Jo.bigFont(e.tickfont.size||12):15,n=e._length/i):(i=e._id.charAt(0)==="y"?40:80,n=Jo.constrain(e._length/i,4,9)+1),e._name==="radialaxis"&&(n*=2)),e.minor&&e.minor.tickmode!=="array"||e.tickmode==="array"&&(n*=100),e._roughDTick=Math.abs(r[1]-r[0])/n,Qn.autoTicks(e,e._roughDTick),e._minDtick>0&&e.dtick0?(a=n-1,o=n):(a=n,o=n);var s=e[a].value,l=e[o].value,u=Math.abs(l-s),c=r||u,f=0;c>=bL?u>=bL&&u<=ust?f=u:f=xL:r===nB&&c>=wL?u>=wL&&u<=cst?f=u:f=nB:c>=TL?u>=TL&&u<=fst?f=u:f=R3:r===Zp&&c>=Zp?f=Zp:c>=zv?f=zv:r===l_&&c>=l_?f=l_:r===xm&&c>=xm&&(f=xm);var h;f>=u&&(f=u,h=!0);var d=i+f;if(t.rangebreaks&&f>0){for(var v=84,x=0,b=0;bZp&&(f=u)}(f>0||n===0)&&(e[n].periodX=i+f/2)}}Qn.calcTicks=function(t,r){for(var n=t.type,i=t.calendar,a=t.ticklabelstep,o=t.ticklabelmode==="period",s=t.range[0]>t.range[1],l=!t.ticklabelindex||Jo.isArrayOrTypedArray(t.ticklabelindex)?t.ticklabelindex:[t.ticklabelindex],u=Jo.simpleMap(t.range,t.r2l,void 0,void 0,r),c=u[1]=(E?0:1);A--){var L=!A;A?(t._dtickInit=t.dtick,t._tick0Init=t.tick0):(t.minor._dtickInit=t.minor.dtick,t.minor._tick0Init=t.minor.tick0);var _=A?t:Jo.extendFlat({},t,t.minor);if(L?Qn.prepMinorTicks(_,t,r):Qn.prepTicks(_,r),_.tickmode==="array"){A?(b=[],v=yse(t,!L)):(p=[],x=yse(t,!L));continue}if(_.tickmode==="sync"){b=[],v=Ast(t);continue}var k=fB(u),M=k[0],g=k[1],P=kh(_.dtick),T=n==="log"&&!(P||_.dtick.charAt(0)==="L"),z=Qn.tickFirst(_,r);if(A){if(t._tmin=z,z=g:V<=g;V=Qn.tickIncrement(V,H,c,i)){if(A&&G++,_.rangebreaks&&!c){if(V=h)break}if(b.length>d||V===O)break;O=V;var N={value:V};A?(T&&V!==(V|0)&&(N.simpleLabel=!0),a>1&&G%a&&(N.skipLabel=!0),b.push(N)):(N.minor=!0,p.push(N))}}if(!p||p.length<2)l=!1;else{var j=(p[1].value-p[0].value)*(s?-1:1);Zst(j,t.tickformat)||(l=!1)}if(!l)C=b;else{var re=b.concat(p);o&&b.length&&(re=re.slice(1)),re=re.sort(function(Gt,Nt){return Gt.value-Nt.value}).filter(function(Gt,Nt,$t){return Nt===0||Gt.value!==$t[Nt-1].value});var oe=re.map(function(Gt,Nt){return Gt.minor===void 0&&!Gt.skipLabel?Nt:null}).filter(function(Gt){return Gt!==null});oe.forEach(function(Gt){l.map(function(Nt){var $t=Gt+Nt;$t>=0&&$t-1;De--){if(b[De].drop){b.splice(De,1);continue}b[De].value=iB(b[De].value,t);var ce=t.c2p(b[De].value);(Pe?Fe>ce-ge:Feh||srh&&($t.periodX=h),sri&&hxL)t/=xL,n=i(10),e.dtick="M"+12*_m(t,n,yL);else if(a>R3)t/=R3,e.dtick="M"+_m(t,1,_se);else if(a>zv){if(e.dtick=_m(t,zv,e._hasDayOfWeekBreaks?[1,2,7,14]:Sst),!r){var o=Qn.getTickFormat(e),s=e.ticklabelmode==="period";s&&(e._rawTick0=e.tick0),/%[uVW]/.test(o)?e.tick0=Jo.dateTick0(e.calendar,2):e.tick0=Jo.dateTick0(e.calendar,1),s&&(e._dowTick0=e.tick0)}}else a>xm?e.dtick=_m(t,xm,_se):a>aM?e.dtick=_m(t,aM,xse):a>AL?e.dtick=_m(t,AL,xse):(n=i(10),e.dtick=_m(t,n,yL))}else if(e.type==="log"){e.tick0=0;var l=Jo.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,n=i(10),e.dtick="L"+_m(t,n,yL)}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))):vB(e)?(e.tick0=0,n=1,e.dtick=_m(t,n,Mst)):(e.tick0=0,n=i(10),e.dtick=_m(t,n,yL));if(e.dtick===0&&(e.dtick=1),!kh(e.dtick)&&typeof e.dtick!="string"){var c=e.dtick;throw e.dtick=1,"ax.dtick error: "+String(c)}};function Cse(e){var t=e.dtick;if(e._tickexponent=0,!kh(t)&&typeof t!="string"&&(t=1),(e.type==="category"||e.type==="multicategory")&&(e._tickround=null),e.type==="date"){var r=e.r2l(e.tick0),n=e.l2r(r).replace(/(^-|i)/g,""),i=n.length;if(String(t).charAt(0)==="M")i>10||n.substr(5)!=="01-01"?e._tickround="d":e._tickround=+t.substr(1)%12===0?"y":"m";else if(t>=zv&&i<=10||t>=zv*15)e._tickround="d";else if(t>=aM&&i<=16||t>=xm)e._tickround="M";else if(t>=AL&&i<=19||t>=aM)e._tickround="S";else{var a=e.l2r(r+t).replace(/^-/,"").length;e._tickround=Math.max(i,a)-20,e._tickround<0&&(e._tickround=4)}}else if(kh(t)||t.charAt(0)==="L"){var o=e.range.map(e.r2d||Number);kh(t)||(t=Number(t.substr(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&&(ML(e.exponentformat)&&!hB(l)?e._tickexponent=3*Math.round((l-1)/3):e._tickexponent=l)}else e._tickround=null}Qn.tickIncrement=function(e,t,r,n){var i=r?-1:1;if(kh(t))return Jo.increment(e,i*t);var a=t.charAt(0),o=i*Number(t.substr(1));if(a==="M")return Jo.incrementMonth(e,o,n);if(a==="L")return Math.log(Math.pow(10,e)+o)/Math.LN10;if(a==="D"){var s=t==="D2"?Ese:Mse,l=e+i*.01,u=Jo.roundUp(Jo.mod(l,1),s,r);return Math.floor(l)+Math.log(w0.round(Math.pow(10,u),1))/Math.LN10}throw"unrecognized dtick "+String(t)};Qn.tickFirst=function(e,t){var r=e.r2l||Number,n=Jo.simpleMap(e.range,r,void 0,void 0,t),i=n[1]=0&&p<=e._length?b:null};if(a&&Jo.isArrayOrTypedArray(e.ticktext)){var f=Jo.simpleMap(e.range,e.r2l),h=(Math.abs(f[1]-f[0])-(e._lBreaks||0))/1e4;for(u=0;u"+s;else{var u=lM(e),c=e._trueSide||e.side;(!u&&c==="top"||u&&c==="bottom")&&(o+="
")}t.text=o}function Cst(e,t,r,n,i){var a=e.dtick,o=t.x,s=e.tickformat,l=typeof a=="string"&&a.charAt(0);if(i==="never"&&(i=""),n&&l!=="L"&&(a="L3",l="L"),s||l==="L")t.text=sM(Math.pow(10,o),e,i,n);else if(kh(a)||l==="D"&&(e.minorloglabels==="complete"||Jo.mod(o+.01,1)<.1)){var u;e.minorloglabels==="complete"&&!(Jo.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],d=Math.abs(h),v=e.exponentformat;v==="power"||ML(v)&&hB(h)?(t.text=f[0],d>0&&(t.text+="x10"),t.text==="1x10"&&(t.text="10"),h!==0&&h!==1&&(t.text+=""+(h>0?"":Cb)+d+""),t.fontSize*=1.25):(v==="e"||v==="E")&&d>2?t.text=f[0]+v+(h>0?"+":Cb)+d:(t.text=sM(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,Jo.mod(o,1)))),t.fontSize*=.75;else throw"unrecognized dtick "+String(a);if(e.dtick==="D1"){var x=String(t.text).charAt(0);(x==="0"||x==="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 kst(e,t){var r=e._categories[Math.round(t.x)];r===void 0&&(r=""),t.text=String(r)}function Lst(e,t,r){var n=Math.round(t.x),i=e._categories[n]||[],a=i[1]===void 0?"":String(i[1]),o=i[0]===void 0?"":String(i[0]);r?t.text=o+" - "+a:(t.text=a,t.text2=o)}function Pst(e,t,r,n,i){i==="never"?i="":e.showexponent==="all"&&Math.abs(t.x/e.dtick)<1e-6&&(i="hide"),t.text=sM(t.x,e,i,n)}function Ist(e,t,r,n,i){if(e.thetaunit==="radians"&&!r){var a=t.x/180;if(a===0)t.text="0";else{var o=Rst(a);if(o[1]>=100)t.text=sM(Jo.deg2rad(t.x),e,i,n);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=Cb+t.text)}}}else t.text=sM(t.x,e,i,n)}function Rst(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 n(s){for(var l=1;!t(Math.round(s*l)/l,s);)l*=10;return l}var i=n(e),a=e*i,o=Math.abs(r(a,i));return[Math.round(a/o),Math.round(i/o)]}var Dst=["f","p","n","\u03BC","m","","k","M","G","T"];function ML(e){return e==="SI"||e==="B"}function hB(e){return e>14||e<-15}function sM(e,t,r,n){var i=e<0,a=t._tickround,o=r||t.exponentformat||"B",s=t._tickexponent,l=Qn.getTickFormat(t),u=t.separatethousands;if(n){var c={exponentformat:o,minexponent:t.minexponent,dtick:t.showexponent==="none"?t.dtick:kh(e)&&Math.abs(e)||1,range:t.showexponent==="none"?t.range.map(t.r2d):[0,e||1]};Cse(c),a=(Number(c._tickround)||0)+4,s=c._tickexponent,t.hoverformat&&(l=t.hoverformat)}if(l)return t._numFormat(l)(e).replace(/-/g,Cb);var f=Math.pow(10,-a)/2;if(o==="none"&&(s=0),e=Math.abs(e),e"+v+"":o==="B"&&s===9?e+="B":ML(o)&&(e+=Dst[s/3+5])}return i?Cb+e:e}Qn.getTickFormat=function(e){var t;function r(l){return typeof l!="string"?l:Number(l.replace("M",""))*R3}function n(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 i(l,u,c){var f=c||function(v){return v},h=u[0],d=u[1];return(!h&&typeof h!="number"||f(h)<=f(l))&&(!d&&typeof d!="number"||f(d)>=f(l))}function a(l,u){var c=u[0]===null,f=u[1]===null,h=n(l,u[0])>=0,d=n(l,u[1])<=0;return(c||h)&&(f||d)}var o,s;if(e.tickformatstops&&e.tickformatstops.length>0)switch(e.type){case"date":case"linear":{for(t=0;t=0&&i.unshift(i.splice(c,1).shift())}});var s={false:{left:0,right:0}};return Jo.syncOrAsync(i.map(function(l){return function(){if(l){var u=Qn.getFromId(e,l);r||(r={}),r.axShifts=s,r.overlayingShiftedAx=o;var c=Qn.drawOne(e,u,r);return u._shiftPusher&&cB(u,u._fullDepth||0,s,!0),u._r=u.range.slice(),u._rl=Jo.simpleMap(u._r,u.r2l),c}}}))};Qn.drawOne=function(e,t,r){r=r||{};var n=r.axShifts||{},i=r.overlayingShiftedAx||[],a,o,s;t.setScale();var l=e._fullLayout,u=t._id,c=u.charAt(0),f=Qn.counterLetter(u),h=l._plots[t._mainSubplot],d=t.zerolinelayer==="above traces";if(!h)return;if(t._shiftPusher=t.autoshift||i.indexOf(t._id)!==-1||i.indexOf(t.overlaying)!==-1,t._shiftPusher&t.anchor==="free"){var v=t.linewidth/2||0;t.ticks==="inside"&&(v+=t.ticklen),cB(t,v,n,!0),cB(t,t.shift||0,n,!1)}(r.skipTitle!==!0||t._shift===void 0)&&(t._shift=Xst(t,n));var x=h[c+"axislayer"],b=t._mainLinePosition,p=b+=t._shift,C=t._mainMirrorPosition,E=t._vals=Qn.calcTicks(t),A=[t.mirror,p,C].join("_");for(a=0;a0?sr.bottom-Nt:0,$t))));var Et=0,er=0;if(t._shiftPusher&&(Et=Math.max($t,sr.height>0?lt==="l"?Nt-sr.left:sr.right-Nt:0),t.title.text!==l._dfltTitle[c]&&(er=(t._titleStandoff||0)+(t._titleScoot||0),lt==="l"&&(er+=wse(t))),t._fullDepth=Math.max(Et,er)),t.automargin){wr={x:0,y:0,r:0,l:0,t:0,b:0};var Ut=[0,1],Ft=typeof t._shift=="number"?t._shift:0;if(c==="x"){if(lt==="b"?wr[lt]=t._depth:(wr[lt]=t._depth=Math.max(sr.width>0?Nt-sr.top:0,$t),Ut.reverse()),sr.width>0){var bt=sr.right-(t._offset+t._length);bt>0&&(wr.xr=1,wr.r=bt);var yt=t._offset-sr.left;yt>0&&(wr.xl=0,wr.l=yt)}}else if(lt==="l"?(t._depth=Math.max(sr.height>0?Nt-sr.left:0,$t),wr[lt]=t._depth-Ft):(t._depth=Math.max(sr.height>0?sr.right-Nt:0,$t),wr[lt]=t._depth+Ft,Ut.reverse()),sr.height>0){var Yt=sr.bottom-(t._offset+t._length);Yt>0&&(wr.yb=0,wr.b=Yt);var lr=t._offset-sr.top;lr>0&&(wr.yt=1,wr.t=lr)}wr[f]=t.anchor==="free"?t.position:t._anchorAxis.domain[Ut[0]],t.title.text!==l._dfltTitle[c]&&(wr[lt]+=wse(t)+(t.title.standoff||0)),t.mirror&&t.anchor!=="free"&&(ur={x:0,y:0,r:0,l:0,t:0,b:0},ur[Gt]=t.linewidth,t.mirror&&t.mirror!==!0&&(ur[Gt]+=$t),t.mirror===!0||t.mirror==="ticks"?ur[f]=t._anchorAxis.domain[Ut[1]]:(t.mirror==="all"||t.mirror==="allticks")&&(ur[f]=[t._counterDomainMin,t._counterDomainMax][Ut[1]]))}st&&(Qe=iM.getComponentMethod("rangeslider","autoMarginOpts")(e,t)),typeof t.automargin=="string"&&(bse(wr,t.automargin),bse(ur,t.automargin)),P3.autoMargin(e,dB(t),wr),P3.autoMargin(e,Pse(t),ur),P3.autoMargin(e,Ise(t),Qe)}),Jo.syncOrAsync(pt)}};function bse(e,t){if(e){var r=Object.keys(vse).reduce(function(n,i){return t.indexOf(i)!==-1&&vse[i].forEach(function(a){n[a]=1}),n},{});Object.keys(e).forEach(function(n){r[n]||(n.length===1?e[n]=0:delete e[n])})}}function Fst(e,t){var r=[],n,i=function(a,o){var s=a.xbnd[o];s!==null&&r.push(Jo.extendFlat({},a,{x:s}))};if(t.length){for(n=0;ne.range[1],s=e.ticklabelposition&&e.ticklabelposition.indexOf("inside")!==-1,l=!s;if(r){var u=o?-1:1;r=r*u}if(n){var c=e.side,f=s&&(c==="top"||c==="left")||l&&(c==="bottom"||c==="right")?1:-1;n=n*f}return e._id.charAt(0)==="x"?function(h){return I3(i+e._offset+e.l2p(lB(h))+r,a+n)}:function(h){return I3(a+n,i+e._offset+e.l2p(lB(h))+r)}};function lB(e){return e.periodX!==void 0?e.periodX:e.x}function Bst(e){var t=e.ticklabelposition||"",r=e.tickson||"",n=function(v){return t.indexOf(v)!==-1},i=n("top"),a=n("left"),o=n("right"),s=n("bottom"),l=n("inside"),u=r!=="boundaries"&&(s||a||i||o);if(!u&&!l)return[0,0];var c=e.side,f=u?(e.tickwidth||0)/2:0,h=SL,d=e.tickfont?e.tickfont.size:12;return(s||i)&&(f+=d*kb,h+=(e.linewidth||0)/2),(a||o)&&(f+=(e.linewidth||0)/2,h+=SL),l&&c==="top"&&(h-=d*(1-kb)),(a||i)&&(f=-f),(c==="bottom"||c==="right")&&(h=-h),[u?f:0,l?h:0]}Qn.makeTickPath=function(e,t,r,n){n||(n={});var i=n.minor;if(i&&!e.minor)return"";var a=n.len!==void 0?n.len:i?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};Qn.makeLabelFns=function(e,t,r){var n=e.ticklabelposition||"",i=e.tickson||"",a=function(O){return n.indexOf(O)!==-1},o=a("top"),s=a("left"),l=a("right"),u=a("bottom"),c=i!=="boundaries"&&(u||s||o||l),f=a("inside"),h=n==="inside"&&e.ticks==="inside"||!f&&e.ticks==="outside"&&i!=="boundaries",d=0,v=0,x=h?e.ticklen:0;if(f?x*=-1:c&&(x=0),h&&(d+=x,r)){var b=Jo.deg2rad(r);d=x*Math.cos(b)+1,v=x*Math.sin(b)}e.showticklabels&&(h||e.showline)&&(d+=.2*e.tickfont.size),d+=(e.linewidth||1)/2*(f?-1:1);var p={labelStandoff:d,labelShift:v},C,E,A,L,_=0,k=e.side,M=e._id.charAt(0),g=e.tickangle,P;if(M==="x")P=!f&&k==="bottom"||f&&k==="top",L=P?1:-1,f&&(L*=-1),C=v*L,E=t+d*L,A=P?1:-.2,Math.abs(g)===90&&(f?A+=rM:g===-90&&k==="bottom"?A=kb:g===90&&k==="top"?A=rM:A=.5,_=rM/2*(g/90)),p.xFn=function(O){return O.dx+C+_*O.fontSize},p.yFn=function(O){return O.dy+E+O.fontSize*A},p.anchorFn=function(O,V){if(c){if(s)return"end";if(l)return"start"}return!kh(V)||V===0||V===180?"middle":V*L<0!==f?"end":"start"},p.heightFn=function(O,V,G){return V<-60||V>60?-.5*G:e.side==="top"!==f?-G:0};else if(M==="y"){if(P=!f&&k==="left"||f&&k==="right",L=P?1:-1,f&&(L*=-1),C=d,E=v*L,A=0,!f&&Math.abs(g)===90&&(g===-90&&k==="left"||g===90&&k==="right"?A=kb:A=.5),f){var T=kh(g)?+g:0;if(T!==0){var z=Jo.deg2rad(T);_=Math.abs(Math.sin(z))*kb*L,A=0}}p.xFn=function(O){return O.dx+t-(C+O.fontSize*A)*L+_*O.fontSize},p.yFn=function(O){return O.dy+E+O.fontSize*rM},p.anchorFn=function(O,V){return kh(V)&&Math.abs(V)===90?"middle":P?"end":"start"},p.heightFn=function(O,V,G){return e.side==="right"&&(V*=-1),V<-30?-G:V<30?-.5*G:0}}return p};function kL(e){return[e.text,e.x,e.axInfo,e.font,e.fontSize,e.fontColor].join("_")}Qn.drawTicks=function(e,t,r){r=r||{};var n=t._id+"tick",i=[].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."+n).data(i,kL);a.exit().remove(),a.enter().append("path").classed(n,1).classed("ticks",1).classed("crisp",r.crisp!==!1).each(function(o){return nM.stroke(w0.select(this),o.minor?t.minor.tickcolor:t.tickcolor)}).style("stroke-width",function(o){return Xp.crispRound(e,o.minor?t.minor.tickwidth:t.tickwidth,1)+"px"}).attr("d",r.path).style("display",null),LL(t,[Tse]),a.attr("transform",r.transFn)};Qn.drawGrid=function(e,t,r){if(r=r||{},t.tickmode!=="sync"){var n=t._id+"grid",i=t.minor&&t.minor.showgrid,a=i?r.vals.filter(function(p){return p.minor}):[],o=t.showgrid?r.vals.filter(function(p){return!p.minor}):[],s=r.counterAxis;if(s&&Qn.shouldShowZeroLine(e,t,s))for(var l=t.tickmode==="array",u=0;u=0;v--){var x=v?h:d;if(x){var b=x.selectAll("path."+n).data(v?o:a,kL);b.exit().remove(),b.enter().append("path").classed(n,1).classed("crisp",r.crisp!==!1),b.attr("transform",r.transFn).attr("d",r.path).each(function(p){return nM.stroke(w0.select(this),p.minor?t.minor.gridcolor:t.gridcolor||"#ddd")}).style("stroke-dasharray",function(p){return Xp.dashStyle(p.minor?t.minor.griddash:t.griddash,p.minor?t.minor.gridwidth:t.gridwidth)}).style("stroke-width",function(p){return(p.minor?f:t._gw)+"px"}).style("display",null),typeof r.path=="function"&&b.attr("d",r.path)}}LL(t,[oB,sB])}};Qn.drawZeroLine=function(e,t,r){r=r||r;var n=t._id+"zl",i=Qn.shouldShowZeroLine(e,t,r.counterAxis),a=r.layer.selectAll("path."+n).data(i?[{x:0,id:t._id}]:[]);a.exit().remove(),a.enter().append("path").classed(n,1).classed("zl",1).classed("crisp",r.crisp!==!1).each(function(){r.layer.selectAll("path").sort(function(o,s){return gst(o.id,s.id)})}),a.attr("transform",r.transFn).attr("d",r.path).call(nM.stroke,t.zerolinecolor||nM.defaultLine).style("stroke-width",Xp.crispRound(e,t.zerolinewidth,t._gw||1)+"px").style("display",null),LL(t,[aB])};Qn.drawLabels=function(e,t,r){r=r||{};var n=e._fullLayout,i=t._id,a=t.zerolinelayer==="above traces",o=r.cls||i+"tick",s=r.vals.filter(function(j){return j.text}),l=r.labelFns,u=r.secondary?0:t.tickangle,c=(t._prevTickAngles||{})[o],f=r.layer.selectAll("g."+o).data(t.showticklabels?s:[],kL),h=[];f.enter().append("g").classed(o,1).append("text").attr("text-anchor","middle").each(function(j){var re=w0.select(this),oe=e._promises.length;re.call(Eb.positionText,l.xFn(j),l.yFn(j)).call(Xp.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(Eb.convertToTspans,e),e._promises[oe]?h.push(e._promises.pop().then(function(){d(re,u)})):d(re,u)}),LL(t,[dse]),f.exit().remove(),r.repositionOnUpdate&&f.each(function(j){w0.select(this).select("text").call(Eb.positionText,l.xFn(j),l.yFn(j))});function d(j,re){j.each(function(oe){var _e=w0.select(this),Me=_e.select(".text-math-group"),ke=l.anchorFn(oe,re),me=r.transFn.call(_e.node(),oe)+(kh(re)&&+re!=0?" rotate("+re+","+l.xFn(oe)+","+(l.yFn(oe)-oe.fontSize/2)+")":""),ie=Eb.lineCount(_e),Se=oM*oe.fontSize,Le=l.heightFn(oe,kh(re)?+re:0,(ie-1)*Se);if(Le&&(me+=I3(0,Le)),Me.empty()){var Ae=_e.select("text");Ae.attr({transform:me,"text-anchor":ke}),Ae.style("display",null),t._adjustTickLabelsOverflow&&t._adjustTickLabelsOverflow()}else{var De=Xp.bBox(Me.node()).width,Pe=De*{end:-.5,start:.5}[ke];Me.attr("transform",me+I3(Pe,0))}})}t._adjustTickLabelsOverflow=function(){var j=t.ticklabeloverflow;if(!(!j||j==="allow")){var re=j.indexOf("hide")!==-1,oe=t._id.charAt(0)==="x",_e=0,Me=oe?e._fullLayout.width:e._fullLayout.height;if(j.indexOf("domain")!==-1){var ke=Jo.simpleMap(t.range,t.r2l);_e=t.l2p(ke[0])+t._offset,Me=t.l2p(ke[1])+t._offset}var me=Math.min(_e,Me),ie=Math.max(_e,Me),Se=t.side,Le=1/0,Ae=-1/0;f.each(function(Fe){var ce=w0.select(this),Ze=ce.select(".text-math-group");if(Ze.empty()){var ct=Xp.bBox(ce.node()),pt=0;oe?(ct.right>ie||ct.leftie||ct.top+(t.tickangle?0:Fe.fontSize/4)t["_visibleLabelMin_"+ke._id]?ce.style("display","none"):ie.K==="tick"&&!me&&ce.node().style.display!=="none"&&ce.style("display",null)})})})})},d(f,c+1?c:u);function v(){return h.length&&Promise.all(h)}var x=null;function b(){if(d(f,u),s.length&&t.autotickangles&&(t.type!=="log"||String(t.dtick).charAt(0)!=="D")){x=t.autotickangles[0];var j=0,re=[],oe,_e=1;f.each(function(wr){j=Math.max(j,wr.fontSize);var ur=t.l2p(wr.x),Qe=uB(this),Et=Xp.bBox(Qe.node());_e=Math.max(_e,Eb.lineCount(Qe)),re.push({top:0,bottom:10,height:10,left:ur-Et.width/2,right:ur+Et.width/2+2,width:Et.width+2})});var Me=(t.tickson==="boundaries"||t.showdividers)&&!r.secondary,ke=s.length,me=Math.abs((s[ke-1].x-s[0].x)*t._m)/(ke-1),ie=Me?me/2:me,Se=Me?t.ticklen:j*1.25*_e,Le=Math.sqrt(Math.pow(ie,2)+Math.pow(Se,2)),Ae=ie/Le,De=t.autotickangles.map(function(wr){return wr*Math.PI/180}),Pe=De.find(function(wr){return Math.abs(Math.cos(wr))<=Ae});Pe===void 0&&(Pe=De.reduce(function(wr,ur){return Math.abs(Math.cos(wr))Z*G&&(z=G,g[M]=P[M]=O[M])}var H=Math.abs(z-T);H-L>0?(H-=L,L*=1+L/H):L=0,t._id.charAt(0)!=="y"&&(L=-L),g[k]=E.p2r(E.r2p(P[k])+_*L),E.autorange==="min"||E.autorange==="max reversed"?(g[0]=null,E._rangeInitial0=void 0,E._rangeInitial1=void 0):(E.autorange==="max"||E.autorange==="min reversed")&&(g[1]=null,E._rangeInitial0=void 0,E._rangeInitial1=void 0),n._insideTickLabelsUpdaterange[E._name+".range"]=g}var N=Jo.syncOrAsync(p);return N&&N.then&&e._promises.push(N),N};function Nst(e,t,r){var n=t._id+"divider",i=r.vals,a=r.layer.selectAll("path."+n).data(i,kL);a.exit().remove(),a.enter().insert("path",":first-child").classed(n,1).classed("crisp",1).call(nM.stroke,t.dividercolor).style("stroke-width",Xp.crispRound(e,t.dividerwidth,1)+"px"),a.attr("transform",r.transFn).attr("d",r.path)}Qn.getPxPosition=function(e,t){var r=e._fullLayout._size,n=t._id.charAt(0),i=t.side,a;if(t.anchor!=="free"?a=t._anchorAxis:n==="x"?a={_offset:r.t+(1-(t.position||0))*r.h,_length:0}:n==="y"&&(a={_offset:r.l+(t.position||0)*r.w+t._shift,_length:0}),i==="top"||i==="left")return a._offset;if(i==="bottom"||i==="right")return a._offset+a._length};function wse(e){var t=e.title.font.size,r=(e.title.text.match(Eb.BR_TAG_ALL)||[]).length;return e.title.hasOwnProperty("standoff")?t*(kb+r*oM):r?t*(r+1)*oM:t}function Ust(e,t){var r=e._fullLayout,n=t._id,i=n.charAt(0),a=t.title.font.size,o,s=(t.title.text.match(Eb.BR_TAG_ALL)||[]).length;if(t.title.hasOwnProperty("standoff"))t.side==="bottom"||t.side==="right"?o=t._depth+t.title.standoff+a*kb:(t.side==="top"||t.side==="left")&&(o=t._depth+t.title.standoff+a*(rM+s*oM));else{var l=lM(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||(i==="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=Qn.getPxPosition(e,t),f,h,d;i==="x"?(h=t._offset+t._length/2,d=t.side==="top"?c-o:c+o):(d=t._offset+t._length/2,h=t.side==="right"?c+o:c-o,f={rotate:"-90",offset:0});var v;if(t.type!=="multicategory"){var x=t._selections[t._id+"tick"];if(v={selection:x,side:t.side},x&&x.node()&&x.node().parentNode){var b=Xp.getTranslate(x.node().parentNode);v.offsetLeft=b.x,v.offsetTop=b.y}t.title.hasOwnProperty("standoff")&&(v.pad=0)}return t._titleStandoff=o,sst.draw(e,n+"title",{propContainer:t,propName:t._name+".title.text",placeholder:r._dfltTitle[i],avoid:v,transform:f,attributes:{x:h,y:d,"text-anchor":"middle"}})}Qn.shouldShowZeroLine=function(e,t,r){var n=Jo.simpleMap(t.range,t.r2l);return n[0]*n[1]<=0&&t.zeroline&&(t.type==="linear"||t.type==="-")&&!(t.rangebreaks&&t.maskBreaks(0)===EL)&&(Lse(t,0)||!Vst(e,t,r,n)||Gst(e,t))};Qn.clipEnds=function(e,t){return t.filter(function(r){return Lse(e,r.x)})};function Lse(e,t){var r=e.l2p(t);return r>1&&r1)for(i=1;i=i.min&&e=dst:/%L/.test(t)?e>=hst:/%[SX]/.test(t)?e>=AL:/%M/.test(t)?e>=aM:/%[HI]/.test(t)?e>=xm:/%p/.test(t)?e>=l_:/%[Aadejuwx]/.test(t)?e>=zv:/%[UVW]/.test(t)?e>=Zp:/%[Bbm]/.test(t)?e>=TL:/%[q]/.test(t)?e>=wL:/%[Yy]/.test(t)?e>=bL:!0}});var pB=ye((jir,Dse)=>{"use strict";Dse.exports=function(t,r,n){var i,a;if(n){var o=r==="reversed"||r==="min reversed"||r==="max reversed";i=n[o?1:0],a=n[o?0:1]}var s=t("autorangeoptions.minallowed",a===null?i:void 0),l=t("autorangeoptions.maxallowed",i===null?a:void 0);s===void 0&&t("autorangeoptions.clipmin"),l===void 0&&t("autorangeoptions.clipmax"),t("autorangeoptions.include")}});var gB=ye((Wir,Fse)=>{"use strict";var Yst=pB();Fse.exports=function(t,r,n,i){var a=r._template||{},o=r.type||a.type||"-";n("minallowed"),n("maxallowed");var s=n("range");if(!s){var l;!i.noInsiderange&&o!=="log"&&(l=n("insiderange"),l&&(l[0]===null||l[1]===null)&&(r.insiderange=!1,l=void 0),l&&(s=n("range",l)))}var u=r.getAutorangeDflt(s,i),c=n("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,i),c=n("autorange",u)),c&&(Yst(n,c,s),(o==="linear"||o==="-")&&n("rangemode")),r.cleanRange()}});var Ose=ye((Xir,zse)=>{var Kst={left:0,top:0};zse.exports=Jst;function Jst(e,t,r){t=t||e.currentTarget||e.srcElement,Array.isArray(r)||(r=[0,0]);var n=e.clientX||0,i=e.clientY||0,a=$st(t);return r[0]=n-a.left,r[1]=i-a.top,r}function $st(e){return e===window||e===document||e===document.body?Kst:e.getBoundingClientRect()}});var PL=ye((Zir,qse)=>{"use strict";var Qst=QO();function elt(){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}qse.exports=Qst&&elt()});var Nse=ye((Yir,Bse)=>{"use strict";Bse.exports=function(t,r,n,i,a){var o=(t-n)/(i-n),s=o+r/(i-n),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 Gse=ye((Kir,Vse)=>{"use strict";var Use=Dr(),tlt=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];Vse.exports=function(t,r,n,i){return n==="left"?t=0:n==="center"?t=1:n==="right"?t=2:t=Use.constrain(Math.floor(t*3),0,2),i==="bottom"?r=0:i==="middle"?r=1:i==="top"?r=2:r=Use.constrain(Math.floor(r*3),0,2),tlt[r][t]}});var jse=ye((Jir,Hse)=>{"use strict";var rlt=g3(),ilt=D6(),nlt=OS().getGraphDiv,alt=RS(),mB=Hse.exports={};mB.wrapped=function(e,t,r){e=nlt(e),e._fullLayout&&ilt.clear(e._fullLayout._uid+alt.HOVERID),mB.raw(e,t,r)};mB.raw=function(t,r){var n=t._fullLayout,i=t._hoverdata;r||(r={}),!(r.target&&!t._dragged&&rlt.triggerHandler(t,"plotly_beforehover",r)===!1)&&(n._hoverlayer.selectAll("g").remove(),n._hoverlayer.selectAll("line").remove(),n._hoverlayer.selectAll("circle").remove(),t._hoverdata=void 0,r.target&&i&&t.emit("plotly_unhover",{event:r,points:i}))}});var gv=ye(($ir,Yse)=>{"use strict";var olt=Ose(),yB=tq(),slt=PL(),llt=Dr().removeElement,ult=hd(),Lb=Yse.exports={};Lb.align=Nse();Lb.getCursor=Gse();var Xse=jse();Lb.unhover=Xse.wrapped;Lb.unhoverRaw=Xse.raw;Lb.init=function(t){var r=t.gd,n=1,i=r._context.doubleClickDelay,a=t.element,o,s,l,u,c,f,h,d;r._mouseDownTime||(r._mouseDownTime=0),a.style.pointerEvents="all",a.onmousedown=b,slt?(a._ontouchstart&&a.removeEventListener("touchstart",a._ontouchstart),a._ontouchstart=b,a.addEventListener("touchstart",b,{passive:!1})):a.ontouchstart=b;function v(E,A,L){return Math.abs(E)i&&(n=Math.max(n-1,1)),r._dragged)t.doneFn&&t.doneFn();else{var A;f.target===h?A=f:(A={target:h,srcElement:h,toElement:h},Object.keys(f).concat(Object.keys(f.__proto__)).forEach(L=>{var _=f[L];!A[L]&&typeof _!="function"&&(A[L]=_)})),t.clickFn&&t.clickFn(n,A),d||h.dispatchEvent(new MouseEvent("click",E))}r._dragging=!1,r._dragged=!1}};function Zse(){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}Lb.coverSlip=Zse;function Wse(e){return olt(e.changedTouches?e.changedTouches[0]:e,document.body)}});var Tg=ye((Qir,Kse)=>{"use strict";Kse.exports=function(t,r){(t.attr("class")||"").split(" ").forEach(function(n){n.indexOf("cursor-")===0&&t.classed(n,!1)}),r&&t.classed("cursor-"+r,!0)}});var Qse=ye((enr,$se)=>{"use strict";var _B=Tg(),uM="data-savedcursor",Jse="!!";$se.exports=function(t,r){var n=t.attr(uM);if(r){if(!n){for(var i=(t.attr("class")||"").split(" "),a=0;a{"use strict";var xB=ec(),clt=Eh();ele.exports={_isSubplotObj:!0,visible:{valType:"boolean",dflt:!0,editType:"legend"},bgcolor:{valType:"color",editType:"legend"},bordercolor:{valType:"color",dflt:clt.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"},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"},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 RL=ye(IL=>{"use strict";IL.isGrouped=function(t){return(t.traceorder||"").indexOf("grouped")!==-1};IL.isVertical=function(t){return t.orientation!=="h"};IL.isReversed=function(t){return(t.traceorder||"").indexOf("reversed")!==-1}});var AB=ye((inr,tle)=>{"use strict";var wB=qa(),Yp=Dr(),flt=pl(),hlt=Vl(),dlt=bB(),vlt=s3(),TB=RL();function plt(e,t,r,n){var i=t[e]||{},a=flt.newContainer(r,e);function o(H,N){return Yp.coerce(i,a,dlt,H,N)}var s=Yp.coerceFont(o,"font",r.font);o("bgcolor",r.paper_bgcolor),o("bordercolor");var l=o("visible");if(l){for(var u,c=function(H,N){var j=u._input,re=u;return Yp.coerce(j,re,hlt,H,N)},f=r.font||{},h=Yp.coerceFont(o,"grouptitlefont",f,{overrideDflt:{size:Math.round(f.size*1.1)}}),d=0,v=!1,x="normal",b=(r.shapes||[]).filter(function(H){return H.showlegend}),p=n.concat(b).filter(function(H){return e===(H.legend||"legend")}),C=0;C(e==="legend"?1:0));if(A===!1&&(r[e]=void 0),!(A===!1&&!i.uirevision)&&(o("uirevision",r.uirevision),A!==!1)){o("borderwidth");var L=o("orientation"),_=o("yref"),k=o("xref"),M=L==="h",g=_==="paper",P=k==="paper",T,z,O,V="left";M?(T=0,wB.getComponentMethod("rangeslider","isVisible")(t.xaxis)?g?(z=1.1,O="bottom"):(z=1,O="top"):g?(z=-.1,O="top"):(z=0,O="bottom")):(z=1,O="auto",P?T=1.02:(T=1,V="right")),Yp.coerce(i,a,{x:{valType:"number",editType:"legend",min:P?-2:0,max:P?3:1,dflt:T}},"x"),Yp.coerce(i,a,{y:{valType:"number",editType:"legend",min:g?-2:0,max:g?3:1,dflt:z}},"y"),o("traceorder",x),TB.isGrouped(r[e])&&o("tracegroupgap"),o("entrywidth"),o("entrywidthmode"),o("indentation"),o("itemsizing"),o("itemwidth"),o("itemclick"),o("itemdoubleclick"),o("groupclick"),o("xanchor",V),o("yanchor",O),o("maxheight"),o("valign"),Yp.noneOrAll(i,a,["x","y"]);var G=o("title.text");if(G){o("title.side",M?"left":"top");var Z=Yp.extendFlat({},s,{size:Yp.bigFont(s.size)});Yp.coerceFont(o,"title.font",Z)}}}}tle.exports=function(t,r,n){var i,a=n.slice(),o=r.shapes;if(o)for(i=0;i{"use strict";var D3=qa(),MB=Dr(),glt=MB.pushUnique,SB=!0;rle.exports=function(t,r,n){var i=r._fullLayout;if(r._dragged||r._editing)return;var a=i.legend.itemclick,o=i.legend.itemdoubleclick,s=i.legend.groupclick;n===1&&a==="toggle"&&o==="toggleothers"&&SB&&r.data&&r._context.showTips&&MB.notifier(MB._(r,"Double-click on legend to isolate one trace"),"long"),SB=!1;var l;if(n===1?l=a:n===2&&(l=o),!l)return;var u=s==="togglegroup",c=i.hiddenlabels?i.hiddenlabels.slice():[],f=t.data()[0][0];if(f.groupTitle&&f.noClick)return;var h=r._fullData,d=(i.shapes||[]).filter(function(Gt){return Gt.showlegend}),v=h.concat(d),x=f.trace;x._isShape&&(x=x._fullInput);var b=x.legendgroup,p,C,E,A,L,_,k={},M=[],g=[],P=[];function T(Gt,Nt){var $t=M.indexOf(Gt),sr=k.visible;return sr||(sr=k.visible=[]),M.indexOf(Gt)===-1&&(M.push(Gt),$t=M.length-1),sr[$t]=Nt,$t}var z=(i.shapes||[]).map(function(Gt){return Gt._input}),O=!1;function V(Gt,Nt){z[Gt].visible=Nt,O=!0}function G(Gt,Nt){if(!(f.groupTitle&&!u)){var $t=Gt._fullInput||Gt,sr=$t._isShape,wr=$t.index;wr===void 0&&(wr=$t._index);var ur=$t.visible===!1?!1:Nt;sr?V(wr,ur):T(wr,ur)}}var Z=x.legend,H=x._fullInput,N=H&&H._isShape;if(!N&&D3.traceIs(x,"pie-like")){var j=f.label,re=c.indexOf(j);if(l==="toggle")re===-1?c.push(j):c.splice(re,1);else if(l==="toggleothers"){var oe=re!==-1,_e=[];for(p=0;p{"use strict";nle.exports={scrollBarWidth:6,scrollBarMinHeight:20,scrollBarColor:"#808BA4",scrollBarMargin:4,scrollBarEnterAttrs:{rx:20,ry:3,width:0,height:0},titlePad:2,itemGap:5}});var sle=ye((onr,ole)=>{"use strict";var ale=qa(),CB=RL();ole.exports=function(t,r,n){var i=r._inHover,a=CB.isGrouped(r),o=CB.isReversed(r),s={},l=[],u=!1,c={},f=0,h=0,d,v;function x(H,N,j){if(r.visible!==!1&&!(n&&H!==r._id))if(N===""||!CB.isGrouped(r)){var re="~~i"+f;l.push(re),s[re]=[j],f++}else l.indexOf(N)===-1?(l.push(N),u=!0,s[N]=[j]):s[N].push(j)}for(d=0;dP&&(g=P)}k[d][0]._groupMinRank=g,k[d][0]._preGroupSort=d}var T=function(H,N){return H[0]._groupMinRank-N[0]._groupMinRank||H[0]._preGroupSort-N[0]._preGroupSort},z=function(H,N){return H.trace.legendrank-N.trace.legendrank||H._preSort-N._preSort};for(k.forEach(function(H,N){H[0]._preGroupSort=N}),k.sort(T),d=0;d{"use strict";var DL=Dr();function lle(e){return e.indexOf("e")!==-1?e.replace(/[.]?0+e/,"e"):e.indexOf(".")!==-1?e.replace(/[.]?0+$/,""):e}Pb.formatPiePercent=function(t,r){var n=lle((t*100).toPrecision(3));return DL.numSeparate(n,r)+"%"};Pb.formatPieValue=function(t,r){var n=lle(t.toPrecision(10));return DL.numSeparate(n,r)};Pb.getFirstFilled=function(t,r){if(DL.isArrayOrTypedArray(t))for(var n=0;n{"use strict";var mlt=So(),ylt=Ca();ule.exports=function(t,r,n,i){var a=n.marker.pattern;a&&a.shape?mlt.pointStyle(t,n,i,r):ylt.fill(t,r.color)}});var F3=ye((unr,dle)=>{"use strict";var fle=Ca(),hle=u_().castOption,_lt=cle();dle.exports=function(t,r,n,i){var a=n.marker.line,o=hle(a.color,r.pts)||fle.defaultLine,s=hle(a.width,r.pts)||0;t.call(_lt,r,n,i).style("stroke-width",s).call(fle.stroke,o)}});var IB=ye((cnr,_le)=>{"use strict";var Ov=Oa(),kB=qa(),mv=Dr(),vle=mv.strTranslate,Kp=So(),T0=Ca(),LB=Dv().extractOpts,FL=Ru(),xlt=F3(),blt=u_().castOption,wlt=EB(),ple=12,gle=5,Ib=2,Tlt=10,z3=5;_le.exports=function(t,r,n){var i=r._fullLayout;n||(n=i.legend);var a=n.itemsizing==="constant",o=n.itemwidth,s=(o+wlt.itemGap*2)/2,l=vle(s,0),u=function(k,M,g,P){var T;if(k+1)T=k;else if(M&&M.width>0)T=M.width;else return 0;return a?P:Math.min(T,g)};t.each(function(k){var M=Ov.select(this),g=mv.ensureSingle(M,"g","layers");g.style("opacity",k[0].trace.opacity);var P=n.indentation,T=n.valign,z=k[0].lineHeight,O=k[0].height;if(T==="middle"&&P===0||!z||!O)g.attr("transform",null);else{var V={top:1,bottom:-1}[T],G=V*(.5*(z-O+3))||0,Z=n.indentation;g.attr("transform",vle(Z,G))}var H=g.selectAll("g.legendfill").data([k]);H.enter().append("g").classed("legendfill",!0);var N=g.selectAll("g.legendlines").data([k]);N.enter().append("g").classed("legendlines",!0);var j=g.selectAll("g.legendsymbols").data([k]);j.enter().append("g").classed("legendsymbols",!0),j.selectAll("g.legendpoints").data([k]).enter().append("g").classed("legendpoints",!0)}).each(_).each(h).each(v).each(d).each(b).each(A).each(E).each(c).each(f).each(p).each(C);function c(k){var M=mle(k),g=M.showFill,P=M.showLine,T=M.showGradientLine,z=M.showGradientFill,O=M.anyFill,V=M.anyLine,G=k[0],Z=G.trace,H,N,j=LB(Z),re=j.colorscale,oe=j.reversescale,_e=function(Ae){if(Ae.size())if(g)Kp.fillGroupStyle(Ae,r,!0);else{var De="legendfill-"+Z.uid;Kp.gradient(Ae,r,De,PB(oe),re,"fill")}},Me=function(Ae){if(Ae.size()){var De="legendline-"+Z.uid;Kp.lineGroupStyle(Ae),Kp.gradient(Ae,r,De,PB(oe),re,"stroke")}},ke=FL.hasMarkers(Z)||!O?"M5,0":V?"M5,-2":"M5,-3",me=Ov.select(this),ie=me.select(".legendfill").selectAll("path").data(g||z?[k]:[]);if(ie.enter().append("path").classed("js-fill",!0),ie.exit().remove(),ie.attr("d",ke+"h"+o+"v6h-"+o+"z").call(_e),P||T){var Se=u(void 0,Z.line,Tlt,gle);N=mv.minExtend(Z,{line:{width:Se}}),H=[mv.minExtend(G,{trace:N})]}var Le=me.select(".legendlines").selectAll("path").data(P||T?[H]:[]);Le.enter().append("path").classed("js-line",!0),Le.exit().remove(),Le.attr("d",ke+(T?"l"+o+",0.0001":"h"+o)).call(P?Kp.lineGroupStyle:Me)}function f(k){var M=mle(k),g=M.anyFill,P=M.anyLine,T=M.showLine,z=M.showMarker,O=k[0],V=O.trace,G=!z&&!P&&!g&&FL.hasText(V),Z,H;function N(ie,Se,Le,Ae){var De=mv.nestedProperty(V,ie).get(),Pe=mv.isArrayOrTypedArray(De)&&Se?Se(De):De;if(a&&Pe&&Ae!==void 0&&(Pe=Ae),Le){if(PeLe[1])return Le[1]}return Pe}function j(ie){return O._distinct&&O.index&&ie[O.index]?ie[O.index]:ie[0]}if(z||G||T){var re={},oe={};if(z){re.mc=N("marker.color",j),re.mx=N("marker.symbol",j),re.mo=N("marker.opacity",mv.mean,[.2,1]),re.mlc=N("marker.line.color",j),re.mlw=N("marker.line.width",mv.mean,[0,5],Ib),oe.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var _e=N("marker.size",mv.mean,[2,16],ple);re.ms=_e,oe.marker.size=_e}T&&(oe.line={width:N("line.width",j,[0,10],gle)}),G&&(re.tx="Aa",re.tp=N("textposition",j),re.ts=10,re.tc=N("textfont.color",j),re.tf=N("textfont.family",j),re.tw=N("textfont.weight",j),re.ty=N("textfont.style",j),re.tv=N("textfont.variant",j),re.tC=N("textfont.textcase",j),re.tE=N("textfont.lineposition",j),re.tS=N("textfont.shadow",j)),Z=[mv.minExtend(O,re)],H=mv.minExtend(V,oe),H.selectedpoints=null,H.texttemplate=null}var Me=Ov.select(this).select("g.legendpoints"),ke=Me.selectAll("path.scatterpts").data(z?Z:[]);ke.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",l),ke.exit().remove(),ke.call(Kp.pointStyle,H,r),z&&(Z[0].mrc=3);var me=Me.selectAll("g.pointtext").data(G?Z:[]);me.enter().append("g").classed("pointtext",!0).append("text").attr("transform",l),me.exit().remove(),me.selectAll("text").call(Kp.textPointStyle,H,r)}function h(k){var M=k[0].trace,g=M.type==="waterfall";if(k[0]._distinct&&g){var P=k[0].trace[k[0].dir].marker;return k[0].mc=P.color,k[0].mlw=P.line.width,k[0].mlc=P.line.color,x(k,this,"waterfall")}var T=[];M.visible&&g&&(T=k[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=Ov.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(T);z.enter().append("path").classed("legendwaterfall",!0).attr("transform",l).style("stroke-miterlimit",1),z.exit().remove(),z.each(function(O){var V=Ov.select(this),G=M[O[0]].marker,Z=u(void 0,G.line,z3,Ib);V.attr("d",O[1]).style("stroke-width",Z+"px").call(T0.fill,G.color),Z&&V.call(T0.stroke,G.line.color)})}function d(k){x(k,this)}function v(k){x(k,this,"funnel")}function x(k,M,g){var P=k[0].trace,T=P.marker||{},z=T.line||{},O=T.cornerradius?"M6,3a3,3,0,0,1-3,3H-3a3,3,0,0,1-3-3V-3a3,3,0,0,1,3-3H3a3,3,0,0,1,3,3Z":"M6,6H-6V-6H6Z",V=g?P.visible&&P.type===g:kB.traceIs(P,"bar"),G=Ov.select(M).select("g.legendpoints").selectAll("path.legend"+g).data(V?[k]:[]);G.enter().append("path").classed("legend"+g,!0).attr("d",O).attr("transform",l),G.exit().remove(),G.each(function(Z){var H=Ov.select(this),N=Z[0],j=u(N.mlw,T.line,z3,Ib);H.style("stroke-width",j+"px");var re=N.mcc;if(!n._inHover&&"mc"in N){var oe=LB(T),_e=oe.mid;_e===void 0&&(_e=(oe.max+oe.min)/2),re=Kp.tryColorscale(T,"")(_e)}var Me=re||N.mc||T.color,ke=T.pattern,me=Kp.getPatternAttr,ie=ke&&(me(ke.shape,0,"")||me(ke.path,0,""));if(ie){var Se=me(ke.bgcolor,0,null),Le=me(ke.fgcolor,0,null),Ae=ke.fgopacity,De=yle(ke.size,8,10),Pe=yle(ke.solidity,.5,1),ge="legend-"+P.uid;H.call(Kp.pattern,"legend",r,ge,ie,De,Pe,re,ke.fillmode,Se,Le,Ae)}else H.call(T0.fill,Me);j&&T0.stroke(H,N.mlc||z.color)})}function b(k){var M=k[0].trace,g=Ov.select(this).select("g.legendpoints").selectAll("path.legendbox").data(M.visible&&kB.traceIs(M,"box-violin")?[k]:[]);g.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",l),g.exit().remove(),g.each(function(){var P=Ov.select(this);if((M.boxpoints==="all"||M.points==="all")&&T0.opacity(M.fillcolor)===0&&T0.opacity((M.line||{}).color)===0){var T=mv.minExtend(M,{marker:{size:a?ple:mv.constrain(M.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});g.call(Kp.pointStyle,T,r)}else{var z=u(void 0,M.line,z3,Ib);P.style("stroke-width",z+"px").call(T0.fill,M.fillcolor),z&&T0.stroke(P,M.line.color)}})}function p(k){var M=k[0].trace,g=Ov.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(M.visible&&M.type==="candlestick"?[k,k]:[]);g.enter().append("path").classed("legendcandle",!0).attr("d",function(P,T){return T?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",l).style("stroke-miterlimit",1),g.exit().remove(),g.each(function(P,T){var z=Ov.select(this),O=M[T?"increasing":"decreasing"],V=u(void 0,O.line,z3,Ib);z.style("stroke-width",V+"px").call(T0.fill,O.fillcolor),V&&T0.stroke(z,O.line.color)})}function C(k){var M=k[0].trace,g=Ov.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(M.visible&&M.type==="ohlc"?[k,k]:[]);g.enter().append("path").classed("legendohlc",!0).attr("d",function(P,T){return T?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",l).style("stroke-miterlimit",1),g.exit().remove(),g.each(function(P,T){var z=Ov.select(this),O=M[T?"increasing":"decreasing"],V=u(void 0,O.line,z3,Ib);z.style("fill","none").call(Kp.dashLine,O.line.dash,V),V&&T0.stroke(z,O.line.color)})}function E(k){L(k,this,"pie")}function A(k){L(k,this,"funnelarea")}function L(k,M,g){var P=k[0],T=P.trace,z=g?T.visible&&T.type===g:kB.traceIs(T,g),O=Ov.select(M).select("g.legendpoints").selectAll("path.legend"+g).data(z?[k]:[]);if(O.enter().append("path").classed("legend"+g,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",l),O.exit().remove(),O.size()){var V=T.marker||{},G=u(blt(V.line.width,P.pts),V.line,z3,Ib),Z="pieLike",H=mv.minExtend(T,{marker:{line:{width:G}}},Z),N=mv.minExtend(P,{trace:H},Z);xlt(O,N,H,r)}}function _(k){var M=k[0].trace,g,P=[];if(M.visible)switch(M.type){case"histogram2d":case"heatmap":P=[["M-15,-2V4H15V-2Z"]],g=!0;break;case"choropleth":case"choroplethmapbox":case"choroplethmap":P=[["M-6,-6V6H6V-6Z"]],g=!0;break;case"densitymapbox":case"densitymap":P=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],g="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"]],g=!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"]],g=!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"]],g=!0;break;case"mesh3d":P=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],g=!1;break;case"volume":P=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],g=!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"]],g=!1;break}var T=Ov.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(P);T.enter().append("path").classed("legend3dandfriends",!0).attr("transform",l).style("stroke-miterlimit",1),T.exit().remove(),T.each(function(z,O){var V=Ov.select(this),G=LB(M),Z=G.colorscale,H=G.reversescale,N=function(_e){if(_e.size()){var Me="legendfill-"+M.uid;Kp.gradient(_e,r,Me,PB(H,g==="radial"),Z,"fill")}},j;if(Z){if(!g){var oe=Z.length;j=O===0?Z[H?oe-1:0][1]:O===1?Z[H?0:oe-1][1]:Z[Math.floor((oe-1)/2)][1]}}else{var re=M.vertexcolor||M.facecolor||M.color;j=mv.isArrayOrTypedArray(re)?re[O]||re[0]:re}V.attr("d",z[0]),j?V.call(T0.fill,j):V.call(N)})}};function PB(e,t){var r=t?"radial":"horizontal";return r+(e?"":"reversed")}function mle(e){var t=e[0].trace,r=t.contours,n=FL.hasLines(t),i=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:n=l==="none"||l==="heatmap"||r.showlines,r.type==="constraint"?a=r._operation!=="=":(l==="fill"||l==="heatmap")&&(s=!0)}return{showMarker:i,showLine:n,showFill:a,showGradientLine:o,showGradientFill:s,anyLine:n||o,anyFill:a||s}}function yle(e,t,r){return e&&mv.isArrayOrTypedArray(e)?t:e>r?r:e}});var zB=ye((fnr,kle)=>{"use strict";var Ap=Oa(),Lh=Dr(),DB=Mc(),B3=qa(),xle=g3(),RB=gv(),Ph=So(),OL=Ca(),Rb=iu(),ble=ile(),$h=EB(),FB=Kh(),Ele=FB.LINE_SPACING,q3=FB.FROM_TL,wle=FB.FROM_BR,Tle=sle(),Alt=IB(),Ale=RL(),O3=1,Slt=/^legend[0-9]*$/;kle.exports=function(t,r){if(r)Sle(t,r);else{var n=t._fullLayout,i=n._legends,a=n._infolayer.selectAll('[class^="legend"]');a.each(function(){var u=Ap.select(this),c=u.attr("class"),f=c.split(" ")[0];f.match(Slt)&&i.indexOf(f)===-1&&u.remove()});for(var o=0;o1)}var v=n.hiddenlabels||[];if(!s&&(!n.showlegend||!l.length))return o.selectAll("."+i).remove(),n._topdefs.select("#"+a).remove(),DB.autoMargin(e,i);var x=Lh.ensureSingle(o,"g",i,function(M){s||M.attr("pointer-events","all")}),b=Lh.ensureSingleById(n._topdefs,"clipPath",a,function(M){M.append("rect")}),p=Lh.ensureSingle(x,"rect","bg",function(M){M.attr("shape-rendering","crispEdges")});p.call(OL.stroke,r.bordercolor).call(OL.fill,r.bgcolor).style("stroke-width",r.borderwidth+"px");var C=Lh.ensureSingle(x,"g","scrollbox"),E=r.title;r._titleWidth=0,r._titleHeight=0;var A;E.text?(A=Lh.ensureSingle(C,"text",i+"titletext"),A.attr("text-anchor","start").call(Ph.font,E.font).text(E.text),qL(A,C,e,r,O3)):C.selectAll("."+i+"titletext").remove();var L=Lh.ensureSingle(x,"rect","scrollbar",function(M){M.attr($h.scrollBarEnterAttrs).call(OL.fill,$h.scrollBarColor)}),_=C.selectAll("g.groups").data(l);_.enter().append("g").attr("class","groups"),_.exit().remove();var k=_.selectAll("g.traces").data(Lh.identity);k.enter().append("g").attr("class","traces"),k.exit().remove(),k.style("opacity",function(M){var g=M[0].trace;return B3.traceIs(g,"pie-like")?v.indexOf(M[0].label)!==-1?.5:1:g.visible==="legendonly"?.5:1}).each(function(){Ap.select(this).call(Elt,e,r)}).call(Alt,e,r).each(function(){s||Ap.select(this).call(Clt,e,i)}),Lh.syncOrAsync([DB.previousPromises,function(){return Plt(e,_,k,r)},function(){var M=n._size,g=r.borderwidth,P=r.xref==="paper",T=r.yref==="paper";if(E.text&&Mlt(A,r,g),!s){var z,O;P?z=M.l+M.w*r.x-q3[BL(r)]*r._width:z=n.width*r.x-q3[BL(r)]*r._width,T?O=M.t+M.h*(1-r.y)-q3[NL(r)]*r._effHeight:O=n.height*(1-r.y)-q3[NL(r)]*r._effHeight;var V=Ilt(e,i,z,O);if(V)return;if(n.margin.autoexpand){var G=z,Z=O;z=P?Lh.constrain(z,0,n.width-r._width):G,O=T?Lh.constrain(O,0,n.height-r._effHeight):Z,z!==G&&Lh.log("Constrain "+i+".x to make legend fit inside graph"),O!==Z&&Lh.log("Constrain "+i+".y to make legend fit inside graph")}Ph.setTranslate(x,z,O)}if(L.on(".drag",null),x.on("wheel",null),s||r._height<=r._maxHeight||e._context.staticPlot){var H=r._effHeight;s&&(H=r._height),p.attr({width:r._width-g,height:H-g,x:g/2,y:g/2}),Ph.setTranslate(C,0,0),b.select("rect").attr({width:r._width-2*g,height:H-2*g,x:g,y:g}),Ph.setClipUrl(C,a,e),Ph.setRect(L,0,0,0,0),delete r._scrollY}else{var N=Math.max($h.scrollBarMinHeight,r._effHeight*r._effHeight/r._height),j=r._effHeight-N-2*$h.scrollBarMargin,re=r._height-r._effHeight,oe=j/re,_e=Math.min(r._scrollY||0,re);p.attr({width:r._width-2*g+$h.scrollBarWidth+$h.scrollBarMargin,height:r._effHeight-g,x:g/2,y:g/2}),b.select("rect").attr({width:r._width-2*g+$h.scrollBarWidth+$h.scrollBarMargin,height:r._effHeight-2*g,x:g,y:g+_e}),Ph.setClipUrl(C,a,e),De(_e,N,oe),x.on("wheel",function(){_e=Lh.constrain(r._scrollY+Ap.event.deltaY/j*re,0,re),De(_e,N,oe),_e!==0&&_e!==re&&Ap.event.preventDefault()});var Me,ke,me,ie=function(Ze,ct,pt){var Wt=(pt-ct)/oe+Ze;return Lh.constrain(Wt,0,re)},Se=function(Ze,ct,pt){var Wt=(ct-pt)/oe+Ze;return Lh.constrain(Wt,0,re)},Le=Ap.behavior.drag().on("dragstart",function(){var Ze=Ap.event.sourceEvent;Ze.type==="touchstart"?Me=Ze.changedTouches[0].clientY:Me=Ze.clientY,me=_e}).on("drag",function(){var Ze=Ap.event.sourceEvent;Ze.buttons===2||Ze.ctrlKey||(Ze.type==="touchmove"?ke=Ze.changedTouches[0].clientY:ke=Ze.clientY,_e=ie(me,Me,ke),De(_e,N,oe))});L.call(Le);var Ae=Ap.behavior.drag().on("dragstart",function(){var Ze=Ap.event.sourceEvent;Ze.type==="touchstart"&&(Me=Ze.changedTouches[0].clientY,me=_e)}).on("drag",function(){var Ze=Ap.event.sourceEvent;Ze.type==="touchmove"&&(ke=Ze.changedTouches[0].clientY,_e=Se(me,Me,ke),De(_e,N,oe))});C.call(Ae)}function De(Ze,ct,pt){r._scrollY=e._fullLayout[i]._scrollY=Ze,Ph.setTranslate(C,0,-Ze),Ph.setRect(L,r._width,$h.scrollBarMargin+Ze*pt,$h.scrollBarWidth,ct),b.select("rect").attr("y",g+Ze)}if(e._context.edits.legendPosition){var Pe,ge,Fe,ce;x.classed("cursor-move",!0),RB.init({element:x.node(),gd:e,prepFn:function(Ze){if(Ze.target!==L.node()){var ct=Ph.getTranslate(x);Fe=ct.x,ce=ct.y}},moveFn:function(Ze,ct){if(Fe!==void 0&&ce!==void 0){var pt=Fe+Ze,Wt=ce+ct;Ph.setTranslate(x,pt,Wt),Pe=RB.align(pt,r._width,M.l,M.l+M.w,r.xanchor),ge=RB.align(Wt+r._height,-r._height,M.t+M.h,M.t,r.yanchor)}},doneFn:function(){if(Pe!==void 0&&ge!==void 0){var Ze={};Ze[i+".x"]=Pe,Ze[i+".y"]=ge,B3.call("_guiRelayout",e,Ze)}},clickFn:function(Ze,ct){var pt=o.selectAll("g.traces").filter(function(){var Wt=this.getBoundingClientRect();return ct.clientX>=Wt.left&&ct.clientX<=Wt.right&&ct.clientY>=Wt.top&&ct.clientY<=Wt.bottom});pt.size()>0&&Cle(e,x,pt,Ze,ct)}})}}],e)}}function zL(e,t,r){var n=e[0],i=n.width,a=t.entrywidthmode,o=n.trace.legendwidth||t.entrywidth;return a==="fraction"?t._maxWidth*o:r+(o||i)}function Cle(e,t,r,n,i){var a=r.data()[0][0].trace,o={event:i,node:r.node(),curveNumber:a.index,expandedIndex:a.index,data:e.data,layout:e.layout,frames:e._transitionData._frames,config:e._context,fullData:e._fullData,fullLayout:e._fullLayout};a._group&&(o.group=a._group),B3.traceIs(a,"pie-like")&&(o.label=r.datum()[0].label);var s=xle.triggerHandler(e,"plotly_legendclick",o);if(n===1){if(s===!1)return;t._clickTimeout=setTimeout(function(){e._fullLayout&&ble(r,e,n)},e._context.doubleClickDelay)}else if(n===2){t._clickTimeout&&clearTimeout(t._clickTimeout),e._legendMouseDownTime=0;var l=xle.triggerHandler(e,"plotly_legenddoubleclick",o);l!==!1&&s!==!1&&ble(r,e,n)}}function Elt(e,t,r){var n=UL(r),i=e.data()[0][0],a=i.trace,o=B3.traceIs(a,"pie-like"),s=!r._inHover&&t._context.edits.legendText&&!o,l=r._maxNameLength,u,c;i.groupTitle?(u=i.groupTitle.text,c=i.groupTitle.font):(c=r.font,r.entries?u=i.text:(u=o?i.label:a.name,a._meta&&(u=Lh.templateString(u,a._meta))));var f=Lh.ensureSingle(e,"text",n+"text");f.attr("text-anchor","start").call(Ph.font,c).text(s?Mle(u,l):u);var h=r.indentation+r.itemwidth+$h.itemGap*2;Rb.positionText(f,h,0),s?f.call(Rb.makeEditable,{gd:t,text:u}).call(qL,e,t,r).on("edit",function(d){this.text(Mle(d,l)).call(qL,e,t,r);var v=i.trace._fullInput||{},x={};return x.name=d,v._isShape?B3.call("_guiRelayout",t,"shapes["+a.index+"].name",x.name):B3.call("_guiRestyle",t,x,a.index)}):qL(f,e,t,r)}function Mle(e,t){var r=Math.max(4,t);if(e&&e.trim().length>=r/2)return e;e=e||"";for(var n=r-e.length;n>0;n--)e+=" ";return e}function Clt(e,t,r){var n=t._context.doubleClickDelay,i,a=1,o=Lh.ensureSingle(e,"rect",r+"toggle",function(s){t._context.staticPlot||s.style("cursor","pointer").attr("pointer-events","all"),s.call(OL.fill,"rgba(0,0,0,0)")});t._context.staticPlot||(o.on("mousedown",function(){i=new Date().getTime(),i-t._legendMouseDownTimen&&(a=Math.max(a-1,1)),Cle(t,s,e,a,Ap.event)}}))}function qL(e,t,r,n,i){n._inHover&&e.attr("data-notex",!0),Rb.convertToTspans(e,r,function(){klt(t,r,n,i)})}function klt(e,t,r,n){var i=e.data()[0][0];if(!r._inHover&&i&&!i.trace.showlegend){e.remove();return}var a=e.select("g[class*=math-group]"),o=a.node(),s=UL(r);r||(r=t._fullLayout[s]);var l=r.borderwidth,u;n===O3?u=r.title.font:i.groupTitle?u=i.groupTitle.font:u=r.font;var c=u.size*Ele,f,h;if(o){var d=Ph.bBox(o);f=d.height,h=d.width,n===O3?Ph.setTranslate(a,l,l+f*.75):Ph.setTranslate(a,0,f*.25)}else{var v="."+s+(n===O3?"title":"")+"text",x=e.select(v),b=Rb.lineCount(x),p=x.node();if(f=c*b,h=p?Ph.bBox(p).width:0,n===O3)r.title.side==="left"&&(h+=$h.itemGap*2),Rb.positionText(x,l+$h.titlePad,l+c);else{var C=$h.itemGap*2+r.indentation+r.itemwidth;i.groupTitle&&(C=$h.itemGap,h-=r.indentation+r.itemwidth),Rb.positionText(x,C,-c*((b-1)/2-.3))}}n===O3?(r._titleWidth=h,r._titleHeight=f):(i.lineHeight=c,i.height=Math.max(f,16)+3,i.width=h)}function Llt(e){var t=0,r=0,n=e.title.side;return n&&(n.indexOf("left")!==-1&&(t=e._titleWidth),n.indexOf("top")!==-1&&(r=e._titleHeight)),[t,r]}function Plt(e,t,r,n){var i=e._fullLayout,a=UL(n);n||(n=i[a]);var o=i._size,s=Ale.isVertical(n),l=Ale.isGrouped(n),u=n.entrywidthmode==="fraction",c=n.borderwidth,f=2*c,h=$h.itemGap,d=n.indentation+n.itemwidth+h*2,v=2*(c+h),x=NL(n),b=n.y<0||n.y===0&&x==="top",p=n.y>1||n.y===1&&x==="bottom",C=n.tracegroupgap,E={};let{orientation:A,yref:L}=n,{maxheight:_}=n,k=b||p||A!=="v"||L!=="paper";_||(_=k?.5:1);let M=k?i.height:o.h;n._maxHeight=Math.max(_>1?_:_*M,30);var g=0;n._width=0,n._height=0;var P=Llt(n);if(s)r.each(function(De){var Pe=De[0].height;Ph.setTranslate(this,c+P[0],c+P[1]+n._height+Pe/2+h),n._height+=Pe,n._width=Math.max(n._width,De[0].width)}),g=d+n._width,n._width+=h+d+f,n._height+=v,l&&(t.each(function(De,Pe){Ph.setTranslate(this,0,Pe*n.tracegroupgap)}),n._height+=(n._lgroupsLength-1)*n.tracegroupgap);else{var T=BL(n),z=n.x<0||n.x===0&&T==="right",O=n.x>1||n.x===1&&T==="left",V=p||b,G=i.width/2;n._maxWidth=Math.max(z?V&&T==="left"?o.l+o.w:G:O?V&&T==="right"?o.r+o.w:G:o.w,2*d);var Z=0,H=0;r.each(function(De){var Pe=zL(De,n,d);Z=Math.max(Z,Pe),H+=Pe}),g=null;var N=0;if(l){var j=0,re=0,oe=0;t.each(function(){var De=0,Pe=0;Ap.select(this).selectAll("g.traces").each(function(Fe){var ce=zL(Fe,n,d),Ze=Fe[0].height;Ph.setTranslate(this,P[0],P[1]+c+h+Ze/2+Pe),Pe+=Ze,De=Math.max(De,ce),E[Fe[0].trace.legendgroup]=De});var ge=De+h;re>0&&ge+c+re>n._maxWidth?(N=Math.max(N,re),re=0,oe+=j+C,j=Pe):j=Math.max(j,Pe),Ph.setTranslate(this,re,oe),re+=ge}),n._width=Math.max(N,re)+c,n._height=oe+j+v}else{var _e=r.size(),Me=H+f+(_e-1)*h=n._maxWidth&&(N=Math.max(N,Se),me=0,ie+=ke,n._height+=ke,ke=0),Ph.setTranslate(this,P[0]+c+me,P[1]+c+ie+Pe/2+h),Se=me+ge+h,me+=Fe,ke=Math.max(ke,Pe)}),Me?(n._width=me+f,n._height=ke+v):(n._width=Math.max(N,Se)+f,n._height+=ke+v)}}n._width=Math.ceil(Math.max(n._width+P[0],n._titleWidth+2*(c+$h.titlePad))),n._height=Math.ceil(Math.max(n._height+P[1],n._titleHeight+2*(c+$h.itemGap))),n._effHeight=Math.min(n._height,n._maxHeight);var Le=e._context.edits,Ae=Le.legendText||Le.legendPosition;r.each(function(De){var Pe=Ap.select(this).select("."+a+"toggle"),ge=De[0].height,Fe=De[0].trace.legendgroup,ce=zL(De,n,d);l&&Fe!==""&&(ce=E[Fe]);var Ze=Ae?d:g||ce;!s&&!u&&(Ze+=h/2),Ph.setRect(Pe,0,-ge/2,Ze,ge)})}function Ilt(e,t,r,n){var i=e._fullLayout,a=i[t],o=BL(a),s=NL(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:i.width-r,l:r+a._width,b:i.height-n,t:n+a._effHeight};if(l&&u)return DB.autoMargin(e,t,{x:a.x,y:a.y,l:a._width*q3[o],r:a._width*wle[o],b:a._effHeight*wle[s],t:a._effHeight*q3[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 BL(e){return Lh.isRightAnchor(e)?"right":Lh.isCenterAnchor(e)?"center":"left"}function NL(e){return Lh.isBottomAnchor(e)?"bottom":Lh.isMiddleAnchor(e)?"middle":"top"}function UL(e){return e._id||"legend"}});var NB=ye(BB=>{"use strict";var Db=Oa(),Sy=Eo(),Lle=cd(),Ff=Dr(),Rlt=Ff.pushUnique,OB=Ff.strTranslate,Dlt=Ff.strRotate,Flt=g3(),A0=iu(),zlt=Qse(),bm=So(),vd=Ca(),VL=gv(),wm=ho(),Olt=hd().zindexSeparator,U3=qa(),Ag=rp(),Fb=RS(),qlt=AB(),Blt=zB(),qle=Fb.YANGLE,qB=Math.PI*qle/180,Nlt=1/Math.sin(qB),Ult=Math.cos(qB),Vlt=Math.sin(qB),Qc=Fb.HOVERARROWSIZE,ll=Fb.HOVERTEXTPAD,Ple={box:!0,ohlc:!0,violin:!0,candlestick:!0},Glt={scatter:!0,scattergl:!0,splom:!0};function Ile(e,t){return e.distance-t.distance}BB.hover=function(t,r,n,i){t=Ff.getGraphDiv(t);var a=r.target;Ff.throttle(t._fullLayout._uid+Fb.HOVERID,Fb.HOVERMINTIME,function(){Hlt(t,r,n,i,a)})};BB.loneHover=function(t,r){var n=!0;Array.isArray(t)||(n=!1,t=[t]);var i=r.gd,a=Gle(i),o=Hle(i),s=t.map(function(b){var p=b._x0||b.x0||b.x||0,C=b._x1||b.x1||b.x||0,E=b._y0||b.y0||b.y||0,A=b._y1||b.y1||b.y||0,L=b.eventData;if(L){var _=Math.min(p,C),k=Math.max(p,C),M=Math.min(E,A),g=Math.max(E,A),P=b.trace;if(U3.traceIs(P,"gl3d")){var T=i._fullLayout[P.scene]._scene.container,z=T.offsetLeft,O=T.offsetTop;_+=z,k+=z,M+=O,g+=O}L.bbox={x0:_+o,x1:k+o,y0:M+a,y1:g+a},r.inOut_bbox&&r.inOut_bbox.push(L.bbox)}else L=!1;return{color:b.color||vd.defaultLine,x0:b.x0||b.x||0,x1:b.x1||b.x||0,y0:b.y0||b.y||0,y1:b.y1||b.y||0,xLabel:b.xLabel,yLabel:b.yLabel,zLabel:b.zLabel,text:b.text,name:b.name,idealAlign:b.idealAlign,borderColor:b.borderColor,fontFamily:b.fontFamily,fontSize:b.fontSize,fontColor:b.fontColor,fontWeight:b.fontWeight,fontStyle:b.fontStyle,fontVariant:b.fontVariant,nameLength:b.nameLength,textAlign:b.textAlign,trace:b.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:b.hovertemplate||!1,hovertemplateLabels:b.hovertemplateLabels||!1,eventData:L}}),l=!1,u=Nle(s,{gd:i,hovermode:"closest",rotateLabels:l,bgColor:r.bgColor||vd.background,container:Db.select(r.container),outerContainer:r.outerContainer||r.container}),c=u.hoverLabels,f=5,h=0,d=0;c.sort(function(b,p){return b.y0-p.y0}).each(function(b,p){var C=b.y0-b.by/2;C-fk[0]._length||ce<0||ce>M[0]._length)return VL.unhoverRaw(e,t)}if(t.pointerX=Fe+k[0]._offset,t.pointerY=ce+M[0]._offset,"xval"in t?Z=Ag.flat(a,t.xval):Z=Ag.p2c(k,Fe),"yval"in t?H=Ag.flat(a,t.yval):H=Ag.p2c(M,ce),!Sy(Z[0])||!Sy(H[0]))return Ff.warn("Fx.hover failed",t,e),VL.unhoverRaw(e,t)}var pt=1/0;function Wt(pn,Vn){for(j=0;jLe&&(V.splice(0,Le),pt=V[0].distance),f&&O!==0&&V.length===0){Se.distance=O,Se.index=!1;var _t=oe._module.hoverPoints(Se,me,ie,"closest",{hoverLayer:s._hoverlayer});if(_t&&(_t=_t.filter(function($r){return $r.spikeDistance<=O})),_t&&_t.length){var tr,ar=_t.filter(function($r){return $r.xa.showspikes&&$r.xa.spikesnap!=="hovered data"});if(ar.length){var Er=ar[0];Sy(Er.x0)&&Sy(Er.y0)&&(tr=lt(Er),(!Ae.vLinePoint||Ae.vLinePoint.spikeDistance>tr.spikeDistance)&&(Ae.vLinePoint=tr))}var Zr=_t.filter(function($r){return $r.ya.showspikes&&$r.ya.spikesnap!=="hovered data"});if(Zr.length){var ri=Zr[0];Sy(ri.x0)&&Sy(ri.y0)&&(tr=lt(ri),(!Ae.hLinePoint||Ae.hLinePoint.spikeDistance>tr.spikeDistance)&&(Ae.hLinePoint=tr))}}}}}Wt();function st(pn,Vn,kn){for(var ea=null,ua=1/0,Vt,_t=0;_t0&&Math.abs(pn.distance)yt-1;Ur--)Wr(V[Ur]);V=Tr,sr()}var dt=e._hoverdata,Ge=[],Je=Gle(e),je=Hle(e);for(N=0;N1||V.length>1)||h==="closest"&&De&&V.length>1,fi=vd.combine(s.plot_bgcolor||vd.background,s.paper_bgcolor),Hi=Nle(V,{gd:e,hovermode:h,rotateLabels:Jr,bgColor:fi,container:s._hoverlayer,outerContainer:s._paper.node(),commonLabelOpts:s.hoverlabel,hoverdistance:s.hoverdistance}),Pn=Hi.hoverLabels;if(Ag.isUnifiedHover(h)||(Wlt(Pn,Jr,s,Hi.commonLabelBoundingBox),Vle(Pn,Jr,s._invScaleX,s._invScaleY)),i&&i.tagName){var wn=U3.getComponentMethod("annotations","hasClickToShow")(e,Ge);zlt(Db.select(i),wn?"pointer":"")}!i||n||!Ylt(e,t,dt)||(dt&&e.emit("plotly_unhover",{event:t,points:dt}),e.emit("plotly_hover",{event:t,points:e._hoverdata,xaxes:k,yaxes:M,xvals:Z,yvals:H}))}function Ble(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 jlt=/([\s\S]*)<\/extra>/;function Nle(e,t){var r=t.gd,n=r._fullLayout,i=t.hovermode,a=t.rotateLabels,o=t.bgColor,s=t.container,l=t.outerContainer,u=t.commonLabelOpts||{};if(e.length===0)return[[]];var c=t.fontFamily||Fb.HOVERFONT,f=t.fontSize||Fb.HOVERFONTSIZE,h=t.fontWeight||n.font.weight,d=t.fontStyle||n.font.style,v=t.fontVariant||n.font.variant,x=t.fontTextcase||n.font.textcase,b=t.fontLineposition||n.font.lineposition,p=t.fontShadow||n.font.shadow,C=e[0],E=C.xa,A=C.ya,L=i.charAt(0),_=L+"Label",k=C[_];if(k===void 0&&E.type==="multicategory")for(var M=0;Mn.width-je&&($e=n.width-je),yt.attr("d","M"+(dt-$e)+",0L"+(dt-$e+Qc)+","+Je+Qc+"H"+je+"v"+Je+(ll*2+Ur.height)+"H"+-je+"V"+Je+Qc+"H"+(dt-$e-Qc)+"Z"),dt=$e,j.minX=dt-je,j.maxX=dt+je,E.side==="top"?(j.minY=Ge-(ll*2+Ur.height),j.maxY=Ge-ll):(j.minY=Ge+ll,j.maxY=Ge+(ll*2+Ur.height))}else{var wt,Ie,xe;A.side==="right"?(wt="start",Ie=1,xe="",dt=E._offset+E._length):(wt="end",Ie=-1,xe="-",dt=E._offset),Ge=A._offset+(C.y0+C.y1)/2,Yt.attr("text-anchor",wt),yt.attr("d","M0,0L"+xe+Qc+","+Qc+"V"+(ll+Ur.height/2)+"h"+xe+(ll*2+Ur.width)+"V-"+(ll+Ur.height/2)+"H"+xe+Qc+"V-"+Qc+"Z"),j.minY=Ge-(ll+Ur.height/2),j.maxY=Ge+(ll+Ur.height/2),A.side==="right"?(j.minX=dt+Qc,j.maxX=dt+Qc+(ll*2+Ur.width)):(j.minX=dt-Qc-(ll*2+Ur.width),j.maxX=dt-Qc);var Ce=Ur.height/2,vt=P-Ur.top-Ce,nr="clip"+n._uid+"commonlabel"+A._id,ir;if(dt=0?er=wr:ur+pt=0?er=ur:Qe+pt=0?Ut=$t:sr+Wt=0?Ut=sr:Et+Wt=0,(bt.idealAlign==="top"||!di)&&Jr?(xe-=vt/2,bt.anchor="end"):di?(xe+=vt/2,bt.anchor="start"):bt.anchor="middle",bt.crossPos=xe;else{if(bt.pos=xe,di=Ie+Ce/2+oi<=T,Jr=Ie-Ce/2-oi>=0,(bt.idealAlign==="left"||!di)&&Jr)Ie-=Ce/2,bt.anchor="end";else if(di)Ie+=Ce/2,bt.anchor="start";else{bt.anchor="middle";var fi=oi/2,Hi=Ie+fi-T,Pn=Ie-fi;Hi>0&&(Ie-=Hi),Pn<0&&(Ie+=-Pn)}bt.crossPos=Ie}Ge.attr("text-anchor",bt.anchor),je&&Je.attr("text-anchor",bt.anchor),yt.attr("transform",OB(Ie,xe)+(a?Dlt(qle):""))}),{hoverLabels:Ft,commonLabelBoundingBox:j}}function Rle(e,t,r,n,i,a){var o="",s="";e.nameOverride!==void 0&&(e.name=e.nameOverride),e.name&&(e.trace._meta&&(e.name=Ff.templateString(e.name,e.trace._meta)),o=zle(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!=="choroplethmapbox"&&e.trace.type!=="choroplethmap"&&(s+=(s?"z: ":"")+e.zLabel)):t&&e[l+"Label"]===i?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);var c=e.hovertemplate||!1;if(c){var f=e.hovertemplateLabels||e;e[l+"Label"]!==i&&(f[l+"other"]=f[l+"Val"],f[l+"otherLabel"]=f[l+"Label"]),s=Ff.hovertemplateString(c,f,n._d3locale,e.eventData[0]||{},e.trace._meta),s=s.replace(jlt,function(h,d){return o=zle(d,e.nameLength),""})}return[s,o]}function Wlt(e,t,r,n){var i=t?"xa":"ya",a=t?"ya":"xa",o=0,s=1,l=e.size(),u=new Array(l),c=0,f=n.minX,h=n.maxX,d=n.minY,v=n.maxY,x=function(Z){return Z*r._invScaleX},b=function(Z){return Z*r._invScaleY};e.each(function(Z){var H=Z[i],N=Z[a],j=H._id.charAt(0)==="x",re=H.range;c===0&&re&&re[0]>re[1]!==j&&(s=-1);var oe=0,_e=j?r.width:r.height;if(r.hovermode==="x"||r.hovermode==="y"){var Me=Ule(Z,t),ke=Z.anchor,me=ke==="end"?-1:1,ie,Se;if(ke==="middle")ie=Z.crossPos+(j?b(Me.y-Z.by/2):x(Z.bx/2+Z.tx2width/2)),Se=ie+(j?b(Z.by):x(Z.bx));else if(j)ie=Z.crossPos+b(Qc+Me.y)-b(Z.by/2-Qc),Se=ie+b(Z.by);else{var Le=x(me*Qc+Me.x),Ae=Le+x(me*Z.bx);ie=Z.crossPos+Math.min(Le,Ae),Se=Z.crossPos+Math.max(Le,Ae)}j?d!==void 0&&v!==void 0&&Math.min(Se,v)-Math.max(ie,d)>1&&(N.side==="left"?(oe=N._mainLinePosition,_e=r.width):_e=N._mainLinePosition):f!==void 0&&h!==void 0&&Math.min(Se,h)-Math.max(ie,f)>1&&(N.side==="top"?(oe=N._mainLinePosition,_e=r.height):_e=N._mainLinePosition)}u[c++]=[{datum:Z,traceIndex:Z.trace.index,dp:0,pos:Z.pos,posref:Z.posref,size:Z.by*(j?Nlt:1)/2,pmin:oe,pmax:_e}]}),u.sort(function(Z,H){return Z[0].posref-H[0].posref||s*(H[0].traceIndex-Z[0].traceIndex)});var p,C,E,A,L,_,k;function M(Z){var H=Z[0],N=Z[Z.length-1];if(C=H.pmin-H.pos-H.dp+H.size,E=N.pos+N.dp+N.size-H.pmax,C>.01){for(L=Z.length-1;L>=0;L--)Z[L].dp+=C;p=!1}if(!(E<.01)){if(C<-.01){for(L=Z.length-1;L>=0;L--)Z[L].dp-=E;p=!1}if(p){var j=0;for(A=0;AH.pmax&&j++;for(A=Z.length-1;A>=0&&!(j<=0);A--)_=Z[A],_.pos>H.pmax-1&&(_.del=!0,j--);for(A=0;A=0;L--)Z[L].dp-=E;for(A=Z.length-1;A>=0&&!(j<=0);A--)_=Z[A],_.pos+_.dp+_.size>H.pmax&&(_.del=!0,j--)}}}for(;!p&&o<=l;){for(o++,p=!0,A=0;A.01){for(L=P.length-1;L>=0;L--)P[L].dp+=C;for(g.push.apply(g,P),u.splice(A+1,1),k=0,L=g.length-1;L>=0;L--)k+=g[L].dp;for(E=k/g.length,L=g.length-1;L>=0;L--)g[L].dp-=E;p=!1}else A++}u.forEach(M)}for(A=u.length-1;A>=0;A--){var O=u[A];for(L=O.length-1;L>=0;L--){var V=O[L],G=V.datum;G.offset=V.dp,G.del=V.del}}}function Ule(e,t){var r=0,n=e.offset;return t&&(n*=-Vlt,r=e.offset*Ult),{x:r,y:n}}function Xlt(e){var t={start:1,end:-1,middle:0}[e.anchor],r=t*(Qc+ll),n=r+t*(e.txwidth+ll),i=e.anchor==="middle";return i&&(r-=e.tx2width/2,n+=e.txwidth/2+ll),{alignShift:t,textShiftX:r,text2ShiftX:n}}function Vle(e,t,r,n){var i=function(o){return o*r},a=function(o){return o*n};e.each(function(o){var s=Db.select(this);if(o.del)return s.remove();var l=s.select("text.nums"),u=o.anchor,c=u==="end"?-1:1,f=Xlt(o),h=Ule(o,t),d=h.x,v=h.y,x=u==="middle",b="hoverlabel"in o.trace?o.trace.hoverlabel.showarrow:!0,p;x?p="M-"+i(o.bx/2+o.tx2width/2)+","+a(v-o.by/2)+"h"+i(o.bx)+"v"+a(o.by)+"h-"+i(o.bx)+"Z":b?p="M0,0L"+i(c*Qc+d)+","+a(Qc+v)+"v"+a(o.by/2-Qc)+"h"+i(c*o.bx)+"v-"+a(o.by)+"H"+i(c*Qc+d)+"V"+a(v-Qc)+"Z":p="M"+i(c*Qc+d)+","+a(v-o.by/2)+"h"+i(c*o.bx)+"v"+a(o.by)+"h"+i(-c*o.bx)+"Z",s.select("path").attr("d",p);var C=d+f.textShiftX,E=v+o.ty0-o.by/2+ll,A=o.textAlign||"auto";A!=="auto"&&(A==="left"&&u!=="start"?(l.attr("text-anchor","start"),C=x?-o.bx/2-o.tx2width/2+ll:-o.bx-ll):A==="right"&&u!=="end"&&(l.attr("text-anchor","end"),C=x?o.bx/2-o.tx2width/2-ll:o.bx+ll)),l.call(A0.positionText,i(C),a(E)),o.tx2width&&(s.select("text.name").call(A0.positionText,i(f.text2ShiftX+f.alignShift*ll+d),a(v+o.ty0-o.by/2+ll)),s.select("rect").call(bm.setRect,i(f.text2ShiftX+(f.alignShift-1)*o.tx2width/2+d),a(v-o.by/2-1),i(o.tx2width),a(o.by+2)))})}function Zlt(e,t){var r=e.index,n=e.trace||{},i=e.cd[0],a=e.cd[r]||{};function o(h){return h||Sy(h)&&h===0}var s=Array.isArray(r)?function(h,d){var v=Ff.castOption(i,r,h);return o(v)?v:Ff.extractOption({},n,"",d)}:function(h,d){return Ff.extractOption(a,n,h,d)};function l(h,d,v){var x=s(d,v);o(x)&&(e[h]=x)}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"&&n.orientation==="h"?e.xa._offset+(e.x0+e.x1)/2:e.ya._offset+(e.y0+e.y1)/2,e.x0=Ff.constrain(e.x0,0,e.xa._length),e.x1=Ff.constrain(e.x1,0,e.xa._length),e.y0=Ff.constrain(e.y0,0,e.ya._length),e.y1=Ff.constrain(e.y1,0,e.ya._length),e.xLabelVal!==void 0&&(e.xLabel="xLabel"in e?e.xLabel:wm.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:wm.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 u=wm.tickText(e.xa,e.xa.c2l(e.xerr),"hover").text;e.xerrneg!==void 0?e.xLabel+=" +"+u+" / -"+wm.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=wm.tickText(e.ya,e.ya.c2l(e.yerr),"hover").text;e.yerrneg!==void 0?e.yLabel+=" +"+c+" / -"+wm.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 Dle(e,t,r){var n=r.container,i=r.fullLayout,a=i._size,o=r.event,s=!!t.hLinePoint,l=!!t.vLinePoint,u,c;if(n.selectAll(".spikeline").remove(),!!(l||s)){var f=vd.combine(i.plot_bgcolor,i.paper_bgcolor);if(s){var h=t.hLinePoint,d,v;u=h&&h.xa,c=h&&h.ya;var x=c.spikesnap;x==="cursor"?(d=o.pointerX,v=o.pointerY):(d=u._offset+h.x,v=c._offset+h.y);var b=Lle.readability(h.color,f)<1.5?vd.contrast(f):h.color,p=c.spikemode,C=c.spikethickness,E=c.spikecolor||b,A=wm.getPxPosition(e,c),L,_;if(p.indexOf("toaxis")!==-1||p.indexOf("across")!==-1){if(p.indexOf("toaxis")!==-1&&(L=A,_=d),p.indexOf("across")!==-1){var k=c._counterDomainMin,M=c._counterDomainMax;c.anchor==="free"&&(k=Math.min(k,c.position),M=Math.max(M,c.position)),L=a.l+k*a.w,_=a.l+M*a.w}n.insert("line",":first-child").attr({x1:L,x2:_,y1:v,y2:v,"stroke-width":C,stroke:E,"stroke-dasharray":bm.dashStyle(c.spikedash,C)}).classed("spikeline",!0).classed("crisp",!0),n.insert("line",":first-child").attr({x1:L,x2:_,y1:v,y2:v,"stroke-width":C+2,stroke:f}).classed("spikeline",!0).classed("crisp",!0)}p.indexOf("marker")!==-1&&n.insert("circle",":first-child").attr({cx:A+(c.side!=="right"?C:-C),cy:v,r:C,fill:E}).classed("spikeline",!0)}if(l){var g=t.vLinePoint,P,T;u=g&&g.xa,c=g&&g.ya;var z=u.spikesnap;z==="cursor"?(P=o.pointerX,T=o.pointerY):(P=u._offset+g.x,T=c._offset+g.y);var O=Lle.readability(g.color,f)<1.5?vd.contrast(f):g.color,V=u.spikemode,G=u.spikethickness,Z=u.spikecolor||O,H=wm.getPxPosition(e,u),N,j;if(V.indexOf("toaxis")!==-1||V.indexOf("across")!==-1){if(V.indexOf("toaxis")!==-1&&(N=H,j=T),V.indexOf("across")!==-1){var re=u._counterDomainMin,oe=u._counterDomainMax;u.anchor==="free"&&(re=Math.min(re,u.position),oe=Math.max(oe,u.position)),N=a.t+(1-oe)*a.h,j=a.t+(1-re)*a.h}n.insert("line",":first-child").attr({x1:P,x2:P,y1:N,y2:j,"stroke-width":G,stroke:Z,"stroke-dasharray":bm.dashStyle(u.spikedash,G)}).classed("spikeline",!0).classed("crisp",!0),n.insert("line",":first-child").attr({x1:P,x2:P,y1:N,y2:j,"stroke-width":G+2,stroke:f}).classed("spikeline",!0).classed("crisp",!0)}V.indexOf("marker")!==-1&&n.insert("circle",":first-child").attr({cx:P,cy:H-(u.side!=="top"?G:-G),r:G,fill:Z}).classed("spikeline",!0)}}}function Ylt(e,t,r){if(!r||r.length!==e._hoverdata.length)return!0;for(var n=r.length-1;n>=0;n--){var i=r[n],a=e._hoverdata[n];if(i.curveNumber!==a.curveNumber||String(i.pointNumber)!==String(a.pointNumber)||String(i.pointNumbers)!==String(a.pointNumbers)||i.binNumber!==a.binNumber)return!0}return!1}function Fle(e,t){return!t||t.vLinePoint!==e._spikepoints.vLinePoint||t.hLinePoint!==e._spikepoints.hLinePoint}function zle(e,t){return A0.plainText(e||"",{len:t,allowedTags:["br","sub","sup","b","i","em","s","u"]})}function Klt(e,t){for(var r=t.charAt(0),n=[],i=[],a=[],o=0;o{"use strict";var Jlt=Dr(),$lt=Ca(),Qlt=rp().isUnifiedHover;jle.exports=function(t,r,n,i){i=i||{};var a=r.legend;function o(s){i.font[s]||(i.font[s]=a?r.legend.font[s]:r.font[s])}r&&Qlt(r.hovermode)&&(i.font||(i.font={}),o("size"),o("family"),o("color"),o("weight"),o("style"),o("variant"),a?(i.bgcolor||(i.bgcolor=$lt.combine(r.legend.bgcolor,r.paper_bgcolor)),i.bordercolor||(i.bordercolor=r.legend.bordercolor)):i.bgcolor||(i.bgcolor=r.paper_bgcolor)),n("hoverlabel.bgcolor",i.bgcolor),n("hoverlabel.bordercolor",i.bordercolor),n("hoverlabel.namelength",i.namelength),n("hoverlabel.showarrow",i.showarrow),Jlt.coerceFont(n,"hoverlabel.font",i.font),n("hoverlabel.align",i.align)}});var Xle=ye((vnr,Wle)=>{"use strict";var eut=Dr(),tut=cM(),rut=N1();Wle.exports=function(t,r){function n(i,a){return eut.coerce(t,r,rut,i,a)}tut(t,r,n)}});var Kle=ye((pnr,Yle)=>{"use strict";var Zle=Dr(),iut=i3(),nut=cM();Yle.exports=function(t,r,n,i){function a(s,l){return Zle.coerce(t,r,iut,s,l)}var o=Zle.extendFlat({},i.hoverlabel);r.hovertemplate&&(o.namelength=-1),nut(t,r,a,o)}});var UB=ye((gnr,Jle)=>{"use strict";var aut=Dr(),out=N1();Jle.exports=function(t,r){function n(i,a){return r[i]!==void 0?r[i]:aut.coerce(t,r,out,i,a)}return n("clickmode"),n("hoversubplots"),n("hovermode")}});var eue=ye((mnr,Qle)=>{"use strict";var $le=Dr(),sut=N1(),lut=UB(),uut=cM();Qle.exports=function(t,r){function n(c,f){return $le.coerce(t,r,sut,c,f)}var i=lut(t,r);i&&(n("hoverdistance"),n("spikedistance"));var a=n("dragmode");a==="select"&&n("selectdirection");var o=r._has("mapbox"),s=r._has("map"),l=r._has("geo"),u=r._basePlotModules.length;r.dragmode==="zoom"&&((o||s||l)&&u===1||(o||s)&&l&&u===2)&&(r.dragmode="pan"),uut(t,r,n),$le.coerceFont(n,"hoverlabel.grouptitlefont",r.hoverlabel.font)}});var iue=ye((ynr,rue)=>{"use strict";var VB=Dr(),tue=qa();rue.exports=function(t){var r=t.calcdata,n=t._fullLayout;function i(u){return function(c){return VB.coerceHoverinfo({hoverinfo:c},{_module:u._module},n)}}for(var a=0;a{"use strict";var fut=qa(),hut=NB().hover;nue.exports=function(t,r,n){var i=fut.getComponentMethod("annotations","onClick")(t,t._hoverdata);n!==void 0&&hut(t,r,n,!0);function a(){t.emit("plotly_click",{points:t._hoverdata,event:r})}t._hoverdata&&r&&r.target&&(i&&i.then?i.then(a):a(),r.stopImmediatePropagation&&r.stopImmediatePropagation())}});var vf=ye((xnr,lue)=>{"use strict";var dut=Oa(),GL=Dr(),vut=gv(),fM=rp(),oue=N1(),sue=NB();lue.exports={moduleType:"component",name:"fx",constants:RS(),schema:{layout:oue},attributes:i3(),layoutAttributes:oue,supplyLayoutGlobalDefaults:Xle(),supplyDefaults:Kle(),supplyLayoutDefaults:eue(),calc:iue(),getDistanceFunction:fM.getDistanceFunction,getClosest:fM.getClosest,inbox:fM.inbox,quadrature:fM.quadrature,appendArrayPointValue:fM.appendArrayPointValue,castHoverOption:gut,castHoverinfo:mut,hover:sue.hover,unhover:vut.unhover,loneHover:sue.loneHover,loneUnhover:put,click:aue()};function put(e){var t=GL.isD3Selection(e)?e:dut.select(e);t.selectAll("g.hovertext").remove(),t.selectAll(".spikeline").remove()}function gut(e,t,r){return GL.castOption(e,t,"hoverlabel."+r)}function mut(e,t,r){function n(i){return GL.coerceHoverinfo({hoverinfo:i},{_module:e._module},t)}return GL.castOption(e,r,"hoverinfo",n)}});var Sg=ye(My=>{"use strict";My.selectMode=function(e){return e==="lasso"||e==="select"};My.drawMode=function(e){return e==="drawclosedpath"||e==="drawopenpath"||e==="drawline"||e==="drawrect"||e==="drawcircle"};My.openMode=function(e){return e==="drawline"||e==="drawopenpath"};My.rectMode=function(e){return e==="select"||e==="drawline"||e==="drawrect"||e==="drawcircle"};My.freeMode=function(e){return e==="lasso"||e==="drawclosedpath"||e==="drawopenpath"};My.selectingOrDrawing=function(e){return My.freeMode(e)||My.rectMode(e)}});var hM=ye((wnr,uue)=>{"use strict";uue.exports=function(t){var r=t._fullLayout;r._glcanvas&&r._glcanvas.size()&&r._glcanvas.each(function(n){n.regl&&n.regl.clear({color:!0,depth:!0})})}});var HL=ye((Tnr,cue)=>{"use strict";cue.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)"},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)"},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 WL=ye((Anr,fue)=>{"use strict";var jL=32;fue.exports={CIRCLE_SIDES:jL,i000:0,i090:jL/4,i180:jL/2,i270:jL/4*3,cos45:Math.cos(Math.PI/4),sin45:Math.sin(Math.PI/4),SQRT2:Math.sqrt(2)}});var XL=ye((Snr,due)=>{"use strict";var yut=Dr().strTranslate;function hue(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 _ut(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 xut(e){var t=e._id.charAt(0)==="y"?1:0;return function(r){return hue(e,r[t])}}function but(e){return yut(e.xaxis._offset,e.yaxis._offset)}due.exports={p2r:hue,r2p:_ut,axValue:xut,getTransform:but}});var c_=ye(Ey=>{"use strict";var wut=$S(),gue=WL(),V3=gue.CIRCLE_SIDES,GB=gue.SQRT2,mue=XL(),vue=mue.p2r,pue=mue.r2p,Tut=[0,3,4,5,6,1,2],Aut=[0,3,4,1,2];Ey.writePaths=function(e){var t=e.length;if(!t)return"M0,0Z";for(var r="",n=0;n0&&l{"use strict";var yue=hf(),Tue=Sg(),Sut=Tue.drawMode,Mut=Tue.openMode,G3=WL(),_ue=G3.i000,xue=G3.i090,bue=G3.i180,wue=G3.i270,Eut=G3.cos45,Cut=G3.sin45,Aue=XL(),YL=Aue.p2r,f_=Aue.r2p,kut=e_(),Lut=kut.clearOutline,KL=c_(),Put=KL.readPaths,Iut=KL.writePaths,Rut=KL.ellipseOver,Dut=KL.fixDatesForPaths;function Fut(e,t){if(e.length){var r=e[0][0];if(r){var n=t.gd,i=t.isActiveShape,a=t.dragmode,o=(n.layout||{}).shapes||[];if(!Sut(a)&&i!==void 0){var s=n._fullLayout._activeShapeIndex;if(s{"use strict";var zut=Sg(),Out=zut.selectMode,qut=e_(),But=qut.clearOutline,HB=c_(),Nut=HB.readPaths,Uut=HB.writePaths,Vut=HB.fixDatesForPaths;Eue.exports=function(t,r){if(t.length){var n=t[0][0];if(n){var i=n.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(!Out(f)&&c!==void 0){var d=a._fullLayout._activeSelectionIndex;if(d{"use strict";Cue.exports={segmentRE:/[MLHVQCTSZ][^MLHVQCTSZ]*/g,paramRE:/[^\s,]+/g,paramIsX:{M:{0:!0,drawn:0},L:{0:!0,drawn:0},H:{0:!0,drawn:0},V:{},Q:{0:!0,2:!0,drawn:2},C:{0:!0,2:!0,4:!0,drawn:4},T:{0:!0,drawn:0},S:{0:!0,2:!0,drawn:2},Z:{}},paramIsY:{M:{1:!0,drawn:1},L:{1:!0,drawn:1},H:{},V:{0:!0,drawn:0},Q:{1:!0,3:!0,drawn:3},C:{1:!0,3:!0,5:!0,drawn:5},T:{1:!0,drawn:1},S:{1:!0,3:!0,drawn:5},Z:{}},numParams:{M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}}});var h_=ye(Dd=>{"use strict";var zb=vM(),kue=Dr(),$L=ho();Dd.rangeToShapePosition=function(e){return e.type==="log"?e.r2d:function(t){return t}};Dd.shapePositionToRange=function(e){return e.type==="log"?e.d2r:function(t){return t}};Dd.decodeDate=function(e){return function(t){return t.replace&&(t=t.replace("_"," ")),e(t)}};Dd.encodeDate=function(e){return function(t){return e(t).replace(" ","_")}};Dd.extractPathCoords=function(e,t,r){var n=[],i=e.match(zb.segmentRE);return i.forEach(function(a){var o=t[a.charAt(0)].drawn;if(o!==void 0){var s=a.substr(1).match(zb.paramRE);if(!(!s||s.lengthd&&(x="X"),x});return u>d&&(v=v.replace(/[\s,]*X.*/,""),kue.log("Ignoring extra params in segment "+l)),c+v})}function pM(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 XB=ye((Pnr,Rue)=>{"use strict";var Hut=Dr(),H3=ho(),Lue=iu(),Pue=So(),jut=c_().readPaths,WB=h_(),Wut=WB.getPathString,Iue=A6(),Xut=Kh().FROM_TL;Rue.exports=function(t,r,n,i){if(i.selectAll(".shape-label").remove(),!!(n.label.text||n.label.texttemplate)){var a;if(n.label.texttemplate){var o={};if(n.type!=="path"){var s=H3.getFromId(t,n.xref),l=H3.getFromId(t,n.yref);for(var u in Iue){var c=Iue[u](n,s,l);c!==void 0&&(o[u]=c)}}a=Hut.texttemplateStringForShapes(n.label.texttemplate,{},t._fullLayout._d3locale,o)}else a=n.label.text;var f={"data-index":r},h=n.label.font,d={"data-notex":1},v=i.append("g").attr(f).classed("shape-label",!0),x=v.append("text").attr(d).classed("shape-label-text",!0).text(a),b,p,C,E;if(n.path){var A=Wut(t,n),L=jut(A,t);b=1/0,C=1/0,p=-1/0,E=-1/0;for(var _=0;_=e?i=t-n:i=n-t,-180/Math.PI*Math.atan2(i,a)}function Yut(e,t,r,n,i,a,o){var s=i.label.textposition,l=i.label.textangle,u=i.label.padding,c=i.type,f=Math.PI/180*a,h=Math.sin(f),d=Math.cos(f),v=i.label.xanchor,x=i.label.yanchor,b,p,C,E;if(c==="line"){s==="start"?(b=e,p=t):s==="end"?(b=r,p=n):(b=(e+r)/2,p=(t+n)/2),v==="auto"&&(s==="start"?l==="auto"?r>e?v="left":re?v="right":re?v="right":re?v="left":r{"use strict";var Kut=Dr(),Jut=Kut.strTranslate,Due=gv(),Oue=Sg(),$ut=Oue.drawMode,que=Oue.selectMode,Bue=qa(),Fue=Ca(),eP=WL(),Qut=eP.i000,ect=eP.i090,tct=eP.i180,rct=eP.i270,ict=e_(),Nue=ict.clearOutlineControllers,YB=c_(),QL=YB.pointsOnRectangle,ZB=YB.pointsOnEllipse,nct=YB.writePaths,act=JL().newShapes,oct=JL().createShapeObj,sct=jB(),lct=XB();Uue.exports=function e(t,r,n,i){i||(i=0);var a=n.gd;function o(){e(t,r,n,i++),(ZB(t[0])||n.hasText)&&s({redrawing:!0})}function s(H){var N={};n.isActiveShape!==void 0&&(n.isActiveShape=!1,N=act(r,n)),n.isActiveSelection!==void 0&&(n.isActiveSelection=!1,N=sct(r,n),a._fullLayout._reselect=!0),Object.keys(N).length&&Bue.call((H||{}).redrawing?"relayout":"_guiRelayout",a,N)}var l=a._fullLayout,u=l._zoomlayer,c=n.dragmode,f=$ut(c),h=que(c);(f||h)&&(a._fullLayout._outlining=!0),Nue(a),r.attr("d",nct(t));var d,v,x,b,p;if(!i&&(n.isActiveShape||n.isActiveSelection)){p=uct([],t);var C=u.append("g").attr("class","outline-controllers");P(C),Z()}if(f&&n.hasText){var E=u.select(".label-temp"),A=oct(r,n,n.dragmode);lct(a,"label-temp",A,E)}function L(H){x=+H.srcElement.getAttribute("data-i"),b=+H.srcElement.getAttribute("data-j"),d[x][b].moveFn=_}function _(H,N){if(t.length){var j=p[x][b][1],re=p[x][b][2],oe=t[x],_e=oe.length;if(QL(oe)){var Me=H,ke=N;if(n.isActiveSelection){var me=zue(oe,b);me[1]===oe[b][1]?ke=0:Me=0}for(var ie=0;ie<_e;ie++)if(ie!==b){var Se=oe[ie];Se[1]===oe[b][1]&&(Se[1]=j+Me),Se[2]===oe[b][2]&&(Se[2]=re+ke)}if(oe[b][1]=j+Me,oe[b][2]=re+ke,!QL(oe))for(var Le=0;Le<_e;Le++)for(var Ae=0;Ae1&&!(H.length===2&&H[1][0]==="Z")&&(b===0&&(H[0][0]="M"),t[x]=H,o(),s())}}function g(H,N){if(H===2){x=+N.srcElement.getAttribute("data-i"),b=+N.srcElement.getAttribute("data-j");var j=t[x];!QL(j)&&!ZB(j)&&M()}}function P(H){d=[];for(var N=0;N{"use strict";var fct=Oa(),Xue=qa(),Vue=Dr(),j3=ho(),hct=c_().readPaths,dct=tP(),iP=XB(),Zue=e_().clearOutlineControllers,KB=Ca(),$B=So(),vct=pl().arrayEditor,Gue=gv(),Hue=Tg(),Ob=vM(),Sp=h_(),JB=Sp.getPathString;Jue.exports={draw:QB,drawOne:Yue,eraseActiveShape:mct,drawLabel:iP};function QB(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 n=t._plots[r].shapelayer;n&&(n.selectAll("path").remove(),n.selectAll("text").remove())}for(var i=0;io&&Nt>s&&!st.shiftKey?Gue.getCursor($t/Gt,1-sr/Nt):"move";Hue(t,wr),Se=wr.split("-")[0]}}function Pe(st){rP(e)||(l&&(p=oe(r.xanchor)),u&&(C=_e(r.yanchor)),r.type==="path"?T=r.path:(d=l?r.x0:oe(r.x0),v=u?r.y0:_e(r.y0),x=l?r.x1:oe(r.x1),b=u?r.y1:_e(r.y1)),db?(E=v,k="y0",A=b,M="y1"):(E=b,k="y1",A=v,M="y0"),De(st),ct(i,r),Wt(t,r,e),ie.moveFn=Se==="move"?ce:Ze,ie.altKey=st.altKey)}function ge(){rP(e)||(Hue(t),pt(i),Kue(t,e,r),Xue.call("_guiRelayout",e,a.getUpdateObj()))}function Fe(){rP(e)||pt(i)}function ce(st,lt){if(r.type==="path"){var Gt=function(sr){return sr},Nt=Gt,$t=Gt;l?h("xanchor",r.xanchor=Me(p+st)):(Nt=function(wr){return Me(oe(wr)+st)},O&&O.type==="date"&&(Nt=Sp.encodeDate(Nt))),u?h("yanchor",r.yanchor=ke(C+lt)):($t=function(wr){return ke(_e(wr)+lt)},G&&G.type==="date"&&($t=Sp.encodeDate($t))),h("path",r.path=jue(T,Nt,$t))}else l?h("xanchor",r.xanchor=Me(p+st)):(h("x0",r.x0=Me(d+st)),h("x1",r.x1=Me(x+st))),u?h("yanchor",r.yanchor=ke(C+lt)):(h("y0",r.y0=ke(v+lt)),h("y1",r.y1=ke(b+lt)));t.attr("d",JB(e,r)),ct(i,r),iP(e,n,r,z)}function Ze(st,lt){if(f){var Gt=function(Rr){return Rr},Nt=Gt,$t=Gt;l?h("xanchor",r.xanchor=Me(p+st)):(Nt=function(ei){return Me(oe(ei)+st)},O&&O.type==="date"&&(Nt=Sp.encodeDate(Nt))),u?h("yanchor",r.yanchor=ke(C+lt)):($t=function(ei){return ke(_e(ei)+lt)},G&&G.type==="date"&&($t=Sp.encodeDate($t))),h("path",r.path=jue(T,Nt,$t))}else if(c){if(Se==="resize-over-start-point"){var sr=d+st,wr=u?v-lt:v+lt;h("x0",r.x0=l?sr:Me(sr)),h("y0",r.y0=u?wr:ke(wr))}else if(Se==="resize-over-end-point"){var ur=x+st,Qe=u?b-lt:b+lt;h("x1",r.x1=l?ur:Me(ur)),h("y1",r.y1=u?Qe:ke(Qe))}}else{var Et=function(Rr){return Se.indexOf(Rr)!==-1},er=Et("n"),Ut=Et("s"),Ft=Et("w"),bt=Et("e"),yt=er?E+lt:E,Yt=Ut?A+lt:A,lr=Ft?L+st:L,Tr=bt?_+st:_;u&&(er&&(yt=E-lt),Ut&&(Yt=A-lt)),(!u&&Yt-yt>s||u&&yt-Yt>s)&&(h(k,r[k]=u?yt:ke(yt)),h(M,r[M]=u?Yt:ke(Yt))),Tr-lr>o&&(h(g,r[g]=l?lr:Me(lr)),h(P,r[P]=l?Tr:Me(Tr)))}t.attr("d",JB(e,r)),ct(i,r),iP(e,n,r,z)}function ct(st,lt){(l||u)&&Gt();function Gt(){var Nt=lt.type!=="path",$t=st.selectAll(".visual-cue").data([0]),sr=1;$t.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":sr}).classed("visual-cue",!0);var wr=oe(l?lt.xanchor:Vue.midRange(Nt?[lt.x0,lt.x1]:Sp.extractPathCoords(lt.path,Ob.paramIsX))),ur=_e(u?lt.yanchor:Vue.midRange(Nt?[lt.y0,lt.y1]:Sp.extractPathCoords(lt.path,Ob.paramIsY)));if(wr=Sp.roundPositionForSharpStrokeRendering(wr,sr),ur=Sp.roundPositionForSharpStrokeRendering(ur,sr),l&&u){var Qe="M"+(wr-1-sr)+","+(ur-1-sr)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";$t.attr("d",Qe)}else if(l){var Et="M"+(wr-1-sr)+","+(ur-9-sr)+"v18 h2 v-18 Z";$t.attr("d",Et)}else{var er="M"+(wr-9-sr)+","+(ur-1-sr)+"h18 v2 h-18 Z";$t.attr("d",er)}}}function pt(st){st.selectAll(".visual-cue").remove()}function Wt(st,lt,Gt){var Nt=lt.xref,$t=lt.yref,sr=j3.getFromId(Gt,Nt),wr=j3.getFromId(Gt,$t),ur="";Nt!=="paper"&&!sr.autorange&&(ur+=Nt),$t!=="paper"&&!wr.autorange&&(ur+=$t),$B.setClipUrl(st,ur?"clip"+Gt._fullLayout._uid+ur:null,Gt)}}function jue(e,t,r){return e.replace(Ob.segmentRE,function(n){var i=0,a=n.charAt(0),o=Ob.paramIsX[a],s=Ob.paramIsY[a],l=Ob.numParams[a],u=n.substr(1).replace(Ob.paramRE,function(c){return i>=l||(o[i]?c=t(c):s[i]&&(c=r(c)),i++),c});return a+u})}function gct(e,t){if(nP(e)){var r=t.node(),n=+r.getAttribute("data-index");if(n>=0){if(n===e._fullLayout._activeShapeIndex){Wue(e);return}e._fullLayout._activeShapeIndex=n,e._fullLayout._deactivateShape=Wue,QB(e)}}}function Wue(e){if(nP(e)){var t=e._fullLayout._activeShapeIndex;t>=0&&(Zue(e),delete e._fullLayout._activeShapeIndex,QB(e))}}function mct(e){if(nP(e)){Zue(e);var t=e._fullLayout._activeShapeIndex,r=(e.layout||{}).shapes||[];if(t{"use strict";var S0=qa(),$ue=Mc(),Que=hf(),Ll=HL(),yct=aP().eraseActiveShape,oP=Dr(),rl=oP._,Pl=oce.exports={};Pl.toImage={name:"toImage",title:function(e){var t=e._context.toImageButtonOptions||{},r=t.format||"png";return r==="png"?rl(e,"Download plot as a PNG"):rl(e,"Download plot")},icon:Ll.camera,click:function(e){var t=e._context.toImageButtonOptions,r={format:t.format||"png"};oP.notifier(rl(e,"Taking snapshot - this may take a few seconds"),"long"),["filename","width","height","scale"].forEach(function(n){n in t&&(r[n]=t[n])}),S0.call("downloadImage",e,r).then(function(n){oP.notifier(rl(e,"Snapshot succeeded")+" - "+n,"long")}).catch(function(){oP.notifier(rl(e,"Sorry, there was a problem downloading your snapshot!"),"long")})}};Pl.sendDataToCloud={name:"sendDataToCloud",title:function(e){return rl(e,"Edit in Chart Studio")},icon:Ll.disk,click:function(e){$ue.sendDataToCloud(e)}};Pl.editInChartStudio={name:"editInChartStudio",title:function(e){return rl(e,"Edit in Chart Studio")},icon:Ll.pencil,click:function(e){$ue.sendDataToCloud(e)}};Pl.zoom2d={name:"zoom2d",_cat:"zoom",title:function(e){return rl(e,"Zoom")},attr:"dragmode",val:"zoom",icon:Ll.zoombox,click:qv};Pl.pan2d={name:"pan2d",_cat:"pan",title:function(e){return rl(e,"Pan")},attr:"dragmode",val:"pan",icon:Ll.pan,click:qv};Pl.select2d={name:"select2d",_cat:"select",title:function(e){return rl(e,"Box Select")},attr:"dragmode",val:"select",icon:Ll.selectbox,click:qv};Pl.lasso2d={name:"lasso2d",_cat:"lasso",title:function(e){return rl(e,"Lasso Select")},attr:"dragmode",val:"lasso",icon:Ll.lasso,click:qv};Pl.drawclosedpath={name:"drawclosedpath",title:function(e){return rl(e,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:Ll.drawclosedpath,click:qv};Pl.drawopenpath={name:"drawopenpath",title:function(e){return rl(e,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:Ll.drawopenpath,click:qv};Pl.drawline={name:"drawline",title:function(e){return rl(e,"Draw line")},attr:"dragmode",val:"drawline",icon:Ll.drawline,click:qv};Pl.drawrect={name:"drawrect",title:function(e){return rl(e,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:Ll.drawrect,click:qv};Pl.drawcircle={name:"drawcircle",title:function(e){return rl(e,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:Ll.drawcircle,click:qv};Pl.eraseshape={name:"eraseshape",title:function(e){return rl(e,"Erase active shape")},icon:Ll.eraseshape,click:yct};Pl.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(e){return rl(e,"Zoom in")},attr:"zoom",val:"in",icon:Ll.zoom_plus,click:qv};Pl.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(e){return rl(e,"Zoom out")},attr:"zoom",val:"out",icon:Ll.zoom_minus,click:qv};Pl.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(e){return rl(e,"Autoscale")},attr:"zoom",val:"auto",icon:Ll.autoscale,click:qv};Pl.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(e){return rl(e,"Reset axes")},attr:"zoom",val:"reset",icon:Ll.home,click:qv};Pl.hoverClosestCartesian={name:"hoverClosestCartesian",_cat:"hoverclosest",title:function(e){return rl(e,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:Ll.tooltip_basic,gravity:"ne",click:qv};Pl.hoverCompareCartesian={name:"hoverCompareCartesian",_cat:"hoverCompare",title:function(e){return rl(e,"Compare data on hover")},attr:"hovermode",val:function(e){return e._fullLayout._isHoriz?"y":"x"},icon:Ll.tooltip_compare,gravity:"ne",click:qv};function qv(e,t){var r=t.currentTarget,n=r.getAttribute("data-attr"),i=r.getAttribute("data-val")||!0,a=e._fullLayout,o={},s=Que.list(e,null,!0),l=a._cartesianSpikesEnabled,u,c;if(n==="zoom"){var f=i==="in"?.5:2,h=(1+f)/2,d=(1-f)/2,v,x;for(c=0;c{"use strict";var sce=rN(),bct=Object.keys(sce),lce=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],uce=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(lce),X3=[],wct=function(e){if(uce.indexOf(e._cat||e.name)===-1){var t=e.name,r=(e._cat||e.name).toLowerCase();X3.indexOf(t)===-1&&X3.push(t),X3.indexOf(r)===-1&&X3.push(r)}};bct.forEach(function(e){wct(sce[e])});X3.sort();cce.exports={DRAW_MODES:lce,backButtons:uce,foreButtons:X3}});var nN=ye((Onr,fce)=>{"use strict";var znr=iN();fce.exports={editType:"modebar",orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"modebar"},bgcolor:{valType:"color",editType:"modebar"},color:{valType:"color",editType:"modebar"},activecolor:{valType:"color",editType:"modebar"},uirevision:{valType:"any",editType:"none"},add:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"},remove:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"}}});var dce=ye((qnr,hce)=>{"use strict";var Tct=Dr(),gM=Ca(),Act=pl(),Sct=nN();hce.exports=function(t,r){var n=t.modebar||{},i=Act.newContainer(r,"modebar");function a(s,l){return Tct.coerce(n,i,Sct,s,l)}a("orientation"),a("bgcolor",gM.addOpacity(r.paper_bgcolor,.5));var o=gM.contrast(gM.rgb(r.modebar.bgcolor));a("color",gM.addOpacity(o,.3)),a("activecolor",gM.addOpacity(o,.7)),a("uirevision",r.uirevision),a("add"),a("remove")}});var mce=ye((Bnr,gce)=>{"use strict";var aN=Oa(),Mct=Eo(),lP=Dr(),vce=HL(),Ect=o6().version,Cct=new DOMParser;function pce(e){this.container=e.container,this.element=document.createElement("div"),this.update(e.graphInfo,e.buttons),this.container.appendChild(this.element)}var Tm=pce.prototype;Tm.update=function(e,t){this.graphInfo=e;var r=this.graphInfo._context,n=this.graphInfo._fullLayout,i="modebar-"+n._uid;this.element.setAttribute("id",i),this.element.setAttribute("role","toolbar"),this._uid=i,this.element.className="modebar modebar--custom",r.displayModeBar==="hover"&&(this.element.className+=" modebar--hover ease-bg"),n.modebar.orientation==="v"&&(this.element.className+=" vertical",t=t.reverse());var a=n.modebar,o="#"+i+" .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"),n.modebar.orientation==="v"?this.element.insertBefore(c,this.element.childNodes[0]):this.element.appendChild(c),this.hasLogo=!0}this.updateActiveButton(),lP.setStyleOnHover("#"+i+" .modebar-btn",".active",".icon path","fill: "+a.activecolor,"fill: "+a.color,this.element)};Tm.updateButtons=function(e){var t=this;this.buttons=e,this.buttonElements=[],this.buttonsNames=[],this.buttons.forEach(function(r){var n=t.createGroup();r.forEach(function(i){var a=i.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(i);t.buttonElements.push(o),n.appendChild(o)}),t.element.appendChild(n)})};Tm.createGroup=function(){var e=document.createElement("div");e.className="modebar-group";var t=this.graphInfo._fullLayout.modebar;return e.style.backgroundColor=t.bgcolor,e};Tm.createButton=function(e){var t=this,r=document.createElement("button");r.setAttribute("type","button"),r.setAttribute("rel","tooltip"),r.className="modebar-btn";var n=e.title;n===void 0?n=e.name:typeof n=="function"&&(n=n(this.graphInfo)),(n||n===0)&&(r.setAttribute("data-title",n),r.setAttribute("aria-label",n)),e.attr!==void 0&&r.setAttribute("data-attr",e.attr);var i=e.val;i!==void 0&&(typeof i=="function"&&(i=i(this.graphInfo)),r.setAttribute("data-val",i));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&&aN.select(r).classed("active",!0);var o=e.icon;return typeof o=="function"?r.appendChild(o()):r.appendChild(this.createIcon(o||vce.question)),r.setAttribute("data-gravity",e.gravity||"n"),r};Tm.createIcon=function(e){var t=Mct(e.height)?Number(e.height):e.ascent-e.descent,r="http://www.w3.org/2000/svg",n;if(e.path){n=document.createElementNS(r,"svg"),n.setAttribute("viewBox",[0,0,e.width,t].join(" ")),n.setAttribute("class","icon");var i=document.createElementNS(r,"path");i.setAttribute("d",e.path),e.transform?i.setAttribute("transform",e.transform):e.ascent!==void 0&&i.setAttribute("transform","matrix(1 0 0 -1 0 "+e.ascent+")"),n.appendChild(i)}if(e.svg){var a=Cct.parseFromString(e.svg,"application/xml");n=a.childNodes[0]}return n.setAttribute("height","1em"),n.setAttribute("width","1em"),n};Tm.updateActiveButton=function(e){var t=this.graphInfo._fullLayout,r=e!==void 0?e.getAttribute("data-attr"):null;this.buttonElements.forEach(function(n){var i=n.getAttribute("data-val")||!0,a=n.getAttribute("data-attr"),o=n.getAttribute("data-toggle")==="true",s=aN.select(n),l=function(f,h){var d=t.modebar,v=f.querySelector(".icon path");v&&(h||f.matches(":hover")?v.style.fill=d.activecolor:v.style.fill=d.color)};if(o){if(a===r){var u=!s.classed("active");s.classed("active",u),l(n,u)}}else{var c=a===null?a:lP.nestedProperty(t,a).get();s.classed("active",c===i),l(n,c===i)}})};Tm.hasButtons=function(e){var t=this.buttons;if(!t||e.length!==t.length)return!1;for(var r=0;r{"use strict";var Pct=hf(),yce=Ru(),oN=qa(),Ict=rp().isUnifiedHover,Rct=mce(),uP=rN(),Dct=iN().DRAW_MODES,Fct=Dr().extendDeep;_ce.exports=function(t){var r=t._fullLayout,n=t._context,i=r._modeBar;if(!n.displayModeBar&&!n.watermark){i&&(i.destroy(),delete r._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 a=n.modeBarButtons,o;Array.isArray(a)&&a.length?o=Uct(a):!n.displayModeBar&&n.watermark?o=[]:o=zct(t),i?i.update(t,o):r._modeBar=Rct(t,o)};function zct(e){var t=e._fullLayout,r=e._fullData,n=e._context;function i(N,j){if(typeof j=="string"){if(j.toLowerCase()===N.toLowerCase())return!0}else{var re=j.name,oe=j._cat||j.name;if(re===N||oe===N.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=n.modeBarButtonsToAdd.concat(a.filter(function(N){for(var j=0;j1?(P=["toggleHover"],T=["resetViews"]):f?(g=["zoomInGeo","zoomOutGeo"],P=["hoverClosestGeo"],T=["resetGeo"]):c?(P=["hoverClosest3d"],T=["resetCameraDefault3d","resetCameraLastSave3d"]):x?(g=["zoomInMapbox","zoomOutMapbox"],P=["toggleHover"],T=["resetViewMapbox"]):b?(g=["zoomInMap","zoomOutMap"],P=["toggleHover"],T=["resetViewMap"]):h?P=["hoverClosestPie"]:E?(P=["hoverClosestCartesian","hoverCompareCartesian"],T=["resetViewSankey"]):P=["toggleHover"],u&&P.push("toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"),(Bct(r)||L)&&(P=[]),u&&!A&&(g=["zoomIn2d","zoomOut2d","autoScale2d"],T[0]!=="resetViews"&&(T=["resetScale2d"])),c?z=["zoom3d","pan3d","orbitRotation","tableRotation"]:u&&!A||v?z=["zoom2d","pan2d"]:x||b||f?z=["pan2d"]:p&&(z=["zoom2d"]),qct(r)&&z.push("select2d","lasso2d");var O=[],V=function(N){O.indexOf(N)===-1&&P.indexOf(N)!==-1&&O.push(N)};if(Array.isArray(s)){for(var G=[],Z=0;Z{"use strict";bce.exports={moduleType:"component",name:"modebar",layoutAttributes:nN(),supplyLayoutDefaults:dce(),manage:xce()}});var lN=ye((Vnr,wce)=>{"use strict";var Vct=Kh().FROM_BL;wce.exports=function(t,r,n){n===void 0&&(n=Vct[t.constraintoward||"center"]);var i=[t.r2l(t.range[0]),t.r2l(t.range[1])],a=i[0]+(i[1]-i[0])*n;t.range=t._input.range=[t.l2r(a+(i[0]-a)*r),t.l2r(a+(i[1]-a)*r)],t.setScale()}});var Bb=ye(mM=>{"use strict";var qb=Dr(),uN=wg(),Mg=hf().id2name,Gct=Rd(),Tce=lN(),Hct=ym(),jct=hs().ALMOST_EQUAL,Wct=Kh().FROM_BL;mM.handleDefaults=function(e,t,r){var n=r.axIds,i=r.axHasImage,a=t._axisConstraintGroups=[],o=t._axisMatchGroups=[],s,l,u,c,f,h,d,v;for(s=0;sa?r.substr(a):n.substr(i))+o}function Zct(e,t){for(var r=t._size,n=r.h/r.w,i={},a=Object.keys(e),o=0;ojct*v&&!C)){for(a=0;az&&reP&&(P=re);var _e=(P-g)/(2*T);f/=_e,g=l.l2r(g),P=l.l2r(P),l.range=l._input.range=_{"use strict";var fP=Oa(),Bv=qa(),Jp=Mc(),M0=Dr(),hN=iu(),dN=hM(),yM=Ca(),Z3=So(),Ece=Mb(),Ice=sN(),_M=ho(),Cy=Kh(),Rce=Bb(),Yct=Rce.enforce,Kct=Rce.clean,Cce=wg().doAutoRange,Dce="start",Jct="middle",Fce="end",$ct=hd().zindexSeparator;pd.layoutStyles=function(e){return M0.syncOrAsync([Jp.doAutoMargin,eft],e)};function Qct(e,t,r){for(var n=0;n=e[1]||i[1]<=e[0])&&a[0]t[0])return!0}return!1}function eft(e){var t=e._fullLayout,r=t._size,n=r.p,i=_M.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(Z3.setSize,t.width,t.height),e._context.setBackground(e,t.paper_bgcolor),pd.drawMainTitle(e),Ice.manage(e),!t._has("cartesian"))return Jp.previousPromises(e);function f(Pe,ge,Fe){var ce=Pe._lw/2;if(Pe._id.charAt(0)==="x"){if(ge){if(Fe==="top")return ge._offset-n-ce}else return r.t+r.h*(1-(Pe.position||0))+ce%1;return ge._offset+ge._length+n+ce}if(ge){if(Fe==="right")return ge._offset+ge._length+n+ce}else return r.l+r.w*(Pe.position||0)+ce%1;return ge._offset-n-ce}for(a=0;a0){nft(e,a,u,l),s.attr({x:o,y:a,"text-anchor":n,dy:Pce(t.yanchor)}).call(hN.positionText,o,a);var c=(t.text.match(hN.BR_TAG_ALL)||[]).length;if(c){var f=Cy.LINE_SPACING*c+Cy.MID_SHIFT;t.y===0&&(f=-f),s.selectAll(".line").each(function(){var b=+this.getAttribute("dy").slice(0,-2)-f+"em";this.setAttribute("dy",b)})}var h=fP.selectAll(".gtitle-subtitle");if(h.node()){var d=s.node().getBBox(),v=d.y+d.height,x=v+Ece.SUBTITLE_PADDING_EM*t.subtitle.font.size;h.attr({x:o,y:x,"text-anchor":n,dy:Pce(t.yanchor)}).call(hN.positionText,o,x)}}}};function tft(e,t,r,n,i){var a=t.yref==="paper"?e._fullLayout._size.h:e._fullLayout.height,o=M0.isTopAnchor(t)?n:n-i,s=r==="b"?a-o:o;return M0.isTopAnchor(t)&&r==="t"||M0.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=rft(a,n,i,e._fullLayout.height,r)+t.pad.t+t.pad.b),s>o?s:0}function nft(e,t,r,n){var i="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"&&tft(e,a,o,t,n)?s[o]=r:a.yref==="container"&&(l[o]=r,e._fullLayout._reservedMargin[i]=l),Jp.allowAutoMargin(e,i),Jp.autoMargin(e,i,s)}function aft(e,t){var r=e.title,n=e._size,i=0;switch(t===Dce?i=r.pad.l:t===Fce&&(i=-r.pad.r),r.xref){case"paper":return n.l+n.w*r.x+i;case"container":default:return e.width*r.x+i}}function oft(e,t){var r=e.title,n=e._size,i=0;if(t==="0em"||!t?i=-r.pad.b:t===Cy.CAP_SHIFT+"em"&&(i=r.pad.t),r.y==="auto")return n.t/2;switch(r.yref){case"paper":return n.t+n.h-n.h*r.y+i;case"container":default:return e.height-e.height*r.y+i}}function Pce(e){return e==="top"?Cy.CAP_SHIFT+.3+"em":e==="bottom"?"-0.3em":Cy.MID_SHIFT+"em"}function sft(e){var t=e.title,r=Jct;return M0.isRightAnchor(t)?r=Fce:M0.isLeftAnchor(t)&&(r=Dce),r}function lft(e){var t=e.title,r="0em";return M0.isTopAnchor(t)?r=Cy.CAP_SHIFT+"em":M0.isMiddleAnchor(t)&&(r=Cy.MID_SHIFT+"em"),r}pd.doTraceStyle=function(e){var t=e.calcdata,r=[],n;for(n=0;n{"use strict";var uft=c_().readPaths,cft=tP(),zce=e_().clearOutlineControllers,vN=Ca(),Oce=So(),fft=pl().arrayEditor,qce=h_(),hft=qce.getPathString;Nce.exports={draw:hP,drawOne:Bce,activateLastSelection:pft};function hP(e){var t=e._fullLayout;zce(e),t._selectionLayer.selectAll("path").remove();for(var r in t._plots){var n=t._plots[r].selectionLayer;n&&n.selectAll("path").remove()}for(var i=0;i=0;b--){var p=o.append("path").attr(l).style("opacity",b?.1:u).call(vN.stroke,f).call(vN.fill,c).call(Oce.dashLine,b?"solid":d,b?4+h:h);if(dft(p,e,n),v){var C=fft(e.layout,"selections",n);p.style({cursor:"move"});var E={element:p.node(),plotinfo:i,gd:e,editHelpers:C,isActiveSelection:!0},A=uft(s,e);cft(A,p,E)}else p.style("pointer-events",b?"all":"none");x[b]=p}var L=x[0],_=x[1];_.node().addEventListener("click",function(){return vft(e,L)})}}function dft(e,t,r){var n=r.xref+r.yref;Oce.setClipUrl(e,"clip"+t._fullLayout._uid+n,t)}function vft(e,t){if(dP(e)){var r=t.node(),n=+r.getAttribute("data-index");if(n>=0){if(n===e._fullLayout._activeSelectionIndex){pN(e);return}e._fullLayout._activeSelectionIndex=n,e._fullLayout._deactivateSelection=pN,hP(e)}}}function pft(e){if(dP(e)){var t=e._fullLayout.selections.length-1;e._fullLayout._activeSelectionIndex=t,e._fullLayout._deactivateSelection=pN,hP(e)}}function pN(e){if(dP(e)){var t=e._fullLayout._activeSelectionIndex;t>=0&&(zce(e),delete e._fullLayout._activeSelectionIndex,hP(e))}}});var Vce=ye((Wnr,Uce)=>{function gft(){var e,t=0,r=!1;function n(i,a){return e.list.push({type:i,data:a?JSON.parse(JSON.stringify(a)):void 0}),e}return e={list:[],segmentId:function(){return t++},checkIntersection:function(i,a){return n("check",{seg1:i,seg2:a})},segmentChop:function(i,a){return n("div_seg",{seg:i,pt:a}),n("chop",{seg:i,pt:a})},statusRemove:function(i){return n("pop_seg",{seg:i})},segmentUpdate:function(i){return n("seg_update",{seg:i})},segmentNew:function(i,a){return n("new_seg",{seg:i,primary:a})},segmentRemove:function(i){return n("rem_seg",{seg:i})},tempStatus:function(i,a,o){return n("temp_status",{seg:i,above:a,below:o})},rewind:function(i){return n("rewind",{seg:i})},status:function(i,a,o){return n("status",{seg:i,above:a,below:o})},vert:function(i){return i===r?e:(r=i,n("vert",{x:i}))},log:function(i){return typeof i!="string"&&(i=JSON.stringify(i,!1," ")),n("log",{txt:i})},reset:function(){return n("reset")},selected:function(i){return n("selected",{segs:i})},chainStart:function(i){return n("chain_start",{seg:i})},chainRemoveHead:function(i,a){return n("chain_rem_head",{index:i,pt:a})},chainRemoveTail:function(i,a){return n("chain_rem_tail",{index:i,pt:a})},chainNew:function(i,a){return n("chain_new",{pt1:i,pt2:a})},chainMatch:function(i){return n("chain_match",{index:i})},chainClose:function(i){return n("chain_close",{index:i})},chainAddHead:function(i,a){return n("chain_add_head",{index:i,pt:a})},chainAddTail:function(i,a){return n("chain_add_tail",{index:i,pt:a})},chainConnect:function(i,a){return n("chain_con",{index1:i,index2:a})},chainReverse:function(i){return n("chain_rev",{index:i})},chainJoin:function(i,a){return n("chain_join",{index1:i,index2:a})},done:function(){return n("done")}},e}Uce.exports=gft});var Hce=ye((Xnr,Gce)=>{function mft(e){typeof e!="number"&&(e=1e-10);var t={epsilon:function(r){return typeof r=="number"&&(e=r),e},pointAboveOrOnLine:function(r,n,i){var a=n[0],o=n[1],s=i[0],l=i[1],u=r[0],c=r[1];return(s-a)*(c-o)-(l-o)*(u-a)>=-e},pointBetween:function(r,n,i){var a=r[1]-n[1],o=i[0]-n[0],s=r[0]-n[0],l=i[1]-n[1],u=s*o+a*l;if(u-e)},pointsSameX:function(r,n){return Math.abs(r[0]-n[0])e!=s-a>e&&(o-c)*(a-f)/(s-f)+c-i>e&&(l=!l),o=c,s=f}return l}};return t}Gce.exports=mft});var Wce=ye((Znr,jce)=>{var yft={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 n=e.root,i=e.root.next;i!==null;){if(r(i)){t.prev=i.prev,t.next=i,i.prev.next=t,i.prev=t;return}n=i,i=i.next}n.next=t,t.prev=n,t.next=null},findTransition:function(t){for(var r=e.root,n=e.root.next;n!==null&&!t(n);)r=n,n=n.next;return{before:r===e.root?null:r,after:n,insert:function(i){return i.prev=r,i.next=n,r.next=i,n!==null&&(n.prev=i),i}}}};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}};jce.exports=yft});var Zce=ye((Ynr,Xce)=>{var bM=Wce();function _ft(e,t,r){function n(v,x){return{id:r?r.segmentId():-1,start:v,end:x,myFill:{above:null,below:null},otherFill:null}}function i(v,x,b){return{id:r?r.segmentId():-1,start:v,end:x,myFill:{above:b.myFill.above,below:b.myFill.below},otherFill:null}}var a=bM.create();function o(v,x,b,p,C,E){var A=t.pointsCompare(x,C);return A!==0?A:t.pointsSame(b,E)?0:v!==p?v?1:-1:t.pointAboveOrOnLine(b,p?C:E,p?E:C)?1:-1}function s(v,x){a.insertBefore(v,function(b){var p=o(v.isStart,v.pt,x,b.isStart,b.pt,b.other.pt);return p<0})}function l(v,x){var b=bM.node({isStart:!0,pt:v.start,seg:v,primary:x,other:null,status:null});return s(b,v.end),b}function u(v,x,b){var p=bM.node({isStart:!1,pt:x.end,seg:x,primary:b,other:v,status:null});v.other=p,s(p,v.pt)}function c(v,x){var b=l(v,x);return u(b,v,x),b}function f(v,x){r&&r.segmentChop(v.seg,x),v.other.remove(),v.seg.end=x,v.other.pt=x,s(v.other,v.pt)}function h(v,x){var b=i(x,v.seg.end,v.seg);return f(v,x),c(b,v.primary)}function d(v,x){var b=bM.create();function p(G,Z){var H=G.seg.start,N=G.seg.end,j=Z.seg.start,re=Z.seg.end;return t.pointsCollinear(H,j,re)?t.pointsCollinear(N,j,re)||t.pointAboveOrOnLine(N,j,re)?1:-1:t.pointAboveOrOnLine(H,j,re)?1:-1}function C(G){return b.findTransition(function(Z){var H=p(G,Z.ev);return H>0})}function E(G,Z){var H=G.seg,N=Z.seg,j=H.start,re=H.end,oe=N.start,_e=N.end;r&&r.checkIntersection(H,N);var Me=t.linesIntersect(j,re,oe,_e);if(Me===!1){if(!t.pointsCollinear(j,re,oe)||t.pointsSame(j,_e)||t.pointsSame(re,oe))return!1;var ke=t.pointsSame(j,oe),me=t.pointsSame(re,_e);if(ke&&me)return Z;var ie=!ke&&t.pointBetween(j,oe,_e),Se=!me&&t.pointBetween(re,oe,_e);if(ke)return Se?h(Z,re):h(G,_e),Z;ie&&(me||(Se?h(Z,re):h(G,_e)),h(Z,j))}else Me.alongA===0&&(Me.alongB===-1?h(G,oe):Me.alongB===0?h(G,Me.pt):Me.alongB===1&&h(G,_e)),Me.alongB===0&&(Me.alongA===-1?h(Z,j):Me.alongA===0?h(Z,Me.pt):Me.alongA===1&&h(Z,re));return!1}for(var A=[];!a.isEmpty();){var L=a.getHead();if(r&&r.vert(L.pt[0]),L.isStart){let G=function(){if(k){var Z=E(L,k);if(Z)return Z}return M?E(L,M):!1};var V=G;r&&r.segmentNew(L.seg,L.primary);var _=C(L),k=_.before?_.before.ev:null,M=_.after?_.after.ev:null;r&&r.tempStatus(L.seg,k?k.seg:!1,M?M.seg:!1);var g=G();if(g){if(e){var P;L.seg.myFill.below===null?P=!0:P=L.seg.myFill.above!==L.seg.myFill.below,P&&(g.seg.myFill.above=!g.seg.myFill.above)}else g.seg.otherFill=L.seg.myFill;r&&r.segmentUpdate(g.seg),L.other.remove(),L.remove()}if(a.getHead()!==L){r&&r.rewind(L.seg);continue}if(e){var P;L.seg.myFill.below===null?P=!0:P=L.seg.myFill.above!==L.seg.myFill.below,M?L.seg.myFill.below=M.seg.myFill.above:L.seg.myFill.below=v,P?L.seg.myFill.above=!L.seg.myFill.below:L.seg.myFill.above=L.seg.myFill.below}else if(L.seg.otherFill===null){var T;M?L.primary===M.primary?T=M.seg.otherFill.above:T=M.seg.myFill.above:T=L.primary?x:v,L.seg.otherFill={above:T,below:T}}r&&r.status(L.seg,k?k.seg:!1,M?M.seg:!1),L.other.status=_.insert(bM.node({ev:L}))}else{var z=L.status;if(z===null)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(b.exists(z.prev)&&b.exists(z.next)&&E(z.prev.ev,z.next.ev),r&&r.statusRemove(z.ev.seg),z.remove(),!L.primary){var O=L.seg.myFill;L.seg.myFill=L.seg.otherFill,L.seg.otherFill=O}A.push(L.seg)}a.getHead().remove()}return r&&r.done(),A}return e?{addRegion:function(v){for(var x,b=v[v.length-1],p=0;p{function xft(e,t,r){var n=[],i=[];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(V,G,Z){return c.index=V,c.matches_head=G,c.matches_pt1=Z,c===l?(c=u,!1):(c=null,!0)}for(var h=0;h{function wM(e,t,r){var n=[];return e.forEach(function(i){var a=(i.myFill.above?8:0)+(i.myFill.below?4:0)+(i.otherFill&&i.otherFill.above?2:0)+(i.otherFill&&i.otherFill.below?1:0);t[a]!==0&&n.push({id:r?r.segmentId():-1,start:i.start,end:i.end,myFill:{above:t[a]===1,below:t[a]===2},otherFill:null})}),r&&r.selected(n),n}var bft={union:function(e,t){return wM(e,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],t)},intersect:function(e,t){return wM(e,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],t)},difference:function(e,t){return wM(e,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],t)},differenceRev:function(e,t){return wM(e,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],t)},xor:function(e,t){return wM(e,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],t)}};Jce.exports=bft});var efe=ye(($nr,Qce)=>{var wft={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 Tft=Vce(),Aft=Hce(),tfe=Zce(),Sft=Kce(),TM=$ce(),rfe=efe(),E0=!1,AM=Aft(),Mp;Mp={buildLog:function(e){return e===!0?E0=Tft():e===!1&&(E0=!1),E0===!1?!1:E0.list},epsilon:function(e){return AM.epsilon(e)},segments:function(e){var t=tfe(!0,AM,E0);return e.regions.forEach(t.addRegion),{segments:t.calculate(e.inverted),inverted:e.inverted}},combine:function(e,t){var r=tfe(!1,AM,E0);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,E0),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:TM.intersect(e.combined,E0),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:TM.difference(e.combined,E0),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:TM.differenceRev(e.combined,E0),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:TM.xor(e.combined,E0),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:Sft(e.segments,AM,E0),inverted:e.inverted}},polygonFromGeoJSON:function(e){return rfe.toPolygon(Mp,e)},polygonToGeoJSON:function(e){return rfe.fromPolygon(Mp,AM,e)},union:function(e,t){return SM(e,t,Mp.selectUnion)},intersect:function(e,t){return SM(e,t,Mp.selectIntersect)},difference:function(e,t){return SM(e,t,Mp.selectDifference)},differenceRev:function(e,t){return SM(e,t,Mp.selectDifferenceRev)},xor:function(e,t){return SM(e,t,Mp.selectXor)}};function SM(e,t,r){var n=Mp.segments(e),i=Mp.segments(t),a=Mp.combine(n,i),o=r(a);return Mp.polygon(o)}typeof window=="object"&&(window.PolyBool=Mp);ife.exports=Mp});var ofe=ye((ear,afe)=>{afe.exports=function(t,r,n,i){var a=t[0],o=t[1],s=!1;n===void 0&&(n=0),i===void 0&&(i=r.length);for(var l=i-n,u=0,c=l-1;uo!=v>o&&a<(d-f)*(o-h)/(v-h)+f;x&&(s=!s)}return s}});var MM=ye((tar,sfe)=>{"use strict";var mN=b6().dot,vP=hs().BADNUM,pP=sfe.exports={};pP.tester=function(t){var r=t.slice(),n=r[0][0],i=n,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;si||p===vP||po||x&&u(v))}function f(v,x){var b=v[0],p=v[1];if(b===vP||bi||p===vP||po)return!1;var C=r.length,E=r[0][0],A=r[0][1],L=0,_,k,M,g,P;for(_=1;_Math.max(k,E)||p>Math.max(M,A)))if(ps||Math.abs(mN(f,u))>i)return!0;return!1};pP.filter=function(t,r){var n=[t[0]],i=0,a=0;function o(l){t.push(l);var u=n.length,c=i;n.splice(a+1);for(var f=c+1;f1){var s=t.pop();o(s)}return{addPt:o,raw:t,filtered:n}}});var ufe=ye((rar,lfe)=>{"use strict";lfe.exports={BENDPX:1.5,MINSELECT:12,SELECTDELAY:100,SELECTID:"-select"}});var Pfe=ye((iar,Lfe)=>{"use strict";var cfe=nfe(),Mft=ofe(),kM=qa(),Eft=So().dashStyle,EM=Ca(),Cft=vf(),kft=rp().makeEventData,DM=Sg(),Lft=DM.freeMode,Pft=DM.rectMode,LM=DM.drawMode,bN=DM.openMode,wN=DM.selectMode,ffe=h_(),hfe=vM(),mfe=tP(),yfe=e_().clearOutline,_fe=c_(),yN=_fe.handleEllipse,Ift=_fe.readPaths,Rft=JL().newShapes,Dft=jB(),Fft=gN().activateLastSelection,mP=Dr(),zft=mP.sorterAsc,xfe=MM(),CM=D6(),C0=hf().getFromId,Oft=hM(),qft=xM().redrawReglTraces,yP=ufe(),Am=yP.MINSELECT,Bft=xfe.filter,TN=xfe.tester,AN=XL(),dfe=AN.p2r,Nft=AN.axValue,Uft=AN.getTransform;function SN(e){return e.subplot!==void 0}function Vft(e,t,r,n,i){var a=!SN(n),o=Lft(i),s=Pft(i),l=bN(i),u=LM(i),c=wN(i),f=i==="drawline",h=i==="drawcircle",d=f||h,v=n.gd,x=v._fullLayout,b=c&&x.newselection.mode==="immediate"&&a,p=x._zoomlayer,C=n.element.getBoundingClientRect(),E=n.plotinfo,A=Uft(E),L=t-C.left,_=r-C.top;x._calcInverseTransform(v);var k=mP.apply3DTransform(x._invTransform)(L,_);L=k[0],_=k[1];var M=x._invScaleX,g=x._invScaleY,P=L,T=_,z="M"+L+","+_,O=n.xaxes[0],V=n.yaxes[0],G=O._length,Z=V._length,H=e.altKey&&!(LM(i)&&l),N,j,re,oe,_e,Me,ke;wfe(e,v,n),o&&(N=Bft([[L,_]],yP.BENDPX));var me=p.selectAll("path.select-outline-"+E.id).data([1]),ie=u?x.newshape:x.newselection;u&&(n.hasText=ie.label.text||ie.label.texttemplate);var Se=u&&!l?ie.fillcolor:"rgba(0,0,0,0)",Le=ie.line.color||(a?EM.contrast(v._fullLayout.plot_bgcolor):"#7f7f7f");me.enter().append("path").attr("class","select-outline select-outline-"+E.id).style({opacity:u?ie.opacity/2:1,"stroke-dasharray":Eft(ie.line.dash,ie.line.width),"stroke-width":ie.line.width+"px","shape-rendering":"crispEdges"}).call(EM.stroke,Le).call(EM.fill,Se).attr("fill-rule","evenodd").classed("cursor-move",!!u).attr("transform",A).attr("d",z+"Z");var Ae=p.append("path").attr("class","zoombox-corners").style({fill:EM.background,stroke:EM.defaultLine,"stroke-width":1}).attr("transform",A).attr("d","M0,0Z");if(u&&n.hasText){var De=p.select(".label-temp");De.empty()&&(De=p.append("g").classed("label-temp",!0).classed("select-outline",!0).style({opacity:.8}))}var Pe=x._uid+yP.SELECTID,ge=[],Fe=_P(v,n.xaxes,n.yaxes,n.subplot);b&&!e.shiftKey&&(n._clearSubplotSelections=function(){if(a){var Ze=O._id,ct=V._id;Efe(v,Ze,ct,Fe);for(var pt=(v.layout||{}).selections||[],Wt=[],st=!1,lt=0;lt=0){v._fullLayout._deactivateShape(v);return}if(!u){var pt=x.clickmode;CM.done(Pe).then(function(){if(CM.clear(Pe),Ze===2){for(me.remove(),_e=0;_e-1&&bfe(ct,v,n.xaxes,n.yaxes,n.subplot,n,me),pt==="event"&&RM(v,void 0);Cft.click(v,ct,E.id)}).catch(mP.error)}},n.doneFn=function(){Ae.remove(),CM.done(Pe).then(function(){CM.clear(Pe),!b&&oe&&n.selectionDefs&&(oe.subtract=H,n.selectionDefs.push(oe),n.mergedPolygons.length=0,[].push.apply(n.mergedPolygons,re)),(b||u)&&PM(n,b),n.doneFnCompleted&&n.doneFnCompleted(ge),c&&RM(v,ke)}).catch(mP.error)}}function bfe(e,t,r,n,i,a,o){var s=t._hoverdata,l=t._fullLayout,u=l.clickmode,c=u.indexOf("event")>-1,f=[],h,d,v,x,b,p,C,E,A,L;if(Xft(s)){wfe(e,t,a),h=_P(t,r,n,i);var _=Zft(s,h),k=_.pointNumbers.length>0;if(k?Yft(h,_):Kft(h)&&(C=pfe(_))){for(o&&o.remove(),L=0;L=0}function Wft(e){return e._fullLayout._activeSelectionIndex>=0}function PM(e,t){var r=e.dragmode,n=e.plotinfo,i=e.gd;jft(i)&&i._fullLayout._deactivateShape(i),Wft(i)&&i._fullLayout._deactivateSelection(i);var a=i._fullLayout,o=a._zoomlayer,s=LM(r),l=wN(r);if(s||l){var u=o.selectAll(".select-outline-"+n.id);if(u&&i._fullLayout._outlining){var c;s&&(c=Rft(u,e)),c&&kM.call("_guiRelayout",i,{shapes:c});var f;l&&!SN(e)&&(f=Dft(u,e)),f&&(i._fullLayout._noEmitSelectedAtStart=!0,kM.call("_guiRelayout",i,{selections:f}).then(function(){t&&Fft(i)})),i._fullLayout._outlining=!1}}n.selection={},n.selection.selectionDefs=e.selectionDefs=[],n.selection.mergedPolygons=e.mergedPolygons=[]}function vfe(e){return e._id}function _P(e,t,r,n){if(!e.calcdata)return[];var i=[],a=t.map(vfe),o=r.map(vfe),s,l,u;for(u=0;u0,a=i?n[0]:r;return t.selectedpoints?t.selectedpoints.indexOf(a)>-1:!1}function Yft(e,t){var r=[],n,i,a,o;for(o=0;o0&&r.push(n);if(r.length===1&&(a=r[0]===t.searchInfo,a&&(i=t.searchInfo.cd[0].trace,i.selectedpoints.length===t.pointNumbers.length))){for(o=0;o1||(t+=n.selectedpoints.length,t>1)))return!1;return t===1}function IM(e,t,r){var n;for(n=0;n-1&&t;if(!o&&t){var Ze=gfe(e,!0);if(Ze.length){var ct=Ze[0].xref,pt=Ze[0].yref;if(ct&&pt){var Wt=Cfe(Ze),st=kfe([C0(e,ct,"x"),C0(e,pt,"y")]);st(ge,Wt)}}e._fullLayout._noEmitSelectedAtStart?e._fullLayout._noEmitSelectedAtStart=!1:ce&&RM(e,ge),h._reselect=!1}if(!o&&h._deselect){var lt=h._deselect;s=lt.xref,l=lt.yref,Qft(s,l,c)||Efe(e,s,l,n),ce&&(ge.points.length?RM(e,ge):CN(e)),h._deselect=!1}return{eventData:ge,selectionTesters:r}}function $ft(e){var t=e.calcdata;if(t)for(var r=0;r{"use strict";Ife.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 FM=ye((aar,Rfe)=>{"use strict";Rfe.exports={axisRefDescription:function(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 Nb=ye((sar,zfe)=>{"use strict";var Dfe=kN(),Ffe=ec(),xP=hd(),nht=pl().templatedArray,oar=FM();zfe.exports=nht("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:Ffe({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:Dfe.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:Dfe.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",xP.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",xP.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",xP.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",xP.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:Ffe({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc"})});var Sm=ye((lar,Ofe)=>{"use strict";Ofe.exports={PTS_LINESONLY:20,minTolerance:.2,toleranceGrowth:10,maxScreensAway:20,eventDataKeys:[]}});var Eg=ye((uar,qfe)=>{"use strict";qfe.exports=function(t){return{valType:"color",editType:"style",anim:!0}}});var pf=ye((car,Hfe)=>{"use strict";var Bfe=df().axisHoverFormat,aht=Qo().texttemplateAttrs,oht=Qo().hovertemplateAttrs,Nfe=Tu(),sht=ec(),lht=Pd().dash,uht=Pd().pattern,cht=So(),fht=Sm(),bP=Ao().extendFlat,hht=Eg();function Ufe(e){return{valType:"any",dflt:0,editType:"calc"}}function Vfe(e){return{valType:"any",editType:"calc"}}function Gfe(e){return{valType:"enumerated",values:["start","middle","end"],dflt:"middle",editType:"calc"}}Hfe.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:Ufe("x"),yperiod:Ufe("y"),xperiod0:Vfe("x0"),yperiod0:Vfe("y0"),xperiodalignment:Gfe("x"),yperiodalignment:Gfe("y"),xhoverformat:Bfe("x"),yhoverformat:Bfe("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:aht({},{}),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:oht({},{keys:fht.eventDataKeys}),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:bP({},lht,{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:hht(!0),fillgradient:bP({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:uht,marker:bP({symbol:{valType:"enumerated",values:cht.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:bP({width:{valType:"number",min:0,arrayOk:!0,editType:"style",anim:!0},editType:"calc"},Nfe("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"},Nfe("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:sht({editType:"calc",colorEditType:"style",arrayOk:!0}),zorder:{valType:"integer",dflt:0,editType:"plot"}}});var LN=ye((har,Xfe)=>{"use strict";var jfe=Nb(),Wfe=pf().line,dht=Pd().dash,wP=Ao().extendFlat,vht=mc().overrideAll,pht=pl().templatedArray,far=FM();Xfe.exports=vht(pht("selection",{type:{valType:"enumerated",values:["rect","path"]},xref:wP({},jfe.xref,{}),yref:wP({},jfe.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:Wfe.color,width:wP({},Wfe.width,{min:1,dflt:1}),dash:wP({},dht,{dflt:"dot"})}}),"arraydraw","from-root")});var Jfe=ye((dar,Kfe)=>{"use strict";var Zfe=Dr(),TP=ho(),ght=Yd(),mht=LN(),Yfe=h_();Kfe.exports=function(t,r){ght(t,r,{name:"selections",handleItemDefaults:yht});for(var n=r.selections,i=0;i{"use strict";$fe.exports=function(t,r,n){n("newselection.mode");var i=n("newselection.line.width");i&&(n("newselection.line.color"),n("newselection.line.dash")),n("activeselection.fillcolor"),n("activeselection.opacity")}});var zM=ye((gar,rhe)=>{"use strict";var _ht=qa(),ehe=Dr(),the=hf();rhe.exports=function(t){return function(n,i){var a=n[t];if(Array.isArray(a))for(var o=_ht.subplotsRegistry.cartesian,s=o.idRegex,l=i._subplots,u=l.xaxis,c=l.yaxis,f=l.cartesian,h=i._has("cartesian"),d=0;d{"use strict";var ihe=gN(),OM=Pfe();nhe.exports={moduleType:"component",name:"selections",layoutAttributes:LN(),supplyLayoutDefaults:Jfe(),supplyDrawNewSelectionDefaults:Qfe(),includeBasePlot:zM()("selections"),draw:ihe.draw,drawOne:ihe.drawOne,reselect:OM.reselect,prepSelect:OM.prepSelect,clearOutline:OM.clearOutline,clearSelectionsCache:OM.clearSelectionsCache,selectOnClick:OM.selectOnClick}});var ON=ye((yar,Ahe)=>{"use strict";var FN=Oa(),k0=Dr(),ahe=k0.numberFormat,xht=cd(),bht=PL(),AP=qa(),vhe=k0.strTranslate,wht=iu(),ohe=Ca(),v_=So(),Tht=vf(),she=ho(),Aht=Tg(),Sht=gv(),phe=Sg(),SP=phe.selectingOrDrawing,Mht=phe.freeMode,Eht=Kh().FROM_TL,Cht=hM(),kht=xM().redrawReglTraces,Lht=Mc(),IN=hf().getFromId,Pht=zf().prepSelect,Iht=zf().clearOutline,Rht=zf().selectOnClick,PN=lN(),zN=hd(),lhe=zN.MINDRAG,ip=zN.MINZOOM,uhe=!0;function Dht(e,t,r,n,i,a,o,s){var l=e._fullLayout._zoomlayer,u=o+s==="nsew",c=(o+s).length===1,f,h,d,v,x,b,p,C,E,A,L,_,k,M,g,P,T,z,O,V,G,Z,H;r+=t.yaxis._shift;function N(){if(f=t.xaxis,h=t.yaxis,E=f._length,A=h._length,p=f._offset,C=h._offset,d={},d[f._id]=f,v={},v[h._id]=h,o&&s)for(var bt=t.overlays,yt=0;yt=0){Yt._fullLayout._deactivateShape(Yt);return}var lr=Yt._fullLayout.clickmode;if(DN(Yt),bt===2&&!c&&ur(),u)lr.indexOf("select")>-1&&Rht(yt,Yt,x,b,t.id,oe),lr.indexOf("event")>-1&&Tht.click(Yt,yt,t.id);else if(bt===1&&c){var Tr=o?h:f,Rr=o==="s"||s==="w"?0:1,ei=Tr._name+".range["+Rr+"]",Wr=Fht(Tr,Rr),Ur="left",dt="middle";if(Tr.fixedrange)return;o?(dt=o==="n"?"top":"bottom",Tr.side==="right"&&(Ur="right")):s==="e"&&(Ur="right"),Yt._context.showAxisRangeEntryBoxes&&FN.select(re).call(wht.makeEditable,{gd:Yt,immediate:!0,background:Yt._fullLayout.paper_bgcolor,text:String(Wr),fill:Tr.tickfont?Tr.tickfont.color:"#444",horizontalAlign:Ur,verticalAlign:dt}).on("edit",function(Ge){var Je=Tr.d2r(Ge);Je!==void 0&&AP.call("_guiRelayout",Yt,ei,Je)})}}Sht.init(oe);var ke,me,ie,Se,Le,Ae,De,Pe,ge,Fe;function ce(bt,yt,Yt){var lr=re.getBoundingClientRect();ke=yt-lr.left,me=Yt-lr.top,e._fullLayout._calcInverseTransform(e);var Tr=k0.apply3DTransform(e._fullLayout._invTransform)(ke,me);ke=Tr[0],me=Tr[1],ie={l:ke,r:ke,w:0,t:me,b:me,h:0},Se=e._hmpixcount?e._hmlumcount/e._hmpixcount:xht(e._fullLayout.plot_bgcolor).getLuminance(),Le="M0,0H"+E+"V"+A+"H0V0",Ae=!1,De="xy",Fe=!1,Pe=yhe(l,Se,p,C,Le),ge=_he(l,p,C)}function Ze(bt,yt){if(e._transitioningWithDuration)return!1;var Yt=Math.max(0,Math.min(E,Z*bt+ke)),lr=Math.max(0,Math.min(A,H*yt+me)),Tr=Math.abs(Yt-ke),Rr=Math.abs(lr-me);ie.l=Math.min(ke,Yt),ie.r=Math.max(ke,Yt),ie.t=Math.min(me,lr),ie.b=Math.max(me,lr);function ei(){De="",ie.r=ie.l,ie.t=ie.b,ge.attr("d","M0,0Z")}if(L.isSubplotConstrained)Tr>ip||Rr>ip?(De="xy",Tr/E>Rr/A?(Rr=Tr*A/E,me>lr?ie.t=me-Rr:ie.b=me+Rr):(Tr=Rr*E/A,ke>Yt?ie.l=ke-Tr:ie.r=ke+Tr),ge.attr("d",MP(ie))):ei();else if(_.isSubplotConstrained)if(Tr>ip||Rr>ip){De="xy";var Wr=Math.min(ie.l/E,(A-ie.b)/A),Ur=Math.max(ie.r/E,(A-ie.t)/A);ie.l=Wr*E,ie.r=Ur*E,ie.b=(1-Wr)*A,ie.t=(1-Ur)*A,ge.attr("d",MP(ie))}else ei();else!M||Rr0){var Ge;if(_.isSubplotConstrained||!k&&M.length===1){for(Ge=0;Ge1&&(ei.maxallowed!==void 0&&P===(ei.range[0]1&&(Wr.maxallowed!==void 0&&T===(Wr.range[0]=0?Math.min(e,.9):1/(1/Math.max(e,-.3)+3.222))}function Oht(e,t,r){return e?e==="nsew"?r?"":t==="pan"?"move":"crosshair":e.toLowerCase()+"-resize":"pointer"}function yhe(e,t,r,n,i){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",vhe(r,n)).attr("d",i+"Z")}function _he(e,t,r){return e.append("path").attr("class","zoombox-corners").style({fill:ohe.background,stroke:ohe.defaultLine,"stroke-width":1,opacity:0}).attr("transform",vhe(t,r)).attr("d","M0,0Z")}function xhe(e,t,r,n,i,a){e.attr("d",n+"M"+r.l+","+r.t+"v"+r.h+"h"+r.w+"v-"+r.h+"h-"+r.w+"Z"),bhe(e,t,i,a)}function bhe(e,t,r,n){r||(e.transition().style("fill",n>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),t.transition().style("opacity",1).duration(200))}function DN(e){FN.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function whe(e){uhe&&e.data&&e._context.showTips&&(k0.notifier(k0._(e,"Double-click to zoom back out"),"long"),uhe=!1)}function qht(e,t){return"M"+(e.l-.5)+","+(t-ip-.5)+"h-3v"+(2*ip+1)+"h3ZM"+(e.r+.5)+","+(t-ip-.5)+"h3v"+(2*ip+1)+"h-3Z"}function Bht(e,t){return"M"+(t-ip-.5)+","+(e.t-.5)+"v-3h"+(2*ip+1)+"v3ZM"+(t-ip-.5)+","+(e.b+.5)+"v3h"+(2*ip+1)+"v-3Z"}function MP(e){var t=Math.floor(Math.min(e.b-e.t,e.r-e.l,ip)/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 hhe(e,t,r,n,i){for(var a=!1,o={},s={},l,u,c,f,h=(i||{}).xaHash,d=(i||{}).yaHash,v=0;v{"use strict";var Nht=Oa(),EP=vf(),Uht=gv(),Vht=Tg(),Cg=ON().makeDragBox,gd=hd().DRAGGERSIZE;CP.initInteractions=function(t){var r=t._fullLayout;if(t._context.staticPlot){Nht.select(t).selectAll(".drag").remove();return}if(!(!r._has("cartesian")&&!r._has("splom"))){var n=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});n.forEach(function(a){var o=r._plots[a],s=o.xaxis,l=o.yaxis;if(!o.mainplot){var u=Cg(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]&&EP.hover(t,h,a)},EP.hover(t,h,a),t._fullLayout._lasthover=u,t._fullLayout._hoversubplot=a},u.onmouseout=function(h){t._dragging||(t._fullLayout._hoversubplot=null,Uht.unhover(t,h))},t._context.showAxisDragHandles&&(Cg(t,o,s._offset-gd,l._offset-gd,gd,gd,"n","w"),Cg(t,o,s._offset+s._length,l._offset-gd,gd,gd,"n","e"),Cg(t,o,s._offset-gd,l._offset+l._length,gd,gd,"s","w"),Cg(t,o,s._offset+s._length,l._offset+l._length,gd,gd,"s","e"))}if(t._context.showAxisDragHandles){if(a===s._mainSubplot){var c=s._mainLinePosition;s.side==="top"&&(c-=gd),Cg(t,o,s._offset+s._length*.1,c,s._length*.8,gd,"","ew"),Cg(t,o,s._offset,c,s._length*.1,gd,"","w"),Cg(t,o,s._offset+s._length*.9,c,s._length*.1,gd,"","e")}if(a===l._mainSubplot){var f=l._mainLinePosition;l.side!=="right"&&(f-=gd),Cg(t,o,f,l._offset+l._length*.1,gd,l._length*.8,"ns",""),Cg(t,o,f,l._offset+l._length*.9,gd,l._length*.1,"s",""),Cg(t,o,f,l._offset,gd,l._length*.1,"n","")}}});var i=r._hoverlayer.node();i.onmousemove=function(a){a.target=t._fullLayout._lasthover,EP.hover(t,a,r._hoversubplot)},i.onclick=function(a){a.target=t._fullLayout._lasthover,EP.click(t,a)},i.onmousedown=function(a){t._fullLayout._lasthover.onmousedown(a)},CP.updateFx(t)}};CP.updateFx=function(e){var t=e._fullLayout,r=t.dragmode==="pan"?"move":"crosshair";Vht(t._draggers,r)}});var Ehe=ye((xar,Mhe)=>{"use strict";var She=qa();Mhe.exports=function(t){for(var r=She.layoutArrayContainers,n=She.layoutArrayRegexes,i=t.split("[")[0],a,o,s=0;s{"use strict";var Ght=gy(),BN=x6(),qM=H1(),Hht=P6().sorterAsc,NN=qa();BM.containerArrayMatch=Ehe();var jht=BM.isAddVal=function(t){return t==="add"||Ght(t)},Che=BM.isRemoveVal=function(t){return t===null||t==="remove"};BM.applyContainerArrayChanges=function(t,r,n,i,a){var o=r.astr,s=NN.getComponentMethod(o,"supplyLayoutDefaults"),l=NN.getComponentMethod(o,"draw"),u=NN.getComponentMethod(o,"drawOne"),c=i.replot||i.recalc||s===BN||l===BN,f=t.layout,h=t._fullLayout;if(n[""]){Object.keys(n).length>1&&qM.warn("Full array edits are incompatible with other edits",o);var d=n[""][""];if(Che(d))r.set(null);else if(Array.isArray(d))r.set(d);else return qM.warn("Unrecognized full array edit value",o,d),!0;return c?!1:(s(f,h),l(t),!0)}var v=Object.keys(n).map(Number).sort(Hht),x=r.get(),b=x||[],p=a(h,o).get(),C=[],E=-1,A=b.length,L,_,k,M,g,P,T,z;for(L=0;Lb.length-(T?0:1)){qM.warn("index out of range",o,k);continue}if(P!==void 0)g.length>1&&qM.warn("Insertion & removal are incompatible with edits to the same index.",o,k),Che(P)?C.push(k):T?(P==="add"&&(P={}),b.splice(k,0,P),p&&p.splice(k,0,{})):qM.warn("Unrecognized full object edit value",o,k,P),E===-1&&(E=k);else for(_=0;_=0;L--)b.splice(C[L],1),p&&p.splice(C[L],1);if(b.length?x||r.set(b):r.set(null),c)return!1;if(s(f,h),u!==BN){var O;if(E===-1)O=v;else{for(A=Math.max(b.length,A),O=[],L=0;L=E));L++)O.push(k);for(L=E;L{"use strict";var Rhe=Eo(),war=RO(),Dhe=qa(),Ep=Dr(),NM=Mc(),Fhe=hf(),zhe=Ca(),UM=Fhe.cleanId,Wht=Fhe.getFromTrace,UN=Dhe.traceIs;kg.clearPromiseQueue=function(e){Array.isArray(e._promises)&&e._promises.length>0&&Ep.log("Clearing previous rejected promises from queue."),e._promises=[]};kg.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 n=(NM.subplotsRegistry.cartesian||{}).attrRegex,i=(NM.subplotsRegistry.polar||{}).attrRegex,a=(NM.subplotsRegistry.ternary||{}).attrRegex,o=(NM.subplotsRegistry.gl3d||{}).attrRegex,s=Object.keys(e);for(t=0;t3?(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"),zhe.clean(e),e.template&&e.template.layout&&kg.cleanLayout(e.template.layout),e};function Y3(e,t){var r=e[t],n=t.charAt(0);r&&r!=="paper"&&(e[t]=UM(r,n,!0))}kg.cleanData=function(e){for(var t=0;t0)return e.substr(0,t)}kg.hasParent=function(e,t){for(var r=Ihe(t);r;){if(r in e)return!0;r=Ihe(r)}return!1};var Yht=["x","y","z"];kg.clearAxisTypes=function(e,t,r){for(var n=0;n{"use strict";var IP=Oa(),Kht=Eo(),Jht=tq(),xa=Dr(),Ec=xa.nestedProperty,HN=g3(),np=_ne(),L0=qa(),BP=_3(),es=Mc(),Nv=ho(),$ht=gB(),Qht=Rd(),VN=So(),edt=Ca(),tdt=qN().initInteractions,rdt=Wp(),idt=zf().clearOutline,Vhe=ub().dfltConfig,LP=khe(),Ih=Ohe(),Au=xM(),p_=mc(),ndt=hd().AX_NAME_PATTERN,GN=0,qhe=5;function adt(e,t,r,n){var i;if(e=xa.getGraphDiv(e),HN.init(e),xa.isPlainObject(t)){var a=t;t=a.data,r=a.layout,n=a.config,i=a.frames}var o=HN.triggerHandler(e,"plotly_beforeplot",[t,r,n]);if(o===!1)return Promise.reject();!t&&!r&&!xa.isPlotDiv(e)&&xa.warn("Calling _doPlot as if redrawing but this container doesn't yet have a plot.",e);function s(){if(i)return Gl.addFrames(e,i)}Hhe(e,n),r||(r={}),IP.select(e).classed("js-plotly-plot",!0),VN.makeTester(),Array.isArray(e._promises)||(e._promises=[]);var l=(e.data||[]).length===0&&Array.isArray(t);Array.isArray(t)&&(Ih.cleanData(t),l?e.data=t:e.data.push.apply(e.data,t),e.empty=!1),(!e.layout||l)&&(e.layout=Ih.cleanLayout(r)),es.supplyDefaults(e);var u=e._fullLayout,c=u._has("cartesian");u._replotting=!0,(l||u._shouldCreateBgLayer)&&(Cdt(e),u._shouldCreateBgLayer&&delete u._shouldCreateBgLayer),VN.initGradients(e),VN.initPatterns(e),l&&Nv.saveShowSpikeInitial(e);var f=!e.calcdata||e.calcdata.length!==(e._fullData||[]).length;f&&es.doCalcdata(e);for(var h=0;h=e.data.length||i<-e.data.length)throw new Error(r+" must be valid indices for gd.data.");if(t.indexOf(i,n+1)>-1||i>=0&&t.indexOf(-e.data.length+i)>-1||i<0&&t.indexOf(e.data.length+i)>-1)throw new Error("each index in "+r+" must be unique.")}}function jhe(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]),DP(e,t,"currentIndices"),typeof r!="undefined"&&!Array.isArray(r)&&(r=[r]),typeof r!="undefined"&&DP(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 n,i;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]),n=0;n=0&&c=0&&c0&&typeof M.parts[T]!="string";)T--;var z=M.parts[T],O=M.parts[T-1]+"."+z,V=M.parts.slice(0,T).join("."),G=Ec(e.layout,V).get(),Z=Ec(n,V).get(),H=M.get();if(g!==void 0){p[k]=g,C[k]=z==="reverse"?g:ky(H);var N=BP.getLayoutValObject(n,M.parts);if(N&&N.impliedEdits&&g!==null)for(var j in N.impliedEdits)E(xa.relativeAttr(k,j),N.impliedEdits[j]);if(["width","height"].indexOf(k)!==-1)if(g){E("autosize",null);var re=k==="height"?"width":"height";E(re,n[re])}else n[k]=e._initialAutoSize[k];else if(k==="autosize")E("width",g?null:n.width),E("height",g?null:n.height);else if(O.match(ede))_(O),Ec(n,V+"._inputRange").set(null);else if(O.match(tde)){_(O),Ec(n,V+"._inputRange").set(null);var oe=Ec(n,V).get();oe._inputDomain&&(oe._input.domain=oe._inputDomain.slice())}else O.match(vdt)&&Ec(n,V+"._inputDomain").set(null);if(z==="type"){L=G;var _e=Z.type==="linear"&&g==="log",Me=Z.type==="log"&&g==="linear";if(_e||Me){if(!L||!L.range)E(V+".autorange",!0);else if(Z.autorange)_e&&(L.range=L.range[1]>L.range[0]?[1,2]:[2,1]);else{var ke=L.range[0],me=L.range[1];_e?(ke<=0&&me<=0&&E(V+".autorange",!0),ke<=0?ke=me/1e6:me<=0&&(me=ke/1e6),E(V+".range[0]",Math.log(ke)/Math.LN10),E(V+".range[1]",Math.log(me)/Math.LN10)):(E(V+".range[0]",Math.pow(10,ke)),E(V+".range[1]",Math.pow(10,me)))}Array.isArray(n._subplots.polar)&&n._subplots.polar.length&&n[M.parts[0]]&&M.parts[1]==="radialaxis"&&delete n[M.parts[0]]._subplot.viewInitial["radialaxis.range"],L0.getComponentMethod("annotations","convertCoords")(e,Z,g,E),L0.getComponentMethod("images","convertCoords")(e,Z,g,E)}else E(V+".autorange",!0),E(V+".range",null);Ec(n,V+"._inputRange").set(null)}else if(z.match(ndt)){var ie=Ec(n,k).get(),Se=(g||{}).type;(!Se||Se==="-")&&(Se="linear"),L0.getComponentMethod("annotations","convertCoords")(e,ie,Se,E),L0.getComponentMethod("images","convertCoords")(e,ie,Se,E)}var Le=LP.containerArrayMatch(k);if(Le){c=Le.array,f=Le.index;var Ae=Le.property,De=N||{editType:"calc"};f!==""&&Ae===""&&(LP.isAddVal(g)?C[k]=null:LP.isRemoveVal(g)?C[k]=(Ec(r,c).get()||[])[f]:xa.warn("unrecognized full object value",t)),p_.update(b,De),u[c]||(u[c]={});var Pe=u[c][f];Pe||(Pe=u[c][f]={}),Pe[Ae]=g,delete t[k]}else z==="reverse"?(G.range?G.range.reverse():(E(V+".autorange",!0),G.range=[1,0]),Z.autorange?b.calc=!0:b.plot=!0):(k==="dragmode"&&(g===!1&&H!==!1||g!==!1&&H===!1)||n._has("scatter-like")&&n._has("regl")&&k==="dragmode"&&(g==="lasso"||g==="select")&&!(H==="lasso"||H==="select")?b.plot=!0:N?p_.update(b,N):b.calc=!0,M.set(g))}}for(c in u){var ge=LP.applyContainerArrayChanges(e,a(r,c),u[c],b,a);ge||(b.plot=!0)}for(var Fe in A){L=Nv.getFromId(e,Fe);var ce=L&&L._constraintGroup;if(ce){b.calc=!0;for(var Ze in ce)A[Ze]||(Nv.getFromId(e,Ze)._constraintShrinkable=!0)}}(ide(e)||t.height||t.width)&&(b.plot=!0);var ct=n.shapes;for(f=0;f1;)if(n.pop(),r=Ec(t,n.join(".")+".uirevision").get(),r!==void 0)return r;return t.uirevision}function mdt(e,t){for(var r=0;r=i.length?i[0]:i[u]:i}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(n._frameQueue.length!==0){for(;n._frameQueue.length;){var z=n._frameQueue.pop();z.onInterrupt&&z.onInterrupt()}e.emit("plotly_animationinterrupted",[])}}function h(z){if(z.length!==0){for(var O=0;On._timeToNext&&v()};z()}var b=0;function p(z){return Array.isArray(i)?b>=i.length?z.transitionOpts=i[b]:z.transitionOpts=i[0]:z.transitionOpts=i,b++,z}var C,E,A=[],L=t==null,_=Array.isArray(t),k=!L&&!_&&xa.isPlainObject(t);if(k)A.push({type:"object",data:p(xa.extendFlat({},t))});else if(L||["string","number"].indexOf(typeof t)!==-1)for(C=0;C0&&PP)&&T.push(E);A=T}}A.length>0?h(A):(e.emit("plotly_animated"),u())})}function Adt(e,t,r){if(e=xa.getGraphDiv(e),t==null)return Promise.resolve();if(!xa.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,i,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(n=t.length-1;n>=0;n--)if(xa.isPlainObject(t[n])){var h=t[n].name,d=(l[h]||f[h]||{}).name,v=t[n].name,x=l[d]||f[d];d&&v&&typeof v=="number"&&x&&GNM.index?-1:k.index=0;n--){if(i=c[n].frame,typeof i.name=="number"&&xa.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!i.name)for(;l[i.name="frame "+e._transitionData._counter++];);if(l[i.name]){for(a=0;a=0;r--)n=t[r],a.push({type:"delete",index:n}),o.unshift({type:"insert",index:n,value:i[n]});var s=es.modifyFrames,l=es.modifyFrames,u=[e,o],c=[e,a];return np&&np.add(e,s,u,l,c),es.modifyFrames(e,a)}function Mdt(e){e=xa.getGraphDiv(e);var t=e._fullLayout||{},r=e._fullData||[];return es.cleanPlot([],{},r,t),es.purge(e),HN.purge(e),t._container&&t._container.remove(),delete e._context,e}function Edt(e){var t=e._fullLayout,r=e.getBoundingClientRect();if(!xa.equalDomRects(r,t._lastBBox)){var n=t._invTransform=xa.inverseTransformMatrix(xa.getFullTransformMatrix(e));t._invScaleX=Math.sqrt(n[0][0]*n[0][0]+n[0][1]*n[0][1]+n[0][2]*n[0][2]),t._invScaleY=Math.sqrt(n[1][0]*n[1][0]+n[1][1]*n[1][1]+n[1][2]*n[1][2]),t._lastBBox=r}}function Cdt(e){var t=IP.select(e),r=e._fullLayout;if(r._calcInverseTransform=Edt,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 n={};IP.selectAll("defs").each(function(){this.id&&(n[this.id.split("-")[1]]=1)}),r._uid=xa.randstr(n)}r._paperdiv.selectAll(".main-svg").attr(rdt.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 i=r._paper.append("g").classed("layer-below",!0);r._imageLowerLayer=i.append("g").classed("imagelayer",!0),r._shapeLowerLayer=i.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")}Gl.animate=Tdt;Gl.addFrames=Adt;Gl.deleteFrames=Sdt;Gl.addTraces=Khe;Gl.deleteTraces=Jhe;Gl.extendTraces=Zhe;Gl.moveTraces=jN;Gl.prependTraces=Yhe;Gl.newPlot=udt;Gl._doPlot=adt;Gl.purge=Mdt;Gl.react=xdt;Gl.redraw=ldt;Gl.relayout=VM;Gl.restyle=FP;Gl.setPlotConfig=odt;Gl.update=OP;Gl._guiRelayout=XN(VM);Gl._guiRestyle=XN(FP);Gl._guiUpdate=XN(OP);Gl._storeDirectGUIEdit=ddt});var Ly=ye(Mm=>{"use strict";var kdt=qa();Mm.getDelay=function(e){return e._has&&(e._has("gl3d")||e._has("mapbox")||e._has("map"))?500:0};Mm.getRedrawFunc=function(e){return function(){kdt.getComponentMethod("colorbar","draw")(e)}};Mm.encodeSVG=function(e){return"data:image/svg+xml,"+encodeURIComponent(e)};Mm.encodeJSON=function(e){return"data:application/json,"+encodeURIComponent(e)};var nde=window.URL||window.webkitURL;Mm.createObjectURL=function(e){return nde.createObjectURL(e)};Mm.revokeObjectURL=function(e){return nde.revokeObjectURL(e)};Mm.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=Ldt(window.atob(e));return new window.Blob([r],{type:"image/"+t})};Mm.octetStream=function(e){document.location.href="data:application/octet-stream"+e};function Ldt(e){for(var t=e.length,r=new ArrayBuffer(t),n=new Uint8Array(r),i=0;i{"use strict";var YN=Oa(),Mar=Dr(),Pdt=So(),Idt=Ca(),Ear=Wp(),ZN=/"/g,HM="TOBESTRIPPED",Rdt=new RegExp('("'+HM+")|("+HM+'")',"g");function Ddt(e){var t=YN.select("body").append("div").style({display:"none"}).html(""),r=e.replace(/(&[^;]*;)/gi,function(n){return n==="<"?"<":n==="&rt;"?">":n.indexOf("<")!==-1||n.indexOf(">")!==-1?"":t.html(n).text()});return t.remove(),r}function Fdt(e){return e.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")}ade.exports=function(t,r,n){var i=t._fullLayout,a=i._paper,o=i._toppaper,s=i.width,l=i.height,u;a.insert("rect",":first-child").call(Pdt.setRect,0,0,s,l).call(Idt.fill,i.paper_bgcolor);var c=i._basePlotModules||[];for(u=0;u{"use strict";var zdt=Dr(),Odt=vb().EventEmitter,jM=Ly();function qdt(e){var t=e.emitter||new Odt,r=new Promise(function(n,i){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,d=u*f,v=l.getContext("2d",{willReadFrequently:!0}),x=new a,b,p;s==="svg"||zdt.isSafari()?p=jM.encodeSVG(o):(b=jM.createBlob(o,"svg"),p=jM.createObjectURL(b)),l.width=h,l.height=d,x.onload=function(){var C;switch(b=null,jM.revokeObjectURL(p),s!=="svg"&&v.drawImage(x,0,0,h,d),s){case"jpeg":C=l.toDataURL("image/jpeg");break;case"png":C=l.toDataURL("image/png");break;case"webp":C=l.toDataURL("image/webp");break;case"svg":C=p;break;default:var E="Image format is not jpeg, png, svg or webp.";if(i(new Error(E)),!e.promise)return t.emit("error",E)}n(C),e.promise||t.emit("success",C)},x.onerror=function(C){if(b=null,jM.revokeObjectURL(p),i(C),!e.promise)return t.emit("error",C)},x.src=p});return e.promise?r:t}ode.exports=qdt});var JN=ye((Lar,ude)=>{"use strict";var sde=Eo(),lde=UP(),Bdt=Mc(),Em=Dr(),WM=Ly(),Ndt=VP(),Udt=GP(),Vdt=o6().version,KN={format:{valType:"enumerated",values:["png","jpeg","webp","svg","full-json"],dflt:"png"},width:{valType:"number",min:1},height:{valType:"number",min:1},scale:{valType:"number",min:0,dflt:1},setBackground:{valType:"any",dflt:!1},imageDataOnly:{valType:"boolean",dflt:!1}};function Gdt(e,t){t=t||{};var r,n,i,a;Em.isPlainObject(e)?(r=e.data||[],n=e.layout||{},i=e.config||{},a={}):(e=Em.getGraphDiv(e),r=Em.extendDeep([],e.data),n=Em.extendDeep({},e.layout),i=e._context,a=e._fullLayout||{});function o(_){return!(_ in t)||Em.validate(t[_],KN[_])}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 "+Em.join2(KN.format.values,", "," or ")+".");var s={};function l(_,k){return Em.coerce(t,s,KN,_,k)}var u=l("format"),c=l("width"),f=l("height"),h=l("scale"),d=l("setBackground"),v=l("imageDataOnly"),x=document.createElement("div");x.style.position="absolute",x.style.left="-5000px",document.body.appendChild(x);var b=Em.extendFlat({},n);c?b.width=c:t.width===null&&sde(a.width)&&(b.width=a.width),f?b.height=f:t.height===null&&sde(a.height)&&(b.height=a.height);var p=Em.extendFlat({},i,{_exportedPlot:!0,staticPlot:!0,setBackground:d}),C=WM.getRedrawFunc(x);function E(){return new Promise(function(_){setTimeout(_,WM.getDelay(x._fullLayout))})}function A(){return new Promise(function(_,k){var M=Ndt(x,u,h),g=x._fullLayout.width,P=x._fullLayout.height;function T(){lde.purge(x),document.body.removeChild(x)}if(u==="full-json"){var z=Bdt.graphJson(x,!1,"keepdata","object",!0,!0);return z.version=Vdt,z=JSON.stringify(z),T(),_(v?z:WM.encodeJSON(z))}if(T(),u==="svg")return _(v?M:WM.encodeSVG(M));var O=document.createElement("canvas");O.id=Em.randstr(),Udt({format:u,width:g,height:P,scale:h,canvas:O,svg:M,promise:!0}).then(_).catch(k)})}function L(_){return v?_.replace(WM.IMAGE_URL_PREFIX,""):_}return new Promise(function(_,k){lde.newPlot(x,r,b,p).then(C).then(E).then(A).then(function(M){_(L(M))}).catch(function(M){k(M)})})}ude.exports=Gdt});var hde=ye((Par,fde)=>{"use strict";var P0=Dr(),Hdt=Mc(),jdt=_3(),Wdt=ub().dfltConfig,Lg=P0.isPlainObject,Vb=Array.isArray,$N=P0.isArrayOrTypedArray;fde.exports=function(t,r){t===void 0&&(t=[]),r===void 0&&(r={});var n=jdt.get(),i=[],a={_context:P0.extendFlat({},Wdt)},o,s;Vb(t)?(a.data=P0.extendDeep([],t),o=t):(a.data=[],o=[],i.push(md("array","data"))),Lg(r)?(a.layout=P0.extendDeep({},r),s=r):(a.layout={},s={},arguments.length>1&&i.push(md("object","layout"))),Hdt.supplyDefaults(a);for(var l=a._fullData,u=o.length,c=0;cf.length&&n.push(md("unused",i,u.concat(f.length)));var p=f.length,C=Array.isArray(b);C&&(p=Math.min(p,b.length));var E,A,L,_,k;if(h.dimensions===2)for(A=0;Af[A].length&&n.push(md("unused",i,u.concat(A,f[A].length)));var M=f[A].length;for(E=0;E<(C?Math.min(M,b[A].length):M);E++)L=C?b[A][E]:b,_=c[A][E],k=f[A][E],P0.validate(_,L)?k!==_&&k!==+_&&n.push(md("dynamic",i,u.concat(A,E),_,k)):n.push(md("value",i,u.concat(A,E),_))}else n.push(md("array",i,u.concat(A),c[A]));else for(A=0;A{"use strict";var Qdt=Dr(),jP=Ly();function evt(e,t,r){var n=document.createElement("a"),i="download"in n,a=new Promise(function(o,s){var l,u;if(i)return l=jP.createBlob(e,r),u=jP.createObjectURL(l),n.href=u,n.download=t,document.body.appendChild(n),n.click(),document.body.removeChild(n),jP.revokeObjectURL(u),l=null,o(t);if(Qdt.isSafari()){var c=r==="svg"?",":";base64,";return jP.octetStream(c+encodeURIComponent(e)),o(t)}s(new Error("download error"))});return a}dde.exports=evt});var QN=ye((Dar,gde)=>{"use strict";var pde=Dr(),tvt=JN(),rvt=vde(),Rar=Ly();function ivt(e,t){var r;return pde.isPlainObject(e)||(r=pde.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(n,i){r&&r._snapshotInProgress&&i(new Error("Snapshotting already in progress.")),r&&(r._snapshotInProgress=!0);var a=tvt(e,t),o=t.filename||e.fn||"newplot";o+="."+t.format.replace("-","."),a.then(function(s){return r&&(r._snapshotInProgress=!1),rvt(s,o,t.format)}).then(function(s){n(s)}).catch(function(s){r&&(r._snapshotInProgress=!1),i(s)})})}gde.exports=ivt});var bde=ye(eU=>{"use strict";var Cp=Dr(),kp=Cp.isPlainObject,mde=_3(),yde=Mc(),nvt=Vl(),_de=pl(),xde=ub().dfltConfig;eU.makeTemplate=function(e){e=Cp.isPlainObject(e)?e:Cp.getGraphDiv(e),e=Cp.extendDeep({_context:xde},{data:e.data,layout:e.layout}),yde.supplyDefaults(e);var t=e.data||[],r=e.layout||{};r._basePlotModules=e._fullLayout._basePlotModules,r._modules=e._fullLayout._modules;var n={data:{},layout:{}};t.forEach(function(d){var v={};XM(d,v,ovt.bind(null,d));var x=Cp.coerce(d,{},nvt,"type"),b=n.data[x];b||(b=n.data[x]=[]),b.push(v)}),XM(r,n.layout,avt.bind(null,r)),delete n.layout.template;var i=r.template;if(kp(i)){var a=i.layout,o,s,l,u,c,f;kp(a)&&WP(a,n.layout);var h=i.data;if(kp(h)){for(s in n.data)if(l=h[s],Array.isArray(l)){for(c=n.data[s],f=c.length,u=l.length,o=0;op?o.push({code:"unused",traceType:d,templateCount:b,dataCount:p}):p>b&&o.push({code:"reused",traceType:d,templateCount:b,dataCount:p})}}function C(E,A){for(var L in E)if(L.charAt(0)!=="_"){var _=E[L],k=I0(E,L,A);kp(_)?(Array.isArray(E)&&_._template===!1&&_.templateitemname&&o.push({code:"missing",path:k,templateitemname:_.templateitemname}),C(_,k)):Array.isArray(_)&&svt(_)&&C(_,k)}}if(C({data:l,layout:s},""),o.length)return o.map(lvt)};function svt(e){for(var t=0;t{"use strict";var Qh=UP();ef._doPlot=Qh._doPlot;ef.newPlot=Qh.newPlot;ef.restyle=Qh.restyle;ef.relayout=Qh.relayout;ef.redraw=Qh.redraw;ef.update=Qh.update;ef._guiRestyle=Qh._guiRestyle;ef._guiRelayout=Qh._guiRelayout;ef._guiUpdate=Qh._guiUpdate;ef._storeDirectGUIEdit=Qh._storeDirectGUIEdit;ef.react=Qh.react;ef.extendTraces=Qh.extendTraces;ef.prependTraces=Qh.prependTraces;ef.addTraces=Qh.addTraces;ef.deleteTraces=Qh.deleteTraces;ef.moveTraces=Qh.moveTraces;ef.purge=Qh.purge;ef.addFrames=Qh.addFrames;ef.deleteFrames=Qh.deleteFrames;ef.animate=Qh.animate;ef.setPlotConfig=Qh.setPlotConfig;var uvt=OS().getGraphDiv,cvt=aP().eraseActiveShape;ef.deleteActiveShape=function(e){return cvt(uvt(e))};ef.toImage=JN();ef.validate=hde();ef.downloadImage=QN();var wde=bde();ef.makeTemplate=wde.makeTemplate;ef.validateTemplate=wde.validateTemplate});var K3=ye((Oar,Ade)=>{"use strict";var tU=Dr(),fvt=qa();Ade.exports=function(t,r,n,i){var a=i("x"),o=i("y"),s,l=fvt.getComponentMethod("calendars","handleTraceDefaults");if(l(t,r,["x","y"],n),a){var u=tU.minRowLength(a);o?s=Math.min(u,tU.minRowLength(o)):(s=u,i("y0"),i("dy"))}else{if(!o)return 0;s=tU.minRowLength(o),i("x0"),i("dx")}return r._length=s,s}});var Pg=ye((qar,Ede)=>{"use strict";var Sde=Dr().dateTick0,hvt=hs(),dvt=hvt.ONEWEEK;function Mde(e,t){return e%dvt===0?Sde(t,1):Sde(t,0)}Ede.exports=function(t,r,n,i,a){if(a||(a={x:!0,y:!0}),a.x){var o=i("xperiod");o&&(i("xperiod0",Mde(o,r.xcalendar)),i("xperiodalignment"))}if(a.y){var s=i("yperiod");s&&(i("yperiod0",Mde(s,r.ycalendar)),i("yperiodalignment"))}}});var Lde=ye((Bar,kde)=>{"use strict";var Cde=["orientation","groupnorm","stackgaps"];kde.exports=function(t,r,n,i){var a=n._scatterStackOpts,o=i("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 Pde=Ca(),Ide=Dv().hasColorscale,Rde=Jh(),vvt=Ru();Dde.exports=function(t,r,n,i,a,o){var s=vvt.isBubble(t),l=(t.line||{}).color,u;if(o=o||{},l&&(n=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",n),Ide(t,"marker")&&Rde(t,r,i,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=Pde.background:u=Pde.defaultLine,a("marker.line.color",u),Ide(t,"marker.line")&&Rde(t,r,i,a,{prefix:"marker.line.",cLetter:"c"}),a("marker.line.width",s?1:0)),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 R0=ye((Uar,Fde)=>{"use strict";var pvt=Dr().isArrayOrTypedArray,gvt=Dv().hasColorscale,mvt=Jh();Fde.exports=function(t,r,n,i,a,o){o||(o={});var s=(t.marker||{}).color;if(s&&s._inputArray&&(s=s._inputArray),a("line.color",n),gvt(t,"line"))mvt(t,r,i,a,{prefix:"line.",cLetter:"c"});else{var l=(pvt(s)?!1:s)||n;a("line.color",l)}a("line.width"),o.noDash||a("line.dash"),o.backoff&&a("line.backoff")}});var J3=ye((Var,zde)=>{"use strict";zde.exports=function(t,r,n){var i=n("line.shape");i==="spline"&&n("line.smoothing")}});var D0=ye((Gar,Ode)=>{"use strict";var yvt=Dr();Ode.exports=function(e,t,r,n,i){i=i||{},n("textposition"),yvt.coerceFont(n,"textfont",i.font||r.font,i),i.noSelect||(n("selected.textfont.color"),n("unselected.textfont.color"))}});var Ig=ye((Har,Bde)=>{"use strict";var ZP=Ca(),qde=Dr().isArrayOrTypedArray;function _vt(e){for(var t=ZP.interpolate(e[0][1],e[1][1],.5),r=2;r{"use strict";var Nde=Dr(),xvt=qa(),bvt=pf(),wvt=Sm(),$3=Ru(),Tvt=K3(),Avt=Pg(),Svt=Lde(),Mvt=$p(),Evt=R0(),Ude=J3(),Cvt=D0(),kvt=Ig(),Lvt=Dr().coercePattern;Vde.exports=function(t,r,n,i){function a(d,v){return Nde.coerce(t,r,bvt,d,v)}var o=Tvt(t,r,i,a);if(o||(r.visible=!1),!!r.visible){Avt(t,r,i,a),a("xhoverformat"),a("yhoverformat"),a("zorder");var s=Svt(t,r,i,a);i.scattermode==="group"&&r.orientation===void 0&&a("orientation","v");var l=!s&&o{"use strict";var Pvt=Bb().getAxisGroup;Hde.exports=function(t,r,n,i,a){var o=r.orientation,s=r[{v:"x",h:"y"}[o]+"axis"],l=Pvt(n,s)+o,u=n._alignmentOpts||{},c=i("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 d=i("offsetgroup")||"",v=h.offsetGroups,x=v[d];r._offsetIndex=0,(a!=="group"||d)&&(x||(x=v[d]={offsetIndex:Object.keys(v).length}),r._offsetIndex=x.offsetIndex)}});var rU=ye((Xar,jde)=>{"use strict";var Ivt=Dr(),Rvt=Gb(),Dvt=pf();jde.exports=function(t,r){var n,i,a,o=r.scattermode;function s(h){return Ivt.coerce(i._input,i,Dvt,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 Xde=ye((Zar,Wde)=>{"use strict";var Fvt=Dr(),zvt=j6();Wde.exports=function(e,t){function r(i,a){return Fvt.coerce(e,t,zvt,i,a)}var n=t.barmode==="group";t.scattermode==="group"&&r("scattergap",n?t.bargap:.2)}});var Rg=ye((Yar,Yde)=>{"use strict";var Ovt=Eo(),Zde=Dr(),qvt=Zde.dateTime2ms,YP=Zde.incrementMonth,Bvt=hs(),Nvt=Bvt.ONEAVGMONTH;Yde.exports=function(t,r,n,i){if(r.type!=="date")return{vals:i};var a=t[n+"periodalignment"];if(!a)return{vals:i};var o=t[n+"period"],s;if(Ovt(o)){if(o=+o,o<=0)return{vals:i}}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:i}}for(var u=r.calendar,c=a==="start",f=a==="end",h=t[n+"period0"],d=qvt(h,u)||0,v=[],x=[],b=[],p=i.length,C=0;CE;)_=YP(_,-s,u);for(;_<=E;)_=YP(_,s,u);L=YP(_,-s,u)}else{for(A=Math.round((E-d)/o),_=d+A*o;_>E;)_-=o;for(;_<=E;)_+=o;L=_-o}v[C]=c?L:f?_:(L+_)/2,x[C]=L,b[C]=_}return{vals:v,starts:x,ends:b}}});var F0=ye((Kar,Jde)=>{"use strict";var iU=Dv().hasColorscale,nU=Fv(),Kde=Ru();Jde.exports=function(t,r){Kde.hasLines(r)&&iU(r,"line")&&nU(t,r,{vals:r.line.color,containerStr:"line",cLetter:"c"}),Kde.hasMarkers(r)&&(iU(r,"marker")&&nU(t,r,{vals:r.marker.color,containerStr:"marker",cLetter:"c"}),iU(r,"marker.line")&&nU(t,r,{vals:r.marker.line.color,containerStr:"marker.line",cLetter:"c"}))}});var Cm=ye((Jar,$de)=>{"use strict";var Yf=Dr();$de.exports=function(t,r){for(var n=0;n{"use strict";var Qde=Dr();eve.exports=function(t,r){Qde.isArrayOrTypedArray(r.selectedpoints)&&Qde.tagSelected(t,r)}});var O0=ye((Qar,sve)=>{"use strict";var tve=Eo(),oU=Dr(),ZM=ho(),rve=Rg(),aU=hs().BADNUM,sU=Ru(),Uvt=F0(),Vvt=Cm(),Gvt=z0();function Hvt(e,t){var r=e._fullLayout,n=t._xA=ZM.getFromId(e,t.xaxis||"x","x"),i=t._yA=ZM.getFromId(e,t.yaxis||"y","y"),a=n.makeCalcdata(t,"x"),o=i.makeCalcdata(t,"y"),s=rve(t,n,"x",a),l=rve(t,i,"y",o),u=s.vals,c=l.vals,f=t._length,h=new Array(f),d=t.ids,v=lU(t,r,n,i),x=!1,b,p,C,E,A,L;ave(r,t);var _="x",k="y",M;if(v)oU.pushUnique(v.traceIndices,t.index),b=v.orientation==="v",b?(k="s",M="x"):(_="s",M="y"),A=v.stackgaps==="interpolate";else{var g=nve(t,f);ive(e,t,n,i,u,c,g)}var P=!!t.xperiodalignment,T=!!t.yperiodalignment;for(p=0;pp&&h[E].gap;)E--;for(L=h[E].s,C=h.length-1;C>E;C--)h[C].s=L;for(;p{"use strict";lve.exports=KP;var jvt=Dr().distinctVals;function KP(e,t){this.traces=e,this.sepNegVal=t.sepNegVal,this.overlapNoMerge=t.overlapNoMerge;for(var r=1/0,n=t.posAxis._id.charAt(0),i=[],a=0;a{"use strict";var q0=Eo(),g_=Dr().isArrayOrTypedArray,Q3=hs().BADNUM,Wvt=qa(),YM=ho(),Xvt=Bb().getAxisGroup,JP=uve();function Zvt(e,t){for(var r=t.xaxis,n=t.yaxis,i=e._fullLayout,a=e._fullData,o=e.calcdata,s=[],l=[],u=0;ul+o||!q0(s))}for(var c=0;c{"use strict";var vve=O0(),pve=Hb().setGroupPositions;function opt(e,t){for(var r=t.xaxis,n=t.yaxis,i=e._fullLayout,a=e._fullData,o=e.calcdata,s=[],l=[],u=0;ug[c]&&c{"use strict";var lpt=So(),bve=hs(),KM=bve.BADNUM,wve=bve.LOG_CLIP,yve=wve+.5,_ve=wve-.5,$P=Dr(),upt=$P.segmentsIntersect,xve=$P.constrain,vU=Sm();Tve.exports=function(t,r){var n=r.trace||{},i=r.xaxis,a=r.yaxis,o=i.type==="log",s=a.type==="log",l=i._length,u=a._length,c=r.backoff,f=n.marker,h=r.connectGaps,d=r.baseTolerance,v=r.shape,x=v==="linear",b=n.fill&&n.fill!=="none",p=[],C=vU.minTolerance,E=t.length,A=new Array(E),L=0,_,k,M,g,P,T,z,O,V,G,Z,H,N,j,re,oe;function _e(dt){var Ge=t[dt];if(!Ge)return!1;var Je=r.linearized?i.l2p(Ge.x):i.c2p(Ge.x),je=r.linearized?a.l2p(Ge.y):a.c2p(Ge.y);if(Je===KM){if(o&&(Je=i.c2p(Ge.x,!0)),Je===KM)return!1;s&&je===KM&&(Je*=Math.abs(i._m*u*(i._m>0?yve:_ve)/(a._m*l*(a._m>0?yve:_ve)))),Je*=1e3}if(je===KM){if(s&&(je=a.c2p(Ge.y,!0)),je===KM)return!1;je*=1e3}return[Je,je]}function Me(dt,Ge,Je,je){var $e=Je-dt,wt=je-Ge,Ie=.5-dt,xe=.5-Ge,Ce=$e*$e+wt*wt,vt=$e*Ie+wt*xe;if(vt>0&&vt1||Math.abs(Ie.y-Je[0][1])>1)&&(Ie=[Ie.x,Ie.y],je&&Se(Ie,dt)De||dt[1]ge)return[xve(dt[0],Ae,De),xve(dt[1],Pe,ge)]}function Nt(dt,Ge){if(dt[0]===Ge[0]&&(dt[0]===Ae||dt[0]===De)||dt[1]===Ge[1]&&(dt[1]===Pe||dt[1]===ge))return!0}function $t(dt,Ge){var Je=[],je=Gt(dt),$e=Gt(Ge);return je&&$e&&Nt(je,$e)||(je&&Je.push(je),$e&&Je.push($e)),Je}function sr(dt,Ge,Je){return function(je,$e){var wt=Gt(je),Ie=Gt($e),xe=[];if(wt&&Ie&&Nt(wt,Ie))return xe;wt&&xe.push(wt),Ie&&xe.push(Ie);var Ce=2*$P.constrain((je[dt]+$e[dt])/2,Ge,Je)-((wt||je)[dt]+(Ie||$e)[dt]);if(Ce){var vt;wt&&Ie?vt=Ce>0==wt[dt]>Ie[dt]?wt:Ie:vt=wt||Ie,vt[dt]+=Ce}return xe}}var wr;v==="linear"||v==="spline"?wr=lt:v==="hv"||v==="vh"?wr=$t:v==="hvh"?wr=sr(0,Ae,De):v==="vhv"&&(wr=sr(1,Pe,ge));function ur(dt,Ge){var Je=Ge[0]-dt[0],je=(Ge[1]-dt[1])/Je,$e=(dt[1]*Ge[0]-Ge[1]*dt[0])/Je;return $e>0?[je>0?Ae:De,ge]:[je>0?De:Ae,Pe]}function Qe(dt){var Ge=dt[0],Je=dt[1],je=Ge===A[L-1][0],$e=Je===A[L-1][1];if(!(je&&$e))if(L>1){var wt=Ge===A[L-2][0],Ie=Je===A[L-2][1];je&&(Ge===Ae||Ge===De)&&wt?Ie?L--:A[L-1]=dt:$e&&(Je===Pe||Je===ge)&&Ie?wt?L--:A[L-1]=dt:A[L++]=dt}else A[L++]=dt}function Et(dt){A[L-1][0]!==dt[0]&&A[L-1][1]!==dt[1]&&Qe([ct,pt]),Qe(dt),Wt=null,ct=pt=0}var er=$P.isArrayOrTypedArray(f);function Ut(dt){if(dt&&c&&(dt.i=_,dt.d=t,dt.trace=n,dt.marker=er?f[dt.i]:f,dt.backoff=c),ke=dt[0]/l,me=dt[1]/u,ce=dt[0]De?De:0,Ze=dt[1]ge?ge:0,ce||Ze){if(!L)A[L++]=[ce||dt[0],Ze||dt[1]];else if(Wt){var Ge=wr(Wt,dt);Ge.length>1&&(Et(Ge[0]),A[L++]=Ge[1])}else st=wr(A[L-1],dt)[0],A[L++]=st;var Je=A[L-1];ce&&Ze&&(Je[0]!==ce||Je[1]!==Ze)?(Wt&&(ct!==ce&&pt!==Ze?Qe(ct&&pt?ur(Wt,dt):[ct||ce,pt||Ze]):ct&&pt&&Qe([ct,pt])),Qe([ce,Ze])):ct-ce&&pt-Ze&&Qe([ce||ct,Ze||pt]),Wt=dt,ct=ce,pt=Ze}else Wt&&Et(wr(Wt,dt)[0]),A[L++]=dt}for(_=0;_ie(T,Ft))break;M=T,N=V[0]*O[0]+V[1]*O[1],N>Z?(Z=N,g=T,z=!1):N=t.length||!T)break;Ut(T),k=T}}Wt&&Qe([ct||Wt[0],pt||Wt[1]]),p.push(A.slice(0,L))}var bt=v.slice(v.length-1);if(c&&bt!=="h"&&bt!=="v"){for(var yt=!1,Yt=-1,lr=[],Tr=0;Tr{"use strict";var Ave={tonextx:1,tonexty:1,tonext:1};Sve.exports=function(t,r,n){var i,a,o,s,l,u={},c=!1,f=-1,h=0,d=-1;for(a=0;a=0?l=d:(l=d=h,h++),l{"use strict";var Dg=Oa(),cpt=qa(),JM=Dr(),tT=JM.ensureSingle,Eve=JM.identity,Kf=So(),rT=Ru(),fpt=pU(),hpt=gU(),QP=MM().tester;Cve.exports=function(t,r,n,i,a,o){var s,l,u=!a,c=!!a&&a.duration>0,f=hpt(t,r,n);if(s=i.selectAll("g.trace").data(f,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(),dpt(t,s,r),c){o&&(l=o());var h=Dg.transition().duration(a.duration).ease(a.easing).each("end",function(){l&&l()}).each("interrupt",function(){l&&l()});h.each(function(){i.selectAll("g.trace").each(function(d,v){Mve(t,v,r,d,f,this,a)})})}else s.each(function(d,v){Mve(t,v,r,d,f,this,a)});u&&s.exit().remove(),i.selectAll("path:not([d])").remove()};function dpt(e,t,r){t.each(function(n){var i=tT(Dg.select(this),"g","fills");Kf.setClipUrl(i,r.layerClipId,e);var a=n[0].trace,o=[];a._ownfill&&o.push("_ownFill"),a._nexttrace&&o.push("_nextFill");var s=i.selectAll("g").data(o,Eve);s.enter().append("g"),s.exit().each(function(l){a[l]=null}).remove(),s.order().each(function(l){a[l]=tT(Dg.select(this),"path","js-fill")})})}function Mve(e,t,r,n,i,a,o){var s=e._context.staticPlot,l;vpt(e,t,r,n,i);var u=!!o&&o.duration>0;function c(sr){return u?sr.transition():sr}var f=r.xaxis,h=r.yaxis,d=n[0].trace,v=d.line,x=Dg.select(a),b=tT(x,"g","errorbars"),p=tT(x,"g","lines"),C=tT(x,"g","points"),E=tT(x,"g","text");if(cpt.getComponentMethod("errorbars","plot")(e,b,r,o),d.visible!==!0)return;c(x).style("opacity",d.opacity);var A,L,_=d.fill.charAt(d.fill.length-1);_!=="x"&&_!=="y"&&(_="");var k,M;_==="y"?(k=1,M=h.c2p(0,!0)):_==="x"&&(k=0,M=f.c2p(0,!0)),n[0][r.isRangePlot?"nodeRangePlot3":"node3"]=x;var g="",P=[],T=d._prevtrace,z=null,O=null;T&&(g=T._prevRevpath||"",L=T._nextFill,P=T._ownPolygons,z=T._fillsegments,O=T._fillElement);var V,G,Z="",H="",N,j,re,oe,_e,Me,ke=[];d._polygons=[];var me=[],ie=[],Se=JM.noop;if(A=d._ownFill,rT.hasLines(d)||d.fill!=="none"){L&&L.datum(n),["hv","vh","hvh","vhv"].indexOf(v.shape)!==-1?(N=Kf.steps(v.shape),j=Kf.steps(v.shape.split("").reverse().join(""))):v.shape==="spline"?N=j=function(sr){var wr=sr[sr.length-1];return sr.length>1&&sr[0][0]===wr[0]&&sr[0][1]===wr[1]?Kf.smoothclosed(sr.slice(1),v.smoothing):Kf.smoothopen(sr,v.smoothing)}:N=j=function(sr){return"M"+sr.join("L")},re=function(sr){return j(sr.reverse())},ie=fpt(n,{xaxis:f,yaxis:h,trace:d,connectGaps:d.connectgaps,baseTolerance:Math.max(v.width||1,3)/4,shape:v.shape,backoff:v.backoff,simplify:v.simplify,fill:d.fill}),me=new Array(ie.length);var Le=0;for(l=0;l=s[0]&&x.x<=s[1]&&x.y>=l[0]&&x.y<=l[1]}),h=Math.ceil(f.length/c),d=0;i.forEach(function(x,b){var p=x[0].trace;rT.hasMarkers(p)&&p.marker.maxdisplayed>0&&b{"use strict";kve.exports={container:"marker",min:"cmin",max:"cmax"}});var tI=ye((sor,Lve)=>{"use strict";var eI=ho();Lve.exports=function(t,r,n){var i={},a={_fullLayout:n},o=eI.getFromTrace(a,r,"x"),s=eI.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),i.xLabel=eI.tickText(o,o.c2l(l),!0).text,i.yLabel=eI.tickText(s,s.c2l(u),!0).text,i}});var ap=ye((lor,Pve)=>{"use strict";var mU=Oa(),nT=So(),ppt=qa();function gpt(e){var t=mU.select(e).selectAll("g.trace.scatter");t.style("opacity",function(r){return r[0].trace.opacity}),t.selectAll("g.points").each(function(r){var n=mU.select(this),i=r.trace||r[0].trace;yU(n,i,e)}),t.selectAll("g.text").each(function(r){var n=mU.select(this),i=r.trace||r[0].trace;_U(n,i,e)}),t.selectAll("g.trace path.js-line").call(nT.lineGroupStyle),t.selectAll("g.trace path.js-fill").call(nT.fillGroupStyle,e,!1),ppt.getComponentMethod("errorbars","style")(t)}function yU(e,t,r){nT.pointStyle(e.selectAll("path.point"),t,r)}function _U(e,t,r){nT.textPointStyle(e.selectAll("text"),t,r)}function mpt(e,t,r){var n=t[0].trace;n.selectedpoints?(nT.selectedPointStyle(r.selectAll("path.point"),n),nT.selectedTextStyle(r.selectAll("text"),n)):(yU(r,n,e),_U(r,n,e))}Pve.exports={style:gpt,stylePoints:yU,styleText:_U,styleOnSelect:mpt}});var oT=ye((uor,Ive)=>{"use strict";var aT=Ca(),ypt=Ru();Ive.exports=function(t,r){var n,i;if(t.mode==="lines")return n=t.line.color,n&&aT.opacity(n)?n:t.fillcolor;if(t.mode==="none")return t.fill?t.fillcolor:"";var a=r.mcc||(t.marker||{}).color,o=r.mlcc||((t.marker||{}).line||{}).color;return i=a&&aT.opacity(a)?a:o&&aT.opacity(o)&&(r.mlw||((t.marker||{}).line||{}).width)?o:"",i?aT.opacity(i)<.3?aT.addOpacity(i,.3):i:(n=(t.line||{}).color,n&&aT.opacity(n)&&ypt.hasLines(t)&&t.line.width?n:t.fillcolor)}});var sT=ye((cor,Dve)=>{"use strict";var rI=Dr(),Rve=vf(),_pt=qa(),xpt=oT(),xU=Ca(),bpt=rI.fillText;Dve.exports=function(t,r,n,i){var a=t.cd,o=a[0].trace,s=t.xa,l=t.ya,u=s.c2p(r),c=l.c2p(n),f=[u,c],h=o.hoveron||"",d=o.mode.indexOf("markers")!==-1?3:.5,v=!!o.xperiodalignment,x=!!o.yperiodalignment;if(h.indexOf("points")!==-1){var b=function(H){if(v){var N=s.c2p(H.xStart),j=s.c2p(H.xEnd);return u>=Math.min(N,j)&&u<=Math.max(N,j)?0:1/0}var re=Math.max(3,H.mrc||0),oe=1-1/re,_e=Math.abs(s.c2p(H.x)-u);return _e=Math.min(N,j)&&c<=Math.max(N,j)?0:1/0}var re=Math.max(3,H.mrc||0),oe=1-1/re,_e=Math.abs(l.c2p(H.y)-c);return _eke!=ge>=ke&&(Ae=Se[ie-1][0],De=Se[ie][0],ge-Pe&&(Le=Ae+(De-Ae)*(ke-Pe)/(ge-Pe),re=Math.min(re,Le),oe=Math.max(oe,Le)));return re=Math.max(re,0),oe=Math.min(oe,s._length),{x0:re,x1:oe,y0:ke,y1:ke}}if(h.indexOf("fills")!==-1&&o._fillElement){var V=z(o._fillElement)&&!z(o._fillExclusionElement);if(V){var G=O(o._polygons);G===null&&(G={x0:f[0],x1:f[0],y0:f[1],y1:f[1]});var Z=xU.defaultLine;return xU.opacity(o.fillcolor)?Z=o.fillcolor:xU.opacity((o.line||{}).color)&&(Z=o.line.color),rI.extendFlat(t,{distance:t.maxHoverDistance,x0:G.x0,x1:G.x1,y0:G.y0,y1:G.y1,color:Z,hovertemplate:!1}),delete t.index,o.text&&!rI.isArrayOrTypedArray(o.text)?t.text=String(o.text):t.text=o.name,[t]}}}});var lT=ye((hor,zve)=>{"use strict";var Fve=Ru();zve.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s=n[0].trace,l,u,c,f,h=!Fve.hasMarkers(s)&&!Fve.hasText(s);if(h)return[];if(r===!1)for(l=0;l{"use strict";Ove.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}});var wU=ye((vor,Uve)=>{"use strict";var $M=qa().traceIs,bU=L3();Uve.exports=function(t,r,n,i){n("autotypenumbers",i.autotypenumbersDflt);var a=n("type",(i.splomStash||{}).type);a==="-"&&(wpt(r,i.data),r.type==="-"?r.type="linear":t.type=r.type)};function wpt(e,t){if(e.type==="-"){var r=e._id,n=r.charAt(0),i;r.indexOf("scene")!==-1&&(r=n);var a=Tpt(t,r,n);if(a){if(a.type==="histogram"&&n==={v:"y",h:"x"}[a.orientation||"v"]){e.type="linear";return}var o=n+"calendar",s=a[o],l={noMultiCategory:!$M(a,"cartesian")||$M(a,"noMultiCategory")};if(a.type==="box"&&a._hasPreCompStats&&n==={h:"x",v:"y"}[a.orientation||"v"]&&(l.noMultiCategory=!0),l.autotypenumbers=e.autotypenumbers,Nve(a,n)){var u=Bve(a),c=[];for(i=0;i0&&(i["_"+r+"axes"]||{})[t])return i;if((i[r+"axis"]||r)===t){if(Nve(i,r))return i;if((i[r]||[]).length||i[r+"0"])return i}}}function Bve(e){return{v:"x",h:"y"}[e.orientation||"v"]}function Nve(e,t){var r=Bve(e),n=$M(e,"box-violin"),i=$M(e._fullInput||{},"candlestick");return n&&!i&&t===r&&e[r]===void 0&&e[r+"0"]===void 0}});var iI=ye((por,Vve)=>{"use strict";var Apt=vv().isTypedArraySpec;function Spt(e,t){var r=t.dataAttr||e._id.charAt(0),n={},i,a,o;if(t.axData)i=t.axData;else for(i=[],a=0;a0||Apt(a),s;o&&(s="array");var l=n("categoryorder",s),u;l==="array"&&(u=n("categoryarray")),!o&&l==="array"&&(l=r.categoryorder="trace"),l==="trace"?r._initialCategories=[]:l==="array"?r._initialCategories=u.slice():(u=Spt(r,i).sort(),l==="category ascending"?r._initialCategories=u:l==="category descending"&&(r._initialCategories=u.reverse()))}}});var QM=ye((gor,Hve)=>{"use strict";var Gve=cd().mix,Mpt=Eh(),Ept=Dr();Hve.exports=function(t,r,n,i){i=i||{};var a=i.dfltColor;function o(M,g){return Ept.coerce2(t,r,i.attributes,M,g)}var s=o("linecolor",a),l=o("linewidth"),u=n("showline",i.showLine||!!s||!!l);u||(delete r.linecolor,delete r.linewidth);var c=Gve(a,i.bgColor,i.blend||Mpt.lightFraction).toRgbString(),f=o("gridcolor",c),h=o("gridwidth"),d=o("griddash"),v=n("showgrid",i.showGrid||!!f||!!h||!!d);if(v||(delete r.gridcolor,delete r.gridwidth,delete r.griddash),i.hasMinor){var x=Gve(r.gridcolor,i.bgColor,67).toRgbString(),b=o("minor.gridcolor",x),p=o("minor.gridwidth",r.gridwidth||1),C=o("minor.griddash",r.griddash||"solid"),E=n("minor.showgrid",!!b||!!p||!!C);E||(delete r.minor.gridcolor,delete r.minor.gridwidth,delete r.minor.griddash)}if(!i.noZeroLine){var A=o("zerolinelayer"),L=o("zerolinecolor",a),_=o("zerolinewidth"),k=n("zeroline",i.showGrid||!!L||!!_);k||(delete r.zerolinelayer,delete r.zerolinecolor,delete r.zerolinewidth)}}});var t4=ye((mor,Kve)=>{"use strict";var jve=Eo(),Cpt=qa(),e4=Dr(),kpt=pl(),Lpt=Yd(),TU=Rd(),Wve=xb(),Xve=T3(),Ppt=t_(),Ipt=r_(),Rpt=iI(),Dpt=QM(),Fpt=gB(),Zve=ym(),nI=hd().WEEKDAY_PATTERN,zpt=hd().HOUR_PATTERN;Kve.exports=function(t,r,n,i,a){var o=i.letter,s=i.font||{},l=i.splomStash||{},u=n("visible",!i.visibleDflt),c=r._template||{},f=r.type||c.type||"-",h;if(f==="date"){var d=Cpt.getComponentMethod("calendars","handleDefaults");d(t,r,"calendar",i.calendar),i.noTicklabelmode||(h=n("ticklabelmode"))}!i.noTicklabelindex&&(f==="date"||f==="linear")&&n("ticklabelindex");var v="";(!i.noTicklabelposition||f==="multicategory")&&(v=e4.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")),i.noTicklabeloverflow||n("ticklabeloverflow",v.indexOf("inside")!==-1?"hide past domain":f==="category"||f==="multicategory"?"allow":"hide past div"),Zve(r,a),Fpt(t,r,n,i),Rpt(t,r,n,i),i.noHover||(f!=="category"&&n("hoverformat"),i.noUnifiedhovertitle||n("unifiedhovertitle.text"));var x=n("color"),b=x!==TU.color.dflt?x:s.color,p=l.label||a._dfltTitle[o];if(Ipt(t,r,n,f,i),!u)return r;n("title.text",p),e4.coerceFont(n,"title.font",s,{overrideDflt:{size:e4.bigFont(s.size),color:b}}),Wve(t,r,n,f);var C=i.hasMinor;if(C&&(kpt.newContainer(r,"minor"),Wve(t,r,n,f,{isMinor:!0})),Ppt(t,r,n,f,i),Xve(t,r,n,i),C){var E=i.isMinor;i.isMinor=!0,Xve(t,r,n,i),i.isMinor=E}Dpt(t,r,n,{dfltColor:x,bgColor:i.bgColor,showGrid:i.showGrid,hasMinor:C,attributes:TU}),C&&!r.minor.ticks&&!r.minor.showgrid&&delete r.minor,(r.showline||r.ticks)&&n("mirror");var A=f==="multicategory";if(!i.noTickson&&(f==="category"||A)&&(r.ticks||r.showgrid)&&(A?(n("tickson","boundaries"),delete r.ticklabelposition):n("tickson")),A){var L=n("showdividers");L&&(n("dividercolor"),n("dividerwidth"))}if(f==="date")if(Lpt(t,r,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:Opt}),!r.rangebreaks.length)delete r.rangebreaks;else{for(var _=0;_=2){var o="",s,l;if(a.length===2){for(s=0;s<2;s++)if(l=Yve(a[s]),l){o=nI;break}}var u=n("pattern",o);if(u===nI)for(s=0;s<2;s++)l=Yve(a[s]),l&&(t.bounds[s]=a[s]=l-1);if(u)for(s=0;s<2;s++)switch(l=a[s],u){case nI:if(!jve(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 zpt:if(!jve(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 Bpt=Eo(),aI=Dr();Jve.exports=function(t,r,n,i){var a=i.counterAxes||[],o=i.overlayableAxes||[],s=i.letter,l=i.grid,u=i.overlayingDomain,c,f,h,d,v,x;l&&(f=l._domains[s][l._axisMap[r._id]],c=l._anchors[r._id],f&&(h=l[s+"side"].split(" ")[0],d=l.domain[s][h==="right"||h==="top"?1:0])),f=f||[0,1],c=c||(Bpt(t.position)?"free":a[0]||"free"),h=h||(s==="x"?"bottom":"left"),d=d||0,v=0,x=!1;var b=aI.coerce(t,r,{anchor:{valType:"enumerated",values:["free"].concat(a),dflt:c}},"anchor"),p=aI.coerce(t,r,{side:{valType:"enumerated",values:s==="x"?["bottom","top"]:["left","right"],dflt:h}},"side");if(b==="free"){if(s==="y"){var C=n("autoshift");C&&(d=p==="left"?u[0]:u[1],x=r.automargin?r.automargin:!0,v=p==="left"?-3:3),n("shift",v)}n("position",d)}n("automargin",x);var E=!1;if(o.length&&(E=aI.coerce(t,r,{overlaying:{valType:"enumerated",values:[!1].concat(o),dflt:!1}},"overlaying")),!E){var A=n("domain",f);A[0]>A[1]-1/4096&&(r.domain=f),aI.noneOrAll(t.domain,r.domain,f),r.tickmode==="sync"&&(r.tickmode="auto")}return n("layer"),r}});var ope=ye((_or,ape)=>{"use strict";var jb=Dr(),$ve=Ca(),Npt=rp().isUnifiedHover,Upt=UB(),Qve=pl(),Vpt=s3(),epe=Rd(),Gpt=wU(),tpe=t4(),Hpt=Bb(),rpe=oI(),SU=hf(),km=SU.id2name,ipe=SU.name2id,jpt=hd().AX_ID_PATTERN,npe=qa(),sI=npe.traceIs,AU=npe.getComponentMethod;function lI(e,t,r){Array.isArray(e[t])?e[t].push(r):e[t]=[r]}ape.exports=function(t,r,n){var i=r.autotypenumbers,a={},o={},s={},l={},u={},c={},f={},h={},d={},v={},x,b;for(x=0;x{"use strict";var Wpt=Oa(),spe=qa(),uI=Dr(),Qp=So(),cI=ho();lpe.exports=function(t,r,n,i){var a=t._fullLayout;if(r.length===0){cI.redrawComponents(t);return}function o(b){var p=b.xaxis,C=b.yaxis;a._defs.select("#"+b.clipId+"> rect").call(Qp.setTranslate,0,0).call(Qp.setScale,1,1),b.plot.call(Qp.setTranslate,p._offset,C._offset).call(Qp.setScale,1,1);var E=b.plot.selectAll(".scatterlayer .trace");E.selectAll(".point").call(Qp.setPointGroupScale,1,1),E.selectAll(".textpoint").call(Qp.setTextPointsScale,1,1),E.call(Qp.hideOutsideRangePoints,b)}function s(b,p){var C=b.plotinfo,E=C.xaxis,A=C.yaxis,L=E._length,_=A._length,k=!!b.xr1,M=!!b.yr1,g=[];if(k){var P=uI.simpleMap(b.xr0,E.r2l),T=uI.simpleMap(b.xr1,E.r2l),z=P[1]-P[0],O=T[1]-T[0];g[0]=(P[0]*(1-p)+p*T[0]-P[0])/(P[1]-P[0])*L,g[2]=L*(1-p+p*O/z),E.range[0]=E.l2r(P[0]*(1-p)+p*T[0]),E.range[1]=E.l2r(P[1]*(1-p)+p*T[1])}else g[0]=0,g[2]=L;if(M){var V=uI.simpleMap(b.yr0,A.r2l),G=uI.simpleMap(b.yr1,A.r2l),Z=V[1]-V[0],H=G[1]-G[0];g[1]=(V[1]*(1-p)+p*G[1]-V[1])/(V[0]-V[1])*_,g[3]=_*(1-p+p*H/Z),A.range[0]=E.l2r(V[0]*(1-p)+p*G[0]),A.range[1]=A.l2r(V[1]*(1-p)+p*G[1])}else g[1]=0,g[3]=_;cI.drawOne(t,E,{skipTitle:!0}),cI.drawOne(t,A,{skipTitle:!0}),cI.redrawComponents(t,[E._id,A._id]);var N=k?L/g[2]:1,j=M?_/g[3]:1,re=k?g[0]:0,oe=M?g[1]:0,_e=k?g[0]/g[2]*L:0,Me=M?g[1]/g[3]*_:0,ke=E._offset-_e,me=A._offset-Me;C.clipRect.call(Qp.setTranslate,re,oe).call(Qp.setScale,1/N,1/j),C.plot.call(Qp.setTranslate,ke,me).call(Qp.setScale,N,j),Qp.setPointGroupScale(C.zoomScalePts,1/N,1/j),Qp.setTextPointsScale(C.zoomScaleTxt,1/N,1/j)}var l;i&&(l=i());function u(){for(var b={},p=0;pn.duration?(u(),d=window.cancelAnimationFrame(x)):d=window.requestAnimationFrame(x)}return f=Date.now(),d=window.requestAnimationFrame(x),Promise.resolve()}});var vh=ye(yv=>{"use strict";var hI=Oa(),cpe=qa(),Wb=Dr(),Xpt=Mc(),Zpt=So(),fpe=Id().getModuleCalcData,m_=hf(),Fg=hd(),Ypt=Wp(),nu=Wb.ensureSingle;function fI(e,t,r){return Wb.ensureSingle(e,t,r,function(n){n.datum(r)})}var Xb=Fg.zindexSeparator;yv.name="cartesian";yv.attr=["xaxis","yaxis"];yv.idRoot=["x","y"];yv.idRegex=Fg.idRegex;yv.attrRegex=Fg.attrRegex;yv.attributes=qve();yv.layoutAttributes=Rd();yv.supplyLayoutDefaults=ope();yv.transitionAxes=upe();yv.finalizeSubplots=function(e,t){var r=t._subplots,n=r.xaxis,i=r.yaxis,a=r.cartesian,o=a,s={},l={},u,c,f;for(u=0;u0){var d=h.id;if(d.indexOf(Xb)!==-1)continue;d+=Xb+(u+1),h=Wb.extendFlat({},h,{id:d,plot:i._cartesianlayer.selectAll(".subplot").select("."+d)})}for(var v=[],x,b=0;b1&&(L+=Xb+A),E.push(s+L),o=0;o1,f=t.mainplotinfo;if(!t.mainplot||c)if(u)t.xlines=nu(n,"path","xlines-above"),t.ylines=nu(n,"path","ylines-above"),t.xaxislayer=nu(n,"g","xaxislayer-above"),t.yaxislayer=nu(n,"g","yaxislayer-above");else{if(!o){var h=nu(n,"g","layer-subplot");t.shapelayer=nu(h,"g","shapelayer"),t.imagelayer=nu(h,"g","imagelayer"),f&&c?(t.minorGridlayer=f.minorGridlayer,t.gridlayer=f.gridlayer,t.zerolinelayer=f.zerolinelayer):(t.minorGridlayer=nu(n,"g","minor-gridlayer"),t.gridlayer=nu(n,"g","gridlayer"),t.zerolinelayer=nu(n,"g","zerolinelayer"));var d=nu(n,"g","layer-between");t.shapelayerBetween=nu(d,"g","shapelayer"),t.imagelayerBetween=nu(d,"g","imagelayer"),nu(n,"path","xlines-below"),nu(n,"path","ylines-below"),t.overlinesBelow=nu(n,"g","overlines-below"),nu(n,"g","xaxislayer-below"),nu(n,"g","yaxislayer-below"),t.overaxesBelow=nu(n,"g","overaxes-below")}t.overplot=nu(n,"g","overplot"),t.plot=nu(t.overplot,"g",i),f&&c?t.zerolinelayerAbove=f.zerolinelayerAbove:t.zerolinelayerAbove=nu(n,"g","zerolinelayer-above"),o||(t.xlines=nu(n,"path","xlines-above"),t.ylines=nu(n,"path","ylines-above"),t.overlinesAbove=nu(n,"g","overlines-above"),nu(n,"g","xaxislayer-above"),nu(n,"g","yaxislayer-above"),t.overaxesAbove=nu(n,"g","overaxes-above"),t.xlines=n.select(".xlines-"+s),t.ylines=n.select(".ylines-"+l),t.xaxislayer=n.select(".xaxislayer-"+s),t.yaxislayer=n.select(".yaxislayer-"+l))}else{var v=f.plotgroup,x=i+"-x",b=i+"-y";t.minorGridlayer=f.minorGridlayer,t.gridlayer=f.gridlayer,t.zerolinelayer=f.zerolinelayer,t.zerolinelayerAbove=f.zerolinelayerAbove,nu(f.overlinesBelow,"path",x),nu(f.overlinesBelow,"path",b),nu(f.overaxesBelow,"g",x),nu(f.overaxesBelow,"g",b),t.plot=nu(f.overplot,"g",i),nu(f.overlinesAbove,"path",x),nu(f.overlinesAbove,"path",b),nu(f.overaxesAbove,"g",x),nu(f.overaxesAbove,"g",b),t.xlines=v.select(".overlines-"+s).select("."+x),t.ylines=v.select(".overlines-"+l).select("."+b),t.xaxislayer=v.select(".overaxes-"+s).select("."+x),t.yaxislayer=v.select(".overaxes-"+l).select("."+b)}o||(u||(fI(t.minorGridlayer,"g",t.xaxis._id),fI(t.minorGridlayer,"g",t.yaxis._id),t.minorGridlayer.selectAll("g").map(function(p){return p[0]}).sort(m_.idSort),fI(t.gridlayer,"g",t.xaxis._id),fI(t.gridlayer,"g",t.yaxis._id),t.gridlayer.selectAll("g").map(function(p){return p[0]}).sort(m_.idSort)),t.xlines.style("fill","none").classed("crisp",!0),t.ylines.style("fill","none").classed("crisp",!0))}function vpe(e,t){if(e){var r={};e.each(function(l){var u=l[0],c=hI.select(this);c.remove(),ppe(u,t),r[u]=!0});for(var n in t._plots)for(var i=t._plots[n],a=i.overlays||[],o=0;o{"use strict";var dI=Ru();gpe.exports={hasLines:dI.hasLines,hasMarkers:dI.hasMarkers,hasText:dI.hasText,isBubble:dI.isBubble,attributes:pf(),layoutAttributes:j6(),supplyDefaults:Gde(),crossTraceDefaults:rU(),supplyLayoutDefaults:Xde(),calc:O0().calc,crossTraceCalc:mve(),arraysToCalcdata:Cm(),plot:iT(),colorbar:$d(),formatLabels:tI(),style:ap().style,styleOnSelect:ap().styleOnSelect,hoverPoints:sT(),selectPoints:lT(),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:vh(),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}});var xpe=ye((Tor,_pe)=>{"use strict";var Jpt=Oa(),$pt=Ca(),ype=kN(),MU=Dr(),Qpt=MU.strScale,e0t=MU.strRotate,t0t=MU.strTranslate;_pe.exports=function(t,r,n){var i=t.node(),a=ype[n.arrowhead||0],o=ype[n.startarrowhead||0],s=(n.arrowwidth||1)*(n.arrowsize||1),l=(n.arrowwidth||1)*(n.startarrowsize||1),u=r.indexOf("start")>=0,c=r.indexOf("end")>=0,f=a.backoff*s+n.standoff,h=o.backoff*l+n.startstandoff,d,v,x,b;if(i.nodeName==="line"){d={x:+t.attr("x1"),y:+t.attr("y1")},v={x:+t.attr("x2"),y:+t.attr("y2")};var p=d.x-v.x,C=d.y-v.y;if(x=Math.atan2(C,p),b=x+Math.PI,f&&h&&f+h>Math.sqrt(p*p+C*C)){V();return}if(f){if(f*f>p*p+C*C){V();return}var E=f*Math.cos(x),A=f*Math.sin(x);v.x+=E,v.y+=A,t.attr({x2:v.x,y2:v.y})}if(h){if(h*h>p*p+C*C){V();return}var L=h*Math.cos(x),_=h*Math.sin(x);d.x-=L,d.y-=_,t.attr({x1:d.x,y1:d.y})}}else if(i.nodeName==="path"){var k=i.getTotalLength(),M="";if(k{"use strict";var bpe=Oa(),EU=qa(),r0t=Mc(),__=Dr(),CU=__.strTranslate,i4=ho(),Zb=Ca(),Py=So(),wpe=vf(),kU=iu(),LU=Tg(),r4=gv(),i0t=pl().arrayEditor,n0t=xpe();Spe.exports={draw:a0t,drawOne:Tpe,drawRaw:Ape};function a0t(e){var t=e._fullLayout;t._infolayer.selectAll(".annotation").remove();for(var r=0;r2/3?$e="right":$e="center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[$e]}for(var Pe=!1,ge=["x","y"],Fe=0;Fe1)&&(ct===Ze?(Ft=pt.r2fraction(t["a"+ce]),(Ft<0||Ft>1)&&(Pe=!0)):Pe=!0),wr=pt._offset+pt.r2p(t[ce]),Et=.5}else{var bt=Ut==="domain";ce==="x"?(Qe=t[ce],wr=bt?pt._offset+pt._length*Qe:wr=s.l+s.w*Qe):(Qe=1-t[ce],wr=bt?pt._offset+pt._length*Qe:wr=s.t+s.h*Qe),Et=t.showarrow?.5:Qe}if(t.showarrow){sr.head=wr;var yt=t["a"+ce];if(er=st*De(.5,t.xanchor)-lt*De(.5,t.yanchor),ct===Ze){var Yt=i4.getRefType(ct);Yt==="domain"?(ce==="y"&&(yt=1-yt),sr.tail=pt._offset+pt._length*yt):Yt==="paper"?ce==="y"?(yt=1-yt,sr.tail=s.t+s.h*yt):sr.tail=s.l+s.w*yt:sr.tail=pt._offset+pt.r2p(yt),ur=er}else sr.tail=wr+yt,ur=er+yt;sr.text=sr.tail+er;var lr=o[ce==="x"?"width":"height"];if(Ze==="paper"&&(sr.head=__.constrain(sr.head,1,lr-1)),ct==="pixel"){var Tr=-Math.max(sr.tail-3,sr.text),Rr=Math.min(sr.tail+3,sr.text)-lr;Tr>0?(sr.tail+=Tr,sr.text+=Tr):Rr>0&&(sr.tail-=Rr,sr.text-=Rr)}sr.tail+=$t,sr.head+=$t}else er=Gt*De(Et,Nt),ur=er,sr.text=wr+er;sr.text+=$t,er+=$t,ur+=$t,t["_"+ce+"padplus"]=Gt/2+ur,t["_"+ce+"padminus"]=Gt/2-ur,t["_"+ce+"size"]=Gt,t["_"+ce+"shift"]=er}if(Pe){k.remove();return}var ei=0,Wr=0;if(t.align!=="left"&&(ei=(ie-ke)*(t.align==="center"?.5:1)),t.valign!=="top"&&(Wr=(Se-me)*(t.valign==="middle"?.5:1)),_e)oe.select("svg").attr({x:P+ei-1,y:P+Wr}).call(Py.setClipUrl,z?x:null,e);else{var Ur=P+Wr-Me.top,dt=P+ei-Me.left;Z.call(kU.positionText,dt,Ur).call(Py.setClipUrl,z?x:null,e)}O.select("rect").call(Py.setRect,P,P,ie,Se),T.call(Py.setRect,M/2,M/2,Le-M,Ae-M),k.call(Py.setTranslate,Math.round(b.x.text-Le/2),Math.round(b.y.text-Ae/2)),E.attr({transform:"rotate("+p+","+b.x.text+","+b.y.text+")"});var Ge=function(je,$e){C.selectAll(".annotation-arrow-g").remove();var wt=b.x.head,Ie=b.y.head,xe=b.x.tail+je,Ce=b.y.tail+$e,vt=b.x.text+je,nr=b.y.text+$e,ir=__.rotationXYMatrix(p,vt,nr),pr=__.apply2DTransform(ir),oi=__.apply2DTransform2(ir),di=+T.attr("width"),Jr=+T.attr("height"),fi=vt-.5*di,Hi=fi+di,Pn=nr-.5*Jr,wn=Pn+Jr,pn=[[fi,Pn,fi,wn],[fi,wn,Hi,wn],[Hi,wn,Hi,Pn],[Hi,Pn,fi,Pn]].map(oi);if(!pn.reduce(function($r,zi){return $r^!!__.segmentsIntersect(wt,Ie,wt+1e6,Ie+1e6,zi[0],zi[1],zi[2],zi[3])},!1)){pn.forEach(function($r){var zi=__.segmentsIntersect(xe,Ce,wt,Ie,$r[0],$r[1],$r[2],$r[3]);zi&&(xe=zi.x,Ce=zi.y)});var Vn=t.arrowwidth,kn=t.arrowcolor,ea=t.arrowside,ua=C.append("g").style({opacity:Zb.opacity(kn)}).classed("annotation-arrow-g",!0),Vt=ua.append("path").attr("d","M"+xe+","+Ce+"L"+wt+","+Ie).style("stroke-width",Vn+"px").call(Zb.stroke,Zb.rgb(kn));if(n0t(Vt,ea,t),l.annotationPosition&&Vt.node().parentNode&&!n){var _t=wt,tr=Ie;if(t.standoff){var ar=Math.sqrt(Math.pow(wt-xe,2)+Math.pow(Ie-Ce,2));_t+=t.standoff*(xe-wt)/ar,tr+=t.standoff*(Ce-Ie)/ar}var Er=ua.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(xe-_t)+","+(Ce-tr),transform:CU(_t,tr)}).style("stroke-width",Vn+6+"px").call(Zb.stroke,"rgba(0,0,0,0)").call(Zb.fill,"rgba(0,0,0,0)"),Zr,ri;r4.init({element:Er.node(),gd:e,prepFn:function(){var $r=Py.getTranslate(k);Zr=$r.x,ri=$r.y,i&&i.autorange&&h(i._name+".autorange",!0),a&&a.autorange&&h(a._name+".autorange",!0)},moveFn:function($r,zi){var Ji=pr(Zr,ri),en=Ji[0]+$r,cn=Ji[1]+zi;k.call(Py.setTranslate,en,cn),d("x",y_(i,$r,"x",s,t)),d("y",y_(a,zi,"y",s,t)),t.axref===t.xref&&d("ax",y_(i,$r,"ax",s,t)),t.ayref===t.yref&&d("ay",y_(a,zi,"ay",s,t)),ua.attr("transform",CU($r,zi)),E.attr({transform:"rotate("+p+","+en+","+cn+")"})},doneFn:function(){EU.call("_guiRelayout",e,v());var $r=document.querySelector(".js-notes-box-panel");$r&&$r.redraw($r.selectedObj)}})}}};if(t.showarrow&&Ge(0,0),A){var Je;r4.init({element:k.node(),gd:e,prepFn:function(){Je=E.attr("transform")},moveFn:function(je,$e){var wt="pointer";if(t.showarrow)t.axref===t.xref?d("ax",y_(i,je,"ax",s,t)):d("ax",t.ax+je),t.ayref===t.yref?d("ay",y_(a,$e,"ay",s.w,t)):d("ay",t.ay+$e),Ge(je,$e);else{if(n)return;var Ie,xe;if(i)Ie=y_(i,je,"x",s,t);else{var Ce=t._xsize/s.w,vt=t.x+(t._xshift-t.xshift)/s.w-Ce/2;Ie=r4.align(vt+je/s.w,Ce,0,1,t.xanchor)}if(a)xe=y_(a,$e,"y",s,t);else{var nr=t._ysize/s.h,ir=t.y-(t._yshift+t.yshift)/s.h-nr/2;xe=r4.align(ir-$e/s.h,nr,0,1,t.yanchor)}d("x",Ie),d("y",xe),(!i||!a)&&(wt=r4.getCursor(i?.5:Ie,a?.5:xe,t.xanchor,t.yanchor))}E.attr({transform:CU(je,$e)+Je}),LU(k,wt)},clickFn:function(je,$e){t.captureevents&&e.emit("plotly_clickannotation",_($e))},doneFn:function(){LU(k),EU.call("_guiRelayout",e,v());var je=document.querySelector(".js-notes-box-panel");je&&je.redraw(je.selectedObj)}})}}l.annotationText?Z.call(kU.makeEditable,{delegate:k,gd:e}).call(H).on("edit",function(j){t.text=j,this.call(H),d("text",j),i&&i.autorange&&h(i._name+".autorange",!0),a&&a.autorange&&h(a._name+".autorange",!0),EU.call("_guiRelayout",e,v())}):Z.call(H)}});var Ppe=ye((Sor,Lpe)=>{"use strict";var Mpe=Dr(),o0t=qa(),Epe=pl().arrayEditor;Lpe.exports={hasClickToShow:s0t,onClick:l0t};function s0t(e,t){var r=kpe(e,t);return r.on.length>0||r.explicitOff.length>0}function l0t(e,t){var r=kpe(e,t),n=r.on,i=r.off.concat(r.explicitOff),a={},o=e._fullLayout.annotations,s,l;if(n.length||i.length){for(s=0;s{"use strict";var PU=Dr(),uT=Ca();Ipe.exports=function(t,r,n,i){i("opacity");var a=i("bgcolor"),o=i("bordercolor"),s=uT.opacity(o);i("borderpad");var l=i("borderwidth"),u=i("showarrow");i("text",u?" ":n._dfltTitle.annotation),i("textangle"),PU.coerceFont(i,"font",n.font),i("width"),i("align");var c=i("height");if(c&&i("valign"),u){var f=i("arrowside"),h,d;f.indexOf("end")!==-1&&(h=i("arrowhead"),d=i("arrowsize")),f.indexOf("start")!==-1&&(i("startarrowhead",h),i("startarrowsize",d)),i("arrowcolor",s?r.bordercolor:uT.defaultLine),i("arrowwidth",(s&&l||1)*2),i("standoff"),i("startstandoff")}var v=i("hovertext"),x=n.hoverlabel||{};if(v){var b=i("hoverlabel.bgcolor",x.bgcolor||(uT.opacity(a)?uT.rgb(a):uT.defaultLine)),p=i("hoverlabel.bordercolor",x.bordercolor||uT.contrast(b)),C=PU.extendFlat({},x.font);C.color||(C.color=p),PU.coerceFont(i,"hoverlabel.font",C)}i("captureevents",!!v)}});var Dpe=ye((Eor,Rpe)=>{"use strict";var RU=Dr(),Yb=ho(),u0t=Yd(),c0t=IU(),f0t=Nb();Rpe.exports=function(t,r){u0t(t,r,{name:"annotations",handleItemDefaults:h0t})};function h0t(e,t,r){function n(E,A){return RU.coerce(e,t,f0t,E,A)}var i=n("visible"),a=n("clicktoshow");if(i||a){c0t(e,t,r,n);for(var o=t.showarrow,s=["x","y"],l=[-10,-30],u={_fullLayout:r},c=0;c<2;c++){var f=s[c],h=Yb.coerceRef(e,t,u,f,"","paper");if(h!=="paper"){var d=Yb.getFromId(u,h);d._annIndices.push(t._index)}if(Yb.coercePosition(t,u,n,h,f,.5),o){var v="a"+f,x=Yb.coerceRef(e,t,u,v,"pixel",["pixel","paper"]);x!=="pixel"&&x!==h&&(x=t[v]="pixel");var b=x==="pixel"?l[c]:.4;Yb.coercePosition(t,u,n,x,v,b)}n(f+"anchor"),n(f+"shift")}if(RU.noneOrAll(e,t,["x","y"]),o&&RU.noneOrAll(e,t,["ax","ay"]),a){var p=n("xclick"),C=n("yclick");t._xclick=p===void 0?t.x:Yb.cleanPosition(p,u,t.xref),t._yclick=C===void 0?t.y:Yb.cleanPosition(C,u,t.yref)}}}});var Ope=ye((Cor,zpe)=>{"use strict";var DU=Dr(),Kb=ho(),d0t=vI().draw;zpe.exports=function(t){var r=t._fullLayout,n=DU.filterVisible(r.annotations);if(n.length&&t._fullData.length)return DU.syncOrAsync([d0t,v0t],t)};function v0t(e){var t=e._fullLayout;DU.filterVisible(t.annotations).forEach(function(r){var n=Kb.getFromId(e,r.xref),i=Kb.getFromId(e,r.yref),a=Kb.getRefType(r.xref),o=Kb.getRefType(r.yref);r._extremes={},a==="range"&&Fpe(r,n),o==="range"&&Fpe(r,i)})}function Fpe(e,t){var r=t._id,n=r.charAt(0),i=e[n],a=e["a"+n],o=e[n+"ref"],s=e["a"+n+"ref"],l=e["_"+n+"padplus"],u=e["_"+n+"padminus"],c={x:1,y:-1}[n]*e[n+"shift"],f=3*e.arrowsize*e.arrowwidth||0,h=f+c,d=f-c,v=3*e.startarrowsize*e.arrowwidth||0,x=v+c,b=v-c,p;if(s===o){var C=Kb.findExtremes(t,[t.r2c(i)],{ppadplus:h,ppadminus:d}),E=Kb.findExtremes(t,[t.r2c(a)],{ppadplus:Math.max(l,x),ppadminus:Math.max(u,b)});p={min:[C.min[0],E.min[0]],max:[C.max[0],E.max[0]]}}else x=a?x+a:x,b=a?b-a:b,p=Kb.findExtremes(t,[t.r2c(i)],{ppadplus:Math.max(l,h,x),ppadminus:Math.max(u,d,b)});e._extremes[r]=p}});var Bpe=ye((kor,qpe)=>{"use strict";var p0t=Eo(),g0t=p6();qpe.exports=function(t,r,n,i){r=r||{};var a=n==="log"&&r.type==="linear",o=n==="linear"&&r.type==="log";if(!(a||o))return;var s=t._fullLayout.annotations,l=r._id.charAt(0),u,c;function f(d){var v=u[d],x=null;a?x=g0t(v,r.range):x=Math.pow(10,v),p0t(x)||(x=null),i(c+d,x)}for(var h=0;h{"use strict";var FU=vI(),Npe=Ppe();Upe.exports={moduleType:"component",name:"annotations",layoutAttributes:Nb(),supplyLayoutDefaults:Dpe(),includeBasePlot:zM()("annotations"),calcAutorange:Ope(),draw:FU.draw,drawOne:FU.drawOne,drawRaw:FU.drawRaw,hasClickToShow:Npe.hasClickToShow,onClick:Npe.onClick,convertCoords:Bpe()}});var pI=ye((Por,Gpe)=>{"use strict";var Cc=Nb(),m0t=mc().overrideAll,y0t=pl().templatedArray;Gpe.exports=m0t(y0t("annotation",{visible:Cc.visible,x:{valType:"any"},y:{valType:"any"},z:{valType:"any"},ax:{valType:"number"},ay:{valType:"number"},xanchor:Cc.xanchor,xshift:Cc.xshift,yanchor:Cc.yanchor,yshift:Cc.yshift,text:Cc.text,textangle:Cc.textangle,font:Cc.font,width:Cc.width,height:Cc.height,opacity:Cc.opacity,align:Cc.align,valign:Cc.valign,bgcolor:Cc.bgcolor,bordercolor:Cc.bordercolor,borderpad:Cc.borderpad,borderwidth:Cc.borderwidth,showarrow:Cc.showarrow,arrowcolor:Cc.arrowcolor,arrowhead:Cc.arrowhead,startarrowhead:Cc.startarrowhead,arrowside:Cc.arrowside,arrowsize:Cc.arrowsize,startarrowsize:Cc.startarrowsize,arrowwidth:Cc.arrowwidth,standoff:Cc.standoff,startstandoff:Cc.startstandoff,hovertext:Cc.hovertext,hoverlabel:Cc.hoverlabel,captureevents:Cc.captureevents}),"calc","from-root")});var jpe=ye((Ior,Hpe)=>{"use strict";var zU=Dr(),_0t=ho(),x0t=Yd(),b0t=IU(),w0t=pI();Hpe.exports=function(t,r,n){x0t(t,r,{name:"annotations",handleItemDefaults:T0t,fullLayout:n.fullLayout})};function T0t(e,t,r,n){function i(s,l){return zU.coerce(e,t,w0t,s,l)}function a(s){var l=s+"axis",u={_fullLayout:{}};return u._fullLayout[l]=r[l],_0t.coercePosition(t,u,i,s,s,.5)}var o=i("visible");o&&(b0t(e,t,n.fullLayout,i),a("x"),a("y"),a("z"),zU.noneOrAll(e,t,["x","y","z"]),t.xref="x",t.yref="y",t.zref="z",i("xanchor"),i("yanchor"),i("xshift"),i("yshift"),t.showarrow&&(t.axref="pixel",t.ayref="pixel",i("ax",-10),i("ay",-30),zU.noneOrAll(e,t,["ax","ay"])))}});var Ype=ye((Ror,Zpe)=>{"use strict";var Wpe=Dr(),Xpe=ho();Zpe.exports=function(t){for(var r=t.fullSceneLayout,n=r.annotations,i=0;i{"use strict";function OU(e,t){var r=[0,0,0,0],n,i;for(n=0;n<4;++n)for(i=0;i<4;++i)r[i]+=e[4*n+i]*t[n];return r}function S0t(e,t){var r=OU(e.projection,OU(e.view,OU(e.model,[t[0],t[1],t[2],1])));return r}Kpe.exports=S0t});var $pe=ye((For,Jpe)=>{"use strict";var M0t=vI().drawRaw,E0t=qU(),C0t=["x","y","z"];Jpe.exports=function(t){for(var r=t.fullSceneLayout,n=t.dataScale,i=r.annotations,a=0;a1){s=!0;break}}s?t.fullLayout._infolayer.select(".annotation-"+t.id+'[data-index="'+a+'"]').remove():(o._pdata=E0t(t.glplot.cameraParams,[r.xaxis.r2l(o.x)*n[0],r.yaxis.r2l(o.y)*n[1],r.zaxis.r2l(o.z)*n[2]]),M0t(t.graphDiv,o,a,t.id,o._xa,o._ya))}}});var t0e=ye((zor,e0e)=>{"use strict";var k0t=qa(),Qpe=Dr();e0e.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:pI()}}},layoutAttributes:pI(),handleDefaults:jpe(),includeBasePlot:L0t,convert:Ype(),draw:$pe()};function L0t(e,t){var r=k0t.subplotsRegistry.gl3d;if(r)for(var n=r.attrRegex,i=Object.keys(e),a=0;a{"use strict";var r0e=Nb(),i0e=ec(),n0e=pf().line,P0t=Pd().dash,zg=Ao().extendFlat,I0t=pl().templatedArray,Oor=FM(),cT=Vl(),R0t=Qo().shapeTexttemplateAttrs,D0t=A6();a0e.exports=I0t("shape",{visible:zg({},cT.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:zg({},cT.legend,{editType:"calc+arraydraw"}),legendgroup:zg({},cT.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:zg({},cT.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:i0e({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:zg({},cT.legendrank,{editType:"calc+arraydraw"}),legendwidth:zg({},cT.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:zg({},r0e.xref,{}),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:zg({},r0e.yref,{}),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:zg({},n0e.color,{editType:"arraydraw"}),width:zg({},n0e.width,{editType:"calc+arraydraw"}),dash:zg({},P0t,{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:R0t({},{keys:Object.keys(D0t)}),font:i0e({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 l0e=ye((Bor,s0e)=>{"use strict";var n4=Dr(),fT=ho(),F0t=Yd(),z0t=BU(),o0e=h_();s0e.exports=function(t,r){F0t(t,r,{name:"shapes",handleItemDefaults:q0t})};function O0t(e,t){return e?"bottom":t.indexOf("top")!==-1?"top":t.indexOf("bottom")!==-1?"bottom":"middle"}function q0t(e,t,r){function n(j,re){return n4.coerce(e,t,z0t,j,re)}t._isShape=!0;var i=n("visible");if(i){var a=n("showlegend");a&&(n("legend"),n("legendwidth"),n("legendgroup"),n("legendgrouptitle.text"),n4.coerceFont(n,"legendgrouptitle.font"),n("legendrank"));var o=n("path"),s=o?"path":"rect",l=n("type",s),u=l!=="path";u&&delete t.path,n("editable"),n("layer"),n("opacity"),n("fillcolor"),n("fillrule");var c=n("line.width");c&&(n("line.color"),n("line.dash"));for(var f=n("xsizemode"),h=n("ysizemode"),d=["x","y"],v=0;v<2;v++){var x=d[v],b=x+"anchor",p=x==="x"?f:h,C={_fullLayout:r},E,A,L,_=fT.coerceRef(e,t,C,x,void 0,"paper"),k=fT.getRefType(_);if(k==="range"?(E=fT.getFromId(C,_),E._shapeIndices.push(t._index),L=o0e.rangeToShapePosition(E),A=o0e.shapePositionToRange(E),(E.type==="category"||E.type==="multicategory")&&(n(x+"0shift"),n(x+"1shift"))):A=L=n4.identity,u){var M=.25,g=.75,P=x+"0",T=x+"1",z=e[P],O=e[T];e[P]=A(e[P],!0),e[T]=A(e[T],!0),p==="pixel"?(n(P,0),n(T,10)):(fT.coercePosition(t,C,n,_,P,M),fT.coercePosition(t,C,n,_,T,g)),t[P]=L(t[P]),t[T]=L(t[T]),e[P]=z,e[T]=O}if(p==="pixel"){var V=e[b];e[b]=A(e[b],!0),fT.coercePosition(t,C,n,_,b,.25),t[b]=L(t[b]),e[b]=V}}u&&n4.noneOrAll(e,t,["x0","x1","y0","y1"]);var G=l==="line",Z,H;if(u&&(Z=n("label.texttemplate")),Z||(H=n("label.text")),H||Z){n("label.textangle");var N=n("label.textposition",G?"middle":"middle center");n("label.xanchor"),n("label.yanchor",O0t(G,N)),n("label.padding"),n4.coerceFont(n,"label.font",r.font)}}}});var f0e=ye((Nor,c0e)=>{"use strict";var B0t=Ca(),u0e=Dr();function N0t(e,t){return e?"bottom":t.indexOf("top")!==-1?"top":t.indexOf("bottom")!==-1?"bottom":"middle"}c0e.exports=function(t,r,n){n("newshape.visible"),n("newshape.name"),n("newshape.showlegend"),n("newshape.legend"),n("newshape.legendwidth"),n("newshape.legendgroup"),n("newshape.legendgrouptitle.text"),u0e.coerceFont(n,"newshape.legendgrouptitle.font"),n("newshape.legendrank"),n("newshape.drawdirection"),n("newshape.layer"),n("newshape.fillcolor"),n("newshape.fillrule"),n("newshape.opacity");var i=n("newshape.line.width");if(i){var a=(t||{}).plot_bgcolor||"#FFF";n("newshape.line.color",B0t.contrast(a)),n("newshape.line.dash")}var o=t.dragmode==="drawline",s=n("newshape.label.text"),l=n("newshape.label.texttemplate");if(s||l){n("newshape.label.textangle");var u=n("newshape.label.textposition",o?"middle":"middle center");n("newshape.label.xanchor"),n("newshape.label.yanchor",N0t(o,u)),n("newshape.label.padding"),u0e.coerceFont(n,"newshape.label.font",r.font)}n("activeshape.fillcolor"),n("activeshape.opacity")}});var g0e=ye((Uor,p0e)=>{"use strict";var NU=Dr(),hT=ho(),dT=vM(),d0e=h_();p0e.exports=function(t){var r=t._fullLayout,n=NU.filterVisible(r.shapes);if(!(!n.length||!t._fullData.length))for(var i=0;i0?u+o:o;return{ppad:o,ppadplus:s?f:h,ppadminus:s?h:f}}else return{ppad:o}}function h0e(e,t,r){var n=e._id.charAt(0)==="x"?"x":"y",i=e.type==="category"||e.type==="multicategory",a,o,s=0,l=0,u=i?e.r2c:e.d2c,c=t[n+"sizemode"]==="scaled";if(c?(a=t[n+"0"],o=t[n+"1"],i&&(s=t[n+"0shift"],l=t[n+"1shift"])):(a=t[n+"anchor"],o=t[n+"anchor"]),a!==void 0)return[u(a)+s,u(o)+l];if(t.path){var f=1/0,h=-1/0,d=t.path.match(dT.segmentRE),v,x,b,p,C;for(e.type==="date"&&(u=d0e.decodeDate(u)),v=0;vh&&(h=C)));if(h>=f)return[f,h]}}});var _0e=ye((Vor,y0e)=>{"use strict";var m0e=aP();y0e.exports={moduleType:"component",name:"shapes",layoutAttributes:BU(),supplyLayoutDefaults:l0e(),supplyDrawNewShapeDefaults:f0e(),includeBasePlot:zM()("shapes"),calcAutorange:g0e(),draw:m0e.draw,drawOne:m0e.drawOne}});var UU=ye((Hor,b0e)=>{"use strict";var x0e=hd(),G0t=pl().templatedArray,Gor=FM();b0e.exports=G0t("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",x0e.idRegex.x.toString()],dflt:"paper",editType:"arraydraw"},yref:{valType:"enumerated",values:["paper",x0e.idRegex.y.toString()],dflt:"paper",editType:"arraydraw"},editType:"arraydraw"})});var T0e=ye((jor,w0e)=>{"use strict";var H0t=Dr(),VU=ho(),j0t=Yd(),W0t=UU(),X0t="images";w0e.exports=function(t,r){var n={name:X0t,handleItemDefaults:Z0t};j0t(t,r,n)};function Z0t(e,t,r){function n(h,d){return H0t.coerce(e,t,W0t,h,d)}var i=n("source"),a=n("visible",!!i);if(!a)return t;n("layer"),n("xanchor"),n("yanchor"),n("sizex"),n("sizey"),n("sizing"),n("opacity");for(var o={_fullLayout:r},s=["x","y"],l=0;l<2;l++){var u=s[l],c=VU.coerceRef(e,t,o,u,"paper",void 0);if(c!=="paper"){var f=VU.getFromId(o,c);f._imgIndices.push(t._index)}VU.coercePosition(t,o,n,c,u,0)}return t}});var E0e=ye((Wor,M0e)=>{"use strict";var A0e=Oa(),Y0t=So(),vT=ho(),S0e=hf(),K0t=Wp();M0e.exports=function(t){var r=t._fullLayout,n=[],i={},a=[],o,s;for(s=0;s{"use strict";var C0e=Eo(),J0t=p6();k0e.exports=function(t,r,n,i){r=r||{};var a=n==="log"&&r.type==="linear",o=n==="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";P0e.exports={moduleType:"component",name:"images",layoutAttributes:UU(),supplyLayoutDefaults:T0e(),includeBasePlot:zM()("images"),draw:E0e(),convertCoords:L0e()}});var gI=ye((Yor,R0e)=>{"use strict";R0e.exports={name:"updatemenus",containerClassName:"updatemenu-container",headerGroupClassName:"updatemenu-header-group",headerClassName:"updatemenu-header",headerArrowClassName:"updatemenu-header-arrow",dropdownButtonGroupClassName:"updatemenu-dropdown-button-group",dropdownButtonClassName:"updatemenu-dropdown-button",buttonClassName:"updatemenu-button",itemRectClassName:"updatemenu-item-rect",itemTextClassName:"updatemenu-item-text",menuIndexAttrName:"updatemenu-active-index",autoMarginIdRoot:"updatemenu-",blankHeaderOpts:{label:" "},minWidth:30,minHeight:30,textPadX:24,arrowPadX:16,rx:2,ry:2,textOffsetX:12,textOffsetY:3,arrowOffsetX:4,gapButtonHeader:5,gapButton:2,activeColor:"#F4FAFF",hoverColor:"#F4FAFF",arrowSymbol:{left:"\u25C4",right:"\u25BA",up:"\u25B2",down:"\u25BC"}}});var GU=ye((Kor,F0e)=>{"use strict";var $0t=ec(),Q0t=Eh(),egt=Ao().extendFlat,tgt=mc().overrideAll,rgt=S6(),D0e=pl().templatedArray,igt=D0e("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}});F0e.exports=tgt(D0e("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:igt,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:egt(rgt({editType:"arraydraw"}),{}),font:$0t({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:Q0t.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")});var B0e=ye((Jor,q0e)=>{"use strict";var mI=Dr(),z0e=Yd(),O0e=GU(),ngt=gI(),agt=ngt.name,ogt=O0e.buttons;q0e.exports=function(t,r){var n={name:agt,handleItemDefaults:sgt};z0e(t,r,n)};function sgt(e,t,r){function n(o,s){return mI.coerce(e,t,O0e,o,s)}var i=z0e(e,t,{name:"buttons",handleItemDefaults:lgt}),a=n("visible",i.length>0);a&&(n("active"),n("direction"),n("type"),n("showactive"),n("x"),n("y"),mI.noneOrAll(e,t,["x","y"]),n("xanchor"),n("yanchor"),n("pad.t"),n("pad.r"),n("pad.b"),n("pad.l"),mI.coerceFont(n,"font",r.font),n("bgcolor",r.paper_bgcolor),n("bordercolor"),n("borderwidth"))}function lgt(e,t){function r(i,a){return mI.coerce(e,t,ogt,i,a)}var n=r("visible",e.method==="skip"||Array.isArray(e.args));n&&(r("method"),r("args"),r("args2"),r("label"),r("execute"))}});var V0e=ye(($or,U0e)=>{"use strict";U0e.exports=Sf;var Og=Oa(),N0e=Ca(),pT=So(),yI=Dr();function Sf(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})}Sf.barWidth=2;Sf.barLength=20;Sf.barRadius=2;Sf.barPad=1;Sf.barColor="#808BA4";Sf.prototype.enable=function(t,r,n){var i=this.gd._fullLayout,a=i.width,o=i.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",d=f==="left",v=f==="right",x=f==="up",b=l,p=c,C,E,A,L;!h&&!d&&!v&&!x&&(this.position.direction="down",h=!0);var _=h||x;_?(C=s,E=C+b,h?(A=u,L=Math.min(A+p,o),p=L-A):(L=u+p,A=Math.max(L-p,0),p=L-A)):(A=u,L=A+p,d?(E=s+b,C=Math.max(E-b,0),b=E-C):(C=s,E=Math.min(C+b,a),b=E-C)),this._box={l:C,t:A,w:b,h:p};var k=l>b,M=Sf.barLength+2*Sf.barPad,g=Sf.barWidth+2*Sf.barPad,P=s,T=u+c;T+g>o&&(T=o-g);var z=this.container.selectAll("rect.scrollbar-horizontal").data(k?[0]:[]);z.exit().on(".drag",null).remove(),z.enter().append("rect").classed("scrollbar-horizontal",!0).call(N0e.fill,Sf.barColor),k?(this.hbar=z.attr({rx:Sf.barRadius,ry:Sf.barRadius,x:P,y:T,width:M,height:g}),this._hbarXMin=P+M/2,this._hbarTranslateMax=b-M):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var O=c>p,V=Sf.barWidth+2*Sf.barPad,G=Sf.barLength+2*Sf.barPad,Z=s+l,H=u;Z+V>a&&(Z=a-V);var N=this.container.selectAll("rect.scrollbar-vertical").data(O?[0]:[]);N.exit().on(".drag",null).remove(),N.enter().append("rect").classed("scrollbar-vertical",!0).call(N0e.fill,Sf.barColor),O?(this.vbar=N.attr({rx:Sf.barRadius,ry:Sf.barRadius,x:Z,y:H,width:V,height:G}),this._vbarYMin=H+G/2,this._vbarTranslateMax=p-G):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var j=this.id,re=C-.5,oe=O?E+V+.5:E+.5,_e=A-.5,Me=k?L+g+.5:L+.5,ke=i._topdefs.selectAll("#"+j).data(k||O?[0]:[]);if(ke.exit().remove(),ke.enter().append("clipPath").attr("id",j).append("rect"),k||O?(this._clipRect=ke.select("rect").attr({x:Math.floor(re),y:Math.floor(_e),width:Math.ceil(oe)-Math.floor(re),height:Math.ceil(Me)-Math.floor(_e)}),this.container.call(pT.setClipUrl,j,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(pT.setClipUrl,null),delete this._clipRect),k||O){var me=Og.behavior.drag().on("dragstart",function(){Og.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(me);var ie=Og.behavior.drag().on("dragstart",function(){Og.event.sourceEvent.preventDefault(),Og.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));k&&this.hbar.on(".drag",null).call(ie),O&&this.vbar.on(".drag",null).call(ie)}this.setTranslate(r,n)};Sf.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(pT.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)};Sf.prototype._onBoxDrag=function(){var t=this.translateX,r=this.translateY;this.hbar&&(t-=Og.event.dx),this.vbar&&(r-=Og.event.dy),this.setTranslate(t,r)};Sf.prototype._onBoxWheel=function(){var t=this.translateX,r=this.translateY;this.hbar&&(t+=Og.event.deltaY),this.vbar&&(r+=Og.event.deltaY),this.setTranslate(t,r)};Sf.prototype._onBarDrag=function(){var t=this.translateX,r=this.translateY;if(this.hbar){var n=t+this._hbarXMin,i=n+this._hbarTranslateMax,a=yI.constrain(Og.event.x,n,i),o=(a-n)/(i-n),s=this.position.w-this._box.w;t=o*s}if(this.vbar){var l=r+this._vbarYMin,u=l+this._vbarTranslateMax,c=yI.constrain(Og.event.y,l,u),f=(c-l)/(u-l),h=this.position.h-this._box.h;r=f*h}this.setTranslate(t,r)};Sf.prototype.setTranslate=function(t,r){var n=this.position.w-this._box.w,i=this.position.h-this._box.h;if(t=yI.constrain(t||0,0,n),r=yI.constrain(r||0,0,i),this.translateX=t,this.translateY=r,this.container.call(pT.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/n;this.hbar.call(pT.setTranslate,t+a*this._hbarTranslateMax,r)}if(this.vbar){var o=r/i;this.vbar.call(pT.setTranslate,t,r+o*this._vbarTranslateMax)}}});var $0e=ye((Qor,J0e)=>{"use strict";var gT=Oa(),a4=Mc(),o4=Ca(),mT=So(),e0=Dr(),_I=iu(),ugt=pl().arrayEditor,H0e=Kh().LINE_SPACING,ts=gI(),cgt=V0e();J0e.exports=function(t){var r=t._fullLayout,n=e0.filterVisible(r[ts.name]);function i(h){a4.autoMargin(t,Y0e(h))}var a=r._menulayer.selectAll("g."+ts.containerClassName).data(n.length>0?[0]:[]);if(a.enter().append("g").classed(ts.containerClassName,!0).style("cursor","pointer"),a.exit().each(function(){gT.select(this).selectAll("g."+ts.headerGroupClassName).each(i)}).remove(),n.length!==0){var o=a.selectAll("g."+ts.headerGroupClassName).data(n,fgt);o.enter().append("g").classed(ts.headerGroupClassName,!0);for(var s=e0.ensureSingle(a,"g",ts.dropdownButtonGroupClassName,function(h){h.style("pointer-events","all")}),l=0;l{"use strict";var ygt=gI();Q0e.exports={moduleType:"component",name:ygt.name,layoutAttributes:GU(),supplyLayoutDefaults:B0e(),draw:$0e()}});var l4=ye((tsr,tge)=>{"use strict";tge.exports={name:"sliders",containerClassName:"slider-container",groupClassName:"slider-group",inputAreaClass:"slider-input-area",railRectClass:"slider-rail-rect",railTouchRectClass:"slider-rail-touch-rect",gripRectClass:"slider-grip-rect",tickRectClass:"slider-tick-rect",inputProxyClass:"slider-input-proxy",labelsClass:"slider-labels",labelGroupClass:"slider-label-group",labelClass:"slider-label",currentValueClass:"slider-current-value",railHeight:5,menuIndexAttrName:"slider-active-index",autoMarginIdRoot:"slider-",minWidth:30,minHeight:30,textPadX:40,arrowOffsetX:4,railRadius:2,railWidth:5,railBorder:4,railBorderWidth:1,railBorderColor:"#bec8d9",railBgColor:"#f8fafc",railInset:8,stepInset:10,gripRadius:10,gripWidth:20,gripHeight:20,gripBorder:20,gripBorderWidth:1,gripBorderColor:"#bec8d9",gripBgColor:"#f6f8fa",gripBgActiveColor:"#dbdde0",labelPadding:8,labelOffset:0,tickWidth:1,tickColor:"#333",tickOffset:25,tickLength:7,minorTickOffset:25,minorTickColor:"#333",minorTickLength:4,currentValuePadding:8,currentValueInset:0}});var XU=ye((rsr,nge)=>{"use strict";var rge=ec(),_gt=S6(),xgt=Ao().extendDeepAll,bgt=mc().overrideAll,wgt=qS(),ige=pl().templatedArray,Jb=l4(),Tgt=ige("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}});nge.exports=bgt(ige("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:Tgt,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:xgt(_gt({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:wgt.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:rge({})},font:rge({}),activebgcolor:{valType:"color",dflt:Jb.gripBgActiveColor},bgcolor:{valType:"color",dflt:Jb.railBgColor},bordercolor:{valType:"color",dflt:Jb.railBorderColor},borderwidth:{valType:"number",min:0,dflt:Jb.railBorderWidth},ticklen:{valType:"number",min:0,dflt:Jb.tickLength},tickcolor:{valType:"color",dflt:Jb.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:Jb.minorTickLength}}),"arraydraw","from-root")});var lge=ye((isr,sge)=>{"use strict";var yT=Dr(),age=Yd(),oge=XU(),Agt=l4(),Sgt=Agt.name,Mgt=oge.steps;sge.exports=function(t,r){age(t,r,{name:Sgt,handleItemDefaults:Egt})};function Egt(e,t,r){function n(f,h){return yT.coerce(e,t,oge,f,h)}for(var i=age(e,t,{name:"steps",handleItemDefaults:Cgt}),a=0,o=0;o{"use strict";var qg=Oa(),xI=Mc(),x_=Ca(),Bg=So(),t0=Dr(),kgt=t0.strTranslate,u4=iu(),Lgt=pl().arrayEditor,Ds=l4(),KU=Kh(),fge=KU.LINE_SPACING,ZU=KU.FROM_TL,YU=KU.FROM_BR;mge.exports=function(t){var r=t._context.staticPlot,n=t._fullLayout,i=Pgt(n,t),a=n._infolayer.selectAll("g."+Ds.containerClassName).data(i.length>0?[0]:[]);a.enter().append("g").classed(Ds.containerClassName,!0).style("cursor",r?null:"ew-resize");function o(c){c._commandObserver&&(c._commandObserver.remove(),delete c._commandObserver),xI.autoMargin(t,hge(c))}if(a.exit().each(function(){qg.select(this).selectAll("g."+Ds.groupClassName).each(o)}).remove(),i.length!==0){var s=a.selectAll("g."+Ds.groupClassName).data(i,Igt);s.enter().append("g").classed(Ds.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",kgt(o-Ds.gripWidth*.5,t._dims.currentValueTotalHeight))}}function JU(e,t){var r=e._dims;return r.inputAreaStart+Ds.stepInset+(r.inputAreaLength-2*Ds.stepInset)*Math.min(1,Math.max(0,t))}function cge(e,t){var r=e._dims;return Math.min(1,Math.max(0,(t-Ds.stepInset-r.inputAreaStart)/(r.inputAreaLength-2*Ds.stepInset-2*r.inputAreaStart)))}function Bgt(e,t,r){var n=r._dims,i=t0.ensureSingle(e,"rect",Ds.railTouchRectClass,function(a){a.call(pge,t,e,r).style("pointer-events","all")});i.attr({width:n.inputAreaLength,height:Math.max(n.inputAreaWidth,Ds.tickOffset+r.ticklen+n.labelHeight)}).call(x_.fill,r.bgcolor).attr("opacity",0),Bg.setTranslate(i,0,n.currentValueTotalHeight)}function Ngt(e,t){var r=t._dims,n=r.inputAreaLength-Ds.railInset*2,i=t0.ensureSingle(e,"rect",Ds.railRectClass);i.attr({width:n,height:Ds.railWidth,rx:Ds.railRadius,ry:Ds.railRadius,"shape-rendering":"crispEdges"}).call(x_.stroke,t.bordercolor).call(x_.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px"),Bg.setTranslate(i,Ds.railInset,(r.inputAreaWidth-Ds.railWidth)*.5+r.currentValueTotalHeight)}});var xge=ye((asr,_ge)=>{"use strict";var Ugt=l4();_ge.exports={moduleType:"component",name:Ugt.name,layoutAttributes:XU(),supplyLayoutDefaults:lge(),draw:yge()}});var wI=ye((osr,wge)=>{"use strict";var bge=Eh();wge.exports={bgcolor:{valType:"color",dflt:bge.background,editType:"plot"},bordercolor:{valType:"color",dflt:bge.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 $U=ye((ssr,Tge)=>{"use strict";Tge.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 TI=ye((lsr,Age)=>{"use strict";Age.exports={name:"rangeslider",containerClassName:"rangeslider-container",bgClassName:"rangeslider-bg",rangePlotClassName:"rangeslider-rangeplot",maskMinClassName:"rangeslider-mask-min",maskMaxClassName:"rangeslider-mask-max",slideBoxClassName:"rangeslider-slidebox",grabberMinClassName:"rangeslider-grabber-min",grabAreaMinClassName:"rangeslider-grabarea-min",handleMinClassName:"rangeslider-handle-min",grabberMaxClassName:"rangeslider-grabber-max",grabAreaMaxClassName:"rangeslider-grabarea-max",handleMaxClassName:"rangeslider-handle-max",maskMinOppAxisClassName:"rangeslider-mask-min-opp-axis",maskMaxOppAxisClassName:"rangeslider-mask-max-opp-axis",maskColor:"rgba(0,0,0,0.4)",maskOppAxisColor:"rgba(0,0,0,0.2)",slideBoxFill:"transparent",slideBoxCursor:"ew-resize",grabAreaFill:"transparent",grabAreaCursor:"col-resize",grabAreaWidth:10,handleWidth:4,handleRadius:1,handleStrokeWidth:1,extraPad:15}});var Ege=ye(SI=>{"use strict";var Vgt=hf(),Ggt=iu(),Sge=TI(),Hgt=Kh().LINE_SPACING,AI=Sge.name;function Mge(e){var t=e&&e[AI];return t&&t.visible}SI.isVisible=Mge;SI.makeData=function(e){for(var t=Vgt.list({_fullLayout:e},"x",!0),r=e.margin,n=[],i=0;i{"use strict";var MI=Dr(),Cge=pl(),kge=hf(),jgt=wI(),Wgt=$U();Lge.exports=function(t,r,n){var i=t[n],a=r[n];if(!(i.rangeslider||r._requestRangeslider[a._id]))return;MI.isPlainObject(i.rangeslider)||(i.rangeslider={});var o=i.rangeslider,s=Cge.newContainer(a,"rangeslider");function l(L,_){return MI.coerce(o,s,jgt,L,_)}var u,c;function f(L,_){return MI.coerce(u,c,Wgt,L,_)}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 v=d.cartesian.filter(function(L){return L.substr(0,L.indexOf("y"))===kge.name2id(n)}).map(function(L){return L.substr(L.indexOf("y"),L.length)}),x=MI.simpleMap(v,kge.id2name),b=0;b{"use strict";var Xgt=hf().list,Zgt=wg().getAutoRange,Ygt=TI();Ige.exports=function(t){for(var r=Xgt(t,"x",!0),n=0;n{"use strict";var EI=Oa(),Kgt=qa(),Jgt=Mc(),Jf=Dr(),CI=Jf.strTranslate,Fge=So(),b_=Ca(),$gt=Mb(),Qgt=vh(),QU=hf(),emt=gv(),tmt=Tg(),il=TI();zge.exports=function(e){for(var t=e._fullLayout,r=t._rangeSliderData,n=0;n=N.max)Z=T[H+1];else if(G=N.pmax)Z=T[H+1];else if(G0?e.touches[0].clientX:0}function rmt(e,t,r,n){if(t._context.staticPlot)return;var i=e.select("rect."+il.slideBoxClassName).node(),a=e.select("rect."+il.grabAreaMinClassName).node(),o=e.select("rect."+il.grabAreaMaxClassName).node();function s(){var l=EI.event,u=l.target,c=Dge(l),f=c-e.node().getBoundingClientRect().left,h=n.d2p(r._rl[0]),d=n.d2p(r._rl[1]),v=emt.coverSlip();this.addEventListener("touchmove",x),this.addEventListener("touchend",b),v.addEventListener("mousemove",x),v.addEventListener("mouseup",b);function x(p){var C=Dge(p),E=+C-c,A,L,_;switch(u){case i:if(_="ew-resize",h+E>r._length||d+E<0)return;A=h+E,L=d+E;break;case a:if(_="col-resize",h+E>r._length)return;A=h+E,L=d;break;case o:if(_="col-resize",d+E<0)return;A=h,L=d+E;break;default:_="ew-resize",A=f,L=f+E;break}if(L{"use strict";var hmt=Dr(),dmt=wI(),vmt=$U(),eV=Ege();qge.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:hmt.extendFlat({},dmt,{yaxis:vmt})}}},layoutAttributes:wI(),handleDefaults:Pge(),calcAutorange:Rge(),draw:Oge(),isVisible:eV.isVisible,makeData:eV.makeData,autoMarginOpts:eV.autoMarginOpts}});var kI=ye((vsr,Uge)=>{"use strict";var pmt=ec(),Nge=Eh(),gmt=pl().templatedArray,mmt=gmt("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"});Uge.exports={visible:{valType:"boolean",editType:"plot"},buttons:mmt,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:pmt({editType:"plot"}),bgcolor:{valType:"color",dflt:Nge.lightLine,editType:"plot"},activecolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:Nge.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"}});var tV=ye((psr,Vge)=>{"use strict";Vge.exports={yPad:.02,minButtonWidth:30,rx:3,ry:3,lightAmount:25,darkAmount:10}});var jge=ye((gsr,Hge)=>{"use strict";var LI=Dr(),ymt=Ca(),_mt=pl(),xmt=Yd(),Gge=kI(),rV=tV();Hge.exports=function(t,r,n,i,a){var o=t.rangeselector||{},s=_mt.newContainer(r,"rangeselector");function l(d,v){return LI.coerce(o,s,Gge,d,v)}var u=xmt(o,s,{name:"buttons",handleItemDefaults:bmt,calendar:a}),c=l("visible",u.length>0);if(c){var f=wmt(r,n,i);l("x",f[0]),l("y",f[1]),LI.noneOrAll(t,r,["x","y"]),l("xanchor"),l("yanchor"),LI.coerceFont(l,"font",n.font);var h=l("bgcolor");l("activecolor",ymt.contrast(h,rV.lightAmount,rV.darkAmount)),l("bordercolor"),l("borderwidth")}};function bmt(e,t,r,n){var i=n.calendar;function a(l,u){return LI.coerce(e,t,Gge.buttons,l,u)}var o=a("visible");if(o){var s=a("step");s!=="all"&&(i&&i!=="gregorian"&&(s==="month"||s==="year")?t.stepmode="backward":a("stepmode"),a("count")),a("label")}}function wmt(e,t,r){for(var n=r.filter(function(s){return t[s].anchor===e._id}),i=0,a=0;a{"use strict";var Tmt=gO(),Amt=Dr().titleCase;Wge.exports=function(t,r){var n=t._name,i={};if(r.step==="all")i[n+".autorange"]=!0;else{var a=Smt(t,r);i[n+".range[0]"]=a[0],i[n+".range[1]"]=a[1]}return i};function Smt(e,t){var r=e.range,n=new Date(e.r2l(r[1])),i=t.step,a=Tmt["utc"+Amt(i)],o=t.count,s;switch(t.stepmode){case"backward":s=e.l2r(+a.offset(n,-o));break;case"todate":var l=a.offset(n,-o);s=e.l2r(+a.ceil(l));break}var u=r[1];return[s,u]}});var tme=ye((ysr,eme)=>{"use strict";var II=Oa(),Mmt=qa(),Emt=Mc(),Zge=Ca(),Qge=So(),Iy=Dr(),Yge=Iy.strTranslate,PI=iu(),Cmt=hf(),aV=Kh(),Kge=aV.LINE_SPACING,Jge=aV.FROM_TL,$ge=aV.FROM_BR,nV=tV(),kmt=Xge();eme.exports=function(t){var r=t._fullLayout,n=r._infolayer.selectAll(".rangeselector").data(Lmt(t),Pmt);n.enter().append("g").classed("rangeselector",!0),n.exit().remove(),n.style({cursor:"pointer","pointer-events":"all"}),n.each(function(i){var a=II.select(this),o=i,s=o.rangeselector,l=a.selectAll("g.button").data(Iy.filterVisible(s.buttons));l.enter().append("g").classed("button",!0),l.exit().remove(),l.each(function(u){var c=II.select(this),f=kmt(o,u);u._isActive=Imt(o,u,f),c.call(iV,s,u),c.call(Dmt,s,u,t),c.on("click",function(){t._dragged||Mmt.call("_guiRelayout",t,f)}),c.on("mouseover",function(){u._isHovered=!0,c.call(iV,s,u)}),c.on("mouseout",function(){u._isHovered=!1,c.call(iV,s,u)})}),zmt(t,l,s,o._name,a)})};function Lmt(e){for(var t=Cmt.list(e,"x",!0),r=[],n=0;n{"use strict";rme.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:kI()}}},layoutAttributes:kI(),handleDefaults:jge(),draw:tme()}});var kc=ye(oV=>{"use strict";var nme=Ao().extendFlat;oV.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]},n=e.name?e.name+" ":"",i=e.trace?"trace ":"subplot ",a=t.description?" "+t.description:"",o={x:nme({},r,{}),y:nme({},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};oV.defaults=function(e,t,r,n){var i=n&&n.x||[0,1],a=n&&n.y||[0,1],o=t.grid;if(o){var s=r("domain.column");s!==void 0&&(s{"use strict";var Omt=Dr(),qmt=n3().counter,Bmt=kc().attributes,ame=hd().idRegex,Nmt=pl(),sV={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:[qmt("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[ame.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[ame.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:Bmt({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 RI(e,t,r){var n=t[r+"axes"],i=Object.keys((e._splomAxes||{})[r]||{});if(Array.isArray(n))return n;if(i.length)return i}function Umt(e,t){var r=e.grid||{},n=RI(t,r,"x"),i=RI(t,r,"y");if(!e.grid&&!n&&!i)return;var a=Array.isArray(r.subplots)&&Array.isArray(r.subplots[0]),o=Array.isArray(n),s=Array.isArray(i),l=o&&n!==r.xaxes&&s&&i!==r.yaxes,u,c;a?(u=r.subplots.length,c=r.subplots[0].length):(s&&(u=i.length),o&&(c=n.length));var f=Nmt.newContainer(t,"grid");function h(_,k){return Omt.coerce(r,f,sV,_,k)}var d=h("rows",u),v=h("columns",c);if(!(d*v>1)){delete t.grid;return}if(!a&&!o&&!s){var x=h("pattern")==="independent";x&&(a=!0)}f._hasSubplotGrid=a;var b=h("roworder"),p=b==="top to bottom",C=a?.2:.1,E=a?.3:.1,A,L;l&&t._splomGridDflt&&(A=t._splomGridDflt.xside,L=t._splomGridDflt.yside),f._domains={x:ome("x",h,C,A,v),y:ome("y",h,E,L,d,p)}}function ome(e,t,r,n,i,a){var o=t(e+"gap",r),s=t("domain."+e);t(e+"side",n);for(var l=new Array(i),u=s[0],c=(s[1]-u)/(i-o),f=c*(1-o),h=0;h{"use strict";ume.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 hme=ye((Tsr,fme)=>{"use strict";var cme=Eo(),Gmt=qa(),Hmt=Dr(),jmt=pl(),Wmt=uV();fme.exports=function(e,t,r,n){var i="error_"+n.axis,a=jmt.newContainer(t,i),o=e[i]||{};function s(v,x){return Hmt.coerce(o,a,Wmt,v,x)}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_"+n.inherit+"style";if(n.inherit){var d=t["error_"+n.inherit];(d||{}).visible&&s(h,!(o.color||cme(o.thickness)||cme(o.width)))}(!n.inherit||!a[h])&&(s("color",r),s("thickness"),s("width",Gmt.traceIs(t,"gl3d")?0:4))}}});var cV=ye((Asr,vme)=>{"use strict";vme.exports=function(t){var r=t.type,n=t.symmetric;if(r==="data"){var i=t.array||[];if(n)return function(u,c){var f=+i[c];return[f,f]};var a=t.arrayminus||[];return function(u,c){var f=+i[c],h=+a[c];return!isNaN(f)||!isNaN(h)?[h||0,f||0]:[NaN,NaN]}}else{var o=dme(r,t.value),s=dme(r,t.valueminus);return n||t.valueminus===void 0?function(u){var c=o(u);return[c,c]}:function(u){return[s(u),o(u)]}}};function dme(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 mme=ye((Ssr,gme)=>{"use strict";var fV=Eo(),Xmt=qa(),hV=ho(),Zmt=Dr(),Ymt=cV();gme.exports=function(t){for(var r=t.calcdata,n=0;n{"use strict";var yme=Oa(),w_=Eo(),Kmt=So(),Jmt=Ru();_me.exports=function(t,r,n,i){var a,o=n.xaxis,s=n.yaxis,l=i&&i.duration>0,u=t._context.staticPlot;r.each(function(c){var f=c[0].trace,h=f.error_x||{},d=f.error_y||{},v;f.ids&&(v=function(C){return C.id});var x=Jmt.hasMarkers(f)&&f.marker.maxdisplayed>0;!d.visible&&!h.visible&&(c=[]);var b=yme.select(this).selectAll("g.errorbar").data(c,v);if(b.exit().remove(),!!c.length){h.visible||b.selectAll("path.xerror").remove(),d.visible||b.selectAll("path.yerror").remove(),b.style("opacity",1);var p=b.enter().append("g").classed("errorbar",!0);l&&p.style("opacity",0).transition().duration(i.duration).style("opacity",1),Kmt.setClipUrl(b,n.layerClipId,t),b.each(function(C){var E=yme.select(this),A=$mt(C,o,s);if(!(x&&!C.vis)){var L,_=E.select("path.yerror");if(d.visible&&w_(A.x)&&w_(A.yh)&&w_(A.ys)){var k=d.width;L="M"+(A.x-k)+","+A.yh+"h"+2*k+"m-"+k+",0V"+A.ys,A.noYS||(L+="m-"+k+",0h"+2*k),a=!_.size(),a?_=E.append("path").style("vector-effect",u?"none":"non-scaling-stroke").classed("yerror",!0):l&&(_=_.transition().duration(i.duration).ease(i.easing)),_.attr("d",L)}else _.remove();var M=E.select("path.xerror");if(h.visible&&w_(A.y)&&w_(A.xh)&&w_(A.xs)){var g=(h.copy_ystyle?d:h).width;L="M"+A.xh+","+(A.y-g)+"v"+2*g+"m0,-"+g+"H"+A.xs,A.noXS||(L+="m0,-"+g+"v"+2*g),a=!M.size(),a?M=E.append("path").style("vector-effect",u?"none":"non-scaling-stroke").classed("xerror",!0):l&&(M=M.transition().duration(i.duration).ease(i.easing)),M.attr("d",L)}else M.remove()}})}})};function $mt(e,t,r){var n={x:t.c2p(e.x),y:r.c2p(e.y)};return e.yh!==void 0&&(n.yh=r.c2p(e.yh),n.ys=r.c2p(e.ys),w_(n.ys)||(n.noYS=!0,n.ys=r.c2p(e.ys,!0))),e.xh!==void 0&&(n.xh=t.c2p(e.xh),n.xs=t.c2p(e.xs),w_(n.xs)||(n.noXS=!0,n.xs=t.c2p(e.xs,!0))),n}});var Tme=ye((Esr,wme)=>{"use strict";var Qmt=Oa(),bme=Ca();wme.exports=function(t){t.each(function(r){var n=r[0].trace,i=n.error_y||{},a=n.error_x||{},o=Qmt.select(this);o.selectAll("path.yerror").style("stroke-width",i.thickness+"px").call(bme.stroke,i.color),a.copy_ystyle&&(a=i),o.selectAll("path.xerror").style("stroke-width",a.thickness+"px").call(bme.stroke,a.color)})}});var Mme=ye((Csr,Sme)=>{"use strict";var c4=Dr(),Ame=mc().overrideAll,f4=uV(),$b={error_x:c4.extendFlat({},f4),error_y:c4.extendFlat({},f4)};delete $b.error_x.copy_zstyle;delete $b.error_y.copy_zstyle;delete $b.error_y.copy_ystyle;var h4={error_x:c4.extendFlat({},f4),error_y:c4.extendFlat({},f4),error_z:c4.extendFlat({},f4)};delete h4.error_x.copy_ystyle;delete h4.error_y.copy_ystyle;delete h4.error_z.copy_ystyle;delete h4.error_z.copy_zstyle;Sme.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:$b,bar:$b,histogram:$b,scatter3d:Ame(h4,"calc","nested"),scattergl:Ame($b,"calc","nested")}},supplyDefaults:hme(),calc:mme(),makeComputeError:cV(),plot:xme(),style:Tme(),hoverInfo:eyt};function eyt(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 Cme=ye((ksr,Eme)=>{"use strict";Eme.exports={cn:{colorbar:"colorbar",cbbg:"cbbg",cbfill:"cbfill",cbfills:"cbfills",cbline:"cbline",cblines:"cblines",cbaxis:"cbaxis",cbtitleunshift:"cbtitleunshift",cbtitle:"cbtitle",cboutline:"cboutline",crisp:"crisp",jsPlaceholder:"js-placeholder"}}});var Fme=ye((Lsr,Dme)=>{"use strict";var T_=Oa(),dV=cd(),FI=Mc(),kme=qa(),Ry=ho(),DI=gv(),B0=Dr(),Ug=B0.strTranslate,Rme=Ao().extendFlat,vV=Tg(),Ng=So(),pV=Ca(),tyt=Mb(),ryt=iu(),iyt=Dv().flipScale,nyt=t4(),ayt=oI(),oyt=Rd(),gV=Kh(),Lme=gV.LINE_SPACING,Pme=gV.FROM_TL,Ime=gV.FROM_BR,gf=Cme().cn;function syt(e){var t=e._fullLayout,r=t._infolayer.selectAll("g."+gf.colorbar).data(lyt(e),function(n){return n._id});r.enter().append("g").attr("class",function(n){return n._id}).classed(gf.colorbar,!0),r.each(function(n){var i=T_.select(this);B0.ensureSingle(i,"rect",gf.cbbg),B0.ensureSingle(i,"g",gf.cbfills),B0.ensureSingle(i,"g",gf.cblines),B0.ensureSingle(i,"g",gf.cbaxis,function(o){o.classed(gf.crisp,!0)}),B0.ensureSingle(i,"g",gf.cbtitleunshift,function(o){o.append("g").classed(gf.cbtitle,!0)}),B0.ensureSingle(i,"rect",gf.cboutline);var a=uyt(i,n,e);a&&a.then&&(e._promises||[]).push(a),e._context.edits.colorbarPosition&&cyt(i,n,e)}),r.exit().each(function(n){FI.autoMargin(e,n._id)}).remove(),r.order()}function lyt(e){var t=e._fullLayout,r=e.calcdata,n=[],i,a,o,s;function l(E){return Rme(E,{_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,i):(i._fillgradient=a.reversescale?iyt(a.colorscale):a.colorscale,i._zrange=[a[s.min],a[s.max]])}for(var c=0;c1){var Fe=Math.pow(10,Math.floor(Math.log(ge)/Math.LN10));De*=Fe*B0.roundUp(ge/Fe,[2,5,10]),(Math.abs(z.start)/z.size+1e-6)%1<2e-6&&(Le.tick0=0)}Le.dtick=De}Le.domain=n?[ie+v/A.h,ie+j-v/A.h]:[ie+d/A.w,ie+j-d/A.w],Le.setScale(),e.attr("transform",Ug(Math.round(A.l),Math.round(A.t)));var ce=e.select("."+gf.cbtitleunshift).attr("transform",Ug(-Math.round(A.l),-Math.round(A.t))),Ze=Le.ticklabelposition,ct=Le.title.font.size,pt=e.select("."+gf.cbaxis),Wt,st=0,lt=0;function Gt(ur,Qe){var Et={propContainer:Le,propName:t._propPrefix+"title",traceIndex:t._traceIndex,_meta:t._meta,placeholder:E._dfltTitle.colorbar,containerGroup:e.select("."+gf.cbtitle)},er=ur.charAt(0)==="h"?ur.substr(1):"h"+ur;e.selectAll("."+er+",."+er+"-math-group").remove(),tyt.draw(r,ur,Rme(Et,Qe||{}))}function Nt(){if(n&&Ae||!n&&!Ae){var ur,Qe;M==="top"&&(ur=d+A.l+re*x,Qe=v+A.t+oe*(1-ie-j)+3+ct*.75),M==="bottom"&&(ur=d+A.l+re*x,Qe=v+A.t+oe*(1-ie)-3-ct*.25),M==="right"&&(Qe=v+A.t+oe*b+3+ct*.75,ur=d+A.l+re*ie),Gt(Le._id+"title",{attributes:{x:ur,y:Qe,"text-anchor":n?"start":"middle"}})}}function $t(){if(n&&!Ae||!n&&Ae){var ur=Le.position||0,Qe=Le._offset+Le._length/2,Et,er;if(M==="right")er=Qe,Et=A.l+re*ur+10+ct*(Le.showticklabels?1:.5);else if(Et=Qe,M==="bottom"&&(er=A.t+oe*ur+10+(Ze.indexOf("inside")===-1?Le.tickfont.size:0)+(Le.ticks!=="intside"&&t.ticklen||0)),M==="top"){var Ut=k.text.split("
").length;er=A.t+oe*ur+10-Z-Lme*ct*Ut}Gt((n?"h":"v")+Le._id+"title",{avoid:{selection:T_.select(r).selectAll("g."+Le._id+"tick"),side:M,offsetTop:n?0:A.t,offsetLeft:n?A.l:0,maxShift:n?E.width:E.height},attributes:{x:Et,y:er,"text-anchor":"middle"},transform:{rotate:n?-90:0,offset:0}})}}function sr(){if(!n&&!Ae||n&&Ae){var ur=e.select("."+gf.cbtitle),Qe=ur.select("text"),Et=[-l/2,l/2],er=ur.select(".h"+Le._id+"title-math-group").node(),Ut=15.6;Qe.node()&&(Ut=parseInt(Qe.node().style.fontSize,10)*Lme);var Ft;if(er?(Ft=Ng.bBox(er),lt=Ft.width,st=Ft.height,st>Ut&&(Et[1]-=(st-Ut)/2)):Qe.node()&&!Qe.classed(gf.jsPlaceholder)&&(Ft=Ng.bBox(Qe.node()),lt=Ft.width,st=Ft.height),n){if(st){if(st+=5,M==="top")Le.domain[1]-=st/A.h,Et[1]*=-1;else{Le.domain[0]+=st/A.h;var bt=ryt.lineCount(Qe);Et[1]+=(1-bt)*Ut}ur.attr("transform",Ug(Et[0],Et[1])),Le.setScale()}}else lt&&(M==="right"&&(Le.domain[0]+=(lt+ct/2)/A.w),ur.attr("transform",Ug(Et[0],Et[1])),Le.setScale())}e.selectAll("."+gf.cbfills+",."+gf.cblines).attr("transform",n?Ug(0,Math.round(A.h*(1-Le.domain[1]))):Ug(Math.round(A.w*Le.domain[0]),0)),pt.attr("transform",n?Ug(0,Math.round(-A.t)):Ug(Math.round(-A.l),0));var yt=e.select("."+gf.cbfills).selectAll("rect."+gf.cbfill).attr("style","").data(V);yt.enter().append("rect").classed(gf.cbfill,!0).attr("style",""),yt.exit().remove();var Yt=g.map(Le.c2p).map(Math.round).sort(function(Wr,Ur){return Wr-Ur});yt.each(function(Wr,Ur){var dt=[Ur===0?g[0]:(V[Ur]+V[Ur-1])/2,Ur===V.length-1?g[1]:(V[Ur]+V[Ur+1])/2].map(Le.c2p).map(Math.round);n&&(dt[1]=B0.constrain(dt[1]+(dt[1]>dt[0])?1:-1,Yt[0],Yt[1]));var Ge=T_.select(this).attr(n?"x":"y",_e).attr(n?"y":"x",T_.min(dt)).attr(n?"width":"height",Math.max(Z,2)).attr(n?"height":"width",Math.max(T_.max(dt)-T_.min(dt),2));if(t._fillgradient)Ng.gradient(Ge,r,t._id,n?"vertical":"horizontalreversed",t._fillgradient,"fill");else{var Je=T(Wr).replace("e-","");Ge.attr("fill",dV(Je).toHexString())}});var lr=e.select("."+gf.cblines).selectAll("path."+gf.cbline).data(_.color&&_.width?G:[]);lr.enter().append("path").classed(gf.cbline,!0),lr.exit().remove(),lr.each(function(Wr){var Ur=_e,dt=Math.round(Le.c2p(Wr))+_.width/2%1;T_.select(this).attr("d","M"+(n?Ur+","+dt:dt+","+Ur)+(n?"h":"v")+Z).call(Ng.lineGroupStyle,_.width,P(Wr),_.dash)}),pt.selectAll("g."+Le._id+"tick,path").remove();var Tr=_e+Z+(l||0)/2-(t.ticks==="outside"?1:0),Rr=Ry.calcTicks(Le),ei=Ry.getTickSigns(Le)[2];return Ry.drawTicks(r,Le,{vals:Le.ticks==="inside"?Ry.clipEnds(Le,Rr):Rr,layer:pt,path:Ry.makeTickPath(Le,Tr,ei),transFn:Ry.makeTransTickFn(Le)}),Ry.drawLabels(r,Le,{vals:Rr,layer:pt,transFn:Ry.makeTransTickLabelFn(Le),labelFns:Ry.makeLabelFns(Le,Tr)})}function wr(){var ur,Qe=Z+l/2;Ze.indexOf("inside")===-1&&(ur=Ng.bBox(pt.node()),Qe+=n?ur.width:ur.height),Wt=ce.select("text");var Et=0,er=n&&M==="top",Ut=!n&&M==="right",Ft=0;if(Wt.node()&&!Wt.classed(gf.jsPlaceholder)){var bt,yt=ce.select(".h"+Le._id+"title-math-group").node();yt&&(n&&Ae||!n&&!Ae)?(ur=Ng.bBox(yt),Et=ur.width,bt=ur.height):(ur=Ng.bBox(ce.node()),Et=ur.right-A.l-(n?_e:Se),bt=ur.bottom-A.t-(n?Se:_e),!n&&M==="top"&&(Qe+=ur.height,Ft=ur.height)),Ut&&(Wt.attr("transform",Ug(Et/2+ct/2,0)),Et*=2),Qe=Math.max(Qe,n?Et:bt)}var Yt=(n?d:v)*2+Qe+u+l/2,lr=0;!n&&k.text&&h==="bottom"&&b<=0&&(lr=Yt/2,Yt+=lr,Ft+=lr),E._hColorbarMoveTitle=lr,E._hColorbarMoveCBTitle=Ft;var Tr=u+l,Rr=(n?_e:Se)-Tr/2-(n?d:0),ei=(n?Se:_e)-(n?N:v+Ft-lr);e.select("."+gf.cbbg).attr("x",Rr).attr("y",ei).attr(n?"width":"height",Math.max(Yt-lr,2)).attr(n?"height":"width",Math.max(N+Tr,2)).call(pV.fill,c).call(pV.stroke,t.bordercolor).style("stroke-width",u);var Wr=Ut?Math.max(Et-10,0):0;e.selectAll("."+gf.cboutline).attr("x",(n?_e:Se+d)+Wr).attr("y",(n?Se+v-N:_e)+(er?st:0)).attr(n?"width":"height",Math.max(Z,2)).attr(n?"height":"width",Math.max(N-(n?2*v+st:2*d+Wr),2)).call(pV.stroke,t.outlinecolor).style({fill:"none","stroke-width":l});var Ur=n?Me*Yt:0,dt=n?0:(1-ke)*Yt-Ft;if(Ur=C?A.l-Ur:-Ur,dt=p?A.t-dt:-dt,e.attr("transform",Ug(Ur,dt)),!n&&(u||dV(c).getAlpha()&&!dV.equals(E.paper_bgcolor,c))){var Ge=pt.selectAll("text"),Je=Ge[0].length,je=e.select("."+gf.cbbg).node(),$e=Ng.bBox(je),wt=Ng.getTranslate(e),Ie=2;Ge.each(function(fi,Hi){var Pn=0,wn=Je-1;if(Hi===Pn||Hi===wn){var pn=Ng.bBox(this),Vn=Ng.getTranslate(this),kn;if(Hi===wn){var ea=pn.right+Vn.x,ua=$e.right+wt.x+Se-u-Ie+x;kn=ua-ea,kn>0&&(kn=0)}else if(Hi===Pn){var Vt=pn.left+Vn.x,_t=$e.left+wt.x+Se+u+Ie;kn=_t-Vt,kn<0&&(kn=0)}kn&&(Je<3?this.setAttribute("transform","translate("+kn+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var xe={},Ce=Pme[f],vt=Ime[f],nr=Pme[h],ir=Ime[h],pr=Yt-Z;n?(a==="pixels"?(xe.y=b,xe.t=N*nr,xe.b=N*ir):(xe.t=xe.b=0,xe.yt=b+i*nr,xe.yb=b-i*ir),s==="pixels"?(xe.x=x,xe.l=Yt*Ce,xe.r=Yt*vt):(xe.l=pr*Ce,xe.r=pr*vt,xe.xl=x-o*Ce,xe.xr=x+o*vt)):(a==="pixels"?(xe.x=x,xe.l=N*Ce,xe.r=N*vt):(xe.l=xe.r=0,xe.xl=x+i*Ce,xe.xr=x-i*vt),s==="pixels"?(xe.y=1-b,xe.t=Yt*nr,xe.b=Yt*ir):(xe.t=pr*nr,xe.b=pr*ir,xe.yt=b-o*nr,xe.yb=b+o*ir));var oi=t.y<.5?"b":"t",di=t.x<.5?"l":"r";r._fullLayout._reservedMargin[t._id]={};var Jr={r:E.width-Rr-Ur,l:Rr+xe.r,b:E.height-ei-dt,t:ei+xe.b};C&&p?FI.autoMargin(r,t._id,xe):C?r._fullLayout._reservedMargin[t._id][oi]=Jr[oi]:p||n?r._fullLayout._reservedMargin[t._id][di]=Jr[di]:r._fullLayout._reservedMargin[t._id][oi]=Jr[oi]}return B0.syncOrAsync([FI.previousPromises,Nt,sr,$t,FI.previousPromises,wr],r)}function cyt(e,t,r){var n=t.orientation==="v",i=r._fullLayout,a=i._size,o,s,l;DI.init({element:e.node(),gd:r,prepFn:function(){o=e.attr("transform"),vV(e)},moveFn:function(u,c){e.attr("transform",o+Ug(u,c)),s=DI.align((n?t._uFrac:t._vFrac)+u/a.w,n?t._thickFrac:t._lenFrac,0,1,t.xanchor),l=DI.align((n?t._vFrac:1-t._uFrac)-c/a.h,n?t._lenFrac:t._thickFrac,0,1,t.yanchor);var f=DI.getCursor(s,l,t.xanchor,t.yanchor);vV(e,f)},doneFn:function(){if(vV(e),s!==void 0&&l!==void 0){var u={};u[t._propPrefix+"x"]=s,u[t._propPrefix+"y"]=l,t._traceIndex!==void 0?kme.call("_guiRestyle",r,u,t._traceIndex):kme.call("_guiRelayout",r,u)}}})}function fyt(e,t,r){var n=t._levels,i=[],a=[],o,s,l=n.end+n.size/100,u=n.size,c=1.001*r[0]-.001*r[1],f=1.001*r[1]-.001*r[0];for(s=0;s<1e5&&(o=n.start+s*u,!(u>0?o>=l:o<=l));s++)o>c&&o0?o>=l:o<=l));s++)o>r[0]&&o{"use strict";zme.exports={moduleType:"component",name:"colorbar",attributes:Q6(),supplyDefaults:Cq(),draw:Fme().draw,hasColorbar:bq()}});var Bme=ye((Isr,qme)=>{"use strict";qme.exports={moduleType:"component",name:"legend",layoutAttributes:bB(),supplyLayoutDefaults:AB(),draw:zB(),style:IB()}});var Ume=ye((Rsr,Nme)=>{"use strict";Nme.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 Gme=ye((Dsr,Vme)=>{"use strict";Vme.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}});var yV=ye((Fsr,Xme)=>{"use strict";var dyt=qa(),Wme=Dr(),mV=Wme.extendFlat,Hme=Wme.extendDeep;function jme(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:""},hidesources:!0,showlegend:!1,borderwidth:0,bordercolor:"",margin:{l:1,r:1,t:1,b:1,pad:0},annotations:[]};break;default:t={}}return t}function vyt(e){var t=["xaxis","yaxis","zaxis"];return t.indexOf(e.slice(0,5))>-1}Xme.exports=function(t,r){var n,i=t.data,a=t.layout,o=Hme([],i),s=Hme({},a,jme(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(n=0;n{"use strict";var pyt=vb().EventEmitter,gyt=qa(),myt=Dr(),Zme=Ly(),yyt=yV(),_yt=VP(),xyt=GP();function byt(e,t){var r=new pyt,n=yyt(e,{format:"png"}),i=n.gd;i.style.position="absolute",i.style.left="-5000px",document.body.appendChild(i);function a(){var s=Zme.getDelay(i._fullLayout);setTimeout(function(){var l=_yt(i),u=document.createElement("canvas");u.id=myt.randstr(),r=xyt({format:t.format,width:i._fullLayout.width,height:i._fullLayout.height,canvas:u,emitter:r,svg:l}),r.clean=function(){i&&document.body.removeChild(i)}},s)}var o=Zme.getRedrawFunc(i);return gyt.call("_doPlot",i,n.data,n.layout,n.config).then(o).then(a).catch(function(s){r.emit("error",s)}),r}Yme.exports=byt});var Qme=ye((Osr,$me)=>{"use strict";var Jme=Ly(),wyt={getDelay:Jme.getDelay,getRedrawFunc:Jme.getRedrawFunc,clone:yV(),toSVG:VP(),svgToImg:GP(),toImage:Kme(),downloadImage:QN()};$me.exports=wyt});var tye=ye(Dy=>{"use strict";Dy.version=o6().version;vee();ine();var Tyt=qa(),d4=Dy.register=Tyt.register,xV=Tde(),eye=Object.keys(xV);for(zI=0;zI{"use strict";rye.exports=tye()});var Qb=ye((Nsr,nye)=>{"use strict";nye.exports={TEXTPAD:3,eventDataKeys:["value","label"]}});var Lm=ye((Usr,lye)=>{"use strict";var Of=pf(),aye=df().axisHoverFormat,Ayt=Qo().hovertemplateAttrs,Syt=Qo().texttemplateAttrs,sye=Tu(),Myt=ec(),oye=Qb(),Eyt=Pd().pattern,e2=Ao().extendFlat,bV=Myt({editType:"calc",arrayOk:!0,colorEditType:"style"}),Cyt=Of.marker,kyt=Cyt.line,Lyt=e2({},kyt.width,{dflt:0}),Pyt=e2({width:Lyt,editType:"calc"},sye("marker.line")),Iyt=e2({line:Pyt,editType:"calc"},sye("marker"),{opacity:{valType:"number",arrayOk:!0,dflt:1,min:0,max:1,editType:"style"},pattern:Eyt,cornerradius:{valType:"any",editType:"calc"}});lye.exports={x:Of.x,x0:Of.x0,dx:Of.dx,y:Of.y,y0:Of.y0,dy:Of.dy,xperiod:Of.xperiod,yperiod:Of.yperiod,xperiod0:Of.xperiod0,yperiod0:Of.yperiod0,xperiodalignment:Of.xperiodalignment,yperiodalignment:Of.yperiodalignment,xhoverformat:aye("x"),yhoverformat:aye("y"),text:Of.text,texttemplate:Syt({editType:"plot"},{keys:oye.eventDataKeys}),hovertext:Of.hovertext,hovertemplate:Ayt({},{keys:oye.eventDataKeys}),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:e2({},bV,{}),insidetextfont:e2({},bV,{}),outsidetextfont:e2({},bV,{}),constraintext:{valType:"enumerated",values:["inside","outside","both","none"],dflt:"both",editType:"calc"},cliponaxis:e2({},Of.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:Iyt,offsetgroup:Of.offsetgroup,alignmentgroup:Of.alignmentgroup,selected:{marker:{opacity:Of.selected.marker.opacity,color:Of.selected.marker.color,editType:"style"},textfont:Of.selected.textfont,editType:"style"},unselected:{marker:{opacity:Of.unselected.marker.opacity,color:Of.unselected.marker.color,editType:"style"},textfont:Of.unselected.textfont,editType:"style"},zorder:Of.zorder}});var qI=ye((Vsr,uye)=>{"use strict";uye.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 BI=ye((Gsr,hye)=>{"use strict";var Ryt=Ca(),cye=Dv().hasColorscale,fye=Jh(),Dyt=Dr().coercePattern;hye.exports=function(t,r,n,i,a){var o=n("marker.color",i),s=cye(t,"marker");s&&fye(t,r,a,n,{prefix:"marker.",cLetter:"c"}),n("marker.line.color",Ryt.defaultLine),cye(t,"marker.line")&&fye(t,r,a,n,{prefix:"marker.line.",cLetter:"c"}),n("marker.line.width"),n("marker.opacity"),Dyt(n,"marker.pattern",o,s),n("selected.marker.color"),n("unselected.marker.color")}});var r0=ye((Hsr,yye)=>{"use strict";var dye=Eo(),xT=Dr(),vye=Ca(),Fyt=qa(),zyt=K3(),Oyt=Pg(),qyt=BI(),Byt=Gb(),pye=Lm(),NI=xT.coerceFont;function Nyt(e,t,r,n){function i(u,c){return xT.coerce(e,t,pye,u,c)}var a=zyt(e,t,n,i);if(!a){t.visible=!1;return}Oyt(e,t,n,i),i("xhoverformat"),i("yhoverformat"),i("zorder"),i("orientation",t.x&&!t.y?"h":"v"),i("base"),i("offset"),i("width"),i("text"),i("hovertext"),i("hovertemplate");var o=i("textposition");mye(e,t,n,i,o,{moduleHasSelected:!0,moduleHasUnselected:!0,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),qyt(e,t,i,r,n);var s=(t.marker.line||{}).color,l=Fyt.getComponentMethod("errorbars","supplyDefaults");l(e,t,s||vye.defaultLine,{axis:"y"}),l(e,t,s||vye.defaultLine,{axis:"x",inherit:"y"}),xT.coerceSelectionMarkerOpacity(t,i)}function Uyt(e,t){var r,n;function i(s,l){return xT.coerce(n._input,n,pye,s,l)}for(var a=0;a=0)return e}else if(typeof e=="string"&&(e=e.trim(),e.slice(-1)==="%"&&dye(e.slice(0,-1))&&(e=+e.slice(0,-1),e>=0)))return e+"%"}function mye(e,t,r,n,i,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,d=Array.isArray(i)||i==="auto",v=d||i==="inside",x=d||i==="outside";if(v||x){var b=NI(n,"textfont",r.font),p=xT.extendFlat({},b),C=e.textfont&&e.textfont.color,E=!C;if(E&&delete p.color,NI(n,"insidetextfont",p),h){var A=xT.extendFlat({},b);E&&delete A.color,NI(n,"pathbar.textfont",A)}x&&NI(n,"outsidetextfont",b),o&&n("selected.textfont.color"),s&&n("unselected.textfont.color"),l&&n("constraintext"),u&&n("cliponaxis"),c&&n("textangle"),n("texttemplate")}v&&f&&n("insidetextanchor")}yye.exports={supplyDefaults:Nyt,crossTraceDefaults:Uyt,handleText:mye,validateCornerradius:gye}});var wV=ye((jsr,_ye)=>{"use strict";var Vyt=qa(),Gyt=ho(),Hyt=Dr(),jyt=qI(),Wyt=r0().validateCornerradius;_ye.exports=function(e,t,r){function n(x,b){return Hyt.coerce(e,t,jyt,x,b)}for(var i=!1,a=!1,o=!1,s={},l=n("barmode"),u=l==="group",c=0;c0&&!s[h]&&(o=!0),s[h]=!0),f.visible&&f.type==="histogram"){var d=Gyt.getFromId({_fullLayout:t},f[f.orientation==="v"?"xaxis":"yaxis"]);d.type!=="category"&&(a=!0)}}if(!i){delete t.barmode;return}l!=="overlay"&&n("barnorm"),n("bargap",a&&!o?0:.2),n("bargroupgap");var v=n("barcornerradius");t.barcornerradius=Wyt(v)}});var v4=ye((Wsr,xye)=>{"use strict";var bT=Dr();xye.exports=function(t,r){for(var n=0;n{"use strict";var bye=ho(),wye=Rg(),Tye=Dv().hasColorscale,Aye=Fv(),Xyt=v4(),Zyt=z0();Sye.exports=function(t,r){var n=bye.getFromId(t,r.xaxis||"x"),i=bye.getFromId(t,r.yaxis||"y"),a,o,s,l,u,c,f={msUTC:!!(r.base||r.base===0)};r.orientation==="h"?(a=n.makeCalcdata(r,"x",f),s=i.makeCalcdata(r,"y"),l=wye(r,i,"y",s),u=!!r.yperiodalignment,c="y"):(a=i.makeCalcdata(r,"y",f),s=n.makeCalcdata(r,"x"),l=wye(r,n,"x",s),u=!!r.xperiodalignment,c="x"),o=l.vals;for(var h=Math.min(o.length,a.length),d=new Array(h),v=0;v{"use strict";var Yyt=Oa(),Kyt=Dr();function Jyt(e,t,r){var n=e._fullLayout,i=n["_"+r+"Text_minsize"];if(i){var a=n.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:i/l.fontSize;var u=Yyt.select(this).select("text");Kyt.setTransormAndDisplay(u,l)}})}}function $yt(e,t,r){if(r.uniformtext.mode){var n=Eye(e),i=r.uniformtext.minsize,a=t.scale*t.fontSize;t.hide=a{"use strict";var e1t=Eo(),t1t=cd(),kye=Dr().isArrayOrTypedArray;t2.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};t2.coerceNumber=function(e,t,r){if(e1t(t)){t=+t;var n=e.min,i=e.max,a=n!==void 0&&ti;if(!a)return t}return r!==void 0?r:e.dflt};t2.coerceColor=function(e,t,r){return t1t(t).isValid()?t:r!==void 0?r:e.dflt};t2.coerceEnumerated=function(e,t,r){return e.coerceNumber&&(t=+t),e.values.indexOf(t)!==-1?t:r!==void 0?r:e.dflt};t2.getValue=function(e,t){var r;return kye(e)?t{"use strict";var p4=Oa(),r1t=Ca(),g4=So(),Lye=Dr(),Pye=qa(),Iye=_v().resizeText,TV=Lm(),i1t=TV.textfont,n1t=TV.insidetextfont,a1t=TV.outsidetextfont,Qd=UI();function o1t(e){var t=p4.select(e).selectAll('g[class^="barlayer"]').selectAll("g.trace");Iye(e,t,"bar");var r=t.size(),n=e._fullLayout;t.style("opacity",function(i){return i[0].trace.opacity}).each(function(i){(n.barmode==="stack"&&r>1||n.bargap===0&&n.bargroupgap===0&&!i[0].trace.marker.line.width)&&p4.select(this).attr("shape-rendering","crispEdges")}),t.selectAll("g.points").each(function(i){var a=p4.select(this),o=i[0].trace;Rye(a,o,e)}),Pye.getComponentMethod("errorbars","style")(t)}function Rye(e,t,r){g4.pointStyle(e.selectAll("path"),t,r),Dye(e,t,r)}function Dye(e,t,r){e.selectAll("text").each(function(n){var i=p4.select(this),a=Lye.ensureUniformFontSize(r,Fye(i,n,t,r));g4.font(i,a)})}function s1t(e,t,r){var n=t[0].trace;n.selectedpoints?l1t(r,n,e):(Rye(r,n,e),Pye.getComponentMethod("errorbars","style")(r))}function l1t(e,t,r){g4.selectedPointStyle(e.selectAll("path"),t),u1t(e.selectAll("text"),t,r)}function u1t(e,t,r){e.each(function(n){var i=p4.select(this),a;if(n.selected){a=Lye.ensureUniformFontSize(r,Fye(i,n,t,r));var o=t.selected.textfont&&t.selected.textfont.color;o&&(a.color=o),g4.font(i,a)}else g4.selectedTextStyle(i,t)})}function Fye(e,t,r,n){var i=n._fullLayout.font,a=r.textfont;if(e.classed("bartext-inside")){var o=Bye(t,r);a=Oye(r,t.i,i,o)}else e.classed("bartext-outside")&&(a=qye(r,t.i,i));return a}function zye(e,t,r){return AV(i1t,e.textfont,t,r)}function Oye(e,t,r,n){var i=zye(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&&(i={color:r1t.contrast(n),family:i.family,size:i.size,weight:i.weight,style:i.style,variant:i.variant,textcase:i.textcase,lineposition:i.lineposition,shadow:i.shadow}),AV(n1t,e.insidetextfont,t,i)}function qye(e,t,r){var n=zye(e,t,r);return AV(a1t,e.outsidetextfont,t,n)}function AV(e,t,r,n){t=t||{};var i=Qd.getValue(t.family,r),a=Qd.getValue(t.size,r),o=Qd.getValue(t.color,r),s=Qd.getValue(t.weight,r),l=Qd.getValue(t.style,r),u=Qd.getValue(t.variant,r),c=Qd.getValue(t.textcase,r),f=Qd.getValue(t.lineposition,r),h=Qd.getValue(t.shadow,r);return{family:Qd.coerceString(e.family,i,n.family),size:Qd.coerceNumber(e.size,a,n.size),color:Qd.coerceColor(e.color,o,n.color),weight:Qd.coerceString(e.weight,s,n.weight),style:Qd.coerceString(e.style,l,n.style),variant:Qd.coerceString(e.variant,u,n.variant),textcase:Qd.coerceString(e.variant,c,n.textcase),lineposition:Qd.coerceString(e.variant,f,n.lineposition),shadow:Qd.coerceString(e.variant,h,n.shadow)}}function Bye(e,t){return t.type==="waterfall"?t[e.dir].marker.color:e.mcc||e.mc||t.marker.color}Nye.exports={style:o1t,styleTextPoints:Dye,styleOnSelect:s1t,getInsideTextFont:Oye,getOutsideTextFont:qye,getBarColor:Bye,resizeText:Iye}});var i2=ye((Jsr,Zye)=>{"use strict";var VI=Oa(),GI=Eo(),Fd=Dr(),c1t=iu(),f1t=Ca(),A_=So(),h1t=qa(),HI=ho().tickText,Uye=_v(),d1t=Uye.recordMinTextSize,v1t=Uye.clearMinTextSize,SV=N0(),wT=UI(),p1t=Qb(),Vye=Lm(),g1t=Vye.text,m1t=Vye.textposition,y1t=rp().appendArrayPointValue,Uv=p1t.TEXTPAD;function _1t(e){return e.id}function x1t(e){if(e.ids)return _1t}function MV(e){return(e>0)-(e<0)}function Pm(e,t){return e0}function w1t(e,t,r,n,i,a){var o=t.xaxis,s=t.yaxis,l=e._fullLayout,u=e._context.staticPlot;i||(i={mode:l.barmode,norm:l.barmode,gap:l.bargap,groupgap:l.bargroupgap},v1t("bar",l));var c=Fd.makeTraceGroups(n,r,"trace bars").each(function(f){var h=VI.select(this),d=f[0].trace,v=f[0].t,x=d.type==="waterfall",b=d.type==="funnel",p=d.type==="histogram",C=d.type==="bar",E=C||b,A=0;x&&d.connector.visible&&d.connector.mode==="between"&&(A=d.connector.line.width/2);var L=d.orientation==="h",_=Hye(i),k=Fd.ensureSingle(h,"g","points"),M=x1t(d),g=k.selectAll("g.point").data(Fd.identity,M);g.enter().append("g").classed("point",!0),g.exit().remove(),g.each(function(T,z){var O=VI.select(this),V=b1t(T,o,s,L),G=V[0][0],Z=V[0][1],H=V[1][0],N=V[1][1],j=(L?Z-G:N-H)===0;j&&E&&wT.getLineWidth(d,T)&&(j=!1),j||(j=!GI(G)||!GI(Z)||!GI(H)||!GI(N)),T.isBlank=j,j&&(L?Z=G:N=H),A&&!j&&(L?(G-=Pm(G,Z)*A,Z+=Pm(G,Z)*A):(H-=Pm(H,N)*A,N+=Pm(H,N)*A));var re,oe;if(d.type==="waterfall"){if(!j){var _e=d[T.dir].marker;re=_e.line.width,oe=_e.color}}else re=wT.getLineWidth(d,T),oe=T.mc||d.marker.color;function Me(Qe){var Et=VI.round(re/2%1,2);return i.gap===0&&i.groupgap===0?VI.round(Math.round(Qe)-Et,2):Qe}function ke(Qe,Et,er){return er&&Qe===Et?Qe:Math.abs(Qe-Et)>=2?Me(Qe):Qe>Et?Math.ceil(Qe):Math.floor(Qe)}var me=f1t.opacity(oe),ie=me<1||re>.01?Me:ke;e._context.staticPlot||(G=ie(G,Z,L),Z=ie(Z,G,L),H=ie(H,N,!L),N=ie(N,H,!L));var Se=L?o.c2p:s.c2p,Le;T.s0>0?Le=T._sMax:T.s0<0?Le=T._sMin:Le=T.s1>0?T._sMax:T._sMin;function Ae(Qe,Et){if(!Qe)return 0;var er=Math.abs(L?N-H:Z-G),Ut=Math.abs(L?Z-G:N-H),Ft=ie(Math.abs(Se(Le,!0)-Se(0,!0))),bt=T.hasB?Math.min(er/2,Ut/2):Math.min(er/2,Ft),yt;if(Et==="%"){var Yt=Math.min(50,Qe);yt=er*(Yt/100)}else yt=Qe;return ie(Math.max(Math.min(yt,bt),0))}var De=C||p?Ae(v.cornerradiusvalue,v.cornerradiusform):0,Pe,ge,Fe="M"+G+","+H+"V"+N+"H"+Z+"V"+H+"Z",ce=0;if(De&&T.s){var Ze=MV(T.s0)===0||MV(T.s)===MV(T.s0)?T.s1:T.s0;if(ce=ie(T.hasB?0:Math.abs(Se(Le,!0)-Se(Ze,!0))),ce0?Math.sqrt(ce*(2*De-ce)):0,Gt=ct>0?Math.max:Math.min;Pe="M"+G+","+H+"V"+(N-st*pt)+"H"+Gt(Z-(De-ce)*ct,G)+"A "+De+","+De+" 0 0 "+Wt+" "+Z+","+(N-De*pt-lt)+"V"+(H+De*pt+lt)+"A "+De+","+De+" 0 0 "+Wt+" "+Gt(Z-(De-ce)*ct,G)+","+(H+st*pt)+"Z"}else if(T.hasB)Pe="M"+(G+De*ct)+","+H+"A "+De+","+De+" 0 0 "+Wt+" "+G+","+(H+De*pt)+"V"+(N-De*pt)+"A "+De+","+De+" 0 0 "+Wt+" "+(G+De*ct)+","+N+"H"+(Z-De*ct)+"A "+De+","+De+" 0 0 "+Wt+" "+Z+","+(N-De*pt)+"V"+(H+De*pt)+"A "+De+","+De+" 0 0 "+Wt+" "+(Z-De*ct)+","+H+"Z";else{ge=Math.abs(N-H)+ce;var Nt=ge0?Math.sqrt(ce*(2*De-ce)):0,sr=pt>0?Math.max:Math.min;Pe="M"+(G+Nt*ct)+","+H+"V"+sr(N-(De-ce)*pt,H)+"A "+De+","+De+" 0 0 "+Wt+" "+(G+De*ct-$t)+","+N+"H"+(Z-De*ct+$t)+"A "+De+","+De+" 0 0 "+Wt+" "+(Z-Nt*ct)+","+sr(N-(De-ce)*pt,H)+"V"+H+"Z"}}else Pe=Fe}else Pe=Fe;var wr=Gye(Fd.ensureSingle(O,"path"),l,i,a);if(wr.style("vector-effect",u?"none":"non-scaling-stroke").attr("d",isNaN((Z-G)*(N-H))||j&&e._context.staticPlot?"M0,0Z":Pe).call(A_.setClipUrl,t.layerClipId,e),!l.uniformtext.mode&&_){var ur=A_.makePointStyleFns(d);A_.singlePointStyle(T,wr,d,ur,e)}T1t(e,t,O,f,z,G,Z,H,N,De,ce,i,a),t.layerClipId&&A_.hideOutsideRangePoint(T,O.select("text"),o,s,d.xcalendar,d.ycalendar)});var P=d.cliponaxis===!1;A_.setClipUrl(h,P?null:t.layerClipId,e)});h1t.getComponentMethod("errorbars","plot")(e,c,t,i)}function T1t(e,t,r,n,i,a,o,s,l,u,c,f,h){var d=t.xaxis,v=t.yaxis,x=e._fullLayout,b;function p(ge,Fe,ce){var Ze=Fd.ensureSingle(ge,"text").text(Fe).attr({class:"bartext bartext-"+b,"text-anchor":"middle","data-notex":1}).call(A_.font,ce).call(c1t.convertToTspans,e);return Ze}var C=n[0].trace,E=C.orientation==="h",A=M1t(x,n,i,d,v);b=E1t(C,i);var L=f.mode==="stack"||f.mode==="relative",_=n[i],k=!L||_._outmost,M=_.hasB,g=u&&u-c>Uv;if(!A||b==="none"||(_.isBlank||a===o||s===l)&&(b==="auto"||b==="inside")){r.select("text").remove();return}var P=x.font,T=SV.getBarColor(n[i],C),z=SV.getInsideTextFont(C,i,P,T),O=SV.getOutsideTextFont(C,i,P),V=C.insidetextanchor||"end",G=r.datum();E?d.type==="log"&&G.s0<=0&&(d.range[0]0&&Me>0,ie;g?M?ie=r2(N-2*u,j,_e,Me,E)||r2(N,j-2*u,_e,Me,E):E?ie=r2(N-(u-c),j,_e,Me,E)||r2(N,j-2*(u-c),_e,Me,E):ie=r2(N,j-(u-c),_e,Me,E)||r2(N-2*(u-c),j,_e,Me,E):ie=r2(N,j,_e,Me,E),me&&ie?b="inside":(b="outside",re.remove(),re=null)}else b="inside";if(!re){ke=Fd.ensureUniformFontSize(e,b==="outside"?O:z),re=p(r,A,ke);var Se=re.attr("transform");if(re.attr("transform",""),oe=A_.bBox(re.node()),_e=oe.width,Me=oe.height,re.attr("transform",Se),_e<=0||Me<=0){re.remove();return}}var Le=C.textangle,Ae,De;b==="outside"?(De=C.constraintext==="both"||C.constraintext==="outside",Ae=S1t(a,o,s,l,oe,{isHorizontal:E,constrained:De,angle:Le})):(De=C.constraintext==="both"||C.constraintext==="inside",Ae=Xye(a,o,s,l,oe,{isHorizontal:E,constrained:De,angle:Le,anchor:V,hasB:M,r:u,overhead:c})),Ae.fontSize=ke.size,d1t(C.type==="histogram"?"bar":C.type,Ae,x),_.transform=Ae;var Pe=Gye(re,x,f,h);Fd.setTransormAndDisplay(Pe,Ae)}function r2(e,t,r,n,i){if(e<0||t<0)return!1;var a=r<=e&&n<=t,o=r<=t&&n<=e,s=i?e>=r*(t/n):t>=n*(e/r);return a||o||s}function jye(e){return e==="auto"?0:e}function Wye(e,t){var r=Math.PI/180*t,n=Math.abs(Math.sin(r)),i=Math.abs(Math.cos(r));return{x:e.width*i+e.height*n,y:e.width*n+e.height*i}}function Xye(e,t,r,n,i,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,d=(h+1)/2,v=1-d,x=a.hasB,b=a.r,p=a.overhead,C=i.width,E=i.height,A=Math.abs(t-e),L=Math.abs(n-r),_=A>2*Uv&&L>2*Uv?Uv:0;A-=2*_,L-=2*_;var k=jye(l);l==="auto"&&!(C<=A&&E<=L)&&(C>A||E>L)&&(!(C>L||E>A)||CUv){var T=A1t(e,t,r,n,M,b,p,o,x);g=T.scale,P=T.pad}else g=1,s&&(g=Math.min(1,A/M.x,L/M.y)),P=0;var z=i.left*v+i.right*d,O=(i.top+i.bottom)/2,V=(e+Uv)*v+(t-Uv)*d,G=(r+n)/2,Z=0,H=0;if(f||c){var N=(o?M.x:M.y)/2;b&&(c||x)&&(_+=P);var j=o?Pm(e,t):Pm(r,n);o?f?(V=e+j*_,Z=-j*N):(V=t-j*_,Z=j*N):f?(G=r+j*_,H=-j*N):(G=n-j*_,H=j*N)}return{textX:z,textY:O,targetX:V,targetY:G,anchorX:Z,anchorY:H,scale:g,rotate:k}}function A1t(e,t,r,n,i,a,o,s,l){var u=Math.max(0,Math.abs(t-e)-2*Uv),c=Math.max(0,Math.abs(n-r)-2*Uv),f=a-Uv,h=o?f-Math.sqrt(f*f-(f-o)*(f-o)):f,d=l?f*2:s?f-o:2*h,v=l?f*2:s?2*h:f-o,x,b,p,C,E;return i.y/i.x>=c/(u-d)?C=c/i.y:i.y/i.x<=(c-v)/u?C=u/i.x:!l&&s?(x=i.x*i.x+i.y*i.y/4,b=-2*i.x*(u-f)-i.y*(c/2-f),p=(u-f)*(u-f)+(c/2-f)*(c/2-f)-f*f,C=(-b+Math.sqrt(b*b-4*x*p))/(2*x)):l?(x=(i.x*i.x+i.y*i.y)/4,b=-i.x*(u/2-f)-i.y*(c/2-f),p=(u/2-f)*(u/2-f)+(c/2-f)*(c/2-f)-f*f,C=(-b+Math.sqrt(b*b-4*x*p))/(2*x)):(x=i.x*i.x/4+i.y*i.y,b=-i.x*(u/2-f)-2*i.y*(c-f),p=(u/2-f)*(u/2-f)+(c-f)*(c-f)-f*f,C=(-b+Math.sqrt(b*b-4*x*p))/(2*x)),C=Math.min(1,C),s?E=Math.max(0,f-Math.sqrt(Math.max(0,f*f-(f-(c-i.y*C)/2)*(f-(c-i.y*C)/2)))-o):E=Math.max(0,f-Math.sqrt(Math.max(0,f*f-(f-(u-i.x*C)/2)*(f-(u-i.x*C)/2)))-o),{scale:C,pad:E}}function S1t(e,t,r,n,i,a){var o=!!a.isHorizontal,s=!!a.constrained,l=a.angle||0,u=i.width,c=i.height,f=Math.abs(t-e),h=Math.abs(n-r),d;o?d=h>2*Uv?Uv:0:d=f>2*Uv?Uv:0;var v=1;s&&(v=o?Math.min(1,h/c):Math.min(1,f/u));var x=jye(l),b=Wye(i,x),p=(o?b.x:b.y)/2,C=(i.left+i.right)/2,E=(i.top+i.bottom)/2,A=(e+t)/2,L=(r+n)/2,_=0,k=0,M=o?Pm(t,e):Pm(r,n);return o?(A=t-M*d,_=M*p):(L=n+M*d,k=-M*p),{textX:C,textY:E,targetX:A,targetY:L,anchorX:_,anchorY:k,scale:v,rotate:x}}function M1t(e,t,r,n,i){var a=t[0].trace,o=a.texttemplate,s;return o?s=C1t(e,t,r,n,i):a.textinfo?s=k1t(t,r,n,i):s=wT.getValue(a.text,r),wT.coerceString(g1t,s)}function E1t(e,t){var r=wT.getValue(e.textposition,t);return wT.coerceEnumerated(m1t,r)}function C1t(e,t,r,n,i){var a=t[0].trace,o=Fd.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,d,v;c?(f="y",h=i,d="x",v=n):(f="x",h=n,d="y",v=i);function x(_){return HI(h,h.c2l(_),!0).text}function b(_){return HI(v,v.c2l(_),!0).text}var p=t[r],C={};C.label=p.p,C.labelLabel=C[f+"Label"]=x(p.p);var E=Fd.castOption(a,p.i,"text");(E===0||E)&&(C.text=E),C.value=p.s,C.valueLabel=C[d+"Label"]=b(p.s);var A={};y1t(A,a,p.i),(s||A.x===void 0)&&(A.x=c?C.value:C.label),(s||A.y===void 0)&&(A.y=c?C.label:C.value),(s||A.xLabel===void 0)&&(A.xLabel=c?C.valueLabel:C.labelLabel),(s||A.yLabel===void 0)&&(A.yLabel=c?C.labelLabel:C.valueLabel),l&&(C.delta=+p.rawS||p.s,C.deltaLabel=b(C.delta),C.final=p.v,C.finalLabel=b(C.final),C.initial=C.final-C.delta,C.initialLabel=b(C.initial)),u&&(C.value=p.s,C.valueLabel=b(C.value),C.percentInitial=p.begR,C.percentInitialLabel=Fd.formatPercent(p.begR),C.percentPrevious=p.difR,C.percentPreviousLabel=Fd.formatPercent(p.difR),C.percentTotal=p.sumR,C.percenTotalLabel=Fd.formatPercent(p.sumR));var L=Fd.castOption(a,p.i,"customdata");return L&&(C.customdata=L),Fd.texttemplateString(o,C,e._d3locale,A,C,a._meta||{})}function k1t(e,t,r,n){var i=e[0].trace,a=i.orientation==="h",o=i.type==="waterfall",s=i.type==="funnel";function l(L){var _=a?n:r;return HI(_,L,!0).text}function u(L){var _=a?r:n;return HI(_,+L,!0).text}var c=i.textinfo,f=e[t],h=c.split("+"),d=[],v,x=function(L){return h.indexOf(L)!==-1};if(x("label")&&d.push(l(e[t].p)),x("text")&&(v=Fd.castOption(i,f.i,"text"),(v===0||v)&&d.push(v)),o){var b=+f.rawS||f.s,p=f.v,C=p-b;x("initial")&&d.push(u(C)),x("delta")&&d.push(u(b)),x("final")&&d.push(u(p))}if(s){x("value")&&d.push(u(f.s));var E=0;x("percent initial")&&E++,x("percent previous")&&E++,x("percent total")&&E++;var A=E>1;x("percent initial")&&(v=Fd.formatPercent(f.begR),A&&(v+=" of initial"),d.push(v)),x("percent previous")&&(v=Fd.formatPercent(f.difR),A&&(v+=" of previous"),d.push(v)),x("percent total")&&(v=Fd.formatPercent(f.sumR),A&&(v+=" of total"),d.push(v))}return d.join("
")}Zye.exports={plot:w1t,toMoveInsideBar:Xye}});var TT=ye(($sr,$ye)=>{"use strict";var m4=vf(),L1t=qa(),Yye=Ca(),P1t=Dr().fillText,I1t=UI().getLineWidth,EV=ho().hoverLabelText,R1t=hs().BADNUM;function D1t(e,t,r,n,i){var a=Kye(e,t,r,n,i);if(a){var o=a.cd,s=o[0].trace,l=o[a.index];return a.color=Jye(s,l),L1t.getComponentMethod("errorbars","hoverInfo")(l,s,a),[a]}}function Kye(e,t,r,n,i){var a=e.cd,o=a[0].trace,s=a[0].t,l=n==="closest",u=o.type==="waterfall",c=e.maxHoverDistance,f=e.maxSpikeDistance,h,d,v,x,b,p,C;o.orientation==="h"?(h=r,d=t,v="y",x="x",b=G,p=z):(h=t,d=r,v="x",x="y",p=G,b=z);var E=o[v+"period"],A=l||E;function L(ie){return k(ie,-1)}function _(ie){return k(ie,1)}function k(ie,Se){var Le=ie.w;return ie[v]+Se*Le/2}function M(ie){return ie[v+"End"]-ie[v+"Start"]}var g=l?L:E?function(ie){return ie.p-M(ie)/2}:function(ie){return Math.min(L(ie),ie.p-s.bardelta/2)},P=l?_:E?function(ie){return ie.p+M(ie)/2}:function(ie){return Math.max(_(ie),ie.p+s.bardelta/2)};function T(ie,Se,Le){return i.finiteRange&&(Le=0),m4.inbox(ie-h,Se-h,Le+Math.min(1,Math.abs(Se-ie)/C)-1)}function z(ie){return T(g(ie),P(ie),c)}function O(ie){return T(L(ie),_(ie),f)}function V(ie){var Se=ie[x];if(u){var Le=Math.abs(ie.rawS)||0;d>0?Se+=Le:d<0&&(Se-=Le)}return Se}function G(ie){var Se=d,Le=ie.b,Ae=V(ie);return m4.inbox(Le-Se,Ae-Se,c+(Ae-Se)/(Ae-Le)-1)}function Z(ie){var Se=d,Le=ie.b,Ae=V(ie);return m4.inbox(Le-Se,Ae-Se,f+(Ae-Se)/(Ae-Le)-1)}var H=e[v+"a"],N=e[x+"a"];C=Math.abs(H.r2c(H.range[1])-H.r2c(H.range[0]));function j(ie){return(b(ie)+p(ie))/2}var re=m4.getDistanceFunction(n,b,p,j);if(m4.getClosest(a,re,e),e.index!==!1&&a[e.index].p!==R1t){A||(g=function(ie){return Math.min(L(ie),ie.p-s.bargroupwidth/2)},P=function(ie){return Math.max(_(ie),ie.p+s.bargroupwidth/2)});var oe=e.index,_e=a[oe],Me=o.base?_e.b+_e.s:_e.s;e[x+"0"]=e[x+"1"]=N.c2p(_e[x],!0),e[x+"LabelVal"]=Me;var ke=s.extents[s.extents.round(_e.p)];e[v+"0"]=H.c2p(l?g(_e):ke[0],!0),e[v+"1"]=H.c2p(l?P(_e):ke[1],!0);var me=_e.orig_p!==void 0;return e[v+"LabelVal"]=me?_e.orig_p:_e.p,e.labelLabel=EV(H,e[v+"LabelVal"],o[v+"hoverformat"]),e.valueLabel=EV(N,e[x+"LabelVal"],o[x+"hoverformat"]),e.baseLabel=EV(N,_e.b,o[x+"hoverformat"]),e.spikeDistance=(Z(_e)+O(_e))/2,e[v+"Spike"]=H.c2p(_e.p,!0),P1t(_e,o,e),e.hovertemplate=o.hovertemplate,e}}function Jye(e,t){var r=t.mcc||e.marker.color,n=t.mlcc||e.marker.line.color,i=I1t(e,t);if(Yye.opacity(r))return r;if(Yye.opacity(n)&&i)return n}$ye.exports={hoverPoints:D1t,hoverOnBars:Kye,getTraceColor:Jye}});var e1e=ye((Qsr,Qye)=>{"use strict";Qye.exports=function(t,r,n){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),n.orientation==="h"?(t.label=t.y,t.value=t.x):(t.label=t.x,t.value=t.y),t}});var AT=ye((elr,t1e)=>{"use strict";t1e.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=n[0].trace,s=o.type==="funnel",l=o.orientation==="h",u=[],c;if(r===!1)for(c=0;c{"use strict";r1e.exports={attributes:Lm(),layoutAttributes:qI(),supplyDefaults:r0().supplyDefaults,crossTraceDefaults:r0().crossTraceDefaults,supplyLayoutDefaults:wV(),calc:Mye(),crossTraceCalc:Hb().crossTraceCalc,colorbar:$d(),arraysToCalcdata:v4(),plot:i2().plot,style:N0().style,styleOnSelect:N0().styleOnSelect,hoverPoints:TT().hoverPoints,eventData:e1e(),selectPoints:AT(),moduleType:"trace",name:"bar",basePlotModule:vh(),categories:["bar-like","cartesian","svg","bar","oriented","errorBarsOK","showLegend","zoomScale"],animatable:!0,meta:{}}});var a1e=ye((rlr,n1e)=>{"use strict";n1e.exports=i1e()});var y4=ye((ilr,u1e)=>{"use strict";var z1t=Eg(),U0=pf(),o1e=Lm(),O1t=Eh(),s1e=df().axisHoverFormat,q1t=Qo().hovertemplateAttrs,Fy=Ao().extendFlat,ST=U0.marker,l1e=ST.line;u1e.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:U0.xperiod,yperiod:U0.yperiod,xperiod0:U0.xperiod0,yperiod0:U0.yperiod0,xperiodalignment:U0.xperiodalignment,yperiodalignment:U0.yperiodalignment,xhoverformat:s1e("x"),yhoverformat:s1e("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:Fy({},ST.symbol,{arrayOk:!1,editType:"plot"}),opacity:Fy({},ST.opacity,{arrayOk:!1,dflt:1,editType:"style"}),angle:Fy({},ST.angle,{arrayOk:!1,editType:"calc"}),size:Fy({},ST.size,{arrayOk:!1,editType:"calc"}),color:Fy({},ST.color,{arrayOk:!1,editType:"style"}),line:{color:Fy({},l1e.color,{arrayOk:!1,dflt:O1t.defaultLine,editType:"style"}),width:Fy({},l1e.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:z1t(),whiskerwidth:{valType:"number",min:0,max:1,dflt:.5,editType:"calc"},showwhiskers:{valType:"boolean",editType:"calc"},offsetgroup:o1e.offsetgroup,alignmentgroup:o1e.alignmentgroup,selected:{marker:U0.selected.marker,editType:"style"},unselected:{marker:U0.unselected.marker,editType:"style"},text:Fy({},U0.text,{}),hovertext:Fy({},U0.hovertext,{}),hovertemplate:q1t({}),hoveron:{valType:"flaglist",flags:["boxes","points"],dflt:"boxes+points",editType:"style"},zorder:U0.zorder}});var _4=ye((nlr,c1e)=>{"use strict";c1e.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 b4=ye((alr,v1e)=>{"use strict";var V0=Dr(),B1t=qa(),N1t=Ca(),U1t=Pg(),V1t=Gb(),f1e=L3(),x4=y4();function G1t(e,t,r,n){function i(v,x){return V0.coerce(e,t,x4,v,x)}if(h1e(e,t,i,n),t.visible!==!1){U1t(e,t,n,i),i("xhoverformat"),i("yhoverformat");var a=t._hasPreCompStats;a&&(i("lowerfence"),i("upperfence")),i("line.color",(e.marker||{}).color||r),i("line.width"),i("fillcolor",N1t.addOpacity(t.line.color,.5));var o=!1;if(a){var s=i("mean"),l=i("sd");s&&s.length&&(o=!0,l&&l.length&&(o="sd"))}i("whiskerwidth");var u=i("sizemode"),c;u==="quartiles"&&(c=i("boxmean",o)),i("showwhiskers",u==="quartiles"),(u==="sd"||c==="sd")&&i("sdmultiple"),i("width"),i("quartilemethod");var f=!1;if(a){var h=i("notchspan");h&&h.length&&(f=!0)}else V0.validate(e.notchwidth,x4.notchwidth)&&(f=!0);var d=i("notched",f);d&&i("notchwidth"),d1e(e,t,i,{prefix:"box"}),i("zorder")}}function h1e(e,t,r,n){function i(P){var T=0;return P&&P.length&&(T+=1,V0.isArrayOrTypedArray(P[0])&&P[0].length&&(T+=1)),T}function a(P){return V0.validate(e[P],x4[P])}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(V0.minRowLength(u),V0.minRowLength(c),V0.minRowLength(f))}var h=i(o),d=i(s),v=h&&V0.minRowLength(o),x=d&&V0.minRowLength(s),b=n.calendar,p={autotypenumbers:n.autotypenumbers},C,E;if(t._hasPreCompStats)switch(String(d)+String(h)){case"00":var A=a("x0")||a("dx"),L=a("y0")||a("dy");L&&!A?C="h":C="v",E=l;break;case"10":C="v",E=Math.min(l,x);break;case"20":C="h",E=Math.min(l,s.length);break;case"01":C="h",E=Math.min(l,v);break;case"02":C="v",E=Math.min(l,o.length);break;case"12":C="v",E=Math.min(l,x,o.length);break;case"21":C="h",E=Math.min(l,s.length,v);break;case"11":E=0;break;case"22":var _=!1,k;for(k=0;k0?(C="v",d>0?E=Math.min(x,v):E=Math.min(v)):d>0?(C="h",E=Math.min(x)):E=0;if(!E){t.visible=!1;return}t._length=E;var M=r("orientation",C);t._hasPreCompStats?M==="v"&&d===0?(r("x0",0),r("dx",1)):M==="h"&&h===0&&(r("y0",0),r("dy",1)):M==="v"&&d===0?r("x0"):M==="h"&&h===0&&r("y0");var g=B1t.getComponentMethod("calendars","handleTraceDefaults");g(e,t,["x","y"],n)}function d1e(e,t,r,n){var i=n.prefix,a=V0.coerce2(e,t,x4,"marker.outliercolor"),o=r("marker.line.outliercolor"),s="outliers";t._hasPreCompStats?s="all":(a||o)&&(s="suspectedoutliers");var l=r(i+"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"),V0.coerceSelectionMarkerOpacity(t,r)}function H1t(e,t){var r,n;function i(l){return V0.coerce(n._input,n,x4,l)}for(var a=0;a{"use strict";var j1t=qa(),W1t=Dr(),X1t=_4();function p1e(e,t,r,n,i){for(var a=i+"Layout",o=!1,s=0;s{"use strict";var kV=Eo(),WI=ho(),Y1t=Rg(),ph=Dr(),i0=hs().BADNUM,zy=ph._;S1e.exports=function(t,r){var n=t._fullLayout,i=WI.getFromId(t,r.xaxis||"x"),a=WI.getFromId(t,r.yaxis||"y"),o=[],s=r.type==="violin"?"_numViolins":"_numBoxes",l,u,c,f,h,d,v;r.orientation==="h"?(c=i,f="x",h=a,d="y",v=!!r.yperiodalignment):(c=a,f="y",h=i,d="x",v=!!r.xperiodalignment);var x=K1t(r,d,h,n[s]),b=x[0],p=x[1],C=ph.distinctVals(b,h),E=C.vals,A=C.minDiff/2,L,_,k,M,g,P,T=(r.boxpoints||r.points)==="all"?ph.identity:function(Wt){return Wt.vL.uf};if(r._hasPreCompStats){var z=r[f],O=function(Wt){return c.d2c((r[Wt]||[])[l])},V=1/0,G=-1/0;for(l=0;l=L.q1&&L.q3>=L.med){var H=O("lowerfence");L.lf=H!==i0&&H<=L.q1?H:x1e(L,k,M);var N=O("upperfence");L.uf=N!==i0&&N>=L.q3?N:b1e(L,k,M);var j=O("mean");L.mean=j!==i0?j:M?ph.mean(k,M):(L.q1+L.q3)/2;var re=O("sd");L.sd=j!==i0&&re>=0?re:M?ph.stdev(k,M,L.mean):L.q3-L.q1,L.lo=w1e(L),L.uo=T1e(L);var oe=O("notchspan");oe=oe!==i0&&oe>0?oe:A1e(L,M),L.ln=L.med-oe,L.un=L.med+oe;var _e=L.lf,Me=L.uf;r.boxpoints&&k.length&&(_e=Math.min(_e,k[0]),Me=Math.max(Me,k[M-1])),r.notched&&(_e=Math.min(_e,L.ln),Me=Math.max(Me,L.un)),L.min=_e,L.max=Me}else{ph.warn(["Invalid input - make sure that q1 <= median <= q3","q1 = "+L.q1,"median = "+L.med,"q3 = "+L.q3].join(` +`));var ke;L.med!==i0?ke=L.med:L.q1!==i0?L.q3!==i0?ke=(L.q1+L.q3)/2:ke=L.q1:L.q3!==i0?ke=L.q3:ke=0,L.med=ke,L.q1=L.q3=ke,L.lf=L.uf=ke,L.mean=L.sd=ke,L.ln=L.un=ke,L.min=L.max=ke}V=Math.min(V,L.min),G=Math.max(G,L.max),L.pts2=_.filter(T),o.push(L)}}r._extremes[c._id]=WI.findExtremes(c,[V,G],{padded:!0})}else{var me=c.makeCalcdata(r,f),ie=J1t(E,A),Se=E.length,Le=$1t(Se);for(l=0;l=0&&Ae0){if(L={},L.pos=L[d]=E[l],_=L.pts=Le[l].sort(y1e),k=L[f]=_.map(_1e),M=k.length,L.min=k[0],L.max=k[M-1],L.mean=ph.mean(k,M),L.sd=ph.stdev(k,M,L.mean)*r.sdmultiple,L.med=ph.interp(k,.5),M%2&&(Fe||ce)){var Ze,ct;Fe?(Ze=k.slice(0,M/2),ct=k.slice(M/2+1)):ce&&(Ze=k.slice(0,M/2+1),ct=k.slice(M/2)),L.q1=ph.interp(Ze,.5),L.q3=ph.interp(ct,.5)}else L.q1=ph.interp(k,.25),L.q3=ph.interp(k,.75);L.lf=x1e(L,k,M),L.uf=b1e(L,k,M),L.lo=w1e(L),L.uo=T1e(L);var pt=A1e(L,M);L.ln=L.med-pt,L.un=L.med+pt,De=Math.min(De,L.ln),Pe=Math.max(Pe,L.un),L.pts2=_.filter(T),o.push(L)}r.notched&&ph.isTypedArray(me)&&(me=Array.from(me)),r._extremes[c._id]=WI.findExtremes(c,r.notched?me.concat([De,Pe]):me,{padded:!0})}return Q1t(o,r),o.length>0?(o[0].t={num:n[s],dPos:A,posLetter:d,valLetter:f,labels:{med:zy(t,"median:"),min:zy(t,"min:"),q1:zy(t,"q1:"),q3:zy(t,"q3:"),max:zy(t,"max:"),mean:r.boxmean==="sd"||r.sizemode==="sd"?zy(t,"mean \xB1 \u03C3:").replace("\u03C3",r.sdmultiple===1?"\u03C3":r.sdmultiple+"\u03C3"):zy(t,"mean:"),lf:zy(t,"lower fence:"),uf:zy(t,"upper fence:")}},n[s]++,o):[{t:{empty:!0}}]};function K1t(e,t,r,n){var i=t in e,a=t+"0"in e,o="d"+t in e;if(i||a&&o){var s=r.makeCalcdata(e,t),l=Y1t(e,r,t,s).vals;return[l,s]}var u;a?u=e[t+"0"]:"name"in e&&(r.type==="category"||kV(e.name)&&["linear","log"].indexOf(r.type)!==-1||ph.isDateTime(e.name)&&r.type==="date")?u=e.name:u=n;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),d=0;d{"use strict";var M1e=ho(),e_t=Dr(),t_t=Bb().getAxisGroup,E1e=["v","h"];function r_t(e,t){for(var r=e.calcdata,n=t.xaxis,i=t.yaxis,a=0;a1,C=1-a[e+"gap"],E=1-a[e+"groupgap"];for(l=0;l0;if(k==="positive"?(N=M*(_?1:.5),oe=re,j=oe=P):k==="negative"?(N=oe=P,j=M*(_?1:.5),_e=re):(N=j=M,oe=_e=re),Le){var Ae=A.pointpos,De=A.jitter,Pe=A.marker.size/2,ge=0;Ae+De>=0&&(ge=re*(Ae+De),ge>N?(Se=!0,me=Pe,Me=ge):ge>oe&&(me=Pe,Me=N)),ge<=N&&(Me=N);var Fe=0;Ae-De<=0&&(Fe=-re*(Ae-De),Fe>j?(Se=!0,ie=Pe,ke=Fe):Fe>_e&&(ie=Pe,ke=j)),Fe<=j&&(ke=j)}else Me=N,ke=j;var ce=new Array(c.length);for(u=0;u{"use strict";var MT=Oa(),n2=Dr(),i_t=So(),L1e=5,n_t=.01;function a_t(e,t,r,n){var i=e._context.staticPlot,a=t.xaxis,o=t.yaxis;n2.makeTraceGroups(n,r,"trace boxes").each(function(s){var l=MT.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,d;f.orientation==="h"?(h=o,d=a):(h=a,d=o),P1e(l,{pos:h,val:d},f,c,i),I1e(l,{x:a,y:o},f,c),R1e(l,{pos:h,val:d},f,c)})}function P1e(e,t,r,n,i){var a=r.orientation==="h",o=t.val,s=t.pos,l=!!s.rangebreaks,u=n.bPos,c=n.wdPos||0,f=n.bPosPxOffset||0,h=r.whiskerwidth||0,d=r.showwhiskers!==!1,v=r.notched||!1,x=v?1-2*r.notchwidth:1,b,p;Array.isArray(n.bdPos)?(b=n.bdPos[0],p=n.bdPos[1]):(b=n.bdPos,p=n.bdPos);var C=e.selectAll("path.box").data(r.type!=="violin"||r.box.visible?n2.identity:[]);C.enter().append("path").style("vector-effect",i?"none":"non-scaling-stroke").attr("class","box"),C.exit().remove(),C.each(function(E){if(E.empty)return MT.select(this).attr("d","M0,0Z");var A=s.c2l(E.pos+u,!0),L=s.l2p(A-b)+f,_=s.l2p(A+p)+f,k=l?(L+_)/2:s.l2p(A)+f,M=r.whiskerwidth,g=l?L*M+(1-M)*k:s.l2p(A-c)+f,P=l?_*M+(1-M)*k:s.l2p(A+c)+f,T=s.l2p(A-b*x)+f,z=s.l2p(A+p*x)+f,O=r.sizemode==="sd",V=o.c2p(O?E.mean-E.sd:E.q1,!0),G=O?o.c2p(E.mean+E.sd,!0):o.c2p(E.q3,!0),Z=n2.constrain(O?o.c2p(E.mean,!0):o.c2p(E.med,!0),Math.min(V,G)+1,Math.max(V,G)-1),H=E.lf===void 0||r.boxpoints===!1||O,N=o.c2p(H?E.min:E.lf,!0),j=o.c2p(H?E.max:E.uf,!0),re=o.c2p(E.ln,!0),oe=o.c2p(E.un,!0);a?MT.select(this).attr("d","M"+Z+","+T+"V"+z+"M"+V+","+L+"V"+_+(v?"H"+re+"L"+Z+","+z+"L"+oe+","+_:"")+"H"+G+"V"+L+(v?"H"+oe+"L"+Z+","+T+"L"+re+","+L:"")+"Z"+(d?"M"+V+","+k+"H"+N+"M"+G+","+k+"H"+j+(h===0?"":"M"+N+","+g+"V"+P+"M"+j+","+g+"V"+P):"")):MT.select(this).attr("d","M"+T+","+Z+"H"+z+"M"+L+","+V+"H"+_+(v?"V"+re+"L"+z+","+Z+"L"+_+","+oe:"")+"V"+G+"H"+L+(v?"V"+oe+"L"+T+","+Z+"L"+L+","+re:"")+"Z"+(d?"M"+k+","+V+"V"+N+"M"+k+","+G+"V"+j+(h===0?"":"M"+g+","+N+"H"+P+"M"+g+","+j+"H"+P):""))})}function I1e(e,t,r,n){var i=t.x,a=t.y,o=n.bdPos,s=n.bPos,l=r.boxpoints||r.points;n2.seedPseudoRandom();var u=function(h){return h.forEach(function(d){d.t=n,d.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 d,v=h.pts2,x=Math.max((h.max-h.min)/10,h.q3-h.q1),b=x*1e-9,p=x*n_t,C=[],E=0,A;if(r.jitter){if(x===0)for(E=1,C=new Array(v.length),d=0;dh.lo&&(P.so=!0)}return v});f.enter().append("path").classed("point",!0),f.exit().remove(),f.call(i_t.translatePoints,i,a)}function R1e(e,t,r,n){var i=t.val,a=t.pos,o=!!a.rangebreaks,s=n.bPos,l=n.bPosPxOffset||0,u=r.boxmean||(r.meanline||{}).visible,c,f;Array.isArray(n.bdPos)?(c=n.bdPos[0],f=n.bdPos[1]):(c=n.bdPos,f=n.bdPos);var h=e.selectAll("path.mean").data(r.type==="box"&&r.boxmean||r.type==="violin"&&r.box.visible&&r.meanline.visible?n2.identity:[]);h.enter().append("path").attr("class","mean").style({fill:"none","vector-effect":"non-scaling-stroke"}),h.exit().remove(),h.each(function(d){var v=a.c2l(d.pos+s,!0),x=a.l2p(v-c)+l,b=a.l2p(v+f)+l,p=o?(x+b)/2:a.l2p(v)+l,C=i.c2p(d.mean,!0),E=i.c2p(d.mean-d.sd,!0),A=i.c2p(d.mean+d.sd,!0);r.orientation==="h"?MT.select(this).attr("d","M"+C+","+x+"V"+b+(u==="sd"?"m0,0L"+E+","+p+"L"+C+","+x+"L"+A+","+p+"Z":"")):MT.select(this).attr("d","M"+x+","+C+"H"+b+(u==="sd"?"m0,0L"+p+","+E+"L"+x+","+C+"L"+p+","+A+"Z":""))})}D1e.exports={plot:a_t,plotBoxAndWhiskers:P1e,plotPoints:I1e,plotBoxMean:R1e}});var YI=ye((clr,F1e)=>{"use strict";var PV=Oa(),IV=Ca(),RV=So();function o_t(e,t,r){var n=r||PV.select(e).selectAll("g.trace.boxes");n.style("opacity",function(i){return i[0].trace.opacity}),n.each(function(i){var a=PV.select(this),o=i[0].trace,s=o.line.width;function l(f,h,d,v){f.style("stroke-width",h+"px").call(IV.stroke,d).call(IV.fill,v)}var u=a.selectAll("path.box");if(o.type==="candlestick")u.each(function(f){if(!f.empty){var h=PV.select(this),d=o[f.dir];l(h,d.line.width,d.line.color,d.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(IV.stroke,o.line.color);var c=a.selectAll("path.point");RV.pointStyle(c,o,e)}})}function s_t(e,t,r){var n=t[0].trace,i=r.selectAll("path.point");n.selectedpoints?RV.selectedPointStyle(i,n):RV.pointStyle(i,n,e)}F1e.exports={style:o_t,styleOnSelect:s_t}});var FV=ye((flr,B1e)=>{"use strict";var l_t=ho(),DV=Dr(),S_=vf(),z1e=Ca(),u_t=DV.fillText;function c_t(e,t,r,n){var i=e.cd,a=i[0].trace,o=a.hoveron,s=[],l;return o.indexOf("boxes")!==-1&&(s=s.concat(O1e(e,t,r,n))),o.indexOf("points")!==-1&&(l=q1e(e,t,r)),n==="closest"?l?[l]:s:(l&&s.push(l),s)}function O1e(e,t,r,n){var i=e.cd,a=e.xa,o=e.ya,s=i[0].trace,l=i[0].t,u=s.type==="violin",c,f,h,d,v,x,b,p,C,E,A,L=l.bdPos,_,k,M=l.wHover,g=function(Pe){return h.c2l(Pe.pos)+l.bPos-h.c2l(x)};u&&s.side!=="both"?(s.side==="positive"&&(C=function(Pe){var ge=g(Pe);return S_.inbox(ge,ge+M,E)},_=L,k=0),s.side==="negative"&&(C=function(Pe){var ge=g(Pe);return S_.inbox(ge-M,ge,E)},_=0,k=L)):(C=function(Pe){var ge=g(Pe);return S_.inbox(ge-M,ge+M,E)},_=k=L);var P;u?P=function(Pe){return S_.inbox(Pe.span[0]-v,Pe.span[1]-v,E)}:P=function(Pe){return S_.inbox(Pe.min-v,Pe.max-v,E)},s.orientation==="h"?(v=t,x=r,b=P,p=C,c="y",h=o,f="x",d=a):(v=r,x=t,b=C,p=P,c="x",h=a,f="y",d=o);var T=Math.min(1,L/Math.abs(h.r2c(h.range[1])-h.r2c(h.range[0])));E=e.maxHoverDistance-T,A=e.maxSpikeDistance-T;function z(Pe){return(b(Pe)+p(Pe))/2}var O=S_.getDistanceFunction(n,b,p,z);if(S_.getClosest(i,O,e),e.index===!1)return[];var V=i[e.index],G=s.line.color,Z=(s.marker||{}).color;z1e.opacity(G)&&s.line.width?e.color=G:z1e.opacity(Z)&&s.boxpoints?e.color=Z:e.color=s.fillcolor,e[c+"0"]=h.c2p(V.pos+l.bPos-k,!0),e[c+"1"]=h.c2p(V.pos+l.bPos+_,!0),e[c+"LabelVal"]=V.orig_p!==void 0?V.orig_p:V.pos;var H=c+"Spike";e.spikeDistance=z(V)*A/E,e[H]=h.c2p(V.pos,!0);var N=s.boxmean||s.sizemode==="sd"||(s.meanline||{}).visible,j=s.boxpoints||s.points,re=j&&N?["max","uf","q3","med","mean","q1","lf","min"]:j&&!N?["max","uf","q3","med","q1","lf","min"]:!j&&N?["max","q3","med","mean","q1","min"]:["max","q3","med","q1","min"],oe=d.range[1]{"use strict";N1e.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 zV=ye((dlr,V1e)=>{"use strict";V1e.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s,l;if(r===!1)for(s=0;s{"use strict";G1e.exports={attributes:y4(),layoutAttributes:_4(),supplyDefaults:b4().supplyDefaults,crossTraceDefaults:b4().crossTraceDefaults,supplyLayoutDefaults:jI().supplyLayoutDefaults,calc:LV(),crossTraceCalc:XI().crossTraceCalc,plot:ZI().plot,style:YI().style,styleOnSelect:YI().styleOnSelect,hoverPoints:FV().hoverPoints,eventData:U1e(),selectPoints:zV(),moduleType:"trace",name:"box",basePlotModule:vh(),categories:["cartesian","svg","symbols","oriented","box-violin","showLegend","boxLayout","zoomScale"],meta:{}}});var W1e=ye((plr,j1e)=>{"use strict";j1e.exports=H1e()});var ET=ye((glr,X1e)=>{"use strict";var n0=pf(),f_t=Vl(),h_t=ec(),OV=df().axisHoverFormat,d_t=Qo().hovertemplateAttrs,v_t=Qo().texttemplateAttrs,p_t=Tu(),Lp=Ao().extendFlat;X1e.exports=Lp({z:{valType:"data_array",editType:"calc"},x:Lp({},n0.x,{impliedEdits:{xtype:"array"}}),x0:Lp({},n0.x0,{impliedEdits:{xtype:"scaled"}}),dx:Lp({},n0.dx,{impliedEdits:{xtype:"scaled"}}),y:Lp({},n0.y,{impliedEdits:{ytype:"array"}}),y0:Lp({},n0.y0,{impliedEdits:{ytype:"scaled"}}),dy:Lp({},n0.dy,{impliedEdits:{ytype:"scaled"}}),xperiod:Lp({},n0.xperiod,{impliedEdits:{xtype:"scaled"}}),yperiod:Lp({},n0.yperiod,{impliedEdits:{ytype:"scaled"}}),xperiod0:Lp({},n0.xperiod0,{impliedEdits:{xtype:"scaled"}}),yperiod0:Lp({},n0.yperiod0,{impliedEdits:{ytype:"scaled"}}),xperiodalignment:Lp({},n0.xperiodalignment,{impliedEdits:{xtype:"scaled"}}),yperiodalignment:Lp({},n0.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:OV("x"),yhoverformat:OV("y"),zhoverformat:OV("z",1),hovertemplate:d_t(),texttemplate:v_t({arrayOk:!1,editType:"plot"},{keys:["x","y","z","text"]}),textfont:h_t({editType:"plot",autoSize:!0,autoColor:!0,colorEditType:"style"}),showlegend:Lp({},f_t.showlegend,{dflt:!1}),zorder:n0.zorder},p_t("",{cLetter:"z",autoColorDflt:!1}))});var JI=ye((mlr,Y1e)=>{"use strict";var g_t=Eo(),KI=Dr(),m_t=qa();Y1e.exports=function(t,r,n,i,a,o){var s=n("z");a=a||"x",o=o||"y";var l,u;if(s===void 0||!s.length)return 0;if(KI.isArray1D(s)){l=n(a),u=n(o);var c=KI.minRowLength(l),f=KI.minRowLength(u);if(c===0||f===0)return 0;r._length=Math.min(c,f,s.length)}else{if(l=Z1e(a,n),u=Z1e(o,n),!y_t(s))return 0;n("transpose"),r._length=null}var h=m_t.getComponentMethod("calendars","handleTraceDefaults");return h(t,r,[a,o],i),!0};function Z1e(e,t){var r=t(e),n=r?t(e+"type","array"):"scaled";return n==="scaled"&&(t(e+"0"),t("d"+e)),r}function y_t(e){for(var t=!0,r=!1,n=!1,i,a=0;a0&&(r=!0);for(var o=0;o{"use strict";var K1e=Dr();J1e.exports=function(t,r){t("texttemplate");var n=K1e.extendFlat({},r.font,{color:"auto",size:"auto"});K1e.coerceFont(t,"textfont",n)}});var qV=ye((_lr,$1e)=>{"use strict";$1e.exports=function(t,r,n){var i=n("zsmooth");i===!1&&(n("xgap"),n("ygap")),n("zhoverformat")}});var t_e=ye((xlr,e_e)=>{"use strict";var Q1e=Dr(),__t=JI(),x_t=w4(),b_t=Pg(),w_t=qV(),T_t=Jh(),A_t=ET();e_e.exports=function(t,r,n,i){function a(s,l){return Q1e.coerce(t,r,A_t,s,l)}var o=__t(t,r,a,i);if(!o){r.visible=!1;return}b_t(t,r,i,a),a("xhoverformat"),a("yhoverformat"),a("text"),a("hovertext"),a("hovertemplate"),x_t(a,i),w_t(t,r,a,i),a("hoverongaps"),a("connectgaps",Q1e.isArray1D(r.z)&&r.zsmooth!==!1),T_t(t,r,i,a,{prefix:"",cLetter:"z"}),a("zorder")}});var BV=ye((blr,r_e)=>{"use strict";var CT=Eo();r_e.exports={count:function(e,t,r){return r[e]++,1},sum:function(e,t,r,n){var i=n[t];return CT(i)?(i=Number(i),r[e]+=i,i):0},avg:function(e,t,r,n,i){var a=n[t];return CT(a)&&(a=Number(a),r[e]+=a,i[e]++),0},min:function(e,t,r,n){var i=n[t];if(CT(i))if(i=Number(i),CT(r[e])){if(r[e]>i){var a=i-r[e];return r[e]=i,a}}else return r[e]=i,i;return 0},max:function(e,t,r,n){var i=n[t];if(CT(i))if(i=Number(i),CT(r[e])){if(r[e]{"use strict";i_e.exports={percent:function(e,t){for(var r=e.length,n=100/t,i=0;i{"use strict";n_e.exports=function(t,r){for(var n=t.length,i=0,a=0;a{"use strict";var kT=hs(),a2=kT.ONEAVGYEAR,a_e=kT.ONEAVGMONTH,QI=kT.ONEDAY,o_e=kT.ONEHOUR,s_e=kT.ONEMIN,l_e=kT.ONESEC,u_e=ho().tickIncrement;h_e.exports=function(t,r,n,i,a){var o=-1.1*r,s=-.1*r,l=t-s,u=n[0],c=n[1],f=Math.min($I(u+s,u+l,i,a),$I(c+s,c+l,i,a)),h=Math.min($I(u+o,u+s,i,a),$I(c+o,c+s,i,a)),d,v;if(f>h&&hQI){var x=d===a2?1:6,b=d===a2?"M12":"M1";return function(p,C){var E=i.c2d(p,a2,a),A=E.indexOf("-",x);A>0&&(E=E.substr(0,A));var L=i.d2c(E,0,a);if(Ll_e?e>QI?e>a2*1.1?a2:e>a_e*1.1?a_e:QI:e>o_e?o_e:e>s_e?s_e:l_e:Math.pow(10,Math.floor(Math.log(e)/Math.LN10))}function S_t(e,t,r,n,i,a){if(n&&e>QI){var o=f_e(t,i,a),s=f_e(r,i,a),l=e===a2?0:1;return o[l]!==s[l]}return Math.floor(r/e)-Math.floor(t/e)>.1}function f_e(e,t,r){var n=t.c2d(e,a2,r).split("-");return n[0]===""&&(n.unshift(),n[0]="-"+n[0]),n}});var jV=ye((Slr,p_e)=>{"use strict";var GV=Eo(),Vv=Dr(),d_e=qa(),G0=ho(),M_t=v4(),v_e=BV(),E_t=NV(),C_t=UV(),k_t=VV();function L_t(e,t){var r=[],n=[],i=t.orientation==="h",a=G0.getFromId(e,i?t.yaxis:t.xaxis),o=i?"y":"x",s={x:"y",y:"x"}[o],l=t[o+"calendar"],u=t.cumulative,c,f=HV(e,t,a,o),h=f[0],d=f[1],v=typeof h.size=="string",x=[],b=v?x:h,p=[],C=[],E=[],A=0,L=t.histnorm,_=t.histfunc,k=L.indexOf("density")!==-1,M,g,P;u.enabled&&k&&(L=L.replace(/ ?density$/,""),k=!1);var T=_==="max"||_==="min",z=T?null:0,O=v_e.count,V=E_t[L],G=!1,Z=function(ge){return a.r2c(ge,0,l)},H;for(Vv.isArrayOrTypedArray(t[s])&&_!=="count"&&(H=t[s],G=_==="avg",O=v_e[_]),c=Z(h.start),g=Z(h.end)+(c-G0.tickIncrement(c,h.size,!1,l))/1e6;c=0&&P=Ae;c--)if(n[c]){De=c;break}for(c=Ae;c<=De;c++)if(GV(r[c])&&GV(n[c])){var Pe={p:r[c],s:n[c],b:0};u.enabled||(Pe.pts=E[c],oe?Pe.ph0=Pe.ph1=E[c].length?d[E[c][0]]:r[c]:(t._computePh=!0,Pe.ph0=ie(x[c]),Pe.ph1=ie(x[c+1],!0))),Le.push(Pe)}return Le.length===1&&(Le[0].width1=G0.tickIncrement(Le[0].p,h.size,!1,l)-Le[0].p),M_t(Le,t),Vv.isArrayOrTypedArray(t.selectedpoints)&&Vv.tagSelected(Le,t,ke),Le}function HV(e,t,r,n,i){var a=n+"bins",o=e._fullLayout,s=t["_"+n+"bingroup"],l=o._histogramBinOpts[s],u=o.barmode==="overlay",c,f,h,d,v,x,b,p=function(me){return r.r2c(me,0,d)},C=function(me){return r.c2r(me,0,d)},E=r.type==="date"?function(me){return me||me===0?Vv.cleanDate(me,null,d):null}:function(me){return GV(me)?Number(me):null};function A(me,ie,Se){ie[me+"Found"]?(ie[me]=E(ie[me]),ie[me]===null&&(ie[me]=Se[me])):(x[me]=ie[me]=Se[me],Vv.nestedProperty(f[0],a+"."+me).set(Se[me]))}if(t["_"+n+"autoBinFinished"])delete t["_"+n+"autoBinFinished"];else{f=l.traces;var L=[],_=!0,k=!1,M=!1;for(c=0;cr.r2l(H)&&(j=G0.tickIncrement(j,l.size,!0,d)),O.start=r.l2r(j),Z||Vv.nestedProperty(t,a+".start").set(O.start)}var re=l.end,oe=r.r2l(z.end),_e=oe!==void 0;if((l.endFound||_e)&&oe!==r.r2l(re)){var Me=_e?oe:Vv.aggNums(Math.max,null,v);O.end=r.l2r(Me),_e||Vv.nestedProperty(t,a+".start").set(O.end)}var ke="autobin"+n;return t._input[ke]===!1&&(t._input[a]=Vv.extendFlat({},t[a]||{}),delete t._input[ke],delete t[ke]),[O,v]}function P_t(e,t,r,n,i){var a=e._fullLayout,o=I_t(e,t),s=!1,l=1/0,u=[t],c,f,h;for(c=0;c=0;n--)s(n);else if(t==="increasing"){for(n=1;n=0;n--)e[n]+=e[n+1];r==="exclude"&&(e.push(0),e.shift())}}p_e.exports={calc:L_t,calcAllAutoBins:HV}});var T_e=ye((Mlr,w_e)=>{"use strict";var g_e=Dr(),LT=ho(),m_e=BV(),D_t=NV(),F_t=UV(),z_t=VV(),y_e=jV().calcAllAutoBins;w_e.exports=function(t,r){var n=LT.getFromId(t,r.xaxis),i=LT.getFromId(t,r.yaxis),a=r.xcalendar,o=r.ycalendar,s=function(bt){return n.r2c(bt,0,a)},l=function(bt){return i.r2c(bt,0,o)},u=function(bt){return n.c2r(bt,0,a)},c=function(bt){return i.c2r(bt,0,o)},f,h,d,v,x=y_e(t,r,n,"x"),b=x[0],p=x[1],C=y_e(t,r,i,"y"),E=C[0],A=C[1],L=r._length;p.length>L&&p.splice(L,p.length-L),A.length>L&&A.splice(L,A.length-L);var _=[],k=[],M=[],g=typeof b.size=="string",P=typeof E.size=="string",T=[],z=[],O=g?T:b,V=P?z:E,G=0,Z=[],H=[],N=r.histnorm,j=r.histfunc,re=N.indexOf("density")!==-1,oe=j==="max"||j==="min",_e=oe?null:0,Me=m_e.count,ke=D_t[N],me=!1,ie=[],Se=[],Le="z"in r?r.z:"marker"in r&&Array.isArray(r.marker.color)?r.marker.color:"";Le&&j!=="count"&&(me=j==="avg",Me=m_e[j]);var Ae=b.size,De=s(b.start),Pe=s(b.end)+(De-LT.tickIncrement(De,Ae,!1,a))/1e6;for(f=De;f=0&&d=0&&v{"use strict";var Im=Dr(),A_e=hs().BADNUM,S_e=Rg();M_e.exports=function(t,r,n,i,a,o){var s=t._length,l=r.makeCalcdata(t,i),u=n.makeCalcdata(t,a);l=S_e(t,r,i,l).vals,u=S_e(t,n,a,u).vals;var c=t.text,f=c!==void 0&&Im.isArray1D(c),h=t.hovertext,d=h!==void 0&&Im.isArray1D(h),v,x,b=Im.distinctVals(l),p=b.vals,C=Im.distinctVals(u),E=C.vals,A=[],L,_,k=E.length,M=p.length;for(v=0;v{"use strict";var O_t=Eo(),q_t=Dr(),t8=hs().BADNUM;E_e.exports=function(t,r,n,i){var a,o,s,l,u,c;function f(p){if(O_t(p))return+p}if(r&&r.transpose){for(a=0,u=0;u{"use strict";var B_t=Dr(),C_e=.01,N_t=[[-1,0],[1,0],[0,-1],[0,1]];function U_t(e){return .5-.25*Math.min(1,e*.5)}L_e.exports=function(t,r){var n=1,i;for(k_e(t,r),i=0;iC_e;i++)n=k_e(t,r,U_t(n));return n>C_e&&B_t.log("interp2d didn't converge quickly",n),t};function k_e(e,t,r){var n=0,i,a,o,s,l,u,c,f,h,d,v,x,b;for(s=0;sx&&(n=Math.max(n,Math.abs(e[a][o]-v)/(b-x))))}return n}});var n8=ye((Llr,P_e)=>{"use strict";var V_t=Dr().maxRowLength;P_e.exports=function(t){var r=[],n={},i=[],a=t[0],o=[],s=[0,0,0],l=V_t(t),u,c,f,h,d,v,x,b;for(c=0;c=0;d--)h=i[d],c=h[0],f=h[1],v=((n[[c-1,f]]||s)[2]+(n[[c+1,f]]||s)[2]+(n[[c,f-1]]||s)[2]+(n[[c,f+1]]||s)[2])/20,v&&(x[h]=[c,f,v],i.splice(d,1),b=!0);if(!b)throw"findEmpties iterated with no new neighbors";for(h in x)n[h]=x[h],r.push(x[h])}return r.sort(function(p,C){return C[2]-p[2]})}});var WV=ye((Plr,D_e)=>{"use strict";var I_e=qa(),R_e=Dr().isArrayOrTypedArray;D_e.exports=function(t,r,n,i,a,o){var s=[],l=I_e.traceIs(t,"contour"),u=I_e.traceIs(t,"histogram"),c,f,h,d=R_e(r)&&r.length>1;if(d&&!u&&o.type!=="category"){var v=r.length;if(v<=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 F_e=qa(),XV=Dr(),a8=ho(),z_e=Rg(),G_t=T_e(),H_t=Fv(),j_t=e8(),W_t=r8(),X_t=i8(),Z_t=n8(),o8=WV(),ZV=hs().BADNUM;q_e.exports=function(t,r){var n=a8.getFromId(t,r.xaxis||"x"),i=a8.getFromId(t,r.yaxis||"y"),a=F_e.traceIs(r,"contour"),o=F_e.traceIs(r,"histogram"),s=a?"best":r.zsmooth,l,u,c,f,h,d,v,x,b,p,C;if(n._minDtick=0,i._minDtick=0,o)C=G_t(t,r),f=C.orig_x,l=C.x,u=C.x0,c=C.dx,x=C.orig_y,h=C.y,d=C.y0,v=C.dy,b=C.z;else{var E=r.z;XV.isArray1D(E)?(j_t(r,n,i,"x","y",["z"]),l=r._x,h=r._y,E=r._z):(f=r.x?n.makeCalcdata(r,"x"):[],x=r.y?i.makeCalcdata(r,"y"):[],l=z_e(r,n,"x",f).vals,h=z_e(r,i,"y",x).vals,r._x=l,r._y=h),u=r.x0,c=r.dx,d=r.y0,v=r.dy,b=W_t(E,r,n,i)}(n.rangebreaks||i.rangebreaks)&&(b=Y_t(l,h,b),o||(l=O_e(l),h=O_e(h),r._x=l,r._y=h)),!o&&(a||r.connectgaps)&&(r._emptypoints=Z_t(b),X_t(b,r._emptypoints));function A(O){s=r._input.zsmooth=r.zsmooth=!1,XV.warn('cannot use zsmooth: "fast": '+O)}function L(O){if(O.length>1){var V=(O[O.length-1]-O[0])/(O.length-1),G=Math.abs(V/100);for(p=0;pG)return!1}return!0}r._islinear=!1,n.type==="log"||i.type==="log"?s==="fast"&&A("log axis found"):L(l)?L(h)?r._islinear=!0:s==="fast"&&A("y scale is not linear"):s==="fast"&&A("x scale is not linear");var _=XV.maxRowLength(b),k=r.xtype==="scaled"?"":l,M=o8(r,k,u,c,_,n),g=r.ytype==="scaled"?"":h,P=o8(r,g,d,v,b.length,i);r._extremes[n._id]=a8.findExtremes(n,M),r._extremes[i._id]=a8.findExtremes(i,P);var T={x:M,y:P,z:b,text:r._text||r.text,hovertext:r._hovertext||r.hovertext};if(r.xperiodalignment&&f&&(T.orig_x=f),r.yperiodalignment&&x&&(T.orig_y=x),k&&k.length===M.length-1&&(T.xCenter=k),g&&g.length===P.length-1&&(T.yCenter=g),o&&(T.xRanges=C.xRanges,T.yRanges=C.yRanges,T.pts=C.pts),a||H_t(t,r,{vals:b,cLetter:"z"}),a&&r.contours&&r.contours.coloring==="heatmap"){var z={type:r.type==="contour"?"heatmap":"histogram2d",xcalendar:r.xcalendar,ycalendar:r.ycalendar};T.xfill=o8(z,k,u,c,_,n),T.yfill=o8(z,g,d,v,b.length,i)}return[T]};function O_e(e){for(var t=[],r=e.length,n=0;n{"use strict";l8.CSS_DECLARATIONS=[["image-rendering","optimizeSpeed"],["image-rendering","-moz-crisp-edges"],["image-rendering","-o-crisp-edges"],["image-rendering","-webkit-optimize-contrast"],["image-rendering","optimize-contrast"],["image-rendering","crisp-edges"],["image-rendering","pixelated"]];l8.STYLE=l8.CSS_DECLARATIONS.map(function(e){return e.join(": ")+"; "}).join("")});var KV=ye((Dlr,N_e)=>{"use strict";var B_e=u8(),K_t=So(),YV=Dr(),PT=null;function J_t(){if(PT!==null)return PT;PT=!1;var e=YV.isSafari()||YV.isMacWKWebView()||YV.isIOS();if(window.navigator.userAgent&&!e){var t=Array.from(B_e.CSS_DECLARATIONS).reverse(),r=window.CSS&&window.CSS.supports||window.supportsCSS;if(typeof r=="function")PT=t.some(function(o){return r.apply(null,o)});else{var n=K_t.tester.append("image").attr("style",B_e.STYLE),i=window.getComputedStyle(n.node()),a=i.imageRendering;PT=t.some(function(o){var s=o[1];return a===s||a===s.toLowerCase()}),n.remove()}}return PT}N_e.exports=J_t});var c8=ye((Flr,Y_e)=>{"use strict";var U_e=Oa(),$_t=cd(),Q_t=qa(),ext=So(),txt=ho(),H0=Dr(),V_e=iu(),rxt=tI(),ixt=Ca(),nxt=tc().extractOpts,axt=tc().makeColorScaleFuncFromTrace,oxt=Wp(),sxt=Kh(),JV=sxt.LINE_SPACING,lxt=KV(),uxt=u8().STYLE,X_e="heatmap-label";function Z_e(e){return e.selectAll("g."+X_e)}function G_e(e){Z_e(e).remove()}Y_e.exports=function(e,t,r,n){var i=t.xaxis,a=t.yaxis;H0.makeTraceGroups(n,r,"hm").each(function(o){var s=U_e.select(this),l=o[0],u=l.trace,c=u.xgap||0,f=u.ygap||0,h=l.z,d=l.x,v=l.y,x=l.xCenter,b=l.yCenter,p=Q_t.traceIs(u,"contour"),C=p?"best":u.zsmooth,E=h.length,A=H0.maxRowLength(h),L=!1,_=!1,k,M,g,P,T,z,O,V;for(z=0;k===void 0&&z0;)M=i.c2p(d[z]),z--;for(M0;)T=a.c2p(v[z]),z--;T=i._length||M<=0||P>=a._length||T<=0;if(j){var re=s.selectAll("image").data([]);re.exit().remove(),G_e(s);return}var oe,_e;G==="fast"?(oe=A,_e=E):(oe=H,_e=N);var Me=document.createElement("canvas");Me.width=oe,Me.height=_e;var ke=Me.getContext("2d",{willReadFrequently:!0}),me=axt(u,{noNumericCheck:!0,returnArray:!0}),ie,Se;G==="fast"?(ie=L?function(cn){return A-1-cn}:H0.identity,Se=_?function(cn){return E-1-cn}:H0.identity):(ie=function(cn){return H0.constrain(Math.round(i.c2p(d[cn])-k),0,H)},Se=function(cn){return H0.constrain(Math.round(a.c2p(v[cn])-P),0,N)});var Le=Se(0),Ae=[Le,Le],De=L?0:1,Pe=_?0:1,ge=0,Fe=0,ce=0,Ze=0,ct,pt,Wt,st,lt;function Gt(cn,yn){if(cn!==void 0){var Mn=me(cn);return Mn[0]=Math.round(Mn[0]),Mn[1]=Math.round(Mn[1]),Mn[2]=Math.round(Mn[2]),ge+=yn,Fe+=Mn[0]*yn,ce+=Mn[1]*yn,Ze+=Mn[2]*yn,Mn}return[0,0,0,0]}function Nt(cn,yn,Mn,Ba){var la=cn[Mn.bin0];if(la===void 0)return Gt(void 0,1);var ma=cn[Mn.bin1],Wa=yn[Mn.bin0],Fa=yn[Mn.bin1],Wo=ma-la||0,da=Wa-la||0,Wn;return ma===void 0?Fa===void 0?Wn=0:Wa===void 0?Wn=2*(Fa-la):Wn=(2*Fa-Wa-la)*2/3:Fa===void 0?Wa===void 0?Wn=0:Wn=(2*la-ma-Wa)*2/3:Wa===void 0?Wn=(2*Fa-ma-la)*2/3:Wn=Fa+la-ma-Wa,Gt(la+Mn.frac*Wo+Ba.frac*(da+Mn.frac*Wn))}if(G!=="default"){var $t=0,sr;try{sr=new Uint8Array(oe*_e*4)}catch(cn){sr=new Array(oe*_e*4)}if(G==="smooth"){var wr=x||d,ur=b||v,Qe=new Array(wr.length),Et=new Array(ur.length),er=new Array(H),Ut=x?j_e:H_e,Ft=b?j_e:H_e,bt,yt,Yt;for(z=0;zpr||pr>a._length))for(O=Ce;Odi||di>i._length)){var Jr=rxt({x:oi,y:ir},u,e._fullLayout);Jr.x=oi,Jr.y=ir;var fi=l.z[z][O];fi===void 0?(Jr.z="",Jr.zLabel=""):(Jr.z=fi,Jr.zLabel=txt.tickText(je,fi,"hover").text);var Hi=l.text&&l.text[z]&&l.text[z][O];(Hi===void 0||Hi===!1)&&(Hi=""),Jr.text=Hi;var Pn=H0.texttemplateString(Ge,Jr,e._fullLayout._d3locale,Jr,u._meta||{});if(Pn){var wn=Pn.split("
"),pn=wn.length,Vn=0;for(V=0;V{"use strict";K_e.exports={min:"zmin",max:"zmax"}});var f8=ye((Olr,J_e)=>{"use strict";var cxt=Oa();J_e.exports=function(t){cxt.select(t).selectAll(".hm image").style("opacity",function(r){return r.trace.opacity})}});var d8=ye((qlr,Q_e)=>{"use strict";var $_e=vf(),T4=Dr(),h8=T4.isArrayOrTypedArray,fxt=ho(),hxt=tc().extractOpts;Q_e.exports=function(t,r,n,i,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,d=s.z,v=s.xCenter,x=s.yCenter,b=s.zmask,p=l.zhoverformat,C=f,E=h,A,L,_,k;if(t.index!==!1){try{_=Math.round(t.index[1]),k=Math.round(t.index[0])}catch(re){T4.error("Error hovering on heatmap, pointNumber must be [row,col], found:",t.index);return}if(_<0||_>=d[0].length||k<0||k>d.length)return}else{if($_e.inbox(r-f[0],r-f[f.length-1],0)>0||$_e.inbox(n-h[0],n-h[h.length-1],0)>0)return;if(o){var M;for(C=[2*f[0]-f[1]],M=1;M{"use strict";exe.exports={attributes:ET(),supplyDefaults:t_e(),calc:s8(),plot:c8(),colorbar:M_(),style:f8(),hoverPoints:d8(),moduleType:"trace",name:"heatmap",basePlotModule:vh(),categories:["cartesian","svg","2dMap","showLegend"],meta:{}}});var ixe=ye((Nlr,rxe)=>{"use strict";rxe.exports=txe()});var $V=ye((Ulr,nxe)=>{"use strict";nxe.exports=function(t,r){return{start:{valType:"any",editType:"calc"},end:{valType:"any",editType:"calc"},size:{valType:"any",editType:"calc"},editType:"calc"}}});var oxe=ye((Vlr,axe)=>{"use strict";axe.exports={eventDataKeys:["binNumber"]}});var v8=ye((Glr,uxe)=>{"use strict";var Pp=Lm(),sxe=df().axisHoverFormat,dxt=Qo().hovertemplateAttrs,vxt=Qo().texttemplateAttrs,QV=ec(),lxe=$V(),pxt=oxe(),eG=Ao().extendFlat;uxe.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},xhoverformat:sxe("x"),yhoverformat:sxe("y"),text:eG({},Pp.text,{}),hovertext:eG({},Pp.hovertext,{}),orientation:Pp.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:lxe("x",!0),nbinsy:{valType:"integer",min:0,dflt:0,editType:"calc"},ybins:lxe("y",!0),autobinx:{valType:"boolean",dflt:null,editType:"calc"},autobiny:{valType:"boolean",dflt:null,editType:"calc"},bingroup:{valType:"string",dflt:"",editType:"calc"},hovertemplate:dxt({},{keys:pxt.eventDataKeys}),texttemplate:vxt({arrayOk:!1,editType:"plot"},{keys:["label","value"]}),textposition:eG({},Pp.textposition,{arrayOk:!1}),textfont:QV({arrayOk:!1,editType:"plot",colorEditType:"style"}),outsidetextfont:QV({arrayOk:!1,editType:"plot",colorEditType:"style"}),insidetextfont:QV({arrayOk:!1,editType:"plot",colorEditType:"style"}),insidetextanchor:Pp.insidetextanchor,textangle:Pp.textangle,cliponaxis:Pp.cliponaxis,constraintext:Pp.constraintext,marker:Pp.marker,offsetgroup:Pp.offsetgroup,alignmentgroup:Pp.alignmentgroup,selected:Pp.selected,unselected:Pp.unselected,zorder:Pp.zorder}});var dxe=ye((Hlr,hxe)=>{"use strict";var cxe=qa(),A4=Dr(),fxe=Ca(),gxt=r0().handleText,mxt=BI(),yxt=v8();hxe.exports=function(t,r,n,i){function a(C,E){return A4.coerce(t,r,yxt,C,E)}var o=a("x"),s=a("y"),l=a("cumulative.enabled");l&&(a("cumulative.direction"),a("cumulative.currentbin")),a("text");var u=a("textposition");gxt(t,r,i,a,u,{moduleHasSelected:!0,moduleHasUnselected:!0,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),a("hovertext"),a("hovertemplate"),a("xhoverformat"),a("yhoverformat");var c=a("orientation",s&&!o?"h":"v"),f=c==="v"?"x":"y",h=c==="v"?"y":"x",d=o&&s?Math.min(A4.minRowLength(o)&&A4.minRowLength(s)):A4.minRowLength(r[f]||[]);if(!d){r.visible=!1;return}r._length=d;var v=cxe.getComponentMethod("calendars","handleTraceDefaults");v(t,r,["x","y"],i);var x=r[h];x&&a("histfunc"),a("histnorm"),a("autobin"+f),mxt(t,r,a,n,i),A4.coerceSelectionMarkerOpacity(r,a);var b=(r.marker.line||{}).color,p=cxe.getComponentMethod("errorbars","supplyDefaults");p(t,r,b||fxe.defaultLine,{axis:"y"}),p(t,r,b||fxe.defaultLine,{axis:"x",inherit:"y"}),a("zorder")}});var g8=ye((jlr,gxe)=>{"use strict";var S4=Dr(),_xt=hf(),p8=qa().traceIs,xxt=Gb(),bxt=r0().validateCornerradius,vxe=S4.nestedProperty,tG=Bb().getAxisGroup,pxe=[{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"}],wxt=["x","y"];gxe.exports=function(t,r){var n=r._histogramBinOpts={},i=[],a={},o=[],s,l,u,c,f,h,d;function v(G,Z){return S4.coerce(s._input,s,s._module.attributes,G,Z)}function x(G){return G.orientation==="v"?"x":"y"}function b(G,Z){var H=_xt.getFromTrace({_fullLayout:r},G,Z);return H.type}function p(G,Z,H){var N=G.uid+"__"+H;Z||(Z=N);var j=b(G,H),re=G[H+"calendar"]||"",oe=n[Z],_e=!0;oe&&(j===oe.axType&&re===oe.calendar?(_e=!1,oe.traces.push(G),oe.dirs.push(H)):(Z=N,j!==oe.axType&&S4.warn(["Attempted to group the bins of trace",G.index,"set on a","type:"+j,"axis","with bins on","type:"+oe.axType,"axis."].join(" ")),re!==oe.calendar&&S4.warn(["Attempted to group the bins of trace",G.index,"set with a",re,"calendar","with bins",oe.calendar?"on a "+oe.calendar+" calendar":"w/o a set calendar"].join(" ")))),_e&&(n[Z]={traces:[G],dirs:[H],axType:j,calendar:G[H+"calendar"]||""}),G["_"+H+"bingroup"]=Z}for(f=0;f{"use strict";var Txt=TT().hoverPoints,Axt=ho().hoverLabelText;mxe.exports=function(t,r,n,i,a){var o=Txt(t,r,n,i,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"]=Axt(t[u+"a"],[s.ph0,s.ph1],l[u+"hoverformat"])}return o}}});var rG=ye((Xlr,_xe)=>{"use strict";_xe.exports=function(t,r,n,i,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),!(n.cumulative||{}).enabled){var o=Array.isArray(a)?i[0].pts[a[0]][a[1]]:i[a].pts;t.pointNumbers=o,t.binNumber=t.pointNumber,delete t.pointNumber,delete t.pointIndex;var s;if(n._indexToPoints){s=[];for(var l=0;l{"use strict";xxe.exports={attributes:v8(),layoutAttributes:qI(),supplyDefaults:dxe(),crossTraceDefaults:g8(),supplyLayoutDefaults:wV(),calc:jV().calc,crossTraceCalc:Hb().crossTraceCalc,plot:i2().plot,layerName:"barlayer",style:N0().style,styleOnSelect:N0().styleOnSelect,colorbar:$d(),hoverPoints:yxe(),selectPoints:AT(),eventData:rG(),moduleType:"trace",name:"histogram",basePlotModule:vh(),categories:["bar-like","cartesian","svg","bar","histogram","oriented","errorBarsOK","showLegend"],meta:{}}});var Txe=ye((Ylr,wxe)=>{"use strict";wxe.exports=bxe()});var y8=ye((Klr,Sxe)=>{"use strict";var Vg=v8(),Axe=$V(),m8=ET(),Sxt=Vl(),iG=df().axisHoverFormat,Mxt=Qo().hovertemplateAttrs,Ext=Qo().texttemplateAttrs,Cxt=Tu(),M4=Ao().extendFlat;Sxe.exports=M4({x:Vg.x,y:Vg.y,z:{valType:"data_array",editType:"calc"},marker:{color:{valType:"data_array",editType:"calc"},editType:"calc"},histnorm:Vg.histnorm,histfunc:Vg.histfunc,nbinsx:Vg.nbinsx,xbins:Axe("x"),nbinsy:Vg.nbinsy,ybins:Axe("y"),autobinx:Vg.autobinx,autobiny:Vg.autobiny,bingroup:M4({},Vg.bingroup,{}),xbingroup:M4({},Vg.bingroup,{}),ybingroup:M4({},Vg.bingroup,{}),xgap:m8.xgap,ygap:m8.ygap,zsmooth:m8.zsmooth,xhoverformat:iG("x"),yhoverformat:iG("y"),zhoverformat:iG("z",1),hovertemplate:Mxt({},{keys:"z"}),texttemplate:Ext({arrayOk:!1,editType:"plot"},{keys:"z"}),textfont:m8.textfont,showlegend:M4({},Sxt.showlegend,{dflt:!1})},Cxt("",{cLetter:"z",autoColorDflt:!1}))});var nG=ye((Jlr,Exe)=>{"use strict";var kxt=qa(),Mxe=Dr();Exe.exports=function(t,r,n,i){var a=n("x"),o=n("y"),s=Mxe.minRowLength(a),l=Mxe.minRowLength(o);if(!s||!l){r.visible=!1;return}r._length=Math.min(s,l);var u=kxt.getComponentMethod("calendars","handleTraceDefaults");u(t,r,["x","y"],i);var c=n("z")||n("marker.color");c&&n("histfunc"),n("histnorm"),n("autobinx"),n("autobiny")}});var kxe=ye(($lr,Cxe)=>{"use strict";var Lxt=Dr(),Pxt=nG(),Ixt=qV(),Rxt=Jh(),Dxt=w4(),Fxt=y8();Cxe.exports=function(t,r,n,i){function a(o,s){return Lxt.coerce(t,r,Fxt,o,s)}Pxt(t,r,a,i),r.visible!==!1&&(Ixt(t,r,a,i),Rxt(t,r,i,a,{prefix:"",cLetter:"z"}),a("hovertemplate"),Dxt(a,i),a("xhoverformat"),a("yhoverformat"))}});var Ixe=ye((Qlr,Pxe)=>{"use strict";var zxt=d8(),Lxe=ho().hoverLabelText;Pxe.exports=function(t,r,n,i,a){var o=zxt(t,r,n,i,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],d=c.yRanges[l];return t.xLabel=Lxe(t.xa,[h[0],h[1]],f.xhoverformat),t.yLabel=Lxe(t.ya,[d[0],d[1]],f.yhoverformat),o}}});var Dxe=ye((eur,Rxe)=>{"use strict";Rxe.exports={attributes:y8(),supplyDefaults:kxe(),crossTraceDefaults:g8(),calc:s8(),plot:c8(),layerName:"heatmaplayer",colorbar:M_(),style:f8(),hoverPoints:Ixe(),eventData:rG(),moduleType:"trace",name:"histogram2d",basePlotModule:vh(),categories:["cartesian","svg","2dMap","histogram","showLegend"],meta:{}}});var zxe=ye((tur,Fxe)=>{"use strict";Fxe.exports=Dxe()});var _8=ye((rur,Oxe)=>{"use strict";Oxe.exports={COMPARISON_OPS:["=","!=","<",">=",">","<="],COMPARISON_OPS2:["=","<",">=",">","<="],INTERVAL_OPS:["[]","()","[)","(]","][",")(","](",")["],SET_OPS:["{}","}{"],CONSTRAINT_REDUCTION:{"=":"=","<":"<","<=":"<",">":">",">=":">","[]":"[]","()":"[]","[)":"[]","(]":"[]","][":"][",")(":"][","](":"][",")[":"]["}}});var E4=ye((iur,Uxe)=>{"use strict";var ed=ET(),x8=pf(),Bxe=df(),aG=Bxe.axisHoverFormat,Oxt=Bxe.descriptionOnlyNumbers,qxt=Tu(),Bxt=Pd().dash,Nxt=ec(),IT=Ao().extendFlat,Nxe=_8(),Uxt=Nxe.COMPARISON_OPS2,Vxt=Nxe.INTERVAL_OPS,qxe=x8.line;Uxe.exports=IT({z:ed.z,x:ed.x,x0:ed.x0,dx:ed.dx,y:ed.y,y0:ed.y0,dy:ed.dy,xperiod:ed.xperiod,yperiod:ed.yperiod,xperiod0:x8.xperiod0,yperiod0:x8.yperiod0,xperiodalignment:ed.xperiodalignment,yperiodalignment:ed.yperiodalignment,text:ed.text,hovertext:ed.hovertext,transpose:ed.transpose,xtype:ed.xtype,ytype:ed.ytype,xhoverformat:aG("x"),yhoverformat:aG("y"),zhoverformat:aG("z",1),hovertemplate:ed.hovertemplate,texttemplate:IT({},ed.texttemplate,{}),textfont:IT({},ed.textfont,{}),hoverongaps:ed.hoverongaps,connectgaps:IT({},ed.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:Nxt({editType:"plot",colorEditType:"style"}),labelformat:{valType:"string",dflt:"",editType:"plot",description:Oxt("contour label")},operation:{valType:"enumerated",values:[].concat(Uxt).concat(Vxt),dflt:"=",editType:"calc"},value:{valType:"any",dflt:0,editType:"calc"},editType:"calc",impliedEdits:{autocontour:!1}},line:{color:IT({},qxe.color,{editType:"style+colorbars"}),width:{valType:"number",min:0,editType:"style+colorbars"},dash:Bxt,smoothing:IT({},qxe.smoothing,{}),editType:"plot"},zorder:x8.zorder},qxt("",{cLetter:"z",autoColorDflt:!1,editTypeOverride:"calc"}))});var sG=ye((nur,Gxe)=>{"use strict";var Gv=y8(),Oy=E4(),Gxt=Tu(),oG=df().axisHoverFormat,Vxe=Ao().extendFlat;Gxe.exports=Vxe({x:Gv.x,y:Gv.y,z:Gv.z,marker:Gv.marker,histnorm:Gv.histnorm,histfunc:Gv.histfunc,nbinsx:Gv.nbinsx,xbins:Gv.xbins,nbinsy:Gv.nbinsy,ybins:Gv.ybins,autobinx:Gv.autobinx,autobiny:Gv.autobiny,bingroup:Gv.bingroup,xbingroup:Gv.xbingroup,ybingroup:Gv.ybingroup,autocontour:Oy.autocontour,ncontours:Oy.ncontours,contours:Oy.contours,line:{color:Oy.line.color,width:Vxe({},Oy.line.width,{dflt:.5}),dash:Oy.line.dash,smoothing:Oy.line.smoothing,editType:"plot"},xhoverformat:oG("x"),yhoverformat:oG("y"),zhoverformat:oG("z",1),hovertemplate:Gv.hovertemplate,texttemplate:Oy.texttemplate,textfont:Oy.textfont},Gxt("",{cLetter:"z",editTypeOverride:"calc"}))});var b8=ye((aur,Hxe)=>{"use strict";Hxe.exports=function(t,r,n,i){var a=i("contours.start"),o=i("contours.end"),s=a===!1||o===!1,l=n("contours.size"),u;s?u=r.autocontour=!0:u=n("autocontour",!1),(u||!l)&&n("ncontours")}});var lG=ye((our,jxe)=>{"use strict";var Hxt=Dr();jxe.exports=function(t,r,n,i){i||(i={});var a=t("contours.showlabels");if(a){var o=r.font;Hxt.coerceFont(t,"contours.labelfont",o,{overrideDflt:{color:n}}),t("contours.labelformat")}i.hasHover!==!1&&t("zhoverformat")}});var w8=ye((sur,Wxe)=>{"use strict";var jxt=Jh(),Wxt=lG();Wxe.exports=function(t,r,n,i,a){var o=n("contours.coloring"),s,l="";o==="fill"&&(s=n("contours.showlines")),s!==!1&&(o!=="lines"&&(l=n("line.color","#000")),n("line.width",.5),n("line.dash")),o!=="none"&&(t.showlegend!==!0&&(r.showlegend=!1),r._dfltShowLegend=!1,jxt(t,r,i,n,{prefix:"",cLetter:"z"})),n("line.smoothing"),Wxt(n,i,l,a)}});var Kxe=ye((lur,Yxe)=>{"use strict";var Xxe=Dr(),Xxt=nG(),Zxt=b8(),Yxt=w8(),Kxt=w4(),Zxe=sG();Yxe.exports=function(t,r,n,i){function a(s,l){return Xxe.coerce(t,r,Zxe,s,l)}function o(s){return Xxe.coerce2(t,r,Zxe,s)}Xxt(t,r,a,i),r.visible!==!1&&(Zxt(t,r,a,o),Yxt(t,r,a,i),a("xhoverformat"),a("yhoverformat"),a("hovertemplate"),r.contours&&r.contours.coloring==="heatmap"&&Kxt(a,i))}});var fG=ye((uur,$xe)=>{"use strict";var cG=ho(),uG=Dr();$xe.exports=function(t,r){var n=t.contours;if(t.autocontour){var i=t.zmin,a=t.zmax;(t.zauto||i===void 0)&&(i=uG.aggNums(Math.min,null,r)),(t.zauto||a===void 0)&&(a=uG.aggNums(Math.max,null,r));var o=Jxe(i,a,t.ncontours);n.size=o.dtick,n.start=cG.tickFirst(o),o.range.reverse(),n.end=cG.tickFirst(o),n.start===i&&(n.start+=n.size),n.end===a&&(n.end-=n.size),n.start>n.end&&(n.start=n.end=(n.start+n.end)/2),t._input.contours||(t._input.contours={}),uG.extendFlat(t._input.contours,{start:n.start,end:n.end,size:n.size}),t._input.autocontour=!0}else if(n.type!=="constraint"){var s=n.start,l=n.end,u=t._input.contours;if(s>l&&(n.start=u.start=l,l=n.end=u.end=s,s=n.start),!(n.size>0)){var c;s===l?c=1:c=Jxe(s,l,t.ncontours).dtick,u.size=n.size=c}}};function Jxe(e,t,r){var n={type:"linear",range:[e,t]};return cG.autoTicks(n,(t-e)/(r||15)),n}});var C4=ye((cur,Qxe)=>{"use strict";Qxe.exports=function(t){return t.end+t.size/1e6}});var hG=ye((fur,tbe)=>{"use strict";var ebe=tc(),Jxt=s8(),$xt=fG(),Qxt=C4();tbe.exports=function(t,r){var n=Jxt(t,r),i=n[0].z;$xt(r,i);var a=r.contours,o=ebe.extractOpts(r),s;if(a.coloring==="heatmap"&&o.auto&&r.autocontour===!1){var l=a.start,u=Qxt(a),c=a.size||1,f=Math.floor((u-l)/c)+1;isFinite(c)||(c=1,f=1);var h=l-c/2,d=h+f*c;s=[h,d]}else s=i;return ebe.calc(t,r,{vals:s,cLetter:"z"}),n}});var k4=ye((hur,rbe)=>{"use strict";rbe.exports={BOTTOMSTART:[1,9,13,104,713],TOPSTART:[4,6,7,104,713],LEFTSTART:[8,12,14,208,1114],RIGHTSTART:[2,3,11,208,1114],NEWDELTA:[null,[-1,0],[0,-1],[-1,0],[1,0],null,[0,-1],[-1,0],[0,1],[0,1],null,[0,1],[1,0],[1,0],[0,-1]],CHOOSESADDLE:{104:[4,1],208:[2,8],713:[7,13],1114:[11,14]},SADDLEREMAINDER:{1:4,2:8,4:1,7:13,8:2,11:14,13:7,14:11},LABELDISTANCE:2,LABELINCREASE:10,LABELMIN:3,LABELMAX:10,LABELOPTIMIZER:{EDGECOST:1,ANGLECOST:1,NEIGHBORCOST:5,SAMELEVELFACTOR:10,SAMELEVELDISTANCE:5,MAXCOST:100,INITIALSEARCHPOINTS:10,ITERATIONS:5}}});var dG=ye((dur,ibe)=>{"use strict";var T8=k4();ibe.exports=function(t){var r=t[0].z,n=r.length,i=r[0].length,a=n===2||i===2,o,s,l,u,c,f,h,d,v;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 n=(t[0][0]+t[0][1]+t[1][0]+t[1][1])/4;return e>n?r===5?713:1114:r===5?104:208}return r===15?0:r}});var vG=ye((vur,obe)=>{"use strict";var A8=Dr(),RT=k4();obe.exports=function(t,r,n){var i,a,o,s,l;for(r=r||.01,n=n||.01,o=0;o20?(o=RT.CHOOSESADDLE[o][(s[0]||s[1])<0?0:1],e.crossings[a]=RT.SADDLEREMAINDER[o]):delete e.crossings[a],s=RT.NEWDELTA[o],!s){A8.log("Found bad marching index:",o,t,e.level);break}l.push(abe(e,t,s)),t[0]+=s[0],t[1]+=s[1],a=t.join(","),L4(l[l.length-1],l[l.length-2],n,i)&&l.pop();var v=s[0]&&(t[0]<0||t[0]>c-2)||s[1]&&(t[1]<0||t[1]>u-2),x=t[0]===f[0]&&t[1]===f[1]&&s[0]===h[0]&&s[1]===h[1];if(x||r&&v)break;o=e.crossings[a]}d===1e4&&A8.log("Infinite loop in contour?");var b=L4(l[0],l[l.length-1],n,i),p=0,C=.2*e.smoothing,E=[],A=0,L,_,k,M,g,P,T,z,O,V,G;for(d=1;d=A;d--)if(L=E[d],L=A&&L+E[_]z&&O--,e.edgepaths[O]=G.concat(l,V));break}j||(e.edgepaths[z]=l.concat(V))}for(z=0;z20&&t?e===208||e===1114?n=r[0]===0?1:-1:i=r[1]===0?1:-1:RT.BOTTOMSTART.indexOf(e)!==-1?i=1:RT.LEFTSTART.indexOf(e)!==-1?n=1:RT.TOPSTART.indexOf(e)!==-1?i=-1:n=-1,[n,i]}function abe(e,t,r){var n=t[0]+Math.max(r[0],0),i=t[1]+Math.max(r[1],0),a=e.z[i][n],o=e.xaxis,s=e.yaxis;if(r[1]){var l=(e.level-a)/(e.z[i][n+1]-a),u=(l!==1?(1-l)*o.c2l(e.x[n]):0)+(l!==0?l*o.c2l(e.x[n+1]):0);return[o.c2p(o.l2c(u),!0),s.c2p(e.y[i],!0),n+l,i]}else{var c=(e.level-a)/(e.z[i+1][n]-a),f=(c!==1?(1-c)*s.c2l(e.y[i]):0)+(c!==0?c*s.c2l(e.y[i+1]):0);return[o.c2p(e.x[n],!0),s.c2p(s.l2c(f),!0),n,i+c]}}});var cbe=ye((pur,ube)=>{"use strict";var pG=_8(),ibt=Eo();ube.exports={"[]":sbe("[]"),"][":sbe("]["),">":gG(">"),"<":gG("<"),"=":gG("=")};function lbe(e,t){var r=Array.isArray(t),n;function i(a){return ibt(a)?+a:null}return pG.COMPARISON_OPS2.indexOf(e)!==-1?n=i(r?t[0]:t):pG.INTERVAL_OPS.indexOf(e)!==-1?n=r?[i(t[0]),i(t[1])]:[i(t),i(t)]:pG.SET_OPS.indexOf(e)!==-1&&(n=r?t.map(i):[i(t)]),n}function sbe(e){return function(t){t=lbe(e,t);var r=Math.min(t[0],t[1]),n=Math.max(t[0],t[1]);return{start:r,end:n,size:n-r}}}function gG(e){return function(t){return t=lbe(e,t),{start:t,end:1/0,size:1/0}}}});var mG=ye((gur,hbe)=>{"use strict";var fbe=Dr(),nbt=cbe(),abt=C4();hbe.exports=function(t,r,n){for(var i=t.type==="constraint"?nbt[t._operation](t.value):t,a=i.size,o=[],s=abt(i),l=n.trace._carpetTrace,u=l?{xaxis:l.aaxis,yaxis:l.baxis,x:n.a,y:n.b}:{xaxis:r.xaxis,yaxis:r.yaxis,x:n.x,y:n.y},c=i.start;c1e3){fbe.warn("Too many contours, clipping at 1000",t);break}return o}});var yG=ye((mur,vbe)=>{"use strict";var DT=Dr();vbe.exports=function(e,t){var r,n,i,a=function(l){return l.reverse()},o=function(l){return l};switch(t){case"=":case"<":return e;case">":for(e.length!==1&&DT.warn("Contour data invalid for the specified inequality operation."),n=e[0],r=0;r{"use strict";pbe.exports=function(e,t){var r=e[0],n=r.z,i;switch(t.type){case"levels":var a=Math.min(n[0][0],n[0][1]);for(i=0;io.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(i=0;i":f>u&&(r.prefixBoundary=!0);break;case"<":(fu||r.starts.length&&d===c)&&(r.prefixBoundary=!0);break;case"][":h=Math.min(f[0],f[1]),d=Math.max(f[0],f[1]),hu&&(r.prefixBoundary=!0);break}break}}});var S8=ye(Hv=>{"use strict";var I4=Oa(),zd=Dr(),qy=So(),obt=tc(),ybe=iu(),gbe=ho(),mbe=ym(),sbt=c8(),_be=dG(),xbe=vG(),lbt=mG(),ubt=yG(),bbe=_G(),P4=k4(),Rm=P4.LABELOPTIMIZER;Hv.plot=function(t,r,n,i){var a=r.xaxis,o=r.yaxis;zd.makeTraceGroups(i,n,"contour").each(function(s){var l=I4.select(this),u=s[0],c=u.trace,f=u.x,h=u.y,d=c.contours,v=lbt(d,r,u),x=zd.ensureSingle(l,"g","heatmapcoloring"),b=[];d.coloring==="heatmap"&&(b=[s]),sbt(t,r,b,x),_be(v),xbe(v);var p=a.c2p(f[0],!0),C=a.c2p(f[f.length-1],!0),E=o.c2p(h[0],!0),A=o.c2p(h[h.length-1],!0),L=[[p,A],[C,A],[C,E],[p,E]],_=v;d.type==="constraint"&&(_=ubt(v,d._operation)),cbt(l,L,d),fbt(l,_,L,d),hbt(l,v,t,u,d),vbt(l,r,t,u,L)})};function cbt(e,t,r){var n=zd.ensureSingle(e,"g","contourbg"),i=n.selectAll("path").data(r.coloring==="fill"?[0]:[]);i.enter().append("path"),i.exit().remove(),i.attr("d","M"+t.join("L")+"Z").style("stroke","none")}function fbt(e,t,r,n){var i=n.coloring==="fill"||n.type==="constraint"&&n._operation!=="=",a="M"+r.join("L")+"Z";i&&bbe(t,n);var o=zd.ensureSingle(e,"g","contourfill"),s=o.selectAll("path").data(i?t:[]);s.enter().append("path"),s.exit().remove(),s.each(function(l){var u=(l.prefixBoundary?a:"")+wbe(l,r);u?I4.select(this).attr("d",u).style("stroke","none"):I4.select(this).remove()})}function wbe(e,t){var r="",n=0,i=e.edgepaths.map(function(p,C){return C}),a=!0,o,s,l,u,c,f;function h(p){return Math.abs(p[1]-t[0][1])<.01}function d(p){return Math.abs(p[1]-t[2][1])<.01}function v(p){return Math.abs(p[0]-t[0][0])<.01}function x(p){return Math.abs(p[0]-t[2][0])<.01}for(;i.length;){for(f=qy.smoothopen(e.edgepaths[n],e.smoothing),r+=a?f:f.replace(/^M/,"L"),i.splice(i.indexOf(n),1),o=e.edgepaths[n][e.edgepaths[n].length-1],u=-1,l=0;l<4;l++){if(!o){zd.log("Missing end?",n,e);break}for(h(o)&&!x(o)?s=t[1]:v(o)?s=t[0]:d(o)?s=t[3]:x(o)&&(s=t[2]),c=0;c=0&&(s=b,u=c):Math.abs(o[1]-s[1])<.01?Math.abs(o[1]-b[1])<.01&&(b[0]-o[0])*(s[0]-b[0])>=0&&(s=b,u=c):zd.log("endpt to newendpt is not vert. or horz.",o,s,b)}if(o=s,u>=0)break;r+="L"+s}if(u===e.edgepaths.length){zd.log("unclosed perimeter path");break}n=u,a=i.indexOf(n)===-1,a&&(n=i[0],r+="Z")}for(n=0;nRm.MAXCOST*2)break;h&&(s/=2),o=u-s/2,l=o+s*1.5}if(f<=Rm.MAXCOST)return c};function dbt(e,t,r,n){var i=t.width/2,a=t.height/2,o=e.x,s=e.y,l=e.theta,u=Math.cos(l)*i,c=Math.sin(l)*i,f=(o>n.center?n.right-o:o-n.left)/(u+Math.abs(Math.sin(l)*a)),h=(s>n.middle?n.bottom-s:s-n.top)/(Math.abs(c)+Math.cos(l)*a);if(f<1||h<1)return 1/0;var d=Rm.EDGECOST*(1/(f-1)+1/(h-1));d+=Rm.ANGLECOST*l*l;for(var v=o-u,x=s-c,b=o+u,p=s+c,C=0;C{"use strict";var gbt=Oa(),xG=tc(),mbt=C4();Tbe.exports=function(t){var r=t.contours,n=r.start,i=mbt(r),a=r.size||1,o=Math.floor((i-n)/a)+1,s=r.coloring==="lines"?0:1,l=xG.extractOpts(t);isFinite(a)||(a=1,o=1);var u=l.reversescale?xG.flipScale(l.colorscale):l.colorscale,c=u.length,f=new Array(c),h=new Array(c),d,v,x=l.min,b=l.max;if(r.coloring==="heatmap"){for(v=0;v=b)&&(n<=x&&(n=x),i>=b&&(i=b),o=Math.floor((i-n)/a)+1,s=0),v=0;vx&&(f.unshift(x),h.unshift(h[0])),f[f.length-1]{"use strict";var M8=Oa(),Abe=So(),ybt=f8(),_bt=bG();Sbe.exports=function(t){var r=M8.select(t).selectAll("g.contour");r.style("opacity",function(n){return n[0].trace.opacity}),r.each(function(n){var i=M8.select(this),a=n[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",d=f||h?_bt(a):null;i.selectAll("g.contourlevel").each(function(b){M8.select(this).selectAll("path").call(Abe.lineGroupStyle,s.width,f?d(b.level):s.color,s.dash)});var v=o.labelfont;if(i.selectAll("g.contourlabels text").each(function(b){Abe.font(M8.select(this),{weight:v.weight,style:v.style,variant:v.variant,textcase:v.textcase,lineposition:v.lineposition,shadow:v.shadow,family:v.family,size:v.size,color:v.color||(f?d(b.level):s.color)})}),c)i.selectAll("g.contourfill path").style("fill",a.fillcolor);else if(h){var x;i.selectAll("g.contourfill path").style("fill",function(b){return x===void 0&&(x=b.level),d(b.level+.5*l)}),x===void 0&&(x=u),i.selectAll("g.contourbg path").style("fill",d(x-.5*l))}}),ybt(t)}});var C8=ye((wur,Ebe)=>{"use strict";var Mbe=tc(),xbt=bG(),bbt=C4();function wbt(e,t,r){var n=t.contours,i=t.line,a=n.size||1,o=n.coloring,s=xbt(t,{isColorbar:!0});if(o==="heatmap"){var l=Mbe.extractOpts(t);r._fillgradient=l.reversescale?Mbe.flipScale(l.colorscale):l.colorscale,r._zrange=[l.min,l.max]}else o==="fill"&&(r._fillcolor=s);r._line={color:o==="lines"?s:i.color,width:n.showlines!==!1?i.width:0,dash:i.dash},r._levels={start:n.start,end:bbt(n),size:a}}Ebe.exports={min:"zmin",max:"zmax",calc:wbt}});var wG=ye((Tur,Cbe)=>{"use strict";var k8=Ca(),Tbt=d8();Cbe.exports=function(t,r,n,i,a){a||(a={}),a.isContour=!0;var o=Tbt(t,r,n,i,a);return o&&o.forEach(function(s){var l=s.trace;l.contours.type==="constraint"&&(l.fillcolor&&k8.opacity(l.fillcolor)?s.color=k8.addOpacity(l.fillcolor,1):l.contours.showlines&&k8.opacity(l.line.color)&&(s.color=k8.addOpacity(l.line.color,1)))}),o}});var Lbe=ye((Aur,kbe)=>{"use strict";kbe.exports={attributes:sG(),supplyDefaults:Kxe(),crossTraceDefaults:g8(),calc:hG(),plot:S8().plot,layerName:"contourlayer",style:E8(),colorbar:C8(),hoverPoints:wG(),moduleType:"trace",name:"histogram2dcontour",basePlotModule:vh(),categories:["cartesian","svg","2dMap","contour","histogram","showLegend"],meta:{}}});var Ibe=ye((Sur,Pbe)=>{"use strict";Pbe.exports=Lbe()});var TG=ye((Mur,qbe)=>{"use strict";var Rbe=Eo(),Abt=lG(),zbe=Ca(),Dbe=zbe.addOpacity,Sbt=zbe.opacity,Obe=_8(),Fbe=Dr().isArrayOrTypedArray,Mbt=Obe.CONSTRAINT_REDUCTION,Ebt=Obe.COMPARISON_OPS2;qbe.exports=function(t,r,n,i,a,o){var s=r.contours,l,u,c,f=n("contours.operation");if(s._operation=Mbt[f],Cbt(n,s),f==="="?l=s.showlines=!0:(l=n("contours.showlines"),c=n("fillcolor",Dbe((t.line||{}).color||a,.5))),l){var h=c&&Sbt(c)?Dbe(r.fillcolor,1):a;u=n("line.color",h),n("line.width",2),n("line.dash")}n("line.smoothing"),Abt(n,i,u,o)};function Cbt(e,t){var r;Ebt.indexOf(t.operation)===-1?(e("contours.value",[0,1]),Fbe(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])]:Rbe(t.value)&&(r=parseFloat(t.value),t.value=[r,r+1])):(e("contours.value",0),Rbe(t.value)||(Fbe(t.value)?t.value=parseFloat(t.value[0]):t.value=0))}});var Ube=ye((Eur,Nbe)=>{"use strict";var AG=Dr(),kbt=JI(),Lbt=Pg(),Pbt=TG(),Ibt=b8(),Rbt=w8(),Dbt=w4(),Bbe=E4();Nbe.exports=function(t,r,n,i){function a(u,c){return AG.coerce(t,r,Bbe,u,c)}function o(u){return AG.coerce2(t,r,Bbe,u)}var s=kbt(t,r,a,i);if(!s){r.visible=!1;return}Lbt(t,r,i,a),a("xhoverformat"),a("yhoverformat"),a("text"),a("hovertext"),a("hoverongaps"),a("hovertemplate");var l=a("contours.type")==="constraint";a("connectgaps",AG.isArray1D(r.z)),l?Pbt(t,r,a,i,n):(Ibt(t,r,a,o),Rbt(t,r,a,i)),r.contours&&r.contours.coloring==="heatmap"&&Dbt(a,i),a("zorder")}});var Gbe=ye((Cur,Vbe)=>{"use strict";Vbe.exports={attributes:E4(),supplyDefaults:Ube(),calc:hG(),plot:S8().plot,style:E8(),colorbar:C8(),hoverPoints:wG(),moduleType:"trace",name:"contour",basePlotModule:vh(),categories:["cartesian","svg","2dMap","contour","showLegend"],meta:{}}});var jbe=ye((kur,Hbe)=>{"use strict";Hbe.exports=Gbe()});var SG=ye((Lur,Xbe)=>{"use strict";var Fbt=Qo().hovertemplateAttrs,zbt=Qo().texttemplateAttrs,Obt=Eg(),a0=pf(),qbt=Vl(),Wbe=Tu(),Bbt=Pd().dash,E_=Ao().extendFlat,j0=a0.marker,R4=a0.line,Nbt=j0.line;Xbe.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:E_({},a0.mode,{dflt:"markers"}),text:E_({},a0.text,{}),texttemplate:zbt({editType:"plot"},{keys:["a","b","c","text"]}),hovertext:E_({},a0.hovertext,{}),line:{color:R4.color,width:R4.width,dash:Bbt,backoff:R4.backoff,shape:E_({},R4.shape,{values:["linear","spline"]}),smoothing:R4.smoothing,editType:"calc"},connectgaps:a0.connectgaps,cliponaxis:a0.cliponaxis,fill:E_({},a0.fill,{values:["none","toself","tonext"],dflt:"none"}),fillcolor:Obt(),marker:E_({symbol:j0.symbol,opacity:j0.opacity,angle:j0.angle,angleref:j0.angleref,standoff:j0.standoff,maxdisplayed:j0.maxdisplayed,size:j0.size,sizeref:j0.sizeref,sizemin:j0.sizemin,sizemode:j0.sizemode,line:E_({width:Nbt.width,editType:"calc"},Wbe("marker.line")),gradient:j0.gradient,editType:"calc"},Wbe("marker")),textfont:a0.textfont,textposition:a0.textposition,selected:a0.selected,unselected:a0.unselected,hoverinfo:E_({},qbt.hoverinfo,{flags:["a","b","c","text","name"]}),hoveron:a0.hoveron,hovertemplate:Fbt()}});var Jbe=ye((Pur,Kbe)=>{"use strict";var Zbe=Dr(),Ubt=Sm(),FT=Ru(),Vbt=$p(),Gbt=R0(),Ybe=J3(),Hbt=D0(),jbt=Ig(),Wbt=SG();Kbe.exports=function(t,r,n,i){function a(h,d){return Zbe.coerce(t,r,Wbt,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");var c=u{"use strict";var MG=ho();$be.exports=function(t,r,n){var i={},a=n[r.subplot]._subplot;return i.aLabel=MG.tickText(a.aaxis,t.a,!0).text,i.bLabel=MG.tickText(a.baxis,t.b,!0).text,i.cLabel=MG.tickText(a.caxis,t.c,!0).text,i}});var i2e=ye((Rur,r2e)=>{"use strict";var EG=Eo(),Xbt=F0(),Zbt=Cm(),Ybt=z0(),Kbt=O0().calcMarkerSize,e2e=["a","b","c"],t2e={a:["b","c"],b:["a","c"],c:["a","b"]};r2e.exports=function(t,r){var n=t._fullLayout[r.subplot],i=n.sum,a=r.sum||i,o={a:r.a,b:r.b,c:r.c},s=r.ids,l,u,c,f,h,d;for(l=0;l{"use strict";var Jbt=iT();n2e.exports=function(t,r,n){var i=r.plotContainer;i.select(".scatterlayer").selectAll("*").remove();for(var a=r.xaxis,o=r.yaxis,s={xaxis:a,yaxis:o,plot:i,layerClipId:r._hasClipOnAxisFalse?r.clipIdRelative:null},l=r.layers.frontplot.select("g.scatterlayer"),u=0;u{"use strict";var $bt=sT();o2e.exports=function(t,r,n,i){var a=$bt(t,r,n,i);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,d=o.subplot;o.a=f.a,o.b=f.b,o.c=f.c,o.xLabelVal=void 0,o.yLabelVal=void 0;var v={};v[h.subplot]={_subplot:d};var x=h._module.formatLabels(f,h,v);o.aLabel=x.aLabel,o.bLabel=x.bLabel,o.cLabel=x.cLabel;var b=f.hi||h.hoverinfo,p=[];function C(A,L){p.push(A._hovertitle+": "+L)}if(!h.hovertemplate){var E=b.split("+");E.indexOf("all")!==-1&&(E=["a","b","c"]),E.indexOf("a")!==-1&&C(d.aaxis,o.aLabel),E.indexOf("b")!==-1&&C(d.baxis,o.bLabel),E.indexOf("c")!==-1&&C(d.caxis,o.cLabel)}return o.extraText=p.join("
"),o.hovertemplate=h.hovertemplate,a}});var u2e=ye((zur,l2e)=>{"use strict";l2e.exports=function(t,r,n,i,a){if(r.xa&&(t.xaxis=r.xa),r.ya&&(t.yaxis=r.ya),i[a]){var o=i[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 x2e=ye((Our,_2e)=>{"use strict";var p2e=Oa(),Qbt=cd(),CG=qa(),By=Dr(),Dm=By.strTranslate,L8=By._,OT=Ca(),P8=So(),D4=ym(),kG=Ao().extendFlat,e2t=Mc(),C_=ho(),c2e=gv(),f2e=vf(),g2e=Sg(),h2e=g2e.freeMode,t2t=g2e.rectMode,LG=Mb(),r2t=zf().prepSelect,i2t=zf().selectOnClick,n2t=zf().clearOutline,a2t=zf().clearSelectionsCache,m2e=hd();function y2e(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}_2e.exports=y2e;var Fm=y2e.prototype;Fm.init=function(e){this.container=e._ternarylayer,this.defs=e._defs,this.layoutId=e._uid,this.traceHash={},this.layers={}};Fm.plot=function(e,t){var r=this,n=t[r.id],i=t._size;r._hasClipOnAxisFalse=!1;for(var a=0;azT*u?(p=u,b=p*zT):(b=l,p=b/zT),C=o*b/l,E=s*p/u,v=t.l+t.w*i-b/2,x=t.t+t.h*(1-a)-p/2,r.x0=v,r.y0=x,r.w=b,r.h=p,r.sum=c,r.xaxis={type:"linear",range:[f+2*d-c,c-f-2*h],domain:[i-C/2,i+C/2],_id:"x"},D4(r.xaxis,r.graphDiv._fullLayout),r.xaxis.setScale(),r.xaxis.isPtWithinRange=function(V){return V.a>=r.aaxis.range[0]&&V.a<=r.aaxis.range[1]&&V.b>=r.baxis.range[1]&&V.b<=r.baxis.range[0]&&V.c>=r.caxis.range[1]&&V.c<=r.caxis.range[0]},r.yaxis={type:"linear",range:[f,c-h-d],domain:[a-E/2,a+E/2],_id:"y"},D4(r.yaxis,r.graphDiv._fullLayout),r.yaxis.setScale(),r.yaxis.isPtWithinRange=function(){return!0};var A=r.yaxis.domain[0],L=r.aaxis=kG({},e.aaxis,{range:[f,c-h-d],side:"left",tickangle:(+e.aaxis.tickangle||0)-30,domain:[A,A+E*zT],anchor:"free",position:0,_id:"y",_length:b});D4(L,r.graphDiv._fullLayout),L.setScale();var _=r.baxis=kG({},e.baxis,{range:[c-f-d,h],side:"bottom",domain:r.xaxis.domain,anchor:"free",position:0,_id:"x",_length:b});D4(_,r.graphDiv._fullLayout),_.setScale();var k=r.caxis=kG({},e.caxis,{range:[c-f-h,d],side:"right",tickangle:(+e.caxis.tickangle||0)+30,domain:[A,A+E*zT],anchor:"free",position:0,_id:"y",_length:b});D4(k,r.graphDiv._fullLayout),k.setScale();var M="M"+v+","+(x+p)+"h"+b+"l-"+b/2+",-"+p+"Z";r.clipDef.select("path").attr("d",M),r.layers.plotbg.select("path").attr("d",M);var g="M0,"+p+"h"+b+"l-"+b/2+",-"+p+"Z";r.clipDefRelative.select("path").attr("d",g);var P=Dm(v,x);r.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",P),r.clipDefRelative.select("path").attr("transform",null);var T=Dm(v-_._offset,x+p);r.layers.baxis.attr("transform",T),r.layers.bgrid.attr("transform",T);var z=Dm(v+b/2,x)+"rotate(30)"+Dm(0,-L._offset);r.layers.aaxis.attr("transform",z),r.layers.agrid.attr("transform",z);var O=Dm(v+b/2,x)+"rotate(-30)"+Dm(0,-k._offset);r.layers.caxis.attr("transform",O),r.layers.cgrid.attr("transform",O),r.drawAxes(!0),r.layers.aline.select("path").attr("d",L.showline?"M"+v+","+(x+p)+"l"+b/2+",-"+p:"M0,0").call(OT.stroke,L.linecolor||"#000").style("stroke-width",(L.linewidth||0)+"px"),r.layers.bline.select("path").attr("d",_.showline?"M"+v+","+(x+p)+"h"+b:"M0,0").call(OT.stroke,_.linecolor||"#000").style("stroke-width",(_.linewidth||0)+"px"),r.layers.cline.select("path").attr("d",k.showline?"M"+(v+b/2)+","+x+"l"+b/2+","+p:"M0,0").call(OT.stroke,k.linecolor||"#000").style("stroke-width",(k.linewidth||0)+"px"),r.graphDiv._context.staticPlot||r.initInteractions(),P8.setClipUrl(r.layers.frontplot,r._hasClipOnAxisFalse?null:r.clipId,r.graphDiv)};Fm.drawAxes=function(e){var t=this,r=t.graphDiv,n=t.id.substr(7)+"title",i=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;i["a-title"]=LG.draw(r,"a"+n,{propContainer:a,propName:t.id+".aaxis.title",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"}}),i["b-title"]=LG.draw(r,"b"+n,{propContainer:o,propName:t.id+".baxis.title",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"}}),i["c-title"]=LG.draw(r,"c"+n,{propContainer:s,propName:t.id+".caxis.title",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"}})}};Fm.drawAx=function(e){var t=this,r=t.graphDiv,n=e._name,i=n.charAt(0),a=e._id,o=t.layers[n],s=30,l=i+"tickLayout",u=o2t(e);t[l]!==u&&(o.selectAll("."+a+"tick").remove(),t[l]=u),e.setScale();var c=C_.calcTicks(e),f=C_.clipEnds(e,c),h=C_.makeTransTickFn(e),d=C_.getTickSigns(e)[2],v=By.deg2rad(s),x=d*(e.linewidth||1)/2,b=d*e.ticklen,p=t.w,C=t.h,E=i==="b"?"M0,"+x+"l"+Math.sin(v)*b+","+Math.cos(v)*b:"M"+x+",0l"+Math.cos(v)*b+","+-Math.sin(v)*b,A={a:"M0,0l"+C+",-"+p/2,b:"M0,0l-"+p/2+",-"+C,c:"M0,0l-"+C+","+p/2}[i];C_.drawTicks(r,e,{vals:e.ticks==="inside"?f:c,layer:o,path:E,transFn:h,crisp:!1}),C_.drawGrid(r,e,{vals:f,layer:t.layers[i+"grid"],path:A,transFn:h,crisp:!1}),C_.drawLabels(r,e,{vals:c,layer:o,transFn:h,labelFns:C_.makeLabelFns(e,0,s)})};function o2t(e){return e.ticks+String(e.ticklen)+String(e.showticklabels)}var yd=m2e.MINZOOM/2+.87,s2t="m-0.87,.5h"+yd+"v3h-"+(yd+5.2)+"l"+(yd/2+2.6)+",-"+(yd*.87+4.5)+"l2.6,1.5l-"+yd/2+","+yd*.87+"Z",l2t="m0.87,.5h-"+yd+"v3h"+(yd+5.2)+"l-"+(yd/2+2.6)+",-"+(yd*.87+4.5)+"l-2.6,1.5l"+yd/2+","+yd*.87+"Z",u2t="m0,1l"+yd/2+","+yd*.87+"l2.6,-1.5l-"+(yd/2+2.6)+",-"+(yd*.87+4.5)+"l-"+(yd/2+2.6)+","+(yd*.87+4.5)+"l2.6,1.5l"+yd/2+",-"+yd*.87+"Z",c2t="m0.5,0.5h5v-2h-5v-5h-2v5h-5v2h5v5h2Z",d2e=!0;Fm.clearOutline=function(){a2t(this.dragOptions),n2t(this.dragOptions.gd)};Fm.initInteractions=function(){var e=this,t=e.layers.plotbg.select("path").node(),r=e.graphDiv,n=r._fullLayout._zoomlayer,i,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(T,z,O){e.dragOptions.xaxes=[e.xaxis],e.dragOptions.yaxes=[e.yaxis],i=r._fullLayout._invScaleX,a=r._fullLayout._invScaleY;var V=e.dragOptions.dragmode=r._fullLayout.dragmode;h2e(V)?e.dragOptions.minDrag=1:e.dragOptions.minDrag=void 0,V==="zoom"?(e.dragOptions.moveFn=_,e.dragOptions.clickFn=p,e.dragOptions.doneFn=k,C(T,z,O)):V==="pan"?(e.dragOptions.moveFn=g,e.dragOptions.clickFn=p,e.dragOptions.doneFn=P,M(),e.clearOutline(r)):(t2t(V)||h2e(V))&&r2t(T,z,O,e.dragOptions,V)}};var o,s,l,u,c,f,h,d,v,x;function b(T){var z={};return z[e.id+".aaxis.min"]=T.a,z[e.id+".baxis.min"]=T.b,z[e.id+".caxis.min"]=T.c,z}function p(T,z){var O=r._fullLayout.clickmode;v2e(r),T===2&&(r.emit("plotly_doubleclick",null),CG.call("_guiRelayout",r,b({a:0,b:0,c:0}))),O.indexOf("select")>-1&&T===1&&i2t(z,r,[e.xaxis],[e.yaxis],e.id,e.dragOptions),O.indexOf("event")>-1&&f2e.click(r,z,e.id)}function C(T,z,O){var V=t.getBoundingClientRect();o=z-V.left,s=O-V.top,r._fullLayout._calcInverseTransform(r);var G=r._fullLayout._invTransform,Z=By.apply3DTransform(G)(o,s);o=Z[0],s=Z[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=Qbt(e.graphDiv._fullLayout[e.id].bgcolor).getLuminance(),h="M0,"+e.h+"L"+e.w/2+", 0L"+e.w+","+e.h+"Z",d=!1,v=n.append("path").attr("class","zoombox").attr("transform",Dm(e.x0,e.y0)).style({fill:f>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("d",h),x=n.append("path").attr("class","zoombox-corners").attr("transform",Dm(e.x0,e.y0)).style({fill:OT.background,stroke:OT.defaultLine,"stroke-width":1,opacity:0}).attr("d","M0,0Z"),e.clearOutline(r)}function E(T,z){return 1-z/e.h}function A(T,z){return 1-(T+(e.h-z)/Math.sqrt(3))/e.w}function L(T,z){return(T-(e.h-z)/Math.sqrt(3))/e.w}function _(T,z){var O=o+T*i,V=s+z*a,G=Math.max(0,Math.min(1,E(o,s),E(O,V))),Z=Math.max(0,Math.min(1,A(o,s),A(O,V))),H=Math.max(0,Math.min(1,L(o,s),L(O,V))),N=(G/2+H)*e.w,j=(1-G/2-Z)*e.w,re=(N+j)/2,oe=j-N,_e=(1-G)*e.h,Me=_e-oe/zT;oe.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),x.transition().style("opacity",1).duration(200),d=!0),r.emit("plotly_relayouting",b(c))}function k(){v2e(r),c!==l&&(CG.call("_guiRelayout",r,b(c)),d2e&&r.data&&r._context.showTips&&(By.notifier(L8(r,"Double-click to zoom back out"),"long"),d2e=!1))}function M(){l={a:e.aaxis.range[0],b:e.baxis.range[1],c:e.caxis.range[1]},c=l}function g(T,z){var O=T/e.xaxis._m,V=z/e.yaxis._m;c={a:l.a-V,b:l.b+(O+V)/2,c:l.c-(O-V)/2};var G=[c.a,c.b,c.c].sort(By.sorterAsc),Z={a:G.indexOf(c.a),b:G.indexOf(c.b),c:G.indexOf(c.c)};G[0]<0&&(G[1]+G[0]/2<0?(G[2]+=G[0]+G[1],G[0]=G[1]=0):(G[2]+=G[0]/2,G[1]+=G[0]/2,G[0]=0),c={a:G[Z.a],b:G[Z.b],c:G[Z.c]},z=(l.a-c.a)*e.yaxis._m,T=(l.c-c.c-l.b+c.b)*e.xaxis._m);var H=Dm(e.x0+T,e.y0+z);e.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",H);var N=Dm(-T,-z);e.clipDefRelative.select("path").attr("transform",N),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(P8.hideOutsideRangePoints,e),r.emit("plotly_relayouting",b(c))}function P(){CG.call("_guiRelayout",r,b(c))}t.onmousemove=function(T){f2e.hover(r,T,e.id),r._fullLayout._lasthover=t,r._fullLayout._hoversubplot=e.id},t.onmouseout=function(T){r._dragging||c2e.unhover(r,T)},c2e.init(this.dragOptions)};function v2e(e){p2e.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}});var RG=ye((qur,b2e)=>{"use strict";var f2t=Eh(),h2t=kc().attributes,lu=Rd(),d2t=mc().overrideAll,PG=Ao().extendFlat,IG={title:{text:lu.title.text,font:lu.title.font},color:lu.color,tickmode:lu.minor.tickmode,nticks:PG({},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:PG({},lu.showline,{dflt:!0}),linecolor:lu.linecolor,linewidth:lu.linewidth,showgrid:PG({},lu.showgrid,{dflt:!0}),gridcolor:lu.gridcolor,gridwidth:lu.gridwidth,griddash:lu.griddash,layer:lu.layer,min:{valType:"number",dflt:0,min:0}},I8=b2e.exports=d2t({domain:h2t({name:"ternary"}),bgcolor:{valType:"color",dflt:f2t.background},sum:{valType:"number",dflt:1,min:0},aaxis:IG,baxis:IG,caxis:IG},"plot","from-root");I8.uirevision={valType:"any",editType:"none"};I8.aaxis.uirevision=I8.baxis.uirevision=I8.caxis.uirevision={valType:"any",editType:"none"}});var k_=ye((Bur,w2e)=>{"use strict";var v2t=Dr(),p2t=pl(),g2t=kc().defaults;w2e.exports=function(t,r,n,i){var a=i.type,o=i.attributes,s=i.handleDefaults,l=i.partition||"x",u=r._subplots[a],c=u.length,f=c&&u[0].replace(/\d+$/,""),h,d;function v(C,E){return v2t.coerce(h,d,o,C,E)}for(var x=0;x{"use strict";var m2t=Ca(),y2t=pl(),R8=Dr(),_2t=k_(),x2t=t_(),b2t=r_(),w2t=T3(),T2t=xb(),A2t=QM(),A2e=RG(),T2e=["aaxis","baxis","caxis"];S2e.exports=function(t,r,n){_2t(t,r,n,{type:"ternary",attributes:A2e,handleDefaults:S2t,font:r.font,paper_bgcolor:r.paper_bgcolor})};function S2t(e,t,r,n){var i=r("bgcolor"),a=r("sum");n.bgColor=m2t.combine(i,n.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 M2t(e,t,r,n){var i=A2e[t._name];function a(d,v){return R8.coerce(e,t,i,d,v)}a("uirevision",n.uirevision),t.type="linear";var o=a("color"),s=o!==i.color.dflt?o:r.font.color,l=t._name,u=l.charAt(0).toUpperCase(),c="Component "+u,f=a("title.text",c);t._hovertitle=f===c?f:u,R8.coerceFont(a,"title.font",r.font,{overrideDflt:{size:R8.bigFont(r.font.size),color:s}}),a("min"),T2t(e,t,a,"linear"),b2t(e,t,a,"linear"),x2t(e,t,a,"linear",{noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0}),w2t(e,t,a,{outerTicks:!0});var h=a("showticklabels");h&&(R8.coerceFont(a,"tickfont",r.font,{overrideDflt:{color:s}}),a("tickangle"),a("tickformat")),A2t(e,t,a,{dfltColor:o,bgColor:r.bgColor,blend:60,showLine:!0,showGrid:!0,noZeroLine:!0,attributes:i}),a("hoverformat"),a("layer")}});var E2e=ye(W0=>{"use strict";var E2t=x2e(),C2t=Id().getSubplotCalcData,k2t=Dr().counterRegex,qT="ternary";W0.name=qT;var L2t=W0.attr="subplot";W0.idRoot=qT;W0.idRegex=W0.attrRegex=k2t(qT);var P2t=W0.attributes={};P2t[L2t]={valType:"subplotid",dflt:"ternary",editType:"calc"};W0.layoutAttributes=RG();W0.supplyLayoutDefaults=M2e();W0.plot=function(t){for(var r=t._fullLayout,n=t.calcdata,i=r._subplots[qT],a=0;a{"use strict";C2e.exports={attributes:SG(),supplyDefaults:Jbe(),colorbar:$d(),formatLabels:Qbe(),calc:i2e(),plot:a2e(),style:ap().style,styleOnSelect:ap().styleOnSelect,hoverPoints:s2e(),selectPoints:lT(),eventData:u2e(),moduleType:"trace",name:"scatterternary",basePlotModule:E2e(),categories:["ternary","symbols","showLegend","scatter-like"],meta:{}}});var P2e=ye((Gur,L2e)=>{"use strict";L2e.exports=k2e()});var DG=ye((Hur,R2e)=>{"use strict";var td=y4(),BT=Ao().extendFlat,I2e=df().axisHoverFormat;R2e.exports={y:td.y,x:td.x,x0:td.x0,y0:td.y0,xhoverformat:I2e("x"),yhoverformat:I2e("y"),name:BT({},td.name,{}),orientation:BT({},td.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:td.fillcolor,points:BT({},td.boxpoints,{}),jitter:BT({},td.jitter,{}),pointpos:BT({},td.pointpos,{}),width:BT({},td.width,{}),marker:td.marker,text:td.text,hovertext:td.hovertext,hovertemplate:td.hovertemplate,quartilemethod:td.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:td.offsetgroup,alignmentgroup:td.alignmentgroup,selected:td.selected,unselected:td.unselected,hoveron:{valType:"flaglist",flags:["violins","points","kde"],dflt:"violins+points+kde",extras:["all"],editType:"style"},zorder:td.zorder}});var OG=ye((jur,D2e)=>{"use strict";var FG=_4(),zG=Dr().extendFlat;D2e.exports={violinmode:zG({},FG.boxmode,{}),violingap:zG({},FG.boxgap,{}),violingroupgap:zG({},FG.boxgroupgap,{})}});var B2e=ye((Wur,q2e)=>{"use strict";var F2e=Dr(),I2t=Ca(),z2e=b4(),O2e=DG();q2e.exports=function(t,r,n,i){function a(L,_){return F2e.coerce(t,r,O2e,L,_)}function o(L,_){return F2e.coerce2(t,r,O2e,L,_)}if(z2e.handleSampleDefaults(t,r,a,i),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||n),f=a("line.width"),h=a("fillcolor",I2t.addOpacity(r.line.color,.5));z2e.handlePointsDefaults(t,r,a,{prefix:""});var d=o("box.width"),v=o("box.fillcolor",h),x=o("box.line.color",c),b=o("box.line.width",f),p=a("box.visible",!!(d||v||x||b));p||(r.box={visible:!1});var C=o("meanline.color",c),E=o("meanline.width",f),A=a("meanline.visible",!!(C||E));A||(r.meanline={visible:!1}),a("quartilemethod"),a("zorder")}}});var U2e=ye((Xur,N2e)=>{"use strict";var R2t=Dr(),D2t=OG(),F2t=jI();N2e.exports=function(t,r,n){function i(a,o){return R2t.coerce(t,r,D2t,a,o)}F2t._supply(t,r,n,i,"violin")}});var D8=ye(o2=>{"use strict";var z2t=Dr(),O2t={gaussian:function(e){return 1/Math.sqrt(2*Math.PI)*Math.exp(-.5*e*e)}};o2.makeKDE=function(e,t,r){var n=r.length,i=O2t.gaussian,a=e.bandwidth,o=1/(n*a);return function(s){for(var l=0,u=0;u{"use strict";var qG=Dr(),BG=ho(),q2t=LV(),V2e=D8(),B2t=hs().BADNUM;G2e.exports=function(t,r){var n=q2t(t,r);if(n[0].t.empty)return n;for(var i=t._fullLayout,a=BG.getFromId(t,r[r.orientation==="h"?"xaxis":"yaxis"]),o=1/0,s=-1/0,l=0,u=0,c=0;c{"use strict";var G2t=XI().setPositionOffset,j2e=["v","h"];W2e.exports=function(t,r){for(var n=t.calcdata,i=r.xaxis,a=r.yaxis,o=0;o{"use strict";var NG=Oa(),UG=Dr(),H2t=So(),VG=ZI(),j2t=pU(),W2t=D8();Z2e.exports=function(t,r,n,i){var a=t._context.staticPlot,o=t._fullLayout,s=r.xaxis,l=r.yaxis;function u(c,f){var h=j2t(c,{xaxis:s,yaxis:l,trace:f,connectGaps:!0,baseTolerance:.75,shape:"spline",simplify:!0,linearized:!0});return H2t.smoothopen(h[0],1)}UG.makeTraceGroups(i,n,"trace violins").each(function(c){var f=NG.select(this),h=c[0],d=h.t,v=h.trace;if(v.visible!==!0||d.empty){f.remove();return}var x=d.bPos,b=d.bdPos,p=r[d.valLetter+"axis"],C=r[d.posLetter+"axis"],E=v.side==="both",A=E||v.side==="positive",L=E||v.side==="negative",_=f.selectAll("path.violin").data(UG.identity);_.enter().append("path").style("vector-effect",a?"none":"non-scaling-stroke").attr("class","violin"),_.exit().remove(),_.each(function(V){var G=NG.select(this),Z=V.density,H=Z.length,N=C.c2l(V.pos+x,!0),j=C.l2p(N),re;if(v.width)re=d.maxKDE/b;else{var oe=o._violinScaleGroupStats[v.scalegroup];re=v.scalemode==="count"?oe.maxKDE/b*(oe.maxCount/V.pts.length):oe.maxKDE/b}var _e,Me,ke,me,ie,Se,Le;if(A){for(Se=new Array(H),me=0;me{"use strict";var K2e=Oa(),NT=Ca(),X2t=ap().stylePoints;J2e.exports=function(t){var r=K2e.select(t).selectAll("g.trace.violins");r.style("opacity",function(n){return n[0].trace.opacity}),r.each(function(n){var i=n[0].trace,a=K2e.select(this),o=i.box||{},s=o.line||{},l=i.meanline||{},u=l.width;a.selectAll("path.violin").style("stroke-width",i.line.width+"px").call(NT.stroke,i.line.color).call(NT.fill,i.fillcolor),a.selectAll("path.box").style("stroke-width",s.width+"px").call(NT.stroke,s.color).call(NT.fill,o.fillcolor);var c={"stroke-width":u+"px","stroke-dasharray":2*u+"px,"+u+"px"};a.selectAll("path.mean").style(c).call(NT.stroke,l.color),a.selectAll("path.meanline").style(c).call(NT.stroke,l.color),X2t(a,i,t)})}});var rwe=ye((Qur,twe)=>{"use strict";var Z2t=Ca(),GG=Dr(),Y2t=ho(),Q2e=FV(),ewe=D8();twe.exports=function(t,r,n,i,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=[],d,v;if(c||f){var x=Q2e.hoverOnBoxes(t,r,n,i);if(f&&x.length>0){var b=t.xa,p=t.ya,C,E,A,L,_;l.orientation==="h"?(_=r,C="y",A=p,E="x",L=b):(_=n,C="x",A=b,E="y",L=p);var k=s[t.index];if(_>=k.span[0]&&_<=k.span[1]){var M=GG.extendFlat({},t),g=L.c2p(_,!0),P=ewe.getKdeValue(k,l,_),T=ewe.getPositionOnKdePath(k,l,g),z=A._offset,O=A._length;M[C+"0"]=T[0],M[C+"1"]=T[1],M[E+"0"]=M[E+"1"]=g,M[E+"Label"]=E+": "+Y2t.hoverLabelText(L,_,l[E+"hoverformat"])+", "+s[0].t.labels.kde+" "+P.toFixed(3);for(var V=0,G=0;G{"use strict";iwe.exports={attributes:DG(),layoutAttributes:OG(),supplyDefaults:B2e(),crossTraceDefaults:b4().crossTraceDefaults,supplyLayoutDefaults:U2e(),calc:H2e(),crossTraceCalc:X2e(),plot:Y2e(),style:$2e(),styleOnSelect:ap().styleOnSelect,hoverPoints:rwe(),selectPoints:zV(),moduleType:"trace",name:"violin",basePlotModule:vh(),categories:["cartesian","svg","symbols","oriented","box-violin","showLegend","violinLayout","zoomScale"],meta:{}}});var owe=ye((tcr,awe)=>{"use strict";awe.exports=nwe()});var lwe=ye((rcr,swe)=>{"use strict";swe.exports={eventDataKeys:["percentInitial","percentPrevious","percentTotal"]}});var jG=ye((icr,fwe)=>{"use strict";var jc=Lm(),HG=pf().line,K2t=Vl(),uwe=df().axisHoverFormat,J2t=Qo().hovertemplateAttrs,$2t=Qo().texttemplateAttrs,cwe=lwe(),Ny=Ao().extendFlat,Q2t=Ca();fwe.exports={x:jc.x,x0:jc.x0,dx:jc.dx,y:jc.y,y0:jc.y0,dy:jc.dy,xperiod:jc.xperiod,yperiod:jc.yperiod,xperiod0:jc.xperiod0,yperiod0:jc.yperiod0,xperiodalignment:jc.xperiodalignment,yperiodalignment:jc.yperiodalignment,xhoverformat:uwe("x"),yhoverformat:uwe("y"),hovertext:jc.hovertext,hovertemplate:J2t({},{keys:cwe.eventDataKeys}),hoverinfo:Ny({},K2t.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:$2t({editType:"plot"},{keys:cwe.eventDataKeys.concat(["label","value"])}),text:jc.text,textposition:jc.textposition,insidetextanchor:Ny({},jc.insidetextanchor,{dflt:"middle"}),textangle:Ny({},jc.textangle,{dflt:0}),textfont:jc.textfont,insidetextfont:jc.insidetextfont,outsidetextfont:jc.outsidetextfont,constraintext:jc.constraintext,cliponaxis:jc.cliponaxis,orientation:Ny({},jc.orientation,{}),offset:Ny({},jc.offset,{arrayOk:!1}),width:Ny({},jc.width,{arrayOk:!1}),marker:ewt(),connector:{fillcolor:{valType:"color",editType:"style"},line:{color:Ny({},HG.color,{dflt:Q2t.defaultLine}),width:Ny({},HG.width,{dflt:0,editType:"plot"}),dash:HG.dash,editType:"style"},visible:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},offsetgroup:jc.offsetgroup,alignmentgroup:jc.alignmentgroup,zorder:jc.zorder};function ewt(){var e=Ny({},jc.marker);return delete e.pattern,delete e.cornerradius,e}});var WG=ye((ncr,hwe)=>{"use strict";hwe.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 ZG=ye((acr,vwe)=>{"use strict";var F8=Dr(),twt=Gb(),rwt=r0().handleText,iwt=K3(),nwt=Pg(),dwe=jG(),XG=Ca();function awt(e,t,r,n){function i(f,h){return F8.coerce(e,t,dwe,f,h)}var a=iwt(e,t,n,i);if(!a){t.visible=!1;return}nwt(e,t,n,i),i("xhoverformat"),i("yhoverformat"),i("orientation",t.y&&!t.x?"v":"h"),i("offset"),i("width");var o=i("text");i("hovertext"),i("hovertemplate");var s=i("textposition");rwt(e,t,n,i,s,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),t.textposition!=="none"&&!t.texttemplate&&i("textinfo",F8.isArrayOrTypedArray(o)?"text+value":"value");var l=i("marker.color",r);i("marker.line.color",XG.defaultLine),i("marker.line.width");var u=i("connector.visible");if(u){i("connector.fillcolor",owt(l));var c=i("connector.line.width");c&&(i("connector.line.color"),i("connector.line.dash"))}i("zorder")}function owt(e){var t=F8.isArrayOrTypedArray(e)?"#000":e;return XG.addOpacity(t,.5*XG.opacity(t))}function swt(e,t){var r,n;function i(o){return F8.coerce(n._input,n,dwe,o)}for(var a=0;a{"use strict";var lwt=Dr(),uwt=WG();pwe.exports=function(e,t,r){var n=!1;function i(s,l){return lwt.coerce(e,t,uwt,s,l)}for(var a=0;a{"use strict";var UT=Dr();mwe.exports=function(t,r){for(var n=0;n{"use strict";var _we=ho(),xwe=Rg(),cwt=ywe(),fwt=z0(),F4=hs().BADNUM;bwe.exports=function(t,r){var n=_we.getFromId(t,r.xaxis||"x"),i=_we.getFromId(t,r.yaxis||"y"),a,o,s,l,u,c,f,h;r.orientation==="h"?(a=n.makeCalcdata(r,"x"),s=i.makeCalcdata(r,"y"),l=xwe(r,i,"y",s),u=!!r.yperiodalignment,c="y"):(a=i.makeCalcdata(r,"y"),s=n.makeCalcdata(r,"x"),l=xwe(r,n,"x",s),u=!!r.xperiodalignment,c="x"),o=l.vals;var d=Math.min(o.length,a.length),v=new Array(d);for(r._base=[],f=0;f{"use strict";var Twe=Hb().setGroupPositions;Awe.exports=function(t,r){var n=t._fullLayout,i=t._fullData,a=t.calcdata,o=r.xaxis,s=r.yaxis,l=[],u=[],c=[],f,h;for(h=0;h{"use strict";var z8=Oa(),P_=Dr(),Mwe=So(),L_=hs().BADNUM,hwt=i2(),dwt=_v().clearMinTextSize;Cwe.exports=function(t,r,n,i){var a=t._fullLayout;dwt("funnel",a),vwt(t,r,n,i),pwt(t,r,n,i),hwt.plot(t,r,n,i,{mode:a.funnelmode,norm:a.funnelmode,gap:a.funnelgap,groupgap:a.funnelgroupgap})};function vwt(e,t,r,n){var i=t.xaxis,a=t.yaxis;P_.makeTraceGroups(n,r,"trace bars").each(function(o){var s=z8.select(this),l=o[0].trace,u=P_.ensureSingle(s,"g","regions");if(!l.connector||!l.connector.visible){u.remove();return}var c=l.orientation==="h",f=u.selectAll("g.region").data(P_.identity);f.enter().append("g").classed("region",!0),f.exit().remove();var h=f.size();f.each(function(d,v){if(!(v!==h-1&&!d.cNext)){var x=Ewe(d,i,a,c),b=x[0],p=x[1],C="";b[0]!==L_&&p[0]!==L_&&b[1]!==L_&&p[1]!==L_&&b[2]!==L_&&p[2]!==L_&&b[3]!==L_&&p[3]!==L_&&(c?C+="M"+b[0]+","+p[1]+"L"+b[2]+","+p[2]+"H"+b[3]+"L"+b[1]+","+p[1]+"Z":C+="M"+b[1]+","+p[1]+"L"+b[2]+","+p[3]+"V"+p[2]+"L"+b[1]+","+p[0]+"Z"),C===""&&(C="M0,0Z"),P_.ensureSingle(z8.select(this),"path").attr("d",C).call(Mwe.setClipUrl,t.layerClipId,e)}})})}function pwt(e,t,r,n){var i=t.xaxis,a=t.yaxis;P_.makeTraceGroups(n,r,"trace bars").each(function(o){var s=z8.select(this),l=o[0].trace,u=P_.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(P_.identity);f.enter().append("g").classed("line",!0),f.exit().remove();var h=f.size();f.each(function(d,v){if(!(v!==h-1&&!d.cNext)){var x=Ewe(d,i,a,c),b=x[0],p=x[1],C="";b[3]!==void 0&&p[3]!==void 0&&(c?(C+="M"+b[0]+","+p[1]+"L"+b[2]+","+p[2],C+="M"+b[1]+","+p[1]+"L"+b[3]+","+p[2]):(C+="M"+b[1]+","+p[1]+"L"+b[2]+","+p[3],C+="M"+b[1]+","+p[0]+"L"+b[2]+","+p[2])),C===""&&(C="M0,0Z"),P_.ensureSingle(z8.select(this),"path").attr("d",C).call(Mwe.setClipUrl,t.layerClipId,e)}})})}function Ewe(e,t,r,n){var i=[],a=[],o=n?t:r,s=n?r:t;return i[0]=o.c2p(e.s0,!0),a[0]=s.c2p(e.p0,!0),i[1]=o.c2p(e.s1,!0),a[1]=s.c2p(e.p1,!0),i[2]=o.c2p(e.nextS0,!0),a[2]=s.c2p(e.nextP0,!0),i[3]=o.c2p(e.nextS1,!0),a[3]=s.c2p(e.nextP1,!0),n?[i,a]:[a,i]}});var Iwe=ye((fcr,Pwe)=>{"use strict";var z4=Oa(),Lwe=So(),KG=Ca(),gwt=U1().DESELECTDIM,mwt=N0(),ywt=_v().resizeText,_wt=mwt.styleTextPoints;function xwt(e,t,r){var n=r||z4.select(e).selectAll('g[class^="funnellayer"]').selectAll("g.trace");ywt(e,n,"funnel"),n.style("opacity",function(i){return i[0].trace.opacity}),n.each(function(i){var a=z4.select(this),o=i[0].trace;a.selectAll(".point > path").each(function(s){if(!s.isBlank){var l=o.marker;z4.select(this).call(KG.fill,s.mc||l.color).call(KG.stroke,s.mlc||l.line.color).call(Lwe.dashLine,l.line.dash,s.mlw||l.line.width).style("opacity",o.selectedpoints&&!s.selected?gwt:1)}}),_wt(a,o,e),a.selectAll(".regions").each(function(){z4.select(this).selectAll("path").style("stroke-width",0).call(KG.fill,o.connector.fillcolor)}),a.selectAll(".lines").each(function(){var s=o.connector.line;Lwe.lineGroupStyle(z4.select(this).selectAll("path"),s.width,s.color,s.dash)})})}Pwe.exports={style:xwt}});var Fwe=ye((hcr,Dwe)=>{"use strict";var Rwe=Ca().opacity,bwt=TT().hoverOnBars,JG=Dr().formatPercent;Dwe.exports=function(t,r,n,i,a){var o=bwt(t,r,n,i,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=JG(f.begR,1),o.percentPrevious=f.difR,o.percentPreviousLabel=JG(f.difR,1),o.percentTotal=f.sumR,o.percentTotalLabel=JG(f.sumR,1);var d=f.hi||l.hoverinfo,v=[];if(d&&d!=="none"&&d!=="skip"){var x=d==="all",b=d.split("+"),p=function(C){return x||b.indexOf(C)!==-1};p("percent initial")&&v.push(o.percentInitialLabel+" of initial"),p("percent previous")&&v.push(o.percentPreviousLabel+" of previous"),p("percent total")&&v.push(o.percentTotalLabel+" of total")}return o.extraText=v.join("
"),o.color=wwt(l,f),[o]}};function wwt(e,t){var r=e.marker,n=t.mc||r.color,i=t.mlc||r.line.color,a=t.mlw||r.line.width;if(Rwe(n))return n;if(Rwe(i)&&a)return i}});var Owe=ye((dcr,zwe)=>{"use strict";zwe.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 Bwe=ye((vcr,qwe)=>{"use strict";qwe.exports={attributes:jG(),layoutAttributes:WG(),supplyDefaults:ZG().supplyDefaults,crossTraceDefaults:ZG().crossTraceDefaults,supplyLayoutDefaults:gwe(),calc:wwe(),crossTraceCalc:Swe(),plot:kwe(),style:Iwe().style,hoverPoints:Fwe(),eventData:Owe(),selectPoints:AT(),moduleType:"trace",name:"funnel",basePlotModule:vh(),categories:["bar-like","cartesian","svg","oriented","showLegend","zoomScale"],meta:{}}});var Uwe=ye((pcr,Nwe)=>{"use strict";Nwe.exports=Bwe()});var Gwe=ye((gcr,Vwe)=>{"use strict";Vwe.exports={eventDataKeys:["initial","delta","final"]}});var eH=ye((mcr,Wwe)=>{"use strict";var _c=Lm(),$G=pf().line,Twt=Vl(),Hwe=df().axisHoverFormat,Awt=Qo().hovertemplateAttrs,Swt=Qo().texttemplateAttrs,jwe=Gwe(),VT=Ao().extendFlat,Mwt=Ca();function QG(e){return{marker:{color:VT({},_c.marker.color,{arrayOk:!1,editType:"style"}),line:{color:VT({},_c.marker.line.color,{arrayOk:!1,editType:"style"}),width:VT({},_c.marker.line.width,{arrayOk:!1,editType:"style"}),editType:"style"},editType:"style"},editType:"style"}}Wwe.exports={measure:{valType:"data_array",dflt:[],editType:"calc"},base:{valType:"number",dflt:null,arrayOk:!1,editType:"calc"},x:_c.x,x0:_c.x0,dx:_c.dx,y:_c.y,y0:_c.y0,dy:_c.dy,xperiod:_c.xperiod,yperiod:_c.yperiod,xperiod0:_c.xperiod0,yperiod0:_c.yperiod0,xperiodalignment:_c.xperiodalignment,yperiodalignment:_c.yperiodalignment,xhoverformat:Hwe("x"),yhoverformat:Hwe("y"),hovertext:_c.hovertext,hovertemplate:Awt({},{keys:jwe.eventDataKeys}),hoverinfo:VT({},Twt.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:Swt({editType:"plot"},{keys:jwe.eventDataKeys.concat(["label"])}),text:_c.text,textposition:_c.textposition,insidetextanchor:_c.insidetextanchor,textangle:_c.textangle,textfont:_c.textfont,insidetextfont:_c.insidetextfont,outsidetextfont:_c.outsidetextfont,constraintext:_c.constraintext,cliponaxis:_c.cliponaxis,orientation:_c.orientation,offset:_c.offset,width:_c.width,increasing:QG("increasing"),decreasing:QG("decreasing"),totals:QG("intermediate sums and total"),connector:{line:{color:VT({},$G.color,{dflt:Mwt.defaultLine}),width:VT({},$G.width,{editType:"plot"}),dash:$G.dash,editType:"plot"},mode:{valType:"enumerated",values:["spanning","between"],dflt:"between",editType:"plot"},visible:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},offsetgroup:_c.offsetgroup,alignmentgroup:_c.alignmentgroup,zorder:_c.zorder}});var tH=ye((ycr,Xwe)=>{"use strict";Xwe.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 GT=ye((_cr,Zwe)=>{"use strict";Zwe.exports={INCREASING:{COLOR:"#3D9970",SYMBOL:"\u25B2"},DECREASING:{COLOR:"#FF4136",SYMBOL:"\u25BC"}}});var iH=ye((xcr,$we)=>{"use strict";var Ywe=Dr(),Ewt=Gb(),Cwt=r0().handleText,kwt=K3(),Lwt=Pg(),Kwe=eH(),Pwt=Ca(),Jwe=GT(),Iwt=Jwe.INCREASING.COLOR,Rwt=Jwe.DECREASING.COLOR,Dwt="#4499FF";function rH(e,t,r){e(t+".marker.color",r),e(t+".marker.line.color",Pwt.defaultLine),e(t+".marker.line.width")}function Fwt(e,t,r,n){function i(u,c){return Ywe.coerce(e,t,Kwe,u,c)}var a=kwt(e,t,n,i);if(!a){t.visible=!1;return}Lwt(e,t,n,i),i("xhoverformat"),i("yhoverformat"),i("measure"),i("orientation",t.x&&!t.y?"h":"v"),i("base"),i("offset"),i("width"),i("text"),i("hovertext"),i("hovertemplate");var o=i("textposition");Cwt(e,t,n,i,o,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),t.textposition!=="none"&&(i("texttemplate"),t.texttemplate||i("textinfo")),rH(i,"increasing",Iwt),rH(i,"decreasing",Rwt),rH(i,"totals",Dwt);var s=i("connector.visible");if(s){i("connector.mode");var l=i("connector.line.width");l&&(i("connector.line.color"),i("connector.line.dash"))}i("zorder")}function zwt(e,t){var r,n;function i(o){return Ywe.coerce(n._input,n,Kwe,o)}if(t.waterfallmode==="group")for(var a=0;a{"use strict";var Owt=Dr(),qwt=tH();Qwe.exports=function(e,t,r){var n=!1;function i(s,l){return Owt.coerce(e,t,qwt,s,l)}for(var a=0;a{"use strict";var t3e=ho(),r3e=Rg(),i3e=Dr().mergeArray,Bwt=z0(),n3e=hs().BADNUM;function nH(e){return e==="a"||e==="absolute"}function aH(e){return e==="t"||e==="total"}a3e.exports=function(t,r){var n=t3e.getFromId(t,r.xaxis||"x"),i=t3e.getFromId(t,r.yaxis||"y"),a,o,s,l,u,c;r.orientation==="h"?(a=n.makeCalcdata(r,"x"),s=i.makeCalcdata(r,"y"),l=r3e(r,i,"y",s),u=!!r.yperiodalignment,c="y"):(a=i.makeCalcdata(r,"y"),s=n.makeCalcdata(r,"x"),l=r3e(r,n,"x",s),u=!!r.xperiodalignment,c="x"),o=l.vals;for(var f=Math.min(o.length,a.length),h=new Array(f),d=0,v,x=!1,b=0;b{"use strict";var s3e=Hb().setGroupPositions;l3e.exports=function(t,r){var n=t._fullLayout,i=t._fullData,a=t.calcdata,o=r.xaxis,s=r.yaxis,l=[],u=[],c=[],f,h;for(h=0;h{"use strict";var c3e=Oa(),O8=Dr(),Nwt=So(),HT=hs().BADNUM,Uwt=i2(),Vwt=_v().clearMinTextSize;f3e.exports=function(t,r,n,i){var a=t._fullLayout;Vwt("waterfall",a),Uwt.plot(t,r,n,i,{mode:a.waterfallmode,norm:a.waterfallmode,gap:a.waterfallgap,groupgap:a.waterfallgroupgap}),Gwt(t,r,n,i)};function Gwt(e,t,r,n){var i=t.xaxis,a=t.yaxis;O8.makeTraceGroups(n,r,"trace bars").each(function(o){var s=c3e.select(this),l=o[0].trace,u=O8.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(O8.identity);h.enter().append("g").classed("line",!0),h.exit().remove();var d=h.size();h.each(function(v,x){if(!(x!==d-1&&!v.cNext)){var b=Hwt(v,i,a,c),p=b[0],C=b[1],E="";p[0]!==HT&&C[0]!==HT&&p[1]!==HT&&C[1]!==HT&&(f==="spanning"&&!v.isSum&&x>0&&(c?E+="M"+p[0]+","+C[1]+"V"+C[0]:E+="M"+p[1]+","+C[0]+"H"+p[0]),f!=="between"&&(v.isSum||x{"use strict";var q8=Oa(),d3e=So(),v3e=Ca(),jwt=U1().DESELECTDIM,Wwt=N0(),Xwt=_v().resizeText,Zwt=Wwt.styleTextPoints;function Ywt(e,t,r){var n=r||q8.select(e).selectAll('g[class^="waterfalllayer"]').selectAll("g.trace");Xwt(e,n,"waterfall"),n.style("opacity",function(i){return i[0].trace.opacity}),n.each(function(i){var a=q8.select(this),o=i[0].trace;a.selectAll(".point > path").each(function(s){if(!s.isBlank){var l=o[s.dir].marker;q8.select(this).call(v3e.fill,l.color).call(v3e.stroke,l.line.color).call(d3e.dashLine,l.line.dash,l.line.width).style("opacity",o.selectedpoints&&!s.selected?jwt:1)}}),Zwt(a,o,e),a.selectAll(".lines").each(function(){var s=o.connector.line;d3e.lineGroupStyle(q8.select(this).selectAll("path"),s.width,s.color,s.dash)})})}p3e.exports={style:Ywt}});var b3e=ye((Mcr,x3e)=>{"use strict";var Kwt=ho().hoverLabelText,m3e=Ca().opacity,Jwt=TT().hoverOnBars,y3e=GT(),_3e={increasing:y3e.INCREASING.SYMBOL,decreasing:y3e.DECREASING.SYMBOL};x3e.exports=function(t,r,n,i,a){var o=Jwt(t,r,n,i,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(_){return Kwt(f,_,l[c+"hoverformat"])}var d=o.index,v=s[d],x=v.isSum?v.b+v.s:v.rawS;o.initial=v.b+v.s-x,o.delta=x,o.final=o.initial+o.delta;var b=h(Math.abs(o.delta));o.deltaLabel=x<0?"("+b+")":b,o.finalLabel=h(o.final),o.initialLabel=h(o.initial);var p=v.hi||l.hoverinfo,C=[];if(p&&p!=="none"&&p!=="skip"){var E=p==="all",A=p.split("+"),L=function(_){return E||A.indexOf(_)!==-1};v.isSum||(L("final")&&(u?!L("x"):!L("y"))&&C.push(o.finalLabel),L("delta")&&(x<0?C.push(o.deltaLabel+" "+_3e.decreasing):C.push(o.deltaLabel+" "+_3e.increasing)),L("initial")&&C.push("Initial: "+o.initialLabel))}return C.length&&(o.extraText=C.join("
")),o.color=$wt(l,v),[o]};function $wt(e,t){var r=e[t.dir].marker,n=r.color,i=r.line.color,a=r.line.width;if(m3e(n))return n;if(m3e(i)&&a)return i}});var T3e=ye((Ecr,w3e)=>{"use strict";w3e.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 S3e=ye((Ccr,A3e)=>{"use strict";A3e.exports={attributes:eH(),layoutAttributes:tH(),supplyDefaults:iH().supplyDefaults,crossTraceDefaults:iH().crossTraceDefaults,supplyLayoutDefaults:e3e(),calc:o3e(),crossTraceCalc:u3e(),plot:h3e(),style:g3e().style,hoverPoints:b3e(),eventData:T3e(),selectPoints:AT(),moduleType:"trace",name:"waterfall",basePlotModule:vh(),categories:["bar-like","cartesian","svg","oriented","showLegend","zoomScale"],meta:{}}});var E3e=ye((kcr,M3e)=>{"use strict";M3e.exports=S3e()});var jT=ye((Lcr,C3e)=>{"use strict";C3e.exports={colormodel:{rgb:{min:[0,0,0],max:[255,255,255],fmt:function(e){return e.slice(0,3)},suffix:["","",""]},rgba:{min:[0,0,0,0],max:[255,255,255,1],fmt:function(e){return 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:function(e){return e.slice(0,4)},suffix:["","","",""]},hsl:{min:[0,0,0],max:[360,100,100],fmt:function(e){var 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:function(e){var t=e.slice(0,4);return t[1]=t[1]+"%",t[2]=t[2]+"%",t},suffix:["\xB0","%","%",""]}}}});var oH=ye((Pcr,L3e)=>{"use strict";var Qwt=Vl(),e3t=pf().zorder,t3t=Qo().hovertemplateAttrs,k3e=Ao().extendFlat,r3t=jT().colormodel,q4=["rgb","rgba","rgba256","hsl","hsla"],i3t=[],n3t=[];for(WT=0;WT{"use strict";var a3t=Dr(),o3t=oH(),P3e=jT(),s3t=Ly().IMAGE_URL_PREFIX;I3e.exports=function(t,r){function n(o,s){return a3t.coerce(t,r,o3t,o,s)}n("source"),r.source&&!r.source.match(s3t)&&delete r.source,r._hasSource=!!r.source;var i=n("z");if(r._hasZ=!(i===void 0||!i.length||!i[0]||!i[0].length),!r._hasZ&&!r._hasSource){r.visible=!1;return}n("x0"),n("y0"),n("dx"),n("dy");var a;r._hasZ?(n("colormodel","rgb"),a=P3e.colormodel[r.colormodel],n("zmin",a.zminDflt||a.min),n("zmax",a.zmaxDflt||a.max)):r._hasSource&&(r.colormodel="rgba256",a=P3e.colormodel[r.colormodel],r.zmin=a.zminDflt,r.zmax=a.zmaxDflt),n("zsmooth"),n("text"),n("hovertext"),n("hovertemplate"),r._length=null,n("zorder")}});var Uy=ye((Rcr,sH)=>{typeof Object.create=="function"?sH.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:sH.exports=function(t,r){if(r){t.super_=r;var n=function(){};n.prototype=r.prototype,t.prototype=new n,t.prototype.constructor=t}}});var lH=ye((Dcr,D3e)=>{D3e.exports=vb().EventEmitter});var O3e=ye(B8=>{"use strict";B8.byteLength=u3t;B8.toByteArray=f3t;B8.fromByteArray=v3t;var zm=[],X0=[],l3t=typeof Uint8Array!="undefined"?Uint8Array:Array,uH="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(s2=0,F3e=uH.length;s20)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");r===-1&&(r=t);var n=r===t?0:4-r%4;return[r,n]}function u3t(e){var t=z3e(e),r=t[0],n=t[1];return(r+n)*3/4-n}function c3t(e,t,r){return(t+r)*3/4-r}function f3t(e){var t,r=z3e(e),n=r[0],i=r[1],a=new l3t(c3t(e,n,i)),o=0,s=i>0?n-4:n,l;for(l=0;l>16&255,a[o++]=t>>8&255,a[o++]=t&255;return i===2&&(t=X0[e.charCodeAt(l)]<<2|X0[e.charCodeAt(l+1)]>>4,a[o++]=t&255),i===1&&(t=X0[e.charCodeAt(l)]<<10|X0[e.charCodeAt(l+1)]<<4|X0[e.charCodeAt(l+2)]>>2,a[o++]=t>>8&255,a[o++]=t&255),a}function h3t(e){return zm[e>>18&63]+zm[e>>12&63]+zm[e>>6&63]+zm[e&63]}function d3t(e,t,r){for(var n,i=[],a=t;as?s:o+a));return n===1?(t=e[r-1],i.push(zm[t>>2]+zm[t<<4&63]+"==")):n===2&&(t=(e[r-2]<<8)+e[r-1],i.push(zm[t>>10]+zm[t>>4&63]+zm[t<<2&63]+"=")),i.join("")}});var q3e=ye(cH=>{cH.read=function(e,t,r,n,i){var a,o,s=i*8-n-1,l=(1<>1,c=-7,f=r?i-1:0,h=r?-1:1,d=e[t+f];for(f+=h,a=d&(1<<-c)-1,d>>=-c,c+=s;c>0;a=a*256+e[t+f],f+=h,c-=8);for(o=a&(1<<-c)-1,a>>=-c,c+=n;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:(d?-1:1)*(1/0);o=o+Math.pow(2,n),a=a-u}return(d?-1:1)*o*Math.pow(2,a-n)};cH.write=function(e,t,r,n,i,a){var o,s,l,u=a*8-i-1,c=(1<>1,h=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:a-1,v=n?1:-1,x=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,i),o=o+f):(s=t*Math.pow(2,f-1)*Math.pow(2,i),o=0));i>=8;e[r+d]=s&255,d+=v,s/=256,i-=8);for(o=o<0;e[r+d]=o&255,d+=v,o/=256,u-=8);e[r+d-v]|=x*128}});var u2=ye(KT=>{"use strict";var fH=O3e(),ZT=q3e(),B3e=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;KT.Buffer=ta;KT.SlowBuffer=x3t;KT.INSPECT_MAX_BYTES=50;var N8=2147483647;KT.kMaxLength=N8;ta.TYPED_ARRAY_SUPPORT=p3t();!ta.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 p3t(){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(ta.prototype,"parent",{enumerable:!0,get:function(){if(ta.isBuffer(this))return this.buffer}});Object.defineProperty(ta.prototype,"offset",{enumerable:!0,get:function(){if(ta.isBuffer(this))return this.byteOffset}});function Vy(e){if(e>N8)throw new RangeError('The value "'+e+'" is invalid for option "size"');let t=new Uint8Array(e);return Object.setPrototypeOf(t,ta.prototype),t}function ta(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 pH(e)}return G3e(e,t,r)}ta.poolSize=8192;function G3e(e,t,r){if(typeof e=="string")return m3t(e,t);if(ArrayBuffer.isView(e))return y3t(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(Om(e,ArrayBuffer)||e&&Om(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(Om(e,SharedArrayBuffer)||e&&Om(e.buffer,SharedArrayBuffer)))return dH(e,t,r);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let n=e.valueOf&&e.valueOf();if(n!=null&&n!==e)return ta.from(n,t,r);let i=_3t(e);if(i)return i;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return ta.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)}ta.from=function(e,t,r){return G3e(e,t,r)};Object.setPrototypeOf(ta.prototype,Uint8Array.prototype);Object.setPrototypeOf(ta,Uint8Array);function H3e(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 g3t(e,t,r){return H3e(e),e<=0?Vy(e):t!==void 0?typeof r=="string"?Vy(e).fill(t,r):Vy(e).fill(t):Vy(e)}ta.alloc=function(e,t,r){return g3t(e,t,r)};function pH(e){return H3e(e),Vy(e<0?0:gH(e)|0)}ta.allocUnsafe=function(e){return pH(e)};ta.allocUnsafeSlow=function(e){return pH(e)};function m3t(e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!ta.isEncoding(t))throw new TypeError("Unknown encoding: "+t);let r=j3e(e,t)|0,n=Vy(r),i=n.write(e,t);return i!==r&&(n=n.slice(0,i)),n}function hH(e){let t=e.length<0?0:gH(e.length)|0,r=Vy(t);for(let n=0;n=N8)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+N8.toString(16)+" bytes");return e|0}function x3t(e){return+e!=e&&(e=0),ta.alloc(+e)}ta.isBuffer=function(t){return t!=null&&t._isBuffer===!0&&t!==ta.prototype};ta.compare=function(t,r){if(Om(t,Uint8Array)&&(t=ta.from(t,t.offset,t.byteLength)),Om(r,Uint8Array)&&(r=ta.from(r,r.offset,r.byteLength)),!ta.isBuffer(t)||!ta.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===r)return 0;let n=t.length,i=r.length;for(let a=0,o=Math.min(n,i);ai.length?(ta.isBuffer(o)||(o=ta.from(o)),o.copy(i,a)):Uint8Array.prototype.set.call(i,o,a);else if(ta.isBuffer(o))o.copy(i,a);else throw new TypeError('"list" argument must be an Array of Buffers');a+=o.length}return i};function j3e(e,t){if(ta.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||Om(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,n=arguments.length>2&&arguments[2]===!0;if(!n&&r===0)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return vH(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return eTe(e).length;default:if(i)return n?-1:vH(e).length;t=(""+t).toLowerCase(),i=!0}}ta.byteLength=j3e;function b3t(e,t,r){let n=!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 P3t(this,t,r);case"utf8":case"utf-8":return X3e(this,t,r);case"ascii":return k3t(this,t,r);case"latin1":case"binary":return L3t(this,t,r);case"base64":return E3t(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I3t(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}ta.prototype._isBuffer=!0;function l2(e,t,r){let n=e[t];e[t]=e[r],e[r]=n}ta.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+=" ... "),""};B3e&&(ta.prototype[B3e]=ta.prototype.inspect);ta.prototype.compare=function(t,r,n,i,a){if(Om(t,Uint8Array)&&(t=ta.from(t,t.offset,t.byteLength)),!ta.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),n===void 0&&(n=t?t.length:0),i===void 0&&(i=0),a===void 0&&(a=this.length),r<0||n>t.length||i<0||a>this.length)throw new RangeError("out of range index");if(i>=a&&r>=n)return 0;if(i>=a)return-1;if(r>=n)return 1;if(r>>>=0,n>>>=0,i>>>=0,a>>>=0,this===t)return 0;let o=a-i,s=n-r,l=Math.min(o,s),u=this.slice(i,a),c=t.slice(r,n);for(let f=0;f2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,yH(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0)if(i)r=0;else return-1;if(typeof t=="string"&&(t=ta.from(t,n)),ta.isBuffer(t))return t.length===0?-1:N3e(e,t,r,n,i);if(typeof t=="number")return t=t&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):N3e(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function N3e(e,t,r,n,i){let a=1,o=e.length,s=t.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="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(i){let c=-1;for(u=r;uo&&(r=o-s),u=r;u>=0;u--){let c=!0;for(let f=0;fi&&(n=i)):n=i;let a=t.length;n>a/2&&(n=a/2);let o;for(o=0;o>>0,isFinite(n)?(n=n>>>0,i===void 0&&(i="utf8")):(i=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let a=this.length-r;if((n===void 0||n>a)&&(n=a),t.length>0&&(n<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");let o=!1;for(;;)switch(i){case"hex":return w3t(this,t,r,n);case"utf8":case"utf-8":return T3t(this,t,r,n);case"ascii":case"latin1":case"binary":return A3t(this,t,r,n);case"base64":return S3t(this,t,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M3t(this,t,r,n);default:if(o)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),o=!0}};ta.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function E3t(e,t,r){return t===0&&r===e.length?fH.fromByteArray(e):fH.fromByteArray(e.slice(t,r))}function X3e(e,t,r){r=Math.min(e.length,r);let n=[],i=t;for(;i239?4:a>223?3:a>191?2:1;if(i+s<=r){let l,u,c,f;switch(s){case 1:a<128&&(o=a);break;case 2:l=e[i+1],(l&192)===128&&(f=(a&31)<<6|l&63,f>127&&(o=f));break;case 3:l=e[i+1],u=e[i+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[i+1],u=e[i+2],c=e[i+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,n.push(o>>>10&1023|55296),o=56320|o&1023),n.push(o),i+=s}return C3t(n)}var U3e=4096;function C3t(e){let t=e.length;if(t<=U3e)return String.fromCharCode.apply(String,e);let r="",n=0;for(;nn)&&(r=n);let i="";for(let a=t;an&&(t=n),r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),rr)throw new RangeError("Trying to access beyond buffer length")}ta.prototype.readUintLE=ta.prototype.readUIntLE=function(t,r,n){t=t>>>0,r=r>>>0,n||ev(t,r,this.length);let i=this[t],a=1,o=0;for(;++o>>0,r=r>>>0,n||ev(t,r,this.length);let i=this[t+--r],a=1;for(;r>0&&(a*=256);)i+=this[t+--r]*a;return i};ta.prototype.readUint8=ta.prototype.readUInt8=function(t,r){return t=t>>>0,r||ev(t,1,this.length),this[t]};ta.prototype.readUint16LE=ta.prototype.readUInt16LE=function(t,r){return t=t>>>0,r||ev(t,2,this.length),this[t]|this[t+1]<<8};ta.prototype.readUint16BE=ta.prototype.readUInt16BE=function(t,r){return t=t>>>0,r||ev(t,2,this.length),this[t]<<8|this[t+1]};ta.prototype.readUint32LE=ta.prototype.readUInt32LE=function(t,r){return t=t>>>0,r||ev(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216};ta.prototype.readUint32BE=ta.prototype.readUInt32BE=function(t,r){return t=t>>>0,r||ev(t,4,this.length),this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])};ta.prototype.readBigUInt64LE=I_(function(t){t=t>>>0,YT(t,"offset");let r=this[t],n=this[t+7];(r===void 0||n===void 0)&&B4(t,this.length-8);let i=r+this[++t]*2**8+this[++t]*2**16+this[++t]*2**24,a=this[++t]+this[++t]*2**8+this[++t]*2**16+n*2**24;return BigInt(i)+(BigInt(a)<>>0,YT(t,"offset");let r=this[t],n=this[t+7];(r===void 0||n===void 0)&&B4(t,this.length-8);let i=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+n;return(BigInt(i)<>>0,r=r>>>0,n||ev(t,r,this.length);let i=this[t],a=1,o=0;for(;++o=a&&(i-=Math.pow(2,8*r)),i};ta.prototype.readIntBE=function(t,r,n){t=t>>>0,r=r>>>0,n||ev(t,r,this.length);let i=r,a=1,o=this[t+--i];for(;i>0&&(a*=256);)o+=this[t+--i]*a;return a*=128,o>=a&&(o-=Math.pow(2,8*r)),o};ta.prototype.readInt8=function(t,r){return t=t>>>0,r||ev(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]};ta.prototype.readInt16LE=function(t,r){t=t>>>0,r||ev(t,2,this.length);let n=this[t]|this[t+1]<<8;return n&32768?n|4294901760:n};ta.prototype.readInt16BE=function(t,r){t=t>>>0,r||ev(t,2,this.length);let n=this[t+1]|this[t]<<8;return n&32768?n|4294901760:n};ta.prototype.readInt32LE=function(t,r){return t=t>>>0,r||ev(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24};ta.prototype.readInt32BE=function(t,r){return t=t>>>0,r||ev(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]};ta.prototype.readBigInt64LE=I_(function(t){t=t>>>0,YT(t,"offset");let r=this[t],n=this[t+7];(r===void 0||n===void 0)&&B4(t,this.length-8);let i=this[t+4]+this[t+5]*2**8+this[t+6]*2**16+(n<<24);return(BigInt(i)<>>0,YT(t,"offset");let r=this[t],n=this[t+7];(r===void 0||n===void 0)&&B4(t,this.length-8);let i=(r<<24)+this[++t]*2**16+this[++t]*2**8+this[++t];return(BigInt(i)<>>0,r||ev(t,4,this.length),ZT.read(this,t,!0,23,4)};ta.prototype.readFloatBE=function(t,r){return t=t>>>0,r||ev(t,4,this.length),ZT.read(this,t,!1,23,4)};ta.prototype.readDoubleLE=function(t,r){return t=t>>>0,r||ev(t,8,this.length),ZT.read(this,t,!0,52,8)};ta.prototype.readDoubleBE=function(t,r){return t=t>>>0,r||ev(t,8,this.length),ZT.read(this,t,!1,52,8)};function Ip(e,t,r,n,i,a){if(!ta.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}ta.prototype.writeUintLE=ta.prototype.writeUIntLE=function(t,r,n,i){if(t=+t,r=r>>>0,n=n>>>0,!i){let s=Math.pow(2,8*n)-1;Ip(this,t,r,n,s,0)}let a=1,o=0;for(this[r]=t&255;++o>>0,n=n>>>0,!i){let s=Math.pow(2,8*n)-1;Ip(this,t,r,n,s,0)}let a=n-1,o=1;for(this[r+a]=t&255;--a>=0&&(o*=256);)this[r+a]=t/o&255;return r+n};ta.prototype.writeUint8=ta.prototype.writeUInt8=function(t,r,n){return t=+t,r=r>>>0,n||Ip(this,t,r,1,255,0),this[r]=t&255,r+1};ta.prototype.writeUint16LE=ta.prototype.writeUInt16LE=function(t,r,n){return t=+t,r=r>>>0,n||Ip(this,t,r,2,65535,0),this[r]=t&255,this[r+1]=t>>>8,r+2};ta.prototype.writeUint16BE=ta.prototype.writeUInt16BE=function(t,r,n){return t=+t,r=r>>>0,n||Ip(this,t,r,2,65535,0),this[r]=t>>>8,this[r+1]=t&255,r+2};ta.prototype.writeUint32LE=ta.prototype.writeUInt32LE=function(t,r,n){return t=+t,r=r>>>0,n||Ip(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};ta.prototype.writeUint32BE=ta.prototype.writeUInt32BE=function(t,r,n){return t=+t,r=r>>>0,n||Ip(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 Z3e(e,t,r,n,i){Q3e(t,n,i,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 Y3e(e,t,r,n,i){Q3e(t,n,i,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}ta.prototype.writeBigUInt64LE=I_(function(t,r=0){return Z3e(this,t,r,BigInt(0),BigInt("0xffffffffffffffff"))});ta.prototype.writeBigUInt64BE=I_(function(t,r=0){return Y3e(this,t,r,BigInt(0),BigInt("0xffffffffffffffff"))});ta.prototype.writeIntLE=function(t,r,n,i){if(t=+t,r=r>>>0,!i){let l=Math.pow(2,8*n-1);Ip(this,t,r,n,l-1,-l)}let a=0,o=1,s=0;for(this[r]=t&255;++a>0)-s&255;return r+n};ta.prototype.writeIntBE=function(t,r,n,i){if(t=+t,r=r>>>0,!i){let l=Math.pow(2,8*n-1);Ip(this,t,r,n,l-1,-l)}let a=n-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+n};ta.prototype.writeInt8=function(t,r,n){return t=+t,r=r>>>0,n||Ip(this,t,r,1,127,-128),t<0&&(t=255+t+1),this[r]=t&255,r+1};ta.prototype.writeInt16LE=function(t,r,n){return t=+t,r=r>>>0,n||Ip(this,t,r,2,32767,-32768),this[r]=t&255,this[r+1]=t>>>8,r+2};ta.prototype.writeInt16BE=function(t,r,n){return t=+t,r=r>>>0,n||Ip(this,t,r,2,32767,-32768),this[r]=t>>>8,this[r+1]=t&255,r+2};ta.prototype.writeInt32LE=function(t,r,n){return t=+t,r=r>>>0,n||Ip(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};ta.prototype.writeInt32BE=function(t,r,n){return t=+t,r=r>>>0,n||Ip(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};ta.prototype.writeBigInt64LE=I_(function(t,r=0){return Z3e(this,t,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});ta.prototype.writeBigInt64BE=I_(function(t,r=0){return Y3e(this,t,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function K3e(e,t,r,n,i,a){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function J3e(e,t,r,n,i){return t=+t,r=r>>>0,i||K3e(e,t,r,4,34028234663852886e22,-34028234663852886e22),ZT.write(e,t,r,n,23,4),r+4}ta.prototype.writeFloatLE=function(t,r,n){return J3e(this,t,r,!0,n)};ta.prototype.writeFloatBE=function(t,r,n){return J3e(this,t,r,!1,n)};function $3e(e,t,r,n,i){return t=+t,r=r>>>0,i||K3e(e,t,r,8,17976931348623157e292,-17976931348623157e292),ZT.write(e,t,r,n,52,8),r+8}ta.prototype.writeDoubleLE=function(t,r,n){return $3e(this,t,r,!0,n)};ta.prototype.writeDoubleBE=function(t,r,n){return $3e(this,t,r,!1,n)};ta.prototype.copy=function(t,r,n,i){if(!ta.isBuffer(t))throw new TypeError("argument should be a Buffer");if(n||(n=0),!i&&i!==0&&(i=this.length),r>=t.length&&(r=t.length),r||(r=0),i>0&&i=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-r>>0,n=n===void 0?this.length:n>>>0,t||(t=0);let a;if(typeof t=="number")for(a=r;a2**32?i=V3e(String(r)):typeof r=="bigint"&&(i=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(i=V3e(i)),i+="n"),n+=` It must be ${t}. Received ${i}`,n},RangeError);function V3e(e){let t="",r=e.length,n=e[0]==="-"?1:0;for(;r>=n+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function R3t(e,t,r){YT(t,"offset"),(e[t]===void 0||e[t+r]===void 0)&&B4(t,e.length-(r+1))}function Q3e(e,t,r,n,i,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 XT.ERR_OUT_OF_RANGE("value",s,e)}R3t(n,i,a)}function YT(e,t){if(typeof e!="number")throw new XT.ERR_INVALID_ARG_TYPE(t,"number",e)}function B4(e,t,r){throw Math.floor(e)!==e?(YT(e,r),new XT.ERR_OUT_OF_RANGE(r||"offset","an integer",e)):t<0?new XT.ERR_BUFFER_OUT_OF_BOUNDS:new XT.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${t}`,e)}var D3t=/[^+/0-9A-Za-z-_]/g;function F3t(e){if(e=e.split("=")[0],e=e.trim().replace(D3t,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function vH(e,t){t=t||1/0;let r,n=e.length,i=null,a=[];for(let o=0;o55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&a.push(239,191,189);continue}else if(o+1===n){(t-=3)>-1&&a.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&a.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=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 z3t(e){let t=[];for(let r=0;r>8,i=r%256,a.push(i),a.push(n);return a}function eTe(e){return fH.toByteArray(F3t(e))}function U8(e,t,r,n){let i;for(i=0;i=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function Om(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function yH(e){return e!==e}var q3t=function(){let e="0123456789abcdef",t=new Array(256);for(let r=0;r<16;++r){let n=r*16;for(let i=0;i<16;++i)t[n+i]=e[r]+e[i]}return t}();function I_(e){return typeof BigInt=="undefined"?B3t:e}function B3t(){throw new Error("BigInt not supported")}});var V8=ye((Bcr,tTe)=>{"use strict";tTe.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var i=42;t[r]=i;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!==i||s.enumerable!==!0)return!1}return!0}});var N4=ye((Ncr,rTe)=>{"use strict";var N3t=V8();rTe.exports=function(){return N3t()&&!!Symbol.toStringTag}});var _H=ye((Ucr,iTe)=>{"use strict";iTe.exports=Object});var aTe=ye((Vcr,nTe)=>{"use strict";nTe.exports=Error});var sTe=ye((Gcr,oTe)=>{"use strict";oTe.exports=EvalError});var uTe=ye((Hcr,lTe)=>{"use strict";lTe.exports=RangeError});var fTe=ye((jcr,cTe)=>{"use strict";cTe.exports=ReferenceError});var xH=ye((Wcr,hTe)=>{"use strict";hTe.exports=SyntaxError});var JT=ye((Xcr,dTe)=>{"use strict";dTe.exports=TypeError});var pTe=ye((Zcr,vTe)=>{"use strict";vTe.exports=URIError});var mTe=ye((Ycr,gTe)=>{"use strict";gTe.exports=Math.abs});var _Te=ye((Kcr,yTe)=>{"use strict";yTe.exports=Math.floor});var bTe=ye((Jcr,xTe)=>{"use strict";xTe.exports=Math.max});var TTe=ye(($cr,wTe)=>{"use strict";wTe.exports=Math.min});var STe=ye((Qcr,ATe)=>{"use strict";ATe.exports=Math.pow});var ETe=ye((efr,MTe)=>{"use strict";MTe.exports=Math.round});var kTe=ye((tfr,CTe)=>{"use strict";CTe.exports=Number.isNaN||function(t){return t!==t}});var PTe=ye((rfr,LTe)=>{"use strict";var U3t=kTe();LTe.exports=function(t){return U3t(t)||t===0?t:t<0?-1:1}});var RTe=ye((ifr,ITe)=>{"use strict";ITe.exports=Object.getOwnPropertyDescriptor});var c2=ye((nfr,DTe)=>{"use strict";var G8=RTe();if(G8)try{G8([],"length")}catch(e){G8=null}DTe.exports=G8});var U4=ye((afr,FTe)=>{"use strict";var H8=Object.defineProperty||!1;if(H8)try{H8({},"a",{value:1})}catch(e){H8=!1}FTe.exports=H8});var qTe=ye((ofr,OTe)=>{"use strict";var zTe=typeof Symbol!="undefined"&&Symbol,V3t=V8();OTe.exports=function(){return typeof zTe!="function"||typeof Symbol!="function"||typeof zTe("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:V3t()}});var bH=ye((sfr,BTe)=>{"use strict";BTe.exports=typeof Reflect!="undefined"&&Reflect.getPrototypeOf||null});var wH=ye((lfr,NTe)=>{"use strict";var G3t=_H();NTe.exports=G3t.getPrototypeOf||null});var GTe=ye((ufr,VTe)=>{"use strict";var H3t="Function.prototype.bind called on incompatible ",j3t=Object.prototype.toString,W3t=Math.max,X3t="[object Function]",UTe=function(t,r){for(var n=[],i=0;i{"use strict";var K3t=GTe();HTe.exports=Function.prototype.bind||K3t});var j8=ye((ffr,jTe)=>{"use strict";jTe.exports=Function.prototype.call});var TH=ye((hfr,WTe)=>{"use strict";WTe.exports=Function.prototype.apply});var ZTe=ye((dfr,XTe)=>{"use strict";XTe.exports=typeof Reflect!="undefined"&&Reflect&&Reflect.apply});var KTe=ye((vfr,YTe)=>{"use strict";var J3t=$T(),$3t=TH(),Q3t=j8(),eTt=ZTe();YTe.exports=eTt||J3t.call(Q3t,$3t)});var $Te=ye((pfr,JTe)=>{"use strict";var tTt=$T(),rTt=JT(),iTt=j8(),nTt=KTe();JTe.exports=function(t){if(t.length<1||typeof t[0]!="function")throw new rTt("a function is required");return nTt(tTt,iTt,t)}});var nAe=ye((gfr,iAe)=>{"use strict";var aTt=$Te(),QTe=c2(),tAe;try{tAe=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!="object"||!("code"in e)||e.code!=="ERR_PROTO_ACCESS")throw e}var AH=!!tAe&&QTe&&QTe(Object.prototype,"__proto__"),rAe=Object,eAe=rAe.getPrototypeOf;iAe.exports=AH&&typeof AH.get=="function"?aTt([AH.get]):typeof eAe=="function"?function(t){return eAe(t==null?t:rAe(t))}:!1});var uAe=ye((mfr,lAe)=>{"use strict";var aAe=bH(),oAe=wH(),sAe=nAe();lAe.exports=aAe?function(t){return aAe(t)}:oAe?function(t){if(!t||typeof t!="object"&&typeof t!="function")throw new TypeError("getProto: not an object");return oAe(t)}:sAe?function(t){return sAe(t)}:null});var fAe=ye((yfr,cAe)=>{"use strict";var oTt=Function.prototype.call,sTt=Object.prototype.hasOwnProperty,lTt=$T();cAe.exports=lTt.call(oTt,sTt)});var Z8=ye((_fr,mAe)=>{"use strict";var uu,uTt=_H(),cTt=aTe(),fTt=sTe(),hTt=uTe(),dTt=fTe(),rA=xH(),tA=JT(),vTt=pTe(),pTt=mTe(),gTt=_Te(),mTt=bTe(),yTt=TTe(),_Tt=STe(),xTt=ETe(),bTt=PTe(),pAe=Function,SH=function(e){try{return pAe('"use strict"; return ('+e+").constructor;")()}catch(t){}},V4=c2(),wTt=U4(),MH=function(){throw new tA},TTt=V4?function(){try{return arguments.callee,MH}catch(e){try{return V4(arguments,"callee").get}catch(t){return MH}}}():MH,QT=qTe()(),tv=uAe(),ATt=wH(),STt=bH(),gAe=TH(),G4=j8(),eA={},MTt=typeof Uint8Array=="undefined"||!tv?uu:tv(Uint8Array),f2={__proto__:null,"%AggregateError%":typeof AggregateError=="undefined"?uu:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?uu:ArrayBuffer,"%ArrayIteratorPrototype%":QT&&tv?tv([][Symbol.iterator]()):uu,"%AsyncFromSyncIteratorPrototype%":uu,"%AsyncFunction%":eA,"%AsyncGenerator%":eA,"%AsyncGeneratorFunction%":eA,"%AsyncIteratorPrototype%":eA,"%Atomics%":typeof Atomics=="undefined"?uu:Atomics,"%BigInt%":typeof BigInt=="undefined"?uu:BigInt,"%BigInt64Array%":typeof BigInt64Array=="undefined"?uu:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array=="undefined"?uu:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?uu:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":cTt,"%eval%":eval,"%EvalError%":fTt,"%Float16Array%":typeof Float16Array=="undefined"?uu:Float16Array,"%Float32Array%":typeof Float32Array=="undefined"?uu:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?uu:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?uu:FinalizationRegistry,"%Function%":pAe,"%GeneratorFunction%":eA,"%Int8Array%":typeof Int8Array=="undefined"?uu:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?uu:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?uu:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":QT&&tv?tv(tv([][Symbol.iterator]())):uu,"%JSON%":typeof JSON=="object"?JSON:uu,"%Map%":typeof Map=="undefined"?uu:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!QT||!tv?uu:tv(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":uTt,"%Object.getOwnPropertyDescriptor%":V4,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?uu:Promise,"%Proxy%":typeof Proxy=="undefined"?uu:Proxy,"%RangeError%":hTt,"%ReferenceError%":dTt,"%Reflect%":typeof Reflect=="undefined"?uu:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?uu:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!QT||!tv?uu:tv(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?uu:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":QT&&tv?tv(""[Symbol.iterator]()):uu,"%Symbol%":QT?Symbol:uu,"%SyntaxError%":rA,"%ThrowTypeError%":TTt,"%TypedArray%":MTt,"%TypeError%":tA,"%Uint8Array%":typeof Uint8Array=="undefined"?uu:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?uu:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?uu:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?uu:Uint32Array,"%URIError%":vTt,"%WeakMap%":typeof WeakMap=="undefined"?uu:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?uu:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?uu:WeakSet,"%Function.prototype.call%":G4,"%Function.prototype.apply%":gAe,"%Object.defineProperty%":wTt,"%Object.getPrototypeOf%":ATt,"%Math.abs%":pTt,"%Math.floor%":gTt,"%Math.max%":mTt,"%Math.min%":yTt,"%Math.pow%":_Tt,"%Math.round%":xTt,"%Math.sign%":bTt,"%Reflect.getPrototypeOf%":STt};if(tv)try{null.error}catch(e){hAe=tv(tv(e)),f2["%Error.prototype%"]=hAe}var hAe,ETt=function e(t){var r;if(t==="%AsyncFunction%")r=SH("async function () {}");else if(t==="%GeneratorFunction%")r=SH("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=SH("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var i=e("%AsyncGenerator%");i&&tv&&(r=tv(i.prototype))}return f2[t]=r,r},dAe={__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"]},H4=$T(),W8=fAe(),CTt=H4.call(G4,Array.prototype.concat),kTt=H4.call(gAe,Array.prototype.splice),vAe=H4.call(G4,String.prototype.replace),X8=H4.call(G4,String.prototype.slice),LTt=H4.call(G4,RegExp.prototype.exec),PTt=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,ITt=/\\(\\)?/g,RTt=function(t){var r=X8(t,0,1),n=X8(t,-1);if(r==="%"&&n!=="%")throw new rA("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new rA("invalid intrinsic syntax, expected opening `%`");var i=[];return vAe(t,PTt,function(a,o,s,l){i[i.length]=s?vAe(l,ITt,"$1"):o||a}),i},DTt=function(t,r){var n=t,i;if(W8(dAe,n)&&(i=dAe[n],n="%"+i[0]+"%"),W8(f2,n)){var a=f2[n];if(a===eA&&(a=ETt(n)),typeof a=="undefined"&&!r)throw new tA("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:i,name:n,value:a}}throw new rA("intrinsic "+t+" does not exist!")};mAe.exports=function(t,r){if(typeof t!="string"||t.length===0)throw new tA("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new tA('"allowMissing" argument must be a boolean');if(LTt(/^%?[^%]*%?$/,t)===null)throw new rA("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=RTt(t),i=n.length>0?n[0]:"",a=DTt("%"+i+"%",r),o=a.name,s=a.value,l=!1,u=a.alias;u&&(i=u[0],kTt(n,CTt([0,1],u)));for(var c=1,f=!0;c=n.length){var x=V4(s,h);f=!!x,f&&"get"in x&&!("originalValue"in x.get)?s=x.get:s=s[h]}else f=W8(s,h),s=s[h];f&&!l&&(f2[o]=s)}}return s}});var bAe=ye((xfr,xAe)=>{"use strict";var yAe=U4(),FTt=xH(),iA=JT(),_Ae=c2();xAe.exports=function(t,r,n){if(!t||typeof t!="object"&&typeof t!="function")throw new iA("`obj` must be an object or a function`");if(typeof r!="string"&&typeof r!="symbol")throw new iA("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new iA("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new iA("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new iA("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new iA("`loose`, if provided, must be a boolean");var i=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=!!_Ae&&_Ae(t,r);if(yAe)yAe(t,r,{configurable:o===null&&l?l.configurable:!o,enumerable:i===null&&l?l.enumerable:!i,value:n,writable:a===null&&l?l.writable:!a});else if(s||!i&&!a&&!o)t[r]=n;else throw new FTt("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var CH=ye((bfr,TAe)=>{"use strict";var EH=U4(),wAe=function(){return!!EH};wAe.hasArrayLengthDefineBug=function(){if(!EH)return null;try{return EH([],"length",{value:1}).length!==1}catch(t){return!0}};TAe.exports=wAe});var CAe=ye((wfr,EAe)=>{"use strict";var zTt=Z8(),AAe=bAe(),OTt=CH()(),SAe=c2(),MAe=JT(),qTt=zTt("%Math.floor%");EAe.exports=function(t,r){if(typeof t!="function")throw new MAe("`fn` is not a function");if(typeof r!="number"||r<0||r>4294967295||qTt(r)!==r)throw new MAe("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],i=!0,a=!0;if("length"in t&&SAe){var o=SAe(t,"length");o&&!o.configurable&&(i=!1),o&&!o.writable&&(a=!1)}return(i||a||!n)&&(OTt?AAe(t,"length",r,!0,!0):AAe(t,"length",r)),t}});var j4=ye((Tfr,Y8)=>{"use strict";var kH=$T(),K8=Z8(),BTt=CAe(),NTt=JT(),PAe=K8("%Function.prototype.apply%"),IAe=K8("%Function.prototype.call%"),RAe=K8("%Reflect.apply%",!0)||kH.call(IAe,PAe),kAe=U4(),UTt=K8("%Math.max%");Y8.exports=function(t){if(typeof t!="function")throw new NTt("a function is required");var r=RAe(kH,IAe,arguments);return BTt(r,1+UTt(0,t.length-(arguments.length-1)),!0)};var LAe=function(){return RAe(kH,PAe,arguments)};kAe?kAe(Y8.exports,"apply",{value:LAe}):Y8.exports.apply=LAe});var nA=ye((Afr,zAe)=>{"use strict";var DAe=Z8(),FAe=j4(),VTt=FAe(DAe("String.prototype.indexOf"));zAe.exports=function(t,r){var n=DAe(t,!!r);return typeof n=="function"&&VTt(t,".prototype.")>-1?FAe(n):n}});var BAe=ye((Sfr,qAe)=>{"use strict";var GTt=N4()(),HTt=nA(),LH=HTt("Object.prototype.toString"),J8=function(t){return GTt&&t&&typeof t=="object"&&Symbol.toStringTag in t?!1:LH(t)==="[object Arguments]"},OAe=function(t){return J8(t)?!0:t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&LH(t)!=="[object Array]"&&LH(t.callee)==="[object Function]"},jTt=function(){return J8(arguments)}();J8.isLegacyArguments=OAe;qAe.exports=jTt?J8:OAe});var VAe=ye((Mfr,UAe)=>{"use strict";var WTt=Object.prototype.toString,XTt=Function.prototype.toString,ZTt=/^\s*(?:function)?\*/,NAe=N4()(),PH=Object.getPrototypeOf,YTt=function(){if(!NAe)return!1;try{return Function("return function*() {}")()}catch(e){}},IH;UAe.exports=function(t){if(typeof t!="function")return!1;if(ZTt.test(XTt.call(t)))return!0;if(!NAe){var r=WTt.call(t);return r==="[object GeneratorFunction]"}if(!PH)return!1;if(typeof IH=="undefined"){var n=YTt();IH=n?PH(n):!1}return PH(t)===IH}});var WAe=ye((Efr,jAe)=>{"use strict";var HAe=Function.prototype.toString,aA=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,DH,$8;if(typeof aA=="function"&&typeof Object.defineProperty=="function")try{DH=Object.defineProperty({},"length",{get:function(){throw $8}}),$8={},aA(function(){throw 42},null,DH)}catch(e){e!==$8&&(aA=null)}else aA=null;var KTt=/^\s*class\b/,FH=function(t){try{var r=HAe.call(t);return KTt.test(r)}catch(n){return!1}},RH=function(t){try{return FH(t)?!1:(HAe.call(t),!0)}catch(r){return!1}},Q8=Object.prototype.toString,JTt="[object Object]",$Tt="[object Function]",QTt="[object GeneratorFunction]",eAt="[object HTMLAllCollection]",tAt="[object HTML document.all class]",rAt="[object HTMLCollection]",iAt=typeof Symbol=="function"&&!!Symbol.toStringTag,nAt=!(0 in[,]),zH=function(){return!1};typeof document=="object"&&(GAe=document.all,Q8.call(GAe)===Q8.call(document.all)&&(zH=function(t){if((nAt||!t)&&(typeof t=="undefined"||typeof t=="object"))try{var r=Q8.call(t);return(r===eAt||r===tAt||r===rAt||r===JTt)&&t("")==null}catch(n){}return!1}));var GAe;jAe.exports=aA?function(t){if(zH(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;try{aA(t,null,DH)}catch(r){if(r!==$8)return!1}return!FH(t)&&RH(t)}:function(t){if(zH(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;if(iAt)return RH(t);if(FH(t))return!1;var r=Q8.call(t);return r!==$Tt&&r!==QTt&&!/^\[object HTML/.test(r)?!1:RH(t)}});var OH=ye((Cfr,ZAe)=>{"use strict";var aAt=WAe(),oAt=Object.prototype.toString,XAe=Object.prototype.hasOwnProperty,sAt=function(t,r,n){for(var i=0,a=t.length;i=3&&(i=n),oAt.call(t)==="[object Array]"?sAt(t,r,i):typeof t=="string"?lAt(t,r,i):uAt(t,r,i)};ZAe.exports=cAt});var BH=ye((kfr,YAe)=>{"use strict";var qH=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],fAt=typeof globalThis=="undefined"?window:globalThis;YAe.exports=function(){for(var t=[],r=0;r{"use strict";var tR=OH(),hAt=BH(),KAe=j4(),VH=nA(),eR=c2(),dAt=VH("Object.prototype.toString"),$Ae=N4()(),JAe=typeof globalThis=="undefined"?window:globalThis,UH=hAt(),GH=VH("String.prototype.slice"),NH=Object.getPrototypeOf,vAt=VH("Array.prototype.indexOf",!0)||function(t,r){for(var n=0;n-1?r:r!=="Object"?!1:gAt(t)}return eR?pAt(t):null}});var o5e=ye((Pfr,a5e)=>{"use strict";var t5e=OH(),mAt=BH(),jH=nA(),yAt=jH("Object.prototype.toString"),r5e=N4()(),iR=c2(),_At=typeof globalThis=="undefined"?window:globalThis,i5e=mAt(),xAt=jH("Array.prototype.indexOf",!0)||function(t,r){for(var n=0;n-1}return iR?wAt(t):!1}});var ZH=ye(cu=>{"use strict";var TAt=BAe(),AAt=VAe(),Gg=e5e(),s5e=o5e();function oA(e){return e.call.bind(e)}var l5e=typeof BigInt!="undefined",u5e=typeof Symbol!="undefined",Z0=oA(Object.prototype.toString),SAt=oA(Number.prototype.valueOf),MAt=oA(String.prototype.valueOf),EAt=oA(Boolean.prototype.valueOf);l5e&&(c5e=oA(BigInt.prototype.valueOf));var c5e;u5e&&(f5e=oA(Symbol.prototype.valueOf));var f5e;function X4(e,t){if(typeof e!="object")return!1;try{return t(e),!0}catch(r){return!1}}cu.isArgumentsObject=TAt;cu.isGeneratorFunction=AAt;cu.isTypedArray=s5e;function CAt(e){return typeof Promise!="undefined"&&e instanceof Promise||e!==null&&typeof e=="object"&&typeof e.then=="function"&&typeof e.catch=="function"}cu.isPromise=CAt;function kAt(e){return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?ArrayBuffer.isView(e):s5e(e)||d5e(e)}cu.isArrayBufferView=kAt;function LAt(e){return Gg(e)==="Uint8Array"}cu.isUint8Array=LAt;function PAt(e){return Gg(e)==="Uint8ClampedArray"}cu.isUint8ClampedArray=PAt;function IAt(e){return Gg(e)==="Uint16Array"}cu.isUint16Array=IAt;function RAt(e){return Gg(e)==="Uint32Array"}cu.isUint32Array=RAt;function DAt(e){return Gg(e)==="Int8Array"}cu.isInt8Array=DAt;function FAt(e){return Gg(e)==="Int16Array"}cu.isInt16Array=FAt;function zAt(e){return Gg(e)==="Int32Array"}cu.isInt32Array=zAt;function OAt(e){return Gg(e)==="Float32Array"}cu.isFloat32Array=OAt;function qAt(e){return Gg(e)==="Float64Array"}cu.isFloat64Array=qAt;function BAt(e){return Gg(e)==="BigInt64Array"}cu.isBigInt64Array=BAt;function NAt(e){return Gg(e)==="BigUint64Array"}cu.isBigUint64Array=NAt;function nR(e){return Z0(e)==="[object Map]"}nR.working=typeof Map!="undefined"&&nR(new Map);function UAt(e){return typeof Map=="undefined"?!1:nR.working?nR(e):e instanceof Map}cu.isMap=UAt;function aR(e){return Z0(e)==="[object Set]"}aR.working=typeof Set!="undefined"&&aR(new Set);function VAt(e){return typeof Set=="undefined"?!1:aR.working?aR(e):e instanceof Set}cu.isSet=VAt;function oR(e){return Z0(e)==="[object WeakMap]"}oR.working=typeof WeakMap!="undefined"&&oR(new WeakMap);function GAt(e){return typeof WeakMap=="undefined"?!1:oR.working?oR(e):e instanceof WeakMap}cu.isWeakMap=GAt;function XH(e){return Z0(e)==="[object WeakSet]"}XH.working=typeof WeakSet!="undefined"&&XH(new WeakSet);function HAt(e){return XH(e)}cu.isWeakSet=HAt;function sR(e){return Z0(e)==="[object ArrayBuffer]"}sR.working=typeof ArrayBuffer!="undefined"&&sR(new ArrayBuffer);function h5e(e){return typeof ArrayBuffer=="undefined"?!1:sR.working?sR(e):e instanceof ArrayBuffer}cu.isArrayBuffer=h5e;function lR(e){return Z0(e)==="[object DataView]"}lR.working=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"&&lR(new DataView(new ArrayBuffer(1),0,1));function d5e(e){return typeof DataView=="undefined"?!1:lR.working?lR(e):e instanceof DataView}cu.isDataView=d5e;var WH=typeof SharedArrayBuffer!="undefined"?SharedArrayBuffer:void 0;function W4(e){return Z0(e)==="[object SharedArrayBuffer]"}function v5e(e){return typeof WH=="undefined"?!1:(typeof W4.working=="undefined"&&(W4.working=W4(new WH)),W4.working?W4(e):e instanceof WH)}cu.isSharedArrayBuffer=v5e;function jAt(e){return Z0(e)==="[object AsyncFunction]"}cu.isAsyncFunction=jAt;function WAt(e){return Z0(e)==="[object Map Iterator]"}cu.isMapIterator=WAt;function XAt(e){return Z0(e)==="[object Set Iterator]"}cu.isSetIterator=XAt;function ZAt(e){return Z0(e)==="[object Generator]"}cu.isGeneratorObject=ZAt;function YAt(e){return Z0(e)==="[object WebAssembly.Module]"}cu.isWebAssemblyCompiledModule=YAt;function p5e(e){return X4(e,SAt)}cu.isNumberObject=p5e;function g5e(e){return X4(e,MAt)}cu.isStringObject=g5e;function m5e(e){return X4(e,EAt)}cu.isBooleanObject=m5e;function y5e(e){return l5e&&X4(e,c5e)}cu.isBigIntObject=y5e;function _5e(e){return u5e&&X4(e,f5e)}cu.isSymbolObject=_5e;function KAt(e){return p5e(e)||g5e(e)||m5e(e)||y5e(e)||_5e(e)}cu.isBoxedPrimitive=KAt;function JAt(e){return typeof Uint8Array!="undefined"&&(h5e(e)||v5e(e))}cu.isAnyArrayBuffer=JAt;["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(e){Object.defineProperty(cu,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})})});var YH=ye((Rfr,x5e)=>{x5e.exports=function(t){return t&&typeof t=="object"&&typeof t.copy=="function"&&typeof t.fill=="function"&&typeof t.readUInt8=="function"}});var tj=ye(fu=>{var b5e=Object.getOwnPropertyDescriptors||function(t){for(var r=Object.keys(t),n={},i=0;i=i)return s;switch(s){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(l){return"[Circular]"}default:return s}}),o=n[r];r=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),QH(t)?r.showHidden=t:t&&fu._extend(r,t),d2(r.showHidden)&&(r.showHidden=!1),d2(r.depth)&&(r.depth=2),d2(r.colors)&&(r.colors=!1),d2(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=QAt),hR(r,e,r.depth)}fu.inspect=R_;R_.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]};R_.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function QAt(e,t){var r=R_.styles[t];return r?"\x1B["+R_.colors[r][0]+"m"+e+"\x1B["+R_.colors[r][1]+"m":e}function e5t(e,t){return e}function t5t(e){var t={};return e.forEach(function(r,n){t[r]=!0}),t}function hR(e,t,r){if(e.customInspect&&t&&fR(t.inspect)&&t.inspect!==fu.inspect&&!(t.constructor&&t.constructor.prototype===t)){var n=t.inspect(r,e);return pR(n)||(n=hR(e,n,r)),n}var i=r5t(e,t);if(i)return i;var a=Object.keys(t),o=t5t(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(t)),Y4(t)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return KH(t);if(a.length===0){if(fR(t)){var s=t.name?": "+t.name:"";return e.stylize("[Function"+s+"]","special")}if(Z4(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(dR(t))return e.stylize(Date.prototype.toString.call(t),"date");if(Y4(t))return KH(t)}var l="",u=!1,c=["{","}"];if(T5e(t)&&(u=!0,c=["[","]"]),fR(t)){var f=t.name?": "+t.name:"";l=" [Function"+f+"]"}if(Z4(t)&&(l=" "+RegExp.prototype.toString.call(t)),dR(t)&&(l=" "+Date.prototype.toUTCString.call(t)),Y4(t)&&(l=" "+KH(t)),a.length===0&&(!u||t.length==0))return c[0]+l+c[1];if(r<0)return Z4(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special");e.seen.push(t);var h;return u?h=i5t(e,t,r,o,a):h=a.map(function(d){return $H(e,t,r,o,d,u)}),e.seen.pop(),n5t(h,l,c)}function r5t(e,t){if(d2(t))return e.stylize("undefined","undefined");if(pR(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(A5e(t))return e.stylize(""+t,"number");if(QH(t))return e.stylize(""+t,"boolean");if(vR(t))return e.stylize("null","null")}function KH(e){return"["+Error.prototype.toString.call(e)+"]"}function i5t(e,t,r,n,i){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")),d2(o)){if(a&&i.match(/^\d+$/))return s;o=JSON.stringify(""+i),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 n5t(e,t,r){var n=0,i=e.reduce(function(a,o){return n++,o.indexOf(` +`)>=0&&n++,a+o.replace(/\u001b\[\d\d?m/g,"").length+1},0);return i>60?r[0]+(t===""?"":t+` + `)+" "+e.join(`, + `)+" "+r[1]:r[0]+t+" "+e.join(", ")+" "+r[1]}fu.types=ZH();function T5e(e){return Array.isArray(e)}fu.isArray=T5e;function QH(e){return typeof e=="boolean"}fu.isBoolean=QH;function vR(e){return e===null}fu.isNull=vR;function a5t(e){return e==null}fu.isNullOrUndefined=a5t;function A5e(e){return typeof e=="number"}fu.isNumber=A5e;function pR(e){return typeof e=="string"}fu.isString=pR;function o5t(e){return typeof e=="symbol"}fu.isSymbol=o5t;function d2(e){return e===void 0}fu.isUndefined=d2;function Z4(e){return sA(e)&&ej(e)==="[object RegExp]"}fu.isRegExp=Z4;fu.types.isRegExp=Z4;function sA(e){return typeof e=="object"&&e!==null}fu.isObject=sA;function dR(e){return sA(e)&&ej(e)==="[object Date]"}fu.isDate=dR;fu.types.isDate=dR;function Y4(e){return sA(e)&&(ej(e)==="[object Error]"||e instanceof Error)}fu.isError=Y4;fu.types.isNativeError=Y4;function fR(e){return typeof e=="function"}fu.isFunction=fR;function s5t(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e=="undefined"}fu.isPrimitive=s5t;fu.isBuffer=YH();function ej(e){return Object.prototype.toString.call(e)}function JH(e){return e<10?"0"+e.toString(10):e.toString(10)}var l5t=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function u5t(){var e=new Date,t=[JH(e.getHours()),JH(e.getMinutes()),JH(e.getSeconds())].join(":");return[e.getDate(),l5t[e.getMonth()],t].join(" ")}fu.log=function(){console.log("%s - %s",u5t(),fu.format.apply(fu,arguments))};fu.inherits=Uy();fu._extend=function(e,t){if(!t||!sA(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e};function S5e(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var h2=typeof Symbol!="undefined"?Symbol("util.promisify.custom"):void 0;fu.promisify=function(t){if(typeof t!="function")throw new TypeError('The "original" argument must be of type Function');if(h2&&t[h2]){var r=t[h2];if(typeof r!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(r,h2,{value:r,enumerable:!1,writable:!1,configurable:!0}),r}function r(){for(var n,i,a=new Promise(function(l,u){n=l,i=u}),o=[],s=0;s{"use strict";function M5e(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function h5t(e){for(var t=1;t0?this.tail.next=n:this.head=n,this.tail=n,++this.length}},{key:"unshift",value:function(r){var n={data:r,next:this.head};this.length===0&&(this.tail=n),this.head=n,++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 n=this.head,i=""+n.data;n=n.next;)i+=r+n.data;return i}},{key:"concat",value:function(r){if(this.length===0)return gR.alloc(0);for(var n=gR.allocUnsafe(r>>>0),i=this.head,a=0;i;)_5t(i.data,n,a),a+=i.data.length,i=i.next;return n}},{key:"consume",value:function(r,n){var i;return ro.length?o.length:r;if(s===o.length?a+=o:a+=o.slice(0,r),r-=s,r===0){s===o.length?(++i,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=o.slice(s));break}++i}return this.length-=i,a}},{key:"_getBuffer",value:function(r){var n=gR.allocUnsafe(r),i=this.head,a=1;for(i.data.copy(n),r-=i.data.length;i=i.next;){var o=i.data,s=r>o.length?o.length:r;if(o.copy(n,n.length-r,0,s),r-=s,r===0){s===o.length?(++a,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=o.slice(s));break}++a}return this.length-=a,n}},{key:y5t,value:function(r,n){return rj(this,h5t({},n,{depth:0,customInspect:!1}))}}]),e}()});var nj=ye((zfr,P5e)=>{"use strict";function x5t(e,t){var r=this,n=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return n||i?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(ij,this,e)):process.nextTick(ij,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(mR,r):(r._writableState.errorEmitted=!0,process.nextTick(L5e,r,a)):process.nextTick(L5e,r,a):t?(process.nextTick(mR,r),t(a)):process.nextTick(mR,r)}),this)}function L5e(e,t){ij(e,t),mR(e)}function mR(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function b5t(){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 ij(e,t){e.emit("error",t)}function w5t(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}P5e.exports={destroy:x5t,undestroy:b5t,errorOrDestroy:w5t}});var v2=ye((Ofr,D5e)=>{"use strict";function T5t(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var R5e={};function Y0(e,t,r){r||(r=Error);function n(a,o,s){return typeof t=="string"?t:t(a,o,s)}var i=function(a){T5t(o,a);function o(s,l,u){return a.call(this,n(s,l,u))||this}return o}(r);i.prototype.name=r.name,i.prototype.code=e,R5e[e]=i}function I5e(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map(function(n){return String(n)}),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 A5t(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function S5t(e,t,r){return(r===void 0||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function M5t(e,t,r){return typeof r!="number"&&(r=0),r+t.length>e.length?!1:e.indexOf(t,r)!==-1}Y0("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError);Y0("ERR_INVALID_ARG_TYPE",function(e,t,r){var n;typeof t=="string"&&A5t(t,"not ")?(n="must not be",t=t.replace(/^not /,"")):n="must be";var i;if(S5t(e," argument"))i="The ".concat(e," ").concat(n," ").concat(I5e(t,"type"));else{var a=M5t(e,".")?"property":"argument";i='The "'.concat(e,'" ').concat(a," ").concat(n," ").concat(I5e(t,"type"))}return i+=". Received type ".concat(typeof r),i},TypeError);Y0("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");Y0("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"});Y0("ERR_STREAM_PREMATURE_CLOSE","Premature close");Y0("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"});Y0("ERR_MULTIPLE_CALLBACK","Callback called multiple times");Y0("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");Y0("ERR_STREAM_WRITE_AFTER_END","write after end");Y0("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);Y0("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError);Y0("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");D5e.exports.codes=R5e});var aj=ye((qfr,F5e)=>{"use strict";var E5t=v2().codes.ERR_INVALID_OPT_VALUE;function C5t(e,t,r){return e.highWaterMark!=null?e.highWaterMark:t?e[r]:null}function k5t(e,t,r,n){var i=C5t(t,n,r);if(i!=null){if(!(isFinite(i)&&Math.floor(i)===i)||i<0){var a=n?r:"highWaterMark";throw new E5t(a,i)}return Math.floor(i)}return e.objectMode?16:16*1024}F5e.exports={getHighWaterMark:k5t}});var O5e=ye((Bfr,z5e)=>{z5e.exports=L5t;function L5t(e,t){if(oj("noDeprecation"))return e;var r=!1;function n(){if(!r){if(oj("throwDeprecation"))throw new Error(t);oj("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}return n}function oj(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 uj=ye((Nfr,G5e)=>{"use strict";G5e.exports=Rh;function B5e(e){var t=this;this.next=null,this.entry=null,this.finish=function(){iSt(t,e)}}var lA;Rh.WritableState=J4;var P5t={deprecate:O5e()},N5e=lH(),_R=u2().Buffer,I5t=window.Uint8Array||function(){};function R5t(e){return _R.from(e)}function D5t(e){return _R.isBuffer(e)||e instanceof I5t}var lj=nj(),F5t=aj(),z5t=F5t.getHighWaterMark,D_=v2().codes,O5t=D_.ERR_INVALID_ARG_TYPE,q5t=D_.ERR_METHOD_NOT_IMPLEMENTED,B5t=D_.ERR_MULTIPLE_CALLBACK,N5t=D_.ERR_STREAM_CANNOT_PIPE,U5t=D_.ERR_STREAM_DESTROYED,V5t=D_.ERR_STREAM_NULL_VALUES,G5t=D_.ERR_STREAM_WRITE_AFTER_END,H5t=D_.ERR_UNKNOWN_ENCODING,uA=lj.errorOrDestroy;Uy()(Rh,N5e);function j5t(){}function J4(e,t,r){lA=lA||p2(),e=e||{},typeof r!="boolean"&&(r=t instanceof lA),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=z5t(this,e,"writableHighWaterMark",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var n=e.decodeStrings===!1;this.decodeStrings=!n,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(i){$5t(t,i)},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 B5e(this)}J4.prototype.getBuffer=function(){for(var t=this.bufferedRequest,r=[];t;)r.push(t),t=t.next;return r};(function(){try{Object.defineProperty(J4.prototype,"buffer",{get:P5t.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}})();var yR;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(yR=Function.prototype[Symbol.hasInstance],Object.defineProperty(Rh,Symbol.hasInstance,{value:function(t){return yR.call(this,t)?!0:this!==Rh?!1:t&&t._writableState instanceof J4}})):yR=function(t){return t instanceof this};function Rh(e){lA=lA||p2();var t=this instanceof lA;if(!t&&!yR.call(Rh,this))return new Rh(e);this._writableState=new J4(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)),N5e.call(this)}Rh.prototype.pipe=function(){uA(this,new N5t)};function W5t(e,t){var r=new G5t;uA(e,r),process.nextTick(t,r)}function X5t(e,t,r,n){var i;return r===null?i=new V5t:typeof r!="string"&&!t.objectMode&&(i=new O5t("chunk",["string","Buffer"],r)),i?(uA(e,i),process.nextTick(n,i),!1):!0}Rh.prototype.write=function(e,t,r){var n=this._writableState,i=!1,a=!n.objectMode&&D5t(e);return a&&!_R.isBuffer(e)&&(e=R5t(e)),typeof t=="function"&&(r=t,t=null),a?t="buffer":t||(t=n.defaultEncoding),typeof r!="function"&&(r=j5t),n.ending?W5t(this,r):(a||X5t(this,n,e,r))&&(n.pendingcb++,i=Y5t(this,n,a,e,t,r)),i};Rh.prototype.cork=function(){this._writableState.corked++};Rh.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&U5e(this,e))};Rh.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 H5t(t);return this._writableState.defaultEncoding=t,this};Object.defineProperty(Rh.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function Z5t(e,t,r){return!e.objectMode&&e.decodeStrings!==!1&&typeof t=="string"&&(t=_R.from(t,r)),t}Object.defineProperty(Rh.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Y5t(e,t,r,n,i,a){if(!r){var o=Z5t(t,n,i);n!==o&&(r=!0,i="buffer",n=o)}var s=t.objectMode?1:n.length;t.length+=s;var l=t.length{"use strict";var nSt=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};j5e.exports=qm;var H5e=hj(),fj=uj();Uy()(qm,H5e);for(cj=nSt(fj.prototype),xR=0;xR{var wR=u2(),Bm=wR.Buffer;function W5e(e,t){for(var r in e)t[r]=e[r]}Bm.from&&Bm.alloc&&Bm.allocUnsafe&&Bm.allocUnsafeSlow?X5e.exports=wR:(W5e(wR,dj),dj.Buffer=g2);function g2(e,t,r){return Bm(e,t,r)}g2.prototype=Object.create(Bm.prototype);W5e(Bm,g2);g2.from=function(e,t,r){if(typeof e=="number")throw new TypeError("Argument must not be a number");return Bm(e,t,r)};g2.alloc=function(e,t,r){if(typeof e!="number")throw new TypeError("Argument must be a number");var n=Bm(e);return t!==void 0?typeof r=="string"?n.fill(t,r):n.fill(t):n.fill(0),n};g2.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return Bm(e)};g2.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return wR.SlowBuffer(e)}});var gj=ye(K5e=>{"use strict";var pj=Z5e().Buffer,Y5e=pj.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 sSt(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 lSt(e){var t=sSt(e);if(typeof t!="string"&&(pj.isEncoding===Y5e||!Y5e(e)))throw new Error("Unknown encoding: "+e);return t||e}K5e.StringDecoder=$4;function $4(e){this.encoding=lSt(e);var t;switch(this.encoding){case"utf16le":this.text=vSt,this.end=pSt,t=4;break;case"utf8":this.fillLast=fSt,t=4;break;case"base64":this.text=gSt,this.end=mSt,t=3;break;default:this.write=ySt,this.end=_St;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=pj.allocUnsafe(t)}$4.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 uSt(e,t,r){var n=t.length-1;if(n=0?(i>0&&(e.lastNeed=i-1),i):--n=0?(i>0&&(e.lastNeed=i-2),i):--n=0?(i>0&&(i===2?i=0:e.lastNeed=i-3),i):0))}function cSt(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 fSt(e){var t=this.lastTotal-this.lastNeed,r=cSt(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 hSt(e,t){var r=uSt(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)}function dSt(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"\uFFFD":t}function vSt(e,t){if((e.length-t)%2===0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=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 pSt(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 gSt(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 mSt(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function ySt(e){return e.toString(this.encoding)}function _St(e){return e&&e.length?this.write(e):""}});var TR=ye((Gfr,Q5e)=>{"use strict";var J5e=v2().codes.ERR_STREAM_PREMATURE_CLOSE;function xSt(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=new Array(r),i=0;i{"use strict";var AR;function F_(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var TSt=TR(),z_=Symbol("lastResolve"),m2=Symbol("lastReject"),Q4=Symbol("error"),SR=Symbol("ended"),y2=Symbol("lastPromise"),mj=Symbol("handlePromise"),_2=Symbol("stream");function O_(e,t){return{value:e,done:t}}function ASt(e){var t=e[z_];if(t!==null){var r=e[_2].read();r!==null&&(e[y2]=null,e[z_]=null,e[m2]=null,t(O_(r,!1)))}}function SSt(e){process.nextTick(ASt,e)}function MSt(e,t){return function(r,n){e.then(function(){if(t[SR]){r(O_(void 0,!0));return}t[mj](r,n)},n)}}var ESt=Object.getPrototypeOf(function(){}),CSt=Object.setPrototypeOf((AR={get stream(){return this[_2]},next:function(){var t=this,r=this[Q4];if(r!==null)return Promise.reject(r);if(this[SR])return Promise.resolve(O_(void 0,!0));if(this[_2].destroyed)return new Promise(function(o,s){process.nextTick(function(){t[Q4]?s(t[Q4]):o(O_(void 0,!0))})});var n=this[y2],i;if(n)i=new Promise(MSt(n,this));else{var a=this[_2].read();if(a!==null)return Promise.resolve(O_(a,!1));i=new Promise(this[mj])}return this[y2]=i,i}},F_(AR,Symbol.asyncIterator,function(){return this}),F_(AR,"return",function(){var t=this;return new Promise(function(r,n){t[_2].destroy(null,function(i){if(i){n(i);return}r(O_(void 0,!0))})})}),AR),ESt),kSt=function(t){var r,n=Object.create(CSt,(r={},F_(r,_2,{value:t,writable:!0}),F_(r,z_,{value:null,writable:!0}),F_(r,m2,{value:null,writable:!0}),F_(r,Q4,{value:null,writable:!0}),F_(r,SR,{value:t._readableState.endEmitted,writable:!0}),F_(r,mj,{value:function(a,o){var s=n[_2].read();s?(n[y2]=null,n[z_]=null,n[m2]=null,a(O_(s,!1))):(n[z_]=a,n[m2]=o)},writable:!0}),r));return n[y2]=null,TSt(t,function(i){if(i&&i.code!=="ERR_STREAM_PREMATURE_CLOSE"){var a=n[m2];a!==null&&(n[y2]=null,n[z_]=null,n[m2]=null,a(i)),n[Q4]=i;return}var o=n[z_];o!==null&&(n[y2]=null,n[z_]=null,n[m2]=null,o(O_(void 0,!0))),n[SR]=!0}),t.on("readable",SSt.bind(null,n)),n};eSe.exports=kSt});var iSe=ye((jfr,rSe)=>{rSe.exports=function(){throw new Error("Readable.from is not available in the browser")}});var hj=ye((Xfr,dSe)=>{"use strict";dSe.exports=Bu;var cA;Bu.ReadableState=sSe;var Wfr=vb().EventEmitter,oSe=function(t,r){return t.listeners(r).length},tE=lH(),MR=u2().Buffer,LSt=window.Uint8Array||function(){};function PSt(e){return MR.from(e)}function ISt(e){return MR.isBuffer(e)||e instanceof LSt}var yj=tj(),au;yj&&yj.debuglog?au=yj.debuglog("stream"):au=function(){};var RSt=k5e(),Sj=nj(),DSt=aj(),FSt=DSt.getHighWaterMark,ER=v2().codes,zSt=ER.ERR_INVALID_ARG_TYPE,OSt=ER.ERR_STREAM_PUSH_AFTER_EOF,qSt=ER.ERR_METHOD_NOT_IMPLEMENTED,BSt=ER.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,fA,_j,xj;Uy()(Bu,tE);var eE=Sj.errorOrDestroy,bj=["error","close","destroy","pause","resume"];function NSt(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 sSe(e,t,r){cA=cA||p2(),e=e||{},typeof r!="boolean"&&(r=t instanceof cA),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=FSt(this,e,"readableHighWaterMark",r),this.buffer=new RSt,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&&(fA||(fA=gj().StringDecoder),this.decoder=new fA(e.encoding),this.encoding=e.encoding)}function Bu(e){if(cA=cA||p2(),!(this instanceof Bu))return new Bu(e);var t=this instanceof cA;this._readableState=new sSe(e,this,t),this.readable=!0,e&&(typeof e.read=="function"&&(this._read=e.read),typeof e.destroy=="function"&&(this._destroy=e.destroy)),tE.call(this)}Object.defineProperty(Bu.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}});Bu.prototype.destroy=Sj.destroy;Bu.prototype._undestroy=Sj.undestroy;Bu.prototype._destroy=function(e,t){t(e)};Bu.prototype.push=function(e,t){var r=this._readableState,n;return r.objectMode?n=!0:typeof e=="string"&&(t=t||r.defaultEncoding,t!==r.encoding&&(e=MR.from(e,t),t=""),n=!0),lSe(this,e,t,!1,n)};Bu.prototype.unshift=function(e){return lSe(this,e,null,!0,!1)};function lSe(e,t,r,n,i){au("readableAddChunk",t);var a=e._readableState;if(t===null)a.reading=!1,GSt(e,a);else{var o;if(i||(o=USt(a,t)),o)eE(e,o);else if(a.objectMode||t&&t.length>0)if(typeof t!="string"&&!a.objectMode&&Object.getPrototypeOf(t)!==MR.prototype&&(t=PSt(t)),n)a.endEmitted?eE(e,new BSt):wj(e,a,t,!0);else if(a.ended)eE(e,new OSt);else{if(a.destroyed)return!1;a.reading=!1,a.decoder&&!r?(t=a.decoder.write(t),a.objectMode||t.length!==0?wj(e,a,t,!1):Aj(e,a)):wj(e,a,t,!1)}else n||(a.reading=!1,Aj(e,a))}return!a.ended&&(a.length=nSe?e=nSe:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function aSe(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=VSt(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}Bu.prototype.read=function(e){au("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 au("read: emitReadable",t.length,t.ended),t.length===0&&t.ended?Tj(this):CR(this),null;if(e=aSe(e,t),e===0&&t.ended)return t.length===0&&Tj(this),null;var n=t.needReadable;au("need readable",n),(t.length===0||t.length-e0?i=fSe(e,t):i=null,i===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&&Tj(this)),i!==null&&this.emit("data",i),i};function GSt(e,t){if(au("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?CR(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,uSe(e)))}}function CR(e){var t=e._readableState;au("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(au("emitReadable",t.flowing),t.emittedReadable=!0,process.nextTick(uSe,e))}function uSe(e){var t=e._readableState;au("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,Mj(e)}function Aj(e,t){t.readingMore||(t.readingMore=!0,process.nextTick(HSt,e,t))}function HSt(e,t){for(;!t.reading&&!t.ended&&(t.length1&&hSe(n.pipes,e)!==-1)&&!u&&(au("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function h(b){au("onerror",b),x(),e.removeListener("error",h),oSe(e,"error")===0&&eE(e,b)}NSt(e,"error",h);function d(){e.removeListener("finish",v),x()}e.once("close",d);function v(){au("onfinish"),e.removeListener("close",d),x()}e.once("finish",v);function x(){au("unpipe"),r.unpipe(e)}return e.emit("pipe",r),n.flowing||(au("pipe resume"),r.resume()),e};function jSt(e){return function(){var r=e._readableState;au("pipeOnDrain",r.awaitDrain),r.awaitDrain&&r.awaitDrain--,r.awaitDrain===0&&oSe(e,"data")&&(r.flowing=!0,Mj(e))}}Bu.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 n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a0,n.flowing!==!1&&this.resume()):e==="readable"&&!n.endEmitted&&!n.readableListening&&(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,au("on readable",n.length,n.reading),n.length?CR(this):n.reading||process.nextTick(WSt,this)),r};Bu.prototype.addListener=Bu.prototype.on;Bu.prototype.removeListener=function(e,t){var r=tE.prototype.removeListener.call(this,e,t);return e==="readable"&&process.nextTick(cSe,this),r};Bu.prototype.removeAllListeners=function(e){var t=tE.prototype.removeAllListeners.apply(this,arguments);return(e==="readable"||e===void 0)&&process.nextTick(cSe,this),t};function cSe(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 WSt(e){au("readable nexttick read 0"),e.read(0)}Bu.prototype.resume=function(){var e=this._readableState;return e.flowing||(au("resume"),e.flowing=!e.readableListening,XSt(this,e)),e.paused=!1,this};function XSt(e,t){t.resumeScheduled||(t.resumeScheduled=!0,process.nextTick(ZSt,e,t))}function ZSt(e,t){au("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),Mj(e),t.flowing&&!t.reading&&e.read(0)}Bu.prototype.pause=function(){return au("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(au("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function Mj(e){var t=e._readableState;for(au("flow",t.flowing);t.flowing&&e.read()!==null;);}Bu.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;e.on("end",function(){if(au("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(au("wrapped data"),r.decoder&&(o=r.decoder.write(o)),!(r.objectMode&&o==null)&&!(!r.objectMode&&(!o||!o.length))){var s=t.push(o);s||(n=!0,e.pause())}});for(var i in e)this[i]===void 0&&typeof e[i]=="function"&&(this[i]=function(s){return function(){return e[s].apply(e,arguments)}}(i));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 Tj(e){var t=e._readableState;au("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,process.nextTick(YSt,t,e))}function YSt(e,t){if(au("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"&&(Bu.from=function(e,t){return xj===void 0&&(xj=iSe()),xj(Bu,e,t)});function hSe(e,t){for(var r=0,n=e.length;r{"use strict";pSe.exports=Gy;var kR=v2().codes,KSt=kR.ERR_METHOD_NOT_IMPLEMENTED,JSt=kR.ERR_MULTIPLE_CALLBACK,$St=kR.ERR_TRANSFORM_ALREADY_TRANSFORMING,QSt=kR.ERR_TRANSFORM_WITH_LENGTH_0,LR=p2();Uy()(Gy,LR);function eMt(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(n===null)return this.emit("error",new JSt);r.writechunk=null,r.writecb=null,t!=null&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length{"use strict";mSe.exports=rE;var gSe=Ej();Uy()(rE,gSe);function rE(e){if(!(this instanceof rE))return new rE(e);gSe.call(this,e)}rE.prototype._transform=function(e,t,r){r(null,e)}});var TSe=ye((Kfr,wSe)=>{"use strict";var Cj;function rMt(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var bSe=v2().codes,iMt=bSe.ERR_MISSING_ARGS,nMt=bSe.ERR_STREAM_DESTROYED;function _Se(e){if(e)throw e}function aMt(e){return e.setHeader&&typeof e.abort=="function"}function oMt(e,t,r,n){n=rMt(n);var i=!1;e.on("close",function(){i=!0}),Cj===void 0&&(Cj=TR()),Cj(e,{readable:t,writable:r},function(o){if(o)return n(o);i=!0,n()});var a=!1;return function(o){if(!i&&!a){if(a=!0,aMt(e))return e.abort();if(typeof e.destroy=="function")return e.destroy();n(o||new nMt("pipe"))}}}function xSe(e){e()}function sMt(e,t){return e.pipe(t)}function lMt(e){return!e.length||typeof e[e.length-1]!="function"?_Se:e.pop()}function uMt(){for(var e=arguments.length,t=new Array(e),r=0;r0;return oMt(o,l,u,function(c){i||(i=c),c&&a.forEach(xSe),!l&&(a.forEach(xSe),n(i))})});return t.reduce(sMt)}wSe.exports=uMt});var SSe=ye((Jfr,ASe)=>{ASe.exports=K0;var kj=vb().EventEmitter,cMt=Uy();cMt(K0,kj);K0.Readable=hj();K0.Writable=uj();K0.Duplex=p2();K0.Transform=Ej();K0.PassThrough=ySe();K0.finished=TR();K0.pipeline=TSe();K0.Stream=K0;function K0(){kj.call(this)}K0.prototype.pipe=function(e,t){var r=this;function n(c){e.writable&&e.write(c)===!1&&r.pause&&r.pause()}r.on("data",n);function i(){r.readable&&r.resume&&r.resume()}e.on("drain",i),!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(),kj.listenerCount(this,"error")===0)throw c}r.on("error",l),e.on("error",l);function u(){r.removeListener("data",n),e.removeListener("drain",i),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 dA=ye(hu=>{var MSe=Object.getOwnPropertyDescriptors||function(t){for(var r=Object.keys(t),n={},i=0;i=i)return s;switch(s){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(l){return"[Circular]"}default:return s}}),o=n[r];r=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),Rj(t)?r.showHidden=t:t&&hu._extend(r,t),b2(r.showHidden)&&(r.showHidden=!1),b2(r.depth)&&(r.depth=2),b2(r.colors)&&(r.colors=!1),b2(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=hMt),DR(r,e,r.depth)}hu.inspect=q_;q_.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]};q_.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function hMt(e,t){var r=q_.styles[t];return r?"\x1B["+q_.colors[r][0]+"m"+e+"\x1B["+q_.colors[r][1]+"m":e}function dMt(e,t){return e}function vMt(e){var t={};return e.forEach(function(r,n){t[r]=!0}),t}function DR(e,t,r){if(e.customInspect&&t&&RR(t.inspect)&&t.inspect!==hu.inspect&&!(t.constructor&&t.constructor.prototype===t)){var n=t.inspect(r,e);return OR(n)||(n=DR(e,n,r)),n}var i=pMt(e,t);if(i)return i;var a=Object.keys(t),o=vMt(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(t)),nE(t)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return Lj(t);if(a.length===0){if(RR(t)){var s=t.name?": "+t.name:"";return e.stylize("[Function"+s+"]","special")}if(iE(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(FR(t))return e.stylize(Date.prototype.toString.call(t),"date");if(nE(t))return Lj(t)}var l="",u=!1,c=["{","}"];if(CSe(t)&&(u=!0,c=["[","]"]),RR(t)){var f=t.name?": "+t.name:"";l=" [Function"+f+"]"}if(iE(t)&&(l=" "+RegExp.prototype.toString.call(t)),FR(t)&&(l=" "+Date.prototype.toUTCString.call(t)),nE(t)&&(l=" "+Lj(t)),a.length===0&&(!u||t.length==0))return c[0]+l+c[1];if(r<0)return iE(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special");e.seen.push(t);var h;return u?h=gMt(e,t,r,o,a):h=a.map(function(d){return Ij(e,t,r,o,d,u)}),e.seen.pop(),mMt(h,l,c)}function pMt(e,t){if(b2(t))return e.stylize("undefined","undefined");if(OR(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(kSe(t))return e.stylize(""+t,"number");if(Rj(t))return e.stylize(""+t,"boolean");if(zR(t))return e.stylize("null","null")}function Lj(e){return"["+Error.prototype.toString.call(e)+"]"}function gMt(e,t,r,n,i){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")),b2(o)){if(a&&i.match(/^\d+$/))return s;o=JSON.stringify(""+i),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 mMt(e,t,r){var n=0,i=e.reduce(function(a,o){return n++,o.indexOf(` +`)>=0&&n++,a+o.replace(/\u001b\[\d\d?m/g,"").length+1},0);return i>60?r[0]+(t===""?"":t+` + `)+" "+e.join(`, + `)+" "+r[1]:r[0]+t+" "+e.join(", ")+" "+r[1]}hu.types=ZH();function CSe(e){return Array.isArray(e)}hu.isArray=CSe;function Rj(e){return typeof e=="boolean"}hu.isBoolean=Rj;function zR(e){return e===null}hu.isNull=zR;function yMt(e){return e==null}hu.isNullOrUndefined=yMt;function kSe(e){return typeof e=="number"}hu.isNumber=kSe;function OR(e){return typeof e=="string"}hu.isString=OR;function _Mt(e){return typeof e=="symbol"}hu.isSymbol=_Mt;function b2(e){return e===void 0}hu.isUndefined=b2;function iE(e){return hA(e)&&Dj(e)==="[object RegExp]"}hu.isRegExp=iE;hu.types.isRegExp=iE;function hA(e){return typeof e=="object"&&e!==null}hu.isObject=hA;function FR(e){return hA(e)&&Dj(e)==="[object Date]"}hu.isDate=FR;hu.types.isDate=FR;function nE(e){return hA(e)&&(Dj(e)==="[object Error]"||e instanceof Error)}hu.isError=nE;hu.types.isNativeError=nE;function RR(e){return typeof e=="function"}hu.isFunction=RR;function xMt(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e=="undefined"}hu.isPrimitive=xMt;hu.isBuffer=YH();function Dj(e){return Object.prototype.toString.call(e)}function Pj(e){return e<10?"0"+e.toString(10):e.toString(10)}var bMt=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function wMt(){var e=new Date,t=[Pj(e.getHours()),Pj(e.getMinutes()),Pj(e.getSeconds())].join(":");return[e.getDate(),bMt[e.getMonth()],t].join(" ")}hu.log=function(){console.log("%s - %s",wMt(),hu.format.apply(hu,arguments))};hu.inherits=Uy();hu._extend=function(e,t){if(!t||!hA(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e};function LSe(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var x2=typeof Symbol!="undefined"?Symbol("util.promisify.custom"):void 0;hu.promisify=function(t){if(typeof t!="function")throw new TypeError('The "original" argument must be of type Function');if(x2&&t[x2]){var r=t[x2];if(typeof r!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(r,x2,{value:r,enumerable:!1,writable:!1,configurable:!0}),r}function r(){for(var n,i,a=new Promise(function(l,u){n=l,i=u}),o=[],s=0;s{"use strict";function B_(e){"@babel/helpers - typeof";return B_=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},B_(e)}function PSe(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 DMt(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function FMt(e,t,r){return(r===void 0||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function zMt(e,t,r){return typeof r!="number"&&(r=0),r+t.length>e.length?!1:e.indexOf(t,r)!==-1}aE("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError);aE("ERR_INVALID_ARG_TYPE",function(e,t,r){vA===void 0&&(vA=oE()),vA(typeof e=="string","'name' must be a string");var n;typeof t=="string"&&DMt(t,"not ")?(n="must not be",t=t.replace(/^not /,"")):n="must be";var i;if(FMt(e," argument"))i="The ".concat(e," ").concat(n," ").concat(ISe(t,"type"));else{var a=zMt(e,".")?"property":"argument";i='The "'.concat(e,'" ').concat(a," ").concat(n," ").concat(ISe(t,"type"))}return i+=". Received type ".concat(B_(r)),i},TypeError);aE("ERR_INVALID_ARG_VALUE",function(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";Fj===void 0&&(Fj=dA());var n=Fj.inspect(t);return n.length>128&&(n="".concat(n.slice(0,128),"...")),"The argument '".concat(e,"' ").concat(r,". Received ").concat(n)},TypeError,RangeError);aE("ERR_INVALID_RETURN_VALUE",function(e,t,r){var n;return r&&r.constructor&&r.constructor.name?n="instance of ".concat(r.constructor.name):n="type ".concat(B_(r)),"Expected ".concat(e,' to be returned from the "').concat(t,'"')+" function but got ".concat(n,".")},TypeError);aE("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 n="The ",i=t.length;switch(t=t.map(function(a){return'"'.concat(a,'"')}),i){case 1:n+="".concat(t[0]," argument");break;case 2:n+="".concat(t[0]," and ").concat(t[1]," arguments");break;default:n+=t.slice(0,i-1).join(", "),n+=", and ".concat(t[i-1]," arguments");break}return"".concat(n," must be specified")},TypeError);DSe.exports.codes=RSe});var HSe=ye((ehr,GSe)=>{"use strict";function FSe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function zSe(e){for(var t=1;te.length)&&(r=e.length),e.substring(r-t.length,r)===t}function XMt(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 Hg="",sE="",lE="",xv="",w2={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:"},ZMt=10;function BSe(e){var t=Object.keys(e),r=Object.create(Object.getPrototypeOf(e));return t.forEach(function(n){r[n]=e[n]}),Object.defineProperty(r,"message",{value:e.message}),r}function uE(e){return Nj(e,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function YMt(e,t,r){var n="",i="",a=0,o="",s=!1,l=uE(e),u=l.split(` +`),c=uE(t).split(` +`),f=0,h="";if(r==="strictEqual"&&Rp(e)==="object"&&Rp(t)==="object"&&e!==null&&t!==null&&(r="strictEqualObject"),u.length===1&&c.length===1&&u[0]!==c[0]){var d=u[0].length+c[0].length;if(d<=ZMt){if((Rp(e)!=="object"||e===null)&&(Rp(t)!=="object"||t===null)&&(e!==0||t!==0))return"".concat(w2[r],` + +`)+"".concat(u[0]," !== ").concat(c[0],` +`)}else if(r!=="strictEqualObject"){var v=process.stderr&&process.stderr.isTTY?process.stderr.columns:80;if(d2&&(h=` + `.concat(XMt(" ",f),"^"),f=0)}}}for(var x=u[u.length-1],b=c[c.length-1];x===b&&(f++<2?o=` + `.concat(x).concat(o):n=x,u.pop(),c.pop(),!(u.length===0||c.length===0));)x=u[u.length-1],b=c[c.length-1];var p=Math.max(u.length,c.length);if(p===0){var C=l.split(` +`);if(C.length>30)for(C[26]="".concat(Hg,"...").concat(xv);C.length>27;)C.pop();return"".concat(w2.notIdentical,` + +`).concat(C.join(` +`),` +`)}f>3&&(o=` +`.concat(Hg,"...").concat(xv).concat(o),s=!0),n!==""&&(o=` + `.concat(n).concat(o),n="");var E=0,A=w2[r]+` +`.concat(sE,"+ actual").concat(xv," ").concat(lE,"- expected").concat(xv),L=" ".concat(Hg,"...").concat(xv," Lines skipped");for(f=0;f1&&f>2&&(_>4?(i+=` +`.concat(Hg,"...").concat(xv),s=!0):_>3&&(i+=` + `.concat(c[f-2]),E++),i+=` + `.concat(c[f-1]),E++),a=f,n+=` +`.concat(lE,"-").concat(xv," ").concat(c[f]),E++;else if(c.length1&&f>2&&(_>4?(i+=` +`.concat(Hg,"...").concat(xv),s=!0):_>3&&(i+=` + `.concat(u[f-2]),E++),i+=` + `.concat(u[f-1]),E++),a=f,i+=` +`.concat(sE,"+").concat(xv," ").concat(u[f]),E++;else{var k=c[f],M=u[f],g=M!==k&&(!qSe(M,",")||M.slice(0,-1)!==k);g&&qSe(k,",")&&k.slice(0,-1)===M&&(g=!1,M+=","),g?(_>1&&f>2&&(_>4?(i+=` +`.concat(Hg,"...").concat(xv),s=!0):_>3&&(i+=` + `.concat(u[f-2]),E++),i+=` + `.concat(u[f-1]),E++),a=f,i+=` +`.concat(sE,"+").concat(xv," ").concat(M),n+=` +`.concat(lE,"-").concat(xv," ").concat(k),E+=2):(i+=n,n="",(_===1||f===0)&&(i+=` + `.concat(M),E++))}if(E>20&&f30)for(d[26]="".concat(Hg,"...").concat(xv);d.length>27;)d.pop();d.length===1?a=r.call(this,"".concat(h," ").concat(d[0])):a=r.call(this,"".concat(h,` + +`).concat(d.join(` +`),` +`))}else{var v=uE(u),x="",b=w2[s];s==="notDeepEqual"||s==="notEqual"?(v="".concat(w2[s],` + +`).concat(v),v.length>1024&&(v="".concat(v.slice(0,1021),"..."))):(x="".concat(uE(c)),v.length>512&&(v="".concat(v.slice(0,509),"...")),x.length>512&&(x="".concat(x.slice(0,509),"...")),s==="deepEqual"||s==="equal"?v="".concat(b,` + +`).concat(v,` + +should equal + +`):x=" ".concat(s," ").concat(x)),a=r.call(this,"".concat(v).concat(x))}return Error.stackTraceLimit=f,a.generatedMessage=!o,Object.defineProperty(qj(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(qj(a),l),a.stack,a.name="AssertionError",USe(a)}return BMt(n,[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:t,value:function(a,o){return Nj(this,zSe(zSe({},o),{},{customInspect:!1,depth:0}))}}]),n}(Bj(Error),Nj.custom);GSe.exports=KMt});var Uj=ye((thr,WSe)=>{"use strict";var jSe=Object.prototype.toString;WSe.exports=function(t){var r=jSe.call(t),n=r==="[object Arguments]";return n||(n=r!=="[object Array]"&&t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&jSe.call(t.callee)==="[object Function]"),n}});var tMe=ye((rhr,eMe)=>{"use strict";var QSe;Object.keys||(hE=Object.prototype.hasOwnProperty,Vj=Object.prototype.toString,XSe=Uj(),Gj=Object.prototype.propertyIsEnumerable,ZSe=!Gj.call({toString:null},"toString"),YSe=Gj.call(function(){},"prototype"),dE=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],NR=function(e){var t=e.constructor;return t&&t.prototype===e},KSe={$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},JSe=function(){if(typeof window=="undefined")return!1;for(var e in window)try{if(!KSe["$"+e]&&hE.call(window,e)&&window[e]!==null&&typeof window[e]=="object")try{NR(window[e])}catch(t){return!0}}catch(t){return!0}return!1}(),$Se=function(e){if(typeof window=="undefined"||!JSe)return NR(e);try{return NR(e)}catch(t){return!1}},QSe=function(t){var r=t!==null&&typeof t=="object",n=Vj.call(t)==="[object Function]",i=XSe(t),a=r&&Vj.call(t)==="[object String]",o=[];if(!r&&!n&&!i)throw new TypeError("Object.keys called on a non-object");var s=YSe&&n;if(a&&t.length>0&&!hE.call(t,0))for(var l=0;l0)for(var u=0;u{"use strict";var JMt=Array.prototype.slice,$Mt=Uj(),rMe=Object.keys,UR=rMe?function(t){return rMe(t)}:tMe(),iMe=Object.keys;UR.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(n){return $Mt(n)?iMe(JMt.call(n)):iMe(n)})}else Object.keys=UR;return Object.keys||UR};nMe.exports=UR});var cMe=ye((nhr,uMe)=>{"use strict";var QMt=Hj(),sMe=V8()(),lMe=nA(),aMe=Object,e4t=lMe("Array.prototype.push"),oMe=lMe("Object.prototype.propertyIsEnumerable"),t4t=sMe?Object.getOwnPropertySymbols:null;uMe.exports=function(t,r){if(t==null)throw new TypeError("target must be an object");var n=aMe(t);if(arguments.length===1)return n;for(var i=1;i{"use strict";var jj=cMe(),r4t=function(){if(!Object.assign)return!1;for(var e="abcdefghijklmnopqrst",t=e.split(""),r={},n=0;n{"use strict";var dMe=function(e){return e!==e};vMe.exports=function(t,r){return t===0&&r===0?1/t===1/r:!!(t===r||dMe(t)&&dMe(r))}});var VR=ye((shr,pMe)=>{"use strict";var n4t=Wj();pMe.exports=function(){return typeof Object.is=="function"?Object.is:n4t}});var vE=ye((lhr,_Me)=>{"use strict";var a4t=Hj(),o4t=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",s4t=Object.prototype.toString,l4t=Array.prototype.concat,gMe=Object.defineProperty,u4t=function(e){return typeof e=="function"&&s4t.call(e)==="[object Function]"},c4t=CH()(),mMe=gMe&&c4t,f4t=function(e,t,r,n){if(t in e){if(n===!0){if(e[t]===r)return}else if(!u4t(n)||!n())return}mMe?gMe(e,t,{configurable:!0,enumerable:!1,value:r,writable:!0}):e[t]=r},yMe=function(e,t){var r=arguments.length>2?arguments[2]:{},n=a4t(t);o4t&&(n=l4t.call(n,Object.getOwnPropertySymbols(t)));for(var i=0;i{"use strict";var h4t=VR(),d4t=vE();xMe.exports=function(){var t=h4t();return d4t(Object,{is:t},{is:function(){return Object.is!==t}}),t}});var SMe=ye((chr,AMe)=>{"use strict";var v4t=vE(),p4t=j4(),g4t=Wj(),wMe=VR(),m4t=bMe(),TMe=p4t(wMe(),Object);v4t(TMe,{getPolyfill:wMe,implementation:g4t,shim:m4t});AMe.exports=TMe});var Xj=ye((fhr,MMe)=>{"use strict";MMe.exports=function(t){return t!==t}});var Zj=ye((hhr,EMe)=>{"use strict";var y4t=Xj();EMe.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:y4t}});var kMe=ye((dhr,CMe)=>{"use strict";var _4t=vE(),x4t=Zj();CMe.exports=function(){var t=x4t();return _4t(Number,{isNaN:t},{isNaN:function(){return Number.isNaN!==t}}),t}});var RMe=ye((vhr,IMe)=>{"use strict";var b4t=j4(),w4t=vE(),T4t=Xj(),LMe=Zj(),A4t=kMe(),PMe=b4t(LMe(),Number);w4t(PMe,{getPolyfill:LMe,implementation:T4t,shim:A4t});IMe.exports=PMe});var QMe=ye((phr,$Me)=>{"use strict";function DMe(e,t){return C4t(e)||E4t(e,t)||M4t(e,t)||S4t()}function S4t(){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 M4t(e,t){if(e){if(typeof e=="string")return FMe(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 FMe(e,t)}}function FMe(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r10)return!0;for(var t=0;t57)return!0}return e.length===10&&e>=Math.pow(2,32)}function jR(e){return Object.keys(e).filter(O4t).concat(XR(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))}function ZMe(e,t){if(e===t)return 0;for(var r=e.length,n=t.length,i=0,a=Math.min(r,n);i{"use strict";function jg(e){"@babel/helpers - typeof";return jg=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},jg(e)}function e4e(e,t){for(var r=0;r1?r-1:0),i=1;i1?r-1:0),i=1;i1?r-1:0),i=1;i1?r-1:0),i=1;i{var _E=1e3,xE=_E*60,bE=xE*60,wE=bE*24,uEt=wE*365.25;y4e.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0)return cEt(e);if(r==="number"&&isNaN(e)===!1)return t.long?hEt(e):fEt(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function cEt(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]),n=(t[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return r*uEt;case"days":case"day":case"d":return r*wE;case"hours":case"hour":case"hrs":case"hr":case"h":return r*bE;case"minutes":case"minute":case"mins":case"min":case"m":return r*xE;case"seconds":case"second":case"secs":case"sec":case"s":return r*_E;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function fEt(e){return e>=wE?Math.round(e/wE)+"d":e>=bE?Math.round(e/bE)+"h":e>=xE?Math.round(e/xE)+"m":e>=_E?Math.round(e/_E)+"s":e+"ms"}function hEt(e){return tD(e,wE,"day")||tD(e,bE,"hour")||tD(e,xE,"minute")||tD(e,_E,"second")||e+" ms"}function tD(e,t,r){if(!(e{Lc=x4e.exports=tW.debug=tW.default=tW;Lc.coerce=mEt;Lc.disable=pEt;Lc.enable=vEt;Lc.enabled=gEt;Lc.humanize=_4e();Lc.names=[];Lc.skips=[];Lc.formatters={};var eW;function dEt(e){var t=0,r;for(r in e)t=(t<<5)-t+e.charCodeAt(r),t|=0;return Lc.colors[Math.abs(t)%Lc.colors.length]}function tW(e){function t(){if(t.enabled){var r=t,n=+new Date,i=n-(eW||n);r.diff=i,r.prev=eW,r.curr=n,eW=n;for(var a=new Array(arguments.length),o=0;o{sp=T4e.exports=b4e();sp.log=xEt;sp.formatArgs=_Et;sp.save=bEt;sp.load=w4e;sp.useColors=yEt;sp.storage=typeof chrome!="undefined"&&typeof chrome.storage!="undefined"?chrome.storage.local:wEt();sp.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"];function yEt(){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+)/)}sp.formatters.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}};function _Et(e){var t=this.useColors;if(e[0]=(t?"%c":"")+this.namespace+(t?" %c":" ")+e[0]+(t?"%c ":" ")+"+"+sp.humanize(this.diff),!!t){var r="color: "+this.color;e.splice(1,0,r,"color: inherit");var n=0,i=0;e[0].replace(/%[a-zA-Z%]/g,function(a){a!=="%%"&&(n++,a==="%c"&&(i=n))}),e.splice(i,0,r)}}function xEt(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function bEt(e){try{e==null?sp.storage.removeItem("debug"):sp.storage.debug=e}catch(t){}}function w4e(){var e;try{e=sp.storage.debug}catch(t){}return!e&&typeof process!="undefined"&&"env"in process&&(e=process.env.DEBUG),e}sp.enable(w4e());function wEt(){try{return window.localStorage}catch(e){}}});var I4e=ye((yhr,P4e)=>{var gA=oE(),G_=A4e()("stream-parser");P4e.exports=AEt;var M4e=-1,rD=0,TEt=1,E4e=2;function AEt(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");G_("extending Parser into stream"),e._bytes=SEt,e._skipBytes=MEt,t&&(e._passthrough=EEt),t?e._transform=kEt:e._write=CEt}function TE(e){G_("initializing parser stream"),e._parserBytesLeft=0,e._parserBuffers=[],e._parserBuffered=0,e._parserState=M4e,e._parserCallback=null,typeof e.push=="function"&&(e._parserOutput=e.push.bind(e)),e._parserInit=!0}function SEt(e,t){gA(!this._parserCallback,'there is already a "callback" set!'),gA(isFinite(e)&&e>0,'can only buffer a finite number of bytes > 0, got "'+e+'"'),this._parserInit||TE(this),G_("buffering %o bytes",e),this._parserBytesLeft=e,this._parserCallback=t,this._parserState=rD}function MEt(e,t){gA(!this._parserCallback,'there is already a "callback" set!'),gA(e>0,'can only skip > 0 bytes, got "'+e+'"'),this._parserInit||TE(this),G_("skipping %o bytes",e),this._parserBytesLeft=e,this._parserCallback=t,this._parserState=TEt}function EEt(e,t){gA(!this._parserCallback,'There is already a "callback" set!'),gA(e>0,'can only pass through > 0 bytes, got "'+e+'"'),this._parserInit||TE(this),G_("passing through %o bytes",e),this._parserBytesLeft=e,this._parserCallback=t,this._parserState=E4e}function CEt(e,t,r){this._parserInit||TE(this),G_("write(%o bytes)",e.length),typeof t=="function"&&(r=t),k4e(this,e,null,r)}function kEt(e,t,r){this._parserInit||TE(this),G_("transform(%o bytes)",e.length),typeof t!="function"&&(t=this._parserOutput),k4e(this,e,t,r)}function C4e(e,t,r,n){return e._parserBytesLeft<=0?n(new Error("got data but not currently parsing anything")):t.length<=e._parserBytesLeft?function(){return S4e(e,t,r,n)}:function(){var i=t.slice(0,e._parserBytesLeft);return S4e(e,i,r,function(a){if(a)return n(a);if(t.length>i.length)return function(){return C4e(e,t.slice(i.length),r,n)}})}}function S4e(e,t,r,n){if(e._parserBytesLeft-=t.length,G_("%o bytes left for stream piece",e._parserBytesLeft),e._parserState===rD?(e._parserBuffers.push(t),e._parserBuffered+=t.length):e._parserState===E4e&&r(t),e._parserBytesLeft===0){var i=e._parserCallback;if(i&&e._parserState===rD&&e._parserBuffers.length>1&&(t=Buffer.concat(e._parserBuffers,e._parserBuffered)),e._parserState!==rD&&(t=null),e._parserCallback=null,e._parserBuffered=0,e._parserState=M4e,e._parserBuffers.splice(0),i){var a=[];t&&a.push(t),r&&a.push(r);var o=i.length>a.length;o&&a.push(L4e(n));var s=i.apply(e,a);if(!o||n===s)return n}}else return n}var k4e=L4e(C4e);function L4e(e){return function(){for(var t=e.apply(this,arguments);typeof t=="function";)t=t();return t}}});var rc=ye(Hy=>{"use strict";var R4e=SSe().Transform,LEt=I4e();function AE(){R4e.call(this,{readableObjectMode:!0})}AE.prototype=Object.create(R4e.prototype);AE.prototype.constructor=AE;LEt(AE.prototype);Hy.ParserStream=AE;Hy.sliceEq=function(e,t,r){for(var n=t,i=0;i{"use strict";var mA=rc().readUInt16BE,iW=rc().readUInt32BE;function SE(e,t){if(e.length<4+t)return null;var r=iW(e,t);return e.length>4&15,n=e[4]&15,i=e[5]>>4&15,a=mA(e,6),o=8,s=0;sa.width||i.width===a.width&&i.height>a.height?i:a}),r=e.reduce(function(i,a){return i.height>a.height||i.height===a.height&&i.width>a.width?i:a}),n;return t.width>r.height||t.width===r.height&&t.height>r.width?n=t:n=r,n}nD.exports.readSizeFromMeta=function(e){var t={sizes:[],transforms:[],item_inf:{},item_loc:{}};if(FEt(e,t),!!t.sizes.length){var r=zEt(t.sizes),n=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?n=s[n]:(n=s[n],n=o[n],n=o[n])),a.type==="irot")for(var l=0;l{"use strict";function aD(e,t){var r=new Error(e);return r.code=t,r}function OEt(e){try{return decodeURIComponent(escape(e))}catch(t){return e}}function jy(e,t,r){this.input=e.subarray(t,r),this.start=t;var n=String.fromCharCode.apply(null,this.input.subarray(0,4));if(n!=="II*\0"&&n!=="MM\0*")throw aD("invalid TIFF signature","EBADDATA");this.big_endian=n[0]==="M"}jy.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)}};jy.prototype.read_uint16=function(e){var t=this.input;if(e+2>t.length)throw aD("unexpected EOF","EBADDATA");return this.big_endian?t[e]*256+t[e+1]:t[e]+t[e+1]*256};jy.prototype.read_uint32=function(e){var t=this.input;if(e+4>t.length)throw aD("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};jy.prototype.is_subifd_link=function(e,t){return e===0&&t===34665||e===0&&t===34853||e===34665&&t===40965};jy.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}};jy.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}};jy.prototype.scan_ifd=function(e,t,r){var n=this.read_uint16(t);t+=2;for(var i=0;ithis.input.length)throw aD("unexpected EOF","EBADDATA");for(var h=[],d=c,v=0;v0&&(this.ifds_to_read.push({id:a,offset:h[0]}),f=!0);var b={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(b)===!1){this.aborted=!0;return}t+=12}e===0&&this.ifds_to_read.push({id:1,offset:this.read_uint32(t)})};nW.exports.ExifParser=jy;nW.exports.get_orientation=function(e){var t=0;try{return new jy(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 z4e=ye((whr,F4e)=>{"use strict";var qEt=rc().str2arr,BEt=rc().sliceEq,NEt=rc().readUInt32BE,sD=D4e(),UEt=oD(),VEt=qEt("ftyp");F4e.exports=function(e){if(BEt(e,4,VEt)){var t=sD.unbox(e,0);if(t){var r=sD.getMimeType(t.data);if(r){for(var n,i=t.end;;){var a=sD.unbox(e,i);if(!a)break;if(i=a.end,a.boxtype==="mdat")return;if(a.boxtype==="meta"){n=a.data;break}}if(n){var o=sD.readSizeFromMeta(n);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=NEt(e,o.exif_location.offset),u=e.slice(o.exif_location.offset+l+4,o.exif_location.offset+o.exif_location.length),c=UEt.get_orientation(u);c>0&&(s.orientation=c)}return s}}}}}}});var B4e=ye((Thr,q4e)=>{"use strict";var GEt=rc().str2arr,HEt=rc().sliceEq,O4e=rc().readUInt16LE,jEt=GEt("BM");q4e.exports=function(e){if(!(e.length<26)&&HEt(e,0,jEt))return{width:O4e(e,18),height:O4e(e,22),type:"bmp",mime:"image/bmp",wUnits:"px",hUnits:"px"}}});var H4e=ye((Ahr,G4e)=>{"use strict";var V4e=rc().str2arr,N4e=rc().sliceEq,U4e=rc().readUInt16LE,WEt=V4e("GIF87a"),XEt=V4e("GIF89a");G4e.exports=function(e){if(!(e.length<10)&&!(!N4e(e,0,WEt)&&!N4e(e,0,XEt)))return{width:U4e(e,6),height:U4e(e,8),type:"gif",mime:"image/gif",wUnits:"px",hUnits:"px"}}});var X4e=ye((Shr,W4e)=>{"use strict";var aW=rc().readUInt16LE,ZEt=0,YEt=1,j4e=16;W4e.exports=function(e){var t=aW(e,0),r=aW(e,2),n=aW(e,4);if(!(t!==ZEt||r!==YEt||!n)){for(var i=[],a={width:0,height:0},o=0;oa.width||l>a.height)&&(a=u)}return{width:a.width,height:a.height,variants:i,type:"ico",mime:"image/x-icon",wUnits:"px",hUnits:"px"}}}});var Y4e=ye((Mhr,Z4e)=>{"use strict";var oW=rc().readUInt16BE,KEt=rc().str2arr,JEt=rc().sliceEq,$Et=oD(),QEt=KEt("Exif\0\0");Z4e.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++],n;r===255;)r=e[t++];if(208<=r&&r<=217||r===1)n=0;else if(192<=r&&r<=254){if(e.length-t<2)return;n=oW(e,t)-2,t+=2}else return;if(r===217||r===218)return;var i;if(r===225&&n>=10&&JEt(e,t,QEt)&&(i=$Et.get_orientation(e.slice(t+6,t+n))),n>=5&&192<=r&&r<=207&&r!==196&&r!==200&&r!==204){if(e.length-t0&&(a.orientation=i),a}t+=n}}});var eEe=ye((Ehr,Q4e)=>{"use strict";var $4e=rc().str2arr,K4e=rc().sliceEq,J4e=rc().readUInt32BE,eCt=$4e(`\x89PNG\r + +`),tCt=$4e("IHDR");Q4e.exports=function(e){if(!(e.length<24)&&K4e(e,0,eCt)&&K4e(e,12,tCt))return{width:J4e(e,16),height:J4e(e,20),type:"png",mime:"image/png",wUnits:"px",hUnits:"px"}}});var iEe=ye((Chr,rEe)=>{"use strict";var rCt=rc().str2arr,iCt=rc().sliceEq,tEe=rc().readUInt32BE,nCt=rCt("8BPS\0");rEe.exports=function(e){if(!(e.length<22)&&iCt(e,0,nCt))return{width:tEe(e,18),height:tEe(e,14),type:"psd",mime:"image/vnd.adobe.photoshop",wUnits:"px",hUnits:"px"}}});var oEe=ye((khr,aEe)=>{"use strict";function aCt(e){return e===32||e===9||e===13||e===10}function yA(e){return typeof e=="number"&&isFinite(e)&&e>0}function oCt(e){var t=0,r=e.length;for(e[0]===239&&e[1]===187&&e[2]===191&&(t=3);t]*>/,lCt=/^<([-_.:a-zA-Z0-9]+:)?svg\s/,uCt=/[^-]\bwidth="([^%]+?)"|[^-]\bwidth='([^%]+?)'/,cCt=/\bheight="([^%]+?)"|\bheight='([^%]+?)'/,fCt=/\bview[bB]ox="(.+?)"|\bview[bB]ox='(.+?)'/,nEe=/in$|mm$|cm$|pt$|pc$|px$|em$|ex$/;function hCt(e){var t=e.match(uCt),r=e.match(cCt),n=e.match(fCt);return{width:t&&(t[1]||t[2]),height:r&&(r[1]||r[2]),viewbox:n&&(n[1]||n[2])}}function Nm(e){return nEe.test(e)?e.match(nEe)[0]:"px"}aEe.exports=function(e){if(oCt(e)){for(var t="",r=0;r{"use strict";var uEe=rc().str2arr,sEe=rc().sliceEq,dCt=rc().readUInt16LE,vCt=rc().readUInt16BE,pCt=rc().readUInt32LE,gCt=rc().readUInt32BE,mCt=uEe("II*\0"),yCt=uEe("MM\0*");function lD(e,t,r){return r?vCt(e,t):dCt(e,t)}function sW(e,t,r){return r?gCt(e,t):pCt(e,t)}function lEe(e,t,r){var n=lD(e,t+2,r),i=sW(e,t+4,r);return i!==1||n!==3&&n!==4?null:n===3?lD(e,t+8,r):sW(e,t+8,r)}cEe.exports=function(e){if(!(e.length<8)&&!(!sEe(e,0,mCt)&&!sEe(e,0,yCt))){var t=e[0]===77,r=sW(e,4,t)-8;if(!(r<0)){var n=r+8;if(!(e.length-n<2)){var i=lD(e,n+0,t)*12;if(!(i<=0)&&(n+=2,!(e.length-n{"use strict";var vEe=rc().str2arr,hEe=rc().sliceEq,dEe=rc().readUInt16LE,lW=rc().readUInt32LE,_Ct=oD(),xCt=vEe("RIFF"),bCt=vEe("WEBP");function wCt(e,t){if(!(e[t+3]!==157||e[t+4]!==1||e[t+5]!==42))return{width:dEe(e,t+6)&16383,height:dEe(e,t+8)&16383,type:"webp",mime:"image/webp",wUnits:"px",hUnits:"px"}}function TCt(e,t){if(e[t]===47){var r=lW(e,t+1);return{width:(r&16383)+1,height:(r>>14&16383)+1,type:"webp",mime:"image/webp",wUnits:"px",hUnits:"px"}}}function ACt(e,t){return{width:(e[t+6]<<16|e[t+5]<<8|e[t+4])+1,height:(e[t+9]<e.length)){for(;t+8=10?r=r||wCt(e,t+8):a==="VP8L"&&o>=9?r=r||TCt(e,t+8):a==="VP8X"&&o>=10?r=r||ACt(e,t+8):a==="EXIF"&&(n=_Ct.get_orientation(e.slice(t+8,t+8+o)),t=1/0),t+=8+o}if(r)return n>0&&(r.orientation=n),r}}}});var yEe=ye((Ihr,mEe)=>{"use strict";mEe.exports={avif:z4e(),bmp:B4e(),gif:H4e(),ico:X4e(),jpeg:Y4e(),png:eEe(),psd:iEe(),svg:oEe(),tiff:fEe(),webp:gEe()}});var _Ee=ye((Rhr,cW)=>{"use strict";var uW=yEe();function SCt(e){for(var t=Object.keys(uW),r=0;r{"use strict";var MCt=_Ee(),ECt=Ly().IMAGE_URL_PREFIX,CCt=u2().Buffer;xEe.getImageSize=function(e){var t=e.replace(ECt,""),r=new CCt(t,"base64");return MCt(r)}});var AEe=ye((Fhr,TEe)=>{"use strict";var wEe=Dr(),kCt=jT(),LCt=Eo(),uD=ho(),PCt=Dr().maxRowLength,ICt=bEe().getImageSize;TEe.exports=function(t,r){var n,i;if(r._hasZ)n=r.z.length,i=PCt(r.z);else if(r._hasSource){var a=ICt(r.source);n=a.height,i=a.width}var o=uD.getFromId(t,r.xaxis||"x"),s=uD.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+i*r.dx],h=[u,u+n*r.dy];if(o&&o.type==="log")for(c=0;c{"use strict";var zCt=Oa(),T2=Dr(),SEe=T2.strTranslate,OCt=Wp(),qCt=jT(),BCt=KV(),NCt=u8().STYLE;MEe.exports=function(t,r,n,i){var a=r.xaxis,o=r.yaxis,s=!t._context._exportedPlot&&BCt();T2.makeTraceGroups(i,n,"im").each(function(l){var u=zCt.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 d=c.z,v=c.x0,x=c.y0,b=c.w,p=c.h,C=f.dx,E=f.dy,A,L,_,k,M,g;for(g=0;A===void 0&&g0;)L=a.c2p(v+g*C),g--;for(g=0;k===void 0&&g0;)M=o.c2p(x+g*E),g--;if(Lj[0];if(re||oe){var _e=A+T/2,Me=k+z/2;H+="transform:"+SEe(_e+"px",Me+"px")+"scale("+(re?-1:1)+","+(oe?-1:1)+")"+SEe(-_e+"px",-Me+"px")+";"}}Z.attr("style",H);var ke=new Promise(function(me){if(f._hasZ)me();else if(f._hasSource)if(f._canvas&&f._canvas.el.width===b&&f._canvas.el.height===p&&f._canvas.source===f.source)me();else{var ie=document.createElement("canvas");ie.width=b,ie.height=p;var Se=ie.getContext("2d",{willReadFrequently:!0});f._image=f._image||new Image;var Le=f._image;Le.onload=function(){Se.drawImage(Le,0,0),f._canvas={el:ie,source:f.source},me()},Le.setAttribute("src",f.source)}}).then(function(){var me,ie;if(f._hasZ)ie=G(function(Ae,De){var Pe=d[De][Ae];return T2.isTypedArray(Pe)&&(Pe=Array.from(Pe)),Pe}),me=ie.toDataURL("image/png");else if(f._hasSource)if(h)me=f.source;else{var Se=f._canvas.el.getContext("2d",{willReadFrequently:!0}),Le=Se.getImageData(0,0,b,p).data;ie=G(function(Ae,De){var Pe=4*(De*b+Ae);return[Le[Pe],Le[Pe+1],Le[Pe+2],Le[Pe+3]]}),me=ie.toDataURL("image/png")}Z.attr({"xlink:href":me,height:z,width:T,x:A,y:k})});t._promises.push(ke)})}});var kEe=ye((Ohr,CEe)=>{"use strict";var UCt=Oa();CEe.exports=function(t){UCt.select(t).selectAll(".im image").style("opacity",function(r){return r[0].trace.opacity})}});var REe=ye((qhr,IEe)=>{"use strict";var LEe=vf(),PEe=Dr(),cD=PEe.isArrayOrTypedArray,VCt=jT();IEe.exports=function(t,r,n){var i=t.cd[0],a=i.trace,o=t.xa,s=t.ya;if(!(LEe.inbox(r-i.x0,r-(i.x0+i.w*a.dx),0)>0||LEe.inbox(n-i.y0,n-(i.y0+i.h*a.dy),0)>0)){var l=Math.floor((r-i.x0)/a.dx),u=Math.floor(Math.abs(n-i.y0)/a.dy),c;if(a._hasZ?c=i.z[u][l]:a._hasSource&&(c=a._canvas.el.getContext("2d",{willReadFrequently:!0}).getImageData(l,u,1,1).data),!!c){var f=i.hi||a.hoverinfo,h;if(f){var d=f.split("+");d.indexOf("all")!==-1&&(d=["color"]),d.indexOf("color")!==-1&&(h=!0)}var v=VCt.colormodel[a.colormodel],x=v.colormodel||a.colormodel,b=x.length,p=a._scaler(c),C=v.suffix,E=[];(a.hovertemplate||h)&&(E.push("["+[p[0]+C[0],p[1]+C[1],p[2]+C[2]].join(", ")),b===4&&E.push(", "+p[3]+C[3]),E.push("]"),E=E.join(""),t.extraText=x.toUpperCase()+": "+E);var A;cD(a.hovertext)&&cD(a.hovertext[u])?A=a.hovertext[u][l]:cD(a.text)&&cD(a.text[u])&&(A=a.text[u][l]);var L=s.c2p(i.y0+(u+.5)*a.dy),_=i.x0+(l+.5)*a.dx,k=i.y0+(u+.5)*a.dy,M="["+c.slice(0,a.colormodel.length).join(", ")+"]";return[PEe.extendFlat(t,{index:[u,l],x0:o.c2p(i.x0+l*a.dx),x1:o.c2p(i.x0+(l+1)*a.dx),y0:L,y1:L,color:p,xVal:_,xLabelVal:_,yVal:k,yLabelVal:k,zLabelVal:M,text:A,hovertemplateLabels:{zLabel:M,colorLabel:E,"color[0]Label":p[0]+C[0],"color[1]Label":p[1]+C[1],"color[2]Label":p[2]+C[2],"color[3]Label":p[3]+C[3]}})]}}}});var FEe=ye((Bhr,DEe)=>{"use strict";DEe.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 OEe=ye((Nhr,zEe)=>{"use strict";zEe.exports={attributes:oH(),supplyDefaults:R3e(),calc:AEe(),plot:EEe(),style:kEe(),hoverPoints:REe(),eventData:FEe(),moduleType:"trace",name:"image",basePlotModule:vh(),categories:["cartesian","svg","2dMap","noSortingByValue"],animatable:!1,meta:{}}});var BEe=ye((Uhr,qEe)=>{"use strict";qEe.exports=OEe()});var A2=ye((Vhr,NEe)=>{"use strict";var GCt=Vl(),HCt=kc().attributes,jCt=ec(),WCt=Eh(),XCt=Qo().hovertemplateAttrs,ZCt=Qo().texttemplateAttrs,ME=Ao().extendFlat,YCt=Pd().pattern,fD=jCt({editType:"plot",arrayOk:!0,colorEditType:"plot"});NEe.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:WCt.defaultLine,arrayOk:!0,editType:"style"},width:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"style"},editType:"calc"},pattern:YCt,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:ME({},GCt.hoverinfo,{flags:["label","text","value","percent","name"]}),hovertemplate:XCt({},{keys:["label","color","value","percent","text"]}),texttemplate:ZCt({editType:"plot"},{keys:["label","color","value","percent","text"]}),textposition:{valType:"enumerated",values:["inside","outside","auto","none"],dflt:"auto",arrayOk:!0,editType:"plot"},textfont:ME({},fD,{}),insidetextorientation:{valType:"enumerated",values:["horizontal","radial","tangential","auto"],dflt:"auto",editType:"plot"},insidetextfont:ME({},fD,{}),outsidetextfont:ME({},fD,{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},title:{text:{valType:"string",dflt:"",editType:"plot"},font:ME({},fD,{}),position:{valType:"enumerated",values:["top left","top center","top right","middle center","bottom left","bottom center","bottom right"],editType:"plot"},editType:"plot"},domain:HCt({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 S2=ye((Ghr,GEe)=>{"use strict";var KCt=Eo(),EE=Dr(),JCt=A2(),$Ct=kc().defaults,QCt=r0().handleText,ekt=Dr().coercePattern;function UEe(e,t){var r=EE.isArrayOrTypedArray(e),n=EE.isArrayOrTypedArray(t),i=Math.min(r?e.length:1/0,n?t.length:1/0);if(isFinite(i)||(i=0),i&&n){for(var a,o=0;o0){a=!0;break}}a||(i=0)}return{hasLabels:r,hasValues:n,len:i}}function VEe(e,t,r,n,i){var a=n("marker.line.width");a&&n("marker.line.color",i?void 0:r.paper_bgcolor);var o=n("marker.colors");ekt(n,"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 tkt(e,t,r,n){function i(C,E){return EE.coerce(e,t,JCt,C,E)}var a=i("labels"),o=i("values"),s=UEe(a,o),l=s.len;if(t._hasLabels=s.hasLabels,t._hasValues=s.hasValues,!t._hasLabels&&t._hasValues&&(i("label0"),i("dlabel")),!l){t.visible=!1;return}t._length=l,VEe(e,t,n,i,!0),i("scalegroup");var u=i("text"),c=i("texttemplate"),f;if(c||(f=i("textinfo",EE.isArrayOrTypedArray(u)?"text+percent":"percent")),i("hovertext"),i("hovertemplate"),c||f&&f!=="none"){var h=i("textposition");QCt(e,t,n,i,h,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1});var d=Array.isArray(h)||h==="auto",v=d||h==="outside";v&&i("automargin"),(h==="inside"||h==="auto"||Array.isArray(h))&&i("insidetextorientation")}else f==="none"&&i("textposition","none");$Ct(t,n,i);var x=i("hole"),b=i("title.text");if(b){var p=i("title.position",x?"middle center":"top center");!x&&p==="middle center"&&(t.title.position="top center"),EE.coerceFont(i,"title.font",n.font)}i("sort"),i("direction"),i("rotation"),i("pull")}GEe.exports={handleLabelsAndValues:UEe,handleMarkerDefaults:VEe,supplyDefaults:tkt}});var hD=ye((Hhr,HEe)=>{"use strict";HEe.exports={hiddenlabels:{valType:"data_array",editType:"calc"},piecolorway:{valType:"colorlist",editType:"calc"},extendpiecolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var WEe=ye((jhr,jEe)=>{"use strict";var rkt=Dr(),ikt=hD();jEe.exports=function(t,r){function n(i,a){return rkt.coerce(t,r,ikt,i,a)}n("hiddenlabels"),n("piecolorway",r.colorway),n("extendpiecolors")}});var _A=ye((Whr,YEe)=>{"use strict";var nkt=Eo(),fW=cd(),akt=Ca(),okt={};function skt(e,t){var r=[],n=e._fullLayout,i=n.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 A=t.type==="funnelarea"?x:t.sort;return A&&r.sort(function(L,_){return _.v-L.v}),r[0]&&(r[0].vTotal=v),r}function XEe(e){return function(r,n){return!r||(r=fW(r),!r.isValid())?!1:(r=akt.addOpacity(r,r.getAlpha()),e[n]||(e[n]=r),r)}}function lkt(e,t){var r=(t||{}).type;r||(r="pie");var n=e._fullLayout,i=e.calcdata,a=n[r+"colorway"],o=n["_"+r+"colormap"];n["extend"+r+"colors"]&&(a=ZEe(a,okt));for(var s=0,l=0;l{"use strict";var ukt=rp().appendArrayMultiPointValues;KEe.exports=function(t,r){var n={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&&(n.pointNumber=n.i=t.pts[0]),ukt(n,r,t.pts),r.type==="funnelarea"&&(delete n.v,delete n.i),n}});var gD=ye((Zhr,yCe)=>{"use strict";var Dp=Oa(),ckt=Mc(),dD=vf(),iCe=Ca(),Wy=So(),rv=Dr(),fkt=rv.strScale,$Ee=rv.strTranslate,hW=iu(),nCe=_v(),hkt=nCe.recordMinTextSize,dkt=nCe.clearMinTextSize,aCe=Qb().TEXTPAD,as=u_(),vD=JEe(),QEe=Dr().isValidTextValue;function vkt(e,t){var r=e._context.staticPlot,n=e._fullLayout,i=n._size;dkt("pie",n),lCe(t,e),pCe(t,i);var a=rv.makeTraceGroups(n._pielayer,t,"trace").each(function(o){var s=Dp.select(this),l=o[0],u=l.trace;Tkt(o),s.attr("stroke-linejoin","round"),s.each(function(){var c=Dp.select(this).selectAll("g.slice").data(o);c.enter().append("g").classed("slice",!0),c.exit().remove();var f=[[[],[]],[[],[]]],h=!1;c.each(function(A,L){if(A.hidden){Dp.select(this).selectAll("path,g").remove();return}A.pointNumber=A.i,A.curveNumber=u.index,f[A.pxmid[1]<0?0:1][A.pxmid[0]<0?0:1].push(A);var _=l.cx,k=l.cy,M=Dp.select(this),g=M.selectAll("path.surface").data([A]);if(g.enter().append("path").classed("surface",!0).style({"pointer-events":r?"none":"all"}),M.call(oCe,e,o),u.pull){var P=+as.castOption(u.pull,A.pts)||0;P>0&&(_+=P*A.pxmid[0],k+=P*A.pxmid[1])}A.cxFinal=_,A.cyFinal=k;function T(N,j,re,oe){var _e=oe*(j[0]-N[0]),Me=oe*(j[1]-N[1]);return"a"+oe*l.r+","+oe*l.r+" 0 "+A.largeArc+(re?" 1 ":" 0 ")+_e+","+Me}var z=u.hole;if(A.v===l.vTotal){var O="M"+(_+A.px0[0])+","+(k+A.px0[1])+T(A.px0,A.pxmid,!0,1)+T(A.pxmid,A.px0,!0,1)+"Z";z?g.attr("d","M"+(_+z*A.px0[0])+","+(k+z*A.px0[1])+T(A.px0,A.pxmid,!1,z)+T(A.pxmid,A.px0,!1,z)+"Z"+O):g.attr("d",O)}else{var V=T(A.px0,A.px1,!0,1);if(z){var G=1-z;g.attr("d","M"+(_+z*A.px1[0])+","+(k+z*A.px1[1])+T(A.px1,A.px0,!1,z)+"l"+G*A.px0[0]+","+G*A.px0[1]+V+"Z")}else g.attr("d","M"+_+","+k+"l"+A.px0[0]+","+A.px0[1]+V+"Z")}gCe(e,A,l);var Z=as.castOption(u.textposition,A.pts),H=M.selectAll("g.slicetext").data(A.text&&Z!=="none"?[0]:[]);H.enter().append("g").classed("slicetext",!0),H.exit().remove(),H.each(function(){var N=rv.ensureSingle(Dp.select(this),"text","",function(ie){ie.attr("data-notex",1)}),j=rv.ensureUniformFontSize(e,Z==="outside"?gkt(u,A,n.font):sCe(u,A,n.font));N.text(A.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(Wy.font,j).call(hW.convertToTspans,e);var re=Wy.bBox(N.node()),oe;if(Z==="outside")oe=rCe(re,A);else if(oe=uCe(re,A,l),Z==="auto"&&oe.scale<1){var _e=rv.ensureUniformFontSize(e,u.outsidetextfont);N.call(Wy.font,_e),re=Wy.bBox(N.node()),oe=rCe(re,A)}var Me=oe.textPosAngle,ke=Me===void 0?A.pxmid:pD(l.r,Me);if(oe.targetX=_+ke[0]*oe.rCenter+(oe.x||0),oe.targetY=k+ke[1]*oe.rCenter+(oe.y||0),mCe(oe,re),oe.outside){var me=oe.targetY;A.yLabelMin=me-re.height/2,A.yLabelMid=me,A.yLabelMax=me+re.height/2,A.labelExtraX=0,A.labelExtraY=0,h=!0}oe.fontSize=j.size,hkt(u.type,oe,n),o[L].transform=oe,rv.setTransormAndDisplay(N,oe)})});var d=Dp.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 A=rv.ensureSingle(Dp.select(this),"text","",function(k){k.attr("data-notex",1)}),L=u.title.text;u._meta&&(L=rv.templateString(L,u._meta)),A.text(L).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(Wy.font,u.title.font).call(hW.convertToTspans,e);var _;u.title.position==="middle center"?_=_kt(l):_=dCe(l,i),A.attr("transform",$Ee(_.x,_.y)+fkt(Math.min(1,_.scale))+$Ee(_.tx,_.ty))}),h&&bkt(f,u),pkt(c,u),h&&u.automargin){var v=Wy.bBox(s.node()),x=u.domain,b=i.w*(x.x[1]-x.x[0]),p=i.h*(x.y[1]-x.y[0]),C=(.5*b-l.r)/i.w,E=(.5*p-l.r)/i.h;ckt.autoMargin(e,"pie."+u.uid+".automargin",{xl:x.x[0]-C,xr:x.x[1]+C,yb:x.y[0]-E,yt:x.y[1]+E,l:Math.max(l.cx-l.r-v.left,0),r:Math.max(v.right-(l.cx+l.r),0),b:Math.max(v.bottom-(l.cy+l.r),0),t:Math.max(l.cy-l.r-v.top,0),pad:5})}})});setTimeout(function(){a.selectAll("tspan").each(function(){var o=Dp.select(this);o.attr("dy")&&o.attr("dy",o.attr("dy"))})},0)}function pkt(e,t){e.each(function(r){var n=Dp.select(this);if(!r.labelExtraX&&!r.labelExtraY){n.select("path.textline").remove();return}var i=n.select("g.slicetext text");r.transform.targetX+=r.labelExtraX,r.transform.targetY+=r.labelExtraY,rv.setTransormAndDisplay(i,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;rv.ensureSingle(n,"path","textline").call(iCe.stroke,t.outsidetextfont.color).attr({"stroke-width":Math.min(2,t.outsidetextfont.size/8),d:s,fill:"none"})})}function oCe(e,t,r){var n=r[0],i=n.cx,a=n.cy,o=n.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=dD.castHoverinfo({hoverinfo:[as.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,d=i+l.pxmid[0]*(1-h),v=a+l.pxmid[1]*(1-h),x=u.separators,b=[];if(f&&f.indexOf("label")!==-1&&b.push(l.label),l.text=as.castOption(c.hovertext||c.text,l.pts),f&&f.indexOf("text")!==-1){var p=l.text;rv.isValidTextValue(p)&&b.push(p)}l.value=l.v,l.valueLabel=as.formatPieValue(l.v,x),f&&f.indexOf("value")!==-1&&b.push(l.valueLabel),l.percent=l.v/n.vTotal,l.percentLabel=as.formatPiePercent(l.percent,x),f&&f.indexOf("percent")!==-1&&b.push(l.percentLabel);var C=c.hoverlabel,E=C.font,A=[];dD.loneHover({trace:o,x0:d-h*n.r,x1:d+h*n.r,y:v,_x0:s?i+l.TL[0]:d-h*n.r,_x1:s?i+l.TR[0]:d+h*n.r,_y0:s?a+l.TL[1]:v-h*n.r,_y1:s?a+l.BL[1]:v+h*n.r,text:b.join("
"),name:c.hovertemplate||f.indexOf("name")!==-1?c.name:void 0,idealAlign:l.pxmid[0]<0?"left":"right",color:as.castOption(C.bgcolor,l.pts)||l.color,borderColor:as.castOption(C.bordercolor,l.pts),fontFamily:as.castOption(E.family,l.pts),fontSize:as.castOption(E.size,l.pts),fontColor:as.castOption(E.color,l.pts),nameLength:as.castOption(C.namelength,l.pts),textAlign:as.castOption(C.align,l.pts),hovertemplate:as.castOption(c.hovertemplate,l.pts),hovertemplateLabels:l,eventData:[vD(l,c)]},{container:u._hoverlayer.node(),outerContainer:u._paper.node(),gd:t,inOut_bbox:A}),l.bbox=A[0],o._hasHoverLabel=!0}o._hasHoverEvent=!0,t.emit("plotly_hover",{points:[vD(l,c)],event:Dp.event})}}),e.on("mouseout",function(l){var u=t._fullLayout,c=t._fullData[o.index],f=Dp.select(this).datum();o._hasHoverEvent&&(l.originalEvent=Dp.event,t.emit("plotly_unhover",{points:[vD(f,c)],event:Dp.event}),o._hasHoverEvent=!1),o._hasHoverLabel&&(dD.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=[vD(l,c)],dD.click(t,Dp.event))})}function gkt(e,t,r){var n=as.castOption(e.outsidetextfont.color,t.pts)||as.castOption(e.textfont.color,t.pts)||r.color,i=as.castOption(e.outsidetextfont.family,t.pts)||as.castOption(e.textfont.family,t.pts)||r.family,a=as.castOption(e.outsidetextfont.size,t.pts)||as.castOption(e.textfont.size,t.pts)||r.size,o=as.castOption(e.outsidetextfont.weight,t.pts)||as.castOption(e.textfont.weight,t.pts)||r.weight,s=as.castOption(e.outsidetextfont.style,t.pts)||as.castOption(e.textfont.style,t.pts)||r.style,l=as.castOption(e.outsidetextfont.variant,t.pts)||as.castOption(e.textfont.variant,t.pts)||r.variant,u=as.castOption(e.outsidetextfont.textcase,t.pts)||as.castOption(e.textfont.textcase,t.pts)||r.textcase,c=as.castOption(e.outsidetextfont.lineposition,t.pts)||as.castOption(e.textfont.lineposition,t.pts)||r.lineposition,f=as.castOption(e.outsidetextfont.shadow,t.pts)||as.castOption(e.textfont.shadow,t.pts)||r.shadow;return{color:n,family:i,size:a,weight:o,style:s,variant:l,textcase:u,lineposition:c,shadow:f}}function sCe(e,t,r){var n=as.castOption(e.insidetextfont.color,t.pts);!n&&e._input.textfont&&(n=as.castOption(e._input.textfont.color,t.pts));var i=as.castOption(e.insidetextfont.family,t.pts)||as.castOption(e.textfont.family,t.pts)||r.family,a=as.castOption(e.insidetextfont.size,t.pts)||as.castOption(e.textfont.size,t.pts)||r.size,o=as.castOption(e.insidetextfont.weight,t.pts)||as.castOption(e.textfont.weight,t.pts)||r.weight,s=as.castOption(e.insidetextfont.style,t.pts)||as.castOption(e.textfont.style,t.pts)||r.style,l=as.castOption(e.insidetextfont.variant,t.pts)||as.castOption(e.textfont.variant,t.pts)||r.variant,u=as.castOption(e.insidetextfont.textcase,t.pts)||as.castOption(e.textfont.textcase,t.pts)||r.textcase,c=as.castOption(e.insidetextfont.lineposition,t.pts)||as.castOption(e.textfont.lineposition,t.pts)||r.lineposition,f=as.castOption(e.insidetextfont.shadow,t.pts)||as.castOption(e.textfont.shadow,t.pts)||r.shadow;return{color:n||iCe.contrast(t.color),family:i,size:a,weight:o,style:s,variant:l,textcase:u,lineposition:c,shadow:f}}function lCe(e,t){for(var r,n,i=0;i=-4;C-=2)p(Math.PI*C,"tan");for(C=4;C>=-4;C-=2)p(Math.PI*(C+1),"tan")}if(f||d){for(C=4;C>=-4;C-=2)p(Math.PI*(C+1.5),"rad");for(C=4;C>=-4;C-=2)p(Math.PI*(C+.5),"rad")}}if(s||v||f){var E=Math.sqrt(e.width*e.width+e.height*e.height);if(b={scale:i*n*2/E,rCenter:1-i,rotate:0},b.textPosAngle=(t.startangle+t.stopangle)/2,b.scale>=1)return b;x.push(b)}(v||d)&&(b=eCe(e,n,o,l,u),b.textPosAngle=(t.startangle+t.stopangle)/2,x.push(b)),(v||h)&&(b=tCe(e,n,o,l,u),b.textPosAngle=(t.startangle+t.stopangle)/2,x.push(b));for(var A=0,L=0,_=0;_=1)break}return x[A]}function mkt(e,t){var r=e.startangle,n=e.stopangle;return r>t&&t>n||r0?1:-1)/2,y:a/(1+r*r/(n*n)),outside:!0}}function _kt(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 dCe(e,t){var r=1,n=1,i,a=e.trace,o={x:e.cx,y:e.cy},s={tx:0,ty:0};s.ty+=a.title.font.size,i=vCe(a),a.title.position.indexOf("top")!==-1?(o.y-=(1+i)*e.r,s.ty-=e.titleBox.height):a.title.position.indexOf("bottom")!==-1&&(o.y+=(1+i)*e.r);var l=xkt(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+i)*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+i)*l,s.tx-=e.titleBox.width/2),r=u/e.titleBox.width,n=dW(e,t)/e.titleBox.height,{x:o.x,y:o.y,scale:Math.min(r,n),tx:s.tx,ty:s.ty}}function xkt(e,t){return e/(t===void 0?1:t)}function dW(e,t){var r=e.trace,n=t.h*(r.domain.y[1]-r.domain.y[0]);return Math.min(e.titleBox.height,n/2)}function vCe(e){var t=e.pull;if(!t)return 0;var r;if(rv.isArrayOrTypedArray(t))for(t=0,r=0;rt&&(t=e.pull[r]);return t}function bkt(e,t){var r,n,i,a,o,s,l,u,c,f,h,d,v;function x(E,A){return E.pxmid[1]-A.pxmid[1]}function b(E,A){return A.pxmid[1]-E.pxmid[1]}function p(E,A){A||(A={});var L=A.labelExtraY+(n?A.yLabelMax:A.yLabelMin),_=n?E.yLabelMin:E.yLabelMax,k=n?E.yLabelMax:E.yLabelMin,M=E.cyFinal+o(E.px0[1],E.px1[1]),g=L-_,P,T,z,O,V,G;if(g*l>0&&(E.labelExtraY=g),!!rv.isArrayOrTypedArray(t.pull))for(T=0;T=(as.castOption(t.pull,z.pts)||0))&&((E.pxmid[1]-z.pxmid[1])*l>0?(O=z.cyFinal+o(z.px0[1],z.px1[1]),g=O-_-E.labelExtraY,g*l>0&&(E.labelExtraY+=g)):(k+E.labelExtraY-M)*l>0&&(P=3*s*Math.abs(T-f.indexOf(E)),V=z.cxFinal+a(z.px0[0],z.px1[0]),G=V+P-(E.cxFinal+E.pxmid[0])-E.labelExtraX,G*s>0&&(E.labelExtraX+=G)))}for(n=0;n<2;n++)for(i=n?x:b,o=n?Math.max:Math.min,l=n?1:-1,r=0;r<2;r++){for(a=r?Math.max:Math.min,s=r?1:-1,u=e[n][r],u.sort(i),c=e[1-n][r],f=c.concat(u),d=[],h=0;h1?(u=r.r,c=u/i.aspectratio):(c=r.r,u=c*i.aspectratio),u*=(1+i.baseratio)/2,l=u*c}o=Math.min(o,l/r.vTotal)}for(n=0;nt.vTotal/2?1:0,u.halfangle=Math.PI*Math.min(u.v/t.vTotal,.5),u.ring=1-n.hole,u.rInscribed=ykt(u,t))}function pD(e,t){return[e*Math.sin(t),-e*Math.cos(t)]}function gCe(e,t,r){var n=e._fullLayout,i=r.trace,a=i.texttemplate,o=i.textinfo;if(!a&&o&&o!=="none"){var s=o.split("+"),l=function(A){return s.indexOf(A)!==-1},u=l("label"),c=l("text"),f=l("value"),h=l("percent"),d=n.separators,v;if(v=u?[t.label]:[],c){var x=as.getFirstFilled(i.text,t.pts);QEe(x)&&v.push(x)}f&&v.push(as.formatPieValue(t.v,d)),h&&v.push(as.formatPiePercent(t.v/r.vTotal,d)),t.text=v.join("
")}function b(A){return{label:A.label,value:A.v,valueLabel:as.formatPieValue(A.v,n.separators),percent:A.v/r.vTotal,percentLabel:as.formatPiePercent(A.v/r.vTotal,n.separators),color:A.color,text:A.text,customdata:rv.castOption(i,A.i,"customdata")}}if(a){var p=rv.castOption(i,t.i,"texttemplate");if(!p)t.text="";else{var C=b(t),E=as.getFirstFilled(i.text,t.pts);(QEe(E)||E==="")&&(C.text=E),t.text=rv.texttemplateString(p,C,e._fullLayout._d3locale,C,i._meta||{})}}}function mCe(e,t){var r=e.rotate*Math.PI/180,n=Math.cos(r),i=Math.sin(r),a=(t.left+t.right)/2,o=(t.top+t.bottom)/2;e.textX=a*n-o*i,e.textY=a*i+o*n,e.noCenter=!0}yCe.exports={plot:vkt,formatSliceLabel:gCe,transformInsideText:uCe,determineInsideTextFont:sCe,positionTitleOutside:dCe,prerenderTitles:lCe,layoutAreas:pCe,attachFxHandlers:oCe,computeTransform:mCe}});var bCe=ye((Yhr,xCe)=>{"use strict";var _Ce=Oa(),Akt=F3(),Skt=_v().resizeText;xCe.exports=function(t){var r=t._fullLayout._pielayer.selectAll(".trace");Skt(t,r,"pie"),r.each(function(n){var i=n[0],a=i.trace,o=_Ce.select(this);o.style({opacity:a.opacity}),o.selectAll("path.surface").each(function(s){_Ce.select(this).call(Akt,s,a,t)})})}});var TCe=ye(xA=>{"use strict";var wCe=Mc();xA.name="pie";xA.plot=function(e,t,r,n){wCe.plotBasePlot(xA.name,e,t,r,n)};xA.clean=function(e,t,r,n){wCe.cleanBasePlot(xA.name,e,t,r,n)}});var SCe=ye((Jhr,ACe)=>{"use strict";ACe.exports={attributes:A2(),supplyDefaults:S2().supplyDefaults,supplyLayoutDefaults:WEe(),layoutAttributes:hD(),calc:_A().calc,crossTraceCalc:_A().crossTraceCalc,plot:gD().plot,style:bCe(),styleOne:F3(),moduleType:"trace",name:"pie",basePlotModule:TCe(),categories:["pie-like","pie","showLegend"],meta:{}}});var ECe=ye(($hr,MCe)=>{"use strict";MCe.exports=SCe()});var kCe=ye(bA=>{"use strict";var CCe=Mc();bA.name="sunburst";bA.plot=function(e,t,r,n){CCe.plotBasePlot(bA.name,e,t,r,n)};bA.clean=function(e,t,r,n){CCe.cleanBasePlot(bA.name,e,t,r,n)}});var vW=ye((edr,LCe)=>{"use strict";LCe.exports={CLICK_TRANSITION_TIME:750,CLICK_TRANSITION_EASING:"linear",eventDataKeys:["currentPath","root","entry","percentRoot","percentEntry","percentParent"]}});var kE=ye((tdr,ICe)=>{"use strict";var Mkt=Vl(),Ekt=Qo().hovertemplateAttrs,Ckt=Qo().texttemplateAttrs,kkt=Tu(),Lkt=kc().attributes,Xy=A2(),PCe=vW(),CE=Ao().extendFlat,Pkt=Pd().pattern;ICe.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:CE({colors:{valType:"data_array",editType:"calc"},line:{color:CE({},Xy.marker.line.color,{dflt:null}),width:CE({},Xy.marker.line.width,{dflt:1}),editType:"calc"},pattern:Pkt,editType:"calc"},kkt("marker",{colorAttr:"colors",anim:!1})),leaf:{opacity:{valType:"number",editType:"style",min:0,max:1},editType:"plot"},text:Xy.text,textinfo:{valType:"flaglist",flags:["label","text","value","current path","percent root","percent entry","percent parent"],extras:["none"],editType:"plot"},texttemplate:Ckt({editType:"plot"},{keys:PCe.eventDataKeys.concat(["label","value"])}),hovertext:Xy.hovertext,hoverinfo:CE({},Mkt.hoverinfo,{flags:["label","text","value","name","current path","percent root","percent entry","percent parent"],dflt:"label+text+value+name"}),hovertemplate:Ekt({},{keys:PCe.eventDataKeys}),textfont:Xy.textfont,insidetextorientation:Xy.insidetextorientation,insidetextfont:Xy.insidetextfont,outsidetextfont:CE({},Xy.outsidetextfont,{}),rotation:{valType:"angle",dflt:0,editType:"plot"},sort:Xy.sort,root:{color:{valType:"color",editType:"calc",dflt:"rgba(0,0,0,0)"},editType:"calc"},domain:Lkt({name:"sunburst",trace:!0,editType:"calc"})}});var pW=ye((rdr,RCe)=>{"use strict";RCe.exports={sunburstcolorway:{valType:"colorlist",editType:"calc"},extendsunburstcolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var OCe=ye((idr,zCe)=>{"use strict";var DCe=Dr(),Ikt=kE(),Rkt=kc().defaults,Dkt=r0().handleText,Fkt=S2().handleMarkerDefaults,FCe=tc(),zkt=FCe.hasColorscale,Okt=FCe.handleDefaults;zCe.exports=function(t,r,n,i){function a(h,d){return DCe.coerce(t,r,Ikt,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"),Fkt(t,r,i,a);var u=r._hasColorscale=zkt(t,"marker","colors")||(t.marker||{}).coloraxis;u&&Okt(t,r,i,a,{prefix:"marker.",cLetter:"c"}),a("leaf.opacity",u?1:.7);var c=a("text");a("texttemplate"),r.texttemplate||a("textinfo",DCe.isArrayOrTypedArray(c)?"text+label":"label"),a("hovertext"),a("hovertemplate");var f="auto";Dkt(t,r,i,a,f,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),a("insidetextorientation"),a("sort"),a("rotation"),a("root.color"),Rkt(r,i,a),r._length=null}});var BCe=ye((ndr,qCe)=>{"use strict";var qkt=Dr(),Bkt=pW();qCe.exports=function(t,r){function n(i,a){return qkt.coerce(t,r,Bkt,i,a)}n("sunburstcolorway",r.colorway),n("extendsunburstcolors")}});var LE=ye((mD,NCe)=>{(function(e,t){typeof mD=="object"&&typeof NCe!="undefined"?t(mD):(e=e||self,t(e.d3=e.d3||{}))})(mD,function(e){"use strict";function t(je,$e){return je.parent===$e.parent?1:2}function r(je){return je.reduce(n,0)/je.length}function n(je,$e){return je+$e.x}function i(je){return 1+je.reduce(a,0)}function a(je,$e){return Math.max(je,$e.y)}function o(je){for(var $e;$e=je.children;)je=$e[0];return je}function s(je){for(var $e;$e=je.children;)je=$e[$e.length-1];return je}function l(){var je=t,$e=1,wt=1,Ie=!1;function xe(Ce){var vt,nr=0;Ce.eachAfter(function(Jr){var fi=Jr.children;fi?(Jr.x=r(fi),Jr.y=i(fi)):(Jr.x=vt?nr+=je(Jr,vt):0,Jr.y=0,vt=Jr)});var ir=o(Ce),pr=s(Ce),oi=ir.x-je(ir,pr)/2,di=pr.x+je(pr,ir)/2;return Ce.eachAfter(Ie?function(Jr){Jr.x=(Jr.x-Ce.x)*$e,Jr.y=(Ce.y-Jr.y)*wt}:function(Jr){Jr.x=(Jr.x-oi)/(di-oi)*$e,Jr.y=(1-(Ce.y?Jr.y/Ce.y:1))*wt})}return xe.separation=function(Ce){return arguments.length?(je=Ce,xe):je},xe.size=function(Ce){return arguments.length?(Ie=!1,$e=+Ce[0],wt=+Ce[1],xe):Ie?null:[$e,wt]},xe.nodeSize=function(Ce){return arguments.length?(Ie=!0,$e=+Ce[0],wt=+Ce[1],xe):Ie?[$e,wt]:null},xe}function u(je){var $e=0,wt=je.children,Ie=wt&&wt.length;if(!Ie)$e=1;else for(;--Ie>=0;)$e+=wt[Ie].value;je.value=$e}function c(){return this.eachAfter(u)}function f(je){var $e=this,wt,Ie=[$e],xe,Ce,vt;do for(wt=Ie.reverse(),Ie=[];$e=wt.pop();)if(je($e),xe=$e.children,xe)for(Ce=0,vt=xe.length;Ce=0;--xe)wt.push(Ie[xe]);return this}function d(je){for(var $e=this,wt=[$e],Ie=[],xe,Ce,vt;$e=wt.pop();)if(Ie.push($e),xe=$e.children,xe)for(Ce=0,vt=xe.length;Ce=0;)wt+=Ie[xe].value;$e.value=wt})}function x(je){return this.eachBefore(function($e){$e.children&&$e.children.sort(je)})}function b(je){for(var $e=this,wt=p($e,je),Ie=[$e];$e!==wt;)$e=$e.parent,Ie.push($e);for(var xe=Ie.length;je!==wt;)Ie.splice(xe,0,je),je=je.parent;return Ie}function p(je,$e){if(je===$e)return je;var wt=je.ancestors(),Ie=$e.ancestors(),xe=null;for(je=wt.pop(),$e=Ie.pop();je===$e;)xe=je,je=wt.pop(),$e=Ie.pop();return xe}function C(){for(var je=this,$e=[je];je=je.parent;)$e.push(je);return $e}function E(){var je=[];return this.each(function($e){je.push($e)}),je}function A(){var je=[];return this.eachBefore(function($e){$e.children||je.push($e)}),je}function L(){var je=this,$e=[];return je.each(function(wt){wt!==je&&$e.push({source:wt.parent,target:wt})}),$e}function _(je,$e){var wt=new T(je),Ie=+je.value&&(wt.value=je.value),xe,Ce=[wt],vt,nr,ir,pr;for($e==null&&($e=M);xe=Ce.pop();)if(Ie&&(xe.value=+xe.data.value),(nr=$e(xe.data))&&(pr=nr.length))for(xe.children=new Array(pr),ir=pr-1;ir>=0;--ir)Ce.push(vt=xe.children[ir]=new T(nr[ir])),vt.parent=xe,vt.depth=xe.depth+1;return wt.eachBefore(P)}function k(){return _(this).eachBefore(g)}function M(je){return je.children}function g(je){je.data=je.data.data}function P(je){var $e=0;do je.height=$e;while((je=je.parent)&&je.height<++$e)}function T(je){this.data=je,this.depth=this.height=0,this.parent=null}T.prototype=_.prototype={constructor:T,count:c,each:f,eachAfter:d,eachBefore:h,sum:v,sort:x,path:b,ancestors:C,descendants:E,leaves:A,links:L,copy:k};var z=Array.prototype.slice;function O(je){for(var $e=je.length,wt,Ie;$e;)Ie=Math.random()*$e--|0,wt=je[$e],je[$e]=je[Ie],je[Ie]=wt;return je}function V(je){for(var $e=0,wt=(je=O(z.call(je))).length,Ie=[],xe,Ce;$e0&&wt*wt>Ie*Ie+xe*xe}function N(je,$e){for(var wt=0;wt<$e.length;++wt)if(!H(je,$e[wt]))return!1;return!0}function j(je){switch(je.length){case 1:return re(je[0]);case 2:return oe(je[0],je[1]);case 3:return _e(je[0],je[1],je[2])}}function re(je){return{x:je.x,y:je.y,r:je.r}}function oe(je,$e){var wt=je.x,Ie=je.y,xe=je.r,Ce=$e.x,vt=$e.y,nr=$e.r,ir=Ce-wt,pr=vt-Ie,oi=nr-xe,di=Math.sqrt(ir*ir+pr*pr);return{x:(wt+Ce+ir/di*oi)/2,y:(Ie+vt+pr/di*oi)/2,r:(di+xe+nr)/2}}function _e(je,$e,wt){var Ie=je.x,xe=je.y,Ce=je.r,vt=$e.x,nr=$e.y,ir=$e.r,pr=wt.x,oi=wt.y,di=wt.r,Jr=Ie-vt,fi=Ie-pr,Hi=xe-nr,Pn=xe-oi,wn=ir-Ce,pn=di-Ce,Vn=Ie*Ie+xe*xe-Ce*Ce,kn=Vn-vt*vt-nr*nr+ir*ir,ea=Vn-pr*pr-oi*oi+di*di,ua=fi*Hi-Jr*Pn,Vt=(Hi*ea-Pn*kn)/(ua*2)-Ie,_t=(Pn*wn-Hi*pn)/ua,tr=(fi*kn-Jr*ea)/(ua*2)-xe,ar=(Jr*pn-fi*wn)/ua,Er=_t*_t+ar*ar-1,Zr=2*(Ce+Vt*_t+tr*ar),ri=Vt*Vt+tr*tr-Ce*Ce,$r=-(Er?(Zr+Math.sqrt(Zr*Zr-4*Er*ri))/(2*Er):ri/Zr);return{x:Ie+Vt+_t*$r,y:xe+tr+ar*$r,r:$r}}function Me(je,$e,wt){var Ie=je.x-$e.x,xe,Ce,vt=je.y-$e.y,nr,ir,pr=Ie*Ie+vt*vt;pr?(Ce=$e.r+wt.r,Ce*=Ce,ir=je.r+wt.r,ir*=ir,Ce>ir?(xe=(pr+ir-Ce)/(2*pr),nr=Math.sqrt(Math.max(0,ir/pr-xe*xe)),wt.x=je.x-xe*Ie-nr*vt,wt.y=je.y-xe*vt+nr*Ie):(xe=(pr+Ce-ir)/(2*pr),nr=Math.sqrt(Math.max(0,Ce/pr-xe*xe)),wt.x=$e.x+xe*Ie-nr*vt,wt.y=$e.y+xe*vt+nr*Ie)):(wt.x=$e.x+wt.r,wt.y=$e.y)}function ke(je,$e){var wt=je.r+$e.r-1e-6,Ie=$e.x-je.x,xe=$e.y-je.y;return wt>0&&wt*wt>Ie*Ie+xe*xe}function me(je){var $e=je._,wt=je.next._,Ie=$e.r+wt.r,xe=($e.x*wt.r+wt.x*$e.r)/Ie,Ce=($e.y*wt.r+wt.y*$e.r)/Ie;return xe*xe+Ce*Ce}function ie(je){this._=je,this.next=null,this.previous=null}function Se(je){if(!(xe=je.length))return 0;var $e,wt,Ie,xe,Ce,vt,nr,ir,pr,oi,di;if($e=je[0],$e.x=0,$e.y=0,!(xe>1))return $e.r;if(wt=je[1],$e.x=-wt.r,wt.x=$e.r,wt.y=0,!(xe>2))return $e.r+wt.r;Me(wt,$e,Ie=je[2]),$e=new ie($e),wt=new ie(wt),Ie=new ie(Ie),$e.next=Ie.previous=wt,wt.next=$e.previous=Ie,Ie.next=wt.previous=$e;e:for(nr=3;nr0)throw new Error("cycle");return nr}return wt.id=function(Ie){return arguments.length?(je=De(Ie),wt):je},wt.parentId=function(Ie){return arguments.length?($e=De(Ie),wt):$e},wt}function Qe(je,$e){return je.parent===$e.parent?1:2}function Et(je){var $e=je.children;return $e?$e[0]:je.t}function er(je){var $e=je.children;return $e?$e[$e.length-1]:je.t}function Ut(je,$e,wt){var Ie=wt/($e.i-je.i);$e.c-=Ie,$e.s+=wt,je.c+=Ie,$e.z+=wt,$e.m+=wt}function Ft(je){for(var $e=0,wt=0,Ie=je.children,xe=Ie.length,Ce;--xe>=0;)Ce=Ie[xe],Ce.z+=$e,Ce.m+=$e,$e+=Ce.s+(wt+=Ce.c)}function bt(je,$e,wt){return je.a.parent===$e.parent?je.a:wt}function yt(je,$e){this._=je,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=$e}yt.prototype=Object.create(T.prototype);function Yt(je){for(var $e=new yt(je,0),wt,Ie=[$e],xe,Ce,vt,nr;wt=Ie.pop();)if(Ce=wt._.children)for(wt.children=new Array(nr=Ce.length),vt=nr-1;vt>=0;--vt)Ie.push(xe=wt.children[vt]=new yt(Ce[vt],vt)),xe.parent=wt;return($e.parent=new yt(null,0)).children=[$e],$e}function lr(){var je=Qe,$e=1,wt=1,Ie=null;function xe(pr){var oi=Yt(pr);if(oi.eachAfter(Ce),oi.parent.m=-oi.z,oi.eachBefore(vt),Ie)pr.eachBefore(ir);else{var di=pr,Jr=pr,fi=pr;pr.eachBefore(function(Vn){Vn.xJr.x&&(Jr=Vn),Vn.depth>fi.depth&&(fi=Vn)});var Hi=di===Jr?1:je(di,Jr)/2,Pn=Hi-di.x,wn=$e/(Jr.x+Hi+Pn),pn=wt/(fi.depth||1);pr.eachBefore(function(Vn){Vn.x=(Vn.x+Pn)*wn,Vn.y=Vn.depth*pn})}return pr}function Ce(pr){var oi=pr.children,di=pr.parent.children,Jr=pr.i?di[pr.i-1]:null;if(oi){Ft(pr);var fi=(oi[0].z+oi[oi.length-1].z)/2;Jr?(pr.z=Jr.z+je(pr._,Jr._),pr.m=pr.z-fi):pr.z=fi}else Jr&&(pr.z=Jr.z+je(pr._,Jr._));pr.parent.A=nr(pr,Jr,pr.parent.A||di[0])}function vt(pr){pr._.x=pr.z+pr.parent.m,pr.m+=pr.parent.m}function nr(pr,oi,di){if(oi){for(var Jr=pr,fi=pr,Hi=oi,Pn=Jr.parent.children[0],wn=Jr.m,pn=fi.m,Vn=Hi.m,kn=Pn.m,ea;Hi=er(Hi),Jr=Et(Jr),Hi&&Jr;)Pn=Et(Pn),fi=er(fi),fi.a=pr,ea=Hi.z+Vn-Jr.z-wn+je(Hi._,Jr._),ea>0&&(Ut(bt(Hi,pr,di),pr,ea),wn+=ea,pn+=ea),Vn+=Hi.m,wn+=Jr.m,kn+=Pn.m,pn+=fi.m;Hi&&!er(fi)&&(fi.t=Hi,fi.m+=Vn-pn),Jr&&!Et(Pn)&&(Pn.t=Jr,Pn.m+=wn-kn,di=pr)}return di}function ir(pr){pr.x*=$e,pr.y=pr.depth*wt}return xe.separation=function(pr){return arguments.length?(je=pr,xe):je},xe.size=function(pr){return arguments.length?(Ie=!1,$e=+pr[0],wt=+pr[1],xe):Ie?null:[$e,wt]},xe.nodeSize=function(pr){return arguments.length?(Ie=!0,$e=+pr[0],wt=+pr[1],xe):Ie?[$e,wt]:null},xe}function Tr(je,$e,wt,Ie,xe){for(var Ce=je.children,vt,nr=-1,ir=Ce.length,pr=je.value&&(xe-wt)/je.value;++nrVn&&(Vn=pr),Vt=wn*wn*ua,kn=Math.max(Vn/Vt,Vt/pn),kn>ea){wn-=pr;break}ea=kn}vt.push(ir={value:wn,dice:fi1?Ie:1)},wt}(Rr);function Ur(){var je=Wr,$e=!1,wt=1,Ie=1,xe=[0],Ce=Pe,vt=Pe,nr=Pe,ir=Pe,pr=Pe;function oi(Jr){return Jr.x0=Jr.y0=0,Jr.x1=wt,Jr.y1=Ie,Jr.eachBefore(di),xe=[0],$e&&Jr.eachBefore(Wt),Jr}function di(Jr){var fi=xe[Jr.depth],Hi=Jr.x0+fi,Pn=Jr.y0+fi,wn=Jr.x1-fi,pn=Jr.y1-fi;wn=Jr-1){var Vn=Ce[di];Vn.x0=Hi,Vn.y0=Pn,Vn.x1=wn,Vn.y1=pn;return}for(var kn=pr[di],ea=fi/2+kn,ua=di+1,Vt=Jr-1;ua>>1;pr[_t]pn-Pn){var Er=(Hi*ar+wn*tr)/fi;oi(di,ua,tr,Hi,Pn,Er,pn),oi(ua,Jr,ar,Er,Pn,wn,pn)}else{var Zr=(Pn*ar+pn*tr)/fi;oi(di,ua,tr,Hi,Pn,wn,Zr),oi(ua,Jr,ar,Hi,Zr,wn,pn)}}}function Ge(je,$e,wt,Ie,xe){(je.depth&1?Tr:st)(je,$e,wt,Ie,xe)}var Je=function je($e){function wt(Ie,xe,Ce,vt,nr){if((ir=Ie._squarify)&&ir.ratio===$e)for(var ir,pr,oi,di,Jr=-1,fi,Hi=ir.length,Pn=Ie.value;++Jr1?Ie:1)},wt}(Rr);e.cluster=l,e.hierarchy=_,e.pack=ce,e.packEnclose=V,e.packSiblings=Le,e.partition=lt,e.stratify=ur,e.tree=lr,e.treemap=Ur,e.treemapBinary=dt,e.treemapDice=st,e.treemapResquarify=Je,e.treemapSlice=Tr,e.treemapSliceDice=Ge,e.treemapSquarify=Wr,Object.defineProperty(e,"__esModule",{value:!0})})});var IE=ye(PE=>{"use strict";var UCe=LE(),Nkt=Eo(),wA=Dr(),Ukt=tc().makeColorScaleFuncFromTrace,Vkt=_A().makePullColorFn,Gkt=_A().generateExtendedColors,Hkt=tc().calc,jkt=hs().ALMOST_EQUAL,Wkt={},Xkt={},Zkt={};PE.calc=function(e,t){var r=e._fullLayout,n=t.ids,i=wA.isArrayOrTypedArray(n),a=t.labels,o=t.parents,s=t.values,l=wA.isArrayOrTypedArray(s),u=[],c={},f={},h=function(H,N){c[H]?c[H].push(N):c[H]=[N],f[N]=1},d=function(H){return H||typeof H=="number"},v=function(H){return!l||Nkt(s[H])&&s[H]>=0},x,b,p;i?(x=Math.min(n.length,o.length),b=function(H){return d(n[H])&&v(H)},p=function(H){return String(n[H])}):(x=Math.min(a.length,o.length),b=function(H){return d(a[H])&&v(H)},p=function(H){return String(a[H])}),l&&(x=Math.min(x,s.length));for(var C=0;C1){for(var M=wA.randstr(),g=0;g{});function Vm(){}function HCe(){return this.rgb().formatHex()}function r6t(){return this.rgb().formatHex8()}function i6t(){return JCe(this).formatHsl()}function jCe(){return this.rgb().formatRgb()}function W_(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=Ykt.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?WCe(t):r===3?new _d(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?_D(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?_D(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=Kkt.exec(e))?new _d(t[1],t[2],t[3],1):(t=Jkt.exec(e))?new _d(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=$kt.exec(e))?_D(t[1],t[2],t[3],t[4]):(t=Qkt.exec(e))?_D(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=e6t.exec(e))?YCe(t[1],t[2]/100,t[3]/100,1):(t=t6t.exec(e))?YCe(t[1],t[2]/100,t[3]/100,t[4]):GCe.hasOwnProperty(e)?WCe(GCe[e]):e==="transparent"?new _d(NaN,NaN,NaN,0):null}function WCe(e){return new _d(e>>16&255,e>>8&255,e&255,1)}function _D(e,t,r,n){return n<=0&&(e=t=r=NaN),new _d(e,t,r,n)}function DE(e){return e instanceof Vm||(e=W_(e)),e?(e=e.rgb(),new _d(e.r,e.g,e.b,e.opacity)):new _d}function AA(e,t,r,n){return arguments.length===1?DE(e):new _d(e,t,r,n==null?1:n)}function _d(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function XCe(){return`#${M2(this.r)}${M2(this.g)}${M2(this.b)}`}function n6t(){return`#${M2(this.r)}${M2(this.g)}${M2(this.b)}${M2((isNaN(this.opacity)?1:this.opacity)*255)}`}function ZCe(){let e=bD(this.opacity);return`${e===1?"rgb(":"rgba("}${E2(this.r)}, ${E2(this.g)}, ${E2(this.b)}${e===1?")":`, ${e})`}`}function bD(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function E2(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function M2(e){return e=E2(e),(e<16?"0":"")+e.toString(16)}function YCe(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Xg(e,t,r,n)}function JCe(e){if(e instanceof Xg)return new Xg(e.h,e.s,e.l,e.opacity);if(e instanceof Vm||(e=W_(e)),!e)return new Xg;if(e instanceof Xg)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=NaN,s=a-i,l=(a+i)/2;return s?(t===a?o=(r-n)/s+(r0&&l<1?0:o,new Xg(o,s,l,e.opacity)}function FE(e,t,r,n){return arguments.length===1?JCe(e):new Xg(e,t,r,n==null?1:n)}function Xg(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function KCe(e){return e=(e||0)%360,e<0?e+360:e}function xD(e){return Math.max(0,Math.min(1,e||0))}function gW(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 j_,C2,TA,RE,Um,Ykt,Kkt,Jkt,$kt,Qkt,e6t,t6t,GCe,wD=ru(()=>{yD();j_=.7,C2=1/j_,TA="\\s*([+-]?\\d+)\\s*",RE="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Um="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Ykt=/^#([0-9a-f]{3,8})$/,Kkt=new RegExp(`^rgb\\(${TA},${TA},${TA}\\)$`),Jkt=new RegExp(`^rgb\\(${Um},${Um},${Um}\\)$`),$kt=new RegExp(`^rgba\\(${TA},${TA},${TA},${RE}\\)$`),Qkt=new RegExp(`^rgba\\(${Um},${Um},${Um},${RE}\\)$`),e6t=new RegExp(`^hsl\\(${RE},${Um},${Um}\\)$`),t6t=new RegExp(`^hsla\\(${RE},${Um},${Um},${RE}\\)$`),GCe={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};Zy(Vm,W_,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:HCe,formatHex:HCe,formatHex8:r6t,formatHsl:i6t,formatRgb:jCe,toString:jCe});Zy(_d,AA,H_(Vm,{brighter(e){return e=e==null?C2:Math.pow(C2,e),new _d(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?j_:Math.pow(j_,e),new _d(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new _d(E2(this.r),E2(this.g),E2(this.b),bD(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:XCe,formatHex:XCe,formatHex8:n6t,formatRgb:ZCe,toString:ZCe}));Zy(Xg,FE,H_(Vm,{brighter(e){return e=e==null?C2:Math.pow(C2,e),new Xg(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?j_:Math.pow(j_,e),new Xg(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,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new _d(gW(e>=240?e-240:e+120,i,n),gW(e,i,n),gW(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new Xg(KCe(this.h),xD(this.s),xD(this.l),bD(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=bD(this.opacity);return`${e===1?"hsl(":"hsla("}${KCe(this.h)}, ${xD(this.s)*100}%, ${xD(this.l)*100}%${e===1?")":`, ${e})`}`}}))});var TD,AD,mW=ru(()=>{TD=Math.PI/180,AD=180/Math.PI});function ike(e){if(e instanceof Gm)return new Gm(e.l,e.a,e.b,e.opacity);if(e instanceof Yy)return nke(e);e instanceof _d||(e=DE(e));var t=bW(e.r),r=bW(e.g),n=bW(e.b),i=yW((.2225045*t+.7168786*r+.0606169*n)/QCe),a,o;return t===r&&r===n?a=o=i:(a=yW((.4360747*t+.3850649*r+.1430804*n)/$Ce),o=yW((.0139322*t+.0971045*r+.7141733*n)/eke)),new Gm(116*i-16,500*(a-i),200*(i-o),e.opacity)}function MA(e,t,r,n){return arguments.length===1?ike(e):new Gm(e,t,r,n==null?1:n)}function Gm(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function yW(e){return e>a6t?Math.pow(e,1/3):e/rke+tke}function _W(e){return e>SA?e*e*e:rke*(e-tke)}function xW(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function bW(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function o6t(e){if(e instanceof Yy)return new Yy(e.h,e.c,e.l,e.opacity);if(e instanceof Gm||(e=ike(e)),e.a===0&&e.b===0)return new Yy(NaN,0{yD();wD();mW();SD=18,$Ce=.96422,QCe=1,eke=.82521,tke=4/29,SA=6/29,rke=3*SA*SA,a6t=SA*SA*SA;Zy(Gm,MA,H_(Vm,{brighter(e){return new Gm(this.l+SD*(e==null?1:e),this.a,this.b,this.opacity)},darker(e){return new Gm(this.l-SD*(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=$Ce*_W(t),e=QCe*_W(e),r=eke*_W(r),new _d(xW(3.1338561*t-1.6168667*e-.4906146*r),xW(-.9787684*t+1.9161415*e+.033454*r),xW(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}}));Zy(Yy,zE,H_(Vm,{brighter(e){return new Yy(this.h,this.c,this.l+SD*(e==null?1:e),this.opacity)},darker(e){return new Yy(this.h,this.c,this.l-SD*(e==null?1:e),this.opacity)},rgb(){return nke(this).rgb()}}))});function s6t(e){if(e instanceof k2)return new k2(e.h,e.s,e.l,e.opacity);e instanceof _d||(e=DE(e));var t=e.r/255,r=e.g/255,n=e.b/255,i=(lke*n+oke*t-ske*r)/(lke+oke-ske),a=n-i,o=(OE*(r-i)-TW*a)/MD,s=Math.sqrt(o*o+a*a)/(OE*i*(1-i)),l=s?Math.atan2(o,a)*AD-120:NaN;return new k2(l<0?l+360:l,s,i,e.opacity)}function EA(e,t,r,n){return arguments.length===1?s6t(e):new k2(e,t,r,n==null?1:n)}function k2(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}var uke,wW,TW,MD,OE,oke,ske,lke,cke=ru(()=>{yD();wD();mW();uke=-.14861,wW=1.78277,TW=-.29227,MD=-.90649,OE=1.97294,oke=OE*MD,ske=OE*wW,lke=wW*TW-MD*uke;Zy(k2,EA,H_(Vm,{brighter(e){return e=e==null?C2:Math.pow(C2,e),new k2(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?j_:Math.pow(j_,e),new k2(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=isNaN(this.h)?0:(this.h+120)*TD,t=+this.l,r=isNaN(this.s)?0:this.s*t*(1-t),n=Math.cos(e),i=Math.sin(e);return new _d(255*(t+r*(uke*n+wW*i)),255*(t+r*(TW*n+MD*i)),255*(t+r*(OE*n)),this.opacity)}}))});var L2=ru(()=>{wD();ake();cke()});function AW(e,t,r,n,i){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)*n+o*i)/6}function ED(e){var t=e.length-1;return function(r){var n=r<=0?r=0:r>=1?(r=1,t-1):Math.floor(r*t),i=e[n],a=e[n+1],o=n>0?e[n-1]:2*i-a,s=n{});function kD(e){var t=e.length;return function(r){var n=Math.floor(((r%=1)<0?++r:r)*t),i=e[(n+t-1)%t],a=e[n%t],o=e[(n+1)%t],s=e[(n+2)%t];return AW((r-n/t)*t,i,a,o,s)}}var SW=ru(()=>{CD()});var CA,MW=ru(()=>{CA=e=>()=>e});function fke(e,t){return function(r){return e+r*t}}function l6t(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function X_(e,t){var r=t-e;return r?fke(e,r>180||r<-180?r-360*Math.round(r/360):r):CA(isNaN(e)?t:e)}function hke(e){return(e=+e)==1?$f:function(t,r){return r-t?l6t(t,r,e):CA(isNaN(t)?r:t)}}function $f(e,t){var r=t-e;return r?fke(e,r):CA(isNaN(e)?t:e)}var P2=ru(()=>{MW()});function dke(e){return function(t){var r=t.length,n=new Array(r),i=new Array(r),a=new Array(r),o,s;for(o=0;o{L2();CD();SW();P2();qE=function e(t){var r=hke(t);function n(i,a){var o=r((i=AA(i)).r,(a=AA(a)).r),s=r(i.g,a.g),l=r(i.b,a.b),u=$f(i.opacity,a.opacity);return function(c){return i.r=o(c),i.g=s(c),i.b=l(c),i.opacity=u(c),i+""}}return n.gamma=e,n}(1);vke=dke(ED),pke=dke(kD)});function kA(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),i;return function(a){for(i=0;i{});function gke(e,t){return(LD(t)?kA:CW)(e,t)}function CW(e,t){var r=t?t.length:0,n=e?Math.min(r,e.length):0,i=new Array(n),a=new Array(r),o;for(o=0;o{BE();PD()});function ID(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}var LW=ru(()=>{});function Fp(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}var NE=ru(()=>{});function RD(e,t){var r={},n={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?r[i]=Z_(e[i],t[i]):n[i]=t[i];return function(a){for(i in r)n[i]=r[i](a);return n}}var PW=ru(()=>{BE()});function u6t(e){return function(){return e}}function c6t(e){return function(t){return e(t)+""}}function DD(e,t){var r=RW.lastIndex=IW.lastIndex=0,n,i,a,o=-1,s=[],l=[];for(e=e+"",t=t+"";(n=RW.exec(e))&&(i=IW.exec(t));)(a=i.index)>r&&(a=t.slice(r,a),s[o]?s[o]+=a:s[++o]=a),(n=n[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,l.push({i:o,x:Fp(n,i)})),r=IW.lastIndex;return r{NE();RW=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,IW=new RegExp(RW.source,"g")});function Z_(e,t){var r=typeof t,n;return t==null||r==="boolean"?CA(t):(r==="number"?Fp:r==="string"?(n=W_(t))?(t=n,qE):DD:t instanceof W_?qE:t instanceof Date?ID:LD(t)?kA:Array.isArray(t)?CW:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?RD:Fp)(e,t)}var BE=ru(()=>{L2();EW();kW();LW();NE();PW();DW();MW();PD()});function mke(e){var t=e.length;return function(r){return e[Math.max(0,Math.min(t-1,Math.floor(r*t)))]}}var yke=ru(()=>{});function _ke(e,t){var r=X_(+e,+t);return function(n){var i=r(n);return i-360*Math.floor(i/360)}}var xke=ru(()=>{P2()});function bke(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}var wke=ru(()=>{});function FW(e,t,r,n,i,a){var o,s,l;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(l=e*r+t*n)&&(r-=e*l,n-=t*l),(s=Math.sqrt(r*r+n*n))&&(r/=s,n/=s,l/=s),e*n{Tke=180/Math.PI,FD={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1}});function Ske(e){let t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?FD:FW(t.a,t.b,t.c,t.d,t.e,t.f)}function Mke(e){return e==null?FD:(zD||(zD=document.createElementNS("http://www.w3.org/2000/svg","g")),zD.setAttribute("transform",e),(e=zD.transform.baseVal.consolidate())?(e=e.matrix,FW(e.a,e.b,e.c,e.d,e.e,e.f)):FD)}var zD,Eke=ru(()=>{Ake()});function Cke(e,t,r,n){function i(u){return u.length?u.pop()+" ":""}function a(u,c,f,h,d,v){if(u!==f||c!==h){var x=d.push("translate(",null,t,null,r);v.push({i:x-4,x:Fp(u,f)},{i:x-2,x:Fp(c,h)})}else(f||h)&&d.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(i(f)+"rotate(",null,n)-2,x:Fp(u,c)})):c&&f.push(i(f)+"rotate("+c+n)}function s(u,c,f,h){u!==c?h.push({i:f.push(i(f)+"skewX(",null,n)-2,x:Fp(u,c)}):c&&f.push(i(f)+"skewX("+c+n)}function l(u,c,f,h,d,v){if(u!==f||c!==h){var x=d.push(i(d)+"scale(",null,",",null,")");v.push({i:x-4,x:Fp(u,f)},{i:x-2,x:Fp(c,h)})}else(f!==1||h!==1)&&d.push(i(d)+"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(d){for(var v=-1,x=h.length,b;++v{NE();Eke();kke=Cke(Ske,"px, ","px)","deg)"),Lke=Cke(Mke,", ",")",")")});function Ike(e){return((e=Math.exp(e))+1/e)/2}function h6t(e){return((e=Math.exp(e))-1/e)/2}function d6t(e){return((e=Math.exp(2*e))-1)/(e+1)}var f6t,Rke,Dke=ru(()=>{f6t=1e-12;Rke=function e(t,r,n){function i(a,o){var s=a[0],l=a[1],u=a[2],c=o[0],f=o[1],h=o[2],d=c-s,v=f-l,x=d*d+v*v,b,p;if(x{L2();P2();zke=Fke(X_),Oke=Fke($f)});function zW(e,t){var r=$f((e=MA(e)).l,(t=MA(t)).l),n=$f(e.a,t.a),i=$f(e.b,t.b),a=$f(e.opacity,t.opacity);return function(o){return e.l=r(o),e.a=n(o),e.b=i(o),e.opacity=a(o),e+""}}var Bke=ru(()=>{L2();P2()});function Nke(e){return function(t,r){var n=e((t=zE(t)).h,(r=zE(r)).h),i=$f(t.c,r.c),a=$f(t.l,r.l),o=$f(t.opacity,r.opacity);return function(s){return t.h=n(s),t.c=i(s),t.l=a(s),t.opacity=o(s),t+""}}}var Uke,Vke,Gke=ru(()=>{L2();P2();Uke=Nke(X_),Vke=Nke($f)});function Hke(e){return function t(r){r=+r;function n(i,a){var o=e((i=EA(i)).h,(a=EA(a)).h),s=$f(i.s,a.s),l=$f(i.l,a.l),u=$f(i.opacity,a.opacity);return function(c){return i.h=o(c),i.s=s(c),i.l=l(Math.pow(c,r)),i.opacity=u(c),i+""}}return n.gamma=t,n}(1)}var jke,Wke,Xke=ru(()=>{L2();P2();jke=Hke(X_),Wke=Hke($f)});function OW(e,t){t===void 0&&(t=e,e=Z_);for(var r=0,n=t.length-1,i=t[0],a=new Array(n<0?0:n);r{BE()});function Yke(e,t){for(var r=new Array(t),n=0;n{});var I2={};cee(I2,{interpolate:()=>Z_,interpolateArray:()=>gke,interpolateBasis:()=>ED,interpolateBasisClosed:()=>kD,interpolateCubehelix:()=>jke,interpolateCubehelixLong:()=>Wke,interpolateDate:()=>ID,interpolateDiscrete:()=>mke,interpolateHcl:()=>Uke,interpolateHclLong:()=>Vke,interpolateHsl:()=>zke,interpolateHslLong:()=>Oke,interpolateHue:()=>_ke,interpolateLab:()=>zW,interpolateNumber:()=>Fp,interpolateNumberArray:()=>kA,interpolateObject:()=>RD,interpolateRgb:()=>qE,interpolateRgbBasis:()=>vke,interpolateRgbBasisClosed:()=>pke,interpolateRound:()=>bke,interpolateString:()=>DD,interpolateTransformCss:()=>kke,interpolateTransformSvg:()=>Lke,interpolateZoom:()=>Rke,piecewise:()=>OW,quantize:()=>Yke});var R2=ru(()=>{BE();kW();CD();SW();LW();yke();xke();NE();PD();PW();wke();DW();Pke();Dke();EW();qke();Bke();Gke();Xke();Zke();Kke()});var OD=ye((Zvr,Jke)=>{"use strict";var v6t=So(),p6t=Ca();Jke.exports=function(t,r,n,i,a){var o=r.data.data,s=o.i,l=a||o.color;if(s>=0){r.i=o.i;var u=n.marker;u.pattern?(!u.colors||!u.pattern.shape)&&(u.color=l,r.color=l):(u.color=l,r.color=l),v6t.pointStyle(t,n,i,r)}else p6t.fill(t,l)}});var qW=ye((Yvr,r6e)=>{"use strict";var $ke=Oa(),Qke=Ca(),e6e=Dr(),g6t=_v().resizeText,m6t=OD();function y6t(e){var t=e._fullLayout._sunburstlayer.selectAll(".trace");g6t(e,t,"sunburst"),t.each(function(r){var n=$ke.select(this),i=r[0],a=i.trace;n.style("opacity",a.opacity),n.selectAll("path.surface").each(function(o){$ke.select(this).call(t6e,o,a,e)})})}function t6e(e,t,r,n){var i=t.data.data,a=!t.children,o=i.i,s=e6e.castOption(r,o,"marker.line.color")||Qke.defaultLine,l=e6e.castOption(r,o,"marker.line.width")||0;e.call(m6t,t,r,n).style("stroke-width",l).call(Qke.stroke,s).style("opacity",a?r.leaf.opacity:null)}r6e.exports={style:y6t,styleOne:t6e}});var Ky=ye(Ns=>{"use strict";var D2=Dr(),_6t=Ca(),x6t=Tg(),i6e=u_();Ns.findEntryWithLevel=function(e,t){var r;return t&&e.eachAfter(function(n){if(Ns.getPtId(n)===t)return r=n.copy()}),r||e};Ns.findEntryWithChild=function(e,t){var r;return e.eachAfter(function(n){for(var i=n.children||[],a=0;a0)};Ns.getMaxDepth=function(e){return e.maxdepth>=0?e.maxdepth:1/0};Ns.isHeader=function(e,t){return!(Ns.isLeaf(e)||e.depth===t._maxDepth-1)};function n6e(e){return e.data.data.pid}Ns.getParent=function(e,t){return Ns.findEntryWithLevel(e,n6e(t))};Ns.listPath=function(e,t){var r=e.parent;if(!r)return[];var n=t?[r.data[t]]:[r];return Ns.listPath(r,t).concat(n)};Ns.getPath=function(e){return Ns.listPath(e,"label").join("/")+"/"};Ns.formatValue=i6e.formatPieValue;Ns.formatPercent=function(e,t){var r=D2.formatPercent(e,0);return r==="0%"&&(r=i6e.formatPiePercent(e,t)),r}});var GE=ye((Jvr,s6e)=>{"use strict";var LA=Oa(),a6e=qa(),T6t=rp().appendArrayPointValue,UE=vf(),o6e=Dr(),A6t=g3(),rd=Ky(),S6t=u_(),M6t=S6t.formatPieValue;s6e.exports=function(t,r,n,i,a){var o=i[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(v){var x=n._fullLayout;if(!(n._dragging||x.hovermode===!1)){var b=n._fullData[s.index],p=v.data.data,C=p.i,E=rd.isHierarchyRoot(v),A=rd.getParent(l,v),L=rd.getValue(v),_=function(Me){return o6e.castOption(b,C,Me)},k=_("hovertemplate"),M=UE.castHoverinfo(b,x,C),g=x.separators,P;if(k||M&&M!=="none"&&M!=="skip"){var T,z;u&&(T=o.cx+v.pxmid[0]*(1-v.rInscribed),z=o.cy+v.pxmid[1]*(1-v.rInscribed)),c&&(T=v._hoverX,z=v._hoverY);var O={},V=[],G=[],Z=function(Me){return V.indexOf(Me)!==-1};M&&(V=M==="all"?b._module.attributes.hoverinfo.flags:M.split("+")),O.label=p.label,Z("label")&&O.label&&G.push(O.label),p.hasOwnProperty("v")&&(O.value=p.v,O.valueLabel=M6t(O.value,g),Z("value")&&G.push(O.valueLabel)),O.currentPath=v.currentPath=rd.getPath(v.data),Z("current path")&&!E&&G.push(O.currentPath);var H,N=[],j=function(){N.indexOf(H)===-1&&(G.push(H),N.push(H))};O.percentParent=v.percentParent=L/rd.getValue(A),O.parent=v.parentString=rd.getPtLabel(A),Z("percent parent")&&(H=rd.formatPercent(O.percentParent,g)+" of "+O.parent,j()),O.percentEntry=v.percentEntry=L/rd.getValue(r),O.entry=v.entry=rd.getPtLabel(r),Z("percent entry")&&!E&&!v.onPathbar&&(H=rd.formatPercent(O.percentEntry,g)+" of "+O.entry,j()),O.percentRoot=v.percentRoot=L/rd.getValue(l),O.root=v.root=rd.getPtLabel(l),Z("percent root")&&!E&&(H=rd.formatPercent(O.percentRoot,g)+" of "+O.root,j()),O.text=_("hovertext")||_("text"),Z("text")&&(H=O.text,o6e.isValidTextValue(H)&&G.push(H)),P=[VE(v,b,a.eventDataKeys)];var re={trace:b,y:z,_x0:v._x0,_x1:v._x1,_y0:v._y0,_y1:v._y1,text:G.join("
"),name:k||Z("name")?b.name:void 0,color:_("hoverlabel.bgcolor")||p.color,borderColor:_("hoverlabel.bordercolor"),fontFamily:_("hoverlabel.font.family"),fontSize:_("hoverlabel.font.size"),fontColor:_("hoverlabel.font.color"),fontWeight:_("hoverlabel.font.weight"),fontStyle:_("hoverlabel.font.style"),fontVariant:_("hoverlabel.font.variant"),nameLength:_("hoverlabel.namelength"),textAlign:_("hoverlabel.align"),hovertemplate:k,hovertemplateLabels:O,eventData:P};u&&(re.x0=T-v.rInscribed*v.rpx1,re.x1=T+v.rInscribed*v.rpx1,re.idealAlign=v.pxmid[0]<0?"left":"right"),c&&(re.x=T,re.idealAlign=T<0?"left":"right");var oe=[];UE.loneHover(re,{container:x._hoverlayer.node(),outerContainer:x._paper.node(),gd:n,inOut_bbox:oe}),P[0].bbox=oe[0],s._hasHoverLabel=!0}if(c){var _e=t.select("path.surface");a.styleOne(_e,v,b,n,{hovered:!0})}s._hasHoverEvent=!0,n.emit("plotly_hover",{points:P||[VE(v,b,a.eventDataKeys)],event:LA.event})}},h=function(v){var x=n._fullLayout,b=n._fullData[s.index],p=LA.select(this).datum();if(s._hasHoverEvent&&(v.originalEvent=LA.event,n.emit("plotly_unhover",{points:[VE(p,b,a.eventDataKeys)],event:LA.event}),s._hasHoverEvent=!1),s._hasHoverLabel&&(UE.loneUnhover(x._hoverlayer.node()),s._hasHoverLabel=!1),c){var C=t.select("path.surface");a.styleOne(C,p,b,n,{hovered:!1})}},d=function(v){var x=n._fullLayout,b=n._fullData[s.index],p=u&&(rd.isHierarchyRoot(v)||rd.isLeaf(v)),C=rd.getPtId(v),E=rd.isEntry(v)?rd.findEntryWithChild(l,C):rd.findEntryWithLevel(l,C),A=rd.getPtId(E),L={points:[VE(v,b,a.eventDataKeys)],event:LA.event};p||(L.nextLevel=A);var _=A6t.triggerHandler(n,"plotly_"+s.type+"click",L);if(_!==!1&&x.hovermode&&(n._hoverdata=[VE(v,b,a.eventDataKeys)],UE.click(n,LA.event)),!p&&_!==!1&&!n._dragging&&!n._transitioning){a6e.call("_storeDirectGUIEdit",b,x._tracePreGUI[b.uid],{level:b.level});var k={data:[{level:A}],traces:[s.index]},M={frame:{redraw:!1,duration:a.transitionTime},transition:{duration:a.transitionTime,easing:a.transitionEasing},mode:"immediate",fromcurrent:!0};UE.loneUnhover(x._hoverlayer.node()),a6e.call("animate",n,k,M)}};t.on("mouseover",f),t.on("mouseout",h),t.on("click",d)};function VE(e,t,r){for(var n=e.data.data,i={curveNumber:t.index,pointNumber:n.i,data:t._input,fullData:t},a=0;a{"use strict";var HE=Oa(),E6t=LE(),Zg=(R2(),B1(I2)).interpolate,l6e=So(),bv=Dr(),C6t=iu(),h6e=_v(),u6e=h6e.recordMinTextSize,k6t=h6e.clearMinTextSize,d6e=gD(),L6t=u_().getRotationAngle,P6t=d6e.computeTransform,I6t=d6e.transformInsideText,R6t=qW().styleOne,D6t=N0().resizeText,F6t=GE(),BW=vW(),Il=Ky();qD.plot=function(e,t,r,n){var i=e._fullLayout,a=i._sunburstlayer,o,s,l=!r,u=!i.uniformtext.mode&&Il.hasTransition(r);if(k6t("sunburst",i),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){n&&(s=n());var c=HE.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){c6e(e,f,this,r)})})}else o.each(function(f){c6e(e,f,this,r)}),i.uniformtext.mode&&D6t(e,i._sunburstlayer.selectAll(".trace"),"sunburst");l&&o.exit().remove()};function c6e(e,t,r,n){var i=e._context.staticPlot,a=e._fullLayout,o=!a.uniformtext.mode&&Il.hasTransition(n),s=HE.select(r),l=s.selectAll("g.slice"),u=t[0],c=u.trace,f=u.hierarchy,h=Il.findEntryWithLevel(f,c.level),d=Il.getMaxDepth(c),v=a._size,x=c.domain,b=v.w*(x.x[1]-x.x[0]),p=v.h*(x.y[1]-x.y[0]),C=.5*Math.min(b,p),E=u.cx=v.l+v.w*(x.x[1]+x.x[0])/2,A=u.cy=v.t+v.h*(1-x.y[0])-p/2;if(!h)return l.remove();var L=null,_={};o&&l.each(function(me){_[Il.getPtId(me)]={rpx0:me.rpx0,rpx1:me.rpx1,x0:me.x0,x1:me.x1,transform:me.transform},!L&&Il.isEntry(me)&&(L=me)});var k=z6t(h).descendants(),M=h.height+1,g=0,P=d;u.hasMultipleRoots&&Il.isHierarchyRoot(h)&&(k=k.slice(1),M-=1,g=1,P+=1),k=k.filter(function(me){return me.y1<=P});var T=L6t(c.rotation);T&&k.forEach(function(me){me.x0+=T,me.x1+=T});var z=Math.min(M,d),O=function(me){return(me-g)/z*C},V=function(me,ie){return[me*Math.cos(ie),-me*Math.sin(ie)]},G=function(me){return bv.pathAnnulus(me.rpx0,me.rpx1,me.x0,me.x1,E,A)},Z=function(me){return E+f6e(me)[0]*(me.transform.rCenter||0)+(me.transform.x||0)},H=function(me){return A+f6e(me)[1]*(me.transform.rCenter||0)+(me.transform.y||0)};l=l.data(k,Il.getPtId),l.enter().append("g").classed("slice",!0),o?l.exit().transition().each(function(){var me=HE.select(this),ie=me.select("path.surface");ie.transition().attrTween("d",function(Le){var Ae=oe(Le);return function(De){return G(Ae(De))}});var Se=me.select("g.slicetext");Se.attr("opacity",0)}).remove():l.exit().remove(),l.order();var N=null;if(o&&L){var j=Il.getPtId(L);l.each(function(me){N===null&&Il.getPtId(me)===j&&(N=me.x1)})}var re=l;o&&(re=re.transition().each("end",function(){var me=HE.select(this);Il.setSliceCursor(me,e,{hideOnRoot:!0,hideOnLeaves:!0,isTransitioning:!1})})),re.each(function(me){var ie=HE.select(this),Se=bv.ensureSingle(ie,"path","surface",function(Fe){Fe.style("pointer-events",i?"none":"all")});me.rpx0=O(me.y0),me.rpx1=O(me.y1),me.xmid=(me.x0+me.x1)/2,me.pxmid=V(me.rpx1,me.xmid),me.midangle=-(me.xmid-Math.PI/2),me.startangle=-(me.x0-Math.PI/2),me.stopangle=-(me.x1-Math.PI/2),me.halfangle=.5*Math.min(bv.angleDelta(me.x0,me.x1)||Math.PI,Math.PI),me.ring=1-me.rpx0/me.rpx1,me.rInscribed=O6t(me,c),o?Se.transition().attrTween("d",function(Fe){var ce=_e(Fe);return function(Ze){return G(ce(Ze))}}):Se.attr("d",G),ie.call(F6t,h,e,t,{eventDataKeys:BW.eventDataKeys,transitionTime:BW.CLICK_TRANSITION_TIME,transitionEasing:BW.CLICK_TRANSITION_EASING}).call(Il.setSliceCursor,e,{hideOnRoot:!0,hideOnLeaves:!0,isTransitioning:e._transitioning}),Se.call(R6t,me,c,e);var Le=bv.ensureSingle(ie,"g","slicetext"),Ae=bv.ensureSingle(Le,"text","",function(Fe){Fe.attr("data-notex",1)}),De=bv.ensureUniformFontSize(e,Il.determineTextFont(c,me,a.font));Ae.text(qD.formatSliceLabel(me,h,c,t,a)).classed("slicetext",!0).attr("text-anchor","middle").call(l6e.font,De).call(C6t.convertToTspans,e);var Pe=l6e.bBox(Ae.node());me.transform=I6t(Pe,me,u),me.transform.targetX=Z(me),me.transform.targetY=H(me);var ge=function(Fe,ce){var Ze=Fe.transform;return P6t(Ze,ce),Ze.fontSize=De.size,u6e(c.type,Ze,a),bv.getTextTransform(Ze)};o?Ae.transition().attrTween("transform",function(Fe){var ce=Me(Fe);return function(Ze){return ge(ce(Ze),Pe)}}):Ae.attr("transform",ge(me,Pe))});function oe(me){var ie=Il.getPtId(me),Se=_[ie],Le=_[Il.getPtId(h)],Ae;if(Le){var De=(me.x1>Le.x1?2*Math.PI:0)+T;Ae=me.rpx1N?2*Math.PI:0)+T;Se={x0:Ae,x1:Ae}}else Se={rpx0:C,rpx1:C},bv.extendFlat(Se,ke(me));else Se={rpx0:0,rpx1:0};else Se={x0:T,x1:T};return Zg(Se,Le)}function Me(me){var ie=_[Il.getPtId(me)],Se,Le=me.transform;if(ie)Se=ie;else if(Se={rpx1:me.rpx1,transform:{textPosAngle:Le.textPosAngle,scale:0,rotate:Le.rotate,rCenter:Le.rCenter,x:Le.x,y:Le.y}},L)if(me.parent)if(N){var Ae=me.x1>N?2*Math.PI:0;Se.x0=Se.x1=Ae}else bv.extendFlat(Se,ke(me));else Se.x0=Se.x1=T;else Se.x0=Se.x1=T;var De=Zg(Se.transform.textPosAngle,me.transform.textPosAngle),Pe=Zg(Se.rpx1,me.rpx1),ge=Zg(Se.x0,me.x0),Fe=Zg(Se.x1,me.x1),ce=Zg(Se.transform.scale,Le.scale),Ze=Zg(Se.transform.rotate,Le.rotate),ct=Le.rCenter===0?3:Se.transform.rCenter===0?1/3:1,pt=Zg(Se.transform.rCenter,Le.rCenter),Wt=function(st){return pt(Math.pow(st,ct))};return function(st){var lt=Pe(st),Gt=ge(st),Nt=Fe(st),$t=Wt(st),sr=V(lt,(Gt+Nt)/2),wr=De(st),ur={pxmid:sr,rpx1:lt,transform:{textPosAngle:wr,rCenter:$t,x:Le.x,y:Le.y}};return u6e(c.type,Le,a),{transform:{targetX:Z(ur),targetY:H(ur),scale:ce(st),rotate:Ze(st),rCenter:$t}}}}function ke(me){var ie=me.parent,Se=_[Il.getPtId(ie)],Le={};if(Se){var Ae=ie.children,De=Ae.indexOf(me),Pe=Ae.length,ge=Zg(Se.x0,Se.x1);Le.x0=ge(De/Pe),Le.x1=ge(De/Pe)}else Le.x0=Le.x1=0;return Le}}function z6t(e){return E6t.partition().size([2*Math.PI,e.height+1])(e)}qD.formatSliceLabel=function(e,t,r,n,i){var a=r.texttemplate,o=r.textinfo;if(!a&&(!o||o==="none"))return"";var s=i.separators,l=n[0],u=e.data.data,c=l.hierarchy,f=Il.isHierarchyRoot(e),h=Il.getParent(c,e),d=Il.getValue(e);if(!a){var v=o.split("+"),x=function(g){return v.indexOf(g)!==-1},b=[],p;if(x("label")&&u.label&&b.push(u.label),u.hasOwnProperty("v")&&x("value")&&b.push(Il.formatValue(u.v,s)),!f){x("current path")&&b.push(Il.getPath(e.data));var C=0;x("percent parent")&&C++,x("percent entry")&&C++,x("percent root")&&C++;var E=C>1;if(C){var A,L=function(g){p=Il.formatPercent(A,s),E&&(p+=" of "+g),b.push(p)};x("percent parent")&&!f&&(A=d/Il.getValue(h),L("parent")),x("percent entry")&&(A=d/Il.getValue(t),L("entry")),x("percent root")&&(A=d/Il.getValue(c),L("root"))}}return x("text")&&(p=bv.castOption(r,u.i,"text"),bv.isValidTextValue(p)&&b.push(p)),b.join("
")}var _=bv.castOption(r,u.i,"texttemplate");if(!_)return"";var k={};u.label&&(k.label=u.label),u.hasOwnProperty("v")&&(k.value=u.v,k.valueLabel=Il.formatValue(u.v,s)),k.currentPath=Il.getPath(e.data),f||(k.percentParent=d/Il.getValue(h),k.percentParentLabel=Il.formatPercent(k.percentParent,s),k.parent=Il.getPtLabel(h)),k.percentEntry=d/Il.getValue(t),k.percentEntryLabel=Il.formatPercent(k.percentEntry,s),k.entry=Il.getPtLabel(t),k.percentRoot=d/Il.getValue(c),k.percentRootLabel=Il.formatPercent(k.percentRoot,s),k.root=Il.getPtLabel(c),u.hasOwnProperty("color")&&(k.color=u.color);var M=bv.castOption(r,u.i,"text");return(bv.isValidTextValue(M)||M==="")&&(k.text=M),k.customdata=bv.castOption(r,u.i,"customdata"),bv.texttemplateString(_,k,i._d3locale,k,r._meta||{})};function O6t(e){return e.rpx0===0&&bv.isFullCircle([e.x0,e.x1])?1:Math.max(0,Math.min(1/(1+1/Math.sin(e.halfangle)),e.ring/2))}function f6e(e){return q6t(e.rpx1,e.transform.textPosAngle)}function q6t(e,t){return[e*Math.sin(t),-e*Math.cos(t)]}});var p6e=ye((Qvr,v6e)=>{"use strict";v6e.exports={moduleType:"trace",name:"sunburst",basePlotModule:kCe(),categories:[],animatable:!0,attributes:kE(),layoutAttributes:pW(),supplyDefaults:OCe(),supplyLayoutDefaults:BCe(),calc:IE().calc,crossTraceCalc:IE().crossTraceCalc,plot:BD().plot,style:qW().style,colorbar:$d(),meta:{}}});var m6e=ye((epr,g6e)=>{"use strict";g6e.exports=p6e()});var _6e=ye(PA=>{"use strict";var y6e=Mc();PA.name="treemap";PA.plot=function(e,t,r,n){y6e.plotBasePlot(PA.name,e,t,r,n)};PA.clean=function(e,t,r,n){y6e.cleanBasePlot(PA.name,e,t,r,n)}});var F2=ye((rpr,x6e)=>{"use strict";x6e.exports={CLICK_TRANSITION_TIME:750,CLICK_TRANSITION_EASING:"poly",eventDataKeys:["currentPath","root","entry","percentRoot","percentEntry","percentParent"],gapWithPathbar:1}});var ND=ye((ipr,w6e)=>{"use strict";var B6t=Qo().hovertemplateAttrs,N6t=Qo().texttemplateAttrs,U6t=Tu(),V6t=kc().attributes,z2=A2(),Q0=kE(),b6e=F2(),NW=Ao().extendFlat,G6t=Pd().pattern;w6e.exports={labels:Q0.labels,parents:Q0.parents,values:Q0.values,branchvalues:Q0.branchvalues,count:Q0.count,level:Q0.level,maxdepth:Q0.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:NW({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:Q0.marker.colors,pattern:G6t,depthfade:{valType:"enumerated",values:[!0,!1,"reversed"],editType:"style"},line:Q0.marker.line,cornerradius:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"calc"},U6t("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:NW({},z2.textfont,{}),editType:"calc"},text:z2.text,textinfo:Q0.textinfo,texttemplate:N6t({editType:"plot"},{keys:b6e.eventDataKeys.concat(["label","value"])}),hovertext:z2.hovertext,hoverinfo:Q0.hoverinfo,hovertemplate:B6t({},{keys:b6e.eventDataKeys}),textfont:z2.textfont,insidetextfont:z2.insidetextfont,outsidetextfont:NW({},z2.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:z2.sort,root:Q0.root,domain:V6t({name:"treemap",trace:!0,editType:"calc"})}});var UW=ye((npr,T6e)=>{"use strict";T6e.exports={treemapcolorway:{valType:"colorlist",editType:"calc"},extendtreemapcolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var E6e=ye((apr,M6e)=>{"use strict";var A6e=Dr(),H6t=ND(),j6t=Ca(),W6t=kc().defaults,X6t=r0().handleText,Z6t=Qb().TEXTPAD,Y6t=S2().handleMarkerDefaults,S6e=tc(),K6t=S6e.hasColorscale,J6t=S6e.handleDefaults;M6e.exports=function(t,r,n,i){function a(b,p){return A6e.coerce(t,r,H6t,b,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");var u=a("tiling.packing");u==="squarify"&&a("tiling.squarifyratio"),a("tiling.flip"),a("tiling.pad");var c=a("text");a("texttemplate"),r.texttemplate||a("textinfo",A6e.isArrayOrTypedArray(c)?"text+label":"label"),a("hovertext"),a("hovertemplate");var f=a("pathbar.visible"),h="auto";X6t(t,r,i,a,h,{hasPathbar:f,moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),a("textposition");var d=r.textposition.indexOf("bottom")!==-1;Y6t(t,r,i,a);var v=r._hasColorscale=K6t(t,"marker","colors")||(t.marker||{}).coloraxis;v?J6t(t,r,i,a,{prefix:"marker.",cLetter:"c"}):a("marker.depthfade",!(r.marker.colors||[]).length);var x=r.textfont.size*2;a("marker.pad.t",d?x/4:x),a("marker.pad.l",x/4),a("marker.pad.r",x/4),a("marker.pad.b",d?x:x/4),a("marker.cornerradius"),r._hovered={marker:{line:{width:2,color:j6t.contrast(i.paper_bgcolor)}}},f&&(a("pathbar.thickness",r.pathbar.textfont.size+2*Z6t),a("pathbar.side"),a("pathbar.edgeshape")),a("sort"),a("root.color"),W6t(r,i,a),r._length=null}});var k6e=ye((opr,C6e)=>{"use strict";var $6t=Dr(),Q6t=UW();C6e.exports=function(t,r){function n(i,a){return $6t.coerce(t,r,Q6t,i,a)}n("treemapcolorway",r.colorway),n("extendtreemapcolors")}});var GW=ye(VW=>{"use strict";var L6e=IE();VW.calc=function(e,t){return L6e.calc(e,t)};VW.crossTraceCalc=function(e){return L6e._runCrossTraceCalc("treemap",e)}});var HW=ye((lpr,P6e)=>{"use strict";P6e.exports=function e(t,r,n){var i;n.swapXY&&(i=t.x0,t.x0=t.y0,t.y0=i,i=t.x1,t.x1=t.y1,t.y1=i),n.flipX&&(i=t.x0,t.x0=r[0]-t.x1,t.x1=r[0]-i),n.flipY&&(i=t.y0,t.y0=r[1]-t.y1,t.y1=r[1]-i);var a=t.children;if(a)for(var o=0;o{"use strict";var IA=LE(),eLt=HW();I6e.exports=function(t,r,n){var i=n.flipX,a=n.flipY,o=n.packing==="dice-slice",s=n.pad[a?"bottom":"top"],l=n.pad[i?"right":"left"],u=n.pad[i?"left":"right"],c=n.pad[a?"top":"bottom"],f;o&&(f=l,l=s,s=f,f=u,u=c,c=f);var h=IA.treemap().tile(tLt(n.packing,n.squarifyratio)).paddingInner(n.pad.inner).paddingLeft(l).paddingRight(u).paddingTop(s).paddingBottom(c).size(o?[r[1],r[0]]:r)(t);return(o||i||a)&&eLt(h,r,{swapXY:o,flipX:i,flipY:a}),h};function tLt(e,t){switch(e){case"squarify":return IA.treemapSquarify.ratio(t);case"binary":return IA.treemapBinary;case"dice":return IA.treemapDice;case"slice":return IA.treemapSlice;default:return IA.treemapSliceDice}}});var UD=ye((cpr,z6e)=>{"use strict";var R6e=Oa(),RA=Ca(),D6e=Dr(),WW=Ky(),rLt=_v().resizeText,iLt=OD();function nLt(e){var t=e._fullLayout._treemaplayer.selectAll(".trace");rLt(e,t,"treemap"),t.each(function(r){var n=R6e.select(this),i=r[0],a=i.trace;n.style("opacity",a.opacity),n.selectAll("path.surface").each(function(o){R6e.select(this).call(F6e,o,a,e,{hovered:!1})})})}function F6e(e,t,r,n,i){var a=(i||{}).hovered,o=t.data.data,s=o.i,l,u,c=o.color,f=WW.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=D6e.castOption(r,s,"marker.line.color")||RA.defaultLine,u=D6e.castOption(r,s,"marker.line.width")||0,!r._hasColorscale&&!t.onPathbar){var d=r.marker.depthfade;if(d){var v=RA.combine(RA.addOpacity(r._backgroundColor,.75),c),x;if(d===!0){var b=WW.getMaxDepth(r);isFinite(b)?WW.isLeaf(t)?x=0:x=r._maxVisibleLayers-(t.data.depth-r._entryDepth):x=t.data.height+1}else x=t.data.depth-r._entryDepth,r._atRootLevel||x++;if(x>0)for(var p=0;p{"use strict";var O6e=Oa(),VD=Dr(),q6e=So(),aLt=iu(),oLt=jW(),B6e=UD().styleOne,XW=F2(),DA=Ky(),sLt=GE(),ZW=!0;N6e.exports=function(t,r,n,i,a){var o=a.barDifY,s=a.width,l=a.height,u=a.viewX,c=a.viewY,f=a.pathSlice,h=a.toMoveInsideSlice,d=a.strTransform,v=a.hasTransition,x=a.handleSlicesExit,b=a.makeUpdateSliceInterpolator,p=a.makeUpdateTextInterpolator,C={},E=t._context.staticPlot,A=t._fullLayout,L=r[0],_=L.trace,k=L.hierarchy,M=s/_._entryDepth,g=DA.listPath(n.data,"id"),P=oLt(k.copy(),[s,l],{packing:"dice",pad:{inner:0,top:0,left:0,right:0,bottom:0}}).descendants();P=P.filter(function(z){var O=g.indexOf(z.data.id);return O===-1?!1:(z.x0=M*O,z.x1=M*(O+1),z.y0=o,z.y1=o+l,z.onPathbar=!0,!0)}),P.reverse(),i=i.data(P,DA.getPtId),i.enter().append("g").classed("pathbar",!0),x(i,ZW,C,[s,l],f),i.order();var T=i;v&&(T=T.transition().each("end",function(){var z=O6e.select(this);DA.setSliceCursor(z,t,{hideOnRoot:!1,hideOnLeaves:!1,isTransitioning:!1})})),T.each(function(z){z._x0=u(z.x0),z._x1=u(z.x1),z._y0=c(z.y0),z._y1=c(z.y1),z._hoverX=u(z.x1-Math.min(s,l)/2),z._hoverY=c(z.y1-l/2);var O=O6e.select(this),V=VD.ensureSingle(O,"path","surface",function(N){N.style("pointer-events",E?"none":"all")});v?V.transition().attrTween("d",function(N){var j=b(N,ZW,C,[s,l]);return function(re){return f(j(re))}}):V.attr("d",f),O.call(sLt,n,t,r,{styleOne:B6e,eventDataKeys:XW.eventDataKeys,transitionTime:XW.CLICK_TRANSITION_TIME,transitionEasing:XW.CLICK_TRANSITION_EASING}).call(DA.setSliceCursor,t,{hideOnRoot:!1,hideOnLeaves:!1,isTransitioning:t._transitioning}),V.call(B6e,z,_,t,{hovered:!1}),z._text=(DA.getPtLabel(z)||"").split("
").join(" ")||"";var G=VD.ensureSingle(O,"g","slicetext"),Z=VD.ensureSingle(G,"text","",function(N){N.attr("data-notex",1)}),H=VD.ensureUniformFontSize(t,DA.determineTextFont(_,z,A.font,{onPathbar:!0}));Z.text(z._text||" ").classed("slicetext",!0).attr("text-anchor","start").call(q6e.font,H).call(aLt.convertToTspans,t),z.textBB=q6e.bBox(Z.node()),z.transform=h(z,{fontSize:H.size,onPathbar:!0}),z.transform.fontSize=H.size,v?Z.transition().attrTween("transform",function(N){var j=p(N,ZW,C,[s,l]);return function(re){return d(j(re))}}):Z.attr("transform",d(z))})}});var j6e=ye((hpr,H6e)=>{"use strict";var V6e=Oa(),YW=(R2(),B1(I2)).interpolate,Y_=Ky(),jE=Dr(),G6e=Qb().TEXTPAD,lLt=i2(),uLt=lLt.toMoveInsideBar,cLt=_v(),KW=cLt.recordMinTextSize,fLt=F2(),hLt=U6e();function O2(e){return Y_.isHierarchyRoot(e)?"":Y_.getPtId(e)}H6e.exports=function(t,r,n,i,a){var o=t._fullLayout,s=r[0],l=s.trace,u=l.type,c=u==="icicle",f=s.hierarchy,h=Y_.findEntryWithLevel(f,l.level),d=V6e.select(n),v=d.selectAll("g.pathbar"),x=d.selectAll("g.slice");if(!h){v.remove(),x.remove();return}var b=Y_.isHierarchyRoot(h),p=!o.uniformtext.mode&&Y_.hasTransition(i),C=Y_.getMaxDepth(l),E=function(Qe){return Qe.data.depth-h.data.depth-1?k+P:-(g+P):0,z={x0:M,x1:M,y0:T,y1:T+g},O=function(Qe,Et,er){var Ut=l.tiling.pad,Ft=function(lr){return lr-Ut<=Et.x0},bt=function(lr){return lr+Ut>=Et.x1},yt=function(lr){return lr-Ut<=Et.y0},Yt=function(lr){return lr+Ut>=Et.y1};return Qe.x0===Et.x0&&Qe.x1===Et.x1&&Qe.y0===Et.y0&&Qe.y1===Et.y1?{x0:Qe.x0,x1:Qe.x1,y0:Qe.y0,y1:Qe.y1}:{x0:Ft(Qe.x0-Ut)?0:bt(Qe.x0-Ut)?er[0]:Qe.x0,x1:Ft(Qe.x1+Ut)?0:bt(Qe.x1+Ut)?er[0]:Qe.x1,y0:yt(Qe.y0-Ut)?0:Yt(Qe.y0-Ut)?er[1]:Qe.y0,y1:yt(Qe.y1+Ut)?0:Yt(Qe.y1+Ut)?er[1]:Qe.y1}},V=null,G={},Z={},H=null,N=function(Qe,Et){return Et?G[O2(Qe)]:Z[O2(Qe)]},j=function(Qe,Et,er,Ut){if(Et)return G[O2(f)]||z;var Ft=Z[l.level]||er;return E(Qe)?O(Qe,Ft,Ut):{}};s.hasMultipleRoots&&b&&C++,l._maxDepth=C,l._backgroundColor=o.paper_bgcolor,l._entryDepth=h.data.depth,l._atRootLevel=b;var re=-_/2+A.l+A.w*(L.x[1]+L.x[0])/2,oe=-k/2+A.t+A.h*(1-(L.y[1]+L.y[0])/2),_e=function(Qe){return re+Qe},Me=function(Qe){return oe+Qe},ke=Me(0),me=_e(0),ie=function(Qe){return me+Qe},Se=function(Qe){return ke+Qe};function Le(Qe,Et){return Qe+","+Et}var Ae=ie(0),De=function(Qe){Qe.x=Math.max(Ae,Qe.x)},Pe=l.pathbar.edgeshape,ge=function(Qe){var Et=ie(Math.max(Math.min(Qe.x0,Qe.x0),0)),er=ie(Math.min(Math.max(Qe.x1,Qe.x1),M)),Ut=Se(Qe.y0),Ft=Se(Qe.y1),bt=g/2,yt={},Yt={};yt.x=Et,Yt.x=er,yt.y=Yt.y=(Ut+Ft)/2;var lr={x:Et,y:Ut},Tr={x:er,y:Ut},Rr={x:er,y:Ft},ei={x:Et,y:Ft};return Pe===">"?(lr.x-=bt,Tr.x-=bt,Rr.x-=bt,ei.x-=bt):Pe==="/"?(Rr.x-=bt,ei.x-=bt,yt.x-=bt/2,Yt.x-=bt/2):Pe==="\\"?(lr.x-=bt,Tr.x-=bt,yt.x-=bt/2,Yt.x-=bt/2):Pe==="<"&&(yt.x-=bt,Yt.x-=bt),De(lr),De(ei),De(yt),De(Tr),De(Rr),De(Yt),"M"+Le(lr.x,lr.y)+"L"+Le(Tr.x,Tr.y)+"L"+Le(Yt.x,Yt.y)+"L"+Le(Rr.x,Rr.y)+"L"+Le(ei.x,ei.y)+"L"+Le(yt.x,yt.y)+"Z"},Fe=l[c?"tiling":"marker"].pad,ce=function(Qe){return l.textposition.indexOf(Qe)!==-1},Ze=ce("top"),ct=ce("left"),pt=ce("right"),Wt=ce("bottom"),st=function(Qe){var Et=_e(Qe.x0),er=_e(Qe.x1),Ut=Me(Qe.y0),Ft=Me(Qe.y1),bt=er-Et,yt=Ft-Ut;if(!bt||!yt)return"";var Yt=l.marker.cornerradius||0,lr=Math.min(Yt,bt/2,yt/2);lr&&Qe.data&&Qe.data.data&&Qe.data.data.label&&(Ze&&(lr=Math.min(lr,Fe.t)),ct&&(lr=Math.min(lr,Fe.l)),pt&&(lr=Math.min(lr,Fe.r)),Wt&&(lr=Math.min(lr,Fe.b)));var Tr=function(Rr,ei){return lr?"a"+Le(lr,lr)+" 0 0 1 "+Le(Rr,ei):""};return"M"+Le(Et,Ut+lr)+Tr(lr,-lr)+"L"+Le(er-lr,Ut)+Tr(lr,lr)+"L"+Le(er,Ft-lr)+Tr(-lr,lr)+"L"+Le(Et+lr,Ft)+Tr(-lr,-lr)+"Z"},lt=function(Qe,Et){var er=Qe.x0,Ut=Qe.x1,Ft=Qe.y0,bt=Qe.y1,yt=Qe.textBB,Yt=Ze||Et.isHeader&&!Wt,lr=Yt?"start":Wt?"end":"middle",Tr=ce("right"),Rr=ce("left")||Et.onPathbar,ei=Rr?-1:Tr?1:0;if(Et.isHeader){if(er+=(c?Fe:Fe.l)-G6e,Ut-=(c?Fe:Fe.r)-G6e,er>=Ut){var Wr=(er+Ut)/2;er=Wr,Ut=Wr}var Ur;Wt?(Ur=bt-(c?Fe:Fe.b),Ft{"use strict";var dLt=Oa(),vLt=Ky(),pLt=_v(),gLt=pLt.clearMinTextSize,mLt=N0().resizeText,W6e=j6e();X6e.exports=function(t,r,n,i,a){var o=a.type,s=a.drawDescendants,l=t._fullLayout,u=l["_"+o+"layer"],c,f,h=!n;if(gLt(o,l),c=u.selectAll("g.trace."+o).data(r,function(v){return v[0].trace.uid}),c.enter().append("g").classed("trace",!0).classed(o,!0),c.order(),!l.uniformtext.mode&&vLt.hasTransition(n)){i&&(f=i());var d=dLt.transition().duration(n.duration).ease(n.easing).each("end",function(){f&&f()}).each("interrupt",function(){f&&f()});d.each(function(){u.selectAll("g.trace").each(function(v){W6e(t,v,this,n,s)})})}else c.each(function(v){W6e(t,v,this,n,s)}),l.uniformtext.mode&&mLt(t,u.selectAll(".trace"),o);h&&c.exit().remove()}});var $6e=ye((vpr,J6e)=>{"use strict";var Z6e=Oa(),GD=Dr(),Y6e=So(),yLt=iu(),_Lt=jW(),K6e=UD().styleOne,$W=F2(),K_=Ky(),xLt=GE(),bLt=BD().formatSliceLabel,QW=!1;J6e.exports=function(t,r,n,i,a){var o=a.width,s=a.height,l=a.viewX,u=a.viewY,c=a.pathSlice,f=a.toMoveInsideSlice,h=a.strTransform,d=a.hasTransition,v=a.handleSlicesExit,x=a.makeUpdateSliceInterpolator,b=a.makeUpdateTextInterpolator,p=a.prevEntry,C={},E=t._context.staticPlot,A=t._fullLayout,L=r[0],_=L.trace,k=_.textposition.indexOf("left")!==-1,M=_.textposition.indexOf("right")!==-1,g=_.textposition.indexOf("bottom")!==-1,P=!g&&!_.marker.pad.t||g&&!_.marker.pad.b,T=_Lt(n,[o,s],{packing:_.tiling.packing,squarifyratio:_.tiling.squarifyratio,flipX:_.tiling.flip.indexOf("x")>-1,flipY:_.tiling.flip.indexOf("y")>-1,pad:{inner:_.tiling.pad,top:_.marker.pad.t,left:_.marker.pad.l,right:_.marker.pad.r,bottom:_.marker.pad.b}}),z=T.descendants(),O=1/0,V=-1/0;z.forEach(function(j){var re=j.depth;re>=_._maxDepth?(j.x0=j.x1=(j.x0+j.x1)/2,j.y0=j.y1=(j.y0+j.y1)/2):(O=Math.min(O,re),V=Math.max(V,re))}),i=i.data(z,K_.getPtId),_._maxVisibleLayers=isFinite(V)?V-O+1:0,i.enter().append("g").classed("slice",!0),v(i,QW,C,[o,s],c),i.order();var G=null;if(d&&p){var Z=K_.getPtId(p);i.each(function(j){G===null&&K_.getPtId(j)===Z&&(G={x0:j.x0,x1:j.x1,y0:j.y0,y1:j.y1})})}var H=function(){return G||{x0:0,x1:o,y0:0,y1:s}},N=i;return d&&(N=N.transition().each("end",function(){var j=Z6e.select(this);K_.setSliceCursor(j,t,{hideOnRoot:!0,hideOnLeaves:!1,isTransitioning:!1})})),N.each(function(j){var re=K_.isHeader(j,_);j._x0=l(j.x0),j._x1=l(j.x1),j._y0=u(j.y0),j._y1=u(j.y1),j._hoverX=l(j.x1-_.marker.pad.r),j._hoverY=u(g?j.y1-_.marker.pad.b/2:j.y0+_.marker.pad.t/2);var oe=Z6e.select(this),_e=GD.ensureSingle(oe,"path","surface",function(Le){Le.style("pointer-events",E?"none":"all")});d?_e.transition().attrTween("d",function(Le){var Ae=x(Le,QW,H(),[o,s]);return function(De){return c(Ae(De))}}):_e.attr("d",c),oe.call(xLt,n,t,r,{styleOne:K6e,eventDataKeys:$W.eventDataKeys,transitionTime:$W.CLICK_TRANSITION_TIME,transitionEasing:$W.CLICK_TRANSITION_EASING}).call(K_.setSliceCursor,t,{isTransitioning:t._transitioning}),_e.call(K6e,j,_,t,{hovered:!1}),j.x0===j.x1||j.y0===j.y1?j._text="":re?j._text=P?"":K_.getPtLabel(j)||"":j._text=bLt(j,n,_,r,A)||"";var Me=GD.ensureSingle(oe,"g","slicetext"),ke=GD.ensureSingle(Me,"text","",function(Le){Le.attr("data-notex",1)}),me=GD.ensureUniformFontSize(t,K_.determineTextFont(_,j,A.font)),ie=j._text||" ",Se=re&&ie.indexOf("
")===-1;ke.text(ie).classed("slicetext",!0).attr("text-anchor",M?"end":k||Se?"start":"middle").call(Y6e.font,me).call(yLt.convertToTspans,t),j.textBB=Y6e.bBox(ke.node()),j.transform=f(j,{fontSize:me.size,isHeader:re}),j.transform.fontSize=me.size,d?ke.transition().attrTween("transform",function(Le){var Ae=b(Le,QW,H(),[o,s]);return function(De){return h(Ae(De))}}):ke.attr("transform",h(j))}),G}});var eLe=ye((ppr,Q6e)=>{"use strict";var wLt=JW(),TLt=$6e();Q6e.exports=function(t,r,n,i){return wLt(t,r,n,i,{type:"treemap",drawDescendants:TLt})}});var rLe=ye((gpr,tLe)=>{"use strict";tLe.exports={moduleType:"trace",name:"treemap",basePlotModule:_6e(),categories:[],animatable:!0,attributes:ND(),layoutAttributes:UW(),supplyDefaults:E6e(),supplyLayoutDefaults:k6e(),calc:GW().calc,crossTraceCalc:GW().crossTraceCalc,plot:eLe(),style:UD().style,colorbar:$d(),meta:{}}});var nLe=ye((mpr,iLe)=>{"use strict";iLe.exports=rLe()});var oLe=ye(FA=>{"use strict";var aLe=Mc();FA.name="icicle";FA.plot=function(e,t,r,n){aLe.plotBasePlot(FA.name,e,t,r,n)};FA.clean=function(e,t,r,n){aLe.cleanBasePlot(FA.name,e,t,r,n)}});var eX=ye((_pr,lLe)=>{"use strict";var ALt=Qo().hovertemplateAttrs,SLt=Qo().texttemplateAttrs,MLt=Tu(),ELt=kc().attributes,WE=A2(),o0=kE(),HD=ND(),sLe=F2(),CLt=Ao().extendFlat,kLt=Pd().pattern;lLe.exports={labels:o0.labels,parents:o0.parents,values:o0.values,branchvalues:o0.branchvalues,count:o0.count,level:o0.level,maxdepth:o0.maxdepth,tiling:{orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"plot"},flip:HD.tiling.flip,pad:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"calc"},marker:CLt({colors:o0.marker.colors,line:o0.marker.line,pattern:kLt,editType:"calc"},MLt("marker",{colorAttr:"colors",anim:!1})),leaf:o0.leaf,pathbar:HD.pathbar,text:WE.text,textinfo:o0.textinfo,texttemplate:SLt({editType:"plot"},{keys:sLe.eventDataKeys.concat(["label","value"])}),hovertext:WE.hovertext,hoverinfo:o0.hoverinfo,hovertemplate:ALt({},{keys:sLe.eventDataKeys}),textfont:WE.textfont,insidetextfont:WE.insidetextfont,outsidetextfont:HD.outsidetextfont,textposition:HD.textposition,sort:WE.sort,root:o0.root,domain:ELt({name:"icicle",trace:!0,editType:"calc"})}});var tX=ye((xpr,uLe)=>{"use strict";uLe.exports={iciclecolorway:{valType:"colorlist",editType:"calc"},extendiciclecolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var dLe=ye((bpr,hLe)=>{"use strict";var cLe=Dr(),LLt=eX(),PLt=Ca(),ILt=kc().defaults,RLt=r0().handleText,DLt=Qb().TEXTPAD,FLt=S2().handleMarkerDefaults,fLe=tc(),zLt=fLe.hasColorscale,OLt=fLe.handleDefaults;hLe.exports=function(t,r,n,i){function a(d,v){return cLe.coerce(t,r,LLt,d,v)}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"),r.texttemplate||a("textinfo",cLe.isArrayOrTypedArray(u)?"text+label":"label"),a("hovertext"),a("hovertemplate");var c=a("pathbar.visible"),f="auto";RLt(t,r,i,a,f,{hasPathbar:c,moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),a("textposition"),FLt(t,r,i,a);var h=r._hasColorscale=zLt(t,"marker","colors")||(t.marker||{}).coloraxis;h&&OLt(t,r,i,a,{prefix:"marker.",cLetter:"c"}),a("leaf.opacity",h?1:.7),r._hovered={marker:{line:{width:2,color:PLt.contrast(i.paper_bgcolor)}}},c&&(a("pathbar.thickness",r.pathbar.textfont.size+2*DLt),a("pathbar.side"),a("pathbar.edgeshape")),a("sort"),a("root.color"),ILt(r,i,a),r._length=null}});var pLe=ye((wpr,vLe)=>{"use strict";var qLt=Dr(),BLt=tX();vLe.exports=function(t,r){function n(i,a){return qLt.coerce(t,r,BLt,i,a)}n("iciclecolorway",r.colorway),n("extendiciclecolors")}});var iX=ye(rX=>{"use strict";var gLe=IE();rX.calc=function(e,t){return gLe.calc(e,t)};rX.crossTraceCalc=function(e){return gLe._runCrossTraceCalc("icicle",e)}});var yLe=ye((Apr,mLe)=>{"use strict";var NLt=LE(),ULt=HW();mLe.exports=function(t,r,n){var i=n.flipX,a=n.flipY,o=n.orientation==="h",s=n.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=NLt.partition().padding(n.pad.inner).size(o?[r[1],l]:[r[0],u])(t);return(o||i||a)&&ULt(c,r,{swapXY:o,flipX:i,flipY:a}),c}});var nX=ye((Spr,TLe)=>{"use strict";var _Le=Oa(),xLe=Ca(),bLe=Dr(),VLt=_v().resizeText,GLt=OD();function HLt(e){var t=e._fullLayout._iciclelayer.selectAll(".trace");VLt(e,t,"icicle"),t.each(function(r){var n=_Le.select(this),i=r[0],a=i.trace;n.style("opacity",a.opacity),n.selectAll("path.surface").each(function(o){_Le.select(this).call(wLe,o,a,e)})})}function wLe(e,t,r,n){var i=t.data.data,a=!t.children,o=i.i,s=bLe.castOption(r,o,"marker.line.color")||xLe.defaultLine,l=bLe.castOption(r,o,"marker.line.width")||0;e.call(GLt,t,r,n).style("stroke-width",l).call(xLe.stroke,s).style("opacity",a?r.leaf.opacity:null)}TLe.exports={style:HLt,styleOne:wLe}});var CLe=ye((Mpr,ELe)=>{"use strict";var ALe=Oa(),jD=Dr(),SLe=So(),jLt=iu(),WLt=yLe(),MLe=nX().styleOne,aX=F2(),zA=Ky(),XLt=GE(),ZLt=BD().formatSliceLabel,oX=!1;ELe.exports=function(t,r,n,i,a){var o=a.width,s=a.height,l=a.viewX,u=a.viewY,c=a.pathSlice,f=a.toMoveInsideSlice,h=a.strTransform,d=a.hasTransition,v=a.handleSlicesExit,x=a.makeUpdateSliceInterpolator,b=a.makeUpdateTextInterpolator,p=a.prevEntry,C={},E=t._context.staticPlot,A=t._fullLayout,L=r[0],_=L.trace,k=_.textposition.indexOf("left")!==-1,M=_.textposition.indexOf("right")!==-1,g=_.textposition.indexOf("bottom")!==-1,P=WLt(n,[o,s],{flipX:_.tiling.flip.indexOf("x")>-1,flipY:_.tiling.flip.indexOf("y")>-1,orientation:_.tiling.orientation,pad:{inner:_.tiling.pad},maxDepth:_._maxDepth}),T=P.descendants(),z=1/0,O=-1/0;T.forEach(function(N){var j=N.depth;j>=_._maxDepth?(N.x0=N.x1=(N.x0+N.x1)/2,N.y0=N.y1=(N.y0+N.y1)/2):(z=Math.min(z,j),O=Math.max(O,j))}),i=i.data(T,zA.getPtId),_._maxVisibleLayers=isFinite(O)?O-z+1:0,i.enter().append("g").classed("slice",!0),v(i,oX,C,[o,s],c),i.order();var V=null;if(d&&p){var G=zA.getPtId(p);i.each(function(N){V===null&&zA.getPtId(N)===G&&(V={x0:N.x0,x1:N.x1,y0:N.y0,y1:N.y1})})}var Z=function(){return V||{x0:0,x1:o,y0:0,y1:s}},H=i;return d&&(H=H.transition().each("end",function(){var N=ALe.select(this);zA.setSliceCursor(N,t,{hideOnRoot:!0,hideOnLeaves:!1,isTransitioning:!1})})),H.each(function(N){N._x0=l(N.x0),N._x1=l(N.x1),N._y0=u(N.y0),N._y1=u(N.y1),N._hoverX=l(N.x1-_.tiling.pad),N._hoverY=u(g?N.y1-_.tiling.pad/2:N.y0+_.tiling.pad/2);var j=ALe.select(this),re=jD.ensureSingle(j,"path","surface",function(ke){ke.style("pointer-events",E?"none":"all")});d?re.transition().attrTween("d",function(ke){var me=x(ke,oX,Z(),[o,s],{orientation:_.tiling.orientation,flipX:_.tiling.flip.indexOf("x")>-1,flipY:_.tiling.flip.indexOf("y")>-1});return function(ie){return c(me(ie))}}):re.attr("d",c),j.call(XLt,n,t,r,{styleOne:MLe,eventDataKeys:aX.eventDataKeys,transitionTime:aX.CLICK_TRANSITION_TIME,transitionEasing:aX.CLICK_TRANSITION_EASING}).call(zA.setSliceCursor,t,{isTransitioning:t._transitioning}),re.call(MLe,N,_,t,{hovered:!1}),N.x0===N.x1||N.y0===N.y1?N._text="":N._text=ZLt(N,n,_,r,A)||"";var oe=jD.ensureSingle(j,"g","slicetext"),_e=jD.ensureSingle(oe,"text","",function(ke){ke.attr("data-notex",1)}),Me=jD.ensureUniformFontSize(t,zA.determineTextFont(_,N,A.font));_e.text(N._text||" ").classed("slicetext",!0).attr("text-anchor",M?"end":k?"start":"middle").call(SLe.font,Me).call(jLt.convertToTspans,t),N.textBB=SLe.bBox(_e.node()),N.transform=f(N,{fontSize:Me.size}),N.transform.fontSize=Me.size,d?_e.transition().attrTween("transform",function(ke){var me=b(ke,oX,Z(),[o,s]);return function(ie){return h(me(ie))}}):_e.attr("transform",h(N))}),V}});var LLe=ye((Epr,kLe)=>{"use strict";var YLt=JW(),KLt=CLe();kLe.exports=function(t,r,n,i){return YLt(t,r,n,i,{type:"icicle",drawDescendants:KLt})}});var ILe=ye((Cpr,PLe)=>{"use strict";PLe.exports={moduleType:"trace",name:"icicle",basePlotModule:oLe(),categories:[],animatable:!0,attributes:eX(),layoutAttributes:tX(),supplyDefaults:dLe(),supplyLayoutDefaults:pLe(),calc:iX().calc,crossTraceCalc:iX().crossTraceCalc,plot:LLe(),style:nX().style,colorbar:$d(),meta:{}}});var DLe=ye((kpr,RLe)=>{"use strict";RLe.exports=ILe()});var zLe=ye(OA=>{"use strict";var FLe=Mc();OA.name="funnelarea";OA.plot=function(e,t,r,n){FLe.plotBasePlot(OA.name,e,t,r,n)};OA.clean=function(e,t,r,n){FLe.cleanBasePlot(OA.name,e,t,r,n)}});var sX=ye((Ppr,OLe)=>{"use strict";var iv=A2(),JLt=Vl(),$Lt=kc().attributes,QLt=Qo().hovertemplateAttrs,ePt=Qo().texttemplateAttrs,q2=Ao().extendFlat;OLe.exports={labels:iv.labels,label0:iv.label0,dlabel:iv.dlabel,values:iv.values,marker:{colors:iv.marker.colors,line:{color:q2({},iv.marker.line.color,{dflt:null}),width:q2({},iv.marker.line.width,{dflt:1}),editType:"calc"},pattern:iv.marker.pattern,editType:"calc"},text:iv.text,hovertext:iv.hovertext,scalegroup:q2({},iv.scalegroup,{}),textinfo:q2({},iv.textinfo,{flags:["label","text","value","percent"]}),texttemplate:ePt({editType:"plot"},{keys:["label","color","value","text","percent"]}),hoverinfo:q2({},JLt.hoverinfo,{flags:["label","text","value","percent","name"]}),hovertemplate:QLt({},{keys:["label","color","value","text","percent"]}),textposition:q2({},iv.textposition,{values:["inside","none"],dflt:"inside"}),textfont:iv.textfont,insidetextfont:iv.insidetextfont,title:{text:iv.title.text,font:iv.title.font,position:q2({},iv.title.position,{values:["top left","top center","top right"],dflt:"top center"}),editType:"plot"},domain:$Lt({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 lX=ye((Ipr,qLe)=>{"use strict";var tPt=hD().hiddenlabels;qLe.exports={hiddenlabels:tPt,funnelareacolorway:{valType:"colorlist",editType:"calc"},extendfunnelareacolors:{valType:"boolean",dflt:!0,editType:"calc"}}});var ULe=ye((Rpr,NLe)=>{"use strict";var BLe=Dr(),rPt=sX(),iPt=kc().defaults,nPt=r0().handleText,aPt=S2().handleLabelsAndValues,oPt=S2().handleMarkerDefaults;NLe.exports=function(t,r,n,i){function a(x,b){return BLe.coerce(t,r,rPt,x,b)}var o=a("labels"),s=a("values"),l=aPt(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,oPt(t,r,i,a),a("scalegroup");var c=a("text"),f=a("texttemplate"),h;if(f||(h=a("textinfo",Array.isArray(c)?"text+percent":"percent")),a("hovertext"),a("hovertemplate"),f||h&&h!=="none"){var d=a("textposition");nPt(t,r,i,a,d,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1})}else h==="none"&&a("textposition","none");iPt(r,i,a);var v=a("title.text");v&&(a("title.position"),BLe.coerceFont(a,"title.font",i.font)),a("aspectratio"),a("baseratio")}});var GLe=ye((Dpr,VLe)=>{"use strict";var sPt=Dr(),lPt=lX();VLe.exports=function(t,r){function n(i,a){return sPt.coerce(t,r,lPt,i,a)}n("hiddenlabels"),n("funnelareacolorway",r.colorway),n("extendfunnelareacolors")}});var uX=ye((Fpr,jLe)=>{"use strict";var HLe=_A();function uPt(e,t){return HLe.calc(e,t)}function cPt(e){HLe.crossTraceCalc(e,{type:"funnelarea"})}jLe.exports={calc:uPt,crossTraceCalc:cPt}});var KLe=ye((zpr,YLe)=>{"use strict";var B2=Oa(),cX=So(),J_=Dr(),fPt=J_.strScale,WLe=J_.strTranslate,XLe=iu(),hPt=i2(),dPt=hPt.toMoveInsideBar,ZLe=_v(),vPt=ZLe.recordMinTextSize,pPt=ZLe.clearMinTextSize,gPt=u_(),qA=gD(),mPt=qA.attachFxHandlers,yPt=qA.determineInsideTextFont,_Pt=qA.layoutAreas,xPt=qA.prerenderTitles,bPt=qA.positionTitleOutside,wPt=qA.formatSliceLabel;YLe.exports=function(t,r){var n=t._context.staticPlot,i=t._fullLayout;pPt("funnelarea",i),xPt(r,t),_Pt(r,i._size),J_.makeTraceGroups(i._funnelarealayer,r,"trace").each(function(a){var o=B2.select(this),s=a[0],l=s.trace;APt(a),o.each(function(){var u=B2.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){B2.select(this).selectAll("path,g").remove();return}f.pointNumber=f.i,f.curveNumber=l.index;var d=s.cx,v=s.cy,x=B2.select(this),b=x.selectAll("path.surface").data([f]);b.enter().append("path").classed("surface",!0).style({"pointer-events":n?"none":"all"}),x.call(mPt,t,a);var p="M"+(d+f.TR[0])+","+(v+f.TR[1])+fX(f.TR,f.BR)+fX(f.BR,f.BL)+fX(f.BL,f.TL)+"Z";b.attr("d",p),wPt(t,f,s);var C=gPt.castOption(l.textposition,f.pts),E=x.selectAll("g.slicetext").data(f.text&&C!=="none"?[0]:[]);E.enter().append("g").classed("slicetext",!0),E.exit().remove(),E.each(function(){var A=J_.ensureSingle(B2.select(this),"text","",function(z){z.attr("data-notex",1)}),L=J_.ensureUniformFontSize(t,yPt(l,f,i.font));A.text(f.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(cX.font,L).call(XLe.convertToTspans,t);var _=cX.bBox(A.node()),k,M,g,P=Math.min(f.BL[1],f.BR[1])+v,T=Math.max(f.TL[1],f.TR[1])+v;M=Math.max(f.TL[0],f.BL[0])+d,g=Math.min(f.TR[0],f.BR[0])+d,k=dPt(M,g,P,T,_,{isHorizontal:!0,constrained:!0,angle:0,anchor:"middle"}),k.fontSize=L.size,vPt(l.type,k,i),a[h].transform=k,J_.setTransormAndDisplay(A,k)})});var c=B2.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=J_.ensureSingle(B2.select(this),"text","",function(v){v.attr("data-notex",1)}),h=l.title.text;l._meta&&(h=J_.templateString(h,l._meta)),f.text(h).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(cX.font,l.title.font).call(XLe.convertToTspans,t);var d=bPt(s,i._size);f.attr("transform",WLe(d.x,d.y)+fPt(Math.min(1,d.scale))+WLe(d.tx,d.ty))})})})};function fX(e,t){var r=t[0]-e[0],n=t[1]-e[1];return"l"+r+","+n}function TPt(e,t){return[.5*(e[0]+t[0]),.5*(e[1]+t[1])]}function APt(e){if(!e.length)return;var t=e[0],r=t.trace,n=r.aspectratio,i=r.baseratio;i>.999&&(i=.999);var a=Math.pow(i,2),o=t.vTotal,s=o*a/(1-a),l=o,u=s/o;function c(){var O=Math.sqrt(u);return{x:O,y:-O}}function f(){var O=c();return[O.x,O.y]}var h,d=[];d.push(f());var v,x;for(v=e.length-1;v>-1;v--)if(x=e[v],!x.hidden){var b=x.v/l;u+=b,d.push(f())}var p=1/0,C=-1/0;for(v=0;v-1;v--)if(x=e[v],!x.hidden){P+=1;var T=d[P][0],z=d[P][1];x.TL=[-T,z],x.TR=[T,z],x.BL=M,x.BR=g,x.pxmid=TPt(x.TR,x.BR),M=x.TL,g=x.TR}}});var QLe=ye((Opr,$Le)=>{"use strict";var JLe=Oa(),SPt=F3(),MPt=_v().resizeText;$Le.exports=function(t){var r=t._fullLayout._funnelarealayer.selectAll(".trace");MPt(t,r,"funnelarea"),r.each(function(n){var i=n[0],a=i.trace,o=JLe.select(this);o.style({opacity:a.opacity}),o.selectAll("path.surface").each(function(s){JLe.select(this).call(SPt,s,a,t)})})}});var tPe=ye((qpr,ePe)=>{"use strict";ePe.exports={moduleType:"trace",name:"funnelarea",basePlotModule:zLe(),categories:["pie-like","funnelarea","showLegend"],attributes:sX(),layoutAttributes:lX(),supplyDefaults:ULe(),supplyLayoutDefaults:GLe(),calc:uX().calc,crossTraceCalc:uX().crossTraceCalc,plot:KLe(),style:QLe(),styleOne:F3(),meta:{}}});var iPe=ye((Bpr,rPe)=>{"use strict";rPe.exports=tPe()});var Od=ye((Npr,nPe)=>{(function(){var e={1964:function(i,a,o){i.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)}},4793:function(i,a,o){"use strict";var s;function l(Ie,xe){if(!(Ie instanceof xe))throw new TypeError("Cannot call a class as a function")}function u(Ie,xe){for(var Ce=0;CeM)throw new RangeError('The value "'+Ie+'" is invalid for option "size"');var xe=new Uint8Array(Ie);return Object.setPrototypeOf(xe,T.prototype),xe}function T(Ie,xe,Ce){if(typeof Ie=="number"){if(typeof xe=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return G(Ie)}return z(Ie,xe,Ce)}T.poolSize=8192;function z(Ie,xe,Ce){if(typeof Ie=="string")return Z(Ie,xe);if(ArrayBuffer.isView(Ie))return N(Ie);if(Ie==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+A(Ie));if(Ge(Ie,ArrayBuffer)||Ie&&Ge(Ie.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(Ge(Ie,SharedArrayBuffer)||Ie&&Ge(Ie.buffer,SharedArrayBuffer)))return j(Ie,xe,Ce);if(typeof Ie=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var vt=Ie.valueOf&&Ie.valueOf();if(vt!=null&&vt!==Ie)return T.from(vt,xe,Ce);var nr=re(Ie);if(nr)return nr;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof Ie[Symbol.toPrimitive]=="function")return T.from(Ie[Symbol.toPrimitive]("string"),xe,Ce);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+A(Ie))}T.from=function(Ie,xe,Ce){return z(Ie,xe,Ce)},Object.setPrototypeOf(T.prototype,Uint8Array.prototype),Object.setPrototypeOf(T,Uint8Array);function O(Ie){if(typeof Ie!="number")throw new TypeError('"size" argument must be of type number');if(Ie<0)throw new RangeError('The value "'+Ie+'" is invalid for option "size"')}function V(Ie,xe,Ce){return O(Ie),Ie<=0?P(Ie):xe!==void 0?typeof Ce=="string"?P(Ie).fill(xe,Ce):P(Ie).fill(xe):P(Ie)}T.alloc=function(Ie,xe,Ce){return V(Ie,xe,Ce)};function G(Ie){return O(Ie),P(Ie<0?0:oe(Ie)|0)}T.allocUnsafe=function(Ie){return G(Ie)},T.allocUnsafeSlow=function(Ie){return G(Ie)};function Z(Ie,xe){if((typeof xe!="string"||xe==="")&&(xe="utf8"),!T.isEncoding(xe))throw new TypeError("Unknown encoding: "+xe);var Ce=Me(Ie,xe)|0,vt=P(Ce),nr=vt.write(Ie,xe);return nr!==Ce&&(vt=vt.slice(0,nr)),vt}function H(Ie){for(var xe=Ie.length<0?0:oe(Ie.length)|0,Ce=P(xe),vt=0;vt=M)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+M.toString(16)+" bytes");return Ie|0}function _e(Ie){return+Ie!=Ie&&(Ie=0),T.alloc(+Ie)}T.isBuffer=function(xe){return xe!=null&&xe._isBuffer===!0&&xe!==T.prototype},T.compare=function(xe,Ce){if(Ge(xe,Uint8Array)&&(xe=T.from(xe,xe.offset,xe.byteLength)),Ge(Ce,Uint8Array)&&(Ce=T.from(Ce,Ce.offset,Ce.byteLength)),!T.isBuffer(xe)||!T.isBuffer(Ce))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(xe===Ce)return 0;for(var vt=xe.length,nr=Ce.length,ir=0,pr=Math.min(vt,nr);irnr.length?(T.isBuffer(pr)||(pr=T.from(pr)),pr.copy(nr,ir)):Uint8Array.prototype.set.call(nr,pr,ir);else if(T.isBuffer(pr))pr.copy(nr,ir);else throw new TypeError('"list" argument must be an Array of Buffers');ir+=pr.length}return nr};function Me(Ie,xe){if(T.isBuffer(Ie))return Ie.length;if(ArrayBuffer.isView(Ie)||Ge(Ie,ArrayBuffer))return Ie.byteLength;if(typeof Ie!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+A(Ie));var Ce=Ie.length,vt=arguments.length>2&&arguments[2]===!0;if(!vt&&Ce===0)return 0;for(var nr=!1;;)switch(xe){case"ascii":case"latin1":case"binary":return Ce;case"utf8":case"utf-8":return Rr(Ie).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ce*2;case"hex":return Ce>>>1;case"base64":return Ur(Ie).length;default:if(nr)return vt?-1:Rr(Ie).length;xe=(""+xe).toLowerCase(),nr=!0}}T.byteLength=Me;function ke(Ie,xe,Ce){var vt=!1;if((xe===void 0||xe<0)&&(xe=0),xe>this.length||((Ce===void 0||Ce>this.length)&&(Ce=this.length),Ce<=0)||(Ce>>>=0,xe>>>=0,Ce<=xe))return"";for(Ie||(Ie="utf8");;)switch(Ie){case"hex":return st(this,xe,Ce);case"utf8":case"utf-8":return ce(this,xe,Ce);case"ascii":return pt(this,xe,Ce);case"latin1":case"binary":return Wt(this,xe,Ce);case"base64":return Fe(this,xe,Ce);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return lt(this,xe,Ce);default:if(vt)throw new TypeError("Unknown encoding: "+Ie);Ie=(Ie+"").toLowerCase(),vt=!0}}T.prototype._isBuffer=!0;function me(Ie,xe,Ce){var vt=Ie[xe];Ie[xe]=Ie[Ce],Ie[Ce]=vt}T.prototype.swap16=function(){var xe=this.length;if(xe%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var Ce=0;CeCe&&(xe+=" ... "),""},k&&(T.prototype[k]=T.prototype.inspect),T.prototype.compare=function(xe,Ce,vt,nr,ir){if(Ge(xe,Uint8Array)&&(xe=T.from(xe,xe.offset,xe.byteLength)),!T.isBuffer(xe))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+A(xe));if(Ce===void 0&&(Ce=0),vt===void 0&&(vt=xe?xe.length:0),nr===void 0&&(nr=0),ir===void 0&&(ir=this.length),Ce<0||vt>xe.length||nr<0||ir>this.length)throw new RangeError("out of range index");if(nr>=ir&&Ce>=vt)return 0;if(nr>=ir)return-1;if(Ce>=vt)return 1;if(Ce>>>=0,vt>>>=0,nr>>>=0,ir>>>=0,this===xe)return 0;for(var pr=ir-nr,oi=vt-Ce,di=Math.min(pr,oi),Jr=this.slice(nr,ir),fi=xe.slice(Ce,vt),Hi=0;Hi2147483647?Ce=2147483647:Ce<-2147483648&&(Ce=-2147483648),Ce=+Ce,Je(Ce)&&(Ce=nr?0:Ie.length-1),Ce<0&&(Ce=Ie.length+Ce),Ce>=Ie.length){if(nr)return-1;Ce=Ie.length-1}else if(Ce<0)if(nr)Ce=0;else return-1;if(typeof xe=="string"&&(xe=T.from(xe,vt)),T.isBuffer(xe))return xe.length===0?-1:Se(Ie,xe,Ce,vt,nr);if(typeof xe=="number")return xe=xe&255,typeof Uint8Array.prototype.indexOf=="function"?nr?Uint8Array.prototype.indexOf.call(Ie,xe,Ce):Uint8Array.prototype.lastIndexOf.call(Ie,xe,Ce):Se(Ie,[xe],Ce,vt,nr);throw new TypeError("val must be string, number or Buffer")}function Se(Ie,xe,Ce,vt,nr){var ir=1,pr=Ie.length,oi=xe.length;if(vt!==void 0&&(vt=String(vt).toLowerCase(),vt==="ucs2"||vt==="ucs-2"||vt==="utf16le"||vt==="utf-16le")){if(Ie.length<2||xe.length<2)return-1;ir=2,pr/=2,oi/=2,Ce/=2}function di(wn,pn){return ir===1?wn[pn]:wn.readUInt16BE(pn*ir)}var Jr;if(nr){var fi=-1;for(Jr=Ce;Jrpr&&(Ce=pr-oi),Jr=Ce;Jr>=0;Jr--){for(var Hi=!0,Pn=0;Pnnr&&(vt=nr)):vt=nr;var ir=xe.length;vt>ir/2&&(vt=ir/2);var pr;for(pr=0;pr>>0,isFinite(vt)?(vt=vt>>>0,nr===void 0&&(nr="utf8")):(nr=vt,vt=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var ir=this.length-Ce;if((vt===void 0||vt>ir)&&(vt=ir),xe.length>0&&(vt<0||Ce<0)||Ce>this.length)throw new RangeError("Attempt to write outside buffer bounds");nr||(nr="utf8");for(var pr=!1;;)switch(nr){case"hex":return Le(this,xe,Ce,vt);case"utf8":case"utf-8":return Ae(this,xe,Ce,vt);case"ascii":case"latin1":case"binary":return De(this,xe,Ce,vt);case"base64":return Pe(this,xe,Ce,vt);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ge(this,xe,Ce,vt);default:if(pr)throw new TypeError("Unknown encoding: "+nr);nr=(""+nr).toLowerCase(),pr=!0}},T.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Fe(Ie,xe,Ce){return xe===0&&Ce===Ie.length?L.fromByteArray(Ie):L.fromByteArray(Ie.slice(xe,Ce))}function ce(Ie,xe,Ce){Ce=Math.min(Ie.length,Ce);for(var vt=[],nr=xe;nr239?4:ir>223?3:ir>191?2:1;if(nr+oi<=Ce){var di=void 0,Jr=void 0,fi=void 0,Hi=void 0;switch(oi){case 1:ir<128&&(pr=ir);break;case 2:di=Ie[nr+1],(di&192)===128&&(Hi=(ir&31)<<6|di&63,Hi>127&&(pr=Hi));break;case 3:di=Ie[nr+1],Jr=Ie[nr+2],(di&192)===128&&(Jr&192)===128&&(Hi=(ir&15)<<12|(di&63)<<6|Jr&63,Hi>2047&&(Hi<55296||Hi>57343)&&(pr=Hi));break;case 4:di=Ie[nr+1],Jr=Ie[nr+2],fi=Ie[nr+3],(di&192)===128&&(Jr&192)===128&&(fi&192)===128&&(Hi=(ir&15)<<18|(di&63)<<12|(Jr&63)<<6|fi&63,Hi>65535&&Hi<1114112&&(pr=Hi))}}pr===null?(pr=65533,oi=1):pr>65535&&(pr-=65536,vt.push(pr>>>10&1023|55296),pr=56320|pr&1023),vt.push(pr),nr+=oi}return ct(vt)}var Ze=4096;function ct(Ie){var xe=Ie.length;if(xe<=Ze)return String.fromCharCode.apply(String,Ie);for(var Ce="",vt=0;vtvt)&&(Ce=vt);for(var nr="",ir=xe;irvt&&(xe=vt),Ce<0?(Ce+=vt,Ce<0&&(Ce=0)):Ce>vt&&(Ce=vt),CeCe)throw new RangeError("Trying to access beyond buffer length")}T.prototype.readUintLE=T.prototype.readUIntLE=function(xe,Ce,vt){xe=xe>>>0,Ce=Ce>>>0,vt||Gt(xe,Ce,this.length);for(var nr=this[xe],ir=1,pr=0;++pr>>0,Ce=Ce>>>0,vt||Gt(xe,Ce,this.length);for(var nr=this[xe+--Ce],ir=1;Ce>0&&(ir*=256);)nr+=this[xe+--Ce]*ir;return nr},T.prototype.readUint8=T.prototype.readUInt8=function(xe,Ce){return xe=xe>>>0,Ce||Gt(xe,1,this.length),this[xe]},T.prototype.readUint16LE=T.prototype.readUInt16LE=function(xe,Ce){return xe=xe>>>0,Ce||Gt(xe,2,this.length),this[xe]|this[xe+1]<<8},T.prototype.readUint16BE=T.prototype.readUInt16BE=function(xe,Ce){return xe=xe>>>0,Ce||Gt(xe,2,this.length),this[xe]<<8|this[xe+1]},T.prototype.readUint32LE=T.prototype.readUInt32LE=function(xe,Ce){return xe=xe>>>0,Ce||Gt(xe,4,this.length),(this[xe]|this[xe+1]<<8|this[xe+2]<<16)+this[xe+3]*16777216},T.prototype.readUint32BE=T.prototype.readUInt32BE=function(xe,Ce){return xe=xe>>>0,Ce||Gt(xe,4,this.length),this[xe]*16777216+(this[xe+1]<<16|this[xe+2]<<8|this[xe+3])},T.prototype.readBigUInt64LE=$e(function(xe){xe=xe>>>0,yt(xe,"offset");var Ce=this[xe],vt=this[xe+7];(Ce===void 0||vt===void 0)&&Yt(xe,this.length-8);var nr=Ce+this[++xe]*Math.pow(2,8)+this[++xe]*Math.pow(2,16)+this[++xe]*Math.pow(2,24),ir=this[++xe]+this[++xe]*Math.pow(2,8)+this[++xe]*Math.pow(2,16)+vt*Math.pow(2,24);return BigInt(nr)+(BigInt(ir)<>>0,yt(xe,"offset");var Ce=this[xe],vt=this[xe+7];(Ce===void 0||vt===void 0)&&Yt(xe,this.length-8);var nr=Ce*Math.pow(2,24)+this[++xe]*Math.pow(2,16)+this[++xe]*Math.pow(2,8)+this[++xe],ir=this[++xe]*Math.pow(2,24)+this[++xe]*Math.pow(2,16)+this[++xe]*Math.pow(2,8)+vt;return(BigInt(nr)<>>0,Ce=Ce>>>0,vt||Gt(xe,Ce,this.length);for(var nr=this[xe],ir=1,pr=0;++pr=ir&&(nr-=Math.pow(2,8*Ce)),nr},T.prototype.readIntBE=function(xe,Ce,vt){xe=xe>>>0,Ce=Ce>>>0,vt||Gt(xe,Ce,this.length);for(var nr=Ce,ir=1,pr=this[xe+--nr];nr>0&&(ir*=256);)pr+=this[xe+--nr]*ir;return ir*=128,pr>=ir&&(pr-=Math.pow(2,8*Ce)),pr},T.prototype.readInt8=function(xe,Ce){return xe=xe>>>0,Ce||Gt(xe,1,this.length),this[xe]&128?(255-this[xe]+1)*-1:this[xe]},T.prototype.readInt16LE=function(xe,Ce){xe=xe>>>0,Ce||Gt(xe,2,this.length);var vt=this[xe]|this[xe+1]<<8;return vt&32768?vt|4294901760:vt},T.prototype.readInt16BE=function(xe,Ce){xe=xe>>>0,Ce||Gt(xe,2,this.length);var vt=this[xe+1]|this[xe]<<8;return vt&32768?vt|4294901760:vt},T.prototype.readInt32LE=function(xe,Ce){return xe=xe>>>0,Ce||Gt(xe,4,this.length),this[xe]|this[xe+1]<<8|this[xe+2]<<16|this[xe+3]<<24},T.prototype.readInt32BE=function(xe,Ce){return xe=xe>>>0,Ce||Gt(xe,4,this.length),this[xe]<<24|this[xe+1]<<16|this[xe+2]<<8|this[xe+3]},T.prototype.readBigInt64LE=$e(function(xe){xe=xe>>>0,yt(xe,"offset");var Ce=this[xe],vt=this[xe+7];(Ce===void 0||vt===void 0)&&Yt(xe,this.length-8);var nr=this[xe+4]+this[xe+5]*Math.pow(2,8)+this[xe+6]*Math.pow(2,16)+(vt<<24);return(BigInt(nr)<>>0,yt(xe,"offset");var Ce=this[xe],vt=this[xe+7];(Ce===void 0||vt===void 0)&&Yt(xe,this.length-8);var nr=(Ce<<24)+this[++xe]*Math.pow(2,16)+this[++xe]*Math.pow(2,8)+this[++xe];return(BigInt(nr)<>>0,Ce||Gt(xe,4,this.length),_.read(this,xe,!0,23,4)},T.prototype.readFloatBE=function(xe,Ce){return xe=xe>>>0,Ce||Gt(xe,4,this.length),_.read(this,xe,!1,23,4)},T.prototype.readDoubleLE=function(xe,Ce){return xe=xe>>>0,Ce||Gt(xe,8,this.length),_.read(this,xe,!0,52,8)},T.prototype.readDoubleBE=function(xe,Ce){return xe=xe>>>0,Ce||Gt(xe,8,this.length),_.read(this,xe,!1,52,8)};function Nt(Ie,xe,Ce,vt,nr,ir){if(!T.isBuffer(Ie))throw new TypeError('"buffer" argument must be a Buffer instance');if(xe>nr||xeIe.length)throw new RangeError("Index out of range")}T.prototype.writeUintLE=T.prototype.writeUIntLE=function(xe,Ce,vt,nr){if(xe=+xe,Ce=Ce>>>0,vt=vt>>>0,!nr){var ir=Math.pow(2,8*vt)-1;Nt(this,xe,Ce,vt,ir,0)}var pr=1,oi=0;for(this[Ce]=xe&255;++oi>>0,vt=vt>>>0,!nr){var ir=Math.pow(2,8*vt)-1;Nt(this,xe,Ce,vt,ir,0)}var pr=vt-1,oi=1;for(this[Ce+pr]=xe&255;--pr>=0&&(oi*=256);)this[Ce+pr]=xe/oi&255;return Ce+vt},T.prototype.writeUint8=T.prototype.writeUInt8=function(xe,Ce,vt){return xe=+xe,Ce=Ce>>>0,vt||Nt(this,xe,Ce,1,255,0),this[Ce]=xe&255,Ce+1},T.prototype.writeUint16LE=T.prototype.writeUInt16LE=function(xe,Ce,vt){return xe=+xe,Ce=Ce>>>0,vt||Nt(this,xe,Ce,2,65535,0),this[Ce]=xe&255,this[Ce+1]=xe>>>8,Ce+2},T.prototype.writeUint16BE=T.prototype.writeUInt16BE=function(xe,Ce,vt){return xe=+xe,Ce=Ce>>>0,vt||Nt(this,xe,Ce,2,65535,0),this[Ce]=xe>>>8,this[Ce+1]=xe&255,Ce+2},T.prototype.writeUint32LE=T.prototype.writeUInt32LE=function(xe,Ce,vt){return xe=+xe,Ce=Ce>>>0,vt||Nt(this,xe,Ce,4,4294967295,0),this[Ce+3]=xe>>>24,this[Ce+2]=xe>>>16,this[Ce+1]=xe>>>8,this[Ce]=xe&255,Ce+4},T.prototype.writeUint32BE=T.prototype.writeUInt32BE=function(xe,Ce,vt){return xe=+xe,Ce=Ce>>>0,vt||Nt(this,xe,Ce,4,4294967295,0),this[Ce]=xe>>>24,this[Ce+1]=xe>>>16,this[Ce+2]=xe>>>8,this[Ce+3]=xe&255,Ce+4};function $t(Ie,xe,Ce,vt,nr){bt(xe,vt,nr,Ie,Ce,7);var ir=Number(xe&BigInt(4294967295));Ie[Ce++]=ir,ir=ir>>8,Ie[Ce++]=ir,ir=ir>>8,Ie[Ce++]=ir,ir=ir>>8,Ie[Ce++]=ir;var pr=Number(xe>>BigInt(32)&BigInt(4294967295));return Ie[Ce++]=pr,pr=pr>>8,Ie[Ce++]=pr,pr=pr>>8,Ie[Ce++]=pr,pr=pr>>8,Ie[Ce++]=pr,Ce}function sr(Ie,xe,Ce,vt,nr){bt(xe,vt,nr,Ie,Ce,7);var ir=Number(xe&BigInt(4294967295));Ie[Ce+7]=ir,ir=ir>>8,Ie[Ce+6]=ir,ir=ir>>8,Ie[Ce+5]=ir,ir=ir>>8,Ie[Ce+4]=ir;var pr=Number(xe>>BigInt(32)&BigInt(4294967295));return Ie[Ce+3]=pr,pr=pr>>8,Ie[Ce+2]=pr,pr=pr>>8,Ie[Ce+1]=pr,pr=pr>>8,Ie[Ce]=pr,Ce+8}T.prototype.writeBigUInt64LE=$e(function(xe){var Ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return $t(this,xe,Ce,BigInt(0),BigInt("0xffffffffffffffff"))}),T.prototype.writeBigUInt64BE=$e(function(xe){var Ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return sr(this,xe,Ce,BigInt(0),BigInt("0xffffffffffffffff"))}),T.prototype.writeIntLE=function(xe,Ce,vt,nr){if(xe=+xe,Ce=Ce>>>0,!nr){var ir=Math.pow(2,8*vt-1);Nt(this,xe,Ce,vt,ir-1,-ir)}var pr=0,oi=1,di=0;for(this[Ce]=xe&255;++pr>0)-di&255;return Ce+vt},T.prototype.writeIntBE=function(xe,Ce,vt,nr){if(xe=+xe,Ce=Ce>>>0,!nr){var ir=Math.pow(2,8*vt-1);Nt(this,xe,Ce,vt,ir-1,-ir)}var pr=vt-1,oi=1,di=0;for(this[Ce+pr]=xe&255;--pr>=0&&(oi*=256);)xe<0&&di===0&&this[Ce+pr+1]!==0&&(di=1),this[Ce+pr]=(xe/oi>>0)-di&255;return Ce+vt},T.prototype.writeInt8=function(xe,Ce,vt){return xe=+xe,Ce=Ce>>>0,vt||Nt(this,xe,Ce,1,127,-128),xe<0&&(xe=255+xe+1),this[Ce]=xe&255,Ce+1},T.prototype.writeInt16LE=function(xe,Ce,vt){return xe=+xe,Ce=Ce>>>0,vt||Nt(this,xe,Ce,2,32767,-32768),this[Ce]=xe&255,this[Ce+1]=xe>>>8,Ce+2},T.prototype.writeInt16BE=function(xe,Ce,vt){return xe=+xe,Ce=Ce>>>0,vt||Nt(this,xe,Ce,2,32767,-32768),this[Ce]=xe>>>8,this[Ce+1]=xe&255,Ce+2},T.prototype.writeInt32LE=function(xe,Ce,vt){return xe=+xe,Ce=Ce>>>0,vt||Nt(this,xe,Ce,4,2147483647,-2147483648),this[Ce]=xe&255,this[Ce+1]=xe>>>8,this[Ce+2]=xe>>>16,this[Ce+3]=xe>>>24,Ce+4},T.prototype.writeInt32BE=function(xe,Ce,vt){return xe=+xe,Ce=Ce>>>0,vt||Nt(this,xe,Ce,4,2147483647,-2147483648),xe<0&&(xe=4294967295+xe+1),this[Ce]=xe>>>24,this[Ce+1]=xe>>>16,this[Ce+2]=xe>>>8,this[Ce+3]=xe&255,Ce+4},T.prototype.writeBigInt64LE=$e(function(xe){var Ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return $t(this,xe,Ce,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),T.prototype.writeBigInt64BE=$e(function(xe){var Ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return sr(this,xe,Ce,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function wr(Ie,xe,Ce,vt,nr,ir){if(Ce+vt>Ie.length)throw new RangeError("Index out of range");if(Ce<0)throw new RangeError("Index out of range")}function ur(Ie,xe,Ce,vt,nr){return xe=+xe,Ce=Ce>>>0,nr||wr(Ie,xe,Ce,4,34028234663852886e22,-34028234663852886e22),_.write(Ie,xe,Ce,vt,23,4),Ce+4}T.prototype.writeFloatLE=function(xe,Ce,vt){return ur(this,xe,Ce,!0,vt)},T.prototype.writeFloatBE=function(xe,Ce,vt){return ur(this,xe,Ce,!1,vt)};function Qe(Ie,xe,Ce,vt,nr){return xe=+xe,Ce=Ce>>>0,nr||wr(Ie,xe,Ce,8,17976931348623157e292,-17976931348623157e292),_.write(Ie,xe,Ce,vt,52,8),Ce+8}T.prototype.writeDoubleLE=function(xe,Ce,vt){return Qe(this,xe,Ce,!0,vt)},T.prototype.writeDoubleBE=function(xe,Ce,vt){return Qe(this,xe,Ce,!1,vt)},T.prototype.copy=function(xe,Ce,vt,nr){if(!T.isBuffer(xe))throw new TypeError("argument should be a Buffer");if(vt||(vt=0),!nr&&nr!==0&&(nr=this.length),Ce>=xe.length&&(Ce=xe.length),Ce||(Ce=0),nr>0&&nr=this.length)throw new RangeError("Index out of range");if(nr<0)throw new RangeError("sourceEnd out of bounds");nr>this.length&&(nr=this.length),xe.length-Ce>>0,vt=vt===void 0?this.length:vt>>>0,xe||(xe=0);var pr;if(typeof xe=="number")for(pr=Ce;prMath.pow(2,32)?nr=Ut(String(Ce)):typeof Ce=="bigint"&&(nr=String(Ce),(Ce>Math.pow(BigInt(2),BigInt(32))||Ce<-Math.pow(BigInt(2),BigInt(32)))&&(nr=Ut(nr)),nr+="n"),vt+=" It must be ".concat(xe,". Received ").concat(nr),vt},RangeError);function Ut(Ie){for(var xe="",Ce=Ie.length,vt=Ie[0]==="-"?1:0;Ce>=vt+4;Ce-=3)xe="_".concat(Ie.slice(Ce-3,Ce)).concat(xe);return"".concat(Ie.slice(0,Ce)).concat(xe)}function Ft(Ie,xe,Ce){yt(xe,"offset"),(Ie[xe]===void 0||Ie[xe+Ce]===void 0)&&Yt(xe,Ie.length-(Ce+1))}function bt(Ie,xe,Ce,vt,nr,ir){if(Ie>Ce||Ie3?xe===0||xe===BigInt(0)?oi=">= 0".concat(pr," and < 2").concat(pr," ** ").concat((ir+1)*8).concat(pr):oi=">= -(2".concat(pr," ** ").concat((ir+1)*8-1).concat(pr,") and < 2 ** ")+"".concat((ir+1)*8-1).concat(pr):oi=">= ".concat(xe).concat(pr," and <= ").concat(Ce).concat(pr),new Et.ERR_OUT_OF_RANGE("value",oi,Ie)}Ft(vt,nr,ir)}function yt(Ie,xe){if(typeof Ie!="number")throw new Et.ERR_INVALID_ARG_TYPE(xe,"number",Ie)}function Yt(Ie,xe,Ce){throw Math.floor(Ie)!==Ie?(yt(Ie,Ce),new Et.ERR_OUT_OF_RANGE(Ce||"offset","an integer",Ie)):xe<0?new Et.ERR_BUFFER_OUT_OF_BOUNDS:new Et.ERR_OUT_OF_RANGE(Ce||"offset",">= ".concat(Ce?1:0," and <= ").concat(xe),Ie)}var lr=/[^+/0-9A-Za-z-_]/g;function Tr(Ie){if(Ie=Ie.split("=")[0],Ie=Ie.trim().replace(lr,""),Ie.length<2)return"";for(;Ie.length%4!==0;)Ie=Ie+"=";return Ie}function Rr(Ie,xe){xe=xe||1/0;for(var Ce,vt=Ie.length,nr=null,ir=[],pr=0;pr55295&&Ce<57344){if(!nr){if(Ce>56319){(xe-=3)>-1&&ir.push(239,191,189);continue}else if(pr+1===vt){(xe-=3)>-1&&ir.push(239,191,189);continue}nr=Ce;continue}if(Ce<56320){(xe-=3)>-1&&ir.push(239,191,189),nr=Ce;continue}Ce=(nr-55296<<10|Ce-56320)+65536}else nr&&(xe-=3)>-1&&ir.push(239,191,189);if(nr=null,Ce<128){if((xe-=1)<0)break;ir.push(Ce)}else if(Ce<2048){if((xe-=2)<0)break;ir.push(Ce>>6|192,Ce&63|128)}else if(Ce<65536){if((xe-=3)<0)break;ir.push(Ce>>12|224,Ce>>6&63|128,Ce&63|128)}else if(Ce<1114112){if((xe-=4)<0)break;ir.push(Ce>>18|240,Ce>>12&63|128,Ce>>6&63|128,Ce&63|128)}else throw new Error("Invalid code point")}return ir}function ei(Ie){for(var xe=[],Ce=0;Ce>8,nr=Ce%256,ir.push(nr),ir.push(vt);return ir}function Ur(Ie){return L.toByteArray(Tr(Ie))}function dt(Ie,xe,Ce,vt){var nr;for(nr=0;nr=xe.length||nr>=Ie.length);++nr)xe[nr+Ce]=Ie[nr];return nr}function Ge(Ie,xe){return Ie instanceof xe||Ie!=null&&Ie.constructor!=null&&Ie.constructor.name!=null&&Ie.constructor.name===xe.name}function Je(Ie){return Ie!==Ie}var je=function(){for(var Ie="0123456789abcdef",xe=new Array(256),Ce=0;Ce<16;++Ce)for(var vt=Ce*16,nr=0;nr<16;++nr)xe[vt+nr]=Ie[Ce]+Ie[nr];return xe}();function $e(Ie){return typeof BigInt=="undefined"?wt:Ie}function wt(){throw new Error("BigInt not supported")}},9216:function(i){"use strict";i.exports=l,i.exports.isMobile=l,i.exports.default=l;var a=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,o=/CrOS/,s=/android|ipad|playbook|silk/i;function l(u){u||(u={});var c=u.ua;if(!c&&typeof navigator!="undefined"&&(c=navigator.userAgent),c&&c.headers&&typeof c.headers["user-agent"]=="string"&&(c=c.headers["user-agent"]),typeof c!="string")return!1;var f=a.test(c)&&!o.test(c)||!!u.tablet&&s.test(c);return!f&&u.tablet&&u.featureDetect&&navigator&&navigator.maxTouchPoints>1&&c.indexOf("Macintosh")!==-1&&c.indexOf("Safari")!==-1&&(f=!0),f}},6296:function(i,a,o){"use strict";i.exports=h;var s=o(7261),l=o(9977),u=o(1811);function c(d,v){this._controllerNames=Object.keys(d),this._controllerList=this._controllerNames.map(function(x){return d[x]}),this._mode=v,this._active=d[v],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 f=c.prototype;f.flush=function(d){for(var v=this._controllerList,x=0;x0)throw new Error("Invalid string. Length must be a multiple of 4");var L=E.indexOf("=");L===-1&&(L=A);var _=L===A?0:4-L%4;return[L,_]}function d(E){var A=h(E),L=A[0],_=A[1];return(L+_)*3/4-_}function v(E,A,L){return(A+L)*3/4-L}function x(E){var A,L=h(E),_=L[0],k=L[1],M=new l(v(E,_,k)),g=0,P=k>0?_-4:_,T;for(T=0;T>16&255,M[g++]=A>>8&255,M[g++]=A&255;return k===2&&(A=s[E.charCodeAt(T)]<<2|s[E.charCodeAt(T+1)]>>4,M[g++]=A&255),k===1&&(A=s[E.charCodeAt(T)]<<10|s[E.charCodeAt(T+1)]<<4|s[E.charCodeAt(T+2)]>>2,M[g++]=A>>8&255,M[g++]=A&255),M}function b(E){return o[E>>18&63]+o[E>>12&63]+o[E>>6&63]+o[E&63]}function p(E,A,L){for(var _,k=[],M=A;MP?P:g+M));return _===1?(A=E[L-1],k.push(o[A>>2]+o[A<<4&63]+"==")):_===2&&(A=(E[L-2]<<8)+E[L-1],k.push(o[A>>10]+o[A>>4&63]+o[A<<2&63]+"=")),k.join("")}},3865:function(i,a,o){"use strict";var s=o(869);i.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:function(i){"use strict";i.exports=a;function a(o,s){return o[0].mul(s[1]).cmp(s[0].mul(o[1]))}},8697:function(i,a,o){"use strict";var s=o(869);i.exports=l;function l(u,c){return s(u[0].mul(c[1]),u[1].mul(c[0]))}},7842:function(i,a,o){"use strict";var s=o(6330),l=o(1533),u=o(2651),c=o(6768),f=o(869),h=o(8697);i.exports=d;function d(v,x){if(s(v))return x?h(v,d(x)):[v[0].clone(),v[1].clone()];var b=0,p,C;if(l(v))p=v.clone();else if(typeof v=="string")p=c(v);else{if(v===0)return[u(0),u(1)];if(v===Math.floor(v))p=u(v);else{for(;v!==Math.floor(v);)v=v*Math.pow(2,256),b-=256;p=u(v)}}if(s(x))p.mul(x[1]),C=x[0].clone();else if(l(x))C=x.clone();else if(typeof x=="string")C=c(x);else if(!x)C=u(1);else if(x===Math.floor(x))C=u(x);else{for(;x!==Math.floor(x);)x=x*Math.pow(2,256),b+=256;C=u(x)}return b>0?p=p.ushln(b):b<0&&(C=C.ushln(-b)),f(p,C)}},6330:function(i,a,o){"use strict";var s=o(1533);i.exports=l;function l(u){return Array.isArray(u)&&u.length===2&&s(u[0])&&s(u[1])}},5716:function(i,a,o){"use strict";var s=o(6859);i.exports=l;function l(u){return u.cmp(new s(0))}},1369:function(i,a,o){"use strict";var s=o(5716);i.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 d=0;d20?52:h+32}},1533:function(i,a,o){"use strict";var s=o(6859);i.exports=l;function l(u){return u&&typeof u=="object"&&!!u.words}},2651:function(i,a,o){"use strict";var s=o(6859),l=o(2361);i.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:function(i,a,o){"use strict";var s=o(2651),l=o(5716);i.exports=u;function u(c,f){var h=l(c),d=l(f);if(h===0)return[s(0),s(1)];if(d===0)return[s(0),s(0)];d<0&&(c=c.neg(),f=f.neg());var v=c.gcd(f);return v.cmpn(1)?[c.div(v),f.div(v)]:[c,f]}},6768:function(i,a,o){"use strict";var s=o(6859);i.exports=l;function l(u){return new s(u)}},6504:function(i,a,o){"use strict";var s=o(869);i.exports=l;function l(u,c){return s(u[0].mul(c[0]),u[1].mul(c[1]))}},7721:function(i,a,o){"use strict";var s=o(5716);i.exports=l;function l(u){return s(u[0])*s(u[1])}},5572:function(i,a,o){"use strict";var s=o(869);i.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:function(i,a,o){"use strict";var s=o(1369),l=o(4025);i.exports=u;function u(c){var f=c[0],h=c[1];if(f.cmpn(0)===0)return 0;var d=f.abs().divmod(h.abs()),v=d.div,x=s(v),b=d.mod,p=f.negative!==h.negative?-1:1;if(b.cmpn(0)===0)return p*x;if(x){var C=l(x)+4,E=s(b.ushln(C).divRound(h));return p*(x+E*Math.pow(2,-C))}else{var A=h.bitLength()-b.bitLength()+53,E=s(b.ushln(A).divRound(h));return A<1023?p*E*Math.pow(2,-A):(E*=Math.pow(2,-1023),p*E*Math.pow(2,1023-A))}}},2478:function(i){"use strict";function a(f,h,d,v,x){for(var b=x+1;v<=x;){var p=v+x>>>1,C=f[p],E=d!==void 0?d(C,h):C-h;E>=0?(b=p,x=p-1):v=p+1}return b}function o(f,h,d,v,x){for(var b=x+1;v<=x;){var p=v+x>>>1,C=f[p],E=d!==void 0?d(C,h):C-h;E>0?(b=p,x=p-1):v=p+1}return b}function s(f,h,d,v,x){for(var b=v-1;v<=x;){var p=v+x>>>1,C=f[p],E=d!==void 0?d(C,h):C-h;E<0?(b=p,v=p+1):x=p-1}return b}function l(f,h,d,v,x){for(var b=v-1;v<=x;){var p=v+x>>>1,C=f[p],E=d!==void 0?d(C,h):C-h;E<=0?(b=p,v=p+1):x=p-1}return b}function u(f,h,d,v,x){for(;v<=x;){var b=v+x>>>1,p=f[b],C=d!==void 0?d(p,h):p-h;if(C===0)return b;C<=0?v=b+1:x=b-1}return-1}function c(f,h,d,v,x,b){return typeof d=="function"?b(f,h,d,v===void 0?0:v|0,x===void 0?f.length-1:x|0):b(f,h,void 0,d===void 0?0:d|0,v===void 0?f.length-1:v|0)}i.exports={ge:function(f,h,d,v,x){return c(f,h,d,v,x,a)},gt:function(f,h,d,v,x){return c(f,h,d,v,x,o)},lt:function(f,h,d,v,x){return c(f,h,d,v,x,s)},le:function(f,h,d,v,x){return c(f,h,d,v,x,l)},eq:function(f,h,d,v,x){return c(f,h,d,v,x,u)}}},8828:function(i,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,d=7;for(f>>>=1;f;f>>>=1)h<<=1,h|=f&1,--d;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:function(i,a,o){i=o.nmd(i),function(s,l){"use strict";function u(H,N){if(!H)throw new Error(N||"Assertion failed")}function c(H,N){H.super_=N;var j=function(){};j.prototype=N.prototype,H.prototype=new j,H.prototype.constructor=H}function f(H,N,j){if(f.isBN(H))return H;this.negative=0,this.words=null,this.length=0,this.red=null,H!==null&&((N==="le"||N==="be")&&(j=N,N=10),this._init(H||0,N||10,j||"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(H){}f.isBN=function(N){return N instanceof f?!0:N!==null&&typeof N=="object"&&N.constructor.wordSize===f.wordSize&&Array.isArray(N.words)},f.max=function(N,j){return N.cmp(j)>0?N:j},f.min=function(N,j){return N.cmp(j)<0?N:j},f.prototype._init=function(N,j,re){if(typeof N=="number")return this._initNumber(N,j,re);if(typeof N=="object")return this._initArray(N,j,re);j==="hex"&&(j=16),u(j===(j|0)&&j>=2&&j<=36),N=N.toString().replace(/\s+/g,"");var oe=0;N[0]==="-"&&(oe++,this.negative=1),oe=0;oe-=3)Me=N[oe]|N[oe-1]<<8|N[oe-2]<<16,this.words[_e]|=Me<>>26-ke&67108863,ke+=24,ke>=26&&(ke-=26,_e++);else if(re==="le")for(oe=0,_e=0;oe>>26-ke&67108863,ke+=24,ke>=26&&(ke-=26,_e++);return this.strip()};function d(H,N){var j=H.charCodeAt(N);return j>=65&&j<=70?j-55:j>=97&&j<=102?j-87:j-48&15}function v(H,N,j){var re=d(H,j);return j-1>=N&&(re|=d(H,j-1)<<4),re}f.prototype._parseHex=function(N,j,re){this.length=Math.ceil((N.length-j)/6),this.words=new Array(this.length);for(var oe=0;oe=j;oe-=2)ke=v(N,j,oe)<<_e,this.words[Me]|=ke&67108863,_e>=18?(_e-=18,Me+=1,this.words[Me]|=ke>>>26):_e+=8;else{var me=N.length-j;for(oe=me%2===0?j+1:j;oe=18?(_e-=18,Me+=1,this.words[Me]|=ke>>>26):_e+=8}this.strip()};function x(H,N,j,re){for(var oe=0,_e=Math.min(H.length,j),Me=N;Me<_e;Me++){var ke=H.charCodeAt(Me)-48;oe*=re,ke>=49?oe+=ke-49+10:ke>=17?oe+=ke-17+10:oe+=ke}return oe}f.prototype._parseBase=function(N,j,re){this.words=[0],this.length=1;for(var oe=0,_e=1;_e<=67108863;_e*=j)oe++;oe--,_e=_e/j|0;for(var Me=N.length-re,ke=Me%oe,me=Math.min(Me,Me-ke)+re,ie=0,Se=re;Se1&&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 b=["","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"],p=[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],C=[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(N,j){N=N||10,j=j|0||1;var re;if(N===16||N==="hex"){re="";for(var oe=0,_e=0,Me=0;Me>>24-oe&16777215,_e!==0||Me!==this.length-1?re=b[6-me.length]+me+re:re=me+re,oe+=2,oe>=26&&(oe-=26,Me--)}for(_e!==0&&(re=_e.toString(16)+re);re.length%j!==0;)re="0"+re;return this.negative!==0&&(re="-"+re),re}if(N===(N|0)&&N>=2&&N<=36){var ie=p[N],Se=C[N];re="";var Le=this.clone();for(Le.negative=0;!Le.isZero();){var Ae=Le.modn(Se).toString(N);Le=Le.idivn(Se),Le.isZero()?re=Ae+re:re=b[ie-Ae.length]+Ae+re}for(this.isZero()&&(re="0"+re);re.length%j!==0;)re="0"+re;return this.negative!==0&&(re="-"+re),re}u(!1,"Base should be between 2 and 36")},f.prototype.toNumber=function(){var N=this.words[0];return this.length===2?N+=this.words[1]*67108864:this.length===3&&this.words[2]===1?N+=4503599627370496+this.words[1]*67108864:this.length>2&&u(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-N:N},f.prototype.toJSON=function(){return this.toString(16)},f.prototype.toBuffer=function(N,j){return u(typeof h!="undefined"),this.toArrayLike(h,N,j)},f.prototype.toArray=function(N,j){return this.toArrayLike(Array,N,j)},f.prototype.toArrayLike=function(N,j,re){var oe=this.byteLength(),_e=re||Math.max(1,oe);u(oe<=_e,"byte array longer than desired length"),u(_e>0,"Requested array length <= 0"),this.strip();var Me=j==="le",ke=new N(_e),me,ie,Se=this.clone();if(Me){for(ie=0;!Se.isZero();ie++)me=Se.andln(255),Se.iushrn(8),ke[ie]=me;for(;ie<_e;ie++)ke[ie]=0}else{for(ie=0;ie<_e-oe;ie++)ke[ie]=0;for(ie=0;!Se.isZero();ie++)me=Se.andln(255),Se.iushrn(8),ke[_e-ie-1]=me}return ke},Math.clz32?f.prototype._countBits=function(N){return 32-Math.clz32(N)}:f.prototype._countBits=function(N){var j=N,re=0;return j>=4096&&(re+=13,j>>>=13),j>=64&&(re+=7,j>>>=7),j>=8&&(re+=4,j>>>=4),j>=2&&(re+=2,j>>>=2),re+j},f.prototype._zeroBits=function(N){if(N===0)return 26;var j=N,re=0;return(j&8191)===0&&(re+=13,j>>>=13),(j&127)===0&&(re+=7,j>>>=7),(j&15)===0&&(re+=4,j>>>=4),(j&3)===0&&(re+=2,j>>>=2),(j&1)===0&&re++,re},f.prototype.bitLength=function(){var N=this.words[this.length-1],j=this._countBits(N);return(this.length-1)*26+j};function E(H){for(var N=new Array(H.bitLength()),j=0;j>>oe}return N}f.prototype.zeroBits=function(){if(this.isZero())return 0;for(var N=0,j=0;jN.length?this.clone().ior(N):N.clone().ior(this)},f.prototype.uor=function(N){return this.length>N.length?this.clone().iuor(N):N.clone().iuor(this)},f.prototype.iuand=function(N){var j;this.length>N.length?j=N:j=this;for(var re=0;reN.length?this.clone().iand(N):N.clone().iand(this)},f.prototype.uand=function(N){return this.length>N.length?this.clone().iuand(N):N.clone().iuand(this)},f.prototype.iuxor=function(N){var j,re;this.length>N.length?(j=this,re=N):(j=N,re=this);for(var oe=0;oeN.length?this.clone().ixor(N):N.clone().ixor(this)},f.prototype.uxor=function(N){return this.length>N.length?this.clone().iuxor(N):N.clone().iuxor(this)},f.prototype.inotn=function(N){u(typeof N=="number"&&N>=0);var j=Math.ceil(N/26)|0,re=N%26;this._expand(j),re>0&&j--;for(var oe=0;oe0&&(this.words[oe]=~this.words[oe]&67108863>>26-re),this.strip()},f.prototype.notn=function(N){return this.clone().inotn(N)},f.prototype.setn=function(N,j){u(typeof N=="number"&&N>=0);var re=N/26|0,oe=N%26;return this._expand(re+1),j?this.words[re]=this.words[re]|1<N.length?(re=this,oe=N):(re=N,oe=this);for(var _e=0,Me=0;Me>>26;for(;_e!==0&&Me>>26;if(this.length=re.length,_e!==0)this.words[this.length]=_e,this.length++;else if(re!==this)for(;MeN.length?this.clone().iadd(N):N.clone().iadd(this)},f.prototype.isub=function(N){if(N.negative!==0){N.negative=0;var j=this.iadd(N);return N.negative=1,j._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(N),this.negative=1,this._normSign();var re=this.cmp(N);if(re===0)return this.negative=0,this.length=1,this.words[0]=0,this;var oe,_e;re>0?(oe=this,_e=N):(oe=N,_e=this);for(var Me=0,ke=0;ke<_e.length;ke++)j=(oe.words[ke]|0)-(_e.words[ke]|0)+Me,Me=j>>26,this.words[ke]=j&67108863;for(;Me!==0&&ke>26,this.words[ke]=j&67108863;if(Me===0&&ke>>26,Le=me&67108863,Ae=Math.min(ie,N.length-1),De=Math.max(0,ie-H.length+1);De<=Ae;De++){var Pe=ie-De|0;oe=H.words[Pe]|0,_e=N.words[De]|0,Me=oe*_e+Le,Se+=Me/67108864|0,Le=Me&67108863}j.words[ie]=Le|0,me=Se|0}return me!==0?j.words[ie]=me|0:j.length--,j.strip()}var L=function(N,j,re){var oe=N.words,_e=j.words,Me=re.words,ke=0,me,ie,Se,Le=oe[0]|0,Ae=Le&8191,De=Le>>>13,Pe=oe[1]|0,ge=Pe&8191,Fe=Pe>>>13,ce=oe[2]|0,Ze=ce&8191,ct=ce>>>13,pt=oe[3]|0,Wt=pt&8191,st=pt>>>13,lt=oe[4]|0,Gt=lt&8191,Nt=lt>>>13,$t=oe[5]|0,sr=$t&8191,wr=$t>>>13,ur=oe[6]|0,Qe=ur&8191,Et=ur>>>13,er=oe[7]|0,Ut=er&8191,Ft=er>>>13,bt=oe[8]|0,yt=bt&8191,Yt=bt>>>13,lr=oe[9]|0,Tr=lr&8191,Rr=lr>>>13,ei=_e[0]|0,Wr=ei&8191,Ur=ei>>>13,dt=_e[1]|0,Ge=dt&8191,Je=dt>>>13,je=_e[2]|0,$e=je&8191,wt=je>>>13,Ie=_e[3]|0,xe=Ie&8191,Ce=Ie>>>13,vt=_e[4]|0,nr=vt&8191,ir=vt>>>13,pr=_e[5]|0,oi=pr&8191,di=pr>>>13,Jr=_e[6]|0,fi=Jr&8191,Hi=Jr>>>13,Pn=_e[7]|0,wn=Pn&8191,pn=Pn>>>13,Vn=_e[8]|0,kn=Vn&8191,ea=Vn>>>13,ua=_e[9]|0,Vt=ua&8191,_t=ua>>>13;re.negative=N.negative^j.negative,re.length=19,me=Math.imul(Ae,Wr),ie=Math.imul(Ae,Ur),ie=ie+Math.imul(De,Wr)|0,Se=Math.imul(De,Ur);var tr=(ke+me|0)+((ie&8191)<<13)|0;ke=(Se+(ie>>>13)|0)+(tr>>>26)|0,tr&=67108863,me=Math.imul(ge,Wr),ie=Math.imul(ge,Ur),ie=ie+Math.imul(Fe,Wr)|0,Se=Math.imul(Fe,Ur),me=me+Math.imul(Ae,Ge)|0,ie=ie+Math.imul(Ae,Je)|0,ie=ie+Math.imul(De,Ge)|0,Se=Se+Math.imul(De,Je)|0;var ar=(ke+me|0)+((ie&8191)<<13)|0;ke=(Se+(ie>>>13)|0)+(ar>>>26)|0,ar&=67108863,me=Math.imul(Ze,Wr),ie=Math.imul(Ze,Ur),ie=ie+Math.imul(ct,Wr)|0,Se=Math.imul(ct,Ur),me=me+Math.imul(ge,Ge)|0,ie=ie+Math.imul(ge,Je)|0,ie=ie+Math.imul(Fe,Ge)|0,Se=Se+Math.imul(Fe,Je)|0,me=me+Math.imul(Ae,$e)|0,ie=ie+Math.imul(Ae,wt)|0,ie=ie+Math.imul(De,$e)|0,Se=Se+Math.imul(De,wt)|0;var Er=(ke+me|0)+((ie&8191)<<13)|0;ke=(Se+(ie>>>13)|0)+(Er>>>26)|0,Er&=67108863,me=Math.imul(Wt,Wr),ie=Math.imul(Wt,Ur),ie=ie+Math.imul(st,Wr)|0,Se=Math.imul(st,Ur),me=me+Math.imul(Ze,Ge)|0,ie=ie+Math.imul(Ze,Je)|0,ie=ie+Math.imul(ct,Ge)|0,Se=Se+Math.imul(ct,Je)|0,me=me+Math.imul(ge,$e)|0,ie=ie+Math.imul(ge,wt)|0,ie=ie+Math.imul(Fe,$e)|0,Se=Se+Math.imul(Fe,wt)|0,me=me+Math.imul(Ae,xe)|0,ie=ie+Math.imul(Ae,Ce)|0,ie=ie+Math.imul(De,xe)|0,Se=Se+Math.imul(De,Ce)|0;var Zr=(ke+me|0)+((ie&8191)<<13)|0;ke=(Se+(ie>>>13)|0)+(Zr>>>26)|0,Zr&=67108863,me=Math.imul(Gt,Wr),ie=Math.imul(Gt,Ur),ie=ie+Math.imul(Nt,Wr)|0,Se=Math.imul(Nt,Ur),me=me+Math.imul(Wt,Ge)|0,ie=ie+Math.imul(Wt,Je)|0,ie=ie+Math.imul(st,Ge)|0,Se=Se+Math.imul(st,Je)|0,me=me+Math.imul(Ze,$e)|0,ie=ie+Math.imul(Ze,wt)|0,ie=ie+Math.imul(ct,$e)|0,Se=Se+Math.imul(ct,wt)|0,me=me+Math.imul(ge,xe)|0,ie=ie+Math.imul(ge,Ce)|0,ie=ie+Math.imul(Fe,xe)|0,Se=Se+Math.imul(Fe,Ce)|0,me=me+Math.imul(Ae,nr)|0,ie=ie+Math.imul(Ae,ir)|0,ie=ie+Math.imul(De,nr)|0,Se=Se+Math.imul(De,ir)|0;var ri=(ke+me|0)+((ie&8191)<<13)|0;ke=(Se+(ie>>>13)|0)+(ri>>>26)|0,ri&=67108863,me=Math.imul(sr,Wr),ie=Math.imul(sr,Ur),ie=ie+Math.imul(wr,Wr)|0,Se=Math.imul(wr,Ur),me=me+Math.imul(Gt,Ge)|0,ie=ie+Math.imul(Gt,Je)|0,ie=ie+Math.imul(Nt,Ge)|0,Se=Se+Math.imul(Nt,Je)|0,me=me+Math.imul(Wt,$e)|0,ie=ie+Math.imul(Wt,wt)|0,ie=ie+Math.imul(st,$e)|0,Se=Se+Math.imul(st,wt)|0,me=me+Math.imul(Ze,xe)|0,ie=ie+Math.imul(Ze,Ce)|0,ie=ie+Math.imul(ct,xe)|0,Se=Se+Math.imul(ct,Ce)|0,me=me+Math.imul(ge,nr)|0,ie=ie+Math.imul(ge,ir)|0,ie=ie+Math.imul(Fe,nr)|0,Se=Se+Math.imul(Fe,ir)|0,me=me+Math.imul(Ae,oi)|0,ie=ie+Math.imul(Ae,di)|0,ie=ie+Math.imul(De,oi)|0,Se=Se+Math.imul(De,di)|0;var $r=(ke+me|0)+((ie&8191)<<13)|0;ke=(Se+(ie>>>13)|0)+($r>>>26)|0,$r&=67108863,me=Math.imul(Qe,Wr),ie=Math.imul(Qe,Ur),ie=ie+Math.imul(Et,Wr)|0,Se=Math.imul(Et,Ur),me=me+Math.imul(sr,Ge)|0,ie=ie+Math.imul(sr,Je)|0,ie=ie+Math.imul(wr,Ge)|0,Se=Se+Math.imul(wr,Je)|0,me=me+Math.imul(Gt,$e)|0,ie=ie+Math.imul(Gt,wt)|0,ie=ie+Math.imul(Nt,$e)|0,Se=Se+Math.imul(Nt,wt)|0,me=me+Math.imul(Wt,xe)|0,ie=ie+Math.imul(Wt,Ce)|0,ie=ie+Math.imul(st,xe)|0,Se=Se+Math.imul(st,Ce)|0,me=me+Math.imul(Ze,nr)|0,ie=ie+Math.imul(Ze,ir)|0,ie=ie+Math.imul(ct,nr)|0,Se=Se+Math.imul(ct,ir)|0,me=me+Math.imul(ge,oi)|0,ie=ie+Math.imul(ge,di)|0,ie=ie+Math.imul(Fe,oi)|0,Se=Se+Math.imul(Fe,di)|0,me=me+Math.imul(Ae,fi)|0,ie=ie+Math.imul(Ae,Hi)|0,ie=ie+Math.imul(De,fi)|0,Se=Se+Math.imul(De,Hi)|0;var zi=(ke+me|0)+((ie&8191)<<13)|0;ke=(Se+(ie>>>13)|0)+(zi>>>26)|0,zi&=67108863,me=Math.imul(Ut,Wr),ie=Math.imul(Ut,Ur),ie=ie+Math.imul(Ft,Wr)|0,Se=Math.imul(Ft,Ur),me=me+Math.imul(Qe,Ge)|0,ie=ie+Math.imul(Qe,Je)|0,ie=ie+Math.imul(Et,Ge)|0,Se=Se+Math.imul(Et,Je)|0,me=me+Math.imul(sr,$e)|0,ie=ie+Math.imul(sr,wt)|0,ie=ie+Math.imul(wr,$e)|0,Se=Se+Math.imul(wr,wt)|0,me=me+Math.imul(Gt,xe)|0,ie=ie+Math.imul(Gt,Ce)|0,ie=ie+Math.imul(Nt,xe)|0,Se=Se+Math.imul(Nt,Ce)|0,me=me+Math.imul(Wt,nr)|0,ie=ie+Math.imul(Wt,ir)|0,ie=ie+Math.imul(st,nr)|0,Se=Se+Math.imul(st,ir)|0,me=me+Math.imul(Ze,oi)|0,ie=ie+Math.imul(Ze,di)|0,ie=ie+Math.imul(ct,oi)|0,Se=Se+Math.imul(ct,di)|0,me=me+Math.imul(ge,fi)|0,ie=ie+Math.imul(ge,Hi)|0,ie=ie+Math.imul(Fe,fi)|0,Se=Se+Math.imul(Fe,Hi)|0,me=me+Math.imul(Ae,wn)|0,ie=ie+Math.imul(Ae,pn)|0,ie=ie+Math.imul(De,wn)|0,Se=Se+Math.imul(De,pn)|0;var Ji=(ke+me|0)+((ie&8191)<<13)|0;ke=(Se+(ie>>>13)|0)+(Ji>>>26)|0,Ji&=67108863,me=Math.imul(yt,Wr),ie=Math.imul(yt,Ur),ie=ie+Math.imul(Yt,Wr)|0,Se=Math.imul(Yt,Ur),me=me+Math.imul(Ut,Ge)|0,ie=ie+Math.imul(Ut,Je)|0,ie=ie+Math.imul(Ft,Ge)|0,Se=Se+Math.imul(Ft,Je)|0,me=me+Math.imul(Qe,$e)|0,ie=ie+Math.imul(Qe,wt)|0,ie=ie+Math.imul(Et,$e)|0,Se=Se+Math.imul(Et,wt)|0,me=me+Math.imul(sr,xe)|0,ie=ie+Math.imul(sr,Ce)|0,ie=ie+Math.imul(wr,xe)|0,Se=Se+Math.imul(wr,Ce)|0,me=me+Math.imul(Gt,nr)|0,ie=ie+Math.imul(Gt,ir)|0,ie=ie+Math.imul(Nt,nr)|0,Se=Se+Math.imul(Nt,ir)|0,me=me+Math.imul(Wt,oi)|0,ie=ie+Math.imul(Wt,di)|0,ie=ie+Math.imul(st,oi)|0,Se=Se+Math.imul(st,di)|0,me=me+Math.imul(Ze,fi)|0,ie=ie+Math.imul(Ze,Hi)|0,ie=ie+Math.imul(ct,fi)|0,Se=Se+Math.imul(ct,Hi)|0,me=me+Math.imul(ge,wn)|0,ie=ie+Math.imul(ge,pn)|0,ie=ie+Math.imul(Fe,wn)|0,Se=Se+Math.imul(Fe,pn)|0,me=me+Math.imul(Ae,kn)|0,ie=ie+Math.imul(Ae,ea)|0,ie=ie+Math.imul(De,kn)|0,Se=Se+Math.imul(De,ea)|0;var en=(ke+me|0)+((ie&8191)<<13)|0;ke=(Se+(ie>>>13)|0)+(en>>>26)|0,en&=67108863,me=Math.imul(Tr,Wr),ie=Math.imul(Tr,Ur),ie=ie+Math.imul(Rr,Wr)|0,Se=Math.imul(Rr,Ur),me=me+Math.imul(yt,Ge)|0,ie=ie+Math.imul(yt,Je)|0,ie=ie+Math.imul(Yt,Ge)|0,Se=Se+Math.imul(Yt,Je)|0,me=me+Math.imul(Ut,$e)|0,ie=ie+Math.imul(Ut,wt)|0,ie=ie+Math.imul(Ft,$e)|0,Se=Se+Math.imul(Ft,wt)|0,me=me+Math.imul(Qe,xe)|0,ie=ie+Math.imul(Qe,Ce)|0,ie=ie+Math.imul(Et,xe)|0,Se=Se+Math.imul(Et,Ce)|0,me=me+Math.imul(sr,nr)|0,ie=ie+Math.imul(sr,ir)|0,ie=ie+Math.imul(wr,nr)|0,Se=Se+Math.imul(wr,ir)|0,me=me+Math.imul(Gt,oi)|0,ie=ie+Math.imul(Gt,di)|0,ie=ie+Math.imul(Nt,oi)|0,Se=Se+Math.imul(Nt,di)|0,me=me+Math.imul(Wt,fi)|0,ie=ie+Math.imul(Wt,Hi)|0,ie=ie+Math.imul(st,fi)|0,Se=Se+Math.imul(st,Hi)|0,me=me+Math.imul(Ze,wn)|0,ie=ie+Math.imul(Ze,pn)|0,ie=ie+Math.imul(ct,wn)|0,Se=Se+Math.imul(ct,pn)|0,me=me+Math.imul(ge,kn)|0,ie=ie+Math.imul(ge,ea)|0,ie=ie+Math.imul(Fe,kn)|0,Se=Se+Math.imul(Fe,ea)|0,me=me+Math.imul(Ae,Vt)|0,ie=ie+Math.imul(Ae,_t)|0,ie=ie+Math.imul(De,Vt)|0,Se=Se+Math.imul(De,_t)|0;var cn=(ke+me|0)+((ie&8191)<<13)|0;ke=(Se+(ie>>>13)|0)+(cn>>>26)|0,cn&=67108863,me=Math.imul(Tr,Ge),ie=Math.imul(Tr,Je),ie=ie+Math.imul(Rr,Ge)|0,Se=Math.imul(Rr,Je),me=me+Math.imul(yt,$e)|0,ie=ie+Math.imul(yt,wt)|0,ie=ie+Math.imul(Yt,$e)|0,Se=Se+Math.imul(Yt,wt)|0,me=me+Math.imul(Ut,xe)|0,ie=ie+Math.imul(Ut,Ce)|0,ie=ie+Math.imul(Ft,xe)|0,Se=Se+Math.imul(Ft,Ce)|0,me=me+Math.imul(Qe,nr)|0,ie=ie+Math.imul(Qe,ir)|0,ie=ie+Math.imul(Et,nr)|0,Se=Se+Math.imul(Et,ir)|0,me=me+Math.imul(sr,oi)|0,ie=ie+Math.imul(sr,di)|0,ie=ie+Math.imul(wr,oi)|0,Se=Se+Math.imul(wr,di)|0,me=me+Math.imul(Gt,fi)|0,ie=ie+Math.imul(Gt,Hi)|0,ie=ie+Math.imul(Nt,fi)|0,Se=Se+Math.imul(Nt,Hi)|0,me=me+Math.imul(Wt,wn)|0,ie=ie+Math.imul(Wt,pn)|0,ie=ie+Math.imul(st,wn)|0,Se=Se+Math.imul(st,pn)|0,me=me+Math.imul(Ze,kn)|0,ie=ie+Math.imul(Ze,ea)|0,ie=ie+Math.imul(ct,kn)|0,Se=Se+Math.imul(ct,ea)|0,me=me+Math.imul(ge,Vt)|0,ie=ie+Math.imul(ge,_t)|0,ie=ie+Math.imul(Fe,Vt)|0,Se=Se+Math.imul(Fe,_t)|0;var yn=(ke+me|0)+((ie&8191)<<13)|0;ke=(Se+(ie>>>13)|0)+(yn>>>26)|0,yn&=67108863,me=Math.imul(Tr,$e),ie=Math.imul(Tr,wt),ie=ie+Math.imul(Rr,$e)|0,Se=Math.imul(Rr,wt),me=me+Math.imul(yt,xe)|0,ie=ie+Math.imul(yt,Ce)|0,ie=ie+Math.imul(Yt,xe)|0,Se=Se+Math.imul(Yt,Ce)|0,me=me+Math.imul(Ut,nr)|0,ie=ie+Math.imul(Ut,ir)|0,ie=ie+Math.imul(Ft,nr)|0,Se=Se+Math.imul(Ft,ir)|0,me=me+Math.imul(Qe,oi)|0,ie=ie+Math.imul(Qe,di)|0,ie=ie+Math.imul(Et,oi)|0,Se=Se+Math.imul(Et,di)|0,me=me+Math.imul(sr,fi)|0,ie=ie+Math.imul(sr,Hi)|0,ie=ie+Math.imul(wr,fi)|0,Se=Se+Math.imul(wr,Hi)|0,me=me+Math.imul(Gt,wn)|0,ie=ie+Math.imul(Gt,pn)|0,ie=ie+Math.imul(Nt,wn)|0,Se=Se+Math.imul(Nt,pn)|0,me=me+Math.imul(Wt,kn)|0,ie=ie+Math.imul(Wt,ea)|0,ie=ie+Math.imul(st,kn)|0,Se=Se+Math.imul(st,ea)|0,me=me+Math.imul(Ze,Vt)|0,ie=ie+Math.imul(Ze,_t)|0,ie=ie+Math.imul(ct,Vt)|0,Se=Se+Math.imul(ct,_t)|0;var Mn=(ke+me|0)+((ie&8191)<<13)|0;ke=(Se+(ie>>>13)|0)+(Mn>>>26)|0,Mn&=67108863,me=Math.imul(Tr,xe),ie=Math.imul(Tr,Ce),ie=ie+Math.imul(Rr,xe)|0,Se=Math.imul(Rr,Ce),me=me+Math.imul(yt,nr)|0,ie=ie+Math.imul(yt,ir)|0,ie=ie+Math.imul(Yt,nr)|0,Se=Se+Math.imul(Yt,ir)|0,me=me+Math.imul(Ut,oi)|0,ie=ie+Math.imul(Ut,di)|0,ie=ie+Math.imul(Ft,oi)|0,Se=Se+Math.imul(Ft,di)|0,me=me+Math.imul(Qe,fi)|0,ie=ie+Math.imul(Qe,Hi)|0,ie=ie+Math.imul(Et,fi)|0,Se=Se+Math.imul(Et,Hi)|0,me=me+Math.imul(sr,wn)|0,ie=ie+Math.imul(sr,pn)|0,ie=ie+Math.imul(wr,wn)|0,Se=Se+Math.imul(wr,pn)|0,me=me+Math.imul(Gt,kn)|0,ie=ie+Math.imul(Gt,ea)|0,ie=ie+Math.imul(Nt,kn)|0,Se=Se+Math.imul(Nt,ea)|0,me=me+Math.imul(Wt,Vt)|0,ie=ie+Math.imul(Wt,_t)|0,ie=ie+Math.imul(st,Vt)|0,Se=Se+Math.imul(st,_t)|0;var Ba=(ke+me|0)+((ie&8191)<<13)|0;ke=(Se+(ie>>>13)|0)+(Ba>>>26)|0,Ba&=67108863,me=Math.imul(Tr,nr),ie=Math.imul(Tr,ir),ie=ie+Math.imul(Rr,nr)|0,Se=Math.imul(Rr,ir),me=me+Math.imul(yt,oi)|0,ie=ie+Math.imul(yt,di)|0,ie=ie+Math.imul(Yt,oi)|0,Se=Se+Math.imul(Yt,di)|0,me=me+Math.imul(Ut,fi)|0,ie=ie+Math.imul(Ut,Hi)|0,ie=ie+Math.imul(Ft,fi)|0,Se=Se+Math.imul(Ft,Hi)|0,me=me+Math.imul(Qe,wn)|0,ie=ie+Math.imul(Qe,pn)|0,ie=ie+Math.imul(Et,wn)|0,Se=Se+Math.imul(Et,pn)|0,me=me+Math.imul(sr,kn)|0,ie=ie+Math.imul(sr,ea)|0,ie=ie+Math.imul(wr,kn)|0,Se=Se+Math.imul(wr,ea)|0,me=me+Math.imul(Gt,Vt)|0,ie=ie+Math.imul(Gt,_t)|0,ie=ie+Math.imul(Nt,Vt)|0,Se=Se+Math.imul(Nt,_t)|0;var la=(ke+me|0)+((ie&8191)<<13)|0;ke=(Se+(ie>>>13)|0)+(la>>>26)|0,la&=67108863,me=Math.imul(Tr,oi),ie=Math.imul(Tr,di),ie=ie+Math.imul(Rr,oi)|0,Se=Math.imul(Rr,di),me=me+Math.imul(yt,fi)|0,ie=ie+Math.imul(yt,Hi)|0,ie=ie+Math.imul(Yt,fi)|0,Se=Se+Math.imul(Yt,Hi)|0,me=me+Math.imul(Ut,wn)|0,ie=ie+Math.imul(Ut,pn)|0,ie=ie+Math.imul(Ft,wn)|0,Se=Se+Math.imul(Ft,pn)|0,me=me+Math.imul(Qe,kn)|0,ie=ie+Math.imul(Qe,ea)|0,ie=ie+Math.imul(Et,kn)|0,Se=Se+Math.imul(Et,ea)|0,me=me+Math.imul(sr,Vt)|0,ie=ie+Math.imul(sr,_t)|0,ie=ie+Math.imul(wr,Vt)|0,Se=Se+Math.imul(wr,_t)|0;var ma=(ke+me|0)+((ie&8191)<<13)|0;ke=(Se+(ie>>>13)|0)+(ma>>>26)|0,ma&=67108863,me=Math.imul(Tr,fi),ie=Math.imul(Tr,Hi),ie=ie+Math.imul(Rr,fi)|0,Se=Math.imul(Rr,Hi),me=me+Math.imul(yt,wn)|0,ie=ie+Math.imul(yt,pn)|0,ie=ie+Math.imul(Yt,wn)|0,Se=Se+Math.imul(Yt,pn)|0,me=me+Math.imul(Ut,kn)|0,ie=ie+Math.imul(Ut,ea)|0,ie=ie+Math.imul(Ft,kn)|0,Se=Se+Math.imul(Ft,ea)|0,me=me+Math.imul(Qe,Vt)|0,ie=ie+Math.imul(Qe,_t)|0,ie=ie+Math.imul(Et,Vt)|0,Se=Se+Math.imul(Et,_t)|0;var Wa=(ke+me|0)+((ie&8191)<<13)|0;ke=(Se+(ie>>>13)|0)+(Wa>>>26)|0,Wa&=67108863,me=Math.imul(Tr,wn),ie=Math.imul(Tr,pn),ie=ie+Math.imul(Rr,wn)|0,Se=Math.imul(Rr,pn),me=me+Math.imul(yt,kn)|0,ie=ie+Math.imul(yt,ea)|0,ie=ie+Math.imul(Yt,kn)|0,Se=Se+Math.imul(Yt,ea)|0,me=me+Math.imul(Ut,Vt)|0,ie=ie+Math.imul(Ut,_t)|0,ie=ie+Math.imul(Ft,Vt)|0,Se=Se+Math.imul(Ft,_t)|0;var Fa=(ke+me|0)+((ie&8191)<<13)|0;ke=(Se+(ie>>>13)|0)+(Fa>>>26)|0,Fa&=67108863,me=Math.imul(Tr,kn),ie=Math.imul(Tr,ea),ie=ie+Math.imul(Rr,kn)|0,Se=Math.imul(Rr,ea),me=me+Math.imul(yt,Vt)|0,ie=ie+Math.imul(yt,_t)|0,ie=ie+Math.imul(Yt,Vt)|0,Se=Se+Math.imul(Yt,_t)|0;var Wo=(ke+me|0)+((ie&8191)<<13)|0;ke=(Se+(ie>>>13)|0)+(Wo>>>26)|0,Wo&=67108863,me=Math.imul(Tr,Vt),ie=Math.imul(Tr,_t),ie=ie+Math.imul(Rr,Vt)|0,Se=Math.imul(Rr,_t);var da=(ke+me|0)+((ie&8191)<<13)|0;return ke=(Se+(ie>>>13)|0)+(da>>>26)|0,da&=67108863,Me[0]=tr,Me[1]=ar,Me[2]=Er,Me[3]=Zr,Me[4]=ri,Me[5]=$r,Me[6]=zi,Me[7]=Ji,Me[8]=en,Me[9]=cn,Me[10]=yn,Me[11]=Mn,Me[12]=Ba,Me[13]=la,Me[14]=ma,Me[15]=Wa,Me[16]=Fa,Me[17]=Wo,Me[18]=da,ke!==0&&(Me[19]=ke,re.length++),re};Math.imul||(L=A);function _(H,N,j){j.negative=N.negative^H.negative,j.length=H.length+N.length;for(var re=0,oe=0,_e=0;_e>>26)|0,oe+=Me>>>26,Me&=67108863}j.words[_e]=ke,re=Me,Me=oe}return re!==0?j.words[_e]=re:j.length--,j.strip()}function k(H,N,j){var re=new M;return re.mulp(H,N,j)}f.prototype.mulTo=function(N,j){var re,oe=this.length+N.length;return this.length===10&&N.length===10?re=L(this,N,j):oe<63?re=A(this,N,j):oe<1024?re=_(this,N,j):re=k(this,N,j),re};function M(H,N){this.x=H,this.y=N}M.prototype.makeRBT=function(N){for(var j=new Array(N),re=f.prototype._countBits(N)-1,oe=0;oe>=1;return oe},M.prototype.permute=function(N,j,re,oe,_e,Me){for(var ke=0;ke>>1)_e++;return 1<<_e+1+oe},M.prototype.conjugate=function(N,j,re){if(!(re<=1))for(var oe=0;oe>>13,re[2*Me+1]=_e&8191,_e=_e>>>13;for(Me=2*j;Me>=26,j+=oe/67108864|0,j+=_e>>>26,this.words[re]=_e&67108863}return j!==0&&(this.words[re]=j,this.length++),this},f.prototype.muln=function(N){return this.clone().imuln(N)},f.prototype.sqr=function(){return this.mul(this)},f.prototype.isqr=function(){return this.imul(this.clone())},f.prototype.pow=function(N){var j=E(N);if(j.length===0)return new f(1);for(var re=this,oe=0;oe=0);var j=N%26,re=(N-j)/26,oe=67108863>>>26-j<<26-j,_e;if(j!==0){var Me=0;for(_e=0;_e>>26-j}Me&&(this.words[_e]=Me,this.length++)}if(re!==0){for(_e=this.length-1;_e>=0;_e--)this.words[_e+re]=this.words[_e];for(_e=0;_e=0);var oe;j?oe=(j-j%26)/26:oe=0;var _e=N%26,Me=Math.min((N-_e)/26,this.length),ke=67108863^67108863>>>_e<<_e,me=re;if(oe-=Me,oe=Math.max(0,oe),me){for(var ie=0;ieMe)for(this.length-=Me,ie=0;ie=0&&(Se!==0||ie>=oe);ie--){var Le=this.words[ie]|0;this.words[ie]=Se<<26-_e|Le>>>_e,Se=Le&ke}return me&&Se!==0&&(me.words[me.length++]=Se),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},f.prototype.ishrn=function(N,j,re){return u(this.negative===0),this.iushrn(N,j,re)},f.prototype.shln=function(N){return this.clone().ishln(N)},f.prototype.ushln=function(N){return this.clone().iushln(N)},f.prototype.shrn=function(N){return this.clone().ishrn(N)},f.prototype.ushrn=function(N){return this.clone().iushrn(N)},f.prototype.testn=function(N){u(typeof N=="number"&&N>=0);var j=N%26,re=(N-j)/26,oe=1<=0);var j=N%26,re=(N-j)/26;if(u(this.negative===0,"imaskn works only with positive numbers"),this.length<=re)return this;if(j!==0&&re++,this.length=Math.min(re,this.length),j!==0){var oe=67108863^67108863>>>j<=67108864;j++)this.words[j]-=67108864,j===this.length-1?this.words[j+1]=1:this.words[j+1]++;return this.length=Math.max(this.length,j+1),this},f.prototype.isubn=function(N){if(u(typeof N=="number"),u(N<67108864),N<0)return this.iaddn(-N);if(this.negative!==0)return this.negative=0,this.iaddn(N),this.negative=1,this;if(this.words[0]-=N,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var j=0;j>26)-(me/67108864|0),this.words[_e+re]=Me&67108863}for(;_e>26,this.words[_e+re]=Me&67108863;if(ke===0)return this.strip();for(u(ke===-1),ke=0,_e=0;_e>26,this.words[_e]=Me&67108863;return this.negative=1,this.strip()},f.prototype._wordDiv=function(N,j){var re=this.length-N.length,oe=this.clone(),_e=N,Me=_e.words[_e.length-1]|0,ke=this._countBits(Me);re=26-ke,re!==0&&(_e=_e.ushln(re),oe.iushln(re),Me=_e.words[_e.length-1]|0);var me=oe.length-_e.length,ie;if(j!=="mod"){ie=new f(null),ie.length=me+1,ie.words=new Array(ie.length);for(var Se=0;Se=0;Ae--){var De=(oe.words[_e.length+Ae]|0)*67108864+(oe.words[_e.length+Ae-1]|0);for(De=Math.min(De/Me|0,67108863),oe._ishlnsubmul(_e,De,Ae);oe.negative!==0;)De--,oe.negative=0,oe._ishlnsubmul(_e,1,Ae),oe.isZero()||(oe.negative^=1);ie&&(ie.words[Ae]=De)}return ie&&ie.strip(),oe.strip(),j!=="div"&&re!==0&&oe.iushrn(re),{div:ie||null,mod:oe}},f.prototype.divmod=function(N,j,re){if(u(!N.isZero()),this.isZero())return{div:new f(0),mod:new f(0)};var oe,_e,Me;return this.negative!==0&&N.negative===0?(Me=this.neg().divmod(N,j),j!=="mod"&&(oe=Me.div.neg()),j!=="div"&&(_e=Me.mod.neg(),re&&_e.negative!==0&&_e.iadd(N)),{div:oe,mod:_e}):this.negative===0&&N.negative!==0?(Me=this.divmod(N.neg(),j),j!=="mod"&&(oe=Me.div.neg()),{div:oe,mod:Me.mod}):(this.negative&N.negative)!==0?(Me=this.neg().divmod(N.neg(),j),j!=="div"&&(_e=Me.mod.neg(),re&&_e.negative!==0&&_e.isub(N)),{div:Me.div,mod:_e}):N.length>this.length||this.cmp(N)<0?{div:new f(0),mod:this}:N.length===1?j==="div"?{div:this.divn(N.words[0]),mod:null}:j==="mod"?{div:null,mod:new f(this.modn(N.words[0]))}:{div:this.divn(N.words[0]),mod:new f(this.modn(N.words[0]))}:this._wordDiv(N,j)},f.prototype.div=function(N){return this.divmod(N,"div",!1).div},f.prototype.mod=function(N){return this.divmod(N,"mod",!1).mod},f.prototype.umod=function(N){return this.divmod(N,"mod",!0).mod},f.prototype.divRound=function(N){var j=this.divmod(N);if(j.mod.isZero())return j.div;var re=j.div.negative!==0?j.mod.isub(N):j.mod,oe=N.ushrn(1),_e=N.andln(1),Me=re.cmp(oe);return Me<0||_e===1&&Me===0?j.div:j.div.negative!==0?j.div.isubn(1):j.div.iaddn(1)},f.prototype.modn=function(N){u(N<=67108863);for(var j=(1<<26)%N,re=0,oe=this.length-1;oe>=0;oe--)re=(j*re+(this.words[oe]|0))%N;return re},f.prototype.idivn=function(N){u(N<=67108863);for(var j=0,re=this.length-1;re>=0;re--){var oe=(this.words[re]|0)+j*67108864;this.words[re]=oe/N|0,j=oe%N}return this.strip()},f.prototype.divn=function(N){return this.clone().idivn(N)},f.prototype.egcd=function(N){u(N.negative===0),u(!N.isZero());var j=this,re=N.clone();j.negative!==0?j=j.umod(N):j=j.clone();for(var oe=new f(1),_e=new f(0),Me=new f(0),ke=new f(1),me=0;j.isEven()&&re.isEven();)j.iushrn(1),re.iushrn(1),++me;for(var ie=re.clone(),Se=j.clone();!j.isZero();){for(var Le=0,Ae=1;(j.words[0]&Ae)===0&&Le<26;++Le,Ae<<=1);if(Le>0)for(j.iushrn(Le);Le-- >0;)(oe.isOdd()||_e.isOdd())&&(oe.iadd(ie),_e.isub(Se)),oe.iushrn(1),_e.iushrn(1);for(var De=0,Pe=1;(re.words[0]&Pe)===0&&De<26;++De,Pe<<=1);if(De>0)for(re.iushrn(De);De-- >0;)(Me.isOdd()||ke.isOdd())&&(Me.iadd(ie),ke.isub(Se)),Me.iushrn(1),ke.iushrn(1);j.cmp(re)>=0?(j.isub(re),oe.isub(Me),_e.isub(ke)):(re.isub(j),Me.isub(oe),ke.isub(_e))}return{a:Me,b:ke,gcd:re.iushln(me)}},f.prototype._invmp=function(N){u(N.negative===0),u(!N.isZero());var j=this,re=N.clone();j.negative!==0?j=j.umod(N):j=j.clone();for(var oe=new f(1),_e=new f(0),Me=re.clone();j.cmpn(1)>0&&re.cmpn(1)>0;){for(var ke=0,me=1;(j.words[0]&me)===0&&ke<26;++ke,me<<=1);if(ke>0)for(j.iushrn(ke);ke-- >0;)oe.isOdd()&&oe.iadd(Me),oe.iushrn(1);for(var ie=0,Se=1;(re.words[0]&Se)===0&&ie<26;++ie,Se<<=1);if(ie>0)for(re.iushrn(ie);ie-- >0;)_e.isOdd()&&_e.iadd(Me),_e.iushrn(1);j.cmp(re)>=0?(j.isub(re),oe.isub(_e)):(re.isub(j),_e.isub(oe))}var Le;return j.cmpn(1)===0?Le=oe:Le=_e,Le.cmpn(0)<0&&Le.iadd(N),Le},f.prototype.gcd=function(N){if(this.isZero())return N.abs();if(N.isZero())return this.abs();var j=this.clone(),re=N.clone();j.negative=0,re.negative=0;for(var oe=0;j.isEven()&&re.isEven();oe++)j.iushrn(1),re.iushrn(1);do{for(;j.isEven();)j.iushrn(1);for(;re.isEven();)re.iushrn(1);var _e=j.cmp(re);if(_e<0){var Me=j;j=re,re=Me}else if(_e===0||re.cmpn(1)===0)break;j.isub(re)}while(!0);return re.iushln(oe)},f.prototype.invm=function(N){return this.egcd(N).a.umod(N)},f.prototype.isEven=function(){return(this.words[0]&1)===0},f.prototype.isOdd=function(){return(this.words[0]&1)===1},f.prototype.andln=function(N){return this.words[0]&N},f.prototype.bincn=function(N){u(typeof N=="number");var j=N%26,re=(N-j)/26,oe=1<>>26,ke&=67108863,this.words[Me]=ke}return _e!==0&&(this.words[Me]=_e,this.length++),this},f.prototype.isZero=function(){return this.length===1&&this.words[0]===0},f.prototype.cmpn=function(N){var j=N<0;if(this.negative!==0&&!j)return-1;if(this.negative===0&&j)return 1;this.strip();var re;if(this.length>1)re=1;else{j&&(N=-N),u(N<=67108863,"Number is too big");var oe=this.words[0]|0;re=oe===N?0:oeN.length)return 1;if(this.length=0;re--){var oe=this.words[re]|0,_e=N.words[re]|0;if(oe!==_e){oe<_e?j=-1:oe>_e&&(j=1);break}}return j},f.prototype.gtn=function(N){return this.cmpn(N)===1},f.prototype.gt=function(N){return this.cmp(N)===1},f.prototype.gten=function(N){return this.cmpn(N)>=0},f.prototype.gte=function(N){return this.cmp(N)>=0},f.prototype.ltn=function(N){return this.cmpn(N)===-1},f.prototype.lt=function(N){return this.cmp(N)===-1},f.prototype.lten=function(N){return this.cmpn(N)<=0},f.prototype.lte=function(N){return this.cmp(N)<=0},f.prototype.eqn=function(N){return this.cmpn(N)===0},f.prototype.eq=function(N){return this.cmp(N)===0},f.red=function(N){return new G(N)},f.prototype.toRed=function(N){return u(!this.red,"Already a number in reduction context"),u(this.negative===0,"red works only with positives"),N.convertTo(this)._forceRed(N)},f.prototype.fromRed=function(){return u(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},f.prototype._forceRed=function(N){return this.red=N,this},f.prototype.forceRed=function(N){return u(!this.red,"Already a number in reduction context"),this._forceRed(N)},f.prototype.redAdd=function(N){return u(this.red,"redAdd works only with red numbers"),this.red.add(this,N)},f.prototype.redIAdd=function(N){return u(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,N)},f.prototype.redSub=function(N){return u(this.red,"redSub works only with red numbers"),this.red.sub(this,N)},f.prototype.redISub=function(N){return u(this.red,"redISub works only with red numbers"),this.red.isub(this,N)},f.prototype.redShl=function(N){return u(this.red,"redShl works only with red numbers"),this.red.shl(this,N)},f.prototype.redMul=function(N){return u(this.red,"redMul works only with red numbers"),this.red._verify2(this,N),this.red.mul(this,N)},f.prototype.redIMul=function(N){return u(this.red,"redMul works only with red numbers"),this.red._verify2(this,N),this.red.imul(this,N)},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(N){return u(this.red&&!N.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,N)};var g={k256:null,p224:null,p192:null,p25519:null};function P(H,N){this.name=H,this.p=new f(N,16),this.n=this.p.bitLength(),this.k=new f(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}P.prototype._tmp=function(){var N=new f(null);return N.words=new Array(Math.ceil(this.n/13)),N},P.prototype.ireduce=function(N){var j=N,re;do this.split(j,this.tmp),j=this.imulK(j),j=j.iadd(this.tmp),re=j.bitLength();while(re>this.n);var oe=re0?j.isub(this.p):j.strip!==void 0?j.strip():j._strip(),j},P.prototype.split=function(N,j){N.iushrn(this.n,0,j)},P.prototype.imulK=function(N){return N.imul(this.k)};function T(){P.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}c(T,P),T.prototype.split=function(N,j){for(var re=4194303,oe=Math.min(N.length,9),_e=0;_e>>22,Me=ke}Me>>>=22,N.words[_e-10]=Me,Me===0&&N.length>10?N.length-=10:N.length-=9},T.prototype.imulK=function(N){N.words[N.length]=0,N.words[N.length+1]=0,N.length+=2;for(var j=0,re=0;re>>=26,N.words[re]=_e,j=oe}return j!==0&&(N.words[N.length++]=j),N},f._prime=function(N){if(g[N])return g[N];var j;if(N==="k256")j=new T;else if(N==="p224")j=new z;else if(N==="p192")j=new O;else if(N==="p25519")j=new V;else throw new Error("Unknown prime "+N);return g[N]=j,j};function G(H){if(typeof H=="string"){var N=f._prime(H);this.m=N.p,this.prime=N}else u(H.gtn(1),"modulus must be greater than 1"),this.m=H,this.prime=null}G.prototype._verify1=function(N){u(N.negative===0,"red works only with positives"),u(N.red,"red works only with red numbers")},G.prototype._verify2=function(N,j){u((N.negative|j.negative)===0,"red works only with positives"),u(N.red&&N.red===j.red,"red works only with red numbers")},G.prototype.imod=function(N){return this.prime?this.prime.ireduce(N)._forceRed(this):N.umod(this.m)._forceRed(this)},G.prototype.neg=function(N){return N.isZero()?N.clone():this.m.sub(N)._forceRed(this)},G.prototype.add=function(N,j){this._verify2(N,j);var re=N.add(j);return re.cmp(this.m)>=0&&re.isub(this.m),re._forceRed(this)},G.prototype.iadd=function(N,j){this._verify2(N,j);var re=N.iadd(j);return re.cmp(this.m)>=0&&re.isub(this.m),re},G.prototype.sub=function(N,j){this._verify2(N,j);var re=N.sub(j);return re.cmpn(0)<0&&re.iadd(this.m),re._forceRed(this)},G.prototype.isub=function(N,j){this._verify2(N,j);var re=N.isub(j);return re.cmpn(0)<0&&re.iadd(this.m),re},G.prototype.shl=function(N,j){return this._verify1(N),this.imod(N.ushln(j))},G.prototype.imul=function(N,j){return this._verify2(N,j),this.imod(N.imul(j))},G.prototype.mul=function(N,j){return this._verify2(N,j),this.imod(N.mul(j))},G.prototype.isqr=function(N){return this.imul(N,N.clone())},G.prototype.sqr=function(N){return this.mul(N,N)},G.prototype.sqrt=function(N){if(N.isZero())return N.clone();var j=this.m.andln(3);if(u(j%2===1),j===3){var re=this.m.add(new f(1)).iushrn(2);return this.pow(N,re)}for(var oe=this.m.subn(1),_e=0;!oe.isZero()&&oe.andln(1)===0;)_e++,oe.iushrn(1);u(!oe.isZero());var Me=new f(1).toRed(this),ke=Me.redNeg(),me=this.m.subn(1).iushrn(1),ie=this.m.bitLength();for(ie=new f(2*ie*ie).toRed(this);this.pow(ie,me).cmp(ke)!==0;)ie.redIAdd(ke);for(var Se=this.pow(ie,oe),Le=this.pow(N,oe.addn(1).iushrn(1)),Ae=this.pow(N,oe),De=_e;Ae.cmp(Me)!==0;){for(var Pe=Ae,ge=0;Pe.cmp(Me)!==0;ge++)Pe=Pe.redSqr();u(ge=0;_e--){for(var Se=j.words[_e],Le=ie-1;Le>=0;Le--){var Ae=Se>>Le&1;if(Me!==oe[0]&&(Me=this.sqr(Me)),Ae===0&&ke===0){me=0;continue}ke<<=1,ke|=Ae,me++,!(me!==re&&(_e!==0||Le!==0))&&(Me=this.mul(Me,oe[ke]),me=0,ke=0)}ie=26}return Me},G.prototype.convertTo=function(N){var j=N.umod(this.m);return j===N?j.clone():j},G.prototype.convertFrom=function(N){var j=N.clone();return j.red=null,j},f.mont=function(N){return new Z(N)};function Z(H){G.call(this,H),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(Z,G),Z.prototype.convertTo=function(N){return this.imod(N.ushln(this.shift))},Z.prototype.convertFrom=function(N){var j=this.imod(N.mul(this.rinv));return j.red=null,j},Z.prototype.imul=function(N,j){if(N.isZero()||j.isZero())return N.words[0]=0,N.length=1,N;var re=N.imul(j),oe=re.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_e=re.isub(oe).iushrn(this.shift),Me=_e;return _e.cmp(this.m)>=0?Me=_e.isub(this.m):_e.cmpn(0)<0&&(Me=_e.iadd(this.m)),Me._forceRed(this)},Z.prototype.mul=function(N,j){if(N.isZero()||j.isZero())return new f(0)._forceRed(this);var re=N.mul(j),oe=re.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_e=re.isub(oe).iushrn(this.shift),Me=_e;return _e.cmp(this.m)>=0?Me=_e.isub(this.m):_e.cmpn(0)<0&&(Me=_e.iadd(this.m)),Me._forceRed(this)},Z.prototype.invm=function(N){var j=this.imod(N._invmp(this.m).mul(this.r2));return j._forceRed(this)}}(i,this)},6204:function(i){"use strict";i.exports=a;function a(o){var s,l,u,c=o.length,f=0;for(s=0;s>>1;if(!(M<=0)){var g,P=s.mallocDouble(2*M*_),T=s.mallocInt32(_);if(_=f(C,M,P,T),_>0){if(M===1&&L)l.init(_),g=l.sweepComplete(M,A,0,_,P,T,0,_,P,T);else{var z=s.mallocDouble(2*M*k),O=s.mallocInt32(k);k=f(E,M,z,O),k>0&&(l.init(_+k),M===1?g=l.sweepBipartite(M,A,0,_,P,T,0,k,z,O):g=u(M,A,L,_,P,T,k,z,O),s.free(z),s.free(O))}s.free(P),s.free(T)}return g}}}var d;function v(C,E){d.push([C,E])}function x(C){return d=[],h(C,C,v,!0),d}function b(C,E){return d=[],h(C,E,v,!1),d}function p(C,E,A){switch(arguments.length){case 1:return x(C);case 2:return typeof E=="function"?h(C,C,E,!0):b(C,E);case 3:return h(C,E,A,!1);default:throw new Error("box-intersect: Invalid arguments")}}},2455:function(i,a){"use strict";function o(){function u(h,d,v,x,b,p,C,E,A,L,_){for(var k=2*h,M=x,g=k*x;MA-E?u(h,d,v,x,b,p,C,E,A,L,_):c(h,d,v,x,b,p,C,E,A,L,_)}return f}function s(){function u(v,x,b,p,C,E,A,L,_,k,M){for(var g=2*v,P=p,T=g*p;Pk-_?p?u(v,x,b,C,E,A,L,_,k,M,g):c(v,x,b,C,E,A,L,_,k,M,g):p?f(v,x,b,C,E,A,L,_,k,M,g):h(v,x,b,C,E,A,L,_,k,M,g)}return d}function l(u){return u?o():s()}a.partial=l(!1),a.full=l(!0)},7150:function(i,a,o){"use strict";i.exports=H;var s=o(1888),l=o(8828),u=o(2455),c=u.partial,f=u.full,h=o(855),d=o(3545),v=o(8105),x=128,b=1<<22,p=1<<22,C=v("!(lo>=p0)&&!(p1>=hi)"),E=v("lo===p0"),A=v("lo0;){Se-=1;var De=Se*M,Pe=T[De],ge=T[De+1],Fe=T[De+2],ce=T[De+3],Ze=T[De+4],ct=T[De+5],pt=Se*g,Wt=z[pt],st=z[pt+1],lt=ct&1,Gt=!!(ct&16),Nt=_e,$t=Me,sr=me,wr=ie;if(lt&&(Nt=me,$t=ie,sr=_e,wr=Me),!(ct&2&&(Fe=A(N,Pe,ge,Fe,Nt,$t,st),ge>=Fe))&&!(ct&4&&(ge=L(N,Pe,ge,Fe,Nt,$t,Wt),ge>=Fe))){var ur=Fe-ge,Qe=Ze-ce;if(Gt){if(N*ur*(ur+Qe)v&&b[k+d]>L;--_,k-=C){for(var M=k,g=k+C,P=0;P>>1,L=2*h,_=A,k=b[L*A+d];C=z?(_=T,k=z):P>=V?(_=g,k=P):(_=O,k=V):z>=V?(_=T,k=z):V>=P?(_=g,k=P):(_=O,k=V);for(var H=L*(E-1),N=L*_,G=0;G=p0)&&!(p1>=hi)":d};function o(v){return a[v]}function s(v,x,b,p,C,E,A){for(var L=2*v,_=L*b,k=_,M=b,g=x,P=v+x,T=b;p>T;++T,_+=L){var z=C[_+g];if(z===A)if(M===T)M+=1,k+=L;else{for(var O=0;L>O;++O){var V=C[_+O];C[_+O]=C[k],C[k++]=V}var G=E[T];E[T]=E[M],E[M++]=G}}return M}function l(v,x,b,p,C,E,A){for(var L=2*v,_=L*b,k=_,M=b,g=x,P=v+x,T=b;p>T;++T,_+=L){var z=C[_+g];if(zO;++O){var V=C[_+O];C[_+O]=C[k],C[k++]=V}var G=E[T];E[T]=E[M],E[M++]=G}}return M}function u(v,x,b,p,C,E,A){for(var L=2*v,_=L*b,k=_,M=b,g=x,P=v+x,T=b;p>T;++T,_+=L){var z=C[_+P];if(z<=A)if(M===T)M+=1,k+=L;else{for(var O=0;L>O;++O){var V=C[_+O];C[_+O]=C[k],C[k++]=V}var G=E[T];E[T]=E[M],E[M++]=G}}return M}function c(v,x,b,p,C,E,A){for(var L=2*v,_=L*b,k=_,M=b,g=x,P=v+x,T=b;p>T;++T,_+=L){var z=C[_+P];if(z<=A)if(M===T)M+=1,k+=L;else{for(var O=0;L>O;++O){var V=C[_+O];C[_+O]=C[k],C[k++]=V}var G=E[T];E[T]=E[M],E[M++]=G}}return M}function f(v,x,b,p,C,E,A){for(var L=2*v,_=L*b,k=_,M=b,g=x,P=v+x,T=b;p>T;++T,_+=L){var z=C[_+g],O=C[_+P];if(z<=A&&A<=O)if(M===T)M+=1,k+=L;else{for(var V=0;L>V;++V){var G=C[_+V];C[_+V]=C[k],C[k++]=G}var Z=E[T];E[T]=E[M],E[M++]=Z}}return M}function h(v,x,b,p,C,E,A){for(var L=2*v,_=L*b,k=_,M=b,g=x,P=v+x,T=b;p>T;++T,_+=L){var z=C[_+g],O=C[_+P];if(zV;++V){var G=C[_+V];C[_+V]=C[k],C[k++]=G}var Z=E[T];E[T]=E[M],E[M++]=Z}}return M}function d(v,x,b,p,C,E,A,L){for(var _=2*v,k=_*b,M=k,g=b,P=x,T=v+x,z=b;p>z;++z,k+=_){var O=C[k+P],V=C[k+T];if(!(O>=A)&&!(L>=V))if(g===z)g+=1,M+=_;else{for(var G=0;_>G;++G){var Z=C[k+G];C[k+G]=C[M],C[M++]=Z}var H=E[z];E[z]=E[g],E[g++]=H}}return g}},4192:function(i){"use strict";i.exports=o;var a=32;function o(x,b){b<=4*a?s(0,b-1,x):v(0,b-1,x)}function s(x,b,p){for(var C=2*(x+1),E=x+1;E<=b;++E){for(var A=p[C++],L=p[C++],_=E,k=C-2;_-- >x;){var M=p[k-2],g=p[k-1];if(Mp[b+1]:!0}function d(x,b,p,C){x*=2;var E=C[x];return E>1,_=L-C,k=L+C,M=E,g=_,P=L,T=k,z=A,O=x+1,V=b-1,G=0;h(M,g,p)&&(G=M,M=g,g=G),h(T,z,p)&&(G=T,T=z,z=G),h(M,P,p)&&(G=M,M=P,P=G),h(g,P,p)&&(G=g,g=P,P=G),h(M,T,p)&&(G=M,M=T,T=G),h(P,T,p)&&(G=P,P=T,T=G),h(g,z,p)&&(G=g,g=z,z=G),h(g,P,p)&&(G=g,g=P,P=G),h(T,z,p)&&(G=T,T=z,z=G);for(var Z=p[2*g],H=p[2*g+1],N=p[2*T],j=p[2*T+1],re=2*M,oe=2*P,_e=2*z,Me=2*E,ke=2*L,me=2*A,ie=0;ie<2;++ie){var Se=p[re+ie],Le=p[oe+ie],Ae=p[_e+ie];p[Me+ie]=Se,p[ke+ie]=Le,p[me+ie]=Ae}u(_,x,p),u(k,b,p);for(var De=O;De<=V;++De)if(d(De,Z,H,p))De!==O&&l(De,O,p),++O;else if(!d(De,N,j,p))for(;;)if(d(V,N,j,p)){d(V,Z,H,p)?(c(De,O,V,p),++O,--V):(l(De,V,p),--V);break}else{if(--V>>1;u(C,Le);for(var Ae=0,De=0,ke=0;ke=c)Pe=Pe-c|0,A(v,x,De--,Pe);else if(Pe>=0)A(h,d,Ae--,Pe);else if(Pe<=-c){Pe=-Pe-c|0;for(var ge=0;ge>>1;u(C,Le);for(var Ae=0,De=0,Pe=0,ke=0;ke>1===C[2*ke+3]>>1&&(Fe=2,ke+=1),ge<0){for(var ce=-(ge>>1)-1,Ze=0;Ze>1)-1;Fe===0?A(h,d,Ae--,ce):Fe===1?A(v,x,De--,ce):Fe===2&&A(b,p,Pe--,ce)}}}function M(P,T,z,O,V,G,Z,H,N,j,re,oe){var _e=0,Me=2*P,ke=T,me=T+P,ie=1,Se=1;O?Se=c:ie=c;for(var Le=V;Le>>1;u(C,ge);for(var Fe=0,Le=0;Le=c?(Ze=!O,Ae-=c):(Ze=!!O,Ae-=1),Ze)L(h,d,Fe++,Ae);else{var ct=oe[Ae],pt=Me*Ae,Wt=re[pt+T+1],st=re[pt+T+1+P];e:for(var lt=0;lt>>1;u(C,Ae);for(var De=0,me=0;me=c)h[De++]=ie-c;else{ie-=1;var ge=re[ie],Fe=_e*ie,ce=j[Fe+T+1],Ze=j[Fe+T+1+P];e:for(var ct=0;ct=0;--ct)if(h[ct]===ie){for(var lt=ct+1;lt0;){for(var E=d.pop(),b=d.pop(),A=-1,L=-1,p=x[b],k=1;k=0||(h.flip(b,E),u(f,h,d,A,b,L),u(f,h,d,b,L,A),u(f,h,d,L,E,A),u(f,h,d,E,A,L))}}},5023:function(i,a,o){"use strict";var s=o(2478);i.exports=d;function l(v,x,b,p,C,E,A){this.cells=v,this.neighbor=x,this.flags=p,this.constraint=b,this.active=C,this.next=E,this.boundary=A}var u=l.prototype;function c(v,x){return v[0]-x[0]||v[1]-x[1]||v[2]-x[2]}u.locate=function(){var v=[0,0,0];return function(x,b,p){var C=x,E=b,A=p;return b0||A.length>0;){for(;E.length>0;){var g=E.pop();if(L[g]!==-C){L[g]=C;for(var P=_[g],T=0;T<3;++T){var z=M[3*g+T];z>=0&&L[z]===0&&(k[3*g+T]?A.push(z):(E.push(z),L[z]=C))}}}var O=A;A=E,E=O,A.length=0,C=-C}var V=h(_,L,x);return b?V.concat(p.boundary):V}},8902:function(i,a,o){"use strict";var s=o(2478),l=o(3250)[3],u=0,c=1,f=2;i.exports=A;function h(L,_,k,M,g){this.a=L,this.b=_,this.idx=k,this.lowerIds=M,this.upperIds=g}function d(L,_,k,M){this.a=L,this.b=_,this.type=k,this.idx=M}function v(L,_){var k=L.a[0]-_.a[0]||L.a[1]-_.a[1]||L.type-_.type;return k||L.type!==u&&(k=l(L.a,L.b,_.b),k)?k:L.idx-_.idx}function x(L,_){return l(L.a,L.b,_)}function b(L,_,k,M,g){for(var P=s.lt(_,M,x),T=s.gt(_,M,x),z=P;z1&&l(k[V[Z-2]],k[V[Z-1]],M)>0;)L.push([V[Z-1],V[Z-2],g]),Z-=1;V.length=Z,V.push(g);for(var G=O.upperIds,Z=G.length;Z>1&&l(k[G[Z-2]],k[G[Z-1]],M)<0;)L.push([G[Z-2],G[Z-1],g]),Z-=1;G.length=Z,G.push(g)}}function p(L,_){var k;return L.a[0]<_.a[0]?k=l(L.a,L.b,_.a):k=l(_.b,_.a,L.a),k||(_.b[0]O[0]&&g.push(new d(O,z,f,P),new d(z,O,c,P))}g.sort(v);for(var V=g[0].a[0]-(1+Math.abs(g[0].a[0]))*Math.pow(2,-52),G=[new h([V,1],[V,0],-1,[],[],[],[])],Z=[],P=0,H=g.length;P=0}}(),u.removeTriangle=function(h,d,v){var x=this.stars;c(x[h],d,v),c(x[d],v,h),c(x[v],h,d)},u.addTriangle=function(h,d,v){var x=this.stars;x[h].push(d,v),x[d].push(v,h),x[v].push(h,d)},u.opposite=function(h,d){for(var v=this.stars[d],x=1,b=v.length;x=0;--N){var Se=Z[N];j=Se[0];var Le=V[j],Ae=Le[0],De=Le[1],Pe=O[Ae],ge=O[De];if((Pe[0]-ge[0]||Pe[1]-ge[1])<0){var Fe=Ae;Ae=De,De=Fe}Le[0]=Ae;var ce=Le[1]=Se[1],Ze;for(H&&(Ze=Le[2]);N>0&&Z[N-1][0]===j;){var Se=Z[--N],ct=Se[1];H?V.push([ce,ct,Ze]):V.push([ce,ct]),ce=ct}H?V.push([ce,De,Ze]):V.push([ce,De])}return re}function _(O,V,G){for(var Z=V.length,H=new s(Z),N=[],j=0;jV[2]?1:0)}function g(O,V,G){if(O.length!==0){if(V)for(var Z=0;Z0||j.length>0}function z(O,V,G){var Z;if(G){Z=V;for(var H=new Array(V.length),N=0;NL+1)throw new Error(E+" map requires nshades to be at least size "+C.length);Array.isArray(d.alpha)?d.alpha.length!==2?_=[1,1]:_=d.alpha.slice():typeof d.alpha=="number"?_=[d.alpha,d.alpha]:_=[1,1],v=C.map(function(z){return Math.round(z.index*L)}),_[0]=Math.min(Math.max(_[0],0),1),_[1]=Math.min(Math.max(_[1],0),1);var M=C.map(function(z,O){var V=C[O].index,G=C[O].rgb.slice();return G.length===4&&G[3]>=0&&G[3]<=1||(G[3]=_[0]+(_[1]-_[0])*V),G}),g=[];for(k=0;k=0}function d(v,x,b,p){var C=s(x,b,p);if(C===0){var E=l(s(v,x,b)),A=l(s(v,x,p));if(E===A){if(E===0){var L=h(v,x,b),_=h(v,x,p);return L===_?0:L?1:-1}return 0}else{if(A===0)return E>0||h(v,x,p)?-1:1;if(E===0)return A>0||h(v,x,b)?1:-1}return l(A-E)}var k=s(v,x,b);if(k>0)return C>0&&s(v,x,p)>0?1:-1;if(k<0)return C>0||s(v,x,p)>0?1:-1;var M=s(v,x,p);return M>0||h(v,x,b)?1:-1}},8572:function(i){"use strict";i.exports=function(o){return o<0?-1:o>0?1:0}},8507:function(i){i.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],d=u[0]+u[1];if(f=h+l[2]-(d+u[2]),f)return f;var v=a(l[0],l[1]),x=a(u[0],u[1]);return a(v,l[2])-a(x,u[2])||a(v+l[2],h)-a(x+u[2],d);case 4:var b=l[0],p=l[1],C=l[2],E=l[3],A=u[0],L=u[1],_=u[2],k=u[3];return b+p+C+E-(A+L+_+k)||a(b,p,C,E)-a(A,L,_,k,A)||a(b+p,b+C,b+E,p+C,p+E,C+E)-a(A+L,A+_,A+k,L+_,L+k,_+k)||a(b+p+C,b+p+E,b+C+E,p+C+E)-a(A+L+_,A+L+k,A+_+k,L+_+k);default:for(var M=l.slice().sort(o),g=u.slice().sort(o),P=0;Po[l][0]&&(l=u);return sl?[[l],[s]]:[[s]]}},4750:function(i,a,o){"use strict";i.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),d=c[f-1],v=0;v=d[A]&&(E+=1);p[C]=E}}return h}function f(h,d){try{return s(h,!0)}catch(p){var v=l(h);if(v.length<=d)return[];var x=u(h,v),b=s(x,!0);return c(b,v)}}},4769:function(i){"use strict";function a(s,l,u,c,f,h){var d=6*f*f-6*f,v=3*f*f-4*f+1,x=-6*f*f+6*f,b=3*f*f-2*f;if(s.length){h||(h=new Array(s.length));for(var p=s.length-1;p>=0;--p)h[p]=d*s[p]+v*l[p]+x*u[p]+b*c[p];return h}return d*s+v*l+x*u[p]+b*c}function o(s,l,u,c,f,h){var d=f-1,v=f*f,x=d*d,b=(1+2*f)*x,p=f*x,C=v*(3-2*f),E=v*d;if(s.length){h||(h=new Array(s.length));for(var A=s.length-1;A>=0;--A)h[A]=b*s[A]+p*l[A]+C*u[A]+E*c[A];return h}return b*s+p*l+C*u+E*c}i.exports=o,i.exports.derivative=a},7642:function(i,a,o){"use strict";var s=o(8954),l=o(1682);i.exports=h;function u(d,v){this.point=d,this.index=v}function c(d,v){for(var x=d.point,b=v.point,p=x.length,C=0;C=2)return!1;G[H]=N}return!0}):V=V.filter(function(G){for(var Z=0;Z<=b;++Z){var H=P[G[Z]];if(H<0)return!1;G[Z]=H}return!0}),b&1)for(var E=0;E>>31},i.exports.exponent=function(C){var E=i.exports.hi(C);return(E<<1>>>21)-1023},i.exports.fraction=function(C){var E=i.exports.lo(C),A=i.exports.hi(C),L=A&(1<<20)-1;return A&2146435072&&(L+=1048576),[E,L]},i.exports.denormalized=function(C){var E=i.exports.hi(C);return!(E&2146435072)}},1338:function(i){"use strict";function a(l,u,c){var f=l[c]|0;if(f<=0)return[];var h=new Array(f),d;if(c===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[]}i.exports=s},3134:function(i,a,o){"use strict";i.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=b-1)for(var k=E.length-1,g=v-x[b-1],M=0;M=b-1)for(var _=E.length-1,k=v-x[b-1],M=0;M=0;--b)if(v[--x])return!1;return!0},f.jump=function(v){var x=this.lastT(),b=this.dimension;if(!(v0;--M)p.push(u(L[M-1],_[M-1],arguments[M])),C.push(0)}},f.push=function(v){var x=this.lastT(),b=this.dimension;if(!(v1e-6?1/A:0;this._time.push(v);for(var g=b;g>0;--g){var P=u(_[g-1],k[g-1],arguments[g]);p.push(P),C.push((P-p[E++])*M)}}},f.set=function(v){var x=this.dimension;if(!(v0;--L)b.push(u(E[L-1],A[L-1],arguments[L])),p.push(0)}},f.move=function(v){var x=this.lastT(),b=this.dimension;if(!(v<=x||arguments.length!==b+1)){var p=this._state,C=this._velocity,E=p.length-this.dimension,A=this.bounds,L=A[0],_=A[1],k=v-x,M=k>1e-6?1/k:0;this._time.push(v);for(var g=b;g>0;--g){var P=arguments[g];p.push(u(L[g-1],_[g-1],p[E++]+P)),C.push(P*M)}}},f.idle=function(v){var x=this.lastT();if(!(v=0;--M)p.push(u(L[M],_[M],p[E]+k*C[E])),C.push(0),E+=1}};function h(v){for(var x=new Array(v),b=0;b=0;--O){var g=P[O];T[O]<=0?P[O]=new s(g._color,g.key,g.value,P[O+1],g.right,g._count+1):P[O]=new s(g._color,g.key,g.value,g.left,P[O+1],g._count+1)}for(var O=P.length-1;O>1;--O){var V=P[O-1],g=P[O];if(V._color===o||g._color===o)break;var G=P[O-2];if(G.left===V)if(V.left===g){var Z=G.right;if(Z&&Z._color===a)V._color=o,G.right=u(o,Z),G._color=a,O-=1;else{if(G._color=a,G.left=V.right,V._color=o,V.right=G,P[O-2]=V,P[O-1]=g,c(G),c(V),O>=3){var H=P[O-3];H.left===G?H.left=V:H.right=V}break}}else{var Z=G.right;if(Z&&Z._color===a)V._color=o,G.right=u(o,Z),G._color=a,O-=1;else{if(V.right=g.left,G._color=a,G.left=g.right,g._color=o,g.left=V,g.right=G,P[O-2]=g,P[O-1]=V,c(G),c(V),c(g),O>=3){var H=P[O-3];H.left===G?H.left=g:H.right=g}break}}else if(V.right===g){var Z=G.left;if(Z&&Z._color===a)V._color=o,G.left=u(o,Z),G._color=a,O-=1;else{if(G._color=a,G.right=V.left,V._color=o,V.left=G,P[O-2]=V,P[O-1]=g,c(G),c(V),O>=3){var H=P[O-3];H.right===G?H.right=V:H.left=V}break}}else{var Z=G.left;if(Z&&Z._color===a)V._color=o,G.left=u(o,Z),G._color=a,O-=1;else{if(V.left=g.right,G._color=a,G.right=g.left,g._color=o,g.right=V,g.left=G,P[O-2]=g,P[O-1]=V,c(G),c(V),c(g),O>=3){var H=P[O-3];H.right===G?H.right=g:H.left=g}break}}}return P[0]._color=o,new f(M,P[0])};function d(_,k){if(k.left){var M=d(_,k.left);if(M)return M}var M=_(k.key,k.value);if(M)return M;if(k.right)return d(_,k.right)}function v(_,k,M,g){var P=k(_,g.key);if(P<=0){if(g.left){var T=v(_,k,M,g.left);if(T)return T}var T=M(g.key,g.value);if(T)return T}if(g.right)return v(_,k,M,g.right)}function x(_,k,M,g,P){var T=M(_,P.key),z=M(k,P.key),O;if(T<=0&&(P.left&&(O=x(_,k,M,g,P.left),O)||z>0&&(O=g(P.key,P.value),O)))return O;if(z>0&&P.right)return x(_,k,M,g,P.right)}h.forEach=function(k,M,g){if(this.root)switch(arguments.length){case 1:return d(k,this.root);case 2:return v(M,this._compare,k,this.root);case 3:return this._compare(M,g)>=0?void 0:x(M,g,this._compare,k,this.root)}},Object.defineProperty(h,"begin",{get:function(){for(var _=[],k=this.root;k;)_.push(k),k=k.left;return new b(this,_)}}),Object.defineProperty(h,"end",{get:function(){for(var _=[],k=this.root;k;)_.push(k),k=k.right;return new b(this,_)}}),h.at=function(_){if(_<0)return new b(this,[]);for(var k=this.root,M=[];;){if(M.push(k),k.left){if(_=k.right._count)break;k=k.right}else break}return new b(this,[])},h.ge=function(_){for(var k=this._compare,M=this.root,g=[],P=0;M;){var T=k(_,M.key);g.push(M),T<=0&&(P=g.length),T<=0?M=M.left:M=M.right}return g.length=P,new b(this,g)},h.gt=function(_){for(var k=this._compare,M=this.root,g=[],P=0;M;){var T=k(_,M.key);g.push(M),T<0&&(P=g.length),T<0?M=M.left:M=M.right}return g.length=P,new b(this,g)},h.lt=function(_){for(var k=this._compare,M=this.root,g=[],P=0;M;){var T=k(_,M.key);g.push(M),T>0&&(P=g.length),T<=0?M=M.left:M=M.right}return g.length=P,new b(this,g)},h.le=function(_){for(var k=this._compare,M=this.root,g=[],P=0;M;){var T=k(_,M.key);g.push(M),T>=0&&(P=g.length),T<0?M=M.left:M=M.right}return g.length=P,new b(this,g)},h.find=function(_){for(var k=this._compare,M=this.root,g=[];M;){var P=k(_,M.key);if(g.push(M),P===0)return new b(this,g);P<=0?M=M.left:M=M.right}return new b(this,[])},h.remove=function(_){var k=this.find(_);return k?k.remove():this},h.get=function(_){for(var k=this._compare,M=this.root;M;){var g=k(_,M.key);if(g===0)return M.value;g<=0?M=M.left:M=M.right}};function b(_,k){this.tree=_,this._stack=k}var p=b.prototype;Object.defineProperty(p,"valid",{get:function(){return this._stack.length>0}}),Object.defineProperty(p,"node",{get:function(){return this._stack.length>0?this._stack[this._stack.length-1]:null},enumerable:!0}),p.clone=function(){return new b(this.tree,this._stack.slice())};function C(_,k){_.key=k.key,_.value=k.value,_.left=k.left,_.right=k.right,_._color=k._color,_._count=k._count}function E(_){for(var k,M,g,P,T=_.length-1;T>=0;--T){if(k=_[T],T===0){k._color=o;return}if(M=_[T-1],M.left===k){if(g=M.right,g.right&&g.right._color===a){if(g=M.right=l(g),P=g.right=l(g.right),M.right=g.left,g.left=M,g.right=P,g._color=M._color,k._color=o,M._color=o,P._color=o,c(M),c(g),T>1){var z=_[T-2];z.left===M?z.left=g:z.right=g}_[T-1]=g;return}else if(g.left&&g.left._color===a){if(g=M.right=l(g),P=g.left=l(g.left),M.right=P.left,g.left=P.right,P.left=M,P.right=g,P._color=M._color,M._color=o,g._color=o,k._color=o,c(M),c(g),c(P),T>1){var z=_[T-2];z.left===M?z.left=P:z.right=P}_[T-1]=P;return}if(g._color===o)if(M._color===a){M._color=o,M.right=u(a,g);return}else{M.right=u(a,g);continue}else{if(g=l(g),M.right=g.left,g.left=M,g._color=M._color,M._color=a,c(M),c(g),T>1){var z=_[T-2];z.left===M?z.left=g:z.right=g}_[T-1]=g,_[T]=M,T+1<_.length?_[T+1]=k:_.push(k),T=T+2}}else{if(g=M.left,g.left&&g.left._color===a){if(g=M.left=l(g),P=g.left=l(g.left),M.left=g.right,g.right=M,g.left=P,g._color=M._color,k._color=o,M._color=o,P._color=o,c(M),c(g),T>1){var z=_[T-2];z.right===M?z.right=g:z.left=g}_[T-1]=g;return}else if(g.right&&g.right._color===a){if(g=M.left=l(g),P=g.right=l(g.right),M.left=P.right,g.right=P.left,P.right=M,P.left=g,P._color=M._color,M._color=o,g._color=o,k._color=o,c(M),c(g),c(P),T>1){var z=_[T-2];z.right===M?z.right=P:z.left=P}_[T-1]=P;return}if(g._color===o)if(M._color===a){M._color=o,M.left=u(a,g);return}else{M.left=u(a,g);continue}else{if(g=l(g),M.left=g.right,g.right=M,g._color=M._color,M._color=a,c(M),c(g),T>1){var z=_[T-2];z.right===M?z.right=g:z.left=g}_[T-1]=g,_[T]=M,T+1<_.length?_[T+1]=k:_.push(k),T=T+2}}}}p.remove=function(){var _=this._stack;if(_.length===0)return this.tree;var k=new Array(_.length),M=_[_.length-1];k[k.length-1]=new s(M._color,M.key,M.value,M.left,M.right,M._count);for(var g=_.length-2;g>=0;--g){var M=_[g];M.left===_[g+1]?k[g]=new s(M._color,M.key,M.value,k[g+1],M.right,M._count):k[g]=new s(M._color,M.key,M.value,M.left,k[g+1],M._count)}if(M=k[k.length-1],M.left&&M.right){var P=k.length;for(M=M.left;M.right;)k.push(M),M=M.right;var T=k[P-1];k.push(new s(M._color,T.key,T.value,M.left,M.right,M._count)),k[P-1].key=M.key,k[P-1].value=M.value;for(var g=k.length-2;g>=P;--g)M=k[g],k[g]=new s(M._color,M.key,M.value,M.left,k[g+1],M._count);k[P-1].left=k[P]}if(M=k[k.length-1],M._color===a){var z=k[k.length-2];z.left===M?z.left=null:z.right===M&&(z.right=null),k.pop();for(var g=0;g0)return this._stack[this._stack.length-1].key},enumerable:!0}),Object.defineProperty(p,"value",{get:function(){if(this._stack.length>0)return this._stack[this._stack.length-1].value},enumerable:!0}),Object.defineProperty(p,"index",{get:function(){var _=0,k=this._stack;if(k.length===0){var M=this.tree.root;return M?M._count:0}else k[k.length-1].left&&(_=k[k.length-1].left._count);for(var g=k.length-2;g>=0;--g)k[g+1]===k[g].right&&(++_,k[g].left&&(_+=k[g].left._count));return _},enumerable:!0}),p.next=function(){var _=this._stack;if(_.length!==0){var k=_[_.length-1];if(k.right)for(k=k.right;k;)_.push(k),k=k.left;else for(_.pop();_.length>0&&_[_.length-1].right===k;)k=_[_.length-1],_.pop()}},Object.defineProperty(p,"hasNext",{get:function(){var _=this._stack;if(_.length===0)return!1;if(_[_.length-1].right)return!0;for(var k=_.length-1;k>0;--k)if(_[k-1].left===_[k])return!0;return!1}}),p.update=function(_){var k=this._stack;if(k.length===0)throw new Error("Can't update empty node!");var M=new Array(k.length),g=k[k.length-1];M[M.length-1]=new s(g._color,g.key,_,g.left,g.right,g._count);for(var P=k.length-2;P>=0;--P)g=k[P],g.left===k[P+1]?M[P]=new s(g._color,g.key,g.value,M[P+1],g.right,g._count):M[P]=new s(g._color,g.key,g.value,g.left,M[P+1],g._count);return new f(this.tree._compare,M[0])},p.prev=function(){var _=this._stack;if(_.length!==0){var k=_[_.length-1];if(k.left)for(k=k.left;k;)_.push(k),k=k.right;else for(_.pop();_.length>0&&_[_.length-1].left===k;)k=_[_.length-1],_.pop()}},Object.defineProperty(p,"hasPrev",{get:function(){var _=this._stack;if(_.length===0)return!1;if(_[_.length-1].left)return!0;for(var k=_.length-1;k>0;--k)if(_[k-1].right===_[k])return!0;return!1}});function A(_,k){return _k?1:0}function L(_){return new f(_||A,null)}},3837:function(i,a,o){"use strict";i.exports=O;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]),d=ArrayBuffer,v=DataView;function x(V){return d.isView(V)&&!(V instanceof v)}function b(V){return Array.isArray(V)||x(V)}function p(V,G){return V[0]=G[0],V[1]=G[1],V[2]=G[2],V}function C(V){this.gl=V,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(V)}var E=C.prototype;E.update=function(V){V=V||{};function G(Ae,De,Pe){if(Pe in V){var ge=V[Pe],Fe=this[Pe],ce;(Ae?b(ge)&&b(ge[0]):b(ge))?this[Pe]=ce=[De(ge[0]),De(ge[1]),De(ge[2])]:this[Pe]=ce=[De(ge),De(ge),De(ge)];for(var Ze=0;Ze<3;++Ze)if(ce[Ze]!==Fe[Ze])return!0}return!1}var Z=G.bind(this,!1,Number),H=G.bind(this,!1,Boolean),N=G.bind(this,!1,String),j=G.bind(this,!0,function(Ae){if(b(Ae)){if(Ae.length===3)return[+Ae[0],+Ae[1],+Ae[2],1];if(Ae.length===4)return[+Ae[0],+Ae[1],+Ae[2],+Ae[3]]}return[0,0,0,1]}),re,oe=!1,_e=!1;if("bounds"in V)for(var Me=V.bounds,ke=0;ke<2;++ke)for(var me=0;me<3;++me)Me[ke][me]!==this.bounds[ke][me]&&(_e=!0),this.bounds[ke][me]=Me[ke][me];if("ticks"in V){re=V.ticks,oe=!0,this.autoTicks=!1;for(var ke=0;ke<3;++ke)this.tickSpacing[ke]=0}else Z("tickSpacing")&&(this.autoTicks=!0,_e=!0);if(this._firstInit&&("ticks"in V||"tickSpacing"in V||(this.autoTicks=!0),_e=!0,oe=!0,this._firstInit=!1),_e&&this.autoTicks&&(re=f.create(this.bounds,this.tickSpacing),oe=!0),oe){for(var ke=0;ke<3;++ke)re[ke].sort(function(De,Pe){return De.x-Pe.x});f.equal(re,this.ticks)?oe=!1:this.ticks=re}H("tickEnable"),N("tickFont")&&(oe=!0),N("tickFontStyle")&&(oe=!0),N("tickFontWeight")&&(oe=!0),N("tickFontVariant")&&(oe=!0),Z("tickSize"),Z("tickAngle"),Z("tickPad"),j("tickColor");var ie=N("labels");N("labelFont")&&(ie=!0),N("labelFontStyle")&&(ie=!0),N("labelFontWeight")&&(ie=!0),N("labelFontVariant")&&(ie=!0),H("labelEnable"),Z("labelSize"),Z("labelPad"),j("labelColor"),H("lineEnable"),H("lineMirror"),Z("lineWidth"),j("lineColor"),H("lineTickEnable"),H("lineTickMirror"),Z("lineTickLength"),Z("lineTickWidth"),j("lineTickColor"),H("gridEnable"),Z("gridWidth"),j("gridColor"),H("zeroEnable"),j("zeroLineColor"),Z("zeroLineWidth"),H("backgroundEnable"),j("backgroundColor");var Se=[{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]}],Le=[{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&&(ie||oe)&&this._text.update(this.bounds,this.labels,Se,this.ticks,Le):this._text=s(this.gl,this.bounds,this.labels,Se,this.ticks,Le),this._lines&&oe&&(this._lines.dispose(),this._lines=null),this._lines||(this._lines=l(this.gl,this.bounds,this.ticks))};function A(){this.primalOffset=[0,0,0],this.primalMinor=[0,0,0],this.mirrorOffset=[0,0,0],this.mirrorMinor=[0,0,0]}var L=[new A,new A,new A];function _(V,G,Z,H,N){for(var j=V.primalOffset,re=V.primalMinor,oe=V.mirrorOffset,_e=V.mirrorMinor,Me=H[G],ke=0;ke<3;++ke)if(G!==ke){var me=j,ie=oe,Se=re,Le=_e;Me&1<0?(Se[ke]=-1,Le[ke]=0):(Se[ke]=0,Le[ke]=1)}}var k=[0,0,0],M={model:h,view:h,projection:h,_ortho:!1};E.isOpaque=function(){return!0},E.isTransparent=function(){return!1},E.drawTransparent=function(V){};var g=0,P=[0,0,0],T=[0,0,0],z=[0,0,0];E.draw=function(V){V=V||M;for(var Pe=this.gl,G=V.model||h,Z=V.view||h,H=V.projection||h,N=this.bounds,j=V._ortho||!1,re=c(G,Z,H,N,j),oe=re.cubeEdges,_e=re.axis,Me=Z[12],ke=Z[13],me=Z[14],ie=Z[15],Se=j?2:1,Le=Se*this.pixelRatio*(H[3]*Me+H[7]*ke+H[11]*me+H[15]*ie)/Pe.drawingBufferHeight,Ae=0;Ae<3;++Ae)this.lastCubeProps.cubeEdges[Ae]=oe[Ae],this.lastCubeProps.axis[Ae]=_e[Ae];for(var De=L,Ae=0;Ae<3;++Ae)_(L[Ae],Ae,this.bounds,oe,_e);for(var Pe=this.gl,ge=k,Ae=0;Ae<3;++Ae)this.backgroundEnable[Ae]?ge[Ae]=_e[Ae]:ge[Ae]=0;this._background.draw(G,Z,H,N,ge,this.backgroundColor),this._lines.bind(G,Z,H,this);for(var Ae=0;Ae<3;++Ae){var Fe=[0,0,0];_e[Ae]>0?Fe[Ae]=N[1][Ae]:Fe[Ae]=N[0][Ae];for(var ce=0;ce<2;++ce){var Ze=(Ae+1+ce)%3,ct=(Ae+1+(ce^1))%3;this.gridEnable[Ze]&&this._lines.drawGrid(Ze,ct,this.bounds,Fe,this.gridColor[Ze],this.gridWidth[Ze]*this.pixelRatio)}for(var ce=0;ce<2;++ce){var Ze=(Ae+1+ce)%3,ct=(Ae+1+(ce^1))%3;this.zeroEnable[ct]&&Math.min(N[0][ct],N[1][ct])<=0&&Math.max(N[0][ct],N[1][ct])>=0&&this._lines.drawZero(Ze,ct,this.bounds,Fe,this.zeroLineColor[ct],this.zeroLineWidth[ct]*this.pixelRatio)}}for(var Ae=0;Ae<3;++Ae){this.lineEnable[Ae]&&this._lines.drawAxisLine(Ae,this.bounds,De[Ae].primalOffset,this.lineColor[Ae],this.lineWidth[Ae]*this.pixelRatio),this.lineMirror[Ae]&&this._lines.drawAxisLine(Ae,this.bounds,De[Ae].mirrorOffset,this.lineColor[Ae],this.lineWidth[Ae]*this.pixelRatio);for(var pt=p(P,De[Ae].primalMinor),Wt=p(T,De[Ae].mirrorMinor),st=this.lineTickLength,ce=0;ce<3;++ce){var lt=Le/G[5*ce];pt[ce]*=st[ce]*lt,Wt[ce]*=st[ce]*lt}this.lineTickEnable[Ae]&&this._lines.drawAxisTicks(Ae,De[Ae].primalOffset,pt,this.lineTickColor[Ae],this.lineTickWidth[Ae]*this.pixelRatio),this.lineTickMirror[Ae]&&this._lines.drawAxisTicks(Ae,De[Ae].mirrorOffset,Wt,this.lineTickColor[Ae],this.lineTickWidth[Ae]*this.pixelRatio)}this._lines.unbind(),this._text.bind(G,Z,H,this.pixelRatio);var Gt,Nt=.5,$t,sr;function wr(Ft){sr=[0,0,0],sr[Ft]=1}function ur(Ft,bt,yt){var Yt=(Ft+1)%3,lr=(Ft+2)%3,Tr=bt[Yt],Rr=bt[lr],ei=yt[Yt],Wr=yt[lr];if(Tr>0&&Wr>0){wr(Yt);return}else if(Tr>0&&Wr<0){wr(Yt);return}else if(Tr<0&&Wr>0){wr(Yt);return}else if(Tr<0&&Wr<0){wr(Yt);return}else if(Rr>0&&ei>0){wr(lr);return}else if(Rr>0&&ei<0){wr(lr);return}else if(Rr<0&&ei>0){wr(lr);return}else if(Rr<0&&ei<0){wr(lr);return}}for(var Ae=0;Ae<3;++Ae){for(var Qe=De[Ae].primalMinor,Et=De[Ae].mirrorMinor,er=p(z,De[Ae].primalOffset),ce=0;ce<3;++ce)this.lineTickEnable[Ae]&&(er[ce]+=Le*Qe[ce]*Math.max(this.lineTickLength[ce],0)/G[5*ce]);var Ut=[0,0,0];if(Ut[Ae]=1,this.tickEnable[Ae]){this.tickAngle[Ae]===-3600?(this.tickAngle[Ae]=0,this.tickAlign[Ae]="auto"):this.tickAlign[Ae]=-1,$t=1,Gt=[this.tickAlign[Ae],Nt,$t],Gt[0]==="auto"?Gt[0]=g:Gt[0]=parseInt(""+Gt[0]),sr=[0,0,0],ur(Ae,Qe,Et);for(var ce=0;ce<3;++ce)er[ce]+=Le*Qe[ce]*this.tickPad[ce]/G[5*ce];this._text.drawTicks(Ae,this.tickSize[Ae],this.tickAngle[Ae],er,this.tickColor[Ae],Ut,sr,Gt)}if(this.labelEnable[Ae]){$t=0,sr=[0,0,0],this.labels[Ae].length>4&&(wr(Ae),$t=1),Gt=[this.labelAlign[Ae],Nt,$t],Gt[0]==="auto"?Gt[0]=g:Gt[0]=parseInt(""+Gt[0]);for(var ce=0;ce<3;++ce)er[ce]+=Le*Qe[ce]*this.labelPad[ce]/G[5*ce];er[Ae]+=.5*(N[0][Ae]+N[1][Ae]),this._text.drawLabel(Ae,this.labelSize[Ae],this.labelAngle[Ae],er,this.labelColor[Ae],[0,0,0],sr,Gt)}}this._text.unbind()},E.dispose=function(){this._text.dispose(),this._lines.dispose(),this._background.dispose(),this._lines=null,this._text=null,this._background=null,this.gl=null};function O(V,G){var Z=new C(V);return Z.update(G),Z}},5304:function(i,a,o){"use strict";i.exports=h;var s=o(2762),l=o(8116),u=o(1879).bg;function c(d,v,x,b){this.gl=d,this.buffer=v,this.vao=x,this.shader=b}var f=c.prototype;f.draw=function(d,v,x,b,p,C){for(var E=!1,A=0;A<3;++A)E=E||p[A];if(E){var L=this.gl;L.enable(L.POLYGON_OFFSET_FILL),L.polygonOffset(1,2),this.shader.bind(),this.shader.uniforms={model:d,view:v,projection:x,bounds:b,enable:p,colors:C},this.vao.bind(),this.vao.draw(this.gl.TRIANGLES,36),this.vao.unbind(),L.disable(L.POLYGON_OFFSET_FILL)}},f.dispose=function(){this.vao.dispose(),this.buffer.dispose(),this.shader.dispose()};function h(d){for(var v=[],x=[],b=0,p=0;p<3;++p)for(var C=(p+1)%3,E=(p+2)%3,A=[0,0,0],L=[0,0,0],_=-1;_<=1;_+=2){x.push(b,b+2,b+1,b+1,b+2,b+3),A[p]=_,L[p]=_;for(var k=-1;k<=1;k+=2){A[C]=k;for(var M=-1;M<=1;M+=2)A[E]=M,v.push(A[0],A[1],A[2],L[0],L[1],L[2]),b+=1}var g=C;C=E,E=g}var P=s(d,new Float32Array(v)),T=s(d,new Uint16Array(x),d.ELEMENT_ARRAY_BUFFER),z=l(d,[{buffer:P,type:d.FLOAT,size:3,offset:0,stride:24},{buffer:P,type:d.FLOAT,size:3,offset:12,stride:24}],T),O=u(d);return O.attributes.position.location=0,O.attributes.normal.location=1,new c(d,P,z,O)}},6429:function(i,a,o){"use strict";i.exports=_;var s=o(8828),l=o(6760),u=o(5202),c=o(3250),f=new Array(16),h=new Array(8),d=new Array(8),v=new Array(3),x=[0,0,0];(function(){for(var k=0;k<8;++k)h[k]=[1,1,1,1],d[k]=[1,1,1]})();function b(k,M,g){for(var P=0;P<4;++P){k[P]=g[12+P];for(var T=0;T<3;++T)k[P]+=M[T]*g[4*T+P]}}var p=[[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 C(k){for(var M=0;M_e&&(Z|=1<_e){Z|=1<d[O][1])&&(De=O);for(var Pe=-1,O=0;O<3;++O){var ge=De^1<d[Fe][0]&&(Fe=ge)}}var ce=E;ce[0]=ce[1]=ce[2]=0,ce[s.log2(Pe^De)]=De&Pe,ce[s.log2(De^Fe)]=De&Fe;var Ze=Fe^7;Ze===Z||Ze===Ae?(Ze=Pe^7,ce[s.log2(Fe^Ze)]=Ze&Fe):ce[s.log2(Pe^Ze)]=Ze&Pe;for(var ct=A,pt=Z,j=0;j<3;++j)pt&1< HALF_PI) && (b <= ONE_AND_HALF_PI)) ? + b - PI : + b; +} + +float look_horizontal_or_vertical(float a, float ratio) { + // ratio controls the ratio between being horizontal to (vertical + horizontal) + // if ratio is set to 0.5 then it is 50%, 50%. + // when using a higher ratio e.g. 0.75 the result would + // likely be more horizontal than vertical. + + float b = positive_angle(a); + + return + (b < ( ratio) * HALF_PI) ? 0.0 : + (b < (2.0 - ratio) * HALF_PI) ? -HALF_PI : + (b < (2.0 + ratio) * HALF_PI) ? 0.0 : + (b < (4.0 - ratio) * HALF_PI) ? HALF_PI : + 0.0; +} + +float roundTo(float a, float b) { + return float(b * floor((a + 0.5 * b) / b)); +} + +float look_round_n_directions(float a, int n) { + float b = positive_angle(a); + float div = TWO_PI / float(n); + float c = roundTo(b, div); + return look_upwards(c); +} + +float applyAlignOption(float rawAngle, float delta) { + return + (option > 2) ? look_round_n_directions(rawAngle + delta, option) : // option 3-n: round to n directions + (option == 2) ? look_horizontal_or_vertical(rawAngle + delta, hv_ratio) : // horizontal or vertical + (option == 1) ? rawAngle + delta : // use free angle, and flip to align with one direction of the axis + (option == 0) ? look_upwards(rawAngle) : // use free angle, and stay upwards + (option ==-1) ? 0.0 : // useful for backward compatibility, all texts remains horizontal + rawAngle; // otherwise return back raw input angle +} + +bool isAxisTitle = (axis.x == 0.0) && + (axis.y == 0.0) && + (axis.z == 0.0); + +void main() { + //Compute world offset + float axisDistance = position.z; + vec3 dataPosition = axisDistance * axis + offset; + + float beta = angle; // i.e. user defined attributes for each tick + + float axisAngle; + float clipAngle; + float flip; + + if (enableAlign) { + axisAngle = (isAxisTitle) ? HALF_PI : + computeViewAngle(dataPosition, dataPosition + axis); + clipAngle = computeViewAngle(dataPosition, dataPosition + alignDir); + + axisAngle += (sin(axisAngle) < 0.0) ? PI : 0.0; + clipAngle += (sin(clipAngle) < 0.0) ? PI : 0.0; + + flip = (dot(vec2(cos(axisAngle), sin(axisAngle)), + vec2(sin(clipAngle),-cos(clipAngle))) > 0.0) ? 1.0 : 0.0; + + beta += applyAlignOption(clipAngle, flip * PI); + } + + //Compute plane offset + vec2 planeCoord = position.xy * pixelScale; + + mat2 planeXform = scale * mat2( + cos(beta), sin(beta), + -sin(beta), cos(beta) + ); + + vec2 viewOffset = 2.0 * planeXform * planeCoord / resolution; + + //Compute clip position + vec3 clipPosition = project(dataPosition); + + //Apply text offset in clip coordinates + clipPosition += vec3(viewOffset, 0.0); + + //Done + gl_Position = vec4(clipPosition, 1.0); +} +`]),h=s([`precision highp float; +#define GLSLIFY 1 + +uniform vec4 color; +void main() { + gl_FragColor = color; +}`]);a.Q=function(x){return l(x,f,h,null,[{name:"position",type:"vec3"}])};var d=s([`precision highp float; +#define GLSLIFY 1 + +attribute vec3 position; +attribute vec3 normal; + +uniform mat4 model, view, projection; +uniform vec3 enable; +uniform vec3 bounds[2]; + +varying vec3 colorChannel; + +void main() { + + vec3 signAxis = sign(bounds[1] - bounds[0]); + + vec3 realNormal = signAxis * normal; + + if(dot(realNormal, enable) > 0.0) { + vec3 minRange = min(bounds[0], bounds[1]); + vec3 maxRange = max(bounds[0], bounds[1]); + vec3 nPosition = mix(minRange, maxRange, 0.5 * (position + 1.0)); + gl_Position = projection * (view * (model * vec4(nPosition, 1.0))); + } else { + gl_Position = vec4(0,0,0,0); + } + + colorChannel = abs(realNormal); +} +`]),v=s([`precision highp float; +#define GLSLIFY 1 + +uniform vec4 colors[3]; + +varying vec3 colorChannel; + +void main() { + gl_FragColor = colorChannel.x * colors[0] + + colorChannel.y * colors[1] + + colorChannel.z * colors[2]; +}`]);a.bg=function(x){return l(x,d,v,null,[{name:"position",type:"vec3"},{name:"normal",type:"vec3"}])}},4935:function(i,a,o){"use strict";i.exports=C;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 d=3;function v(E,A,L,_){this.gl=E,this.shader=A,this.buffer=L,this.vao=_,this.tickOffset=this.tickCount=this.labelOffset=this.labelCount=null}var x=v.prototype,b=[0,0];x.bind=function(E,A,L,_){this.vao.bind(),this.shader.bind();var k=this.shader.uniforms;k.model=E,k.view=A,k.projection=L,k.pixelScale=_,b[0]=this.gl.drawingBufferWidth,b[1]=this.gl.drawingBufferHeight,this.shader.uniforms.resolution=b},x.unbind=function(){this.vao.unbind()},x.update=function(E,A,L,_,k){var M=[];function g(j,re,oe,_e,Me,ke){var me=[oe.style,oe.weight,oe.variant,oe.family].join("_"),ie=h[me];ie||(ie=h[me]={});var Se=ie[re];Se||(Se=ie[re]=p(re,{triangles:!0,font:oe.family,fontStyle:oe.style,fontWeight:oe.weight,fontVariant:oe.variant,textAlign:"center",textBaseline:"middle",lineSpacing:Me,styletags:ke}));for(var Le=(_e||12)/12,Ae=Se.positions,De=Se.cells,Pe=0,ge=De.length;Pe=0;--ce){var Ze=Ae[Fe[ce]];M.push(Le*Ze[0],-Le*Ze[1],j)}}for(var P=[0,0,0],T=[0,0,0],z=[0,0,0],O=[0,0,0],V=1.25,G={breaklines:!0,bolds:!0,italics:!0,subscripts:!0,superscripts:!0},Z=0;Z<3;++Z){z[Z]=M.length/d|0,g(.5*(E[0][Z]+E[1][Z]),A[Z],L[Z],12,V,G),O[Z]=(M.length/d|0)-z[Z],P[Z]=M.length/d|0;for(var H=0;H<_[Z].length;++H)if(_[Z][H].text){var N={family:_[Z][H].font||k[Z].family,style:k[Z].fontStyle||k[Z].style,weight:k[Z].fontWeight||k[Z].weight,variant:k[Z].fontVariant||k[Z].variant};g(_[Z][H].x,_[Z][H].text,N,_[Z][H].fontSize||12,V,G)}T[Z]=(M.length/d|0)-P[Z]}this.buffer.update(M),this.tickOffset=P,this.tickCount=T,this.labelOffset=z,this.labelCount=O},x.drawTicks=function(E,A,L,_,k,M,g,P){this.tickCount[E]&&(this.shader.uniforms.axis=M,this.shader.uniforms.color=k,this.shader.uniforms.angle=L,this.shader.uniforms.scale=A,this.shader.uniforms.offset=_,this.shader.uniforms.alignDir=g,this.shader.uniforms.alignOpt=P,this.vao.draw(this.gl.TRIANGLES,this.tickCount[E],this.tickOffset[E]))},x.drawLabel=function(E,A,L,_,k,M,g,P){this.labelCount[E]&&(this.shader.uniforms.axis=M,this.shader.uniforms.color=k,this.shader.uniforms.angle=L,this.shader.uniforms.scale=A,this.shader.uniforms.offset=_,this.shader.uniforms.alignDir=g,this.shader.uniforms.alignOpt=P,this.vao.draw(this.gl.TRIANGLES,this.labelCount[E],this.labelOffset[E]))},x.dispose=function(){this.shader.dispose(),this.vao.dispose(),this.buffer.dispose()};function p(E,A){try{return u(E,A)}catch(L){return console.warn('error vectorizing text:"'+E+'" error:',L),{cells:[],positions:[]}}}function C(E,A,L,_,k,M){var g=s(E),P=l(E,[{buffer:g,size:3}]),T=c(E);T.attributes.position.location=0;var z=new v(E,T,g,P);return z.update(A,L,_,k,M),z}},6444:function(i,a){"use strict";a.create=s,a.equal=l;function o(u,c){var f=u+"",h=f.indexOf("."),d=0;h>=0&&(d=f.length-h-1);var v=Math.pow(10,d),x=Math.round(u*c*v),b=x+"";if(b.indexOf("e")>=0)return b;var p=x/v,C=x%v;x<0?(p=-Math.ceil(p)|0,C=-C|0):(p=Math.floor(p)|0,C=C|0);var E=""+p;if(x<0&&(E="-"+E),d){for(var A=""+C;A.length=u[0][h];--x)d.push({x:x*c[h],text:o(c[h],x)});f.push(d)}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;hE)throw new Error("gl-buffer: If resizing buffer, must not specify offset");return p.bufferSubData(C,_,L),E}function v(p,C){for(var E=s.malloc(p.length,C),A=p.length,L=0;L=0;--A){if(C[A]!==E)return!1;E*=p[A]}return!0}h.update=function(p,C){if(typeof C!="number"&&(C=-1),this.bind(),typeof p=="object"&&typeof p.shape!="undefined"){var E=p.dtype;if(c.indexOf(E)<0&&(E="float32"),this.type===this.gl.ELEMENT_ARRAY_BUFFER){var A=gl.getExtension("OES_element_index_uint");A&&E!=="uint16"?E="uint32":E="uint16"}if(E===p.dtype&&x(p.shape,p.stride))p.offset===0&&p.data.length===p.shape[0]?this.length=d(this.gl,this.type,this.length,this.usage,p.data,C):this.length=d(this.gl,this.type,this.length,this.usage,p.data.subarray(p.offset,p.shape[0]),C);else{var L=s.malloc(p.size,E),_=u(L,p.shape);l.assign(_,p),C<0?this.length=d(this.gl,this.type,this.length,this.usage,L,C):this.length=d(this.gl,this.type,this.length,this.usage,L.subarray(0,p.size),C),s.free(L)}}else if(Array.isArray(p)){var k;this.type===this.gl.ELEMENT_ARRAY_BUFFER?k=v(p,"uint16"):k=v(p,"float32"),C<0?this.length=d(this.gl,this.type,this.length,this.usage,k,C):this.length=d(this.gl,this.type,this.length,this.usage,k.subarray(0,p.length),C),s.free(k)}else if(typeof p=="object"&&typeof p.length=="number")this.length=d(this.gl,this.type,this.length,this.usage,p,C);else if(typeof p=="number"||p===void 0){if(C>=0)throw new Error("gl-buffer: Cannot specify offset when resizing buffer");p=p|0,p<=0&&(p=1),this.gl.bufferData(this.type,p|0,this.usage),this.length=p}else throw new Error("gl-buffer: Invalid data type")};function b(p,C,E,A){if(E=E||p.ARRAY_BUFFER,A=A||p.DYNAMIC_DRAW,E!==p.ARRAY_BUFFER&&E!==p.ELEMENT_ARRAY_BUFFER)throw new Error("gl-buffer: Invalid type for webgl buffer, must be either gl.ARRAY_BUFFER or gl.ELEMENT_ARRAY_BUFFER");if(A!==p.DYNAMIC_DRAW&&A!==p.STATIC_DRAW&&A!==p.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 L=p.createBuffer(),_=new f(p,E,L,0,A);return _.update(C),_}i.exports=b},6405:function(i,a,o){"use strict";var s=o(2931);i.exports=function(u,c){var f=u.positions,h=u.vectors,d={positions:[],vertexIntensity:[],vertexIntensityBounds:u.vertexIntensityBounds,vectors:[],cells:[],coneOffset:u.coneOffset,colormap:u.colormap};if(u.positions.length===0)return c&&(c[0]=[0,0,0],c[1]=[0,0,0]),d;for(var v=0,x=1/0,b=-1/0,p=1/0,C=-1/0,E=1/0,A=-1/0,L=null,_=null,k=[],M=1/0,g=!1,P=u.coneSizemode==="raw",T=0;Tv&&(v=s.length(O)),T&&!P){var V=2*s.distance(L,z)/(s.length(_)+s.length(O));V?(M=Math.min(M,V),g=!1):g=!0}g||(L=z,_=O),k.push(O)}var G=[x,p,E],Z=[b,C,A];c&&(c[0]=G,c[1]=Z),v===0&&(v=1);var H=1/v;isFinite(M)||(M=1),d.vectorScale=M;var N=u.coneSize||(P?1:.5);u.absoluteConeSize&&(N=u.absoluteConeSize*H),d.coneScale=N;for(var T=0,j=0;T=1},p.isTransparent=function(){return this.opacity<1},p.pickSlots=1,p.setPickBase=function(k){this.pickId=k};function C(k){for(var M=v({colormap:k,nshades:256,format:"rgba"}),g=new Uint8Array(256*4),P=0;P<256;++P){for(var T=M[P],z=0;z<3;++z)g[4*P+z]=T[z];g[4*P+3]=T[3]*255}return d(g,[256,256,4],[4,0,1])}function E(k){for(var M=k.length,g=new Array(M),P=0;P0){var j=this.triShader;j.bind(),j.uniforms=V,this.triangleVAO.bind(),M.drawArrays(M.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind()}},p.drawPick=function(k){k=k||{};for(var M=this.gl,g=k.model||x,P=k.view||x,T=k.projection||x,z=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],O=0;O<3;++O)z[0][O]=Math.max(z[0][O],this.clipBounds[0][O]),z[1][O]=Math.min(z[1][O],this.clipBounds[1][O]);this._model=[].slice.call(g),this._view=[].slice.call(P),this._projection=[].slice.call(T),this._resolution=[M.drawingBufferWidth,M.drawingBufferHeight];var V={model:g,view:P,projection:T,clipBounds:z,tubeScale:this.tubeScale,vectorScale:this.vectorScale,coneScale:this.coneScale,coneOffset:this.coneOffset,pickId:this.pickId/255},G=this.pickShader;G.bind(),G.uniforms=V,this.triangleCount>0&&(this.triangleVAO.bind(),M.drawArrays(M.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind())},p.pick=function(k){if(!k||k.id!==this.pickId)return null;var M=k.value[0]+256*k.value[1]+65536*k.value[2],g=this.cells[M],P=this.positions[g[1]].slice(0,3),T={position:P,dataCoordinate:P,index:Math.floor(g[1]/48)};return this.traceType==="cone"?T.index=Math.floor(g[1]/48):this.traceType==="streamtube"&&(T.intensity=this.intensity[g[1]],T.velocity=this.vectors[g[1]].slice(0,3),T.divergence=this.vectors[g[1]][3],T.index=M),T},p.dispose=function(){this.texture.dispose(),this.triShader.dispose(),this.pickShader.dispose(),this.triangleVAO.dispose(),this.trianglePositions.dispose(),this.triangleVectors.dispose(),this.triangleColors.dispose(),this.triangleUVs.dispose(),this.triangleIds.dispose()};function A(k,M){var g=s(k,M.meshShader.vertex,M.meshShader.fragment,null,M.meshShader.attributes);return g.attributes.position.location=0,g.attributes.color.location=2,g.attributes.uv.location=3,g.attributes.vector.location=4,g}function L(k,M){var g=s(k,M.pickShader.vertex,M.pickShader.fragment,null,M.pickShader.attributes);return g.attributes.position.location=0,g.attributes.id.location=1,g.attributes.vector.location=4,g}function _(k,M,g){var P=g.shaders;arguments.length===1&&(M=k,k=M.gl);var T=A(k,P),z=L(k,P),O=c(k,d(new Uint8Array([255,255,255,255]),[1,1,4]));O.generateMipmap(),O.minFilter=k.LINEAR_MIPMAP_LINEAR,O.magFilter=k.LINEAR;var V=l(k),G=l(k),Z=l(k),H=l(k),N=l(k),j=u(k,[{buffer:V,type:k.FLOAT,size:4},{buffer:N,type:k.UNSIGNED_BYTE,size:4,normalized:!0},{buffer:Z,type:k.FLOAT,size:4},{buffer:H,type:k.FLOAT,size:2},{buffer:G,type:k.FLOAT,size:4}]),re=new b(k,O,T,z,V,G,N,Z,H,j,g.traceType||"cone");return re.update(M),re}i.exports=_},614:function(i,a,o){var s=o(3236),l=s([`precision highp float; + +precision highp float; +#define GLSLIFY 1 + +vec3 getOrthogonalVector(vec3 v) { + // Return up-vector for only-z vector. + // Return ax + by + cz = 0, a point that lies on the plane that has v as a normal and that isn't (0,0,0). + // From the above if-statement we have ||a|| > 0 U ||b|| > 0. + // Assign z = 0, x = -b, y = a: + // a*-b + b*a + c*0 = -ba + ba + 0 = 0 + if (v.x*v.x > v.z*v.z || v.y*v.y > v.z*v.z) { + return normalize(vec3(-v.y, v.x, 0.0)); + } else { + return normalize(vec3(0.0, v.z, -v.y)); + } +} + +// Calculate the cone vertex and normal at the given index. +// +// The returned vertex is for a cone with its top at origin and height of 1.0, +// pointing in the direction of the vector attribute. +// +// Each cone is made up of a top vertex, a center base vertex and base perimeter vertices. +// These vertices are used to make up the triangles of the cone by the following: +// segment + 0 top vertex +// segment + 1 perimeter vertex a+1 +// segment + 2 perimeter vertex a +// segment + 3 center base vertex +// segment + 4 perimeter vertex a +// segment + 5 perimeter vertex a+1 +// Where segment is the number of the radial segment * 6 and a is the angle at that radial segment. +// To go from index to segment, floor(index / 6) +// To go from segment to angle, 2*pi * (segment/segmentCount) +// To go from index to segment index, index - (segment*6) +// +vec3 getConePosition(vec3 d, float rawIndex, float coneOffset, out vec3 normal) { + + const float segmentCount = 8.0; + + float index = rawIndex - floor(rawIndex / + (segmentCount * 6.0)) * + (segmentCount * 6.0); + + float segment = floor(0.001 + index/6.0); + float segmentIndex = index - (segment*6.0); + + normal = -normalize(d); + + if (segmentIndex > 2.99 && segmentIndex < 3.01) { + return mix(vec3(0.0), -d, coneOffset); + } + + float nextAngle = ( + (segmentIndex > 0.99 && segmentIndex < 1.01) || + (segmentIndex > 4.99 && segmentIndex < 5.01) + ) ? 1.0 : 0.0; + float angle = 2.0 * 3.14159 * ((segment + nextAngle) / segmentCount); + + vec3 v1 = mix(d, vec3(0.0), coneOffset); + vec3 v2 = v1 - d; + + vec3 u = getOrthogonalVector(d); + vec3 v = normalize(cross(u, d)); + + vec3 x = u * cos(angle) * length(d)*0.25; + vec3 y = v * sin(angle) * length(d)*0.25; + vec3 v3 = v2 + x + y; + if (segmentIndex < 3.0) { + vec3 tx = u * sin(angle); + vec3 ty = v * -cos(angle); + vec3 tangent = tx + ty; + normal = normalize(cross(v3 - v1, tangent)); + } + + if (segmentIndex == 0.0) { + return mix(d, vec3(0.0), coneOffset); + } + return v3; +} + +attribute vec3 vector; +attribute vec4 color, position; +attribute vec2 uv; + +uniform float vectorScale, coneScale, coneOffset; +uniform mat4 model, view, projection, inverseModel; +uniform vec3 eyePosition, lightPosition; + +varying vec3 f_normal, f_lightDirection, f_eyeDirection, f_data, f_position; +varying vec4 f_color; +varying vec2 f_uv; + +void main() { + // Scale the vector magnitude to stay constant with + // model & view changes. + vec3 normal; + vec3 XYZ = getConePosition(mat3(model) * ((vectorScale * coneScale) * vector), position.w, coneOffset, normal); + vec4 conePosition = model * vec4(position.xyz, 1.0) + vec4(XYZ, 0.0); + + //Lighting geometry parameters + vec4 cameraCoordinate = view * conePosition; + cameraCoordinate.xyz /= cameraCoordinate.w; + f_lightDirection = lightPosition - cameraCoordinate.xyz; + f_eyeDirection = eyePosition - cameraCoordinate.xyz; + f_normal = normalize((vec4(normal, 0.0) * inverseModel).xyz); + + // vec4 m_position = model * vec4(conePosition, 1.0); + vec4 t_position = view * conePosition; + gl_Position = projection * t_position; + + f_color = color; + f_data = conePosition.xyz; + f_position = position.xyz; + f_uv = uv; +} +`]),u=s([`#extension GL_OES_standard_derivatives : enable + +precision highp float; +#define GLSLIFY 1 + +float beckmannDistribution(float x, float roughness) { + float NdotH = max(x, 0.0001); + float cos2Alpha = NdotH * NdotH; + float tan2Alpha = (cos2Alpha - 1.0) / cos2Alpha; + float roughness2 = roughness * roughness; + float denom = 3.141592653589793 * roughness2 * cos2Alpha * cos2Alpha; + return exp(tan2Alpha / roughness2) / denom; +} + +float cookTorranceSpecular( + vec3 lightDirection, + vec3 viewDirection, + vec3 surfaceNormal, + float roughness, + float fresnel) { + + float VdotN = max(dot(viewDirection, surfaceNormal), 0.0); + float LdotN = max(dot(lightDirection, surfaceNormal), 0.0); + + //Half angle vector + vec3 H = normalize(lightDirection + viewDirection); + + //Geometric term + float NdotH = max(dot(surfaceNormal, H), 0.0); + float VdotH = max(dot(viewDirection, H), 0.000001); + float LdotH = max(dot(lightDirection, H), 0.000001); + float G1 = (2.0 * NdotH * VdotN) / VdotH; + float G2 = (2.0 * NdotH * LdotN) / LdotH; + float G = min(1.0, min(G1, G2)); + + //Distribution term + float D = beckmannDistribution(NdotH, roughness); + + //Fresnel term + float F = pow(1.0 - VdotN, fresnel); + + //Multiply terms and done + return G * F * D / max(3.14159265 * VdotN, 0.000001); +} + +bool outOfRange(float a, float b, float p) { + return ((p > max(a, b)) || + (p < min(a, b))); +} + +bool outOfRange(vec2 a, vec2 b, vec2 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y)); +} + +bool outOfRange(vec3 a, vec3 b, vec3 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y) || + outOfRange(a.z, b.z, p.z)); +} + +bool outOfRange(vec4 a, vec4 b, vec4 p) { + return outOfRange(a.xyz, b.xyz, p.xyz); +} + +uniform vec3 clipBounds[2]; +uniform float roughness, fresnel, kambient, kdiffuse, kspecular, opacity; +uniform sampler2D texture; + +varying vec3 f_normal, f_lightDirection, f_eyeDirection, f_data, f_position; +varying vec4 f_color; +varying vec2 f_uv; + +void main() { + if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard; + vec3 N = normalize(f_normal); + vec3 L = normalize(f_lightDirection); + vec3 V = normalize(f_eyeDirection); + + if(gl_FrontFacing) { + N = -N; + } + + float specular = min(1.0, max(0.0, cookTorranceSpecular(L, V, N, roughness, fresnel))); + float diffuse = min(kambient + kdiffuse * max(dot(N, L), 0.0), 1.0); + + vec4 surfaceColor = f_color * texture2D(texture, f_uv); + vec4 litColor = surfaceColor.a * vec4(diffuse * surfaceColor.rgb + kspecular * vec3(1,1,1) * specular, 1.0); + + gl_FragColor = litColor * opacity; +} +`]),c=s([`precision highp float; + +precision highp float; +#define GLSLIFY 1 + +vec3 getOrthogonalVector(vec3 v) { + // Return up-vector for only-z vector. + // Return ax + by + cz = 0, a point that lies on the plane that has v as a normal and that isn't (0,0,0). + // From the above if-statement we have ||a|| > 0 U ||b|| > 0. + // Assign z = 0, x = -b, y = a: + // a*-b + b*a + c*0 = -ba + ba + 0 = 0 + if (v.x*v.x > v.z*v.z || v.y*v.y > v.z*v.z) { + return normalize(vec3(-v.y, v.x, 0.0)); + } else { + return normalize(vec3(0.0, v.z, -v.y)); + } +} + +// Calculate the cone vertex and normal at the given index. +// +// The returned vertex is for a cone with its top at origin and height of 1.0, +// pointing in the direction of the vector attribute. +// +// Each cone is made up of a top vertex, a center base vertex and base perimeter vertices. +// These vertices are used to make up the triangles of the cone by the following: +// segment + 0 top vertex +// segment + 1 perimeter vertex a+1 +// segment + 2 perimeter vertex a +// segment + 3 center base vertex +// segment + 4 perimeter vertex a +// segment + 5 perimeter vertex a+1 +// Where segment is the number of the radial segment * 6 and a is the angle at that radial segment. +// To go from index to segment, floor(index / 6) +// To go from segment to angle, 2*pi * (segment/segmentCount) +// To go from index to segment index, index - (segment*6) +// +vec3 getConePosition(vec3 d, float rawIndex, float coneOffset, out vec3 normal) { + + const float segmentCount = 8.0; + + float index = rawIndex - floor(rawIndex / + (segmentCount * 6.0)) * + (segmentCount * 6.0); + + float segment = floor(0.001 + index/6.0); + float segmentIndex = index - (segment*6.0); + + normal = -normalize(d); + + if (segmentIndex > 2.99 && segmentIndex < 3.01) { + return mix(vec3(0.0), -d, coneOffset); + } + + float nextAngle = ( + (segmentIndex > 0.99 && segmentIndex < 1.01) || + (segmentIndex > 4.99 && segmentIndex < 5.01) + ) ? 1.0 : 0.0; + float angle = 2.0 * 3.14159 * ((segment + nextAngle) / segmentCount); + + vec3 v1 = mix(d, vec3(0.0), coneOffset); + vec3 v2 = v1 - d; + + vec3 u = getOrthogonalVector(d); + vec3 v = normalize(cross(u, d)); + + vec3 x = u * cos(angle) * length(d)*0.25; + vec3 y = v * sin(angle) * length(d)*0.25; + vec3 v3 = v2 + x + y; + if (segmentIndex < 3.0) { + vec3 tx = u * sin(angle); + vec3 ty = v * -cos(angle); + vec3 tangent = tx + ty; + normal = normalize(cross(v3 - v1, tangent)); + } + + if (segmentIndex == 0.0) { + return mix(d, vec3(0.0), coneOffset); + } + return v3; +} + +attribute vec4 vector; +attribute vec4 position; +attribute vec4 id; + +uniform mat4 model, view, projection; +uniform float vectorScale, coneScale, coneOffset; + +varying vec3 f_position; +varying vec4 f_id; + +void main() { + vec3 normal; + vec3 XYZ = getConePosition(mat3(model) * ((vectorScale * coneScale) * vector.xyz), position.w, coneOffset, normal); + vec4 conePosition = model * vec4(position.xyz, 1.0) + vec4(XYZ, 0.0); + gl_Position = projection * (view * conePosition); + f_id = id; + f_position = position.xyz; +} +`]),f=s([`precision highp float; +#define GLSLIFY 1 + +bool outOfRange(float a, float b, float p) { + return ((p > max(a, b)) || + (p < min(a, b))); +} + +bool outOfRange(vec2 a, vec2 b, vec2 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y)); +} + +bool outOfRange(vec3 a, vec3 b, vec3 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y) || + outOfRange(a.z, b.z, p.z)); +} + +bool outOfRange(vec4 a, vec4 b, vec4 p) { + return outOfRange(a.xyz, b.xyz, p.xyz); +} + +uniform vec3 clipBounds[2]; +uniform float pickId; + +varying vec3 f_position; +varying vec4 f_id; + +void main() { + if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard; + + gl_FragColor = vec4(pickId, f_id.xyz); +}`]);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:function(i){i.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:function(i,a,o){var s=o(737);i.exports=function(u){return s[u]}},9165:function(i,a,o){"use strict";i.exports=b;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(p,C,E,A){this.gl=p,this.shader=A,this.buffer=C,this.vao=E,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(p){var C=this.gl,E=this.shader.uniforms;this.shader.bind();var A=E.view=p.view||c,L=E.projection=p.projection||c;E.model=p.model||c,E.clipBounds=this.clipBounds,E.opacity=this.opacity;var _=A[12],k=A[13],M=A[14],g=A[15],P=p._ortho||!1,T=P?2:1,z=T*this.pixelRatio*(L[3]*_+L[7]*k+L[11]*M+L[15]*g)/C.drawingBufferHeight;this.vao.bind();for(var O=0;O<3;++O)C.lineWidth(this.lineWidth[O]*this.pixelRatio),E.capSize=this.capSize[O]*z,this.lineCount[O]&&C.drawArrays(C.LINES,this.lineOffset[O],this.lineCount[O]);this.vao.unbind()};function d(p,C){for(var E=0;E<3;++E)p[0][E]=Math.min(p[0][E],C[E]),p[1][E]=Math.max(p[1][E],C[E])}var v=function(){for(var p=new Array(3),C=0;C<3;++C){for(var E=[],A=1;A<=2;++A)for(var L=-1;L<=1;L+=2){var _=(A+C)%3,k=[0,0,0];k[_]=L,E.push(k)}p[C]=E}return p}();function x(p,C,E,A){for(var L=v[A],_=0;_0){var V=P.slice();V[M]+=z[1][M],L.push(P[0],P[1],P[2],O[0],O[1],O[2],O[3],0,0,0,V[0],V[1],V[2],O[0],O[1],O[2],O[3],0,0,0),d(this.bounds,V),k+=2+x(L,V,O,M)}}}this.lineCount[M]=k-this.lineOffset[M]}this.buffer.update(L)}},h.dispose=function(){this.shader.dispose(),this.buffer.dispose(),this.vao.dispose()};function b(p){var C=p.gl,E=s(C),A=l(C,[{buffer:E,type:C.FLOAT,size:3,offset:0,stride:40},{buffer:E,type:C.FLOAT,size:4,offset:12,stride:40},{buffer:E,type:C.FLOAT,size:3,offset:28,stride:40}]),L=u(C);L.attributes.position.location=0,L.attributes.color.location=1,L.attributes.offset.location=2;var _=new f(C,E,A,L);return _.update(p),_}},3436:function(i,a,o){"use strict";var s=o(3236),l=o(9405),u=s([`precision highp float; +#define GLSLIFY 1 + +attribute vec3 position, offset; +attribute vec4 color; +uniform mat4 model, view, projection; +uniform float capSize; +varying vec4 fragColor; +varying vec3 fragPosition; + +void main() { + vec4 worldPosition = model * vec4(position, 1.0); + worldPosition = (worldPosition / worldPosition.w) + vec4(capSize * offset, 0.0); + gl_Position = projection * (view * worldPosition); + fragColor = color; + fragPosition = position; +}`]),c=s([`precision highp float; +#define GLSLIFY 1 + +bool outOfRange(float a, float b, float p) { + return ((p > max(a, b)) || + (p < min(a, b))); +} + +bool outOfRange(vec2 a, vec2 b, vec2 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y)); +} + +bool outOfRange(vec3 a, vec3 b, vec3 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y) || + outOfRange(a.z, b.z, p.z)); +} + +bool outOfRange(vec4 a, vec4 b, vec4 p) { + return outOfRange(a.xyz, b.xyz, p.xyz); +} + +uniform vec3 clipBounds[2]; +uniform float opacity; +varying vec3 fragPosition; +varying vec4 fragColor; + +void main() { + if ( + outOfRange(clipBounds[0], clipBounds[1], fragPosition) || + fragColor.a * opacity == 0. + ) discard; + + gl_FragColor = opacity * fragColor; +}`]);i.exports=function(f){return l(f,u,c,null,[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"offset",type:"vec3"}])}},2260:function(i,a,o){"use strict";var s=o(7766);i.exports=k;var l=null,u,c,f,h;function d(M){var g=M.getParameter(M.FRAMEBUFFER_BINDING),P=M.getParameter(M.RENDERBUFFER_BINDING),T=M.getParameter(M.TEXTURE_BINDING_2D);return[g,P,T]}function v(M,g){M.bindFramebuffer(M.FRAMEBUFFER,g[0]),M.bindRenderbuffer(M.RENDERBUFFER,g[1]),M.bindTexture(M.TEXTURE_2D,g[2])}function x(M,g){var P=M.getParameter(g.MAX_COLOR_ATTACHMENTS_WEBGL);l=new Array(P+1);for(var T=0;T<=P;++T){for(var z=new Array(P),O=0;O1&&G.drawBuffersWEBGL(l[V]);var re=P.getExtension("WEBGL_depth_texture");re?Z?M.depth=p(P,z,O,re.UNSIGNED_INT_24_8_WEBGL,P.DEPTH_STENCIL,P.DEPTH_STENCIL_ATTACHMENT):H&&(M.depth=p(P,z,O,P.UNSIGNED_SHORT,P.DEPTH_COMPONENT,P.DEPTH_ATTACHMENT)):H&&Z?M._depth_rb=C(P,z,O,P.DEPTH_STENCIL,P.DEPTH_STENCIL_ATTACHMENT):H?M._depth_rb=C(P,z,O,P.DEPTH_COMPONENT16,P.DEPTH_ATTACHMENT):Z&&(M._depth_rb=C(P,z,O,P.STENCIL_INDEX,P.STENCIL_ATTACHMENT));var oe=P.checkFramebufferStatus(P.FRAMEBUFFER);if(oe!==P.FRAMEBUFFER_COMPLETE){M._destroyed=!0,P.bindFramebuffer(P.FRAMEBUFFER,null),P.deleteFramebuffer(M.handle),M.handle=null,M.depth&&(M.depth.dispose(),M.depth=null),M._depth_rb&&(P.deleteRenderbuffer(M._depth_rb),M._depth_rb=null);for(var j=0;jz||P<0||P>z)throw new Error("gl-fbo: Can't resize FBO, invalid dimensions");M._shape[0]=g,M._shape[1]=P;for(var O=d(T),V=0;VO||P<0||P>O)throw new Error("gl-fbo: Parameters are too large for FBO");T=T||{};var V=1;if("color"in T){if(V=Math.max(T.color|0,0),V<0)throw new Error("gl-fbo: Must specify a nonnegative number of colors");if(V>1)if(z){if(V>M.getParameter(z.MAX_COLOR_ATTACHMENTS_WEBGL))throw new Error("gl-fbo: Context does not support "+V+" draw buffers")}else throw new Error("gl-fbo: Multiple draw buffer extension not supported")}var G=M.UNSIGNED_BYTE,Z=M.getExtension("OES_texture_float");if(T.float&&V>0){if(!Z)throw new Error("gl-fbo: Context does not support floating point textures");G=M.FLOAT}else T.preferFloat&&V>0&&Z&&(G=M.FLOAT);var H=!0;"depth"in T&&(H=!!T.depth);var N=!1;return"stencil"in T&&(N=!!T.stencil),new A(M,g,P,G,V,H,N,z)}},2992:function(i,a,o){var s=o(3387).sprintf,l=o(5171),u=o(1848),c=o(1085);i.exports=f;function f(h,d,v){"use strict";var x=u(d)||"of unknown name (see npm glsl-shader-name)",b="unknown type";v!==void 0&&(b=v===l.FRAGMENT_SHADER?"fragment":"vertex");for(var p=s(`Error compiling %s shader %s: +`,b,x),C=s("%s%s",p,h),E=h.split(` +`),A={},L=0;L max(a, b)) || + (p < min(a, b))); +} + +bool outOfRange(vec2 a, vec2 b, vec2 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y)); +} + +bool outOfRange(vec3 a, vec3 b, vec3 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y) || + outOfRange(a.z, b.z, p.z)); +} + +bool outOfRange(vec4 a, vec4 b, vec4 p) { + return outOfRange(a.xyz, b.xyz, p.xyz); +} + +uniform vec3 clipBounds[2]; +uniform sampler2D dashTexture; +uniform float dashScale; +uniform float opacity; + +varying vec3 worldPosition; +varying float pixelArcLength; +varying vec4 fragColor; + +void main() { + if ( + outOfRange(clipBounds[0], clipBounds[1], worldPosition) || + fragColor.a * opacity == 0. + ) discard; + + float dashWeight = texture2D(dashTexture, vec2(dashScale * pixelArcLength, 0)).r; + if(dashWeight < 0.5) { + discard; + } + gl_FragColor = fragColor * opacity; +} +`]),f=s([`precision highp float; +#define GLSLIFY 1 + +#define FLOAT_MAX 1.70141184e38 +#define FLOAT_MIN 1.17549435e-38 + +// https://github.com/mikolalysenko/glsl-read-float/blob/master/index.glsl +vec4 packFloat(float v) { + float av = abs(v); + + //Handle special cases + if(av < FLOAT_MIN) { + return vec4(0.0, 0.0, 0.0, 0.0); + } else if(v > FLOAT_MAX) { + return vec4(127.0, 128.0, 0.0, 0.0) / 255.0; + } else if(v < -FLOAT_MAX) { + return vec4(255.0, 128.0, 0.0, 0.0) / 255.0; + } + + vec4 c = vec4(0,0,0,0); + + //Compute exponent and mantissa + float e = floor(log2(av)); + float m = av * pow(2.0, -e) - 1.0; + + //Unpack mantissa + c[1] = floor(128.0 * m); + m -= c[1] / 128.0; + c[2] = floor(32768.0 * m); + m -= c[2] / 32768.0; + c[3] = floor(8388608.0 * m); + + //Unpack exponent + float ebias = e + 127.0; + c[0] = floor(ebias / 2.0); + ebias -= c[0] * 2.0; + c[1] += floor(ebias) * 128.0; + + //Unpack sign bit + c[0] += 128.0 * step(0.0, -v); + + //Scale back to range + return c / 255.0; +} + +bool outOfRange(float a, float b, float p) { + return ((p > max(a, b)) || + (p < min(a, b))); +} + +bool outOfRange(vec2 a, vec2 b, vec2 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y)); +} + +bool outOfRange(vec3 a, vec3 b, vec3 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y) || + outOfRange(a.z, b.z, p.z)); +} + +bool outOfRange(vec4 a, vec4 b, vec4 p) { + return outOfRange(a.xyz, b.xyz, p.xyz); +} + +uniform float pickId; +uniform vec3 clipBounds[2]; + +varying vec3 worldPosition; +varying float pixelArcLength; +varying vec4 fragColor; + +void main() { + if (outOfRange(clipBounds[0], clipBounds[1], worldPosition)) discard; + + gl_FragColor = vec4(pickId/255.0, packFloat(pixelArcLength).xyz); +}`]),h=[{name:"position",type:"vec3"},{name:"nextPosition",type:"vec3"},{name:"arcLength",type:"float"},{name:"lineWidth",type:"float"},{name:"color",type:"vec4"}];a.createShader=function(d){return l(d,u,c,null,h)},a.createPickShader=function(d){return l(d,u,f,null,h)}},5714:function(i,a,o){"use strict";i.exports=M;var s=o(2762),l=o(8116),u=o(7766),c=new Uint8Array(4),f=new Float32Array(c.buffer);function h(g,P,T,z){return c[0]=z,c[1]=T,c[2]=P,c[3]=g,f[0]}var d=o(2478),v=o(9618),x=o(7319),b=x.createShader,p=x.createPickShader,C=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function E(g,P){for(var T=0,z=0;z<3;++z){var O=g[z]-P[z];T+=O*O}return Math.sqrt(T)}function A(g){for(var P=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],T=0;T<3;++T)P[0][T]=Math.max(g[0][T],P[0][T]),P[1][T]=Math.min(g[1][T],P[1][T]);return P}function L(g,P,T,z){this.arcLength=g,this.position=P,this.index=T,this.dataCoordinate=z}function _(g,P,T,z,O,V){this.gl=g,this.shader=P,this.pickShader=T,this.buffer=z,this.vao=O,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=V,this.dashScale=1,this.opacity=1,this.hasAlpha=!1,this.dirty=!0,this.pixelRatio=1}var k=_.prototype;k.isTransparent=function(){return this.hasAlpha},k.isOpaque=function(){return!this.hasAlpha},k.pickSlots=1,k.setPickBase=function(g){this.pickId=g},k.drawTransparent=k.draw=function(g){if(this.vertexCount){var P=this.gl,T=this.shader,z=this.vao;T.bind(),T.uniforms={model:g.model||C,view:g.view||C,projection:g.projection||C,clipBounds:A(this.clipBounds),dashTexture:this.texture.bind(),dashScale:this.dashScale/this.arcLength[this.arcLength.length-1],opacity:this.opacity,screenShape:[P.drawingBufferWidth,P.drawingBufferHeight],pixelRatio:this.pixelRatio},z.bind(),z.draw(P.TRIANGLE_STRIP,this.vertexCount),z.unbind()}},k.drawPick=function(g){if(this.vertexCount){var P=this.gl,T=this.pickShader,z=this.vao;T.bind(),T.uniforms={model:g.model||C,view:g.view||C,projection:g.projection||C,pickId:this.pickId,clipBounds:A(this.clipBounds),screenShape:[P.drawingBufferWidth,P.drawingBufferHeight],pixelRatio:this.pixelRatio},z.bind(),z.draw(P.TRIANGLE_STRIP,this.vertexCount),z.unbind()}},k.update=function(g){var P,T;this.dirty=!0;var z=!!g.connectGaps;"dashScale"in g&&(this.dashScale=g.dashScale),this.hasAlpha=!1,"opacity"in g&&(this.opacity=+g.opacity,this.opacity<1&&(this.hasAlpha=!0));var O=[],V=[],G=[],Z=0,H=0,N=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],j=g.position||g.positions;if(j){var re=g.color||g.colors||[0,0,0,1],oe=g.lineWidth||1,_e=!1;e:for(P=1;P0){for(var me=0;me<24;++me)O.push(O[O.length-12]);H+=2,_e=!0}continue e}N[0][T]=Math.min(N[0][T],Me[T],ke[T]),N[1][T]=Math.max(N[1][T],Me[T],ke[T])}var ie,Se;Array.isArray(re[0])?(ie=re.length>P-1?re[P-1]:re.length>0?re[re.length-1]:[0,0,0,1],Se=re.length>P?re[P]:re.length>0?re[re.length-1]:[0,0,0,1]):ie=Se=re,ie.length===3&&(ie=[ie[0],ie[1],ie[2],1]),Se.length===3&&(Se=[Se[0],Se[1],Se[2],1]),!this.hasAlpha&&ie[3]<1&&(this.hasAlpha=!0);var Le;Array.isArray(oe)?Le=oe.length>P-1?oe[P-1]:oe.length>0?oe[oe.length-1]:[0,0,0,1]:Le=oe;var Ae=Z;if(Z+=E(Me,ke),_e){for(T=0;T<2;++T)O.push(Me[0],Me[1],Me[2],ke[0],ke[1],ke[2],Ae,Le,ie[0],ie[1],ie[2],ie[3]);H+=2,_e=!1}O.push(Me[0],Me[1],Me[2],ke[0],ke[1],ke[2],Ae,Le,ie[0],ie[1],ie[2],ie[3],Me[0],Me[1],Me[2],ke[0],ke[1],ke[2],Ae,-Le,ie[0],ie[1],ie[2],ie[3],ke[0],ke[1],ke[2],Me[0],Me[1],Me[2],Z,-Le,Se[0],Se[1],Se[2],Se[3],ke[0],ke[1],ke[2],Me[0],Me[1],Me[2],Z,Le,Se[0],Se[1],Se[2],Se[3]),H+=4}}if(this.buffer.update(O),V.push(Z),G.push(j[j.length-1].slice()),this.bounds=N,this.vertexCount=H,this.points=G,this.arcLength=V,"dashes"in g){var De=g.dashes,Pe=De.slice();for(Pe.unshift(0),P=1;P1.0001)return null;T+=P[L]}return Math.abs(T-1)>.001?null:[_,h(v,P),P]}},840:function(i,a,o){var s=o(3236),l=s([`precision highp float; +#define GLSLIFY 1 + +attribute vec3 position, normal; +attribute vec4 color; +attribute vec2 uv; + +uniform mat4 model + , view + , projection + , inverseModel; +uniform vec3 eyePosition + , lightPosition; + +varying vec3 f_normal + , f_lightDirection + , f_eyeDirection + , f_data; +varying vec4 f_color; +varying vec2 f_uv; + +vec4 project(vec3 p) { + return projection * (view * (model * vec4(p, 1.0))); +} + +void main() { + gl_Position = project(position); + + //Lighting geometry parameters + vec4 cameraCoordinate = view * vec4(position , 1.0); + cameraCoordinate.xyz /= cameraCoordinate.w; + f_lightDirection = lightPosition - cameraCoordinate.xyz; + f_eyeDirection = eyePosition - cameraCoordinate.xyz; + f_normal = normalize((vec4(normal, 0.0) * inverseModel).xyz); + + f_color = color; + f_data = position; + f_uv = uv; +} +`]),u=s([`#extension GL_OES_standard_derivatives : enable + +precision highp float; +#define GLSLIFY 1 + +float beckmannDistribution(float x, float roughness) { + float NdotH = max(x, 0.0001); + float cos2Alpha = NdotH * NdotH; + float tan2Alpha = (cos2Alpha - 1.0) / cos2Alpha; + float roughness2 = roughness * roughness; + float denom = 3.141592653589793 * roughness2 * cos2Alpha * cos2Alpha; + return exp(tan2Alpha / roughness2) / denom; +} + +float cookTorranceSpecular( + vec3 lightDirection, + vec3 viewDirection, + vec3 surfaceNormal, + float roughness, + float fresnel) { + + float VdotN = max(dot(viewDirection, surfaceNormal), 0.0); + float LdotN = max(dot(lightDirection, surfaceNormal), 0.0); + + //Half angle vector + vec3 H = normalize(lightDirection + viewDirection); + + //Geometric term + float NdotH = max(dot(surfaceNormal, H), 0.0); + float VdotH = max(dot(viewDirection, H), 0.000001); + float LdotH = max(dot(lightDirection, H), 0.000001); + float G1 = (2.0 * NdotH * VdotN) / VdotH; + float G2 = (2.0 * NdotH * LdotN) / LdotH; + float G = min(1.0, min(G1, G2)); + + //Distribution term + float D = beckmannDistribution(NdotH, roughness); + + //Fresnel term + float F = pow(1.0 - VdotN, fresnel); + + //Multiply terms and done + return G * F * D / max(3.14159265 * VdotN, 0.000001); +} + +//#pragma glslify: beckmann = require(glsl-specular-beckmann) // used in gl-surface3d + +bool outOfRange(float a, float b, float p) { + return ((p > max(a, b)) || + (p < min(a, b))); +} + +bool outOfRange(vec2 a, vec2 b, vec2 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y)); +} + +bool outOfRange(vec3 a, vec3 b, vec3 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y) || + outOfRange(a.z, b.z, p.z)); +} + +bool outOfRange(vec4 a, vec4 b, vec4 p) { + return outOfRange(a.xyz, b.xyz, p.xyz); +} + +uniform vec3 clipBounds[2]; +uniform float roughness + , fresnel + , kambient + , kdiffuse + , kspecular; +uniform sampler2D texture; + +varying vec3 f_normal + , f_lightDirection + , f_eyeDirection + , f_data; +varying vec4 f_color; +varying vec2 f_uv; + +void main() { + if (f_color.a == 0.0 || + outOfRange(clipBounds[0], clipBounds[1], f_data) + ) discard; + + vec3 N = normalize(f_normal); + vec3 L = normalize(f_lightDirection); + vec3 V = normalize(f_eyeDirection); + + if(gl_FrontFacing) { + N = -N; + } + + float specular = min(1.0, max(0.0, cookTorranceSpecular(L, V, N, roughness, fresnel))); + //float specular = max(0.0, beckmann(L, V, N, roughness)); // used in gl-surface3d + + float diffuse = min(kambient + kdiffuse * max(dot(N, L), 0.0), 1.0); + + vec4 surfaceColor = vec4(f_color.rgb, 1.0) * texture2D(texture, f_uv); + vec4 litColor = surfaceColor.a * vec4(diffuse * surfaceColor.rgb + kspecular * vec3(1,1,1) * specular, 1.0); + + gl_FragColor = litColor * f_color.a; +} +`]),c=s([`precision highp float; +#define GLSLIFY 1 + +attribute vec3 position; +attribute vec4 color; +attribute vec2 uv; + +uniform mat4 model, view, projection; + +varying vec4 f_color; +varying vec3 f_data; +varying vec2 f_uv; + +void main() { + gl_Position = projection * (view * (model * vec4(position, 1.0))); + f_color = color; + f_data = position; + f_uv = uv; +}`]),f=s([`precision highp float; +#define GLSLIFY 1 + +bool outOfRange(float a, float b, float p) { + return ((p > max(a, b)) || + (p < min(a, b))); +} + +bool outOfRange(vec2 a, vec2 b, vec2 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y)); +} + +bool outOfRange(vec3 a, vec3 b, vec3 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y) || + outOfRange(a.z, b.z, p.z)); +} + +bool outOfRange(vec4 a, vec4 b, vec4 p) { + return outOfRange(a.xyz, b.xyz, p.xyz); +} + +uniform vec3 clipBounds[2]; +uniform sampler2D texture; +uniform float opacity; + +varying vec4 f_color; +varying vec3 f_data; +varying vec2 f_uv; + +void main() { + if (outOfRange(clipBounds[0], clipBounds[1], f_data)) discard; + + gl_FragColor = f_color * texture2D(texture, f_uv) * opacity; +}`]),h=s([`precision highp float; +#define GLSLIFY 1 + +bool outOfRange(float a, float b, float p) { + return ((p > max(a, b)) || + (p < min(a, b))); +} + +bool outOfRange(vec2 a, vec2 b, vec2 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y)); +} + +bool outOfRange(vec3 a, vec3 b, vec3 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y) || + outOfRange(a.z, b.z, p.z)); +} + +bool outOfRange(vec4 a, vec4 b, vec4 p) { + return outOfRange(a.xyz, b.xyz, p.xyz); +} + +attribute vec3 position; +attribute vec4 color; +attribute vec2 uv; +attribute float pointSize; + +uniform mat4 model, view, projection; +uniform vec3 clipBounds[2]; + +varying vec4 f_color; +varying vec2 f_uv; + +void main() { + if (outOfRange(clipBounds[0], clipBounds[1], position)) { + + gl_Position = vec4(0.0, 0.0 ,0.0 ,0.0); + } else { + gl_Position = projection * (view * (model * vec4(position, 1.0))); + } + gl_PointSize = pointSize; + f_color = color; + f_uv = uv; +}`]),d=s([`precision highp float; +#define GLSLIFY 1 + +uniform sampler2D texture; +uniform float opacity; + +varying vec4 f_color; +varying vec2 f_uv; + +void main() { + vec2 pointR = gl_PointCoord.xy - vec2(0.5, 0.5); + if(dot(pointR, pointR) > 0.25) { + discard; + } + gl_FragColor = f_color * texture2D(texture, f_uv) * opacity; +}`]),v=s([`precision highp float; +#define GLSLIFY 1 + +attribute vec3 position; +attribute vec4 id; + +uniform mat4 model, view, projection; + +varying vec3 f_position; +varying vec4 f_id; + +void main() { + gl_Position = projection * (view * (model * vec4(position, 1.0))); + f_id = id; + f_position = position; +}`]),x=s([`precision highp float; +#define GLSLIFY 1 + +bool outOfRange(float a, float b, float p) { + return ((p > max(a, b)) || + (p < min(a, b))); +} + +bool outOfRange(vec2 a, vec2 b, vec2 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y)); +} + +bool outOfRange(vec3 a, vec3 b, vec3 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y) || + outOfRange(a.z, b.z, p.z)); +} + +bool outOfRange(vec4 a, vec4 b, vec4 p) { + return outOfRange(a.xyz, b.xyz, p.xyz); +} + +uniform vec3 clipBounds[2]; +uniform float pickId; + +varying vec3 f_position; +varying vec4 f_id; + +void main() { + if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard; + + gl_FragColor = vec4(pickId, f_id.xyz); +}`]),b=s([`precision highp float; +#define GLSLIFY 1 + +bool outOfRange(float a, float b, float p) { + return ((p > max(a, b)) || + (p < min(a, b))); +} + +bool outOfRange(vec2 a, vec2 b, vec2 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y)); +} + +bool outOfRange(vec3 a, vec3 b, vec3 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y) || + outOfRange(a.z, b.z, p.z)); +} + +bool outOfRange(vec4 a, vec4 b, vec4 p) { + return outOfRange(a.xyz, b.xyz, p.xyz); +} + +attribute vec3 position; +attribute float pointSize; +attribute vec4 id; + +uniform mat4 model, view, projection; +uniform vec3 clipBounds[2]; + +varying vec3 f_position; +varying vec4 f_id; + +void main() { + if (outOfRange(clipBounds[0], clipBounds[1], position)) { + + gl_Position = vec4(0.0, 0.0, 0.0, 0.0); + } else { + gl_Position = projection * (view * (model * vec4(position, 1.0))); + gl_PointSize = pointSize; + } + f_id = id; + f_position = position; +}`]),p=s([`precision highp float; +#define GLSLIFY 1 + +attribute vec3 position; + +uniform mat4 model, view, projection; + +void main() { + gl_Position = projection * (view * (model * vec4(position, 1.0))); +}`]),C=s([`precision highp float; +#define GLSLIFY 1 + +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:d,attributes:[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"},{name:"pointSize",type:"float"}]},a.pickShader={vertex:v,fragment:x,attributes:[{name:"position",type:"vec3"},{name:"id",type:"vec4"}]},a.pointPickShader={vertex:b,fragment:x,attributes:[{name:"position",type:"vec3"},{name:"pointSize",type:"float"},{name:"id",type:"vec4"}]},a.contourShader={vertex:p,fragment:C,attributes:[{name:"position",type:"vec3"}]}},7201:function(i,a,o){"use strict";var s=1e-6,l=1e-6,u=o(9405),c=o(2762),f=o(8116),h=o(7766),d=o(8406),v=o(6760),x=o(7608),b=o(9618),p=o(6729),C=o(7765),E=o(1888),A=o(840),L=o(7626),_=A.meshShader,k=A.wireShader,M=A.pointShader,g=A.pickShader,P=A.pointPickShader,T=A.contourShader,z=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function O(me,ie,Se,Le,Ae,De,Pe,ge,Fe,ce,Ze,ct,pt,Wt,st,lt,Gt,Nt,$t,sr,wr,ur,Qe,Et,er,Ut,Ft){this.gl=me,this.pixelRatio=1,this.cells=[],this.positions=[],this.intensity=[],this.texture=ie,this.dirty=!0,this.triShader=Se,this.lineShader=Le,this.pointShader=Ae,this.pickShader=De,this.pointPickShader=Pe,this.contourShader=ge,this.trianglePositions=Fe,this.triangleColors=Ze,this.triangleNormals=pt,this.triangleUVs=ct,this.triangleIds=ce,this.triangleVAO=Wt,this.triangleCount=0,this.lineWidth=1,this.edgePositions=st,this.edgeColors=Gt,this.edgeUVs=Nt,this.edgeIds=lt,this.edgeVAO=$t,this.edgeCount=0,this.pointPositions=sr,this.pointColors=ur,this.pointUVs=Qe,this.pointSizes=Et,this.pointIds=wr,this.pointVAO=er,this.pointCount=0,this.contourLineWidth=1,this.contourPositions=Ut,this.contourVAO=Ft,this.contourCount=0,this.contourColor=[0,0,0],this.contourEnable=!0,this.pickVertex=!0,this.pickId=1,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.lightPosition=[1e5,1e5,0],this.ambientLight=.8,this.diffuseLight=.8,this.specularLight=2,this.roughness=.5,this.fresnel=1.5,this.opacity=1,this.hasAlpha=!1,this.opacityscale=!1,this._model=z,this._view=z,this._projection=z,this._resolution=[1,1]}var V=O.prototype;V.isOpaque=function(){return!this.hasAlpha},V.isTransparent=function(){return this.hasAlpha},V.pickSlots=1,V.setPickBase=function(me){this.pickId=me};function G(me,ie){if(!ie||!ie.length)return 1;for(var Se=0;Seme&&Se>0){var Le=(ie[Se][0]-me)/(ie[Se][0]-ie[Se-1][0]);return ie[Se][1]*(1-Le)+Le*ie[Se-1][1]}}return 1}function Z(me,ie){for(var Se=p({colormap:me,nshades:256,format:"rgba"}),Le=new Uint8Array(256*4),Ae=0;Ae<256;++Ae){for(var De=Se[Ae],Pe=0;Pe<3;++Pe)Le[4*Ae+Pe]=De[Pe];ie?Le[4*Ae+3]=255*G(Ae/255,ie):Le[4*Ae+3]=255*De[3]}return b(Le,[256,256,4],[4,0,1])}function H(me){for(var ie=me.length,Se=new Array(ie),Le=0;Le0){var pt=this.triShader;pt.bind(),pt.uniforms=ge,this.triangleVAO.bind(),ie.drawArrays(ie.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind()}if(this.edgeCount>0&&this.lineWidth>0){var pt=this.lineShader;pt.bind(),pt.uniforms=ge,this.edgeVAO.bind(),ie.lineWidth(this.lineWidth*this.pixelRatio),ie.drawArrays(ie.LINES,0,this.edgeCount*2),this.edgeVAO.unbind()}if(this.pointCount>0){var pt=this.pointShader;pt.bind(),pt.uniforms=ge,this.pointVAO.bind(),ie.drawArrays(ie.POINTS,0,this.pointCount),this.pointVAO.unbind()}if(this.contourEnable&&this.contourCount>0&&this.contourLineWidth>0){var pt=this.contourShader;pt.bind(),pt.uniforms=ge,this.contourVAO.bind(),ie.drawArrays(ie.LINES,0,this.contourCount),this.contourVAO.unbind()}},V.drawPick=function(me){me=me||{};for(var ie=this.gl,Se=me.model||z,Le=me.view||z,Ae=me.projection||z,De=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],Pe=0;Pe<3;++Pe)De[0][Pe]=Math.max(De[0][Pe],this.clipBounds[0][Pe]),De[1][Pe]=Math.min(De[1][Pe],this.clipBounds[1][Pe]);this._model=[].slice.call(Se),this._view=[].slice.call(Le),this._projection=[].slice.call(Ae),this._resolution=[ie.drawingBufferWidth,ie.drawingBufferHeight];var ge={model:Se,view:Le,projection:Ae,clipBounds:De,pickId:this.pickId/255},Fe=this.pickShader;if(Fe.bind(),Fe.uniforms=ge,this.triangleCount>0&&(this.triangleVAO.bind(),ie.drawArrays(ie.TRIANGLES,0,this.triangleCount*3),this.triangleVAO.unbind()),this.edgeCount>0&&(this.edgeVAO.bind(),ie.lineWidth(this.lineWidth*this.pixelRatio),ie.drawArrays(ie.LINES,0,this.edgeCount*2),this.edgeVAO.unbind()),this.pointCount>0){var Fe=this.pointPickShader;Fe.bind(),Fe.uniforms=ge,this.pointVAO.bind(),ie.drawArrays(ie.POINTS,0,this.pointCount),this.pointVAO.unbind()}},V.pick=function(me){if(!me||me.id!==this.pickId)return null;for(var ie=me.value[0]+256*me.value[1]+65536*me.value[2],Se=this.cells[ie],Le=this.positions,Ae=new Array(Se.length),De=0;DeMath.abs(g))p.rotate(z,0,0,-M*P*Math.PI*_.rotateSpeed/window.innerWidth);else if(!_._ortho){var O=-_.zoomSpeed*T*g/window.innerHeight*(z-p.lastT())/20;p.pan(z,0,0,E*(Math.exp(O)-1))}}},!0)},_.enableMouseListeners(),_}},799:function(i,a,o){var s=o(3236),l=o(9405),u=s([`precision mediump float; +#define GLSLIFY 1 +attribute vec2 position; +varying vec2 uv; +void main() { + uv = position; + gl_Position = vec4(position, 0, 1); +}`]),c=s([`precision mediump float; +#define GLSLIFY 1 + +uniform sampler2D accumBuffer; +varying vec2 uv; + +void main() { + vec4 accum = texture2D(accumBuffer, 0.5 * (uv + 1.0)); + gl_FragColor = min(vec4(1,1,1,1), accum); +}`]);i.exports=function(f){return l(f,u,c,null,[{name:"position",type:"vec2"}])}},4100:function(i,a,o){"use strict";var s=o(4437),l=o(3837),u=o(5445),c=o(4449),f=o(3589),h=o(2260),d=o(7169),v=o(351),x=o(4772),b=o(4040),p=o(799),C=o(9216)({tablet:!0,featureDetect:!0});i.exports={createScene:k,createCamera:s};function E(){this.mouse=[-1,-1],this.screen=null,this.distance=1/0,this.index=null,this.dataCoordinate=null,this.dataPosition=null,this.object=null,this.data=null}function A(g,P){var T=null;try{T=g.getContext("webgl",P),T||(T=g.getContext("experimental-webgl",P))}catch(z){return null}return T}function L(g){var P=Math.round(Math.log(Math.abs(g))/Math.log(10));if(P<0){var T=Math.round(Math.pow(10,-P));return Math.ceil(g*T)/T}else if(P>0){var T=Math.round(Math.pow(10,P));return Math.ceil(g/T)*T}return Math.ceil(g)}function _(g){return typeof g=="boolean"?g:!0}function k(g){g=g||{},g.camera=g.camera||{};var P=g.canvas;if(!P)if(P=document.createElement("canvas"),g.container){var T=g.container;T.appendChild(P)}else document.body.appendChild(P);var z=g.gl;if(z||(g.glOptions&&(C=!!g.glOptions.preserveDrawingBuffer),z=A(P,g.glOptions||{premultipliedAlpha:!0,antialias:!0,preserveDrawingBuffer:C})),!z)throw new Error("webgl not supported");var O=g.bounds||[[-10,-10,-10],[10,10,10]],V=new E,G=h(z,z.drawingBufferWidth,z.drawingBufferHeight,{preferFloat:!C}),Z=p(z),H=g.cameraObject&&g.cameraObject._ortho===!0||g.camera.projection&&g.camera.projection.type==="orthographic"||!1,N={eye:g.camera.eye||[2,0,0],center:g.camera.center||[0,0,0],up:g.camera.up||[0,1,0],zoomMin:g.camera.zoomMax||.1,zoomMax:g.camera.zoomMin||100,mode:g.camera.mode||"turntable",_ortho:H},j=g.axes||{},re=l(z,j);re.enable=!j.disable;var oe=g.spikes||{},_e=c(z,oe),Me=[],ke=[],me=[],ie=[],Se=!0,Pe=!0,Le=new Array(16),Ae=new Array(16),De={view:null,projection:Le,model:Ae,_ortho:!1},Pe=!0,ge=[z.drawingBufferWidth,z.drawingBufferHeight],Fe=g.cameraObject||s(P,N),ce={gl:z,contextLost:!1,pixelRatio:g.pixelRatio||1,canvas:P,selection:V,camera:Fe,axes:re,axesPixels:null,spikes:_e,bounds:O,objects:Me,shape:ge,aspect:g.aspectRatio||[1,1,1],pickRadius:g.pickRadius||10,zNear:g.zNear||.01,zFar:g.zFar||1e3,fovy:g.fovy||Math.PI/4,clearColor:g.clearColor||[0,0,0,0],autoResize:_(g.autoResize),autoBounds:_(g.autoBounds),autoScale:!!g.autoScale,autoCenter:_(g.autoCenter),clipToBounds:_(g.clipToBounds),snapToData:!!g.snapToData,onselect:g.onselect||null,onrender:g.onrender||null,onclick:g.onclick||null,cameraParams:De,oncontextloss:null,mouseListener:null,_stopped:!1,getAspectratio:function(){return{x:this.aspect[0],y:this.aspect[1],z:this.aspect[2]}},setAspectratio:function(sr){this.aspect[0]=sr.x,this.aspect[1]=sr.y,this.aspect[2]=sr.z,Pe=!0},setBounds:function(sr,wr){this.bounds[0][sr]=wr.min,this.bounds[1][sr]=wr.max},setClearColor:function(sr){this.clearColor=sr},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)}},Ze=[z.drawingBufferWidth/ce.pixelRatio|0,z.drawingBufferHeight/ce.pixelRatio|0];function ct(){if(!ce._stopped&&ce.autoResize){var sr=P.parentNode,wr=1,ur=1;sr&&sr!==document.body?(wr=sr.clientWidth,ur=sr.clientHeight):(wr=window.innerWidth,ur=window.innerHeight);var Qe=Math.ceil(wr*ce.pixelRatio)|0,Et=Math.ceil(ur*ce.pixelRatio)|0;if(Qe!==P.width||Et!==P.height){P.width=Qe,P.height=Et;var er=P.style;er.position=er.position||"absolute",er.left="0px",er.top="0px",er.width=wr+"px",er.height=ur+"px",Se=!0}}}ce.autoResize&&ct(),window.addEventListener("resize",ct);function pt(){for(var sr=Me.length,wr=ie.length,ur=0;ur0&&me[wr-1]===0;)me.pop(),ie.pop().dispose()}ce.update=function(sr){ce._stopped||(sr=sr||{},Se=!0,Pe=!0)},ce.add=function(sr){ce._stopped||(sr.axes=re,Me.push(sr),ke.push(-1),Se=!0,Pe=!0,pt())},ce.remove=function(sr){if(!ce._stopped){var wr=Me.indexOf(sr);wr<0||(Me.splice(wr,1),ke.pop(),Se=!0,Pe=!0,pt())}},ce.dispose=function(){if(!ce._stopped&&(ce._stopped=!0,window.removeEventListener("resize",ct),P.removeEventListener("webglcontextlost",Wt),ce.mouseListener.enabled=!1,!ce.contextLost)){re.dispose(),_e.dispose();for(var sr=0;srV.distance)continue;for(var yt=0;yt1e-6?(C=Math.acos(E),A=Math.sin(C),L=Math.sin((1-u)*C)/A,_=Math.sin(u*C)/A):(L=1-u,_=u),o[0]=L*c+_*v,o[1]=L*f+_*x,o[2]=L*h+_*b,o[3]=L*d+_*p,o}},5964:function(i){"use strict";i.exports=function(a){return!a&&a!==0?"":a.toString()}},9366:function(i,a,o){"use strict";var s=o(4359);i.exports=u;var l={};function u(c,f,h){var d=[f.style,f.weight,f.variant,f.family].join("_"),v=l[d];if(v||(v=l[d]={}),c in v)return v[c];var x={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}};x.triangles=!0;var b=s(c,x);x.triangles=!1;var p=s(c,x),C,E;if(h&&h!==1){for(C=0;C max(a, b)) || + (p < min(a, b))); +} + +bool outOfRange(vec2 a, vec2 b, vec2 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y)); +} + +bool outOfRange(vec3 a, vec3 b, vec3 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y) || + outOfRange(a.z, b.z, p.z)); +} + +bool outOfRange(vec4 a, vec4 b, vec4 p) { + return outOfRange(a.xyz, b.xyz, p.xyz); +} + +attribute vec3 position; +attribute vec4 color; +attribute vec2 glyph; +attribute vec4 id; + +uniform vec4 highlightId; +uniform float highlightScale; +uniform mat4 model, view, projection; +uniform vec3 clipBounds[2]; + +varying vec4 interpColor; +varying vec4 pickId; +varying vec3 dataCoordinate; + +void main() { + if (outOfRange(clipBounds[0], clipBounds[1], position)) { + + gl_Position = vec4(0,0,0,0); + } else { + float scale = 1.0; + if(distance(highlightId, id) < 0.0001) { + scale = highlightScale; + } + + vec4 worldPosition = model * vec4(position, 1); + vec4 viewPosition = view * worldPosition; + viewPosition = viewPosition / viewPosition.w; + vec4 clipPosition = projection * (viewPosition + scale * vec4(glyph.x, -glyph.y, 0, 0)); + + gl_Position = clipPosition; + interpColor = color; + pickId = id; + dataCoordinate = position; + } +}`]),c=l([`precision highp float; +#define GLSLIFY 1 + +bool outOfRange(float a, float b, float p) { + return ((p > max(a, b)) || + (p < min(a, b))); +} + +bool outOfRange(vec2 a, vec2 b, vec2 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y)); +} + +bool outOfRange(vec3 a, vec3 b, vec3 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y) || + outOfRange(a.z, b.z, p.z)); +} + +bool outOfRange(vec4 a, vec4 b, vec4 p) { + return outOfRange(a.xyz, b.xyz, p.xyz); +} + +attribute vec3 position; +attribute vec4 color; +attribute vec2 glyph; +attribute vec4 id; + +uniform mat4 model, view, projection; +uniform vec2 screenSize; +uniform vec3 clipBounds[2]; +uniform float highlightScale, pixelRatio; +uniform vec4 highlightId; + +varying vec4 interpColor; +varying vec4 pickId; +varying vec3 dataCoordinate; + +void main() { + if (outOfRange(clipBounds[0], clipBounds[1], position)) { + + gl_Position = vec4(0,0,0,0); + } else { + float scale = pixelRatio; + if(distance(highlightId.bgr, id.bgr) < 0.001) { + scale *= highlightScale; + } + + vec4 worldPosition = model * vec4(position, 1.0); + vec4 viewPosition = view * worldPosition; + vec4 clipPosition = projection * viewPosition; + clipPosition /= clipPosition.w; + + gl_Position = clipPosition + vec4(screenSize * scale * vec2(glyph.x, -glyph.y), 0.0, 0.0); + interpColor = color; + pickId = id; + dataCoordinate = position; + } +}`]),f=l([`precision highp float; +#define GLSLIFY 1 + +bool outOfRange(float a, float b, float p) { + return ((p > max(a, b)) || + (p < min(a, b))); +} + +bool outOfRange(vec2 a, vec2 b, vec2 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y)); +} + +bool outOfRange(vec3 a, vec3 b, vec3 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y) || + outOfRange(a.z, b.z, p.z)); +} + +bool outOfRange(vec4 a, vec4 b, vec4 p) { + return outOfRange(a.xyz, b.xyz, p.xyz); +} + +attribute vec3 position; +attribute vec4 color; +attribute vec2 glyph; +attribute vec4 id; + +uniform float highlightScale; +uniform vec4 highlightId; +uniform vec3 axes[2]; +uniform mat4 model, view, projection; +uniform vec2 screenSize; +uniform vec3 clipBounds[2]; +uniform float scale, pixelRatio; + +varying vec4 interpColor; +varying vec4 pickId; +varying vec3 dataCoordinate; + +void main() { + if (outOfRange(clipBounds[0], clipBounds[1], position)) { + + gl_Position = vec4(0,0,0,0); + } else { + float lscale = pixelRatio * scale; + if(distance(highlightId, id) < 0.0001) { + lscale *= highlightScale; + } + + vec4 clipCenter = projection * (view * (model * vec4(position, 1))); + vec3 dataPosition = position + 0.5*lscale*(axes[0] * glyph.x + axes[1] * glyph.y) * clipCenter.w * screenSize.y; + vec4 clipPosition = projection * (view * (model * vec4(dataPosition, 1))); + + gl_Position = clipPosition; + interpColor = color; + pickId = id; + dataCoordinate = dataPosition; + } +} +`]),h=l([`precision highp float; +#define GLSLIFY 1 + +bool outOfRange(float a, float b, float p) { + return ((p > max(a, b)) || + (p < min(a, b))); +} + +bool outOfRange(vec2 a, vec2 b, vec2 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y)); +} + +bool outOfRange(vec3 a, vec3 b, vec3 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y) || + outOfRange(a.z, b.z, p.z)); +} + +bool outOfRange(vec4 a, vec4 b, vec4 p) { + return outOfRange(a.xyz, b.xyz, p.xyz); +} + +uniform vec3 fragClipBounds[2]; +uniform float opacity; + +varying vec4 interpColor; +varying vec3 dataCoordinate; + +void main() { + if ( + outOfRange(fragClipBounds[0], fragClipBounds[1], dataCoordinate) || + interpColor.a * opacity == 0. + ) discard; + gl_FragColor = interpColor * opacity; +} +`]),d=l([`precision highp float; +#define GLSLIFY 1 + +bool outOfRange(float a, float b, float p) { + return ((p > max(a, b)) || + (p < min(a, b))); +} + +bool outOfRange(vec2 a, vec2 b, vec2 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y)); +} + +bool outOfRange(vec3 a, vec3 b, vec3 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y) || + outOfRange(a.z, b.z, p.z)); +} + +bool outOfRange(vec4 a, vec4 b, vec4 p) { + return outOfRange(a.xyz, b.xyz, p.xyz); +} + +uniform vec3 fragClipBounds[2]; +uniform float pickGroup; + +varying vec4 pickId; +varying vec3 dataCoordinate; + +void main() { + if (outOfRange(fragClipBounds[0], fragClipBounds[1], dataCoordinate)) discard; + + gl_FragColor = vec4(pickGroup, pickId.bgr); +}`]),v=[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"glyph",type:"vec2"},{name:"id",type:"vec4"}],x={vertex:u,fragment:h,attributes:v},b={vertex:c,fragment:h,attributes:v},p={vertex:f,fragment:h,attributes:v},C={vertex:u,fragment:d,attributes:v},E={vertex:c,fragment:d,attributes:v},A={vertex:f,fragment:d,attributes:v};function L(_,k){var M=s(_,k),g=M.attributes;return g.position.location=0,g.color.location=1,g.glyph.location=2,g.id.location=3,M}a.createPerspective=function(_){return L(_,x)},a.createOrtho=function(_){return L(_,b)},a.createProject=function(_){return L(_,p)},a.createPickPerspective=function(_){return L(_,C)},a.createPickOrtho=function(_){return L(_,E)},a.createPickProject=function(_){return L(_,A)}},8418:function(i,a,o){"use strict";var s=o(5219),l=o(2762),u=o(8116),c=o(1888),f=o(6760),h=o(1283),d=o(9366),v=o(5964),x=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],b=ArrayBuffer,p=DataView;function C(Ae){return b.isView(Ae)&&!(Ae instanceof p)}function E(Ae){return Array.isArray(Ae)||C(Ae)}i.exports=Le;function A(Ae,De){var Pe=Ae[0],ge=Ae[1],Fe=Ae[2],ce=Ae[3];return Ae[0]=De[0]*Pe+De[4]*ge+De[8]*Fe+De[12]*ce,Ae[1]=De[1]*Pe+De[5]*ge+De[9]*Fe+De[13]*ce,Ae[2]=De[2]*Pe+De[6]*ge+De[10]*Fe+De[14]*ce,Ae[3]=De[3]*Pe+De[7]*ge+De[11]*Fe+De[15]*ce,Ae}function L(Ae,De,Pe,ge){return A(ge,ge,Pe),A(ge,ge,De),A(ge,ge,Ae)}function _(Ae,De){this.index=Ae,this.dataCoordinate=this.position=De}function k(Ae){return Ae===!0||Ae>1?1:Ae}function M(Ae,De,Pe,ge,Fe,ce,Ze,ct,pt,Wt,st,lt){this.gl=Ae,this.pixelRatio=1,this.shader=De,this.orthoShader=Pe,this.projectShader=ge,this.pointBuffer=Fe,this.colorBuffer=ce,this.glyphBuffer=Ze,this.idBuffer=ct,this.vao=pt,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=Wt,this.pickOrthoShader=st,this.pickProjectShader=lt,this.points=[],this._selectResult=new _(0,[0,0,0]),this.useOrtho=!0,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.axesProject=[!0,!0,!0],this.axesBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.highlightId=[1,1,1,1],this.highlightScale=2,this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.dirty=!0}var g=M.prototype;g.pickSlots=1,g.setPickBase=function(Ae){this.pickId=Ae},g.isTransparent=function(){if(this.hasAlpha)return!0;for(var Ae=0;Ae<3;++Ae)if(this.axesProject[Ae]&&this.projectHasAlpha)return!0;return!1},g.isOpaque=function(){if(!this.hasAlpha)return!0;for(var Ae=0;Ae<3;++Ae)if(this.axesProject[Ae]&&!this.projectHasAlpha)return!0;return!1};var P=[0,0],T=[0,0,0],z=[0,0,0],O=[0,0,0,1],V=[0,0,0,1],G=x.slice(),Z=[0,0,0],H=[[0,0,0],[0,0,0]];function N(Ae){return Ae[0]=Ae[1]=Ae[2]=0,Ae}function j(Ae,De){return Ae[0]=De[0],Ae[1]=De[1],Ae[2]=De[2],Ae[3]=1,Ae}function re(Ae,De,Pe,ge){return Ae[0]=De[0],Ae[1]=De[1],Ae[2]=De[2],Ae[Pe]=ge,Ae}function oe(Ae){for(var De=H,Pe=0;Pe<2;++Pe)for(var ge=0;ge<3;++ge)De[Pe][ge]=Math.max(Math.min(Ae[Pe][ge],1e8),-1e8);return De}function _e(Ae,De,Pe,ge){var Fe=De.axesProject,ce=De.gl,Ze=Ae.uniforms,ct=Pe.model||x,pt=Pe.view||x,Wt=Pe.projection||x,st=De.axesBounds,lt=oe(De.clipBounds),Gt;De.axes&&De.axes.lastCubeProps?Gt=De.axes.lastCubeProps.axis:Gt=[1,1,1],P[0]=2/ce.drawingBufferWidth,P[1]=2/ce.drawingBufferHeight,Ae.bind(),Ze.view=pt,Ze.projection=Wt,Ze.screenSize=P,Ze.highlightId=De.highlightId,Ze.highlightScale=De.highlightScale,Ze.clipBounds=lt,Ze.pickGroup=De.pickId/255,Ze.pixelRatio=ge;for(var Nt=0;Nt<3;++Nt)if(Fe[Nt]){Ze.scale=De.projectScale[Nt],Ze.opacity=De.projectOpacity[Nt];for(var $t=G,sr=0;sr<16;++sr)$t[sr]=0;for(var sr=0;sr<4;++sr)$t[5*sr]=1;$t[5*Nt]=0,Gt[Nt]<0?$t[12+Nt]=st[0][Nt]:$t[12+Nt]=st[1][Nt],f($t,ct,$t),Ze.model=$t;var wr=(Nt+1)%3,ur=(Nt+2)%3,Qe=N(T),Et=N(z);Qe[wr]=1,Et[ur]=1;var er=L(Wt,pt,ct,j(O,Qe)),Ut=L(Wt,pt,ct,j(V,Et));if(Math.abs(er[1])>Math.abs(Ut[1])){var Ft=er;er=Ut,Ut=Ft,Ft=Qe,Qe=Et,Et=Ft;var bt=wr;wr=ur,ur=bt}er[0]<0&&(Qe[wr]=-1),Ut[1]>0&&(Et[ur]=-1);for(var yt=0,Yt=0,sr=0;sr<4;++sr)yt+=Math.pow(ct[4*wr+sr],2),Yt+=Math.pow(ct[4*ur+sr],2);Qe[wr]/=Math.sqrt(yt),Et[ur]/=Math.sqrt(Yt),Ze.axes[0]=Qe,Ze.axes[1]=Et,Ze.fragClipBounds[0]=re(Z,lt[0],Nt,-1e8),Ze.fragClipBounds[1]=re(Z,lt[1],Nt,1e8),De.vao.bind(),De.vao.draw(ce.TRIANGLES,De.vertexCount),De.lineWidth>0&&(ce.lineWidth(De.lineWidth*ge),De.vao.draw(ce.LINES,De.lineVertexCount,De.vertexCount)),De.vao.unbind()}}var Me=[-1e8,-1e8,-1e8],ke=[1e8,1e8,1e8],me=[Me,ke];function ie(Ae,De,Pe,ge,Fe,ce,Ze){var ct=Pe.gl;if((ce===Pe.projectHasAlpha||Ze)&&_e(De,Pe,ge,Fe),ce===Pe.hasAlpha||Ze){Ae.bind();var pt=Ae.uniforms;pt.model=ge.model||x,pt.view=ge.view||x,pt.projection=ge.projection||x,P[0]=2/ct.drawingBufferWidth,P[1]=2/ct.drawingBufferHeight,pt.screenSize=P,pt.highlightId=Pe.highlightId,pt.highlightScale=Pe.highlightScale,pt.fragClipBounds=me,pt.clipBounds=Pe.axes.bounds,pt.opacity=Pe.opacity,pt.pickGroup=Pe.pickId/255,pt.pixelRatio=Fe,Pe.vao.bind(),Pe.vao.draw(ct.TRIANGLES,Pe.vertexCount),Pe.lineWidth>0&&(ct.lineWidth(Pe.lineWidth*Fe),Pe.vao.draw(ct.LINES,Pe.lineVertexCount,Pe.vertexCount)),Pe.vao.unbind()}}g.draw=function(Ae){var De=this.useOrtho?this.orthoShader:this.shader;ie(De,this.projectShader,this,Ae,this.pixelRatio,!1,!1)},g.drawTransparent=function(Ae){var De=this.useOrtho?this.orthoShader:this.shader;ie(De,this.projectShader,this,Ae,this.pixelRatio,!0,!1)},g.drawPick=function(Ae){var De=this.useOrtho?this.pickOrthoShader:this.pickPerspectiveShader;ie(De,this.pickProjectShader,this,Ae,1,!0,!0)},g.pick=function(Ae){if(!Ae||Ae.id!==this.pickId)return null;var De=Ae.value[2]+(Ae.value[1]<<8)+(Ae.value[0]<<16);if(De>=this.pointCount||De<0)return null;var Pe=this.points[De],ge=this._selectResult;ge.index=De;for(var Fe=0;Fe<3;++Fe)ge.position[Fe]=ge.dataCoordinate[Fe]=Pe[Fe];return ge},g.highlight=function(Ae){if(!Ae)this.highlightId=[1,1,1,1];else{var De=Ae.index,Pe=De&255,ge=De>>8&255,Fe=De>>16&255;this.highlightId=[Pe/255,ge/255,Fe/255,0]}};function Se(Ae,De,Pe,ge){var Fe;E(Ae)?De0){var Ur=0,dt=ur,Ge=[0,0,0,1],Je=[0,0,0,1],je=E(Gt)&&E(Gt[0]),$e=E(sr)&&E(sr[0]);e:for(var ge=0;ge0?1-Yt[0][0]:ir<0?1+Yt[1][0]:1,pr*=pr>0?1-Yt[0][1]:pr<0?1+Yt[1][1]:1;for(var oi=[ir,pr],Pn=bt.cells||[],wn=bt.positions||[],Ut=0;Utthis.buffer.length){l.free(this.buffer);for(var E=this.buffer=l.mallocUint8(c(C*p*4)),A=0;AE)for(p=E;pC)for(p=C;p=0){for(var H=Z.type.charAt(Z.type.length-1)|0,N=new Array(H),j=0;j=0;)re+=1;V[G]=re}var oe=new Array(E.length);function _e(){_.program=c.program(k,_._vref,_._fref,O,V);for(var Me=0;Me=0){var g=k.charCodeAt(k.length-1)-48;if(g<2||g>4)throw new s("","Invalid data type for attribute "+_+": "+k);f(v,x,M[0],p,g,C,_)}else if(k.indexOf("mat")>=0){var g=k.charCodeAt(k.length-1)-48;if(g<2||g>4)throw new s("","Invalid data type for attribute "+_+": "+k);h(v,x,M,p,g,C,_)}else throw new s("","Unknown data type for attribute "+_+": "+k);break}}return C}},3327:function(i,a,o){"use strict";var s=o(216),l=o(8866);i.exports=f;function u(h){return function(){return h}}function c(h,d){for(var v=new Array(h),x=0;x4)throw new l("","Invalid data type");switch(re.charAt(0)){case"b":case"i":h["uniform"+oe+"iv"](x[V],G);break;case"v":h["uniform"+oe+"fv"](x[V],G);break;default:throw new l("","Unrecognized data type for vector "+name+": "+re)}}else if(re.indexOf("mat")===0&&re.length===4){if(oe=re.charCodeAt(re.length-1)-48,oe<2||oe>4)throw new l("","Invalid uniform dimension type for matrix "+name+": "+re);h["uniformMatrix"+oe+"fv"](x[V],!1,G);break}else throw new l("","Unknown uniform data type for "+name+": "+re)}}}}}function C(k,M){if(typeof M!="object")return[[k,M]];var g=[];for(var P in M){var T=M[P],z=k;parseInt(P)+""===P?z+="["+P+"]":z+="."+P,typeof T=="object"?g.push.apply(g,C(z,T)):g.push([z,T])}return g}function E(k){switch(k){case"bool":return!1;case"int":case"sampler2D":case"samplerCube":return 0;case"float":return 0;default:var M=k.indexOf("vec");if(0<=M&&M<=1&&k.length===4+M){var g=k.charCodeAt(k.length-1)-48;if(g<2||g>4)throw new l("","Invalid data type");return k.charAt(0)==="b"?c(g,!1):c(g,0)}else if(k.indexOf("mat")===0&&k.length===4){var g=k.charCodeAt(k.length-1)-48;if(g<2||g>4)throw new l("","Invalid uniform dimension type for matrix "+name+": "+k);return c(g*g,0)}else throw new l("","Unknown uniform data type for "+name+": "+k)}}function A(k,M,g){if(typeof g=="object"){var P=L(g);Object.defineProperty(k,M,{get:u(P),set:p(g),enumerable:!0,configurable:!1})}else x[g]?Object.defineProperty(k,M,{get:b(g),set:p(g),enumerable:!0,configurable:!1}):k[M]=E(v[g].type)}function L(k){var M;if(Array.isArray(k)){M=new Array(k.length);for(var g=0;g1){v[0]in h||(h[v[0]]=[]),h=h[v[0]];for(var x=1;x1)for(var C=0;C 0 U ||b|| > 0. + // Assign z = 0, x = -b, y = a: + // a*-b + b*a + c*0 = -ba + ba + 0 = 0 + if (v.x*v.x > v.z*v.z || v.y*v.y > v.z*v.z) { + return normalize(vec3(-v.y, v.x, 0.0)); + } else { + return normalize(vec3(0.0, v.z, -v.y)); + } +} + +// Calculate the tube vertex and normal at the given index. +// +// The returned vertex is for a tube ring with its center at origin, radius of length(d), pointing in the direction of d. +// +// Each tube segment is made up of a ring of vertices. +// These vertices are used to make up the triangles of the tube by connecting them together in the vertex array. +// The indexes of tube segments run from 0 to 8. +// +vec3 getTubePosition(vec3 d, float index, out vec3 normal) { + float segmentCount = 8.0; + + float angle = 2.0 * 3.14159 * (index / segmentCount); + + vec3 u = getOrthogonalVector(d); + vec3 v = normalize(cross(u, d)); + + vec3 x = u * cos(angle) * length(d); + vec3 y = v * sin(angle) * length(d); + vec3 v3 = x + y; + + normal = normalize(v3); + + return v3; +} + +attribute vec4 vector; +attribute vec4 color, position; +attribute vec2 uv; + +uniform float vectorScale, tubeScale; +uniform mat4 model, view, projection, inverseModel; +uniform vec3 eyePosition, lightPosition; + +varying vec3 f_normal, f_lightDirection, f_eyeDirection, f_data, f_position; +varying vec4 f_color; +varying vec2 f_uv; + +void main() { + // Scale the vector magnitude to stay constant with + // model & view changes. + vec3 normal; + vec3 XYZ = getTubePosition(mat3(model) * (tubeScale * vector.w * normalize(vector.xyz)), position.w, normal); + vec4 tubePosition = model * vec4(position.xyz, 1.0) + vec4(XYZ, 0.0); + + //Lighting geometry parameters + vec4 cameraCoordinate = view * tubePosition; + cameraCoordinate.xyz /= cameraCoordinate.w; + f_lightDirection = lightPosition - cameraCoordinate.xyz; + f_eyeDirection = eyePosition - cameraCoordinate.xyz; + f_normal = normalize((vec4(normal, 0.0) * inverseModel).xyz); + + // vec4 m_position = model * vec4(tubePosition, 1.0); + vec4 t_position = view * tubePosition; + gl_Position = projection * t_position; + + f_color = color; + f_data = tubePosition.xyz; + f_position = position.xyz; + f_uv = uv; +} +`]),u=s([`#extension GL_OES_standard_derivatives : enable + +precision highp float; +#define GLSLIFY 1 + +float beckmannDistribution(float x, float roughness) { + float NdotH = max(x, 0.0001); + float cos2Alpha = NdotH * NdotH; + float tan2Alpha = (cos2Alpha - 1.0) / cos2Alpha; + float roughness2 = roughness * roughness; + float denom = 3.141592653589793 * roughness2 * cos2Alpha * cos2Alpha; + return exp(tan2Alpha / roughness2) / denom; +} + +float cookTorranceSpecular( + vec3 lightDirection, + vec3 viewDirection, + vec3 surfaceNormal, + float roughness, + float fresnel) { + + float VdotN = max(dot(viewDirection, surfaceNormal), 0.0); + float LdotN = max(dot(lightDirection, surfaceNormal), 0.0); + + //Half angle vector + vec3 H = normalize(lightDirection + viewDirection); + + //Geometric term + float NdotH = max(dot(surfaceNormal, H), 0.0); + float VdotH = max(dot(viewDirection, H), 0.000001); + float LdotH = max(dot(lightDirection, H), 0.000001); + float G1 = (2.0 * NdotH * VdotN) / VdotH; + float G2 = (2.0 * NdotH * LdotN) / LdotH; + float G = min(1.0, min(G1, G2)); + + //Distribution term + float D = beckmannDistribution(NdotH, roughness); + + //Fresnel term + float F = pow(1.0 - VdotN, fresnel); + + //Multiply terms and done + return G * F * D / max(3.14159265 * VdotN, 0.000001); +} + +bool outOfRange(float a, float b, float p) { + return ((p > max(a, b)) || + (p < min(a, b))); +} + +bool outOfRange(vec2 a, vec2 b, vec2 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y)); +} + +bool outOfRange(vec3 a, vec3 b, vec3 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y) || + outOfRange(a.z, b.z, p.z)); +} + +bool outOfRange(vec4 a, vec4 b, vec4 p) { + return outOfRange(a.xyz, b.xyz, p.xyz); +} + +uniform vec3 clipBounds[2]; +uniform float roughness, fresnel, kambient, kdiffuse, kspecular, opacity; +uniform sampler2D texture; + +varying vec3 f_normal, f_lightDirection, f_eyeDirection, f_data, f_position; +varying vec4 f_color; +varying vec2 f_uv; + +void main() { + if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard; + vec3 N = normalize(f_normal); + vec3 L = normalize(f_lightDirection); + vec3 V = normalize(f_eyeDirection); + + if(gl_FrontFacing) { + N = -N; + } + + float specular = min(1.0, max(0.0, cookTorranceSpecular(L, V, N, roughness, fresnel))); + float diffuse = min(kambient + kdiffuse * max(dot(N, L), 0.0), 1.0); + + vec4 surfaceColor = f_color * texture2D(texture, f_uv); + vec4 litColor = surfaceColor.a * vec4(diffuse * surfaceColor.rgb + kspecular * vec3(1,1,1) * specular, 1.0); + + gl_FragColor = litColor * opacity; +} +`]),c=s([`precision highp float; + +precision highp float; +#define GLSLIFY 1 + +vec3 getOrthogonalVector(vec3 v) { + // Return up-vector for only-z vector. + // Return ax + by + cz = 0, a point that lies on the plane that has v as a normal and that isn't (0,0,0). + // From the above if-statement we have ||a|| > 0 U ||b|| > 0. + // Assign z = 0, x = -b, y = a: + // a*-b + b*a + c*0 = -ba + ba + 0 = 0 + if (v.x*v.x > v.z*v.z || v.y*v.y > v.z*v.z) { + return normalize(vec3(-v.y, v.x, 0.0)); + } else { + return normalize(vec3(0.0, v.z, -v.y)); + } +} + +// Calculate the tube vertex and normal at the given index. +// +// The returned vertex is for a tube ring with its center at origin, radius of length(d), pointing in the direction of d. +// +// Each tube segment is made up of a ring of vertices. +// These vertices are used to make up the triangles of the tube by connecting them together in the vertex array. +// The indexes of tube segments run from 0 to 8. +// +vec3 getTubePosition(vec3 d, float index, out vec3 normal) { + float segmentCount = 8.0; + + float angle = 2.0 * 3.14159 * (index / segmentCount); + + vec3 u = getOrthogonalVector(d); + vec3 v = normalize(cross(u, d)); + + vec3 x = u * cos(angle) * length(d); + vec3 y = v * sin(angle) * length(d); + vec3 v3 = x + y; + + normal = normalize(v3); + + return v3; +} + +attribute vec4 vector; +attribute vec4 position; +attribute vec4 id; + +uniform mat4 model, view, projection; +uniform float tubeScale; + +varying vec3 f_position; +varying vec4 f_id; + +void main() { + vec3 normal; + vec3 XYZ = getTubePosition(mat3(model) * (tubeScale * vector.w * normalize(vector.xyz)), position.w, normal); + vec4 tubePosition = model * vec4(position.xyz, 1.0) + vec4(XYZ, 0.0); + + gl_Position = projection * (view * tubePosition); + f_id = id; + f_position = position.xyz; +} +`]),f=s([`precision highp float; +#define GLSLIFY 1 + +bool outOfRange(float a, float b, float p) { + return ((p > max(a, b)) || + (p < min(a, b))); +} + +bool outOfRange(vec2 a, vec2 b, vec2 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y)); +} + +bool outOfRange(vec3 a, vec3 b, vec3 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y) || + outOfRange(a.z, b.z, p.z)); +} + +bool outOfRange(vec4 a, vec4 b, vec4 p) { + return outOfRange(a.xyz, b.xyz, p.xyz); +} + +uniform vec3 clipBounds[2]; +uniform float pickId; + +varying vec3 f_position; +varying vec4 f_id; + +void main() { + if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard; + + gl_FragColor = vec4(pickId, f_id.xyz); +}`]);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:function(i,a,o){"use strict";var s=o(2931),l=o(9970),u=["xyz","xzy","yxz","yzx","zxy","zyx"],c=function(A,L,_,k){for(var M=A.points,g=A.velocities,P=A.divergences,T=[],z=[],O=[],V=[],G=[],Z=[],H=0,N=0,j=l.create(),re=l.create(),oe=8,_e=0;_e0)for(var ie=0;ieL)return k-1}return k},d=function(A,L,_){return A_?_:A},v=function(A,L,_){var k=L.vectors,M=L.meshgrid,g=A[0],P=A[1],T=A[2],z=M[0].length,O=M[1].length,V=M[2].length,G=h(M[0],g),Z=h(M[1],P),H=h(M[2],T),N=G+1,j=Z+1,re=H+1;if(G=d(G,0,z-1),N=d(N,0,z-1),Z=d(Z,0,O-1),j=d(j,0,O-1),H=d(H,0,V-1),re=d(re,0,V-1),G<0||Z<0||H<0||N>z-1||j>O-1||re>V-1)return s.create();var oe=M[0][G],_e=M[0][N],Me=M[1][Z],ke=M[1][j],me=M[2][H],ie=M[2][re],Se=(g-oe)/(_e-oe),Le=(P-Me)/(ke-Me),Ae=(T-me)/(ie-me);isFinite(Se)||(Se=.5),isFinite(Le)||(Le=.5),isFinite(Ae)||(Ae=.5);var De,Pe,ge,Fe,ce,Ze;switch(_.reversedX&&(G=z-1-G,N=z-1-N),_.reversedY&&(Z=O-1-Z,j=O-1-j),_.reversedZ&&(H=V-1-H,re=V-1-re),_.filled){case 5:ce=H,Ze=re,ge=Z*V,Fe=j*V,De=G*V*O,Pe=N*V*O;break;case 4:ce=H,Ze=re,De=G*V,Pe=N*V,ge=Z*V*z,Fe=j*V*z;break;case 3:ge=Z,Fe=j,ce=H*O,Ze=re*O,De=G*O*V,Pe=N*O*V;break;case 2:ge=Z,Fe=j,De=G*O,Pe=N*O,ce=H*O*z,Ze=re*O*z;break;case 1:De=G,Pe=N,ce=H*z,Ze=re*z,ge=Z*z*V,Fe=j*z*V;break;default:De=G,Pe=N,ge=Z*z,Fe=j*z,ce=H*z*O,Ze=re*z*O;break}var ct=k[De+ge+ce],pt=k[De+ge+Ze],Wt=k[De+Fe+ce],st=k[De+Fe+Ze],lt=k[Pe+ge+ce],Gt=k[Pe+ge+Ze],Nt=k[Pe+Fe+ce],$t=k[Pe+Fe+Ze],sr=s.create(),wr=s.create(),ur=s.create(),Qe=s.create();s.lerp(sr,ct,lt,Se),s.lerp(wr,pt,Gt,Se),s.lerp(ur,Wt,Nt,Se),s.lerp(Qe,st,$t,Se);var Et=s.create(),er=s.create();s.lerp(Et,sr,ur,Le),s.lerp(er,wr,Qe,Le);var Ut=s.create();return s.lerp(Ut,Et,er,Ae),Ut},x=function(A,L){var _=L[0],k=L[1],M=L[2];return A[0]=_<0?-_:_,A[1]=k<0?-k:k,A[2]=M<0?-M:M,A},b=function(A){var L=1/0;A.sort(function(g,P){return g-P});for(var _=A.length,k=1;k<_;k++){var M=Math.abs(A[k]-A[k-1]);MN||$tj||srre)},_e=s.distance(L[0],L[1]),Me=10*_e/k,ke=Me*Me,me=1,ie=0,Se=_.length;Se>1&&(me=p(_));for(var Le=0;Leie&&(ie=ct),ce.push(ct),V.push({points:De,velocities:Pe,divergences:ce});for(var pt=0;ptke&&s.scale(Wt,Wt,Me/Math.sqrt(st)),s.add(Wt,Wt,Ae),ge=z(Wt),s.squaredDistance(Fe,Wt)-ke>-1e-4*ke){De.push(Wt),Fe=Wt,Pe.push(ge);var Ze=O(Wt,ge),ct=s.length(Ze);isFinite(ct)&&ct>ie&&(ie=ct),ce.push(ct)}Ae=Wt}}var lt=f(V,A.colormap,ie,me);return g?lt.tubeScale=g:(ie===0&&(ie=1),lt.tubeScale=M*.5*me/ie),lt};var C=o(6740),E=o(6405).createMesh;i.exports.createTubeMesh=function(A,L){return E(A,L,{shaders:C,traceType:"streamtube"})}},990:function(i,a,o){var s=o(9405),l=o(3236),u=l([`precision highp float; +#define GLSLIFY 1 + +attribute vec4 uv; +attribute vec3 f; +attribute vec3 normal; + +uniform vec3 objectOffset; +uniform mat4 model, view, projection, inverseModel; +uniform vec3 lightPosition, eyePosition; +uniform sampler2D colormap; + +varying float value, kill; +varying vec3 worldCoordinate; +varying vec2 planeCoordinate; +varying vec3 lightDirection, eyeDirection, surfaceNormal; +varying vec4 vColor; + +void main() { + vec3 localCoordinate = vec3(uv.zw, f.x); + worldCoordinate = objectOffset + localCoordinate; + mat4 objectOffsetTranslation = mat4(1.0) + mat4(vec4(0), vec4(0), vec4(0), vec4(objectOffset, 0)); + vec4 worldPosition = (model * objectOffsetTranslation) * vec4(localCoordinate, 1.0); + vec4 clipPosition = projection * (view * worldPosition); + gl_Position = clipPosition; + kill = f.y; + value = f.z; + planeCoordinate = uv.xy; + + vColor = texture2D(colormap, vec2(value, value)); + + //Lighting geometry parameters + vec4 cameraCoordinate = view * worldPosition; + cameraCoordinate.xyz /= cameraCoordinate.w; + lightDirection = lightPosition - cameraCoordinate.xyz; + eyeDirection = eyePosition - cameraCoordinate.xyz; + surfaceNormal = normalize((vec4(normal,0) * inverseModel).xyz); +} +`]),c=l([`precision highp float; +#define GLSLIFY 1 + +float beckmannDistribution(float x, float roughness) { + float NdotH = max(x, 0.0001); + float cos2Alpha = NdotH * NdotH; + float tan2Alpha = (cos2Alpha - 1.0) / cos2Alpha; + float roughness2 = roughness * roughness; + float denom = 3.141592653589793 * roughness2 * cos2Alpha * cos2Alpha; + return exp(tan2Alpha / roughness2) / denom; +} + +float beckmannSpecular( + vec3 lightDirection, + vec3 viewDirection, + vec3 surfaceNormal, + float roughness) { + return beckmannDistribution(dot(surfaceNormal, normalize(lightDirection + viewDirection)), roughness); +} + +bool outOfRange(float a, float b, float p) { + return ((p > max(a, b)) || + (p < min(a, b))); +} + +bool outOfRange(vec2 a, vec2 b, vec2 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y)); +} + +bool outOfRange(vec3 a, vec3 b, vec3 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y) || + outOfRange(a.z, b.z, p.z)); +} + +bool outOfRange(vec4 a, vec4 b, vec4 p) { + return outOfRange(a.xyz, b.xyz, p.xyz); +} + +uniform vec3 lowerBound, upperBound; +uniform float contourTint; +uniform vec4 contourColor; +uniform sampler2D colormap; +uniform vec3 clipBounds[2]; +uniform float roughness, fresnel, kambient, kdiffuse, kspecular, opacity; +uniform float vertexColor; + +varying float value, kill; +varying vec3 worldCoordinate; +varying vec3 lightDirection, eyeDirection, surfaceNormal; +varying vec4 vColor; + +void main() { + if ( + kill > 0.0 || + vColor.a == 0.0 || + outOfRange(clipBounds[0], clipBounds[1], worldCoordinate) + ) discard; + + vec3 N = normalize(surfaceNormal); + vec3 V = normalize(eyeDirection); + vec3 L = normalize(lightDirection); + + if(gl_FrontFacing) { + N = -N; + } + + float specular = max(beckmannSpecular(L, V, N, roughness), 0.); + float diffuse = min(kambient + kdiffuse * max(dot(N, L), 0.0), 1.0); + + //decide how to interpolate color \u2014 in vertex or in fragment + vec4 surfaceColor = + step(vertexColor, .5) * texture2D(colormap, vec2(value, value)) + + step(.5, vertexColor) * vColor; + + vec4 litColor = surfaceColor.a * vec4(diffuse * surfaceColor.rgb + kspecular * vec3(1,1,1) * specular, 1.0); + + gl_FragColor = mix(litColor, contourColor, contourTint) * opacity; +} +`]),f=l([`precision highp float; +#define GLSLIFY 1 + +attribute vec4 uv; +attribute float f; + +uniform vec3 objectOffset; +uniform mat3 permutation; +uniform mat4 model, view, projection; +uniform float height, zOffset; +uniform sampler2D colormap; + +varying float value, kill; +varying vec3 worldCoordinate; +varying vec2 planeCoordinate; +varying vec3 lightDirection, eyeDirection, surfaceNormal; +varying vec4 vColor; + +void main() { + vec3 dataCoordinate = permutation * vec3(uv.xy, height); + worldCoordinate = objectOffset + dataCoordinate; + mat4 objectOffsetTranslation = mat4(1.0) + mat4(vec4(0), vec4(0), vec4(0), vec4(objectOffset, 0)); + vec4 worldPosition = (model * objectOffsetTranslation) * vec4(dataCoordinate, 1.0); + + vec4 clipPosition = projection * (view * worldPosition); + clipPosition.z += zOffset; + + gl_Position = clipPosition; + value = f + objectOffset.z; + kill = -1.0; + planeCoordinate = uv.zw; + + vColor = texture2D(colormap, vec2(value, value)); + + //Don't do lighting for contours + surfaceNormal = vec3(1,0,0); + eyeDirection = vec3(0,1,0); + lightDirection = vec3(0,0,1); +} +`]),h=l([`precision highp float; +#define GLSLIFY 1 + +bool outOfRange(float a, float b, float p) { + return ((p > max(a, b)) || + (p < min(a, b))); +} + +bool outOfRange(vec2 a, vec2 b, vec2 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y)); +} + +bool outOfRange(vec3 a, vec3 b, vec3 p) { + return (outOfRange(a.x, b.x, p.x) || + outOfRange(a.y, b.y, p.y) || + outOfRange(a.z, b.z, p.z)); +} + +bool outOfRange(vec4 a, vec4 b, vec4 p) { + return outOfRange(a.xyz, b.xyz, p.xyz); +} + +uniform vec2 shape; +uniform vec3 clipBounds[2]; +uniform float pickId; + +varying float value, kill; +varying vec3 worldCoordinate; +varying vec2 planeCoordinate; +varying vec3 surfaceNormal; + +vec2 splitFloat(float v) { + float vh = 255.0 * v; + float upper = floor(vh); + float lower = fract(vh); + return vec2(upper / 255.0, floor(lower * 16.0) / 16.0); +} + +void main() { + if ((kill > 0.0) || + (outOfRange(clipBounds[0], clipBounds[1], worldCoordinate))) discard; + + vec2 ux = splitFloat(planeCoordinate.x / shape.x); + vec2 uy = splitFloat(planeCoordinate.y / shape.y); + gl_FragColor = vec4(pickId, ux.x, uy.x, ux.y + (uy.y/16.0)); +} +`]);a.createShader=function(d){var v=s(d,u,c,null,[{name:"uv",type:"vec4"},{name:"f",type:"vec3"},{name:"normal",type:"vec3"}]);return v.attributes.uv.location=0,v.attributes.f.location=1,v.attributes.normal.location=2,v},a.createPickShader=function(d){var v=s(d,u,h,null,[{name:"uv",type:"vec4"},{name:"f",type:"vec3"},{name:"normal",type:"vec3"}]);return v.attributes.uv.location=0,v.attributes.f.location=1,v.attributes.normal.location=2,v},a.createContourShader=function(d){var v=s(d,f,c,null,[{name:"uv",type:"vec4"},{name:"f",type:"float"}]);return v.attributes.uv.location=0,v.attributes.f.location=1,v},a.createPickContourShader=function(d){var v=s(d,f,h,null,[{name:"uv",type:"vec4"},{name:"f",type:"float"}]);return v.attributes.uv.location=0,v.attributes.f.location=1,v}},9499:function(i,a,o){"use strict";i.exports=De;var s=o(8828),l=o(2762),u=o(8116),c=o(7766),f=o(1888),h=o(6729),d=o(5298),v=o(9994),x=o(9618),b=o(3711),p=o(6760),C=o(7608),E=o(2478),A=o(6199),L=o(990),_=L.createShader,k=L.createContourShader,M=L.createPickShader,g=L.createPickContourShader,P=4*10,T=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],z=[[0,0],[0,1],[1,0],[1,1],[1,0],[0,1]],O=[[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 Pe=0;Pe<3;++Pe){var ge=O[Pe],Fe=(Pe+1)%3,ce=(Pe+2)%3;ge[Fe+0]=1,ge[ce+3]=1,ge[Pe+6]=1}})();function V(Pe,ge,Fe,ce,Ze){this.position=Pe,this.index=ge,this.uv=Fe,this.level=ce,this.dataCoordinate=Ze}var G=256;function Z(Pe,ge,Fe,ce,Ze,ct,pt,Wt,st,lt,Gt,Nt,$t,sr,wr){this.gl=Pe,this.shape=ge,this.bounds=Fe,this.objectOffset=wr,this.intensityBounds=[],this._shader=ce,this._pickShader=Ze,this._coordinateBuffer=ct,this._vao=pt,this._colorMap=Wt,this._contourShader=st,this._contourPickShader=lt,this._contourBuffer=Gt,this._contourVAO=Nt,this._contourOffsets=[[],[],[]],this._contourCounts=[[],[],[]],this._vertexCount=0,this._pickResult=new V([0,0,0],[0,0],[0,0],[0,0,0],[0,0,0]),this._dynamicBuffer=$t,this._dynamicVAO=sr,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=[x(f.mallocFloat(1024),[0,0]),x(f.mallocFloat(1024),[0,0]),x(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 H=Z.prototype;H.genColormap=function(Pe,ge){var Fe=!1,ce=v([h({colormap:Pe,nshades:G,format:"rgba"}).map(function(Ze,ct){var pt=ge?N(ct/255,ge):Ze[3];return pt<1&&(Fe=!0),[Ze[0],Ze[1],Ze[2],255*pt]})]);return d.divseq(ce,255),this.hasAlphaScale=Fe,ce},H.isTransparent=function(){return this.opacity<1||this.hasAlphaScale},H.isOpaque=function(){return!this.isTransparent()},H.pickSlots=1,H.setPickBase=function(Pe){this.pickId=Pe};function N(Pe,ge){if(!ge||!ge.length)return 1;for(var Fe=0;FePe&&Fe>0){var ce=(ge[Fe][0]-Pe)/(ge[Fe][0]-ge[Fe-1][0]);return ge[Fe][1]*(1-ce)+ce*ge[Fe-1][1]}}return 1}var j=[0,0,0],re={showSurface:!1,showContour:!1,projections:[T.slice(),T.slice(),T.slice()],clipBounds:[[[0,0,0],[0,0,0]],[[0,0,0],[0,0,0]],[[0,0,0],[0,0,0]]]};function oe(Pe,ge){var Fe,ce,Ze,ct=ge.axes&&ge.axes.lastCubeProps.axis||j,pt=ge.showSurface,Wt=ge.showContour;for(Fe=0;Fe<3;++Fe)for(pt=pt||ge.surfaceProject[Fe],ce=0;ce<3;++ce)Wt=Wt||ge.contourProject[Fe][ce];for(Fe=0;Fe<3;++Fe){var st=re.projections[Fe];for(ce=0;ce<16;++ce)st[ce]=0;for(ce=0;ce<4;++ce)st[5*ce]=1;st[5*Fe]=0,st[12+Fe]=ge.axesBounds[+(ct[Fe]>0)][Fe],p(st,Pe.model,st);var lt=re.clipBounds[Fe];for(Ze=0;Ze<2;++Ze)for(ce=0;ce<3;++ce)lt[Ze][ce]=Pe.clipBounds[Ze][ce];lt[0][Fe]=-1e8,lt[1][Fe]=1e8}return re.showSurface=pt,re.showContour=Wt,re}var _e={model:T,view:T,projection:T,inverseModel:T.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},Me=T.slice(),ke=[1,0,0,0,1,0,0,0,1];function me(Pe,ge){Pe=Pe||{};var Fe=this.gl;Fe.disable(Fe.CULL_FACE),this._colorMap.bind(0);var ce=_e;ce.model=Pe.model||T,ce.view=Pe.view||T,ce.projection=Pe.projection||T,ce.lowerBound=[this.bounds[0][0],this.bounds[0][1],this.colorBounds[0]||this.bounds[0][2]],ce.upperBound=[this.bounds[1][0],this.bounds[1][1],this.colorBounds[1]||this.bounds[1][2]],ce.objectOffset=this.objectOffset,ce.contourColor=this.contourColor[0],ce.inverseModel=C(ce.inverseModel,ce.model);for(var Ze=0;Ze<2;++Ze)for(var ct=ce.clipBounds[Ze],pt=0;pt<3;++pt)ct[pt]=Math.min(Math.max(this.clipBounds[Ze][pt],-1e8),1e8);ce.kambient=this.ambientLight,ce.kdiffuse=this.diffuseLight,ce.kspecular=this.specularLight,ce.roughness=this.roughness,ce.fresnel=this.fresnel,ce.opacity=this.opacity,ce.height=0,ce.permutation=ke,ce.vertexColor=this.vertexColor;var Wt=Me;for(p(Wt,ce.view,ce.model),p(Wt,ce.projection,Wt),C(Wt,Wt),Ze=0;Ze<3;++Ze)ce.eyePosition[Ze]=Wt[12+Ze]/Wt[15];var st=Wt[15];for(Ze=0;Ze<3;++Ze)st+=this.lightPosition[Ze]*Wt[4*Ze+3];for(Ze=0;Ze<3;++Ze){var lt=Wt[12+Ze];for(pt=0;pt<3;++pt)lt+=Wt[4*pt+Ze]*this.lightPosition[pt];ce.lightPosition[Ze]=lt/st}var Gt=oe(ce,this);if(Gt.showSurface){for(this._shader.bind(),this._shader.uniforms=ce,this._vao.bind(),this.showSurface&&this._vertexCount&&this._vao.draw(Fe.TRIANGLES,this._vertexCount),Ze=0;Ze<3;++Ze)!this.surfaceProject[Ze]||!this.vertexCount||(this._shader.uniforms.model=Gt.projections[Ze],this._shader.uniforms.clipBounds=Gt.clipBounds[Ze],this._vao.draw(Fe.TRIANGLES,this._vertexCount));this._vao.unbind()}if(Gt.showContour){var Nt=this._contourShader;ce.kambient=1,ce.kdiffuse=0,ce.kspecular=0,ce.opacity=1,Nt.bind(),Nt.uniforms=ce;var $t=this._contourVAO;for($t.bind(),Ze=0;Ze<3;++Ze)for(Nt.uniforms.permutation=O[Ze],Fe.lineWidth(this.contourWidth[Ze]*this.pixelRatio),pt=0;pt>4)/16)/255,Ze=Math.floor(ce),ct=ce-Ze,pt=ge[1]*(Pe.value[1]+(Pe.value[2]&15)/16)/255,Wt=Math.floor(pt),st=pt-Wt;Ze+=1,Wt+=1;var lt=Fe.position;lt[0]=lt[1]=lt[2]=0;for(var Gt=0;Gt<2;++Gt)for(var Nt=Gt?ct:1-ct,$t=0;$t<2;++$t)for(var sr=$t?st:1-st,wr=Ze+Gt,ur=Wt+$t,Qe=Nt*sr,Et=0;Et<3;++Et)lt[Et]+=this._field[Et].get(wr,ur)*Qe;for(var er=this._pickResult.level,Ut=0;Ut<3;++Ut)if(er[Ut]=E.le(this.contourLevels[Ut],lt[Ut]),er[Ut]<0)this.contourLevels[Ut].length>0&&(er[Ut]=0);else if(er[Ut]Math.abs(bt-lt[Ut])&&(er[Ut]+=1)}for(Fe.index[0]=ct<.5?Ze:Ze+1,Fe.index[1]=st<.5?Wt:Wt+1,Fe.uv[0]=ce/ge[0],Fe.uv[1]=pt/ge[1],Et=0;Et<3;++Et)Fe.dataCoordinate[Et]=this._field[Et].get(Fe.index[0],Fe.index[1]);return Fe},H.padField=function(Pe,ge){var Fe=ge.shape.slice(),ce=Pe.shape.slice();d.assign(Pe.lo(1,1).hi(Fe[0],Fe[1]),ge),d.assign(Pe.lo(1).hi(Fe[0],1),ge.hi(Fe[0],1)),d.assign(Pe.lo(1,ce[1]-1).hi(Fe[0],1),ge.lo(0,Fe[1]-1).hi(Fe[0],1)),d.assign(Pe.lo(0,1).hi(1,Fe[1]),ge.hi(1)),d.assign(Pe.lo(ce[0]-1,1).hi(1,Fe[1]),ge.lo(Fe[0]-1)),Pe.set(0,0,ge.get(0,0)),Pe.set(0,ce[1]-1,ge.get(0,Fe[1]-1)),Pe.set(ce[0]-1,0,ge.get(Fe[0]-1,0)),Pe.set(ce[0]-1,ce[1]-1,ge.get(Fe[0]-1,Fe[1]-1))};function Se(Pe,ge){return Array.isArray(Pe)?[ge(Pe[0]),ge(Pe[1]),ge(Pe[2])]:[ge(Pe),ge(Pe),ge(Pe)]}function Le(Pe){return Array.isArray(Pe)?Pe.length===3?[Pe[0],Pe[1],Pe[2],1]:[Pe[0],Pe[1],Pe[2],Pe[3]]:[0,0,0,1]}function Ae(Pe){if(Array.isArray(Pe)){if(Array.isArray(Pe))return[Le(Pe[0]),Le(Pe[1]),Le(Pe[2])];var ge=Le(Pe);return[ge.slice(),ge.slice(),ge.slice()]}}H.update=function(Pe){Pe=Pe||{},this.objectOffset=Pe.objectOffset||this.objectOffset,this.dirty=!0,"contourWidth"in Pe&&(this.contourWidth=Se(Pe.contourWidth,Number)),"showContour"in Pe&&(this.showContour=Se(Pe.showContour,Boolean)),"showSurface"in Pe&&(this.showSurface=!!Pe.showSurface),"contourTint"in Pe&&(this.contourTint=Se(Pe.contourTint,Boolean)),"contourColor"in Pe&&(this.contourColor=Ae(Pe.contourColor)),"contourProject"in Pe&&(this.contourProject=Se(Pe.contourProject,function(yn){return Se(yn,Boolean)})),"surfaceProject"in Pe&&(this.surfaceProject=Pe.surfaceProject),"dynamicColor"in Pe&&(this.dynamicColor=Ae(Pe.dynamicColor)),"dynamicTint"in Pe&&(this.dynamicTint=Se(Pe.dynamicTint,Number)),"dynamicWidth"in Pe&&(this.dynamicWidth=Se(Pe.dynamicWidth,Number)),"opacity"in Pe&&(this.opacity=Pe.opacity),"opacityscale"in Pe&&(this.opacityscale=Pe.opacityscale),"colorBounds"in Pe&&(this.colorBounds=Pe.colorBounds),"vertexColor"in Pe&&(this.vertexColor=Pe.vertexColor?1:0),"colormap"in Pe&&this._colorMap.setPixels(this.genColormap(Pe.colormap,this.opacityscale));var ge=Pe.field||Pe.coords&&Pe.coords[2]||null,Fe=!1;if(ge||(this._field[2].shape[0]||this._field[2].shape[2]?ge=this._field[2].lo(1,1).hi(this._field[2].shape[0]-2,this._field[2].shape[1]-2):ge=this._field[2].hi(0,0)),"field"in Pe||"coords"in Pe){var ce=(ge.shape[0]+2)*(ge.shape[1]+2);ce>this._field[2].data.length&&(f.freeFloat(this._field[2].data),this._field[2].data=f.mallocFloat(s.nextPow2(ce))),this._field[2]=x(this._field[2].data,[ge.shape[0]+2,ge.shape[1]+2]),this.padField(this._field[2],ge),this.shape=ge.shape.slice();for(var Ze=this.shape,ct=0;ct<2;++ct)this._field[2].size>this._field[ct].data.length&&(f.freeFloat(this._field[ct].data),this._field[ct].data=f.mallocFloat(this._field[2].size)),this._field[ct]=x(this._field[ct].data,[Ze[0]+2,Ze[1]+2]);if(Pe.coords){var pt=Pe.coords;if(!Array.isArray(pt)||pt.length!==3)throw new Error("gl-surface: invalid coordinates for x/y");for(ct=0;ct<2;++ct){var Wt=pt[ct];for($t=0;$t<2;++$t)if(Wt.shape[$t]!==Ze[$t])throw new Error("gl-surface: coords have incorrect shape");this.padField(this._field[ct],Wt)}}else if(Pe.ticks){var st=Pe.ticks;if(!Array.isArray(st)||st.length!==2)throw new Error("gl-surface: invalid ticks");for(ct=0;ct<2;++ct){var lt=st[ct];if((Array.isArray(lt)||lt.length)&&(lt=x(lt)),lt.shape[0]!==Ze[ct])throw new Error("gl-surface: invalid tick length");var Gt=x(lt.data,Ze);Gt.stride[ct]=lt.stride[0],Gt.stride[ct^1]=0,this.padField(this._field[ct],Gt)}}else{for(ct=0;ct<2;++ct){var Nt=[0,0];Nt[ct]=1,this._field[ct]=x(this._field[ct].data,[Ze[0]+2,Ze[1]+2],Nt,0)}this._field[0].set(0,0,0);for(var $t=0;$t0){for(var en=0;en<5;++en)di.pop();je-=1}continue e}}}Pn.push(je)}this._contourOffsets[Jr]=Hi,this._contourCounts[Jr]=Pn}var cn=f.mallocFloat(di.length);for(ct=0;ctV||z<0||z>V)throw new Error("gl-texture2d: Invalid texture size");return P._shape=[T,z],P.bind(),O.texImage2D(O.TEXTURE_2D,0,P.format,T,z,0,P.format,P.type,null),P._mipLevels=[0],P}function p(P,T,z,O,V,G){this.gl=P,this.handle=T,this.format=V,this.type=G,this._shape=[z,O],this._mipLevels=[0],this._magFilter=P.NEAREST,this._minFilter=P.NEAREST,this._wrapS=P.CLAMP_TO_EDGE,this._wrapT=P.CLAMP_TO_EDGE,this._anisoSamples=1;var Z=this,H=[this._wrapS,this._wrapT];Object.defineProperties(H,[{get:function(){return Z._wrapS},set:function(j){return Z.wrapS=j}},{get:function(){return Z._wrapT},set:function(j){return Z.wrapT=j}}]),this._wrapVector=H;var N=[this._shape[0],this._shape[1]];Object.defineProperties(N,[{get:function(){return Z._shape[0]},set:function(j){return Z.width=j}},{get:function(){return Z._shape[1]},set:function(j){return Z.height=j}}]),this._shapeVector=N}var C=p.prototype;Object.defineProperties(C,{minFilter:{get:function(){return this._minFilter},set:function(P){this.bind();var T=this.gl;if(this.type===T.FLOAT&&c.indexOf(P)>=0&&(T.getExtension("OES_texture_float_linear")||(P=T.NEAREST)),f.indexOf(P)<0)throw new Error("gl-texture2d: Unknown filter mode "+P);return T.texParameteri(T.TEXTURE_2D,T.TEXTURE_MIN_FILTER,P),this._minFilter=P}},magFilter:{get:function(){return this._magFilter},set:function(P){this.bind();var T=this.gl;if(this.type===T.FLOAT&&c.indexOf(P)>=0&&(T.getExtension("OES_texture_float_linear")||(P=T.NEAREST)),f.indexOf(P)<0)throw new Error("gl-texture2d: Unknown filter mode "+P);return T.texParameteri(T.TEXTURE_2D,T.TEXTURE_MAG_FILTER,P),this._magFilter=P}},mipSamples:{get:function(){return this._anisoSamples},set:function(P){var T=this._anisoSamples;if(this._anisoSamples=Math.max(P,1)|0,T!==this._anisoSamples){var z=this.gl.getExtension("EXT_texture_filter_anisotropic");z&&this.gl.texParameterf(this.gl.TEXTURE_2D,z.TEXTURE_MAX_ANISOTROPY_EXT,this._anisoSamples)}return this._anisoSamples}},wrapS:{get:function(){return this._wrapS},set:function(P){if(this.bind(),h.indexOf(P)<0)throw new Error("gl-texture2d: Unknown wrap mode "+P);return this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_S,P),this._wrapS=P}},wrapT:{get:function(){return this._wrapT},set:function(P){if(this.bind(),h.indexOf(P)<0)throw new Error("gl-texture2d: Unknown wrap mode "+P);return this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_T,P),this._wrapT=P}},wrap:{get:function(){return this._wrapVector},set:function(P){if(Array.isArray(P)||(P=[P,P]),P.length!==2)throw new Error("gl-texture2d: Must specify wrap mode for rows and columns");for(var T=0;T<2;++T)if(h.indexOf(P[T])<0)throw new Error("gl-texture2d: Unknown wrap mode "+P);this._wrapS=P[0],this._wrapT=P[1];var z=this.gl;return this.bind(),z.texParameteri(z.TEXTURE_2D,z.TEXTURE_WRAP_S,this._wrapS),z.texParameteri(z.TEXTURE_2D,z.TEXTURE_WRAP_T,this._wrapT),P}},shape:{get:function(){return this._shapeVector},set:function(P){if(!Array.isArray(P))P=[P|0,P|0];else if(P.length!==2)throw new Error("gl-texture2d: Invalid texture shape");return b(this,P[0]|0,P[1]|0),[P[0]|0,P[1]|0]}},width:{get:function(){return this._shape[0]},set:function(P){return P=P|0,b(this,P,this._shape[1]),P}},height:{get:function(){return this._shape[1]},set:function(P){return P=P|0,b(this,this._shape[0],P),P}}}),C.bind=function(P){var T=this.gl;return P!==void 0&&T.activeTexture(T.TEXTURE0+(P|0)),T.bindTexture(T.TEXTURE_2D,this.handle),P!==void 0?P|0:T.getParameter(T.ACTIVE_TEXTURE)-T.TEXTURE0},C.dispose=function(){this.gl.deleteTexture(this.handle)},C.generateMipmap=function(){this.bind(),this.gl.generateMipmap(this.gl.TEXTURE_2D);for(var P=Math.min(this._shape[0],this._shape[1]),T=0;P>0;++T,P>>>=1)this._mipLevels.indexOf(T)<0&&this._mipLevels.push(T)},C.setPixels=function(P,T,z,O){var V=this.gl;this.bind(),Array.isArray(T)?(O=z,z=T[1]|0,T=T[0]|0):(T=T||0,z=z||0),O=O||0;var G=v(P)?P:P.raw;if(G){var Z=this._mipLevels.indexOf(O)<0;Z?(V.texImage2D(V.TEXTURE_2D,0,this.format,this.format,this.type,G),this._mipLevels.push(O)):V.texSubImage2D(V.TEXTURE_2D,O,T,z,this.format,this.type,G)}else if(P.shape&&P.stride&&P.data){if(P.shape.length<2||T+P.shape[1]>this._shape[1]>>>O||z+P.shape[0]>this._shape[0]>>>O||T<0||z<0)throw new Error("gl-texture2d: Texture dimensions are out of bounds");A(V,T,z,O,this.format,this.type,this._mipLevels,P)}else throw new Error("gl-texture2d: Unsupported data type")};function E(P,T){return P.length===3?T[2]===1&&T[1]===P[0]*P[2]&&T[0]===P[2]:T[0]===1&&T[1]===P[0]}function A(P,T,z,O,V,G,Z,H){var N=H.dtype,j=H.shape.slice();if(j.length<2||j.length>3)throw new Error("gl-texture2d: Invalid ndarray, must be 2d or 3d");var re=0,oe=0,_e=E(j,H.stride.slice());N==="float32"?re=P.FLOAT:N==="float64"?(re=P.FLOAT,_e=!1,N="float32"):N==="uint8"?re=P.UNSIGNED_BYTE:(re=P.UNSIGNED_BYTE,_e=!1,N="uint8");var Me=1;if(j.length===2)oe=P.LUMINANCE,j=[j[0],j[1],1],H=s(H.data,j,[H.stride[0],H.stride[1],1],H.offset);else if(j.length===3){if(j[2]===1)oe=P.ALPHA;else if(j[2]===2)oe=P.LUMINANCE_ALPHA;else if(j[2]===3)oe=P.RGB;else if(j[2]===4)oe=P.RGBA;else throw new Error("gl-texture2d: Invalid shape for pixel coords");Me=j[2]}else throw new Error("gl-texture2d: Invalid shape for texture");if((oe===P.LUMINANCE||oe===P.ALPHA)&&(V===P.LUMINANCE||V===P.ALPHA)&&(oe=V),oe!==V)throw new Error("gl-texture2d: Incompatible texture format for setPixels");var ke=H.size,me=Z.indexOf(O)<0;if(me&&Z.push(O),re===G&&_e)H.offset===0&&H.data.length===ke?me?P.texImage2D(P.TEXTURE_2D,O,V,j[0],j[1],0,V,G,H.data):P.texSubImage2D(P.TEXTURE_2D,O,T,z,j[0],j[1],V,G,H.data):me?P.texImage2D(P.TEXTURE_2D,O,V,j[0],j[1],0,V,G,H.data.subarray(H.offset,H.offset+ke)):P.texSubImage2D(P.TEXTURE_2D,O,T,z,j[0],j[1],V,G,H.data.subarray(H.offset,H.offset+ke));else{var ie;G===P.FLOAT?ie=u.mallocFloat32(ke):ie=u.mallocUint8(ke);var Se=s(ie,j,[j[2],j[2]*j[0],1]);re===P.FLOAT&&G===P.UNSIGNED_BYTE?x(Se,H):l.assign(Se,H),me?P.texImage2D(P.TEXTURE_2D,O,V,j[0],j[1],0,V,G,ie.subarray(0,ke)):P.texSubImage2D(P.TEXTURE_2D,O,T,z,j[0],j[1],V,G,ie.subarray(0,ke)),G===P.FLOAT?u.freeFloat32(ie):u.freeUint8(ie)}}function L(P){var T=P.createTexture();return P.bindTexture(P.TEXTURE_2D,T),P.texParameteri(P.TEXTURE_2D,P.TEXTURE_MIN_FILTER,P.NEAREST),P.texParameteri(P.TEXTURE_2D,P.TEXTURE_MAG_FILTER,P.NEAREST),P.texParameteri(P.TEXTURE_2D,P.TEXTURE_WRAP_S,P.CLAMP_TO_EDGE),P.texParameteri(P.TEXTURE_2D,P.TEXTURE_WRAP_T,P.CLAMP_TO_EDGE),T}function _(P,T,z,O,V){var G=P.getParameter(P.MAX_TEXTURE_SIZE);if(T<0||T>G||z<0||z>G)throw new Error("gl-texture2d: Invalid texture shape");if(V===P.FLOAT&&!P.getExtension("OES_texture_float"))throw new Error("gl-texture2d: Floating point textures not supported on this platform");var Z=L(P);return P.texImage2D(P.TEXTURE_2D,0,O,T,z,0,O,V,null),new p(P,Z,T,z,O,V)}function k(P,T,z,O,V,G){var Z=L(P);return P.texImage2D(P.TEXTURE_2D,0,V,V,G,T),new p(P,Z,z,O,V,G)}function M(P,T){var z=T.dtype,O=T.shape.slice(),V=P.getParameter(P.MAX_TEXTURE_SIZE);if(O[0]<0||O[0]>V||O[1]<0||O[1]>V)throw new Error("gl-texture2d: Invalid texture size");var G=E(O,T.stride.slice()),Z=0;z==="float32"?Z=P.FLOAT:z==="float64"?(Z=P.FLOAT,G=!1,z="float32"):z==="uint8"?Z=P.UNSIGNED_BYTE:(Z=P.UNSIGNED_BYTE,G=!1,z="uint8");var H=0;if(O.length===2)H=P.LUMINANCE,O=[O[0],O[1],1],T=s(T.data,O,[T.stride[0],T.stride[1],1],T.offset);else if(O.length===3)if(O[2]===1)H=P.ALPHA;else if(O[2]===2)H=P.LUMINANCE_ALPHA;else if(O[2]===3)H=P.RGB;else if(O[2]===4)H=P.RGBA;else throw new Error("gl-texture2d: Invalid shape for pixel coords");else throw new Error("gl-texture2d: Invalid shape for texture");Z===P.FLOAT&&!P.getExtension("OES_texture_float")&&(Z=P.UNSIGNED_BYTE,G=!1);var N,j,re=T.size;if(G)T.offset===0&&T.data.length===re?N=T.data:N=T.data.subarray(T.offset,T.offset+re);else{var oe=[O[2],O[2]*O[0],1];j=u.malloc(re,z);var _e=s(j,O,oe,0);(z==="float32"||z==="float64")&&Z===P.UNSIGNED_BYTE?x(_e,T):l.assign(_e,T),N=j.subarray(0,re)}var Me=L(P);return P.texImage2D(P.TEXTURE_2D,0,H,O[0],O[1],0,H,Z,N),G||u.free(j),new p(P,Me,O[0],O[1],H,Z)}function g(P){if(arguments.length<=1)throw new Error("gl-texture2d: Missing arguments for texture2d constructor");if(c||d(P),typeof arguments[1]=="number")return _(P,arguments[1],arguments[2],arguments[3]||P.RGBA,arguments[4]||P.UNSIGNED_BYTE);if(Array.isArray(arguments[1]))return _(P,arguments[1][0]|0,arguments[1][1]|0,arguments[2]||P.RGBA,arguments[3]||P.UNSIGNED_BYTE);if(typeof arguments[1]=="object"){var T=arguments[1],z=v(T)?T:T.raw;if(z)return k(P,z,T.width|0,T.height|0,arguments[2]||P.RGBA,arguments[3]||P.UNSIGNED_BYTE);if(T.shape&&T.data&&T.stride)return M(P,T)}throw new Error("gl-texture2d: Invalid arguments for texture2d constructor")}},1433:function(i){"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(x)}},9226:function(i){i.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:function(i){i.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:function(i){i.exports=a;function a(o,s){return o[0]=s[0],o[1]=s[1],o[2]=s[2],o}},1091:function(i){i.exports=a;function a(){var o=new Float32Array(3);return o[0]=0,o[1]=0,o[2]=0,o}},5911:function(i){i.exports=a;function a(o,s,l){var u=s[0],c=s[1],f=s[2],h=l[0],d=l[1],v=l[2];return o[0]=c*v-f*d,o[1]=f*h-u*v,o[2]=u*d-c*h,o}},5455:function(i,a,o){i.exports=o(7056)},7056:function(i){i.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:function(i,a,o){i.exports=o(6690)},6690:function(i){i.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:function(i){i.exports=a;function a(o,s){return o[0]*s[0]+o[1]*s[1]+o[2]*s[2]}},2613:function(i){i.exports=1e-6},9922:function(i,a,o){i.exports=l;var s=o(2613);function l(u,c){var f=u[0],h=u[1],d=u[2],v=c[0],x=c[1],b=c[2];return Math.abs(f-v)<=s*Math.max(1,Math.abs(f),Math.abs(v))&&Math.abs(h-x)<=s*Math.max(1,Math.abs(h),Math.abs(x))&&Math.abs(d-b)<=s*Math.max(1,Math.abs(d),Math.abs(b))}},9265:function(i){i.exports=a;function a(o,s){return o[0]===s[0]&&o[1]===s[1]&&o[2]===s[2]}},2681:function(i){i.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:function(i,a,o){i.exports=l;var s=o(1091)();function l(u,c,f,h,d,v){var x,b;for(c||(c=3),f||(f=0),h?b=Math.min(h*c+f,u.length):b=u.length,x=f;x0&&(f=1/Math.sqrt(f),o[0]=s[0]*f,o[1]=s[1]*f,o[2]=s[2]*f),o}},7636:function(i){i.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:function(i){i.exports=a;function a(o,s,l,u){var c=l[1],f=l[2],h=s[1]-c,d=s[2]-f,v=Math.sin(u),x=Math.cos(u);return o[0]=s[0],o[1]=c+h*x-d*v,o[2]=f+h*v+d*x,o}},109:function(i){i.exports=a;function a(o,s,l,u){var c=l[0],f=l[2],h=s[0]-c,d=s[2]-f,v=Math.sin(u),x=Math.cos(u);return o[0]=c+d*v+h*x,o[1]=s[1],o[2]=f+d*x-h*v,o}},8692:function(i){i.exports=a;function a(o,s,l,u){var c=l[0],f=l[1],h=s[0]-c,d=s[1]-f,v=Math.sin(u),x=Math.cos(u);return o[0]=c+h*x-d*v,o[1]=f+h*v+d*x,o[2]=s[2],o}},2447:function(i){i.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:function(i){i.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:function(i){i.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:function(i){i.exports=a;function a(o,s,l,u){return o[0]=s,o[1]=l,o[2]=u,o}},6141:function(i,a,o){i.exports=o(2953)},5486:function(i,a,o){i.exports=o(3066)},2953:function(i){i.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:function(i){i.exports=a;function a(o){var s=o[0],l=o[1],u=o[2];return s*s+l*l+u*u}},2229:function(i,a,o){i.exports=o(6843)},6843:function(i){i.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:function(i){i.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:function(i){i.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:function(i){i.exports=a;function a(o,s,l){var u=s[0],c=s[1],f=s[2],h=l[0],d=l[1],v=l[2],x=l[3],b=x*u+d*f-v*c,p=x*c+v*u-h*f,C=x*f+h*c-d*u,E=-h*u-d*c-v*f;return o[0]=b*x+E*-h+p*-v-C*-d,o[1]=p*x+E*-d+C*-h-b*-v,o[2]=C*x+E*-v+b*-d-p*-h,o}},4361:function(i){i.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:function(i){i.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:function(i){i.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:function(i){i.exports=a;function a(){var o=new Float32Array(4);return o[0]=0,o[1]=0,o[2]=0,o[3]=0,o}},4691:function(i){i.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:function(i){i.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:function(i){i.exports=a;function a(o,s){return o[0]*s[0]+o[1]*s[1]+o[2]*s[2]+o[3]*s[3]}},3390:function(i){i.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:function(i,a,o){i.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:function(i){i.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:function(i){i.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:function(i){i.exports=a;function a(o,s,l,u){var c=s[0],f=s[1],h=s[2],d=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]=d+u*(l[3]-d),o}},160:function(i){i.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:function(i){i.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:function(i){i.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:function(i){i.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:function(i){i.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:function(i,a,o){var s=o(5177),l=o(9288);i.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:function(i){i.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:function(i){i.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:function(i){i.exports=a;function a(o,s,l,u,c){return o[0]=s,o[1]=l,o[2]=u,o[3]=c,o}},7960:function(i){i.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:function(i){i.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:function(i){i.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:function(i){i.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:function(i){i.exports=a;function a(o,s,l){var u=s[0],c=s[1],f=s[2],h=l[0],d=l[1],v=l[2],x=l[3],b=x*u+d*f-v*c,p=x*c+v*u-h*f,C=x*f+h*c-d*u,E=-h*u-d*c-v*f;return o[0]=b*x+E*-h+p*-v-C*-d,o[1]=p*x+E*-d+C*-h-b*-v,o[2]=C*x+E*-v+b*-d-p*-h,o[3]=s[3],o}},1848:function(i,a,o){var s=o(4905),l=o(6468);i.exports=u;function u(c){for(var f=Array.isArray(c)?c:s(c),h=0;h0)continue;Ut=Qe.slice(0,1).join("")}return Fe(Ut),ke+=Ut.length,N=N.slice(Ut.length),N.length}while(!0)}function $t(){return/[^a-fA-F0-9]/.test(Z)?(Fe(N.join("")),G=h,O):(N.push(Z),H=Z,O+1)}function sr(){return Z==="."||/[eE]/.test(Z)?(N.push(Z),G=E,H=Z,O+1):Z==="x"&&N.length===1&&N[0]==="0"?(G=g,N.push(Z),H=Z,O+1):/[^\d]/.test(Z)?(Fe(N.join("")),G=h,O):(N.push(Z),H=Z,O+1)}function wr(){return Z==="f"&&(N.push(Z),H=Z,O+=1),/[eE]/.test(Z)||(Z==="-"||Z==="+")&&/[eE]/.test(H)?(N.push(Z),H=Z,O+1):/[^\d]/.test(Z)?(Fe(N.join("")),G=h,O):(N.push(Z),H=Z,O+1)}function ur(){if(/[^\d\w_]/.test(Z)){var Qe=N.join("");return ge[Qe]?G=_:Pe[Qe]?G=L:G=A,Fe(N.join("")),G=h,O}return N.push(Z),H=Z,O+1}}},3508:function(i,a,o){var s=o(6852);s=s.slice().filter(function(l){return!/^(gl\_|texture)/.test(l)}),i.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:function(i){i.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:function(i,a,o){var s=o(620);i.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:function(i){i.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:function(i){i.exports=["<<=",">>=","++","--","<<",">>","<=",">=","==","!=","&&","||","+=","-=","*=","/=","%=","&=","^^","^=","|=","(",")","[","]",".","!","~","*","/","%","+","-","<",">","&","^","|","?",":","=",",",";","{","}"]},4905:function(i,a,o){var s=o(5874);i.exports=l;function l(u,c){var f=s(c),h=[];return h=h.concat(f(u)),h=h.concat(f(null)),h}},3236:function(i){i.exports=function(a){typeof a=="string"&&(a=[a]);for(var o=[].slice.call(arguments,1),s=[],l=0;l>1,b=-7,p=l?c-1:0,C=l?-1:1,E=o[s+p];for(p+=C,f=E&(1<<-b)-1,E>>=-b,b+=d;b>0;f=f*256+o[s+p],p+=C,b-=8);for(h=f&(1<<-b)-1,f>>=-b,b+=u;b>0;h=h*256+o[s+p],p+=C,b-=8);if(f===0)f=1-x;else{if(f===v)return h?NaN:(E?-1:1)*(1/0);h=h+Math.pow(2,u),f=f-x}return(E?-1:1)*h*Math.pow(2,f-u)},a.write=function(o,s,l,u,c,f){var h,d,v,x=f*8-c-1,b=(1<>1,C=c===23?Math.pow(2,-24)-Math.pow(2,-77):0,E=u?0:f-1,A=u?1:-1,L=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=b):(h=Math.floor(Math.log(s)/Math.LN2),s*(v=Math.pow(2,-h))<1&&(h--,v*=2),h+p>=1?s+=C/v:s+=C*Math.pow(2,1-p),s*v>=2&&(h++,v/=2),h+p>=b?(d=0,h=b):h+p>=1?(d=(s*v-1)*Math.pow(2,c),h=h+p):(d=s*Math.pow(2,p-1)*Math.pow(2,c),h=0));c>=8;o[l+E]=d&255,E+=A,d/=256,c-=8);for(h=h<0;o[l+E]=h&255,E+=A,h/=256,x-=8);o[l+E-A]|=L*128}},8954:function(i,a,o){"use strict";i.exports=p;var s=o(3250),l=o(6803).Fw;function u(C,E,A){this.vertices=C,this.adjacent=E,this.boundary=A,this.lastVisited=-1}u.prototype.flip=function(){var C=this.vertices[0];this.vertices[0]=this.vertices[1],this.vertices[1]=C;var E=this.adjacent[0];this.adjacent[0]=this.adjacent[1],this.adjacent[1]=E};function c(C,E,A){this.vertices=C,this.cell=E,this.index=A}function f(C,E){return l(C.vertices,E.vertices)}function h(C){return function(){var E=this.tuple;return C.apply(this,E)}}function d(C){var E=s[C+1];return E||(E=s),h(E)}var v=[];function x(C,E,A){this.dimension=C,this.vertices=E,this.simplices=A,this.interior=A.filter(function(k){return!k.boundary}),this.tuple=new Array(C+1);for(var L=0;L<=C;++L)this.tuple[L]=this.vertices[L];var _=v[C];_||(_=v[C]=d(C)),this.orient=_}var b=x.prototype;b.handleBoundaryDegeneracy=function(C,E){var A=this.dimension,L=this.vertices.length-1,_=this.tuple,k=this.vertices,M=[C];for(C.lastVisited=-L;M.length>0;){C=M.pop();for(var g=C.adjacent,P=0;P<=A;++P){var T=g[P];if(!(!T.boundary||T.lastVisited<=-L)){for(var z=T.vertices,O=0;O<=A;++O){var V=z[O];V<0?_[O]=E:_[O]=k[V]}var G=this.orient();if(G>0)return T;T.lastVisited=-L,G===0&&M.push(T)}}}return null},b.walk=function(C,E){var A=this.vertices.length-1,L=this.dimension,_=this.vertices,k=this.tuple,M=E?this.interior.length*Math.random()|0:this.interior.length-1,g=this.interior[M];e:for(;!g.boundary;){for(var P=g.vertices,T=g.adjacent,z=0;z<=L;++z)k[z]=_[P[z]];g.lastVisited=A;for(var z=0;z<=L;++z){var O=T[z];if(!(O.lastVisited>=A)){var V=k[z];k[z]=C;var G=this.orient();if(k[z]=V,G<0){g=O;continue e}else O.boundary?O.lastVisited=-A:O.lastVisited=A}}return}return g},b.addPeaks=function(C,E){var A=this.vertices.length-1,L=this.dimension,_=this.vertices,k=this.tuple,M=this.interior,g=this.simplices,P=[E];E.lastVisited=A,E.vertices[E.vertices.indexOf(-1)]=A,E.boundary=!1,M.push(E);for(var T=[];P.length>0;){var E=P.pop(),z=E.vertices,O=E.adjacent,V=z.indexOf(A);if(!(V<0)){for(var G=0;G<=L;++G)if(G!==V){var Z=O[G];if(!(!Z.boundary||Z.lastVisited>=A)){var H=Z.vertices;if(Z.lastVisited!==-A){for(var N=0,j=0;j<=L;++j)H[j]<0?(N=j,k[j]=C):k[j]=_[H[j]];var re=this.orient();if(re>0){H[N]=A,Z.boundary=!1,M.push(Z),P.push(Z),Z.lastVisited=A;continue}else Z.lastVisited=-A}var oe=Z.adjacent,_e=z.slice(),Me=O.slice(),ke=new u(_e,Me,!0);g.push(ke);var me=oe.indexOf(E);if(!(me<0)){oe[me]=ke,Me[V]=Z,_e[G]=-1,Me[G]=E,O[G]=ke,ke.flip();for(var j=0;j<=L;++j){var ie=_e[j];if(!(ie<0||ie===A)){for(var Se=new Array(L-1),Le=0,Ae=0;Ae<=L;++Ae){var De=_e[Ae];De<0||Ae===j||(Se[Le++]=De)}T.push(new c(Se,ke,j))}}}}}}}T.sort(f);for(var G=0;G+1=0?M[P++]=g[z]:T=z&1;if(T===(C&1)){var O=M[0];M[0]=M[1],M[1]=O}E.push(M)}}return E};function p(C,E){var A=C.length;if(A===0)throw new Error("Must have at least d+1 points");var L=C[0].length;if(A<=L)throw new Error("Must input at least d+1 points");var _=C.slice(0,L+1),k=s.apply(void 0,_);if(k===0)throw new Error("Input not in general position");for(var M=new Array(L+1),g=0;g<=L;++g)M[g]=g;k<0&&(M[0]=1,M[1]=0);for(var P=new u(M,new Array(L+1),!1),T=P.adjacent,z=new Array(L+2),g=0;g<=L;++g){for(var O=M.slice(),V=0;V<=L;++V)V===g&&(O[V]=-1);var G=O[0];O[0]=O[1],O[1]=G;var Z=new u(O,new Array(L+1),!0);T[g]=Z,z[g]=Z}z[L+1]=P;for(var g=0;g<=L;++g)for(var O=T[g].vertices,H=T[g].adjacent,V=0;V<=L;++V){var N=O[V];if(N<0){H[V]=P;continue}for(var j=0;j<=L;++j)T[j].vertices.indexOf(N)<0&&(H[V]=T[j])}for(var re=new x(L,_,z),oe=!!E,g=L+1;g3*(z+1)?x(this,T):this.left.insert(T):this.left=k([T]);else if(T[0]>this.mid)this.right?4*(this.right.count+1)>3*(z+1)?x(this,T):this.right.insert(T):this.right=k([T]);else{var O=s.ge(this.leftPoints,T,L),V=s.ge(this.rightPoints,T,_);this.leftPoints.splice(O,0,T),this.rightPoints.splice(V,0,T)}},h.remove=function(T){var z=this.count-this.leftPoints;if(T[1]3*(z-1))return b(this,T);var V=this.left.remove(T);return V===c?(this.left=null,this.count-=1,u):(V===u&&(this.count-=1),V)}else if(T[0]>this.mid){if(!this.right)return l;var G=this.left?this.left.count:0;if(4*G>3*(z-1))return b(this,T);var V=this.right.remove(T);return V===c?(this.right=null,this.count-=1,u):(V===u&&(this.count-=1),V)}else{if(this.count===1)return this.leftPoints[0]===T?c:l;if(this.leftPoints.length===1&&this.leftPoints[0]===T){if(this.left&&this.right){for(var Z=this,H=this.left;H.right;)Z=H,H=H.right;if(Z===this)H.right=this.right;else{var N=this.left,V=this.right;Z.count-=H.count,Z.right=H.left,H.left=N,H.right=V}d(this,H),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 N=s.ge(this.leftPoints,T,L);N=0&&T[V][1]>=z;--V){var G=O(T[V]);if(G)return G}}function E(T,z){for(var O=0;Othis.mid){if(this.right){var O=this.right.queryPoint(T,z);if(O)return O}return C(this.rightPoints,T,z)}else return E(this.leftPoints,z)},h.queryInterval=function(T,z,O){if(Tthis.mid&&this.right){var V=this.right.queryInterval(T,z,O);if(V)return V}return zthis.mid?C(this.rightPoints,T,O):E(this.leftPoints,O)};function A(T,z){return T-z}function L(T,z){var O=T[0]-z[0];return O||T[1]-z[1]}function _(T,z){var O=T[1]-z[1];return O||T[0]-z[0]}function k(T){if(T.length===0)return null;for(var z=[],O=0;O>1],G=[],Z=[],H=[],O=0;O13)&&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:function(i){function a(o,s,l){return o*(1-l)+s*l}i.exports=a},2652:function(i,a,o){var s=o(4335),l=o(6864),u=o(1903),c=o(9921),f=o(7608),h=o(5665),d={length:o(1387),normalize:o(3536),dot:o(244),cross:o(5911)},v=l(),x=l(),b=[0,0,0,0],p=[[0,0,0],[0,0,0],[0,0,0]],C=[0,0,0];i.exports=function(k,M,g,P,T,z){if(M||(M=[0,0,0]),g||(g=[0,0,0]),P||(P=[0,0,0]),T||(T=[0,0,0,1]),z||(z=[0,0,0,1]),!s(v,k)||(u(x,v),x[3]=0,x[7]=0,x[11]=0,x[15]=1,Math.abs(c(x)<1e-8)))return!1;var O=v[3],V=v[7],G=v[11],Z=v[12],H=v[13],N=v[14],j=v[15];if(O!==0||V!==0||G!==0){b[0]=O,b[1]=V,b[2]=G,b[3]=j;var re=f(x,x);if(!re)return!1;h(x,x),E(T,b,x)}else T[0]=T[1]=T[2]=0,T[3]=1;if(M[0]=Z,M[1]=H,M[2]=N,A(p,v),g[0]=d.length(p[0]),d.normalize(p[0],p[0]),P[0]=d.dot(p[0],p[1]),L(p[1],p[1],p[0],1,-P[0]),g[1]=d.length(p[1]),d.normalize(p[1],p[1]),P[0]/=g[1],P[1]=d.dot(p[0],p[2]),L(p[2],p[2],p[0],1,-P[1]),P[2]=d.dot(p[1],p[2]),L(p[2],p[2],p[1],1,-P[2]),g[2]=d.length(p[2]),d.normalize(p[2],p[2]),P[1]/=g[2],P[2]/=g[2],d.cross(C,p[1],p[2]),d.dot(p[0],C)<0)for(var oe=0;oe<3;oe++)g[oe]*=-1,p[oe][0]*=-1,p[oe][1]*=-1,p[oe][2]*=-1;return z[0]=.5*Math.sqrt(Math.max(1+p[0][0]-p[1][1]-p[2][2],0)),z[1]=.5*Math.sqrt(Math.max(1-p[0][0]+p[1][1]-p[2][2],0)),z[2]=.5*Math.sqrt(Math.max(1-p[0][0]-p[1][1]+p[2][2],0)),z[3]=.5*Math.sqrt(Math.max(1+p[0][0]+p[1][1]+p[2][2],0)),p[2][1]>p[1][2]&&(z[0]=-z[0]),p[0][2]>p[2][0]&&(z[1]=-z[1]),p[1][0]>p[0][1]&&(z[2]=-z[2]),!0};function E(_,k,M){var g=k[0],P=k[1],T=k[2],z=k[3];return _[0]=M[0]*g+M[4]*P+M[8]*T+M[12]*z,_[1]=M[1]*g+M[5]*P+M[9]*T+M[13]*z,_[2]=M[2]*g+M[6]*P+M[10]*T+M[14]*z,_[3]=M[3]*g+M[7]*P+M[11]*T+M[15]*z,_}function A(_,k){_[0][0]=k[0],_[0][1]=k[1],_[0][2]=k[2],_[1][0]=k[4],_[1][1]=k[5],_[1][2]=k[6],_[2][0]=k[8],_[2][1]=k[9],_[2][2]=k[10]}function L(_,k,M,g,P){_[0]=k[0]*g+M[0]*P,_[1]=k[1]*g+M[1]*P,_[2]=k[2]*g+M[2]*P}},4335:function(i){i.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:function(i,a,o){var s=o(6658),l=o(7182),u=o(2652),c=o(9921),f=o(8648),h=b(),d=b(),v=b();i.exports=x;function x(E,A,L,_){if(c(A)===0||c(L)===0)return!1;var k=u(A,h.translate,h.scale,h.skew,h.perspective,h.quaternion),M=u(L,d.translate,d.scale,d.skew,d.perspective,d.quaternion);return!k||!M?!1:(s(v.translate,h.translate,d.translate,_),s(v.skew,h.skew,d.skew,_),s(v.scale,h.scale,d.scale,_),s(v.perspective,h.perspective,d.perspective,_),f(v.quaternion,h.quaternion,d.quaternion,_),l(E,v.translate,v.scale,v.skew,v.perspective,v.quaternion),!0)}function b(){return{translate:p(),scale:p(1),skew:p(),perspective:C(),quaternion:C()}}function p(E){return[E||0,E||0,E||0]}function C(){return[0,0,0,1]}},7182:function(i,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();i.exports=function(f,h,d,v,x,b){return s.identity(f),s.fromRotationTranslation(f,b,h),f[3]=x[0],f[7]=x[1],f[11]=x[2],f[15]=x[3],s.identity(u),v[2]!==0&&(u[9]=v[2],s.multiply(f,f,u)),v[1]!==0&&(u[9]=0,u[8]=v[1],s.multiply(f,f,u)),v[0]!==0&&(u[8]=0,u[4]=v[0],s.multiply(f,f,u)),s.scale(f,f,d),f}},1811:function(i,a,o){"use strict";var s=o(2478),l=o(7442),u=o(7608),c=o(5567),f=o(2408),h=o(7089),d=o(6582),v=o(7656),x=o(2504),b=o(3536),p=[0,0,0];i.exports=L;function C(_){this._components=_.slice(),this._time=[0],this.prevMatrix=_.slice(),this.nextMatrix=_.slice(),this.computedMatrix=_.slice(),this.computedInverse=_.slice(),this.computedEye=[0,0,0],this.computedUp=[0,0,0],this.computedCenter=[0,0,0],this.computedRadius=[0],this._limits=[-1/0,1/0]}var E=C.prototype;E.recalcMatrix=function(_){var k=this._time,M=s.le(k,_),g=this.computedMatrix;if(!(M<0)){var P=this._components;if(M===k.length-1)for(var T=16*M,z=0;z<16;++z)g[z]=P[T++];else{for(var O=k[M+1]-k[M],T=16*M,V=this.prevMatrix,G=!0,z=0;z<16;++z)V[z]=P[T++];for(var Z=this.nextMatrix,z=0;z<16;++z)Z[z]=P[T++],G=G&&V[z]===Z[z];if(O<1e-6||G)for(var z=0;z<16;++z)g[z]=V[z];else l(g,V,Z,(_-k[M])/O)}var H=this.computedUp;H[0]=g[1],H[1]=g[5],H[2]=g[9],b(H,H);var N=this.computedInverse;u(N,g);var j=this.computedEye,re=N[15];j[0]=N[12]/re,j[1]=N[13]/re,j[2]=N[14]/re;for(var oe=this.computedCenter,_e=Math.exp(this.computedRadius[0]),z=0;z<3;++z)oe[z]=j[z]-g[2+4*z]*_e}},E.idle=function(_){if(!(_1&&s(u[d[p-2]],u[d[p-1]],b)<=0;)p-=1,d.pop();for(d.push(x),p=v.length;p>1&&s(u[v[p-2]],u[v[p-1]],b)>=0;)p-=1,v.pop();v.push(x)}for(var C=new Array(v.length+d.length-2),E=0,f=0,A=d.length;f0;--L)C[E++]=v[L];return C}},351:function(i,a,o){"use strict";i.exports=l;var s=o(4687);function l(u,c){c||(c=u,u=window);var f=0,h=0,d=0,v={shift:!1,alt:!1,control:!1,meta:!1},x=!1;function b(T){var z=!1;return"altKey"in T&&(z=z||T.altKey!==v.alt,v.alt=!!T.altKey),"shiftKey"in T&&(z=z||T.shiftKey!==v.shift,v.shift=!!T.shiftKey),"ctrlKey"in T&&(z=z||T.ctrlKey!==v.control,v.control=!!T.ctrlKey),"metaKey"in T&&(z=z||T.metaKey!==v.meta,v.meta=!!T.metaKey),z}function p(T,z){var O=s.x(z),V=s.y(z);"buttons"in z&&(T=z.buttons|0),(T!==f||O!==h||V!==d||b(z))&&(f=T|0,h=O||0,d=V||0,c&&c(f,h,d,v))}function C(T){p(0,T)}function E(){(f||h||d||v.shift||v.alt||v.meta||v.control)&&(h=d=0,f=0,v.shift=v.alt=v.control=v.meta=!1,c&&c(0,0,0,v))}function A(T){b(T)&&c&&c(f,h,d,v)}function L(T){s.buttons(T)===0?p(0,T):p(f,T)}function _(T){p(f|s.buttons(T),T)}function k(T){p(f&~s.buttons(T),T)}function M(){x||(x=!0,u.addEventListener("mousemove",L),u.addEventListener("mousedown",_),u.addEventListener("mouseup",k),u.addEventListener("mouseleave",C),u.addEventListener("mouseenter",C),u.addEventListener("mouseout",C),u.addEventListener("mouseover",C),u.addEventListener("blur",E),u.addEventListener("keyup",A),u.addEventListener("keydown",A),u.addEventListener("keypress",A),u!==window&&(window.addEventListener("blur",E),window.addEventListener("keyup",A),window.addEventListener("keydown",A),window.addEventListener("keypress",A)))}function g(){x&&(x=!1,u.removeEventListener("mousemove",L),u.removeEventListener("mousedown",_),u.removeEventListener("mouseup",k),u.removeEventListener("mouseleave",C),u.removeEventListener("mouseenter",C),u.removeEventListener("mouseout",C),u.removeEventListener("mouseover",C),u.removeEventListener("blur",E),u.removeEventListener("keyup",A),u.removeEventListener("keydown",A),u.removeEventListener("keypress",A),u!==window&&(window.removeEventListener("blur",E),window.removeEventListener("keyup",A),window.removeEventListener("keydown",A),window.removeEventListener("keypress",A)))}M();var P={element:u};return Object.defineProperties(P,{enabled:{get:function(){return x},set:function(T){T?M():g()},enumerable:!0},buttons:{get:function(){return f},enumerable:!0},x:{get:function(){return h},enumerable:!0},y:{get:function(){return d},enumerable:!0},mods:{get:function(){return v},enumerable:!0}}),P}},24:function(i){var a={left:0,top:0};i.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,d=s(u);return c[0]=f-d.left,c[1]=h-d.top,c}function s(l){return l===window||l===document||l===document.body?a:l.getBoundingClientRect()}},4687:function(i,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(Me=1,ie[Le++]=v(M[z],E,A,L),z+=re,_>0)for(_e=1,O=M[z],Ae=ie[Le]=v(O,E,A,L),ge=ie[Le+De],Ze=ie[Le+Fe],Wt=ie[Le+ct],(Ae!==ge||Ae!==Ze||Ae!==Wt)&&(G=M[z+V],H=M[z+Z],j=M[z+N],h(_e,Me,O,G,H,j,Ae,ge,Ze,Wt,E,A,L),st=Se[Le]=ke++),Le+=1,z+=re,_e=2;_e<_;++_e)O=M[z],Ae=ie[Le]=v(O,E,A,L),ge=ie[Le+De],Ze=ie[Le+Fe],Wt=ie[Le+ct],(Ae!==ge||Ae!==Ze||Ae!==Wt)&&(G=M[z+V],H=M[z+Z],j=M[z+N],h(_e,Me,O,G,H,j,Ae,ge,Ze,Wt,E,A,L),st=Se[Le]=ke++,Wt!==ge&&d(Se[Le+De],st,j,G,Wt,ge,E,A,L)),Le+=1,z+=re;for(z+=oe,Le=0,lt=De,De=Pe,Pe=lt,lt=Fe,Fe=ce,ce=lt,lt=ct,ct=pt,pt=lt,Me=2;Me0)for(_e=1,O=M[z],Ae=ie[Le]=v(O,E,A,L),ge=ie[Le+De],Ze=ie[Le+Fe],Wt=ie[Le+ct],(Ae!==ge||Ae!==Ze||Ae!==Wt)&&(G=M[z+V],H=M[z+Z],j=M[z+N],h(_e,Me,O,G,H,j,Ae,ge,Ze,Wt,E,A,L),st=Se[Le]=ke++,Wt!==Ze&&d(Se[Le+Fe],st,H,j,Ze,Wt,E,A,L)),Le+=1,z+=re,_e=2;_e<_;++_e)O=M[z],Ae=ie[Le]=v(O,E,A,L),ge=ie[Le+De],Ze=ie[Le+Fe],Wt=ie[Le+ct],(Ae!==ge||Ae!==Ze||Ae!==Wt)&&(G=M[z+V],H=M[z+Z],j=M[z+N],h(_e,Me,O,G,H,j,Ae,ge,Ze,Wt,E,A,L),st=Se[Le]=ke++,Wt!==Ze&&d(Se[Le+Fe],st,H,j,Ze,Wt,E,A,L),Wt!==ge&&d(Se[Le+De],st,j,G,Wt,ge,E,A,L)),Le+=1,z+=re;Me&1&&(Le=0),lt=De,De=Pe,Pe=lt,lt=Fe,Fe=ce,ce=lt,lt=ct,ct=pt,pt=lt,z+=oe}}b(Se),b(ie)}},"false,1,0":function(h,d,v,x,b){return function(C,E,A,L){var _=C.shape[0]|0,k=C.shape[1]|0,M=C.data,g=C.offset|0,P=C.stride[0]|0,T=C.stride[1]|0,z=g,O,V=-P|0,G=0,Z=-T|0,H=0,N=-P-T|0,j=0,re=T|0,oe=P-T*k|0,_e=0,Me=0,ke=0,me=2*k|0,ie=x(me),Se=x(me),Le=0,Ae=0,De=-1,Pe=-1,ge=0,Fe=-k|0,ce=k|0,Ze=0,ct=-k-1|0,pt=k-1|0,Wt=0,st=0,lt=0;for(Me=0;Me0){if(_e=1,ie[Le++]=v(M[z],E,A,L),z+=re,k>0)for(Me=1,O=M[z],Ae=ie[Le]=v(O,E,A,L),Ze=ie[Le+Fe],ge=ie[Le+De],Wt=ie[Le+ct],(Ae!==Ze||Ae!==ge||Ae!==Wt)&&(G=M[z+V],H=M[z+Z],j=M[z+N],h(_e,Me,O,G,H,j,Ae,Ze,ge,Wt,E,A,L),st=Se[Le]=ke++),Le+=1,z+=re,Me=2;Me0)for(Me=1,O=M[z],Ae=ie[Le]=v(O,E,A,L),Ze=ie[Le+Fe],ge=ie[Le+De],Wt=ie[Le+ct],(Ae!==Ze||Ae!==ge||Ae!==Wt)&&(G=M[z+V],H=M[z+Z],j=M[z+N],h(_e,Me,O,G,H,j,Ae,Ze,ge,Wt,E,A,L),st=Se[Le]=ke++,Wt!==Ze&&d(Se[Le+Fe],st,j,G,Wt,Ze,E,A,L)),Le+=1,z+=re,Me=2;Me 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 b=f.getters||[],p=new Array(v),C=0;C=0?p[C]=!0:p[C]=!1;return u(f.vertex,f.cell,f.phase,x,d,p)}},6199:function(i,a,o){"use strict";var s=o(1338),l={zero:function(L,_,k,M){var g=L[0],P=k[0];M|=0;var T=0,z=P;for(T=0;T2&&T[1]>2&&M(P.pick(-1,-1).lo(1,1).hi(T[0]-2,T[1]-2),g.pick(-1,-1,0).lo(1,1).hi(T[0]-2,T[1]-2),g.pick(-1,-1,1).lo(1,1).hi(T[0]-2,T[1]-2)),T[1]>2&&(k(P.pick(0,-1).lo(1).hi(T[1]-2),g.pick(0,-1,1).lo(1).hi(T[1]-2)),_(g.pick(0,-1,0).lo(1).hi(T[1]-2))),T[1]>2&&(k(P.pick(T[0]-1,-1).lo(1).hi(T[1]-2),g.pick(T[0]-1,-1,1).lo(1).hi(T[1]-2)),_(g.pick(T[0]-1,-1,0).lo(1).hi(T[1]-2))),T[0]>2&&(k(P.pick(-1,0).lo(1).hi(T[0]-2),g.pick(-1,0,0).lo(1).hi(T[0]-2)),_(g.pick(-1,0,1).lo(1).hi(T[0]-2))),T[0]>2&&(k(P.pick(-1,T[1]-1).lo(1).hi(T[0]-2),g.pick(-1,T[1]-1,0).lo(1).hi(T[0]-2)),_(g.pick(-1,T[1]-1,1).lo(1).hi(T[0]-2))),g.set(0,0,0,0),g.set(0,0,1,0),g.set(T[0]-1,0,0,0),g.set(T[0]-1,0,1,0),g.set(0,T[1]-1,0,0),g.set(0,T[1]-1,1,0),g.set(T[0]-1,T[1]-1,0,0),g.set(T[0]-1,T[1]-1,1,0),g}}function A(L){var _=L.join(),T=v[_];if(T)return T;for(var k=L.length,M=[b,p],g=1;g<=k;++g)M.push(C(g));var P=E,T=P.apply(void 0,M);return v[_]=T,T}i.exports=function(_,k,M){if(Array.isArray(M)||(typeof M=="string"?M=s(k.dimension,M):M=s(k.dimension,"clamp")),k.size===0)return _;if(k.dimension===0)return _.set(0),_;var g=A(M);return g(_,k)}},4317:function(i){"use strict";function a(c,f){var h=Math.floor(f),d=f-h,v=0<=h&&h0;){H<64?(_=H,H=0):(_=64,H-=64);for(var N=v[1]|0;N>0;){N<64?(k=N,N=0):(k=64,N-=64),p=G+H*g+N*P,A=Z+H*z+N*O;var j=0,re=0,oe=0,_e=T,Me=g-M*T,ke=P-_*g,me=V,ie=z-M*V,Se=O-_*z;for(oe=0;oe0;){O<64?(_=O,O=0):(_=64,O-=64);for(var V=v[0]|0;V>0;){V<64?(L=V,V=0):(L=64,V-=64),p=T+O*M+V*k,A=z+O*P+V*g;var G=0,Z=0,H=M,N=k-_*M,j=P,re=g-_*P;for(Z=0;Z0;){Z<64?(k=Z,Z=0):(k=64,Z-=64);for(var H=v[0]|0;H>0;){H<64?(L=H,H=0):(L=64,H-=64);for(var N=v[1]|0;N>0;){N<64?(_=N,N=0):(_=64,N-=64),p=V+Z*P+H*M+N*g,A=G+Z*O+H*T+N*z;var j=0,re=0,oe=0,_e=P,Me=M-k*P,ke=g-L*M,me=O,ie=T-k*O,Se=z-L*T;for(oe=0;oe<_;++oe){for(re=0;reC;){j=0,re=G-_;t:for(H=0;H_e)break t;re+=T,j+=z}for(j=G,re=G-_,H=0;H>1,N=H-V,j=H+V,re=G,oe=N,_e=H,Me=j,ke=Z,me=E+1,ie=A-1,Se=!0,Le,Ae,De,Pe,ge,Fe,ce,Ze,ct,pt=0,Wt=0,st=0,lt,Gt,Nt,$t,sr,wr,ur,Qe,Et,er,Ut,Ft,bt,yt,Yt,lr,Tr=P,Rr=b(Tr),ei=b(Tr);Gt=k*re,Nt=k*oe,lr=_;e:for(lt=0;lt0){Ae=re,re=oe,oe=Ae;break e}if(st<0)break e;lr+=z}Gt=k*Me,Nt=k*ke,lr=_;e:for(lt=0;lt0){Ae=Me,Me=ke,ke=Ae;break e}if(st<0)break e;lr+=z}Gt=k*re,Nt=k*_e,lr=_;e:for(lt=0;lt0){Ae=re,re=_e,_e=Ae;break e}if(st<0)break e;lr+=z}Gt=k*oe,Nt=k*_e,lr=_;e:for(lt=0;lt0){Ae=oe,oe=_e,_e=Ae;break e}if(st<0)break e;lr+=z}Gt=k*re,Nt=k*Me,lr=_;e:for(lt=0;lt0){Ae=re,re=Me,Me=Ae;break e}if(st<0)break e;lr+=z}Gt=k*_e,Nt=k*Me,lr=_;e:for(lt=0;lt0){Ae=_e,_e=Me,Me=Ae;break e}if(st<0)break e;lr+=z}Gt=k*oe,Nt=k*ke,lr=_;e:for(lt=0;lt0){Ae=oe,oe=ke,ke=Ae;break e}if(st<0)break e;lr+=z}Gt=k*oe,Nt=k*_e,lr=_;e:for(lt=0;lt0){Ae=oe,oe=_e,_e=Ae;break e}if(st<0)break e;lr+=z}Gt=k*Me,Nt=k*ke,lr=_;e:for(lt=0;lt0){Ae=Me,Me=ke,ke=Ae;break e}if(st<0)break e;lr+=z}for(Gt=k*re,Nt=k*oe,$t=k*_e,sr=k*Me,wr=k*ke,ur=k*G,Qe=k*H,Et=k*Z,Yt=0,lr=_,lt=0;lt0)ie--;else if(st<0){for(Gt=k*Fe,Nt=k*me,$t=k*ie,lr=_,lt=0;lt0)for(;;){ce=_+ie*k,Yt=0;e:for(lt=0;lt0){if(--ieZ){e:for(;;){for(ce=_+me*k,Yt=0,lr=_,lt=0;lt1&&C?A(p,C[0],C[1]):A(p)}var d={"uint32,1,0":function(x,b){return function(p){var C=p.data,E=p.offset|0,A=p.shape,L=p.stride,_=L[0]|0,k=A[0]|0,M=L[1]|0,g=A[1]|0,P=M,T=M,z=1;k<=32?x(0,k-1,C,E,_,M,k,g,P,T,z):b(0,k-1,C,E,_,M,k,g,P,T,z)}}};function v(x,b){var p=[b,x].join(","),C=d[p],E=c(x,b),A=h(x,b,E);return C(E,A)}i.exports=v},446:function(i,a,o){"use strict";var s=o(7640),l={};function u(c){var f=c.order,h=c.dtype,d=[f,h],v=d.join(":"),x=l[v];return x||(l[v]=x=s(f,h)),x(c),c}i.exports=u},9618:function(i,a,o){var s=o(7163),l=typeof Float64Array!="undefined";function u(b,p){return b[0]-p[0]}function c(){var b=this.stride,p=new Array(b.length),C;for(C=0;C=0&&(M=_|0,k+=P*M,g-=M),new E(this.data,g,P,k)},A.step=function(_){var k=this.shape[0],M=this.stride[0],g=this.offset,P=0,T=Math.ceil;return typeof _=="number"&&(P=_|0,P<0?(g+=M*(k-1),k=T(-k/P)):k=T(k/P),M*=P),new E(this.data,k,M,g)},A.transpose=function(_){_=_===void 0?0:_|0;var k=this.shape,M=this.stride;return new E(this.data,k[_],M[_],this.offset)},A.pick=function(_){var k=[],M=[],g=this.offset;typeof _=="number"&&_>=0?g=g+this.stride[0]*_|0:(k.push(this.shape[0]),M.push(this.stride[0]));var P=p[k.length+1];return P(this.data,k,M,g)},function(_,k,M,g){return new E(_,k[0],M[0],g)}},2:function(b,p,C){function E(L,_,k,M,g,P){this.data=L,this.shape=[_,k],this.stride=[M,g],this.offset=P|0}var A=E.prototype;return A.dtype=b,A.dimension=2,Object.defineProperty(A,"size",{get:function(){return this.shape[0]*this.shape[1]}}),Object.defineProperty(A,"order",{get:function(){return Math.abs(this.stride[0])>Math.abs(this.stride[1])?[1,0]:[0,1]}}),A.set=function(_,k,M){return b==="generic"?this.data.set(this.offset+this.stride[0]*_+this.stride[1]*k,M):this.data[this.offset+this.stride[0]*_+this.stride[1]*k]=M},A.get=function(_,k){return b==="generic"?this.data.get(this.offset+this.stride[0]*_+this.stride[1]*k):this.data[this.offset+this.stride[0]*_+this.stride[1]*k]},A.index=function(_,k){return this.offset+this.stride[0]*_+this.stride[1]*k},A.hi=function(_,k){return new E(this.data,typeof _!="number"||_<0?this.shape[0]:_|0,typeof k!="number"||k<0?this.shape[1]:k|0,this.stride[0],this.stride[1],this.offset)},A.lo=function(_,k){var M=this.offset,g=0,P=this.shape[0],T=this.shape[1],z=this.stride[0],O=this.stride[1];return typeof _=="number"&&_>=0&&(g=_|0,M+=z*g,P-=g),typeof k=="number"&&k>=0&&(g=k|0,M+=O*g,T-=g),new E(this.data,P,T,z,O,M)},A.step=function(_,k){var M=this.shape[0],g=this.shape[1],P=this.stride[0],T=this.stride[1],z=this.offset,O=0,V=Math.ceil;return typeof _=="number"&&(O=_|0,O<0?(z+=P*(M-1),M=V(-M/O)):M=V(M/O),P*=O),typeof k=="number"&&(O=k|0,O<0?(z+=T*(g-1),g=V(-g/O)):g=V(g/O),T*=O),new E(this.data,M,g,P,T,z)},A.transpose=function(_,k){_=_===void 0?0:_|0,k=k===void 0?1:k|0;var M=this.shape,g=this.stride;return new E(this.data,M[_],M[k],g[_],g[k],this.offset)},A.pick=function(_,k){var M=[],g=[],P=this.offset;typeof _=="number"&&_>=0?P=P+this.stride[0]*_|0:(M.push(this.shape[0]),g.push(this.stride[0])),typeof k=="number"&&k>=0?P=P+this.stride[1]*k|0:(M.push(this.shape[1]),g.push(this.stride[1]));var T=p[M.length+1];return T(this.data,M,g,P)},function(_,k,M,g){return new E(_,k[0],k[1],M[0],M[1],g)}},3:function(b,p,C){function E(L,_,k,M,g,P,T,z){this.data=L,this.shape=[_,k,M],this.stride=[g,P,T],this.offset=z|0}var A=E.prototype;return A.dtype=b,A.dimension=3,Object.defineProperty(A,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]}}),Object.defineProperty(A,"order",{get:function(){var _=Math.abs(this.stride[0]),k=Math.abs(this.stride[1]),M=Math.abs(this.stride[2]);return _>k?k>M?[2,1,0]:_>M?[1,2,0]:[1,0,2]:_>M?[2,0,1]:M>k?[0,1,2]:[0,2,1]}}),A.set=function(_,k,M,g){return b==="generic"?this.data.set(this.offset+this.stride[0]*_+this.stride[1]*k+this.stride[2]*M,g):this.data[this.offset+this.stride[0]*_+this.stride[1]*k+this.stride[2]*M]=g},A.get=function(_,k,M){return b==="generic"?this.data.get(this.offset+this.stride[0]*_+this.stride[1]*k+this.stride[2]*M):this.data[this.offset+this.stride[0]*_+this.stride[1]*k+this.stride[2]*M]},A.index=function(_,k,M){return this.offset+this.stride[0]*_+this.stride[1]*k+this.stride[2]*M},A.hi=function(_,k,M){return new E(this.data,typeof _!="number"||_<0?this.shape[0]:_|0,typeof k!="number"||k<0?this.shape[1]:k|0,typeof M!="number"||M<0?this.shape[2]:M|0,this.stride[0],this.stride[1],this.stride[2],this.offset)},A.lo=function(_,k,M){var g=this.offset,P=0,T=this.shape[0],z=this.shape[1],O=this.shape[2],V=this.stride[0],G=this.stride[1],Z=this.stride[2];return typeof _=="number"&&_>=0&&(P=_|0,g+=V*P,T-=P),typeof k=="number"&&k>=0&&(P=k|0,g+=G*P,z-=P),typeof M=="number"&&M>=0&&(P=M|0,g+=Z*P,O-=P),new E(this.data,T,z,O,V,G,Z,g)},A.step=function(_,k,M){var g=this.shape[0],P=this.shape[1],T=this.shape[2],z=this.stride[0],O=this.stride[1],V=this.stride[2],G=this.offset,Z=0,H=Math.ceil;return typeof _=="number"&&(Z=_|0,Z<0?(G+=z*(g-1),g=H(-g/Z)):g=H(g/Z),z*=Z),typeof k=="number"&&(Z=k|0,Z<0?(G+=O*(P-1),P=H(-P/Z)):P=H(P/Z),O*=Z),typeof M=="number"&&(Z=M|0,Z<0?(G+=V*(T-1),T=H(-T/Z)):T=H(T/Z),V*=Z),new E(this.data,g,P,T,z,O,V,G)},A.transpose=function(_,k,M){_=_===void 0?0:_|0,k=k===void 0?1:k|0,M=M===void 0?2:M|0;var g=this.shape,P=this.stride;return new E(this.data,g[_],g[k],g[M],P[_],P[k],P[M],this.offset)},A.pick=function(_,k,M){var g=[],P=[],T=this.offset;typeof _=="number"&&_>=0?T=T+this.stride[0]*_|0:(g.push(this.shape[0]),P.push(this.stride[0])),typeof k=="number"&&k>=0?T=T+this.stride[1]*k|0:(g.push(this.shape[1]),P.push(this.stride[1])),typeof M=="number"&&M>=0?T=T+this.stride[2]*M|0:(g.push(this.shape[2]),P.push(this.stride[2]));var z=p[g.length+1];return z(this.data,g,P,T)},function(_,k,M,g){return new E(_,k[0],k[1],k[2],M[0],M[1],M[2],g)}},4:function(b,p,C){function E(L,_,k,M,g,P,T,z,O,V){this.data=L,this.shape=[_,k,M,g],this.stride=[P,T,z,O],this.offset=V|0}var A=E.prototype;return A.dtype=b,A.dimension=4,Object.defineProperty(A,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]*this.shape[3]}}),Object.defineProperty(A,"order",{get:C}),A.set=function(_,k,M,g,P){return b==="generic"?this.data.set(this.offset+this.stride[0]*_+this.stride[1]*k+this.stride[2]*M+this.stride[3]*g,P):this.data[this.offset+this.stride[0]*_+this.stride[1]*k+this.stride[2]*M+this.stride[3]*g]=P},A.get=function(_,k,M,g){return b==="generic"?this.data.get(this.offset+this.stride[0]*_+this.stride[1]*k+this.stride[2]*M+this.stride[3]*g):this.data[this.offset+this.stride[0]*_+this.stride[1]*k+this.stride[2]*M+this.stride[3]*g]},A.index=function(_,k,M,g){return this.offset+this.stride[0]*_+this.stride[1]*k+this.stride[2]*M+this.stride[3]*g},A.hi=function(_,k,M,g){return new E(this.data,typeof _!="number"||_<0?this.shape[0]:_|0,typeof k!="number"||k<0?this.shape[1]:k|0,typeof M!="number"||M<0?this.shape[2]:M|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)},A.lo=function(_,k,M,g){var P=this.offset,T=0,z=this.shape[0],O=this.shape[1],V=this.shape[2],G=this.shape[3],Z=this.stride[0],H=this.stride[1],N=this.stride[2],j=this.stride[3];return typeof _=="number"&&_>=0&&(T=_|0,P+=Z*T,z-=T),typeof k=="number"&&k>=0&&(T=k|0,P+=H*T,O-=T),typeof M=="number"&&M>=0&&(T=M|0,P+=N*T,V-=T),typeof g=="number"&&g>=0&&(T=g|0,P+=j*T,G-=T),new E(this.data,z,O,V,G,Z,H,N,j,P)},A.step=function(_,k,M,g){var P=this.shape[0],T=this.shape[1],z=this.shape[2],O=this.shape[3],V=this.stride[0],G=this.stride[1],Z=this.stride[2],H=this.stride[3],N=this.offset,j=0,re=Math.ceil;return typeof _=="number"&&(j=_|0,j<0?(N+=V*(P-1),P=re(-P/j)):P=re(P/j),V*=j),typeof k=="number"&&(j=k|0,j<0?(N+=G*(T-1),T=re(-T/j)):T=re(T/j),G*=j),typeof M=="number"&&(j=M|0,j<0?(N+=Z*(z-1),z=re(-z/j)):z=re(z/j),Z*=j),typeof g=="number"&&(j=g|0,j<0?(N+=H*(O-1),O=re(-O/j)):O=re(O/j),H*=j),new E(this.data,P,T,z,O,V,G,Z,H,N)},A.transpose=function(_,k,M,g){_=_===void 0?0:_|0,k=k===void 0?1:k|0,M=M===void 0?2:M|0,g=g===void 0?3:g|0;var P=this.shape,T=this.stride;return new E(this.data,P[_],P[k],P[M],P[g],T[_],T[k],T[M],T[g],this.offset)},A.pick=function(_,k,M,g){var P=[],T=[],z=this.offset;typeof _=="number"&&_>=0?z=z+this.stride[0]*_|0:(P.push(this.shape[0]),T.push(this.stride[0])),typeof k=="number"&&k>=0?z=z+this.stride[1]*k|0:(P.push(this.shape[1]),T.push(this.stride[1])),typeof M=="number"&&M>=0?z=z+this.stride[2]*M|0:(P.push(this.shape[2]),T.push(this.stride[2])),typeof g=="number"&&g>=0?z=z+this.stride[3]*g|0:(P.push(this.shape[3]),T.push(this.stride[3]));var O=p[P.length+1];return O(this.data,P,T,z)},function(_,k,M,g){return new E(_,k[0],k[1],k[2],k[3],M[0],M[1],M[2],M[3],g)}},5:function(p,C,E){function A(_,k,M,g,P,T,z,O,V,G,Z,H){this.data=_,this.shape=[k,M,g,P,T],this.stride=[z,O,V,G,Z],this.offset=H|0}var L=A.prototype;return L.dtype=p,L.dimension=5,Object.defineProperty(L,"size",{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]*this.shape[3]*this.shape[4]}}),Object.defineProperty(L,"order",{get:E}),L.set=function(k,M,g,P,T,z){return p==="generic"?this.data.set(this.offset+this.stride[0]*k+this.stride[1]*M+this.stride[2]*g+this.stride[3]*P+this.stride[4]*T,z):this.data[this.offset+this.stride[0]*k+this.stride[1]*M+this.stride[2]*g+this.stride[3]*P+this.stride[4]*T]=z},L.get=function(k,M,g,P,T){return p==="generic"?this.data.get(this.offset+this.stride[0]*k+this.stride[1]*M+this.stride[2]*g+this.stride[3]*P+this.stride[4]*T):this.data[this.offset+this.stride[0]*k+this.stride[1]*M+this.stride[2]*g+this.stride[3]*P+this.stride[4]*T]},L.index=function(k,M,g,P,T){return this.offset+this.stride[0]*k+this.stride[1]*M+this.stride[2]*g+this.stride[3]*P+this.stride[4]*T},L.hi=function(k,M,g,P,T){return new A(this.data,typeof k!="number"||k<0?this.shape[0]:k|0,typeof M!="number"||M<0?this.shape[1]:M|0,typeof g!="number"||g<0?this.shape[2]:g|0,typeof P!="number"||P<0?this.shape[3]:P|0,typeof T!="number"||T<0?this.shape[4]:T|0,this.stride[0],this.stride[1],this.stride[2],this.stride[3],this.stride[4],this.offset)},L.lo=function(k,M,g,P,T){var z=this.offset,O=0,V=this.shape[0],G=this.shape[1],Z=this.shape[2],H=this.shape[3],N=this.shape[4],j=this.stride[0],re=this.stride[1],oe=this.stride[2],_e=this.stride[3],Me=this.stride[4];return typeof k=="number"&&k>=0&&(O=k|0,z+=j*O,V-=O),typeof M=="number"&&M>=0&&(O=M|0,z+=re*O,G-=O),typeof g=="number"&&g>=0&&(O=g|0,z+=oe*O,Z-=O),typeof P=="number"&&P>=0&&(O=P|0,z+=_e*O,H-=O),typeof T=="number"&&T>=0&&(O=T|0,z+=Me*O,N-=O),new A(this.data,V,G,Z,H,N,j,re,oe,_e,Me,z)},L.step=function(k,M,g,P,T){var z=this.shape[0],O=this.shape[1],V=this.shape[2],G=this.shape[3],Z=this.shape[4],H=this.stride[0],N=this.stride[1],j=this.stride[2],re=this.stride[3],oe=this.stride[4],_e=this.offset,Me=0,ke=Math.ceil;return typeof k=="number"&&(Me=k|0,Me<0?(_e+=H*(z-1),z=ke(-z/Me)):z=ke(z/Me),H*=Me),typeof M=="number"&&(Me=M|0,Me<0?(_e+=N*(O-1),O=ke(-O/Me)):O=ke(O/Me),N*=Me),typeof g=="number"&&(Me=g|0,Me<0?(_e+=j*(V-1),V=ke(-V/Me)):V=ke(V/Me),j*=Me),typeof P=="number"&&(Me=P|0,Me<0?(_e+=re*(G-1),G=ke(-G/Me)):G=ke(G/Me),re*=Me),typeof T=="number"&&(Me=T|0,Me<0?(_e+=oe*(Z-1),Z=ke(-Z/Me)):Z=ke(Z/Me),oe*=Me),new A(this.data,z,O,V,G,Z,H,N,j,re,oe,_e)},L.transpose=function(k,M,g,P,T){k=k===void 0?0:k|0,M=M===void 0?1:M|0,g=g===void 0?2:g|0,P=P===void 0?3:P|0,T=T===void 0?4:T|0;var z=this.shape,O=this.stride;return new A(this.data,z[k],z[M],z[g],z[P],z[T],O[k],O[M],O[g],O[P],O[T],this.offset)},L.pick=function(k,M,g,P,T){var z=[],O=[],V=this.offset;typeof k=="number"&&k>=0?V=V+this.stride[0]*k|0:(z.push(this.shape[0]),O.push(this.stride[0])),typeof M=="number"&&M>=0?V=V+this.stride[1]*M|0:(z.push(this.shape[1]),O.push(this.stride[1])),typeof g=="number"&&g>=0?V=V+this.stride[2]*g|0:(z.push(this.shape[2]),O.push(this.stride[2])),typeof P=="number"&&P>=0?V=V+this.stride[3]*P|0:(z.push(this.shape[3]),O.push(this.stride[3])),typeof T=="number"&&T>=0?V=V+this.stride[4]*T|0:(z.push(this.shape[4]),O.push(this.stride[4]));var G=C[z.length+1];return G(this.data,z,O,V)},function(k,M,g,P){return new A(k,M[0],M[1],M[2],M[3],M[4],g[0],g[1],g[2],g[3],g[4],P)}}};function h(b,p){var C=p===-1?"T":String(p),E=f[C];return p===-1?E(b):p===0?E(b,v[b][0]):E(b,v[b],c)}function d(b){if(s(b))return"buffer";if(l)switch(Object.prototype.toString.call(b)){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(b)?"array":"generic"}var v={generic:[],buffer:[],array:[],float32:[],float64:[],int8:[],int16:[],int32:[],uint8_clamped:[],uint8:[],uint16:[],uint32:[],bigint64:[],biguint64:[]};function x(b,p,C,E){if(b===void 0){var g=v.array[0];return g([])}else typeof b=="number"&&(b=[b]);p===void 0&&(p=[b.length]);var A=p.length;if(C===void 0){C=new Array(A);for(var L=A-1,_=1;L>=0;--L)C[L]=_,_*=p[L]}if(E===void 0){E=0;for(var L=0;L>>0;i.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 d=s.hi(f),v=s.lo(f);return h>f==f>0?v===u?(d+=1,v=0):v+=1:v===0?(v=u,d-=1):v-=1,s.pack(v,d)}},8406:function(i,a){var o=1e-6,s=1e-6;a.vertexNormals=function(l,u,c){for(var f=u.length,h=new Array(f),d=c===void 0?o:c,v=0;vd)for(var z=h[p],O=1/Math.sqrt(M*P),T=0;T<3;++T){var V=(T+1)%3,G=(T+2)%3;z[T]+=O*(g[V]*k[G]-g[G]*k[V])}}for(var v=0;vd)for(var O=1/Math.sqrt(Z),T=0;T<3;++T)z[T]*=O;else for(var T=0;T<3;++T)z[T]=0}return h},a.faceNormals=function(l,u,c){for(var f=l.length,h=new Array(f),d=c===void 0?s:c,v=0;vd?L=1/Math.sqrt(L):L=0;for(var p=0;p<3;++p)A[p]*=L;h[v]=A}return h}},4081:function(i){"use strict";i.exports=a;function a(o,s,l,u,c,f,h,d,v,x){var b=s+f+x;if(p>0){var p=Math.sqrt(b+1);o[0]=.5*(h-v)/p,o[1]=.5*(d-u)/p,o[2]=.5*(l-f)/p,o[3]=.5*p}else{var C=Math.max(s,f,x),p=Math.sqrt(2*C-b+1);s>=C?(o[0]=.5*p,o[1]=.5*(c+l)/p,o[2]=.5*(d+u)/p,o[3]=.5*(h-v)/p):f>=C?(o[0]=.5*(l+c)/p,o[1]=.5*p,o[2]=.5*(v+h)/p,o[3]=.5*(d-u)/p):(o[0]=.5*(u+d)/p,o[1]=.5*(h+v)/p,o[2]=.5*p,o[3]=.5*(l-c)/p)}return o}},9977:function(i,a,o){"use strict";i.exports=p;var s=o(9215),l=o(6582),u=o(7399),c=o(7608),f=o(4081);function h(C,E,A){return Math.sqrt(Math.pow(C,2)+Math.pow(E,2)+Math.pow(A,2))}function d(C,E,A,L){return Math.sqrt(Math.pow(C,2)+Math.pow(E,2)+Math.pow(A,2)+Math.pow(L,2))}function v(C,E){var A=E[0],L=E[1],_=E[2],k=E[3],M=d(A,L,_,k);M>1e-6?(C[0]=A/M,C[1]=L/M,C[2]=_/M,C[3]=k/M):(C[0]=C[1]=C[2]=0,C[3]=1)}function x(C,E,A){this.radius=s([A]),this.center=s(E),this.rotation=s(C),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 b=x.prototype;b.lastT=function(){return Math.max(this.radius.lastT(),this.center.lastT(),this.rotation.lastT())},b.recalcMatrix=function(C){this.radius.curve(C),this.center.curve(C),this.rotation.curve(C);var E=this.computedRotation;v(E,E);var A=this.computedMatrix;u(A,E);var L=this.computedCenter,_=this.computedEye,k=this.computedUp,M=Math.exp(this.computedRadius[0]);_[0]=L[0]+M*A[2],_[1]=L[1]+M*A[6],_[2]=L[2]+M*A[10],k[0]=A[1],k[1]=A[5],k[2]=A[9];for(var g=0;g<3;++g){for(var P=0,T=0;T<3;++T)P+=A[g+4*T]*_[T];A[12+g]=-P}},b.getMatrix=function(C,E){this.recalcMatrix(C);var A=this.computedMatrix;if(E){for(var L=0;L<16;++L)E[L]=A[L];return E}return A},b.idle=function(C){this.center.idle(C),this.radius.idle(C),this.rotation.idle(C)},b.flush=function(C){this.center.flush(C),this.radius.flush(C),this.rotation.flush(C)},b.pan=function(C,E,A,L){E=E||0,A=A||0,L=L||0,this.recalcMatrix(C);var _=this.computedMatrix,k=_[1],M=_[5],g=_[9],P=h(k,M,g);k/=P,M/=P,g/=P;var T=_[0],z=_[4],O=_[8],V=T*k+z*M+O*g;T-=k*V,z-=M*V,O-=g*V;var G=h(T,z,O);T/=G,z/=G,O/=G;var Z=_[2],H=_[6],N=_[10],j=Z*k+H*M+N*g,re=Z*T+H*z+N*O;Z-=j*k+re*T,H-=j*M+re*z,N-=j*g+re*O;var oe=h(Z,H,N);Z/=oe,H/=oe,N/=oe;var _e=T*E+k*A,Me=z*E+M*A,ke=O*E+g*A;this.center.move(C,_e,Me,ke);var me=Math.exp(this.computedRadius[0]);me=Math.max(1e-4,me+L),this.radius.set(C,Math.log(me))},b.rotate=function(C,E,A,L){this.recalcMatrix(C),E=E||0,A=A||0;var _=this.computedMatrix,k=_[0],M=_[4],g=_[8],P=_[1],T=_[5],z=_[9],O=_[2],V=_[6],G=_[10],Z=E*k+A*P,H=E*M+A*T,N=E*g+A*z,j=-(V*N-G*H),re=-(G*Z-O*N),oe=-(O*H-V*Z),_e=Math.sqrt(Math.max(0,1-Math.pow(j,2)-Math.pow(re,2)-Math.pow(oe,2))),Me=d(j,re,oe,_e);Me>1e-6?(j/=Me,re/=Me,oe/=Me,_e/=Me):(j=re=oe=0,_e=1);var ke=this.computedRotation,me=ke[0],ie=ke[1],Se=ke[2],Le=ke[3],Ae=me*_e+Le*j+ie*oe-Se*re,De=ie*_e+Le*re+Se*j-me*oe,Pe=Se*_e+Le*oe+me*re-ie*j,ge=Le*_e-me*j-ie*re-Se*oe;if(L){j=O,re=V,oe=G;var Fe=Math.sin(L)/h(j,re,oe);j*=Fe,re*=Fe,oe*=Fe,_e=Math.cos(E),Ae=Ae*_e+ge*j+De*oe-Pe*re,De=De*_e+ge*re+Pe*j-Ae*oe,Pe=Pe*_e+ge*oe+Ae*re-De*j,ge=ge*_e-Ae*j-De*re-Pe*oe}var ce=d(Ae,De,Pe,ge);ce>1e-6?(Ae/=ce,De/=ce,Pe/=ce,ge/=ce):(Ae=De=Pe=0,ge=1),this.rotation.set(C,Ae,De,Pe,ge)},b.lookAt=function(C,E,A,L){this.recalcMatrix(C),A=A||this.computedCenter,E=E||this.computedEye,L=L||this.computedUp;var _=this.computedMatrix;l(_,E,A,L);var k=this.computedRotation;f(k,_[0],_[1],_[2],_[4],_[5],_[6],_[8],_[9],_[10]),v(k,k),this.rotation.set(C,k[0],k[1],k[2],k[3]);for(var M=0,g=0;g<3;++g)M+=Math.pow(A[g]-E[g],2);this.radius.set(C,.5*Math.log(Math.max(M,1e-6))),this.center.set(C,A[0],A[1],A[2])},b.translate=function(C,E,A,L){this.center.move(C,E||0,A||0,L||0)},b.setMatrix=function(C,E){var A=this.computedRotation;f(A,E[0],E[1],E[2],E[4],E[5],E[6],E[8],E[9],E[10]),v(A,A),this.rotation.set(C,A[0],A[1],A[2],A[3]);var L=this.computedMatrix;c(L,E);var _=L[15];if(Math.abs(_)>1e-6){var k=L[12]/_,M=L[13]/_,g=L[14]/_;this.recalcMatrix(C);var P=Math.exp(this.computedRadius[0]);this.center.set(C,k-L[2]*P,M-L[6]*P,g-L[10]*P),this.radius.idle(C)}else this.center.idle(C),this.radius.idle(C)},b.setDistance=function(C,E){E>0&&this.radius.set(C,Math.log(E))},b.setDistanceLimits=function(C,E){C>0?C=Math.log(C):C=-1/0,E>0?E=Math.log(E):E=1/0,E=Math.max(E,C),this.radius.bounds[0][0]=C,this.radius.bounds[1][0]=E},b.getDistanceLimits=function(C){var E=this.radius.bounds;return C?(C[0]=Math.exp(E[0][0]),C[1]=Math.exp(E[1][0]),C):[Math.exp(E[0][0]),Math.exp(E[1][0])]},b.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]}},b.fromJSON=function(C){var E=this.lastT(),A=C.center;A&&this.center.set(E,A[0],A[1],A[2]);var L=C.rotation;L&&this.rotation.set(E,L[0],L[1],L[2],L[3]);var _=C.distance;_&&_>0&&this.radius.set(E,Math.log(_)),this.setDistanceLimits(C.zoomMin,C.zoomMax)};function p(C){C=C||{};var E=C.center||[0,0,0],A=C.rotation||[0,0,0,1],L=C.radius||1;E=[].slice.call(E,0,3),A=[].slice.call(A,0,4),v(A,A);var _=new x(A,E,Math.log(L));return _.setDistanceLimits(C.zoomMin,C.zoomMax),("eye"in C||"up"in C)&&_.lookAt(0,C.eye,C.center,C.up),_}},1371:function(i,a,o){"use strict";var s=o(3233);i.exports=function(u,c,f){return f=typeof f!="undefined"?f+"":" ",s(f,c)+u}},3202:function(i){i.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:function(i,a,o){"use strict";i.exports=l;var s=o(3140);function l(u,c){for(var f=c.length|0,h=u.length,d=[new Array(f),new Array(f)],v=0;v0){z=d[G][P][0],V=G;break}O=z[V^1];for(var Z=0;Z<2;++Z)for(var H=d[Z][P],N=0;N0&&(z=j,O=re,V=Z)}return T||z&&p(z,V),O}function E(g,P){var T=d[P][g][0],z=[g];p(T,P);for(var O=T[P^1],V=P;;){for(;O!==g;)z.push(O),O=C(z[z.length-2],O,!1);if(d[0][g].length+d[1][g].length===0)break;var G=z[z.length-1],Z=g,H=z[1],N=C(G,Z,!0);if(s(c[G],c[Z],c[H],c[N])<0)break;z.push(g),O=C(G,Z)}return z}function A(g,P){return P[1]===P[P.length-1]}for(var v=0;v0;){var k=d[0][v].length,M=E(v,L);A(_,M)?_.push.apply(_,M):(_.length>0&&b.push(_),_=M)}_.length>0&&b.push(_)}return b}},5609:function(i,a,o){"use strict";i.exports=l;var s=o(3134);function l(u,c){for(var f=s(u,c.length),h=new Array(c.length),d=new Array(c.length),v=[],x=0;x0;){var p=v.pop();h[p]=!1;for(var C=f[p],x=0;x0}k=k.filter(M);for(var g=k.length,P=new Array(g),T=new Array(g),_=0;_0;){var ce=Pe.pop(),Ze=Me[ce];h(Ze,function(lt,Gt){return lt-Gt});var ct=Ze.length,pt=ge[ce],Wt;if(pt===0){var H=k[ce];Wt=[H]}for(var _=0;_=0)&&(ge[st]=pt^1,Pe.push(st),pt===0)){var H=k[st];De(H)||(H.reverse(),Wt.push(H))}}pt===0&&Fe.push(Wt)}return Fe}},5085:function(i,a,o){i.exports=C;var s=o(3250)[3],l=o(4209),u=o(3352),c=o(2478);function f(){return!0}function h(E){return function(A,L){var _=E[A];return _?!!_.queryPoint(L,f):!1}}function d(E){for(var A={},L=0;L0&&A[_]===L[0])k=E[_-1];else return 1;for(var M=1;k;){var g=k.key,P=s(L,g[0],g[1]);if(g[0][0]0)M=-1,k=k.right;else return 0;else if(P>0)k=k.left;else if(P<0)M=1,k=k.right;else return 0}return M}}function x(E){return 1}function b(E){return function(L){return E(L[0],L[1])?0:1}}function p(E,A){return function(_){return E(_[0],_[1])?0:A(_)}}function C(E){for(var A=E.length,L=[],_=[],k=0,M=0;M=x?(g=1,T=x+2*C+A):(g=-C/x,T=C*g+A)):(g=0,E>=0?(P=0,T=A):-E>=p?(P=1,T=p+2*E+A):(P=-E/p,T=E*P+A));else if(P<0)P=0,C>=0?(g=0,T=A):-C>=x?(g=1,T=x+2*C+A):(g=-C/x,T=C*g+A);else{var z=1/M;g*=z,P*=z,T=g*(x*g+b*P+2*C)+P*(b*g+p*P+2*E)+A}else{var O,V,G,Z;g<0?(O=b+C,V=p+E,V>O?(G=V-O,Z=x-2*b+p,G>=Z?(g=1,P=0,T=x+2*C+A):(g=G/Z,P=1-g,T=g*(x*g+b*P+2*C)+P*(b*g+p*P+2*E)+A)):(g=0,V<=0?(P=1,T=p+2*E+A):E>=0?(P=0,T=A):(P=-E/p,T=E*P+A))):P<0?(O=b+E,V=x+C,V>O?(G=V-O,Z=x-2*b+p,G>=Z?(P=1,g=0,T=p+2*E+A):(P=G/Z,g=1-P,T=g*(x*g+b*P+2*C)+P*(b*g+p*P+2*E)+A)):(P=0,V<=0?(g=1,T=x+2*C+A):C>=0?(g=0,T=A):(g=-C/x,T=C*g+A))):(G=p+E-b-C,G<=0?(g=0,P=1,T=p+2*E+A):(Z=x-2*b+p,G>=Z?(g=1,P=0,T=x+2*C+A):(g=G/Z,P=1-g,T=g*(x*g+b*P+2*C)+P*(b*g+p*P+2*E)+A)))}for(var H=1-g-P,v=0;v0){var p=f[d-1];if(s(x,p)===0&&u(p)!==b){d-=1;continue}}f[d++]=x}}return f.length=d,f}},3233:function(i){"use strict";var a="",o;i.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:function(i,a,o){i.exports=o.g.performance&&o.g.performance.now?function(){return performance.now()}:Date.now||function(){return+new Date}},7004:function(i){"use strict";i.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 d=l-f,v=h-d;v&&(o[--u]=l,l=v)}for(var x=0,c=u;c0){if(V<=0)return G;Z=O+V}else if(O<0){if(V>=0)return G;Z=-(O+V)}else return G;var H=d*Z;return G>=H||G<=-H?G:E(P,T,z)},function(P,T,z,O){var V=P[0]-O[0],G=T[0]-O[0],Z=z[0]-O[0],H=P[1]-O[1],N=T[1]-O[1],j=z[1]-O[1],re=P[2]-O[2],oe=T[2]-O[2],_e=z[2]-O[2],Me=G*j,ke=Z*N,me=Z*H,ie=V*j,Se=V*N,Le=G*H,Ae=re*(Me-ke)+oe*(me-ie)+_e*(Se-Le),De=(Math.abs(Me)+Math.abs(ke))*Math.abs(re)+(Math.abs(me)+Math.abs(ie))*Math.abs(oe)+(Math.abs(Se)+Math.abs(Le))*Math.abs(_e),Pe=v*De;return Ae>Pe||-Ae>Pe?Ae:A(P,T,z,O)}];function _(g){var P=L[g.length];return P||(P=L[g.length]=C(g.length)),P.apply(void 0,g)}function k(g,P,T,z,O,V,G){return function(H,N,j,re,oe){switch(arguments.length){case 0:case 1:return 0;case 2:return z(H,N);case 3:return O(H,N,j);case 4:return V(H,N,j,re);case 5:return G(H,N,j,re,oe)}for(var _e=new Array(arguments.length),Me=0;Me0&&x>0||v<0&&x<0)return!1;var b=s(h,c,f),p=s(d,c,f);return b>0&&p>0||b<0&&p<0?!1:v===0&&x===0&&b===0&&p===0?l(c,f,h,d):!0}},8545:function(i){"use strict";i.exports=o;function a(s,l){var u=s+l,c=u-s,f=u-c,h=l-c,d=s-f,v=d+h;return v?[v,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),d=0,v=0,x=0,b=Math.abs,p=s[v],C=b(p),E=-l[x],A=b(E),L,_;C=c?(L=p,v+=1,v=c?(L=p,v+=1,v>1,E=f[2*C+1];if(E===x)return C;x>1,E=f[2*C+1];if(E===x)return C;x>1,E=f[2*C+1];if(E===x)return C;x>1,E=f[2*C+1];if(E===x)return C;x>1,Z=d(P[G],T);Z<=0?(Z===0&&(V=G),z=G+1):Z>0&&(O=G-1)}return V}s=p;function C(P,T){for(var z=new Array(P.length),O=0,V=z.length;O=P.length||d(P[Me],G)!==0););}return z}s=C;function E(P,T){if(!T)return C(b(L(P,0)),P,0);for(var z=new Array(T),O=0;O>>j&1&&N.push(V[j]);T.push(N)}return x(T)}s=A;function L(P,T){if(T<0)return[];for(var z=[],O=(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,d=7;for(f>>>=1;f;f>>>=1)h<<=1,h|=f&1,--d;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:function(i,a,o){"use strict";"use restrict";var s=o(3105),l=o(4623);function u(g){for(var P=0,T=Math.max,z=0,O=g.length;z>1,G=h(g[V],P);G<=0?(G===0&&(O=V),T=V+1):G>0&&(z=V-1)}return O}a.findCell=b;function p(g,P){for(var T=new Array(g.length),z=0,O=T.length;z=g.length||h(g[_e],V)!==0););}return T}a.incidence=p;function C(g,P){if(!P)return p(x(A(g,0)),g,0);for(var T=new Array(P),z=0;z>>N&1&&H.push(O[N]);P.push(H)}return v(P)}a.explode=E;function A(g,P){if(P<0)return[];for(var T=[],z=(1<>1:(ie>>1)-1}function z(ie){for(var Se=P(ie);;){var Le=Se,Ae=2*ie+1,De=2*(ie+1),Pe=ie;if(Ae0;){var Le=T(ie);if(Le>=0){var Ae=P(Le);if(Se0){var ie=H[0];return g(0,re-1),re-=1,z(0),ie}return-1}function G(ie,Se){var Le=H[ie];return C[Le]===Se?ie:(C[Le]=-1/0,O(ie),V(),C[Le]=Se,re+=1,O(re-1))}function Z(ie){if(!E[ie]){E[ie]=!0;var Se=b[ie],Le=p[ie];b[Le]>=0&&(b[Le]=Se),p[Se]>=0&&(p[Se]=Le),N[Se]>=0&&G(N[Se],M(Se)),N[Le]>=0&&G(N[Le],M(Le))}}for(var H=[],N=new Array(v),A=0;A>1;A>=0;--A)z(A);for(;;){var oe=V();if(oe<0||C[oe]>d)break;Z(oe)}for(var _e=[],A=0;A=0&&Le>=0&&Se!==Le){var Ae=N[Se],De=N[Le];Ae!==De&&me.push([Ae,De])}}),l.unique(l.normalize(me)),{positions:_e,edges:me}}},1303:function(i,a,o){"use strict";i.exports=u;var s=o(3250);function l(c,f){var h,d;if(f[0][0]f[1][0])h=f[1],d=f[0];else{var v=Math.min(c[0][1],c[1][1]),x=Math.max(c[0][1],c[1][1]),b=Math.min(f[0][1],f[1][1]),p=Math.max(f[0][1],f[1][1]);return xp?v-p:x-p}var C,E;c[0][1]f[1][0])h=f[1],d=f[0];else return l(f,c);var v,x;if(c[0][0]c[1][0])v=c[1],x=c[0];else return-l(c,f);var b=s(h,d,x),p=s(h,d,v);if(b<0){if(p<=0)return b}else if(b>0){if(p>=0)return b}else if(p)return p;if(b=s(x,v,d),p=s(x,v,h),b<0){if(p<=0)return b}else if(b>0){if(p>=0)return b}else if(p)return p;return d[0]-x[0]}},4209:function(i,a,o){"use strict";i.exports=p;var s=o(2478),l=o(3840),u=o(3250),c=o(1303);function f(C,E,A){this.slabs=C,this.coordinates=E,this.horizontal=A}var h=f.prototype;function d(C,E){return C.y-E}function v(C,E){for(var A=null;C;){var L=C.key,_,k;L[0][0]0)if(E[0]!==L[1][0])A=C,C=C.right;else{var g=v(C.right,E);if(g)return g;C=C.left}else{if(E[0]!==L[1][0])return C;var g=v(C.right,E);if(g)return g;C=C.left}}return A}h.castUp=function(C){var E=s.le(this.coordinates,C[0]);if(E<0)return-1;var A=this.slabs[E],L=v(this.slabs[E],C),_=-1;if(L&&(_=L.value),this.coordinates[E]===C[0]){var k=null;if(L&&(k=L.key),E>0){var M=v(this.slabs[E-1],C);M&&(k?c(M.key,k)>0&&(k=M.key,_=M.value):(_=M.value,k=M.key))}var g=this.horizontal[E];if(g.length>0){var P=s.ge(g,C[1],d);if(P=g.length)return _;T=g[P]}}if(T.start)if(k){var z=u(k[0],k[1],[C[0],T.y]);k[0][0]>k[1][0]&&(z=-z),z>0&&(_=T.index)}else _=T.index;else T.y!==C[1]&&(_=T.index)}}}return _};function x(C,E,A,L){this.y=C,this.index=E,this.start=A,this.closed=L}function b(C,E,A,L){this.x=C,this.segment=E,this.create=A,this.index=L}function p(C){for(var E=C.length,A=2*E,L=new Array(A),_=0;_1&&(E=1);for(var A=1-E,L=v.length,_=new Array(L),k=0;k0||C>0&&_<0){var k=c(E,_,A,C);b.push(k),p.push(k.slice())}_<0?p.push(A.slice()):_>0?b.push(A.slice()):(b.push(A.slice()),p.push(A.slice())),C=_}return{positive:b,negative:p}}function h(v,x){for(var b=[],p=u(v[v.length-1],x),C=v[v.length-1],E=v[0],A=0;A0||p>0&&L<0)&&b.push(c(C,L,E,p)),L>=0&&b.push(E.slice()),p=L}return b}function d(v,x){for(var b=[],p=u(v[v.length-1],x),C=v[v.length-1],E=v[0],A=0;A0||p>0&&L<0)&&b.push(c(C,L,E,p)),L<=0&&b.push(E.slice()),p=L}return b}},3387:function(i,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(v){return f(d(v),arguments)}function c(v,x){return u.apply(null,[v].concat(x||[]))}function f(v,x){var b=1,p=v.length,C,E="",A,L,_,k,M,g,P,T;for(A=0;A=0),_.type){case"b":C=parseInt(C,10).toString(2);break;case"c":C=String.fromCharCode(parseInt(C,10));break;case"d":case"i":C=parseInt(C,10);break;case"j":C=JSON.stringify(C,null,_.width?parseInt(_.width):0);break;case"e":C=_.precision?parseFloat(C).toExponential(_.precision):parseFloat(C).toExponential();break;case"f":C=_.precision?parseFloat(C).toFixed(_.precision):parseFloat(C);break;case"g":C=_.precision?String(Number(C.toPrecision(_.precision))):parseFloat(C);break;case"o":C=(parseInt(C,10)>>>0).toString(8);break;case"s":C=String(C),C=_.precision?C.substring(0,_.precision):C;break;case"t":C=String(!!C),C=_.precision?C.substring(0,_.precision):C;break;case"T":C=Object.prototype.toString.call(C).slice(8,-1).toLowerCase(),C=_.precision?C.substring(0,_.precision):C;break;case"u":C=parseInt(C,10)>>>0;break;case"v":C=C.valueOf(),C=_.precision?C.substring(0,_.precision):C;break;case"x":C=(parseInt(C,10)>>>0).toString(16);break;case"X":C=(parseInt(C,10)>>>0).toString(16).toUpperCase();break}l.json.test(_.type)?E+=C:(l.number.test(_.type)&&(!P||_.sign)?(T=P?"+":"-",C=C.toString().replace(l.sign,"")):T="",M=_.pad_char?_.pad_char==="0"?"0":_.pad_char.charAt(1):" ",g=_.width-(T+C).length,k=_.width&&g>0?M.repeat(g):"",E+=_.align?T+C+k:M==="0"?T+k+C:k+T+C)}return E}var h=Object.create(null);function d(v){if(h[v])return h[v];for(var x=v,b,p=[],C=0;x;){if((b=l.text.exec(x))!==null)p.push(b[0]);else if((b=l.modulo.exec(x))!==null)p.push("%");else if((b=l.placeholder.exec(x))!==null){if(b[2]){C|=1;var E=[],A=b[2],L=[];if((L=l.key.exec(A))!==null)for(E.push(L[1]);(A=A.substring(L[0].length))!=="";)if((L=l.key_access.exec(A))!==null)E.push(L[1]);else if((L=l.index_access.exec(A))!==null)E.push(L[1]);else throw new SyntaxError("[sprintf] failed to parse named argument key");else throw new SyntaxError("[sprintf] failed to parse named argument key");b[2]=E}else C|=2;if(C===3)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");p.push({placeholder:b[0],param_no:b[1],keys:b[2],sign:b[3],pad_char:b[4],align:b[5],width:b[6],precision:b[7],type:b[8]})}else throw new SyntaxError("[sprintf] unexpected placeholder");x=x.substring(b[0].length)}return h[v]=p}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,i),s!==void 0&&(i.exports=s))})()},3711:function(i,a,o){"use strict";i.exports=d;var s=o(2640),l=o(781),u={"2d":function(v,x,b){var p=v({order:x,scalarArguments:3,getters:b==="generic"?[0]:void 0,phase:function(E,A,L,_){return E>_|0},vertex:function(E,A,L,_,k,M,g,P,T,z,O,V,G){var Z=(g<<0)+(P<<1)+(T<<2)+(z<<3)|0;if(!(Z===0||Z===15))switch(Z){case 0:O.push([E-.5,A-.5]);break;case 1:O.push([E-.25-.25*(_+L-2*G)/(L-_),A-.25-.25*(k+L-2*G)/(L-k)]);break;case 2:O.push([E-.75-.25*(-_-L+2*G)/(_-L),A-.25-.25*(M+_-2*G)/(_-M)]);break;case 3:O.push([E-.5,A-.5-.5*(k+L+M+_-4*G)/(L-k+_-M)]);break;case 4:O.push([E-.25-.25*(M+k-2*G)/(k-M),A-.75-.25*(-k-L+2*G)/(k-L)]);break;case 5:O.push([E-.5-.5*(_+L+M+k-4*G)/(L-_+k-M),A-.5]);break;case 6:O.push([E-.5-.25*(-_-L+M+k)/(_-L+k-M),A-.5-.25*(-k-L+M+_)/(k-L+_-M)]);break;case 7:O.push([E-.75-.25*(M+k-2*G)/(k-M),A-.75-.25*(M+_-2*G)/(_-M)]);break;case 8:O.push([E-.75-.25*(-M-k+2*G)/(M-k),A-.75-.25*(-M-_+2*G)/(M-_)]);break;case 9:O.push([E-.5-.25*(_+L+-M-k)/(L-_+M-k),A-.5-.25*(k+L+-M-_)/(L-k+M-_)]);break;case 10:O.push([E-.5-.5*(-_-L+-M-k+4*G)/(_-L+M-k),A-.5]);break;case 11:O.push([E-.25-.25*(-M-k+2*G)/(M-k),A-.75-.25*(k+L-2*G)/(L-k)]);break;case 12:O.push([E-.5,A-.5-.5*(-k-L+-M-_+4*G)/(k-L+M-_)]);break;case 13:O.push([E-.75-.25*(_+L-2*G)/(L-_),A-.25-.25*(-M-_+2*G)/(M-_)]);break;case 14:O.push([E-.25-.25*(-_-L+2*G)/(_-L),A-.25-.25*(-k-L+2*G)/(k-L)]);break;case 15:O.push([E-.5,A-.5]);break}},cell:function(E,A,L,_,k,M,g,P,T){k?P.push([E,A]):P.push([A,E])}});return function(C,E){var A=[],L=[];return p(C,A,L,E),{positions:A,cells:L}}}};function c(v,x){var b=v.length+"d",p=u[b];if(p)return p(s,v,x)}function f(v,x){for(var b=l(v,x),p=b.length,C=new Array(p),E=new Array(p),A=0;AMath.max(_,k)?M[2]=1:_>Math.max(L,k)?M[0]=1:M[1]=1;for(var g=0,P=0,T=0;T<3;++T)g+=A[T]*A[T],P+=M[T]*A[T];for(var T=0;T<3;++T)M[T]-=P/g*A[T];return f(M,M),M}function b(A,L,_,k,M,g,P,T){this.center=s(_),this.up=s(k),this.right=s(M),this.radius=s([g]),this.angle=s([P,T]),this.angle.bounds=[[-1/0,-Math.PI/2],[1/0,Math.PI/2]],this.setDistanceLimits(A,L),this.computedCenter=this.center.curve(0),this.computedUp=this.up.curve(0),this.computedRight=this.right.curve(0),this.computedRadius=this.radius.curve(0),this.computedAngle=this.angle.curve(0),this.computedToward=[0,0,0],this.computedEye=[0,0,0],this.computedMatrix=new Array(16);for(var z=0;z<16;++z)this.computedMatrix[z]=.5;this.recalcMatrix(0)}var p=b.prototype;p.setDistanceLimits=function(A,L){A>0?A=Math.log(A):A=-1/0,L>0?L=Math.log(L):L=1/0,L=Math.max(L,A),this.radius.bounds[0][0]=A,this.radius.bounds[1][0]=L},p.getDistanceLimits=function(A){var L=this.radius.bounds[0];return A?(A[0]=Math.exp(L[0][0]),A[1]=Math.exp(L[1][0]),A):[Math.exp(L[0][0]),Math.exp(L[1][0])]},p.recalcMatrix=function(A){this.center.curve(A),this.up.curve(A),this.right.curve(A),this.radius.curve(A),this.angle.curve(A);for(var L=this.computedUp,_=this.computedRight,k=0,M=0,g=0;g<3;++g)M+=L[g]*_[g],k+=L[g]*L[g];for(var P=Math.sqrt(k),T=0,g=0;g<3;++g)_[g]-=L[g]*M/k,T+=_[g]*_[g],L[g]/=P;for(var z=Math.sqrt(T),g=0;g<3;++g)_[g]/=z;var O=this.computedToward;c(O,L,_),f(O,O);for(var V=Math.exp(this.computedRadius[0]),G=this.computedAngle[0],Z=this.computedAngle[1],H=Math.cos(G),N=Math.sin(G),j=Math.cos(Z),re=Math.sin(Z),oe=this.computedCenter,_e=H*j,Me=N*j,ke=re,me=-H*re,ie=-N*re,Se=j,Le=this.computedEye,Ae=this.computedMatrix,g=0;g<3;++g){var De=_e*_[g]+Me*O[g]+ke*L[g];Ae[4*g+1]=me*_[g]+ie*O[g]+Se*L[g],Ae[4*g+2]=De,Ae[4*g+3]=0}var Pe=Ae[1],ge=Ae[5],Fe=Ae[9],ce=Ae[2],Ze=Ae[6],ct=Ae[10],pt=ge*ct-Fe*Ze,Wt=Fe*ce-Pe*ct,st=Pe*Ze-ge*ce,lt=d(pt,Wt,st);pt/=lt,Wt/=lt,st/=lt,Ae[0]=pt,Ae[4]=Wt,Ae[8]=st;for(var g=0;g<3;++g)Le[g]=oe[g]+Ae[2+4*g]*V;for(var g=0;g<3;++g){for(var T=0,Gt=0;Gt<3;++Gt)T+=Ae[g+4*Gt]*Le[Gt];Ae[12+g]=-T}Ae[15]=1},p.getMatrix=function(A,L){this.recalcMatrix(A);var _=this.computedMatrix;if(L){for(var k=0;k<16;++k)L[k]=_[k];return L}return _};var C=[0,0,0];p.rotate=function(A,L,_,k){if(this.angle.move(A,L,_),k){this.recalcMatrix(A);var M=this.computedMatrix;C[0]=M[2],C[1]=M[6],C[2]=M[10];for(var g=this.computedUp,P=this.computedRight,T=this.computedToward,z=0;z<3;++z)M[4*z]=g[z],M[4*z+1]=P[z],M[4*z+2]=T[z];u(M,M,k,C);for(var z=0;z<3;++z)g[z]=M[4*z],P[z]=M[4*z+1];this.up.set(A,g[0],g[1],g[2]),this.right.set(A,P[0],P[1],P[2])}},p.pan=function(A,L,_,k){L=L||0,_=_||0,k=k||0,this.recalcMatrix(A);var M=this.computedMatrix,g=Math.exp(this.computedRadius[0]),P=M[1],T=M[5],z=M[9],O=d(P,T,z);P/=O,T/=O,z/=O;var V=M[0],G=M[4],Z=M[8],H=V*P+G*T+Z*z;V-=P*H,G-=T*H,Z-=z*H;var N=d(V,G,Z);V/=N,G/=N,Z/=N;var j=V*L+P*_,re=G*L+T*_,oe=Z*L+z*_;this.center.move(A,j,re,oe);var _e=Math.exp(this.computedRadius[0]);_e=Math.max(1e-4,_e+k),this.radius.set(A,Math.log(_e))},p.translate=function(A,L,_,k){this.center.move(A,L||0,_||0,k||0)},p.setMatrix=function(A,L,_,k){var M=1;typeof _=="number"&&(M=_|0),(M<0||M>3)&&(M=1);var g=(M+2)%3,P=(M+1)%3;L||(this.recalcMatrix(A),L=this.computedMatrix);var T=L[M],z=L[M+4],O=L[M+8];if(k){var G=Math.abs(T),Z=Math.abs(z),H=Math.abs(O),N=Math.max(G,Z,H);G===N?(T=T<0?-1:1,z=O=0):H===N?(O=O<0?-1:1,T=z=0):(z=z<0?-1:1,T=O=0)}else{var V=d(T,z,O);T/=V,z/=V,O/=V}var j=L[g],re=L[g+4],oe=L[g+8],_e=j*T+re*z+oe*O;j-=T*_e,re-=z*_e,oe-=O*_e;var Me=d(j,re,oe);j/=Me,re/=Me,oe/=Me;var ke=z*oe-O*re,me=O*j-T*oe,ie=T*re-z*j,Se=d(ke,me,ie);ke/=Se,me/=Se,ie/=Se,this.center.jump(A,ur,Qe,Et),this.radius.idle(A),this.up.jump(A,T,z,O),this.right.jump(A,j,re,oe);var Le,Ae;if(M===2){var De=L[1],Pe=L[5],ge=L[9],Fe=De*j+Pe*re+ge*oe,ce=De*ke+Pe*me+ge*ie;Wt<0?Le=-Math.PI/2:Le=Math.PI/2,Ae=Math.atan2(ce,Fe)}else{var Ze=L[2],ct=L[6],pt=L[10],Wt=Ze*T+ct*z+pt*O,st=Ze*j+ct*re+pt*oe,lt=Ze*ke+ct*me+pt*ie;Le=Math.asin(v(Wt)),Ae=Math.atan2(lt,st)}this.angle.jump(A,Ae,Le),this.recalcMatrix(A);var Gt=L[2],Nt=L[6],$t=L[10],sr=this.computedMatrix;l(sr,L);var wr=sr[15],ur=sr[12]/wr,Qe=sr[13]/wr,Et=sr[14]/wr,er=Math.exp(this.computedRadius[0]);this.center.jump(A,ur-Gt*er,Qe-Nt*er,Et-$t*er)},p.lastT=function(){return Math.max(this.center.lastT(),this.up.lastT(),this.right.lastT(),this.radius.lastT(),this.angle.lastT())},p.idle=function(A){this.center.idle(A),this.up.idle(A),this.right.idle(A),this.radius.idle(A),this.angle.idle(A)},p.flush=function(A){this.center.flush(A),this.up.flush(A),this.right.flush(A),this.radius.flush(A),this.angle.flush(A)},p.setDistance=function(A,L){L>0&&this.radius.set(A,Math.log(L))},p.lookAt=function(A,L,_,k){this.recalcMatrix(A),L=L||this.computedEye,_=_||this.computedCenter,k=k||this.computedUp;var M=k[0],g=k[1],P=k[2],T=d(M,g,P);if(!(T<1e-6)){M/=T,g/=T,P/=T;var z=L[0]-_[0],O=L[1]-_[1],V=L[2]-_[2],G=d(z,O,V);if(!(G<1e-6)){z/=G,O/=G,V/=G;var Z=this.computedRight,H=Z[0],N=Z[1],j=Z[2],re=M*H+g*N+P*j;H-=re*M,N-=re*g,j-=re*P;var oe=d(H,N,j);if(!(oe<.01&&(H=g*V-P*O,N=P*z-M*V,j=M*O-g*z,oe=d(H,N,j),oe<1e-6))){H/=oe,N/=oe,j/=oe,this.up.set(A,M,g,P),this.right.set(A,H,N,j),this.center.set(A,_[0],_[1],_[2]),this.radius.set(A,Math.log(G));var _e=g*j-P*N,Me=P*H-M*j,ke=M*N-g*H,me=d(_e,Me,ke);_e/=me,Me/=me,ke/=me;var ie=M*z+g*O+P*V,Se=H*z+N*O+j*V,Le=_e*z+Me*O+ke*V,Ae=Math.asin(v(ie)),De=Math.atan2(Le,Se),Pe=this.angle._state,ge=Pe[Pe.length-1],Fe=Pe[Pe.length-2];ge=ge%(2*Math.PI);var ce=Math.abs(ge+2*Math.PI-De),Ze=Math.abs(ge-De),ct=Math.abs(ge-2*Math.PI-De);ce0?j.pop():new ArrayBuffer(H)}a.mallocArrayBuffer=C;function E(Z){return new Uint8Array(C(Z),0,Z)}a.mallocUint8=E;function A(Z){return new Uint16Array(C(2*Z),0,Z)}a.mallocUint16=A;function L(Z){return new Uint32Array(C(4*Z),0,Z)}a.mallocUint32=L;function _(Z){return new Int8Array(C(Z),0,Z)}a.mallocInt8=_;function k(Z){return new Int16Array(C(2*Z),0,Z)}a.mallocInt16=k;function M(Z){return new Int32Array(C(4*Z),0,Z)}a.mallocInt32=M;function g(Z){return new Float32Array(C(4*Z),0,Z)}a.mallocFloat32=a.mallocFloat=g;function P(Z){return new Float64Array(C(8*Z),0,Z)}a.mallocFloat64=a.mallocDouble=P;function T(Z){return c?new Uint8ClampedArray(C(Z),0,Z):E(Z)}a.mallocUint8Clamped=T;function z(Z){return f?new BigUint64Array(C(8*Z),0,Z):null}a.mallocBigUint64=z;function O(Z){return h?new BigInt64Array(C(8*Z),0,Z):null}a.mallocBigInt64=O;function V(Z){return new DataView(C(Z),0,Z)}a.mallocDataView=V;function G(Z){Z=s.nextPow2(Z);var H=s.log2(Z),N=x[H];return N.length>0?N.pop():new u(Z)}a.mallocBuffer=G,a.clearCache=function(){for(var H=0;H<32;++H)d.UINT8[H].length=0,d.UINT16[H].length=0,d.UINT32[H].length=0,d.INT8[H].length=0,d.INT16[H].length=0,d.INT32[H].length=0,d.FLOAT[H].length=0,d.DOUBLE[H].length=0,d.BIGUINT64[H].length=0,d.BIGINT64[H].length=0,d.UINT8C[H].length=0,v[H].length=0,x[H].length=0}},1755:function(i){"use strict";"use restrict";i.exports=a;function a(s){this.roots=new Array(s),this.ranks=new Array(s);for(var l=0;l",j="",re=N.length,oe=j.length,_e=G[0]===C||G[0]===L,Me=0,ke=-oe;Me>-1&&(Me=Z.indexOf(N,Me),!(Me===-1||(ke=Z.indexOf(j,Me+re),ke===-1)||ke<=Me));){for(var me=Me;me=ke)H[me]=null,Z=Z.substr(0,me)+" "+Z.substr(me+1);else if(H[me]!==null){var ie=H[me].indexOf(G[0]);ie===-1?H[me]+=G:_e&&(H[me]=H[me].substr(0,ie+1)+(1+parseInt(H[me][ie+1]))+H[me].substr(ie+2))}var Se=Me+re,Le=Z.substr(Se,ke-Se),Ae=Le.indexOf(N);Ae!==-1?Me=Ae:Me=ke+oe}return H}function M(V,G,Z){for(var H=G.textAlign||"start",N=G.textBaseline||"alphabetic",j=[1<<30,1<<30],re=[0,0],oe=V.length,_e=0;_e/g,` +`):Z=Z.replace(/\/g," ");var re="",oe=[];for(ge=0;ge-1?parseInt(Qe[1+Ut]):0,yt=Ft>-1?parseInt(Et[1+Ft]):0;bt!==yt&&(er=er.replace(st(),"?px "),Ze*=Math.pow(.75,yt-bt),er=er.replace("?px ",st())),ce+=.25*ie*(yt-bt)}if(j.superscripts===!0){var Yt=Qe.indexOf(C),lr=Et.indexOf(C),Tr=Yt>-1?parseInt(Qe[1+Yt]):0,Rr=lr>-1?parseInt(Et[1+lr]):0;Tr!==Rr&&(er=er.replace(st(),"?px "),Ze*=Math.pow(.75,Rr-Tr),er=er.replace("?px ",st())),ce-=.25*ie*(Rr-Tr)}if(j.bolds===!0){var ei=Qe.indexOf(v)>-1,Wr=Et.indexOf(v)>-1;!ei&&Wr&&(Ur?er=er.replace("italic ","italic bold "):er="bold "+er),ei&&!Wr&&(er=er.replace("bold ",""))}if(j.italics===!0){var Ur=Qe.indexOf(b)>-1,dt=Et.indexOf(b)>-1;!Ur&&dt&&(er="italic "+er),Ur&&!dt&&(er=er.replace("italic ",""))}G.font=er}for(Pe=0;Pe0&&(N=H.size),H.lineSpacing&&H.lineSpacing>0&&(j=H.lineSpacing),H.styletags&&H.styletags.breaklines&&(re.breaklines=!!H.styletags.breaklines),H.styletags&&H.styletags.bolds&&(re.bolds=!!H.styletags.bolds),H.styletags&&H.styletags.italics&&(re.italics=!!H.styletags.italics),H.styletags&&H.styletags.subscripts&&(re.subscripts=!!H.styletags.subscripts),H.styletags&&H.styletags.superscripts&&(re.superscripts=!!H.styletags.superscripts)),Z.font=[H.fontStyle,H.fontVariant,H.fontWeight,N+"px",H.font].filter(function(_e){return _e}).join(" "),Z.textAlign="start",Z.textBaseline="alphabetic",Z.direction="ltr";var oe=g(G,Z,V,N,j,re);return z(oe,H,N)}},1538:function(i){(function(){"use strict";if(typeof ses!="undefined"&&ses.ok&&!ses.ok())return;function o(T){T.permitHostObjects___&&T.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{i.exports=WeakMap;return}}}var f=Object.prototype.hasOwnProperty,h=Object.getOwnPropertyNames,d=Object.defineProperty,v=Object.isExtensible,x="weakmap:",b=x+"ident:"+Math.random()+"___";if(typeof crypto!="undefined"&&typeof crypto.getRandomValues=="function"&&typeof ArrayBuffer=="function"&&typeof Uint8Array=="function"){var p=new ArrayBuffer(25),C=new Uint8Array(p);crypto.getRandomValues(C),b=x+"rand:"+Array.prototype.map.call(C,function(T){return(T%36).toString(36)}).join("")+"___"}function E(T){return!(T.substr(0,x.length)==x&&T.substr(T.length-3)==="___")}if(d(Object,"getOwnPropertyNames",{value:function(z){return h(z).filter(E)}}),"getPropertyNames"in Object){var A=Object.getPropertyNames;d(Object,"getPropertyNames",{value:function(z){return A(z).filter(E)}})}function L(T){if(T!==Object(T))throw new TypeError("Not an object: "+T);var z=T[b];if(z&&z.key===T)return z;if(v(T)){z={key:T};try{return d(T,b,{value:z,writable:!1,enumerable:!1,configurable:!1}),z}catch(O){return}}}(function(){var T=Object.freeze;d(Object,"freeze",{value:function(G){return L(G),T(G)}});var z=Object.seal;d(Object,"seal",{value:function(G){return L(G),z(G)}});var O=Object.preventExtensions;d(Object,"preventExtensions",{value:function(G){return L(G),O(G)}})})();function _(T){return T.prototype=null,Object.freeze(T)}var k=!1;function M(){!k&&typeof console!="undefined"&&(k=!0,console.warn("WeakMap should be invoked as new WeakMap(), not WeakMap(). This will be an error in the future."))}var g=0,P=function(){this instanceof P||M();var T=[],z=[],O=g++;function V(N,j){var re,oe=L(N);return oe?O in oe?oe[O]:j:(re=T.indexOf(N),re>=0?z[re]:j)}function G(N){var j=L(N);return j?O in j:T.indexOf(N)>=0}function Z(N,j){var re,oe=L(N);return oe?oe[O]=j:(re=T.indexOf(N),re>=0?z[re]=j:(re=T.length,z[re]=j,T[re]=N)),this}function H(N){var j=L(N),re,oe;return j?O in j&&delete j[O]:(re=T.indexOf(N),re<0?!1:(oe=T.length-1,T[re]=void 0,z[re]=z[oe],T[re]=T[oe],T.length=oe,z.length=oe,!0))}return Object.create(P.prototype,{get___:{value:_(V)},has___:{value:_(G)},set___:{value:_(Z)},delete___:{value:_(H)}})};P.prototype=Object.create(Object.prototype,{get:{value:function(z,O){return this.get___(z,O)},writable:!0,configurable:!0},has:{value:function(z){return this.has___(z)},writable:!0,configurable:!0},set:{value:function(z,O){return this.set___(z,O)},writable:!0,configurable:!0},delete:{value:function(z){return this.delete___(z)},writable:!0,configurable:!0}}),typeof l=="function"?function(){s&&typeof Proxy!="undefined"&&(Proxy=void 0);function T(){this instanceof P||M();var z=new l,O=void 0,V=!1;function G(j,re){return O?z.has(j)?z.get(j):O.get___(j,re):z.get(j,re)}function Z(j){return z.has(j)||(O?O.has___(j):!1)}var H;s?H=function(j,re){return z.set(j,re),z.has(j)||(O||(O=new P),O.set(j,re)),this}:H=function(j,re){if(V)try{z.set(j,re)}catch(oe){O||(O=new P),O.set___(j,re)}else z.set(j,re);return this};function N(j){var re=!!z.delete(j);return O&&O.delete___(j)||re}return Object.create(P.prototype,{get___:{value:_(G)},has___:{value:_(Z)},set___:{value:_(H)},delete___:{value:_(N)},permitHostObjects___:{value:_(function(j){if(j===o)V=!0;else throw new Error("bogus call to permitHostObjects___")})}})}T.prototype=P.prototype,i.exports=T,Object.defineProperty(WeakMap.prototype,"constructor",{value:WeakMap,enumerable:!1,configurable:!0,writable:!0})}():(typeof Proxy!="undefined"&&(Proxy=void 0),i.exports=P)})()},236:function(i,a,o){var s=o(8284);i.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:function(i){i.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:function(i,a,o){var s=o(236);i.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:function(i){"use strict";function a(){return function(f,h,d,v,x,b){var p=f[0],C=d[0],E=[0],A=C;v|=0;var L=0,_=C;for(L=0;L=0!=M>=0&&x.push(E[0]+.5+.5*(k+M)/(k-M))}v+=_,++E[0]}}}function o(){return a()}var s=o;function l(f){var h={};return function(v,x,b){var p=v.dtype,C=v.order,E=[p,C.join()].join(),A=h[E];return A||(h[E]=A=f([p,C])),A(v.shape.slice(0),v.data,v.stride,v.offset|0,x,b)}}function u(f){return l(s.bind(void 0,f))}function c(f){return u({funcName:f.funcName})}i.exports=c({funcName:"zeroCrossings"})},781:function(i,a,o){"use strict";i.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:function(){}},t={};function r(i){var a=t[i];if(a!==void 0)return a.exports;var o=t[i]={id:i,loaded:!1,exports:{}};return e[i].call(o.exports,o,o.exports,r),o.loaded=!0,o.exports}(function(){r.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch(i){if(typeof window=="object")return window}}()})(),function(){r.nmd=function(i){return i.paths=[],i.children||(i.children=[]),i}}();var n=r(1964);nPe.exports=n})()});var hX=ye((Upr,aPe)=>{"use strict";aPe.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 uPe=ye((Vpr,lPe)=>{"use strict";var oPe=hX();lPe.exports=EPt;var sPe={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function EPt(e){var t,r=[],n=1,i;if(typeof e=="string")if(e=e.toLowerCase(),oPe[e])r=oPe[e].slice(),i="rgb";else if(e==="transparent")n=0,i="rgb",r=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(e)){var a=e.slice(1),o=a.length,s=o<=4;n=1,s?(r=[parseInt(a[0]+a[0],16),parseInt(a[1]+a[1],16),parseInt(a[2]+a[2],16)],o===4&&(n=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&&(n=parseInt(a[6]+a[7],16)/255)),r[0]||(r[0]=0),r[1]||(r[1]=0),r[2]||(r[2]=0),i="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$/,"");i=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(sPe[h]!==void 0)return sPe[h]}return parseFloat(h)}),l===a&&r.push(1),n=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)}),i=e.match(/([a-z])/ig).join("").toLowerCase());else isNaN(e)?Array.isArray(e)||e.length?(r=[e[0],e[1],e[2]],i="rgb",n=e.length===4?e[3]:1):e instanceof Object&&(e.r!=null||e.red!=null||e.R!=null?(i="rgb",r=[e.r||e.red||e.R||0,e.g||e.green||e.G||0,e.b||e.blue||e.B||0]):(i="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]),n=e.a||e.alpha||e.opacity||1,e.opacity!=null&&(n/=100)):(i="rgb",r=[e>>>16,(e&65280)>>>8,e&255]);return{space:i,values:r,alpha:n}}});var fPe=ye((Gpr,cPe)=>{"use strict";var CPt=uPe();cPe.exports=function(t){Array.isArray(t)&&t.raw&&(t=String.raw.apply(null,arguments));var r,n,i,a=CPt(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=kPt(r)),r.push(Math.min(Math.max(a.alpha,0),1)),r};function kPt(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100,i,a,o,s,l,u=0;if(r===0)return l=n*255,[l,l,l];for(a=n<.5?n*(1+r):n+r-n*r,i=2*n-a,s=[0,0,0];u<3;)o=t+1/3*-(u-1),o<0?o++:o>1&&o--,l=6*o<1?i+(a-i)*6*o:2*o<1?a:3*o<2?i+(a-i)*(2/3-o)*6:i,s[u++]=l*255;return s}});var XE=ye((Hpr,hPe)=>{hPe.exports=LPt;function LPt(e,t,r){return tr?r:e:et?t:e}});var WD=ye((jpr,dPe)=>{dPe.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 $_=ye((Wpr,vPe)=>{"use strict";var PPt=fPe(),XD=XE(),IPt=WD();vPe.exports=function(t,r){(r==="float"||!r)&&(r="array"),r==="uint"&&(r="uint8"),r==="uint_clamped"&&(r="uint8_clamped");var n=IPt(r),i=new n(4),a=r!=="uint8"&&r!=="uint8_clamped";return(!t.length||typeof t=="string")&&(t=PPt(t),t[0]/=255,t[1]/=255,t[2]/=255),RPt(t)?(i[0]=t[0],i[1]=t[1],i[2]=t[2],i[3]=t[3]!=null?t[3]:255,a&&(i[0]/=255,i[1]/=255,i[2]/=255,i[3]/=255),i):(a?(i[0]=t[0],i[1]=t[1],i[2]=t[2],i[3]=t[3]!=null?t[3]:1):(i[0]=XD(Math.floor(t[0]*255),0,255),i[1]=XD(Math.floor(t[1]*255),0,255),i[2]=XD(Math.floor(t[2]*255),0,255),i[3]=t[3]==null?255:XD(Math.floor(t[3]*255),0,255)),i)};function RPt(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 Jy=ye((Xpr,pPe)=>{"use strict";var DPt=$_();function FPt(e){return e?DPt(e):[0,0,0,1]}pPe.exports=FPt});var $y=ye((Zpr,wPe)=>{"use strict";var xPe=Eo(),zPt=cd(),ZD=$_(),YD=tc(),OPt=Eh().defaultLine,gPe=vv().isArrayOrTypedArray,dX=ZD(OPt),bPe=1;function mPe(e,t){var r=e;return r[3]*=t,r}function yPe(e){if(xPe(e))return dX;var t=ZD(e);return t.length?t:dX}function _Pe(e){return xPe(e)?e:bPe}function qPt(e,t,r){var n=e.color;n&&n._inputArray&&(n=n._inputArray);var i=gPe(n),a=gPe(t),o=YD.extractOpts(e),s=[],l,u,c,f,h;if(o.colorscale!==void 0?l=YD.makeColorScaleFuncFromTrace(e):l=yPe,i?u=function(v,x){return v[x]===void 0?dX:ZD(l(v[x]))}:u=yPe,a?c=function(v,x){return v[x]===void 0?bPe:_Pe(v[x])}:c=_Pe,i||a)for(var d=0;d{"use strict";TPe.exports={solid:[[],0],dot:[[.5,1],200],dash:[[.5,1],50],longdash:[[.5,1],10],dashdot:[[.5,.625,.875,1],50],longdashdot:[[.5,.7,.8,1],10]}});var KD=ye((Kpr,APe)=>{"use strict";APe.exports={circle:"\u25CF","circle-open":"\u25CB",square:"\u25A0","square-open":"\u25A1",diamond:"\u25C6","diamond-open":"\u25C7",cross:"+",x:"\u274C"}});var MPe=ye((Jpr,SPe)=>{"use strict";var NPt=qa();function pX(e,t,r,n){if(!t||!t.visible)return null;for(var i=NPt.getComponentMethod("errorbars","makeComputeError")(t),a=new Array(e.length),o=0;o0){var f=n.c2l(u);n._lowerLogErrorBound||(n._lowerLogErrorBound=f),n._lowerErrorBound=Math.min(n._lowerLogErrorBound,f)}}else a[o]=[-s[0]*r,s[1]*r]}return a}function UPt(e){for(var t=0;t{"use strict";var GPt=Od().gl_line3d,EPe=Od().gl_scatter3d,HPt=Od().gl_error3d,jPt=Od().gl_mesh3d,WPt=Od().delaunay_triangulate,Qy=Dr(),IPe=Jy(),JD=$y().formatColor,XPt=S3(),gX=vX(),ZPt=KD(),YPt=ho(),KPt=rp().appendArrayPointValue,JPt=MPe();function RPe(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 yX=RPe.prototype;yX.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 $Pt(e,t,r){var n=(r+1)%3,i=(r+2)%3,a=[],o=[],s;for(s=0;s-1?-1:e.indexOf("right")>-1?1:0}function kPe(e){return e==null?0:e.indexOf("top")>-1?-1:e.indexOf("bottom")>-1?1:0}function eIt(e){var t=0,r=0,n=[t,r];if(Array.isArray(e))for(var i=0;i=0){var u=$Pt(s.position,s.delaunayColor,s.delaunayAxis);u.opacity=e.opacity,this.delaunayMesh?this.delaunayMesh.update(u):(u.gl=t,this.delaunayMesh=jPt(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)};yX.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 nIt(e,t){var r=new RPe(e,t.uid);return r.update(t),r}DPe.exports=nIt});var TX=ye((Qpr,qPe)=>{"use strict";var e1=pf(),aIt=ec(),wX=Tu(),_X=df().axisHoverFormat,oIt=Qo().hovertemplateAttrs,sIt=Qo().texttemplateAttrs,zPe=Vl(),lIt=vX(),uIt=KD(),Yg=Ao().extendFlat,cIt=mc().overrideAll,OPe=Y1(),fIt=e1.line,N2=e1.marker,hIt=N2.line,dIt=Yg({width:fIt.width,dash:{valType:"enumerated",values:OPe(lIt),dflt:"solid"}},wX("line"));function xX(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 bX=qPe.exports=cIt({x:e1.x,y:e1.y,z:{valType:"data_array"},text:Yg({},e1.text,{}),texttemplate:sIt({},{}),hovertext:Yg({},e1.hovertext,{}),hovertemplate:oIt(),xhoverformat:_X("x"),yhoverformat:_X("y"),zhoverformat:_X("z"),mode:Yg({},e1.mode,{dflt:"lines+markers"}),surfaceaxis:{valType:"enumerated",values:[-1,0,1,2],dflt:-1},surfacecolor:{valType:"color"},projection:{x:xX("x"),y:xX("y"),z:xX("z")},connectgaps:e1.connectgaps,line:dIt,marker:Yg({symbol:{valType:"enumerated",values:OPe(uIt),dflt:"circle",arrayOk:!0},size:Yg({},N2.size,{dflt:8}),sizeref:N2.sizeref,sizemin:N2.sizemin,sizemode:N2.sizemode,opacity:Yg({},N2.opacity,{arrayOk:!1}),colorbar:N2.colorbar,line:Yg({width:Yg({},hIt.width,{arrayOk:!1})},wX("marker.line"))},wX("marker")),textposition:Yg({},e1.textposition,{dflt:"top center"}),textfont:aIt({noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,editType:"calc",colorEditType:"style",arrayOk:!0,variantValues:["normal","small-caps"]}),opacity:zPe.opacity,hoverinfo:Yg({},zPe.hoverinfo)},"calc","nested");bX.x.editType=bX.y.editType=bX.z.editType="calc+clearAxisTypes"});var UPe=ye((e0r,NPe)=>{"use strict";var BPe=qa(),vIt=Dr(),AX=Ru(),pIt=$p(),gIt=R0(),mIt=D0(),yIt=TX();NPe.exports=function(t,r,n,i){function a(d,v){return vIt.coerce(t,r,yIt,d,v)}var o=_It(t,r,a,i);if(!o){r.visible=!1;return}a("text"),a("hovertext"),a("hovertemplate"),a("xhoverformat"),a("yhoverformat"),a("zhoverformat"),a("mode"),AX.hasMarkers(r)&&pIt(t,r,n,i,a,{noSelect:!0,noAngle:!0}),AX.hasLines(r)&&(a("connectgaps"),gIt(t,r,n,i,a)),AX.hasText(r)&&(a("texttemplate"),mIt(t,r,i,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=BPe.getComponentMethod("errorbars","supplyDefaults");h(t,r,s||l||n,{axis:"z"}),h(t,r,s||l||n,{axis:"y",inherit:"z"}),h(t,r,s||l||n,{axis:"x",inherit:"z"})};function _It(e,t,r,n){var i=0,a=r("x"),o=r("y"),s=r("z"),l=BPe.getComponentMethod("calendars","handleTraceDefaults");return l(e,t,["x","y","z"],n),a&&o&&s&&(i=Math.min(a.length,o.length,s.length),t._length=t._xlength=t._ylength=t._zlength=i),i}});var GPe=ye((t0r,VPe)=>{"use strict";var xIt=Cm(),bIt=F0();VPe.exports=function(t,r){var n=[{x:!1,y:!1,trace:r,t:{}}];return xIt(n,r),bIt(t,r),n}});var jPe=ye((r0r,HPe)=>{HPe.exports=wIt;function wIt(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 n=t,i;try{var a=[e];e.indexOf("webgl")===0&&a.push("experimental-"+e);for(var o=0;o{var TIt=jPe();WPe.exports=function(t){return TIt("webgl",t)}});var SX=ye((n0r,YPe)=>{"use strict";var ZPe=Ca(),AIt=function(){};YPe.exports=function(t){for(var r in t)typeof t[r]=="function"&&(t[r]=AIt);t.destroy=function(){t.container.parentNode.removeChild(t.container)};var n=document.createElement("div");n.className="no-webgl",n.style.cursor="pointer",n.style.fontSize="24px",n.style.color=ZPe.defaults[0],n.style.position="absolute",n.style.left=n.style.top="0px",n.style.width=n.style.height="100%",n.style["background-color"]=ZPe.lightLine,n.style["z-index"]=30;var i=document.createElement("p");return i.textContent="WebGL is not supported by your browser - visit https://get.webgl.org for more info",i.style.position="relative",i.style.top="50%",i.style.left="50%",i.style.height="30%",i.style.width="50%",i.style.margin="-15% 0 0 -25%",n.appendChild(i),t.container.appendChild(n),t.container.style.background="#FFFFFF",t.container.onclick=function(){window.open("https://get.webgl.org")},!1}});var $Pe=ye((a0r,JPe)=>{"use strict";var U2=Jy(),SIt=Dr(),MIt=["xaxis","yaxis","zaxis"];function KPe(){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 EIt=KPe.prototype;EIt.merge=function(e,t){for(var r=this,n=0;n<3;++n){var i=t[MIt[n]];if(!i.visible){r.tickEnable[n]=!1,r.labelEnable[n]=!1,r.lineEnable[n]=!1,r.lineTickEnable[n]=!1,r.gridEnable[n]=!1,r.zeroEnable[n]=!1,r.backgroundEnable[n]=!1;continue}r.labels[n]=e._meta?SIt.templateString(i.title.text,e._meta):i.title.text,"font"in i.title&&(i.title.font.color&&(r.labelColor[n]=U2(i.title.font.color)),i.title.font.family&&(r.labelFont[n]=i.title.font.family),i.title.font.size&&(r.labelSize[n]=i.title.font.size),i.title.font.weight&&(r.labelFontWeight[n]=i.title.font.weight),i.title.font.style&&(r.labelFontStyle[n]=i.title.font.style),i.title.font.variant&&(r.labelFontVariant[n]=i.title.font.variant)),"showline"in i&&(r.lineEnable[n]=i.showline),"linecolor"in i&&(r.lineColor[n]=U2(i.linecolor)),"linewidth"in i&&(r.lineWidth[n]=i.linewidth),"showgrid"in i&&(r.gridEnable[n]=i.showgrid),"gridcolor"in i&&(r.gridColor[n]=U2(i.gridcolor)),"gridwidth"in i&&(r.gridWidth[n]=i.gridwidth),i.type==="log"?r.zeroEnable[n]=!1:"zeroline"in i&&(r.zeroEnable[n]=i.zeroline),"zerolinecolor"in i&&(r.zeroLineColor[n]=U2(i.zerolinecolor)),"zerolinewidth"in i&&(r.zeroLineWidth[n]=i.zerolinewidth),"ticks"in i&&i.ticks?r.lineTickEnable[n]=!0:r.lineTickEnable[n]=!1,"ticklen"in i&&(r.lineTickLength[n]=r._defaultLineTickLength[n]=i.ticklen),"tickcolor"in i&&(r.lineTickColor[n]=U2(i.tickcolor)),"tickwidth"in i&&(r.lineTickWidth[n]=i.tickwidth),"tickangle"in i&&(r.tickAngle[n]=i.tickangle==="auto"?-3600:Math.PI*-i.tickangle/180),"showticklabels"in i&&(r.tickEnable[n]=i.showticklabels),"tickfont"in i&&(i.tickfont.color&&(r.tickColor[n]=U2(i.tickfont.color)),i.tickfont.family&&(r.tickFont[n]=i.tickfont.family),i.tickfont.size&&(r.tickSize[n]=i.tickfont.size),i.tickfont.weight&&(r.tickFontWeight[n]=i.tickfont.weight),i.tickfont.style&&(r.tickFontStyle[n]=i.tickfont.style),i.tickfont.variant&&(r.tickFontVariant[n]=i.tickfont.variant)),"mirror"in i?["ticks","all","allticks"].indexOf(i.mirror)!==-1?(r.lineTickMirror[n]=!0,r.lineMirror[n]=!0):i.mirror===!0?(r.lineTickMirror[n]=!1,r.lineMirror[n]=!0):(r.lineTickMirror[n]=!1,r.lineMirror[n]=!1):r.lineMirror[n]=!1,"showbackground"in i&&i.showbackground!==!1?(r.backgroundEnable[n]=!0,r.backgroundColor[n]=U2(i.backgroundcolor)):r.backgroundEnable[n]=!1}};function CIt(e,t){var r=new KPe;return r.merge(e,t),r}JPe.exports=CIt});var tIe=ye((o0r,eIe)=>{"use strict";var kIt=Jy(),LIt=["xaxis","yaxis","zaxis"];function QPe(){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 PIt=QPe.prototype;PIt.merge=function(e){for(var t=0;t<3;++t){var r=e[LIt[t]];if(!r.visible){this.enabled[t]=!1,this.drawSides[t]=!1;continue}this.enabled[t]=r.showspikes,this.colors[t]=kIt(r.spikecolor),this.drawSides[t]=r.spikesides,this.lineWidth[t]=r.spikethickness}};function IIt(e){var t=new QPe;return t.merge(e),t}eIe.exports=IIt});var nIe=ye((s0r,iIe)=>{"use strict";iIe.exports=OIt;var rIe=ho(),RIt=Dr(),DIt=["xaxis","yaxis","zaxis"],FIt=[0,0,0];function zIt(e){for(var t=new Array(3),r=0;r<3;++r){for(var n=e[r],i=new Array(n.length),a=0;a/g," "));i[a]=u,o.tickmode=s}}t.ticks=i;for(var a=0;a<3;++a){FIt[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=zIt(i)}});var fIe=ye((l0r,cIe)=>{"use strict";var sIe=Od().gl_plot3d,qIt=sIe.createCamera,aIe=sIe.createScene,BIt=XPe(),NIt=PL(),eF=qa(),lp=Dr(),QD=lp.preserveDrawingBuffer(),tF=ho(),Kg=vf(),UIt=Jy(),VIt=SX(),GIt=qU(),HIt=$Pe(),jIt=tIe(),WIt=nIe(),XIt=wg().applyAutorangeOptions,ZE,$D,lIe=!1;function uIe(e,t){var r=document.createElement("div"),n=e.container;this.graphDiv=e.graphDiv;var i=document.createElementNS("http://www.w3.org/2000/svg","svg");i.style.position="absolute",i.style.top=i.style.left="0px",i.style.width=i.style.height="100%",i.style["z-index"]=20,i.style["pointer-events"]="none",r.appendChild(i),this.svgContainer=i,r.id=e.id,r.style.position="absolute",r.style.top=r.style.left="0px",r.style.width=r.style.height="100%",n.appendChild(r),this.fullLayout=t,this.id=e.id||"scene",this.fullSceneLayout=t[this.id],this.plotArgs=[[],{},{}],this.axesOptions=HIt(t,t[this.id]),this.spikeOptions=jIt(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=eF.getComponentMethod("annotations3d","convert"),this.drawAnnotations=eF.getComponentMethod("annotations3d","draw"),this.initializeGLPlot()}var wv=uIe.prototype;wv.prepareOptions=function(){var e=this,t={canvas:e.canvas,gl:e.gl,glOptions:{preserveDrawingBuffer:QD,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(!$D&&(ZE=document.createElement("canvas"),$D=BIt({canvas:ZE,preserveDrawingBuffer:!0,premultipliedAlpha:!0,antialias:!0}),!$D))throw new Error("error creating static canvas/context for image server");t.gl=$D,t.canvas=ZE}return t};var oIe=!0;wv.tryCreatePlot=function(){var e=this,t=e.prepareOptions(),r=!0;try{e.glplot=aIe(t)}catch(n){if(e.staticMode||!oIe||QD)r=!1;else{lp.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{QD=t.glOptions.preserveDrawingBuffer=!0,e.glplot=aIe(t)}catch(i){QD=t.glOptions.preserveDrawingBuffer=!1,r=!1}}}return oIe=!1,r};wv.initializeGLCamera=function(){var e=this,t=e.fullSceneLayout.camera,r=t.projection.type==="orthographic";e.camera=qIt(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"})};wv.initializeGLPlot=function(){var e=this;e.initializeGLCamera();var t=e.tryCreatePlot();if(!t)return VIt(e);e.traces={},e.make4thDimension();var r=e.graphDiv,n=r.layout,i=function(){var o={};return e.isCameraChanged(n)&&(o[e.id+".camera"]=e.getCamera()),e.isAspectChanged(n)&&(o[e.id+".aspectratio"]=e.glplot.getAspectratio(),n[e.id].aspectmode!=="manual"&&(e.fullSceneLayout.aspectmode=n[e.id].aspectmode=o[e.id+".aspectmode"]="manual")),o},a=function(o){if(o.fullSceneLayout.dragmode!==!1){var s=i();o.saveLayout(n),o.graphDiv.emit("plotly_relayout",s)}};return e.glplot.canvas&&(e.glplot.canvas.addEventListener("mouseup",function(){a(e)}),e.glplot.canvas.addEventListener("touchstart",function(){lIe=!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)}},NIt?{passive:!1}:!1),e.glplot.canvas.addEventListener("mousemove",function(){if(e.fullSceneLayout.dragmode!==!1&&e.camera.mouseListener.buttons!==0){var o=i();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};wv.render=function(){var e=this,t=e.graphDiv,r,n=e.svgContainer,i=e.container.getBoundingClientRect();t._fullLayout._calcInverseTransform(t);var a=t._fullLayout._invScaleX,o=t._fullLayout._invScaleY,s=i.width*a,l=i.height*o;n.setAttributeNS(null,"viewBox","0 0 "+s+" "+l),n.setAttributeNS(null,"width",s),n.setAttributeNS(null,"height",l),WIt(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"?(p.valueLabel=tF.hoverLabelText(e._mockAxis,e._mockAxis.d2l(f.traceCoordinate[3]),r.valuehoverformat),_.push("value: "+p.valueLabel),f.textLabel&&_.push(f.textLabel),L=_.join("
")):L=f.textLabel;var k={x:f.traceCoordinate[0],y:f.traceCoordinate[1],z:f.traceCoordinate[2],data:x._input,fullData:x,curveNumber:x.index,pointNumber:b};Kg.appendArrayPointValue(k,x,b),r._module.eventData&&(k=x._module.eventData(k,f,x,{},b));var M={points:[k]};if(e.fullSceneLayout.hovermode){var g=[];Kg.loneHover({trace:x,x:(.5+.5*v[0]/v[3])*s,y:(.5-.5*v[1]/v[3])*l,xLabel:p.xLabel,yLabel:p.yLabel,zLabel:p.zLabel,text:L,name:c.name,color:Kg.castHoverOption(x,b,"bgcolor")||c.color,borderColor:Kg.castHoverOption(x,b,"bordercolor"),fontFamily:Kg.castHoverOption(x,b,"font.family"),fontSize:Kg.castHoverOption(x,b,"font.size"),fontColor:Kg.castHoverOption(x,b,"font.color"),nameLength:Kg.castHoverOption(x,b,"namelength"),textAlign:Kg.castHoverOption(x,b,"align"),hovertemplate:lp.castOption(x,b,"hovertemplate"),hovertemplateLabels:lp.extendFlat({},k,p),eventData:[k]},{container:n,gd:t,inOut_bbox:g}),k.bbox=g[0]}f.distance<5&&(f.buttons||lIe)?t.emit("plotly_click",M):t.emit("plotly_hover",M),this.oldEventData=M}else Kg.loneUnhover(n),this.oldEventData&&t.emit("plotly_unhover",this.oldEventData),this.oldEventData=void 0;e.drawAnnotations(e)};wv.recoverContext=function(){var e=this;e.glplot.dispose();var t=function(){if(e.glplot.gl.isContextLost()){requestAnimationFrame(t);return}if(!e.initializeGLPlot()){lp.error("Catastrophic and unrecoverable WebGL error. Context lost.");return}e.plot.apply(e,e.plotArgs)};requestAnimationFrame(t)};var YE=["xaxis","yaxis","zaxis"];function ZIt(e,t,r){for(var n=e.fullSceneLayout,i=0;i<3;i++){var a=YE[i],o=a.charAt(0),s=n[a],l=t[o],u=t[o+"calendar"],c=t["_"+o+"length"];if(!lp.isArrayOrTypedArray(l))r[0][i]=Math.min(r[0][i],0),r[1][i]=Math.max(r[1][i],c-1);else for(var f,h=0;h<(c||l.length);h++)if(lp.isArrayOrTypedArray(l[h]))for(var d=0;dx[1][o])x[0][o]=-1,x[1][o]=1;else{var T=x[1][o]-x[0][o];x[0][o]-=T/32,x[1][o]+=T/32}if(C=[x[0][o],x[1][o]],C=XIt(C,l),x[0][o]=C[0],x[1][o]=C[1],l.isReversed()){var z=x[0][o];x[0][o]=x[1][o],x[1][o]=z}}else C=l.range,x[0][o]=l.r2l(C[0]),x[1][o]=l.r2l(C[1]);x[0][o]===x[1][o]&&(x[0][o]-=1,x[1][o]+=1),b[o]=x[1][o]-x[0][o],l.range=[x[0][o],x[1][o]],l.limitRange(),n.glplot.setBounds(o,{min:l.range[0]*d[o],max:l.range[1]*d[o]})}var O,V=c.aspectmode;if(V==="cube")O=[1,1,1];else if(V==="manual"){var G=c.aspectratio;O=[G.x,G.y,G.z]}else if(V==="auto"||V==="data"){var Z=[1,1,1];for(o=0;o<3;++o){l=c[YE[o]],u=l.type;var H=p[u];Z[o]=Math.pow(H.acc,1/H.count)/d[o]}V==="data"||Math.max.apply(null,Z)/Math.min.apply(null,Z)<=4?O=Z:O=[1,1,1]}else throw new Error("scene.js aspectRatio was not one of the enumerated types");c.aspectratio.x=f.aspectratio.x=O[0],c.aspectratio.y=f.aspectratio.y=O[1],c.aspectratio.z=f.aspectratio.z=O[2],n.glplot.setAspectratio(c.aspectratio),n.viewInitial.aspectratio||(n.viewInitial.aspectratio={x:c.aspectratio.x,y:c.aspectratio.y,z:c.aspectratio.z}),n.viewInitial.aspectmode||(n.viewInitial.aspectmode=c.aspectmode);var N=c.domain||null,j=t._size||null;if(N&&j){var re=n.container.style;re.position="absolute",re.left=j.l+N.x[0]*j.w+"px",re.top=j.t+(1-N.y[1])*j.h+"px",re.width=j.w*(N.x[1]-N.x[0])+"px",re.height=j.h*(N.y[1]-N.y[0])+"px"}n.glplot.redraw()}};wv.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 KIt(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 JIt(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"}}}wv.getCamera=function(){var e=this;return e.camera.view.recalcMatrix(e.camera.view.lastT()),JIt(e.camera)};wv.setViewport=function(e){var t=this,r=e.camera;t.camera.lookAt.apply(this,KIt(r)),t.glplot.setAspectratio(e.aspectratio);var n=r.projection.type==="orthographic",i=t.camera._ortho;n!==i&&(t.glplot.redraw(),t.glplot.clearRGBA(),t.glplot.dispose(),t.initializeGLPlot())};wv.isCameraChanged=function(e){var t=this,r=t.getCamera(),n=lp.nestedProperty(e,t.id+".camera"),i=n.get();function a(u,c,f,h){var d=["up","center","eye"],v=["x","y","z"];return c[d[f]]&&u[d[f]][v[h]]===c[d[f]][v[h]]}var o=!1;if(i===void 0)o=!0;else{for(var s=0;s<3;s++)for(var l=0;l<3;l++)if(!a(r,i,s,l)){o=!0;break}(!i.projection||r.projection&&r.projection.type!==i.projection.type)&&(o=!0)}return o};wv.isAspectChanged=function(e){var t=this,r=t.glplot.getAspectratio(),n=lp.nestedProperty(e,t.id+".aspectratio"),i=n.get();return i===void 0||i.x!==r.x||i.y!==r.y||i.z!==r.z};wv.saveLayout=function(e){var t=this,r=t.fullLayout,n,i,a,o,s,l,u=t.isCameraChanged(e),c=t.isAspectChanged(e),f=u||c;if(f){var h={};if(u&&(n=t.getCamera(),i=lp.nestedProperty(e,t.id+".camera"),a=i.get(),h[t.id+".camera"]=a),c&&(o=t.glplot.getAspectratio(),s=lp.nestedProperty(e,t.id+".aspectratio"),l=s.get(),h[t.id+".aspectratio"]=l),eF.call("_storeDirectGUIEdit",e,r._preGUI,h),u){i.set(n);var d=lp.nestedProperty(r,t.id+".camera");d.set(n)}if(c){s.set(o);var v=lp.nestedProperty(r,t.id+".aspectratio");v.set(o),t.glplot.redraw()}}return f};wv.updateFx=function(e,t){var r=this,n=r.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 i=r.graphDiv,a=i._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 d=i.layout;eF.call("_storeDirectGUIEdit",d,a._preGUI,h),o.up=f,lp.nestedProperty(d,c).set(f)}}else n.keyBindingMode=e;r.fullSceneLayout.hovermode=t};function $It(e,t,r){for(var n=0,i=r-1;n0)for(var s=255/o,l=0;l<3;++l)e[a+l]=Math.min(s*e[a+l],255)}}wv.toImage=function(e){var t=this;e||(e="png"),t.staticMode&&t.container.appendChild(ZE),t.glplot.redraw();var r=t.glplot.gl,n=r.drawingBufferWidth,i=r.drawingBufferHeight;r.bindFramebuffer(r.FRAMEBUFFER,null);var a=new Uint8Array(n*i*4);r.readPixels(0,0,n,i,r.RGBA,r.UNSIGNED_BYTE,a),$It(a,n,i),QIt(a,n,i);var o=document.createElement("canvas");o.width=n,o.height=i;var s=o.getContext("2d",{willReadFrequently:!0}),l=s.createImageData(n,i);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(ZE),u};wv.setConvert=function(){for(var e=this,t=0;t<3;t++){var r=e.fullSceneLayout[YE[t]];tF.setConvert(r,e.fullLayout),r.setScale=lp.noop}};wv.make4thDimension=function(){var e=this,t=e.graphDiv,r=t._fullLayout;e._mockAxis={type:"linear",showexponent:"all",exponentformat:"B"},tF.setConvert(e._mockAxis,r)};cIe.exports=uIe});var dIe=ye((u0r,hIe)=>{"use strict";hIe.exports={scene:{valType:"subplotid",dflt:"scene",editType:"calc+clearAxisTypes"}}});var EX=ye((c0r,vIe)=>{"use strict";var e8t=Ca(),bs=Rd(),MX=Ao().extendFlat,t8t=mc().overrideAll;vIe.exports=t8t({visible:bs.visible,showspikes:{valType:"boolean",dflt:!0},spikesides:{valType:"boolean",dflt:!0},spikethickness:{valType:"number",min:0,dflt:2},spikecolor:{valType:"color",dflt:e8t.defaultLine},showbackground:{valType:"boolean",dflt:!1},backgroundcolor:{valType:"color",dflt:"rgba(204, 204, 204, 0.5)"},showaxeslabels:{valType:"boolean",dflt:!0},color:bs.color,categoryorder:bs.categoryorder,categoryarray:bs.categoryarray,title:{text:bs.title.text,font:bs.title.font},type:MX({},bs.type,{values:["-","linear","log","date","category"]}),autotypenumbers:bs.autotypenumbers,autorange:bs.autorange,autorangeoptions:{minallowed:bs.autorangeoptions.minallowed,maxallowed:bs.autorangeoptions.maxallowed,clipmin:bs.autorangeoptions.clipmin,clipmax:bs.autorangeoptions.clipmax,include:bs.autorangeoptions.include,editType:"plot"},rangemode:bs.rangemode,minallowed:bs.minallowed,maxallowed:bs.maxallowed,range:MX({},bs.range,{items:[{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}}],anim:!1}),tickmode:bs.minor.tickmode,nticks:bs.nticks,tick0:bs.tick0,dtick:bs.dtick,tickvals:bs.tickvals,ticktext:bs.ticktext,ticks:bs.ticks,mirror:bs.mirror,ticklen:bs.ticklen,tickwidth:bs.tickwidth,tickcolor:bs.tickcolor,showticklabels:bs.showticklabels,labelalias:bs.labelalias,tickfont:bs.tickfont,tickangle:bs.tickangle,tickprefix:bs.tickprefix,showtickprefix:bs.showtickprefix,ticksuffix:bs.ticksuffix,showticksuffix:bs.showticksuffix,showexponent:bs.showexponent,exponentformat:bs.exponentformat,minexponent:bs.minexponent,separatethousands:bs.separatethousands,tickformat:bs.tickformat,tickformatstops:bs.tickformatstops,hoverformat:bs.hoverformat,showline:bs.showline,linecolor:bs.linecolor,linewidth:bs.linewidth,showgrid:bs.showgrid,gridcolor:MX({},bs.gridcolor,{dflt:"rgb(204, 204, 204)"}),gridwidth:bs.gridwidth,zeroline:bs.zeroline,zerolinecolor:bs.zerolinecolor,zerolinewidth:bs.zerolinewidth},"plot","from-root")});var PX=ye((f0r,pIe)=>{"use strict";var CX=EX(),r8t=kc().attributes,kX=Ao().extendFlat,i8t=Dr().counterRegex;function LX(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"}}pIe.exports={_arrayAttrRegexps:[i8t("scene",".annotations",!0)],bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"plot"},camera:{up:kX(LX(0,0,1),{}),center:kX(LX(0,0,0),{}),eye:kX(LX(1.25,1.25,1.25),{}),projection:{type:{valType:"enumerated",values:["perspective","orthographic"],dflt:"perspective",editType:"calc"},editType:"calc"},editType:"camera"},domain:r8t({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:CX,yaxis:CX,zaxis:CX,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 _Ie=ye((h0r,yIe)=>{"use strict";var n8t=cd().mix,gIe=Dr(),a8t=pl(),o8t=EX(),s8t=wU(),l8t=t4(),mIe=["xaxis","yaxis","zaxis"],u8t=100*136/187;yIe.exports=function(t,r,n){var i,a;function o(u,c){return gIe.coerce(i,a,o8t,u,c)}for(var s=0;s{"use strict";var c8t=Dr(),f8t=Ca(),h8t=qa(),d8t=k_(),v8t=_Ie(),xIe=PX(),p8t=Id().getSubplotData,bIe="gl3d";wIe.exports=function(t,r,n){var i=r._basePlotModules.length>1;function a(o){if(!i){var s=c8t.validate(t[o],xIe[o]);if(s)return t[o]}}d8t(t,r,n,{type:bIe,attributes:xIe,handleDefaults:g8t,fullLayout:r,font:r.font,fullData:n,getDfltFromLayout:a,autotypenumbersDflt:r.autotypenumbers,paper_bgcolor:r.paper_bgcolor,calendar:r.calendar})};function g8t(e,t,r,n){for(var i=r("bgcolor"),a=f8t.combine(i,n.paper_bgcolor),o=["up","center","eye"],s=0;s.999)&&(h="turntable")}else h="turntable";r("dragmode",h),r("hovermode",n.getDfltFromLayout("hovermode"))}});var Q_=ye(up=>{"use strict";var m8t=mc().overrideAll,y8t=N1(),_8t=fIe(),x8t=Id().getSubplotData,b8t=Dr(),w8t=Wp(),BA="gl3d",IX="scene";up.name=BA;up.attr=IX;up.idRoot=IX;up.idRegex=up.attrRegex=b8t.counterRegex("scene");up.attributes=dIe();up.layoutAttributes=PX();up.baseLayoutAttrOverrides=m8t({hoverlabel:y8t.hoverlabel},"plot","nested");up.supplyLayoutDefaults=TIe();up.plot=function(t){for(var r=t._fullLayout,n=t._fullData,i=r._subplots[BA],a=0;a{"use strict";AIe.exports={plot:FPe(),attributes:TX(),markerSymbols:KD(),supplyDefaults:UPe(),colorbar:[{container:"marker",min:"cmin",max:"cmax"},{container:"line",min:"cmin",max:"cmax"}],calc:GPe(),moduleType:"trace",name:"scatter3d",basePlotModule:Q_(),categories:["gl3d","symbols","showLegend","scatter-like"],meta:{}}});var EIe=ye((g0r,MIe)=>{"use strict";MIe.exports=SIe()});var KE=ye((m0r,LIe)=>{"use strict";var CIe=Ca(),T8t=Tu(),RX=df().axisHoverFormat,A8t=Qo().hovertemplateAttrs,kIe=Vl(),DX=Ao().extendFlat,S8t=mc().overrideAll;function FX(e){return{valType:"boolean",dflt:!1}}function zX(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:FX("x"),y:FX("y"),z:FX("z")},color:{valType:"color",dflt:CIe.defaultLine},usecolormap:{valType:"boolean",dflt:!1},width:{valType:"number",min:1,max:16,dflt:2},highlight:{valType:"boolean",dflt:!0},highlightcolor:{valType:"color",dflt:CIe.defaultLine},highlightwidth:{valType:"number",min:1,max:16,dflt:2}}}var OX=LIe.exports=S8t(DX({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:A8t(),xhoverformat:RX("x"),yhoverformat:RX("y"),zhoverformat:RX("z"),connectgaps:{valType:"boolean",dflt:!1,editType:"calc"},surfacecolor:{valType:"data_array"}},T8t("",{colorAttr:"z or surfacecolor",showScaleDflt:!0,autoColorDflt:!1,editTypeOverride:"calc"}),{contours:{x:zX("x"),y:zX("y"),z:zX("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},roughness:{valType:"number",min:0,max:1,dflt:.5},fresnel:{valType:"number",min:0,max:5,dflt:.2}},opacity:{valType:"number",min:0,max:1,dflt:1},opacityscale:{valType:"any",editType:"calc"},hoverinfo:DX({},kIe.hoverinfo),showlegend:DX({},kIe.showlegend,{dflt:!1})}),"calc","nested");OX.x.editType=OX.y.editType=OX.z.editType="calc+clearAxisTypes"});var BX=ye((y0r,RIe)=>{"use strict";var M8t=qa(),PIe=Dr(),E8t=Jh(),C8t=KE(),qX=.1;function k8t(e,t){for(var r=[],n=32,i=0;i{"use strict";var DIe=Fv();FIe.exports=function(t,r){r.surfacecolor?DIe(t,r,{vals:r.surfacecolor,containerStr:"",cLetter:"c"}):DIe(t,r,{vals:r.z,containerStr:"",cLetter:"c"})}});var VIe=ye((x0r,UIe)=>{"use strict";var I8t=Od().gl_surface3d,NA=Od().ndarray,R8t=Od().ndarray_linear_interpolate.d2,D8t=i8(),F8t=n8(),JE=Dr().isArrayOrTypedArray,z8t=$y().parseColorScale,OIe=Jy(),O8t=tc().extractOpts;function BIe(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 Jg=BIe.prototype;Jg.getXat=function(e,t,r,n){var i=JE(this.data.x)?JE(this.data.x[0])?this.data.x[t][e]:this.data.x[e]:e;return r===void 0?i:n.d2l(i,0,r)};Jg.getYat=function(e,t,r,n){var i=JE(this.data.y)?JE(this.data.y[0])?this.data.y[t][e]:this.data.y[t]:t;return r===void 0?i:n.d2l(i,0,r)};Jg.getZat=function(e,t,r,n){var i=this.data.z[t][e];return i===null&&this.data.connectgaps&&this.data._interpolatedZ&&(i=this.data._interpolatedZ[t][e]),r===void 0?i:n.d2l(i,0,r)};Jg.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,n=Math.max(Math.min(Math.round(t),this.data.z[0].length-1),0),i=Math.max(Math.min(Math.round(r),this.data._ylength-1),0);e.index=[n,i],e.traceCoordinate=[this.getXat(n,i),this.getYat(n,i),this.getZat(n,i)],e.dataCoordinate=[this.getXat(n,i,this.data.xcalendar,this.scene.fullSceneLayout.xaxis),this.getYat(n,i,this.data.ycalendar,this.scene.fullSceneLayout.yaxis),this.getZat(n,i,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 JE(s)&&s[i]&&s[i][n]!==void 0?e.textLabel=s[i][n]: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 q8t(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 UA=[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 B8t(e,t){if(e0){r=UA[n];break}return r}function U8t(e,t){if(!(e<1||t<1)){for(var r=NX(e),n=NX(t),i=1,a=0;arF;)n--,n/=N8t(n),n++,n1?i:1};function G8t(e,t,r){var n=r[8]+r[2]*t[0]+r[5]*t[1];return e[0]=(r[6]+r[0]*t[0]+r[3]*t[1])/n,e[1]=(r[7]+r[1]*t[0]+r[4]*t[1])/n,e}function H8t(e,t,r){return j8t(e,t,G8t,r),e}function j8t(e,t,r,n){for(var i=[0,0],a=e.shape[0],o=e.shape[1],s=0;s0&&this.contourStart[n]!==null&&this.contourEnd[n]!==null&&this.contourEnd[n]>this.contourStart[n]))for(t[n]=!0,i=this.contourStart[n];ih&&(this.minValues[u]=h),this.maxValues[u]{"use strict";GIe.exports={attributes:KE(),supplyDefaults:BX().supplyDefaults,colorbar:{min:"cmin",max:"cmax"},calc:zIe(),plot:VIe(),moduleType:"trace",name:"surface",basePlotModule:Q_(),categories:["gl3d","2dMap","showLegend"],meta:{}}});var WIe=ye((w0r,jIe)=>{"use strict";jIe.exports=HIe()});var VA=ye((T0r,ZIe)=>{"use strict";var Z8t=Tu(),UX=df().axisHoverFormat,Y8t=Qo().hovertemplateAttrs,ex=KE(),XIe=Vl(),tx=Ao().extendFlat;ZIe.exports=tx({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:Y8t({editType:"calc"}),xhoverformat:UX("x"),yhoverformat:UX("y"),zhoverformat:UX("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"}},Z8t("",{colorAttr:"`intensity`",showScaleDflt:!0,editTypeOverride:"calc"}),{opacity:ex.opacity,flatshading:{valType:"boolean",dflt:!1,editType:"calc"},contour:{show:tx({},ex.contours.x.show,{}),color:ex.contours.x.color,width:ex.contours.x.width,editType:"calc"},lightposition:{x:tx({},ex.lightposition.x,{dflt:1e5}),y:tx({},ex.lightposition.y,{dflt:1e5}),z:tx({},ex.lightposition.z,{dflt:0}),editType:"calc"},lighting:tx({vertexnormalsepsilon:{valType:"number",min:0,max:1,dflt:1e-12,editType:"calc"},facenormalsepsilon:{valType:"number",min:0,max:1,dflt:1e-6,editType:"calc"},editType:"calc"},ex.lighting),hoverinfo:tx({},XIe.hoverinfo,{editType:"calc"}),showlegend:tx({},XIe.showlegend,{dflt:!1})})});var nF=ye((A0r,KIe)=>{"use strict";var K8t=Tu(),iF=df().axisHoverFormat,J8t=Qo().hovertemplateAttrs,$E=VA(),YIe=Vl(),VX=Ao().extendFlat,$8t=mc().overrideAll;function GX(e){return{show:{valType:"boolean",dflt:!1},locations:{valType:"data_array",dflt:[]},fill:{valType:"number",min:0,max:1,dflt:1}}}function HX(e){return{show:{valType:"boolean",dflt:!0},fill:{valType:"number",min:0,max:1,dflt:1}}}var GA=KIe.exports=$8t(VX({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:GX("x"),y:GX("y"),z:GX("z")},caps:{x:HX("x"),y:HX("y"),z:HX("z")},text:{valType:"string",dflt:"",arrayOk:!0},hovertext:{valType:"string",dflt:"",arrayOk:!0},hovertemplate:J8t(),xhoverformat:iF("x"),yhoverformat:iF("y"),zhoverformat:iF("z"),valuehoverformat:iF("value",1),showlegend:VX({},YIe.showlegend,{dflt:!1})},K8t("",{colorAttr:"`value`",showScaleDflt:!0,editTypeOverride:"calc"}),{opacity:$E.opacity,lightposition:$E.lightposition,lighting:$E.lighting,flatshading:$E.flatshading,contour:$E.contour,hoverinfo:VX({},YIe.hoverinfo)}),"calc","nested");GA.flatshading.dflt=!0;GA.lighting.facenormalsepsilon.dflt=0;GA.x.editType=GA.y.editType=GA.z.editType=GA.value.editType="calc+clearAxisTypes"});var jX=ye((S0r,$Ie)=>{"use strict";var Q8t=Dr(),eRt=qa(),tRt=nF(),rRt=Jh();function iRt(e,t,r,n){function i(a,o){return Q8t.coerce(e,t,tRt,a,o)}JIe(e,t,r,n,i)}function JIe(e,t,r,n,i){var a=i("isomin"),o=i("isomax");o!=null&&a!==void 0&&a!==null&&a>o&&(t.isomin=null,t.isomax=null);var s=i("x"),l=i("y"),u=i("z"),c=i("value");if(!s||!s.length||!l||!l.length||!u||!u.length||!c||!c.length){t.visible=!1;return}var f=eRt.getComponentMethod("calendars","handleTraceDefaults");f(e,t,["x","y","z"],n),i("valuehoverformat"),["x","y","z"].forEach(function(x){i(x+"hoverformat");var b="caps."+x,p=i(b+".show");p&&i(b+".fill");var C="slices."+x,E=i(C+".show");E&&(i(C+".fill"),i(C+".locations"))});var h=i("spaceframe.show");h&&i("spaceframe.fill");var d=i("surface.show");d&&(i("surface.count"),i("surface.fill"),i("surface.pattern"));var v=i("contour.show");v&&(i("contour.color"),i("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(x){i(x)}),rRt(e,t,n,i,{prefix:"",cLetter:"c"}),t._length=null}$Ie.exports={supplyDefaults:iRt,supplyIsoDefaults:JIe}});var aF=ye((M0r,e8e)=>{"use strict";var XX=Dr(),nRt=Fv();function aRt(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=Hm(t.u,t._len),t._v=Hm(t.v,t._len),t._w=Hm(t.w,t._len),t._x=Hm(t.x,t._len),t._y=Hm(t.y,t._len),t._z=Hm(t.z,t._len);var r=QIe(t);t._gridFill=r.fill,t._Xs=r.Xs,t._Ys=r.Ys,t._Zs=r.Zs,t._len=r.len;var n=0,i,a,o;t.starts&&(i=Hm(t.starts.x||[]),a=Hm(t.starts.y||[]),o=Hm(t.starts.z||[]),n=Math.min(i.length,a.length,o.length)),t._startsX=i||[],t._startsY=a||[],t._startsZ=o||[];var s=0,l=1/0,u;for(u=0;u1&&(E=t[i-1],L=r[i-1],k=n[i-1]),a=0;aE?"-":"+")+"x"),v=v.replace("y",(A>L?"-":"+")+"y"),v=v.replace("z",(_>k?"-":"+")+"z");var T=function(){i=0,M=[],g=[],P=[]};(!i||i{"use strict";var oRt=Fv(),sRt=aF().processGrid,oF=aF().filter;t8e.exports=function(t,r){r._len=Math.min(r.x.length,r.y.length,r.z.length,r.value.length),r._x=oF(r.x,r._len),r._y=oF(r.y,r._len),r._z=oF(r.z,r._len),r._value=oF(r.value,r._len);var n=sRt(r);r._gridFill=n.fill,r._Xs=n.Xs,r._Ys=n.Ys,r._Zs=n.Zs,r._len=n.len;for(var i=1/0,a=-1/0,o=0;o{"use strict";r8e.exports=function(t,r,n,i){i=i||t.length;for(var a=new Array(i),o=0;o{"use strict";var lRt=Od().gl_mesh3d,uRt=$y().parseColorScale,cRt=Dr().isArrayOrTypedArray,fRt=Jy(),hRt=tc().extractOpts,i8e=HA(),QE=function(e,t){for(var r=t.length-1;r>0;r--){var n=Math.min(t[r],t[r-1]),i=Math.max(t[r],t[r-1]);if(i>n&&n-1}function oe(er,Ut){return er===null?Ut:er}function _e(er,Ut,Ft){T();var bt=[Ut],yt=[Ft];if(H>=1)bt=[Ut],yt=[Ft];else if(H>0){var Yt=j(Ut,Ft);bt=Yt.xyzv,yt=Yt.abc}for(var lr=0;lr-1?Ft[Rr]:P(ei,Wr,Ur);Ge>-1?Tr[Rr]=Ge:Tr[Rr]=O(ei,Wr,Ur,oe(er,dt))}V(Tr[0],Tr[1],Tr[2])}}function Me(er,Ut,Ft){var bt=function(yt,Yt,lr){_e(er,[Ut[yt],Ut[Yt],Ut[lr]],[Ft[yt],Ft[Yt],Ft[lr]])};bt(0,1,2),bt(2,3,0)}function ke(er,Ut,Ft){var bt=function(yt,Yt,lr){_e(er,[Ut[yt],Ut[Yt],Ut[lr]],[Ft[yt],Ft[Yt],Ft[lr]])};bt(0,1,2),bt(3,0,1),bt(2,3,0),bt(1,2,3)}function me(er,Ut,Ft,bt){var yt=er[3];ytbt&&(yt=bt);for(var Yt=(er[3]-yt)/(er[3]-Ut[3]+1e-9),lr=[],Tr=0;Tr<4;Tr++)lr[Tr]=(1-Yt)*er[Tr]+Yt*Ut[Tr];return lr}function ie(er,Ut,Ft){return er>=Ut&&er<=Ft}function Se(er){var Ut=.001*(L-A);return er>=A-Ut&&er<=L+Ut}function Le(er){for(var Ut=[],Ft=0;Ft<4;Ft++){var bt=er[Ft];Ut.push([e._x[bt],e._y[bt],e._z[bt],e._value[bt]])}return Ut}var Ae=3;function De(er,Ut,Ft,bt,yt,Yt){Yt||(Yt=1),Ft=[-1,-1,-1];var lr=!1,Tr=[ie(Ut[0][3],bt,yt),ie(Ut[1][3],bt,yt),ie(Ut[2][3],bt,yt)];if(!Tr[0]&&!Tr[1]&&!Tr[2])return!1;var Rr=function(Wr,Ur,dt){return Se(Ur[0][3])&&Se(Ur[1][3])&&Se(Ur[2][3])?(_e(Wr,Ur,dt),!0):YtTr?[C,Yt]:[Yt,E];Nt(Ut,Rr[0],Rr[1])}}var ei=[[Math.min(A,E),Math.max(A,E)],[Math.min(C,L),Math.max(C,L)]];["x","y","z"].forEach(function(Wr){for(var Ur=[],dt=0;dt0&&(Ie.push(vt.id),Wr==="x"?xe.push([vt.distRatio,0,0]):Wr==="y"?xe.push([0,vt.distRatio,0]):xe.push([0,0,vt.distRatio]))}else Wr==="x"?wt=ur(1,d-1):Wr==="y"?wt=ur(1,v-1):wt=ur(1,x-1);Ie.length>0&&(Wr==="x"?Ur[Ge]=$t(er,Ie,Je,je,xe,Ur[Ge]):Wr==="y"?Ur[Ge]=sr(er,Ie,Je,je,xe,Ur[Ge]):Ur[Ge]=wr(er,Ie,Je,je,xe,Ur[Ge]),Ge++),wt.length>0&&(Wr==="x"?Ur[Ge]=pt(er,wt,Je,je,Ur[Ge]):Wr==="y"?Ur[Ge]=Wt(er,wt,Je,je,Ur[Ge]):Ur[Ge]=st(er,wt,Je,je,Ur[Ge]),Ge++)}var nr=e.caps[Wr];nr.show&&nr.fill&&(N(nr.fill),Wr==="x"?Ur[Ge]=pt(er,[0,d-1],Je,je,Ur[Ge]):Wr==="y"?Ur[Ge]=Wt(er,[0,v-1],Je,je,Ur[Ge]):Ur[Ge]=st(er,[0,x-1],Je,je,Ur[Ge]),Ge++)}}),s===0&&z(),e._meshX=_,e._meshY=k,e._meshZ=M,e._meshIntensity=g,e._Xs=c,e._Ys=f,e._Zs=h}return Et(),e}function vRt(e,t){var r=e.glplot.gl,n=lRt({gl:r}),i=new n8e(e,n,t.uid);return n._trace=i,i.update(t),e.glplot.add(n),i}o8e.exports={findNearestOnAxis:QE,generateIsoMeshes:a8e,createIsosurfaceTrace:vRt}});var l8e=ye((L0r,s8e)=>{"use strict";s8e.exports={attributes:nF(),supplyDefaults:jX().supplyDefaults,calc:ZX(),colorbar:{min:"cmin",max:"cmax"},plot:sF().createIsosurfaceTrace,moduleType:"trace",name:"isosurface",basePlotModule:Q_(),categories:["gl3d","showLegend"],meta:{}}});var c8e=ye((P0r,u8e)=>{"use strict";u8e.exports=l8e()});var JX=ye((I0r,h8e)=>{"use strict";var pRt=Tu(),Dh=nF(),gRt=KE(),f8e=Vl(),KX=Ao().extendFlat,mRt=mc().overrideAll,lF=h8e.exports=mRt(KX({x:Dh.x,y:Dh.y,z:Dh.z,value:Dh.value,isomin:Dh.isomin,isomax:Dh.isomax,surface:Dh.surface,spaceframe:{show:{valType:"boolean",dflt:!1},fill:{valType:"number",min:0,max:1,dflt:1}},slices:Dh.slices,caps:Dh.caps,text:Dh.text,hovertext:Dh.hovertext,xhoverformat:Dh.xhoverformat,yhoverformat:Dh.yhoverformat,zhoverformat:Dh.zhoverformat,valuehoverformat:Dh.valuehoverformat,hovertemplate:Dh.hovertemplate},pRt("",{colorAttr:"`value`",showScaleDflt:!0,editTypeOverride:"calc"}),{colorbar:Dh.colorbar,opacity:Dh.opacity,opacityscale:gRt.opacityscale,lightposition:Dh.lightposition,lighting:Dh.lighting,flatshading:Dh.flatshading,contour:Dh.contour,hoverinfo:KX({},f8e.hoverinfo),showlegend:KX({},f8e.showlegend,{dflt:!1})}),"calc","nested");lF.x.editType=lF.y.editType=lF.z.editType=lF.value.editType="calc+clearAxisTypes"});var v8e=ye((R0r,d8e)=>{"use strict";var yRt=Dr(),_Rt=JX(),xRt=jX().supplyIsoDefaults,bRt=BX().opacityscaleDefaults;d8e.exports=function(t,r,n,i){function a(o,s){return yRt.coerce(t,r,_Rt,o,s)}xRt(t,r,n,i,a),bRt(t,r,i,a)}});var y8e=ye((D0r,m8e)=>{"use strict";var wRt=Od().gl_mesh3d,TRt=$y().parseColorScale,ARt=Dr().isArrayOrTypedArray,SRt=Jy(),MRt=tc().extractOpts,p8e=HA(),$X=sF().findNearestOnAxis,ERt=sF().generateIsoMeshes;function g8e(e,t,r){this.scene=e,this.uid=r,this.mesh=t,this.name="",this.data=null,this.showContour=!1}var QX=g8e.prototype;QX.handlePick=function(e){if(e.object===this.mesh){var t=e.data.index,r=this.data._meshX[t],n=this.data._meshY[t],i=this.data._meshZ[t],a=this.data._Ys.length,o=this.data._Zs.length,s=$X(r,this.data._Xs).id,l=$X(n,this.data._Ys).id,u=$X(i,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 ARt(f)&&f[c]!==void 0?e.textLabel=f[c]:f&&(e.textLabel=f),!0}};QX.update=function(e){var t=this.scene,r=t.fullSceneLayout;this.data=ERt(e);function n(l,u,c,f){return u.map(function(h){return l.d2l(h,0,f)*c})}var i=p8e(n(r.xaxis,e._meshX,t.dataScale[0],e.xcalendar),n(r.yaxis,e._meshY,t.dataScale[1],e.ycalendar),n(r.zaxis,e._meshZ,t.dataScale[2],e.zcalendar)),a=p8e(e._meshI,e._meshJ,e._meshK),o={positions:i,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:SRt(e.contour.color).slice(0,3),contourWidth:e.contour.width,useFacetNormals:e.flatshading},s=MRt(e);o.vertexIntensity=e._meshIntensity,o.vertexIntensityBounds=[s.min,s.max],o.colormap=TRt(e),this.mesh.update(o)};QX.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function CRt(e,t){var r=e.glplot.gl,n=wRt({gl:r}),i=new g8e(e,n,t.uid);return n._trace=i,i.update(t),e.glplot.add(n),i}m8e.exports=CRt});var x8e=ye((F0r,_8e)=>{"use strict";_8e.exports={attributes:JX(),supplyDefaults:v8e(),calc:ZX(),colorbar:{min:"cmin",max:"cmax"},plot:y8e(),moduleType:"trace",name:"volume",basePlotModule:Q_(),categories:["gl3d","showLegend"],meta:{}}});var w8e=ye((z0r,b8e)=>{"use strict";b8e.exports=x8e()});var S8e=ye((O0r,A8e)=>{"use strict";var kRt=qa(),T8e=Dr(),LRt=Jh(),PRt=VA();A8e.exports=function(t,r,n,i){function a(c,f){return T8e.coerce(t,r,PRt,c,f)}function o(c){var f=c.map(function(h){var d=a(h);return d&&T8e.isArrayOrTypedArray(d)?d: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=kRt.getComponentMethod("calendars","handleTraceDefaults");l(t,r,["x","y","z"],i),["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"),LRt(t,r,i,a,{prefix:"",cLetter:"c"})):(r.showscale=!1,"facecolor"in t?a("facecolor"):"vertexcolor"in t?a("vertexcolor"):a("color",n)),a("text"),a("hovertext"),a("hovertemplate"),a("xhoverformat"),a("yhoverformat"),a("zhoverformat"),r._length=null}});var E8e=ye((q0r,M8e)=>{"use strict";var IRt=Fv();M8e.exports=function(t,r){r.intensity&&IRt(t,r,{vals:r.intensity,containerStr:"",cLetter:"c"})}});var I8e=ye((B0r,P8e)=>{"use strict";var RRt=Od().gl_mesh3d,DRt=Od().delaunay_triangulate,FRt=Od().alpha_shape,zRt=Od().convex_hull,ORt=$y().parseColorScale,qRt=Dr().isArrayOrTypedArray,iZ=Jy(),BRt=tc().extractOpts,C8e=HA();function L8e(e,t,r){this.scene=e,this.uid=r,this.mesh=t,this.name="",this.color="#fff",this.data=null,this.showContour=!1}var nZ=L8e.prototype;nZ.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 qRt(r)&&r[t]!==void 0?e.textLabel=r[t]:r&&(e.textLabel=r),!0}};function k8e(e){for(var t=[],r=e.length,n=0;n=t-.5)return!1;return!0}nZ.update=function(e){var t=this.scene,r=t.fullSceneLayout;this.data=e;var n=e.x.length,i=C8e(eZ(r.xaxis,e.x,t.dataScale[0],e.xcalendar),eZ(r.yaxis,e.y,t.dataScale[1],e.ycalendar),eZ(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||!rZ(e.i,n)||!rZ(e.j,n)||!rZ(e.k,n))return;a=C8e(tZ(e.i),tZ(e.j),tZ(e.k))}else e.alphahull===0?a=zRt(i):e.alphahull>0?a=FRt(e.alphahull,i):a=NRt(e.delaunayaxis,i);var o={positions:i,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:iZ(e.contour.color).slice(0,3),contourWidth:e.contour.width,useFacetNormals:e.flatshading};if(e.intensity){var s=BRt(e);this.color="#fff";var l=e.intensitymode;o[l+"Intensity"]=e.intensity,o[l+"IntensityBounds"]=[s.min,s.max],o.colormap=ORt(e)}else e.vertexcolor?(this.color=e.vertexcolor[0],o.vertexColors=k8e(e.vertexcolor)):e.facecolor?(this.color=e.facecolor[0],o.cellColors=k8e(e.facecolor)):(this.color=e.color,o.meshColor=iZ(e.color));this.mesh.update(o)};nZ.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function URt(e,t){var r=e.glplot.gl,n=RRt({gl:r}),i=new L8e(e,n,t.uid);return n._trace=i,i.update(t),e.glplot.add(n),i}P8e.exports=URt});var D8e=ye((N0r,R8e)=>{"use strict";R8e.exports={attributes:VA(),supplyDefaults:S8e(),calc:E8e(),colorbar:{min:"cmin",max:"cmax"},plot:I8e(),moduleType:"trace",name:"mesh3d",basePlotModule:Q_(),categories:["gl3d","showLegend"],meta:{}}});var z8e=ye((U0r,F8e)=>{"use strict";F8e.exports=D8e()});var oZ=ye((V0r,q8e)=>{"use strict";var VRt=Tu(),jA=df().axisHoverFormat,GRt=Qo().hovertemplateAttrs,HRt=VA(),O8e=Vl(),aZ=Ao().extendFlat,uF={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:GRt({editType:"calc"},{keys:["norm"]}),uhoverformat:jA("u",1),vhoverformat:jA("v",1),whoverformat:jA("w",1),xhoverformat:jA("x"),yhoverformat:jA("y"),zhoverformat:jA("z"),showlegend:aZ({},O8e.showlegend,{dflt:!1})};aZ(uF,VRt("",{colorAttr:"u/v/w norm",showScaleDflt:!0,editTypeOverride:"calc"}));var jRt=["opacity","lightposition","lighting"];jRt.forEach(function(e){uF[e]=HRt[e]});uF.hoverinfo=aZ({},O8e.hoverinfo,{editType:"calc",flags:["x","y","z","u","v","w","norm","text","name"],dflt:"x+y+z+norm+text+name"});q8e.exports=uF});var N8e=ye((G0r,B8e)=>{"use strict";var WRt=Dr(),XRt=Jh(),ZRt=oZ();B8e.exports=function(t,r,n,i){function a(d,v){return WRt.coerce(t,r,ZRt,d,v)}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"),XRt(t,r,i,a,{prefix:"",cLetter:"c"}),a("text"),a("hovertext"),a("hovertemplate"),a("uhoverformat"),a("vhoverformat"),a("whoverformat"),a("xhoverformat"),a("yhoverformat"),a("zhoverformat"),r._length=null}});var V8e=ye((H0r,U8e)=>{"use strict";var YRt=Fv();U8e.exports=function(t,r){for(var n=r.u,i=r.v,a=r.w,o=Math.min(r.x.length,r.y.length,r.z.length,n.length,i.length,a.length),s=-1/0,l=1/0,u=0;u{"use strict";var KRt=Od().gl_cone3d,JRt=Od().gl_cone3d.createConeMesh,$Rt=Dr().simpleMap,QRt=$y().parseColorScale,eDt=tc().extractOpts,tDt=Dr().isArrayOrTypedArray,G8e=HA();function H8e(e,t){this.scene=e,this.uid=t,this.mesh=null,this.data=null}var sZ=H8e.prototype;sZ.handlePick=function(e){if(e.object===this.mesh){var t=e.index=e.data.index,r=this.data.x[t],n=this.data.y[t],i=this.data.z[t],a=this.data.u[t],o=this.data.v[t],s=this.data.w[t];e.traceCoordinate=[r,n,i,a,o,s,Math.sqrt(a*a+o*o+s*s)];var l=this.data.hovertext||this.data.text;return tDt(l)&&l[t]!==void 0?e.textLabel=l[t]:l&&(e.textLabel=l),!0}};var rDt={xaxis:0,yaxis:1,zaxis:2},iDt={tip:1,tail:0,cm:.25,center:.5},nDt={tip:1,tail:1,cm:.75,center:.5};function j8e(e,t){var r=e.fullSceneLayout,n=e.dataScale,i={};function a(c,f){var h=r[f],d=n[rDt[f]];return $Rt(c,function(v){return h.d2l(v)*d})}i.vectors=G8e(a(t.u,"xaxis"),a(t.v,"yaxis"),a(t.w,"zaxis"),t._len),i.positions=G8e(a(t.x,"xaxis"),a(t.y,"yaxis"),a(t.z,"zaxis"),t._len);var o=eDt(t);i.colormap=QRt(t),i.vertexIntensityBounds=[o.min/t._normMax,o.max/t._normMax],i.coneOffset=iDt[t.anchor];var s=t.sizemode;s==="scaled"?i.coneSize=t.sizeref||.5:s==="absolute"?i.coneSize=t.sizeref&&t._normMax?t.sizeref/t._normMax:.5:s==="raw"&&(i.coneSize=t.sizeref),i.coneSizemode=s;var l=KRt(i),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=nDt[t.anchor]*l.vectorScale*l.coneScale*t._normMax,l}sZ.update=function(e){this.data=e;var t=j8e(this.scene,e);this.mesh.update(t)};sZ.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};function aDt(e,t){var r=e.glplot.gl,n=j8e(e,t),i=JRt(r,n),a=new H8e(e,t.uid);return a.mesh=i,a.data=t,i._trace=a,e.glplot.add(i),a}W8e.exports=aDt});var Y8e=ye((W0r,Z8e)=>{"use strict";Z8e.exports={moduleType:"trace",name:"cone",basePlotModule:Q_(),categories:["gl3d","showLegend"],attributes:oZ(),supplyDefaults:N8e(),colorbar:{min:"cmin",max:"cmax"},calc:V8e(),plot:X8e(),eventData:function(e,t){return e.norm=t.traceCoordinate[6],e},meta:{}}});var J8e=ye((X0r,K8e)=>{"use strict";K8e.exports=Y8e()});var uZ=ye((Z0r,Q8e)=>{"use strict";var oDt=Tu(),WA=df().axisHoverFormat,sDt=Qo().hovertemplateAttrs,lDt=VA(),$8e=Vl(),lZ=Ao().extendFlat,cF={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:sDt({editType:"calc"},{keys:["tubex","tubey","tubez","tubeu","tubev","tubew","norm","divergence"]}),uhoverformat:WA("u",1),vhoverformat:WA("v",1),whoverformat:WA("w",1),xhoverformat:WA("x"),yhoverformat:WA("y"),zhoverformat:WA("z"),showlegend:lZ({},$8e.showlegend,{dflt:!1})};lZ(cF,oDt("",{colorAttr:"u/v/w norm",showScaleDflt:!0,editTypeOverride:"calc"}));var uDt=["opacity","lightposition","lighting"];uDt.forEach(function(e){cF[e]=lDt[e]});cF.hoverinfo=lZ({},$8e.hoverinfo,{editType:"calc",flags:["x","y","z","u","v","w","norm","divergence","text","name"],dflt:"x+y+z+norm+text+name"});Q8e.exports=cF});var tRe=ye((Y0r,eRe)=>{"use strict";var cDt=Dr(),fDt=Jh(),hDt=uZ();eRe.exports=function(t,r,n,i){function a(h,d){return cDt.coerce(t,r,hDt,h,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}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"),fDt(t,r,i,a,{prefix:"",cLetter:"c"}),a("text"),a("hovertext"),a("hovertemplate"),a("uhoverformat"),a("vhoverformat"),a("whoverformat"),a("xhoverformat"),a("yhoverformat"),a("zhoverformat"),r._length=null}});var uRe=ye((K0r,lRe)=>{"use strict";var nRe=Od().gl_streamtube3d,dDt=nRe.createTubeMesh,vDt=Dr(),pDt=$y().parseColorScale,gDt=tc().extractOpts,rRe=HA(),aRe={xaxis:0,yaxis:1,zaxis:2};function oRe(e,t){this.scene=e,this.uid=t,this.mesh=null,this.data=null}var fZ=oRe.prototype;fZ.handlePick=function(e){var t=this.scene.fullSceneLayout,r=this.scene.dataScale;function n(o,s){var l=t[s],u=r[aRe[s]];return l.l2c(o)/u}if(e.object===this.mesh){var i=e.data.position,a=e.data.velocity;return e.traceCoordinate=[n(i[0],"xaxis"),n(i[1],"yaxis"),n(i[2],"zaxis"),n(a[0],"xaxis"),n(a[1],"yaxis"),n(a[2],"zaxis"),e.data.intensity*this.data._normMax,e.data.divergence],e.textLabel=this.data.hovertext||this.data.text,!0}};function iRe(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 cZ(e){var t=e.length;return t===1?[.5,.5]:[e[1]-e[0],e[t-1]-e[t-2]]}function sRe(e,t){var r=e.fullSceneLayout,n=e.dataScale,i=t._len,a={};function o(z,O){var V=r[O],G=n[aRe[O]];return vDt.simpleMap(z,function(Z){return V.d2l(Z)*G})}if(a.vectors=rRe(o(t._u,"xaxis"),o(t._v,"yaxis"),o(t._w,"zaxis"),i),!i)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=rRe(o(t._startsX,"xaxis"),o(t._startsY,"yaxis"),o(t._startsZ,"zaxis"));else{for(var f=l[0],h=iRe(s),d=iRe(u),v=new Array(h.length*d.length),x=0,b=0;b{"use strict";cRe.exports={moduleType:"trace",name:"streamtube",basePlotModule:Q_(),categories:["gl3d","showLegend"],attributes:uZ(),supplyDefaults:tRe(),colorbar:{min:"cmin",max:"cmax"},calc:aF().calc,plot:uRe(),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 dRe=ye(($0r,hRe)=>{"use strict";hRe.exports=fRe()});var G2=ye((egr,gRe)=>{"use strict";var yDt=Qo().hovertemplateAttrs,_Dt=Qo().texttemplateAttrs,xDt=Eg(),jm=pf(),bDt=Vl(),vRe=Tu(),wDt=Pd().dash,V2=Ao().extendFlat,TDt=mc().overrideAll,eg=jm.marker,pRe=jm.line,ADt=eg.line,Q0r=["The library used by the *country names* `locationmode` option is changing in an upcoming version.","Country names in existing plots may not work in the new version."].join(" ");gRe.exports=TDt({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:V2({},jm.mode,{dflt:"markers"}),text:V2({},jm.text,{}),texttemplate:_Dt({editType:"plot"},{keys:["lat","lon","location","text"]}),hovertext:V2({},jm.hovertext,{}),textfont:jm.textfont,textposition:jm.textposition,line:{color:pRe.color,width:pRe.width,dash:wDt},connectgaps:jm.connectgaps,marker:V2({symbol:eg.symbol,opacity:eg.opacity,angle:eg.angle,angleref:V2({},eg.angleref,{values:["previous","up","north"]}),standoff:eg.standoff,size:eg.size,sizeref:eg.sizeref,sizemin:eg.sizemin,sizemode:eg.sizemode,colorbar:eg.colorbar,line:V2({width:ADt.width},vRe("marker.line")),gradient:eg.gradient},vRe("marker")),fill:{valType:"enumerated",values:["none","toself"],dflt:"none"},fillcolor:xDt(),selected:jm.selected,unselected:jm.unselected,hoverinfo:V2({},bDt.hoverinfo,{flags:["lon","lat","location","text","name"]}),hovertemplate:yDt()},"calc","nested")});var yRe=ye((tgr,mRe)=>{"use strict";var hZ=Dr(),dZ=Ru(),SDt=$p(),MDt=R0(),EDt=D0(),CDt=Ig(),kDt=G2();mRe.exports=function(t,r,n,i){function a(d,v){return hZ.coerce(t,r,kDt,d,v)}var o=a("locations"),s;if(o&&o.length){var l=a("geojson"),u;(typeof l=="string"&&l!==""||hZ.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("mode"),dZ.hasMarkers(r)&&SDt(t,r,n,i,a,{gradient:!0}),dZ.hasLines(r)&&(MDt(t,r,n,i,a),a("connectgaps")),dZ.hasText(r)&&(a("texttemplate"),EDt(t,r,i,a)),a("fill"),r.fill!=="none"&&CDt(t,r,n,a),hZ.coerceSelectionMarkerOpacity(r,a)}});var bRe=ye((rgr,xRe)=>{"use strict";var _Re=ho();xRe.exports=function(t,r,n){var i={},a=n[r.geo]._subplot,o=a.mockAxis,s=t.lonlat;return i.lonLabel=_Re.tickText(o,o.c2l(s[0]),!0).text,i.latLabel=_Re.tickText(o,o.c2l(s[1]),!0).text,i}});var fF=ye((igr,SRe)=>{"use strict";var vZ=Eo(),wRe=hs().BADNUM,LDt=F0(),PDt=Cm(),IDt=z0(),RDt=Dr().isArrayOrTypedArray,TRe=Dr()._;function ARe(e){return e&&typeof e=="string"}SRe.exports=function(t,r){var n=RDt(r.locations),i=n?r.locations.length:r._length,a=new Array(i),o;r.geojson?o=function(h){return ARe(h)||vZ(h)}:o=ARe;for(var s=0;s{"use strict";Tv.projNames={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"};Tv.axesNames=["lonaxis","lataxis"];Tv.lonaxisSpan={orthographic:180,"azimuthal equal area":360,"azimuthal equidistant":360,"conic conformal":180,gnomonic:160,stereographic:180,"transverse mercator":180,"*":360};Tv.lataxisSpan={"conic conformal":150,stereographic:179.5,"*":180};Tv.scopeDefaults={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]}};Tv.clipPad=.001;Tv.precision=.1;Tv.landColor="#F0DC82";Tv.waterColor="#3399FF";Tv.locationmodeToLayer={"ISO-3":"countries","USA-states":"subunits","country names":"countries"};Tv.sphereSVG={type:"Sphere"};Tv.fillLayers={ocean:1,land:1,lakes:1};Tv.lineLayers={subunits:1,countries:1,coastlines:1,rivers:1,frame:1};Tv.layers=["bg","ocean","land","lakes","subunits","countries","coastlines","rivers","lataxis","lonaxis","frame","backplot","frontplot"];Tv.layersForChoropleth=["bg","ocean","land","subunits","countries","coastlines","lataxis","lonaxis","frame","backplot","rivers","lakes","frontplot"];Tv.layerNameToAdjective={ocean:"ocean",land:"land",lakes:"lake",subunits:"subunit",countries:"country",coastlines:"coastline",rivers:"river",frame:"frame"}});var pZ=ye((hF,MRe)=>{(function(e,t){typeof hF=="object"&&typeof MRe!="undefined"?t(hF):(e=e||self,t(e.topojson=e.topojson||{}))})(hF,function(e){"use strict";function t(E){return E}function r(E){if(E==null)return t;var A,L,_=E.scale[0],k=E.scale[1],M=E.translate[0],g=E.translate[1];return function(P,T){T||(A=L=0);var z=2,O=P.length,V=new Array(O);for(V[0]=(A+=P[0])*_+M,V[1]=(L+=P[1])*k+g;zM&&(M=z[0]),z[1]g&&(g=z[1])}function T(z){switch(z.type){case"GeometryCollection":z.geometries.forEach(T);break;case"Point":P(z.coordinates);break;case"MultiPoint":z.coordinates.forEach(P);break}}E.arcs.forEach(function(z){for(var O=-1,V=z.length,G;++OM&&(M=G[0]),G[1]g&&(g=G[1])});for(L in E.objects)T(E.objects[L]);return[_,k,M,g]}function i(E,A){for(var L,_=E.length,k=_-A;k<--_;)L=E[k],E[k++]=E[_],E[_]=L}function a(E,A){return typeof A=="string"&&(A=E.objects[A]),A.type==="GeometryCollection"?{type:"FeatureCollection",features:A.geometries.map(function(L){return o(E,L)})}:o(E,A)}function o(E,A){var L=A.id,_=A.bbox,k=A.properties==null?{}:A.properties,M=s(E,A);return L==null&&_==null?{type:"Feature",properties:k,geometry:M}:_==null?{type:"Feature",id:L,properties:k,geometry:M}:{type:"Feature",id:L,bbox:_,properties:k,geometry:M}}function s(E,A){var L=r(E.transform),_=E.arcs;function k(O,V){V.length&&V.pop();for(var G=_[O<0?~O:O],Z=0,H=G.length;Z1)_=f(E,A,L);else for(k=0,_=new Array(M=E.arcs.length);k1)for(var V=1,G=P(z[0]),Z,H;VG&&(H=z[0],z[0]=z[V],z[V]=H,G=Z);return z}).filter(function(T){return T.length>0})}}function x(E,A){for(var L=0,_=E.length;L<_;){var k=L+_>>>1;E[k]=2))throw new Error("n must be \u22652");T=E.bbox||n(E);var L=T[0],_=T[1],k=T[2],M=T[3],g;A={scale:[k-L?(k-L)/(g-1):1,M-_?(M-_)/(g-1):1],translate:[L,_]}}else T=E.bbox;var P=p(A),T,z,O=E.objects,V={};function G(N){return P(N)}function Z(N){var j;switch(N.type){case"GeometryCollection":j={type:"GeometryCollection",geometries:N.geometries.map(Z)};break;case"Point":j={type:"Point",coordinates:G(N.coordinates)};break;case"MultiPoint":j={type:"MultiPoint",coordinates:N.coordinates.map(G)};break;default:return N}return N.id!=null&&(j.id=N.id),N.bbox!=null&&(j.bbox=N.bbox),N.properties!=null&&(j.properties=N.properties),j}function H(N){var j=0,re=1,oe=N.length,_e,Me=new Array(oe);for(Me[0]=P(N[0],0);++j{"use strict";var gZ=ERe.exports={},DDt=eC().locationmodeToLayer,FDt=pZ().feature;gZ.getTopojsonName=function(e){return[e.scope.replace(/ /g,"-"),"_",e.resolution.toString(),"m"].join("")};gZ.getTopojsonPath=function(e,t){return e+=e.endsWith("/")?"":"/",`${e}${t}.json`};gZ.getTopojsonFeatures=function(e,t){var r=DDt[e.locationmode],n=t.objects[r];return FDt(t,n).features}});var rx=ye(tC=>{"use strict";var zDt=hs().BADNUM;tC.calcTraceToLineCoords=function(e){for(var t=e[0].trace,r=t.connectgaps,n=[],i=[],a=0;a0&&(n.push(i),i=[])}return i.length>0&&n.push(i),n};tC.makeLine=function(e){return e.length===1?{type:"LineString",coordinates:e[0]}:{type:"MultiLineString",coordinates:e}};tC.makePolygon=function(e){if(e.length===1)return{type:"Polygon",coordinates:e};for(var t=new Array(e.length),r=0;r{CRe.exports={AFG:"afghan",ALA:"\\b\\wland",ALB:"albania",DZA:"algeria",ASM:"^(?=.*americ).*samoa",AND:"andorra",AGO:"angola",AIA:"anguill?a",ATA:"antarctica",ATG:"antigua",ARG:"argentin",ARM:"armenia",ABW:"^(?!.*bonaire).*\\baruba",AUS:"australia",AUT:"^(?!.*hungary).*austria|\\baustri.*\\bemp",AZE:"azerbaijan",BHS:"bahamas",BHR:"bahrain",BGD:"bangladesh|^(?=.*east).*paki?stan",BRB:"barbados",BLR:"belarus|byelo",BEL:"^(?!.*luxem).*belgium",BLZ:"belize|^(?=.*british).*honduras",BEN:"benin|dahome",BMU:"bermuda",BTN:"bhutan",BOL:"bolivia",BES:"^(?=.*bonaire).*eustatius|^(?=.*carib).*netherlands|\\bbes.?islands",BIH:"herzegovina|bosnia",BWA:"botswana|bechuana",BVT:"bouvet",BRA:"brazil",IOT:"british.?indian.?ocean",BRN:"brunei",BGR:"bulgaria",BFA:"burkina|\\bfaso|upper.?volta",BDI:"burundi",CPV:"verde",KHM:"cambodia|kampuchea|khmer",CMR:"cameroon",CAN:"canada",CYM:"cayman",CAF:"\\bcentral.african.republic",TCD:"\\bchad",CHL:"\\bchile",CHN:"^(?!.*\\bmac)(?!.*\\bhong)(?!.*\\btai)(?!.*\\brep).*china|^(?=.*peo)(?=.*rep).*china",CXR:"christmas",CCK:"\\bcocos|keeling",COL:"colombia",COM:"comoro",COG:"^(?!.*\\bdem)(?!.*\\bd[\\.]?r)(?!.*kinshasa)(?!.*zaire)(?!.*belg)(?!.*l.opoldville)(?!.*free).*\\bcongo",COK:"\\bcook",CRI:"costa.?rica",CIV:"ivoire|ivory",HRV:"croatia",CUB:"\\bcuba",CUW:"^(?!.*bonaire).*\\bcura(c|\xE7)ao",CYP:"cyprus",CSK:"czechoslovakia",CZE:"^(?=.*rep).*czech|czechia|bohemia",COD:"\\bdem.*congo|congo.*\\bdem|congo.*\\bd[\\.]?r|\\bd[\\.]?r.*congo|belgian.?congo|congo.?free.?state|kinshasa|zaire|l.opoldville|drc|droc|rdc",DNK:"denmark",DJI:"djibouti",DMA:"dominica(?!n)",DOM:"dominican.rep",ECU:"ecuador",EGY:"egypt",SLV:"el.?salvador",GNQ:"guine.*eq|eq.*guine|^(?=.*span).*guinea",ERI:"eritrea",EST:"estonia",ETH:"ethiopia|abyssinia",FLK:"falkland|malvinas",FRO:"faroe|faeroe",FJI:"fiji",FIN:"finland",FRA:"^(?!.*\\bdep)(?!.*martinique).*france|french.?republic|\\bgaul",GUF:"^(?=.*french).*guiana",PYF:"french.?polynesia|tahiti",ATF:"french.?southern",GAB:"gabon",GMB:"gambia",GEO:"^(?!.*south).*georgia",DDR:"german.?democratic.?republic|democratic.?republic.*germany|east.germany",DEU:"^(?!.*east).*germany|^(?=.*\\bfed.*\\brep).*german",GHA:"ghana|gold.?coast",GIB:"gibraltar",GRC:"greece|hellenic|hellas",GRL:"greenland",GRD:"grenada",GLP:"guadeloupe",GUM:"\\bguam",GTM:"guatemala",GGY:"guernsey",GIN:"^(?!.*eq)(?!.*span)(?!.*bissau)(?!.*portu)(?!.*new).*guinea",GNB:"bissau|^(?=.*portu).*guinea",GUY:"guyana|british.?guiana",HTI:"haiti",HMD:"heard.*mcdonald",VAT:"holy.?see|vatican|papal.?st",HND:"^(?!.*brit).*honduras",HKG:"hong.?kong",HUN:"^(?!.*austr).*hungary",ISL:"iceland",IND:"india(?!.*ocea)",IDN:"indonesia",IRN:"\\biran|persia",IRQ:"\\biraq|mesopotamia",IRL:"(^ireland)|(^republic.*ireland)",IMN:"^(?=.*isle).*\\bman",ISR:"israel",ITA:"italy",JAM:"jamaica",JPN:"japan",JEY:"jersey",JOR:"jordan",KAZ:"kazak",KEN:"kenya|british.?east.?africa|east.?africa.?prot",KIR:"kiribati",PRK:"^(?=.*democrat|people|north|d.*p.*.r).*\\bkorea|dprk|korea.*(d.*p.*r)",KWT:"kuwait",KGZ:"kyrgyz|kirghiz",LAO:"\\blaos?\\b",LVA:"latvia",LBN:"lebanon",LSO:"lesotho|basuto",LBR:"liberia",LBY:"libya",LIE:"liechtenstein",LTU:"lithuania",LUX:"^(?!.*belg).*luxem",MAC:"maca(o|u)",MDG:"madagascar|malagasy",MWI:"malawi|nyasa",MYS:"malaysia",MDV:"maldive",MLI:"\\bmali\\b",MLT:"\\bmalta",MHL:"marshall",MTQ:"martinique",MRT:"mauritania",MUS:"mauritius",MYT:"\\bmayotte",MEX:"\\bmexic",FSM:"fed.*micronesia|micronesia.*fed",MCO:"monaco",MNG:"mongolia",MNE:"^(?!.*serbia).*montenegro",MSR:"montserrat",MAR:"morocco|\\bmaroc",MOZ:"mozambique",MMR:"myanmar|burma",NAM:"namibia",NRU:"nauru",NPL:"nepal",NLD:"^(?!.*\\bant)(?!.*\\bcarib).*netherlands",ANT:"^(?=.*\\bant).*(nether|dutch)",NCL:"new.?caledonia",NZL:"new.?zealand",NIC:"nicaragua",NER:"\\bniger(?!ia)",NGA:"nigeria",NIU:"niue",NFK:"norfolk",MNP:"mariana",NOR:"norway",OMN:"\\boman|trucial",PAK:"^(?!.*east).*paki?stan",PLW:"palau",PSE:"palestin|\\bgaza|west.?bank",PAN:"panama",PNG:"papua|new.?guinea",PRY:"paraguay",PER:"peru",PHL:"philippines",PCN:"pitcairn",POL:"poland",PRT:"portugal",PRI:"puerto.?rico",QAT:"qatar",KOR:"^(?!.*d.*p.*r)(?!.*democrat)(?!.*people)(?!.*north).*\\bkorea(?!.*d.*p.*r)",MDA:"moldov|b(a|e)ssarabia",REU:"r(e|\xE9)union",ROU:"r(o|u|ou)mania",RUS:"\\brussia|soviet.?union|u\\.?s\\.?s\\.?r|socialist.?republics",RWA:"rwanda",BLM:"barth(e|\xE9)lemy",SHN:"helena",KNA:"kitts|\\bnevis",LCA:"\\blucia",MAF:"^(?=.*collectivity).*martin|^(?=.*france).*martin(?!ique)|^(?=.*french).*martin(?!ique)",SPM:"miquelon",VCT:"vincent",WSM:"^(?!.*amer).*samoa",SMR:"san.?marino",STP:"\\bs(a|\xE3)o.?tom(e|\xE9)",SAU:"\\bsa\\w*.?arabia",SEN:"senegal",SRB:"^(?!.*monte).*serbia",SYC:"seychell",SLE:"sierra",SGP:"singapore",SXM:"^(?!.*martin)(?!.*saba).*maarten",SVK:"^(?!.*cze).*slovak",SVN:"slovenia",SLB:"solomon",SOM:"somali",ZAF:"south.africa|s\\\\..?africa",SGS:"south.?georgia|sandwich",SSD:"\\bs\\w*.?sudan",ESP:"spain",LKA:"sri.?lanka|ceylon",SDN:"^(?!.*\\bs(?!u)).*sudan",SUR:"surinam|dutch.?guiana",SJM:"svalbard",SWZ:"swaziland",SWE:"sweden",CHE:"switz|swiss",SYR:"syria",TWN:"taiwan|taipei|formosa|^(?!.*peo)(?=.*rep).*china",TJK:"tajik",THA:"thailand|\\bsiam",MKD:"macedonia|fyrom",TLS:"^(?=.*leste).*timor|^(?=.*east).*timor",TGO:"togo",TKL:"tokelau",TON:"tonga",TTO:"trinidad|tobago",TUN:"tunisia",TUR:"turkey",TKM:"turkmen",TCA:"turks",TUV:"tuvalu",UGA:"uganda",UKR:"ukrain",ARE:"emirates|^u\\.?a\\.?e\\.?$|united.?arab.?em",GBR:"united.?kingdom|britain|^u\\.?k\\.?$",TZA:"tanzania",USA:"united.?states\\b(?!.*islands)|\\bu\\.?s\\.?a\\.?\\b|^\\s*u\\.?s\\.?\\b(?!.*islands)",UMI:"minor.?outlying.?is",URY:"uruguay",UZB:"uzbek",VUT:"vanuatu|new.?hebrides",VEN:"venezuela",VNM:"^(?!.*republic).*viet.?nam|^(?=.*socialist).*viet.?nam",VGB:"^(?=.*\\bu\\.?\\s?k).*virgin|^(?=.*brit).*virgin|^(?=.*kingdom).*virgin",VIR:"^(?=.*\\bu\\.?\\s?s).*virgin|^(?=.*states).*virgin",WLF:"futuna|wallis",ESH:"western.sahara",YEM:"^(?!.*arab)(?!.*north)(?!.*sana)(?!.*peo)(?!.*dem)(?!.*south)(?!.*aden)(?!.*\\bp\\.?d\\.?r).*yemen",YMD:"^(?=.*peo).*yemen|^(?!.*rep)(?=.*dem).*yemen|^(?=.*south).*yemen|^(?=.*aden).*yemen|^(?=.*\\bp\\.?d\\.?r).*yemen",YUG:"yugoslavia",ZMB:"zambia|northern.?rhodesia",EAZ:"zanzibar",ZWE:"zimbabwe|^(?!.*northern).*rhodesia"}});var gF=ye(ic=>{"use strict";Object.defineProperty(ic,"__esModule",{value:!0});var zp=63710088e-1,yZ={centimeters:zp*100,centimetres:zp*100,degrees:360/(2*Math.PI),feet:zp*3.28084,inches:zp*39.37,kilometers:zp/1e3,kilometres:zp/1e3,meters:zp,metres:zp,miles:zp/1609.344,millimeters:zp*1e3,millimetres:zp*1e3,nauticalmiles:zp/1852,radians:1,yards:zp*1.0936},mZ={acres:247105e-9,centimeters:1e4,centimetres:1e4,feet:10.763910417,hectares:1e-4,inches:1550.003100006,kilometers:1e-6,kilometres:1e-6,meters:1,metres:1,miles:386e-9,nauticalmiles:29155334959812285e-23,millimeters:1e6,millimetres:1e6,yards:1.195990046};function ix(e,t,r={}){let n={type:"Feature"};return(r.id===0||r.id)&&(n.id=r.id),r.bbox&&(n.bbox=r.bbox),n.properties=t||{},n.geometry=e,n}function ODt(e,t,r={}){switch(e){case"Point":return _Z(t).geometry;case"LineString":return bZ(t).geometry;case"Polygon":return xZ(t).geometry;case"MultiPoint":return PRe(t).geometry;case"MultiLineString":return LRe(t).geometry;case"MultiPolygon":return IRe(t).geometry;default:throw new Error(e+" is invalid")}}function _Z(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(!vF(e[0])||!vF(e[1]))throw new Error("coordinates must contain numbers");return ix({type:"Point",coordinates:e},t,r)}function qDt(e,t,r={}){return pF(e.map(n=>_Z(n,t)),r)}function xZ(e,t,r={}){for(let i of e){if(i.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");if(i[i.length-1].length!==i[0].length)throw new Error("First and last Position are not equivalent.");for(let a=0;axZ(n,t)),r)}function bZ(e,t,r={}){if(e.length<2)throw new Error("coordinates must be an array of two or more positions");return ix({type:"LineString",coordinates:e},t,r)}function NDt(e,t,r={}){return pF(e.map(n=>bZ(n,t)),r)}function pF(e,t={}){let r={type:"FeatureCollection"};return t.id&&(r.id=t.id),t.bbox&&(r.bbox=t.bbox),r.features=e,r}function LRe(e,t,r={}){return ix({type:"MultiLineString",coordinates:e},t,r)}function PRe(e,t,r={}){return ix({type:"MultiPoint",coordinates:e},t,r)}function IRe(e,t,r={}){return ix({type:"MultiPolygon",coordinates:e},t,r)}function UDt(e,t,r={}){return ix({type:"GeometryCollection",geometries:e},t,r)}function VDt(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 RRe(e,t="kilometers"){let r=yZ[t];if(!r)throw new Error(t+" units is invalid");return e*r}function wZ(e,t="kilometers"){let r=yZ[t];if(!r)throw new Error(t+" units is invalid");return e/r}function GDt(e,t){return DRe(wZ(e,t))}function HDt(e){let t=e%360;return t<0&&(t+=360),t}function jDt(e){return e=e%360,e>180?e-360:e<-180?e+360:e}function DRe(e){return e%(2*Math.PI)*180/Math.PI}function WDt(e){return e%360*Math.PI/180}function XDt(e,t="kilometers",r="kilometers"){if(!(e>=0))throw new Error("length must be a positive number");return RRe(wZ(e,t),r)}function ZDt(e,t="meters",r="kilometers"){if(!(e>=0))throw new Error("area must be a positive number");let n=mZ[t];if(!n)throw new Error("invalid original units");let i=mZ[r];if(!i)throw new Error("invalid final units");return e/n*i}function vF(e){return!isNaN(e)&&e!==null&&!Array.isArray(e)}function YDt(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function KDt(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(!vF(t))throw new Error("bbox must only contain numbers")})}function JDt(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")}ic.areaFactors=mZ;ic.azimuthToBearing=jDt;ic.bearingToAzimuth=HDt;ic.convertArea=ZDt;ic.convertLength=XDt;ic.degreesToRadians=WDt;ic.earthRadius=zp;ic.factors=yZ;ic.feature=ix;ic.featureCollection=pF;ic.geometry=ODt;ic.geometryCollection=UDt;ic.isNumber=vF;ic.isObject=YDt;ic.lengthToDegrees=GDt;ic.lengthToRadians=wZ;ic.lineString=bZ;ic.lineStrings=NDt;ic.multiLineString=LRe;ic.multiPoint=PRe;ic.multiPolygon=IRe;ic.point=_Z;ic.points=qDt;ic.polygon=xZ;ic.polygons=BDt;ic.radiansToDegrees=DRe;ic.radiansToLength=RRe;ic.round=VDt;ic.validateBBox=KDt;ic.validateId=JDt});var yF=ye(qd=>{"use strict";Object.defineProperty(qd,"__esModule",{value:!0});var jv=gF();function rC(e,t,r){if(e!==null)for(var n,i,a,o,s,l,u,c=0,f=0,h,d=e.type,v=d==="FeatureCollection",x=d==="Feature",b=v?e.features.length:1,p=0;pl||v>u||x>c){s=f,l=n,u=v,c=x,a=0;return}var b=jv.lineString.call(void 0,[s,f],r.properties);if(t(b,n,i,x,a)===!1)return!1;a++,s=f})===!1)return!1}}})}function nFt(e,t,r){var n=r,i=!1;return ORe(e,function(a,o,s,l,u){i===!1&&r===void 0?n=a:n=t(n,a,o,s,l,u),i=!0}),n}function qRe(e,t){if(!e)throw new Error("geojson is required");mF(e,function(r,n,i){if(r.geometry!==null){var a=r.geometry.type,o=r.geometry.coordinates;switch(a){case"LineString":if(t(r,n,i,0,0)===!1)return!1;break;case"Polygon":for(var s=0;s{"use strict";Object.defineProperty(_F,"__esModule",{value:!0});var BRe=gF(),lFt=yF();function VRe(e){return lFt.geomReduce.call(void 0,e,(t,r)=>t+uFt(r),0)}function uFt(e){let t=0,r;switch(e.type){case"Polygon":return NRe(e.coordinates);case"MultiPolygon":for(r=0;r0){t+=Math.abs(URe(e[0]));for(let r=1;r=t?(n+2)%t:n+2],s=i[0]*AZ,l=a[1]*AZ,u=o[0]*AZ;r+=(u-s)*Math.sin(l),n++}return r*cFt}var fFt=VRe;_F.area=VRe;_F.default=fFt});var jRe=ye(xF=>{"use strict";Object.defineProperty(xF,"__esModule",{value:!0});var hFt=gF(),dFt=yF();function HRe(e,t={}){let r=0,n=0,i=0;return dFt.coordEach.call(void 0,e,function(a){r+=a[0],n+=a[1],i++},!0),hFt.point.call(void 0,[r/i,n/i],t.properties)}var vFt=HRe;xF.centroid=HRe;xF.default=vFt});var XRe=ye(bF=>{"use strict";Object.defineProperty(bF,"__esModule",{value:!0});var pFt=yF();function WRe(e,t={}){if(e.bbox!=null&&t.recompute!==!0)return e.bbox;let r=[1/0,1/0,-1/0,-1/0];return pFt.coordEach.call(void 0,e,n=>{r[0]>n[0]&&(r[0]=n[0]),r[1]>n[1]&&(r[1]=n[1]),r[2]{"use strict";var mFt=Oa(),KRe=kRe(),{area:yFt}=GRe(),{centroid:_Ft}=jRe(),{bbox:xFt}=XRe(),ZRe=VS(),XA=H1(),bFt=gy(),wFt=CS(),wF=MM(),YRe=Object.keys(KRe),TFt={"ISO-3":ZRe,"USA-states":ZRe,"country names":AFt};function AFt(e){for(var t=0;t0&&c[f+1][0]<0)return f;return null}switch(n==="RUS"||n==="FJI"?a=function(c){var f;if(u(c)===null)f=c;else for(f=new Array(c.length),l=0;lf?h[d++]=[c[l][0]+360,c[l][1]]:l===f?(h[d++]=c[l],h[d++]=[c[l][0],-90]):h[d++]=c[l];var v=wF.tester(h);v.pts.pop(),i.push(v)}:a=function(c){i.push(wF.tester(c))},t.type){case"MultiPolygon":for(o=0;o0?v.properties.ct=CFt(v):v.properties.ct=[NaN,NaN],h.fIn=c,h.fOut=v,i.push(v)}else XA.log(["Location",h.loc,"does not have a valid GeoJSON geometry.","Traces with locationmode *geojson-id* only support","*Polygon* and *MultiPolygon* geometries."].join(" "))}delete n[f]}switch(r.type){case"FeatureCollection":var l=r.features;for(a=0;ai&&(i=s,r=o)}else r=t;return _Ft(r).geometry.coordinates}function kFt(e){var t=window.PlotlyGeoAssets||{},r=[];function n(l){return new Promise(function(u,c){mFt.json(l,function(f,h){if(f){delete t[l];var d=f.status===404?'GeoJSON at URL "'+l+'" does not exist.':"Unexpected error while fetching from "+l;return c(new Error(d))}return t[l]=h,u(h)})})}function i(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;a{"use strict";var PFt=Oa(),IFt=So(),QRe=Ca(),eDe=ap(),RFt=eDe.stylePoints,DFt=eDe.styleText;tDe.exports=function(t,r){r&&FFt(t,r)};function FFt(e,t){var r=t[0].trace,n=t[0].node3;n.style("opacity",t[0].trace.opacity),RFt(n,r,e),DFt(n,r,e),n.selectAll("path.js-line").style("fill","none").each(function(i){var a=PFt.select(this),o=i.trace,s=o.line||{};a.call(QRe.stroke,s.color).call(IFt.dashLine,s.dash||"",s.width||0),o.fill!=="none"&&a.call(QRe.fill,o.fillcolor)})}});var kZ=ye((pgr,aDe)=>{"use strict";var rDe=Oa(),iC=Dr(),zFt=dF().getTopojsonFeatures,MZ=rx(),TF=nx(),iDe=wg().findExtremes,CZ=hs().BADNUM,OFt=O0().calcMarkerSize,EZ=Ru(),qFt=SZ(),BFt=["The library used by the *country names* `locationmode` option is changing in an upcoming version.","Country names in existing plots may not work in the new version."].join(" "),nDe=!0;function NFt(e,t,r){nDe&&(nDe=!1,iC.warn(BFt));var n=t.layers.frontplot.select(".scatterlayer"),i=iC.makeTraceGroups(n,r,"trace scattergeo");function a(o,s){o.lonlat[0]===CZ&&rDe.select(s).remove()}i.selectAll("*").remove(),i.each(function(o){var s=rDe.select(this),l=o[0].trace;if(EZ.hasLines(l)||l.fill!=="none"){var u=MZ.calcTraceToLineCoords(o),c=l.fill!=="none"?MZ.makePolygon(u):MZ.makeLine(u);s.selectAll("path.js-line").data([{geojson:c,trace:l}]).enter().append("path").classed("js-line",!0).style("stroke-miterlimit",2)}EZ.hasMarkers(l)&&s.selectAll("path.point").data(iC.identity).enter().append("path").classed("point",!0).each(function(f){a(f,this)}),EZ.hasText(l)&&s.selectAll("g").data(iC.identity).enter().append("g").append("text").each(function(f){a(f,this)}),qFt(e,o)})}function UFt(e,t){var r=e[0].trace,n=t[r.geo],i=n._subplot,a=r._length,o,s;if(iC.isArrayOrTypedArray(r.locations)){var l=r.locationmode,u=l==="geojson-id"?TF.extractTraceFeature(e):zFt(r,i.topojson);for(o=0;o{"use strict";var VFt=vf(),GFt=hs().BADNUM,HFt=oT(),jFt=Dr().fillText,WFt=G2();oDe.exports=function(t,r,n){var i=t.cd,a=i[0].trace,o=t.xa,s=t.ya,l=t.subplot,u=l.projection.isLonLatOverEdges,c=l.project;function f(C){var E=C.lonlat;if(E[0]===GFt||u(E))return 1/0;var A=c(E),L=c([r,n]),_=Math.abs(A[0]-L[0]),k=Math.abs(A[1]-L[1]),M=Math.max(3,C.mrc||0);return Math.max(Math.sqrt(_*_+k*k)-M,1-3/M)}if(VFt.getClosest(i,f,t),t.index!==!1){var h=i[t.index],d=h.lonlat,v=[o.c2p(d),s.c2p(d)],x=h.mrc||1;t.x0=v[0]-x,t.x1=v[0]+x,t.y0=v[1]-x,t.y1=v[1]+x,t.loc=h.loc,t.lon=d[0],t.lat=d[1];var b={};b[a.geo]={_subplot:l};var p=a._module.formatLabels(h,a,b);return t.lonLabel=p.lonLabel,t.latLabel=p.latLabel,t.color=HFt(a,h),t.extraText=XFt(a,h,t,i[0].t.labels),t.hovertemplate=a.hovertemplate,[t]}};function XFt(e,t,r,n){if(e.hovertemplate)return;var i=t.hi||e.hoverinfo,a=i==="all"?WFt.hoverinfo.flags:i.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(n.lon+f(r.lonLabel)):l&&c.push(n.lat+f(r.latLabel)),u&&jFt(t,e,c),c.join("
")}});var uDe=ye((mgr,lDe)=>{"use strict";lDe.exports=function(t,r,n,i,a){t.lon=r.lon,t.lat=r.lat,t.location=r.loc?r.loc:null;var o=i[a];return o.fIn&&o.fIn.properties&&(t.properties=o.fIn.properties),t}});var hDe=ye((ygr,fDe)=>{"use strict";var cDe=Ru(),ZFt=hs().BADNUM;fDe.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s=n[0].trace,l,u,c,f,h,d=!cDe.hasMarkers(s)&&!cDe.hasText(s);if(d)return[];if(r===!1)for(h=0;h{(function(e,t){t(typeof AF=="object"&&typeof dDe!="undefined"?AF:e.d3=e.d3||{})})(AF,function(e){"use strict";function t(Le,Ae){return LeAe?1:Le>=Ae?0:NaN}function r(Le){return Le.length===1&&(Le=n(Le)),{left:function(Ae,De,Pe,ge){for(Pe==null&&(Pe=0),ge==null&&(ge=Ae.length);Pe>>1;Le(Ae[Fe],De)<0?Pe=Fe+1:ge=Fe}return Pe},right:function(Ae,De,Pe,ge){for(Pe==null&&(Pe=0),ge==null&&(ge=Ae.length);Pe>>1;Le(Ae[Fe],De)>0?ge=Fe:Pe=Fe+1}return Pe}}}function n(Le){return function(Ae,De){return t(Le(Ae),De)}}var i=r(t),a=i.right,o=i.left;function s(Le,Ae){Ae==null&&(Ae=l);for(var De=0,Pe=Le.length-1,ge=Le[0],Fe=new Array(Pe<0?0:Pe);DeLe?1:Ae>=Le?0:NaN}function f(Le){return Le===null?NaN:+Le}function h(Le,Ae){var De=Le.length,Pe=0,ge=-1,Fe=0,ce,Ze,ct=0;if(Ae==null)for(;++ge1)return ct/(Pe-1)}function d(Le,Ae){var De=h(Le,Ae);return De&&Math.sqrt(De)}function v(Le,Ae){var De=Le.length,Pe=-1,ge,Fe,ce;if(Ae==null){for(;++Pe=ge)for(Fe=ce=ge;++Pege&&(Fe=ge),ce=ge)for(Fe=ce=ge;++Pege&&(Fe=ge),ce0)return[Le];if((Pe=Ae0)for(Le=Math.ceil(Le/Ze),Ae=Math.floor(Ae/Ze),ce=new Array(Fe=Math.ceil(Ae-Le+1));++ge=0?(Fe>=L?10:Fe>=_?5:Fe>=k?2:1)*Math.pow(10,ge):-Math.pow(10,-ge)/(Fe>=L?10:Fe>=_?5:Fe>=k?2:1)}function P(Le,Ae,De){var Pe=Math.abs(Ae-Le)/Math.max(0,De),ge=Math.pow(10,Math.floor(Math.log(Pe)/Math.LN10)),Fe=Pe/ge;return Fe>=L?ge*=10:Fe>=_?ge*=5:Fe>=k&&(ge*=2),Aest;)lt.pop(),--Gt;var Nt=new Array(Gt+1),$t;for(Fe=0;Fe<=Gt;++Fe)$t=Nt[Fe]=[],$t.x0=Fe>0?lt[Fe-1]:Wt,$t.x1=Fe=1)return+De(Le[Pe-1],Pe-1,Le);var Pe,ge=(Pe-1)*Ae,Fe=Math.floor(ge),ce=+De(Le[Fe],Fe,Le),Ze=+De(Le[Fe+1],Fe+1,Le);return ce+(Ze-ce)*(ge-Fe)}}function V(Le,Ae,De){return Le=p.call(Le,f).sort(t),Math.ceil((De-Ae)/(2*(O(Le,.75)-O(Le,.25))*Math.pow(Le.length,-1/3)))}function G(Le,Ae,De){return Math.ceil((De-Ae)/(3.5*d(Le)*Math.pow(Le.length,-1/3)))}function Z(Le,Ae){var De=Le.length,Pe=-1,ge,Fe;if(Ae==null){for(;++Pe=ge)for(Fe=ge;++PeFe&&(Fe=ge)}else for(;++Pe=ge)for(Fe=ge;++PeFe&&(Fe=ge);return Fe}function H(Le,Ae){var De=Le.length,Pe=De,ge=-1,Fe,ce=0;if(Ae==null)for(;++ge=0;)for(ce=Le[Ae],De=ce.length;--De>=0;)Fe[--ge]=ce[De];return Fe}function re(Le,Ae){var De=Le.length,Pe=-1,ge,Fe;if(Ae==null){for(;++Pe=ge)for(Fe=ge;++Pege&&(Fe=ge)}else for(;++Pe=ge)for(Fe=ge;++Pege&&(Fe=ge);return Fe}function oe(Le,Ae){for(var De=Ae.length,Pe=new Array(De);De--;)Pe[De]=Le[Ae[De]];return Pe}function _e(Le,Ae){if(De=Le.length){var De,Pe=0,ge=0,Fe,ce=Le[ge];for(Ae==null&&(Ae=t);++Pe{(function(e,t){typeof SF=="object"&&typeof vDe!="undefined"?t(SF,nC()):(e=e||self,t(e.d3=e.d3||{},e.d3))})(SF,function(e,t){"use strict";function r(){return new n}function n(){this.reset()}n.prototype={constructor:n,reset:function(){this.s=this.t=0},add:function(At){a(i,At,this.t),a(this,i.s,this.s),this.s?this.t+=i.t:this.s=i.t},valueOf:function(){return this.s}};var i=new n;function a(At,Xt,kr){var Ar=At.s=Xt+kr,Kr=Ar-Xt,Ei=Ar-Kr;At.t=Xt-Ei+(kr-Kr)}var o=1e-6,s=1e-12,l=Math.PI,u=l/2,c=l/4,f=l*2,h=180/l,d=l/180,v=Math.abs,x=Math.atan,b=Math.atan2,p=Math.cos,C=Math.ceil,E=Math.exp,A=Math.log,L=Math.pow,_=Math.sin,k=Math.sign||function(At){return At>0?1:At<0?-1:0},M=Math.sqrt,g=Math.tan;function P(At){return At>1?0:At<-1?l:Math.acos(At)}function T(At){return At>1?u:At<-1?-u:Math.asin(At)}function z(At){return(At=_(At/2))*At}function O(){}function V(At,Xt){At&&Z.hasOwnProperty(At.type)&&Z[At.type](At,Xt)}var G={Feature:function(At,Xt){V(At.geometry,Xt)},FeatureCollection:function(At,Xt){for(var kr=At.features,Ar=-1,Kr=kr.length;++Ar=0?1:-1,Kr=Ar*kr,Ei=p(Xt),Wi=_(Xt),hn=ie*Wi,Tn=me*Ei+hn*p(Kr),Bn=hn*Ar*_(Kr);re.add(b(Bn,Tn)),ke=At,me=Ei,ie=Wi}function ge(At){return oe.reset(),j(At,Se),oe*2}function Fe(At){return[b(At[1],At[0]),T(At[2])]}function ce(At){var Xt=At[0],kr=At[1],Ar=p(kr);return[Ar*p(Xt),Ar*_(Xt),_(kr)]}function Ze(At,Xt){return At[0]*Xt[0]+At[1]*Xt[1]+At[2]*Xt[2]}function ct(At,Xt){return[At[1]*Xt[2]-At[2]*Xt[1],At[2]*Xt[0]-At[0]*Xt[2],At[0]*Xt[1]-At[1]*Xt[0]]}function pt(At,Xt){At[0]+=Xt[0],At[1]+=Xt[1],At[2]+=Xt[2]}function Wt(At,Xt){return[At[0]*Xt,At[1]*Xt,At[2]*Xt]}function st(At){var Xt=M(At[0]*At[0]+At[1]*At[1]+At[2]*At[2]);At[0]/=Xt,At[1]/=Xt,At[2]/=Xt}var lt,Gt,Nt,$t,sr,wr,ur,Qe,Et=r(),er,Ut,Ft={point:bt,lineStart:Yt,lineEnd:lr,polygonStart:function(){Ft.point=Tr,Ft.lineStart=Rr,Ft.lineEnd=ei,Et.reset(),Se.polygonStart()},polygonEnd:function(){Se.polygonEnd(),Ft.point=bt,Ft.lineStart=Yt,Ft.lineEnd=lr,re<0?(lt=-(Nt=180),Gt=-($t=90)):Et>o?$t=90:Et<-o&&(Gt=-90),Ut[0]=lt,Ut[1]=Nt},sphere:function(){lt=-(Nt=180),Gt=-($t=90)}};function bt(At,Xt){er.push(Ut=[lt=At,Nt=At]),Xt$t&&($t=Xt)}function yt(At,Xt){var kr=ce([At*d,Xt*d]);if(Qe){var Ar=ct(Qe,kr),Kr=[Ar[1],-Ar[0],0],Ei=ct(Kr,Ar);st(Ei),Ei=Fe(Ei);var Wi=At-sr,hn=Wi>0?1:-1,Tn=Ei[0]*h*hn,Bn,Zi=v(Wi)>180;Zi^(hn*sr$t&&($t=Bn)):(Tn=(Tn+360)%360-180,Zi^(hn*sr$t&&($t=Xt))),Zi?AtWr(lt,Nt)&&(Nt=At):Wr(At,Nt)>Wr(lt,Nt)&&(lt=At):Nt>=lt?(AtNt&&(Nt=At)):At>sr?Wr(lt,At)>Wr(lt,Nt)&&(Nt=At):Wr(At,Nt)>Wr(lt,Nt)&&(lt=At)}else er.push(Ut=[lt=At,Nt=At]);Xt$t&&($t=Xt),Qe=kr,sr=At}function Yt(){Ft.point=yt}function lr(){Ut[0]=lt,Ut[1]=Nt,Ft.point=bt,Qe=null}function Tr(At,Xt){if(Qe){var kr=At-sr;Et.add(v(kr)>180?kr+(kr>0?360:-360):kr)}else wr=At,ur=Xt;Se.point(At,Xt),yt(At,Xt)}function Rr(){Se.lineStart()}function ei(){Tr(wr,ur),Se.lineEnd(),v(Et)>o&&(lt=-(Nt=180)),Ut[0]=lt,Ut[1]=Nt,Qe=null}function Wr(At,Xt){return(Xt-=At)<0?Xt+360:Xt}function Ur(At,Xt){return At[0]-Xt[0]}function dt(At,Xt){return At[0]<=At[1]?At[0]<=Xt&&Xt<=At[1]:XtWr(Ar[0],Ar[1])&&(Ar[1]=Kr[1]),Wr(Kr[0],Ar[1])>Wr(Ar[0],Ar[1])&&(Ar[0]=Kr[0])):Ei.push(Ar=Kr);for(Wi=-1/0,kr=Ei.length-1,Xt=0,Ar=Ei[kr];Xt<=kr;Ar=Kr,++Xt)Kr=Ei[Xt],(hn=Wr(Ar[1],Kr[0]))>Wi&&(Wi=hn,lt=Kr[0],Nt=Ar[1])}return er=Ut=null,lt===1/0||Gt===1/0?[[NaN,NaN],[NaN,NaN]]:[[lt,Gt],[Nt,$t]]}var Je,je,$e,wt,Ie,xe,Ce,vt,nr,ir,pr,oi,di,Jr,fi,Hi,Pn={sphere:O,point:wn,lineStart:Vn,lineEnd:ua,polygonStart:function(){Pn.lineStart=Vt,Pn.lineEnd=_t},polygonEnd:function(){Pn.lineStart=Vn,Pn.lineEnd=ua}};function wn(At,Xt){At*=d,Xt*=d;var kr=p(Xt);pn(kr*p(At),kr*_(At),_(Xt))}function pn(At,Xt,kr){++Je,$e+=(At-$e)/Je,wt+=(Xt-wt)/Je,Ie+=(kr-Ie)/Je}function Vn(){Pn.point=kn}function kn(At,Xt){At*=d,Xt*=d;var kr=p(Xt);Jr=kr*p(At),fi=kr*_(At),Hi=_(Xt),Pn.point=ea,pn(Jr,fi,Hi)}function ea(At,Xt){At*=d,Xt*=d;var kr=p(Xt),Ar=kr*p(At),Kr=kr*_(At),Ei=_(Xt),Wi=b(M((Wi=fi*Ei-Hi*Kr)*Wi+(Wi=Hi*Ar-Jr*Ei)*Wi+(Wi=Jr*Kr-fi*Ar)*Wi),Jr*Ar+fi*Kr+Hi*Ei);je+=Wi,xe+=Wi*(Jr+(Jr=Ar)),Ce+=Wi*(fi+(fi=Kr)),vt+=Wi*(Hi+(Hi=Ei)),pn(Jr,fi,Hi)}function ua(){Pn.point=wn}function Vt(){Pn.point=tr}function _t(){ar(oi,di),Pn.point=wn}function tr(At,Xt){oi=At,di=Xt,At*=d,Xt*=d,Pn.point=ar;var kr=p(Xt);Jr=kr*p(At),fi=kr*_(At),Hi=_(Xt),pn(Jr,fi,Hi)}function ar(At,Xt){At*=d,Xt*=d;var kr=p(Xt),Ar=kr*p(At),Kr=kr*_(At),Ei=_(Xt),Wi=fi*Ei-Hi*Kr,hn=Hi*Ar-Jr*Ei,Tn=Jr*Kr-fi*Ar,Bn=M(Wi*Wi+hn*hn+Tn*Tn),Zi=T(Bn),$i=Bn&&-Zi/Bn;nr+=$i*Wi,ir+=$i*hn,pr+=$i*Tn,je+=Zi,xe+=Zi*(Jr+(Jr=Ar)),Ce+=Zi*(fi+(fi=Kr)),vt+=Zi*(Hi+(Hi=Ei)),pn(Jr,fi,Hi)}function Er(At){Je=je=$e=wt=Ie=xe=Ce=vt=nr=ir=pr=0,j(At,Pn);var Xt=nr,kr=ir,Ar=pr,Kr=Xt*Xt+kr*kr+Ar*Ar;return Krl?At+Math.round(-At/f)*f:At,Xt]}$r.invert=$r;function zi(At,Xt,kr){return(At%=f)?Xt||kr?ri(en(At),cn(Xt,kr)):en(At):Xt||kr?cn(Xt,kr):$r}function Ji(At){return function(Xt,kr){return Xt+=At,[Xt>l?Xt-f:Xt<-l?Xt+f:Xt,kr]}}function en(At){var Xt=Ji(At);return Xt.invert=Ji(-At),Xt}function cn(At,Xt){var kr=p(At),Ar=_(At),Kr=p(Xt),Ei=_(Xt);function Wi(hn,Tn){var Bn=p(Tn),Zi=p(hn)*Bn,$i=_(hn)*Bn,an=_(Tn),Di=an*kr+Zi*Ar;return[b($i*Kr-Di*Ei,Zi*kr-an*Ar),T(Di*Kr+$i*Ei)]}return Wi.invert=function(hn,Tn){var Bn=p(Tn),Zi=p(hn)*Bn,$i=_(hn)*Bn,an=_(Tn),Di=an*Kr-$i*Ei;return[b($i*Kr+an*Ei,Zi*kr+Di*Ar),T(Di*kr-Zi*Ar)]},Wi}function yn(At){At=zi(At[0]*d,At[1]*d,At.length>2?At[2]*d:0);function Xt(kr){return kr=At(kr[0]*d,kr[1]*d),kr[0]*=h,kr[1]*=h,kr}return Xt.invert=function(kr){return kr=At.invert(kr[0]*d,kr[1]*d),kr[0]*=h,kr[1]*=h,kr},Xt}function Mn(At,Xt,kr,Ar,Kr,Ei){if(kr){var Wi=p(Xt),hn=_(Xt),Tn=Ar*kr;Kr==null?(Kr=Xt+Ar*f,Ei=Xt-Tn/2):(Kr=Ba(Wi,Kr),Ei=Ba(Wi,Ei),(Ar>0?KrEi)&&(Kr+=Ar*f));for(var Bn,Zi=Kr;Ar>0?Zi>Ei:Zi1&&At.push(At.pop().concat(At.shift()))},result:function(){var kr=At;return At=[],Xt=null,kr}}}function Wa(At,Xt){return v(At[0]-Xt[0])=0;--hn)Kr.point(($i=Zi[hn])[0],$i[1]);else Ar(an.x,an.p.x,-1,Kr);an=an.p}an=an.o,Zi=an.z,Di=!Di}while(!an.v);Kr.lineEnd()}}}function da(At){if(Xt=At.length){for(var Xt,kr=0,Ar=At[0],Kr;++kr=0?1:-1,os=Ms*Xo,Ts=os>l,Ho=ka*Ka;if(Wn.add(b(Ho*Ms*_(os),Ra*bo+Ho*p(os))),Wi+=Ts?Xo+Ms*f:Xo,Ts^Di>=kr^Yn>=kr){var yl=ct(ce(an),ce(Na));st(yl);var Xs=ct(Ei,yl);st(Xs);var Ps=(Ts^Xo>=0?-1:1)*T(Xs[2]);(Ar>Ps||Ar===Ps&&(yl[0]||yl[1]))&&(hn+=Ts^Xo>=0?1:-1)}}return(Wi<-o||Wi0){for(Tn||(Kr.polygonStart(),Tn=!0),Kr.lineStart(),bo=0;bo1&&zn&2&&Ka.push(Ka.pop().concat(Ka.shift())),Zi.push(Ka.filter(St))}}return an}}function St(At){return At.length>1}function Cr(At,Xt){return((At=At.x)[0]<0?At[1]-u-o:u-At[1])-((Xt=Xt.x)[0]<0?Xt[1]-u-o:u-Xt[1])}var Qr=jn(function(){return!0},pi,Sn,[-l,-u]);function pi(At){var Xt=NaN,kr=NaN,Ar=NaN,Kr;return{lineStart:function(){At.lineStart(),Kr=1},point:function(Ei,Wi){var hn=Ei>0?l:-l,Tn=v(Ei-Xt);v(Tn-l)0?u:-u),At.point(Ar,kr),At.lineEnd(),At.lineStart(),At.point(hn,kr),At.point(Ei,kr),Kr=0):Ar!==hn&&Tn>=l&&(v(Xt-Ar)o?x((_(Xt)*(Ei=p(Ar))*_(kr)-_(Ar)*(Kr=p(Xt))*_(At))/(Kr*Ei*Wi)):(Xt+Ar)/2}function Sn(At,Xt,kr,Ar){var Kr;if(At==null)Kr=kr*u,Ar.point(-l,Kr),Ar.point(0,Kr),Ar.point(l,Kr),Ar.point(l,0),Ar.point(l,-Kr),Ar.point(0,-Kr),Ar.point(-l,-Kr),Ar.point(-l,0),Ar.point(-l,Kr);else if(v(At[0]-Xt[0])>o){var Ei=At[0]0,Kr=v(Xt)>o;function Ei(Zi,$i,an,Di){Mn(Di,At,kr,an,Zi,$i)}function Wi(Zi,$i){return p(Zi)*p($i)>Xt}function hn(Zi){var $i,an,Di,$n,ka;return{lineStart:function(){$n=Di=!1,ka=1},point:function(Ra,La){var Na=[Ra,La],Yn,zn=Wi(Ra,La),Ka=Ar?zn?0:Bn(Ra,La):zn?Bn(Ra+(Ra<0?l:-l),La):0;if(!$i&&($n=Di=zn)&&Zi.lineStart(),zn!==Di&&(Yn=Tn($i,Na),(!Yn||Wa($i,Yn)||Wa(Na,Yn))&&(Na[2]=1)),zn!==Di)ka=0,zn?(Zi.lineStart(),Yn=Tn(Na,$i),Zi.point(Yn[0],Yn[1])):(Yn=Tn($i,Na),Zi.point(Yn[0],Yn[1],2),Zi.lineEnd()),$i=Yn;else if(Kr&&$i&&Ar^zn){var bo;!(Ka&an)&&(bo=Tn(Na,$i,!0))&&(ka=0,Ar?(Zi.lineStart(),Zi.point(bo[0][0],bo[0][1]),Zi.point(bo[1][0],bo[1][1]),Zi.lineEnd()):(Zi.point(bo[1][0],bo[1][1]),Zi.lineEnd(),Zi.lineStart(),Zi.point(bo[0][0],bo[0][1],3)))}zn&&(!$i||!Wa($i,Na))&&Zi.point(Na[0],Na[1]),$i=Na,Di=zn,an=Ka},lineEnd:function(){Di&&Zi.lineEnd(),$i=null},clean:function(){return ka|($n&&Di)<<1}}}function Tn(Zi,$i,an){var Di=ce(Zi),$n=ce($i),ka=[1,0,0],Ra=ct(Di,$n),La=Ze(Ra,Ra),Na=Ra[0],Yn=La-Na*Na;if(!Yn)return!an&&Zi;var zn=Xt*La/Yn,Ka=-Xt*Na/Yn,bo=ct(ka,Ra),Xo=Wt(ka,zn),Ms=Wt(Ra,Ka);pt(Xo,Ms);var os=bo,Ts=Ze(Xo,os),Ho=Ze(os,os),yl=Ts*Ts-Ho*(Ze(Xo,Xo)-1);if(!(yl<0)){var Xs=M(yl),Ps=Wt(os,(-Ts-Xs)/Ho);if(pt(Ps,Xo),Ps=Fe(Ps),!an)return Ps;var va=Zi[0],no=$i[0],_s=Zi[1],is=$i[1],$l;no0^Ps[1]<(v(Ps[0]-va)l^(va<=Ps[0]&&Ps[0]<=no)){var gu=Wt(os,(-Ts+Xs)/Ho);return pt(gu,Xo),[Ps,Fe(gu)]}}}function Bn(Zi,$i){var an=Ar?At:l-At,Di=0;return Zi<-an?Di|=1:Zi>an&&(Di|=2),$i<-an?Di|=4:$i>an&&(Di|=8),Di}return jn(Wi,hn,Ei,Ar?[0,-At]:[-l,At-l])}function ki(At,Xt,kr,Ar,Kr,Ei){var Wi=At[0],hn=At[1],Tn=Xt[0],Bn=Xt[1],Zi=0,$i=1,an=Tn-Wi,Di=Bn-hn,$n;if($n=kr-Wi,!(!an&&$n>0)){if($n/=an,an<0){if($n0){if($n>$i)return;$n>Zi&&(Zi=$n)}if($n=Kr-Wi,!(!an&&$n<0)){if($n/=an,an<0){if($n>$i)return;$n>Zi&&(Zi=$n)}else if(an>0){if($n0)){if($n/=Di,Di<0){if($n0){if($n>$i)return;$n>Zi&&(Zi=$n)}if($n=Ei-hn,!(!Di&&$n<0)){if($n/=Di,Di<0){if($n>$i)return;$n>Zi&&(Zi=$n)}else if(Di>0){if($n0&&(At[0]=Wi+Zi*an,At[1]=hn+Zi*Di),$i<1&&(Xt[0]=Wi+$i*an,Xt[1]=hn+$i*Di),!0}}}}}var _n=1e9,ya=-_n;function Jn(At,Xt,kr,Ar){function Kr(Bn,Zi){return At<=Bn&&Bn<=kr&&Xt<=Zi&&Zi<=Ar}function Ei(Bn,Zi,$i,an){var Di=0,$n=0;if(Bn==null||(Di=Wi(Bn,$i))!==($n=Wi(Zi,$i))||Tn(Bn,Zi)<0^$i>0)do an.point(Di===0||Di===3?At:kr,Di>1?Ar:Xt);while((Di=(Di+$i+4)%4)!==$n);else an.point(Zi[0],Zi[1])}function Wi(Bn,Zi){return v(Bn[0]-At)0?0:3:v(Bn[0]-kr)0?2:1:v(Bn[1]-Xt)0?1:0:Zi>0?3:2}function hn(Bn,Zi){return Tn(Bn.x,Zi.x)}function Tn(Bn,Zi){var $i=Wi(Bn,1),an=Wi(Zi,1);return $i!==an?$i-an:$i===0?Zi[1]-Bn[1]:$i===1?Bn[0]-Zi[0]:$i===2?Bn[1]-Zi[1]:Zi[0]-Bn[0]}return function(Bn){var Zi=Bn,$i=ma(),an,Di,$n,ka,Ra,La,Na,Yn,zn,Ka,bo,Xo={point:Ms,lineStart:yl,lineEnd:Xs,polygonStart:Ts,polygonEnd:Ho};function Ms(va,no){Kr(va,no)&&Zi.point(va,no)}function os(){for(var va=0,no=0,_s=Di.length;no<_s;++no)for(var is=Di[no],$l=1,ku=is.length,Yu=is[0],Nc,gu,Uc=Yu[0],xu=Yu[1];$lAr&&(Uc-Nc)*(Ar-gu)>(xu-gu)*(At-Nc)&&++va:xu<=Ar&&(Uc-Nc)*(Ar-gu)<(xu-gu)*(At-Nc)&&--va;return va}function Ts(){Zi=$i,an=[],Di=[],bo=!0}function Ho(){var va=os(),no=bo&&va,_s=(an=t.merge(an)).length;(no||_s)&&(Bn.polygonStart(),no&&(Bn.lineStart(),Ei(null,null,1,Bn),Bn.lineEnd()),_s&&Wo(an,hn,va,Ei,Bn),Bn.polygonEnd()),Zi=Bn,an=Di=$n=null}function yl(){Xo.point=Ps,Di&&Di.push($n=[]),Ka=!0,zn=!1,Na=Yn=NaN}function Xs(){an&&(Ps(ka,Ra),La&&zn&&$i.rejoin(),an.push($i.result())),Xo.point=Ms,zn&&Zi.lineEnd()}function Ps(va,no){var _s=Kr(va,no);if(Di&&$n.push([va,no]),Ka)ka=va,Ra=no,La=_s,Ka=!1,_s&&(Zi.lineStart(),Zi.point(va,no));else if(_s&&zn)Zi.point(va,no);else{var is=[Na=Math.max(ya,Math.min(_n,Na)),Yn=Math.max(ya,Math.min(_n,Yn))],$l=[va=Math.max(ya,Math.min(_n,va)),no=Math.max(ya,Math.min(_n,no))];ki(is,$l,At,Xt,kr,Ar)?(zn||(Zi.lineStart(),Zi.point(is[0],is[1])),Zi.point($l[0],$l[1]),_s||Zi.lineEnd(),bo=!1):_s&&(Zi.lineStart(),Zi.point(va,no),bo=!1)}Na=va,Yn=no,zn=_s}return Xo}}function Ma(){var At=0,Xt=0,kr=960,Ar=500,Kr,Ei,Wi;return Wi={stream:function(hn){return Kr&&Ei===hn?Kr:Kr=Jn(At,Xt,kr,Ar)(Ei=hn)},extent:function(hn){return arguments.length?(At=+hn[0][0],Xt=+hn[0][1],kr=+hn[1][0],Ar=+hn[1][1],Kr=Ei=null,Wi):[[At,Xt],[kr,Ar]]}}}var _o=r(),No,po,Lo,Co={sphere:O,point:O,lineStart:Fs,lineEnd:O,polygonStart:O,polygonEnd:O};function Fs(){Co.point=ul,Co.lineEnd=zs}function zs(){Co.point=Co.lineEnd=O}function ul(At,Xt){At*=d,Xt*=d,No=At,po=_(Xt),Lo=p(Xt),Co.point=cl}function cl(At,Xt){At*=d,Xt*=d;var kr=_(Xt),Ar=p(Xt),Kr=v(At-No),Ei=p(Kr),Wi=_(Kr),hn=Ar*Wi,Tn=Lo*kr-po*Ar*Ei,Bn=po*kr+Lo*Ar*Ei;_o.add(b(M(hn*hn+Tn*Tn),Bn)),No=At,po=kr,Lo=Ar}function Fl(At){return _o.reset(),j(At,Co),+_o}var cs=[null,null],nl={type:"LineString",coordinates:cs};function Ss(At,Xt){return cs[0]=At,cs[1]=Xt,Fl(nl)}var fl={Feature:function(At,Xt){return Os(At.geometry,Xt)},FeatureCollection:function(At,Xt){for(var kr=At.features,Ar=-1,Kr=kr.length;++Ar0&&(Kr=Ss(At[Ei],At[Ei-1]),Kr>0&&kr<=Kr&&Ar<=Kr&&(kr+Ar-Kr)*(1-Math.pow((kr-Ar)/Kr,2))o}).map(an)).concat(t.range(C(Ei/Bn)*Bn,Kr,Bn).filter(function(Yn){return v(Yn%$i)>o}).map(Di))}return La.lines=function(){return Na().map(function(Yn){return{type:"LineString",coordinates:Yn}})},La.outline=function(){return{type:"Polygon",coordinates:[$n(Ar).concat(ka(Wi).slice(1),$n(kr).reverse().slice(1),ka(hn).reverse().slice(1))]}},La.extent=function(Yn){return arguments.length?La.extentMajor(Yn).extentMinor(Yn):La.extentMinor()},La.extentMajor=function(Yn){return arguments.length?(Ar=+Yn[0][0],kr=+Yn[1][0],hn=+Yn[0][1],Wi=+Yn[1][1],Ar>kr&&(Yn=Ar,Ar=kr,kr=Yn),hn>Wi&&(Yn=hn,hn=Wi,Wi=Yn),La.precision(Ra)):[[Ar,hn],[kr,Wi]]},La.extentMinor=function(Yn){return arguments.length?(Xt=+Yn[0][0],At=+Yn[1][0],Ei=+Yn[0][1],Kr=+Yn[1][1],Xt>At&&(Yn=Xt,Xt=At,At=Yn),Ei>Kr&&(Yn=Ei,Ei=Kr,Kr=Yn),La.precision(Ra)):[[Xt,Ei],[At,Kr]]},La.step=function(Yn){return arguments.length?La.stepMajor(Yn).stepMinor(Yn):La.stepMinor()},La.stepMajor=function(Yn){return arguments.length?(Zi=+Yn[0],$i=+Yn[1],La):[Zi,$i]},La.stepMinor=function(Yn){return arguments.length?(Tn=+Yn[0],Bn=+Yn[1],La):[Tn,Bn]},La.precision=function(Yn){return arguments.length?(Ra=+Yn,an=Fn(Ei,Kr,90),Di=_a(Xt,At,Ra),$n=Fn(hn,Wi,90),ka=_a(Ar,kr,Ra),La):Ra},La.extentMajor([[-180,-90+o],[180,90-o]]).extentMinor([[-180,-80-o],[180,80+o]])}function zl(){return Vu()()}function xo(At,Xt){var kr=At[0]*d,Ar=At[1]*d,Kr=Xt[0]*d,Ei=Xt[1]*d,Wi=p(Ar),hn=_(Ar),Tn=p(Ei),Bn=_(Ei),Zi=Wi*p(kr),$i=Wi*_(kr),an=Tn*p(Kr),Di=Tn*_(Kr),$n=2*T(M(z(Ei-Ar)+Wi*Tn*z(Kr-kr))),ka=_($n),Ra=$n?function(La){var Na=_(La*=$n)/ka,Yn=_($n-La)/ka,zn=Yn*Zi+Na*an,Ka=Yn*$i+Na*Di,bo=Yn*hn+Na*Bn;return[b(Ka,zn)*h,b(bo,M(zn*zn+Ka*Ka))*h]}:function(){return[kr*h,Ar*h]};return Ra.distance=$n,Ra}function Yl(At){return At}var Us=r(),Hl=r(),ac,aa,Oo,qo,Ol={point:O,lineStart:O,lineEnd:O,polygonStart:function(){Ol.lineStart=Pc,Ol.lineEnd=Uf},polygonEnd:function(){Ol.lineStart=Ol.lineEnd=Ol.point=O,Us.add(v(Hl)),Hl.reset()},result:function(){var At=Us/2;return Us.reset(),At}};function Pc(){Ol.point=Do}function Do(At,Xt){Ol.point=rf,ac=Oo=At,aa=qo=Xt}function rf(At,Xt){Hl.add(qo*At-Oo*Xt),Oo=At,qo=Xt}function Uf(){rf(ac,aa)}var ml=1/0,Zc=ml,Kl=-ml,qs=Kl,yu={point:oc,lineStart:O,lineEnd:O,polygonStart:O,polygonEnd:O,result:function(){var At=[[ml,Zc],[Kl,qs]];return Kl=qs=-(Zc=ml=1/0),At}};function oc(At,Xt){AtKl&&(Kl=At),Xtqs&&(qs=Xt)}var Cf=0,sc=0,Nh=0,kf=0,fs=0,nf=0,Vf=0,Jl=0,hl=0,lc,Fu,Cs,js,Go={point:gs,lineStart:uc,lineEnd:Bs,polygonStart:function(){Go.lineStart=ad,Go.lineEnd=Po},polygonEnd:function(){Go.point=gs,Go.lineStart=uc,Go.lineEnd=Bs},result:function(){var At=hl?[Vf/hl,Jl/hl]:nf?[kf/nf,fs/nf]:Nh?[Cf/Nh,sc/Nh]:[NaN,NaN];return Cf=sc=Nh=kf=fs=nf=Vf=Jl=hl=0,At}};function gs(At,Xt){Cf+=At,sc+=Xt,++Nh}function uc(){Go.point=xl}function xl(At,Xt){Go.point=Gu,gs(Cs=At,js=Xt)}function Gu(At,Xt){var kr=At-Cs,Ar=Xt-js,Kr=M(kr*kr+Ar*Ar);kf+=Kr*(Cs+At)/2,fs+=Kr*(js+Xt)/2,nf+=Kr,gs(Cs=At,js=Xt)}function Bs(){Go.point=gs}function ad(){Go.point=od}function Po(){Yo(lc,Fu)}function od(At,Xt){Go.point=Yo,gs(lc=Cs=At,Fu=js=Xt)}function Yo(At,Xt){var kr=At-Cs,Ar=Xt-js,Kr=M(kr*kr+Ar*Ar);kf+=Kr*(Cs+At)/2,fs+=Kr*(js+Xt)/2,nf+=Kr,Kr=js*At-Cs*Xt,Vf+=Kr*(Cs+At),Jl+=Kr*(js+Xt),hl+=Kr*3,gs(Cs=At,js=Xt)}function Pa(At){this._context=At}Pa.prototype={_radius:4.5,pointRadius:function(At){return this._radius=At,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(At,Xt){switch(this._point){case 0:{this._context.moveTo(At,Xt),this._point=1;break}case 1:{this._context.lineTo(At,Xt);break}default:{this._context.moveTo(At+this._radius,Xt),this._context.arc(At,Xt,this._radius,0,f);break}}},result:O};var af=r(),Hu,bl,Gf,Ic,mf,ql={point:O,lineStart:function(){ql.point=_h},lineEnd:function(){Hu&&Qf(bl,Gf),ql.point=O},polygonStart:function(){Hu=!0},polygonEnd:function(){Hu=null},result:function(){var At=+af;return af.reset(),At}};function _h(At,Xt){ql.point=Qf,bl=Ic=At,Gf=mf=Xt}function Qf(At,Xt){Ic-=At,mf-=Xt,af.add(M(Ic*Ic+mf*mf)),Ic=At,mf=Xt}function yf(){this._string=[]}yf.prototype={_radius:4.5,_circle:Yc(4.5),pointRadius:function(At){return(At=+At)!==this._radius&&(this._radius=At,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(At,Xt){switch(this._point){case 0:{this._string.push("M",At,",",Xt),this._point=1;break}case 1:{this._string.push("L",At,",",Xt);break}default:{this._circle==null&&(this._circle=Yc(this._radius)),this._string.push("M",At,",",Xt,this._circle);break}}},result:function(){if(this._string.length){var At=this._string.join("");return this._string=[],At}else return null}};function Yc(At){return"m0,"+At+"a"+At+","+At+" 0 1,1 0,"+-2*At+"a"+At+","+At+" 0 1,1 0,"+2*At+"z"}function eh(At,Xt){var kr=4.5,Ar,Kr;function Ei(Wi){return Wi&&(typeof kr=="function"&&Kr.pointRadius(+kr.apply(this,arguments)),j(Wi,Ar(Kr))),Kr.result()}return Ei.area=function(Wi){return j(Wi,Ar(Ol)),Ol.result()},Ei.measure=function(Wi){return j(Wi,Ar(ql)),ql.result()},Ei.bounds=function(Wi){return j(Wi,Ar(yu)),yu.result()},Ei.centroid=function(Wi){return j(Wi,Ar(Go)),Go.result()},Ei.projection=function(Wi){return arguments.length?(Ar=Wi==null?(At=null,Yl):(At=Wi).stream,Ei):At},Ei.context=function(Wi){return arguments.length?(Kr=Wi==null?(Xt=null,new yf):new Pa(Xt=Wi),typeof kr!="function"&&Kr.pointRadius(kr),Ei):Xt},Ei.pointRadius=function(Wi){return arguments.length?(kr=typeof Wi=="function"?Wi:(Kr.pointRadius(+Wi),+Wi),Ei):kr},Ei.projection(At).context(Xt)}function th(At){return{stream:ju(At)}}function ju(At){return function(Xt){var kr=new Hf;for(var Ar in At)kr[Ar]=At[Ar];return kr.stream=Xt,kr}}function Hf(){}Hf.prototype={constructor:Hf,point:function(At,Xt){this.stream.point(At,Xt)},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 cc(At,Xt,kr){var Ar=At.clipExtent&&At.clipExtent();return At.scale(150).translate([0,0]),Ar!=null&&At.clipExtent(null),j(kr,At.stream(yu)),Xt(yu.result()),Ar!=null&&At.clipExtent(Ar),At}function of(At,Xt,kr){return cc(At,function(Ar){var Kr=Xt[1][0]-Xt[0][0],Ei=Xt[1][1]-Xt[0][1],Wi=Math.min(Kr/(Ar[1][0]-Ar[0][0]),Ei/(Ar[1][1]-Ar[0][1])),hn=+Xt[0][0]+(Kr-Wi*(Ar[1][0]+Ar[0][0]))/2,Tn=+Xt[0][1]+(Ei-Wi*(Ar[1][1]+Ar[0][1]))/2;At.scale(150*Wi).translate([hn,Tn])},kr)}function Bl(At,Xt,kr){return of(At,[[0,0],Xt],kr)}function Kc(At,Xt,kr){return cc(At,function(Ar){var Kr=+Xt,Ei=Kr/(Ar[1][0]-Ar[0][0]),Wi=(Kr-Ei*(Ar[1][0]+Ar[0][0]))/2,hn=-Ei*Ar[0][1];At.scale(150*Ei).translate([Wi,hn])},kr)}function Rc(At,Xt,kr){return cc(At,function(Ar){var Kr=+Xt,Ei=Kr/(Ar[1][1]-Ar[0][1]),Wi=-Ei*Ar[0][0],hn=(Kr-Ei*(Ar[1][1]+Ar[0][1]))/2;At.scale(150*Ei).translate([Wi,hn])},kr)}var ms=16,jf=p(30*d);function Uh(At,Xt){return+Xt?sf(At,Xt):rh(At)}function rh(At){return ju({point:function(Xt,kr){Xt=At(Xt,kr),this.stream.point(Xt[0],Xt[1])}})}function sf(At,Xt){function kr(Ar,Kr,Ei,Wi,hn,Tn,Bn,Zi,$i,an,Di,$n,ka,Ra){var La=Bn-Ar,Na=Zi-Kr,Yn=La*La+Na*Na;if(Yn>4*Xt&&ka--){var zn=Wi+an,Ka=hn+Di,bo=Tn+$n,Xo=M(zn*zn+Ka*Ka+bo*bo),Ms=T(bo/=Xo),os=v(v(bo)-1)Xt||v((La*Xs+Na*Ps)/Yn-.5)>.3||Wi*an+hn*Di+Tn*$n2?va[2]%360*d:0,Xs()):[hn*h,Tn*h,Bn*h]},Ho.angle=function(va){return arguments.length?($i=va%360*d,Xs()):$i*h},Ho.reflectX=function(va){return arguments.length?(an=va?-1:1,Xs()):an<0},Ho.reflectY=function(va){return arguments.length?(Di=va?-1:1,Xs()):Di<0},Ho.precision=function(va){return arguments.length?(bo=Uh(Xo,Ka=va*va),Ps()):M(Ka)},Ho.fitExtent=function(va,no){return of(Ho,va,no)},Ho.fitSize=function(va,no){return Bl(Ho,va,no)},Ho.fitWidth=function(va,no){return Kc(Ho,va,no)},Ho.fitHeight=function(va,no){return Rc(Ho,va,no)};function Xs(){var va=Ws(kr,0,0,an,Di,$i).apply(null,Xt(Ei,Wi)),no=($i?Ws:ih)(kr,Ar-va[0],Kr-va[1],an,Di,$i);return Zi=zi(hn,Tn,Bn),Xo=ri(Xt,no),Ms=ri(Zi,Xo),bo=Uh(Xo,Ka),Ps()}function Ps(){return os=Ts=null,Ho}return function(){return Xt=At.apply(this,arguments),Ho.invert=Xt.invert&&yl,Xs()}}function ks(At){var Xt=0,kr=l/3,Ar=Dc(At),Kr=Ar(Xt,kr);return Kr.parallels=function(Ei){return arguments.length?Ar(Xt=Ei[0]*d,kr=Ei[1]*d):[Xt*h,kr*h]},Kr}function bc(At){var Xt=p(At);function kr(Ar,Kr){return[Ar*Xt,_(Kr)/Xt]}return kr.invert=function(Ar,Kr){return[Ar/Xt,T(Kr*Xt)]},kr}function du(At,Xt){var kr=_(At),Ar=(kr+_(Xt))/2;if(v(Ar)=.12&&Ra<.234&&ka>=-.425&&ka<-.214?Kr:Ra>=.166&&Ra<.234&&ka>=-.214&&ka<-.115?Wi:kr).invert(an)},Zi.stream=function(an){return At&&Xt===an?At:At=nh([kr.stream(Xt=an),Kr.stream(an),Wi.stream(an)])},Zi.precision=function(an){return arguments.length?(kr.precision(an),Kr.precision(an),Wi.precision(an),$i()):kr.precision()},Zi.scale=function(an){return arguments.length?(kr.scale(an),Kr.scale(an*.35),Wi.scale(an),Zi.translate(kr.translate())):kr.scale()},Zi.translate=function(an){if(!arguments.length)return kr.translate();var Di=kr.scale(),$n=+an[0],ka=+an[1];return Ar=kr.translate(an).clipExtent([[$n-.455*Di,ka-.238*Di],[$n+.455*Di,ka+.238*Di]]).stream(Bn),Ei=Kr.translate([$n-.307*Di,ka+.201*Di]).clipExtent([[$n-.425*Di+o,ka+.12*Di+o],[$n-.214*Di-o,ka+.234*Di-o]]).stream(Bn),hn=Wi.translate([$n-.205*Di,ka+.212*Di]).clipExtent([[$n-.214*Di+o,ka+.166*Di+o],[$n-.115*Di-o,ka+.234*Di-o]]).stream(Bn),$i()},Zi.fitExtent=function(an,Di){return of(Zi,an,Di)},Zi.fitSize=function(an,Di){return Bl(Zi,an,Di)},Zi.fitWidth=function(an,Di){return Kc(Zi,an,Di)},Zi.fitHeight=function(an,Di){return Rc(Zi,an,Di)};function $i(){return At=Xt=null,Zi}return Zi.scale(1070)}function zu(At){return function(Xt,kr){var Ar=p(Xt),Kr=p(kr),Ei=At(Ar*Kr);return[Ei*Kr*_(Xt),Ei*_(kr)]}}function Fc(At){return function(Xt,kr){var Ar=M(Xt*Xt+kr*kr),Kr=At(Ar),Ei=_(Kr),Wi=p(Kr);return[b(Xt*Ei,Ar*Wi),T(Ar&&kr*Ei/Ar)]}}var wc=zu(function(At){return M(2/(1+At))});wc.invert=Fc(function(At){return 2*T(At/2)});function bd(){return Eu(wc).scale(124.75).clipAngle(180-.001)}var _f=zu(function(At){return(At=P(At))&&At/_(At)});_f.invert=Fc(function(At){return At});function Lf(){return Eu(_f).scale(79.4188).clipAngle(180-.001)}function Ou(At,Xt){return[At,A(g((u+Xt)/2))]}Ou.invert=function(At,Xt){return[At,2*x(E(Xt))-u]};function xf(){return jl(Ou).scale(961/f)}function jl(At){var Xt=Eu(At),kr=Xt.center,Ar=Xt.scale,Kr=Xt.translate,Ei=Xt.clipExtent,Wi=null,hn,Tn,Bn;Xt.scale=function($i){return arguments.length?(Ar($i),Zi()):Ar()},Xt.translate=function($i){return arguments.length?(Kr($i),Zi()):Kr()},Xt.center=function($i){return arguments.length?(kr($i),Zi()):kr()},Xt.clipExtent=function($i){return arguments.length?($i==null?Wi=hn=Tn=Bn=null:(Wi=+$i[0][0],hn=+$i[0][1],Tn=+$i[1][0],Bn=+$i[1][1]),Zi()):Wi==null?null:[[Wi,hn],[Tn,Bn]]};function Zi(){var $i=l*Ar(),an=Xt(yn(Xt.rotate()).invert([0,0]));return Ei(Wi==null?[[an[0]-$i,an[1]-$i],[an[0]+$i,an[1]+$i]]:At===Ou?[[Math.max(an[0]-$i,Wi),hn],[Math.min(an[0]+$i,Tn),Bn]]:[[Wi,Math.max(an[1]-$i,hn)],[Tn,Math.min(an[1]+$i,Bn)]])}return Zi()}function lf(At){return g((u+At)/2)}function Vh(At,Xt){var kr=p(At),Ar=At===Xt?_(At):A(kr/p(Xt))/A(lf(Xt)/lf(At)),Kr=kr*L(lf(At),Ar)/Ar;if(!Ar)return Ou;function Ei(Wi,hn){Kr>0?hn<-u+o&&(hn=-u+o):hn>u-o&&(hn=u-o);var Tn=Kr/L(lf(hn),Ar);return[Tn*_(Ar*Wi),Kr-Tn*p(Ar*Wi)]}return Ei.invert=function(Wi,hn){var Tn=Kr-hn,Bn=k(Ar)*M(Wi*Wi+Tn*Tn),Zi=b(Wi,v(Tn))*k(Tn);return Tn*Ar<0&&(Zi-=l*k(Wi)*k(Tn)),[Zi/Ar,2*x(L(Kr/Bn,1/Ar))-u]},Ei}function Pf(){return ks(Vh).scale(109.5).parallels([30,30])}function Ls(At,Xt){return[At,Xt]}Ls.invert=Ls;function vu(){return Eu(Ls).scale(152.63)}function Cu(At,Xt){var kr=p(At),Ar=At===Xt?_(At):(kr-p(Xt))/(Xt-At),Kr=kr/Ar+At;if(v(Ar)o&&--Ar>0);return[At/(.8707+(Ei=kr*kr)*(-.131979+Ei*(-.013791+Ei*Ei*Ei*(.003971-.001529*Ei)))),kr]};function Tc(){return Eu(Oc).scale(175.295)}function wl(At,Xt){return[p(Xt)*_(At),_(Xt)]}wl.invert=Fc(T);function pu(){return Eu(wl).scale(249.5).clipAngle(90+o)}function qc(At,Xt){var kr=p(Xt),Ar=1+p(At)*kr;return[kr*_(At)/Ar,_(Xt)/Ar]}qc.invert=Fc(function(At){return 2*x(At)});function cf(){return Eu(qc).scale(250).clipAngle(142)}function fc(At,Xt){return[A(g((u+Xt)/2)),-At]}fc.invert=function(At,Xt){return[-Xt,2*x(E(At))-u]};function Bc(){var At=jl(fc),Xt=At.center,kr=At.rotate;return At.center=function(Ar){return arguments.length?Xt([-Ar[1],Ar[0]]):(Ar=Xt(),[Ar[1],-Ar[0]])},At.rotate=function(Ar){return arguments.length?kr([Ar[0],Ar[1],Ar.length>2?Ar[2]+90:90]):(Ar=kr(),[Ar[0],Ar[1],Ar[2]-90])},kr([0,0,90]).scale(159.155)}e.geoAlbers=al,e.geoAlbersUsa=bh,e.geoArea=ge,e.geoAzimuthalEqualArea=bd,e.geoAzimuthalEqualAreaRaw=wc,e.geoAzimuthalEquidistant=Lf,e.geoAzimuthalEquidistantRaw=_f,e.geoBounds=Ge,e.geoCentroid=Er,e.geoCircle=la,e.geoClipAntimeridian=Qr,e.geoClipCircle=En,e.geoClipExtent=Ma,e.geoClipRectangle=Jn,e.geoConicConformal=Pf,e.geoConicConformalRaw=Vh,e.geoConicEqualArea=_u,e.geoConicEqualAreaRaw=du,e.geoConicEquidistant=Wf,e.geoConicEquidistantRaw=Cu,e.geoContains=ws,e.geoDistance=Ss,e.geoEqualEarth=Xf,e.geoEqualEarthRaw=uf,e.geoEquirectangular=vu,e.geoEquirectangularRaw=Ls,e.geoGnomonic=ah,e.geoGnomonicRaw=Wl,e.geoGraticule=Vu,e.geoGraticule10=zl,e.geoIdentity=Zu,e.geoInterpolate=xo,e.geoLength=Fl,e.geoMercator=xf,e.geoMercatorRaw=Ou,e.geoNaturalEarth1=Tc,e.geoNaturalEarth1Raw=Oc,e.geoOrthographic=pu,e.geoOrthographicRaw=wl,e.geoPath=eh,e.geoProjection=Eu,e.geoProjectionMutator=Dc,e.geoRotation=yn,e.geoStereographic=cf,e.geoStereographicRaw=qc,e.geoStream=j,e.geoTransform=th,e.geoTransverseMercator=Bc,e.geoTransverseMercatorRaw=fc,Object.defineProperty(e,"__esModule",{value:!0})})});var gDe=ye((MF,pDe)=>{(function(e,t){typeof MF=="object"&&typeof pDe!="undefined"?t(MF,LZ(),nC()):t(e.d3=e.d3||{},e.d3,e.d3)})(MF,function(e,t,r){"use strict";var n=Math.abs,i=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,d=Math.round,v=Math.sign||function(ve){return ve>0?1:ve<0?-1:0},x=Math.sin,b=Math.tan,p=1e-6,C=1e-12,E=Math.PI,A=E/2,L=E/4,_=Math.SQRT1_2,k=G(2),M=G(E),g=E*2,P=180/E,T=E/180;function z(ve){return ve?ve/Math.sin(ve):1}function O(ve){return ve>1?A:ve<-1?-A:Math.asin(ve)}function V(ve){return ve>1?0:ve<-1?E:Math.acos(ve)}function G(ve){return ve>0?Math.sqrt(ve):0}function Z(ve){return ve=s(2*ve),(ve-1)/(ve+1)}function H(ve){return(s(ve)-s(-ve))/2}function N(ve){return(s(ve)+s(-ve))/2}function j(ve){return u(ve+G(ve*ve+1))}function re(ve){return u(ve+G(ve*ve-1))}function oe(ve){var be=b(ve/2),Re=2*u(o(ve/2))/(be*be);function Be(tt,We){var it=o(tt),Dt=o(We),Ht=x(We),rr=Dt*it,dr=-((1-rr?u((1+rr)/2)/(1-rr):-.5)+Re/(1+rr));return[dr*Dt*x(tt),dr*Ht]}return Be.invert=function(tt,We){var it=G(tt*tt+We*We),Dt=-ve/2,Ht=50,rr;if(!it)return[0,0];do{var dr=Dt/2,Sr=o(dr),Or=x(dr),jr=Or/Sr,ii=-u(n(Sr));Dt-=rr=(2/jr*ii-Re*jr-it)/(-ii/(Or*Or)+1-Re/(2*Sr*Sr))*(Sr<0?.7:1)}while(n(rr)>p&&--Ht>0);var Li=x(Dt);return[a(tt*Li,it*o(Dt)),O(We*Li/it)]},Be}function _e(){var ve=A,be=t.geoProjectionMutator(oe),Re=be(ve);return Re.radius=function(Be){return arguments.length?be(ve=Be*T):ve*P},Re.scale(179.976).clipAngle(147)}function Me(ve,be){var Re=o(be),Be=z(V(Re*o(ve/=2)));return[2*Re*x(ve)*Be,x(be)*Be]}Me.invert=function(ve,be){if(!(ve*ve+4*be*be>E*E+p)){var Re=ve,Be=be,tt=25;do{var We=x(Re),it=x(Re/2),Dt=o(Re/2),Ht=x(Be),rr=o(Be),dr=x(2*Be),Sr=Ht*Ht,Or=rr*rr,jr=it*it,ii=1-Or*Dt*Dt,Li=ii?V(rr*Dt)*G(un=1/ii):un=0,un,sn=2*Li*rr*it-ve,In=Li*Ht-be,Kn=un*(Or*jr+Li*rr*Dt*Sr),Aa=un*(.5*We*dr-Li*2*Ht*it),fa=un*.25*(dr*it-Li*Ht*Or*We),$a=un*(Sr*Dt+Li*jr*rr),ko=Aa*fa-$a*Kn;if(!ko)break;var Qa=(In*Aa-sn*$a)/ko,mo=(sn*fa-In*Kn)/ko;Re-=Qa,Be-=mo}while((n(Qa)>p||n(mo)>p)&&--tt>0);return[Re,Be]}};function ke(){return t.geoProjection(Me).scale(152.63)}function me(ve){var be=x(ve),Re=o(ve),Be=ve>=0?1:-1,tt=b(Be*ve),We=(1+be-Re)/2;function it(Dt,Ht){var rr=o(Ht),dr=o(Dt/=2);return[(1+rr)*x(Dt),(Be*Ht>-a(dr,tt)-.001?0:-Be*10)+We+x(Ht)*Re-(1+rr)*be*dr]}return it.invert=function(Dt,Ht){var rr=0,dr=0,Sr=50;do{var Or=o(rr),jr=x(rr),ii=o(dr),Li=x(dr),un=1+ii,sn=un*jr-Dt,In=We+Li*Re-un*be*Or-Ht,Kn=un*Or/2,Aa=-jr*Li,fa=be*un*jr/2,$a=Re*ii+be*Or*Li,ko=Aa*fa-$a*Kn,Qa=(In*Aa-sn*$a)/ko/2,mo=(sn*fa-In*Kn)/ko;n(mo)>2&&(mo/=2),rr-=Qa,dr-=mo}while((n(Qa)>p||n(mo)>p)&&--Sr>0);return Be*dr>-a(o(rr),tt)-.001?[rr*2,dr]:null},it}function ie(){var ve=20*T,be=ve>=0?1:-1,Re=b(be*ve),Be=t.geoProjectionMutator(me),tt=Be(ve),We=tt.stream;return tt.parallel=function(it){return arguments.length?(Re=b((be=(ve=it*T)>=0?1:-1)*ve),Be(ve)):ve*P},tt.stream=function(it){var Dt=tt.rotate(),Ht=We(it),rr=(tt.rotate([0,0]),We(it)),dr=tt.precision();return tt.rotate(Dt),Ht.sphere=function(){rr.polygonStart(),rr.lineStart();for(var Sr=be*-180;be*Sr<180;Sr+=be*90)rr.point(Sr,be*90);if(ve)for(;be*(Sr-=3*be*dr)>=-180;)rr.point(Sr,be*-a(o(Sr*T/2),Re)*P);rr.lineEnd(),rr.polygonEnd()},Ht},tt.scale(218.695).center([0,28.0974])}function Se(ve,be){var Re=b(be/2),Be=G(1-Re*Re),tt=1+Be*o(ve/=2),We=x(ve)*Be/tt,it=Re/tt,Dt=We*We,Ht=it*it;return[4/3*We*(3+Dt-3*Ht),4/3*it*(3+3*Dt-Ht)]}Se.invert=function(ve,be){if(ve*=3/8,be*=3/8,!ve&&n(be)>1)return null;var Re=ve*ve,Be=be*be,tt=1+Re+Be,We=G((tt-G(tt*tt-4*be*be))/2),it=O(We)/3,Dt=We?re(n(be/We))/3:j(n(ve))/3,Ht=o(it),rr=N(Dt),dr=rr*rr-Ht*Ht;return[v(ve)*2*a(H(Dt)*Ht,.25-dr),v(be)*2*a(rr*x(it),.25+dr)]};function Le(){return t.geoProjection(Se).scale(66.1603)}var Ae=G(8),De=u(1+k);function Pe(ve,be){var Re=n(be);return ReC&&--Be>0);return[ve/(o(Re)*(Ae-1/x(Re))),v(be)*Re]};function ge(){return t.geoProjection(Pe).scale(112.314)}function Fe(ve){var be=2*E/ve;function Re(Be,tt){var We=t.geoAzimuthalEquidistantRaw(Be,tt);if(n(Be)>A){var it=a(We[1],We[0]),Dt=G(We[0]*We[0]+We[1]*We[1]),Ht=be*d((it-A)/be)+A,rr=a(x(it-=Ht),2-o(it));it=Ht+O(E/Dt*x(rr))-rr,We[0]=Dt*o(it),We[1]=Dt*x(it)}return We}return Re.invert=function(Be,tt){var We=G(Be*Be+tt*tt);if(We>A){var it=a(tt,Be),Dt=be*d((it-A)/be)+A,Ht=it>Dt?-1:1,rr=We*o(Dt-it),dr=1/b(Ht*V((rr-E)/G(E*(E-2*rr)+We*We)));it=Dt+2*i((dr+Ht*G(dr*dr-3))/3),Be=We*o(it),tt=We*x(it)}return t.geoAzimuthalEquidistantRaw.invert(Be,tt)},Re}function ce(){var ve=5,be=t.geoProjectionMutator(Fe),Re=be(ve),Be=Re.stream,tt=.01,We=-o(tt*T),it=x(tt*T);return Re.lobes=function(Dt){return arguments.length?be(ve=+Dt):ve},Re.stream=function(Dt){var Ht=Re.rotate(),rr=Be(Dt),dr=(Re.rotate([0,0]),Be(Dt));return Re.rotate(Ht),rr.sphere=function(){dr.polygonStart(),dr.lineStart();for(var Sr=0,Or=360/ve,jr=2*E/ve,ii=90-180/ve,Li=A;Sr0&&n(tt)>p);return Be<0?NaN:Re}function st(ve,be,Re){return be===void 0&&(be=40),Re===void 0&&(Re=C),function(Be,tt,We,it){var Dt,Ht,rr;We=We===void 0?0:+We,it=it===void 0?0:+it;for(var dr=0;drDt){We-=Ht/=2,it-=rr/=2;continue}Dt=ii;var Li=(We>0?-1:1)*Re,un=(it>0?-1:1)*Re,sn=ve(We+Li,it),In=ve(We,it+un),Kn=(sn[0]-Sr[0])/Li,Aa=(sn[1]-Sr[1])/Li,fa=(In[0]-Sr[0])/un,$a=(In[1]-Sr[1])/un,ko=$a*Kn-Aa*fa,Qa=(n(ko)<.5?.5:1)/ko;if(Ht=(jr*fa-Or*$a)*Qa,rr=(Or*Aa-jr*Kn)*Qa,We+=Ht,it+=rr,n(Ht)0&&(Dt[1]*=1+Ht/1.5*Dt[0]*Dt[0]),Dt}return Be.invert=st(Be),Be}function Gt(){return t.geoProjection(lt()).rotate([-16.5,-42]).scale(176.57).center([7.93,.09])}function Nt(ve,be){var Re=ve*x(be),Be=30,tt;do be-=tt=(be+x(be)-Re)/(1+o(be));while(n(tt)>p&&--Be>0);return be/2}function $t(ve,be,Re){function Be(tt,We){return[ve*tt*o(We=Nt(Re,We)),be*x(We)]}return Be.invert=function(tt,We){return We=O(We/be),[tt/(ve*o(We)),O((2*We+x(2*We))/Re)]},Be}var sr=$t(k/A,k,E);function wr(){return t.geoProjection(sr).scale(169.529)}var ur=2.00276,Qe=1.11072;function Et(ve,be){var Re=Nt(E,be);return[ur*ve/(1/o(be)+Qe/o(Re)),(be+k*x(Re))/ur]}Et.invert=function(ve,be){var Re=ur*be,Be=be<0?-L:L,tt=25,We,it;do it=Re-k*x(Be),Be-=We=(x(2*Be)+2*Be-E*x(it))/(2*o(2*Be)+2+E*o(it)*k*o(Be));while(n(We)>p&&--tt>0);return it=Re-k*x(Be),[ve*(1/o(it)+Qe/o(Be))/ur,it]};function er(){return t.geoProjection(Et).scale(160.857)}function Ut(ve){var be=0,Re=t.geoProjectionMutator(ve),Be=Re(be);return Be.parallel=function(tt){return arguments.length?Re(be=tt*T):be*P},Be}function Ft(ve,be){return[ve*o(be),be]}Ft.invert=function(ve,be){return[ve/o(be),be]};function bt(){return t.geoProjection(Ft).scale(152.63)}function yt(ve){if(!ve)return Ft;var be=1/b(ve);function Re(Be,tt){var We=be+ve-tt,it=We&&Be*o(tt)/We;return[We*x(it),be-We*o(it)]}return Re.invert=function(Be,tt){var We=G(Be*Be+(tt=be-tt)*tt),it=be+ve-We;return[We/o(it)*a(Be,tt),it]},Re}function Yt(){return Ut(yt).scale(123.082).center([0,26.1441]).parallel(45)}function lr(ve){function be(Re,Be){var tt=A-Be,We=tt&&Re*ve*x(tt)/tt;return[tt*x(We)/ve,A-tt*o(We)]}return be.invert=function(Re,Be){var tt=Re*ve,We=A-Be,it=G(tt*tt+We*We),Dt=a(tt,We);return[(it?it/x(it):1)*Dt/ve,A-it]},be}function Tr(){var ve=.5,be=t.geoProjectionMutator(lr),Re=be(ve);return Re.fraction=function(Be){return arguments.length?be(ve=+Be):ve},Re.scale(158.837)}var Rr=$t(1,4/E,E);function ei(){return t.geoProjection(Rr).scale(152.63)}function Wr(ve,be,Re,Be,tt,We){var it=o(We),Dt;if(n(ve)>1||n(We)>1)Dt=V(Re*tt+be*Be*it);else{var Ht=x(ve/2),rr=x(We/2);Dt=2*O(G(Ht*Ht+be*Be*rr*rr))}return n(Dt)>p?[Dt,a(Be*x(We),be*tt-Re*Be*it)]:[0,0]}function Ur(ve,be,Re){return V((ve*ve+be*be-Re*Re)/(2*ve*be))}function dt(ve){return ve-2*E*l((ve+E)/(2*E))}function Ge(ve,be,Re){for(var Be=[[ve[0],ve[1],x(ve[1]),o(ve[1])],[be[0],be[1],x(be[1]),o(be[1])],[Re[0],Re[1],x(Re[1]),o(Re[1])]],tt=Be[2],We,it=0;it<3;++it,tt=We)We=Be[it],tt.v=Wr(We[1]-tt[1],tt[3],tt[2],We[3],We[2],We[0]-tt[0]),tt.point=[0,0];var Dt=Ur(Be[0].v[0],Be[2].v[0],Be[1].v[0]),Ht=Ur(Be[0].v[0],Be[1].v[0],Be[2].v[0]),rr=E-Dt;Be[2].point[1]=0,Be[0].point[0]=-(Be[1].point[0]=Be[0].v[0]/2);var dr=[Be[2].point[0]=Be[0].point[0]+Be[2].v[0]*o(Dt),2*(Be[0].point[1]=Be[1].point[1]=Be[2].v[0]*x(Dt))];function Sr(Or,jr){var ii=x(jr),Li=o(jr),un=new Array(3),sn;for(sn=0;sn<3;++sn){var In=Be[sn];if(un[sn]=Wr(jr-In[1],In[3],In[2],Li,ii,Or-In[0]),!un[sn][0])return In.point;un[sn][1]=dt(un[sn][1]-In.v[1])}var Kn=dr.slice();for(sn=0;sn<3;++sn){var Aa=sn==2?0:sn+1,fa=Ur(Be[sn].v[0],un[sn][0],un[Aa][0]);un[sn][1]<0&&(fa=-fa),sn?sn==1?(fa=Ht-fa,Kn[0]-=un[sn][0]*o(fa),Kn[1]-=un[sn][0]*x(fa)):(fa=rr-fa,Kn[0]+=un[sn][0]*o(fa),Kn[1]+=un[sn][0]*x(fa)):(Kn[0]+=un[sn][0]*o(fa),Kn[1]-=un[sn][0]*x(fa))}return Kn[0]/=3,Kn[1]/=3,Kn}return Sr}function Je(ve){return ve[0]*=T,ve[1]*=T,ve}function je(){return $e([0,22],[45,22],[22.5,-22]).scale(380).center([22.5,2])}function $e(ve,be,Re){var Be=t.geoCentroid({type:"MultiPoint",coordinates:[ve,be,Re]}),tt=[-Be[0],-Be[1]],We=t.geoRotation(tt),it=Ge(Je(We(ve)),Je(We(be)),Je(We(Re)));it.invert=st(it);var Dt=t.geoProjection(it).rotate(tt),Ht=Dt.center;return delete Dt.rotate,Dt.center=function(rr){return arguments.length?Ht(We(rr)):We.invert(Ht())},Dt.clipAngle(90)}function wt(ve,be){var Re=G(1-x(be));return[2/M*ve*Re,M*(1-Re)]}wt.invert=function(ve,be){var Re=(Re=be/M-1)*Re;return[Re>0?ve*G(E/Re)/2:0,O(1-Re)]};function Ie(){return t.geoProjection(wt).scale(95.6464).center([0,30])}function xe(ve){var be=b(ve);function Re(Be,tt){return[Be,(Be?Be/x(Be):1)*(x(tt)*o(Be)-be*o(tt))]}return Re.invert=be?function(Be,tt){Be&&(tt*=x(Be)/Be);var We=o(Be);return[Be,2*a(G(We*We+be*be-tt*tt)-We,be-tt)]}:function(Be,tt){return[Be,O(Be?tt*b(Be)/Be:tt)]},Re}function Ce(){return Ut(xe).scale(249.828).clipAngle(90)}var vt=G(3);function nr(ve,be){return[vt*ve*(2*o(2*be/3)-1)/M,vt*M*x(be/3)]}nr.invert=function(ve,be){var Re=3*O(be/(vt*M));return[M*ve/(vt*(2*o(2*Re/3)-1)),Re]};function ir(){return t.geoProjection(nr).scale(156.19)}function pr(ve){var be=o(ve);function Re(Be,tt){return[Be*be,x(tt)/be]}return Re.invert=function(Be,tt){return[Be/be,O(tt*be)]},Re}function oi(){return Ut(pr).parallel(38.58).scale(195.044)}function di(ve){var be=o(ve);function Re(Be,tt){return[Be*be,(1+be)*b(tt/2)]}return Re.invert=function(Be,tt){return[Be/be,i(tt/(1+be))*2]},Re}function Jr(){return Ut(di).scale(124.75)}function fi(ve,be){var Re=G(8/(3*E));return[Re*ve*(1-n(be)/E),Re*be]}fi.invert=function(ve,be){var Re=G(8/(3*E)),Be=be/Re;return[ve/(Re*(1-n(Be)/E)),Be]};function Hi(){return t.geoProjection(fi).scale(165.664)}function Pn(ve,be){var Re=G(4-3*x(n(be)));return[2/G(6*E)*ve*Re,v(be)*G(2*E/3)*(2-Re)]}Pn.invert=function(ve,be){var Re=2-n(be)/G(2*E/3);return[ve*G(6*E)/(2*Re),v(be)*O((4-Re*Re)/3)]};function wn(){return t.geoProjection(Pn).scale(165.664)}function pn(ve,be){var Re=G(E*(4+E));return[2/Re*ve*(1+G(1-4*be*be/(E*E))),4/Re*be]}pn.invert=function(ve,be){var Re=G(E*(4+E))/2;return[ve*Re/(1+G(1-be*be*(4+E)/(4*E))),be*Re/2]};function Vn(){return t.geoProjection(pn).scale(180.739)}function kn(ve,be){var Re=(2+A)*x(be);be/=2;for(var Be=0,tt=1/0;Be<10&&n(tt)>p;Be++){var We=o(be);be-=tt=(be+x(be)*(We+2)-Re)/(2*We*(1+We))}return[2/G(E*(4+E))*ve*(1+o(be)),2*G(E/(4+E))*x(be)]}kn.invert=function(ve,be){var Re=be*G((4+E)/E)/2,Be=O(Re),tt=o(Be);return[ve/(2/G(E*(4+E))*(1+tt)),O((Be+Re*(tt+2))/(2+A))]};function ea(){return t.geoProjection(kn).scale(180.739)}function ua(ve,be){return[ve*(1+o(be))/G(2+E),2*be/G(2+E)]}ua.invert=function(ve,be){var Re=G(2+E),Be=be*Re/2;return[Re*ve/(1+o(Be)),Be]};function Vt(){return t.geoProjection(ua).scale(173.044)}function _t(ve,be){for(var Re=(1+A)*x(be),Be=0,tt=1/0;Be<10&&n(tt)>p;Be++)be-=tt=(be+x(be)-Re)/(1+o(be));return Re=G(2+E),[ve*(1+o(be))/Re,2*be/Re]}_t.invert=function(ve,be){var Re=1+A,Be=G(Re/2);return[ve*2*Be/(1+o(be*=Be)),O((be+x(be))/Re)]};function tr(){return t.geoProjection(_t).scale(173.044)}var ar=3+2*k;function Er(ve,be){var Re=x(ve/=2),Be=o(ve),tt=G(o(be)),We=o(be/=2),it=x(be)/(We+k*Be*tt),Dt=G(2/(1+it*it)),Ht=G((k*We+(Be+Re)*tt)/(k*We+(Be-Re)*tt));return[ar*(Dt*(Ht-1/Ht)-2*u(Ht)),ar*(Dt*it*(Ht+1/Ht)-2*i(it))]}Er.invert=function(ve,be){if(!(We=Se.invert(ve/1.2,be*1.065)))return null;var Re=We[0],Be=We[1],tt=20,We;ve/=ar,be/=ar;do{var it=Re/2,Dt=Be/2,Ht=x(it),rr=o(it),dr=x(Dt),Sr=o(Dt),Or=o(Be),jr=G(Or),ii=dr/(Sr+k*rr*jr),Li=ii*ii,un=G(2/(1+Li)),sn=k*Sr+(rr+Ht)*jr,In=k*Sr+(rr-Ht)*jr,Kn=sn/In,Aa=G(Kn),fa=Aa-1/Aa,$a=Aa+1/Aa,ko=un*fa-2*u(Aa)-ve,Qa=un*ii*$a-2*i(ii)-be,mo=dr&&_*jr*Ht*Li/dr,Bo=(k*rr*Sr+jr)/(2*(Sr+k*rr*jr)*(Sr+k*rr*jr)*jr),Is=-.5*ii*un*un*un,As=Is*mo,wo=Is*Bo,To=(To=2*Sr+k*jr*(rr-Ht))*To*Aa,dl=(k*rr*Sr*jr+Or)/To,Nl=-(k*Ht*dr)/(jr*To),Lu=fa*As-2*dl/Aa+un*(dl+dl/Kn),ou=fa*wo-2*Nl/Aa+un*(Nl+Nl/Kn),$s=ii*$a*As-2*mo/(1+Li)+un*$a*mo+un*ii*(dl-dl/Kn),Ql=ii*$a*wo-2*Bo/(1+Li)+un*$a*Bo+un*ii*(Nl-Nl/Kn),dc=ou*$s-Ql*Lu;if(!dc)break;var Tl=(Qa*ou-ko*Ql)/dc,Al=(ko*$s-Qa*Lu)/dc;Re-=Tl,Be=c(-A,f(A,Be-Al))}while((n(Tl)>p||n(Al)>p)&&--tt>0);return n(n(Be)-A)Be){var Sr=G(dr),Or=a(rr,Ht),jr=Re*d(Or/Re),ii=Or-jr,Li=ve*o(ii),un=(ve*x(ii)-ii*x(Li))/(A-Li),sn=Wa(ii,un),In=(E-ve)/Fa(sn,Li,E);Ht=Sr;var Kn=50,Aa;do Ht-=Aa=(ve+Fa(sn,Li,Ht)*In-Sr)/(sn(Ht)*In);while(n(Aa)>p&&--Kn>0);rr=ii*x(Ht),HtBe){var Ht=G(Dt),rr=a(it,We),dr=Re*d(rr/Re),Sr=rr-dr;We=Ht*o(Sr),it=Ht*x(Sr);for(var Or=We-A,jr=x(We),ii=it/jr,Li=Wep||n(ii)>p)&&--Li>0);return[Sr,Or]},Ht}var Wn=da(2.8284,-1.6988,.75432,-.18071,1.76003,-.38914,.042555);function Ga(){return t.geoProjection(Wn).scale(149.995)}var vo=da(2.583819,-.835827,.170354,-.038094,1.543313,-.411435,.082742);function jn(){return t.geoProjection(vo).scale(153.93)}var St=da(5/6*E,-.62636,-.0344,0,1.3493,-.05524,0,.045);function Cr(){return t.geoProjection(St).scale(130.945)}function Qr(ve,be){var Re=ve*ve,Be=be*be;return[ve*(1-.162388*Be)*(.87-952426e-9*Re*Re),be*(1+Be/12)]}Qr.invert=function(ve,be){var Re=ve,Be=be,tt=50,We;do{var it=Be*Be;Be-=We=(Be*(1+it/12)-be)/(1+it/4)}while(n(We)>p&&--tt>0);tt=50,ve/=1-.162388*it;do{var Dt=(Dt=Re*Re)*Dt;Re-=We=(Re*(.87-952426e-9*Dt)-ve)/(.87-.00476213*Dt)}while(n(We)>p&&--tt>0);return[Re,Be]};function pi(){return t.geoProjection(Qr).scale(131.747)}var fn=da(2.6516,-.76534,.19123,-.047094,1.36289,-.13965,.031762);function Sn(){return t.geoProjection(fn).scale(131.087)}function En(ve){var be=ve(A,0)[0]-ve(-A,0)[0];function Re(Be,tt){var We=Be>0?-.5:.5,it=ve(Be+We*E,tt);return it[0]-=We*be,it}return ve.invert&&(Re.invert=function(Be,tt){var We=Be>0?-.5:.5,it=ve.invert(Be+We*be,tt),Dt=it[0]-We*E;return Dt<-E?Dt+=2*E:Dt>E&&(Dt-=2*E),it[0]=Dt,it}),Re}function ki(ve,be){var Re=v(ve),Be=v(be),tt=o(be),We=o(ve)*tt,it=x(ve)*tt,Dt=x(Be*be);ve=n(a(it,Dt)),be=O(We),n(ve-A)>p&&(ve%=A);var Ht=_n(ve>E/4?A-ve:ve,be);return ve>E/4&&(Dt=Ht[0],Ht[0]=-Ht[1],Ht[1]=-Dt),Ht[0]*=Re,Ht[1]*=-Be,Ht}ki.invert=function(ve,be){n(ve)>1&&(ve=v(ve)*2-ve),n(be)>1&&(be=v(be)*2-be);var Re=v(ve),Be=v(be),tt=-Re*ve,We=-Be*be,it=We/tt<1,Dt=ya(it?We:tt,it?tt:We),Ht=Dt[0],rr=Dt[1],dr=o(rr);return it&&(Ht=-A-Ht),[Re*(a(x(Ht)*dr,-x(rr))+E),Be*O(o(Ht)*dr)]};function _n(ve,be){if(be===A)return[0,0];var Re=x(be),Be=Re*Re,tt=Be*Be,We=1+tt,it=1+3*tt,Dt=1-tt,Ht=O(1/G(We)),rr=Dt+Be*We*Ht,dr=(1-Re)/rr,Sr=G(dr),Or=dr*We,jr=G(Or),ii=Sr*Dt,Li,un;if(ve===0)return[0,-(ii+Be*jr)];var sn=o(be),In=1/sn,Kn=2*Re*sn,Aa=(-3*Be+Ht*it)*Kn,fa=(-rr*sn-(1-Re)*Aa)/(rr*rr),$a=.5*fa/Sr,ko=Dt*$a-2*Be*Sr*Kn,Qa=Be*We*fa+dr*it*Kn,mo=-In*Kn,Bo=-In*Qa,Is=-2*In*ko,As=4*ve/E,wo;if(ve>.222*E||be.175*E){if(Li=(ii+Be*G(Or*(1+tt)-ii*ii))/(1+tt),ve>E/4)return[Li,Li];var To=Li,dl=.5*Li;Li=.5*(dl+To),un=50;do{var Nl=G(Or-Li*Li),Lu=Li*(Is+mo*Nl)+Bo*O(Li/jr)-As;if(!Lu)break;Lu<0?dl=Li:To=Li,Li=.5*(dl+To)}while(n(To-dl)>p&&--un>0)}else{Li=p,un=25;do{var ou=Li*Li,$s=G(Or-ou),Ql=Is+mo*$s,dc=Li*Ql+Bo*O(Li/jr)-As,Tl=Ql+(Bo-mo*ou)/$s;Li-=wo=$s?dc/Tl:0}while(n(wo)>p&&--un>0)}return[Li,-ii-Be*G(Or-Li*Li)]}function ya(ve,be){for(var Re=0,Be=1,tt=.5,We=50;;){var it=tt*tt,Dt=G(tt),Ht=O(1/G(1+it)),rr=1-it+tt*(1+it)*Ht,dr=(1-Dt)/rr,Sr=G(dr),Or=dr*(1+it),jr=Sr*(1-it),ii=Or-ve*ve,Li=G(ii),un=be+jr+tt*Li;if(n(Be-Re)0?Re=tt:Be=tt,tt=.5*(Re+Be)}if(!We)return null;var sn=O(Dt),In=o(sn),Kn=1/In,Aa=2*Dt*In,fa=(-3*tt+Ht*(1+3*it))*Aa,$a=(-rr*In-(1-Dt)*fa)/(rr*rr),ko=.5*$a/Sr,Qa=(1-it)*ko-2*tt*Sr*Aa,mo=-2*Kn*Qa,Bo=-Kn*Aa,Is=-Kn*(tt*(1+it)*$a+dr*(1+3*it)*Aa);return[E/4*(ve*(mo+Bo*Li)+Is*O(ve/G(Or))),sn]}function Jn(){return t.geoProjection(En(ki)).scale(239.75)}function Ma(ve,be,Re){var Be,tt,We;return ve?(Be=_o(ve,Re),be?(tt=_o(be,1-Re),We=tt[1]*tt[1]+Re*Be[0]*Be[0]*tt[0]*tt[0],[[Be[0]*tt[2]/We,Be[1]*Be[2]*tt[0]*tt[1]/We],[Be[1]*tt[1]/We,-Be[0]*Be[2]*tt[0]*tt[2]/We],[Be[2]*tt[1]*tt[2]/We,-Re*Be[0]*Be[1]*tt[0]/We]]):[[Be[0],0],[Be[1],0],[Be[2],0]]):(tt=_o(be,1-Re),[[0,tt[0]/tt[1]],[1/tt[1],0],[tt[2]/tt[1],0]])}function _o(ve,be){var Re,Be,tt,We,it;if(be=1-p)return Re=(1-be)/4,Be=N(ve),We=Z(ve),tt=1/Be,it=Be*H(ve),[We+Re*(it-ve)/(Be*Be),tt-Re*We*tt*(it-ve),tt+Re*We*tt*(it+ve),2*i(s(ve))-A+Re*(it-ve)/Be];var Dt=[1,0,0,0,0,0,0,0,0],Ht=[G(be),0,0,0,0,0,0,0,0],rr=0;for(Be=G(1-be),it=1;n(Ht[rr]/Dt[rr])>p&&rr<8;)Re=Dt[rr++],Ht[rr]=(Re-Be)/2,Dt[rr]=(Re+Be)/2,Be=G(Re*Be),it*=2;tt=it*Dt[rr]*ve;do We=Ht[rr]*x(Be=tt)/Dt[rr],tt=(O(We)+tt)/2;while(--rr);return[x(tt),We=o(tt),We/o(tt-Be),tt]}function No(ve,be,Re){var Be=n(ve),tt=n(be),We=H(tt);if(Be){var it=1/x(Be),Dt=1/(b(Be)*b(Be)),Ht=-(Dt+Re*(We*We*it*it)-1+Re),rr=(Re-1)*Dt,dr=(-Ht+G(Ht*Ht-4*rr))/2;return[po(i(1/G(dr)),Re)*v(ve),po(i(G((dr/Dt-1)/Re)),1-Re)*v(be)]}return[0,po(i(We),1-Re)*v(be)]}function po(ve,be){if(!be)return ve;if(be===1)return u(b(ve/2+L));for(var Re=1,Be=G(1-be),tt=G(be),We=0;n(tt)>p;We++){if(ve%E){var it=i(Be*b(ve)/Re);it<0&&(it+=E),ve+=it+~~(ve/E)*E}else ve+=ve;tt=(Re+Be)/2,Be=G(Re*Be),tt=((Re=tt)-Be)/2}return ve/(h(2,We)*Re)}function Lo(ve,be){var Re=(k-1)/(k+1),Be=G(1-Re*Re),tt=po(A,Be*Be),We=-1,it=u(b(E/4+n(be)/2)),Dt=s(We*it)/G(Re),Ht=Co(Dt*o(We*ve),Dt*x(We*ve)),rr=No(Ht[0],Ht[1],Be*Be);return[-rr[1],(be>=0?1:-1)*(.5*tt-rr[0])]}function Co(ve,be){var Re=ve*ve,Be=be+1,tt=1-Re-be*be;return[.5*((ve>=0?A:-A)-a(tt,2*ve)),-.25*u(tt*tt+4*Re)+.5*u(Be*Be+Re)]}function Fs(ve,be){var Re=be[0]*be[0]+be[1]*be[1];return[(ve[0]*be[0]+ve[1]*be[1])/Re,(ve[1]*be[0]-ve[0]*be[1])/Re]}Lo.invert=function(ve,be){var Re=(k-1)/(k+1),Be=G(1-Re*Re),tt=po(A,Be*Be),We=-1,it=Ma(.5*tt-be,-ve,Be*Be),Dt=Fs(it[0],it[1]),Ht=a(Dt[1],Dt[0])/We;return[Ht,2*i(s(.5/We*u(Re*Dt[0]*Dt[0]+Re*Dt[1]*Dt[1])))-A]};function zs(){return t.geoProjection(En(Lo)).scale(151.496)}function ul(ve){var be=x(ve),Re=o(ve),Be=cl(ve);Be.invert=cl(-ve);function tt(We,it){var Dt=Be(We,it);We=Dt[0],it=Dt[1];var Ht=x(it),rr=o(it),dr=o(We),Sr=V(be*Ht+Re*rr*dr),Or=x(Sr),jr=n(Or)>p?Sr/Or:1;return[jr*Re*x(We),(n(We)>A?jr:-jr)*(be*rr-Re*Ht*dr)]}return tt.invert=function(We,it){var Dt=G(We*We+it*it),Ht=-x(Dt),rr=o(Dt),dr=Dt*rr,Sr=-it*Ht,Or=Dt*be,jr=G(dr*dr+Sr*Sr-Or*Or),ii=a(dr*Or+Sr*jr,Sr*Or-dr*jr),Li=(Dt>A?-1:1)*a(We*Ht,Dt*o(ii)*rr+it*x(ii)*Ht);return Be.invert(Li,ii)},tt}function cl(ve){var be=x(ve),Re=o(ve);return function(Be,tt){var We=o(tt),it=o(Be)*We,Dt=x(Be)*We,Ht=x(tt);return[a(Dt,it*Re-Ht*be),O(Ht*Re+it*be)]}}function Fl(){var ve=0,be=t.geoProjectionMutator(ul),Re=be(ve),Be=Re.rotate,tt=Re.stream,We=t.geoCircle();return Re.parallel=function(it){if(!arguments.length)return ve*P;var Dt=Re.rotate();return be(ve=it*T).rotate(Dt)},Re.rotate=function(it){return arguments.length?(Be.call(Re,[it[0],it[1]-ve*P]),We.center([-it[0],-it[1]]),Re):(it=Be.call(Re),it[1]+=ve*P,it)},Re.stream=function(it){return it=tt(it),it.sphere=function(){it.polygonStart();var Dt=.01,Ht=We.radius(90-Dt)().coordinates[0],rr=Ht.length-1,dr=-1,Sr;for(it.lineStart();++dr=0;)it.point((Sr=Ht[dr])[0],Sr[1]);it.lineEnd(),it.polygonEnd()},it},Re.scale(79.4187).parallel(45).clipAngle(180-.001)}var cs=3,nl=O(1-1/cs)*P,Ss=pr(0);function fl(ve){var be=nl*T,Re=wt(E,be)[0]-wt(-E,be)[0],Be=Ss(0,be)[1],tt=wt(0,be)[1],We=M-tt,it=g/ve,Dt=4/g,Ht=Be+We*We*4/g;function rr(dr,Sr){var Or,jr=n(Sr);if(jr>be){var ii=f(ve-1,c(0,l((dr+E)/it)));dr+=E*(ve-1)/ve-ii*it,Or=wt(dr,jr),Or[0]=Or[0]*g/Re-g*(ve-1)/(2*ve)+ii*g/ve,Or[1]=Be+(Or[1]-tt)*4*We/g,Sr<0&&(Or[1]=-Or[1])}else Or=Ss(dr,Sr);return Or[0]*=Dt,Or[1]/=Ht,Or}return rr.invert=function(dr,Sr){dr/=Dt,Sr*=Ht;var Or=n(Sr);if(Or>Be){var jr=f(ve-1,c(0,l((dr+E)/it)));dr=(dr+E*(ve-1)/ve-jr*it)*Re/g;var ii=wt.invert(dr,.25*(Or-Be)*g/We+tt);return ii[0]-=E*(ve-1)/ve-jr*it,Sr<0&&(ii[1]=-ii[1]),ii}return Ss.invert(dr,Sr)},rr}function Js(ve,be){return[ve,be&1?90-p:nl]}function Os(ve,be){return[ve,be&1?-90+p:-nl]}function Io(ve){return[ve[0]*(1-p),ve[1]]}function us(ve){var be=[].concat(r.range(-180,180+ve/2,ve).map(Js),r.range(180,-180-ve/2,-ve).map(Os));return{type:"Polygon",coordinates:[ve===180?be.map(Io):be]}}function Zl(){var ve=4,be=t.geoProjectionMutator(fl),Re=be(ve),Be=Re.stream;return Re.lobes=function(tt){return arguments.length?be(ve=+tt):ve},Re.stream=function(tt){var We=Re.rotate(),it=Be(tt),Dt=(Re.rotate([0,0]),Be(tt));return Re.rotate(We),it.sphere=function(){t.geoStream(us(180/ve),Dt)},it},Re.scale(239.75)}function Su(ve){var be=1+ve,Re=x(1/be),Be=O(Re),tt=2*G(E/(We=E+4*Be*be)),We,it=.5*tt*(be+G(ve*(2+ve))),Dt=ve*ve,Ht=be*be;function rr(dr,Sr){var Or=1-x(Sr),jr,ii;if(Or&&Or<2){var Li=A-Sr,un=25,sn;do{var In=x(Li),Kn=o(Li),Aa=Be+a(In,be-Kn),fa=1+Ht-2*be*Kn;Li-=sn=(Li-Dt*Be-be*In+fa*Aa-.5*Or*We)/(2*be*In*Aa)}while(n(sn)>C&&--un>0);jr=tt*G(fa),ii=dr*Aa/E}else jr=tt*(ve+Or),ii=dr*Be/E;return[jr*x(ii),it-jr*o(ii)]}return rr.invert=function(dr,Sr){var Or=dr*dr+(Sr-=it)*Sr,jr=(1+Ht-Or/(tt*tt))/(2*be),ii=V(jr),Li=x(ii),un=Be+a(Li,be-jr);return[O(dr/G(Or))*E/un,O(1-2*(ii-Dt*Be-be*Li+(1+Ht-2*be*jr)*un)/We)]},rr}function nc(){var ve=1,be=t.geoProjectionMutator(Su),Re=be(ve);return Re.ratio=function(Be){return arguments.length?be(ve=+Be):ve},Re.scale(167.774).center([0,18.67])}var ws=.7109889596207567,Fn=.0528035274542;function _a(ve,be){return be>-ws?(ve=sr(ve,be),ve[1]+=Fn,ve):Ft(ve,be)}_a.invert=function(ve,be){return be>-ws?sr.invert(ve,be-Fn):Ft.invert(ve,be)};function Vu(){return t.geoProjection(_a).rotate([-20,-55]).scale(164.263).center([0,-5.4036])}function zl(ve,be){return n(be)>ws?(ve=sr(ve,be),ve[1]-=be>0?Fn:-Fn,ve):Ft(ve,be)}zl.invert=function(ve,be){return n(be)>ws?sr.invert(ve,be+(be>0?Fn:-Fn)):Ft.invert(ve,be)};function xo(){return t.geoProjection(zl).scale(152.63)}function Yl(ve,be,Re,Be){var tt=G(4*E/(2*Re+(1+ve-be/2)*x(2*Re)+(ve+be)/2*x(4*Re)+be/2*x(6*Re))),We=G(Be*x(Re)*G((1+ve*o(2*Re)+be*o(4*Re))/(1+ve+be))),it=Re*Ht(1);function Dt(Sr){return G(1+ve*o(2*Sr)+be*o(4*Sr))}function Ht(Sr){var Or=Sr*Re;return(2*Or+(1+ve-be/2)*x(2*Or)+(ve+be)/2*x(4*Or)+be/2*x(6*Or))/Re}function rr(Sr){return Dt(Sr)*x(Sr)}var dr=function(Sr,Or){var jr=Re*Wt(Ht,it*x(Or)/Re,Or/E);isNaN(jr)&&(jr=Re*v(Or));var ii=tt*Dt(jr);return[ii*We*Sr/E*o(jr),ii/We*x(jr)]};return dr.invert=function(Sr,Or){var jr=Wt(rr,Or*We/tt);return[Sr*E/(o(jr)*tt*We*Dt(jr)),O(Re*Ht(jr/Re)/it)]},Re===0&&(tt=G(Be/E),dr=function(Sr,Or){return[Sr*tt,x(Or)/tt]},dr.invert=function(Sr,Or){return[Sr/tt,O(Or*tt)]}),dr}function Us(){var ve=1,be=0,Re=45*T,Be=2,tt=t.geoProjectionMutator(Yl),We=tt(ve,be,Re,Be);return We.a=function(it){return arguments.length?tt(ve=+it,be,Re,Be):ve},We.b=function(it){return arguments.length?tt(ve,be=+it,Re,Be):be},We.psiMax=function(it){return arguments.length?tt(ve,be,Re=+it*T,Be):Re*P},We.ratio=function(it){return arguments.length?tt(ve,be,Re,Be=+it):Be},We.scale(180.739)}function Hl(ve,be,Re,Be,tt,We,it,Dt,Ht,rr,dr){if(dr.nanEncountered)return NaN;var Sr,Or,jr,ii,Li,un,sn,In,Kn,Aa;if(Sr=Re-be,Or=ve(be+Sr*.25),jr=ve(Re-Sr*.25),isNaN(Or)){dr.nanEncountered=!0;return}if(isNaN(jr)){dr.nanEncountered=!0;return}return ii=Sr*(Be+4*Or+tt)/12,Li=Sr*(tt+4*jr+We)/12,un=ii+Li,Aa=(un-it)/15,rr>Ht?(dr.maxDepthCount++,un+Aa):Math.abs(Aa)>1;do Ht[un]>jr?Li=un:ii=un,un=ii+Li>>1;while(un>ii);var sn=Ht[un+1]-Ht[un];return sn&&(sn=(jr-Ht[un+1])/sn),(un+1+sn)/it}var Sr=2*dr(1)/E*We/Re,Or=function(jr,ii){var Li=dr(n(x(ii))),un=Be(Li)*jr;return Li/=Sr,[un,ii>=0?Li:-Li]};return Or.invert=function(jr,ii){var Li;return ii*=Sr,n(ii)<1&&(Li=v(ii)*O(tt(n(ii))*We)),[jr/Be(n(ii)),Li]},Or}function Oo(){var ve=0,be=2.5,Re=1.183136,Be=t.geoProjectionMutator(aa),tt=Be(ve,be,Re);return tt.alpha=function(We){return arguments.length?Be(ve=+We,be,Re):ve},tt.k=function(We){return arguments.length?Be(ve,be=+We,Re):be},tt.gamma=function(We){return arguments.length?Be(ve,be,Re=+We):Re},tt.scale(152.63)}function qo(ve,be){return n(ve[0]-be[0])=0;--Ht)Re=ve[1][Ht],Be=Re[0][0],tt=Re[0][1],We=Re[1][1],it=Re[2][0],Dt=Re[2][1],be.push(Ol([[it-p,Dt-p],[it-p,We+p],[Be+p,We+p],[Be+p,tt-p]],30));return{type:"Polygon",coordinates:[r.merge(be)]}}function Do(ve,be,Re){var Be,tt;function We(Ht,rr){for(var dr=rr<0?-1:1,Sr=be[+(rr<0)],Or=0,jr=Sr.length-1;OrSr[Or][2][0];++Or);var ii=ve(Ht-Sr[Or][1][0],rr);return ii[0]+=ve(Sr[Or][1][0],dr*rr>dr*Sr[Or][0][1]?Sr[Or][0][1]:rr)[0],ii}Re?We.invert=Re(We):ve.invert&&(We.invert=function(Ht,rr){for(var dr=tt[+(rr<0)],Sr=be[+(rr<0)],Or=0,jr=dr.length;Orii&&(Li=jr,jr=ii,ii=Li),[[Sr,jr],[Or,ii]]})}),it):be.map(function(rr){return rr.map(function(dr){return[[dr[0][0]*P,dr[0][1]*P],[dr[1][0]*P,dr[1][1]*P],[dr[2][0]*P,dr[2][1]*P]]})})},be!=null&&it.lobes(be),it}var rf=[[[[-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 Uf(){return Do(Et,rf).scale(160.857)}var ml=[[[[-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 Zc(){return Do(zl,ml).scale(152.63)}var Kl=[[[[-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 qs(){return Do(sr,Kl).scale(169.529)}var yu=[[[[-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 oc(){return Do(sr,yu).scale(169.529).rotate([20,0])}var Cf=[[[[-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 sc(){return Do(_a,Cf,st).rotate([-20,-55]).scale(164.263).center([0,-5.4036])}var Nh=[[[[-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 kf(){return Do(Ft,Nh).scale(152.63).rotate([-20,0])}function fs(ve,be){return[3/g*ve*G(E*E/3-be*be),be]}fs.invert=function(ve,be){return[g/3*ve/G(E*E/3-be*be),be]};function nf(){return t.geoProjection(fs).scale(158.837)}function Vf(ve){function be(Re,Be){if(n(n(Be)-A)2)return null;Re/=2,Be/=2;var We=Re*Re,it=Be*Be,Dt=2*Be/(1+We+it);return Dt=h((1+Dt)/(1-Dt),1/ve),[a(2*Re,1-We-it)/ve,O((Dt-1)/(Dt+1))]},be}function Jl(){var ve=.5,be=t.geoProjectionMutator(Vf),Re=be(ve);return Re.spacing=function(Be){return arguments.length?be(ve=+Be):ve},Re.scale(124.75)}var hl=E/k;function lc(ve,be){return[ve*(1+G(o(be)))/2,be/(o(be/2)*o(ve/6))]}lc.invert=function(ve,be){var Re=n(ve),Be=n(be),tt=p,We=A;Bep||n(un)>p)&&--tt>0);return tt&&[Re,Be]};function js(){return t.geoProjection(Cs).scale(139.98)}function Go(ve,be){return[x(ve)/o(be),b(be)*o(ve)]}Go.invert=function(ve,be){var Re=ve*ve,Be=be*be,tt=Be+1,We=Re+tt,it=ve?_*G((We-G(We*We-4*Re))/Re):1/G(tt);return[O(ve*it),v(be)*V(it)]};function gs(){return t.geoProjection(Go).scale(144.049).clipAngle(90-.001)}function uc(ve){var be=o(ve),Re=b(L+ve/2);function Be(tt,We){var it=We-ve,Dt=n(it)=0;)dr=ve[rr],Sr=dr[0]+Dt*(jr=Sr)-Ht*Or,Or=dr[1]+Dt*Or+Ht*jr;return Sr=Dt*(jr=Sr)-Ht*Or,Or=Dt*Or+Ht*jr,[Sr,Or]}return Re.invert=function(Be,tt){var We=20,it=Be,Dt=tt;do{for(var Ht=be,rr=ve[Ht],dr=rr[0],Sr=rr[1],Or=0,jr=0,ii;--Ht>=0;)rr=ve[Ht],Or=dr+it*(ii=Or)-Dt*jr,jr=Sr+it*jr+Dt*ii,dr=rr[0]+it*(ii=dr)-Dt*Sr,Sr=rr[1]+it*Sr+Dt*ii;Or=dr+it*(ii=Or)-Dt*jr,jr=Sr+it*jr+Dt*ii,dr=it*(ii=dr)-Dt*Sr-Be,Sr=it*Sr+Dt*ii-tt;var Li=Or*Or+jr*jr,un,sn;it-=un=(dr*Or+Sr*jr)/Li,Dt-=sn=(Sr*Or-dr*jr)/Li}while(n(un)+n(sn)>p*p&&--We>0);if(We){var In=G(it*it+Dt*Dt),Kn=2*i(In*.5),Aa=x(Kn);return[a(it*Aa,In*o(Kn)),In?O(Dt*Aa/In):0]}},Re}var Po=[[.9972523,0],[.0052513,-.0041175],[.0074606,.0048125],[-.0153783,-.1968253],[.0636871,-.1408027],[.3660976,-.2937382]],od=[[.98879,0],[0,0],[-.050909,0],[0,0],[.075528,0]],Yo=[[.984299,0],[.0211642,.0037608],[-.1036018,-.0575102],[-.0329095,-.0320119],[.0499471,.1223335],[.026046,.0899805],[7388e-7,-.1435792],[.0075848,-.1334108],[-.0216473,.0776645],[-.0225161,.0853673]],Pa=[[.9245,0],[0,0],[.01943,0]],af=[[.721316,0],[0,0],[-.00881625,-.00617325]];function Hu(){return ql(Po,[152,-64]).scale(1400).center([-160.908,62.4864]).clipAngle(30).angle(7.8)}function bl(){return ql(od,[95,-38]).scale(1e3).clipAngle(55).center([-96.5563,38.8675])}function Gf(){return ql(Yo,[120,-45]).scale(359.513).clipAngle(55).center([-117.474,53.0628])}function Ic(){return ql(Pa,[-20,-18]).scale(209.091).center([20,16.7214]).clipAngle(82)}function mf(){return ql(af,[165,10]).scale(250).clipAngle(130).center([-165,-10])}function ql(ve,be){var Re=t.geoProjection(ad(ve)).rotate(be).clipAngle(90),Be=t.geoRotation(be),tt=Re.center;return delete Re.rotate,Re.center=function(We){return arguments.length?tt(Be(We)):Be.invert(tt())},Re}var _h=G(6),Qf=G(7);function yf(ve,be){var Re=O(7*x(be)/(3*_h));return[_h*ve*(2*o(2*Re/3)-1)/Qf,9*x(Re/3)/Qf]}yf.invert=function(ve,be){var Re=3*O(be*Qf/9);return[ve*Qf/(_h*(2*o(2*Re/3)-1)),O(x(Re)*3*_h/7)]};function Yc(){return t.geoProjection(yf).scale(164.859)}function eh(ve,be){for(var Re=(1+_)*x(be),Be=be,tt=0,We;tt<25&&(Be-=We=(x(Be/2)+x(Be)-Re)/(.5*o(Be/2)+o(Be)),!(n(We)C&&--Be>0);return We=Re*Re,it=We*We,Dt=We*it,[ve/(.84719-.13063*We+Dt*Dt*(-.04515+.05494*We-.02326*it+.00331*Dt)),Re]};function of(){return t.geoProjection(cc).scale(175.295)}function Bl(ve,be){return[ve*(1+o(be))/2,2*(be-b(be/2))]}Bl.invert=function(ve,be){for(var Re=be/2,Be=0,tt=1/0;Be<10&&n(tt)>p;++Be){var We=o(be/2);be-=tt=(be-b(be/2)-Re)/(1-.5/(We*We))}return[2*ve/(1+o(be)),be]};function Kc(){return t.geoProjection(Bl).scale(152.63)}var Rc=[[[[-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 ms(){return Do(Ze(1/0),Rc).rotate([20,0]).scale(152.63)}function jf(ve,be){var Re=x(be),Be=o(be),tt=v(ve);if(ve===0||n(be)===A)return[0,be];if(be===0)return[ve,0];if(n(ve)===A)return[ve*Be,A*Re];var We=E/(2*ve)-2*ve/E,it=2*be/E,Dt=(1-it*it)/(Re-it),Ht=We*We,rr=Dt*Dt,dr=1+Ht/rr,Sr=1+rr/Ht,Or=(We*Re/Dt-We/2)/dr,jr=(rr*Re/Ht+Dt/2)/Sr,ii=Or*Or+Be*Be/dr,Li=jr*jr-(rr*Re*Re/Ht+Dt*Re-1)/Sr;return[A*(Or+G(ii)*tt),A*(jr+G(Li<0?0:Li)*v(-be*We)*tt)]}jf.invert=function(ve,be){ve/=A,be/=A;var Re=ve*ve,Be=be*be,tt=Re+Be,We=E*E;return[ve?(tt-1+G((1-tt)*(1-tt)+4*Re))/(2*ve)*A:0,Wt(function(it){return tt*(E*x(it)-2*it)*E+4*it*it*(be-x(it))+2*E*it-We*be},0)]};function Uh(){return t.geoProjection(jf).scale(127.267)}var rh=1.0148,sf=.23185,xh=-.14499,Mu=.02406,ih=rh,Ws=5*sf,Eu=7*xh,Dc=9*Mu,ks=1.790857183;function bc(ve,be){var Re=be*be;return[ve,be*(rh+Re*Re*(sf+Re*(xh+Mu*Re)))]}bc.invert=function(ve,be){be>ks?be=ks:be<-ks&&(be=-ks);var Re=be,Be;do{var tt=Re*Re;Re-=Be=(Re*(rh+tt*tt*(sf+tt*(xh+Mu*tt)))-be)/(ih+tt*tt*(Ws+tt*(Eu+Dc*tt)))}while(n(Be)>p);return[ve,Re]};function du(){return t.geoProjection(bc).scale(139.319)}function _u(ve,be){if(n(be)p&&--tt>0);return it=b(Be),[(n(be)=0;)if(Be=be[Dt],Re[0]===Be[0]&&Re[1]===Be[1]){if(We)return[We,Re];We=Re}}}function jl(ve){for(var be=ve.length,Re=[],Be=ve[be-1],tt=0;tt0?[-Be[0],0]:[180-Be[0],180])};var be=Pf.map(function(Re){return{face:Re,project:ve(Re)}});return[-1,0,0,1,0,1,4,5].forEach(function(Re,Be){var tt=be[Re];tt&&(tt.children||(tt.children=[])).push(be[Be])}),_f(be[0],function(Re,Be){return be[Re<-E/2?Be<0?6:4:Re<0?Be<0?2:0:ReBe^jr>Be&&Re<(Or-rr)*(Be-dr)/(jr-dr)+rr&&(tt=!tt)}return tt}function Wl(ve,be){var Re=be.stream,Be;if(!Re)throw new Error("invalid projection");switch(ve&&ve.type){case"Feature":Be=Zu;break;case"FeatureCollection":Be=ah;break;default:Be=Tc;break}return Be(ve,Re)}function ah(ve,be){return{type:"FeatureCollection",features:ve.features.map(function(Re){return Zu(Re,be)})}}function Zu(ve,be){return{type:"Feature",id:ve.id,properties:ve.properties,geometry:Tc(ve.geometry,be)}}function Oc(ve,be){return{type:"GeometryCollection",geometries:ve.geometries.map(function(Re){return Tc(Re,be)})}}function Tc(ve,be){if(!ve)return null;if(ve.type==="GeometryCollection")return Oc(ve,be);var Re;switch(ve.type){case"Point":Re=qc;break;case"MultiPoint":Re=qc;break;case"LineString":Re=cf;break;case"MultiLineString":Re=cf;break;case"Polygon":Re=fc;break;case"MultiPolygon":Re=fc;break;case"Sphere":Re=fc;break;default:return null}return t.geoStream(ve,be(Re)),Re.result()}var wl=[],pu=[],qc={point:function(ve,be){wl.push([ve,be])},result:function(){var ve=wl.length?wl.length<2?{type:"Point",coordinates:wl[0]}:{type:"MultiPoint",coordinates:wl}:null;return wl=[],ve}},cf={lineStart:Xu,point:function(ve,be){wl.push([ve,be])},lineEnd:function(){wl.length&&(pu.push(wl),wl=[])},result:function(){var ve=pu.length?pu.length<2?{type:"LineString",coordinates:pu[0]}:{type:"MultiLineString",coordinates:pu}:null;return pu=[],ve}},fc={polygonStart:Xu,lineStart:Xu,point:function(ve,be){wl.push([ve,be])},lineEnd:function(){var ve=wl.length;if(ve){do wl.push(wl[0].slice());while(++ve<4);pu.push(wl),wl=[]}},polygonEnd:Xu,result:function(){if(!pu.length)return null;var ve=[],be=[];return pu.forEach(function(Re){uf(Re)?ve.push([Re]):be.push(Re)}),be.forEach(function(Re){var Be=Re[0];ve.some(function(tt){if(Xf(tt[0],Be))return tt.push(Re),!0})||ve.push([Re])}),pu=[],ve.length?ve.length>1?{type:"MultiPolygon",coordinates:ve}:{type:"Polygon",coordinates:ve[0]}:null}};function Bc(ve){var be=ve(A,0)[0]-ve(-A,0)[0];function Re(Be,tt){var We=n(Be)0?Be-E:Be+E,tt),Dt=(it[0]-it[1])*_,Ht=(it[0]+it[1])*_;if(We)return[Dt,Ht];var rr=be*_,dr=Dt>0^Ht>0?-1:1;return[dr*Dt-v(Ht)*rr,dr*Ht-v(Dt)*rr]}return ve.invert&&(Re.invert=function(Be,tt){var We=(Be+tt)*_,it=(tt-Be)*_,Dt=n(We)<.5*be&&n(it)<.5*be;if(!Dt){var Ht=be*_,rr=We>0^it>0?-1:1,dr=-rr*Be+(it>0?1:-1)*Ht,Sr=-rr*tt+(We>0?1:-1)*Ht;We=(-dr-Sr)*_,it=(dr-Sr)*_}var Or=ve.invert(We,it);return Dt||(Or[0]+=We>0?E:-E),Or}),t.geoProjection(Re).rotate([-90,-90,45]).clipAngle(180-.001)}function At(){return Bc(ki).scale(176.423)}function Xt(){return Bc(Lo).scale(111.48)}function kr(ve,be){if(!(0<=(be=+be)&&be<=20))throw new Error("invalid digits");function Re(rr){var dr=rr.length,Sr=2,Or=new Array(dr);for(Or[0]=+rr[0].toFixed(be),Or[1]=+rr[1].toFixed(be);Sr2||jr[0]!=dr[0]||jr[1]!=dr[1])&&(Sr.push(jr),dr=jr)}return Sr.length===1&&rr.length>1&&Sr.push(Re(rr[rr.length-1])),Sr}function We(rr){return rr.map(tt)}function it(rr){if(rr==null)return rr;var dr;switch(rr.type){case"GeometryCollection":dr={type:"GeometryCollection",geometries:rr.geometries.map(it)};break;case"Point":dr={type:"Point",coordinates:Re(rr.coordinates)};break;case"MultiPoint":dr={type:rr.type,coordinates:Be(rr.coordinates)};break;case"LineString":dr={type:rr.type,coordinates:tt(rr.coordinates)};break;case"MultiLineString":case"Polygon":dr={type:rr.type,coordinates:We(rr.coordinates)};break;case"MultiPolygon":dr={type:"MultiPolygon",coordinates:rr.coordinates.map(We)};break;default:return rr}return rr.bbox!=null&&(dr.bbox=rr.bbox),dr}function Dt(rr){var dr={type:"Feature",properties:rr.properties,geometry:it(rr.geometry)};return rr.id!=null&&(dr.id=rr.id),rr.bbox!=null&&(dr.bbox=rr.bbox),dr}if(ve!=null)switch(ve.type){case"Feature":return Dt(ve);case"FeatureCollection":{var Ht={type:"FeatureCollection",features:ve.features.map(Dt)};return ve.bbox!=null&&(Ht.bbox=ve.bbox),Ht}default:return it(ve)}return ve}function Ar(ve){var be=x(ve);function Re(Be,tt){var We=be?b(Be*be/2)/be:Be/2;if(!tt)return[2*We,-ve];var it=2*i(We*x(tt)),Dt=1/b(tt);return[x(it)*Dt,tt+(1-o(it))*Dt-ve]}return Re.invert=function(Be,tt){if(n(tt+=ve)p&&--Dt>0);var Or=Be*(rr=b(it)),jr=b(n(tt)0?A:-A)*(Ht+tt*(dr-it)/2+tt*tt*(dr-2*Ht+it)/2)]}Wi.invert=function(ve,be){var Re=be/A,Be=Re*90,tt=f(18,n(Be/5)),We=c(0,l(tt));do{var it=Ei[We][1],Dt=Ei[We+1][1],Ht=Ei[f(19,We+2)][1],rr=Ht-it,dr=Ht-2*Dt+it,Sr=2*(n(Re)-Dt)/rr,Or=dr/rr,jr=Sr*(1-Or*Sr*(1-2*Or*Sr));if(jr>=0||We===1){Be=(be>=0?5:-5)*(jr+tt);var ii=50,Li;do tt=f(18,n(Be)/5),We=l(tt),jr=tt-We,it=Ei[We][1],Dt=Ei[We+1][1],Ht=Ei[f(19,We+2)][1],Be-=(Li=(be>=0?A:-A)*(Dt+jr*(Ht-it)/2+jr*jr*(Ht-2*Dt+it)/2)-be)*P;while(n(Li)>C&&--ii>0);break}}while(--We>=0);var un=Ei[We][0],sn=Ei[We+1][0],In=Ei[f(19,We+2)][0];return[ve/(sn+jr*(In-un)/2+jr*jr*(In-2*sn+un)/2),Be*T]};function hn(){return t.geoProjection(Wi).scale(152.63)}function Tn(ve){function be(Re,Be){var tt=o(Be),We=(ve-1)/(ve-tt*o(Re));return[We*tt*x(Re),We*x(Be)]}return be.invert=function(Re,Be){var tt=Re*Re+Be*Be,We=G(tt),it=(ve-G(1-tt*(ve+1)/(ve-1)))/((ve-1)/We+We/(ve-1));return[a(Re*it,We*G(1-it*it)),We?O(Be*it/We):0]},be}function Bn(ve,be){var Re=Tn(ve);if(!be)return Re;var Be=o(be),tt=x(be);function We(it,Dt){var Ht=Re(it,Dt),rr=Ht[1],dr=rr*tt/(ve-1)+Be;return[Ht[0]*Be/dr,rr/dr]}return We.invert=function(it,Dt){var Ht=(ve-1)/(ve-1-Dt*tt);return Re.invert(Ht*it,Ht*Dt*Be)},We}function Zi(){var ve=2,be=0,Re=t.geoProjectionMutator(Bn),Be=Re(ve,be);return Be.distance=function(tt){return arguments.length?Re(ve=+tt,be):ve},Be.tilt=function(tt){return arguments.length?Re(ve,be=tt*T):be*P},Be.scale(432.147).clipAngle(V(1/ve)*P-1e-6)}var $i=1e-4,an=1e4,Di=-180,$n=Di+$i,ka=180,Ra=ka-$i,La=-90,Na=La+$i,Yn=90,zn=Yn-$i;function Ka(ve){return ve.length>0}function bo(ve){return Math.floor(ve*an)/an}function Xo(ve){return ve===La||ve===Yn?[0,ve]:[Di,bo(ve)]}function Ms(ve){var be=ve[0],Re=ve[1],Be=!1;return be<=$n?(be=Di,Be=!0):be>=Ra&&(be=ka,Be=!0),Re<=Na?(Re=La,Be=!0):Re>=zn&&(Re=Yn,Be=!0),Be?[be,Re]:ve}function os(ve){return ve.map(Ms)}function Ts(ve,be,Re){for(var Be=0,tt=ve.length;Be=Ra||dr<=Na||dr>=zn){We[it]=Ms(Ht);for(var Sr=it+1;Sr$n&&jrNa&&ii=Dt)break;Re.push({index:-1,polygon:be,ring:We=We.slice(Sr-1)}),We[0]=Xo(We[0][1]),it=-1,Dt=We.length}}}}function Ho(ve){var be,Re=ve.length,Be={},tt={},We,it,Dt,Ht,rr;for(be=0;be0?E-Dt:Dt)*P],rr=t.geoProjection(ve(it)).rotate(Ht),dr=t.geoRotation(Ht),Sr=rr.center;return delete rr.rotate,rr.center=function(Or){return arguments.length?Sr(dr(Or)):dr.invert(Sr())},rr.clipAngle(90)}function is(ve){var be=o(ve);function Re(Be,tt){var We=t.geoGnomonicRaw(Be,tt);return We[0]*=be,We}return Re.invert=function(Be,tt){return t.geoGnomonicRaw.invert(Be/be,tt)},Re}function $l(){return ku([-158,21.5],[-77,39]).clipAngle(60).scale(400)}function ku(ve,be){return _s(is,ve,be)}function Yu(ve){if(!(ve*=2))return t.geoAzimuthalEquidistantRaw;var be=-ve/2,Re=-be,Be=ve*ve,tt=b(Re),We=.5/x(Re);function it(Dt,Ht){var rr=V(o(Ht)*o(Dt-be)),dr=V(o(Ht)*o(Dt-Re)),Sr=Ht<0?-1:1;return rr*=rr,dr*=dr,[(rr-dr)/(2*ve),Sr*G(4*Be*dr-(Be-rr+dr)*(Be-rr+dr))/(2*ve)]}return it.invert=function(Dt,Ht){var rr=Ht*Ht,dr=o(G(rr+(Or=Dt+be)*Or)),Sr=o(G(rr+(Or=Dt+Re)*Or)),Or,jr;return[a(jr=dr-Sr,Or=(dr+Sr)*tt),(Ht<0?-1:1)*V(G(Or*Or+jr*jr)*We)]},it}function Nc(){return gu([-158,21.5],[-77,39]).clipAngle(130).scale(122.571)}function gu(ve,be){return _s(Yu,ve,be)}function Uc(ve,be){if(n(be)p&&--Dt>0);return[v(ve)*(G(tt*tt+4)+tt)*E/4,A*it]};function Ku(){return t.geoProjection(hc).scale(127.16)}function ue(ve,be,Re,Be,tt){function We(it,Dt){var Ht=Re*x(Be*Dt),rr=G(1-Ht*Ht),dr=G(2/(1+rr*o(it*=tt)));return[ve*rr*dr*x(it),be*Ht*dr]}return We.invert=function(it,Dt){var Ht=it/ve,rr=Dt/be,dr=G(Ht*Ht+rr*rr),Sr=2*O(dr/2);return[a(it*b(Sr),ve*dr)/tt,dr&&O(Dt*x(Sr)/(be*Re*dr))/Be]},We}function w(ve,be,Re,Be){var tt=E/3;ve=c(ve,p),be=c(be,p),ve=f(ve,A),be=f(be,E-p),Re=c(Re,0),Re=f(Re,100-p),Be=c(Be,p);var We=Re/100+1,it=Be/100,Dt=V(We*o(tt))/tt,Ht=x(ve)/x(Dt*A),rr=be/E,dr=G(it*x(ve/2)/x(be/2)),Sr=dr/G(rr*Ht*Dt),Or=1/(dr*G(rr*Ht*Dt));return ue(Sr,Or,Ht,Dt,rr)}function B(){var ve=65*T,be=60*T,Re=20,Be=200,tt=t.geoProjectionMutator(w),We=tt(ve,be,Re,Be);return We.poleline=function(it){return arguments.length?tt(ve=+it*T,be,Re,Be):ve*P},We.parallels=function(it){return arguments.length?tt(ve,be=+it*T,Re,Be):be*P},We.inflation=function(it){return arguments.length?tt(ve,be,Re=+it,Be):Re},We.ratio=function(it){return arguments.length?tt(ve,be,Re,Be=+it):Be},We.scale(163.775)}function Q(){return B().poleline(65).parallels(60).inflation(0).ratio(200).scale(172.633)}var ee=4*E+3*G(3),le=2*G(2*E*G(3)/ee),qe=$t(le*G(3)/E,le,ee/6);function Xe(){return t.geoProjection(qe).scale(176.84)}function ot(ve,be){return[ve*G(1-3*be*be/(E*E)),be]}ot.invert=function(ve,be){return[ve/G(1-3*be*be/(E*E)),be]};function Tt(){return t.geoProjection(ot).scale(152.63)}function Kt(ve,be){var Re=o(be),Be=o(ve)*Re,tt=1-Be,We=o(ve=a(x(ve)*Re,-x(be))),it=x(ve);return Re=G(1-Be*Be),[it*Re-We*tt,-We*Re-it*tt]}Kt.invert=function(ve,be){var Re=(ve*ve+be*be)/-2,Be=G(-Re*(2+Re)),tt=be*Re+ve*Be,We=ve*Re-be*Be,it=G(We*We+tt*tt);return[a(Be*tt,it*(1+Re)),it?-O(Be*We/it):0]};function Jt(){return t.geoProjection(Kt).rotate([0,-90,45]).scale(124.75).clipAngle(180-.001)}function xr(ve,be){var Re=Me(ve,be);return[(Re[0]+ve/A)/2,(Re[1]+be)/2]}xr.invert=function(ve,be){var Re=ve,Be=be,tt=25;do{var We=o(Be),it=x(Be),Dt=x(2*Be),Ht=it*it,rr=We*We,dr=x(Re),Sr=o(Re/2),Or=x(Re/2),jr=Or*Or,ii=1-rr*Sr*Sr,Li=ii?V(We*Sr)*G(un=1/ii):un=0,un,sn=.5*(2*Li*We*Or+Re/A)-ve,In=.5*(Li*it+Be)-be,Kn=.5*un*(rr*jr+Li*We*Sr*Ht)+.5/A,Aa=un*(dr*Dt/4-Li*it*Or),fa=.125*un*(Dt*Or-Li*it*rr*dr),$a=.5*un*(Ht*Sr+Li*jr*We)+.5,ko=Aa*fa-$a*Kn,Qa=(In*Aa-sn*$a)/ko,mo=(sn*fa-In*Kn)/ko;Re-=Qa,Be-=mo}while((n(Qa)>p||n(mo)>p)&&--tt>0);return[Re,Be]};function Pr(){return t.geoProjection(xr).scale(158.837)}e.geoNaturalEarth=t.geoNaturalEarth1,e.geoNaturalEarthRaw=t.geoNaturalEarth1Raw,e.geoAiry=_e,e.geoAiryRaw=oe,e.geoAitoff=ke,e.geoAitoffRaw=Me,e.geoArmadillo=ie,e.geoArmadilloRaw=me,e.geoAugust=Le,e.geoAugustRaw=Se,e.geoBaker=ge,e.geoBakerRaw=Pe,e.geoBerghaus=ce,e.geoBerghausRaw=Fe,e.geoBertin1953=Gt,e.geoBertin1953Raw=lt,e.geoBoggs=er,e.geoBoggsRaw=Et,e.geoBonne=Yt,e.geoBonneRaw=yt,e.geoBottomley=Tr,e.geoBottomleyRaw=lr,e.geoBromley=ei,e.geoBromleyRaw=Rr,e.geoChamberlin=$e,e.geoChamberlinRaw=Ge,e.geoChamberlinAfrica=je,e.geoCollignon=Ie,e.geoCollignonRaw=wt,e.geoCraig=Ce,e.geoCraigRaw=xe,e.geoCraster=ir,e.geoCrasterRaw=nr,e.geoCylindricalEqualArea=oi,e.geoCylindricalEqualAreaRaw=pr,e.geoCylindricalStereographic=Jr,e.geoCylindricalStereographicRaw=di,e.geoEckert1=Hi,e.geoEckert1Raw=fi,e.geoEckert2=wn,e.geoEckert2Raw=Pn,e.geoEckert3=Vn,e.geoEckert3Raw=pn,e.geoEckert4=ea,e.geoEckert4Raw=kn,e.geoEckert5=Vt,e.geoEckert5Raw=ua,e.geoEckert6=tr,e.geoEckert6Raw=_t,e.geoEisenlohr=Zr,e.geoEisenlohrRaw=Er,e.geoFahey=zi,e.geoFaheyRaw=$r,e.geoFoucaut=en,e.geoFoucautRaw=Ji,e.geoFoucautSinusoidal=yn,e.geoFoucautSinusoidalRaw=cn,e.geoGilbert=la,e.geoGingery=Wo,e.geoGingeryRaw=ma,e.geoGinzburg4=Ga,e.geoGinzburg4Raw=Wn,e.geoGinzburg5=jn,e.geoGinzburg5Raw=vo,e.geoGinzburg6=Cr,e.geoGinzburg6Raw=St,e.geoGinzburg8=pi,e.geoGinzburg8Raw=Qr,e.geoGinzburg9=Sn,e.geoGinzburg9Raw=fn,e.geoGringorten=Jn,e.geoGringortenRaw=ki,e.geoGuyou=zs,e.geoGuyouRaw=Lo,e.geoHammer=pt,e.geoHammerRaw=Ze,e.geoHammerRetroazimuthal=Fl,e.geoHammerRetroazimuthalRaw=ul,e.geoHealpix=Zl,e.geoHealpixRaw=fl,e.geoHill=nc,e.geoHillRaw=Su,e.geoHomolosine=xo,e.geoHomolosineRaw=zl,e.geoHufnagel=Us,e.geoHufnagelRaw=Yl,e.geoHyperelliptical=Oo,e.geoHyperellipticalRaw=aa,e.geoInterrupt=Do,e.geoInterruptedBoggs=Uf,e.geoInterruptedHomolosine=Zc,e.geoInterruptedMollweide=qs,e.geoInterruptedMollweideHemispheres=oc,e.geoInterruptedSinuMollweide=sc,e.geoInterruptedSinusoidal=kf,e.geoKavrayskiy7=nf,e.geoKavrayskiy7Raw=fs,e.geoLagrange=Jl,e.geoLagrangeRaw=Vf,e.geoLarrivee=Fu,e.geoLarriveeRaw=lc,e.geoLaskowski=js,e.geoLaskowskiRaw=Cs,e.geoLittrow=gs,e.geoLittrowRaw=Go,e.geoLoximuthal=xl,e.geoLoximuthalRaw=uc,e.geoMiller=Bs,e.geoMillerRaw=Gu,e.geoModifiedStereographic=ql,e.geoModifiedStereographicRaw=ad,e.geoModifiedStereographicAlaska=Hu,e.geoModifiedStereographicGs48=bl,e.geoModifiedStereographicGs50=Gf,e.geoModifiedStereographicMiller=Ic,e.geoModifiedStereographicLee=mf,e.geoMollweide=wr,e.geoMollweideRaw=sr,e.geoMtFlatPolarParabolic=Yc,e.geoMtFlatPolarParabolicRaw=yf,e.geoMtFlatPolarQuartic=th,e.geoMtFlatPolarQuarticRaw=eh,e.geoMtFlatPolarSinusoidal=Hf,e.geoMtFlatPolarSinusoidalRaw=ju,e.geoNaturalEarth2=of,e.geoNaturalEarth2Raw=cc,e.geoNellHammer=Kc,e.geoNellHammerRaw=Bl,e.geoInterruptedQuarticAuthalic=ms,e.geoNicolosi=Uh,e.geoNicolosiRaw=jf,e.geoPatterson=du,e.geoPattersonRaw=bc,e.geoPolyconic=al,e.geoPolyconicRaw=_u,e.geoPolyhedral=_f,e.geoPolyhedralButterfly=Ls,e.geoPolyhedralCollignon=Wf,e.geoPolyhedralWaterman=Vs,e.geoProject=Wl,e.geoGringortenQuincuncial=At,e.geoPeirceQuincuncial=Xt,e.geoPierceQuincuncial=Xt,e.geoQuantize=kr,e.geoQuincuncial=Bc,e.geoRectangularPolyconic=Kr,e.geoRectangularPolyconicRaw=Ar,e.geoRobinson=hn,e.geoRobinsonRaw=Wi,e.geoSatellite=Zi,e.geoSatelliteRaw=Bn,e.geoSinuMollweide=Vu,e.geoSinuMollweideRaw=_a,e.geoSinusoidal=bt,e.geoSinusoidalRaw=Ft,e.geoStitch=Ps,e.geoTimes=no,e.geoTimesRaw=va,e.geoTwoPointAzimuthal=ku,e.geoTwoPointAzimuthalRaw=is,e.geoTwoPointAzimuthalUsa=$l,e.geoTwoPointEquidistant=gu,e.geoTwoPointEquidistantRaw=Yu,e.geoTwoPointEquidistantUsa=Nc,e.geoVanDerGrinten=xu,e.geoVanDerGrintenRaw=Uc,e.geoVanDerGrinten2=Ua,e.geoVanDerGrinten2Raw=Ac,e.geoVanDerGrinten3=Vc,e.geoVanDerGrinten3Raw=oo,e.geoVanDerGrinten4=Ku,e.geoVanDerGrinten4Raw=hc,e.geoWagner=B,e.geoWagner7=Q,e.geoWagnerRaw=w,e.geoWagner4=Xe,e.geoWagner4Raw=qe,e.geoWagner6=Tt,e.geoWagner6Raw=ot,e.geoWiechel=Jt,e.geoWiechelRaw=Kt,e.geoWinkel3=Pr,e.geoWinkel3Raw=xr,Object.defineProperty(e,"__esModule",{value:!0})})});var bDe=ye((_gr,xDe)=>{"use strict";var id=Oa(),PZ=Dr(),YFt=qa(),ZA=Math.PI/180,H2=180/Math.PI,RZ={cursor:"pointer"},DZ={cursor:"auto"};function KFt(e,t){var r=e.projection,n;return t._isScoped?n=JFt:t._isClipped?n=QFt:n=$Ft,n(e,r)}xDe.exports=KFt;function FZ(e,t){return id.behavior.zoom().translate(t.translate()).scale(t.scale())}function zZ(e,t,r){var n=e.id,i=e.graphDiv,a=i.layout,o=a[n],s=i._fullLayout,l=s[n],u={},c={};function f(h,d){u[n+"."+h]=PZ.nestedProperty(o,h).get(),YFt.call("_storeDirectGUIEdit",a,s._preGUI,u);var v=PZ.nestedProperty(l,h);v.get()!==d&&(v.set(d),PZ.nestedProperty(o,h).set(d),c[n+"."+h]=d)}r(f),f("projection.scale",t.scale()/e.fitScale),f("fitbounds",!1),i.emit("plotly_relayout",c)}function JFt(e,t){var r=FZ(e,t);function n(){id.select(this).style(RZ)}function i(){t.scale(id.event.scale).translate(id.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(){id.select(this).style(DZ),zZ(e,t,a)}return r.on("zoomstart",n).on("zoom",i).on("zoomend",o),r}function $Ft(e,t){var r=FZ(e,t),n=2,i,a,o,s,l,u,c,f,h;function d(E){return t.invert(E)}function v(E){var A=d(E);if(!A)return!0;var L=t(A);return Math.abs(L[0]-E[0])>n||Math.abs(L[1]-E[1])>n}function x(){id.select(this).style(RZ),i=id.mouse(this),a=t.rotate(),o=t.translate(),s=a,l=d(i)}function b(){if(u=id.mouse(this),v(i)){r.scale(t.scale()),r.translate(t.translate());return}t.scale(id.event.scale),t.translate([o[0],id.event.translate[1]]),l?d(u)&&(f=d(u),c=[s[0]+(f[0]-l[0]),a[1],a[2]],t.rotate(c),s=c):(i=u,l=d(i)),h=!0,e.render(!0);var E=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":-E[0]})}function p(){id.select(this).style(DZ),h&&zZ(e,t,C)}function C(E){var A=t.rotate(),L=t.invert(e.midPt);E("projection.rotation.lon",-A[0]),E("center.lon",L[0]),E("center.lat",L[1])}return r.on("zoomstart",x).on("zoom",b).on("zoomend",p),r}function QFt(e,t){var r={r:t.rotate(),k:t.scale()},n=FZ(e,t),i=szt(n,"zoomstart","zoom","zoomend"),a=0,o=n.on,s;n.on("zoomstart",function(){id.select(this).style(RZ);var h=id.mouse(this),d=t.rotate(),v=d,x=t.translate(),b=ezt(d);s=EF(t,h),o.call(n,"zoom",function(){var p=id.mouse(this);if(t.scale(r.k=id.event.scale),!s)h=p,s=EF(t,h);else if(EF(t,p)){t.rotate(d).translate(x);var C=EF(t,p),E=rzt(s,C),A=nzt(tzt(b,E)),L=r.r=izt(A,s,v);(!isFinite(L[0])||!isFinite(L[1])||!isFinite(L[2]))&&(L=v),t.rotate(L),v=L}u(i.of(this,arguments))}),l(i.of(this,arguments))}).on("zoomend",function(){id.select(this).style(DZ),o.call(n,"zoom",null),c(i.of(this,arguments)),zZ(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 d=t.rotate();h("projection.rotation.lon",-d[0]),h("projection.rotation.lat",-d[1])}return id.rebind(n,i,"on")}function EF(e,t){var r=e.invert(t);return r&&isFinite(r[0])&&isFinite(r[1])&&azt(r)}function ezt(e){var t=.5*e[0]*ZA,r=.5*e[1]*ZA,n=.5*e[2]*ZA,i=Math.sin(t),a=Math.cos(t),o=Math.sin(r),s=Math.cos(r),l=Math.sin(n),u=Math.cos(n);return[a*s*u+i*o*l,i*s*u-a*o*l,a*o*u+i*s*l,a*s*l-i*o*u]}function tzt(e,t){var r=e[0],n=e[1],i=e[2],a=e[3],o=t[0],s=t[1],l=t[2],u=t[3];return[r*o-n*s-i*l-a*u,r*s+n*o+i*u-a*l,r*l-n*u+i*o+a*s,r*u+n*l-i*s+a*o]}function rzt(e,t){if(!(!e||!t)){var r=ozt(e,t),n=Math.sqrt(_De(r,r)),i=.5*Math.acos(Math.max(-1,Math.min(1,_De(e,t)))),a=Math.sin(i)/n;return n&&[Math.cos(i),r[2]*a,-r[1]*a,r[0]*a]}}function izt(e,t,r){var n=IZ(t,2,e[0]);n=IZ(n,1,e[1]),n=IZ(n,0,e[2]-r[2]);var i=t[0],a=t[1],o=t[2],s=n[0],l=n[1],u=n[2],c=Math.atan2(a,i)*H2,f=Math.sqrt(i*i+a*a),h,d;Math.abs(l)>f?(d=(l>0?90:-90)-c,h=0):(d=Math.asin(l/f)*H2-c,h=Math.sqrt(f*f-l*l));var v=180-d-2*c,x=(Math.atan2(u,s)-Math.atan2(o,h))*H2,b=(Math.atan2(u,s)-Math.atan2(o,-h))*H2,p=mDe(r[0],r[1],d,x),C=mDe(r[0],r[1],v,b);return p<=C?[d,x,r[2]]:[v,b,r[2]]}function mDe(e,t,r,n){var i=yDe(r-e),a=yDe(n-t);return Math.sqrt(i*i+a*a)}function yDe(e){return(e%360+540)%360-180}function IZ(e,t,r){var n=r*ZA,i=e.slice(),a=t===0?1:0,o=t===2?1:2,s=Math.cos(n),l=Math.sin(n);return i[a]=e[a]*s-e[o]*l,i[o]=e[o]*s+e[a]*l,i}function nzt(e){return[Math.atan2(2*(e[0]*e[1]+e[2]*e[3]),1-2*(e[1]*e[1]+e[2]*e[2]))*H2,Math.asin(Math.max(-1,Math.min(1,2*(e[0]*e[2]-e[3]*e[1]))))*H2,Math.atan2(2*(e[0]*e[3]+e[1]*e[2]),1-2*(e[2]*e[2]+e[3]*e[3]))*H2]}function azt(e){var t=e[0]*ZA,r=e[1]*ZA,n=Math.cos(r);return[n*Math.cos(t),n*Math.sin(t),Math.sin(r)]}function _De(e,t){for(var r=0,n=0,i=e.length;n{"use strict";var t1=Oa(),BZ=LZ(),lzt=BZ.geoPath,uzt=BZ.geoDistance,czt=gDe(),fzt=qa(),oC=Dr(),hzt=oC.strTranslate,CF=Ca(),aC=So(),wDe=vf(),dzt=Mc(),qZ=ho(),TDe=wg().getAutoRange,OZ=gv(),vzt=zf().prepSelect,pzt=zf().clearOutline,gzt=zf().selectOnClick,mzt=bDe(),cp=eC(),yzt=nx(),SDe=dF(),_zt=pZ().feature;function MDe(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 $g=MDe.prototype;EDe.exports=function(t){return new MDe(t)};$g.plot=function(e,t,r,n){var i=this;if(n)return i.update(e,t,!0);i._geoCalcData=e,i._fullLayout=t;var a=t[this.id],o=[],s=!1;for(var l in cp.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!==n.scope)&&this.saveViewInitial(n)}this.scope=n.scope,this.updateBaseLayers(t,n),this.updateDims(t,n),this.updateFx(t,n),dzt.generalUpdatePerTraceModule(this.graphDiv,this,e,n);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()};$g.updateProjection=function(e,t){var r=this.graphDiv,n=t[this.id],i=t._size,a=n.domain,o=n.projection,s=n.lonaxis,l=n.lataxis,u=s._ax,c=l._ax,f=this.projection=xzt(n),h=[[i.l+i.w*a.x[0],i.t+i.h*(1-a.y[1])],[i.l+i.w*a.x[1],i.t+i.h*(1-a.y[0])]],d=n.center||{},v=o.rotation||{},x=s.range||[],b=l.range||[];if(n.fitbounds){u._length=h[1][0]-h[0][0],c._length=h[1][1]-h[0][1],u.range=TDe(r,u),c.range=TDe(r,c);var p=(u.range[0]+u.range[1])/2,C=(c.range[0]+c.range[1])/2;if(n._isScoped)d={lon:p,lat:C};else if(n._isClipped){d={lon:p,lat:C},v={lon:p,lat:C,roll:v.roll};var E=o.type,A=cp.lonaxisSpan[E]/2||180,L=cp.lataxisSpan[E]/2||90;x=[p-A,p+A],b=[C-L,C+L]}else d={lon:p,lat:C},v={lon:p,lat:v.lat,roll:v.roll}}f.center([d.lon-v.lon,d.lat-v.lat]).rotate([-v.lon,-v.lat,v.roll]).parallels(o.parallels);var _=ADe(x,b);f.fitExtent(h,_);var k=this.bounds=f.getBounds(_),M=this.fitScale=f.scale(),g=f.translate();if(n.fitbounds){var P=f.getBounds(ADe(u.range,c.range)),T=Math.min((k[1][0]-k[0][0])/(P[1][0]-P[0][0]),(k[1][1]-k[0][1])/(P[1][1]-P[0][1]));isFinite(T)?f.scale(T*M):oC.warn("Something went wrong during"+this.id+"fitbounds computations.")}else f.scale(o.scale*M);var z=this.midPt=[(k[0][0]+k[1][0])/2,(k[0][1]+k[1][1])/2];if(f.translate([g[0]+(z[0]-g[0]),g[1]+(z[1]-g[1])]).clipExtent(k),n._isAlbersUsa){var O=f([d.lon,d.lat]),V=f.translate();f.translate([V[0]-(O[0]-V[0]),V[1]-(O[1]-V[1])])}};$g.updateBaseLayers=function(e,t){var r=this,n=r.topojson,i=r.layers,a=r.basePaths;function o(h){return h==="lonaxis"||h==="lataxis"}function s(h){return!!cp.lineLayers[h]}function l(h){return!!cp.fillLayers[h]}var u=this.hasChoropleth?cp.layersForChoropleth:cp.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 i[h],delete a[h],t1.select(this).remove()}),f.enter().append("g").attr("class",function(h){return"layer "+h}).each(function(h){var d=i[h]=t1.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"))}),f.order(),f.each(function(h){var d=a[h],v=cp.layerNameToAdjective[h];h==="frame"?d.datum(cp.sphereSVG):s(h)||l(h)?d.datum(_zt(n,n.objects[h])):o(h)&&d.datum(bzt(h,t,e)).call(CF.stroke,t[h].gridcolor).call(aC.dashLine,t[h].griddash,t[h].gridwidth),s(h)?d.call(CF.stroke,t[v+"color"]).call(aC.dashLine,"",t[v+"width"]):l(h)&&d.call(CF.fill,t[v+"color"])})};$g.updateDims=function(e,t){var r=this.bounds,n=(t.framewidth||0)/2,i=r[0][0]-n,a=r[0][1]-n,o=r[1][0]-i+n,s=r[1][1]-a+n;aC.setRect(this.clipRect,i,a,o,s),this.bgRect.call(aC.setRect,i,a,o,s).call(CF.fill,t.bgcolor),this.xaxis._offset=i,this.xaxis._length=o,this.yaxis._offset=a,this.yaxis._length=s};$g.updateFx=function(e,t){var r=this,n=r.graphDiv,i=r.bgRect,a=e.dragmode,o=e.clickmode;if(r.isStatic)return;function s(){var f=r.viewInitial,h={};for(var d in f)h[r.id+"."+d]=f[d];fzt.call("_guiRelayout",n,h),n.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 d=f.range={};d[r.id]=[l([h.xmin,h.ymin]),l([h.xmax,h.ymax])]}else{var v=f.lassoPoints={};v[r.id]=h.map(l)}},c={element:r.bgRect.node(),gd:n,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&&pzt(n)}};a==="pan"?(i.node().onmousedown=null,i.call(mzt(r,t)),i.on("dblclick.zoom",s),n._context._scrollZoom.geo||i.on("wheel.zoom",null)):(a==="select"||a==="lasso")&&(i.on(".zoom",null),c.prepFn=function(f,h,d){vzt(f,h,d,c,a)},OZ.init(c)),i.on("mousemove",function(){var f=r.projection.invert(oC.getPositionFromD3Event());if(!f)return OZ.unhover(n,t1.event);r.xaxis.p2c=function(){return f[0]},r.yaxis.p2c=function(){return f[1]},wDe.hover(n,t1.event,r.id)}),i.on("mouseout",function(){n._dragging||OZ.unhover(n,t1.event)}),i.on("click",function(){a!=="select"&&a!=="lasso"&&(o.indexOf("select")>-1&&gzt(t1.event,n,[r.xaxis],[r.yaxis],r.id,c),o.indexOf("event")>-1&&wDe.click(n,t1.event))})};$g.makeFramework=function(){var e=this,t=e.graphDiv,r=t._fullLayout,n="clip"+r._uid+e.id;e.clipDef=r._clips.append("clipPath").attr("id",n),e.clipRect=e.clipDef.append("rect"),e.framework=t1.select(e.container).append("g").attr("class","geo "+e.id).call(aC.setClipUrl,n,t),e.project=function(i){var a=e.projection(i);return a?[a[0]-e.xaxis._offset,a[1]-e.yaxis._offset]:[null,null]},e.xaxis={_id:"x",c2p:function(i){return e.project(i)[0]}},e.yaxis={_id:"y",c2p:function(i){return e.project(i)[1]}},e.mockAxis={type:"linear",showexponent:"all",exponentformat:"B"},qZ.setConvert(e.mockAxis,r)};$g.saveViewInitial=function(e){var t=e.center||{},r=e.projection,n=r.rotation||{};this.viewInitial={fitbounds:e.fitbounds,"projection.scale":r.scale};var i;e._isScoped?i={"center.lon":t.lon,"center.lat":t.lat}:e._isClipped?i={"projection.rotation.lon":n.lon,"projection.rotation.lat":n.lat}:i={"center.lon":t.lon,"center.lat":t.lat,"projection.rotation.lon":n.lon},oC.extendFlat(this.viewInitial,i)};$g.render=function(e){this._hasMarkerAngles&&e?this.plot(this._geoCalcData,this._fullLayout,[],!0):this._render()};$g._render=function(){var e=this.projection,t=e.getPath(),r;function n(a){var o=e(a.lonlat);return o?hzt(o[0],o[1]):null}function i(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",i).attr("transform",n)};function xzt(e){var t=e.projection,r=t.type,n=cp.projNames[r];n="geo"+oC.titleCase(n);for(var i=BZ[n]||czt[n],a=i(),o=e._isSatellite?Math.acos(1/t.distance)*180/Math.PI:e._isClipped?cp.lonaxisSpan[r]/2:null,s=["center","rotate","parallels","clipExtent"],l=function(f){return f?a:[]},u=0;uv}else return!1},a.getPath=function(){return lzt().projection(a)},a.getBounds=function(f){return a.getPath().bounds(f)},a.precision(cp.precision),e._isSatellite&&a.tilt(t.tilt).distance(t.distance),o&&a.clipAngle(o-cp.clipPad),a}function bzt(e,t,r){var n=1e-6,i=2.5,a=t[e],o=cp.scopeDefaults[t.scope],s,l,u;e==="lonaxis"?(s=o.lonaxisRange,l=o.lataxisRange,u=function(C,E){return[C,E]}):e==="lataxis"&&(s=o.lataxisRange,l=o.lonaxisRange,u=function(C,E){return[E,C]});var c={type:"linear",range:[s[0],s[1]-n],tick0:a.tick0,dtick:a.dtick};qZ.setConvert(c,r);var f=qZ.calcTicks(c);!t.isScoped&&e==="lonaxis"&&f.pop();for(var h=f.length,d=new Array(h),v=0;v0&&i<0&&(i+=360);var s=(i-n)/4;return{type:"Polygon",coordinates:[[[n,a],[n,o],[n+s,o],[n+2*s,o],[n+3*s,o],[i,o],[i,a],[i-s,a],[i-2*s,a],[i-3*s,a],[n,a]]]}}});var NZ=ye((bgr,PDe)=>{"use strict";var KA=Eh(),wzt=kc().attributes,Tzt=Pd().dash,YA=eC(),Azt=mc().overrideAll,kDe=Y1(),LDe={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:KA.lightLine},gridwidth:{valType:"number",min:0,dflt:1},griddash:Tzt},Szt=PDe.exports=Azt({domain:wzt({name:"geo"},{}),fitbounds:{valType:"enumerated",values:[!1,"locations","geojson"],dflt:!1,editType:"plot"},resolution:{valType:"enumerated",values:[110,50],dflt:110,coerceNumber:!0},scope:{valType:"enumerated",values:kDe(YA.scopeDefaults),dflt:"world"},projection:{type:{valType:"enumerated",values:kDe(YA.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}},center:{lon:{valType:"number"},lat:{valType:"number"}},visible:{valType:"boolean",dflt:!0},showcoastlines:{valType:"boolean"},coastlinecolor:{valType:"color",dflt:KA.defaultLine},coastlinewidth:{valType:"number",min:0,dflt:1},showland:{valType:"boolean",dflt:!1},landcolor:{valType:"color",dflt:YA.landColor},showocean:{valType:"boolean",dflt:!1},oceancolor:{valType:"color",dflt:YA.waterColor},showlakes:{valType:"boolean",dflt:!1},lakecolor:{valType:"color",dflt:YA.waterColor},showrivers:{valType:"boolean",dflt:!1},rivercolor:{valType:"color",dflt:YA.waterColor},riverwidth:{valType:"number",min:0,dflt:1},showcountries:{valType:"boolean"},countrycolor:{valType:"color",dflt:KA.defaultLine},countrywidth:{valType:"number",min:0,dflt:1},showsubunits:{valType:"boolean"},subunitcolor:{valType:"color",dflt:KA.defaultLine},subunitwidth:{valType:"number",min:0,dflt:1},showframe:{valType:"boolean"},framecolor:{valType:"color",dflt:KA.defaultLine},framewidth:{valType:"number",min:0,dflt:1},bgcolor:{valType:"color",dflt:KA.background},lonaxis:LDe,lataxis:LDe},"plot","from-root");Szt.uirevision={valType:"any",editType:"none"}});var DDe=ye((wgr,RDe)=>{"use strict";var kF=Dr(),Mzt=k_(),Ezt=Id().getSubplotData,LF=eC(),Czt=NZ(),IDe=LF.axesNames;RDe.exports=function(t,r,n){Mzt(t,r,n,{type:"geo",attributes:Czt,handleDefaults:kzt,fullData:n,partition:"y"})};function kzt(e,t,r,n){var i=Ezt(n.fullData,"geo",n.id),a=i.map(function(oe){return oe.index}),o=r("resolution"),s=r("scope"),l=LF.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",d=t._isConic=u.indexOf("conic")!==-1||u==="albers",v=t._isClipped=!!LF.lonaxisSpan[u];if(e.visible===!1){var x=kF.extendDeep({},t._template);x.showcoastlines=!1,x.showcountries=!1,x.showframe=!1,x.showlakes=!1,x.showland=!1,x.showocean=!1,x.showrivers=!1,x.showsubunits=!1,x.lonaxis&&(x.lonaxis.showgrid=!1),x.lataxis&&(x.lataxis.showgrid=!1),t._template=x}for(var b=r("visible"),p,C=0;C0&&O<0&&(O+=360);var V=(z+O)/2,G;if(!c){var Z=f?l.projRotate:[V,0,0];G=r("projection.rotation.lon",Z[0]),r("projection.rotation.lat",Z[1]),r("projection.rotation.roll",Z[2]),p=r("showcoastlines",!f&&b),p&&(r("coastlinecolor"),r("coastlinewidth")),p=r("showocean",b?void 0:!1),p&&r("oceancolor")}var H,N;if(c?(H=-96.6,N=38.7):(H=f?V:G,N=(T[0]+T[1])/2),r("center.lon",H),r("center.lat",N),h&&(r("projection.tilt"),r("projection.distance")),d){var j=l.projParallels||[0,60];r("projection.parallels",j)}r("projection.scale"),p=r("showland",b?void 0:!1),p&&r("landcolor"),p=r("showlakes",b?void 0:!1),p&&r("lakecolor"),p=r("showrivers",b?void 0:!1),p&&(r("rivercolor"),r("riverwidth")),p=r("showcountries",f&&s!=="usa"&&b),p&&(r("countrycolor"),r("countrywidth")),(s==="usa"||s==="north america"&&o===50)&&(r("showsubunits",b),r("subunitcolor"),r("subunitwidth")),f||(p=r("showframe",b),p&&(r("framecolor"),r("framewidth"))),r("bgcolor");var re=r("fitbounds");re&&(delete t.projection.scale,f?(delete t.center.lon,delete t.center.lat):v?(delete t.center.lon,delete t.center.lat,delete t.projection.rotation.lon,delete t.projection.rotation.lat,delete t.lonaxis.range,delete t.lataxis.range):(delete t.center.lon,delete t.center.lat,delete t.projection.rotation.lon))}});var UZ=ye((Tgr,ODe)=>{"use strict";var Lzt=Id().getSubplotCalcData,Pzt=Dr().counterRegex,Izt=CDe(),Wm="geo",FDe=Pzt(Wm),zDe={};zDe[Wm]={valType:"subplotid",dflt:Wm,editType:"calc"};function Rzt(e){for(var t=e._fullLayout,r=e.calcdata,n=t._subplots[Wm],i=0;i{"use strict";qDe.exports={attributes:G2(),supplyDefaults:yRe(),colorbar:$d(),formatLabels:bRe(),calc:fF(),calcGeoJSON:kZ().calcGeoJSON,plot:kZ().plot,style:SZ(),styleOnSelect:ap().styleOnSelect,hoverPoints:sDe(),eventData:uDe(),selectPoints:hDe(),moduleType:"trace",name:"scattergeo",basePlotModule:UZ(),categories:["geo","symbols","showLegend","scatter-like"],meta:{}}});var UDe=ye((Sgr,NDe)=>{"use strict";NDe.exports=BDe()});var JA=ye((Mgr,HDe)=>{"use strict";var zzt=Qo().hovertemplateAttrs,ox=G2(),Ozt=Tu(),VDe=Vl(),qzt=Eh().defaultLine,ax=Ao().extendFlat,GDe=ox.marker.line;HDe.exports=ax({locations:{valType:"data_array",editType:"calc"},locationmode:ox.locationmode,z:{valType:"data_array",editType:"calc"},geojson:ax({},ox.geojson,{}),featureidkey:ox.featureidkey,text:ax({},ox.text,{}),hovertext:ax({},ox.hovertext,{}),marker:{line:{color:ax({},GDe.color,{dflt:qzt}),width:ax({},GDe.width,{dflt:1}),editType:"calc"},opacity:{valType:"number",arrayOk:!0,min:0,max:1,dflt:1,editType:"style"},editType:"calc"},selected:{marker:{opacity:ox.selected.marker.opacity,editType:"plot"},editType:"plot"},unselected:{marker:{opacity:ox.unselected.marker.opacity,editType:"plot"},editType:"plot"},hoverinfo:ax({},VDe.hoverinfo,{editType:"calc",flags:["location","z","text","name"]}),hovertemplate:zzt(),showlegend:ax({},VDe.showlegend,{dflt:!1})},Ozt("",{cLetter:"z",editTypeOverride:"calc"}))});var WDe=ye((Egr,jDe)=>{"use strict";var PF=Dr(),Bzt=Jh(),Nzt=JA();jDe.exports=function(t,r,n,i){function a(h,d){return PF.coerce(t,r,Nzt,h,d)}var o=a("locations"),s=a("z");if(!(o&&o.length&&PF.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!==""||PF.isPlainObject(l))&&(u="geojson-id");var c=a("locationmode",u);c==="geojson-id"&&a("featureidkey"),a("text"),a("hovertext"),a("hovertemplate");var f=a("marker.line.width");f&&a("marker.line.color"),a("marker.opacity"),Bzt(t,r,i,a,{prefix:"",cLetter:"z"}),PF.coerceSelectionMarkerOpacity(r,a)}});var IF=ye((Cgr,YDe)=>{"use strict";var XDe=Eo(),Uzt=hs().BADNUM,Vzt=Fv(),Gzt=Cm(),Hzt=z0();function ZDe(e){return e&&typeof e=="string"}YDe.exports=function(t,r){var n=r._length,i=new Array(n),a;r.geojson?a=function(c){return ZDe(c)||XDe(c)}:a=ZDe;for(var o=0;o{"use strict";var jzt=Oa(),Wzt=Ca(),VZ=So(),Xzt=tc();function Zzt(e,t){t&&KDe(e,t)}function KDe(e,t){var r=t[0].trace,n=t[0].node3,i=n.selectAll(".choroplethlocation"),a=r.marker||{},o=a.line||{},s=Xzt.makeColorScaleFuncFromTrace(r);i.each(function(l){jzt.select(this).attr("fill",s(l.z)).call(Wzt.stroke,l.mlc||o.color).call(VZ.dashLine,"",l.mlw||o.width||0).style("opacity",a.opacity)}),VZ.selectedPointStyle(i,r)}function Yzt(e,t){var r=t[0].node3,n=t[0].trace;n.selectedpoints?VZ.selectedPointStyle(r.selectAll(".choroplethlocation"),n):KDe(e,t)}JDe.exports={style:Zzt,styleOnSelect:Yzt}});var HZ=ye((Lgr,eFe)=>{"use strict";var Kzt=Oa(),GZ=Dr(),$A=nx(),Jzt=dF().getTopojsonFeatures,$De=wg().findExtremes,$zt=RF().style,Qzt=["The library used by the *country names* `locationmode` option is changing in an upcoming version.","Country names in existing plots may not work in the new version."].join(" "),QDe=!0;function e7t(e,t,r){QDe&&(QDe=!1,GZ.warn(Qzt));var n=t.layers.backplot.select(".choroplethlayer");GZ.makeTraceGroups(n,r,"trace choropleth").each(function(i){var a=Kzt.select(this),o=a.selectAll("path.choroplethlocation").data(GZ.identity);o.enter().append("path").classed("choroplethlocation",!0),o.exit().remove(),$zt(e,i)})}function t7t(e,t){for(var r=e[0].trace,n=t[r.geo],i=n._subplot,a=r.locationmode,o=r._length,s=a==="geojson-id"?$A.extractTraceFeature(e):Jzt(r,i.topojson),l=[],u=[],c=0;c{"use strict";var r7t=ho(),i7t=JA(),n7t=Dr().fillText;tFe.exports=function(t,r,n){var i=t.cd,a=i[0].trace,o=t.subplot,s,l,u,c,f=[r,n],h=[r+360,n];for(l=0;l")}}});var FF=ye((Igr,rFe)=>{"use strict";rFe.exports=function(t,r,n,i,a){t.location=r.location,t.z=r.z;var o=i[a];return o.fIn&&o.fIn.properties&&(t.properties=o.fIn.properties),t.ct=o.ct,t}});var zF=ye((Rgr,iFe)=>{"use strict";iFe.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s,l,u,c,f;if(r===!1)for(s=0;s{"use strict";nFe.exports={attributes:JA(),supplyDefaults:WDe(),colorbar:M_(),calc:IF(),calcGeoJSON:HZ().calcGeoJSON,plot:HZ().plot,style:RF().style,styleOnSelect:RF().styleOnSelect,hoverPoints:DF(),eventData:FF(),selectPoints:zF(),moduleType:"trace",name:"choropleth",basePlotModule:UZ(),categories:["geo","noOpacity","showLegend"],meta:{}}});var sFe=ye((Fgr,oFe)=>{"use strict";oFe.exports=aFe()});var OF=ye((zgr,uFe)=>{"use strict";var o7t=qa(),s0=Dr(),s7t=oT();function l7t(e,t,r,n){var i=e.cd,a=i[0].t,o=i[0].trace,s=e.xa,l=e.ya,u=a.x,c=a.y,f=s.c2p(t),h=l.c2p(r),d=e.distance,v;if(a.tree){var x=s.p2c(f-d),b=s.p2c(f+d),p=l.p2c(h-d),C=l.p2c(h+d);n==="x"?v=a.tree.range(Math.min(x,b),Math.min(l._rl[0],l._rl[1]),Math.max(x,b),Math.max(l._rl[0],l._rl[1])):v=a.tree.range(Math.min(x,b),Math.min(p,C),Math.max(x,b),Math.max(p,C))}else v=a.ids;var E,A,L,_,k,M,g,P,T,z=d;if(n==="x"){var O=!!o.xperiodalignment,V=!!o.yperiodalignment;for(k=0;k=Math.min(G,Z)&&f<=Math.max(G,Z)?0:1/0}if(M=Math.min(H,N)&&h<=Math.max(H,N)?0:1/0}T=Math.sqrt(M*M+g*g),A=v[k]}}}else for(k=v.length-1;k>-1;k--)E=v[k],L=u[E],_=c[E],M=s.c2p(L)-f,g=l.c2p(_)-h,P=Math.sqrt(M*M+g*g),P{"use strict";var cFe=20;fFe.exports={TOO_MANY_POINTS:1e5,SYMBOL_SDF_SIZE:200,SYMBOL_SIZE:cFe,SYMBOL_STROKE:cFe/20,DOT_RE:/-dot/,OPEN_RE:/-open/,DASHES:{solid:[1],dot:[1,1],dash:[4,1],longdash:[8,1],dashdot:[4,1,1,1],longdashdot:[8,1,1,1]}}});var sC=ye((qgr,pFe)=>{"use strict";var u7t=Vl(),c7t=ec(),f7t=Eg(),qf=pf(),hFe=df().axisHoverFormat,dFe=Tu(),h7t=Y1(),jZ=Ao().extendFlat,d7t=mc().overrideAll,v7t=sx().DASHES,vFe=qf.line,r1=qf.marker,p7t=r1.line,QA=pFe.exports=d7t({x:qf.x,x0:qf.x0,dx:qf.dx,y:qf.y,y0:qf.y0,dy:qf.dy,xperiod:qf.xperiod,yperiod:qf.yperiod,xperiod0:qf.xperiod0,yperiod0:qf.yperiod0,xperiodalignment:qf.xperiodalignment,yperiodalignment:qf.yperiodalignment,xhoverformat:hFe("x"),yhoverformat:hFe("y"),text:qf.text,hovertext:qf.hovertext,textposition:qf.textposition,textfont:c7t({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:vFe.color,width:vFe.width,shape:{valType:"enumerated",values:["linear","hv","vh","hvh","vhv"],dflt:"linear",editType:"plot"},dash:{valType:"enumerated",values:h7t(v7t),dflt:"solid"}},marker:jZ({},dFe("marker"),{symbol:r1.symbol,angle:r1.angle,size:r1.size,sizeref:r1.sizeref,sizemin:r1.sizemin,sizemode:r1.sizemode,opacity:r1.opacity,colorbar:r1.colorbar,line:jZ({},dFe("marker.line"),{width:p7t.width})}),connectgaps:qf.connectgaps,fill:jZ({},qf.fill,{dflt:"none"}),fillcolor:f7t(),selected:{marker:qf.selected.marker,textfont:qf.selected.textfont},unselected:{marker:qf.unselected.marker,textfont:qf.unselected.textfont},opacity:u7t.opacity},"calc","nested");QA.x.editType=QA.y.editType=QA.x0.editType=QA.y0.editType="calc+clearAxisTypes";QA.hovertemplate=qf.hovertemplate;QA.texttemplate=qf.texttemplate});var qF=ye(WZ=>{"use strict";var gFe=sx();WZ.isOpenSymbol=function(e){return typeof e=="string"?gFe.OPEN_RE.test(e):e%200>100};WZ.isDotSymbol=function(e){return typeof e=="string"?gFe.DOT_RE.test(e):e>200}});var _Fe=ye((Ngr,yFe)=>{"use strict";var mFe=Dr(),g7t=qa(),m7t=qF(),y7t=sC(),_7t=Sm(),BF=Ru(),x7t=K3(),b7t=Pg(),w7t=$p(),T7t=R0(),A7t=Ig(),S7t=D0();yFe.exports=function(t,r,n,i){function a(d,v){return mFe.coerce(t,r,y7t,d,v)}var o=t.marker?m7t.isOpenSymbol(t.marker.symbol):!1,s=BF.isBubble(t),l=x7t(t,r,i,a);if(!l){r.visible=!1;return}b7t(t,r,i,a),a("xhoverformat"),a("yhoverformat");var u=l<_7t.PTS_LINESONLY?"lines+markers":"lines";a("text"),a("hovertext"),a("hovertemplate"),a("mode",u),BF.hasMarkers(r)&&(w7t(t,r,n,i,a,{noAngleRef:!0,noStandOff:!0}),a("marker.line.width",o||s?1:0)),BF.hasLines(r)&&(a("connectgaps"),T7t(t,r,n,i,a),a("line.shape")),BF.hasText(r)&&(a("texttemplate"),S7t(t,r,i,a,{noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0}));var c=(r.line||{}).color,f=(r.marker||{}).color;a("fill"),r.fill!=="none"&&A7t(t,r,n,a);var h=g7t.getComponentMethod("errorbars","supplyDefaults");h(t,r,c||f||n,{axis:"y"}),h(t,r,c||f||n,{axis:"x",inherit:"y"}),mFe.coerceSelectionMarkerOpacity(r,a)}});var bFe=ye((Ugr,xFe)=>{"use strict";var M7t=tI();xFe.exports=function(t,r,n){var i=t.i;return"x"in t||(t.x=r._x[i]),"y"in t||(t.y=r._y[i]),M7t(t,r,n)}});var TFe=ye((Vgr,wFe)=>{"use strict";function E7t(e,t,r,n,i){for(var a=i+1;n<=i;){var o=n+i>>>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 C7t(e,t,r,n,i){for(var a=i+1;n<=i;){var o=n+i>>>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 k7t(e,t,r,n,i){for(var a=n-1;n<=i;){var o=n+i>>>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 L7t(e,t,r,n,i){for(var a=n-1;n<=i;){var o=n+i>>>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 P7t(e,t,r,n,i){for(;n<=i;){var a=n+i>>>1,o=e[a],s=r!==void 0?r(o,t):o-t;if(s===0)return a;s<=0?n=a+1:i=a-1}return-1}function lC(e,t,r,n,i,a){return typeof r=="function"?a(e,t,r,n===void 0?0:n|0,i===void 0?e.length-1:i|0):a(e,t,void 0,r===void 0?0:r|0,n===void 0?e.length-1:n|0)}wFe.exports={ge:function(e,t,r,n,i){return lC(e,t,r,n,i,E7t)},gt:function(e,t,r,n,i){return lC(e,t,r,n,i,C7t)},lt:function(e,t,r,n,i){return lC(e,t,r,n,i,k7t)},le:function(e,t,r,n,i){return lC(e,t,r,n,i,L7t)},eq:function(e,t,r,n,i){return lC(e,t,r,n,i,P7t)}}});var Xm=ye((Ggr,SFe)=>{"use strict";SFe.exports=function(t,r,n){var i={},a,o;if(typeof r=="string"&&(r=AFe(r)),Array.isArray(r)){var s={};for(o=0;o{"use strict";var I7t=Xm();MFe.exports=R7t;function R7t(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=I7t(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 j2=ye((jgr,EFe)=>{"use strict";EFe.exports=D7t;function D7t(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),n=0;ni&&(i=e[o]),e[o]{CFe.exports=function(){for(var e=0;e{var LFe=WD();PFe.exports=F7t;function F7t(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 n=e[0].length,i=e.length*n,a,o,s,l;(!t||typeof t=="string")&&(t=new(LFe(t||"float32"))(i+r));var u=t.length-r;if(i!==u)throw new Error("source length "+i+" ("+n+"x"+e.length+") does not match destination length "+u);for(a=0,s=r;a{"use strict";IFe.exports=function(e){var t=typeof e;return e!==null&&(t==="object"||t==="function")}});var FFe=ye((Ygr,DFe)=>{"use strict";DFe.exports=Math.log2||function(e){return Math.log(e)*Math.LOG2E}});var VFe=ye((Kgr,UFe)=>{"use strict";var zFe=TFe(),OFe=XE(),z7t=e5(),O7t=j2(),qFe=Xm(),ZZ=kFe(),q7t=W2(),B7t=RFe(),N7t=WD(),BFe=FFe(),U7t=1073741824;UFe.exports=function(t,r){r||(r={}),t=q7t(t,"float64"),r=qFe(r,{bounds:"range bounds dataBox databox",maxDepth:"depth maxDepth maxdepth level maxLevel maxlevel levels",dtype:"type dtype format out dst output destination"});let n=ZZ(r.maxDepth,255),i=ZZ(r.bounds,O7t(t,2));i[0]===i[2]&&i[2]++,i[1]===i[3]&&i[3]++;let a=NFe(t,i),o=t.length>>>1,s;r.dtype||(r.dtype="array"),typeof r.dtype=="string"?s=new(N7t(r.dtype))(o):r.dtype&&(s=r.dtype,Array.isArray(s)&&(s.length=o));for(let p=0;pn||_>U7t){for(let N=0;N_e||g>Me||P=z||re===oe)return;let ke=l[j];oe===void 0&&(oe=ke.length);for(let Fe=re;Fe=A&&Ze<=_&&ct>=L&&ct<=k&&O.push(ce)}let me=u[j],ie=me[re*4+0],Se=me[re*4+1],Le=me[re*4+2],Ae=me[re*4+3],De=G(me,re+1),Pe=N*.5,ge=j+1;V(Z,H,Pe,ge,ie,Se||Le||Ae||De),V(Z,H+Pe,Pe,ge,Se,Le||Ae||De),V(Z+Pe,H,Pe,ge,Le,Ae||De),V(Z+Pe,H+Pe,Pe,ge,Ae,De)}function G(Z,H){let N=null,j=0;for(;N===null;)if(N=Z[H*4+j],j++,j>Z.length)return null;return N}return O}function x(p,C,E,A,L){let _=[];for(let k=0;k{"use strict";GFe.exports=VFe()});var YZ=ye(($gr,HFe)=>{HFe.exports=V7t;function V7t(e){var t=0,r=0,n=0,i=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]+=n,a[7]+=i;break;case"v":a[1]+=i;break;case"h":a[1]+=n;break;default:for(var l=1;l{"use strict";Object.defineProperty(UF,"__esModule",{value:!0});var G7t=function(){function e(t,r){var n=[],i=!0,a=!1,o=void 0;try{for(var s=t[Symbol.iterator](),l;!(i=(l=s.next()).done)&&(n.push(l.value),!(r&&n.length===r));i=!0);}catch(u){a=!0,o=u}finally{try{!i&&s.return&&s.return()}finally{if(a)throw o}}return n}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")}}(),uC=Math.PI*2,KZ=function(t,r,n,i,a,o,s){var l=t.x,u=t.y;l*=r,u*=n;var c=i*l-a*u,f=a*l+i*u;return{x:c+o,y:f+s}},H7t=function(t,r){var n=r===1.5707963267948966?.551915024494:r===-1.5707963267948966?-.551915024494:1.3333333333333333*Math.tan(r/4),i=Math.cos(t),a=Math.sin(t),o=Math.cos(t+r),s=Math.sin(t+r);return[{x:i-a*n,y:a+i*n},{x:o+s*n,y:s-o*n},{x:o,y:s}]},jFe=function(t,r,n,i){var a=t*i-r*n<0?-1:1,o=t*n+r*i;return o>1&&(o=1),o<-1&&(o=-1),a*Math.acos(o)},j7t=function(t,r,n,i,a,o,s,l,u,c,f,h){var d=Math.pow(a,2),v=Math.pow(o,2),x=Math.pow(f,2),b=Math.pow(h,2),p=d*v-d*b-v*x;p<0&&(p=0),p/=d*b+v*x,p=Math.sqrt(p)*(s===l?-1:1);var C=p*a/o*h,E=p*-o/a*f,A=c*C-u*E+(t+n)/2,L=u*C+c*E+(r+i)/2,_=(f-C)/a,k=(h-E)/o,M=(-f-C)/a,g=(-h-E)/o,P=jFe(1,0,_,k),T=jFe(_,k,M,g);return l===0&&T>0&&(T-=uC),l===1&&T<0&&(T+=uC),[A,L,P,T]},W7t=function(t){var r=t.px,n=t.py,i=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,d=h===void 0?0:h,v=[];if(o===0||s===0)return[];var x=Math.sin(u*uC/360),b=Math.cos(u*uC/360),p=b*(r-i)/2+x*(n-a)/2,C=-x*(r-i)/2+b*(n-a)/2;if(p===0&&C===0)return[];o=Math.abs(o),s=Math.abs(s);var E=Math.pow(p,2)/Math.pow(o,2)+Math.pow(C,2)/Math.pow(s,2);E>1&&(o*=Math.sqrt(E),s*=Math.sqrt(E));var A=j7t(r,n,i,a,o,s,f,d,x,b,p,C),L=G7t(A,4),_=L[0],k=L[1],M=L[2],g=L[3],P=Math.abs(g)/(uC/4);Math.abs(1-P)<1e-7&&(P=1);var T=Math.max(Math.ceil(P),1);g/=T;for(var z=0;z{"use strict";YFe.exports=Z7t;var X7t=XFe();function Z7t(e){for(var t,r=[],n=0,i=0,a=0,o=0,s=null,l=null,u=0,c=0,f=0,h=e.length;f4?(n=d[d.length-4],i=d[d.length-3]):(n=u,i=c),r.push(d)}return r}function VF(e,t,r,n){return["C",e,t,r,n,r,n]}function ZFe(e,t,r,n,i,a){return["C",e/3+2/3*r,t/3+2/3*n,i/3+2/3*r,a/3+2/3*n,i,a]}});var JZ=ye((emr,JFe)=>{"use strict";JFe.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 eze=ye((tmr,QFe)=>{"use strict";var Y7t=$S(),K7t=YZ(),J7t=KFe(),$7t=JZ(),$Fe=oE();QFe.exports=Q7t;function Q7t(e){if(Array.isArray(e)&&e.length===1&&typeof e[0]=="string"&&(e=e[0]),typeof e=="string"&&($Fe($7t(e),"String is not an SVG path."),e=Y7t(e)),$Fe(Array.isArray(e),"Argument should be a string or an array of path segments."),e=K7t(e),e=J7t(e),!e.length)return[0,0,0,0];for(var t=[1/0,1/0,-1/0,-1/0],r=0,n=e.length;rt[2]&&(t[2]=i[a+0]),i[a+1]>t[3]&&(t[3]=i[a+1]);return t}});var oze=ye((rmr,aze)=>{var X2=Math.PI,tze=nze(120);aze.exports=e9t;function e9t(e){for(var t,r=[],n=0,i=0,a=0,o=0,s=null,l=null,u=0,c=0,f=0,h=e.length;f7&&(r.push(d.splice(0,7)),d.unshift("C"));break;case"S":var x=u,b=c;(t=="C"||t=="S")&&(x+=x-n,b+=b-i),d=["C",x,b,d[1],d[2],d[3],d[4]];break;case"T":t=="Q"||t=="T"?(s=u*2-s,l=c*2-l):(s=u,l=c),d=rze(u,c,s,l,d[1],d[2]);break;case"Q":s=d[1],l=d[2],d=rze(u,c,d[1],d[2],d[3],d[4]);break;case"L":d=GF(u,c,d[1],d[2]);break;case"H":d=GF(u,c,d[1],c);break;case"V":d=GF(u,c,u,d[1]);break;case"Z":d=GF(u,c,a,o);break}t=v,u=d[d.length-2],c=d[d.length-1],d.length>4?(n=d[d.length-4],i=d[d.length-3]):(n=u,i=c),r.push(d)}return r}function GF(e,t,r,n){return["C",e,t,r,n,r,n]}function rze(e,t,r,n,i,a){return["C",e/3+2/3*r,t/3+2/3*n,i/3+2/3*r,a/3+2/3*n,i,a]}function ize(e,t,r,n,i,a,o,s,l,u){if(u)E=u[0],A=u[1],p=u[2],C=u[3];else{var c=$Z(e,t,-i);e=c.x,t=c.y,c=$Z(s,l,-i),s=c.x,l=c.y;var f=(e-s)/2,h=(t-l)/2,d=f*f/(r*r)+h*h/(n*n);d>1&&(d=Math.sqrt(d),r=d*r,n=d*n);var v=r*r,x=n*n,b=(a==o?-1:1)*Math.sqrt(Math.abs((v*x-v*h*h-x*f*f)/(v*h*h+x*f*f)));b==1/0&&(b=1);var p=b*r*h/n+(e+s)/2,C=b*-n*f/r+(t+l)/2,E=Math.asin(((t-C)/n).toFixed(9)),A=Math.asin(((l-C)/n).toFixed(9));E=eA&&(E=E-X2*2),!o&&A>E&&(A=A-X2*2)}if(Math.abs(A-E)>tze){var L=A,_=s,k=l;A=E+tze*(o&&A>E?1:-1),s=p+r*Math.cos(A),l=C+n*Math.sin(A);var M=ize(s,l,r,n,i,0,o,_,k,[A,L,p,C])}var g=Math.tan((A-E)/4),P=4/3*r*g,T=4/3*n*g,z=[2*e-(e+P*Math.sin(E)),2*t-(t-T*Math.cos(E)),s+P*Math.sin(A),l-T*Math.cos(A),s,l];if(u)return z;M&&(z=z.concat(M));for(var O=0;O{var t9t=YZ(),r9t=oze(),i9t={M:"moveTo",C:"bezierCurveTo"};sze.exports=function(e,t){e.beginPath(),r9t(t9t(t)).forEach(function(r){var n=r[0],i=r.slice(1);e[i9t[n]].apply(e,i)}),e.closePath()}});var hze=ye((nmr,fze)=>{"use strict";var n9t=XE();fze.exports=a9t;var cC=1e20;function a9t(e,t){t||(t={});var r=t.cutoff==null?.25:t.cutoff,n=t.radius==null?8:t.radius,i=t.channel||0,a,o,s,l,u,c,f,h,d,v,x;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,d=f.getImageData(0,0,a,o),l=d.data,c=4):window.CanvasRenderingContext2D&&e instanceof window.CanvasRenderingContext2D?(h=e.canvas,f=e,a=h.width,o=h.height,d=f.getImageData(0,0,a,o),l=d.data,c=4):window.ImageData&&e instanceof window.ImageData&&(d=e,a=e.width,o=e.height,l=d.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),v=0,x=u.length;v{"use strict";var o9t=eze(),s9t=$S(),l9t=lze(),u9t=JZ(),c9t=hze(),QZ=document.createElement("canvas"),fp=QZ.getContext("2d");dze.exports=f9t;function f9t(e,t){if(!u9t(e))throw Error("Argument should be valid svg path string");t||(t={});var r,n;t.shape?(r=t.shape[0],n=t.shape[1]):(r=QZ.width=t.w||t.width||200,n=QZ.height=t.h||t.height||200);var i=Math.min(r,n),a=t.stroke||0,o=t.viewbox||t.viewBox||o9t(e),s=[r/(o[2]-o[0]),n/(o[3]-o[1])],l=Math.min(s[0]||0,s[1]||0)/2;if(fp.fillStyle="black",fp.fillRect(0,0,r,n),fp.fillStyle="white",a&&(typeof a!="number"&&(a=1),a>0?fp.strokeStyle="white":fp.strokeStyle="black",fp.lineWidth=Math.abs(a)),fp.translate(r*.5,n*.5),fp.scale(l,l),h9t()){var u=new Path2D(e);fp.fill(u),a&&fp.stroke(u)}else{var c=s9t(e);l9t(fp,c),fp.fill(),a&&fp.stroke()}fp.setTransform(1,0,0,1,0,0);var f=c9t(fp,{cutoff:t.cutoff!=null?t.cutoff:.5,radius:t.radius!=null?t.radius:i*.5});return f}var HF;function h9t(){if(HF!=null)return HF;var e=document.createElement("canvas").getContext("2d");if(e.canvas.width=e.canvas.height=1,!window.Path2D)return HF=!1;var t=new Path2D("M0,0h1v1h-1v-1Z");e.fillStyle="black",e.fill(t);var r=e.getImageData(0,0,1,1);return HF=r&&r.data&&r.data[3]===255}});var Y2=ye((omr,Sze)=>{"use strict";var WF=Eo(),d9t=vze(),jF=$_(),v9t=qa(),i5=Dr(),gh=i5.isArrayOrTypedArray,t5=So(),pze=hf(),gze=$y().formatColor,r5=Ru(),p9t=S3(),tY=qF(),fC=sx(),g9t=U1().DESELECTDIM,mze={start:1,left:1,end:-1,right:-1,middle:0,center:0,bottom:1,top:-1},m9t=rp().appendArrayPointValue;function y9t(e,t){var r,n={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},i=e._context.plotGlPixelRatio;if(t.visible!==!0)return n;if(r5.hasText(t)&&(n.text=Aze(e,t),n.textSel=_ze(e,t,t.selected),n.textUnsel=_ze(e,t,t.unselected)),r5.hasMarkers(t)&&(n.marker=iY(e,t),n.markerSel=rY(e,t,t.selected),n.markerUnsel=rY(e,t,t.unselected),!t.unselected&&gh(t.marker.opacity))){var a=t.marker.opacity;for(n.markerUnsel.opacity=new Array(a.length),r=0;r500?"bold":"normal":e}function iY(e,t){var r=t._length,n=t.marker,i={},a,o=gh(n.symbol),s=gh(n.angle),l=gh(n.color),u=gh(n.line.color),c=gh(n.opacity),f=gh(n.size),h=gh(n.line.width),d;if(o||(d=tY.isOpenSymbol(n.symbol)),o||l||u||c||s){i.symbols=new Array(r),i.angles=new Array(r),i.colors=new Array(r),i.borderColors=new Array(r);var v=n.symbol,x=n.angle,b=gze(n,n.opacity,r),p=gze(n.line,n.opacity,r);if(!gh(p[0])){var C=p;for(p=Array(r),a=0;afC.TOO_MANY_POINTS||r5.hasMarkers(t)?"rect":"round";if(u&&t.connectgaps){var f=a[0],h=a[1];for(o=0;o1?l[o]:l[0]:l,d=gh(u)?u.length>1?u[o]:u[0]:u,v=mze[h],x=mze[d],b=c?c/.8+1:0,p=-x*b-x*.5;a.offset[o]=[v*b/f,p/f]}}return a}Sze.exports={style:y9t,markerStyle:iY,markerSelection:rY,linePositions:x9t,errorBarPositions:b9t,textPosition:w9t}});var nY=ye((smr,Mze)=>{"use strict";var XF=Dr();Mze.exports=function(t,r){var n=r._scene,i={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||(n=r._scene={},n.init=function(){XF.extendFlat(n,a,i)},n.init(),n.update=function(s){var l=XF.repeat(s,n.count);if(n.fill2d&&n.fill2d.update(l),n.scatter2d&&n.scatter2d.update(l),n.line2d&&n.line2d.update(l),n.error2d&&n.error2d.update(l.concat(l)),n.select2d&&n.select2d.update(l),n.glText)for(var u=0;u{"use strict";var T9t=NF(),n5=Dr(),Eze=hf(),A9t=wg().findExtremes,Cze=Rg(),aY=O0(),S9t=aY.calcMarkerSize,M9t=aY.calcAxisExpansion,E9t=aY.setFirstScatter,C9t=F0(),a5=Y2(),k9t=nY(),kze=hs().BADNUM,L9t=sx().TOO_MANY_POINTS;Pze.exports=function(t,r){var n=t._fullLayout,i=r._xA=Eze.getFromId(t,r.xaxis,"x"),a=r._yA=Eze.getFromId(t,r.yaxis,"y"),o=n._plots[r.xaxis+r.yaxis],s=r._length,l=s>=L9t,u=s*2,c={},f,h=i.makeCalcdata(r,"x"),d=a.makeCalcdata(r,"y"),v=Cze(r,i,"x",h),x=Cze(r,a,"y",d),b=v.vals,p=x.vals;r._x=b,r._y=p,r.xperiodalignment&&(r._origX=h,r._xStarts=v.starts,r._xEnds=v.ends),r.yperiodalignment&&(r._origY=d,r._yStarts=x.starts,r._yEnds=x.ends);var C=new Array(u),E=new Array(s);for(f=0;f1&&n5.extendFlat(o.line,a5.linePositions(e,r,n)),o.errorX||o.errorY){var s=a5.errorBarPositions(e,r,n,i,a);o.errorX&&n5.extendFlat(o.errorX,s.x),o.errorY&&n5.extendFlat(o.errorY,s.y)}return o.text&&(n5.extendFlat(o.text,{positions:n},a5.textPosition(e,r,o.text,o.marker)),n5.extendFlat(o.textSel,{positions:n},a5.textPosition(e,r,o.text,o.markerSel)),n5.extendFlat(o.textUnsel,{positions:n},a5.textPosition(e,r,o.text,o.markerUnsel))),o}});var oY=ye((umr,Dze)=>{"use strict";var Rze=Dr(),I9t=Ca(),R9t=U1().DESELECTDIM;function D9t(e){var t=e[0],r=t.trace,n=t.t,i=n._scene,a=n.index,o=i.selectBatch[a],s=i.unselectBatch[a],l=i.textOptions[a],u=i.textSelectedOptions[a]||{},c=i.textUnselectedOptions[a]||{},f=Rze.extendFlat({},l),h,d;if(o.length||s.length){var v=u.color,x=c.color,b=l.color,p=Rze.isArrayOrTypedArray(b);for(f.color=new Array(r._length),h=0;h{"use strict";var Fze=Ru(),F9t=oY().styleTextSelection;zze.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s=n[0].trace,l=n[0].t,u=s._length,c=l.x,f=l.y,h=l._scene,d=l.index;if(!h)return o;var v=Fze.hasText(s),x=Fze.hasMarkers(s),b=!x&&!v;if(s.visible!==!0||b)return o;var p=[],C=[];if(r!==!1&&!r.degenerate)for(var E=0;E{"use strict";var z9t=OF();Oze.exports={moduleType:"trace",name:"scattergl",basePlotModule:vh(),categories:["gl","regl","cartesian","symbols","errorBarsOK","showLegend","scatter-like"],attributes:sC(),supplyDefaults:_Fe(),crossTraceDefaults:rU(),colorbar:$d(),formatLabels:bFe(),calc:Ize(),hoverPoints:z9t.hoverPoints,selectPoints:sY(),meta:{}}});var Nze=ye((hmr,YF)=>{"use strict";var ZF=XE();YF.exports=Bze;YF.exports.to=Bze;YF.exports.from=O9t;function Bze(e,t){t==null&&(t=!0);var r=e[0],n=e[1],i=e[2],a=e[3];a==null&&(a=t?1:255),t&&(r*=255,n*=255,i*=255,a*=255),r=ZF(r,0,255)&255,n=ZF(n,0,255)&255,i=ZF(i,0,255)&255,a=ZF(a,0,255)&255;var o=r*16777216+(n<<16)+(i<<8)+a;return o}function O9t(e,t){e=+e;var r=e>>>24,n=(e&16711680)>>>16,i=(e&65280)>>>8,a=e&255;return t===!1?[r,n,i,a]:[r/255,n/255,i/255,a/255]}});var Fh=ye((dmr,Vze)=>{"use strict";var Uze=Object.getOwnPropertySymbols,q9t=Object.prototype.hasOwnProperty,B9t=Object.prototype.propertyIsEnumerable;function N9t(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function U9t(){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 n=Object.getOwnPropertyNames(t).map(function(a){return t[a]});if(n.join("")!=="0123456789")return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach(function(a){i[a]=a}),Object.keys(Object.assign({},i)).join("")==="abcdefghijklmnopqrst"}catch(a){return!1}}Vze.exports=U9t()?Object.assign:function(e,t){for(var r,n=N9t(e),i,a=1;a{Gze.exports=function(e){typeof e=="string"&&(e=[e]);for(var t=[].slice.call(arguments,1),r=[],n=0;n{"use strict";jze.exports=function(t,r,n){Array.isArray(n)||(n=[].slice.call(arguments,2));for(var i=0,a=n.length;i{"use strict";Wze.exports=typeof navigator!="undefined"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion))});var KF=ye((mmr,o5)=>{"use strict";o5.exports=hC;o5.exports.float32=o5.exports.float=hC;o5.exports.fract32=o5.exports.fract=V9t;var Zze=new Float32Array(1);function V9t(e,t){if(e.length){if(e instanceof Float32Array)return new Float32Array(e.length);t instanceof Float32Array||(t=hC(e));for(var r=0,n=t.length;r{"use strict";function G9t(e,t){var r=e==null?null:typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function H9t(e,t){return X9t(e)||G9t(e,t)||Kze(e,t)||K9t()}function j9t(e){return W9t(e)||Z9t(e)||Kze(e)||Y9t()}function W9t(e){if(Array.isArray(e))return uY(e)}function X9t(e){if(Array.isArray(e))return e}function Z9t(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Kze(e,t){if(e){if(typeof e=="string")return uY(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 uY(e,t)}}function uY(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r 1.0 + delta) { + discard; + } + + alpha -= smoothstep(1.0 - delta, 1.0 + delta, radius); + + float borderRadius = fragBorderRadius; + float ratio = smoothstep(borderRadius - delta, borderRadius + delta, radius); + vec4 color = mix(fragColor, fragBorderColor, ratio); + color.a *= alpha * opacity; + gl_FragColor = color; +} +`]),v.vert=JF([`precision highp float; +#define GLSLIFY 1 + +attribute float x, y, xFract, yFract; +attribute float size, borderSize; +attribute vec4 colorId, borderColorId; +attribute float isActive; + +// \`invariant\` effectively turns off optimizations for the position. +// We need this because -fast-math on M1 Macs is re-ordering +// floating point operations in a way that causes floating point +// precision limits to put points in the wrong locations. +invariant gl_Position; + +uniform bool constPointSize; +uniform float pixelRatio; +uniform vec2 paletteSize, scale, scaleFract, translate, translateFract; +uniform sampler2D paletteTexture; + +const float maxSize = 100.; + +varying vec4 fragColor, fragBorderColor; +varying float fragBorderRadius, fragWidth; + +float pointSizeScale = (constPointSize) ? 2. : pixelRatio; + +bool isDirect = (paletteSize.x < 1.); + +vec4 getColor(vec4 id) { + return isDirect ? id / 255. : texture2D(paletteTexture, + vec2( + (id.x + .5) / paletteSize.x, + (id.y + .5) / paletteSize.y + ) + ); +} + +void main() { + // ignore inactive points + if (isActive == 0.) return; + + vec2 position = vec2(x, y); + vec2 positionFract = vec2(xFract, yFract); + + vec4 color = getColor(colorId); + vec4 borderColor = getColor(borderColorId); + + float size = size * maxSize / 255.; + float borderSize = borderSize * maxSize / 255.; + + gl_PointSize = (size + borderSize) * pointSizeScale; + + vec2 pos = (position + translate) * scale + + (positionFract + translateFract) * scale + + (position + translate) * scaleFract + + (positionFract + translateFract) * scaleFract; + + gl_Position = vec4(pos * 2. - 1., 0., 1.); + + fragBorderRadius = 1. - 2. * borderSize / (size + borderSize); + fragColor = color; + fragBorderColor = borderColor.a == 0. || borderSize == 0. ? vec4(color.rgb, 0.) : borderColor; + fragWidth = 1. / gl_PointSize; +} +`]),Yze&&(v.frag=v.frag.replace("smoothstep","smoothStep"),d.frag=d.frag.replace("smoothstep","smoothStep")),this.drawCircle=e(v)}nv.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};nv.prototype.render=function(){return arguments.length&&this.update.apply(this,arguments),this.draw(),this};nv.prototype.draw=function(){for(var e=this,t=arguments.length,r=new Array(t),n=0;nre)?N.tree=eOt(H,{bounds:me}):re&&re.length&&(N.tree=re),N.tree){var ie={primitive:"points",usage:"static",data:N.tree,type:"uint32"};N.elements?N.elements(ie):N.elements=o.elements(ie)}var Se=$F.float32(H);oe({data:Se,usage:"dynamic"});var Le=$F.fract32(H,Se);return _e({data:Le,usage:"dynamic"}),Me({data:new Uint8Array(ke),type:"uint8",usage:"stream"}),H}},{marker:function(H,N,j){var re=N.activation;if(re.forEach(function(Le){return Le&&Le.destroy&&Le.destroy()}),re.length=0,!H||typeof H[0]=="number"){var oe=e.addMarker(H);re[oe]=!0}else{for(var _e=[],Me=0,ke=Math.min(H.length,N.count);Me=0)return i;var a;if(e instanceof Uint8Array||e instanceof Uint8ClampedArray)a=e;else{a=new Uint8Array(e.length);for(var o=0,s=e.length;on*4&&(this.tooManyColors=!0),this.updatePalette(r),i.length===1?i[0]:i};nv.prototype.updatePalette=function(e){if(!this.tooManyColors){var t=this.maxColors,r=this.paletteTexture,n=Math.ceil(e.length*.25/t);if(n>1){e=e.slice();for(var i=e.length*.25%t;i{"use strict";vY.exports=tz;vY.exports.default=tz;function tz(e,t,r){r=r||2;var n=t&&t.length,i=n?t[0]*r:e.length,a=Qze(e,0,i,r,!0),o=[];if(!a||a.next===a.prev)return o;var s,l,u,c,f,h,d;if(n&&(a=hOt(e,t,a,r)),e.length>80*r){s=u=e[0],l=c=e[1];for(var v=r;vu&&(u=f),h>c&&(c=h);d=Math.max(u-s,c-l),d=d!==0?32767/d:0}return dC(a,o,r,s,l,d,0),o}function Qze(e,t,r,n,i){var a,o;if(i===dY(e,t,r,n)>0)for(a=t;a=t;a-=n)o=$ze(a,e[a],e[a+1],o);return o&&rz(o,o.next)&&(pC(o),o=o.next),o}function J2(e,t){if(!e)return e;t||(t=e);var r=e,n;do if(n=!1,!r.steiner&&(rz(r,r.next)||mh(r.prev,r,r.next)===0)){if(pC(r),r=t=r.prev,r===r.next)break;n=!0}else r=r.next;while(n||r!==t);return t}function dC(e,t,r,n,i,a,o){if(e){!o&&a&&mOt(e,n,i,a);for(var s=e,l,u;e.prev!==e.next;){if(l=e.prev,u=e.next,a?uOt(e,n,i,a):lOt(e)){t.push(l.i/r|0),t.push(e.i/r|0),t.push(u.i/r|0),pC(e),e=u.next,s=u.next;continue}if(e=u,e===s){o?o===1?(e=cOt(J2(e),t,r),dC(e,t,r,n,i,a,2)):o===2&&fOt(e,t,r,n,i,a):dC(J2(e),t,r,n,i,a,1);break}}}}function lOt(e){var t=e.prev,r=e,n=e.next;if(mh(t,r,n)>=0)return!1;for(var i=t.x,a=r.x,o=n.x,s=t.y,l=r.y,u=n.y,c=ia?i>o?i:o:a>o?a:o,d=s>l?s>u?s:u:l>u?l:u,v=n.next;v!==t;){if(v.x>=c&&v.x<=h&&v.y>=f&&v.y<=d&&s5(i,s,a,l,o,u,v.x,v.y)&&mh(v.prev,v,v.next)>=0)return!1;v=v.next}return!0}function uOt(e,t,r,n){var i=e.prev,a=e,o=e.next;if(mh(i,a,o)>=0)return!1;for(var s=i.x,l=a.x,u=o.x,c=i.y,f=a.y,h=o.y,d=sl?s>u?s:u:l>u?l:u,b=c>f?c>h?c:h:f>h?f:h,p=fY(d,v,t,r,n),C=fY(x,b,t,r,n),E=e.prevZ,A=e.nextZ;E&&E.z>=p&&A&&A.z<=C;){if(E.x>=d&&E.x<=x&&E.y>=v&&E.y<=b&&E!==i&&E!==o&&s5(s,c,l,f,u,h,E.x,E.y)&&mh(E.prev,E,E.next)>=0||(E=E.prevZ,A.x>=d&&A.x<=x&&A.y>=v&&A.y<=b&&A!==i&&A!==o&&s5(s,c,l,f,u,h,A.x,A.y)&&mh(A.prev,A,A.next)>=0))return!1;A=A.nextZ}for(;E&&E.z>=p;){if(E.x>=d&&E.x<=x&&E.y>=v&&E.y<=b&&E!==i&&E!==o&&s5(s,c,l,f,u,h,E.x,E.y)&&mh(E.prev,E,E.next)>=0)return!1;E=E.prevZ}for(;A&&A.z<=C;){if(A.x>=d&&A.x<=x&&A.y>=v&&A.y<=b&&A!==i&&A!==o&&s5(s,c,l,f,u,h,A.x,A.y)&&mh(A.prev,A,A.next)>=0)return!1;A=A.nextZ}return!0}function cOt(e,t,r){var n=e;do{var i=n.prev,a=n.next.next;!rz(i,a)&&e7e(i,n,n.next,a)&&vC(i,a)&&vC(a,i)&&(t.push(i.i/r|0),t.push(n.i/r|0),t.push(a.i/r|0),pC(n),pC(n.next),n=e=a),n=n.next}while(n!==e);return J2(n)}function fOt(e,t,r,n,i,a){var o=e;do{for(var s=o.next.next;s!==o.prev;){if(o.i!==s.i&&xOt(o,s)){var l=t7e(o,s);o=J2(o,o.next),l=J2(l,l.next),dC(o,t,r,n,i,a,0),dC(l,t,r,n,i,a,0);return}s=s.next}o=o.next}while(o!==e)}function hOt(e,t,r,n){var i=[],a,o,s,l,u;for(a=0,o=t.length;a=r.next.y&&r.next.y!==r.y){var s=r.x+(i-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(s<=n&&s>a&&(a=s,o=r.x=r.x&&r.x>=u&&n!==r.x&&s5(io.x||r.x===o.x&&gOt(o,r)))&&(o=r,f=h)),r=r.next;while(r!==l);return o}function gOt(e,t){return mh(e.prev,e,t.prev)<0&&mh(t.next,e,e.next)<0}function mOt(e,t,r,n){var i=e;do i.z===0&&(i.z=fY(i.x,i.y,t,r,n)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next;while(i!==e);i.prevZ.nextZ=null,i.prevZ=null,yOt(i)}function yOt(e){var t,r,n,i,a,o,s,l,u=1;do{for(r=e,e=null,a=null,o=0;r;){for(o++,n=r,s=0,t=0;t0||l>0&&n;)s!==0&&(l===0||!n||r.z<=n.z)?(i=r,r=r.nextZ,s--):(i=n,n=n.nextZ,l--),a?a.nextZ=i:e=i,i.prevZ=a,a=i;r=n}a.nextZ=null,u*=2}while(o>1);return e}function fY(e,t,r,n,i){return e=(e-r)*i|0,t=(t-n)*i|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 _Ot(e){var t=e,r=e;do(t.x=(e-o)*(a-s)&&(e-o)*(n-s)>=(r-o)*(t-s)&&(r-o)*(a-s)>=(i-o)*(n-s)}function xOt(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!bOt(e,t)&&(vC(e,t)&&vC(t,e)&&wOt(e,t)&&(mh(e.prev,e,t.prev)||mh(e,t.prev,t))||rz(e,t)&&mh(e.prev,e,e.next)>0&&mh(t.prev,t,t.next)>0)}function mh(e,t,r){return(t.y-e.y)*(r.x-t.x)-(t.x-e.x)*(r.y-t.y)}function rz(e,t){return e.x===t.x&&e.y===t.y}function e7e(e,t,r,n){var i=ez(mh(e,t,r)),a=ez(mh(e,t,n)),o=ez(mh(r,n,e)),s=ez(mh(r,n,t));return!!(i!==a&&o!==s||i===0&&QF(e,r,t)||a===0&&QF(e,n,t)||o===0&&QF(r,e,n)||s===0&&QF(r,t,n))}function QF(e,t,r){return t.x<=Math.max(e.x,r.x)&&t.x>=Math.min(e.x,r.x)&&t.y<=Math.max(e.y,r.y)&&t.y>=Math.min(e.y,r.y)}function ez(e){return e>0?1:e<0?-1:0}function bOt(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&&e7e(r,r.next,e,t))return!0;r=r.next}while(r!==e);return!1}function vC(e,t){return mh(e.prev,e,e.next)<0?mh(e,t,e.next)>=0&&mh(e,e.prev,t)>=0:mh(e,t,e.prev)<0||mh(e,e.next,t)<0}function wOt(e,t){var r=e,n=!1,i=(e.x+t.x)/2,a=(e.y+t.y)/2;do r.y>a!=r.next.y>a&&r.next.y!==r.y&&i<(r.next.x-r.x)*(a-r.y)/(r.next.y-r.y)+r.x&&(n=!n),r=r.next;while(r!==e);return n}function t7e(e,t){var r=new hY(e.i,e.x,e.y),n=new hY(t.i,t.x,t.y),i=e.next,a=t.prev;return e.next=t,t.prev=e,r.next=i,i.prev=r,n.next=r,r.prev=n,a.next=n,n.prev=a,n}function $ze(e,t,r,n){var i=new hY(e,t,r);return n?(i.next=n.next,i.prev=n,n.next.prev=i,n.next=i):(i.prev=i,i.next=i),i}function pC(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 hY(e,t,r){this.i=e,this.x=t,this.y=r,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}tz.deviation=function(e,t,r,n){var i=t&&t.length,a=i?t[0]*r:e.length,o=Math.abs(dY(e,0,a,r));if(i)for(var s=0,l=t.length;s0&&(n+=e[i-1].length,r.holes.push(n))}return r}});var n7e=ye((xmr,i7e)=>{"use strict";var TOt=j2();i7e.exports=AOt;function AOt(e,t,r){if(!e||e.length==null)throw Error("Argument should be an array");t==null&&(t=1),r==null&&(r=TOt(e,t));for(var n=0;n{"use strict";a7e.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 l7e=ye((wmr,s7e)=>{"use strict";s7e.exports=function(){}});var lx=ye((Tmr,u7e)=>{"use strict";var SOt=l7e()();u7e.exports=function(e){return e!==SOt&&e!==null}});var pY=ye((Amr,f7e)=>{"use strict";var MOt=Object.create,EOt=Object.getPrototypeOf,c7e={};f7e.exports=function(){var e=Object.setPrototypeOf,t=arguments[0]||MOt;return typeof e!="function"?!1:EOt(e(t(null),c7e))===c7e}});var gY=ye((Smr,h7e)=>{"use strict";var COt=lx(),kOt={function:!0,object:!0};h7e.exports=function(e){return COt(e)&&kOt[typeof e]||!1}});var i1=ye((Mmr,d7e)=>{"use strict";var LOt=lx();d7e.exports=function(e){if(!LOt(e))throw new TypeError("Cannot use null or undefined");return e}});var p7e=ye((Emr,v7e)=>{"use strict";var mY=Object.create,iz;pY()()||(iz=yY());v7e.exports=function(){var e,t,r;return!iz||iz.level!==1?mY:(e={},t={},r={configurable:!1,enumerable:!1,writable:!0,value:void 0},Object.getOwnPropertyNames(Object.prototype).forEach(function(n){if(n==="__proto__"){t[n]={configurable:!0,enumerable:!1,writable:!0,value:void 0};return}t[n]=r}),Object.defineProperties(e,t),Object.defineProperty(iz,"nullPolyfill",{configurable:!1,enumerable:!1,writable:!1,value:e}),function(n,i){return mY(n===null?e:n,i)})}()});var yY=ye((Cmr,g7e)=>{"use strict";var POt=gY(),IOt=i1(),ROt=Object.prototype.isPrototypeOf,DOt=Object.defineProperty,FOt={configurable:!0,enumerable:!1,writable:!0,value:void 0},nz;nz=function(e,t){if(IOt(e),t===null||POt(t))return e;throw new TypeError("Prototype must be null or an object")};g7e.exports=function(e){var t,r;return e?(e.level===2?e.set?(r=e.set,t=function(n,i){return r.call(nz(n,i),i),n}):t=function(n,i){return nz(n,i).__proto__=i,n}:t=function n(i,a){var o;return nz(i,a),o=ROt.call(n.nullPolyfill,i),o&&delete n.nullPolyfill.__proto__,a===null&&(a=n.nullPolyfill),i.__proto__=a,o&&DOt(n.nullPolyfill,"__proto__",FOt),i},Object.defineProperty(t,"level",{configurable:!1,enumerable:!1,writable:!1,value:e.level})):null}(function(){var e=Object.create(null),t={},r,n=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__");if(n){try{r=n.set,r.call(e,t)}catch(i){}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)}());p7e()});var az=ye((kmr,m7e)=>{"use strict";m7e.exports=pY()()?Object.setPrototypeOf:yY()});var _7e=ye((Lmr,y7e)=>{"use strict";var zOt=gY();y7e.exports=function(e){if(!zOt(e))throw new TypeError(e+" is not an Object");return e}});var b7e=ye((Pmr,x7e)=>{"use strict";var OOt=Object.create(null),qOt=Math.random;x7e.exports=function(){var e;do e=qOt().toString(36).slice(2);while(OOt[e]);return e}});var $2=ye((Imr,w7e)=>{"use strict";var BOt=void 0;w7e.exports=function(e){return e!==BOt&&e!==null}});var oz=ye((Rmr,T7e)=>{"use strict";var NOt=$2(),UOt={object:!0,function:!0,undefined:!0};T7e.exports=function(e){return NOt(e)?hasOwnProperty.call(UOt,typeof e):!1}});var S7e=ye((Dmr,A7e)=>{"use strict";var VOt=oz();A7e.exports=function(e){if(!VOt(e))return!1;try{return e.constructor?e.constructor.prototype===e:!1}catch(t){return!1}}});var E7e=ye((Fmr,M7e)=>{"use strict";var GOt=S7e();M7e.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!GOt(e)}});var _Y=ye((zmr,C7e)=>{"use strict";var HOt=E7e(),jOt=/^\s*class[\s{/}]/,WOt=Function.prototype.toString;C7e.exports=function(e){return!(!HOt(e)||jOt.test(WOt.call(e)))}});var L7e=ye((Omr,k7e)=>{"use strict";k7e.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 I7e=ye((qmr,P7e)=>{"use strict";P7e.exports=function(){try{return Object.keys("primitive"),!0}catch(e){return!1}}});var D7e=ye((Bmr,R7e)=>{"use strict";var XOt=lx(),ZOt=Object.keys;R7e.exports=function(e){return ZOt(XOt(e)?Object(e):e)}});var z7e=ye((Nmr,F7e)=>{"use strict";F7e.exports=I7e()()?Object.keys:D7e()});var q7e=ye((Umr,O7e)=>{"use strict";var YOt=z7e(),KOt=i1(),JOt=Math.max;O7e.exports=function(e,t){var r,n,i=JOt(arguments.length,2),a;for(e=Object(KOt(e)),a=function(o){try{e[o]=t[o]}catch(s){r||(r=s)}},n=1;n{"use strict";B7e.exports=L7e()()?Object.assign:q7e()});var xY=ye((Gmr,N7e)=>{"use strict";var $Ot=lx(),QOt=Array.prototype.forEach,eqt=Object.create,tqt=function(e,t){var r;for(r in e)t[r]=e[r]};N7e.exports=function(e){var t=eqt(null);return QOt.call(arguments,function(r){$Ot(r)&&tqt(Object(r),t)}),t}});var V7e=ye((Hmr,U7e)=>{"use strict";var bY="razdwatrzy";U7e.exports=function(){return typeof bY.contains!="function"?!1:bY.contains("dwa")===!0&&bY.contains("foo")===!1}});var H7e=ye((jmr,G7e)=>{"use strict";var rqt=String.prototype.indexOf;G7e.exports=function(e){return rqt.call(this,e,arguments[1])>-1}});var wY=ye((Wmr,j7e)=>{"use strict";j7e.exports=V7e()()?String.prototype.contains:H7e()});var n1=ye((Xmr,Y7e)=>{"use strict";var lz=$2(),W7e=_Y(),X7e=sz(),Z7e=xY(),gC=wY(),iqt=Y7e.exports=function(e,t){var r,n,i,a,o;return arguments.length<2||typeof e!="string"?(a=t,t=e,e=null):a=arguments[2],lz(e)?(r=gC.call(e,"c"),n=gC.call(e,"e"),i=gC.call(e,"w")):(r=i=!0,n=!1),o={value:t,configurable:r,enumerable:n,writable:i},a?X7e(Z7e(a),o):o};iqt.gs=function(e,t,r){var n,i,a,o;return typeof e!="string"?(a=r,r=t,t=e,e=null):a=arguments[3],lz(t)?W7e(t)?lz(r)?W7e(r)||(a=r,r=void 0):r=void 0:(a=t,t=r=void 0):t=void 0,lz(e)?(n=gC.call(e,"c"),i=gC.call(e,"e")):(n=!0,i=!1),o={get:t,set:r,configurable:n,enumerable:i},a?X7e(Z7e(a),o):o}});var mC=ye((Zmr,J7e)=>{"use strict";var K7e=Object.prototype.toString,nqt=K7e.call(function(){return arguments}());J7e.exports=function(e){return K7e.call(e)===nqt}});var yC=ye((Ymr,Q7e)=>{"use strict";var $7e=Object.prototype.toString,aqt=$7e.call("");Q7e.exports=function(e){return typeof e=="string"||e&&typeof e=="object"&&(e instanceof String||$7e.call(e)===aqt)||!1}});var t9e=ye((Kmr,e9e)=>{"use strict";e9e.exports=function(){return typeof globalThis!="object"||!globalThis?!1:globalThis.Array===Array}});var n9e=ye((Jmr,i9e)=>{var r9e=function(){if(typeof self=="object"&&self)return self;if(typeof window=="object"&&window)return window;throw new Error("Unable to resolve global `this`")};i9e.exports=function(){if(this)return this;try{Object.defineProperty(Object.prototype,"__global__",{get:function(){return this},configurable:!0})}catch(e){return r9e()}try{return __global__||r9e()}finally{delete Object.prototype.__global__}}()});var _C=ye(($mr,a9e)=>{"use strict";a9e.exports=t9e()()?globalThis:n9e()});var s9e=ye((Qmr,o9e)=>{"use strict";var oqt=_C(),TY={object:!0,symbol:!0};o9e.exports=function(){var e=oqt.Symbol,t;if(typeof e!="function")return!1;t=e("test symbol");try{String(t)}catch(r){return!1}return!(!TY[typeof e.iterator]||!TY[typeof e.toPrimitive]||!TY[typeof e.toStringTag])}});var u9e=ye((eyr,l9e)=>{"use strict";l9e.exports=function(e){return e?typeof e=="symbol"?!0:!e.constructor||e.constructor.name!=="Symbol"?!1:e[e.constructor.toStringTag]==="Symbol":!1}});var AY=ye((tyr,c9e)=>{"use strict";var sqt=u9e();c9e.exports=function(e){if(!sqt(e))throw new TypeError(e+" is not a symbol");return e}});var p9e=ye((ryr,v9e)=>{"use strict";var f9e=n1(),lqt=Object.create,h9e=Object.defineProperty,uqt=Object.prototype,d9e=lqt(null);v9e.exports=function(e){for(var t=0,r,n;d9e[e+(t||"")];)++t;return e+=t||"",d9e[e]=!0,r="@@"+e,h9e(uqt,r,f9e.gs(null,function(i){n||(n=!0,h9e(this,r,f9e(i)),n=!1)})),r}});var m9e=ye((iyr,g9e)=>{"use strict";var Qg=n1(),zh=_C().Symbol;g9e.exports=function(e){return Object.defineProperties(e,{hasInstance:Qg("",zh&&zh.hasInstance||e("hasInstance")),isConcatSpreadable:Qg("",zh&&zh.isConcatSpreadable||e("isConcatSpreadable")),iterator:Qg("",zh&&zh.iterator||e("iterator")),match:Qg("",zh&&zh.match||e("match")),replace:Qg("",zh&&zh.replace||e("replace")),search:Qg("",zh&&zh.search||e("search")),species:Qg("",zh&&zh.species||e("species")),split:Qg("",zh&&zh.split||e("split")),toPrimitive:Qg("",zh&&zh.toPrimitive||e("toPrimitive")),toStringTag:Qg("",zh&&zh.toStringTag||e("toStringTag")),unscopables:Qg("",zh&&zh.unscopables||e("unscopables"))})}});var x9e=ye((nyr,_9e)=>{"use strict";var y9e=n1(),cqt=AY(),xC=Object.create(null);_9e.exports=function(e){return Object.defineProperties(e,{for:y9e(function(t){return xC[t]?xC[t]:xC[t]=e(String(t))}),keyFor:y9e(function(t){var r;cqt(t);for(r in xC)if(xC[r]===t)return r})})}});var T9e=ye((ayr,w9e)=>{"use strict";var Zm=n1(),SY=AY(),uz=_C().Symbol,fqt=p9e(),hqt=m9e(),dqt=x9e(),vqt=Object.create,MY=Object.defineProperties,cz=Object.defineProperty,Wv,l5,b9e;if(typeof uz=="function")try{String(uz()),b9e=!0}catch(e){}else uz=null;l5=function(t){if(this instanceof l5)throw new TypeError("Symbol is not a constructor");return Wv(t)};w9e.exports=Wv=function e(t){var r;if(this instanceof e)throw new TypeError("Symbol is not a constructor");return b9e?uz(t):(r=vqt(l5.prototype),t=t===void 0?"":String(t),MY(r,{__description__:Zm("",t),__name__:Zm("",fqt(t))}))};hqt(Wv);dqt(Wv);MY(l5.prototype,{constructor:Zm(Wv),toString:Zm("",function(){return this.__name__})});MY(Wv.prototype,{toString:Zm(function(){return"Symbol ("+SY(this).__description__+")"}),valueOf:Zm(function(){return SY(this)})});cz(Wv.prototype,Wv.toPrimitive,Zm("",function(){var e=SY(this);return typeof e=="symbol"?e:e.toString()}));cz(Wv.prototype,Wv.toStringTag,Zm("c","Symbol"));cz(l5.prototype,Wv.toStringTag,Zm("c",Wv.prototype[Wv.toStringTag]));cz(l5.prototype,Wv.toPrimitive,Zm("c",Wv.prototype[Wv.toPrimitive]))});var ux=ye((oyr,A9e)=>{"use strict";A9e.exports=s9e()()?_C().Symbol:T9e()});var M9e=ye((syr,S9e)=>{"use strict";var pqt=i1();S9e.exports=function(){return pqt(this).length=0,this}});var u5=ye((lyr,E9e)=>{"use strict";E9e.exports=function(e){if(typeof e!="function")throw new TypeError(e+" is not a function");return e}});var k9e=ye((uyr,C9e)=>{"use strict";var gqt=$2(),mqt=oz(),yqt=Object.prototype.toString;C9e.exports=function(e){if(!gqt(e))return null;if(mqt(e)){var t=e.toString;if(typeof t!="function"||t===yqt)return null}try{return""+e}catch(r){return null}}});var P9e=ye((cyr,L9e)=>{"use strict";L9e.exports=function(e){try{return e.toString()}catch(t){try{return String(e)}catch(r){return null}}}});var R9e=ye((fyr,I9e)=>{"use strict";var _qt=P9e(),xqt=/[\n\r\u2028\u2029]/g;I9e.exports=function(e){var t=_qt(e);return t===null?"":(t.length>100&&(t=t.slice(0,99)+"\u2026"),t=t.replace(xqt,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 EY=ye((hyr,z9e)=>{"use strict";var D9e=$2(),bqt=oz(),wqt=k9e(),Tqt=R9e(),F9e=function(e,t){return e.replace("%v",Tqt(t))};z9e.exports=function(e,t,r){if(!bqt(r))throw new TypeError(F9e(t,e));if(!D9e(e)){if("default"in r)return r.default;if(r.isOptional)return null}var n=wqt(r.errorMessage);throw D9e(n)||(n=t),new TypeError(F9e(n,e))}});var q9e=ye((dyr,O9e)=>{"use strict";var Aqt=EY(),Sqt=$2();O9e.exports=function(e){return Sqt(e)?e:Aqt(e,"Cannot use %v",arguments[1])}});var N9e=ye((vyr,B9e)=>{"use strict";var Mqt=EY(),Eqt=_Y();B9e.exports=function(e){return Eqt(e)?e:Mqt(e,"%v is not a plain function",arguments[1])}});var V9e=ye((pyr,U9e)=>{"use strict";U9e.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 H9e=ye((gyr,G9e)=>{"use strict";var Cqt=Object.prototype.toString,kqt=RegExp.prototype.test.bind(/^[object [A-Za-z0-9]*Function]$/);G9e.exports=function(e){return typeof e=="function"&&kqt(Cqt.call(e))}});var W9e=ye((myr,j9e)=>{"use strict";j9e.exports=function(){var e=Math.sign;return typeof e!="function"?!1:e(10)===1&&e(-20)===-1}});var Z9e=ye((yyr,X9e)=>{"use strict";X9e.exports=function(e){return e=Number(e),isNaN(e)||e===0?e:e>0?1:-1}});var K9e=ye((_yr,Y9e)=>{"use strict";Y9e.exports=W9e()()?Math.sign:Z9e()});var $9e=ye((xyr,J9e)=>{"use strict";var Lqt=K9e(),Pqt=Math.abs,Iqt=Math.floor;J9e.exports=function(e){return isNaN(e)?0:(e=Number(e),e===0||!isFinite(e)?e:Lqt(e)*Iqt(Pqt(e)))}});var eOe=ye((byr,Q9e)=>{"use strict";var Rqt=$9e(),Dqt=Math.max;Q9e.exports=function(e){return Dqt(0,Rqt(e))}});var nOe=ye((wyr,iOe)=>{"use strict";var Fqt=ux().iterator,zqt=mC(),Oqt=H9e(),qqt=eOe(),tOe=u5(),Bqt=i1(),Nqt=lx(),Uqt=yC(),rOe=Array.isArray,CY=Function.prototype.call,Q2={configurable:!0,enumerable:!0,writable:!0,value:null},kY=Object.defineProperty;iOe.exports=function(e){var t=arguments[1],r=arguments[2],n,i,a,o,s,l,u,c,f,h;if(e=Object(Bqt(e)),Nqt(t)&&tOe(t),!this||this===Array||!Oqt(this)){if(!t){if(zqt(e))return s=e.length,s!==1?Array.apply(null,e):(o=new Array(1),o[0]=e[0],o);if(rOe(e)){for(o=new Array(s=e.length),i=0;i=55296&&l<=56319&&(h+=e[++i])),h=t?CY.call(t,r,h,a):h,n?(Q2.value=h,kY(o,a,Q2)):o[a]=h,++a;s=a}}if(s===void 0)for(s=qqt(e.length),n&&(o=new n(s)),i=0;i{"use strict";aOe.exports=V9e()()?Array.from:nOe()});var lOe=ye((Ayr,sOe)=>{"use strict";var Vqt=oOe(),Gqt=sz(),Hqt=i1();sOe.exports=function(e){var t=Object(Hqt(e)),r=arguments[1],n=Object(arguments[2]);if(t!==e&&!r)return t;var i={};return r?Vqt(r,function(a){(n.ensure||a in e)&&(i[a]=e[a])}):Gqt(i,e),i}});var fOe=ye((Syr,cOe)=>{"use strict";var jqt=u5(),Wqt=i1(),Xqt=Function.prototype.bind,uOe=Function.prototype.call,Zqt=Object.keys,Yqt=Object.prototype.propertyIsEnumerable;cOe.exports=function(e,t){return function(r,n){var i,a=arguments[2],o=arguments[3];return r=Object(Wqt(r)),jqt(n),i=Zqt(r),o&&i.sort(typeof o=="function"?Xqt.call(o,r):void 0),typeof e!="function"&&(e=i[e]),uOe.call(e,i,function(s,l){return Yqt.call(r,s)?uOe.call(n,a,r[s],s,r,l):t})}}});var dOe=ye((Myr,hOe)=>{"use strict";hOe.exports=fOe()("forEach")});var pOe=ye((Eyr,vOe)=>{"use strict";var Kqt=u5(),Jqt=dOe(),$qt=Function.prototype.call;vOe.exports=function(e,t){var r={},n=arguments[2];return Kqt(t),Jqt(e,function(i,a,o,s){r[a]=$qt.call(t,n,i,a,o,s)}),r}});var _Oe=ye((Cyr,yOe)=>{"use strict";var Qqt=$2(),eBt=q9e(),gOe=N9e(),tBt=lOe(),rBt=xY(),iBt=pOe(),nBt=Function.prototype.bind,aBt=Object.defineProperty,oBt=Object.prototype.hasOwnProperty,mOe;mOe=function(e,t,r){var n=eBt(t)&&gOe(t.value),i;return i=tBt(t),delete i.writable,delete i.value,i.get=function(){return!r.overwriteDefinition&&oBt.call(this,e)?n:(t.value=nBt.call(n,r.resolveContext?r.resolveContext(this):this),aBt(this,e,t),this[e])},i};yOe.exports=function(e){var t=rBt(arguments[1]);return Qqt(t.resolveContext)&&gOe(t.resolveContext),iBt(e,function(r,n){return mOe(n,r,t)})}});var LY=ye((kyr,TOe)=>{"use strict";var sBt=M9e(),lBt=sz(),uBt=u5(),cBt=i1(),Op=n1(),fBt=_Oe(),xOe=ux(),bOe=Object.defineProperty,wOe=Object.defineProperties,bC;TOe.exports=bC=function(e,t){if(!(this instanceof bC))throw new TypeError("Constructor requires 'new'");wOe(this,{__list__:Op("w",cBt(e)),__context__:Op("w",t),__nextIndex__:Op("w",0)}),t&&(uBt(t.on),t.on("_add",this._onAdd),t.on("_delete",this._onDelete),t.on("_clear",this._onClear))};delete bC.prototype.constructor;wOe(bC.prototype,lBt({_next:Op(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__){bOe(this,"__redo__",Op("c",[e]));return}this.__redo__.forEach(function(t,r){t>=e&&(this.__redo__[r]=++t)},this),this.__redo__.push(e)}}),_onDelete:Op(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,n){r>e&&(this.__redo__[n]=--r)},this)))}),_onClear:Op(function(){this.__redo__&&sBt.call(this.__redo__),this.__nextIndex__=0})})));bOe(bC.prototype,xOe.iterator,Op(function(){return this}))});var COe=ye((Lyr,EOe)=>{"use strict";var AOe=az(),SOe=wY(),PY=n1(),hBt=ux(),IY=LY(),MOe=Object.defineProperty,c5;c5=EOe.exports=function(e,t){if(!(this instanceof c5))throw new TypeError("Constructor requires 'new'");IY.call(this,e),t?SOe.call(t,"key+value")?t="key+value":SOe.call(t,"key")?t="key":t="value":t="value",MOe(this,"__kind__",PY("",t))};AOe&&AOe(c5,IY);delete c5.prototype.constructor;c5.prototype=Object.create(IY.prototype,{_resolve:PY(function(e){return this.__kind__==="value"?this.__list__[e]:this.__kind__==="key+value"?[e,this.__list__[e]]:e})});MOe(c5.prototype,hBt.toStringTag,PY("c","Array Iterator"))});var IOe=ye((Pyr,POe)=>{"use strict";var kOe=az(),fz=n1(),dBt=ux(),RY=LY(),LOe=Object.defineProperty,f5;f5=POe.exports=function(e){if(!(this instanceof f5))throw new TypeError("Constructor requires 'new'");e=String(e),RY.call(this,e),LOe(this,"__length__",fz("",e.length))};kOe&&kOe(f5,RY);delete f5.prototype.constructor;f5.prototype=Object.create(RY.prototype,{_next:fz(function(){if(this.__list__){if(this.__nextIndex__=55296&&r<=56319?t+this.__list__[this.__nextIndex__++]:t)})});LOe(f5.prototype,dBt.toStringTag,fz("c","String Iterator"))});var DOe=ye((Iyr,ROe)=>{"use strict";var vBt=mC(),pBt=lx(),gBt=yC(),mBt=ux().iterator,yBt=Array.isArray;ROe.exports=function(e){return pBt(e)?yBt(e)||gBt(e)||vBt(e)?!0:typeof e[mBt]=="function":!1}});var zOe=ye((Ryr,FOe)=>{"use strict";var _Bt=DOe();FOe.exports=function(e){if(!_Bt(e))throw new TypeError(e+" is not iterable");return e}});var DY=ye((Dyr,BOe)=>{"use strict";var xBt=mC(),bBt=yC(),OOe=COe(),wBt=IOe(),TBt=zOe(),qOe=ux().iterator;BOe.exports=function(e){return typeof TBt(e)[qOe]=="function"?e[qOe]():xBt(e)?new OOe(e):bBt(e)?new wBt(e):new OOe(e)}});var UOe=ye((Fyr,NOe)=>{"use strict";var ABt=mC(),SBt=u5(),MBt=yC(),EBt=DY(),CBt=Array.isArray,FY=Function.prototype.call,kBt=Array.prototype.some;NOe.exports=function(e,t){var r,n=arguments[2],i,a,o,s,l,u,c;if(CBt(e)||ABt(e)?r="array":MBt(e)?r="string":e=EBt(e),SBt(t),a=function(){o=!0},r==="array"){kBt.call(e,function(f){return FY.call(t,n,f,a),o});return}if(r==="string"){for(l=e.length,s=0;s=55296&&c<=56319&&(u+=e[++s])),FY.call(t,n,u,a),!o);++s);return}for(i=e.next();!i.done;){if(FY.call(t,n,i.value,a),o)return;i=e.next()}}});var GOe=ye((zyr,VOe)=>{"use strict";VOe.exports=function(){return typeof WeakMap!="function"?!1:Object.prototype.toString.call(new WeakMap)==="[object WeakMap]"}()});var WOe=ye((Oyr,jOe)=>{"use strict";var LBt=lx(),dz=az(),hz=_7e(),PBt=i1(),IBt=b7e(),a1=n1(),RBt=DY(),DBt=UOe(),FBt=ux().toStringTag,HOe=GOe(),zBt=Array.isArray,OY=Object.defineProperty,zY=Object.prototype.hasOwnProperty,OBt=Object.getPrototypeOf,cx;jOe.exports=cx=function(){var e=arguments[0],t;if(!(this instanceof cx))throw new TypeError("Constructor requires 'new'");return t=HOe&&dz&&WeakMap!==cx?dz(new WeakMap,OBt(this)):this,LBt(e)&&(zBt(e)||(e=RBt(e))),OY(t,"__weakMapData__",a1("c","$weakMap$"+IBt())),e&&DBt(e,function(r){PBt(r),t.set(r[0],r[1])}),t};HOe&&(dz&&dz(cx,WeakMap),cx.prototype=Object.create(WeakMap.prototype,{constructor:a1(cx)}));Object.defineProperties(cx.prototype,{delete:a1(function(e){return zY.call(hz(e),this.__weakMapData__)?(delete e[this.__weakMapData__],!0):!1}),get:a1(function(e){if(zY.call(hz(e),this.__weakMapData__))return e[this.__weakMapData__]}),has:a1(function(e){return zY.call(hz(e),this.__weakMapData__)}),set:a1(function(e,t){return OY(hz(e),this.__weakMapData__,a1("c",t)),this}),toString:a1(function(){return"[object WeakMap]"})});OY(cx.prototype,FBt,a1("c","WeakMap"))});var qY=ye((qyr,XOe)=>{"use strict";XOe.exports=o7e()()?WeakMap:WOe()});var YOe=ye((Byr,ZOe)=>{"use strict";ZOe.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 n=Object(e),i=n.length;if(i===0)return-1;for(var a=0;a{"use strict";var vz=$_(),qBt=j2(),NY=Fh(),BBt=Xm(),NBt=W2(),KOe=r7e(),UBt=n7e(),{float32:VBt,fract32:BY}=KF(),GBt=qY(),JOe=e5(),HBt=YOe(),jBt=` +precision highp float; + +attribute vec2 aCoord, bCoord, aCoordFract, bCoordFract; +attribute vec4 color; +attribute float lineEnd, lineTop; + +uniform vec2 scale, scaleFract, translate, translateFract; +uniform float thickness, pixelRatio, id, depth; +uniform vec4 viewport; + +varying vec4 fragColor; +varying vec2 tangent; + +vec2 project(vec2 position, vec2 positionFract, vec2 scale, vec2 scaleFract, vec2 translate, vec2 translateFract) { + // the order is important + return position * scale + translate + + positionFract * scale + translateFract + + position * scaleFract + + positionFract * scaleFract; +} + +void main() { + float lineStart = 1. - lineEnd; + float lineOffset = lineTop * 2. - 1.; + + vec2 diff = (bCoord + bCoordFract - aCoord - aCoordFract); + tangent = normalize(diff * scale * viewport.zw); + vec2 normal = vec2(-tangent.y, tangent.x); + + vec2 position = project(aCoord, aCoordFract, scale, scaleFract, translate, translateFract) * lineStart + + project(bCoord, bCoordFract, scale, scaleFract, translate, translateFract) * lineEnd + + + thickness * normal * .5 * lineOffset / viewport.zw; + + gl_Position = vec4(position * 2.0 - 1.0, depth, 1); + + fragColor = color / 255.; +} +`,WBt=` +precision highp float; + +uniform float dashLength, pixelRatio, thickness, opacity, id; +uniform sampler2D dashTexture; + +varying vec4 fragColor; +varying vec2 tangent; + +void main() { + float alpha = 1.; + + float t = fract(dot(tangent, gl_FragCoord.xy) / dashLength) * .5 + .25; + float dash = texture2D(dashTexture, vec2(t, .5)).r; + + gl_FragColor = fragColor; + gl_FragColor.a *= alpha * opacity * dash; +} +`,XBt=` +precision highp float; + +attribute vec2 position, positionFract; + +uniform vec4 color; +uniform vec2 scale, scaleFract, translate, translateFract; +uniform float pixelRatio, id; +uniform vec4 viewport; +uniform float opacity; + +varying vec4 fragColor; + +const float MAX_LINES = 256.; + +void main() { + float depth = (MAX_LINES - 4. - id) / (MAX_LINES); + + vec2 position = position * scale + translate + + positionFract * scale + translateFract + + position * scaleFract + + positionFract * scaleFract; + + gl_Position = vec4(position * 2.0 - 1.0, depth, 1); + + fragColor = color / 255.; + fragColor.a *= opacity; +} +`,ZBt=` +precision highp float; +varying vec4 fragColor; + +void main() { + gl_FragColor = fragColor; +} +`,YBt=` +precision highp float; + +attribute vec2 aCoord, bCoord, nextCoord, prevCoord; +attribute vec4 aColor, bColor; +attribute float lineEnd, lineTop; + +uniform vec2 scale, translate; +uniform float thickness, pixelRatio, id, depth; +uniform vec4 viewport; +uniform float miterLimit, miterMode; + +varying vec4 fragColor; +varying vec4 startCutoff, endCutoff; +varying vec2 tangent; +varying vec2 startCoord, endCoord; +varying float enableStartMiter, enableEndMiter; + +const float REVERSE_THRESHOLD = -.875; +const float MIN_DIFF = 1e-6; + +// TODO: possible optimizations: avoid overcalculating all for vertices and calc just one instead +// TODO: precalculate dot products, normalize things beforehead etc. +// TODO: refactor to rectangular algorithm + +float distToLine(vec2 p, vec2 a, vec2 b) { + vec2 diff = b - a; + vec2 perp = normalize(vec2(-diff.y, diff.x)); + return dot(p - a, perp); +} + +bool isNaN( float val ){ + return ( val < 0.0 || 0.0 < val || val == 0.0 ) ? false : true; +} + +void main() { + vec2 aCoord = aCoord, bCoord = bCoord, prevCoord = prevCoord, nextCoord = nextCoord; + + vec2 adjustedScale; + adjustedScale.x = (abs(scale.x) < MIN_DIFF) ? MIN_DIFF : scale.x; + adjustedScale.y = (abs(scale.y) < MIN_DIFF) ? MIN_DIFF : scale.y; + + vec2 scaleRatio = adjustedScale * viewport.zw; + vec2 normalWidth = thickness / scaleRatio; + + float lineStart = 1. - lineEnd; + float lineBot = 1. - lineTop; + + fragColor = (lineStart * aColor + lineEnd * bColor) / 255.; + + if (isNaN(aCoord.x) || isNaN(aCoord.y) || isNaN(bCoord.x) || isNaN(bCoord.y)) return; + + if (aCoord == prevCoord) prevCoord = aCoord + normalize(bCoord - aCoord); + if (bCoord == nextCoord) nextCoord = bCoord - normalize(bCoord - aCoord); + + + vec2 prevDiff = aCoord - prevCoord; + vec2 currDiff = bCoord - aCoord; + vec2 nextDiff = nextCoord - bCoord; + + vec2 prevTangent = normalize(prevDiff * scaleRatio); + vec2 currTangent = normalize(currDiff * scaleRatio); + vec2 nextTangent = normalize(nextDiff * scaleRatio); + + vec2 prevNormal = vec2(-prevTangent.y, prevTangent.x); + vec2 currNormal = vec2(-currTangent.y, currTangent.x); + vec2 nextNormal = vec2(-nextTangent.y, nextTangent.x); + + vec2 startJoinDirection = normalize(prevTangent - currTangent); + vec2 endJoinDirection = normalize(currTangent - nextTangent); + + // collapsed/unidirectional segment cases + // FIXME: there should be more elegant solution + vec2 prevTanDiff = abs(prevTangent - currTangent); + vec2 nextTanDiff = abs(nextTangent - currTangent); + if (max(prevTanDiff.x, prevTanDiff.y) < MIN_DIFF) { + startJoinDirection = currNormal; + } + if (max(nextTanDiff.x, nextTanDiff.y) < MIN_DIFF) { + endJoinDirection = currNormal; + } + if (aCoord == bCoord) { + endJoinDirection = startJoinDirection; + currNormal = prevNormal; + currTangent = prevTangent; + } + + tangent = currTangent; + + //calculate join shifts relative to normals + float startJoinShift = dot(currNormal, startJoinDirection); + float endJoinShift = dot(currNormal, endJoinDirection); + + float startMiterRatio = abs(1. / startJoinShift); + float endMiterRatio = abs(1. / endJoinShift); + + vec2 startJoin = startJoinDirection * startMiterRatio; + vec2 endJoin = endJoinDirection * endMiterRatio; + + vec2 startTopJoin, startBotJoin, endTopJoin, endBotJoin; + startTopJoin = sign(startJoinShift) * startJoin * .5; + startBotJoin = -startTopJoin; + + endTopJoin = sign(endJoinShift) * endJoin * .5; + endBotJoin = -endTopJoin; + + vec2 aTopCoord = aCoord + normalWidth * startTopJoin; + vec2 bTopCoord = bCoord + normalWidth * endTopJoin; + vec2 aBotCoord = aCoord + normalWidth * startBotJoin; + vec2 bBotCoord = bCoord + normalWidth * endBotJoin; + + //miter anti-clipping + float baClipping = distToLine(bCoord, aCoord, aBotCoord) / dot(normalize(normalWidth * endBotJoin), normalize(normalWidth.yx * vec2(-startBotJoin.y, startBotJoin.x))); + float abClipping = distToLine(aCoord, bCoord, bTopCoord) / dot(normalize(normalWidth * startBotJoin), normalize(normalWidth.yx * vec2(-endBotJoin.y, endBotJoin.x))); + + //prevent close to reverse direction switch + bool prevReverse = dot(currTangent, prevTangent) <= REVERSE_THRESHOLD && abs(dot(currTangent, prevNormal)) * min(length(prevDiff), length(currDiff)) < length(normalWidth * currNormal); + bool nextReverse = dot(currTangent, nextTangent) <= REVERSE_THRESHOLD && abs(dot(currTangent, nextNormal)) * min(length(nextDiff), length(currDiff)) < length(normalWidth * currNormal); + + if (prevReverse) { + //make join rectangular + vec2 miterShift = normalWidth * startJoinDirection * miterLimit * .5; + float normalAdjust = 1. - min(miterLimit / startMiterRatio, 1.); + aBotCoord = aCoord + miterShift - normalAdjust * normalWidth * currNormal * .5; + aTopCoord = aCoord + miterShift + normalAdjust * normalWidth * currNormal * .5; + } + else if (!nextReverse && baClipping > 0. && baClipping < length(normalWidth * endBotJoin)) { + //handle miter clipping + bTopCoord -= normalWidth * endTopJoin; + bTopCoord += normalize(endTopJoin * normalWidth) * baClipping; + } + + if (nextReverse) { + //make join rectangular + vec2 miterShift = normalWidth * endJoinDirection * miterLimit * .5; + float normalAdjust = 1. - min(miterLimit / endMiterRatio, 1.); + bBotCoord = bCoord + miterShift - normalAdjust * normalWidth * currNormal * .5; + bTopCoord = bCoord + miterShift + normalAdjust * normalWidth * currNormal * .5; + } + else if (!prevReverse && abClipping > 0. && abClipping < length(normalWidth * startBotJoin)) { + //handle miter clipping + aBotCoord -= normalWidth * startBotJoin; + aBotCoord += normalize(startBotJoin * normalWidth) * abClipping; + } + + vec2 aTopPosition = (aTopCoord) * adjustedScale + translate; + vec2 aBotPosition = (aBotCoord) * adjustedScale + translate; + + vec2 bTopPosition = (bTopCoord) * adjustedScale + translate; + vec2 bBotPosition = (bBotCoord) * adjustedScale + translate; + + //position is normalized 0..1 coord on the screen + vec2 position = (aTopPosition * lineTop + aBotPosition * lineBot) * lineStart + (bTopPosition * lineTop + bBotPosition * lineBot) * lineEnd; + + startCoord = aCoord * scaleRatio + translate * viewport.zw + viewport.xy; + endCoord = bCoord * scaleRatio + translate * viewport.zw + viewport.xy; + + gl_Position = vec4(position * 2.0 - 1.0, depth, 1); + + enableStartMiter = step(dot(currTangent, prevTangent), .5); + enableEndMiter = step(dot(currTangent, nextTangent), .5); + + //bevel miter cutoffs + if (miterMode == 1.) { + if (enableStartMiter == 1.) { + vec2 startMiterWidth = vec2(startJoinDirection) * thickness * miterLimit * .5; + startCutoff = vec4(aCoord, aCoord); + startCutoff.zw += vec2(-startJoinDirection.y, startJoinDirection.x) / scaleRatio; + startCutoff = startCutoff * scaleRatio.xyxy + translate.xyxy * viewport.zwzw; + startCutoff += viewport.xyxy; + startCutoff += startMiterWidth.xyxy; + } + + if (enableEndMiter == 1.) { + vec2 endMiterWidth = vec2(endJoinDirection) * thickness * miterLimit * .5; + endCutoff = vec4(bCoord, bCoord); + endCutoff.zw += vec2(-endJoinDirection.y, endJoinDirection.x) / scaleRatio; + endCutoff = endCutoff * scaleRatio.xyxy + translate.xyxy * viewport.zwzw; + endCutoff += viewport.xyxy; + endCutoff += endMiterWidth.xyxy; + } + } + + //round miter cutoffs + else if (miterMode == 2.) { + if (enableStartMiter == 1.) { + vec2 startMiterWidth = vec2(startJoinDirection) * thickness * abs(dot(startJoinDirection, currNormal)) * .5; + startCutoff = vec4(aCoord, aCoord); + startCutoff.zw += vec2(-startJoinDirection.y, startJoinDirection.x) / scaleRatio; + startCutoff = startCutoff * scaleRatio.xyxy + translate.xyxy * viewport.zwzw; + startCutoff += viewport.xyxy; + startCutoff += startMiterWidth.xyxy; + } + + if (enableEndMiter == 1.) { + vec2 endMiterWidth = vec2(endJoinDirection) * thickness * abs(dot(endJoinDirection, currNormal)) * .5; + endCutoff = vec4(bCoord, bCoord); + endCutoff.zw += vec2(-endJoinDirection.y, endJoinDirection.x) / scaleRatio; + endCutoff = endCutoff * scaleRatio.xyxy + translate.xyxy * viewport.zwzw; + endCutoff += viewport.xyxy; + endCutoff += endMiterWidth.xyxy; + } + } +} +`,KBt=` +precision highp float; + +uniform float dashLength, pixelRatio, thickness, opacity, id, miterMode; +uniform sampler2D dashTexture; + +varying vec4 fragColor; +varying vec2 tangent; +varying vec4 startCutoff, endCutoff; +varying vec2 startCoord, endCoord; +varying float enableStartMiter, enableEndMiter; + +float distToLine(vec2 p, vec2 a, vec2 b) { + vec2 diff = b - a; + vec2 perp = normalize(vec2(-diff.y, diff.x)); + return dot(p - a, perp); +} + +void main() { + float alpha = 1., distToStart, distToEnd; + float cutoff = thickness * .5; + + //bevel miter + if (miterMode == 1.) { + if (enableStartMiter == 1.) { + distToStart = distToLine(gl_FragCoord.xy, startCutoff.xy, startCutoff.zw); + if (distToStart < -1.) { + discard; + return; + } + alpha *= min(max(distToStart + 1., 0.), 1.); + } + + if (enableEndMiter == 1.) { + distToEnd = distToLine(gl_FragCoord.xy, endCutoff.xy, endCutoff.zw); + if (distToEnd < -1.) { + discard; + return; + } + alpha *= min(max(distToEnd + 1., 0.), 1.); + } + } + + // round miter + else if (miterMode == 2.) { + if (enableStartMiter == 1.) { + distToStart = distToLine(gl_FragCoord.xy, startCutoff.xy, startCutoff.zw); + if (distToStart < 0.) { + float radius = length(gl_FragCoord.xy - startCoord); + + if(radius > cutoff + .5) { + discard; + return; + } + + alpha -= smoothstep(cutoff - .5, cutoff + .5, radius); + } + } + + if (enableEndMiter == 1.) { + distToEnd = distToLine(gl_FragCoord.xy, endCutoff.xy, endCutoff.zw); + if (distToEnd < 0.) { + float radius = length(gl_FragCoord.xy - endCoord); + + if(radius > cutoff + .5) { + discard; + return; + } + + alpha -= smoothstep(cutoff - .5, cutoff + .5, radius); + } + } + } + + float t = fract(dot(tangent, gl_FragCoord.xy) / dashLength) * .5 + .25; + float dash = texture2D(dashTexture, vec2(t, .5)).r; + + gl_FragColor = fragColor; + gl_FragColor.a *= alpha * opacity * dash; +} +`;$Oe.exports=Wc;function Wc(e,t){if(!(this instanceof Wc))return new Wc(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=Wc.shaders.has(e)?Wc.shaders.get(e):Wc.shaders.set(e,Wc.createShaders(e)).get(e),this.update(t)}Wc.dashMult=2;Wc.maxPatternLength=256;Wc.precisionThreshold=3e6;Wc.maxPoints=1e4;Wc.maxLines=2048;Wc.shaders=new GBt;Wc.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")},n=e(NY({vert:jBt,frag:WBt,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)),i;try{i=e(NY({cull:{enable:!0,face:"back"},vert:YBt,frag:KBt,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){i=n}return{fill:e({primitive:"triangle",elements:(o,s)=>s.triangles,offset:0,vert:XBt,frag:ZBt,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:n,miter:i}};Wc.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};Wc.prototype.render=function(...e){e.length&&this.update(...e),this.draw()};Wc.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>Wc.precisionThreshold||t.scale[1]*t.viewport.height>Wc.precisionThreshold?this.shaders.rect(t):t.join==="rect"||!t.join&&(t.thickness<=2||t.count>=Wc.maxPoints)?this.shaders.rect(t):this.shaders.miter(t)))}),this};Wc.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((i,a)=>{let o=this.passes[a];if(i!==void 0){if(i===null){this.passes[a]=null;return}if(typeof i[0]=="number"&&(i={positions:i}),i=BBt(i,{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})},i=NY({},Wc.defaults,i)),i.thickness!=null&&(o.thickness=parseFloat(i.thickness)),i.opacity!=null&&(o.opacity=parseFloat(i.opacity)),i.miterLimit!=null&&(o.miterLimit=parseFloat(i.miterLimit)),i.overlay!=null&&(o.overlay=!!i.overlay,aL-_),C=[],E=0,A=o.hole!=null?o.hole[0]:null;if(A!=null){let L=HBt(p,_=>_>=A);p=p.slice(0,L),p.push(A)}for(let L=0;Lg-A+(p[L]-E)),M=KOe(_,k);M=M.map(g=>g+E+(g+E{e.colorBuffer.destroy(),e.positionBuffer.destroy(),e.dashTexture.destroy()}),this.passes.length=0,this}});var iqe=ye((Uyr,rqe)=>{"use strict";var JBt=j2(),$Bt=$_(),QBt=lY(),eNt=Xm(),QOe=Fh(),eqe=W2(),{float32:tNt,fract32:VY}=KF();rqe.exports=rNt;var tqe=[[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 rNt(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,n,i,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)}),i=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:tqe}),v(t),n=e({vert:` + precision highp float; + + attribute vec2 position, positionFract; + attribute vec4 error; + attribute vec4 color; + + attribute vec2 direction, lineOffset, capOffset; + + uniform vec4 viewport; + uniform float lineWidth, capSize; + uniform vec2 scale, scaleFract, translate, translateFract; + + varying vec4 fragColor; + + void main() { + fragColor = color / 255.; + + vec2 pixelOffset = lineWidth * lineOffset + (capSize + lineWidth) * capOffset; + + vec2 dxy = -step(.5, direction.xy) * error.xz + step(direction.xy, vec2(-.5)) * error.yw; + + vec2 position = position + dxy; + + vec2 pos = (position + translate) * scale + + (positionFract + translateFract) * scale + + (position + translate) * scaleFract + + (positionFract + translateFract) * scaleFract; + + pos += pixelOffset / viewport.zw; + + gl_Position = vec4(pos * 2. - 1., 0, 1); + } + `,frag:` + precision highp float; + + varying vec4 fragColor; + + uniform float opacity; + + 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:(b,p)=>[p.viewport.x,p.viewport.y,b.viewportWidth,b.viewportHeight]},attributes:{color:{buffer:o,offset:(b,p)=>p.offset*4,divisor:1},position:{buffer:i,offset:(b,p)=>p.offset*8,divisor:1},positionFract:{buffer:a,offset:(b,p)=>p.offset*8,divisor:1},error:{buffer:s,offset:(b,p)=>p.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:tqe.length}),QOe(f,{update:v,draw:h,destroy:x,regl:e,gl:r,canvas:r.canvas,groups:c}),f;function f(b){b?v(b):b===null&&x(),h()}function h(b){if(typeof b=="number")return d(b);b&&!Array.isArray(b)&&(b=[b]),e._refresh(),c.forEach((p,C)=>{if(p){if(b&&(b[C]?p.draw=!0:p.draw=!1),!p.draw){p.draw=!0;return}d(C)}})}function d(b){typeof b=="number"&&(b=c[b]),b!=null&&b&&b.count&&b.color&&b.opacity&&b.positions&&b.positions.length>1&&(b.scaleRatio=[b.scale[0]*b.viewport.width,b.scale[1]*b.viewport.height],n(b),b.after&&b.after(b))}function v(b){if(!b)return;b.length!=null?typeof b[0]=="number"&&(b=[{positions:b}]):Array.isArray(b)||(b=[b]);let p=0,C=0;if(f.groups=c=b.map((L,_)=>{let k=c[_];if(L)typeof L=="function"?L={after:L}:typeof L[0]=="number"&&(L={positions:L});else return k;return L=eNt(L,{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"}),k||(c[_]=k={id:_,scale:null,translate:null,scaleFract:null,translateFract:null,draw:!0},L=QOe({},u,L)),QBt(k,L,[{lineWidth:M=>+M*.5,capSize:M=>+M*.5,opacity:parseFloat,errors:M=>(M=eqe(M),C+=M.length,M),positions:(M,g)=>(M=eqe(M,"float64"),g.count=Math.floor(M.length/2),g.bounds=JBt(M,2),g.offset=p,p+=g.count,M)},{color:(M,g)=>{let P=g.count;if(M||(M="transparent"),!Array.isArray(M)||typeof M[0]=="number"){let z=M;M=Array(P);for(let O=0;O{let T=g.bounds;return M||(M=T),g.scale=[1/(M[2]-M[0]),1/(M[3]-M[1])],g.translate=[-M[0],-M[1]],g.scaleFract=VY(g.scale),g.translateFract=VY(g.translate),M},viewport:M=>{let g;return Array.isArray(M)?g={x:M[0],y:M[1],width:M[2]-M[0],height:M[3]-M[1]}:M?(g={x:M.x||M.left||0,y:M.y||M.top||0},M.right?g.width=M.right-g.x:g.width=M.w||M.width||0,M.bottom?g.height=M.bottom-g.y:g.height=M.h||M.height||0):g={x:0,y:0,width:r.drawingBufferWidth,height:r.drawingBufferHeight},g}}]),k}),p||C){let L=c.reduce((g,P,T)=>g+(P?P.count:0),0),_=new Float64Array(L*2),k=new Uint8Array(L*4),M=new Float32Array(L*4);c.forEach((g,P)=>{if(!g)return;let{positions:T,count:z,offset:O,color:V,errors:G}=g;z&&(k.set(V,O*4),M.set(G,O*4),_.set(T,O*2))});var E=tNt(_);i(E);var A=VY(_,E);a(A),o(k),s(M)}}function x(){i.destroy(),a.destroy(),o.destroy(),s.destroy(),l.destroy()}}});var oqe=ye((Vyr,aqe)=>{var nqe=/[\'\"]/;aqe.exports=function(t){return t?(nqe.test(t.charAt(0))&&(t=t.substr(1)),nqe.test(t.charAt(t.length-1))&&(t=t.substr(0,t.length-1)),t):""}});var GY=ye(()=>{});var HY=ye(()=>{});var jY=ye(()=>{});var WY=ye(()=>{});var XY=ye(()=>{});var cqe=ye((Qyr,uqe)=>{"use strict";function sqe(e,t){if(typeof e!="string")return[e];var r=[e];typeof t=="string"||Array.isArray(t)?t={brackets:t}:t||(t={});var n=t.brackets?Array.isArray(t.brackets)?t.brackets:[t.brackets]:["{}","[]","()"],i=t.escape||"___",a=!!t.flat;n.forEach(function(l){var u=new RegExp(["\\",l[0],"[^\\",l[0],"\\",l[1],"]*\\",l[1]].join("")),c=[];function f(h,d,v){var x=r.push(h.slice(l[0].length,-l[1].length))-1;return c.push(x),i+x+i}r.forEach(function(h,d){for(var v,x=0;h!=v;)if(v=h,h=h.replace(u,f),x++>1e4)throw Error("References have circular dependency. Please, check them.");r[d]=h}),c=c.reverse(),r=r.map(function(h){return c.forEach(function(d){h=h.replace(new RegExp("(\\"+i+d+"\\"+i+")","g"),l[0]+"$1"+l[1])}),h})});var o=new RegExp("\\"+i+"([0-9]+)\\"+i);function s(l,u,c){for(var f=[],h,d=0;h=o.exec(l);){if(d++>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 lqe(e,t){if(t&&t.flat){var r=t&&t.escape||"___",n=e[0],i;if(!n)return"";for(var a=new RegExp("\\"+r+"([0-9]+)\\"+r),o=0;n!=i;){if(o++>1e4)throw Error("Circular references in "+e);i=n,n=n.replace(a,s)}return n}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 ZY(e,t){return Array.isArray(e)?lqe(e,t):sqe(e,t)}ZY.parse=sqe;ZY.stringify=lqe;uqe.exports=ZY});var dqe=ye((e1r,hqe)=>{"use strict";var fqe=cqe();hqe.exports=function(t,r,n){if(t==null)throw Error("First argument should be a string");if(r==null)throw Error("Separator should be a string or a RegExp");n?(typeof n=="string"||Array.isArray(n))&&(n={ignore:n}):n={},n.escape==null&&(n.escape=!0),n.ignore==null?n.ignore=["[]","()","{}","<>",'""',"''","``","\u201C\u201D","\xAB\xBB"]:(typeof n.ignore=="string"&&(n.ignore=[n.ignore]),n.ignore=n.ignore.map(function(f){return f.length===1&&(f=f+f),f}));var i=fqe.parse(t,{flat:!0,brackets:n.ignore}),a=i[0],o=a.split(r);if(n.escape){for(var s=[],l=0;l{});var YY=ye((i1r,pqe)=>{"use strict";var iNt=vqe();pqe.exports={isSize:function(t){return/^[\d\.]/.test(t)||t.indexOf("/")!==-1||iNt.indexOf(t)!==-1}}});var _qe=ye((n1r,yqe)=>{"use strict";var nNt=oqe(),aNt=GY(),oNt=HY(),sNt=jY(),lNt=WY(),uNt=XY(),KY=dqe(),cNt=YY().isSize;yqe.exports=mqe;var wC=mqe.cache={};function mqe(e){if(typeof e!="string")throw new Error("Font argument must be a string.");if(wC[e])return wC[e];if(e==="")throw new Error("Cannot parse an empty string.");if(oNt.indexOf(e)!==-1)return wC[e]={system:e};for(var t={style:"normal",variant:"normal",weight:"normal",stretch:"normal",lineHeight:"normal",size:"1rem",family:["serif"]},r=KY(e,/\s+/),n;n=r.shift();){if(aNt.indexOf(n)!==-1)return["style","variant","weight","stretch"].forEach(function(a){t[a]=n}),wC[e]=t;if(lNt.indexOf(n)!==-1){t.style=n;continue}if(n==="normal"||n==="small-caps"){t.variant=n;continue}if(uNt.indexOf(n)!==-1){t.stretch=n;continue}if(sNt.indexOf(n)!==-1){t.weight=n;continue}if(cNt(n)){var i=KY(n,"/");if(t.size=i[0],i[1]!=null?t.lineHeight=gqe(i[1]):r[0]==="/"&&(r.shift(),t.lineHeight=gqe(r.shift())),!r.length)throw new Error("Missing required font-family.");return t.family=KY(r.join(" "),/\s*,\s*/).map(nNt),wC[e]=t}throw new Error("Unknown or unsupported font token: "+n)}throw new Error("Missing required font-size.")}function gqe(e){var t=parseFloat(e);return t.toString()===e?t:e}});var $Y=ye((a1r,xqe)=>{"use strict";var fNt=Xm(),hNt=YY().isSize,dNt=AC(GY()),vNt=AC(HY()),pNt=AC(jY()),gNt=AC(WY()),mNt=AC(XY()),yNt={normal:1,"small-caps":1},_Nt={serif:1,"sans-serif":1,monospace:1,cursive:1,fantasy:1,"system-ui":1},JY={style:"normal",variant:"normal",weight:"normal",stretch:"normal",size:"1rem",lineHeight:"normal",family:"serif"};xqe.exports=function(t){if(t=fNt(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&&TC(t.system,vNt),t.system;if(TC(t.style,gNt),TC(t.variant,yNt),TC(t.weight,pNt),TC(t.stretch,mNt),t.size==null&&(t.size=JY.size),typeof t.size=="number"&&(t.size+="px"),!hNt)throw Error("Bad size value `"+t.size+"`");t.family||(t.family=JY.family),Array.isArray(t.family)&&(t.family.length||(t.family=[JY.family]),t.family=t.family.map(function(n){return _Nt[n]?n:'"'+n+'"'}).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 TC(e,t){if(e&&!t[e]&&!dNt[e])throw Error("Unknown keyword `"+e+"`");return e}function AC(e){for(var t={},r=0;r{"use strict";bqe.exports={parse:_qe(),stringify:$Y()}});var Tqe=ye((QY,eK)=>{(function(e,t){typeof QY=="object"&&typeof eK!="undefined"?eK.exports=t():e.createREGL=t()})(QY,function(){"use strict";var e=function(Ee,xt){for(var zt=Object.keys(xt),Ir=0;Ir1&&xt===zt&&(xt==='"'||xt==="'"))return['"'+o(Ee.substr(1,Ee.length-2))+'"'];var Ir=/\[(false|true|null|\d+|'[^']*'|"[^"]*")\]/.exec(Ee);if(Ir)return s(Ee.substr(0,Ir.index)).concat(s(Ir[1])).concat(s(Ee.substr(Ir.index+Ir[0].length)));var Hr=Ee.split(".");if(Hr.length===1)return['"'+o(Ee)+'"'];for(var Br=[],Vr=0;Vr65535)<<4,Ee>>>=xt,zt=(Ee>255)<<3,Ee>>>=zt,xt|=zt,zt=(Ee>15)<<2,Ee>>>=zt,xt|=zt,zt=(Ee>3)<<1,Ee>>>=zt,xt|=zt,xt|Ee>>1}function N(){var Ee=M(8,function(){return[]});function xt(Br){var Vr=Z(Br),mi=Ee[H(Vr)>>2];return mi.length>0?mi.pop():new ArrayBuffer(Vr)}function zt(Br){Ee[H(Br.byteLength)>>2].push(Br)}function Ir(Br,Vr){var mi=null;switch(Br){case g:mi=new Int8Array(xt(Vr),0,Vr);break;case P:mi=new Uint8Array(xt(Vr),0,Vr);break;case T:mi=new Int16Array(xt(2*Vr),0,Vr);break;case z:mi=new Uint16Array(xt(2*Vr),0,Vr);break;case O:mi=new Int32Array(xt(4*Vr),0,Vr);break;case V:mi=new Uint32Array(xt(4*Vr),0,Vr);break;case G:mi=new Float32Array(xt(4*Vr),0,Vr);break;default:return null}return mi.length!==Vr?mi.subarray(0,Vr):mi}function Hr(Br){zt(Br.buffer)}return{alloc:xt,free:zt,allocType:Ir,freeType:Hr}}var j=N();j.zero=N();var re=3408,oe=3410,_e=3411,Me=3412,ke=3413,me=3414,ie=3415,Se=33901,Le=33902,Ae=3379,De=3386,Pe=34921,ge=36347,Fe=36348,ce=35661,Ze=35660,ct=34930,pt=36349,Wt=34076,st=34024,lt=7936,Gt=7937,Nt=7938,$t=35724,sr=34047,wr=36063,ur=34852,Qe=3553,Et=34067,er=34069,Ut=33984,Ft=6408,bt=5126,yt=5121,Yt=36160,lr=36053,Tr=36064,Rr=16384,ei=function(Ee,xt){var zt=1;xt.ext_texture_filter_anisotropic&&(zt=Ee.getParameter(sr));var Ir=1,Hr=1;xt.webgl_draw_buffers&&(Ir=Ee.getParameter(ur),Hr=Ee.getParameter(wr));var Br=!!xt.oes_texture_float;if(Br){var Vr=Ee.createTexture();Ee.bindTexture(Qe,Vr),Ee.texImage2D(Qe,0,Ft,1,1,0,Ft,bt,null);var mi=Ee.createFramebuffer();if(Ee.bindFramebuffer(Yt,mi),Ee.framebufferTexture2D(Yt,Tr,Qe,Vr,0),Ee.bindTexture(Qe,null),Ee.checkFramebufferStatus(Yt)!==lr)Br=!1;else{Ee.viewport(0,0,1,1),Ee.clearColor(1,0,0,1),Ee.clear(Rr);var Ni=j.allocType(bt,4);Ee.readPixels(0,0,1,1,Ft,bt,Ni),Ee.getError()?Br=!1:(Ee.deleteFramebuffer(mi),Ee.deleteTexture(Vr),Br=Ni[0]===1),j.freeType(Ni)}}var Oi=typeof navigator!="undefined"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion)||/Edge/.test(navigator.userAgent)),Mi=!0;if(!Oi){var Hn=Ee.createTexture(),Qi=j.allocType(yt,36);Ee.activeTexture(Ut),Ee.bindTexture(Et,Hn),Ee.texImage2D(er,0,Ft,3,3,0,Ft,yt,Qi),j.freeType(Qi),Ee.bindTexture(Et,null),Ee.deleteTexture(Hn),Mi=!Ee.getError()}return{colorBits:[Ee.getParameter(oe),Ee.getParameter(_e),Ee.getParameter(Me),Ee.getParameter(ke)],depthBits:Ee.getParameter(me),stencilBits:Ee.getParameter(ie),subpixelBits:Ee.getParameter(re),extensions:Object.keys(xt).filter(function(ji){return!!xt[ji]}),maxAnisotropic:zt,maxDrawbuffers:Ir,maxColorAttachments:Hr,pointSizeDims:Ee.getParameter(Se),lineWidthDims:Ee.getParameter(Le),maxViewportDims:Ee.getParameter(De),maxCombinedTextureUnits:Ee.getParameter(ce),maxCubeMapSize:Ee.getParameter(Wt),maxRenderbufferSize:Ee.getParameter(st),maxTextureUnits:Ee.getParameter(ct),maxTextureSize:Ee.getParameter(Ae),maxAttributes:Ee.getParameter(Pe),maxVertexUniforms:Ee.getParameter(ge),maxVertexTextureUnits:Ee.getParameter(Ze),maxVaryingVectors:Ee.getParameter(Fe),maxFragmentUniforms:Ee.getParameter(pt),glsl:Ee.getParameter($t),renderer:Ee.getParameter(Gt),vendor:Ee.getParameter(lt),version:Ee.getParameter(Nt),readFloat:Br,npotTextureCube:Mi}},Wr=function(Ee){return Ee instanceof Uint8Array||Ee instanceof Uint16Array||Ee instanceof Uint32Array||Ee instanceof Int8Array||Ee instanceof Int16Array||Ee instanceof Int32Array||Ee instanceof Float32Array||Ee instanceof Float64Array||Ee instanceof Uint8ClampedArray};function Ur(Ee){return!!Ee&&typeof Ee=="object"&&Array.isArray(Ee.shape)&&Array.isArray(Ee.stride)&&typeof Ee.offset=="number"&&Ee.shape.length===Ee.stride.length&&(Array.isArray(Ee.data)||Wr(Ee.data))}var dt=function(Ee){return Object.keys(Ee).map(function(xt){return Ee[xt]})},Ge={shape:xe,flatten:Ie};function Je(Ee,xt,zt){for(var Ir=0;Ir0){var qn;if(Array.isArray(Yr[0])){Xi=kn(Yr);for(var vi=1,li=1;li0){if(typeof vi[0]=="number"){var Ui=j.allocType(ci.dtype,vi.length);Er(Ui,vi),Xi(Ui,mn),j.freeType(Ui)}else if(Array.isArray(vi[0])||Wr(vi[0])){Ki=kn(vi);var Bi=Vn(vi,Ki,ci.dtype);Xi(Bi,mn),j.freeType(Bi)}}}else if(Ur(vi)){Ki=vi.shape;var vn=vi.stride,Un=0,na=0,Yi=0,Ln=0;Ki.length===1?(Un=Ki[0],na=1,Yi=vn[0],Ln=0):Ki.length===2&&(Un=Ki[0],na=Ki[1],Yi=vn[0],Ln=vn[1]);var ra=Array.isArray(vi.data)?ci.dtype:ar(vi.data),oa=j.allocType(ra,Un*na);Zr(oa,vi.data,Un,na,Yi,Ln,vi.offset),Xi(oa,mn),j.freeType(oa)}return nn}return xi||nn(Mr),nn._reglType="buffer",nn._buffer=ci,nn.subdata=qn,zt.profile&&(nn.stats=ci.stats),nn.destroy=function(){Qi(ci)},nn}function si(){dt(Br).forEach(function(Mr){Mr.buffer=Ee.createBuffer(),Ee.bindBuffer(Mr.type,Mr.buffer),Ee.bufferData(Mr.type,Mr.persistentData||Mr.byteLength,Mr.usage)})}return zt.profile&&(xt.getTotalBufferSize=function(){var Mr=0;return Object.keys(Br).forEach(function(Yr){Mr+=Br[Yr].stats.size}),Mr}),{create:ji,createStream:Ni,destroyStream:Oi,clear:function(){dt(Br).forEach(Qi),mi.forEach(Qi)},getBuffer:function(Mr){return Mr&&Mr._buffer instanceof Vr?Mr._buffer:null},restore:si,_initBuffer:Hn}}var $r=0,zi=0,Ji=1,en=1,cn=4,yn=4,Mn={points:$r,point:zi,lines:Ji,line:en,triangles:cn,triangle:yn,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},Ba=0,la=1,ma=4,Wa=5120,Fa=5121,Wo=5122,da=5123,Wn=5124,Ga=5125,vo=34963,jn=35040,St=35044;function Cr(Ee,xt,zt,Ir){var Hr={},Br=0,Vr={uint8:Fa,uint16:da};xt.oes_element_index_uint&&(Vr.uint32=Ga);function mi(si){this.id=Br++,Hr[this.id]=this,this.buffer=si,this.primType=ma,this.vertCount=0,this.type=0}mi.prototype.bind=function(){this.buffer.bind()};var Ni=[];function Oi(si){var Mr=Ni.pop();return Mr||(Mr=new mi(zt.create(null,vo,!0,!1)._buffer)),Hn(Mr,si,jn,-1,-1,0,0),Mr}function Mi(si){Ni.push(si)}function Hn(si,Mr,Yr,xi,Ii,ci,nn){si.buffer.bind();var Xi;if(Mr){var qn=nn;!nn&&(!Wr(Mr)||Ur(Mr)&&!Wr(Mr.data))&&(qn=xt.oes_element_index_uint?Ga:da),zt._initBuffer(si.buffer,Mr,Yr,qn,3)}else Ee.bufferData(vo,ci,Yr),si.buffer.dtype=Xi||Fa,si.buffer.usage=Yr,si.buffer.dimension=3,si.buffer.byteLength=ci;if(Xi=nn,!nn){switch(si.buffer.dtype){case Fa:case Wa:Xi=Fa;break;case da:case Wo:Xi=da;break;case Ga:case Wn:Xi=Ga;break;default:}si.buffer.dtype=Xi}si.type=Xi;var vi=Ii;vi<0&&(vi=si.buffer.byteLength,Xi===da?vi>>=1:Xi===Ga&&(vi>>=2)),si.vertCount=vi;var li=xi;if(xi<0){li=ma;var mn=si.buffer.dimension;mn===1&&(li=Ba),mn===2&&(li=la),mn===3&&(li=ma)}si.primType=li}function Qi(si){Ir.elementsCount--,delete Hr[si.id],si.buffer.destroy(),si.buffer=null}function ji(si,Mr){var Yr=zt.create(null,vo,!0),xi=new mi(Yr._buffer);Ir.elementsCount++;function Ii(ci){if(!ci)Yr(),xi.primType=ma,xi.vertCount=0,xi.type=Fa;else if(typeof ci=="number")Yr(ci),xi.primType=ma,xi.vertCount=ci|0,xi.type=Fa;else{var nn=null,Xi=St,qn=-1,vi=-1,li=0,mn=0;Array.isArray(ci)||Wr(ci)||Ur(ci)?nn=ci:("data"in ci&&(nn=ci.data),"usage"in ci&&(Xi=pn[ci.usage]),"primitive"in ci&&(qn=Mn[ci.primitive]),"count"in ci&&(vi=ci.count|0),"type"in ci&&(mn=Vr[ci.type]),"length"in ci?li=ci.length|0:(li=vi,mn===da||mn===Wo?li*=2:(mn===Ga||mn===Wn)&&(li*=4))),Hn(xi,nn,Xi,qn,vi,li,mn)}return Ii}return Ii(si),Ii._reglType="elements",Ii._elements=xi,Ii.subdata=function(ci,nn){return Yr.subdata(ci,nn),Ii},Ii.destroy=function(){Qi(xi)},Ii}return{create:ji,createStream:Oi,destroyStream:Mi,getElements:function(si){return typeof si=="function"&&si._elements instanceof mi?si._elements:null},clear:function(){dt(Hr).forEach(Qi)}}}var Qr=new Float32Array(1),pi=new Uint32Array(Qr.buffer),fn=5123;function Sn(Ee){for(var xt=j.allocType(fn,Ee.length),zt=0;zt>>31<<15,Br=(Ir<<1>>>24)-127,Vr=Ir>>13&1023;if(Br<-24)xt[zt]=Hr;else if(Br<-14){var mi=-14-Br;xt[zt]=Hr+(Vr+1024>>mi)}else Br>15?xt[zt]=Hr+31744:xt[zt]=Hr+(Br+15<<10)+Vr}return xt}function En(Ee){return Array.isArray(Ee)||Wr(Ee)}var ki=34467,_n=3553,ya=34067,Jn=34069,Ma=6408,_o=6406,No=6407,po=6409,Lo=6410,Co=32854,Fs=32855,zs=36194,ul=32819,cl=32820,Fl=33635,cs=34042,nl=6402,Ss=34041,fl=35904,Js=35906,Os=36193,Io=33776,us=33777,Zl=33778,Su=33779,nc=35986,ws=35987,Fn=34798,_a=35840,Vu=35841,zl=35842,xo=35843,Yl=36196,Us=5121,Hl=5123,ac=5125,aa=5126,Oo=10242,qo=10243,Ol=10497,Pc=33071,Do=33648,rf=10240,Uf=10241,ml=9728,Zc=9729,Kl=9984,qs=9985,yu=9986,oc=9987,Cf=33170,sc=4352,Nh=4353,kf=4354,fs=34046,nf=3317,Vf=37440,Jl=37441,hl=37443,lc=37444,Fu=33984,Cs=[Kl,yu,qs,oc],js=[0,po,Lo,No,Ma],Go={};Go[po]=Go[_o]=Go[nl]=1,Go[Ss]=Go[Lo]=2,Go[No]=Go[fl]=3,Go[Ma]=Go[Js]=4;function gs(Ee){return"[object "+Ee+"]"}var uc=gs("HTMLCanvasElement"),xl=gs("OffscreenCanvas"),Gu=gs("CanvasRenderingContext2D"),Bs=gs("ImageBitmap"),ad=gs("HTMLImageElement"),Po=gs("HTMLVideoElement"),od=Object.keys(Ce).concat([uc,xl,Gu,Bs,ad,Po]),Yo=[];Yo[Us]=1,Yo[aa]=4,Yo[Os]=2,Yo[Hl]=2,Yo[ac]=4;var Pa=[];Pa[Co]=2,Pa[Fs]=2,Pa[zs]=2,Pa[Ss]=4,Pa[Io]=.5,Pa[us]=.5,Pa[Zl]=1,Pa[Su]=1,Pa[nc]=.5,Pa[ws]=1,Pa[Fn]=1,Pa[_a]=.5,Pa[Vu]=.25,Pa[zl]=.5,Pa[xo]=.25,Pa[Yl]=.5;function af(Ee){return Array.isArray(Ee)&&(Ee.length===0||typeof Ee[0]=="number")}function Hu(Ee){if(!Array.isArray(Ee))return!1;var xt=Ee.length;return!(xt===0||!En(Ee[0]))}function bl(Ee){return Object.prototype.toString.call(Ee)}function Gf(Ee){return bl(Ee)===uc}function Ic(Ee){return bl(Ee)===xl}function mf(Ee){return bl(Ee)===Gu}function ql(Ee){return bl(Ee)===Bs}function _h(Ee){return bl(Ee)===ad}function Qf(Ee){return bl(Ee)===Po}function yf(Ee){if(!Ee)return!1;var xt=bl(Ee);return od.indexOf(xt)>=0?!0:af(Ee)||Hu(Ee)||Ur(Ee)}function Yc(Ee){return Ce[Object.prototype.toString.call(Ee)]|0}function eh(Ee,xt){var zt=xt.length;switch(Ee.type){case Us:case Hl:case ac:case aa:var Ir=j.allocType(Ee.type,zt);Ir.set(xt),Ee.data=Ir;break;case Os:Ee.data=Sn(xt);break;default:}}function th(Ee,xt){return j.allocType(Ee.type===Os?aa:Ee.type,xt)}function ju(Ee,xt){Ee.type===Os?(Ee.data=Sn(xt),j.freeType(xt)):Ee.data=xt}function Hf(Ee,xt,zt,Ir,Hr,Br){for(var Vr=Ee.width,mi=Ee.height,Ni=Ee.channels,Oi=Vr*mi*Ni,Mi=th(Ee,Oi),Hn=0,Qi=0;Qi=1;)mi+=Vr*Ni*Ni,Ni/=2;return mi}else return Vr*zt*Ir}function of(Ee,xt,zt,Ir,Hr,Br,Vr){var mi={"don't care":sc,"dont care":sc,nice:kf,fast:Nh},Ni={repeat:Ol,clamp:Pc,mirror:Do},Oi={nearest:ml,linear:Zc},Mi=e({mipmap:oc,"nearest mipmap nearest":Kl,"linear mipmap nearest":qs,"nearest mipmap linear":yu,"linear mipmap linear":oc},Oi),Hn={none:0,browser:lc},Qi={uint8:Us,rgba4:ul,rgb565:Fl,"rgb5 a1":cl},ji={alpha:_o,luminance:po,"luminance alpha":Lo,rgb:No,rgba:Ma,rgba4:Co,"rgb5 a1":Fs,rgb565:zs},si={};xt.ext_srgb&&(ji.srgb=fl,ji.srgba=Js),xt.oes_texture_float&&(Qi.float32=Qi.float=aa),xt.oes_texture_half_float&&(Qi.float16=Qi["half float"]=Os),xt.webgl_depth_texture&&(e(ji,{depth:nl,"depth stencil":Ss}),e(Qi,{uint16:Hl,uint32:ac,"depth stencil":cs})),xt.webgl_compressed_texture_s3tc&&e(si,{"rgb s3tc dxt1":Io,"rgba s3tc dxt1":us,"rgba s3tc dxt3":Zl,"rgba s3tc dxt5":Su}),xt.webgl_compressed_texture_atc&&e(si,{"rgb atc":nc,"rgba atc explicit alpha":ws,"rgba atc interpolated alpha":Fn}),xt.webgl_compressed_texture_pvrtc&&e(si,{"rgb pvrtc 4bppv1":_a,"rgb pvrtc 2bppv1":Vu,"rgba pvrtc 4bppv1":zl,"rgba pvrtc 2bppv1":xo}),xt.webgl_compressed_texture_etc1&&(si["rgb etc1"]=Yl);var Mr=Array.prototype.slice.call(Ee.getParameter(ki));Object.keys(si).forEach(function(ne){var we=si[ne];Mr.indexOf(we)>=0&&(ji[ne]=we)});var Yr=Object.keys(ji);zt.textureFormats=Yr;var xi=[];Object.keys(ji).forEach(function(ne){var we=ji[ne];xi[we]=ne});var Ii=[];Object.keys(Qi).forEach(function(ne){var we=Qi[ne];Ii[we]=ne});var ci=[];Object.keys(Oi).forEach(function(ne){var we=Oi[ne];ci[we]=ne});var nn=[];Object.keys(Mi).forEach(function(ne){var we=Mi[ne];nn[we]=ne});var Xi=[];Object.keys(Ni).forEach(function(ne){var we=Ni[ne];Xi[we]=ne});var qn=Yr.reduce(function(ne,we){var Ue=ji[we];return Ue===po||Ue===_o||Ue===po||Ue===Lo||Ue===nl||Ue===Ss||xt.ext_srgb&&(Ue===fl||Ue===Js)?ne[Ue]=Ue:Ue===Fs||we.indexOf("rgba")>=0?ne[Ue]=Ma:ne[Ue]=No,ne},{});function vi(){this.internalformat=Ma,this.format=Ma,this.type=Us,this.compressed=!1,this.premultiplyAlpha=!1,this.flipY=!1,this.unpackAlignment=1,this.colorSpace=lc,this.width=0,this.height=0,this.channels=0}function li(ne,we){ne.internalformat=we.internalformat,ne.format=we.format,ne.type=we.type,ne.compressed=we.compressed,ne.premultiplyAlpha=we.premultiplyAlpha,ne.flipY=we.flipY,ne.unpackAlignment=we.unpackAlignment,ne.colorSpace=we.colorSpace,ne.width=we.width,ne.height=we.height,ne.channels=we.channels}function mn(ne,we){if(!(typeof we!="object"||!we)){if("premultiplyAlpha"in we&&(ne.premultiplyAlpha=we.premultiplyAlpha),"flipY"in we&&(ne.flipY=we.flipY),"alignment"in we&&(ne.unpackAlignment=we.alignment),"colorSpace"in we&&(ne.colorSpace=Hn[we.colorSpace]),"type"in we){var Ue=we.type;ne.type=Qi[Ue]}var ft=ne.width,Zt=ne.height,hr=ne.channels,qt=!1;"shape"in we?(ft=we.shape[0],Zt=we.shape[1],we.shape.length===3&&(hr=we.shape[2],qt=!0)):("radius"in we&&(ft=Zt=we.radius),"width"in we&&(ft=we.width),"height"in we&&(Zt=we.height),"channels"in we&&(hr=we.channels,qt=!0)),ne.width=ft|0,ne.height=Zt|0,ne.channels=hr|0;var Ve=!1;if("format"in we){var et=we.format,at=ne.internalformat=ji[et];ne.format=qn[at],et in Qi&&("type"in we||(ne.type=Qi[et])),et in si&&(ne.compressed=!0),Ve=!0}!qt&&Ve?ne.channels=Go[ne.format]:qt&&!Ve&&ne.channels!==js[ne.format]&&(ne.format=ne.internalformat=js[ne.channels])}}function Ki(ne){Ee.pixelStorei(Vf,ne.flipY),Ee.pixelStorei(Jl,ne.premultiplyAlpha),Ee.pixelStorei(hl,ne.colorSpace),Ee.pixelStorei(nf,ne.unpackAlignment)}function Ui(){vi.call(this),this.xOffset=0,this.yOffset=0,this.data=null,this.needsFree=!1,this.element=null,this.needsCopy=!1}function Bi(ne,we){var Ue=null;if(yf(we)?Ue=we:we&&(mn(ne,we),"x"in we&&(ne.xOffset=we.x|0),"y"in we&&(ne.yOffset=we.y|0),yf(we.data)&&(Ue=we.data)),we.copy){var ft=Hr.viewportWidth,Zt=Hr.viewportHeight;ne.width=ne.width||ft-ne.xOffset,ne.height=ne.height||Zt-ne.yOffset,ne.needsCopy=!0}else if(!Ue)ne.width=ne.width||1,ne.height=ne.height||1,ne.channels=ne.channels||4;else if(Wr(Ue))ne.channels=ne.channels||4,ne.data=Ue,!("type"in we)&&ne.type===Us&&(ne.type=Yc(Ue));else if(af(Ue))ne.channels=ne.channels||4,eh(ne,Ue),ne.alignment=1,ne.needsFree=!0;else if(Ur(Ue)){var hr=Ue.data;!Array.isArray(hr)&&ne.type===Us&&(ne.type=Yc(hr));var qt=Ue.shape,Ve=Ue.stride,et,at,kt,Ot,It,Bt;qt.length===3?(kt=qt[2],Bt=Ve[2]):(kt=1,Bt=1),et=qt[0],at=qt[1],Ot=Ve[0],It=Ve[1],ne.alignment=1,ne.width=et,ne.height=at,ne.channels=kt,ne.format=ne.internalformat=js[kt],ne.needsFree=!0,Hf(ne,hr,Ot,It,Bt,Ue.offset)}else if(Gf(Ue)||Ic(Ue)||mf(Ue))Gf(Ue)||Ic(Ue)?ne.element=Ue:ne.element=Ue.canvas,ne.width=ne.element.width,ne.height=ne.element.height,ne.channels=4;else if(ql(Ue))ne.element=Ue,ne.width=Ue.width,ne.height=Ue.height,ne.channels=4;else if(_h(Ue))ne.element=Ue,ne.width=Ue.naturalWidth,ne.height=Ue.naturalHeight,ne.channels=4;else if(Qf(Ue))ne.element=Ue,ne.width=Ue.videoWidth,ne.height=Ue.videoHeight,ne.channels=4;else if(Hu(Ue)){var Rt=ne.width||Ue[0].length,mt=ne.height||Ue.length,Pt=ne.channels;En(Ue[0][0])?Pt=Pt||Ue[0][0].length:Pt=Pt||1;for(var ht=Ge.shape(Ue),cr=1,br=0;br>=Zt,Ue.height>>=Zt,Bi(Ue,ft[Zt]),ne.mipmask|=1<=0&&!("faces"in we)&&(ne.genMipmaps=!0)}if("mag"in we){var ft=we.mag;ne.magFilter=Oi[ft]}var Zt=ne.wrapS,hr=ne.wrapT;if("wrap"in we){var qt=we.wrap;typeof qt=="string"?Zt=hr=Ni[qt]:Array.isArray(qt)&&(Zt=Ni[qt[0]],hr=Ni[qt[1]])}else{if("wrapS"in we){var Ve=we.wrapS;Zt=Ni[Ve]}if("wrapT"in we){var et=we.wrapT;hr=Ni[et]}}if(ne.wrapS=Zt,ne.wrapT=hr,"anisotropic"in we){var at=we.anisotropic;ne.anisotropic=we.anisotropic}if("mipmap"in we){var kt=!1;switch(typeof we.mipmap){case"string":ne.mipmapHint=mi[we.mipmap],ne.genMipmaps=!0,kt=!0;break;case"boolean":kt=ne.genMipmaps=we.mipmap;break;case"object":ne.genMipmaps=!1,kt=!0;break;default:}kt&&!("min"in we)&&(ne.minFilter=Kl)}}function ol(ne,we){Ee.texParameteri(we,Uf,ne.minFilter),Ee.texParameteri(we,rf,ne.magFilter),Ee.texParameteri(we,Oo,ne.wrapS),Ee.texParameteri(we,qo,ne.wrapT),xt.ext_texture_filter_anisotropic&&Ee.texParameteri(we,fs,ne.anisotropic),ne.genMipmaps&&(Ee.hint(Cf,ne.mipmapHint),Ee.generateMipmap(we))}var Ul=0,ls={},Gs=zt.maxTextureUnits,Ks=Array(Gs).map(function(){return null});function Ta(ne){vi.call(this),this.mipmask=0,this.internalformat=Ma,this.id=Ul++,this.refCount=1,this.target=ne,this.texture=Ee.createTexture(),this.unit=-1,this.bindCount=0,this.texInfo=new zo,Vr.profile&&(this.stats={size:0})}function sl(ne){Ee.activeTexture(Fu),Ee.bindTexture(ne.target,ne.texture)}function io(){var ne=Ks[0];ne?Ee.bindTexture(ne.target,ne.texture):Ee.bindTexture(_n,null)}function Y(ne){var we=ne.texture,Ue=ne.unit,ft=ne.target;Ue>=0&&(Ee.activeTexture(Fu+Ue),Ee.bindTexture(ft,null),Ks[Ue]=null),Ee.deleteTexture(we),ne.texture=null,ne.params=null,ne.pixels=null,ne.refCount=0,delete ls[ne.id],Br.textureCount--}e(Ta.prototype,{bind:function(){var ne=this;ne.bindCount+=1;var we=ne.unit;if(we<0){for(var Ue=0;Ue0)continue;ft.unit=-1}Ks[Ue]=ne,we=Ue;break}we>=Gs,Vr.profile&&Br.maxTextureUnits>It)-kt,Bt.height=Bt.height||(Ue.height>>It)-Ot,sl(Ue),Un(Bt,_n,kt,Ot,It),io(),Ln(Bt),ft}function hr(qt,Ve){var et=qt|0,at=Ve|0||et;if(et===Ue.width&&at===Ue.height)return ft;ft.width=Ue.width=et,ft.height=Ue.height=at,sl(Ue);for(var kt=0;Ue.mipmask>>kt;++kt){var Ot=et>>kt,It=at>>kt;if(!Ot||!It)break;Ee.texImage2D(_n,kt,Ue.format,Ot,It,0,Ue.format,Ue.type,null)}return io(),Vr.profile&&(Ue.stats.size=cc(Ue.internalformat,Ue.type,et,at,!1,!1)),ft}return ft(ne,we),ft.subimage=Zt,ft.resize=hr,ft._reglType="texture2d",ft._texture=Ue,Vr.profile&&(ft.stats=Ue.stats),ft.destroy=function(){Ue.decRef()},ft}function J(ne,we,Ue,ft,Zt,hr){var qt=new Ta(ya);ls[qt.id]=qt,Br.cubeCount++;var Ve=new Array(6);function et(Ot,It,Bt,Rt,mt,Pt){var ht,cr=qt.texInfo;for(zo.call(cr),ht=0;ht<6;++ht)Ve[ht]=Va();if(typeof Ot=="number"||!Ot){var br=Ot|0||1;for(ht=0;ht<6;++ht)oa(Ve[ht],br,br)}else if(typeof Ot=="object")if(It)wa(Ve[0],Ot),wa(Ve[1],It),wa(Ve[2],Bt),wa(Ve[3],Rt),wa(Ve[4],mt),wa(Ve[5],Pt);else if(el(cr,Ot),mn(qt,Ot),"faces"in Ot){var Nr=Ot.faces;for(ht=0;ht<6;++ht)li(Ve[ht],qt),wa(Ve[ht],Nr[ht])}else for(ht=0;ht<6;++ht)wa(Ve[ht],Ot);for(li(qt,Ve[0]),cr.genMipmaps?qt.mipmask=(Ve[0].width<<1)-1:qt.mipmask=Ve[0].mipmask,qt.internalformat=Ve[0].internalformat,et.width=Ve[0].width,et.height=Ve[0].height,sl(qt),ht=0;ht<6;++ht)ns(Ve[ht],Jn+ht);for(ol(cr,ya),io(),Vr.profile&&(qt.stats.size=cc(qt.internalformat,qt.type,et.width,et.height,cr.genMipmaps,!0)),et.format=xi[qt.internalformat],et.type=Ii[qt.type],et.mag=ci[cr.magFilter],et.min=nn[cr.minFilter],et.wrapS=Xi[cr.wrapS],et.wrapT=Xi[cr.wrapT],ht=0;ht<6;++ht)Ml(Ve[ht]);return et}function at(Ot,It,Bt,Rt,mt){var Pt=Bt|0,ht=Rt|0,cr=mt|0,br=Yi();return li(br,qt),br.width=0,br.height=0,Bi(br,It),br.width=br.width||(qt.width>>cr)-Pt,br.height=br.height||(qt.height>>cr)-ht,sl(qt),Un(br,Jn+Ot,Pt,ht,cr),io(),Ln(br),et}function kt(Ot){var It=Ot|0;if(It!==qt.width){et.width=qt.width=It,et.height=qt.height=It,sl(qt);for(var Bt=0;Bt<6;++Bt)for(var Rt=0;qt.mipmask>>Rt;++Rt)Ee.texImage2D(Jn+Bt,Rt,qt.format,It>>Rt,It>>Rt,0,qt.format,qt.type,null);return io(),Vr.profile&&(qt.stats.size=cc(qt.internalformat,qt.type,et.width,et.height,!1,!0)),et}}return et(ne,we,Ue,ft,Zt,hr),et.subimage=at,et.resize=kt,et._reglType="textureCube",et._texture=qt,Vr.profile&&(et.stats=qt.stats),et.destroy=function(){qt.decRef()},et}function q(){for(var ne=0;ne>ft,Ue.height>>ft,0,Ue.internalformat,Ue.type,null);else for(var Zt=0;Zt<6;++Zt)Ee.texImage2D(Jn+Zt,ft,Ue.internalformat,Ue.width>>ft,Ue.height>>ft,0,Ue.internalformat,Ue.type,null);ol(Ue.texInfo,Ue.target)})}function de(){for(var ne=0;ne=0?Ml=!0:Ni.indexOf(zo)>=0&&(Ml=!1))),("depthTexture"in Ta||"depthStencilTexture"in Ta)&&(Ks=!!(Ta.depthTexture||Ta.depthStencilTexture)),"depth"in Ta&&(typeof Ta.depth=="boolean"?ns=Ta.depth:(Ul=Ta.depth,Ys=!1)),"stencil"in Ta&&(typeof Ta.stencil=="boolean"?Ys=Ta.stencil:(ls=Ta.stencil,ns=!1)),"depthStencil"in Ta&&(typeof Ta.depthStencil=="boolean"?ns=Ys=Ta.depthStencil:(Gs=Ta.depthStencil,ns=!1,Ys=!1))}var io=null,Y=null,D=null,J=null;if(Array.isArray(Va))io=Va.map(si);else if(Va)io=[si(Va)];else for(io=new Array(ol),ra=0;ra0&&(Ln.depth=Bi[0].depth,Ln.stencil=Bi[0].stencil,Ln.depthStencil=Bi[0].depthStencil),Bi[Yi]?Bi[Yi](Ln):Bi[Yi]=li(Ln)}return e(vn,{width:ra,height:ra,color:zo})}function Un(na){var Yi,Ln=na|0;if(Ln===vn.width)return vn;var ra=vn.color;for(Yi=0;Yi=ra.byteLength?oa.subdata(ra):(oa.destroy(),li.buffers[na]=null)),li.buffers[na]||(oa=li.buffers[na]=Hr.create(Yi,Pf,!1,!0)),Ln.buffer=Hr.getBuffer(oa),Ln.size=Ln.buffer.dimension|0,Ln.normalized=!1,Ln.type=Ln.buffer.dtype,Ln.offset=0,Ln.stride=0,Ln.divisor=0,Ln.state=1,vn[na]=1}else Hr.getBuffer(Yi)?(Ln.buffer=Hr.getBuffer(Yi),Ln.size=Ln.buffer.dimension|0,Ln.normalized=!1,Ln.type=Ln.buffer.dtype,Ln.offset=0,Ln.stride=0,Ln.divisor=0,Ln.state=1):Hr.getBuffer(Yi.buffer)?(Ln.buffer=Hr.getBuffer(Yi.buffer),Ln.size=(+Yi.size||Ln.buffer.dimension)|0,Ln.normalized=!!Yi.normalized||!1,"type"in Yi?Ln.type=Hi[Yi.type]:Ln.type=Ln.buffer.dtype,Ln.offset=(Yi.offset||0)|0,Ln.stride=(Yi.stride||0)|0,Ln.divisor=(Yi.divisor||0)|0,Ln.state=1):"x"in Yi&&(Ln.x=+Yi.x||0,Ln.y=+Yi.y||0,Ln.z=+Yi.z||0,Ln.w=+Yi.w||0,Ln.state=2)}for(var wa=0;wa1)for(var Ki=0;KiMr&&(Mr=Yr.stats.uniformsCount)}),Mr},zt.getMaxAttributesCount=function(){var Mr=0;return Mi.forEach(function(Yr){Yr.stats.attributesCount>Mr&&(Mr=Yr.stats.attributesCount)}),Mr});function si(){Hr={},Br={};for(var Mr=0;Mr16&&(zt=Zi(zt,Ee.length*8));for(var Ir=Array(16),Hr=Array(16),Br=0;Br<16;Br++)Ir[Br]=zt[Br]^909522486,Hr[Br]=zt[Br]^1549556828;var Vr=Zi(Ir.concat(Bc(xt)),512+xt.length*8);return At(Zi(Hr.concat(Vr),768))}function pu(Ee){for(var xt=ah?"0123456789ABCDEF":"0123456789abcdef",zt="",Ir,Hr=0;Hr>>4&15)+xt.charAt(Ir&15);return zt}function qc(Ee){for(var xt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",zt="",Ir=Ee.length,Hr=0;HrEe.length*8?zt+=Zu:zt+=xt.charAt(Br>>>6*(3-Vr)&63);return zt}function cf(Ee,xt){var zt=xt.length,Ir=Array(),Hr,Br,Vr,mi,Ni=Array(Math.ceil(Ee.length/2));for(Hr=0;Hr0;){for(mi=Array(),Vr=0,Hr=0;Hr0||Br>0)&&(mi[mi.length]=Br);Ir[Ir.length]=Vr,Ni=mi}var Oi="";for(Hr=Ir.length-1;Hr>=0;Hr--)Oi+=xt.charAt(Ir[Hr]);var Mi=Math.ceil(Ee.length*8/(Math.log(xt.length)/Math.log(2)));for(Hr=Oi.length;Hr>>6&31,128|Ir&63):Ir<=65535?xt+=String.fromCharCode(224|Ir>>>12&15,128|Ir>>>6&63,128|Ir&63):Ir<=2097151&&(xt+=String.fromCharCode(240|Ir>>>18&7,128|Ir>>>12&63,128|Ir>>>6&63,128|Ir&63));return xt}function Bc(Ee){for(var xt=Array(Ee.length>>2),zt=0;zt>5]|=(Ee.charCodeAt(zt/8)&255)<<24-zt%32;return xt}function At(Ee){for(var xt="",zt=0;zt>5]>>>24-zt%32&255);return xt}function Xt(Ee,xt){return Ee>>>xt|Ee<<32-xt}function kr(Ee,xt){return Ee>>>xt}function Ar(Ee,xt,zt){return Ee&xt^~Ee&zt}function Kr(Ee,xt,zt){return Ee&xt^Ee&zt^xt&zt}function Ei(Ee){return Xt(Ee,2)^Xt(Ee,13)^Xt(Ee,22)}function Wi(Ee){return Xt(Ee,6)^Xt(Ee,11)^Xt(Ee,25)}function hn(Ee){return Xt(Ee,7)^Xt(Ee,18)^kr(Ee,3)}function Tn(Ee){return Xt(Ee,17)^Xt(Ee,19)^kr(Ee,10)}var Bn=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 Zi(Ee,xt){var zt=new Array(1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225),Ir=new Array(64),Hr,Br,Vr,mi,Ni,Oi,Mi,Hn,Qi,ji,si,Mr;for(Ee[xt>>5]|=128<<24-xt%32,Ee[(xt+64>>9<<4)+15]=xt,Qi=0;Qi>16)+(xt>>16)+(zt>>16);return Ir<<16|zt&65535}function an(Ee){return Array.prototype.slice.call(Ee)}function Di(Ee){return an(Ee).join("")}function $n(Ee){var xt=Ee&&Ee.cache,zt=0,Ir=[],Hr=[],Br=[];function Vr(si,Mr){var Yr=Mr&&Mr.stable;if(!Yr){for(var xi=0;xi0&&(si.push(Ii,"="),si.push.apply(si,an(arguments)),si.push(";")),Ii}return e(Mr,{def:xi,toString:function(){return Di([Yr.length>0?"var "+Yr.join(",")+";":"",Di(si)])}})}function Ni(){var si=mi(),Mr=mi(),Yr=si.toString,xi=Mr.toString;function Ii(ci,nn){Mr(ci,nn,"=",si.def(ci,nn),";")}return e(function(){si.apply(si,an(arguments))},{def:si.def,entry:si,exit:Mr,save:Ii,set:function(ci,nn,Xi){Ii(ci,nn),si(ci,nn,"=",Xi,";")},toString:function(){return Yr()+xi()}})}function Oi(){var si=Di(arguments),Mr=Ni(),Yr=Ni(),xi=Mr.toString,Ii=Yr.toString;return e(Mr,{then:function(){return Mr.apply(Mr,an(arguments)),this},else:function(){return Yr.apply(Yr,an(arguments)),this},toString:function(){var ci=Ii();return ci&&(ci="else{"+ci+"}"),Di(["if(",si,"){",xi(),"}",ci])}})}var Mi=mi(),Hn={};function Qi(si,Mr){var Yr=[];function xi(){var qn="a"+Yr.length;return Yr.push(qn),qn}Mr=Mr||0;for(var Ii=0;Ii":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},ni={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},gi={cw:Te,ccw:Ne};function Pi(Ee){return Array.isArray(Ee)||Wr(Ee)||Ur(Ee)}function Ai(Ee){return Ee.sort(function(xt,zt){return xt===ee?-1:zt===ee?1:xt=1,Ir>=2,xt)}else if(zt===Xo){var Hr=Ee.data;return new ti(Hr.thisDep,Hr.contextDep,Hr.propDep,xt)}else{if(zt===Ms)return new ti(!1,!1,!1,xt);if(zt===os){for(var Br=!1,Vr=!1,mi=!1,Ni=0;Ni=1&&(Vr=!0),Mi>=2&&(mi=!0)}else Oi.type===Xo&&(Br=Br||Oi.data.thisDep,Vr=Vr||Oi.data.contextDep,mi=mi||Oi.data.propDep)}return new ti(Br,Vr,mi,xt)}else return new ti(zt===bo,zt===Ka,zt===zn,xt)}}var ia=new ti(!1,!1,!1,function(){});function Ea(Ee,xt,zt,Ir,Hr,Br,Vr,mi,Ni,Oi,Mi,Hn,Qi,ji,si,Mr){var Yr=Oi.Record,xi={add:32774,subtract:32778,"reverse subtract":32779};zt.ext_blend_minmax&&(xi.min=He,xi.max=Ye);var Ii=zt.angle_instanced_arrays,ci=zt.webgl_draw_buffers,nn=zt.oes_vertex_array_object,Xi={dirty:!0,profile:Mr.profile},qn={},vi=[],li={},mn={};function Ki(Ve){return Ve.replace(".","_")}function Ui(Ve,et,at){var kt=Ki(Ve);vi.push(Ve),qn[kt]=Xi[kt]=!!at,li[kt]=et}function Bi(Ve,et,at){var kt=Ki(Ve);vi.push(Ve),Array.isArray(at)?(Xi[kt]=at.slice(),qn[kt]=at.slice()):Xi[kt]=qn[kt]=at,mn[kt]=et}function vn(Ve){return!!isNaN(Ve)}Ui(Ts,Li),Ui(Ho,ii),Bi(yl,"blendColor",[0,0,0,0]),Bi(Xs,"blendEquationSeparate",[yr,yr]),Bi(Ps,"blendFuncSeparate",[gr,jt,gr,jt]),Ui(va,sn,!0),Bi(no,"depthFunc",Gr),Bi(_s,"depthRange",[0,1]),Bi(is,"depthMask",!0),Bi($l,$l,[!0,!0,!0,!0]),Ui(ku,jr),Bi(Yu,"cullFace",se),Bi(Nc,Nc,Ne),Bi(gu,gu,1),Ui(Uc,Kn),Bi(xu,"polygonOffset",[0,0]),Ui(Ac,Aa),Ui(Ua,fa),Bi(oo,"sampleCoverage",[1,!1]),Ui(Vc,un),Bi(hc,"stencilMask",-1),Bi(Ku,"stencilFunc",[Ct,0,-1]),Bi(ue,"stencilOpSeparate",[X,nt,nt,nt]),Bi(w,"stencilOpSeparate",[se,nt,nt,nt]),Ui(B,In),Bi(Q,"scissor",[0,0,Ee.drawingBufferWidth,Ee.drawingBufferHeight]),Bi(ee,ee,[0,0,Ee.drawingBufferWidth,Ee.drawingBufferHeight]);var Un={gl:Ee,context:Qi,strings:xt,next:qn,current:Xi,draw:Hn,elements:Br,buffer:Hr,shader:Mi,attributes:Oi.state,vao:Oi,uniforms:Ni,framebuffer:mi,extensions:zt,timer:ji,isBufferArgs:Pi},na={primTypes:Mn,compareFuncs:Xr,blendFuncs:bi,blendEquations:xi,stencilOps:ni,glTypes:Hi,orientationType:gi};ci&&(na.backBuffer=[se],na.drawBuffer=M(Ir.maxDrawbuffers,function(Ve){return Ve===0?[0]:M(Ve,function(et){return _i+et})}));var Yi=0;function Ln(){var Ve=$n({cache:si}),et=Ve.link,at=Ve.global;Ve.id=Yi++,Ve.batchId="0";var kt=et(Un),Ot=Ve.shared={props:"a0"};Object.keys(Un).forEach(function(Pt){Ot[Pt]=at.def(kt,".",Pt)});var It=Ve.next={},Bt=Ve.current={};Object.keys(mn).forEach(function(Pt){Array.isArray(Xi[Pt])&&(It[Pt]=at.def(Ot.next,".",Pt),Bt[Pt]=at.def(Ot.current,".",Pt))});var Rt=Ve.constants={};Object.keys(na).forEach(function(Pt){Rt[Pt]=at.def(JSON.stringify(na[Pt]))}),Ve.invoke=function(Pt,ht){switch(ht.type){case Yn:var cr=["this",Ot.context,Ot.props,Ve.batchId];return Pt.def(et(ht.data),".call(",cr.slice(0,Math.max(ht.data.length+1,4)),")");case zn:return Pt.def(Ot.props,ht.data);case Ka:return Pt.def(Ot.context,ht.data);case bo:return Pt.def("this",ht.data);case Xo:return ht.data.append(Ve,Pt),ht.data.ref;case Ms:return ht.data.toString();case os:return ht.data.map(function(br){return Ve.invoke(Pt,br)})}},Ve.attribCache={};var mt={};return Ve.scopeAttrib=function(Pt){var ht=xt.id(Pt);if(ht in mt)return mt[ht];var cr=Oi.scope[ht];cr||(cr=Oi.scope[ht]=new Yr);var br=mt[ht]=et(cr);return br},Ve}function ra(Ve){var et=Ve.static,at=Ve.dynamic,kt;if(le in et){var Ot=!!et[le];kt=Cn(function(Bt,Rt){return Ot}),kt.enable=Ot}else if(le in at){var It=at[le];kt=Nn(It,function(Bt,Rt){return Bt.invoke(Rt,It)})}return kt}function oa(Ve,et){var at=Ve.static,kt=Ve.dynamic;if(qe in at){var Ot=at[qe];return Ot?(Ot=mi.getFramebuffer(Ot),Cn(function(Bt,Rt){var mt=Bt.link(Ot),Pt=Bt.shared;Rt.set(Pt.framebuffer,".next",mt);var ht=Pt.context;return Rt.set(ht,"."+Be,mt+".width"),Rt.set(ht,"."+tt,mt+".height"),mt})):Cn(function(Bt,Rt){var mt=Bt.shared;Rt.set(mt.framebuffer,".next","null");var Pt=mt.context;return Rt.set(Pt,"."+Be,Pt+"."+Ht),Rt.set(Pt,"."+tt,Pt+"."+rr),"null"})}else if(qe in kt){var It=kt[qe];return Nn(It,function(Bt,Rt){var mt=Bt.invoke(Rt,It),Pt=Bt.shared,ht=Pt.framebuffer,cr=Rt.def(ht,".getFramebuffer(",mt,")");Rt.set(ht,".next",cr);var br=Pt.context;return Rt.set(br,"."+Be,cr+"?"+cr+".width:"+br+"."+Ht),Rt.set(br,"."+tt,cr+"?"+cr+".height:"+br+"."+rr),cr})}else return null}function wa(Ve,et,at){var kt=Ve.static,Ot=Ve.dynamic;function It(mt){if(mt in kt){var Pt=kt[mt],ht=!0,cr=Pt.x|0,br=Pt.y|0,Nr,Ri;return"width"in Pt?Nr=Pt.width|0:ht=!1,"height"in Pt?Ri=Pt.height|0:ht=!1,new ti(!ht&&et&&et.thisDep,!ht&&et&&et.contextDep,!ht&&et&&et.propDep,function(gn,tn){var Ci=gn.shared.context,qi=Nr;"width"in Pt||(qi=tn.def(Ci,".",Be,"-",cr));var Vi=Ri;return"height"in Pt||(Vi=tn.def(Ci,".",tt,"-",br)),[cr,br,qi,Vi]})}else if(mt in Ot){var hi=Ot[mt],wi=Nn(hi,function(gn,tn){var Ci=gn.invoke(tn,hi),qi=gn.shared.context,Vi=tn.def(Ci,".x|0"),on=tn.def(Ci,".y|0"),On=tn.def('"width" in ',Ci,"?",Ci,".width|0:","(",qi,".",Be,"-",Vi,")"),Ja=tn.def('"height" in ',Ci,"?",Ci,".height|0:","(",qi,".",tt,"-",on,")");return[Vi,on,On,Ja]});return et&&(wi.thisDep=wi.thisDep||et.thisDep,wi.contextDep=wi.contextDep||et.contextDep,wi.propDep=wi.propDep||et.propDep),wi}else return et?new ti(et.thisDep,et.contextDep,et.propDep,function(gn,tn){var Ci=gn.shared.context;return[0,0,tn.def(Ci,".",Be),tn.def(Ci,".",tt)]}):null}var Bt=It(ee);if(Bt){var Rt=Bt;Bt=new ti(Bt.thisDep,Bt.contextDep,Bt.propDep,function(mt,Pt){var ht=Rt.append(mt,Pt),cr=mt.shared.context;return Pt.set(cr,"."+We,ht[2]),Pt.set(cr,"."+it,ht[3]),ht})}return{viewport:Bt,scissor_box:It(Q)}}function ns(Ve,et){var at=Ve.static,kt=typeof at[ot]=="string"&&typeof at[Xe]=="string";if(kt){if(Object.keys(et.dynamic).length>0)return null;var Ot=et.static,It=Object.keys(Ot);if(It.length>0&&typeof Ot[It[0]]=="number"){for(var Bt=[],Rt=0;Rt"+Vi+"?"+ht+".constant["+Vi+"]:0;"}).join(""),"}}else{","if(",Nr,"(",ht,".buffer)){",gn,"=",Ri,".createStream(",Sr,",",ht,".buffer);","}else{",gn,"=",Ri,".getBuffer(",ht,".buffer);","}",tn,'="type" in ',ht,"?",br.glTypes,"[",ht,".type]:",gn,".dtype;",hi.normalized,"=!!",ht,".normalized;");function Ci(qi){Pt(hi[qi],"=",ht,".",qi,"|0;")}return Ci("size"),Ci("offset"),Ci("stride"),Ci("divisor"),Pt("}}"),Pt.exit("if(",hi.isStream,"){",Ri,".destroyStream(",gn,");","}"),hi}Ot[It]=Nn(Bt,Rt)}),Ot}function ol(Ve){var et=Ve.static,at=Ve.dynamic,kt={};return Object.keys(et).forEach(function(Ot){var It=et[Ot];kt[Ot]=Cn(function(Bt,Rt){return typeof It=="number"||typeof It=="boolean"?""+It:Bt.link(It)})}),Object.keys(at).forEach(function(Ot){var It=at[Ot];kt[Ot]=Nn(It,function(Bt,Rt){return Bt.invoke(Rt,It)})}),kt}function Ul(Ve,et,at,kt,Ot){var It=Ve.static,Bt=Ve.dynamic,Rt=ns(Ve,et),mt=oa(Ve,Ot),Pt=wa(Ve,mt,Ot),ht=Va(Ve,Ot),cr=Ml(Ve,Ot),br=Ys(Ve,Ot,Rt);function Nr(Ci){var qi=Pt[Ci];qi&&(cr[Ci]=qi)}Nr(ee),Nr(Ki(Q));var Ri=Object.keys(cr).length>0,hi={framebuffer:mt,draw:ht,shader:br,state:cr,dirty:Ri,scopeVAO:null,drawVAO:null,useVAO:!1,attributes:{}};if(hi.profile=ra(Ve,Ot),hi.uniforms=zo(at,Ot),hi.drawVAO=hi.scopeVAO=ht.vao,!hi.drawVAO&&br.program&&!Rt&&zt.angle_instanced_arrays&&ht.static.elements){var wi=!0,gn=br.program.attributes.map(function(Ci){var qi=et.static[Ci];return wi=wi&&!!qi,qi});if(wi&&gn.length>0){var tn=Oi.getVAO(Oi.createVAO({attributes:gn,elements:ht.static.elements}));hi.drawVAO=new ti(null,null,null,function(Ci,qi){return Ci.link(tn)}),hi.useVAO=!0}}return Rt?hi.useVAO=!0:hi.attributes=el(et,Ot),hi.context=ol(kt,Ot),hi}function ls(Ve,et,at){var kt=Ve.shared,Ot=kt.context,It=Ve.scope();Object.keys(at).forEach(function(Bt){et.save(Ot,"."+Bt);var Rt=at[Bt],mt=Rt.append(Ve,et);Array.isArray(mt)?It(Ot,".",Bt,"=[",mt.join(),"];"):It(Ot,".",Bt,"=",mt,";")}),et(It)}function Gs(Ve,et,at,kt){var Ot=Ve.shared,It=Ot.gl,Bt=Ot.framebuffer,Rt;ci&&(Rt=et.def(Ot.extensions,".webgl_draw_buffers"));var mt=Ve.constants,Pt=mt.drawBuffer,ht=mt.backBuffer,cr;at?cr=at.append(Ve,et):cr=et.def(Bt,".next"),kt||et("if(",cr,"!==",Bt,".cur){"),et("if(",cr,"){",It,".bindFramebuffer(",qr,",",cr,".framebuffer);"),ci&&et(Rt,".drawBuffersWEBGL(",Pt,"[",cr,".colorAttachments.length]);"),et("}else{",It,".bindFramebuffer(",qr,",null);"),ci&&et(Rt,".drawBuffersWEBGL(",ht,");"),et("}",Bt,".cur=",cr,";"),kt||et("}")}function Ks(Ve,et,at){var kt=Ve.shared,Ot=kt.gl,It=Ve.current,Bt=Ve.next,Rt=kt.current,mt=kt.next,Pt=Ve.cond(Rt,".dirty");vi.forEach(function(ht){var cr=Ki(ht);if(!(cr in at.state)){var br,Nr;if(cr in Bt){br=Bt[cr],Nr=It[cr];var Ri=M(Xi[cr].length,function(wi){return Pt.def(br,"[",wi,"]")});Pt(Ve.cond(Ri.map(function(wi,gn){return wi+"!=="+Nr+"["+gn+"]"}).join("||")).then(Ot,".",mn[cr],"(",Ri,");",Ri.map(function(wi,gn){return Nr+"["+gn+"]="+wi}).join(";"),";"))}else{br=Pt.def(mt,".",cr);var hi=Ve.cond(br,"!==",Rt,".",cr);Pt(hi),cr in li?hi(Ve.cond(br).then(Ot,".enable(",li[cr],");").else(Ot,".disable(",li[cr],");"),Rt,".",cr,"=",br,";"):hi(Ot,".",mn[cr],"(",br,");",Rt,".",cr,"=",br,";")}}}),Object.keys(at.state).length===0&&Pt(Rt,".dirty=false;"),et(Pt)}function Ta(Ve,et,at,kt){var Ot=Ve.shared,It=Ve.current,Bt=Ot.current,Rt=Ot.gl,mt;Ai(Object.keys(at)).forEach(function(Pt){var ht=at[Pt];if(!(kt&&!kt(ht))){var cr=ht.append(Ve,et);if(li[Pt]){var br=li[Pt];Rn(ht)?(mt=Ve.link(cr,{stable:!0}),et(Ve.cond(mt).then(Rt,".enable(",br,");").else(Rt,".disable(",br,");")),et(Bt,".",Pt,"=",mt,";")):(et(Ve.cond(cr).then(Rt,".enable(",br,");").else(Rt,".disable(",br,");")),et(Bt,".",Pt,"=",cr,";"))}else if(En(cr)){var Nr=It[Pt];et(Rt,".",mn[Pt],"(",cr,");",cr.map(function(Ri,hi){return Nr+"["+hi+"]="+Ri}).join(";"),";")}else Rn(ht)?(mt=Ve.link(cr,{stable:!0}),et(Rt,".",mn[Pt],"(",mt,");",Bt,".",Pt,"=",mt,";")):et(Rt,".",mn[Pt],"(",cr,");",Bt,".",Pt,"=",cr,";")}})}function sl(Ve,et){Ii&&(Ve.instancing=et.def(Ve.shared.extensions,".angle_instanced_arrays"))}function io(Ve,et,at,kt,Ot){var It=Ve.shared,Bt=Ve.stats,Rt=It.current,mt=It.timer,Pt=at.profile;function ht(){return typeof performance=="undefined"?"Date.now()":"performance.now()"}var cr,br;function Nr(Ci){cr=et.def(),Ci(cr,"=",ht(),";"),typeof Ot=="string"?Ci(Bt,".count+=",Ot,";"):Ci(Bt,".count++;"),ji&&(kt?(br=et.def(),Ci(br,"=",mt,".getNumPendingQueries();")):Ci(mt,".beginQuery(",Bt,");"))}function Ri(Ci){Ci(Bt,".cpuTime+=",ht(),"-",cr,";"),ji&&(kt?Ci(mt,".pushScopeStats(",br,",",mt,".getNumPendingQueries(),",Bt,");"):Ci(mt,".endQuery();"))}function hi(Ci){var qi=et.def(Rt,".profile");et(Rt,".profile=",Ci,";"),et.exit(Rt,".profile=",qi,";")}var wi;if(Pt){if(Rn(Pt)){Pt.enable?(Nr(et),Ri(et.exit),hi("true")):hi("false");return}wi=Pt.append(Ve,et),hi(wi)}else wi=et.def(Rt,".profile");var gn=Ve.block();Nr(gn),et("if(",wi,"){",gn,"}");var tn=Ve.block();Ri(tn),et.exit("if(",wi,"){",tn,"}")}function Y(Ve,et,at,kt,Ot){var It=Ve.shared;function Bt(mt){switch(mt){case ko:case Is:case dl:return 2;case Qa:case As:case Nl:return 3;case mo:case wo:case Lu:return 4;default:return 1}}function Rt(mt,Pt,ht){var cr=It.gl,br=et.def(mt,".location"),Nr=et.def(It.attributes,"[",br,"]"),Ri=ht.state,hi=ht.buffer,wi=[ht.x,ht.y,ht.z,ht.w],gn=["buffer","normalized","offset","stride"];function tn(){et("if(!",Nr,".buffer){",cr,".enableVertexAttribArray(",br,");}");var qi=ht.type,Vi;if(ht.size?Vi=et.def(ht.size,"||",Pt):Vi=Pt,et("if(",Nr,".type!==",qi,"||",Nr,".size!==",Vi,"||",gn.map(function(On){return Nr+"."+On+"!=="+ht[On]}).join("||"),"){",cr,".bindBuffer(",Sr,",",hi,".buffer);",cr,".vertexAttribPointer(",[br,Vi,qi,ht.normalized,ht.stride,ht.offset],");",Nr,".type=",qi,";",Nr,".size=",Vi,";",gn.map(function(On){return Nr+"."+On+"="+ht[On]+";"}).join(""),"}"),Ii){var on=ht.divisor;et("if(",Nr,".divisor!==",on,"){",Ve.instancing,".vertexAttribDivisorANGLE(",[br,on],");",Nr,".divisor=",on,";}")}}function Ci(){et("if(",Nr,".buffer){",cr,".disableVertexAttribArray(",br,");",Nr,".buffer=null;","}if(",ka.map(function(qi,Vi){return Nr+"."+qi+"!=="+wi[Vi]}).join("||"),"){",cr,".vertexAttrib4f(",br,",",wi,");",ka.map(function(qi,Vi){return Nr+"."+qi+"="+wi[Vi]+";"}).join(""),"}")}Ri===La?tn():Ri===Na?Ci():(et("if(",Ri,"===",La,"){"),tn(),et("}else{"),Ci(),et("}"))}kt.forEach(function(mt){var Pt=mt.name,ht=at.attributes[Pt],cr;if(ht){if(!Ot(ht))return;cr=ht.append(Ve,et)}else{if(!Ot(ia))return;var br=Ve.scopeAttrib(Pt);cr={},Object.keys(new Yr).forEach(function(Nr){cr[Nr]=et.def(br,".",Nr)})}Rt(Ve.link(mt),Bt(mt.info.type),cr)})}function D(Ve,et,at,kt,Ot,It){for(var Bt=Ve.shared,Rt=Bt.gl,mt,Pt=0;Pt1){for(var co=[],rs=[],so=0;so>1)",hi],");")}function on(){at(wi,".drawArraysInstancedANGLE(",[br,Nr,Ri,hi],");")}ht&&ht!=="null"?tn?Vi():(at("if(",ht,"){"),Vi(),at("}else{"),on(),at("}")):on()}function qi(){function Vi(){at(It+".drawElements("+[br,Ri,gn,Nr+"<<(("+gn+"-"+Ra+")>>1)"]+");")}function on(){at(It+".drawArrays("+[br,Nr,Ri]+");")}ht&&ht!=="null"?tn?Vi():(at("if(",ht,"){"),Vi(),at("}else{"),on(),at("}")):on()}Ii&&(typeof hi!="number"||hi>=0)?typeof hi=="string"?(at("if(",hi,">0){"),Ci(),at("}else if(",hi,"<0){"),qi(),at("}")):Ci():qi()}function q(Ve,et,at,kt,Ot){var It=Ln(),Bt=It.proc("body",Ot);return Ii&&(It.instancing=Bt.def(It.shared.extensions,".angle_instanced_arrays")),Ve(It,Bt,at,kt),It.compile().body}function K(Ve,et,at,kt){sl(Ve,et),at.useVAO?at.drawVAO?et(Ve.shared.vao,".setVAO(",at.drawVAO.append(Ve,et),");"):et(Ve.shared.vao,".setVAO(",Ve.shared.vao,".targetVAO);"):(et(Ve.shared.vao,".setVAO(null);"),Y(Ve,et,at,kt.attributes,function(){return!0})),D(Ve,et,at,kt.uniforms,function(){return!0},!1),J(Ve,et,et,at)}function de(Ve,et){var at=Ve.proc("draw",1);sl(Ve,at),ls(Ve,at,et.context),Gs(Ve,at,et.framebuffer),Ks(Ve,at,et),Ta(Ve,at,et.state),io(Ve,at,et,!1,!0);var kt=et.shader.progVar.append(Ve,at);if(at(Ve.shared.gl,".useProgram(",kt,".program);"),et.shader.program)K(Ve,at,et,et.shader.program);else{at(Ve.shared.vao,".setVAO(null);");var Ot=Ve.global.def("{}"),It=at.def(kt,".id"),Bt=at.def(Ot,"[",It,"]");at(Ve.cond(Bt).then(Bt,".call(this,a0);").else(Bt,"=",Ot,"[",It,"]=",Ve.link(function(Rt){return q(K,Ve,et,Rt,1)}),"(",kt,");",Bt,".call(this,a0);"))}Object.keys(et.state).length>0&&at(Ve.shared.current,".dirty=true;"),Ve.shared.vao&&at(Ve.shared.vao,".setVAO(null);")}function ne(Ve,et,at,kt){Ve.batchId="a1",sl(Ve,et);function Ot(){return!0}Y(Ve,et,at,kt.attributes,Ot),D(Ve,et,at,kt.uniforms,Ot,!1),J(Ve,et,et,at)}function we(Ve,et,at,kt){sl(Ve,et);var Ot=at.contextDep,It=et.def(),Bt="a0",Rt="a1",mt=et.def();Ve.shared.props=mt,Ve.batchId=It;var Pt=Ve.scope(),ht=Ve.scope();et(Pt.entry,"for(",It,"=0;",It,"<",Rt,";++",It,"){",mt,"=",Bt,"[",It,"];",ht,"}",Pt.exit);function cr(gn){return gn.contextDep&&Ot||gn.propDep}function br(gn){return!cr(gn)}if(at.needsContext&&ls(Ve,ht,at.context),at.needsFramebuffer&&Gs(Ve,ht,at.framebuffer),Ta(Ve,ht,at.state,cr),at.profile&&cr(at.profile)&&io(Ve,ht,at,!1,!0),kt)at.useVAO?at.drawVAO?cr(at.drawVAO)?ht(Ve.shared.vao,".setVAO(",at.drawVAO.append(Ve,ht),");"):Pt(Ve.shared.vao,".setVAO(",at.drawVAO.append(Ve,Pt),");"):Pt(Ve.shared.vao,".setVAO(",Ve.shared.vao,".targetVAO);"):(Pt(Ve.shared.vao,".setVAO(null);"),Y(Ve,Pt,at,kt.attributes,br),Y(Ve,ht,at,kt.attributes,cr)),D(Ve,Pt,at,kt.uniforms,br,!1),D(Ve,ht,at,kt.uniforms,cr,!0),J(Ve,Pt,ht,at);else{var Nr=Ve.global.def("{}"),Ri=at.shader.progVar.append(Ve,ht),hi=ht.def(Ri,".id"),wi=ht.def(Nr,"[",hi,"]");ht(Ve.shared.gl,".useProgram(",Ri,".program);","if(!",wi,"){",wi,"=",Nr,"[",hi,"]=",Ve.link(function(gn){return q(ne,Ve,at,gn,2)}),"(",Ri,");}",wi,".call(this,a0[",It,"],",It,");")}}function Ue(Ve,et){var at=Ve.proc("batch",2);Ve.batchId="0",sl(Ve,at);var kt=!1,Ot=!0;Object.keys(et.context).forEach(function(Nr){kt=kt||et.context[Nr].propDep}),kt||(ls(Ve,at,et.context),Ot=!1);var It=et.framebuffer,Bt=!1;It?(It.propDep?kt=Bt=!0:It.contextDep&&kt&&(Bt=!0),Bt||Gs(Ve,at,It)):Gs(Ve,at,null),et.state.viewport&&et.state.viewport.propDep&&(kt=!0);function Rt(Nr){return Nr.contextDep&&kt||Nr.propDep}Ks(Ve,at,et),Ta(Ve,at,et.state,function(Nr){return!Rt(Nr)}),(!et.profile||!Rt(et.profile))&&io(Ve,at,et,!1,"a1"),et.contextDep=kt,et.needsContext=Ot,et.needsFramebuffer=Bt;var mt=et.shader.progVar;if(mt.contextDep&&kt||mt.propDep)we(Ve,at,et,null);else{var Pt=mt.append(Ve,at);if(at(Ve.shared.gl,".useProgram(",Pt,".program);"),et.shader.program)we(Ve,at,et,et.shader.program);else{at(Ve.shared.vao,".setVAO(null);");var ht=Ve.global.def("{}"),cr=at.def(Pt,".id"),br=at.def(ht,"[",cr,"]");at(Ve.cond(br).then(br,".call(this,a0,a1);").else(br,"=",ht,"[",cr,"]=",Ve.link(function(Nr){return q(we,Ve,et,Nr,2)}),"(",Pt,");",br,".call(this,a0,a1);"))}}Object.keys(et.state).length>0&&at(Ve.shared.current,".dirty=true;"),Ve.shared.vao&&at(Ve.shared.vao,".setVAO(null);")}function ft(Ve,et){var at=Ve.proc("scope",3);Ve.batchId="a2";var kt=Ve.shared,Ot=kt.current;if(ls(Ve,at,et.context),et.framebuffer&&et.framebuffer.append(Ve,at),Ai(Object.keys(et.state)).forEach(function(Rt){var mt=et.state[Rt],Pt=mt.append(Ve,at);En(Pt)?Pt.forEach(function(ht,cr){vn(ht)?at.set(Ve.next[Rt],"["+cr+"]",ht):at.set(Ve.next[Rt],"["+cr+"]",Ve.link(ht,{stable:!0}))}):Rn(mt)?at.set(kt.next,"."+Rt,Ve.link(Pt,{stable:!0})):at.set(kt.next,"."+Rt,Pt)}),io(Ve,at,et,!0,!0),[Tt,xr,Jt,Pr,Kt].forEach(function(Rt){var mt=et.draw[Rt];if(mt){var Pt=mt.append(Ve,at);vn(Pt)?at.set(kt.draw,"."+Rt,Pt):at.set(kt.draw,"."+Rt,Ve.link(Pt),{stable:!0})}}),Object.keys(et.uniforms).forEach(function(Rt){var mt=et.uniforms[Rt].append(Ve,at);Array.isArray(mt)&&(mt="["+mt.map(function(Pt){return vn(Pt)?Pt:Ve.link(Pt,{stable:!0})})+"]"),at.set(kt.uniforms,"["+Ve.link(xt.id(Rt),{stable:!0})+"]",mt)}),Object.keys(et.attributes).forEach(function(Rt){var mt=et.attributes[Rt].append(Ve,at),Pt=Ve.scopeAttrib(Rt);Object.keys(new Yr).forEach(function(ht){at.set(Pt,"."+ht,mt[ht])})}),et.scopeVAO){var It=et.scopeVAO.append(Ve,at);vn(It)?at.set(kt.vao,".targetVAO",It):at.set(kt.vao,".targetVAO",Ve.link(It,{stable:!0}))}function Bt(Rt){var mt=et.shader[Rt];if(mt){var Pt=mt.append(Ve,at);vn(Pt)?at.set(kt.shader,"."+Rt,Pt):at.set(kt.shader,"."+Rt,Ve.link(Pt,{stable:!0}))}}Bt(Xe),Bt(ot),Object.keys(et.state).length>0&&(at(Ot,".dirty=true;"),at.exit(Ot,".dirty=true;")),at("a1(",Ve.shared.context,",a0,",Ve.batchId,");")}function Zt(Ve){if(!(typeof Ve!="object"||En(Ve))){for(var et=Object.keys(Ve),at=0;at=0;--q){var K=Un[q];K&&K(si,null,0)}zt.flush(),Mi&&Mi.update()}function wa(){!ra&&Un.length>0&&(ra=d.next(oa))}function ns(){ra&&(d.cancel(oa),ra=null)}function Ys(q){q.preventDefault(),Hr=!0,ns(),na.forEach(function(K){K()})}function Va(q){zt.getError(),Hr=!1,Br.restore(),qn.restore(),Ii.restore(),vi.restore(),li.restore(),mn.restore(),nn.restore(),Mi&&Mi.restore(),Ki.procs.refresh(),wa(),Yi.forEach(function(K){K()})}vn&&(vn.addEventListener(Fo,Ys,!1),vn.addEventListener(Uo,Va,!1));function Ml(){Un.length=0,ns(),vn&&(vn.removeEventListener(Fo,Ys),vn.removeEventListener(Uo,Va)),qn.clear(),mn.clear(),li.clear(),nn.clear(),vi.clear(),ci.clear(),Ii.clear(),Mi&&Mi.clear(),Ln.forEach(function(q){q()})}function zo(q){function K(It){var Bt=e({},It);delete Bt.uniforms,delete Bt.attributes,delete Bt.context,delete Bt.vao,"stencil"in Bt&&Bt.stencil.op&&(Bt.stencil.opBack=Bt.stencil.opFront=Bt.stencil.op,delete Bt.stencil.op);function Rt(mt){if(mt in Bt){var Pt=Bt[mt];delete Bt[mt],Object.keys(Pt).forEach(function(ht){Bt[mt+"."+ht]=Pt[ht]})}}return Rt("blend"),Rt("depth"),Rt("cull"),Rt("stencil"),Rt("polygonOffset"),Rt("scissor"),Rt("sample"),"vao"in It&&(Bt.vao=It.vao),Bt}function de(It,Bt){var Rt={},mt={};return Object.keys(It).forEach(function(Pt){var ht=It[Pt];if(h.isDynamic(ht)){mt[Pt]=h.unbox(ht,Pt);return}else if(Bt&&Array.isArray(ht)){for(var cr=0;cr0)return Ve.call(this,kt(It|0),It|0)}else if(Array.isArray(It)){if(It.length)return Ve.call(this,It,It.length)}else return qt.call(this,It)}return e(Ot,{stats:Zt,destroy:function(){hr.destroy()}})}var el=mn.setFBO=zo({framebuffer:h.define.call(null,Qs,"framebuffer")});function ol(q,K){var de=0;Ki.procs.poll();var ne=K.color;ne&&(zt.clearColor(+ne[0]||0,+ne[1]||0,+ne[2]||0,+ne[3]||0),de|=Es),"depth"in K&&(zt.clearDepth(+K.depth),de|=Zs),"stencil"in K&&(zt.clearStencil(K.stencil|0),de|=Gn),zt.clear(de)}function Ul(q){if("framebuffer"in q)if(q.framebuffer&&q.framebuffer_reglType==="framebufferCube")for(var K=0;K<6;++K)el(e({framebuffer:q.framebuffer.faces[K]},q),ol);else el(q,ol);else ol(null,q)}function ls(q){Un.push(q);function K(){var de=vl(Un,q);function ne(){var we=vl(Un,ne);Un[we]=Un[Un.length-1],Un.length-=1,Un.length<=0&&ns()}Un[de]=ne}return wa(),{cancel:K}}function Gs(){var q=Bi.viewport,K=Bi.scissor_box;q[0]=q[1]=K[0]=K[1]=0,si.viewportWidth=si.framebufferWidth=si.drawingBufferWidth=q[2]=K[2]=zt.drawingBufferWidth,si.viewportHeight=si.framebufferHeight=si.drawingBufferHeight=q[3]=K[3]=zt.drawingBufferHeight}function Ks(){si.tick+=1,si.time=sl(),Gs(),Ki.procs.poll()}function Ta(){vi.refresh(),Gs(),Ki.procs.refresh(),Mi&&Mi.update()}function sl(){return(v()-Hn)/1e3}Ta();function io(q,K){var de;switch(q){case"frame":return ls(K);case"lost":de=na;break;case"restore":de=Yi;break;case"destroy":de=Ln;break;default:}return de.push(K),{cancel:function(){for(var ne=0;ne=0},read:Ui,destroy:Ml,_gl:zt,_refresh:Ta,poll:function(){Ks(),Mi&&Mi.update()},now:sl,stats:mi,getCachedCode:Y,preloadCachedCode:D});return xt.onDone(null,J),J}return Sc})});var Cqe=ye((s1r,Eqe)=>{"use strict";var xNt=Xm();Eqe.exports=function(t){if(t?typeof t=="string"&&(t={container:t}):t={},Sqe(t)?t={container:t}:bNt(t)?t={container:t}:wNt(t)?t={gl:t}:t=xNt(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}Sqe(t.container)?(t.canvas=t.container,t.container=t.canvas.parentNode):t.canvas||(t.canvas=Mqe(),t.container.appendChild(t.canvas),Aqe(t))}else if(!t.canvas)if(typeof document!="undefined")t.container=document.body||document.documentElement,t.canvas=Mqe(),t.container.appendChild(t.canvas),Aqe(t);else throw Error("Not DOM environment. Use headless-gl.");return t.gl||["webgl","experimental-webgl","webgl-experimental"].some(function(n){try{t.gl=t.canvas.getContext(n,t.attrs)}catch(i){}return t.gl}),t.gl};function Aqe(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 Sqe(e){return typeof e.getContext=="function"&&"width"in e&&"height"in e}function bNt(e){return typeof e.nodeName=="string"&&typeof e.appendChild=="function"&&typeof e.getBoundingClientRect=="function"}function wNt(e){return typeof e.drawArrays=="function"||typeof e.drawElements=="function"}function Mqe(){var e=document.createElement("canvas");return e.style.position="absolute",e.style.top=0,e.style.left=0,e}});var Lqe=ye((l1r,kqe)=>{"use strict";var TNt=$Y(),ANt=[32,126];kqe.exports=SNt;function SNt(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"),n=e.font,i=typeof e.step=="number"?[e.step,e.step]:e.step||[32,32],a=e.chars||ANt;if(n&&typeof n!="string"&&(n=TNt(n)),!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=n,u.textAlign="center",u.textBaseline="middle",u.fillStyle="#fff";for(var c=i[0]/2,f=i[1]/2,s=0;st[0]-i[0]/2&&(c=i[0]/2,f+=i[1]);return r}});var rK=ye(Oh=>{"use strict";"use restrict";var tK=32;Oh.INT_BITS=tK;Oh.INT_MAX=2147483647;Oh.INT_MIN=-1<0)-(e<0)};Oh.abs=function(e){var t=e>>tK-1;return(e^t)-t};Oh.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};Oh.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};Oh.popCount=function(e){return e=e-(e>>>1&1431655765),e=(e&858993459)+(e>>>2&858993459),(e+(e>>>4)&252645135)*16843009>>>24};function Pqe(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}Oh.countTrailingZeros=Pqe;Oh.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};Oh.prevPow2=function(e){return e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e-(e>>>1)};Oh.parity=function(e){return e^=e>>>16,e^=e>>>8,e^=e>>>4,e&=15,27030>>>e&1};var SC=new Array(256);(function(e){for(var t=0;t<256;++t){var r=t,n=t,i=7;for(r>>>=1;r;r>>>=1)n<<=1,n|=r&1,--i;e[t]=n<>>8&255]<<16|SC[e>>>16&255]<<8|SC[e>>>24&255]};Oh.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};Oh.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};Oh.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};Oh.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};Oh.nextCombination=function(e){var t=e|e-1;return t+1|(~t&-~t)-1>>>Pqe(e)+1}});var Dqe=ye((c1r,Rqe)=>{"use strict";function Iqe(e,t,r){var n=e[r]|0;if(n<=0)return[];var i=new Array(n),a;if(r===e.length-1)for(a=0;a0)return MNt(e|0,t);break;case"object":if(typeof e.length=="number")return Iqe(e,t,0);break}return[]}Rqe.exports=ENt});var Yqe=ye(mu=>{"use strict";var fx=rK(),Av=Dqe(),Fqe=u2().Buffer;window.__TYPEDARRAY_POOL||(window.__TYPEDARRAY_POOL={UINT8:Av([32,0]),UINT16:Av([32,0]),UINT32:Av([32,0]),BIGUINT64:Av([32,0]),INT8:Av([32,0]),INT16:Av([32,0]),INT32:Av([32,0]),BIGINT64:Av([32,0]),FLOAT:Av([32,0]),DOUBLE:Av([32,0]),DATA:Av([32,0]),UINT8C:Av([32,0]),BUFFER:Av([32,0])});var CNt=typeof Uint8ClampedArray!="undefined",kNt=typeof BigUint64Array!="undefined",LNt=typeof BigInt64Array!="undefined",nd=window.__TYPEDARRAY_POOL;nd.UINT8C||(nd.UINT8C=Av([32,0]));nd.BIGUINT64||(nd.BIGUINT64=Av([32,0]));nd.BIGINT64||(nd.BIGINT64=Av([32,0]));nd.BUFFER||(nd.BUFFER=Av([32,0]));var pz=nd.DATA,gz=nd.BUFFER;mu.free=function(t){if(Fqe.isBuffer(t))gz[fx.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,n=fx.log2(r)|0;pz[n].push(t)}};function zqe(e){if(e){var t=e.length||e.byteLength,r=fx.log2(t);pz[r].push(e)}}function PNt(e){zqe(e.buffer)}mu.freeUint8=mu.freeUint16=mu.freeUint32=mu.freeBigUint64=mu.freeInt8=mu.freeInt16=mu.freeInt32=mu.freeBigInt64=mu.freeFloat32=mu.freeFloat=mu.freeFloat64=mu.freeDouble=mu.freeUint8Clamped=mu.freeDataView=PNt;mu.freeArrayBuffer=zqe;mu.freeBuffer=function(t){gz[fx.log2(t.length)].push(t)};mu.malloc=function(t,r){if(r===void 0||r==="arraybuffer")return qp(t);switch(r){case"uint8":return iK(t);case"uint16":return Oqe(t);case"uint32":return qqe(t);case"int8":return Bqe(t);case"int16":return Nqe(t);case"int32":return Uqe(t);case"float":case"float32":return Vqe(t);case"double":case"float64":return Gqe(t);case"uint8_clamped":return Hqe(t);case"bigint64":return Wqe(t);case"biguint64":return jqe(t);case"buffer":return Zqe(t);case"data":case"dataview":return Xqe(t);default:return null}return null};function qp(t){var t=fx.nextPow2(t),r=fx.log2(t),n=pz[r];return n.length>0?n.pop():new ArrayBuffer(t)}mu.mallocArrayBuffer=qp;function iK(e){return new Uint8Array(qp(e),0,e)}mu.mallocUint8=iK;function Oqe(e){return new Uint16Array(qp(2*e),0,e)}mu.mallocUint16=Oqe;function qqe(e){return new Uint32Array(qp(4*e),0,e)}mu.mallocUint32=qqe;function Bqe(e){return new Int8Array(qp(e),0,e)}mu.mallocInt8=Bqe;function Nqe(e){return new Int16Array(qp(2*e),0,e)}mu.mallocInt16=Nqe;function Uqe(e){return new Int32Array(qp(4*e),0,e)}mu.mallocInt32=Uqe;function Vqe(e){return new Float32Array(qp(4*e),0,e)}mu.mallocFloat32=mu.mallocFloat=Vqe;function Gqe(e){return new Float64Array(qp(8*e),0,e)}mu.mallocFloat64=mu.mallocDouble=Gqe;function Hqe(e){return CNt?new Uint8ClampedArray(qp(e),0,e):iK(e)}mu.mallocUint8Clamped=Hqe;function jqe(e){return kNt?new BigUint64Array(qp(8*e),0,e):null}mu.mallocBigUint64=jqe;function Wqe(e){return LNt?new BigInt64Array(qp(8*e),0,e):null}mu.mallocBigInt64=Wqe;function Xqe(e){return new DataView(qp(e),0,e)}mu.mallocDataView=Xqe;function Zqe(e){e=fx.nextPow2(e);var t=fx.log2(e),r=gz[t];return r.length>0?r.pop():new Fqe(e)}mu.mallocBuffer=Zqe;mu.clearCache=function(){for(var t=0;t<32;++t)nd.UINT8[t].length=0,nd.UINT16[t].length=0,nd.UINT32[t].length=0,nd.INT8[t].length=0,nd.INT16[t].length=0,nd.INT32[t].length=0,nd.FLOAT[t].length=0,nd.DOUBLE[t].length=0,nd.BIGUINT64[t].length=0,nd.BIGINT64[t].length=0,nd.UINT8C[t].length=0,pz[t].length=0,gz[t].length=0}});var Jqe=ye((h1r,Kqe)=>{"use strict";var INt=Object.prototype.toString;Kqe.exports=function(e){var t;return INt.call(e)==="[object Object]"&&(t=Object.getPrototypeOf(e),t===null||t===Object.getPrototypeOf({}))}});var nK=ye((d1r,$qe)=>{$qe.exports=function(t,r){r||(r=[0,""]),t=String(t);var n=parseFloat(t,10);return r[0]=n,r[1]=t.match(/[\d.\-\+]*\s*(.*)/)[1]||"",r}});var tBe=ye((v1r,eBe)=>{"use strict";var RNt=nK();eBe.exports=Qqe;var MC=96;function aK(e,t){var r=RNt(getComputedStyle(e).getPropertyValue(t));return r[0]*Qqe(r[1],e)}function DNt(e,t){var r=document.createElement("div");r.style["font-size"]="128"+e,t.appendChild(r);var n=aK(r,"font-size")/128;return t.removeChild(r),n}function Qqe(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 DNt(e,t);case"em":return aK(t,"font-size");case"rem":return aK(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 MC;case"cm":return MC/2.54;case"mm":return MC/25.4;case"pt":return MC/72;case"pc":return MC/6}return 1}});var nBe=ye((p1r,iBe)=>{"use strict";iBe.exports=_z;var FNt=_z.canvas=document.createElement("canvas"),mz=FNt.getContext("2d"),rBe=yz([32,126]);_z.createPairs=yz;_z.ascii=rBe;function _z(e,t){Array.isArray(e)&&(e=e.join(", "));var r={},n,i=16,a=.05;t&&(t.length===2&&typeof t[0]=="number"?n=yz(t):Array.isArray(t)?n=t:(t.o?n=yz(t.o):t.pairs&&(n=t.pairs),t.fontSize&&(i=t.fontSize),t.threshold!=null&&(a=t.threshold))),n||(n=rBe),mz.font=i+"px "+e;for(var o=0;oi*a){var c=(u-l)/i;r[s]=c*1e3}}return r}function yz(e){for(var t=[],r=e[0];r<=e[1];r++)for(var n=String.fromCharCode(r),i=e[0];i{"use strict";sBe.exports=hx;hx.canvas=document.createElement("canvas");hx.cache={};function hx(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 n=t.size||t.fontSize||t.em||48,i=t.weight||t.fontWeight||"",a=t.style||t.fontStyle||"",o=[a,i,n].join(" ")+"px "+r,s=t.origin||"top";if(hx.cache[r]&&n<=hx.cache[r].em)return aBe(hx.cache[r],s);var l=t.canvas||hx.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(n*1.5);l.height=f,l.width=f*.5,u.font=o;var h="H",d={top:0};u.clearRect(0,0,f,f),u.textBaseline="top",u.fillStyle="black",u.fillText(h,0,0);var v=Ym(u.getImageData(0,0,f,f));u.clearRect(0,0,f,f),u.textBaseline="bottom",u.fillText(h,0,f);var x=Ym(u.getImageData(0,0,f,f));d.lineHeight=d.bottom=f-x+v,u.clearRect(0,0,f,f),u.textBaseline="alphabetic",u.fillText(h,0,f);var b=Ym(u.getImageData(0,0,f,f)),p=f-b-1+v;d.baseline=d.alphabetic=p,u.clearRect(0,0,f,f),u.textBaseline="middle",u.fillText(h,0,f*.5);var C=Ym(u.getImageData(0,0,f,f));d.median=d.middle=f-C-1+v-f*.5,u.clearRect(0,0,f,f),u.textBaseline="hanging",u.fillText(h,0,f*.5);var E=Ym(u.getImageData(0,0,f,f));d.hanging=f-E-1+v-f*.5,u.clearRect(0,0,f,f),u.textBaseline="ideographic",u.fillText(h,0,f);var A=Ym(u.getImageData(0,0,f,f));if(d.ideographic=f-A-1+v,c.upper&&(u.clearRect(0,0,f,f),u.textBaseline="top",u.fillText(c.upper,0,0),d.upper=Ym(u.getImageData(0,0,f,f)),d.capHeight=d.baseline-d.upper),c.lower&&(u.clearRect(0,0,f,f),u.textBaseline="top",u.fillText(c.lower,0,0),d.lower=Ym(u.getImageData(0,0,f,f)),d.xHeight=d.baseline-d.lower),c.tittle&&(u.clearRect(0,0,f,f),u.textBaseline="top",u.fillText(c.tittle,0,0),d.tittle=Ym(u.getImageData(0,0,f,f))),c.ascent&&(u.clearRect(0,0,f,f),u.textBaseline="top",u.fillText(c.ascent,0,0),d.ascent=Ym(u.getImageData(0,0,f,f))),c.descent&&(u.clearRect(0,0,f,f),u.textBaseline="top",u.fillText(c.descent,0,0),d.descent=oBe(u.getImageData(0,0,f,f))),c.overshoot){u.clearRect(0,0,f,f),u.textBaseline="top",u.fillText(c.overshoot,0,0);var L=oBe(u.getImageData(0,0,f,f));d.overshoot=L-p}for(var _ in d)d[_]/=n;return d.em=n,hx.cache[r]=d,aBe(d,s)}function aBe(e,t){var r={};typeof t=="string"&&(t=e[t]);for(var n in e)n!=="em"&&(r[n]=e[n]-t);return r}function Ym(e){for(var t=e.height,r=e.data,n=3;n0;n-=4)if(r[n]!==0)return Math.floor((n-3)*.25/t)}});var hBe=ye((m1r,fBe)=>{"use strict";var h5=wqe(),zNt=Xm(),ONt=Tqe(),qNt=Cqe(),BNt=qY(),oK=$_(),NNt=Lqe(),dx=Yqe(),UNt=e5(),VNt=Jqe(),GNt=nK(),HNt=tBe(),jNt=nBe(),WNt=Fh(),XNt=lBe(),ZNt=W2(),YNt=rK(),uBe=YNt.nextPow2,cBe=new BNt,bz=!1;document.body&&(xz=document.body.appendChild(document.createElement("div")),xz.style.font="italic small-caps bold condensed 16px/2 cursive",getComputedStyle(xz).fontStretch&&(bz=!0),document.body.removeChild(xz));var xz,xc=function(t){KNt(t)?(t={regl:t},this.gl=t.regl._gl):this.gl=qNt(t),this.shader=cBe.get(this.gl),this.shader?this.regl=this.shader.regl:this.regl=t.regl||ONt({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(),cBe.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(VNt(t)?t:{})};xc.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(i,a){return[a.atlas.width,a.atlas.height]},atlasDim:function(i,a){return[a.atlas.cols,a.atlas.rows]},atlas:function(i,a){return a.atlas.texture},charStep:function(i,a){return a.atlas.step},em:function(i,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; + uniform float fontSize, charStep, em, align, baseline; + uniform vec4 viewport; + uniform vec4 color; + uniform vec2 atlasSize, atlasDim, scale, translate, positionOffset; + varying vec2 charCoord, charId; + varying float charWidth; + varying vec4 fontColor; + void main () { + vec2 offset = floor(em * (vec2(align + charOffset, baseline) + + vec2(positionOffset.x, -positionOffset.y))) + / (viewport.zw * scale.xy); + + vec2 position = (position + translate) * scale; + position += offset * scale; + + charCoord = position * viewport.zw + viewport.xy; + + gl_Position = vec4(position * 2. - 1., 0, 1); + + gl_PointSize = charStep; + + charId.x = mod(char, atlasDim.x); + charId.y = floor(char / atlasDim.x); + + charWidth = width * em; + + fontColor = color / 255.; + }`,frag:` + precision highp float; + uniform float fontSize, charStep, opacity; + uniform vec2 atlasSize; + uniform vec4 viewport; + uniform sampler2D atlas; + varying vec4 fontColor; + varying vec2 charCoord, charId; + varying float charWidth; + + float lightness(vec4 color) { + return color.r * 0.299 + color.g * 0.587 + color.b * 0.114; + } + + void main () { + vec2 uv = gl_FragCoord.xy - charCoord + charStep * .5; + float halfCharStep = floor(charStep * .5 + .5); + + // invert y and shift by 1px (FF expecially needs that) + uv.y = charStep - uv.y; + + // ignore points outside of character bounding box + float halfCharWidth = ceil(charWidth * .5); + if (floor(uv.x) > halfCharStep + halfCharWidth || + floor(uv.x) < halfCharStep - halfCharWidth) return; + + uv += charId * charStep; + uv = uv / atlasSize; + + vec4 color = fontColor; + vec4 mask = texture2D(atlas, uv); + + float maskY = lightness(mask); + // float colorY = lightness(color); + color.a *= maskY; + color.a *= opacity; + + // color.a += .1; + + // antialiasing, see yiq color space y-channel formula + // color.rgb += (1. - color.rgb) * (1. - mask.rgb); + + gl_FragColor = color; + }`}),n={};return{regl:t,draw:r,atlas:n}};xc.prototype.update=function(t){var r=this;if(typeof t=="string")t={text:t};else if(!t)return;t=zNt(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(ke){return parseFloat(ke)}):this.opacity=parseFloat(t.opacity)),t.viewport!=null&&(this.viewport=UNt(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=ZNt(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=xc.baseFontSize+"px sans-serif");var n=!1,i=!1;if(t.font&&(Array.isArray(t.font)?t.font:[t.font]).forEach(function(ke,me){if(typeof ke=="string")try{ke=h5.parse(ke)}catch(Ze){ke=h5.parse(xc.baseFontSize+"px "+ke)}else{var ie=ke.style,Se=ke.weight,Le=ke.stretch,Ae=ke.variant;ke=h5.parse(h5.stringify(ke)),ie&&(ke.style=ie),Se&&(ke.weight=Se),Le&&(ke.stretch=Le),Ae&&(ke.variant=Ae)}var De=h5.stringify({size:xc.baseFontSize,family:ke.family,stretch:bz?ke.stretch:void 0,variant:ke.variant,weight:ke.weight,style:ke.style}),Pe=GNt(ke.size),ge=Math.round(Pe[0]*HNt(Pe[1]));if(ge!==r.fontSize[me]&&(i=!0,r.fontSize[me]=ge),(!r.font[me]||De!=r.font[me].baseString)&&(n=!0,r.font[me]=xc.fonts[De],!r.font[me])){var Fe=ke.family.join(", "),ce=[ke.style];ke.style!=ke.variant&&ce.push(ke.variant),ke.variant!=ke.weight&&ce.push(ke.weight),bz&&ke.weight!=ke.stretch&&ce.push(ke.stretch),r.font[me]={baseString:De,family:Fe,weight:ke.weight,stretch:ke.stretch,style:ke.style,variant:ke.variant,width:{},kerning:{},metrics:XNt(Fe,{origin:"top",fontSize:xc.baseFontSize,fontStyle:ce.join(" ")})},xc.fonts[De]=r.font[me]}}),(n||i)&&this.font.forEach(function(ke,me){var ie=h5.stringify({size:r.fontSize[me],family:ke.family,stretch:bz?ke.stretch:void 0,variant:ke.variant,weight:ke.weight,style:ke.style});if(r.fontAtlas[me]=r.shader.atlas[ie],!r.fontAtlas[me]){var Se=ke.metrics;r.shader.atlas[ie]=r.fontAtlas[me]={fontString:ie,step:Math.ceil(r.fontSize[me]*Se.bottom*.5)*2,em:r.fontSize[me],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=dx.mallocFloat(this.count*2),f=0,h=0;f1?r.align[me]:r.align[0]:r.align;if(typeof ie=="number")return ie;switch(ie){case"right":case"end":return-ke;case"center":case"centre":case"middle":return-ke*.5}return 0})),this.baseline==null&&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(ke,me){var ie=(r.font[me]||r.font[0]).metrics,Se=0;return Se+=ie.bottom*.5,typeof ke=="number"?Se+=ke-ie.baseline:Se+=-ie[ke],Se*=-1,Se})),t.color!=null)if(t.color||(t.color="transparent"),typeof t.color=="string"||!isNaN(t.color))this.color=oK(t.color,"uint8");else{var G;if(typeof t.color[0]=="number"&&t.color.length>this.counts.length){var Z=t.color.length;G=dx.mallocUint8(Z);for(var H=(t.color.subarray||t.color.slice).bind(t.color),N=0;N4||this.baselineOffset.length>1||this.align&&this.align.length>1||this.fontAtlas.length>1||this.positionOffset.length>2;if(oe){var _e=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(_e);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=[]}};xc.prototype.destroy=function(){};xc.prototype.kerning=!0;xc.prototype.position={constant:new Float32Array(2)};xc.prototype.translate=null;xc.prototype.scale=null;xc.prototype.font=null;xc.prototype.text="";xc.prototype.positionOffset=[0,0];xc.prototype.opacity=1;xc.prototype.color=new Uint8Array([0,0,0,255]);xc.prototype.alignOffset=[0,0];xc.maxAtlasSize=1024;xc.atlasCanvas=document.createElement("canvas");xc.atlasContext=xc.atlasCanvas.getContext("2d",{alpha:!1});xc.baseFontSize=64;xc.fonts={};function KNt(e){return typeof e=="function"&&e._gl&&e.prop&&e.texture&&e.buffer}fBe.exports=xc});var dBe=ye((sK,lK)=>{(function(e,t){typeof sK=="object"&&typeof lK!="undefined"?lK.exports=t():e.createREGL=t()})(sK,function(){"use strict";var e=function(Ee,xt){for(var zt=Object.keys(xt),Ir=0;Ir1&&xt===zt&&(xt==='"'||xt==="'"))return['"'+o(Ee.substr(1,Ee.length-2))+'"'];var Ir=/\[(false|true|null|\d+|'[^']*'|"[^"]*")\]/.exec(Ee);if(Ir)return s(Ee.substr(0,Ir.index)).concat(s(Ir[1])).concat(s(Ee.substr(Ir.index+Ir[0].length)));var Hr=Ee.split(".");if(Hr.length===1)return['"'+o(Ee)+'"'];for(var Br=[],Vr=0;Vr65535)<<4,Ee>>>=xt,zt=(Ee>255)<<3,Ee>>>=zt,xt|=zt,zt=(Ee>15)<<2,Ee>>>=zt,xt|=zt,zt=(Ee>3)<<1,Ee>>>=zt,xt|=zt,xt|Ee>>1}function N(){var Ee=M(8,function(){return[]});function xt(Br){var Vr=Z(Br),mi=Ee[H(Vr)>>2];return mi.length>0?mi.pop():new ArrayBuffer(Vr)}function zt(Br){Ee[H(Br.byteLength)>>2].push(Br)}function Ir(Br,Vr){var mi=null;switch(Br){case g:mi=new Int8Array(xt(Vr),0,Vr);break;case P:mi=new Uint8Array(xt(Vr),0,Vr);break;case T:mi=new Int16Array(xt(2*Vr),0,Vr);break;case z:mi=new Uint16Array(xt(2*Vr),0,Vr);break;case O:mi=new Int32Array(xt(4*Vr),0,Vr);break;case V:mi=new Uint32Array(xt(4*Vr),0,Vr);break;case G:mi=new Float32Array(xt(4*Vr),0,Vr);break;default:return null}return mi.length!==Vr?mi.subarray(0,Vr):mi}function Hr(Br){zt(Br.buffer)}return{alloc:xt,free:zt,allocType:Ir,freeType:Hr}}var j=N();j.zero=N();var re=3408,oe=3410,_e=3411,Me=3412,ke=3413,me=3414,ie=3415,Se=33901,Le=33902,Ae=3379,De=3386,Pe=34921,ge=36347,Fe=36348,ce=35661,Ze=35660,ct=34930,pt=36349,Wt=34076,st=34024,lt=7936,Gt=7937,Nt=7938,$t=35724,sr=34047,wr=36063,ur=34852,Qe=3553,Et=34067,er=34069,Ut=33984,Ft=6408,bt=5126,yt=5121,Yt=36160,lr=36053,Tr=36064,Rr=16384,ei=function(Ee,xt){var zt=1;xt.ext_texture_filter_anisotropic&&(zt=Ee.getParameter(sr));var Ir=1,Hr=1;xt.webgl_draw_buffers&&(Ir=Ee.getParameter(ur),Hr=Ee.getParameter(wr));var Br=!!xt.oes_texture_float;if(Br){var Vr=Ee.createTexture();Ee.bindTexture(Qe,Vr),Ee.texImage2D(Qe,0,Ft,1,1,0,Ft,bt,null);var mi=Ee.createFramebuffer();if(Ee.bindFramebuffer(Yt,mi),Ee.framebufferTexture2D(Yt,Tr,Qe,Vr,0),Ee.bindTexture(Qe,null),Ee.checkFramebufferStatus(Yt)!==lr)Br=!1;else{Ee.viewport(0,0,1,1),Ee.clearColor(1,0,0,1),Ee.clear(Rr);var Ni=j.allocType(bt,4);Ee.readPixels(0,0,1,1,Ft,bt,Ni),Ee.getError()?Br=!1:(Ee.deleteFramebuffer(mi),Ee.deleteTexture(Vr),Br=Ni[0]===1),j.freeType(Ni)}}var Oi=typeof navigator!="undefined"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion)||/Edge/.test(navigator.userAgent)),Mi=!0;if(!Oi){var Hn=Ee.createTexture(),Qi=j.allocType(yt,36);Ee.activeTexture(Ut),Ee.bindTexture(Et,Hn),Ee.texImage2D(er,0,Ft,3,3,0,Ft,yt,Qi),j.freeType(Qi),Ee.bindTexture(Et,null),Ee.deleteTexture(Hn),Mi=!Ee.getError()}return{colorBits:[Ee.getParameter(oe),Ee.getParameter(_e),Ee.getParameter(Me),Ee.getParameter(ke)],depthBits:Ee.getParameter(me),stencilBits:Ee.getParameter(ie),subpixelBits:Ee.getParameter(re),extensions:Object.keys(xt).filter(function(ji){return!!xt[ji]}),maxAnisotropic:zt,maxDrawbuffers:Ir,maxColorAttachments:Hr,pointSizeDims:Ee.getParameter(Se),lineWidthDims:Ee.getParameter(Le),maxViewportDims:Ee.getParameter(De),maxCombinedTextureUnits:Ee.getParameter(ce),maxCubeMapSize:Ee.getParameter(Wt),maxRenderbufferSize:Ee.getParameter(st),maxTextureUnits:Ee.getParameter(ct),maxTextureSize:Ee.getParameter(Ae),maxAttributes:Ee.getParameter(Pe),maxVertexUniforms:Ee.getParameter(ge),maxVertexTextureUnits:Ee.getParameter(Ze),maxVaryingVectors:Ee.getParameter(Fe),maxFragmentUniforms:Ee.getParameter(pt),glsl:Ee.getParameter($t),renderer:Ee.getParameter(Gt),vendor:Ee.getParameter(lt),version:Ee.getParameter(Nt),readFloat:Br,npotTextureCube:Mi}},Wr=function(Ee){return Ee instanceof Uint8Array||Ee instanceof Uint16Array||Ee instanceof Uint32Array||Ee instanceof Int8Array||Ee instanceof Int16Array||Ee instanceof Int32Array||Ee instanceof Float32Array||Ee instanceof Float64Array||Ee instanceof Uint8ClampedArray};function Ur(Ee){return!!Ee&&typeof Ee=="object"&&Array.isArray(Ee.shape)&&Array.isArray(Ee.stride)&&typeof Ee.offset=="number"&&Ee.shape.length===Ee.stride.length&&(Array.isArray(Ee.data)||Wr(Ee.data))}var dt=function(Ee){return Object.keys(Ee).map(function(xt){return Ee[xt]})},Ge={shape:xe,flatten:Ie};function Je(Ee,xt,zt){for(var Ir=0;Ir0){var qn;if(Array.isArray(Yr[0])){Xi=kn(Yr);for(var vi=1,li=1;li0){if(typeof vi[0]=="number"){var Ui=j.allocType(ci.dtype,vi.length);Er(Ui,vi),Xi(Ui,mn),j.freeType(Ui)}else if(Array.isArray(vi[0])||Wr(vi[0])){Ki=kn(vi);var Bi=Vn(vi,Ki,ci.dtype);Xi(Bi,mn),j.freeType(Bi)}}}else if(Ur(vi)){Ki=vi.shape;var vn=vi.stride,Un=0,na=0,Yi=0,Ln=0;Ki.length===1?(Un=Ki[0],na=1,Yi=vn[0],Ln=0):Ki.length===2&&(Un=Ki[0],na=Ki[1],Yi=vn[0],Ln=vn[1]);var ra=Array.isArray(vi.data)?ci.dtype:ar(vi.data),oa=j.allocType(ra,Un*na);Zr(oa,vi.data,Un,na,Yi,Ln,vi.offset),Xi(oa,mn),j.freeType(oa)}return nn}return xi||nn(Mr),nn._reglType="buffer",nn._buffer=ci,nn.subdata=qn,zt.profile&&(nn.stats=ci.stats),nn.destroy=function(){Qi(ci)},nn}function si(){dt(Br).forEach(function(Mr){Mr.buffer=Ee.createBuffer(),Ee.bindBuffer(Mr.type,Mr.buffer),Ee.bufferData(Mr.type,Mr.persistentData||Mr.byteLength,Mr.usage)})}return zt.profile&&(xt.getTotalBufferSize=function(){var Mr=0;return Object.keys(Br).forEach(function(Yr){Mr+=Br[Yr].stats.size}),Mr}),{create:ji,createStream:Ni,destroyStream:Oi,clear:function(){dt(Br).forEach(Qi),mi.forEach(Qi)},getBuffer:function(Mr){return Mr&&Mr._buffer instanceof Vr?Mr._buffer:null},restore:si,_initBuffer:Hn}}var $r=0,zi=0,Ji=1,en=1,cn=4,yn=4,Mn={points:$r,point:zi,lines:Ji,line:en,triangles:cn,triangle:yn,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},Ba=0,la=1,ma=4,Wa=5120,Fa=5121,Wo=5122,da=5123,Wn=5124,Ga=5125,vo=34963,jn=35040,St=35044;function Cr(Ee,xt,zt,Ir){var Hr={},Br=0,Vr={uint8:Fa,uint16:da};xt.oes_element_index_uint&&(Vr.uint32=Ga);function mi(si){this.id=Br++,Hr[this.id]=this,this.buffer=si,this.primType=ma,this.vertCount=0,this.type=0}mi.prototype.bind=function(){this.buffer.bind()};var Ni=[];function Oi(si){var Mr=Ni.pop();return Mr||(Mr=new mi(zt.create(null,vo,!0,!1)._buffer)),Hn(Mr,si,jn,-1,-1,0,0),Mr}function Mi(si){Ni.push(si)}function Hn(si,Mr,Yr,xi,Ii,ci,nn){si.buffer.bind();var Xi;if(Mr){var qn=nn;!nn&&(!Wr(Mr)||Ur(Mr)&&!Wr(Mr.data))&&(qn=xt.oes_element_index_uint?Ga:da),zt._initBuffer(si.buffer,Mr,Yr,qn,3)}else Ee.bufferData(vo,ci,Yr),si.buffer.dtype=Xi||Fa,si.buffer.usage=Yr,si.buffer.dimension=3,si.buffer.byteLength=ci;if(Xi=nn,!nn){switch(si.buffer.dtype){case Fa:case Wa:Xi=Fa;break;case da:case Wo:Xi=da;break;case Ga:case Wn:Xi=Ga;break;default:}si.buffer.dtype=Xi}si.type=Xi;var vi=Ii;vi<0&&(vi=si.buffer.byteLength,Xi===da?vi>>=1:Xi===Ga&&(vi>>=2)),si.vertCount=vi;var li=xi;if(xi<0){li=ma;var mn=si.buffer.dimension;mn===1&&(li=Ba),mn===2&&(li=la),mn===3&&(li=ma)}si.primType=li}function Qi(si){Ir.elementsCount--,delete Hr[si.id],si.buffer.destroy(),si.buffer=null}function ji(si,Mr){var Yr=zt.create(null,vo,!0),xi=new mi(Yr._buffer);Ir.elementsCount++;function Ii(ci){if(!ci)Yr(),xi.primType=ma,xi.vertCount=0,xi.type=Fa;else if(typeof ci=="number")Yr(ci),xi.primType=ma,xi.vertCount=ci|0,xi.type=Fa;else{var nn=null,Xi=St,qn=-1,vi=-1,li=0,mn=0;Array.isArray(ci)||Wr(ci)||Ur(ci)?nn=ci:("data"in ci&&(nn=ci.data),"usage"in ci&&(Xi=pn[ci.usage]),"primitive"in ci&&(qn=Mn[ci.primitive]),"count"in ci&&(vi=ci.count|0),"type"in ci&&(mn=Vr[ci.type]),"length"in ci?li=ci.length|0:(li=vi,mn===da||mn===Wo?li*=2:(mn===Ga||mn===Wn)&&(li*=4))),Hn(xi,nn,Xi,qn,vi,li,mn)}return Ii}return Ii(si),Ii._reglType="elements",Ii._elements=xi,Ii.subdata=function(ci,nn){return Yr.subdata(ci,nn),Ii},Ii.destroy=function(){Qi(xi)},Ii}return{create:ji,createStream:Oi,destroyStream:Mi,getElements:function(si){return typeof si=="function"&&si._elements instanceof mi?si._elements:null},clear:function(){dt(Hr).forEach(Qi)}}}var Qr=new Float32Array(1),pi=new Uint32Array(Qr.buffer),fn=5123;function Sn(Ee){for(var xt=j.allocType(fn,Ee.length),zt=0;zt>>31<<15,Br=(Ir<<1>>>24)-127,Vr=Ir>>13&1023;if(Br<-24)xt[zt]=Hr;else if(Br<-14){var mi=-14-Br;xt[zt]=Hr+(Vr+1024>>mi)}else Br>15?xt[zt]=Hr+31744:xt[zt]=Hr+(Br+15<<10)+Vr}return xt}function En(Ee){return Array.isArray(Ee)||Wr(Ee)}var ki=34467,_n=3553,ya=34067,Jn=34069,Ma=6408,_o=6406,No=6407,po=6409,Lo=6410,Co=32854,Fs=32855,zs=36194,ul=32819,cl=32820,Fl=33635,cs=34042,nl=6402,Ss=34041,fl=35904,Js=35906,Os=36193,Io=33776,us=33777,Zl=33778,Su=33779,nc=35986,ws=35987,Fn=34798,_a=35840,Vu=35841,zl=35842,xo=35843,Yl=36196,Us=5121,Hl=5123,ac=5125,aa=5126,Oo=10242,qo=10243,Ol=10497,Pc=33071,Do=33648,rf=10240,Uf=10241,ml=9728,Zc=9729,Kl=9984,qs=9985,yu=9986,oc=9987,Cf=33170,sc=4352,Nh=4353,kf=4354,fs=34046,nf=3317,Vf=37440,Jl=37441,hl=37443,lc=37444,Fu=33984,Cs=[Kl,yu,qs,oc],js=[0,po,Lo,No,Ma],Go={};Go[po]=Go[_o]=Go[nl]=1,Go[Ss]=Go[Lo]=2,Go[No]=Go[fl]=3,Go[Ma]=Go[Js]=4;function gs(Ee){return"[object "+Ee+"]"}var uc=gs("HTMLCanvasElement"),xl=gs("OffscreenCanvas"),Gu=gs("CanvasRenderingContext2D"),Bs=gs("ImageBitmap"),ad=gs("HTMLImageElement"),Po=gs("HTMLVideoElement"),od=Object.keys(Ce).concat([uc,xl,Gu,Bs,ad,Po]),Yo=[];Yo[Us]=1,Yo[aa]=4,Yo[Os]=2,Yo[Hl]=2,Yo[ac]=4;var Pa=[];Pa[Co]=2,Pa[Fs]=2,Pa[zs]=2,Pa[Ss]=4,Pa[Io]=.5,Pa[us]=.5,Pa[Zl]=1,Pa[Su]=1,Pa[nc]=.5,Pa[ws]=1,Pa[Fn]=1,Pa[_a]=.5,Pa[Vu]=.25,Pa[zl]=.5,Pa[xo]=.25,Pa[Yl]=.5;function af(Ee){return Array.isArray(Ee)&&(Ee.length===0||typeof Ee[0]=="number")}function Hu(Ee){if(!Array.isArray(Ee))return!1;var xt=Ee.length;return!(xt===0||!En(Ee[0]))}function bl(Ee){return Object.prototype.toString.call(Ee)}function Gf(Ee){return bl(Ee)===uc}function Ic(Ee){return bl(Ee)===xl}function mf(Ee){return bl(Ee)===Gu}function ql(Ee){return bl(Ee)===Bs}function _h(Ee){return bl(Ee)===ad}function Qf(Ee){return bl(Ee)===Po}function yf(Ee){if(!Ee)return!1;var xt=bl(Ee);return od.indexOf(xt)>=0?!0:af(Ee)||Hu(Ee)||Ur(Ee)}function Yc(Ee){return Ce[Object.prototype.toString.call(Ee)]|0}function eh(Ee,xt){var zt=xt.length;switch(Ee.type){case Us:case Hl:case ac:case aa:var Ir=j.allocType(Ee.type,zt);Ir.set(xt),Ee.data=Ir;break;case Os:Ee.data=Sn(xt);break;default:}}function th(Ee,xt){return j.allocType(Ee.type===Os?aa:Ee.type,xt)}function ju(Ee,xt){Ee.type===Os?(Ee.data=Sn(xt),j.freeType(xt)):Ee.data=xt}function Hf(Ee,xt,zt,Ir,Hr,Br){for(var Vr=Ee.width,mi=Ee.height,Ni=Ee.channels,Oi=Vr*mi*Ni,Mi=th(Ee,Oi),Hn=0,Qi=0;Qi=1;)mi+=Vr*Ni*Ni,Ni/=2;return mi}else return Vr*zt*Ir}function of(Ee,xt,zt,Ir,Hr,Br,Vr){var mi={"don't care":sc,"dont care":sc,nice:kf,fast:Nh},Ni={repeat:Ol,clamp:Pc,mirror:Do},Oi={nearest:ml,linear:Zc},Mi=e({mipmap:oc,"nearest mipmap nearest":Kl,"linear mipmap nearest":qs,"nearest mipmap linear":yu,"linear mipmap linear":oc},Oi),Hn={none:0,browser:lc},Qi={uint8:Us,rgba4:ul,rgb565:Fl,"rgb5 a1":cl},ji={alpha:_o,luminance:po,"luminance alpha":Lo,rgb:No,rgba:Ma,rgba4:Co,"rgb5 a1":Fs,rgb565:zs},si={};xt.ext_srgb&&(ji.srgb=fl,ji.srgba=Js),xt.oes_texture_float&&(Qi.float32=Qi.float=aa),xt.oes_texture_half_float&&(Qi.float16=Qi["half float"]=Os),xt.webgl_depth_texture&&(e(ji,{depth:nl,"depth stencil":Ss}),e(Qi,{uint16:Hl,uint32:ac,"depth stencil":cs})),xt.webgl_compressed_texture_s3tc&&e(si,{"rgb s3tc dxt1":Io,"rgba s3tc dxt1":us,"rgba s3tc dxt3":Zl,"rgba s3tc dxt5":Su}),xt.webgl_compressed_texture_atc&&e(si,{"rgb atc":nc,"rgba atc explicit alpha":ws,"rgba atc interpolated alpha":Fn}),xt.webgl_compressed_texture_pvrtc&&e(si,{"rgb pvrtc 4bppv1":_a,"rgb pvrtc 2bppv1":Vu,"rgba pvrtc 4bppv1":zl,"rgba pvrtc 2bppv1":xo}),xt.webgl_compressed_texture_etc1&&(si["rgb etc1"]=Yl);var Mr=Array.prototype.slice.call(Ee.getParameter(ki));Object.keys(si).forEach(function(ne){var we=si[ne];Mr.indexOf(we)>=0&&(ji[ne]=we)});var Yr=Object.keys(ji);zt.textureFormats=Yr;var xi=[];Object.keys(ji).forEach(function(ne){var we=ji[ne];xi[we]=ne});var Ii=[];Object.keys(Qi).forEach(function(ne){var we=Qi[ne];Ii[we]=ne});var ci=[];Object.keys(Oi).forEach(function(ne){var we=Oi[ne];ci[we]=ne});var nn=[];Object.keys(Mi).forEach(function(ne){var we=Mi[ne];nn[we]=ne});var Xi=[];Object.keys(Ni).forEach(function(ne){var we=Ni[ne];Xi[we]=ne});var qn=Yr.reduce(function(ne,we){var Ue=ji[we];return Ue===po||Ue===_o||Ue===po||Ue===Lo||Ue===nl||Ue===Ss||xt.ext_srgb&&(Ue===fl||Ue===Js)?ne[Ue]=Ue:Ue===Fs||we.indexOf("rgba")>=0?ne[Ue]=Ma:ne[Ue]=No,ne},{});function vi(){this.internalformat=Ma,this.format=Ma,this.type=Us,this.compressed=!1,this.premultiplyAlpha=!1,this.flipY=!1,this.unpackAlignment=1,this.colorSpace=lc,this.width=0,this.height=0,this.channels=0}function li(ne,we){ne.internalformat=we.internalformat,ne.format=we.format,ne.type=we.type,ne.compressed=we.compressed,ne.premultiplyAlpha=we.premultiplyAlpha,ne.flipY=we.flipY,ne.unpackAlignment=we.unpackAlignment,ne.colorSpace=we.colorSpace,ne.width=we.width,ne.height=we.height,ne.channels=we.channels}function mn(ne,we){if(!(typeof we!="object"||!we)){if("premultiplyAlpha"in we&&(ne.premultiplyAlpha=we.premultiplyAlpha),"flipY"in we&&(ne.flipY=we.flipY),"alignment"in we&&(ne.unpackAlignment=we.alignment),"colorSpace"in we&&(ne.colorSpace=Hn[we.colorSpace]),"type"in we){var Ue=we.type;ne.type=Qi[Ue]}var ft=ne.width,Zt=ne.height,hr=ne.channels,qt=!1;"shape"in we?(ft=we.shape[0],Zt=we.shape[1],we.shape.length===3&&(hr=we.shape[2],qt=!0)):("radius"in we&&(ft=Zt=we.radius),"width"in we&&(ft=we.width),"height"in we&&(Zt=we.height),"channels"in we&&(hr=we.channels,qt=!0)),ne.width=ft|0,ne.height=Zt|0,ne.channels=hr|0;var Ve=!1;if("format"in we){var et=we.format,at=ne.internalformat=ji[et];ne.format=qn[at],et in Qi&&("type"in we||(ne.type=Qi[et])),et in si&&(ne.compressed=!0),Ve=!0}!qt&&Ve?ne.channels=Go[ne.format]:qt&&!Ve&&ne.channels!==js[ne.format]&&(ne.format=ne.internalformat=js[ne.channels])}}function Ki(ne){Ee.pixelStorei(Vf,ne.flipY),Ee.pixelStorei(Jl,ne.premultiplyAlpha),Ee.pixelStorei(hl,ne.colorSpace),Ee.pixelStorei(nf,ne.unpackAlignment)}function Ui(){vi.call(this),this.xOffset=0,this.yOffset=0,this.data=null,this.needsFree=!1,this.element=null,this.needsCopy=!1}function Bi(ne,we){var Ue=null;if(yf(we)?Ue=we:we&&(mn(ne,we),"x"in we&&(ne.xOffset=we.x|0),"y"in we&&(ne.yOffset=we.y|0),yf(we.data)&&(Ue=we.data)),we.copy){var ft=Hr.viewportWidth,Zt=Hr.viewportHeight;ne.width=ne.width||ft-ne.xOffset,ne.height=ne.height||Zt-ne.yOffset,ne.needsCopy=!0}else if(!Ue)ne.width=ne.width||1,ne.height=ne.height||1,ne.channels=ne.channels||4;else if(Wr(Ue))ne.channels=ne.channels||4,ne.data=Ue,!("type"in we)&&ne.type===Us&&(ne.type=Yc(Ue));else if(af(Ue))ne.channels=ne.channels||4,eh(ne,Ue),ne.alignment=1,ne.needsFree=!0;else if(Ur(Ue)){var hr=Ue.data;!Array.isArray(hr)&&ne.type===Us&&(ne.type=Yc(hr));var qt=Ue.shape,Ve=Ue.stride,et,at,kt,Ot,It,Bt;qt.length===3?(kt=qt[2],Bt=Ve[2]):(kt=1,Bt=1),et=qt[0],at=qt[1],Ot=Ve[0],It=Ve[1],ne.alignment=1,ne.width=et,ne.height=at,ne.channels=kt,ne.format=ne.internalformat=js[kt],ne.needsFree=!0,Hf(ne,hr,Ot,It,Bt,Ue.offset)}else if(Gf(Ue)||Ic(Ue)||mf(Ue))Gf(Ue)||Ic(Ue)?ne.element=Ue:ne.element=Ue.canvas,ne.width=ne.element.width,ne.height=ne.element.height,ne.channels=4;else if(ql(Ue))ne.element=Ue,ne.width=Ue.width,ne.height=Ue.height,ne.channels=4;else if(_h(Ue))ne.element=Ue,ne.width=Ue.naturalWidth,ne.height=Ue.naturalHeight,ne.channels=4;else if(Qf(Ue))ne.element=Ue,ne.width=Ue.videoWidth,ne.height=Ue.videoHeight,ne.channels=4;else if(Hu(Ue)){var Rt=ne.width||Ue[0].length,mt=ne.height||Ue.length,Pt=ne.channels;En(Ue[0][0])?Pt=Pt||Ue[0][0].length:Pt=Pt||1;for(var ht=Ge.shape(Ue),cr=1,br=0;br>=Zt,Ue.height>>=Zt,Bi(Ue,ft[Zt]),ne.mipmask|=1<=0&&!("faces"in we)&&(ne.genMipmaps=!0)}if("mag"in we){var ft=we.mag;ne.magFilter=Oi[ft]}var Zt=ne.wrapS,hr=ne.wrapT;if("wrap"in we){var qt=we.wrap;typeof qt=="string"?Zt=hr=Ni[qt]:Array.isArray(qt)&&(Zt=Ni[qt[0]],hr=Ni[qt[1]])}else{if("wrapS"in we){var Ve=we.wrapS;Zt=Ni[Ve]}if("wrapT"in we){var et=we.wrapT;hr=Ni[et]}}if(ne.wrapS=Zt,ne.wrapT=hr,"anisotropic"in we){var at=we.anisotropic;ne.anisotropic=we.anisotropic}if("mipmap"in we){var kt=!1;switch(typeof we.mipmap){case"string":ne.mipmapHint=mi[we.mipmap],ne.genMipmaps=!0,kt=!0;break;case"boolean":kt=ne.genMipmaps=we.mipmap;break;case"object":ne.genMipmaps=!1,kt=!0;break;default:}kt&&!("min"in we)&&(ne.minFilter=Kl)}}function ol(ne,we){Ee.texParameteri(we,Uf,ne.minFilter),Ee.texParameteri(we,rf,ne.magFilter),Ee.texParameteri(we,Oo,ne.wrapS),Ee.texParameteri(we,qo,ne.wrapT),xt.ext_texture_filter_anisotropic&&Ee.texParameteri(we,fs,ne.anisotropic),ne.genMipmaps&&(Ee.hint(Cf,ne.mipmapHint),Ee.generateMipmap(we))}var Ul=0,ls={},Gs=zt.maxTextureUnits,Ks=Array(Gs).map(function(){return null});function Ta(ne){vi.call(this),this.mipmask=0,this.internalformat=Ma,this.id=Ul++,this.refCount=1,this.target=ne,this.texture=Ee.createTexture(),this.unit=-1,this.bindCount=0,this.texInfo=new zo,Vr.profile&&(this.stats={size:0})}function sl(ne){Ee.activeTexture(Fu),Ee.bindTexture(ne.target,ne.texture)}function io(){var ne=Ks[0];ne?Ee.bindTexture(ne.target,ne.texture):Ee.bindTexture(_n,null)}function Y(ne){var we=ne.texture,Ue=ne.unit,ft=ne.target;Ue>=0&&(Ee.activeTexture(Fu+Ue),Ee.bindTexture(ft,null),Ks[Ue]=null),Ee.deleteTexture(we),ne.texture=null,ne.params=null,ne.pixels=null,ne.refCount=0,delete ls[ne.id],Br.textureCount--}e(Ta.prototype,{bind:function(){var ne=this;ne.bindCount+=1;var we=ne.unit;if(we<0){for(var Ue=0;Ue0)continue;ft.unit=-1}Ks[Ue]=ne,we=Ue;break}we>=Gs,Vr.profile&&Br.maxTextureUnits>It)-kt,Bt.height=Bt.height||(Ue.height>>It)-Ot,sl(Ue),Un(Bt,_n,kt,Ot,It),io(),Ln(Bt),ft}function hr(qt,Ve){var et=qt|0,at=Ve|0||et;if(et===Ue.width&&at===Ue.height)return ft;ft.width=Ue.width=et,ft.height=Ue.height=at,sl(Ue);for(var kt=0;Ue.mipmask>>kt;++kt){var Ot=et>>kt,It=at>>kt;if(!Ot||!It)break;Ee.texImage2D(_n,kt,Ue.format,Ot,It,0,Ue.format,Ue.type,null)}return io(),Vr.profile&&(Ue.stats.size=cc(Ue.internalformat,Ue.type,et,at,!1,!1)),ft}return ft(ne,we),ft.subimage=Zt,ft.resize=hr,ft._reglType="texture2d",ft._texture=Ue,Vr.profile&&(ft.stats=Ue.stats),ft.destroy=function(){Ue.decRef()},ft}function J(ne,we,Ue,ft,Zt,hr){var qt=new Ta(ya);ls[qt.id]=qt,Br.cubeCount++;var Ve=new Array(6);function et(Ot,It,Bt,Rt,mt,Pt){var ht,cr=qt.texInfo;for(zo.call(cr),ht=0;ht<6;++ht)Ve[ht]=Va();if(typeof Ot=="number"||!Ot){var br=Ot|0||1;for(ht=0;ht<6;++ht)oa(Ve[ht],br,br)}else if(typeof Ot=="object")if(It)wa(Ve[0],Ot),wa(Ve[1],It),wa(Ve[2],Bt),wa(Ve[3],Rt),wa(Ve[4],mt),wa(Ve[5],Pt);else if(el(cr,Ot),mn(qt,Ot),"faces"in Ot){var Nr=Ot.faces;for(ht=0;ht<6;++ht)li(Ve[ht],qt),wa(Ve[ht],Nr[ht])}else for(ht=0;ht<6;++ht)wa(Ve[ht],Ot);for(li(qt,Ve[0]),cr.genMipmaps?qt.mipmask=(Ve[0].width<<1)-1:qt.mipmask=Ve[0].mipmask,qt.internalformat=Ve[0].internalformat,et.width=Ve[0].width,et.height=Ve[0].height,sl(qt),ht=0;ht<6;++ht)ns(Ve[ht],Jn+ht);for(ol(cr,ya),io(),Vr.profile&&(qt.stats.size=cc(qt.internalformat,qt.type,et.width,et.height,cr.genMipmaps,!0)),et.format=xi[qt.internalformat],et.type=Ii[qt.type],et.mag=ci[cr.magFilter],et.min=nn[cr.minFilter],et.wrapS=Xi[cr.wrapS],et.wrapT=Xi[cr.wrapT],ht=0;ht<6;++ht)Ml(Ve[ht]);return et}function at(Ot,It,Bt,Rt,mt){var Pt=Bt|0,ht=Rt|0,cr=mt|0,br=Yi();return li(br,qt),br.width=0,br.height=0,Bi(br,It),br.width=br.width||(qt.width>>cr)-Pt,br.height=br.height||(qt.height>>cr)-ht,sl(qt),Un(br,Jn+Ot,Pt,ht,cr),io(),Ln(br),et}function kt(Ot){var It=Ot|0;if(It!==qt.width){et.width=qt.width=It,et.height=qt.height=It,sl(qt);for(var Bt=0;Bt<6;++Bt)for(var Rt=0;qt.mipmask>>Rt;++Rt)Ee.texImage2D(Jn+Bt,Rt,qt.format,It>>Rt,It>>Rt,0,qt.format,qt.type,null);return io(),Vr.profile&&(qt.stats.size=cc(qt.internalformat,qt.type,et.width,et.height,!1,!0)),et}}return et(ne,we,Ue,ft,Zt,hr),et.subimage=at,et.resize=kt,et._reglType="textureCube",et._texture=qt,Vr.profile&&(et.stats=qt.stats),et.destroy=function(){qt.decRef()},et}function q(){for(var ne=0;ne>ft,Ue.height>>ft,0,Ue.internalformat,Ue.type,null);else for(var Zt=0;Zt<6;++Zt)Ee.texImage2D(Jn+Zt,ft,Ue.internalformat,Ue.width>>ft,Ue.height>>ft,0,Ue.internalformat,Ue.type,null);ol(Ue.texInfo,Ue.target)})}function de(){for(var ne=0;ne=0?Ml=!0:Ni.indexOf(zo)>=0&&(Ml=!1))),("depthTexture"in Ta||"depthStencilTexture"in Ta)&&(Ks=!!(Ta.depthTexture||Ta.depthStencilTexture)),"depth"in Ta&&(typeof Ta.depth=="boolean"?ns=Ta.depth:(Ul=Ta.depth,Ys=!1)),"stencil"in Ta&&(typeof Ta.stencil=="boolean"?Ys=Ta.stencil:(ls=Ta.stencil,ns=!1)),"depthStencil"in Ta&&(typeof Ta.depthStencil=="boolean"?ns=Ys=Ta.depthStencil:(Gs=Ta.depthStencil,ns=!1,Ys=!1))}var io=null,Y=null,D=null,J=null;if(Array.isArray(Va))io=Va.map(si);else if(Va)io=[si(Va)];else for(io=new Array(ol),ra=0;ra0&&(Ln.depth=Bi[0].depth,Ln.stencil=Bi[0].stencil,Ln.depthStencil=Bi[0].depthStencil),Bi[Yi]?Bi[Yi](Ln):Bi[Yi]=li(Ln)}return e(vn,{width:ra,height:ra,color:zo})}function Un(na){var Yi,Ln=na|0;if(Ln===vn.width)return vn;var ra=vn.color;for(Yi=0;Yi=ra.byteLength?oa.subdata(ra):(oa.destroy(),li.buffers[na]=null)),li.buffers[na]||(oa=li.buffers[na]=Hr.create(Yi,Pf,!1,!0)),Ln.buffer=Hr.getBuffer(oa),Ln.size=Ln.buffer.dimension|0,Ln.normalized=!1,Ln.type=Ln.buffer.dtype,Ln.offset=0,Ln.stride=0,Ln.divisor=0,Ln.state=1,vn[na]=1}else Hr.getBuffer(Yi)?(Ln.buffer=Hr.getBuffer(Yi),Ln.size=Ln.buffer.dimension|0,Ln.normalized=!1,Ln.type=Ln.buffer.dtype,Ln.offset=0,Ln.stride=0,Ln.divisor=0,Ln.state=1):Hr.getBuffer(Yi.buffer)?(Ln.buffer=Hr.getBuffer(Yi.buffer),Ln.size=(+Yi.size||Ln.buffer.dimension)|0,Ln.normalized=!!Yi.normalized||!1,"type"in Yi?Ln.type=Hi[Yi.type]:Ln.type=Ln.buffer.dtype,Ln.offset=(Yi.offset||0)|0,Ln.stride=(Yi.stride||0)|0,Ln.divisor=(Yi.divisor||0)|0,Ln.state=1):"x"in Yi&&(Ln.x=+Yi.x||0,Ln.y=+Yi.y||0,Ln.z=+Yi.z||0,Ln.w=+Yi.w||0,Ln.state=2)}for(var wa=0;wa1)for(var Ki=0;KiMr&&(Mr=Yr.stats.uniformsCount)}),Mr},zt.getMaxAttributesCount=function(){var Mr=0;return Mi.forEach(function(Yr){Yr.stats.attributesCount>Mr&&(Mr=Yr.stats.attributesCount)}),Mr});function si(){Hr={},Br={};for(var Mr=0;Mr16&&(zt=Zi(zt,Ee.length*8));for(var Ir=Array(16),Hr=Array(16),Br=0;Br<16;Br++)Ir[Br]=zt[Br]^909522486,Hr[Br]=zt[Br]^1549556828;var Vr=Zi(Ir.concat(Bc(xt)),512+xt.length*8);return At(Zi(Hr.concat(Vr),768))}function pu(Ee){for(var xt=ah?"0123456789ABCDEF":"0123456789abcdef",zt="",Ir,Hr=0;Hr>>4&15)+xt.charAt(Ir&15);return zt}function qc(Ee){for(var xt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",zt="",Ir=Ee.length,Hr=0;HrEe.length*8?zt+=Zu:zt+=xt.charAt(Br>>>6*(3-Vr)&63);return zt}function cf(Ee,xt){var zt=xt.length,Ir=Array(),Hr,Br,Vr,mi,Ni=Array(Math.ceil(Ee.length/2));for(Hr=0;Hr0;){for(mi=Array(),Vr=0,Hr=0;Hr0||Br>0)&&(mi[mi.length]=Br);Ir[Ir.length]=Vr,Ni=mi}var Oi="";for(Hr=Ir.length-1;Hr>=0;Hr--)Oi+=xt.charAt(Ir[Hr]);var Mi=Math.ceil(Ee.length*8/(Math.log(xt.length)/Math.log(2)));for(Hr=Oi.length;Hr>>6&31,128|Ir&63):Ir<=65535?xt+=String.fromCharCode(224|Ir>>>12&15,128|Ir>>>6&63,128|Ir&63):Ir<=2097151&&(xt+=String.fromCharCode(240|Ir>>>18&7,128|Ir>>>12&63,128|Ir>>>6&63,128|Ir&63));return xt}function Bc(Ee){for(var xt=Array(Ee.length>>2),zt=0;zt>5]|=(Ee.charCodeAt(zt/8)&255)<<24-zt%32;return xt}function At(Ee){for(var xt="",zt=0;zt>5]>>>24-zt%32&255);return xt}function Xt(Ee,xt){return Ee>>>xt|Ee<<32-xt}function kr(Ee,xt){return Ee>>>xt}function Ar(Ee,xt,zt){return Ee&xt^~Ee&zt}function Kr(Ee,xt,zt){return Ee&xt^Ee&zt^xt&zt}function Ei(Ee){return Xt(Ee,2)^Xt(Ee,13)^Xt(Ee,22)}function Wi(Ee){return Xt(Ee,6)^Xt(Ee,11)^Xt(Ee,25)}function hn(Ee){return Xt(Ee,7)^Xt(Ee,18)^kr(Ee,3)}function Tn(Ee){return Xt(Ee,17)^Xt(Ee,19)^kr(Ee,10)}var Bn=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 Zi(Ee,xt){var zt=new Array(1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225),Ir=new Array(64),Hr,Br,Vr,mi,Ni,Oi,Mi,Hn,Qi,ji,si,Mr;for(Ee[xt>>5]|=128<<24-xt%32,Ee[(xt+64>>9<<4)+15]=xt,Qi=0;Qi>16)+(xt>>16)+(zt>>16);return Ir<<16|zt&65535}function an(Ee){return Array.prototype.slice.call(Ee)}function Di(Ee){return an(Ee).join("")}function $n(Ee){var xt=Ee&&Ee.cache,zt=0,Ir=[],Hr=[],Br=[];function Vr(si,Mr){var Yr=Mr&&Mr.stable;if(!Yr){for(var xi=0;xi0&&(si.push(Ii,"="),si.push.apply(si,an(arguments)),si.push(";")),Ii}return e(Mr,{def:xi,toString:function(){return Di([Yr.length>0?"var "+Yr.join(",")+";":"",Di(si)])}})}function Ni(){var si=mi(),Mr=mi(),Yr=si.toString,xi=Mr.toString;function Ii(ci,nn){Mr(ci,nn,"=",si.def(ci,nn),";")}return e(function(){si.apply(si,an(arguments))},{def:si.def,entry:si,exit:Mr,save:Ii,set:function(ci,nn,Xi){Ii(ci,nn),si(ci,nn,"=",Xi,";")},toString:function(){return Yr()+xi()}})}function Oi(){var si=Di(arguments),Mr=Ni(),Yr=Ni(),xi=Mr.toString,Ii=Yr.toString;return e(Mr,{then:function(){return Mr.apply(Mr,an(arguments)),this},else:function(){return Yr.apply(Yr,an(arguments)),this},toString:function(){var ci=Ii();return ci&&(ci="else{"+ci+"}"),Di(["if(",si,"){",xi(),"}",ci])}})}var Mi=mi(),Hn={};function Qi(si,Mr){var Yr=[];function xi(){var qn="a"+Yr.length;return Yr.push(qn),qn}Mr=Mr||0;for(var Ii=0;Ii":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},ni={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},gi={cw:Te,ccw:Ne};function Pi(Ee){return Array.isArray(Ee)||Wr(Ee)||Ur(Ee)}function Ai(Ee){return Ee.sort(function(xt,zt){return xt===ee?-1:zt===ee?1:xt=1,Ir>=2,xt)}else if(zt===Xo){var Hr=Ee.data;return new ti(Hr.thisDep,Hr.contextDep,Hr.propDep,xt)}else{if(zt===Ms)return new ti(!1,!1,!1,xt);if(zt===os){for(var Br=!1,Vr=!1,mi=!1,Ni=0;Ni=1&&(Vr=!0),Mi>=2&&(mi=!0)}else Oi.type===Xo&&(Br=Br||Oi.data.thisDep,Vr=Vr||Oi.data.contextDep,mi=mi||Oi.data.propDep)}return new ti(Br,Vr,mi,xt)}else return new ti(zt===bo,zt===Ka,zt===zn,xt)}}var ia=new ti(!1,!1,!1,function(){});function Ea(Ee,xt,zt,Ir,Hr,Br,Vr,mi,Ni,Oi,Mi,Hn,Qi,ji,si,Mr){var Yr=Oi.Record,xi={add:32774,subtract:32778,"reverse subtract":32779};zt.ext_blend_minmax&&(xi.min=He,xi.max=Ye);var Ii=zt.angle_instanced_arrays,ci=zt.webgl_draw_buffers,nn=zt.oes_vertex_array_object,Xi={dirty:!0,profile:Mr.profile},qn={},vi=[],li={},mn={};function Ki(Ve){return Ve.replace(".","_")}function Ui(Ve,et,at){var kt=Ki(Ve);vi.push(Ve),qn[kt]=Xi[kt]=!!at,li[kt]=et}function Bi(Ve,et,at){var kt=Ki(Ve);vi.push(Ve),Array.isArray(at)?(Xi[kt]=at.slice(),qn[kt]=at.slice()):Xi[kt]=qn[kt]=at,mn[kt]=et}function vn(Ve){return!!isNaN(Ve)}Ui(Ts,Li),Ui(Ho,ii),Bi(yl,"blendColor",[0,0,0,0]),Bi(Xs,"blendEquationSeparate",[yr,yr]),Bi(Ps,"blendFuncSeparate",[gr,jt,gr,jt]),Ui(va,sn,!0),Bi(no,"depthFunc",Gr),Bi(_s,"depthRange",[0,1]),Bi(is,"depthMask",!0),Bi($l,$l,[!0,!0,!0,!0]),Ui(ku,jr),Bi(Yu,"cullFace",se),Bi(Nc,Nc,Ne),Bi(gu,gu,1),Ui(Uc,Kn),Bi(xu,"polygonOffset",[0,0]),Ui(Ac,Aa),Ui(Ua,fa),Bi(oo,"sampleCoverage",[1,!1]),Ui(Vc,un),Bi(hc,"stencilMask",-1),Bi(Ku,"stencilFunc",[Ct,0,-1]),Bi(ue,"stencilOpSeparate",[X,nt,nt,nt]),Bi(w,"stencilOpSeparate",[se,nt,nt,nt]),Ui(B,In),Bi(Q,"scissor",[0,0,Ee.drawingBufferWidth,Ee.drawingBufferHeight]),Bi(ee,ee,[0,0,Ee.drawingBufferWidth,Ee.drawingBufferHeight]);var Un={gl:Ee,context:Qi,strings:xt,next:qn,current:Xi,draw:Hn,elements:Br,buffer:Hr,shader:Mi,attributes:Oi.state,vao:Oi,uniforms:Ni,framebuffer:mi,extensions:zt,timer:ji,isBufferArgs:Pi},na={primTypes:Mn,compareFuncs:Xr,blendFuncs:bi,blendEquations:xi,stencilOps:ni,glTypes:Hi,orientationType:gi};ci&&(na.backBuffer=[se],na.drawBuffer=M(Ir.maxDrawbuffers,function(Ve){return Ve===0?[0]:M(Ve,function(et){return _i+et})}));var Yi=0;function Ln(){var Ve=$n({cache:si}),et=Ve.link,at=Ve.global;Ve.id=Yi++,Ve.batchId="0";var kt=et(Un),Ot=Ve.shared={props:"a0"};Object.keys(Un).forEach(function(Pt){Ot[Pt]=at.def(kt,".",Pt)});var It=Ve.next={},Bt=Ve.current={};Object.keys(mn).forEach(function(Pt){Array.isArray(Xi[Pt])&&(It[Pt]=at.def(Ot.next,".",Pt),Bt[Pt]=at.def(Ot.current,".",Pt))});var Rt=Ve.constants={};Object.keys(na).forEach(function(Pt){Rt[Pt]=at.def(JSON.stringify(na[Pt]))}),Ve.invoke=function(Pt,ht){switch(ht.type){case Yn:var cr=["this",Ot.context,Ot.props,Ve.batchId];return Pt.def(et(ht.data),".call(",cr.slice(0,Math.max(ht.data.length+1,4)),")");case zn:return Pt.def(Ot.props,ht.data);case Ka:return Pt.def(Ot.context,ht.data);case bo:return Pt.def("this",ht.data);case Xo:return ht.data.append(Ve,Pt),ht.data.ref;case Ms:return ht.data.toString();case os:return ht.data.map(function(br){return Ve.invoke(Pt,br)})}},Ve.attribCache={};var mt={};return Ve.scopeAttrib=function(Pt){var ht=xt.id(Pt);if(ht in mt)return mt[ht];var cr=Oi.scope[ht];cr||(cr=Oi.scope[ht]=new Yr);var br=mt[ht]=et(cr);return br},Ve}function ra(Ve){var et=Ve.static,at=Ve.dynamic,kt;if(le in et){var Ot=!!et[le];kt=Cn(function(Bt,Rt){return Ot}),kt.enable=Ot}else if(le in at){var It=at[le];kt=Nn(It,function(Bt,Rt){return Bt.invoke(Rt,It)})}return kt}function oa(Ve,et){var at=Ve.static,kt=Ve.dynamic;if(qe in at){var Ot=at[qe];return Ot?(Ot=mi.getFramebuffer(Ot),Cn(function(Bt,Rt){var mt=Bt.link(Ot),Pt=Bt.shared;Rt.set(Pt.framebuffer,".next",mt);var ht=Pt.context;return Rt.set(ht,"."+Be,mt+".width"),Rt.set(ht,"."+tt,mt+".height"),mt})):Cn(function(Bt,Rt){var mt=Bt.shared;Rt.set(mt.framebuffer,".next","null");var Pt=mt.context;return Rt.set(Pt,"."+Be,Pt+"."+Ht),Rt.set(Pt,"."+tt,Pt+"."+rr),"null"})}else if(qe in kt){var It=kt[qe];return Nn(It,function(Bt,Rt){var mt=Bt.invoke(Rt,It),Pt=Bt.shared,ht=Pt.framebuffer,cr=Rt.def(ht,".getFramebuffer(",mt,")");Rt.set(ht,".next",cr);var br=Pt.context;return Rt.set(br,"."+Be,cr+"?"+cr+".width:"+br+"."+Ht),Rt.set(br,"."+tt,cr+"?"+cr+".height:"+br+"."+rr),cr})}else return null}function wa(Ve,et,at){var kt=Ve.static,Ot=Ve.dynamic;function It(mt){if(mt in kt){var Pt=kt[mt],ht=!0,cr=Pt.x|0,br=Pt.y|0,Nr,Ri;return"width"in Pt?Nr=Pt.width|0:ht=!1,"height"in Pt?Ri=Pt.height|0:ht=!1,new ti(!ht&&et&&et.thisDep,!ht&&et&&et.contextDep,!ht&&et&&et.propDep,function(gn,tn){var Ci=gn.shared.context,qi=Nr;"width"in Pt||(qi=tn.def(Ci,".",Be,"-",cr));var Vi=Ri;return"height"in Pt||(Vi=tn.def(Ci,".",tt,"-",br)),[cr,br,qi,Vi]})}else if(mt in Ot){var hi=Ot[mt],wi=Nn(hi,function(gn,tn){var Ci=gn.invoke(tn,hi),qi=gn.shared.context,Vi=tn.def(Ci,".x|0"),on=tn.def(Ci,".y|0"),On=tn.def('"width" in ',Ci,"?",Ci,".width|0:","(",qi,".",Be,"-",Vi,")"),Ja=tn.def('"height" in ',Ci,"?",Ci,".height|0:","(",qi,".",tt,"-",on,")");return[Vi,on,On,Ja]});return et&&(wi.thisDep=wi.thisDep||et.thisDep,wi.contextDep=wi.contextDep||et.contextDep,wi.propDep=wi.propDep||et.propDep),wi}else return et?new ti(et.thisDep,et.contextDep,et.propDep,function(gn,tn){var Ci=gn.shared.context;return[0,0,tn.def(Ci,".",Be),tn.def(Ci,".",tt)]}):null}var Bt=It(ee);if(Bt){var Rt=Bt;Bt=new ti(Bt.thisDep,Bt.contextDep,Bt.propDep,function(mt,Pt){var ht=Rt.append(mt,Pt),cr=mt.shared.context;return Pt.set(cr,"."+We,ht[2]),Pt.set(cr,"."+it,ht[3]),ht})}return{viewport:Bt,scissor_box:It(Q)}}function ns(Ve,et){var at=Ve.static,kt=typeof at[ot]=="string"&&typeof at[Xe]=="string";if(kt){if(Object.keys(et.dynamic).length>0)return null;var Ot=et.static,It=Object.keys(Ot);if(It.length>0&&typeof Ot[It[0]]=="number"){for(var Bt=[],Rt=0;Rt"+Vi+"?"+ht+".constant["+Vi+"]:0;"}).join(""),"}}else{","if(",Nr,"(",ht,".buffer)){",gn,"=",Ri,".createStream(",Sr,",",ht,".buffer);","}else{",gn,"=",Ri,".getBuffer(",ht,".buffer);","}",tn,'="type" in ',ht,"?",br.glTypes,"[",ht,".type]:",gn,".dtype;",hi.normalized,"=!!",ht,".normalized;");function Ci(qi){Pt(hi[qi],"=",ht,".",qi,"|0;")}return Ci("size"),Ci("offset"),Ci("stride"),Ci("divisor"),Pt("}}"),Pt.exit("if(",hi.isStream,"){",Ri,".destroyStream(",gn,");","}"),hi}Ot[It]=Nn(Bt,Rt)}),Ot}function ol(Ve){var et=Ve.static,at=Ve.dynamic,kt={};return Object.keys(et).forEach(function(Ot){var It=et[Ot];kt[Ot]=Cn(function(Bt,Rt){return typeof It=="number"||typeof It=="boolean"?""+It:Bt.link(It)})}),Object.keys(at).forEach(function(Ot){var It=at[Ot];kt[Ot]=Nn(It,function(Bt,Rt){return Bt.invoke(Rt,It)})}),kt}function Ul(Ve,et,at,kt,Ot){var It=Ve.static,Bt=Ve.dynamic,Rt=ns(Ve,et),mt=oa(Ve,Ot),Pt=wa(Ve,mt,Ot),ht=Va(Ve,Ot),cr=Ml(Ve,Ot),br=Ys(Ve,Ot,Rt);function Nr(Ci){var qi=Pt[Ci];qi&&(cr[Ci]=qi)}Nr(ee),Nr(Ki(Q));var Ri=Object.keys(cr).length>0,hi={framebuffer:mt,draw:ht,shader:br,state:cr,dirty:Ri,scopeVAO:null,drawVAO:null,useVAO:!1,attributes:{}};if(hi.profile=ra(Ve,Ot),hi.uniforms=zo(at,Ot),hi.drawVAO=hi.scopeVAO=ht.vao,!hi.drawVAO&&br.program&&!Rt&&zt.angle_instanced_arrays&&ht.static.elements){var wi=!0,gn=br.program.attributes.map(function(Ci){var qi=et.static[Ci];return wi=wi&&!!qi,qi});if(wi&&gn.length>0){var tn=Oi.getVAO(Oi.createVAO({attributes:gn,elements:ht.static.elements}));hi.drawVAO=new ti(null,null,null,function(Ci,qi){return Ci.link(tn)}),hi.useVAO=!0}}return Rt?hi.useVAO=!0:hi.attributes=el(et,Ot),hi.context=ol(kt,Ot),hi}function ls(Ve,et,at){var kt=Ve.shared,Ot=kt.context,It=Ve.scope();Object.keys(at).forEach(function(Bt){et.save(Ot,"."+Bt);var Rt=at[Bt],mt=Rt.append(Ve,et);Array.isArray(mt)?It(Ot,".",Bt,"=[",mt.join(),"];"):It(Ot,".",Bt,"=",mt,";")}),et(It)}function Gs(Ve,et,at,kt){var Ot=Ve.shared,It=Ot.gl,Bt=Ot.framebuffer,Rt;ci&&(Rt=et.def(Ot.extensions,".webgl_draw_buffers"));var mt=Ve.constants,Pt=mt.drawBuffer,ht=mt.backBuffer,cr;at?cr=at.append(Ve,et):cr=et.def(Bt,".next"),kt||et("if(",cr,"!==",Bt,".cur){"),et("if(",cr,"){",It,".bindFramebuffer(",qr,",",cr,".framebuffer);"),ci&&et(Rt,".drawBuffersWEBGL(",Pt,"[",cr,".colorAttachments.length]);"),et("}else{",It,".bindFramebuffer(",qr,",null);"),ci&&et(Rt,".drawBuffersWEBGL(",ht,");"),et("}",Bt,".cur=",cr,";"),kt||et("}")}function Ks(Ve,et,at){var kt=Ve.shared,Ot=kt.gl,It=Ve.current,Bt=Ve.next,Rt=kt.current,mt=kt.next,Pt=Ve.cond(Rt,".dirty");vi.forEach(function(ht){var cr=Ki(ht);if(!(cr in at.state)){var br,Nr;if(cr in Bt){br=Bt[cr],Nr=It[cr];var Ri=M(Xi[cr].length,function(wi){return Pt.def(br,"[",wi,"]")});Pt(Ve.cond(Ri.map(function(wi,gn){return wi+"!=="+Nr+"["+gn+"]"}).join("||")).then(Ot,".",mn[cr],"(",Ri,");",Ri.map(function(wi,gn){return Nr+"["+gn+"]="+wi}).join(";"),";"))}else{br=Pt.def(mt,".",cr);var hi=Ve.cond(br,"!==",Rt,".",cr);Pt(hi),cr in li?hi(Ve.cond(br).then(Ot,".enable(",li[cr],");").else(Ot,".disable(",li[cr],");"),Rt,".",cr,"=",br,";"):hi(Ot,".",mn[cr],"(",br,");",Rt,".",cr,"=",br,";")}}}),Object.keys(at.state).length===0&&Pt(Rt,".dirty=false;"),et(Pt)}function Ta(Ve,et,at,kt){var Ot=Ve.shared,It=Ve.current,Bt=Ot.current,Rt=Ot.gl,mt;Ai(Object.keys(at)).forEach(function(Pt){var ht=at[Pt];if(!(kt&&!kt(ht))){var cr=ht.append(Ve,et);if(li[Pt]){var br=li[Pt];Rn(ht)?(mt=Ve.link(cr,{stable:!0}),et(Ve.cond(mt).then(Rt,".enable(",br,");").else(Rt,".disable(",br,");")),et(Bt,".",Pt,"=",mt,";")):(et(Ve.cond(cr).then(Rt,".enable(",br,");").else(Rt,".disable(",br,");")),et(Bt,".",Pt,"=",cr,";"))}else if(En(cr)){var Nr=It[Pt];et(Rt,".",mn[Pt],"(",cr,");",cr.map(function(Ri,hi){return Nr+"["+hi+"]="+Ri}).join(";"),";")}else Rn(ht)?(mt=Ve.link(cr,{stable:!0}),et(Rt,".",mn[Pt],"(",mt,");",Bt,".",Pt,"=",mt,";")):et(Rt,".",mn[Pt],"(",cr,");",Bt,".",Pt,"=",cr,";")}})}function sl(Ve,et){Ii&&(Ve.instancing=et.def(Ve.shared.extensions,".angle_instanced_arrays"))}function io(Ve,et,at,kt,Ot){var It=Ve.shared,Bt=Ve.stats,Rt=It.current,mt=It.timer,Pt=at.profile;function ht(){return typeof performance=="undefined"?"Date.now()":"performance.now()"}var cr,br;function Nr(Ci){cr=et.def(),Ci(cr,"=",ht(),";"),typeof Ot=="string"?Ci(Bt,".count+=",Ot,";"):Ci(Bt,".count++;"),ji&&(kt?(br=et.def(),Ci(br,"=",mt,".getNumPendingQueries();")):Ci(mt,".beginQuery(",Bt,");"))}function Ri(Ci){Ci(Bt,".cpuTime+=",ht(),"-",cr,";"),ji&&(kt?Ci(mt,".pushScopeStats(",br,",",mt,".getNumPendingQueries(),",Bt,");"):Ci(mt,".endQuery();"))}function hi(Ci){var qi=et.def(Rt,".profile");et(Rt,".profile=",Ci,";"),et.exit(Rt,".profile=",qi,";")}var wi;if(Pt){if(Rn(Pt)){Pt.enable?(Nr(et),Ri(et.exit),hi("true")):hi("false");return}wi=Pt.append(Ve,et),hi(wi)}else wi=et.def(Rt,".profile");var gn=Ve.block();Nr(gn),et("if(",wi,"){",gn,"}");var tn=Ve.block();Ri(tn),et.exit("if(",wi,"){",tn,"}")}function Y(Ve,et,at,kt,Ot){var It=Ve.shared;function Bt(mt){switch(mt){case ko:case Is:case dl:return 2;case Qa:case As:case Nl:return 3;case mo:case wo:case Lu:return 4;default:return 1}}function Rt(mt,Pt,ht){var cr=It.gl,br=et.def(mt,".location"),Nr=et.def(It.attributes,"[",br,"]"),Ri=ht.state,hi=ht.buffer,wi=[ht.x,ht.y,ht.z,ht.w],gn=["buffer","normalized","offset","stride"];function tn(){et("if(!",Nr,".buffer){",cr,".enableVertexAttribArray(",br,");}");var qi=ht.type,Vi;if(ht.size?Vi=et.def(ht.size,"||",Pt):Vi=Pt,et("if(",Nr,".type!==",qi,"||",Nr,".size!==",Vi,"||",gn.map(function(On){return Nr+"."+On+"!=="+ht[On]}).join("||"),"){",cr,".bindBuffer(",Sr,",",hi,".buffer);",cr,".vertexAttribPointer(",[br,Vi,qi,ht.normalized,ht.stride,ht.offset],");",Nr,".type=",qi,";",Nr,".size=",Vi,";",gn.map(function(On){return Nr+"."+On+"="+ht[On]+";"}).join(""),"}"),Ii){var on=ht.divisor;et("if(",Nr,".divisor!==",on,"){",Ve.instancing,".vertexAttribDivisorANGLE(",[br,on],");",Nr,".divisor=",on,";}")}}function Ci(){et("if(",Nr,".buffer){",cr,".disableVertexAttribArray(",br,");",Nr,".buffer=null;","}if(",ka.map(function(qi,Vi){return Nr+"."+qi+"!=="+wi[Vi]}).join("||"),"){",cr,".vertexAttrib4f(",br,",",wi,");",ka.map(function(qi,Vi){return Nr+"."+qi+"="+wi[Vi]+";"}).join(""),"}")}Ri===La?tn():Ri===Na?Ci():(et("if(",Ri,"===",La,"){"),tn(),et("}else{"),Ci(),et("}"))}kt.forEach(function(mt){var Pt=mt.name,ht=at.attributes[Pt],cr;if(ht){if(!Ot(ht))return;cr=ht.append(Ve,et)}else{if(!Ot(ia))return;var br=Ve.scopeAttrib(Pt);cr={},Object.keys(new Yr).forEach(function(Nr){cr[Nr]=et.def(br,".",Nr)})}Rt(Ve.link(mt),Bt(mt.info.type),cr)})}function D(Ve,et,at,kt,Ot,It){for(var Bt=Ve.shared,Rt=Bt.gl,mt,Pt=0;Pt1){for(var co=[],rs=[],so=0;so>1)",hi],");")}function on(){at(wi,".drawArraysInstancedANGLE(",[br,Nr,Ri,hi],");")}ht&&ht!=="null"?tn?Vi():(at("if(",ht,"){"),Vi(),at("}else{"),on(),at("}")):on()}function qi(){function Vi(){at(It+".drawElements("+[br,Ri,gn,Nr+"<<(("+gn+"-"+Ra+")>>1)"]+");")}function on(){at(It+".drawArrays("+[br,Nr,Ri]+");")}ht&&ht!=="null"?tn?Vi():(at("if(",ht,"){"),Vi(),at("}else{"),on(),at("}")):on()}Ii&&(typeof hi!="number"||hi>=0)?typeof hi=="string"?(at("if(",hi,">0){"),Ci(),at("}else if(",hi,"<0){"),qi(),at("}")):Ci():qi()}function q(Ve,et,at,kt,Ot){var It=Ln(),Bt=It.proc("body",Ot);return Ii&&(It.instancing=Bt.def(It.shared.extensions,".angle_instanced_arrays")),Ve(It,Bt,at,kt),It.compile().body}function K(Ve,et,at,kt){sl(Ve,et),at.useVAO?at.drawVAO?et(Ve.shared.vao,".setVAO(",at.drawVAO.append(Ve,et),");"):et(Ve.shared.vao,".setVAO(",Ve.shared.vao,".targetVAO);"):(et(Ve.shared.vao,".setVAO(null);"),Y(Ve,et,at,kt.attributes,function(){return!0})),D(Ve,et,at,kt.uniforms,function(){return!0},!1),J(Ve,et,et,at)}function de(Ve,et){var at=Ve.proc("draw",1);sl(Ve,at),ls(Ve,at,et.context),Gs(Ve,at,et.framebuffer),Ks(Ve,at,et),Ta(Ve,at,et.state),io(Ve,at,et,!1,!0);var kt=et.shader.progVar.append(Ve,at);if(at(Ve.shared.gl,".useProgram(",kt,".program);"),et.shader.program)K(Ve,at,et,et.shader.program);else{at(Ve.shared.vao,".setVAO(null);");var Ot=Ve.global.def("{}"),It=at.def(kt,".id"),Bt=at.def(Ot,"[",It,"]");at(Ve.cond(Bt).then(Bt,".call(this,a0);").else(Bt,"=",Ot,"[",It,"]=",Ve.link(function(Rt){return q(K,Ve,et,Rt,1)}),"(",kt,");",Bt,".call(this,a0);"))}Object.keys(et.state).length>0&&at(Ve.shared.current,".dirty=true;"),Ve.shared.vao&&at(Ve.shared.vao,".setVAO(null);")}function ne(Ve,et,at,kt){Ve.batchId="a1",sl(Ve,et);function Ot(){return!0}Y(Ve,et,at,kt.attributes,Ot),D(Ve,et,at,kt.uniforms,Ot,!1),J(Ve,et,et,at)}function we(Ve,et,at,kt){sl(Ve,et);var Ot=at.contextDep,It=et.def(),Bt="a0",Rt="a1",mt=et.def();Ve.shared.props=mt,Ve.batchId=It;var Pt=Ve.scope(),ht=Ve.scope();et(Pt.entry,"for(",It,"=0;",It,"<",Rt,";++",It,"){",mt,"=",Bt,"[",It,"];",ht,"}",Pt.exit);function cr(gn){return gn.contextDep&&Ot||gn.propDep}function br(gn){return!cr(gn)}if(at.needsContext&&ls(Ve,ht,at.context),at.needsFramebuffer&&Gs(Ve,ht,at.framebuffer),Ta(Ve,ht,at.state,cr),at.profile&&cr(at.profile)&&io(Ve,ht,at,!1,!0),kt)at.useVAO?at.drawVAO?cr(at.drawVAO)?ht(Ve.shared.vao,".setVAO(",at.drawVAO.append(Ve,ht),");"):Pt(Ve.shared.vao,".setVAO(",at.drawVAO.append(Ve,Pt),");"):Pt(Ve.shared.vao,".setVAO(",Ve.shared.vao,".targetVAO);"):(Pt(Ve.shared.vao,".setVAO(null);"),Y(Ve,Pt,at,kt.attributes,br),Y(Ve,ht,at,kt.attributes,cr)),D(Ve,Pt,at,kt.uniforms,br,!1),D(Ve,ht,at,kt.uniforms,cr,!0),J(Ve,Pt,ht,at);else{var Nr=Ve.global.def("{}"),Ri=at.shader.progVar.append(Ve,ht),hi=ht.def(Ri,".id"),wi=ht.def(Nr,"[",hi,"]");ht(Ve.shared.gl,".useProgram(",Ri,".program);","if(!",wi,"){",wi,"=",Nr,"[",hi,"]=",Ve.link(function(gn){return q(ne,Ve,at,gn,2)}),"(",Ri,");}",wi,".call(this,a0[",It,"],",It,");")}}function Ue(Ve,et){var at=Ve.proc("batch",2);Ve.batchId="0",sl(Ve,at);var kt=!1,Ot=!0;Object.keys(et.context).forEach(function(Nr){kt=kt||et.context[Nr].propDep}),kt||(ls(Ve,at,et.context),Ot=!1);var It=et.framebuffer,Bt=!1;It?(It.propDep?kt=Bt=!0:It.contextDep&&kt&&(Bt=!0),Bt||Gs(Ve,at,It)):Gs(Ve,at,null),et.state.viewport&&et.state.viewport.propDep&&(kt=!0);function Rt(Nr){return Nr.contextDep&&kt||Nr.propDep}Ks(Ve,at,et),Ta(Ve,at,et.state,function(Nr){return!Rt(Nr)}),(!et.profile||!Rt(et.profile))&&io(Ve,at,et,!1,"a1"),et.contextDep=kt,et.needsContext=Ot,et.needsFramebuffer=Bt;var mt=et.shader.progVar;if(mt.contextDep&&kt||mt.propDep)we(Ve,at,et,null);else{var Pt=mt.append(Ve,at);if(at(Ve.shared.gl,".useProgram(",Pt,".program);"),et.shader.program)we(Ve,at,et,et.shader.program);else{at(Ve.shared.vao,".setVAO(null);");var ht=Ve.global.def("{}"),cr=at.def(Pt,".id"),br=at.def(ht,"[",cr,"]");at(Ve.cond(br).then(br,".call(this,a0,a1);").else(br,"=",ht,"[",cr,"]=",Ve.link(function(Nr){return q(we,Ve,et,Nr,2)}),"(",Pt,");",br,".call(this,a0,a1);"))}}Object.keys(et.state).length>0&&at(Ve.shared.current,".dirty=true;"),Ve.shared.vao&&at(Ve.shared.vao,".setVAO(null);")}function ft(Ve,et){var at=Ve.proc("scope",3);Ve.batchId="a2";var kt=Ve.shared,Ot=kt.current;if(ls(Ve,at,et.context),et.framebuffer&&et.framebuffer.append(Ve,at),Ai(Object.keys(et.state)).forEach(function(Rt){var mt=et.state[Rt],Pt=mt.append(Ve,at);En(Pt)?Pt.forEach(function(ht,cr){vn(ht)?at.set(Ve.next[Rt],"["+cr+"]",ht):at.set(Ve.next[Rt],"["+cr+"]",Ve.link(ht,{stable:!0}))}):Rn(mt)?at.set(kt.next,"."+Rt,Ve.link(Pt,{stable:!0})):at.set(kt.next,"."+Rt,Pt)}),io(Ve,at,et,!0,!0),[Tt,xr,Jt,Pr,Kt].forEach(function(Rt){var mt=et.draw[Rt];if(mt){var Pt=mt.append(Ve,at);vn(Pt)?at.set(kt.draw,"."+Rt,Pt):at.set(kt.draw,"."+Rt,Ve.link(Pt),{stable:!0})}}),Object.keys(et.uniforms).forEach(function(Rt){var mt=et.uniforms[Rt].append(Ve,at);Array.isArray(mt)&&(mt="["+mt.map(function(Pt){return vn(Pt)?Pt:Ve.link(Pt,{stable:!0})})+"]"),at.set(kt.uniforms,"["+Ve.link(xt.id(Rt),{stable:!0})+"]",mt)}),Object.keys(et.attributes).forEach(function(Rt){var mt=et.attributes[Rt].append(Ve,at),Pt=Ve.scopeAttrib(Rt);Object.keys(new Yr).forEach(function(ht){at.set(Pt,"."+ht,mt[ht])})}),et.scopeVAO){var It=et.scopeVAO.append(Ve,at);vn(It)?at.set(kt.vao,".targetVAO",It):at.set(kt.vao,".targetVAO",Ve.link(It,{stable:!0}))}function Bt(Rt){var mt=et.shader[Rt];if(mt){var Pt=mt.append(Ve,at);vn(Pt)?at.set(kt.shader,"."+Rt,Pt):at.set(kt.shader,"."+Rt,Ve.link(Pt,{stable:!0}))}}Bt(Xe),Bt(ot),Object.keys(et.state).length>0&&(at(Ot,".dirty=true;"),at.exit(Ot,".dirty=true;")),at("a1(",Ve.shared.context,",a0,",Ve.batchId,");")}function Zt(Ve){if(!(typeof Ve!="object"||En(Ve))){for(var et=Object.keys(Ve),at=0;at=0;--q){var K=Un[q];K&&K(si,null,0)}zt.flush(),Mi&&Mi.update()}function wa(){!ra&&Un.length>0&&(ra=d.next(oa))}function ns(){ra&&(d.cancel(oa),ra=null)}function Ys(q){q.preventDefault(),Hr=!0,ns(),na.forEach(function(K){K()})}function Va(q){zt.getError(),Hr=!1,Br.restore(),qn.restore(),Ii.restore(),vi.restore(),li.restore(),mn.restore(),nn.restore(),Mi&&Mi.restore(),Ki.procs.refresh(),wa(),Yi.forEach(function(K){K()})}vn&&(vn.addEventListener(Fo,Ys,!1),vn.addEventListener(Uo,Va,!1));function Ml(){Un.length=0,ns(),vn&&(vn.removeEventListener(Fo,Ys),vn.removeEventListener(Uo,Va)),qn.clear(),mn.clear(),li.clear(),nn.clear(),vi.clear(),ci.clear(),Ii.clear(),Mi&&Mi.clear(),Ln.forEach(function(q){q()})}function zo(q){function K(It){var Bt=e({},It);delete Bt.uniforms,delete Bt.attributes,delete Bt.context,delete Bt.vao,"stencil"in Bt&&Bt.stencil.op&&(Bt.stencil.opBack=Bt.stencil.opFront=Bt.stencil.op,delete Bt.stencil.op);function Rt(mt){if(mt in Bt){var Pt=Bt[mt];delete Bt[mt],Object.keys(Pt).forEach(function(ht){Bt[mt+"."+ht]=Pt[ht]})}}return Rt("blend"),Rt("depth"),Rt("cull"),Rt("stencil"),Rt("polygonOffset"),Rt("scissor"),Rt("sample"),"vao"in It&&(Bt.vao=It.vao),Bt}function de(It,Bt){var Rt={},mt={};return Object.keys(It).forEach(function(Pt){var ht=It[Pt];if(h.isDynamic(ht)){mt[Pt]=h.unbox(ht,Pt);return}else if(Bt&&Array.isArray(ht)){for(var cr=0;cr0)return Ve.call(this,kt(It|0),It|0)}else if(Array.isArray(It)){if(It.length)return Ve.call(this,It,It.length)}else return qt.call(this,It)}return e(Ot,{stats:Zt,destroy:function(){hr.destroy()}})}var el=mn.setFBO=zo({framebuffer:h.define.call(null,Qs,"framebuffer")});function ol(q,K){var de=0;Ki.procs.poll();var ne=K.color;ne&&(zt.clearColor(+ne[0]||0,+ne[1]||0,+ne[2]||0,+ne[3]||0),de|=Es),"depth"in K&&(zt.clearDepth(+K.depth),de|=Zs),"stencil"in K&&(zt.clearStencil(K.stencil|0),de|=Gn),zt.clear(de)}function Ul(q){if("framebuffer"in q)if(q.framebuffer&&q.framebuffer_reglType==="framebufferCube")for(var K=0;K<6;++K)el(e({framebuffer:q.framebuffer.faces[K]},q),ol);else el(q,ol);else ol(null,q)}function ls(q){Un.push(q);function K(){var de=vl(Un,q);function ne(){var we=vl(Un,ne);Un[we]=Un[Un.length-1],Un.length-=1,Un.length<=0&&ns()}Un[de]=ne}return wa(),{cancel:K}}function Gs(){var q=Bi.viewport,K=Bi.scissor_box;q[0]=q[1]=K[0]=K[1]=0,si.viewportWidth=si.framebufferWidth=si.drawingBufferWidth=q[2]=K[2]=zt.drawingBufferWidth,si.viewportHeight=si.framebufferHeight=si.drawingBufferHeight=q[3]=K[3]=zt.drawingBufferHeight}function Ks(){si.tick+=1,si.time=sl(),Gs(),Ki.procs.poll()}function Ta(){vi.refresh(),Gs(),Ki.procs.refresh(),Mi&&Mi.update()}function sl(){return(v()-Hn)/1e3}Ta();function io(q,K){var de;switch(q){case"frame":return ls(K);case"lost":de=na;break;case"restore":de=Yi;break;case"destroy":de=Ln;break;default:}return de.push(K),{cancel:function(){for(var ne=0;ne=0},read:Ui,destroy:Ml,_gl:zt,_refresh:Ta,poll:function(){Ks(),Mi&&Mi.update()},now:sl,stats:mi,getCachedCode:Y,preloadCachedCode:D});return xt.onDone(null,J),J}return Sc})});var wz=ye((y1r,vBe)=>{"use strict";var JNt=SX(),$Nt=dBe();vBe.exports=function(t,r,n){var i=t._fullLayout,a=!0;return i._glcanvas.each(function(o){if(o.regl){o.regl.preloadCachedCode(n);return}if(!(o.pick&&!i._has("parcoords"))){try{o.regl=$Nt({canvas:this,attributes:{antialias:!o.pick,preserveDrawingBuffer:!0},pixelRatio:t._context.plotGlPixelRatio||window.devicePixelRatio,extensions:r||[],cachedCode:n||{}})}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||JNt({container:i._glcontainer.node()}),a}});var fK=ye((cK,_Be)=>{"use strict";var pBe=cY(),gBe=UY(),QNt=iqe(),mBe=hBe(),uK=Dr(),eUt=Sg().selectMode,tUt=wz(),rUt=Ru(),iUt=gU(),nUt=oY().styleTextSelection,yBe={};function aUt(e,t,r,n){var i=e._size,a=e.width*n,o=e.height*n,s=i.l*n,l=i.b*n,u=i.r*n,c=i.t*n,f=i.w*n,h=i.h*n;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 cK=_Be.exports=function(t,r,n){if(n.length){var i=t._fullLayout,a=r._scene,o=r.xaxis,s=r.yaxis,l,u;if(a){var c=tUt(t,["ANGLE_instanced_arrays","OES_element_index_uint"],yBe);if(!c){a.init();return}var f=a.count,h=i._glcanvas.data()[0].regl;if(iUt(t,r,n),a.dirty){if((a.line2d||a.error2d)&&!(a.scatter2d||a.fill2d||a.glText)&&h.clear({color:!0,depth:!0}),a.error2d===!0&&(a.error2d=QNt(h)),a.line2d===!0&&(a.line2d=gBe(h)),a.scatter2d===!0&&(a.scatter2d=pBe(h)),a.fill2d===!0&&(a.fill2d=gBe(h)),a.glText===!0)for(a.glText=new Array(f),l=0;la.glText.length){var d=f-a.glText.length;for(l=0;loe&&(isNaN(re[_e])||isNaN(re[_e+1]));)_e-=2;j.positions=re.slice(oe,_e+2)}return j}),a.line2d.update(a.lineOptions)),a.error2d){var b=(a.errorXOptions||[]).concat(a.errorYOptions||[]);a.error2d.update(b)}a.scatter2d&&a.scatter2d.update(a.markerOptions),a.fillOrder=uK.repeat(null,f),a.fill2d&&(a.fillOptions=a.fillOptions.map(function(j,re){var oe=n[re];if(!(!j||!oe||!oe[0]||!oe[0].trace)){var _e=oe[0],Me=_e.trace,ke=_e.t,me=a.lineOptions[re],ie,Se,Le=[];Me._ownfill&&Le.push(re),Me._nexttrace&&Le.push(re+1),Le.length&&(a.fillOrder[re]=Le);var Ae=[],De=me&&me.positions||ke.positions,Pe,ge;if(Me.fill==="tozeroy"){for(Pe=0;PePe&&isNaN(De[ge+1]);)ge-=2;De[Pe+1]!==0&&(Ae=[De[Pe],0]),Ae=Ae.concat(De.slice(Pe,ge+2)),De[ge+1]!==0&&(Ae=Ae.concat([De[ge],0]))}else if(Me.fill==="tozerox"){for(Pe=0;PePe&&isNaN(De[ge]);)ge-=2;De[Pe]!==0&&(Ae=[0,De[Pe+1]]),Ae=Ae.concat(De.slice(Pe,ge+2)),De[ge]!==0&&(Ae=Ae.concat([0,De[ge+1]]))}else if(Me.fill==="toself"||Me.fill==="tonext"){for(Ae=[],ie=0,j.splitNull=!0,Se=0;Se-1;for(l=0;l{"use strict";var xBe=qze();xBe.plot=fK();bBe.exports=xBe});var ABe=ye((x1r,TBe)=>{"use strict";TBe.exports=wBe()});var hK=ye((b1r,CBe)=>{"use strict";var oUt=pf(),EBe=Tu(),SBe=df().axisHoverFormat,sUt=Qo().hovertemplateAttrs,EC=sC(),lUt=hd().idRegex,uUt=pl().templatedArray,d5=Ao().extendFlat,o1=oUt.marker,cUt=o1.line,fUt=d5(EBe("marker.line",{editTypeOverride:"calc"}),{width:d5({},cUt.width,{editType:"calc"}),editType:"calc"}),Tz=d5(EBe("marker"),{symbol:o1.symbol,angle:o1.angle,size:d5({},o1.size,{editType:"markerSize"}),sizeref:o1.sizeref,sizemin:o1.sizemin,sizemode:o1.sizemode,opacity:o1.opacity,colorbar:o1.colorbar,line:fUt,editType:"calc"});Tz.color.editType=Tz.cmin.editType=Tz.cmax.editType="style";function MBe(e){return{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"subplotid",regex:lUt[e],editType:"plot"}}}CBe.exports={dimensions:uUt("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:!1,editType:"calc"},editType:"calc+clearAxisTypes"},editType:"calc+clearAxisTypes"}),text:d5({},EC.text,{}),hovertext:d5({},EC.hovertext,{}),hovertemplate:sUt(),xhoverformat:SBe("x"),yhoverformat:SBe("y"),marker:Tz,xaxes:MBe("x"),yaxes:MBe("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:EC.selected.marker,editType:"calc"},unselected:{marker:EC.unselected.marker,editType:"calc"},opacity:EC.opacity}});var Az=ye((w1r,kBe)=>{"use strict";kBe.exports=function(e,t,r,n){n||(n=1/0);var i,a;for(i=0;i{"use strict";var dK=Dr(),hUt=Yd(),LBe=hK(),dUt=Ru(),vUt=$p(),pUt=Az(),gUt=qF().isOpenSymbol;PBe.exports=function(t,r,n,i){function a(d,v){return dK.coerce(t,r,LBe,d,v)}var o=hUt(t,r,{name:"dimensions",handleItemDefaults:mUt}),s=a("diagonal.visible"),l=a("showupperhalf"),u=a("showlowerhalf"),c=pUt(r,o,"values");if(!c||!s&&!l&&!u){r.visible=!1;return}a("text"),a("hovertext"),a("hovertemplate"),a("xhoverformat"),a("yhoverformat"),vUt(t,r,n,i,a,{noAngleRef:!0,noStandOff:!0});var f=gUt(r.marker.symbol),h=dUt.isBubble(r);a("marker.line.width",f||h?1:0),yUt(t,r,i,a),dK.coerceSelectionMarkerOpacity(r,a)};function mUt(e,t){function r(i,a){return dK.coerce(e,t,LBe.dimensions,i,a)}r("label");var n=r("values");n&&n.length?r("visible"):t.visible=!1,r("axis.type"),r("axis.matches")}function yUt(e,t,r,n){var i=t.dimensions,a=i.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 RBe=Dr();DBe.exports=function(t,r){var n=t._fullLayout,i=r.uid,a=n._splomScenes;a||(a=n._splomScenes={});var o={dirty:!0,selectBatch:[],unselectBatch:[]},s={matrix:!1,selectBatch:[],unselectBatch:[]},l=a[r.uid];return l||(l=a[i]=RBe.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||RBe.extendFlat(l,o),l}});var qBe=ye((S1r,OBe)=>{"use strict";var vK=Dr(),Sz=hf(),_Ut=O0().calcMarkerSize,xUt=O0().calcAxisExpansion,bUt=F0(),zBe=Y2().markerSelection,wUt=Y2().markerStyle,TUt=FBe(),AUt=hs().BADNUM,SUt=sx().TOO_MANY_POINTS;OBe.exports=function(t,r){var n=r.dimensions,i=r._length,a={},o=a.cdata=[],s=a.data=[],l=r._visibleDims=[],u,c,f,h,d;function v(E,A){for(var L=E.makeCalcdata({v:A.values,vcalendar:r.calendar},"v"),_=0;_SUt,p;for(b?p=a.sizeAvg||Math.max(a.size,3):p=_Ut(r,i),c=0;c{(function(){var e,t,r,n,i,a;typeof performance!="undefined"&&performance!==null&&performance.now?CC.exports=function(){return performance.now()}:typeof process!="undefined"&&process!==null&&process.hrtime?(CC.exports=function(){return(e()-i)/1e6},t=process.hrtime,e=function(){var o;return o=t(),o[0]*1e9+o[1]},n=e(),a=process.uptime()*1e9,i=n-a):Date.now?(CC.exports=function(){return Date.now()-r},r=Date.now()):(CC.exports=function(){return new Date().getTime()-r},r=new Date().getTime())}).call(BBe)});var VBe=ye((M1r,Cz)=>{var MUt=NBe(),s1=window,Mz=["moz","webkit"],p5="AnimationFrame",g5=s1["request"+p5],kC=s1["cancel"+p5]||s1["cancelRequest"+p5];for(v5=0;!g5&&v5{GBe.exports=function(t,r){var n=typeof t=="number",i=typeof r=="number";n&&!i?(r=t,t=0):!n&&!i&&(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 EUt=cY(),CUt=Xm(),kUt=j2(),jBe=VBe(),LUt=HBe(),gK=e5(),PUt=W2();XBe.exports=px;function px(e,t){if(!(this instanceof px))return new px(e,t);this.traces=[],this.passes={},this.regl=e,this.scatter=EUt(e),this.canvas=this.scatter.canvas}px.prototype.render=function(...e){return e.length&&this.update(...e),this.regl.attributes.preserveDrawingBuffer?this.draw():(this.dirty?this.planned==null&&(this.planned=jBe(()=>{this.draw(),this.dirty=!0,this.planned=null})):(this.draw(),this.dirty=!0,jBe(()=>{this.dirty=!1})),this)};px.prototype.update=function(...e){if(!e.length)return;for(let n=0;nb||!i.lower&&x{t[a+s]=n})}this.scatter.draw(...t)}return this};px.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 IUt(e,t,r){let n=e.id!=null?e.id:e,i=t,a=r;return n<<16|(i&255)<<8|a&255}function kz(e,t,r){let n,i,a,o,s,l,u,c,f=e[t],h=e[r];return f.length>2?(n=f[0],a=f[2],i=f[1],o=f[3]):f.length?(n=i=f[0],a=o=f[1]):(n=f.x,i=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,i,u,o]}function WBe(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=gK(e);return[t.x,t.y,t.x+t.width,t.y+t.height]}}});var KBe=ye((k1r,YBe)=>{"use strict";var RUt=ZBe(),mK=Dr(),Lz=hf(),DUt=Sg().selectMode;YBe.exports=function(t,r,n){if(n.length)for(var i=0;i-1,T=DUt(c)||!!i.selectedpoints||P,z=!0;if(T){var O=i._length;if(i.selectedpoints){o.selectBatch=i.selectedpoints;var V=i.selectedpoints,G={};for(d=0;d{"use strict";JBe.getDimIndex=function(t,r){for(var n=r._id,i=n.charAt(0),a={x:0,y:1}[i],o=t._visibleDims,s=0;s{"use strict";var $Be=yK(),zUt=OF().calcHover,QBe=ho().getFromId,OUt=Ao().extendFlat;function qUt(e,t,r,n,i){i||(i={});var a=(n||"").charAt(0)==="x",o=(n||"").charAt(0)==="y",s=eNe(e,t,r);if((a||o)&&i.hoversubplots==="axis"&&s[0])for(var l=(a?e.xa:e.ya)._subplotsWith,u=i.gd,c=OUt({},e),f=0;f{"use strict";var oNe=Dr(),iNe=oNe.pushUnique,nNe=Ru(),aNe=yK();sNe.exports=function(t,r){var n=t.cd,i=n[0].trace,a=n[0].t,o=t.scene,s=o.matrixOptions.cdata,l=t.xaxis,u=t.yaxis,c=[];if(!o)return c;var f=!nNe.hasMarkers(i)&&!nNe.hasText(i);if(i.visible!==!0||f)return c;var h=aNe.getDimIndex(i,l),d=aNe.getDimIndex(i,u);if(h===!1||d===!1)return c;var v=a.xpx[h],x=a.ypx[d],b=s[h],p=s[d],C=(t.scene.selectBatch||[]).slice(),E=[];if(r!==!1&&!r.degenerate)for(var A=0;A{"use strict";var uNe=Dr(),BUt=F0(),NUt=Y2().markerStyle;cNe.exports=function(t,r){var n=r.trace,i=t._fullLayout._splomScenes[n.uid];if(i){BUt(t,n),uNe.extendFlat(i.matrixOptions,NUt(t,n));var a=uNe.extendFlat({},i.matrixOptions,i.viewOpts);i.matrix.update(a,null)}}});var dNe=ye((D1r,hNe)=>{"use strict";var UUt=qa(),VUt=lV();hNe.exports={moduleType:"trace",name:"splom",categories:["gl","regl","cartesian","symbols","showLegend","scatter-like"],attributes:hK(),supplyDefaults:IBe(),colorbar:$d(),calc:qBe(),plot:KBe(),hoverPoints:rNe().hoverPoints,selectPoints:lNe(),editStyle:fNe(),meta:{}};UUt.register(VUt)});var _Ne=ye((F1r,yNe)=>{"use strict";var GUt=UY(),HUt=qa(),jUt=wz(),WUt=Id().getModuleCalcData,gx=vh(),vNe=hf().getFromId,pNe=ho().shouldShowZeroLine,gNe="splom",mNe={};function XUt(e){var t=e._fullLayout,r=HUt.getModule(gNe),n=WUt(e.calcdata,r)[0],i=jUt(e,["ANGLE_instanced_arrays","OES_element_index_uint"],mNe);i&&(t._hasOnlyLargeSploms&&_K(e),r.plot(e,{},n))}function ZUt(e){var t=e.calcdata,r=e._fullLayout;r._hasOnlyLargeSploms&&_K(e);for(var n=0;n{"use strict";var xNe=dNe();xNe.basePlotModule=_Ne(),bNe.exports=xNe});var ANe=ye((O1r,TNe)=>{"use strict";TNe.exports=wNe()});var wK=ye((q1r,SNe)=>{"use strict";var $Ut=Tu(),xK=Rd(),bK=ec(),QUt=kc().attributes,Pz=Ao().extendFlat,eVt=pl().templatedArray;SNe.exports={domain:QUt({name:"parcoords",trace:!0,editType:"plot"}),labelangle:{valType:"angle",dflt:0,editType:"plot"},labelside:{valType:"enumerated",values:["top","bottom"],dflt:"top",editType:"plot"},labelfont:bK({editType:"plot"}),tickfont:bK({autoShadowDflt:!0,editType:"plot"}),rangefont:bK({editType:"plot"}),dimensions:eVt("dimension",{label:{valType:"string",editType:"plot"},tickvals:Pz({},xK.tickvals,{editType:"plot"}),ticktext:Pz({},xK.ticktext,{editType:"plot"}),tickformat:Pz({},xK.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:Pz({editType:"calc"},$Ut("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 LC=ye((B1r,MNe)=>{"use strict";MNe.exports={maxDimensionCount:60,overdrag:45,verticalPadding:2,tickDistance:50,canvasPixelRatio:1,blockLineCount:5e3,layers:["contextLineLayer","focusLineLayer","pickLineLayer"],axisTitleOffset:28,axisExtentOffset:10,bar:{width:4,captureWidth:10,fillColor:"magenta",fillOpacity:1,snapDuration:150,snapRatio:.25,snapClose:.01,strokeOpacity:1,strokeWidth:1,handleHeight:8,handleOpacity:1,handleOverlap:0},cn:{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"},id:{filterBarPattern:"filter-bar-pattern"}}});var Km=ye((N1r,CNe)=>{"use strict";var tVt=VS();function ENe(e){return[e]}CNe.exports={keyFun:function(e){return e.key},repeat:ENe,descend:tVt,wrap:ENe,unwrap:function(e){return e[0]}}});var SK=ye((U1r,BNe)=>{"use strict";var yh=LC(),em=Oa(),rVt=Km().keyFun,Iz=Km().repeat,m5=Dr().sorterAsc,iVt=Dr().strTranslate,kNe=yh.bar.snapRatio;function LNe(e,t){return e*(1-kNe)+t*kNe}var PNe=yh.bar.snapClose;function nVt(e,t){return e*(1-PNe)+t*PNe}function Dz(e,t,r,n){if(aVt(r,n))return r;var i=e?-1:1,a=0,o=t.length-1;if(i<0){var s=a;a=o,o=s}for(var l=t[a],u=l,c=a;i*c=t[r][0]&&e<=t[r][1])return!0;return!1}function oVt(e){e.attr("x",-yh.bar.captureWidth/2).attr("width",yh.bar.captureWidth)}function sVt(e){e.attr("visibility","visible").style("visibility","visible").attr("fill","yellow").attr("opacity",0)}function lVt(e){if(!e.brush.filterSpecified)return"0,"+e.height;for(var t=INe(e.brush.filter.getConsolidated(),e.height),r=[0],n,i,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 RNe(){em.select(document.body).style("cursor",null)}function AK(e){e.attr("stroke-dasharray",lVt)}function Rz(e,t){var r=em.select(e).selectAll(".highlight, .highlight-shadow"),n=t?r.transition().duration(yh.bar.snapDuration).each("end",t):r;AK(n)}function DNe(e,t){var r=e.brush,n=r.filterSpecified,i=NaN,a={},o;if(n){var s=e.height,l=r.filter.getConsolidated(),u=INe(l,s),c=NaN,f=NaN,h=NaN;for(o=0;o<=u.length;o++){var d=u[o];if(d&&d[0]<=t&&t<=d[1]){c=o;break}else if(f=o?o-1:NaN,d&&d[0]>t){h=o;break}}if(i=c,isNaN(i)&&(isNaN(f)||isNaN(h)?i=isNaN(f)?h:f:i=t-u[f][1]=C[0]&&p<=C[1]){a.clickableOrdinalRange=C;break}}}return a}function cVt(e,t){em.event.sourceEvent.stopPropagation();var r=t.height-em.mouse(e)[1]-2*yh.verticalPadding,n=t.unitToPaddedPx.invert(r),i=t.brush,a=DNe(t,r),o=a.interval,s=i.svgBrush;if(s.wasDragged=!1,s.grabbingBar=a.region==="ns",s.grabbingBar){var l=o.map(t.unitToPaddedPx);s.grabPoint=r-l[0]-yh.verticalPadding,s.barLength=l[1]-l[0]}s.clickableOrdinalRange=a.clickableOrdinalRange,s.stayingIntervals=t.multiselect&&i.filterSpecified?i.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]:n,t.parent.inBrushDrag=!0,s.brushStartCallback()}function FNe(e,t){em.event.sourceEvent.stopPropagation();var r=t.height-em.mouse(e)[1]-2*yh.verticalPadding,n=t.brush.svgBrush;n.wasDragged=!0,n._dragging=!0,n.grabbingBar?n.newExtent=[r-n.grabPoint,r+n.barLength-n.grabPoint].map(t.unitToPaddedPx.invert):n.newExtent=[n.startExtent,t.unitToPaddedPx.invert(r)].sort(m5),t.brush.filterSpecified=!0,n.extent=n.stayingIntervals.concat([n.newExtent]),n.brushCallback(t),Rz(e.parentNode)}function fVt(e,t){var r=t.brush,n=r.filter,i=r.svgBrush;i._dragging||(zNe(e,t),FNe(e,t),t.brush.svgBrush.wasDragged=!1),i._dragging=!1;var a=em.event;a.sourceEvent.stopPropagation();var o=i.grabbingBar;if(i.grabbingBar=!1,i.grabLocation=void 0,t.parent.inBrushDrag=!1,RNe(),!i.wasDragged){i.wasDragged=void 0,i.clickableOrdinalRange?r.filterSpecified&&t.multiselect?i.extent.push(i.clickableOrdinalRange):(i.extent=[i.clickableOrdinalRange],r.filterSpecified=!0):o?(i.extent=i.stayingIntervals,i.extent.length===0&&TK(r)):TK(r),i.brushCallback(t),Rz(e.parentNode),i.brushEndCallback(r.filterSpecified?n.getConsolidated():[]);return}var s=function(){n.set(n.getConsolidated())};if(t.ordinal){var l=t.unitTickvals;l[l.length-1]i.newExtent[0];i.extent=i.stayingIntervals.concat(u?[i.newExtent]:[]),i.extent.length||TK(r),i.brushCallback(t),u?Rz(e.parentNode,s):(s(),Rz(e.parentNode))}else s();i.brushEndCallback(r.filterSpecified?n.getConsolidated():[])}function zNe(e,t){var r=t.height-em.mouse(e)[1]-2*yh.verticalPadding,n=DNe(t,r),i="crosshair";n.clickableOrdinalRange?i="pointer":n.region&&(i=n.region+"-resize"),em.select(document.body).style("cursor",i)}function hVt(e){e.on("mousemove",function(t){em.event.preventDefault(),t.parent.inBrushDrag||zNe(this,t)}).on("mouseleave",function(t){t.parent.inBrushDrag||RNe()}).call(em.behavior.drag().on("dragstart",function(t){cVt(this,t)}).on("drag",function(t){FNe(this,t)}).on("dragend",function(t){fVt(this,t)}))}function ONe(e,t){return e[0]-t[0]}function dVt(e,t,r){var n=r._context.staticPlot,i=e.selectAll(".background").data(Iz);i.enter().append("rect").classed("background",!0).call(oVt).call(sVt).style("pointer-events",n?"none":"auto").attr("transform",iVt(0,yh.verticalPadding)),i.call(hVt).attr("height",function(s){return s.height-yh.verticalPadding});var a=e.selectAll(".highlight-shadow").data(Iz);a.enter().append("line").classed("highlight-shadow",!0).attr("x",-yh.bar.width/2).attr("stroke-width",yh.bar.width+yh.bar.strokeWidth).attr("stroke",t).attr("opacity",yh.bar.strokeOpacity).attr("stroke-linecap","butt"),a.attr("y1",function(s){return s.height}).call(AK);var o=e.selectAll(".highlight").data(Iz);o.enter().append("line").classed("highlight",!0).attr("x",-yh.bar.width/2).attr("stroke-width",yh.bar.width-yh.bar.strokeWidth).attr("stroke",yh.bar.fillColor).attr("opacity",yh.bar.fillOpacity).attr("stroke-linecap","butt"),o.attr("y1",function(s){return s.height}).call(AK)}function vVt(e,t,r){var n=e.selectAll("."+yh.cn.axisBrush).data(Iz,rVt);n.enter().append("g").classed(yh.cn.axisBrush,!0),dVt(n,t,r)}function pVt(e){return e.svgBrush.extent.map(function(t){return t.slice()})}function TK(e){e.filterSpecified=!1,e.svgBrush.extent=[[-1/0,1/0]]}function gVt(e){return function(r){var n=r.brush,i=pVt(n),a=i.slice();n.filter.set(a),e()}}function qNe(e){for(var t=e.slice(),r=[],n,i=t.shift();i;){for(n=i.slice();(i=t.shift())&&i[0]<=n[1];)n[1]=Math.max(n[1],i[1]);r.push(n)}return r.length===1&&r[0][0]>r[0][1]&&(r=[]),r}function mVt(){var e=[],t,r;return{set:function(n){e=n.map(function(i){return i.slice().sort(m5)}).sort(ONe),e.length===1&&e[0][0]===-1/0&&e[0][1]===1/0&&(e=[[0,-1]]),t=qNe(e),r=e.reduce(function(i,a){return[Math.min(i[0],a[0]),Math.max(i[1],a[1])]},[1/0,-1/0])},get:function(){return e.slice()},getConsolidated:function(){return t},getBounds:function(){return r}}}function yVt(e,t,r,n,i,a){var o=mVt();return o.set(r),{filter:o,filterSpecified:t,svgBrush:{extent:[],brushStartCallback:n,brushCallback:gVt(i),brushEndCallback:a}}}function _Vt(e,t){if(Array.isArray(e[0])?(e=e.map(function(n){return n.sort(m5)}),t.multiselect?e=qNe(e.sort(ONe)):e=[e[0]]):e=[e.sort(m5)],t.tickvals){var r=t.tickvals.slice().sort(m5);if(e=e.map(function(n){var i=[Dz(0,r,n[0],[]),Dz(1,r,n[1],[])];if(i[1]>i[0])return i}).filter(function(n){return n}),!e.length)return}return e.length>1?e:e[0]}BNe.exports={makeBrush:yVt,ensureAxisBrush:vVt,cleanRanges:_Vt}});var VNe=ye((V1r,UNe)=>{"use strict";var mx=Dr(),xVt=Dv().hasColorscale,bVt=Jh(),wVt=kc().defaults,TVt=Yd(),AVt=ho(),NNe=wK(),SVt=SK(),MK=LC().maxDimensionCount,MVt=Az();function EVt(e,t,r,n,i){var a=i("line.color",r);if(xVt(e,"line")&&mx.isArrayOrTypedArray(a)){if(a.length)return i("line.colorscale"),bVt(e,t,n,i,{prefix:"line.",cLetter:"c"}),a.length;t.line.color=r}return 1/0}function CVt(e,t,r,n){function i(u,c){return mx.coerce(e,t,NNe.dimensions,u,c)}var a=i("values"),o=i("visible");if(a&&a.length||(o=t.visible=!1),o){i("label"),i("tickvals"),i("ticktext"),i("tickformat");var s=i("range");t._ax={_id:"y",type:"linear",showexponent:"all",exponentformat:"B",range:s},AVt.setConvert(t._ax,n.layout),i("multiselect");var l=i("constraintrange");l&&(t.constraintrange=SVt.cleanRanges(l,t))}}UNe.exports=function(t,r,n,i){function a(c,f){return mx.coerce(t,r,NNe,c,f)}var o=t.dimensions;Array.isArray(o)&&o.length>MK&&(mx.log("parcoords traces support up to "+MK+" dimensions at the moment"),o.splice(MK));var s=TVt(t,r,{name:"dimensions",layout:i,handleItemDefaults:CVt}),l=EVt(t,r,n,i,a);wVt(r,i,a),(!Array.isArray(s)||!s.length)&&(r.visible=!1),MVt(r,s,"values",l);var u=mx.extendFlat({},i.font,{size:Math.round(i.font.size/1.2)});mx.coerceFont(a,"labelfont",u),mx.coerceFont(a,"tickfont",u,{autoShadowDflt:!0}),mx.coerceFont(a,"rangefont",u),a("labelangle"),a("labelside"),a("unselected.line.color"),a("unselected.line.opacity")}});var HNe=ye((G1r,GNe)=>{"use strict";var kVt=Dr().isArrayOrTypedArray,EK=tc(),LVt=Km().wrap;GNe.exports=function(t,r){var n,i;return EK.hasColorscale(r,"line")&&kVt(r.line.color)?(n=r.line.color,i=EK.extractOpts(r.line).colorscale,EK.calc(t,r,{vals:n,containerStr:"line",cLetter:"c"})):(n=PVt(r._length),i=[[0,r.line.color],[1,r.line.color]]),LVt({lineColor:n,cscale:i})};function PVt(e){for(var t=new Array(e),r=0;r>>16,(e&65280)>>>8,e&255],alpha:1};if(typeof e=="number")return{space:"rgb",values:[e>>>16,(e&65280)>>>8,e&255],alpha:1};if(e=String(e).toLowerCase(),CK.default[e])r=CK.default[e].slice(),i="rgb";else if(e==="transparent")n=0,i="rgb",r=[0,0,0];else if(e[0]==="#"){var a=e.slice(1),o=a.length,s=o<=4;n=1,s?(r=[parseInt(a[0]+a[0],16),parseInt(a[1]+a[1],16),parseInt(a[2]+a[2],16)],o===4&&(n=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&&(n=parseInt(a[6]+a[7],16)/255)),r[0]||(r[0]=0),r[1]||(r[1]=0),r[2]||(r[2]=0),i="rgb"}else if(t=/^((?:rgba?|hs[lvb]a?|hwba?|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms|oklch|oklab|color))\s*\(([^\)]*)\)/.exec(e)){var l=t[1];i=l.replace(/a$/,"");var u=i==="cmyk"?4:i==="gray"?1:3;r=t[2].trim().split(/\s*[,\/]\s*|\s+/),i==="color"&&(i=r.shift()),r=r.map(function(h,d){if(h[h.length-1]==="%")return h=parseFloat(h)/100,d===3?h:i==="rgb"?h*255:i[0]==="h"||i[0]==="l"&&!d?h*100:i==="lab"?h*125:i==="lch"?d<2?h*150:h*360:i[0]==="o"&&!d?h:i==="oklab"?h*.4:i==="oklch"?d<2?h*.4:h*360:h;if(i[d]==="h"||d===2&&i[i.length-1]==="h"){if(jNe[h]!==void 0)return jNe[h];if(h.endsWith("deg"))return parseFloat(h);if(h.endsWith("turn"))return parseFloat(h)*360;if(h.endsWith("grad"))return parseFloat(h)*360/400;if(h.endsWith("rad"))return parseFloat(h)*180/Math.PI}return h==="none"?0:parseFloat(h)}),n=r.length>u?r.pop():1}else/[0-9](?:\s|\/|,)/.test(e)&&(r=e.match(/([0-9]+)/g).map(function(h){return parseFloat(h)}),i=((f=(c=e.match(/([a-z])/ig))==null?void 0:c.join(""))==null?void 0:f.toLowerCase())||"rgb");return{space:i,values:r,alpha:n}}var CK,WNe,jNe,XNe=ru(()=>{CK=Zet(hX(),1),WNe=IVt,jNe={red:0,orange:60,yellow:120,green:180,blue:240,purple:300}});var PC,kK=ru(()=>{PC={name:"rgb",min:[0,0,0],max:[255,255,255],channel:["red","green","blue"],alias:["RGB"]}});var Fz,ZNe=ru(()=>{kK();Fz={name:"hsl",min:[0,0,0],max:[360,100,100],channel:["hue","saturation","lightness"],alias:["HSL"],rgb:function(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100,i,a,o,s,l,u=0;if(r===0)return l=n*255,[l,l,l];for(a=n<.5?n*(1+r):n+r-n*r,i=2*n-a,s=[0,0,0];u<3;)o=t+1/3*-(u-1),o<0?o++:o>1&&o--,l=6*o<1?i+(a-i)*6*o:2*o<1?a:3*o<2?i+(a-i)*(2/3-o)*6:i,s[u++]=l*255;return s}};PC.hsl=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=a-i,s,l,u;return a===i?s=0:t===a?s=(r-n)/o:r===a?s=2+(n-t)/o:n===a&&(s=4+(t-r)/o),s=Math.min(s*60,360),s<0&&(s+=360),u=(i+a)/2,a===i?l=0:u<=.5?l=o/(a+i):l=o/(2-a-i),[s,l*100,u*100]}});var KNe={};cee(KNe,{default:()=>YNe});function YNe(e){Array.isArray(e)&&e.raw&&(e=String.raw(...arguments)),e instanceof Number&&(e=+e);var t,r,n,i=WNe(e);if(!i.space)return[];let a=i.space[0]==="h"?Fz.min:PC.min,o=i.space[0]==="h"?Fz.max:PC.max;return t=Array(3),t[0]=Math.min(Math.max(i.values[0],a[0]),o[0]),t[1]=Math.min(Math.max(i.values[1],a[1]),o[1]),t[2]=Math.min(Math.max(i.values[2],a[2]),o[2]),i.space[0]==="h"&&(t=Fz.rgb(t)),t.push(Math.min(Math.max(i.alpha,0),1)),t}var JNe=ru(()=>{XNe();kK();ZNe()});var LK=ye(zz=>{"use strict";var RVt=Dr().isTypedArray;zz.convertTypedArray=function(e){return RVt(e)?Array.prototype.slice.call(e):e};zz.isOrdinal=function(e){return!!e.tickvals};zz.isVisible=function(e){return e.visible||!("visible"in e)}});var sUe=ye(($1r,oUe)=>{"use strict";var DVt=["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(` +`),FVt=["precision highp float;","","varying vec4 fragColor;","","void main() {"," gl_FragColor = fragColor;","}"].join(` +`),IC=LC().maxDimensionCount,iUe=Dr(),$Ne=1e-6,Oz=2048,zVt=new Uint8Array(4),QNe=new Uint8Array(4),eUe={shape:[256,1],format:"rgba",type:"uint8",mag:"nearest",min:"nearest"};function OVt(e){e.read({x:0,y:0,width:1,height:1,data:zVt})}function nUe(e,t,r,n,i){var a=e._gl;a.enable(a.SCISSOR_TEST),a.scissor(t,r,n,i),e.clear({color:[0,0,0,0],depth:1})}function qVt(e,t,r,n,i,a){var o=a.key;function s(l){var u=Math.min(n,i-l*n);l===0&&(window.cancelAnimationFrame(r.currentRafs[o]),delete r.currentRafs[o],nUe(e,a.scissorX,a.scissorY,a.scissorWidth,a.viewBoxSize[1])),!r.clearOnly&&(a.count=2*u,a.offset=2*l*n,t(a),l*n+u>>8*t)%256/255}function UVt(e,t,r){for(var n=new Array(e*(IC+4)),i=0,a=0;aZ&&(Z=M[z].dim1.canvasX,V=z);T===0&&nUe(i,0,0,u.canvasWidth,u.canvasHeight);var H=E(r);for(z=0;z{"use strict";var Bd=Oa(),l1=Dr(),IK=l1.isArrayOrTypedArray,dUe=l1.numberFormat,vUe=(JNe(),B1(KNe)).default,pUe=ho(),WVt=l1.strRotate,Jm=l1.strTranslate,XVt=iu(),qz=So(),lUe=tc(),FK=Km(),tg=FK.keyFun,$m=FK.repeat,gUe=FK.unwrap,y5=LK(),Rl=LC(),mUe=SK(),ZVt=sUe();function uUe(e,t,r){return l1.aggNums(e,null,t,r)}function yUe(e,t){return zK(uUe(Math.min,e,t),uUe(Math.max,e,t))}function Bz(e){var t=e.range;return t?zK(t[0],t[1]):yUe(e.values,e._length)}function zK(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 YVt(e,t){return t?function(r,n){var i=t[n];return i==null?e(r):i}:e}function KVt(e,t,r,n,i){var a=Bz(r);return n?Bd.scale.ordinal().domain(n.map(YVt(dUe(r.tickformat),i))).range(n.map(function(o){var s=(o-a[0])/(a[1]-a[0]);return e-t+s*(2*t-e)})):Bd.scale.linear().domain(a).range([e-t,t])}function JVt(e,t){return Bd.scale.linear().range([t,e-t])}function $Vt(e,t){return Bd.scale.linear().domain(Bz(e)).range([t,1-t])}function QVt(e){if(e.tickvals){var t=Bz(e);return Bd.scale.ordinal().domain(e.tickvals).range(e.tickvals.map(function(r){return(r-t[0])/(t[1]-t[0])}))}}function eGt(e){var t=e.map(function(a){return a[0]}),r=e.map(function(a){var o=vUe(a[1]);return Bd.rgb("rgb("+o[0]+","+o[1]+","+o[2]+")")}),n=function(a){return function(o){return o[a]}},i="rgb".split("").map(function(a){return Bd.scale.linear().clamp(!0).domain(t).range(r.map(n(a)))});return function(a){return i.map(function(o){return o(a)})}}function DK(e){return e.dimensions.some(function(t){return t.brush.filterSpecified})}function tGt(e,t,r){var n=gUe(t),i=n.trace,a=y5.convertTypedArray(n.lineColor),o=i.line,s={color:vUe(i.unselected.line.color),opacity:i.unselected.line.opacity},l=lUe.extractOpts(o),u=l.reversescale?lUe.flipScale(n.cscale):n.cscale,c=i.domain,f=i.dimensions,h=e.width,d=i.labelangle,v=i.labelside,x=i.labelfont,b=i.tickfont,p=i.rangefont,C=l1.extendDeepNoArrays({},o,{color:a.map(Bd.scale.linear().domain(Bz({values:a,range:[l.min,l.max],_length:i._length}))),blockLineCount:Rl.blockLineCount,canvasOverdrag:Rl.overdrag*Rl.canvasPixelRatio}),E=Math.floor(h*(c.x[1]-c.x[0])),A=Math.floor(e.height*(c.y[1]-c.y[0])),L=e.margin||{l:80,r:80,t:100,b:80},_=E,k=A;return{key:r,colCount:f.filter(y5.isVisible).length,dimensions:f,tickDistance:Rl.tickDistance,unitToColor:eGt(u),lines:C,deselectedLines:s,labelAngle:d,labelSide:v,labelFont:x,tickFont:b,rangeFont:p,layoutWidth:h,layoutHeight:e.height,domain:c,translateX:c.x[0]*h,translateY:e.height-c.y[1]*e.height,pad:L,canvasWidth:_*Rl.canvasPixelRatio+2*C.canvasOverdrag,canvasHeight:k*Rl.canvasPixelRatio,width:_,height:k,canvasPixelRatio:Rl.canvasPixelRatio}}function rGt(e,t,r){var n=r.width,i=r.height,a=r.dimensions,o=r.canvasPixelRatio,s=function(h){return n*h/Math.max(1,r.colCount-1)},l=Rl.verticalPadding/i,u=JVt(i,Rl.verticalPadding),c={key:r.key,xScale:s,model:r,inBrushDrag:!1},f={};return c.dimensions=a.filter(y5.isVisible).map(function(h,d){var v=$Vt(h,l),x=f[h.label];f[h.label]=(x||0)+1;var b=h.label+(x?"__"+x:""),p=h.constraintrange,C=p&&p.length;C&&!IK(p[0])&&(p=[p]);var E=C?p.map(function(O){return O.map(v)}):[[-1/0,1/0]],A=function(){var O=c;O.focusLayer&&O.focusLayer.render(O.panels,!0);var V=DK(O);!e.contextShown()&&V?(O.contextLayer&&O.contextLayer.render(O.panels,!0),e.contextShown(!0)):e.contextShown()&&!V&&(O.contextLayer&&O.contextLayer.render(O.panels,!0,!0),e.contextShown(!1))},L=h.values;L.length>h._length&&(L=L.slice(0,h._length));var _=h.tickvals,k;function M(O,V){return{val:O,text:k[V]}}function g(O,V){return O.val-V.val}if(IK(_)&&_.length){l1.isTypedArray(_)&&(_=Array.from(_)),k=h.ticktext,!IK(k)||!k.length?k=_.map(dUe(h.tickformat)):k.length>_.length?k=k.slice(0,_.length):_.length>k.length&&(_=_.slice(0,k.length));for(var P=1;P<_.length;P++)if(_[P]<_[P-1]){for(var T=_.map(M).sort(g),z=0;z<_.length;z++)_[z]=T[z].val,k[z]=T[z].text;break}}else _=void 0;return L=y5.convertTypedArray(L),{key:b,label:h.label,tickFormat:h.tickformat,tickvals:_,ticktext:k,ordinal:y5.isOrdinal(h),multiselect:h.multiselect,xIndex:d,crossfilterDimensionIndex:d,visibleIndex:h._index,height:i,values:L,paddedUnitValues:L.map(v),unitTickvals:_&&_.map(v),xScale:s,x:s(d),canvasX:s(d)*o,unitToPaddedPx:u,domainScale:KVt(i,Rl.verticalPadding,h,_,k),ordinalScale:QVt(h),parent:c,model:r,brush:mUe.makeBrush(e,C,E,function(){e.linePickActive(!1)},A,function(O){if(c.focusLayer.render(c.panels,!0),c.pickLayer&&c.pickLayer.render(c.panels,!0),e.linePickActive(!0),t&&t.filterChanged){var V=v.invert,G=O.map(function(Z){return Z.map(V).sort(l1.sorterAsc)}).sort(function(Z,H){return Z[0]-H[0]});t.filterChanged(c.key,h._index,G)}})}}),c}function cUe(e){e.classed(Rl.cn.axisExtentText,!0).attr("text-anchor","middle").style("cursor","default")}function iGt(){var e=!0,t=!1;return{linePickActive:function(r){return arguments.length?e=!!r:e},contextShown:function(r){return arguments.length?t=!!r:t}}}function fUe(e,t){var r=t==="top"?1:-1,n=e*Math.PI/180,i=Math.sin(n),a=Math.cos(n);return{dir:r,dx:i,dy:a,degrees:e}}function RK(e,t,r){for(var n=t.panels||(t.panels=[]),i=e.data(),a=0;a=V||N>=G)return;var j=z.lineLayer.readPixel(H,G-1-N),re=j[3]!==0,oe=re?j[2]+256*(j[1]+256*j[0]):null,_e={x:H,y:N,clientX:O.clientX,clientY:O.clientY,dataIndex:z.model.key,curveNumber:oe};oe!==v&&(re?i.hover(_e):i.unhover&&i.unhover(_e),v=oe)}}),d.style("opacity",function(z){return z.pick?0:1}),s.style("background","rgba(255, 255, 255, 0)");var b=s.selectAll("."+Rl.cn.parcoords).data(h,tg);b.exit().remove(),b.enter().append("g").classed(Rl.cn.parcoords,!0).style("shape-rendering","crispEdges").style("pointer-events","none"),b.attr("transform",function(z){return Jm(z.model.translateX,z.model.translateY)});var p=b.selectAll("."+Rl.cn.parcoordsControlView).data($m,tg);p.enter().append("g").classed(Rl.cn.parcoordsControlView,!0),p.attr("transform",function(z){return Jm(z.model.pad.l,z.model.pad.t)});var C=p.selectAll("."+Rl.cn.yAxis).data(function(z){return z.dimensions},tg);C.enter().append("g").classed(Rl.cn.yAxis,!0),p.each(function(z){RK(C,z,u)}),d.each(function(z){if(z.viewModel){!z.lineLayer||i?z.lineLayer=ZVt(this,z):z.lineLayer.update(z),(z.key||z.key===0)&&(z.viewModel[z.key]=z.lineLayer);var O=!z.context||i;z.lineLayer.render(z.viewModel.panels,O)}}),C.attr("transform",function(z){return Jm(z.xScale(z.xIndex),0)}),C.call(Bd.behavior.drag().origin(function(z){return z}).on("drag",function(z){var O=z.parent;f.linePickActive(!1),z.x=Math.max(-Rl.overdrag,Math.min(z.model.width+Rl.overdrag,Bd.event.x)),z.canvasX=z.x*z.model.canvasPixelRatio,C.sort(function(V,G){return V.x-G.x}).each(function(V,G){V.xIndex=G,V.x=z===V?V.x:V.xScale(V.xIndex),V.canvasX=V.x*V.model.canvasPixelRatio}),RK(C,O,u),C.filter(function(V){return Math.abs(z.xIndex-V.xIndex)!==0}).attr("transform",function(V){return Jm(V.xScale(V.xIndex),0)}),Bd.select(this).attr("transform",Jm(z.x,0)),C.each(function(V,G,Z){Z===z.parent.key&&(O.dimensions[G]=V)}),O.contextLayer&&O.contextLayer.render(O.panels,!1,!DK(O)),O.focusLayer.render&&O.focusLayer.render(O.panels)}).on("dragend",function(z){var O=z.parent;z.x=z.xScale(z.xIndex),z.canvasX=z.x*z.model.canvasPixelRatio,RK(C,O,u),Bd.select(this).attr("transform",function(V){return Jm(V.x,0)}),O.contextLayer&&O.contextLayer.render(O.panels,!1,!DK(O)),O.focusLayer&&O.focusLayer.render(O.panels),O.pickLayer&&O.pickLayer.render(O.panels,!0),f.linePickActive(!0),i&&i.axesMoved&&i.axesMoved(O.key,O.dimensions.map(function(V){return V.crossfilterDimensionIndex}))})),C.exit().remove();var E=C.selectAll("."+Rl.cn.axisOverlays).data($m,tg);E.enter().append("g").classed(Rl.cn.axisOverlays,!0),E.selectAll("."+Rl.cn.axis).remove();var A=E.selectAll("."+Rl.cn.axis).data($m,tg);A.enter().append("g").classed(Rl.cn.axis,!0),A.each(function(z){var O=z.model.height/z.model.tickDistance,V=z.domainScale,G=V.domain();Bd.select(this).call(Bd.svg.axis().orient("left").tickSize(4).outerTickSize(2).ticks(O,z.tickFormat).tickValues(z.ordinal?G:null).tickFormat(function(Z){return y5.isOrdinal(z)?Z:_Ue(z.model.dimensions[z.visibleIndex],Z)}).scale(V)),qz.font(A.selectAll("text"),z.model.tickFont)}),A.selectAll(".domain, .tick>line").attr("fill","none").attr("stroke","black").attr("stroke-opacity",.25).attr("stroke-width","1px"),A.selectAll("text").style("cursor","default");var L=E.selectAll("."+Rl.cn.axisHeading).data($m,tg);L.enter().append("g").classed(Rl.cn.axisHeading,!0);var _=L.selectAll("."+Rl.cn.axisTitle).data($m,tg);_.enter().append("text").classed(Rl.cn.axisTitle,!0).attr("text-anchor","middle").style("cursor","ew-resize").style("pointer-events",a?"none":"auto"),_.text(function(z){return z.label}).each(function(z){var O=Bd.select(this);qz.font(O,z.model.labelFont),XVt.convertToTspans(O,t)}).attr("transform",function(z){var O=fUe(z.model.labelAngle,z.model.labelSide),V=Rl.axisTitleOffset;return(O.dir>0?"":Jm(0,2*V+z.model.height))+WVt(O.degrees)+Jm(-V*O.dx,-V*O.dy)}).attr("text-anchor",function(z){var O=fUe(z.model.labelAngle,z.model.labelSide),V=Math.abs(O.dx),G=Math.abs(O.dy);return 2*V>G?O.dir*O.dx<0?"start":"end":"middle"});var k=E.selectAll("."+Rl.cn.axisExtent).data($m,tg);k.enter().append("g").classed(Rl.cn.axisExtent,!0);var M=k.selectAll("."+Rl.cn.axisExtentTop).data($m,tg);M.enter().append("g").classed(Rl.cn.axisExtentTop,!0),M.attr("transform",Jm(0,-Rl.axisExtentOffset));var g=M.selectAll("."+Rl.cn.axisExtentTopText).data($m,tg);g.enter().append("text").classed(Rl.cn.axisExtentTopText,!0).call(cUe),g.text(function(z){return hUe(z,!0)}).each(function(z){qz.font(Bd.select(this),z.model.rangeFont)});var P=k.selectAll("."+Rl.cn.axisExtentBottom).data($m,tg);P.enter().append("g").classed(Rl.cn.axisExtentBottom,!0),P.attr("transform",function(z){return Jm(0,z.model.height+Rl.axisExtentOffset)});var T=P.selectAll("."+Rl.cn.axisExtentBottomText).data($m,tg);T.enter().append("text").classed(Rl.cn.axisExtentBottomText,!0).attr("dy","0.75em").call(cUe),T.text(function(z){return hUe(z,!1)}).each(function(z){qz.font(Bd.select(this),z.model.rangeFont)}),mUe.ensureAxisBrush(E,c,t)}});var qK=ye((OK,SUe)=>{"use strict";var aGt=bUe(),oGt=wz(),wUe=LK().isVisible,AUe={};function TUe(e,t,r){var n=t.indexOf(r),i=e.indexOf(n);return i===-1&&(i+=t.length),i}function sGt(e,t){return function(n,i){return TUe(e,t,n)-TUe(e,t,i)}}var OK=SUe.exports=function(t,r){var n=t._fullLayout,i=oGt(t,[],AUe);if(i){var a={},o={},s={},l={},u=n._size;r.forEach(function(v,x){var b=v[0].trace;s[x]=b.index;var p=l[x]=b.index;a[x]=t.data[p].dimensions,o[x]=t.data[p].dimensions.slice()});var c=function(v,x,b){var p=o[v][x],C=b.map(function(M){return M.slice()}),E="dimensions["+x+"].constraintrange",A=n._tracePreGUI[t._fullData[s[v]]._fullInput.uid];if(A[E]===void 0){var L=p.constraintrange;A[E]=L||null}var _=t._fullData[s[v]].dimensions[x];C.length?(C.length===1&&(C=C[0]),p.constraintrange=C,_.constraintrange=C.slice(),C=[C]):(delete p.constraintrange,delete _.constraintrange,C=null);var k={};k[E]=C,t.emit("plotly_restyle",[k,[l[v]]])},f=function(v){t.emit("plotly_hover",v)},h=function(v){t.emit("plotly_unhover",v)},d=function(v,x){var b=sGt(x,o[v].filter(wUe));a[v].sort(b),o[v].filter(function(p){return!wUe(p)}).sort(function(p){return o[v].indexOf(p)}).forEach(function(p){a[v].splice(a[v].indexOf(p),1),a[v].splice(o[v].indexOf(p),0,p)}),t.emit("plotly_restyle",[{dimensions:[a[v]]},[l[v]]])};aGt(t,r,{width:u.w,height:u.h,margin:{t:u.t,r:u.r,b:u.b,l:u.l}},{filterChanged:c,hover:f,unhover:h,axesMoved:d})}};OK.reglPrecompiled=AUe});var EUe=ye(RC=>{"use strict";var MUe=Oa(),lGt=Id().getModuleCalcData,uGt=qK(),cGt=Wp();RC.name="parcoords";RC.plot=function(e){var t=lGt(e.calcdata,"parcoords")[0];t.length&&uGt(e,t)};RC.clean=function(e,t,r,n){var i=n._has&&n._has("parcoords"),a=t._has&&t._has("parcoords");i&&!a&&(n._paperdiv.selectAll(".parcoords").remove(),n._glimages.selectAll("*").remove())};RC.toSVG=function(e){var t=e._fullLayout._glimages,r=MUe.select(e).selectAll(".svg-container"),n=r.filter(function(a,o){return o===r.size()-1}).selectAll(".gl-canvas-context, .gl-canvas-focus");function i(){var a=this,o=a.toDataURL("image/png"),s=t.append("svg:image");s.attr({xmlns:cGt.svg,"xlink:href":o,preserveAspectRatio:"none",x:0,y:0,width:a.style.width,height:a.style.height})}n.each(i),window.setTimeout(function(){MUe.selectAll("#filterBarPattern").attr("id","filterBarPattern")},60)}});var kUe=ye((t_r,CUe)=>{"use strict";CUe.exports={attributes:wK(),supplyDefaults:VNe(),calc:HNe(),colorbar:{container:"line",min:"cmin",max:"cmax"},moduleType:"trace",name:"parcoords",basePlotModule:EUe(),categories:["gl","regl","noOpacity","noHover"],meta:{}}});var IUe=ye((r_r,PUe)=>{"use strict";var LUe=kUe();LUe.plot=qK();PUe.exports=LUe});var DUe=ye((i_r,RUe)=>{"use strict";RUe.exports=IUe()});var BK=ye((n_r,qUe)=>{"use strict";var zUe=Ao().extendFlat,fGt=Vl(),FUe=ec(),hGt=Tu(),OUe=Qo().hovertemplateAttrs,dGt=kc().attributes,vGt=zUe({editType:"calc"},hGt("line",{editTypeOverride:"calc"}),{shape:{valType:"enumerated",values:["linear","hspline"],dflt:"linear",editType:"plot"},hovertemplate:OUe({editType:"plot",arrayOk:!1},{keys:["count","probability"]})});qUe.exports={domain:dGt({name:"parcats",trace:!0,editType:"calc"}),hoverinfo:zUe({},fGt.hoverinfo,{flags:["count","probability"],editType:"plot",arrayOk:!1}),hoveron:{valType:"enumerated",values:["category","color","dimension"],dflt:"category",editType:"plot"},hovertemplate:OUe({editType:"plot",arrayOk:!1},{keys:["count","probability","category","categorycount","colorcount","bandcolorcount"]}),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:FUe({editType:"calc"}),tickfont:FUe({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:vGt,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 UUe=ye((a_r,NUe)=>{"use strict";var _5=Dr(),pGt=Dv().hasColorscale,gGt=Jh(),mGt=kc().defaults,yGt=Yd(),BUe=BK(),_Gt=Az(),xGt=vv().isTypedArraySpec;function bGt(e,t,r,n,i){i("line.shape"),i("line.hovertemplate");var a=i("line.color",n.colorway[0]);if(pGt(e,"line")&&_5.isArrayOrTypedArray(a)){if(a.length)return i("line.colorscale"),gGt(e,t,n,i,{prefix:"line.",cLetter:"c"}),a.length;t.line.color=r}return 1/0}function wGt(e,t){function r(u,c){return _5.coerce(e,t,BUe.dimensions,u,c)}var n=r("values"),i=r("visible");if(n&&n.length||(i=t.visible=!1),i){r("label"),r("displayindex",t._index);var a=e.categoryarray,o=_5.isArrayOrTypedArray(a)&&a.length>0||xGt(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")}}NUe.exports=function(t,r,n,i){function a(u,c){return _5.coerce(t,r,BUe,u,c)}var o=yGt(t,r,{name:"dimensions",handleItemDefaults:wGt}),s=bGt(t,r,n,i,a);mGt(r,i,a),(!Array.isArray(o)||!o.length)&&(r.visible=!1),_Gt(r,o,"values",s),a("hoveron"),a("hovertemplate"),a("arrangement"),a("bundlecolors"),a("sortpaths"),a("counts");var l=i.font;_5.coerceFont(a,"labelfont",l,{overrideDflt:{size:Math.round(l.size)}}),_5.coerceFont(a,"tickfont",l,{autoShadowDflt:!0,overrideDflt:{size:Math.round(l.size/1.2)}})}});var GUe=ye((o_r,VUe)=>{"use strict";var TGt=Km().wrap,AGt=Dv().hasColorscale,SGt=Fv(),MGt=ZO(),EGt=So(),DC=Dr(),CGt=Eo();VUe.exports=function(t,r){var n=DC.filterVisible(r.dimensions);if(n.length===0)return[];var i=n.map(function(g){var P;if(g.categoryorder==="trace")P=null;else if(g.categoryorder==="array")P=g.categoryarray;else{P=MGt(g.values);for(var T=!0,z=0;z=e.length||t[e[r]]!==void 0)return!1;t[e[r]]=!0}return!0}});var $Ue=ye((s_r,JUe)=>{"use strict";var Dl=Oa(),BGt=(R2(),B1(I2)).interpolateNumber,NGt=UP(),OC=vf(),yx=Dr(),FC=yx.strTranslate,HUe=So(),NK=cd(),UGt=iu();function VGt(e,t,r,n){var i=t._context.staticPlot,a=e.map(iHt.bind(0,t,r)),o=n.selectAll("g.parcatslayer").data([null]);o.enter().append("g").attr("class","parcatslayer").style("pointer-events",i?"none":"all");var s=o.selectAll("g.trace.parcats").data(a,u1),l=s.enter().append("g").attr("class","trace parcats");s.attr("transform",function(C){return FC(C.x,C.y)}),l.append("g").attr("class","paths");var u=s.select("g.paths"),c=u.selectAll("path.path").data(function(C){return C.paths},u1);c.attr("fill",function(C){return C.model.color});var f=c.enter().append("path").attr("class","path").attr("stroke-opacity",0).attr("fill",function(C){return C.model.color}).attr("fill-opacity",0);GK(f),c.attr("d",function(C){return C.svgD}),f.empty()||c.sort(UK),c.exit().remove(),c.on("mouseover",GGt).on("mouseout",HGt).on("click",jGt),l.append("g").attr("class","dimensions");var h=s.select("g.dimensions"),d=h.selectAll("g.dimension").data(function(C){return C.dimensions},u1);d.enter().append("g").attr("class","dimension"),d.attr("transform",function(C){return FC(C.x,0)}),d.exit().remove();var v=d.selectAll("g.category").data(function(C){return C.categories},u1),x=v.enter().append("g").attr("class","category");v.attr("transform",function(C){return FC(0,C.y)}),x.append("rect").attr("class","catrect").attr("pointer-events","none"),v.select("rect.catrect").attr("fill","none").attr("width",function(C){return C.width}).attr("height",function(C){return C.height}),WUe(x);var b=v.selectAll("rect.bandrect").data(function(C){return C.bands},u1);b.each(function(){yx.raiseToTop(this)}),b.attr("fill",function(C){return C.color});var p=b.enter().append("rect").attr("class","bandrect").attr("stroke-opacity",0).attr("fill",function(C){return C.color}).attr("fill-opacity",0);b.attr("fill",function(C){return C.color}).attr("width",function(C){return C.width}).attr("height",function(C){return C.height}).attr("y",function(C){return C.y}).attr("cursor",function(C){return C.parcatsViewModel.arrangement==="fixed"?"default":C.parcatsViewModel.arrangement==="perpendicular"?"ns-resize":"move"}),jK(p),b.exit().remove(),x.append("text").attr("class","catlabel").attr("pointer-events","none"),v.select("text.catlabel").attr("text-anchor",function(C){return zC(C)?"start":"end"}).attr("alignment-baseline","middle").style("fill","rgb(0, 0, 0)").attr("x",function(C){return zC(C)?C.width+5:-5}).attr("y",function(C){return C.height/2}).text(function(C){return C.model.categoryLabel}).each(function(C){HUe.font(Dl.select(this),C.parcatsViewModel.categorylabelfont),UGt.convertToTspans(Dl.select(this),t)}),x.append("text").attr("class","dimlabel"),v.select("text.dimlabel").attr("text-anchor","middle").attr("alignment-baseline","baseline").attr("cursor",function(C){return C.parcatsViewModel.arrangement==="fixed"?"default":"ew-resize"}).attr("x",function(C){return C.width/2}).attr("y",-5).text(function(C,E){return E===0?C.parcatsViewModel.model.dimensions[C.model.dimensionInd].dimensionLabel:null}).each(function(C){HUe.font(Dl.select(this),C.parcatsViewModel.labelfont)}),v.selectAll("rect.bandrect").on("mouseover",$Gt).on("mouseout",QGt),v.exit().remove(),d.call(Dl.behavior.drag().origin(function(C){return{x:C.x,y:0}}).on("dragstart",eHt).on("drag",tHt).on("dragend",rHt)),s.each(function(C){C.traceSelection=Dl.select(this),C.pathSelection=Dl.select(this).selectAll("g.paths").selectAll("path.path"),C.dimensionSelection=Dl.select(this).selectAll("g.dimensions").selectAll("g.dimension")}),s.exit().remove()}JUe.exports=function(e,t,r,n){VGt(r,e,n,t)};function u1(e){return e.key}function zC(e){var t=e.parcatsViewModel.dimensions.length,r=e.parcatsViewModel.dimensions[t-1].model.dimensionInd;return e.model.dimensionInd===r}function UK(e,t){return e.model.rawColor>t.model.rawColor?1:e.model.rawColor"),_=Dl.mouse(i)[0];OC.loneHover({trace:a,x:v-s.left+l.left,y:x-s.top+l.top,text:L,color:e.model.color,borderColor:"black",fontFamily:'Monaco, "Courier New", monospace',fontSize:10,fontColor:b,idealAlign:_1&&u.displayInd===l.dimensions.length-1?(h=o.left,d="left"):(h=o.left+o.width,d="right");var v=s.model.count,x=s.model.categoryLabel,b=v/s.parcatsViewModel.model.count,p={countLabel:v,categoryLabel:x,probabilityLabel:b.toFixed(3)},C=[];s.parcatsViewModel.hoverinfoItems.indexOf("count")!==-1&&C.push(["Count:",p.countLabel].join(" ")),s.parcatsViewModel.hoverinfoItems.indexOf("probability")!==-1&&C.push(["P("+p.categoryLabel+"):",p.probabilityLabel].join(" "));var E=C.join("
");return{trace:c,x:n*(h-t.left),y:i*(f-t.top),text:E,color:"lightgray",borderColor:"black",fontFamily:'Monaco, "Courier New", monospace',fontSize:12,fontColor:"black",idealAlign:d,hovertemplate:c.hovertemplate,hovertemplateLabels:p,eventData:[{data:c._input,fullData:c,count:v,category:x,probability:b}]}}function KGt(e,t,r){var n=[];return Dl.select(r.parentNode.parentNode).selectAll("g.category").select("rect.catrect").each(function(){var i=this;n.push(XUe(e,t,i))}),n}function JGt(e,t,r){e._fullLayout._calcInverseTransform(e);var n=e._fullLayout._invScaleX,i=e._fullLayout._invScaleY,a=r.getBoundingClientRect(),o=Dl.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,d;l.dimensions.length>1&&u.displayInd===l.dimensions.length-1?(h=a.left,d="left"):(h=a.left+a.width,d="right");var v=s.model.categoryLabel,x=o.parcatsViewModel.model.count,b=0;o.categoryViewModel.bands.forEach(function(P){P.color===o.color&&(b+=P.count)});var p=s.model.count,C=0;l.pathSelection.each(function(P){P.model.color===o.color&&(C+=P.model.count)});var E=b/x,A=b/C,L=b/p,_={countLabel:b,categoryLabel:v,probabilityLabel:E.toFixed(3)},k=[];s.parcatsViewModel.hoverinfoItems.indexOf("count")!==-1&&k.push(["Count:",_.countLabel].join(" ")),s.parcatsViewModel.hoverinfoItems.indexOf("probability")!==-1&&(k.push("P(color \u2229 "+v+"): "+_.probabilityLabel),k.push("P("+v+" | color): "+A.toFixed(3)),k.push("P(color | "+v+"): "+L.toFixed(3)));var M=k.join("
"),g=NK.mostReadable(o.color,["black","white"]);return{trace:c,x:n*(h-t.left),y:i*(f-t.top),text:M,color:o.color,borderColor:"black",fontFamily:'Monaco, "Courier New", monospace',fontColor:g,fontSize:10,idealAlign:d,hovertemplate:c.hovertemplate,hovertemplateLabels:_,eventData:[{data:c._input,fullData:c,category:v,count:x,probability:E,categorycount:p,colorcount:C,bandcolorcount:b}]}}function $Gt(e){if(!e.parcatsViewModel.dragDimension&&e.parcatsViewModel.hoverinfoItems.indexOf("skip")===-1){var t=Dl.mouse(this)[1];if(t<-1)return;var r=e.parcatsViewModel.graphDiv,n=r._fullLayout,i=n._paperdiv.node().getBoundingClientRect(),a=e.parcatsViewModel.hoveron,o=this;if(a==="color"?(YGt(o),XK(o,"plotly_hover",Dl.event)):(ZGt(o),WK(o,"plotly_hover",Dl.event)),e.parcatsViewModel.hoverinfoItems.indexOf("none")===-1){var s;a==="category"?s=XUe(r,i,o):a==="color"?s=JGt(r,i,o):a==="dimension"&&(s=KGt(r,i,o)),s&&OC.loneHover(s,{container:n._hoverlayer.node(),outerContainer:n._paper.node(),gd:r})}}}function QGt(e){var t=e.parcatsViewModel;if(!t.dragDimension&&(GK(t.pathSelection),WUe(t.dimensionSelection.selectAll("g.category")),jK(t.dimensionSelection.selectAll("g.category").selectAll("rect.bandrect")),OC.loneUnhover(t.graphDiv._fullLayout._hoverlayer.node()),t.pathSelection.sort(UK),t.hoverinfoItems.indexOf("skip")===-1)){var r=e.parcatsViewModel.hoveron,n=this;r==="color"?XK(n,"plotly_unhover",Dl.event):WK(n,"plotly_unhover",Dl.event)}}function eHt(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,Dl.select(this).selectAll("g.category").select("rect.catrect").each(function(t){var r=Dl.mouse(this)[0],n=Dl.mouse(this)[1];-2<=r&&r<=t.width+2&&-2<=n&&n<=t.height+2&&(e.dragCategoryDisplayInd=t.model.displayInd,e.initialDragCategoryDisplayInds=e.model.categories.map(function(i){return i.displayInd}),t.model.dragY=t.y,yx.raiseToTop(this.parentNode),Dl.select(this.parentNode).selectAll("rect.bandrect").each(function(i){i.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"){i.model.dragX=Dl.event.x;var f=e.parcatsViewModel.dimensions[r],h=e.parcatsViewModel.dimensions[n];f!==void 0&&i.model.dragXh.x&&(i.model.displayInd=h.model.displayInd,h.model.displayInd=e.dragDimensionDisplayInd),e.dragDimensionDisplayInd=i.model.displayInd}YK(e.parcatsViewModel),ZK(e.parcatsViewModel),KUe(e.parcatsViewModel),YUe(e.parcatsViewModel)}}function rHt(e){if(e.parcatsViewModel.arrangement!=="fixed"&&e.dragDimensionDisplayInd!==null){Dl.select(this).selectAll("text").attr("font-weight","normal");var t={},r=ZUe(e.parcatsViewModel),n=e.parcatsViewModel.model.dimensions.map(function(h){return h.displayInd}),i=e.initialDragDimensionDisplayInds.some(function(h,d){return h!==n[d]});i&&n.forEach(function(h,d){var v=e.parcatsViewModel.model.dimensions[d].containerInd;t["dimensions["+v+"].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"?XK(e.potentialClickBand,"plotly_click",Dl.event.sourceEvent):WK(e.potentialClickBand,"plotly_click",Dl.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,YK(e.parcatsViewModel),ZK(e.parcatsViewModel);var f=Dl.transition().duration(300).ease("cubic-in-out");f.each(function(){KUe(e.parcatsViewModel,!0),YUe(e.parcatsViewModel,!0)}).each("end",function(){(i||a)&&NGt.restyle(e.parcatsViewModel.graphDiv,t,[r])})}}function ZUe(e){for(var t,r=e.graphDiv._fullData,n=0;n=0;l--)u+="C"+o[l]+","+(t[l+1]+n)+" "+a[l]+","+(t[l]+n)+" "+(e[l]+r[l])+","+(t[l]+n),u+="l-"+r[l]+",0 ";return u+="Z",u}function ZK(e){var t=e.dimensions,r=e.model,n=t.map(function(O){return O.categories.map(function(V){return V.y})}),i=e.model.dimensions.map(function(O){return O.categories.map(function(V){return V.displayInd})}),a=e.model.dimensions.map(function(O){return O.displayInd}),o=e.dimensions.map(function(O){return O.model.dimensionInd}),s=t.map(function(O){return O.x}),l=t.map(function(O){return O.width}),u=[];for(var c in r.paths)r.paths.hasOwnProperty(c)&&u.push(r.paths[c]);function f(O){var V=O.categoryInds.map(function(Z,H){return i[H][Z]}),G=o.map(function(Z){return V[Z]});return G}u.sort(function(O,V){var G=f(O),Z=f(V);return e.sortpaths==="backward"&&(G.reverse(),Z.reverse()),G.push(O.valueInds[0]),Z.push(V.valueInds[0]),e.bundlecolors&&(G.unshift(O.rawColor),Z.unshift(V.rawColor)),GZ?1:0});for(var h=new Array(u.length),d=t[0].model.count,v=t[0].categories.map(function(O){return O.height}).reduce(function(O,V){return O+V}),x=0;x0?p=v*(b.count/d):p=0;for(var C=new Array(n.length),E=0;E1?o=(e.width-2*r-n)/(i-1):o=0,s=r,l=s+o*a;var u=[],c=e.model.maxCats,f=t.categories.length,h=8,d=t.count,v=e.height-h*(c-1),x,b,p,C,E,A=(c-f)*h/2,L=t.categories.map(function(_){return{displayInd:_.displayInd,categoryInd:_.categoryInd}});for(L.sort(function(_,k){return _.displayInd-k.displayInd}),E=0;E0?x=b.count/d*v:x=0,p={key:b.valueInds[0],model:b,width:n,height:x,y:b.dragY!==null?b.dragY:A,bands:[],parcatsViewModel:e},A=A+x+h,u.push(p);return{key:t.dimensionInd,x:t.dragX!==null?t.dragX:l,y:0,width:n,model:t,categories:u,parcatsViewModel:e,dragCategoryDisplayInd:null,dragDimensionDisplayInd:null,initialDragDimensionDisplayInds:null,initialDragCategoryDisplayInds:null,dragHasMoved:null,potentialClickBand:null}}});var KK=ye((l_r,QUe)=>{"use strict";var aHt=$Ue();QUe.exports=function(t,r,n,i){var a=t._fullLayout,o=a._paper,s=a._size;aHt(t,o,r,{width:s.w,height:s.h,margin:{t:s.t,r:s.r,b:s.b,l:s.l}},n,i)}});var tVe=ye(Uz=>{"use strict";var oHt=Id().getModuleCalcData,sHt=KK(),eVe="parcats";Uz.name=eVe;Uz.plot=function(e,t,r,n){var i=oHt(e.calcdata,eVe);if(i.length){var a=i[0];sHt(e,a,r,n)}};Uz.clean=function(e,t,r,n){var i=n._has&&n._has("parcats"),a=t._has&&t._has("parcats");i&&!a&&n._paperdiv.selectAll(".parcats").remove()}});var iVe=ye((c_r,rVe)=>{"use strict";rVe.exports={attributes:BK(),supplyDefaults:UUe(),calc:GUe(),plot:KK(),colorbar:{container:"line",min:"cmin",max:"cmax"},moduleType:"trace",name:"parcats",basePlotModule:tVe(),categories:["noOpacity"],meta:{}}});var aVe=ye((f_r,nVe)=>{"use strict";nVe.exports=iVe()});var c1=ye((h_r,hVe)=>{"use strict";var lHt=Y1(),oVe="1.13.4",cVe='\xA9
OpenStreetMap contributors',sVe=['\xA9 Carto',cVe].join(" "),lVe=['Map tiles by Stamen Design','under CC BY 3.0',"|",'Data by OpenStreetMap contributors','under ODbL'].join(" "),uHt=['Map tiles by Stamen Design','under CC BY 3.0',"|",'Data by OpenStreetMap contributors','under CC BY SA'].join(" "),fVe={"open-street-map":{id:"osm",version:8,sources:{"plotly-osm-tiles":{type:"raster",attribution:cVe,tiles:["https://a.tile.openstreetmap.org/{z}/{x}/{y}.png","https://b.tile.openstreetmap.org/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-osm-tiles",type:"raster",source:"plotly-osm-tiles",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"white-bg":{id:"white-bg",version:8,sources:{},layers:[{id:"white-bg",type:"background",paint:{"background-color":"#FFFFFF"},minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"carto-positron":{id:"carto-positron",version:8,sources:{"plotly-carto-positron":{type:"raster",attribution:sVe,tiles:["https://cartodb-basemaps-c.global.ssl.fastly.net/light_all/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-carto-positron",type:"raster",source:"plotly-carto-positron",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"carto-darkmatter":{id:"carto-darkmatter",version:8,sources:{"plotly-carto-darkmatter":{type:"raster",attribution:sVe,tiles:["https://cartodb-basemaps-c.global.ssl.fastly.net/dark_all/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-carto-darkmatter",type:"raster",source:"plotly-carto-darkmatter",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"stamen-terrain":{id:"stamen-terrain",version:8,sources:{"plotly-stamen-terrain":{type:"raster",attribution:lVe,tiles:["https://tiles.stadiamaps.com/tiles/stamen_terrain/{z}/{x}/{y}.png?api_key="],tileSize:256}},layers:[{id:"plotly-stamen-terrain",type:"raster",source:"plotly-stamen-terrain",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"stamen-toner":{id:"stamen-toner",version:8,sources:{"plotly-stamen-toner":{type:"raster",attribution:lVe,tiles:["https://tiles.stadiamaps.com/tiles/stamen_toner/{z}/{x}/{y}.png?api_key="],tileSize:256}},layers:[{id:"plotly-stamen-toner",type:"raster",source:"plotly-stamen-toner",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"stamen-watercolor":{id:"stamen-watercolor",version:8,sources:{"plotly-stamen-watercolor":{type:"raster",attribution:uHt,tiles:["https://tiles.stadiamaps.com/tiles/stamen_watercolor/{z}/{x}/{y}.jpg?api_key="],tileSize:256}},layers:[{id:"plotly-stamen-watercolor",type:"raster",source:"plotly-stamen-watercolor",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"}},uVe=lHt(fVe);hVe.exports={requiredVersion:oVe,styleUrlPrefix:"mapbox://styles/mapbox/",styleUrlSuffix:"v9",styleValuesMapbox:["basic","streets","outdoors","light","dark","satellite","satellite-streets"],styleValueDflt:"basic",stylesNonMapbox:fVe,styleValuesNonMapbox:uVe,traceLayerPrefix:"plotly-trace-layer-",layoutLayerPrefix:"plotly-layout-layer-",wrongVersionErrorMsg:["Your custom plotly.js bundle is not using the correct mapbox-gl version","Please install @plotly/mapbox-gl@"+oVe+"."].join(` +`),noAccessTokenErrorMsg:["Missing Mapbox access token.","Mapbox trace type require a Mapbox access token to be registered.","For example:"," Plotly.newPlot(gd, data, layout, { mapboxAccessToken: 'my-access-token' });","More info here: https://www.mapbox.com/help/define-access-token/"].join(` +`),missingStyleErrorMsg:["No valid mapbox style found, please set `mapbox.style` to one of:",uVe.join(", "),"or register a Mapbox access token to use a Mapbox-served style."].join(` +`),multipleTokensErrorMsg:["Set multiple mapbox access token across different mapbox subplot,","using first token found as mapbox-gl does not allow multipleaccess tokens on the same page."].join(` +`),mapOnErrorMsg:"Mapbox error.",mapboxLogo:{path0:"m 10.5,1.24 c -5.11,0 -9.25,4.15 -9.25,9.25 0,5.1 4.15,9.25 9.25,9.25 5.1,0 9.25,-4.15 9.25,-9.25 0,-5.11 -4.14,-9.25 -9.25,-9.25 z m 4.39,11.53 c -1.93,1.93 -4.78,2.31 -6.7,2.31 -0.7,0 -1.41,-0.05 -2.1,-0.16 0,0 -1.02,-5.64 2.14,-8.81 0.83,-0.83 1.95,-1.28 3.13,-1.28 1.27,0 2.49,0.51 3.39,1.42 1.84,1.84 1.89,4.75 0.14,6.52 z",path1:"M 10.5,-0.01 C 4.7,-0.01 0,4.7 0,10.49 c 0,5.79 4.7,10.5 10.5,10.5 5.8,0 10.5,-4.7 10.5,-10.5 C 20.99,4.7 16.3,-0.01 10.5,-0.01 Z m 0,19.75 c -5.11,0 -9.25,-4.15 -9.25,-9.25 0,-5.1 4.14,-9.26 9.25,-9.26 5.11,0 9.25,4.15 9.25,9.25 0,5.13 -4.14,9.26 -9.25,9.26 z",path2:"M 14.74,6.25 C 12.9,4.41 9.98,4.35 8.23,6.1 5.07,9.27 6.09,14.91 6.09,14.91 c 0,0 5.64,1.02 8.81,-2.14 C 16.64,11 16.59,8.09 14.74,6.25 Z m -2.27,4.09 -0.91,1.87 -0.9,-1.87 -1.86,-0.91 1.86,-0.9 0.9,-1.87 0.91,1.87 1.86,0.9 z",polygon:"11.56,12.21 10.66,10.34 8.8,9.43 10.66,8.53 11.56,6.66 12.47,8.53 14.33,9.43 12.47,10.34"},styleRules:{map:"overflow:hidden;position:relative;","missing-css":"display:none;",canary:"background-color:salmon;","ctrl-bottom-left":"position: absolute; pointer-events: none; z-index: 2; bottom: 0; left: 0;","ctrl-bottom-right":"position: absolute; pointer-events: none; z-index: 2; right: 0; bottom: 0;",ctrl:"clear: both; pointer-events: auto; transform: translate(0, 0);","ctrl-attrib.mapboxgl-compact .mapboxgl-ctrl-attrib-inner":"display: none;","ctrl-attrib.mapboxgl-compact:hover .mapboxgl-ctrl-attrib-inner":"display: block; margin-top:2px","ctrl-attrib.mapboxgl-compact:hover":"padding: 2px 24px 2px 4px; visibility: visible; margin-top: 6px;","ctrl-attrib.mapboxgl-compact::after":`content: ""; cursor: pointer; position: absolute; background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"%3E %3Cpath fill="%23333333" fill-rule="evenodd" d="M4,10a6,6 0 1,0 12,0a6,6 0 1,0 -12,0 M9,7a1,1 0 1,0 2,0a1,1 0 1,0 -2,0 M9,10a1,1 0 1,1 2,0l0,3a1,1 0 1,1 -2,0"/%3E %3C/svg%3E'); background-color: rgba(255, 255, 255, 0.5); width: 24px; height: 24px; box-sizing: border-box; border-radius: 12px;`,"ctrl-attrib.mapboxgl-compact":"min-height: 20px; padding: 0; margin: 10px; position: relative; background-color: #fff; border-radius: 3px 12px 12px 3px;","ctrl-bottom-right > .mapboxgl-ctrl-attrib.mapboxgl-compact::after":"bottom: 0; right: 0","ctrl-bottom-left > .mapboxgl-ctrl-attrib.mapboxgl-compact::after":"bottom: 0; left: 0","ctrl-bottom-left .mapboxgl-ctrl":"margin: 0 0 10px 10px; float: left;","ctrl-bottom-right .mapboxgl-ctrl":"margin: 0 10px 10px 0; float: right;","ctrl-attrib":"color: rgba(0, 0, 0, 0.75); text-decoration: none; font-size: 12px","ctrl-attrib a":"color: rgba(0, 0, 0, 0.75); text-decoration: none; font-size: 12px","ctrl-attrib a:hover":"color: inherit; text-decoration: underline;","ctrl-attrib .mapbox-improve-map":"font-weight: bold; margin-left: 2px;","attrib-empty":"display: none;","ctrl-logo":`display:block; width: 21px; height: 21px; background-image: url('data:image/svg+xml;charset=utf-8,%3C?xml version="1.0" encoding="utf-8"?%3E %3Csvg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 21 21" style="enable-background:new 0 0 21 21;" xml:space="preserve"%3E%3Cg transform="translate(0,0.01)"%3E%3Cpath d="m 10.5,1.24 c -5.11,0 -9.25,4.15 -9.25,9.25 0,5.1 4.15,9.25 9.25,9.25 5.1,0 9.25,-4.15 9.25,-9.25 0,-5.11 -4.14,-9.25 -9.25,-9.25 z m 4.39,11.53 c -1.93,1.93 -4.78,2.31 -6.7,2.31 -0.7,0 -1.41,-0.05 -2.1,-0.16 0,0 -1.02,-5.64 2.14,-8.81 0.83,-0.83 1.95,-1.28 3.13,-1.28 1.27,0 2.49,0.51 3.39,1.42 1.84,1.84 1.89,4.75 0.14,6.52 z" style="opacity:0.9;fill:%23ffffff;enable-background:new" class="st0"/%3E%3Cpath d="M 10.5,-0.01 C 4.7,-0.01 0,4.7 0,10.49 c 0,5.79 4.7,10.5 10.5,10.5 5.8,0 10.5,-4.7 10.5,-10.5 C 20.99,4.7 16.3,-0.01 10.5,-0.01 Z m 0,19.75 c -5.11,0 -9.25,-4.15 -9.25,-9.25 0,-5.1 4.14,-9.26 9.25,-9.26 5.11,0 9.25,4.15 9.25,9.25 0,5.13 -4.14,9.26 -9.25,9.26 z" style="opacity:0.35;enable-background:new" class="st1"/%3E%3Cpath d="M 14.74,6.25 C 12.9,4.41 9.98,4.35 8.23,6.1 5.07,9.27 6.09,14.91 6.09,14.91 c 0,0 5.64,1.02 8.81,-2.14 C 16.64,11 16.59,8.09 14.74,6.25 Z m -2.27,4.09 -0.91,1.87 -0.9,-1.87 -1.86,-0.91 1.86,-0.9 0.9,-1.87 0.91,1.87 1.86,0.9 z" style="opacity:0.35;enable-background:new" class="st1"/%3E%3Cpolygon points="11.56,12.21 10.66,10.34 8.8,9.43 10.66,8.53 11.56,6.66 12.47,8.53 14.33,9.43 12.47,10.34 " style="opacity:0.9;fill:%23ffffff;enable-background:new" class="st0"/%3E%3C/g%3E%3C/svg%3E')`}}});var BC=ye((d_r,gVe)=>{"use strict";var dVe=Dr(),vVe=Ca().defaultLine,cHt=kc().attributes,fHt=ec(),hHt=pf().textposition,dHt=mc().overrideAll,vHt=pl().templatedArray,JK=c1(),pVe=fHt({noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0});pVe.family.dflt="Open Sans Regular, Arial Unicode MS Regular";var pHt=gVe.exports=dHt({_arrayAttrRegexps:[dVe.counterRegex("mapbox",".layers",!0)],domain:cHt({name:"mapbox"}),accesstoken:{valType:"string",noBlank:!0,strict:!0},style:{valType:"any",values:JK.styleValuesMapbox.concat(JK.styleValuesNonMapbox),dflt:JK.styleValueDflt},center:{lon:{valType:"number",dflt:0},lat:{valType:"number",dflt:0}},zoom:{valType:"number",dflt:1},bearing:{valType:"number",dflt:0},pitch:{valType:"number",dflt:0},bounds:{west:{valType:"number"},east:{valType:"number"},south:{valType:"number"},north:{valType:"number"}},layers:vHt("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:vVe},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:vVe}},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:pVe,textposition:dVe.extendFlat({},hHt,{arrayOk:!1})}})},"plot","from-root");pHt.uirevision={valType:"any",editType:"none"}});var Vz=ye((v_r,_Ve)=>{"use strict";var gHt=Qo().hovertemplateAttrs,mHt=Qo().texttemplateAttrs,yHt=Eg(),NC=G2(),x5=pf(),mVe=BC(),_Ht=Vl(),xHt=Tu(),ew=Ao().extendFlat,bHt=mc().overrideAll,wHt=BC(),yVe=NC.line,b5=NC.marker;_Ve.exports=bHt({lon:NC.lon,lat:NC.lat,cluster:{enabled:{valType:"boolean"},maxzoom:ew({},wHt.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:ew({},b5.opacity,{dflt:1})},mode:ew({},x5.mode,{dflt:"markers"}),text:ew({},x5.text,{}),texttemplate:mHt({editType:"plot"},{keys:["lat","lon","text"]}),hovertext:ew({},x5.hovertext,{}),line:{color:yVe.color,width:yVe.width},connectgaps:x5.connectgaps,marker:ew({symbol:{valType:"string",dflt:"circle",arrayOk:!0},angle:{valType:"number",dflt:"auto",arrayOk:!0},allowoverlap:{valType:"boolean",dflt:!1},opacity:b5.opacity,size:b5.size,sizeref:b5.sizeref,sizemin:b5.sizemin,sizemode:b5.sizemode},xHt("marker")),fill:NC.fill,fillcolor:yHt(),textfont:mVe.layers.symbol.textfont,textposition:mVe.layers.symbol.textposition,below:{valType:"string"},selected:{marker:x5.selected.marker},unselected:{marker:x5.unselected.marker},hoverinfo:ew({},_Ht.hoverinfo,{flags:["lon","lat","text","name"]}),hovertemplate:gHt()},"calc","nested")});var $K=ye((p_r,xVe)=>{"use strict";var THt=["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"];xVe.exports={isSupportedFont:function(e){return THt.indexOf(e)!==-1}}});var TVe=ye((g_r,wVe)=>{"use strict";var UC=Dr(),QK=Ru(),AHt=$p(),SHt=R0(),MHt=D0(),EHt=Ig(),bVe=Vz(),CHt=$K().isSupportedFont;wVe.exports=function(t,r,n,i){function a(p,C){return UC.coerce(t,r,bVe,p,C)}function o(p,C){return UC.coerce2(t,r,bVe,p,C)}var s=kHt(t,r,a);if(!s){r.visible=!1;return}if(a("text"),a("texttemplate"),a("hovertext"),a("hovertemplate"),a("mode"),a("below"),QK.hasMarkers(r)){AHt(t,r,n,i,a,{noLine:!0,noAngle:!0}),a("marker.allowoverlap"),a("marker.angle");var l=r.marker;l.symbol!=="circle"&&(UC.isArrayOrTypedArray(l.size)&&(l.size=l.size[0]),UC.isArrayOrTypedArray(l.color)&&(l.color=l.color[0]))}QK.hasLines(r)&&(SHt(t,r,n,i,a,{noDash:!0}),a("connectgaps"));var u=o("cluster.maxzoom"),c=o("cluster.step"),f=o("cluster.color",r.marker&&r.marker.color||n),h=o("cluster.size"),d=o("cluster.opacity"),v=u!==!1||c!==!1||f!==!1||h!==!1||d!==!1,x=a("cluster.enabled",v);if(x||QK.hasText(r)){var b=i.font.family;MHt(t,r,i,a,{noSelect:!0,noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,font:{family:CHt(b)?b:"Open Sans Regular",weight:i.font.weight,style:i.font.style,size:i.font.size,color:i.font.color}})}a("fill"),r.fill!=="none"&&EHt(t,r,n,a),UC.coerceSelectionMarkerOpacity(r,a)};function kHt(e,t,r){var n=r("lon")||[],i=r("lat")||[],a=Math.min(n.length,i.length);return t._length=a,a}});var eJ=ye((m_r,SVe)=>{"use strict";var AVe=ho();SVe.exports=function(t,r,n){var i={},a=n[r.subplot]._subplot,o=a.mockAxis,s=t.lonlat;return i.lonLabel=AVe.tickText(o,o.c2l(s[0]),!0).text,i.latLabel=AVe.tickText(o,o.c2l(s[1]),!0).text,i}});var tJ=ye((y_r,EVe)=>{"use strict";var MVe=Dr();EVe.exports=function(t,r){var n=t.split(" "),i=n[0],a=n[1],o=MVe.isArrayOrTypedArray(r)?MVe.mean(r):r,s=.5+o/100,l=1.5+o/100,u=["",""],c=[0,0];switch(i){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 RVe=ye((__r,IVe)=>{"use strict";var LVe=Eo(),av=Dr(),LHt=hs().BADNUM,Hz=rx(),CVe=tc(),PHt=So(),IHt=S3(),jz=Ru(),RHt=$K().isSupportedFont,DHt=tJ(),FHt=rp().appendArrayPointValue,zHt=iu().NEWLINES,OHt=iu().BR_TAG_ALL;IVe.exports=function(t,r){var n=r[0].trace,i=n.visible===!0&&n._length!==0,a=n.fill!=="none",o=jz.hasLines(n),s=jz.hasMarkers(n),l=jz.hasText(n),u=s&&n.marker.symbol==="circle",c=s&&n.marker.symbol!=="circle",f=n.cluster&&n.cluster.enabled,h=Gz("fill"),d=Gz("line"),v=Gz("circle"),x=Gz("symbol"),b={fill:h,line:d,circle:v,symbol:x};if(!i)return b;var p;if((a||o)&&(p=Hz.calcTraceToLineCoords(r)),a&&(h.geojson=Hz.makePolygon(p),h.layout.visibility="visible",av.extendFlat(h.paint,{"fill-color":n.fillcolor})),o&&(d.geojson=Hz.makeLine(p),d.layout.visibility="visible",av.extendFlat(d.paint,{"line-width":n.line.width,"line-color":n.line.color,"line-opacity":n.opacity})),u){var C=qHt(r);v.geojson=C.geojson,v.layout.visibility="visible",f&&(v.filter=["!",["has","point_count"]],b.cluster={type:"circle",filter:["has","point_count"],layout:{visibility:"visible"},paint:{"circle-color":iJ(n.cluster.color,n.cluster.step),"circle-radius":iJ(n.cluster.size,n.cluster.step),"circle-opacity":iJ(n.cluster.opacity,n.cluster.step)}},b.clusterCount={type:"symbol",filter:["has","point_count"],paint:{},layout:{"text-field":"{point_count_abbreviated}","text-font":kVe(n),"text-size":12}}),av.extendFlat(v.paint,{"circle-color":C.mcc,"circle-radius":C.mrc,"circle-opacity":C.mo})}if(u&&f&&(v.filter=["!",["has","point_count"]]),(c||l)&&(x.geojson=BHt(r,t),av.extendFlat(x.layout,{visibility:"visible","icon-image":"{symbol}-15","text-field":"{text}"}),c&&(av.extendFlat(x.layout,{"icon-size":n.marker.size/10}),"angle"in n.marker&&n.marker.angle!=="auto"&&av.extendFlat(x.layout,{"icon-rotate":{type:"identity",property:"angle"},"icon-rotation-alignment":"map"}),x.layout["icon-allow-overlap"]=n.marker.allowoverlap,av.extendFlat(x.paint,{"icon-opacity":n.opacity*n.marker.opacity,"icon-color":n.marker.color})),l)){var E=(n.marker||{}).size,A=DHt(n.textposition,E);av.extendFlat(x.layout,{"text-size":n.textfont.size,"text-anchor":A.anchor,"text-offset":A.offset,"text-font":kVe(n)}),av.extendFlat(x.paint,{"text-color":n.textfont.color,"text-opacity":n.opacity})}return b};function Gz(e){return{type:e,geojson:Hz.makeBlank(),layout:{visibility:"none"},filter:null,paint:{}}}function qHt(e){var t=e[0].trace,r=t.marker,n=t.selectedpoints,i=av.isArrayOrTypedArray(r.color),a=av.isArrayOrTypedArray(r.size),o=av.isArrayOrTypedArray(r.opacity),s;function l(E){return t.opacity*E}function u(E){return E/2}var c;i&&(CVe.hasColorscale(t,"marker")?c=CVe.makeColorScaleFuncFromTrace(r):c=av.identity);var f;a&&(f=IHt(t));var h;o&&(h=function(E){var A=LVe(E)?+av.constrain(E,0,1):0;return l(A)});var d=[];for(s=0;s850?s+=" Black":i>750?s+=" Extra Bold":i>650?s+=" Bold":i>550?s+=" Semi Bold":i>450?s+=" Medium":i>350?s+=" Regular":i>250?s+=" Light":i>150?s+=" Extra Light":s+=" Thin"):a.slice(0,2).join(" ")==="Open Sans"?(s="Open Sans",i>750?s+=" Extrabold":i>650?s+=" Bold":i>550?s+=" Semibold":i>350?s+=" Regular":s+=" Light"):a.slice(0,3).join(" ")==="Klokantech Noto Sans"&&(s="Klokantech Noto Sans",a[3]==="CJK"&&(s+=" CJK"),s+=i>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"),RHt(s)||(s=r);var l=s.split(", ");return l}});var OVe=ye((x_r,zVe)=>{"use strict";var NHt=Dr(),DVe=RVe(),w5=c1().traceLayerPrefix,rg={cluster:["cluster","clusterCount","circle"],nonCluster:["fill","line","circle","symbol"]};function FVe(e,t,r,n){this.type="scattermapbox",this.subplot=e,this.uid=t,this.clusterEnabled=r,this.isHidden=n,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:w5+t+"-fill",line:w5+t+"-line",circle:w5+t+"-circle",symbol:w5+t+"-symbol",cluster:w5+t+"-cluster",clusterCount:w5+t+"-cluster-count"},this.below=null}var VC=FVe.prototype;VC.addSource=function(e,t,r){var n={type:"geojson",data:t.geojson};r&&r.enabled&&NHt.extendFlat(n,{cluster:!0,clusterMaxZoom:r.maxzoom});var i=this.subplot.map.getSource(this.sourceIds[e]);i?i.setData(t.geojson):this.subplot.map.addSource(this.sourceIds[e],n)};VC.setSourceData=function(e,t){this.subplot.map.getSource(this.sourceIds[e]).setData(t.geojson)};VC.addLayer=function(e,t,r){var n={type:t.type,id:this.layerIds[e],source:this.sourceIds[e],layout:t.layout,paint:t.paint};t.filter&&(n.filter=t.filter);for(var i=this.layerIds[e],a,o=this.subplot.getMapLayers(),s=0;s=0;L--){var _=A[L];i.removeLayer(u.layerIds[_])}E||i.removeSource(u.sourceIds.circle)}function h(E){for(var A=rg.nonCluster,L=0;L=0;L--){var _=A[L];i.removeLayer(u.layerIds[_]),E||i.removeSource(u.sourceIds[_])}}function v(E){l?f(E):d(E)}function x(E){s?c(E):h(E)}function b(){for(var E=s?rg.cluster:rg.nonCluster,A=0;A=0;n--){var i=r[n];t.removeLayer(this.layerIds[i]),t.removeSource(this.sourceIds[i])}};zVe.exports=function(t,r){var n=r[0].trace,i=n.cluster&&n.cluster.enabled,a=n.visible!==!0,o=new FVe(t,n.uid,i,a),s=DVe(t.gd,r),l=o.below=t.belowLookup["trace-"+n.uid],u,c,f;if(i)for(o.addSource("circle",s.circle,n.cluster),u=0;u{"use strict";var UHt=vf(),nJ=Dr(),VHt=oT(),GHt=nJ.fillText,HHt=hs().BADNUM,jHt=c1().traceLayerPrefix;function WHt(e,t,r){var n=e.cd,i=n[0].trace,a=e.xa,o=e.ya,s=e.subplot,l=[],u=jHt+i.uid+"-circle",c=i.cluster&&i.cluster.enabled;if(c){var f=s.map.queryRenderedFeatures(null,{layers:[u]});l=f.map(function(M){return M.id})}var h=t>=0?Math.floor((t+180)/360):Math.ceil((t-180)/360),d=h*360,v=t-d;function x(M){var g=M.lonlat;if(g[0]===HHt||c&&l.indexOf(M.i+1)===-1)return 1/0;var P=nJ.modHalf(g[0],360),T=g[1],z=s.project([P,T]),O=z.x-a.c2p([v,T]),V=z.y-o.c2p([P,r]),G=Math.max(3,M.mrc||0);return Math.max(Math.sqrt(O*O+V*V)-G,1-3/G)}if(UHt.getClosest(n,x,e),e.index!==!1){var b=n[e.index],p=b.lonlat,C=[nJ.modHalf(p[0],360)+d,p[1]],E=a.c2p(C),A=o.c2p(C),L=b.mrc||1;e.x0=E-L,e.x1=E+L,e.y0=A-L,e.y1=A+L;var _={};_[i.subplot]={_subplot:s};var k=i._module.formatLabels(b,i,_);return e.lonLabel=k.lonLabel,e.latLabel=k.latLabel,e.color=VHt(i,b),e.extraText=qVe(i,b,n[0].t.labels),e.hovertemplate=i.hovertemplate,[e]}}function qVe(e,t,r){if(e.hovertemplate)return;var n=t.hi||e.hoverinfo,i=n.split("+"),a=i.indexOf("all")!==-1,o=i.indexOf("lon")!==-1,s=i.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||i.indexOf("text")!==-1)&&GHt(t,e,u),u.join("
")}BVe.exports={hoverPoints:WHt,getExtraText:qVe}});var UVe=ye((w_r,NVe)=>{"use strict";NVe.exports=function(t,r){return t.lon=r.lon,t.lat=r.lat,t}});var GVe=ye((T_r,VVe)=>{"use strict";var XHt=Dr(),ZHt=Ru(),YHt=hs().BADNUM;VVe.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s=n[0].trace,l;if(!ZHt.hasMarkers(s))return[];if(r===!1)for(l=0;l{(function(e,t){typeof aJ=="object"&&typeof oJ!="undefined"?oJ.exports=t():(e=e||self,e.mapboxgl=t())})(aJ,function(){"use strict";var e,t,r;function n(i,a){if(!e)e=a;else if(!t)t=a;else{var o="var sharedChunk = {}; ("+e+")(sharedChunk); ("+t+")(sharedChunk);",s={};e(s),r=a(s),typeof window!="undefined"&&(r.workerUrl=window.URL.createObjectURL(new Blob([o],{type:"text/javascript"})))}}return n(["exports"],function(i){"use strict";function a(m,y){return y={exports:{}},m(y,y.exports),y.exports}var o="1.13.4",s=l;function l(m,y,I,U){this.cx=3*m,this.bx=3*(I-m)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*y,this.by=3*(U-y)-this.cy,this.ay=1-this.cy-this.by,this.p1x=m,this.p1y=U,this.p2x=I,this.p2y=U}l.prototype.sampleCurveX=function(m){return((this.ax*m+this.bx)*m+this.cx)*m},l.prototype.sampleCurveY=function(m){return((this.ay*m+this.by)*m+this.cy)*m},l.prototype.sampleCurveDerivativeX=function(m){return(3*this.ax*m+2*this.bx)*m+this.cx},l.prototype.solveCurveX=function(m,y){typeof y=="undefined"&&(y=1e-6);var I,U,$,ae,he;for($=m,he=0;he<8;he++){if(ae=this.sampleCurveX($)-m,Math.abs(ae)U)return U;for(;Iae?I=$:U=$,$=(U-I)*.5+I}return $},l.prototype.solve=function(m,y){return this.sampleCurveY(this.solveCurveX(m,y))};var u=c;function c(m,y){this.x=m,this.y=y}c.prototype={clone:function(){return new c(this.x,this.y)},add:function(m){return this.clone()._add(m)},sub:function(m){return this.clone()._sub(m)},multByPoint:function(m){return this.clone()._multByPoint(m)},divByPoint:function(m){return this.clone()._divByPoint(m)},mult:function(m){return this.clone()._mult(m)},div:function(m){return this.clone()._div(m)},rotate:function(m){return this.clone()._rotate(m)},rotateAround:function(m,y){return this.clone()._rotateAround(m,y)},matMult:function(m){return this.clone()._matMult(m)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(m){return this.x===m.x&&this.y===m.y},dist:function(m){return Math.sqrt(this.distSqr(m))},distSqr:function(m){var y=m.x-this.x,I=m.y-this.y;return y*y+I*I},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(m){return Math.atan2(this.y-m.y,this.x-m.x)},angleWith:function(m){return this.angleWithSep(m.x,m.y)},angleWithSep:function(m,y){return Math.atan2(this.x*y-this.y*m,this.x*m+this.y*y)},_matMult:function(m){var y=m[0]*this.x+m[1]*this.y,I=m[2]*this.x+m[3]*this.y;return this.x=y,this.y=I,this},_add:function(m){return this.x+=m.x,this.y+=m.y,this},_sub:function(m){return this.x-=m.x,this.y-=m.y,this},_mult:function(m){return this.x*=m,this.y*=m,this},_div:function(m){return this.x/=m,this.y/=m,this},_multByPoint:function(m){return this.x*=m.x,this.y*=m.y,this},_divByPoint:function(m){return this.x/=m.x,this.y/=m.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var m=this.y;return this.y=this.x,this.x=-m,this},_rotate:function(m){var y=Math.cos(m),I=Math.sin(m),U=y*this.x-I*this.y,$=I*this.x+y*this.y;return this.x=U,this.y=$,this},_rotateAround:function(m,y){var I=Math.cos(m),U=Math.sin(m),$=y.x+I*(this.x-y.x)-U*(this.y-y.y),ae=y.y+U*(this.x-y.x)+I*(this.y-y.y);return this.x=$,this.y=ae,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},c.convert=function(m){return m instanceof c?m:Array.isArray(m)?new c(m[0],m[1]):m};var f=typeof self!="undefined"?self:{};function h(m,y){if(Array.isArray(m)){if(!Array.isArray(y)||m.length!==y.length)return!1;for(var I=0;I=1)return 1;var y=m*m,I=y*m;return 4*(m<.5?I:3*(m-y)+I-.75)}function x(m,y,I,U){var $=new s(m,y,I,U);return function(ae){return $.solve(ae)}}var b=x(.25,.1,.25,1);function p(m,y,I){return Math.min(I,Math.max(y,m))}function C(m,y,I){var U=I-y,$=((m-y)%U+U)%U+y;return $===y?I:$}function E(m,y,I){if(!m.length)return I(null,[]);var U=m.length,$=new Array(m.length),ae=null;m.forEach(function(he,Oe){y(he,function(rt,gt){rt&&(ae=rt),$[Oe]=gt,--U===0&&I(ae,$)})})}function A(m){var y=[];for(var I in m)y.push(m[I]);return y}function L(m,y){var I=[];for(var U in m)U in y||I.push(U);return I}function _(m){for(var y=[],I=arguments.length-1;I-- >0;)y[I]=arguments[I+1];for(var U=0,$=y;U<$.length;U+=1){var ae=$[U];for(var he in ae)m[he]=ae[he]}return m}function k(m,y){for(var I={},U=0;U>y/4).toString(16):([1e7]+-[1e3]+-4e3+-8e3+-1e11).replace(/[018]/g,m)}return m()}function T(m){return m<=1?1:Math.pow(2,Math.ceil(Math.log(m)/Math.LN2))}function z(m){return m?/^[0-9a-f]{8}-[0-9a-f]{4}-[4][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(m):!1}function O(m,y){m.forEach(function(I){y[I]&&(y[I]=y[I].bind(y))})}function V(m,y){return m.indexOf(y,m.length-y.length)!==-1}function G(m,y,I){var U={};for(var $ in m)U[$]=y.call(I||this,m[$],$,m);return U}function Z(m,y,I){var U={};for(var $ in m)y.call(I||this,m[$],$,m)&&(U[$]=m[$]);return U}function H(m){return Array.isArray(m)?m.map(H):typeof m=="object"&&m?G(m,H):m}function N(m,y){for(var I=0;I=0)return!0;return!1}var j={};function re(m){j[m]||(typeof console!="undefined"&&console.warn(m),j[m]=!0)}function oe(m,y,I){return(I.y-m.y)*(y.x-m.x)>(y.y-m.y)*(I.x-m.x)}function _e(m){for(var y=0,I=0,U=m.length,$=U-1,ae=void 0,he=void 0;I@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,I={};if(m.replace(y,function($,ae,he,Oe){var rt=he||Oe;return I[ae]=rt?rt.toLowerCase():!0,""}),I["max-age"]){var U=parseInt(I["max-age"],10);isNaN(U)?delete I["max-age"]:I["max-age"]=U}return I}var ie=null;function Se(m){if(ie==null){var y=m.navigator?m.navigator.userAgent:null;ie=!!m.safari||!!(y&&(/\b(iPad|iPhone|iPod)\b/.test(y)||y.match("Safari")&&!y.match("Chrome")))}return ie}function Le(m){try{var y=f[m];return y.setItem("_mapbox_test_",1),y.removeItem("_mapbox_test_"),!0}catch(I){return!1}}function Ae(m){return f.btoa(encodeURIComponent(m).replace(/%([0-9A-F]{2})/g,function(y,I){return String.fromCharCode(+("0x"+I))}))}function De(m){return decodeURIComponent(f.atob(m).split("").map(function(y){return"%"+("00"+y.charCodeAt(0).toString(16)).slice(-2)}).join(""))}var Pe=f.performance&&f.performance.now?f.performance.now.bind(f.performance):Date.now.bind(Date),ge=f.requestAnimationFrame||f.mozRequestAnimationFrame||f.webkitRequestAnimationFrame||f.msRequestAnimationFrame,Fe=f.cancelAnimationFrame||f.mozCancelAnimationFrame||f.webkitCancelAnimationFrame||f.msCancelAnimationFrame,ce,Ze,ct={now:Pe,frame:function(y){var I=ge(y);return{cancel:function(){return Fe(I)}}},getImageData:function(y,I){I===void 0&&(I=0);var U=f.document.createElement("canvas"),$=U.getContext("2d");if(!$)throw new Error("failed to create canvas 2d context");return U.width=y.width,U.height=y.height,$.drawImage(y,0,0,y.width,y.height),$.getImageData(-I,-I,y.width+2*I,y.height+2*I)},resolveURL:function(y){return ce||(ce=f.document.createElement("a")),ce.href=y,ce.href},hardwareConcurrency:f.navigator&&f.navigator.hardwareConcurrency||4,get devicePixelRatio(){return f.devicePixelRatio},get prefersReducedMotion(){return f.matchMedia?(Ze==null&&(Ze=f.matchMedia("(prefers-reduced-motion: reduce)")),Ze.matches):!1}},pt={API_URL:"https://api.mapbox.com",get EVENTS_URL(){return this.API_URL?this.API_URL.indexOf("https://api.mapbox.cn")===0?"https://events.mapbox.cn/events/v2":this.API_URL.indexOf("https://api.mapbox.com")===0?"https://events.mapbox.com/events/v2":null:null},FEEDBACK_URL:"https://apps.mapbox.com/feedback",REQUIRE_ACCESS_TOKEN:!0,ACCESS_TOKEN:null,MAX_PARALLEL_IMAGE_REQUESTS:16},Wt={supported:!1,testSupport:$t},st,lt=!1,Gt,Nt=!1;f.document&&(Gt=f.document.createElement("img"),Gt.onload=function(){st&&sr(st),st=null,Nt=!0},Gt.onerror=function(){lt=!0,st=null},Gt.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=");function $t(m){lt||!Gt||(Nt?sr(m):st=m)}function sr(m){var y=m.createTexture();m.bindTexture(m.TEXTURE_2D,y);try{if(m.texImage2D(m.TEXTURE_2D,0,m.RGBA,m.RGBA,m.UNSIGNED_BYTE,Gt),m.isContextLost())return;Wt.supported=!0}catch(I){}m.deleteTexture(y),lt=!0}var wr="01";function ur(){for(var m="1",y="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",I="",U=0;U<10;U++)I+=y[Math.floor(Math.random()*62)];var $=12*60*60*1e3,ae=[m,wr,I].join(""),he=Date.now()+$;return{token:ae,tokenExpiresAt:he}}var Qe=function(y,I){this._transformRequestFn=y,this._customAccessToken=I,this._createSkuToken()};Qe.prototype._createSkuToken=function(){var y=ur();this._skuToken=y.token,this._skuTokenExpiresAt=y.tokenExpiresAt},Qe.prototype._isSkuTokenExpired=function(){return Date.now()>this._skuTokenExpiresAt},Qe.prototype.transformRequest=function(y,I){return this._transformRequestFn?this._transformRequestFn(y,I)||{url:y}:{url:y}},Qe.prototype.normalizeStyleURL=function(y,I){if(!Et(y))return y;var U=Yt(y);return U.path="/styles/v1"+U.path,this._makeAPIURL(U,this._customAccessToken||I)},Qe.prototype.normalizeGlyphsURL=function(y,I){if(!Et(y))return y;var U=Yt(y);return U.path="/fonts/v1"+U.path,this._makeAPIURL(U,this._customAccessToken||I)},Qe.prototype.normalizeSourceURL=function(y,I){if(!Et(y))return y;var U=Yt(y);return U.path="/v4/"+U.authority+".json",U.params.push("secure"),this._makeAPIURL(U,this._customAccessToken||I)},Qe.prototype.normalizeSpriteURL=function(y,I,U,$){var ae=Yt(y);return Et(y)?(ae.path="/styles/v1"+ae.path+"/sprite"+I+U,this._makeAPIURL(ae,this._customAccessToken||$)):(ae.path+=""+I+U,lr(ae))},Qe.prototype.normalizeTileURL=function(y,I){if(this._isSkuTokenExpired()&&this._createSkuToken(),y&&!Et(y))return y;var U=Yt(y),$=/(\.(png|jpg)\d*)(?=$)/,ae=/^.+\/v4\//,he=ct.devicePixelRatio>=2||I===512?"@2x":"",Oe=Wt.supported?".webp":"$1";U.path=U.path.replace($,""+he+Oe),U.path=U.path.replace(ae,"/"),U.path="/v4"+U.path;var rt=this._customAccessToken||bt(U.params)||pt.ACCESS_TOKEN;return pt.REQUIRE_ACCESS_TOKEN&&rt&&this._skuToken&&U.params.push("sku="+this._skuToken),this._makeAPIURL(U,rt)},Qe.prototype.canonicalizeTileURL=function(y,I){var U="/v4/",$=/\.[\w]+$/,ae=Yt(y);if(!ae.path.match(/(^\/v4\/)/)||!ae.path.match($))return y;var he="mapbox://tiles/";he+=ae.path.replace(U,"");var Oe=ae.params;return I&&(Oe=Oe.filter(function(rt){return!rt.match(/^access_token=/)})),Oe.length&&(he+="?"+Oe.join("&")),he},Qe.prototype.canonicalizeTileset=function(y,I){for(var U=I?Et(I):!1,$=[],ae=0,he=y.tiles||[];ae=0&&y.params.splice(ae,1)}if($.path!=="/"&&(y.path=""+$.path+y.path),!pt.REQUIRE_ACCESS_TOKEN)return lr(y);if(I=I||pt.ACCESS_TOKEN,!I)throw new Error("An API access token is required to use Mapbox GL. "+U);if(I[0]==="s")throw new Error("Use a public access token (pk.*) with Mapbox GL, not a secret access token (sk.*). "+U);return y.params=y.params.filter(function(he){return he.indexOf("access_token")===-1}),y.params.push("access_token="+I),lr(y)};function Et(m){return m.indexOf("mapbox:")===0}var er=/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/|\?|$)/i;function Ut(m){return er.test(m)}function Ft(m){return m.indexOf("sku=")>0&&Ut(m)}function bt(m){for(var y=0,I=m;y=1&&f.localStorage.setItem(I,JSON.stringify(this.eventData))}catch($){re("Unable to write to LocalStorage")}},ei.prototype.processRequests=function(y){},ei.prototype.postEvent=function(y,I,U,$){var ae=this;if(pt.EVENTS_URL){var he=Yt(pt.EVENTS_URL);he.params.push("access_token="+($||pt.ACCESS_TOKEN||""));var Oe={event:this.type,created:new Date(y).toISOString(),sdkIdentifier:"mapbox-gl-js",sdkVersion:o,skuId:wr,userId:this.anonId},rt=I?_(Oe,I):Oe,gt={url:lr(he),headers:{"Content-Type":"text/plain"},body:JSON.stringify([rt])};this.pendingRequest=$r(gt,function(Mt){ae.pendingRequest=null,U(Mt),ae.saveEventData(),ae.processRequests($)})}},ei.prototype.queueRequest=function(y,I){this.queue.push(y),this.processRequests(I)};var Wr=function(m){function y(){m.call(this,"map.load"),this.success={},this.skuToken=""}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype.postMapLoadEvent=function(U,$,ae,he){this.skuToken=ae,(pt.EVENTS_URL&&he||pt.ACCESS_TOKEN&&Array.isArray(U)&&U.some(function(Oe){return Et(Oe)||Ut(Oe)}))&&this.queueRequest({id:$,timestamp:Date.now()},he)},y.prototype.processRequests=function(U){var $=this;if(!(this.pendingRequest||this.queue.length===0)){var ae=this.queue.shift(),he=ae.id,Oe=ae.timestamp;he&&this.success[he]||(this.anonId||this.fetchEventData(),z(this.anonId)||(this.anonId=P()),this.postEvent(Oe,{skuToken:this.skuToken},function(rt){rt||he&&($.success[he]=!0)},U))}},y}(ei),Ur=function(m){function y(I){m.call(this,"appUserTurnstile"),this._customAccessToken=I}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype.postTurnstileEvent=function(U,$){pt.EVENTS_URL&&pt.ACCESS_TOKEN&&Array.isArray(U)&&U.some(function(ae){return Et(ae)||Ut(ae)})&&this.queueRequest(Date.now(),$)},y.prototype.processRequests=function(U){var $=this;if(!(this.pendingRequest||this.queue.length===0)){(!this.anonId||!this.eventData.lastSuccess||!this.eventData.tokenU)&&this.fetchEventData();var ae=Rr(pt.ACCESS_TOKEN),he=ae?ae.u:pt.ACCESS_TOKEN,Oe=he!==this.eventData.tokenU;z(this.anonId)||(this.anonId=P(),Oe=!0);var rt=this.queue.shift();if(this.eventData.lastSuccess){var gt=new Date(this.eventData.lastSuccess),Mt=new Date(rt),or=(rt-this.eventData.lastSuccess)/(24*60*60*1e3);Oe=Oe||or>=1||or<-1||gt.getDate()!==Mt.getDate()}else Oe=!0;if(!Oe)return this.processRequests();this.postEvent(rt,{"enabled.telemetry":!1},function(_r){_r||($.eventData.lastSuccess=rt,$.eventData.tokenU=he)},U)}},y}(ei),dt=new Ur,Ge=dt.postTurnstileEvent.bind(dt),Je=new Wr,je=Je.postMapLoadEvent.bind(Je),$e="mapbox-tiles",wt=500,Ie=50,xe=1e3*60*7,Ce;function vt(){f.caches&&!Ce&&(Ce=f.caches.open($e))}var nr;function ir(m,y){if(nr===void 0)try{new Response(new ReadableStream),nr=!0}catch(I){nr=!1}nr?y(m.body):m.blob().then(y)}function pr(m,y,I){if(vt(),!!Ce){var U={status:y.status,statusText:y.statusText,headers:new f.Headers};y.headers.forEach(function(he,Oe){return U.headers.set(Oe,he)});var $=me(y.headers.get("Cache-Control")||"");if(!$["no-store"]){$["max-age"]&&U.headers.set("Expires",new Date(I+$["max-age"]*1e3).toUTCString());var ae=new Date(U.headers.get("Expires")).getTime()-I;aeDate.now()&&!I["no-cache"]}var fi=1/0;function Hi(m){fi++,fi>Ie&&(m.getActor().send("enforceCacheSizeLimit",wt),fi=0)}function Pn(m){vt(),Ce&&Ce.then(function(y){y.keys().then(function(I){for(var U=0;U=200&&I.status<300||I.status===0)&&I.response!==null){var $=I.response;if(m.type==="json")try{$=JSON.parse(I.response)}catch(ae){return y(ae)}y(null,$,I.getResponseHeader("Cache-Control"),I.getResponseHeader("Expires"))}else y(new ua(I.statusText,I.status,m.url))},I.send(m.body),{cancel:function(){return I.abort()}}}var Er=function(m,y){if(!_t(m.url)){if(f.fetch&&f.Request&&f.AbortController&&f.Request.prototype.hasOwnProperty("signal"))return tr(m,y);if(ke()&&self.worker&&self.worker.actor){var I=!0;return self.worker.actor.send("getResource",m,y,void 0,I)}}return ar(m,y)},Zr=function(m,y){return Er(_(m,{type:"json"}),y)},ri=function(m,y){return Er(_(m,{type:"arrayBuffer"}),y)},$r=function(m,y){return Er(_(m,{method:"POST"}),y)};function zi(m){var y=f.document.createElement("a");return y.href=m,y.protocol===f.document.location.protocol&&y.host===f.document.location.host}var Ji="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";function en(m,y,I,U){var $=new f.Image,ae=f.URL;$.onload=function(){y(null,$),ae.revokeObjectURL($.src),$.onload=null,f.requestAnimationFrame(function(){$.src=Ji})},$.onerror=function(){return y(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."))};var he=new f.Blob([new Uint8Array(m)],{type:"image/png"});$.cacheControl=I,$.expires=U,$.src=m.byteLength?ae.createObjectURL(he):Ji}function cn(m,y){var I=new f.Blob([new Uint8Array(m)],{type:"image/png"});f.createImageBitmap(I).then(function(U){y(null,U)}).catch(function(U){y(new Error("Could not load image because of "+U.message+". Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."))})}var yn,Mn,Ba=function(){yn=[],Mn=0};Ba();var la=function(m,y){if(Wt.supported&&(m.headers||(m.headers={}),m.headers.accept="image/webp,*/*"),Mn>=pt.MAX_PARALLEL_IMAGE_REQUESTS){var I={requestParameters:m,callback:y,cancelled:!1,cancel:function(){this.cancelled=!0}};return yn.push(I),I}Mn++;var U=!1,$=function(){if(!U)for(U=!0,Mn--;yn.length&&Mn0||this._oneTimeListeners&&this._oneTimeListeners[y]&&this._oneTimeListeners[y].length>0||this._eventedParent&&this._eventedParent.listens(y)},Wn.prototype.setEventedParent=function(y,I){return this._eventedParent=y,this._eventedParentData=I,this};var Ga=8,vo={version:{required:!0,type:"enum",values:[8]},name:{type:"string"},metadata:{type:"*"},center:{type:"array",value:"number"},zoom:{type:"number"},bearing:{type:"number",default:0,period:360,units:"degrees"},pitch:{type:"number",default:0,units:"degrees"},light:{type:"light"},sources:{required:!0,type:"sources"},sprite:{type:"string"},glyphs:{type:"string"},transition:{type:"transition"},layers:{required:!0,type:"array",value:"layer"}},jn={"*":{type:"source"}},St=["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],Cr={type:{required:!0,type:"enum",values:{vector:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},attribution:{type:"string"},promoteId:{type:"promoteId"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},Qr={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:"*"}},pi={type:{required:!0,type:"enum",values:{"raster-dem":{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},attribution:{type:"string"},encoding:{type:"enum",values:{terrarium:{},mapbox:{}},default:"mapbox"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},fn={type:{required:!0,type:"enum",values:{geojson:{}}},data:{type:"*"},maxzoom:{type:"number",default:18},attribution:{type:"string"},buffer:{type:"number",default:128,maximum:512,minimum:0},filter:{type:"*"},tolerance:{type:"number",default:.375},cluster:{type:"boolean",default:!1},clusterRadius:{type:"number",default:50,minimum:0},clusterMaxZoom:{type:"number"},clusterMinPoints:{type:"number"},clusterProperties:{type:"*"},lineMetrics:{type:"boolean",default:!1},generateId:{type:"boolean",default:!1},promoteId:{type:"promoteId"}},Sn={type:{required:!0,type:"enum",values:{video:{}}},urls:{required:!0,type:"array",value:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},En={type:{required:!0,type:"enum",values:{image:{}}},url:{required:!0,type:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},ki={id:{type:"string",required:!0},type:{type:"enum",values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},"fill-extrusion":{},raster:{},hillshade:{},background:{}},required:!0},metadata:{type:"*"},source:{type:"string"},"source-layer":{type:"string"},minzoom:{type:"number",minimum:0,maximum:24},maxzoom:{type:"number",minimum:0,maximum:24},filter:{type:"filter"},layout:{type:"layout"},paint:{type:"paint"}},_n=["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_background"],ya={visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},Jn={"fill-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},Ma={"circle-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},_o={visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},No={"line-cap":{type:"enum",values:{butt:{},round:{},square:{}},default:"butt",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-join":{type:"enum",values:{bevel:{},round:{},miter:{}},default:"miter",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{type:"number",default:2,requires:[{"line-join":"miter"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-round-limit":{type:"number",default:1.05,requires:[{"line-join":"round"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},po={"symbol-placement":{type:"enum",values:{point:{},line:{},"line-center":{}},default:"point",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-spacing":{type:"number",default:250,minimum:1,units:"pixels",requires:[{"symbol-placement":"line"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{type:"boolean",default:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{type:"enum",values:{auto:{},"viewport-y":{},source:{}},default:"auto",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-optional":{type:"boolean",default:!1,requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-size":{type:"number",default:1,minimum:0,units:"factor of the original icon size",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{type:"enum",values:{none:{},width:{},height:{},both:{}},default:"none",requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-text-fit-padding":{type:"array",value:"number",length:4,default:[0,0,0,0],units:"pixels",requires:["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-image":{type:"resolvedImage",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-keep-upright":{type:"boolean",default:!1,requires:["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-offset":{type:"array",value:"number",length:2,default:[0,0],requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-field":{type:"formatted",default:"",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-font":{type:"array",value:"string",default:["Open Sans Regular","Arial Unicode MS Regular"],requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-size":{type:"number",default:16,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{type:"number",default:10,minimum:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{type:"number",default:1.2,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-letter-spacing":{type:"number",default:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-justify":{type:"enum",values:{auto:{},left:{},center:{},right:{}},default:"center",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{type:"number",units:"ems",default:0,requires:["text-field"],"property-type":"data-driven",expression:{interpolated:!0,parameters:["zoom","feature"]}},"text-variable-anchor":{type:"array",value:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["text-field",{"!":"text-variable-anchor"}],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{type:"number",default:45,units:"degrees",requires:["text-field",{"symbol-placement":["line","line-center"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-writing-mode":{type:"array",value:"enum",values:{horizontal:{},vertical:{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-keep-upright":{type:"boolean",default:!0,requires:["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-transform":{type:"enum",values:{none:{},uppercase:{},lowercase:{}},default:"none",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-offset":{type:"array",value:"number",units:"ems",length:2,default:[0,0],requires:["text-field",{"!":"text-radial-offset"}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-optional":{type:"boolean",default:!1,requires:["text-field","icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},Lo={visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},Co={visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},Fs={type:"array",value:"*"},zs={type:"enum",values:{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},in:{},"!in":{},all:{},any:{},none:{},has:{},"!has":{},within:{}}},ul={type:"enum",values:{Point:{},LineString:{},Polygon:{}}},cl={type:"array",minimum:0,maximum:24,value:["number","color"],length:2},Fl={type:"array",value:"*",minimum:1},cs={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}},nl=["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background"],Ss={"fill-antialias":{type:"boolean",default:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{type:"color",transition:!0,requires:[{"!":"fill-pattern"},{"fill-antialias":!0}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"}},fl={"line-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"line-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["line-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-width":{type:"number",default:1,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{type:"number",default:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{type:"array",value:"number",minimum:0,transition:!0,units:"line widths",requires:[{"!":"line-pattern"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"line-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-gradient":{type:"color",transition:!1,requires:[{"!":"line-dasharray"},{"!":"line-pattern"},{source:"geojson",has:{lineMetrics:!0}}],expression:{interpolated:!0,parameters:["line-progress"]},"property-type":"color-ramp"}},Js={"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"}},Os={"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"}},Io={"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"}},us={"raster-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-hue-rotate":{type:"number",default:0,period:360,transition:!0,units:"degrees",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{type:"number",default:0,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-saturation":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-contrast":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-resampling":{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{type:"number",default:300,minimum:0,transition:!1,units:"milliseconds",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},Zl={"hillshade-illumination-direction":{type:"number",default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{type:"number",default:.5,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"color",default:"#FFFFFF",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},Su={"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"}},nc={duration:{type:"number",default:300,minimum:0,units:"milliseconds"},delay:{type:"number",default:0,minimum:0,units:"milliseconds"}},ws={"*":{type:"string"}},Fn={$version:Ga,$root:vo,sources:jn,source:St,source_vector:Cr,source_raster:Qr,source_raster_dem:pi,source_geojson:fn,source_video:Sn,source_image:En,layer:ki,layout:_n,layout_background:ya,layout_fill:Jn,layout_circle:Ma,layout_heatmap:_o,"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_line:No,layout_symbol:po,layout_raster:Lo,layout_hillshade:Co,filter:Fs,filter_operator:zs,geometry_type:ul,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:cl,expression:Fl,light:cs,paint:nl,paint_fill:Ss,"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-extrusion-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",transition:!0,requires:["fill-extrusion-height"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_line:fl,paint_circle:Js,paint_heatmap:Os,paint_symbol:Io,paint_raster:us,paint_hillshade:Zl,paint_background:Su,transition:nc,"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:ws},_a=function(y,I,U,$){this.message=(y?y+": ":"")+U,$&&(this.identifier=$),I!=null&&I.__line__&&(this.line=I.__line__)};function Vu(m){var y=m.key,I=m.value;return I?[new _a(y,I,"constants have been deprecated as of v8")]:[]}function zl(m){for(var y=[],I=arguments.length-1;I-- >0;)y[I]=arguments[I+1];for(var U=0,$=y;U<$.length;U+=1){var ae=$[U];for(var he in ae)m[he]=ae[he]}return m}function xo(m){return m instanceof Number||m instanceof String||m instanceof Boolean?m.valueOf():m}function Yl(m){if(Array.isArray(m))return m.map(Yl);if(m instanceof Object&&!(m instanceof Number||m instanceof String||m instanceof Boolean)){var y={};for(var I in m)y[I]=Yl(m[I]);return y}return xo(m)}var Us=function(m){function y(I,U){m.call(this,U),this.message=U,this.key=I}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y}(Error),Hl=function(y,I){I===void 0&&(I=[]),this.parent=y,this.bindings={};for(var U=0,$=I;U<$.length;U+=1){var ae=$[U],he=ae[0],Oe=ae[1];this.bindings[he]=Oe}};Hl.prototype.concat=function(y){return new Hl(this,y)},Hl.prototype.get=function(y){if(this.bindings[y])return this.bindings[y];if(this.parent)return this.parent.get(y);throw new Error(y+" not found in scope.")},Hl.prototype.has=function(y){return this.bindings[y]?!0:this.parent?this.parent.has(y):!1};var ac={kind:"null"},aa={kind:"number"},Oo={kind:"string"},qo={kind:"boolean"},Ol={kind:"color"},Pc={kind:"object"},Do={kind:"value"},rf={kind:"error"},Uf={kind:"collator"},ml={kind:"formatted"},Zc={kind:"resolvedImage"};function Kl(m,y){return{kind:"array",itemType:m,N:y}}function qs(m){if(m.kind==="array"){var y=qs(m.itemType);return typeof m.N=="number"?"array<"+y+", "+m.N+">":m.itemType.kind==="value"?"array":"array<"+y+">"}else return m.kind}var yu=[ac,aa,Oo,qo,Ol,ml,Pc,Kl(Do),Zc];function oc(m,y){if(y.kind==="error")return null;if(m.kind==="array"){if(y.kind==="array"&&(y.N===0&&y.itemType.kind==="value"||!oc(m.itemType,y.itemType))&&(typeof m.N!="number"||m.N===y.N))return null}else{if(m.kind===y.kind)return null;if(m.kind==="value")for(var I=0,U=yu;I255?255:gt}function $(gt){return gt<0?0:gt>1?1:gt}function ae(gt){return gt[gt.length-1]==="%"?U(parseFloat(gt)/100*255):U(parseInt(gt))}function he(gt){return gt[gt.length-1]==="%"?$(parseFloat(gt)/100):$(parseFloat(gt))}function Oe(gt,Mt,or){return or<0?or+=1:or>1&&(or-=1),or*6<1?gt+(Mt-gt)*or*6:or*2<1?Mt:or*3<2?gt+(Mt-gt)*(2/3-or)*6:gt}function rt(gt){var Mt=gt.replace(/ /g,"").toLowerCase();if(Mt in I)return I[Mt].slice();if(Mt[0]==="#"){if(Mt.length===4){var or=parseInt(Mt.substr(1),16);return or>=0&&or<=4095?[(or&3840)>>4|(or&3840)>>8,or&240|(or&240)>>4,or&15|(or&15)<<4,1]:null}else if(Mt.length===7){var or=parseInt(Mt.substr(1),16);return or>=0&&or<=16777215?[(or&16711680)>>16,(or&65280)>>8,or&255,1]:null}return null}var _r=Mt.indexOf("("),vr=Mt.indexOf(")");if(_r!==-1&&vr+1===Mt.length){var Fr=Mt.substr(0,_r),ai=Mt.substr(_r+1,vr-(_r+1)).split(","),Gi=1;switch(Fr){case"rgba":if(ai.length!==4)return null;Gi=he(ai.pop());case"rgb":return ai.length!==3?null:[ae(ai[0]),ae(ai[1]),ae(ai[2]),Gi];case"hsla":if(ai.length!==4)return null;Gi=he(ai.pop());case"hsl":if(ai.length!==3)return null;var Ti=(parseFloat(ai[0])%360+360)%360/360,bn=he(ai[1]),rn=he(ai[2]),xn=rn<=.5?rn*(bn+1):rn+bn-rn*bn,Dn=rn*2-xn;return[U(Oe(Dn,xn,Ti+1/3)*255),U(Oe(Dn,xn,Ti)*255),U(Oe(Dn,xn,Ti-1/3)*255),Gi];default:return null}}return null}try{y.parseCSSColor=rt}catch(gt){}}),kf=Nh.parseCSSColor,fs=function(y,I,U,$){$===void 0&&($=1),this.r=y,this.g=I,this.b=U,this.a=$};fs.parse=function(y){if(y){if(y instanceof fs)return y;if(typeof y=="string"){var I=kf(y);if(I)return new fs(I[0]/255*I[3],I[1]/255*I[3],I[2]/255*I[3],I[3])}}},fs.prototype.toString=function(){var y=this.toArray(),I=y[0],U=y[1],$=y[2],ae=y[3];return"rgba("+Math.round(I)+","+Math.round(U)+","+Math.round($)+","+ae+")"},fs.prototype.toArray=function(){var y=this,I=y.r,U=y.g,$=y.b,ae=y.a;return ae===0?[0,0,0,0]:[I*255/ae,U*255/ae,$*255/ae,ae]},fs.black=new fs(0,0,0,1),fs.white=new fs(1,1,1,1),fs.transparent=new fs(0,0,0,0),fs.red=new fs(1,0,0,1);var nf=function(y,I,U){y?this.sensitivity=I?"variant":"case":this.sensitivity=I?"accent":"base",this.locale=U,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})};nf.prototype.compare=function(y,I){return this.collator.compare(y,I)},nf.prototype.resolvedLocale=function(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale};var Vf=function(y,I,U,$,ae){this.text=y,this.image=I,this.scale=U,this.fontStack=$,this.textColor=ae},Jl=function(y){this.sections=y};Jl.fromString=function(y){return new Jl([new Vf(y,null,null,null,null)])},Jl.prototype.isEmpty=function(){return this.sections.length===0?!0:!this.sections.some(function(y){return y.text.length!==0||y.image&&y.image.name.length!==0})},Jl.factory=function(y){return y instanceof Jl?y:Jl.fromString(y)},Jl.prototype.toString=function(){return this.sections.length===0?"":this.sections.map(function(y){return y.text}).join("")},Jl.prototype.serialize=function(){for(var y=["format"],I=0,U=this.sections;I=0&&m<=255&&typeof y=="number"&&y>=0&&y<=255&&typeof I=="number"&&I>=0&&I<=255)){var $=typeof U=="number"?[m,y,I,U]:[m,y,I];return"Invalid rgba value ["+$.join(", ")+"]: 'r', 'g', and 'b' must be between 0 and 255."}return typeof U=="undefined"||typeof U=="number"&&U>=0&&U<=1?null:"Invalid rgba value ["+[m,y,I,U].join(", ")+"]: 'a' must be between 0 and 1."}function Fu(m){if(m===null)return!0;if(typeof m=="string")return!0;if(typeof m=="boolean")return!0;if(typeof m=="number")return!0;if(m instanceof fs)return!0;if(m instanceof nf)return!0;if(m instanceof Jl)return!0;if(m instanceof hl)return!0;if(Array.isArray(m)){for(var y=0,I=m;y2){var Oe=y[1];if(typeof Oe!="string"||!(Oe in uc)||Oe==="object")return I.error('The item type argument of "array" must be one of string, number, boolean',1);he=uc[Oe],U++}else he=Do;var rt;if(y.length>3){if(y[2]!==null&&(typeof y[2]!="number"||y[2]<0||y[2]!==Math.floor(y[2])))return I.error('The length argument to "array" must be a positive integer literal',2);rt=y[2],U++}$=Kl(he,rt)}else $=uc[ae];for(var gt=[];U1)&&I.push($)}}return I.concat(this.args.map(function(ae){return ae.serialize()}))};var Gu=function(y){this.type=ml,this.sections=y};Gu.parse=function(y,I){if(y.length<2)return I.error("Expected at least one argument.");var U=y[1];if(!Array.isArray(U)&&typeof U=="object")return I.error("First argument must be an image or text section.");for(var $=[],ae=!1,he=1;he<=y.length-1;++he){var Oe=y[he];if(ae&&typeof Oe=="object"&&!Array.isArray(Oe)){ae=!1;var rt=null;if(Oe["font-scale"]&&(rt=I.parse(Oe["font-scale"],1,aa),!rt))return null;var gt=null;if(Oe["text-font"]&&(gt=I.parse(Oe["text-font"],1,Kl(Oo)),!gt))return null;var Mt=null;if(Oe["text-color"]&&(Mt=I.parse(Oe["text-color"],1,Ol),!Mt))return null;var or=$[$.length-1];or.scale=rt,or.font=gt,or.textColor=Mt}else{var _r=I.parse(y[he],1,Do);if(!_r)return null;var vr=_r.type.kind;if(vr!=="string"&&vr!=="value"&&vr!=="null"&&vr!=="resolvedImage")return I.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");ae=!0,$.push({content:_r,scale:null,font:null,textColor:null})}}return new Gu($)},Gu.prototype.evaluate=function(y){var I=function(U){var $=U.content.evaluate(y);return Cs($)===Zc?new Vf("",$,null,null,null):new Vf(js($),null,U.scale?U.scale.evaluate(y):null,U.font?U.font.evaluate(y).join(","):null,U.textColor?U.textColor.evaluate(y):null)};return new Jl(this.sections.map(I))},Gu.prototype.eachChild=function(y){for(var I=0,U=this.sections;I-1),U},Bs.prototype.eachChild=function(y){y(this.input)},Bs.prototype.outputDefined=function(){return!1},Bs.prototype.serialize=function(){return["image",this.input.serialize()]};var ad={"to-boolean":qo,"to-color":Ol,"to-number":aa,"to-string":Oo},Po=function(y,I){this.type=y,this.args=I};Po.parse=function(y,I){if(y.length<2)return I.error("Expected at least one argument.");var U=y[0];if((U==="to-boolean"||U==="to-string")&&y.length!==2)return I.error("Expected one argument.");for(var $=ad[U],ae=[],he=1;he4?U="Invalid rbga value "+JSON.stringify(I)+": expected an array containing either three or four numeric values.":U=lc(I[0],I[1],I[2],I[3]),!U))return new fs(I[0]/255,I[1]/255,I[2]/255,I[3])}throw new gs(U||"Could not parse color from value '"+(typeof I=="string"?I:String(JSON.stringify(I)))+"'")}else if(this.type.kind==="number"){for(var rt=null,gt=0,Mt=this.args;gt=y[2]||m[1]<=y[1]||m[3]>=y[3])}function _h(m,y){var I=Ic(m[0]),U=mf(m[1]),$=Math.pow(2,y.z);return[Math.round(I*$*bl),Math.round(U*$*bl)]}function Qf(m,y,I){var U=m[0]-y[0],$=m[1]-y[1],ae=m[0]-I[0],he=m[1]-I[1];return U*he-ae*$===0&&U*ae<=0&&$*he<=0}function yf(m,y,I){return y[1]>m[1]!=I[1]>m[1]&&m[0]<(I[0]-y[0])*(m[1]-y[1])/(I[1]-y[1])+y[0]}function Yc(m,y){for(var I=!1,U=0,$=y.length;U<$;U++)for(var ae=y[U],he=0,Oe=ae.length;he0&&or<0||Mt<0&&or>0}function Hf(m,y,I,U){var $=[y[0]-m[0],y[1]-m[1]],ae=[U[0]-I[0],U[1]-I[1]];return th(ae,$)===0?!1:!!(ju(m,y,I,U)&&ju(I,U,m,y))}function cc(m,y,I){for(var U=0,$=I;U<$.length;U+=1)for(var ae=$[U],he=0;heI[2]){var $=U*.5,ae=m[0]-I[0]>$?-U:I[0]-m[0]>$?U:0;ae===0&&(ae=m[0]-I[2]>$?-U:I[2]-m[0]>$?U:0),m[0]+=ae}Gf(y,m)}function jf(m){m[0]=m[1]=1/0,m[2]=m[3]=-1/0}function Uh(m,y,I,U){for(var $=Math.pow(2,U.z)*bl,ae=[U.x*bl,U.y*bl],he=[],Oe=0,rt=m;Oe=0)return!1;var I=!0;return m.eachChild(function(U){I&&!Eu(U,y)&&(I=!1)}),I}var Dc=function(y,I){this.type=I.type,this.name=y,this.boundExpression=I};Dc.parse=function(y,I){if(y.length!==2||typeof y[1]!="string")return I.error("'var' expression requires exactly one string literal argument.");var U=y[1];return I.scope.has(U)?new Dc(U,I.scope.get(U)):I.error('Unknown variable "'+U+'". Make sure "'+U+'" has been bound in an enclosing "let" expression before using it.',1)},Dc.prototype.evaluate=function(y){return this.boundExpression.evaluate(y)},Dc.prototype.eachChild=function(){},Dc.prototype.outputDefined=function(){return!1},Dc.prototype.serialize=function(){return["var",this.name]};var ks=function(y,I,U,$,ae){I===void 0&&(I=[]),$===void 0&&($=new Hl),ae===void 0&&(ae=[]),this.registry=y,this.path=I,this.key=I.map(function(he){return"["+he+"]"}).join(""),this.scope=$,this.errors=ae,this.expectedType=U};ks.prototype.parse=function(y,I,U,$,ae){return ae===void 0&&(ae={}),I?this.concat(I,U,$)._parse(y,ae):this._parse(y,ae)},ks.prototype._parse=function(y,I){(y===null||typeof y=="string"||typeof y=="boolean"||typeof y=="number")&&(y=["literal",y]);function U(Mt,or,_r){return _r==="assert"?new xl(or,[Mt]):_r==="coerce"?new Po(or,[Mt]):Mt}if(Array.isArray(y)){if(y.length===0)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');var $=y[0];if(typeof $!="string")return this.error("Expression name must be a string, but found "+typeof $+' instead. If you wanted a literal array, use ["literal", [...]].',0),null;var ae=this.registry[$];if(ae){var he=ae.parse(y,this);if(!he)return null;if(this.expectedType){var Oe=this.expectedType,rt=he.type;if((Oe.kind==="string"||Oe.kind==="number"||Oe.kind==="boolean"||Oe.kind==="object"||Oe.kind==="array")&&rt.kind==="value")he=U(he,Oe,I.typeAnnotation||"assert");else if((Oe.kind==="color"||Oe.kind==="formatted"||Oe.kind==="resolvedImage")&&(rt.kind==="value"||rt.kind==="string"))he=U(he,Oe,I.typeAnnotation||"coerce");else if(this.checkSubtype(Oe,rt))return null}if(!(he instanceof Go)&&he.type.kind!=="resolvedImage"&&bc(he)){var gt=new Yo;try{he=new Go(he.type,he.evaluate(gt))}catch(Mt){return this.error(Mt.message),null}}return he}return this.error('Unknown expression "'+$+'". If you wanted a literal array, use ["literal", [...]].',0)}else return typeof y=="undefined"?this.error("'undefined' value invalid. Use null instead."):typeof y=="object"?this.error('Bare objects invalid. Use ["literal", {...}] instead.'):this.error("Expected an array, but found "+typeof y+" instead.")},ks.prototype.concat=function(y,I,U){var $=typeof y=="number"?this.path.concat(y):this.path,ae=U?this.scope.concat(U):this.scope;return new ks(this.registry,$,I||null,ae,this.errors)},ks.prototype.error=function(y){for(var I=[],U=arguments.length-1;U-- >0;)I[U]=arguments[U+1];var $=""+this.key+I.map(function(ae){return"["+ae+"]"}).join("");this.errors.push(new Us($,y))},ks.prototype.checkSubtype=function(y,I){var U=oc(y,I);return U&&this.error(U),U};function bc(m){if(m instanceof Dc)return bc(m.boundExpression);if(m instanceof Pa&&m.name==="error")return!1;if(m instanceof Hu)return!1;if(m instanceof Mu)return!1;var y=m instanceof Po||m instanceof xl,I=!0;return m.eachChild(function(U){y?I=I&&bc(U):I=I&&U instanceof Go}),I?ih(m)&&Eu(m,["zoom","heatmap-density","line-progress","accumulated","is-supported-script"]):!1}function du(m,y){for(var I=m.length-1,U=0,$=I,ae=0,he,Oe;U<=$;)if(ae=Math.floor((U+$)/2),he=m[ae],Oe=m[ae+1],he<=y){if(ae===I||yy)$=ae-1;else throw new gs("Input is not a number.");return 0}var _u=function(y,I,U){this.type=y,this.input=I,this.labels=[],this.outputs=[];for(var $=0,ae=U;$=Oe)return I.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',gt);var or=I.parse(rt,Mt,ae);if(!or)return null;ae=ae||or.type,$.push([Oe,or])}return new _u(ae,U,$)},_u.prototype.evaluate=function(y){var I=this.labels,U=this.outputs;if(I.length===1)return U[0].evaluate(y);var $=this.input.evaluate(y);if($<=I[0])return U[0].evaluate(y);var ae=I.length;if($>=I[ae-1])return U[ae-1].evaluate(y);var he=du(I,$);return U[he].evaluate(y)},_u.prototype.eachChild=function(y){y(this.input);for(var I=0,U=this.outputs;I0&&y.push(this.labels[I]),y.push(this.outputs[I].serialize());return y};function al(m,y,I){return m*(1-I)+y*I}function nh(m,y,I){return new fs(al(m.r,y.r,I),al(m.g,y.g,I),al(m.b,y.b,I),al(m.a,y.a,I))}function bh(m,y,I){return m.map(function(U,$){return al(U,y[$],I)})}var zu=Object.freeze({__proto__:null,number:al,color:nh,array:bh}),Fc=.95047,wc=1,bd=1.08883,_f=4/29,Lf=6/29,Ou=3*Lf*Lf,xf=Lf*Lf*Lf,jl=Math.PI/180,lf=180/Math.PI;function Vh(m){return m>xf?Math.pow(m,1/3):m/Ou+_f}function Pf(m){return m>Lf?m*m*m:Ou*(m-_f)}function Ls(m){return 255*(m<=.0031308?12.92*m:1.055*Math.pow(m,1/2.4)-.055)}function vu(m){return m/=255,m<=.04045?m/12.92:Math.pow((m+.055)/1.055,2.4)}function Cu(m){var y=vu(m.r),I=vu(m.g),U=vu(m.b),$=Vh((.4124564*y+.3575761*I+.1804375*U)/Fc),ae=Vh((.2126729*y+.7151522*I+.072175*U)/wc),he=Vh((.0193339*y+.119192*I+.9503041*U)/bd);return{l:116*ae-16,a:500*($-ae),b:200*(ae-he),alpha:m.a}}function Wf(m){var y=(m.l+16)/116,I=isNaN(m.a)?y:y+m.a/500,U=isNaN(m.b)?y:y-m.b/200;return y=wc*Pf(y),I=Fc*Pf(I),U=bd*Pf(U),new fs(Ls(3.2404542*I-1.5371385*y-.4985314*U),Ls(-.969266*I+1.8760108*y+.041556*U),Ls(.0556434*I-.2040259*y+1.0572252*U),m.alpha)}function Vs(m,y,I){return{l:al(m.l,y.l,I),a:al(m.a,y.a,I),b:al(m.b,y.b,I),alpha:al(m.alpha,y.alpha,I)}}function bf(m){var y=Cu(m),I=y.l,U=y.a,$=y.b,ae=Math.atan2($,U)*lf;return{h:ae<0?ae+360:ae,c:Math.sqrt(U*U+$*$),l:I,alpha:m.a}}function zc(m){var y=m.h*jl,I=m.c,U=m.l;return Wf({l:U,a:Math.cos(y)*I,b:Math.sin(y)*I,alpha:m.alpha})}function Wu(m,y,I){var U=y-m;return m+I*(U>180||U<-180?U-360*Math.round(U/360):U)}function If(m,y,I){return{h:Wu(m.h,y.h,I),c:al(m.c,y.c,I),l:al(m.l,y.l,I),alpha:al(m.alpha,y.alpha,I)}}var Xu={forward:Cu,reverse:Wf,interpolate:Vs},uf={forward:bf,reverse:zc,interpolate:If},Xf=Object.freeze({__proto__:null,lab:Xu,hcl:uf}),Wl=function(y,I,U,$,ae){this.type=y,this.operator=I,this.interpolation=U,this.input=$,this.labels=[],this.outputs=[];for(var he=0,Oe=ae;he1}))return I.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);$={name:"cubic-bezier",controlPoints:rt}}else return I.error("Unknown interpolation type "+String($[0]),1,0);if(y.length-1<4)return I.error("Expected at least 4 arguments, but found only "+(y.length-1)+".");if((y.length-1)%2!==0)return I.error("Expected an even number of arguments.");if(ae=I.parse(ae,2,aa),!ae)return null;var gt=[],Mt=null;U==="interpolate-hcl"||U==="interpolate-lab"?Mt=Ol:I.expectedType&&I.expectedType.kind!=="value"&&(Mt=I.expectedType);for(var or=0;or=_r)return I.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',Fr);var Gi=I.parse(vr,ai,Mt);if(!Gi)return null;Mt=Mt||Gi.type,gt.push([_r,Gi])}return Mt.kind!=="number"&&Mt.kind!=="color"&&!(Mt.kind==="array"&&Mt.itemType.kind==="number"&&typeof Mt.N=="number")?I.error("Type "+qs(Mt)+" is not interpolatable."):new Wl(Mt,U,$,ae,gt)},Wl.prototype.evaluate=function(y){var I=this.labels,U=this.outputs;if(I.length===1)return U[0].evaluate(y);var $=this.input.evaluate(y);if($<=I[0])return U[0].evaluate(y);var ae=I.length;if($>=I[ae-1])return U[ae-1].evaluate(y);var he=du(I,$),Oe=I[he],rt=I[he+1],gt=Wl.interpolationFactor(this.interpolation,$,Oe,rt),Mt=U[he].evaluate(y),or=U[he+1].evaluate(y);return this.operator==="interpolate"?zu[this.type.kind.toLowerCase()](Mt,or,gt):this.operator==="interpolate-hcl"?uf.reverse(uf.interpolate(uf.forward(Mt),uf.forward(or),gt)):Xu.reverse(Xu.interpolate(Xu.forward(Mt),Xu.forward(or),gt))},Wl.prototype.eachChild=function(y){y(this.input);for(var I=0,U=this.outputs;I=U.length)throw new gs("Array index out of bounds: "+I+" > "+(U.length-1)+".");if(I!==Math.floor(I))throw new gs("Array index must be an integer, but found "+I+" instead.");return U[I]},Tc.prototype.eachChild=function(y){y(this.index),y(this.input)},Tc.prototype.outputDefined=function(){return!1},Tc.prototype.serialize=function(){return["at",this.index.serialize(),this.input.serialize()]};var wl=function(y,I){this.type=qo,this.needle=y,this.haystack=I};wl.parse=function(y,I){if(y.length!==3)return I.error("Expected 2 arguments, but found "+(y.length-1)+" instead.");var U=I.parse(y[1],1,Do),$=I.parse(y[2],2,Do);return!U||!$?null:Cf(U.type,[qo,Oo,aa,ac,Do])?new wl(U,$):I.error("Expected first argument to be of type boolean, string, number or null, but found "+qs(U.type)+" instead")},wl.prototype.evaluate=function(y){var I=this.needle.evaluate(y),U=this.haystack.evaluate(y);if(!U)return!1;if(!sc(I,["boolean","string","number","null"]))throw new gs("Expected first argument to be of type boolean, string, number or null, but found "+qs(Cs(I))+" instead.");if(!sc(U,["string","array"]))throw new gs("Expected second argument to be of type array or string, but found "+qs(Cs(U))+" instead.");return U.indexOf(I)>=0},wl.prototype.eachChild=function(y){y(this.needle),y(this.haystack)},wl.prototype.outputDefined=function(){return!0},wl.prototype.serialize=function(){return["in",this.needle.serialize(),this.haystack.serialize()]};var pu=function(y,I,U){this.type=aa,this.needle=y,this.haystack=I,this.fromIndex=U};pu.parse=function(y,I){if(y.length<=2||y.length>=5)return I.error("Expected 3 or 4 arguments, but found "+(y.length-1)+" instead.");var U=I.parse(y[1],1,Do),$=I.parse(y[2],2,Do);if(!U||!$)return null;if(!Cf(U.type,[qo,Oo,aa,ac,Do]))return I.error("Expected first argument to be of type boolean, string, number or null, but found "+qs(U.type)+" instead");if(y.length===4){var ae=I.parse(y[3],3,aa);return ae?new pu(U,$,ae):null}else return new pu(U,$)},pu.prototype.evaluate=function(y){var I=this.needle.evaluate(y),U=this.haystack.evaluate(y);if(!sc(I,["boolean","string","number","null"]))throw new gs("Expected first argument to be of type boolean, string, number or null, but found "+qs(Cs(I))+" instead.");if(!sc(U,["string","array"]))throw new gs("Expected second argument to be of type array or string, but found "+qs(Cs(U))+" instead.");if(this.fromIndex){var $=this.fromIndex.evaluate(y);return U.indexOf(I,$)}return U.indexOf(I)},pu.prototype.eachChild=function(y){y(this.needle),y(this.haystack),this.fromIndex&&y(this.fromIndex)},pu.prototype.outputDefined=function(){return!1},pu.prototype.serialize=function(){if(this.fromIndex!=null&&this.fromIndex!==void 0){var y=this.fromIndex.serialize();return["index-of",this.needle.serialize(),this.haystack.serialize(),y]}return["index-of",this.needle.serialize(),this.haystack.serialize()]};var qc=function(y,I,U,$,ae,he){this.inputType=y,this.type=I,this.input=U,this.cases=$,this.outputs=ae,this.otherwise=he};qc.parse=function(y,I){if(y.length<5)return I.error("Expected at least 4 arguments, but found only "+(y.length-1)+".");if(y.length%2!==1)return I.error("Expected an even number of arguments.");var U,$;I.expectedType&&I.expectedType.kind!=="value"&&($=I.expectedType);for(var ae={},he=[],Oe=2;OeNumber.MAX_SAFE_INTEGER)return Mt.error("Branch labels must be integers no larger than "+Number.MAX_SAFE_INTEGER+".");if(typeof vr=="number"&&Math.floor(vr)!==vr)return Mt.error("Numeric branch labels must be integer values.");if(!U)U=Cs(vr);else if(Mt.checkSubtype(U,Cs(vr)))return null;if(typeof ae[String(vr)]!="undefined")return Mt.error("Branch labels must be unique.");ae[String(vr)]=he.length}var Fr=I.parse(gt,Oe,$);if(!Fr)return null;$=$||Fr.type,he.push(Fr)}var ai=I.parse(y[1],1,Do);if(!ai)return null;var Gi=I.parse(y[y.length-1],y.length-1,$);return!Gi||ai.type.kind!=="value"&&I.concat(1).checkSubtype(U,ai.type)?null:new qc(U,$,ai,ae,he,Gi)},qc.prototype.evaluate=function(y){var I=this.input.evaluate(y),U=Cs(I)===this.inputType&&this.outputs[this.cases[I]]||this.otherwise;return U.evaluate(y)},qc.prototype.eachChild=function(y){y(this.input),this.outputs.forEach(y),y(this.otherwise)},qc.prototype.outputDefined=function(){return this.outputs.every(function(y){return y.outputDefined()})&&this.otherwise.outputDefined()},qc.prototype.serialize=function(){for(var y=this,I=["match",this.input.serialize()],U=Object.keys(this.cases).sort(),$=[],ae={},he=0,Oe=U;he=5)return I.error("Expected 3 or 4 arguments, but found "+(y.length-1)+" instead.");var U=I.parse(y[1],1,Do),$=I.parse(y[2],2,aa);if(!U||!$)return null;if(!Cf(U.type,[Kl(Do),Oo,Do]))return I.error("Expected first argument to be of type array or string, but found "+qs(U.type)+" instead");if(y.length===4){var ae=I.parse(y[3],3,aa);return ae?new fc(U.type,U,$,ae):null}else return new fc(U.type,U,$)},fc.prototype.evaluate=function(y){var I=this.input.evaluate(y),U=this.beginIndex.evaluate(y);if(!sc(I,["string","array"]))throw new gs("Expected first argument to be of type array or string, but found "+qs(Cs(I))+" instead.");if(this.endIndex){var $=this.endIndex.evaluate(y);return I.slice(U,$)}return I.slice(U)},fc.prototype.eachChild=function(y){y(this.input),y(this.beginIndex),this.endIndex&&y(this.endIndex)},fc.prototype.outputDefined=function(){return!1},fc.prototype.serialize=function(){if(this.endIndex!=null&&this.endIndex!==void 0){var y=this.endIndex.serialize();return["slice",this.input.serialize(),this.beginIndex.serialize(),y]}return["slice",this.input.serialize(),this.beginIndex.serialize()]};function Bc(m,y){return m==="=="||m==="!="?y.kind==="boolean"||y.kind==="string"||y.kind==="number"||y.kind==="null"||y.kind==="value":y.kind==="string"||y.kind==="number"||y.kind==="value"}function At(m,y,I){return y===I}function Xt(m,y,I){return y!==I}function kr(m,y,I){return yI}function Kr(m,y,I){return y<=I}function Ei(m,y,I){return y>=I}function Wi(m,y,I,U){return U.compare(y,I)===0}function hn(m,y,I,U){return!Wi(m,y,I,U)}function Tn(m,y,I,U){return U.compare(y,I)<0}function Bn(m,y,I,U){return U.compare(y,I)>0}function Zi(m,y,I,U){return U.compare(y,I)<=0}function $i(m,y,I,U){return U.compare(y,I)>=0}function an(m,y,I){var U=m!=="=="&&m!=="!=";return function(){function $(ae,he,Oe){this.type=qo,this.lhs=ae,this.rhs=he,this.collator=Oe,this.hasUntypedArgument=ae.type.kind==="value"||he.type.kind==="value"}return $.parse=function(he,Oe){if(he.length!==3&&he.length!==4)return Oe.error("Expected two or three arguments.");var rt=he[0],gt=Oe.parse(he[1],1,Do);if(!gt)return null;if(!Bc(rt,gt.type))return Oe.concat(1).error('"'+rt+`" comparisons are not supported for type '`+qs(gt.type)+"'.");var Mt=Oe.parse(he[2],2,Do);if(!Mt)return null;if(!Bc(rt,Mt.type))return Oe.concat(2).error('"'+rt+`" comparisons are not supported for type '`+qs(Mt.type)+"'.");if(gt.type.kind!==Mt.type.kind&>.type.kind!=="value"&&Mt.type.kind!=="value")return Oe.error("Cannot compare types '"+qs(gt.type)+"' and '"+qs(Mt.type)+"'.");U&&(gt.type.kind==="value"&&Mt.type.kind!=="value"?gt=new xl(Mt.type,[gt]):gt.type.kind!=="value"&&Mt.type.kind==="value"&&(Mt=new xl(gt.type,[Mt])));var or=null;if(he.length===4){if(gt.type.kind!=="string"&&Mt.type.kind!=="string"&>.type.kind!=="value"&&Mt.type.kind!=="value")return Oe.error("Cannot use collator to compare non-string types.");if(or=Oe.parse(he[3],3,Uf),!or)return null}return new $(gt,Mt,or)},$.prototype.evaluate=function(he){var Oe=this.lhs.evaluate(he),rt=this.rhs.evaluate(he);if(U&&this.hasUntypedArgument){var gt=Cs(Oe),Mt=Cs(rt);if(gt.kind!==Mt.kind||!(gt.kind==="string"||gt.kind==="number"))throw new gs('Expected arguments for "'+m+'" to be (string, string) or (number, number), but found ('+gt.kind+", "+Mt.kind+") instead.")}if(this.collator&&!U&&this.hasUntypedArgument){var or=Cs(Oe),_r=Cs(rt);if(or.kind!=="string"||_r.kind!=="string")return y(he,Oe,rt)}return this.collator?I(he,Oe,rt,this.collator.evaluate(he)):y(he,Oe,rt)},$.prototype.eachChild=function(he){he(this.lhs),he(this.rhs),this.collator&&he(this.collator)},$.prototype.outputDefined=function(){return!0},$.prototype.serialize=function(){var he=[m];return this.eachChild(function(Oe){he.push(Oe.serialize())}),he},$}()}var Di=an("==",At,Wi),$n=an("!=",Xt,hn),ka=an("<",kr,Tn),Ra=an(">",Ar,Bn),La=an("<=",Kr,Zi),Na=an(">=",Ei,$i),Yn=function(y,I,U,$,ae){this.type=Oo,this.number=y,this.locale=I,this.currency=U,this.minFractionDigits=$,this.maxFractionDigits=ae};Yn.parse=function(y,I){if(y.length!==3)return I.error("Expected two arguments.");var U=I.parse(y[1],1,aa);if(!U)return null;var $=y[2];if(typeof $!="object"||Array.isArray($))return I.error("NumberFormat options argument must be an object.");var ae=null;if($.locale&&(ae=I.parse($.locale,1,Oo),!ae))return null;var he=null;if($.currency&&(he=I.parse($.currency,1,Oo),!he))return null;var Oe=null;if($["min-fraction-digits"]&&(Oe=I.parse($["min-fraction-digits"],1,aa),!Oe))return null;var rt=null;return $["max-fraction-digits"]&&(rt=I.parse($["max-fraction-digits"],1,aa),!rt)?null:new Yn(U,ae,he,Oe,rt)},Yn.prototype.evaluate=function(y){return new Intl.NumberFormat(this.locale?this.locale.evaluate(y):[],{style:this.currency?"currency":"decimal",currency:this.currency?this.currency.evaluate(y):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(y):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(y):void 0}).format(this.number.evaluate(y))},Yn.prototype.eachChild=function(y){y(this.number),this.locale&&y(this.locale),this.currency&&y(this.currency),this.minFractionDigits&&y(this.minFractionDigits),this.maxFractionDigits&&y(this.maxFractionDigits)},Yn.prototype.outputDefined=function(){return!1},Yn.prototype.serialize=function(){var y={};return this.locale&&(y.locale=this.locale.serialize()),this.currency&&(y.currency=this.currency.serialize()),this.minFractionDigits&&(y["min-fraction-digits"]=this.minFractionDigits.serialize()),this.maxFractionDigits&&(y["max-fraction-digits"]=this.maxFractionDigits.serialize()),["number-format",this.number.serialize(),y]};var zn=function(y){this.type=aa,this.input=y};zn.parse=function(y,I){if(y.length!==2)return I.error("Expected 1 argument, but found "+(y.length-1)+" instead.");var U=I.parse(y[1],1);return U?U.type.kind!=="array"&&U.type.kind!=="string"&&U.type.kind!=="value"?I.error("Expected argument of type string or array, but found "+qs(U.type)+" instead."):new zn(U):null},zn.prototype.evaluate=function(y){var I=this.input.evaluate(y);if(typeof I=="string")return I.length;if(Array.isArray(I))return I.length;throw new gs("Expected value to be of type string or array, but found "+qs(Cs(I))+" instead.")},zn.prototype.eachChild=function(y){y(this.input)},zn.prototype.outputDefined=function(){return!1},zn.prototype.serialize=function(){var y=["length"];return this.eachChild(function(I){y.push(I.serialize())}),y};var Ka={"==":Di,"!=":$n,">":Ra,"<":ka,">=":Na,"<=":La,array:xl,at:Tc,boolean:xl,case:cf,coalesce:Zu,collator:Hu,format:Gu,image:Bs,in:wl,"index-of":pu,interpolate:Wl,"interpolate-hcl":Wl,"interpolate-lab":Wl,length:zn,let:Oc,literal:Go,match:qc,number:xl,"number-format":Yn,object:xl,slice:fc,step:_u,string:xl,"to-boolean":Po,"to-color":Po,"to-number":Po,"to-string":Po,var:Dc,within:Mu};function bo(m,y){var I=y[0],U=y[1],$=y[2],ae=y[3];I=I.evaluate(m),U=U.evaluate(m),$=$.evaluate(m);var he=ae?ae.evaluate(m):1,Oe=lc(I,U,$,he);if(Oe)throw new gs(Oe);return new fs(I/255*he,U/255*he,$/255*he,he)}function Xo(m,y){return m in y}function Ms(m,y){var I=y[m];return typeof I=="undefined"?null:I}function os(m,y,I,U){for(;I<=U;){var $=I+U>>1;if(y[$]===m)return!0;y[$]>m?U=$-1:I=$+1}return!1}function Ts(m){return{type:m}}Pa.register(Ka,{error:[rf,[Oo],function(m,y){var I=y[0];throw new gs(I.evaluate(m))}],typeof:[Oo,[Do],function(m,y){var I=y[0];return qs(Cs(I.evaluate(m)))}],"to-rgba":[Kl(aa,4),[Ol],function(m,y){var I=y[0];return I.evaluate(m).toArray()}],rgb:[Ol,[aa,aa,aa],bo],rgba:[Ol,[aa,aa,aa,aa],bo],has:{type:qo,overloads:[[[Oo],function(m,y){var I=y[0];return Xo(I.evaluate(m),m.properties())}],[[Oo,Pc],function(m,y){var I=y[0],U=y[1];return Xo(I.evaluate(m),U.evaluate(m))}]]},get:{type:Do,overloads:[[[Oo],function(m,y){var I=y[0];return Ms(I.evaluate(m),m.properties())}],[[Oo,Pc],function(m,y){var I=y[0],U=y[1];return Ms(I.evaluate(m),U.evaluate(m))}]]},"feature-state":[Do,[Oo],function(m,y){var I=y[0];return Ms(I.evaluate(m),m.featureState||{})}],properties:[Pc,[],function(m){return m.properties()}],"geometry-type":[Oo,[],function(m){return m.geometryType()}],id:[Do,[],function(m){return m.id()}],zoom:[aa,[],function(m){return m.globals.zoom}],"heatmap-density":[aa,[],function(m){return m.globals.heatmapDensity||0}],"line-progress":[aa,[],function(m){return m.globals.lineProgress||0}],accumulated:[Do,[],function(m){return m.globals.accumulated===void 0?null:m.globals.accumulated}],"+":[aa,Ts(aa),function(m,y){for(var I=0,U=0,$=y;U<$.length;U+=1){var ae=$[U];I+=ae.evaluate(m)}return I}],"*":[aa,Ts(aa),function(m,y){for(var I=1,U=0,$=y;U<$.length;U+=1){var ae=$[U];I*=ae.evaluate(m)}return I}],"-":{type:aa,overloads:[[[aa,aa],function(m,y){var I=y[0],U=y[1];return I.evaluate(m)-U.evaluate(m)}],[[aa],function(m,y){var I=y[0];return-I.evaluate(m)}]]},"/":[aa,[aa,aa],function(m,y){var I=y[0],U=y[1];return I.evaluate(m)/U.evaluate(m)}],"%":[aa,[aa,aa],function(m,y){var I=y[0],U=y[1];return I.evaluate(m)%U.evaluate(m)}],ln2:[aa,[],function(){return Math.LN2}],pi:[aa,[],function(){return Math.PI}],e:[aa,[],function(){return Math.E}],"^":[aa,[aa,aa],function(m,y){var I=y[0],U=y[1];return Math.pow(I.evaluate(m),U.evaluate(m))}],sqrt:[aa,[aa],function(m,y){var I=y[0];return Math.sqrt(I.evaluate(m))}],log10:[aa,[aa],function(m,y){var I=y[0];return Math.log(I.evaluate(m))/Math.LN10}],ln:[aa,[aa],function(m,y){var I=y[0];return Math.log(I.evaluate(m))}],log2:[aa,[aa],function(m,y){var I=y[0];return Math.log(I.evaluate(m))/Math.LN2}],sin:[aa,[aa],function(m,y){var I=y[0];return Math.sin(I.evaluate(m))}],cos:[aa,[aa],function(m,y){var I=y[0];return Math.cos(I.evaluate(m))}],tan:[aa,[aa],function(m,y){var I=y[0];return Math.tan(I.evaluate(m))}],asin:[aa,[aa],function(m,y){var I=y[0];return Math.asin(I.evaluate(m))}],acos:[aa,[aa],function(m,y){var I=y[0];return Math.acos(I.evaluate(m))}],atan:[aa,[aa],function(m,y){var I=y[0];return Math.atan(I.evaluate(m))}],min:[aa,Ts(aa),function(m,y){return Math.min.apply(Math,y.map(function(I){return I.evaluate(m)}))}],max:[aa,Ts(aa),function(m,y){return Math.max.apply(Math,y.map(function(I){return I.evaluate(m)}))}],abs:[aa,[aa],function(m,y){var I=y[0];return Math.abs(I.evaluate(m))}],round:[aa,[aa],function(m,y){var I=y[0],U=I.evaluate(m);return U<0?-Math.round(-U):Math.round(U)}],floor:[aa,[aa],function(m,y){var I=y[0];return Math.floor(I.evaluate(m))}],ceil:[aa,[aa],function(m,y){var I=y[0];return Math.ceil(I.evaluate(m))}],"filter-==":[qo,[Oo,Do],function(m,y){var I=y[0],U=y[1];return m.properties()[I.value]===U.value}],"filter-id-==":[qo,[Do],function(m,y){var I=y[0];return m.id()===I.value}],"filter-type-==":[qo,[Oo],function(m,y){var I=y[0];return m.geometryType()===I.value}],"filter-<":[qo,[Oo,Do],function(m,y){var I=y[0],U=y[1],$=m.properties()[I.value],ae=U.value;return typeof $==typeof ae&&$":[qo,[Oo,Do],function(m,y){var I=y[0],U=y[1],$=m.properties()[I.value],ae=U.value;return typeof $==typeof ae&&$>ae}],"filter-id->":[qo,[Do],function(m,y){var I=y[0],U=m.id(),$=I.value;return typeof U==typeof $&&U>$}],"filter-<=":[qo,[Oo,Do],function(m,y){var I=y[0],U=y[1],$=m.properties()[I.value],ae=U.value;return typeof $==typeof ae&&$<=ae}],"filter-id-<=":[qo,[Do],function(m,y){var I=y[0],U=m.id(),$=I.value;return typeof U==typeof $&&U<=$}],"filter->=":[qo,[Oo,Do],function(m,y){var I=y[0],U=y[1],$=m.properties()[I.value],ae=U.value;return typeof $==typeof ae&&$>=ae}],"filter-id->=":[qo,[Do],function(m,y){var I=y[0],U=m.id(),$=I.value;return typeof U==typeof $&&U>=$}],"filter-has":[qo,[Do],function(m,y){var I=y[0];return I.value in m.properties()}],"filter-has-id":[qo,[],function(m){return m.id()!==null&&m.id()!==void 0}],"filter-type-in":[qo,[Kl(Oo)],function(m,y){var I=y[0];return I.value.indexOf(m.geometryType())>=0}],"filter-id-in":[qo,[Kl(Do)],function(m,y){var I=y[0];return I.value.indexOf(m.id())>=0}],"filter-in-small":[qo,[Oo,Kl(Do)],function(m,y){var I=y[0],U=y[1];return U.value.indexOf(m.properties()[I.value])>=0}],"filter-in-large":[qo,[Oo,Kl(Do)],function(m,y){var I=y[0],U=y[1];return os(m.properties()[I.value],U.value,0,U.value.length-1)}],all:{type:qo,overloads:[[[qo,qo],function(m,y){var I=y[0],U=y[1];return I.evaluate(m)&&U.evaluate(m)}],[Ts(qo),function(m,y){for(var I=0,U=y;I-1}function va(m){return!!m.expression&&m.expression.interpolated}function no(m){return m instanceof Number?"number":m instanceof String?"string":m instanceof Boolean?"boolean":Array.isArray(m)?"array":m===null?"null":typeof m}function _s(m){return typeof m=="object"&&m!==null&&!Array.isArray(m)}function is(m){return m}function $l(m,y){var I=y.type==="color",U=m.stops&&typeof m.stops[0][0]=="object",$=U||m.property!==void 0,ae=U||!$,he=m.type||(va(y)?"exponential":"interval");if(I&&(m=zl({},m),m.stops&&(m.stops=m.stops.map(function(ha){return[ha[0],fs.parse(ha[1])]})),m.default?m.default=fs.parse(m.default):m.default=fs.parse(y.default)),m.colorSpace&&m.colorSpace!=="rgb"&&!Xf[m.colorSpace])throw new Error("Unknown color space: "+m.colorSpace);var Oe,rt,gt;if(he==="exponential")Oe=gu;else if(he==="interval")Oe=Nc;else if(he==="categorical"){Oe=Yu,rt=Object.create(null);for(var Mt=0,or=m.stops;Mt=m.stops[U-1][0])return m.stops[U-1][1];var $=du(m.stops.map(function(ae){return ae[0]}),I);return m.stops[$][1]}function gu(m,y,I){var U=m.base!==void 0?m.base:1;if(no(I)!=="number")return ku(m.default,y.default);var $=m.stops.length;if($===1||I<=m.stops[0][0])return m.stops[0][1];if(I>=m.stops[$-1][0])return m.stops[$-1][1];var ae=du(m.stops.map(function(or){return or[0]}),I),he=xu(I,U,m.stops[ae][0],m.stops[ae+1][0]),Oe=m.stops[ae][1],rt=m.stops[ae+1][1],gt=zu[y.type]||is;if(m.colorSpace&&m.colorSpace!=="rgb"){var Mt=Xf[m.colorSpace];gt=function(or,_r){return Mt.reverse(Mt.interpolate(Mt.forward(or),Mt.forward(_r),he))}}return typeof Oe.evaluate=="function"?{evaluate:function(){for(var _r=[],vr=arguments.length;vr--;)_r[vr]=arguments[vr];var Fr=Oe.evaluate.apply(void 0,_r),ai=rt.evaluate.apply(void 0,_r);if(!(Fr===void 0||ai===void 0))return gt(Fr,ai,he)}}:gt(Oe,rt,he)}function Uc(m,y,I){return y.type==="color"?I=fs.parse(I):y.type==="formatted"?I=Jl.fromString(I.toString()):y.type==="resolvedImage"?I=hl.fromString(I.toString()):no(I)!==y.type&&(y.type!=="enum"||!y.values[I])&&(I=void 0),ku(I,m.default,y.default)}function xu(m,y,I,U){var $=U-I,ae=m-I;return $===0?0:y===1?ae/$:(Math.pow(y,ae)-1)/(Math.pow(y,$)-1)}var Ac=function(y,I){this.expression=y,this._warningHistory={},this._evaluator=new Yo,this._defaultValue=I?ee(I):null,this._enumValues=I&&I.type==="enum"?I.values:null};Ac.prototype.evaluateWithoutErrorHandling=function(y,I,U,$,ae,he){return this._evaluator.globals=y,this._evaluator.feature=I,this._evaluator.featureState=U,this._evaluator.canonical=$,this._evaluator.availableImages=ae||null,this._evaluator.formattedSection=he,this.expression.evaluate(this._evaluator)},Ac.prototype.evaluate=function(y,I,U,$,ae,he){this._evaluator.globals=y,this._evaluator.feature=I||null,this._evaluator.featureState=U||null,this._evaluator.canonical=$,this._evaluator.availableImages=ae||null,this._evaluator.formattedSection=he||null;try{var Oe=this.expression.evaluate(this._evaluator);if(Oe==null||typeof Oe=="number"&&Oe!==Oe)return this._defaultValue;if(this._enumValues&&!(Oe in this._enumValues))throw new gs("Expected value to be one of "+Object.keys(this._enumValues).map(function(rt){return JSON.stringify(rt)}).join(", ")+", but found "+JSON.stringify(Oe)+" instead.");return Oe}catch(rt){return this._warningHistory[rt.message]||(this._warningHistory[rt.message]=!0,typeof console!="undefined"&&console.warn(rt.message)),this._defaultValue}};function Ua(m){return Array.isArray(m)&&m.length>0&&typeof m[0]=="string"&&m[0]in Ka}function oo(m,y){var I=new ks(Ka,[],y?Q(y):void 0),U=I.parse(m,void 0,void 0,void 0,y&&y.type==="string"?{typeAnnotation:"coerce"}:void 0);return U?Ho(new Ac(U,y)):yl(I.errors)}var Vc=function(y,I){this.kind=y,this._styleExpression=I,this.isStateDependent=y!=="constant"&&!Ws(I.expression)};Vc.prototype.evaluateWithoutErrorHandling=function(y,I,U,$,ae,he){return this._styleExpression.evaluateWithoutErrorHandling(y,I,U,$,ae,he)},Vc.prototype.evaluate=function(y,I,U,$,ae,he){return this._styleExpression.evaluate(y,I,U,$,ae,he)};var hc=function(y,I,U,$){this.kind=y,this.zoomStops=U,this._styleExpression=I,this.isStateDependent=y!=="camera"&&!Ws(I.expression),this.interpolationType=$};hc.prototype.evaluateWithoutErrorHandling=function(y,I,U,$,ae,he){return this._styleExpression.evaluateWithoutErrorHandling(y,I,U,$,ae,he)},hc.prototype.evaluate=function(y,I,U,$,ae,he){return this._styleExpression.evaluate(y,I,U,$,ae,he)},hc.prototype.interpolationFactor=function(y,I,U){return this.interpolationType?Wl.interpolationFactor(this.interpolationType,y,I,U):0};function Ku(m,y){if(m=oo(m,y),m.result==="error")return m;var I=m.value.expression,U=ih(I);if(!U&&!Xs(y))return yl([new Us("","data expressions not supported")]);var $=Eu(I,["zoom"]);if(!$&&!Ps(y))return yl([new Us("","zoom expressions not supported")]);var ae=B(I);if(!ae&&!$)return yl([new Us("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')]);if(ae instanceof Us)return yl([ae]);if(ae instanceof Wl&&!va(y))return yl([new Us("",'"interpolate" expressions cannot be used with this property')]);if(!ae)return Ho(U?new Vc("constant",m.value):new Vc("source",m.value));var he=ae instanceof Wl?ae.interpolation:void 0;return Ho(U?new hc("camera",m.value,ae.labels,he):new hc("composite",m.value,ae.labels,he))}var ue=function(y,I){this._parameters=y,this._specification=I,zl(this,$l(this._parameters,this._specification))};ue.deserialize=function(y){return new ue(y._parameters,y._specification)},ue.serialize=function(y){return{_parameters:y._parameters,_specification:y._specification}};function w(m,y){if(_s(m))return new ue(m,y);if(Ua(m)){var I=Ku(m,y);if(I.result==="error")throw new Error(I.value.map(function($){return $.key+": "+$.message}).join(", "));return I.value}else{var U=m;return typeof m=="string"&&y.type==="color"&&(U=fs.parse(m)),{kind:"constant",evaluate:function(){return U}}}}function B(m){var y=null;if(m instanceof Oc)y=B(m.result);else if(m instanceof Zu)for(var I=0,U=m.args;IU.maximum?[new _a(y,I,I+" is greater than the maximum value "+U.maximum)]:[]}function ot(m){var y=m.valueSpec,I=xo(m.value.type),U,$={},ae,he,Oe=I!=="categorical"&&m.value.property===void 0,rt=!Oe,gt=no(m.value.stops)==="array"&&no(m.value.stops[0])==="array"&&no(m.value.stops[0][0])==="object",Mt=le({key:m.key,value:m.value,valueSpec:m.styleSpec.function,style:m.style,styleSpec:m.styleSpec,objectElementValidators:{stops:or,default:Fr}});return I==="identity"&&Oe&&Mt.push(new _a(m.key,m.value,'missing required property "property"')),I!=="identity"&&!m.value.stops&&Mt.push(new _a(m.key,m.value,'missing required property "stops"')),I==="exponential"&&m.valueSpec.expression&&!va(m.valueSpec)&&Mt.push(new _a(m.key,m.value,"exponential functions not supported")),m.styleSpec.$version>=8&&(rt&&!Xs(m.valueSpec)?Mt.push(new _a(m.key,m.value,"property functions not supported")):Oe&&!Ps(m.valueSpec)&&Mt.push(new _a(m.key,m.value,"zoom functions not supported"))),(I==="categorical"||gt)&&m.value.property===void 0&&Mt.push(new _a(m.key,m.value,'"property" property is required')),Mt;function or(ai){if(I==="identity")return[new _a(ai.key,ai.value,'identity function may not have a "stops" property')];var Gi=[],Ti=ai.value;return Gi=Gi.concat(qe({key:ai.key,value:Ti,valueSpec:ai.valueSpec,style:ai.style,styleSpec:ai.styleSpec,arrayElementValidator:_r})),no(Ti)==="array"&&Ti.length===0&&Gi.push(new _a(ai.key,Ti,"array must have at least one stop")),Gi}function _r(ai){var Gi=[],Ti=ai.value,bn=ai.key;if(no(Ti)!=="array")return[new _a(bn,Ti,"array expected, "+no(Ti)+" found")];if(Ti.length!==2)return[new _a(bn,Ti,"array length 2 expected, length "+Ti.length+" found")];if(gt){if(no(Ti[0])!=="object")return[new _a(bn,Ti,"object expected, "+no(Ti[0])+" found")];if(Ti[0].zoom===void 0)return[new _a(bn,Ti,"object stop key must have zoom")];if(Ti[0].value===void 0)return[new _a(bn,Ti,"object stop key must have value")];if(he&&he>xo(Ti[0].zoom))return[new _a(bn,Ti[0].zoom,"stop zoom values must appear in ascending order")];xo(Ti[0].zoom)!==he&&(he=xo(Ti[0].zoom),ae=void 0,$={}),Gi=Gi.concat(le({key:bn+"[0]",value:Ti[0],valueSpec:{zoom:{}},style:ai.style,styleSpec:ai.styleSpec,objectElementValidators:{zoom:Xe,value:vr}}))}else Gi=Gi.concat(vr({key:bn+"[0]",value:Ti[0],valueSpec:{},style:ai.style,styleSpec:ai.styleSpec},Ti));return Ua(Yl(Ti[1]))?Gi.concat([new _a(bn+"[1]",Ti[1],"expressions are not allowed in function stops.")]):Gi.concat(Qa({key:bn+"[1]",value:Ti[1],valueSpec:y,style:ai.style,styleSpec:ai.styleSpec}))}function vr(ai,Gi){var Ti=no(ai.value),bn=xo(ai.value),rn=ai.value!==null?ai.value:Gi;if(!U)U=Ti;else if(Ti!==U)return[new _a(ai.key,rn,Ti+" stop domain type must match previous stop domain type "+U)];if(Ti!=="number"&&Ti!=="string"&&Ti!=="boolean")return[new _a(ai.key,rn,"stop domain value must be a number, string, or boolean")];if(Ti!=="number"&&I!=="categorical"){var xn="number expected, "+Ti+" found";return Xs(y)&&I===void 0&&(xn+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new _a(ai.key,rn,xn)]}return I==="categorical"&&Ti==="number"&&(!isFinite(bn)||Math.floor(bn)!==bn)?[new _a(ai.key,rn,"integer expected, found "+bn)]:I!=="categorical"&&Ti==="number"&&ae!==void 0&&bn=2&&m[1]!=="$id"&&m[1]!=="$type";case"in":return m.length>=3&&(typeof m[1]!="string"||Array.isArray(m[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return m.length!==3||Array.isArray(m[1])||Array.isArray(m[2]);case"any":case"all":for(var y=0,I=m.slice(1);yy?1:0}function Be(m){if(!Array.isArray(m))return!1;if(m[0]==="within")return!0;for(var y=1;y"||y==="<="||y===">="?We(m[1],m[2],y):y==="any"?it(m.slice(1)):y==="all"?["all"].concat(m.slice(1).map(tt)):y==="none"?["all"].concat(m.slice(1).map(tt).map(rr)):y==="in"?Dt(m[1],m.slice(2)):y==="!in"?rr(Dt(m[1],m.slice(2))):y==="has"?Ht(m[1]):y==="!has"?rr(Ht(m[1])):y==="within"?m:!0;return I}function We(m,y,I){switch(m){case"$type":return["filter-type-"+I,y];case"$id":return["filter-id-"+I,y];default:return["filter-"+I,m,y]}}function it(m){return["any"].concat(m.map(tt))}function Dt(m,y){if(y.length===0)return!1;switch(m){case"$type":return["filter-type-in",["literal",y]];case"$id":return["filter-id-in",["literal",y]];default:return y.length>200&&!y.some(function(I){return typeof I!=typeof y[0]})?["filter-in-large",m,["literal",y.sort(Re)]]:["filter-in-small",m,["literal",y]]}}function Ht(m){switch(m){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",m]}}function rr(m){return["!",m]}function dr(m){return Pr(Yl(m.value))?Tt(zl({},m,{expressionContext:"filter",valueSpec:{value:"boolean"}})):Sr(m)}function Sr(m){var y=m.value,I=m.key;if(no(y)!=="array")return[new _a(I,y,"array expected, "+no(y)+" found")];var U=m.styleSpec,$,ae=[];if(y.length<1)return[new _a(I,y,"filter array must have at least 1 element")];switch(ae=ae.concat(xr({key:I+"[0]",value:y[0],valueSpec:U.filter_operator,style:m.style,styleSpec:m.styleSpec})),xo(y[0])){case"<":case"<=":case">":case">=":y.length>=2&&xo(y[1])==="$type"&&ae.push(new _a(I,y,'"$type" cannot be use with operator "'+y[0]+'"'));case"==":case"!=":y.length!==3&&ae.push(new _a(I,y,'filter array for operator "'+y[0]+'" must have 3 elements'));case"in":case"!in":y.length>=2&&($=no(y[1]),$!=="string"&&ae.push(new _a(I+"[1]",y[1],"string expected, "+$+" found")));for(var he=2;he=Mt[vr+0]&&U>=Mt[vr+1])?(he[_r]=!0,ae.push(gt[_r])):he[_r]=!1}}},Ql.prototype._forEachCell=function(m,y,I,U,$,ae,he,Oe){for(var rt=this._convertToCellCoord(m),gt=this._convertToCellCoord(y),Mt=this._convertToCellCoord(I),or=this._convertToCellCoord(U),_r=rt;_r<=Mt;_r++)for(var vr=gt;vr<=or;vr++){var Fr=this.d*vr+_r;if(!(Oe&&!Oe(this._convertFromCellCoord(_r),this._convertFromCellCoord(vr),this._convertFromCellCoord(_r+1),this._convertFromCellCoord(vr+1)))&&$.call(this,m,y,I,U,Fr,ae,he,Oe))return}},Ql.prototype._convertFromCellCoord=function(m){return(m-this.padding)/this.scale},Ql.prototype._convertToCellCoord=function(m){return Math.max(0,Math.min(this.d-1,Math.floor(m*this.scale)+this.padding))},Ql.prototype.toArrayBuffer=function(){if(this.arrayBuffer)return this.arrayBuffer;for(var m=this.cells,y=$s+this.cells.length+1+1,I=0,U=0;U=0)){var or=m[Mt];gt[Mt]=Al[rt].shallow.indexOf(Mt)>=0?or:He(or,y)}m instanceof Error&&(gt.message=m.message)}if(gt.$name)throw new Error("$name property is reserved for worker serialization logic.");return rt!=="Object"&&(gt.$name=rt),gt}throw new Error("can't serialize object of type "+typeof m)}function Ye(m){if(m==null||typeof m=="boolean"||typeof m=="number"||typeof m=="string"||m instanceof Boolean||m instanceof Number||m instanceof String||m instanceof Date||m instanceof RegExp||Te(m)||Ne(m)||ArrayBuffer.isView(m)||m instanceof dc)return m;if(Array.isArray(m))return m.map(Ye);if(typeof m=="object"){var y=m.$name||"Object",I=Al[y],U=I.klass;if(!U)throw new Error("can't deserialize unregistered class "+y);if(U.deserialize)return U.deserialize(m);for(var $=Object.create(U.prototype),ae=0,he=Object.keys(m);ae=0?rt:Ye(rt)}}return $}throw new Error("can't deserialize object of type "+typeof m)}var Ct=function(){this.first=!0};Ct.prototype.update=function(y,I){var U=Math.floor(y);return this.first?(this.first=!1,this.lastIntegerZoom=U,this.lastIntegerZoomTime=0,this.lastZoom=y,this.lastFloorZoom=U,!0):(this.lastFloorZoom>U?(this.lastIntegerZoom=U+1,this.lastIntegerZoomTime=I):this.lastFloorZoom=128&&m<=255},Arabic:function(m){return m>=1536&&m<=1791},"Arabic Supplement":function(m){return m>=1872&&m<=1919},"Arabic Extended-A":function(m){return m>=2208&&m<=2303},"Hangul Jamo":function(m){return m>=4352&&m<=4607},"Unified Canadian Aboriginal Syllabics":function(m){return m>=5120&&m<=5759},Khmer:function(m){return m>=6016&&m<=6143},"Unified Canadian Aboriginal Syllabics Extended":function(m){return m>=6320&&m<=6399},"General Punctuation":function(m){return m>=8192&&m<=8303},"Letterlike Symbols":function(m){return m>=8448&&m<=8527},"Number Forms":function(m){return m>=8528&&m<=8591},"Miscellaneous Technical":function(m){return m>=8960&&m<=9215},"Control Pictures":function(m){return m>=9216&&m<=9279},"Optical Character Recognition":function(m){return m>=9280&&m<=9311},"Enclosed Alphanumerics":function(m){return m>=9312&&m<=9471},"Geometric Shapes":function(m){return m>=9632&&m<=9727},"Miscellaneous Symbols":function(m){return m>=9728&&m<=9983},"Miscellaneous Symbols and Arrows":function(m){return m>=11008&&m<=11263},"CJK Radicals Supplement":function(m){return m>=11904&&m<=12031},"Kangxi Radicals":function(m){return m>=12032&&m<=12255},"Ideographic Description Characters":function(m){return m>=12272&&m<=12287},"CJK Symbols and Punctuation":function(m){return m>=12288&&m<=12351},Hiragana:function(m){return m>=12352&&m<=12447},Katakana:function(m){return m>=12448&&m<=12543},Bopomofo:function(m){return m>=12544&&m<=12591},"Hangul Compatibility Jamo":function(m){return m>=12592&&m<=12687},Kanbun:function(m){return m>=12688&&m<=12703},"Bopomofo Extended":function(m){return m>=12704&&m<=12735},"CJK Strokes":function(m){return m>=12736&&m<=12783},"Katakana Phonetic Extensions":function(m){return m>=12784&&m<=12799},"Enclosed CJK Letters and Months":function(m){return m>=12800&&m<=13055},"CJK Compatibility":function(m){return m>=13056&&m<=13311},"CJK Unified Ideographs Extension A":function(m){return m>=13312&&m<=19903},"Yijing Hexagram Symbols":function(m){return m>=19904&&m<=19967},"CJK Unified Ideographs":function(m){return m>=19968&&m<=40959},"Yi Syllables":function(m){return m>=40960&&m<=42127},"Yi Radicals":function(m){return m>=42128&&m<=42191},"Hangul Jamo Extended-A":function(m){return m>=43360&&m<=43391},"Hangul Syllables":function(m){return m>=44032&&m<=55215},"Hangul Jamo Extended-B":function(m){return m>=55216&&m<=55295},"Private Use Area":function(m){return m>=57344&&m<=63743},"CJK Compatibility Ideographs":function(m){return m>=63744&&m<=64255},"Arabic Presentation Forms-A":function(m){return m>=64336&&m<=65023},"Vertical Forms":function(m){return m>=65040&&m<=65055},"CJK Compatibility Forms":function(m){return m>=65072&&m<=65103},"Small Form Variants":function(m){return m>=65104&&m<=65135},"Arabic Presentation Forms-B":function(m){return m>=65136&&m<=65279},"Halfwidth and Fullwidth Forms":function(m){return m>=65280&&m<=65519}};function jt(m){for(var y=0,I=m;y=65097&&m<=65103)||nt["CJK Compatibility Ideographs"](m)||nt["CJK Compatibility"](m)||nt["CJK Radicals Supplement"](m)||nt["CJK Strokes"](m)||nt["CJK Symbols and Punctuation"](m)&&!(m>=12296&&m<=12305)&&!(m>=12308&&m<=12319)&&m!==12336||nt["CJK Unified Ideographs Extension A"](m)||nt["CJK Unified Ideographs"](m)||nt["Enclosed CJK Letters and Months"](m)||nt["Hangul Compatibility Jamo"](m)||nt["Hangul Jamo Extended-A"](m)||nt["Hangul Jamo Extended-B"](m)||nt["Hangul Jamo"](m)||nt["Hangul Syllables"](m)||nt.Hiragana(m)||nt["Ideographic Description Characters"](m)||nt.Kanbun(m)||nt["Kangxi Radicals"](m)||nt["Katakana Phonetic Extensions"](m)||nt.Katakana(m)&&m!==12540||nt["Halfwidth and Fullwidth Forms"](m)&&m!==65288&&m!==65289&&m!==65293&&!(m>=65306&&m<=65310)&&m!==65339&&m!==65341&&m!==65343&&!(m>=65371&&m<=65503)&&m!==65507&&!(m>=65512&&m<=65519)||nt["Small Form Variants"](m)&&!(m>=65112&&m<=65118)&&!(m>=65123&&m<=65126)||nt["Unified Canadian Aboriginal Syllabics"](m)||nt["Unified Canadian Aboriginal Syllabics Extended"](m)||nt["Vertical Forms"](m)||nt["Yijing Hexagram Symbols"](m)||nt["Yi Syllables"](m)||nt["Yi Radicals"](m))}function _i(m){return!!(nt["Latin-1 Supplement"](m)&&(m===167||m===169||m===174||m===177||m===188||m===189||m===190||m===215||m===247)||nt["General Punctuation"](m)&&(m===8214||m===8224||m===8225||m===8240||m===8241||m===8251||m===8252||m===8258||m===8263||m===8264||m===8265||m===8273)||nt["Letterlike Symbols"](m)||nt["Number Forms"](m)||nt["Miscellaneous Technical"](m)&&(m>=8960&&m<=8967||m>=8972&&m<=8991||m>=8996&&m<=9e3||m===9003||m>=9085&&m<=9114||m>=9150&&m<=9165||m===9167||m>=9169&&m<=9179||m>=9186&&m<=9215)||nt["Control Pictures"](m)&&m!==9251||nt["Optical Character Recognition"](m)||nt["Enclosed Alphanumerics"](m)||nt["Geometric Shapes"](m)||nt["Miscellaneous Symbols"](m)&&!(m>=9754&&m<=9759)||nt["Miscellaneous Symbols and Arrows"](m)&&(m>=11026&&m<=11055||m>=11088&&m<=11097||m>=11192&&m<=11243)||nt["CJK Symbols and Punctuation"](m)||nt.Katakana(m)||nt["Private Use Area"](m)||nt["CJK Compatibility Forms"](m)||nt["Small Form Variants"](m)||nt["Halfwidth and Fullwidth Forms"](m)||m===8734||m===8756||m===8757||m>=9984&&m<=10087||m>=10102&&m<=10131||m===65532||m===65533)}function bi(m){return!(qr(m)||_i(m))}function Xr(m){return nt.Arabic(m)||nt["Arabic Supplement"](m)||nt["Arabic Extended-A"](m)||nt["Arabic Presentation Forms-A"](m)||nt["Arabic Presentation Forms-B"](m)}function ni(m){return m>=1424&&m<=2303||nt["Arabic Presentation Forms-A"](m)||nt["Arabic Presentation Forms-B"](m)}function gi(m,y){return!(!y&&ni(m)||m>=2304&&m<=3583||m>=3840&&m<=4255||nt.Khmer(m))}function Pi(m){for(var y=0,I=m;y-1&&(Cn=ti.error),Rn&&Rn(m)};function Ea(){Ia.fire(new Wo("pluginStateChange",{pluginStatus:Cn,pluginURL:Nn}))}var Ia=new Wn,yo=function(){return Cn},Da=function(m){return m({pluginStatus:Cn,pluginURL:Nn}),Ia.on("pluginStateChange",m),m},go=function(m,y,I){if(I===void 0&&(I=!1),Cn===ti.deferred||Cn===ti.loading||Cn===ti.loaded)throw new Error("setRTLTextPlugin cannot be called multiple times.");Nn=ct.resolveURL(m),Cn=ti.deferred,Rn=y,Ea(),I||Rs()},Rs=function(){if(Cn!==ti.deferred||!Nn)throw new Error("rtl-text-plugin cannot be downloaded unless a pluginURL is specified");Cn=ti.loading,Ea(),Nn&&ri({url:Nn},function(m){m?ia(m):(Cn=ti.loaded,Ea())})},Es={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:function(){return Cn===ti.loaded||Es.applyArabicShaping!=null},isLoading:function(){return Cn===ti.loading},setState:function(y){Cn=y.pluginStatus,Nn=y.pluginURL},isParsed:function(){return Es.applyArabicShaping!=null&&Es.processBidirectionalText!=null&&Es.processStyledBidirectionalText!=null},getPluginURL:function(){return Nn}},Zs=function(){!Es.isLoading()&&!Es.isLoaded()&&yo()==="deferred"&&Rs()},Gn=function(y,I){this.zoom=y,I?(this.now=I.now,this.fadeDuration=I.fadeDuration,this.zoomHistory=I.zoomHistory,this.transition=I.transition):(this.now=0,this.fadeDuration=0,this.zoomHistory=new Ct,this.transition={})};Gn.prototype.isSupportedScript=function(y){return Ai(y,Es.isLoaded())},Gn.prototype.crossFadingFactor=function(){return this.fadeDuration===0?1:Math.min((this.now-this.zoomHistory.lastIntegerZoomTime)/this.fadeDuration,1)},Gn.prototype.getCrossfadeParameters=function(){var y=this.zoom,I=y-Math.floor(y),U=this.crossFadingFactor();return y>this.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:I+(1-I)*U}:{fromScale:.5,toScale:1,t:1-(1-U)*I}};var Ha=function(y,I){this.property=y,this.value=I,this.expression=w(I===void 0?y.specification.default:I,y.specification)};Ha.prototype.isDataDriven=function(){return this.expression.kind==="source"||this.expression.kind==="composite"},Ha.prototype.possiblyEvaluate=function(y,I,U){return this.property.possiblyEvaluate(this,y,I,U)};var Fo=function(y){this.property=y,this.value=new Ha(y,void 0)};Fo.prototype.transitioned=function(y,I){return new Qs(this.property,this.value,I,_({},y.transition,this.transition),y.now)},Fo.prototype.untransitioned=function(){return new Qs(this.property,this.value,null,{},0)};var Uo=function(y){this._properties=y,this._values=Object.create(y.defaultTransitionablePropertyValues)};Uo.prototype.getValue=function(y){return H(this._values[y].value.value)},Uo.prototype.setValue=function(y,I){this._values.hasOwnProperty(y)||(this._values[y]=new Fo(this._values[y].property)),this._values[y].value=new Ha(this._values[y].property,I===null?void 0:H(I))},Uo.prototype.getTransition=function(y){return H(this._values[y].transition)},Uo.prototype.setTransition=function(y,I){this._values.hasOwnProperty(y)||(this._values[y]=new Fo(this._values[y].property)),this._values[y].transition=H(I)||void 0},Uo.prototype.serialize=function(){for(var y={},I=0,U=Object.keys(this._values);Ithis.end)return this.prior=null,ae;if(this.value.isDataDriven())return this.prior=null,ae;if($he.zoomHistory.lastIntegerZoom?{from:U,to:$}:{from:ae,to:$}},y.prototype.interpolate=function(U){return U},y}(xt),Ir=function(y){this.specification=y};Ir.prototype.possiblyEvaluate=function(y,I,U,$){if(y.value!==void 0)if(y.expression.kind==="constant"){var ae=y.expression.evaluate(I,null,{},U,$);return this._calculate(ae,ae,ae,I)}else return this._calculate(y.expression.evaluate(new Gn(Math.floor(I.zoom-1),I)),y.expression.evaluate(new Gn(Math.floor(I.zoom),I)),y.expression.evaluate(new Gn(Math.floor(I.zoom+1),I)),I)},Ir.prototype._calculate=function(y,I,U,$){var ae=$.zoom;return ae>$.zoomHistory.lastIntegerZoom?{from:y,to:I}:{from:U,to:I}},Ir.prototype.interpolate=function(y){return y};var Hr=function(y){this.specification=y};Hr.prototype.possiblyEvaluate=function(y,I,U,$){return!!y.expression.evaluate(I,null,{},U,$)},Hr.prototype.interpolate=function(){return!1};var Br=function(y){this.properties=y,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[];for(var I in y){var U=y[I];U.specification.overridable&&this.overridableProperties.push(I);var $=this.defaultPropertyValues[I]=new Ha(U,void 0),ae=this.defaultTransitionablePropertyValues[I]=new Fo(U);this.defaultTransitioningPropertyValues[I]=ae.untransitioned(),this.defaultPossiblyEvaluatedValues[I]=$.possiblyEvaluate({})}};X("DataDrivenProperty",xt),X("DataConstantProperty",Ee),X("CrossFadedDataDrivenProperty",zt),X("CrossFadedProperty",Ir),X("ColorRampProperty",Hr);var Vr="-transition",mi=function(m){function y(I,U){if(m.call(this),this.id=I.id,this.type=I.type,this._featureFilter={filter:function(){return!0},needGeometry:!1},I.type!=="custom"&&(I=I,this.metadata=I.metadata,this.minzoom=I.minzoom,this.maxzoom=I.maxzoom,I.type!=="background"&&(this.source=I.source,this.sourceLayer=I["source-layer"],this.filter=I.filter),U.layout&&(this._unevaluatedLayout=new bu(U.layout)),U.paint)){this._transitionablePaint=new Uo(U.paint);for(var $ in I.paint)this.setPaintProperty($,I.paint[$],{validate:!1});for(var ae in I.layout)this.setLayoutProperty(ae,I.layout[ae],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new Sc(U.paint)}}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype.getCrossfadeParameters=function(){return this._crossfadeParameters},y.prototype.getLayoutProperty=function(U){return U==="visibility"?this.visibility:this._unevaluatedLayout.getValue(U)},y.prototype.setLayoutProperty=function(U,$,ae){if(ae===void 0&&(ae={}),$!=null){var he="layers."+this.id+".layout."+U;if(this._validate(Nl,he,U,$,ae))return}if(U==="visibility"){this.visibility=$;return}this._unevaluatedLayout.setValue(U,$)},y.prototype.getPaintProperty=function(U){return V(U,Vr)?this._transitionablePaint.getTransition(U.slice(0,-Vr.length)):this._transitionablePaint.getValue(U)},y.prototype.setPaintProperty=function(U,$,ae){if(ae===void 0&&(ae={}),$!=null){var he="layers."+this.id+".paint."+U;if(this._validate(dl,he,U,$,ae))return!1}if(V(U,Vr))return this._transitionablePaint.setTransition(U.slice(0,-Vr.length),$||void 0),!1;var Oe=this._transitionablePaint._values[U],rt=Oe.property.specification["property-type"]==="cross-faded-data-driven",gt=Oe.value.isDataDriven(),Mt=Oe.value;this._transitionablePaint.setValue(U,$),this._handleSpecialPaintPropertyUpdate(U);var or=this._transitionablePaint._values[U].value,_r=or.isDataDriven();return _r||gt||rt||this._handleOverridablePaintPropertyUpdate(U,Mt,or)},y.prototype._handleSpecialPaintPropertyUpdate=function(U){},y.prototype._handleOverridablePaintPropertyUpdate=function(U,$,ae){return!1},y.prototype.isHidden=function(U){return this.minzoom&&U=this.maxzoom?!0:this.visibility==="none"},y.prototype.updateTransitions=function(U){this._transitioningPaint=this._transitionablePaint.transitioned(U,this._transitioningPaint)},y.prototype.hasTransition=function(){return this._transitioningPaint.hasTransition()},y.prototype.recalculate=function(U,$){U.getCrossfadeParameters&&(this._crossfadeParameters=U.getCrossfadeParameters()),this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(U,void 0,$)),this.paint=this._transitioningPaint.possiblyEvaluate(U,void 0,$)},y.prototype.serialize=function(){var U={id:this.id,type:this.type,source:this.source,"source-layer":this.sourceLayer,metadata:this.metadata,minzoom:this.minzoom,maxzoom:this.maxzoom,filter:this.filter,layout:this._unevaluatedLayout&&this._unevaluatedLayout.serialize(),paint:this._transitionablePaint&&this._transitionablePaint.serialize()};return this.visibility&&(U.layout=U.layout||{},U.layout.visibility=this.visibility),Z(U,function($,ae){return $!==void 0&&!(ae==="layout"&&!Object.keys($).length)&&!(ae==="paint"&&!Object.keys($).length)})},y.prototype._validate=function(U,$,ae,he,Oe){return Oe===void 0&&(Oe={}),Oe&&Oe.validate===!1?!1:Lu(this,U.call(wo,{key:$,layerType:this.type,objectKey:ae,value:he,styleSpec:Fn,style:{glyphs:!0,sprite:!0}}))},y.prototype.is3D=function(){return!1},y.prototype.isTileClipped=function(){return!1},y.prototype.hasOffscreenPass=function(){return!1},y.prototype.resize=function(){},y.prototype.isStateDependent=function(){for(var U in this.paint._values){var $=this.paint.get(U);if(!(!($ instanceof vl)||!Xs($.property.specification))&&($.value.kind==="source"||$.value.kind==="composite")&&$.value.isStateDependent)return!0}return!1},y}(Wn),Ni={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array},Oi=function(y,I){this._structArray=y,this._pos1=I*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8},Mi=128,Hn=5,Qi=function(){this.isTransferred=!1,this.capacity=-1,this.resize(0)};Qi.serialize=function(y,I){return y._trim(),I&&(y.isTransferred=!0,I.push(y.arrayBuffer)),{length:y.length,arrayBuffer:y.arrayBuffer}},Qi.deserialize=function(y){var I=Object.create(this.prototype);return I.arrayBuffer=y.arrayBuffer,I.length=y.length,I.capacity=y.arrayBuffer.byteLength/I.bytesPerElement,I._refreshViews(),I},Qi.prototype._trim=function(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())},Qi.prototype.clear=function(){this.length=0},Qi.prototype.resize=function(y){this.reserve(y),this.length=y},Qi.prototype.reserve=function(y){if(y>this.capacity){this.capacity=Math.max(y,Math.floor(this.capacity*Hn),Mi),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);var I=this.uint8;this._refreshViews(),I&&this.uint8.set(I)}},Qi.prototype._refreshViews=function(){throw new Error("_refreshViews() must be implemented by each concrete StructArray layout")};function ji(m,y){y===void 0&&(y=1);var I=0,U=0,$=m.map(function(he){var Oe=si(he.type),rt=I=Mr(I,Math.max(y,Oe)),gt=he.components||1;return U=Math.max(U,Oe),I+=Oe*gt,{name:he.name,type:he.type,components:gt,offset:rt}}),ae=Mr(I,Math.max(U,y));return{members:$,size:ae,alignment:y}}function si(m){return Ni[m].BYTES_PER_ELEMENT}function Mr(m,y){return Math.ceil(m/y)*y}var Yr=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(U,$){var ae=this.length;return this.resize(ae+1),this.emplace(ae,U,$)},y.prototype.emplace=function(U,$,ae){var he=U*2;return this.int16[he+0]=$,this.int16[he+1]=ae,U},y}(Qi);Yr.prototype.bytesPerElement=4,X("StructArrayLayout2i4",Yr);var xi=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(U,$,ae,he){var Oe=this.length;return this.resize(Oe+1),this.emplace(Oe,U,$,ae,he)},y.prototype.emplace=function(U,$,ae,he,Oe){var rt=U*4;return this.int16[rt+0]=$,this.int16[rt+1]=ae,this.int16[rt+2]=he,this.int16[rt+3]=Oe,U},y}(Qi);xi.prototype.bytesPerElement=8,X("StructArrayLayout4i8",xi);var Ii=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(U,$,ae,he,Oe,rt){var gt=this.length;return this.resize(gt+1),this.emplace(gt,U,$,ae,he,Oe,rt)},y.prototype.emplace=function(U,$,ae,he,Oe,rt,gt){var Mt=U*6;return this.int16[Mt+0]=$,this.int16[Mt+1]=ae,this.int16[Mt+2]=he,this.int16[Mt+3]=Oe,this.int16[Mt+4]=rt,this.int16[Mt+5]=gt,U},y}(Qi);Ii.prototype.bytesPerElement=12,X("StructArrayLayout2i4i12",Ii);var ci=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(U,$,ae,he,Oe,rt){var gt=this.length;return this.resize(gt+1),this.emplace(gt,U,$,ae,he,Oe,rt)},y.prototype.emplace=function(U,$,ae,he,Oe,rt,gt){var Mt=U*4,or=U*8;return this.int16[Mt+0]=$,this.int16[Mt+1]=ae,this.uint8[or+4]=he,this.uint8[or+5]=Oe,this.uint8[or+6]=rt,this.uint8[or+7]=gt,U},y}(Qi);ci.prototype.bytesPerElement=8,X("StructArrayLayout2i4ub8",ci);var nn=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},y.prototype.emplaceBack=function(U,$){var ae=this.length;return this.resize(ae+1),this.emplace(ae,U,$)},y.prototype.emplace=function(U,$,ae){var he=U*2;return this.float32[he+0]=$,this.float32[he+1]=ae,U},y}(Qi);nn.prototype.bytesPerElement=8,X("StructArrayLayout2f8",nn);var Xi=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(U,$,ae,he,Oe,rt,gt,Mt,or,_r){var vr=this.length;return this.resize(vr+1),this.emplace(vr,U,$,ae,he,Oe,rt,gt,Mt,or,_r)},y.prototype.emplace=function(U,$,ae,he,Oe,rt,gt,Mt,or,_r,vr){var Fr=U*10;return this.uint16[Fr+0]=$,this.uint16[Fr+1]=ae,this.uint16[Fr+2]=he,this.uint16[Fr+3]=Oe,this.uint16[Fr+4]=rt,this.uint16[Fr+5]=gt,this.uint16[Fr+6]=Mt,this.uint16[Fr+7]=or,this.uint16[Fr+8]=_r,this.uint16[Fr+9]=vr,U},y}(Qi);Xi.prototype.bytesPerElement=20,X("StructArrayLayout10ui20",Xi);var qn=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(U,$,ae,he,Oe,rt,gt,Mt,or,_r,vr,Fr){var ai=this.length;return this.resize(ai+1),this.emplace(ai,U,$,ae,he,Oe,rt,gt,Mt,or,_r,vr,Fr)},y.prototype.emplace=function(U,$,ae,he,Oe,rt,gt,Mt,or,_r,vr,Fr,ai){var Gi=U*12;return this.int16[Gi+0]=$,this.int16[Gi+1]=ae,this.int16[Gi+2]=he,this.int16[Gi+3]=Oe,this.uint16[Gi+4]=rt,this.uint16[Gi+5]=gt,this.uint16[Gi+6]=Mt,this.uint16[Gi+7]=or,this.int16[Gi+8]=_r,this.int16[Gi+9]=vr,this.int16[Gi+10]=Fr,this.int16[Gi+11]=ai,U},y}(Qi);qn.prototype.bytesPerElement=24,X("StructArrayLayout4i4ui4i24",qn);var vi=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},y.prototype.emplaceBack=function(U,$,ae){var he=this.length;return this.resize(he+1),this.emplace(he,U,$,ae)},y.prototype.emplace=function(U,$,ae,he){var Oe=U*3;return this.float32[Oe+0]=$,this.float32[Oe+1]=ae,this.float32[Oe+2]=he,U},y}(Qi);vi.prototype.bytesPerElement=12,X("StructArrayLayout3f12",vi);var li=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)},y.prototype.emplaceBack=function(U){var $=this.length;return this.resize($+1),this.emplace($,U)},y.prototype.emplace=function(U,$){var ae=U*1;return this.uint32[ae+0]=$,U},y}(Qi);li.prototype.bytesPerElement=4,X("StructArrayLayout1ul4",li);var mn=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(U,$,ae,he,Oe,rt,gt,Mt,or){var _r=this.length;return this.resize(_r+1),this.emplace(_r,U,$,ae,he,Oe,rt,gt,Mt,or)},y.prototype.emplace=function(U,$,ae,he,Oe,rt,gt,Mt,or,_r){var vr=U*10,Fr=U*5;return this.int16[vr+0]=$,this.int16[vr+1]=ae,this.int16[vr+2]=he,this.int16[vr+3]=Oe,this.int16[vr+4]=rt,this.int16[vr+5]=gt,this.uint32[Fr+3]=Mt,this.uint16[vr+8]=or,this.uint16[vr+9]=_r,U},y}(Qi);mn.prototype.bytesPerElement=20,X("StructArrayLayout6i1ul2ui20",mn);var Ki=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(U,$,ae,he,Oe,rt){var gt=this.length;return this.resize(gt+1),this.emplace(gt,U,$,ae,he,Oe,rt)},y.prototype.emplace=function(U,$,ae,he,Oe,rt,gt){var Mt=U*6;return this.int16[Mt+0]=$,this.int16[Mt+1]=ae,this.int16[Mt+2]=he,this.int16[Mt+3]=Oe,this.int16[Mt+4]=rt,this.int16[Mt+5]=gt,U},y}(Qi);Ki.prototype.bytesPerElement=12,X("StructArrayLayout2i2i2i12",Ki);var Ui=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(U,$,ae,he,Oe){var rt=this.length;return this.resize(rt+1),this.emplace(rt,U,$,ae,he,Oe)},y.prototype.emplace=function(U,$,ae,he,Oe,rt){var gt=U*4,Mt=U*8;return this.float32[gt+0]=$,this.float32[gt+1]=ae,this.float32[gt+2]=he,this.int16[Mt+6]=Oe,this.int16[Mt+7]=rt,U},y}(Qi);Ui.prototype.bytesPerElement=16,X("StructArrayLayout2f1f2i16",Ui);var Bi=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},y.prototype.emplaceBack=function(U,$,ae,he){var Oe=this.length;return this.resize(Oe+1),this.emplace(Oe,U,$,ae,he)},y.prototype.emplace=function(U,$,ae,he,Oe){var rt=U*12,gt=U*3;return this.uint8[rt+0]=$,this.uint8[rt+1]=ae,this.float32[gt+1]=he,this.float32[gt+2]=Oe,U},y}(Qi);Bi.prototype.bytesPerElement=12,X("StructArrayLayout2ub2f12",Bi);var vn=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(U,$,ae){var he=this.length;return this.resize(he+1),this.emplace(he,U,$,ae)},y.prototype.emplace=function(U,$,ae,he){var Oe=U*3;return this.uint16[Oe+0]=$,this.uint16[Oe+1]=ae,this.uint16[Oe+2]=he,U},y}(Qi);vn.prototype.bytesPerElement=6,X("StructArrayLayout3ui6",vn);var Un=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},y.prototype.emplaceBack=function(U,$,ae,he,Oe,rt,gt,Mt,or,_r,vr,Fr,ai,Gi,Ti,bn,rn){var xn=this.length;return this.resize(xn+1),this.emplace(xn,U,$,ae,he,Oe,rt,gt,Mt,or,_r,vr,Fr,ai,Gi,Ti,bn,rn)},y.prototype.emplace=function(U,$,ae,he,Oe,rt,gt,Mt,or,_r,vr,Fr,ai,Gi,Ti,bn,rn,xn){var Dn=U*24,Zn=U*12,ga=U*48;return this.int16[Dn+0]=$,this.int16[Dn+1]=ae,this.uint16[Dn+2]=he,this.uint16[Dn+3]=Oe,this.uint32[Zn+2]=rt,this.uint32[Zn+3]=gt,this.uint32[Zn+4]=Mt,this.uint16[Dn+10]=or,this.uint16[Dn+11]=_r,this.uint16[Dn+12]=vr,this.float32[Zn+7]=Fr,this.float32[Zn+8]=ai,this.uint8[ga+36]=Gi,this.uint8[ga+37]=Ti,this.uint8[ga+38]=bn,this.uint32[Zn+10]=rn,this.int16[Dn+22]=xn,U},y}(Qi);Un.prototype.bytesPerElement=48,X("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48",Un);var na=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},y.prototype.emplaceBack=function(U,$,ae,he,Oe,rt,gt,Mt,or,_r,vr,Fr,ai,Gi,Ti,bn,rn,xn,Dn,Zn,ga,ha,eo,za,Za,Ko,to,ao){var xs=this.length;return this.resize(xs+1),this.emplace(xs,U,$,ae,he,Oe,rt,gt,Mt,or,_r,vr,Fr,ai,Gi,Ti,bn,rn,xn,Dn,Zn,ga,ha,eo,za,Za,Ko,to,ao)},y.prototype.emplace=function(U,$,ae,he,Oe,rt,gt,Mt,or,_r,vr,Fr,ai,Gi,Ti,bn,rn,xn,Dn,Zn,ga,ha,eo,za,Za,Ko,to,ao,xs){var jo=U*34,El=U*17;return this.int16[jo+0]=$,this.int16[jo+1]=ae,this.int16[jo+2]=he,this.int16[jo+3]=Oe,this.int16[jo+4]=rt,this.int16[jo+5]=gt,this.int16[jo+6]=Mt,this.int16[jo+7]=or,this.uint16[jo+8]=_r,this.uint16[jo+9]=vr,this.uint16[jo+10]=Fr,this.uint16[jo+11]=ai,this.uint16[jo+12]=Gi,this.uint16[jo+13]=Ti,this.uint16[jo+14]=bn,this.uint16[jo+15]=rn,this.uint16[jo+16]=xn,this.uint16[jo+17]=Dn,this.uint16[jo+18]=Zn,this.uint16[jo+19]=ga,this.uint16[jo+20]=ha,this.uint16[jo+21]=eo,this.uint16[jo+22]=za,this.uint32[El+12]=Za,this.float32[El+13]=Ko,this.float32[El+14]=to,this.float32[El+15]=ao,this.float32[El+16]=xs,U},y}(Qi);na.prototype.bytesPerElement=68,X("StructArrayLayout8i15ui1ul4f68",na);var Yi=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},y.prototype.emplaceBack=function(U){var $=this.length;return this.resize($+1),this.emplace($,U)},y.prototype.emplace=function(U,$){var ae=U*1;return this.float32[ae+0]=$,U},y}(Qi);Yi.prototype.bytesPerElement=4,X("StructArrayLayout1f4",Yi);var Ln=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(U,$,ae){var he=this.length;return this.resize(he+1),this.emplace(he,U,$,ae)},y.prototype.emplace=function(U,$,ae,he){var Oe=U*3;return this.int16[Oe+0]=$,this.int16[Oe+1]=ae,this.int16[Oe+2]=he,U},y}(Qi);Ln.prototype.bytesPerElement=6,X("StructArrayLayout3i6",Ln);var ra=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(U,$,ae){var he=this.length;return this.resize(he+1),this.emplace(he,U,$,ae)},y.prototype.emplace=function(U,$,ae,he){var Oe=U*2,rt=U*4;return this.uint32[Oe+0]=$,this.uint16[rt+2]=ae,this.uint16[rt+3]=he,U},y}(Qi);ra.prototype.bytesPerElement=8,X("StructArrayLayout1ul2ui8",ra);var oa=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(U,$){var ae=this.length;return this.resize(ae+1),this.emplace(ae,U,$)},y.prototype.emplace=function(U,$,ae){var he=U*2;return this.uint16[he+0]=$,this.uint16[he+1]=ae,U},y}(Qi);oa.prototype.bytesPerElement=4,X("StructArrayLayout2ui4",oa);var wa=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},y.prototype.emplaceBack=function(U){var $=this.length;return this.resize($+1),this.emplace($,U)},y.prototype.emplace=function(U,$){var ae=U*1;return this.uint16[ae+0]=$,U},y}(Qi);wa.prototype.bytesPerElement=2,X("StructArrayLayout1ui2",wa);var ns=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},y.prototype.emplaceBack=function(U,$,ae,he){var Oe=this.length;return this.resize(Oe+1),this.emplace(Oe,U,$,ae,he)},y.prototype.emplace=function(U,$,ae,he,Oe){var rt=U*4;return this.float32[rt+0]=$,this.float32[rt+1]=ae,this.float32[rt+2]=he,this.float32[rt+3]=Oe,U},y}(Qi);ns.prototype.bytesPerElement=16,X("StructArrayLayout4f16",ns);var Ys=function(m){function y(){m.apply(this,arguments)}m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y;var I={anchorPointX:{configurable:!0},anchorPointY:{configurable:!0},x1:{configurable:!0},y1:{configurable:!0},x2:{configurable:!0},y2:{configurable:!0},featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0},anchorPoint:{configurable:!0}};return I.anchorPointX.get=function(){return this._structArray.int16[this._pos2+0]},I.anchorPointY.get=function(){return this._structArray.int16[this._pos2+1]},I.x1.get=function(){return this._structArray.int16[this._pos2+2]},I.y1.get=function(){return this._structArray.int16[this._pos2+3]},I.x2.get=function(){return this._structArray.int16[this._pos2+4]},I.y2.get=function(){return this._structArray.int16[this._pos2+5]},I.featureIndex.get=function(){return this._structArray.uint32[this._pos4+3]},I.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+8]},I.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+9]},I.anchorPoint.get=function(){return new u(this.anchorPointX,this.anchorPointY)},Object.defineProperties(y.prototype,I),y}(Oi);Ys.prototype.size=20;var Va=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype.get=function(U){return new Ys(this,U)},y}(mn);X("CollisionBoxArray",Va);var Ml=function(m){function y(){m.apply(this,arguments)}m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y;var I={anchorX:{configurable:!0},anchorY:{configurable:!0},glyphStartIndex:{configurable:!0},numGlyphs:{configurable:!0},vertexStartIndex:{configurable:!0},lineStartIndex:{configurable:!0},lineLength:{configurable:!0},segment:{configurable:!0},lowerSize:{configurable:!0},upperSize:{configurable:!0},lineOffsetX:{configurable:!0},lineOffsetY:{configurable:!0},writingMode:{configurable:!0},placedOrientation:{configurable:!0},hidden:{configurable:!0},crossTileID:{configurable:!0},associatedIconIndex:{configurable:!0}};return I.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},I.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},I.glyphStartIndex.get=function(){return this._structArray.uint16[this._pos2+2]},I.numGlyphs.get=function(){return this._structArray.uint16[this._pos2+3]},I.vertexStartIndex.get=function(){return this._structArray.uint32[this._pos4+2]},I.lineStartIndex.get=function(){return this._structArray.uint32[this._pos4+3]},I.lineLength.get=function(){return this._structArray.uint32[this._pos4+4]},I.segment.get=function(){return this._structArray.uint16[this._pos2+10]},I.lowerSize.get=function(){return this._structArray.uint16[this._pos2+11]},I.upperSize.get=function(){return this._structArray.uint16[this._pos2+12]},I.lineOffsetX.get=function(){return this._structArray.float32[this._pos4+7]},I.lineOffsetY.get=function(){return this._structArray.float32[this._pos4+8]},I.writingMode.get=function(){return this._structArray.uint8[this._pos1+36]},I.placedOrientation.get=function(){return this._structArray.uint8[this._pos1+37]},I.placedOrientation.set=function(U){this._structArray.uint8[this._pos1+37]=U},I.hidden.get=function(){return this._structArray.uint8[this._pos1+38]},I.hidden.set=function(U){this._structArray.uint8[this._pos1+38]=U},I.crossTileID.get=function(){return this._structArray.uint32[this._pos4+10]},I.crossTileID.set=function(U){this._structArray.uint32[this._pos4+10]=U},I.associatedIconIndex.get=function(){return this._structArray.int16[this._pos2+22]},Object.defineProperties(y.prototype,I),y}(Oi);Ml.prototype.size=48;var zo=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype.get=function(U){return new Ml(this,U)},y}(Un);X("PlacedSymbolArray",zo);var el=function(m){function y(){m.apply(this,arguments)}m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y;var I={anchorX:{configurable:!0},anchorY:{configurable:!0},rightJustifiedTextSymbolIndex:{configurable:!0},centerJustifiedTextSymbolIndex:{configurable:!0},leftJustifiedTextSymbolIndex:{configurable:!0},verticalPlacedTextSymbolIndex:{configurable:!0},placedIconSymbolIndex:{configurable:!0},verticalPlacedIconSymbolIndex:{configurable:!0},key:{configurable:!0},textBoxStartIndex:{configurable:!0},textBoxEndIndex:{configurable:!0},verticalTextBoxStartIndex:{configurable:!0},verticalTextBoxEndIndex:{configurable:!0},iconBoxStartIndex:{configurable:!0},iconBoxEndIndex:{configurable:!0},verticalIconBoxStartIndex:{configurable:!0},verticalIconBoxEndIndex:{configurable:!0},featureIndex:{configurable:!0},numHorizontalGlyphVertices:{configurable:!0},numVerticalGlyphVertices:{configurable:!0},numIconVertices:{configurable:!0},numVerticalIconVertices:{configurable:!0},useRuntimeCollisionCircles:{configurable:!0},crossTileID:{configurable:!0},textBoxScale:{configurable:!0},textOffset0:{configurable:!0},textOffset1:{configurable:!0},collisionCircleDiameter:{configurable:!0}};return I.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},I.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},I.rightJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+2]},I.centerJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+3]},I.leftJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+4]},I.verticalPlacedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+5]},I.placedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+6]},I.verticalPlacedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+7]},I.key.get=function(){return this._structArray.uint16[this._pos2+8]},I.textBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+9]},I.textBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+10]},I.verticalTextBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+11]},I.verticalTextBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+12]},I.iconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+13]},I.iconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+14]},I.verticalIconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+15]},I.verticalIconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+16]},I.featureIndex.get=function(){return this._structArray.uint16[this._pos2+17]},I.numHorizontalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+18]},I.numVerticalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+19]},I.numIconVertices.get=function(){return this._structArray.uint16[this._pos2+20]},I.numVerticalIconVertices.get=function(){return this._structArray.uint16[this._pos2+21]},I.useRuntimeCollisionCircles.get=function(){return this._structArray.uint16[this._pos2+22]},I.crossTileID.get=function(){return this._structArray.uint32[this._pos4+12]},I.crossTileID.set=function(U){this._structArray.uint32[this._pos4+12]=U},I.textBoxScale.get=function(){return this._structArray.float32[this._pos4+13]},I.textOffset0.get=function(){return this._structArray.float32[this._pos4+14]},I.textOffset1.get=function(){return this._structArray.float32[this._pos4+15]},I.collisionCircleDiameter.get=function(){return this._structArray.float32[this._pos4+16]},Object.defineProperties(y.prototype,I),y}(Oi);el.prototype.size=68;var ol=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype.get=function(U){return new el(this,U)},y}(na);X("SymbolInstanceArray",ol);var Ul=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype.getoffsetX=function(U){return this.float32[U*1+0]},y}(Yi);X("GlyphOffsetArray",Ul);var ls=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype.getx=function(U){return this.int16[U*3+0]},y.prototype.gety=function(U){return this.int16[U*3+1]},y.prototype.gettileUnitDistanceFromAnchor=function(U){return this.int16[U*3+2]},y}(Ln);X("SymbolLineVertexArray",ls);var Gs=function(m){function y(){m.apply(this,arguments)}m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y;var I={featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0}};return I.featureIndex.get=function(){return this._structArray.uint32[this._pos4+0]},I.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+2]},I.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+3]},Object.defineProperties(y.prototype,I),y}(Oi);Gs.prototype.size=8;var Ks=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype.get=function(U){return new Gs(this,U)},y}(ra);X("FeatureIndexArray",Ks);var Ta=ji([{name:"a_pos",components:2,type:"Int16"}],4),sl=Ta.members,io=function(y){y===void 0&&(y=[]),this.segments=y};io.prototype.prepareSegment=function(y,I,U,$){var ae=this.segments[this.segments.length-1];return y>io.MAX_VERTEX_ARRAY_LENGTH&&re("Max vertices per segment is "+io.MAX_VERTEX_ARRAY_LENGTH+": bucket requested "+y),(!ae||ae.vertexLength+y>io.MAX_VERTEX_ARRAY_LENGTH||ae.sortKey!==$)&&(ae={vertexOffset:I.length,primitiveOffset:U.length,vertexLength:0,primitiveLength:0},$!==void 0&&(ae.sortKey=$),this.segments.push(ae)),ae},io.prototype.get=function(){return this.segments},io.prototype.destroy=function(){for(var y=0,I=this.segments;y>>16)*rt&65535)<<16)&4294967295,Mt=Mt<<15|Mt>>>17,Mt=(Mt&65535)*gt+(((Mt>>>16)*gt&65535)<<16)&4294967295,he^=Mt,he=he<<13|he>>>19,Oe=(he&65535)*5+(((he>>>16)*5&65535)<<16)&4294967295,he=(Oe&65535)+27492+(((Oe>>>16)+58964&65535)<<16);switch(Mt=0,$){case 3:Mt^=(I.charCodeAt(or+2)&255)<<16;case 2:Mt^=(I.charCodeAt(or+1)&255)<<8;case 1:Mt^=I.charCodeAt(or)&255,Mt=(Mt&65535)*rt+(((Mt>>>16)*rt&65535)<<16)&4294967295,Mt=Mt<<15|Mt>>>17,Mt=(Mt&65535)*gt+(((Mt>>>16)*gt&65535)<<16)&4294967295,he^=Mt}return he^=I.length,he^=he>>>16,he=(he&65535)*2246822507+(((he>>>16)*2246822507&65535)<<16)&4294967295,he^=he>>>13,he=(he&65535)*3266489909+(((he>>>16)*3266489909&65535)<<16)&4294967295,he^=he>>>16,he>>>0}m.exports=y}),q=a(function(m){function y(I,U){for(var $=I.length,ae=U^$,he=0,Oe;$>=4;)Oe=I.charCodeAt(he)&255|(I.charCodeAt(++he)&255)<<8|(I.charCodeAt(++he)&255)<<16|(I.charCodeAt(++he)&255)<<24,Oe=(Oe&65535)*1540483477+(((Oe>>>16)*1540483477&65535)<<16),Oe^=Oe>>>24,Oe=(Oe&65535)*1540483477+(((Oe>>>16)*1540483477&65535)<<16),ae=(ae&65535)*1540483477+(((ae>>>16)*1540483477&65535)<<16)^Oe,$-=4,++he;switch($){case 3:ae^=(I.charCodeAt(he+2)&255)<<16;case 2:ae^=(I.charCodeAt(he+1)&255)<<8;case 1:ae^=I.charCodeAt(he)&255,ae=(ae&65535)*1540483477+(((ae>>>16)*1540483477&65535)<<16)}return ae^=ae>>>13,ae=(ae&65535)*1540483477+(((ae>>>16)*1540483477&65535)<<16),ae^=ae>>>15,ae>>>0}m.exports=y}),K=J,de=J,ne=q;K.murmur3=de,K.murmur2=ne;var we=function(){this.ids=[],this.positions=[],this.indexed=!1};we.prototype.add=function(y,I,U,$){this.ids.push(ft(y)),this.positions.push(I,U,$)},we.prototype.getPositions=function(y){for(var I=ft(y),U=0,$=this.ids.length-1;U<$;){var ae=U+$>>1;this.ids[ae]>=I?$=ae:U=ae+1}for(var he=[];this.ids[U]===I;){var Oe=this.positions[3*U],rt=this.positions[3*U+1],gt=this.positions[3*U+2];he.push({index:Oe,start:rt,end:gt}),U++}return he},we.serialize=function(y,I){var U=new Float64Array(y.ids),$=new Uint32Array(y.positions);return Zt(U,$,0,U.length-1),I&&I.push(U.buffer,$.buffer),{ids:U,positions:$}},we.deserialize=function(y){var I=new we;return I.ids=y.ids,I.positions=y.positions,I.indexed=!0,I};var Ue=Math.pow(2,53)-1;function ft(m){var y=+m;return!isNaN(y)&&y<=Ue?y:K(String(m))}function Zt(m,y,I,U){for(;I>1],ae=I-1,he=U+1;;){do ae++;while(m[ae]<$);do he--;while(m[he]>$);if(ae>=he)break;hr(m,ae,he),hr(y,3*ae,3*he),hr(y,3*ae+1,3*he+1),hr(y,3*ae+2,3*he+2)}he-Ihe.x+1||rthe.y+1)&&re("Geometry exceeds allowed extent, reduce your vector tile buffer size")}return I}function Ja(m,y){return{type:m.type,id:m.id,properties:m.properties,geometry:y?On(m):[]}}function co(m,y,I,U,$){m.emplaceBack(y*2+(U+1)/2,I*2+($+1)/2)}var rs=function(y){this.zoom=y.zoom,this.overscaling=y.overscaling,this.layers=y.layers,this.layerIds=this.layers.map(function(I){return I.id}),this.index=y.index,this.hasPattern=!1,this.layoutVertexArray=new Yr,this.indexArray=new vn,this.segments=new io,this.programConfigurations=new hi(y.layers,y.zoom),this.stateDependentLayerIds=this.layers.filter(function(I){return I.isStateDependent()}).map(function(I){return I.id})};rs.prototype.populate=function(y,I,U){var $=this.layers[0],ae=[],he=null;$.type==="circle"&&(he=$.layout.get("circle-sort-key"));for(var Oe=0,rt=y;Oe=Ci||_r<0||_r>=Ci)){var vr=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,y.sortKey),Fr=vr.vertexLength;co(this.layoutVertexArray,or,_r,-1,-1),co(this.layoutVertexArray,or,_r,1,-1),co(this.layoutVertexArray,or,_r,1,1),co(this.layoutVertexArray,or,_r,-1,1),this.indexArray.emplaceBack(Fr,Fr+1,Fr+2),this.indexArray.emplaceBack(Fr,Fr+3,Fr+2),vr.vertexLength+=4,vr.primitiveLength+=2}}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,y,U,{},$)},X("CircleBucket",rs,{omit:["layers"]});function so(m,y){for(var I=0;I=3){for(var ae=0;ae<$.length;ae++)if(Td(m,$[ae]))return!0}if(Mv(m,$,I))return!0}return!1}function Mv(m,y,I){if(m.length>1){if(Ev(m,y))return!0;for(var U=0;U1?m.distSqr(I):m.distSqr(I.sub(y)._mult($)._add(y))}function dp(m,y){for(var I=!1,U,$,ae,he=0;hey.y!=ae.y>y.y&&y.x<(ae.x-$.x)*(y.y-$.y)/(ae.y-$.y)+$.x&&(I=!I)}return I}function Td(m,y){for(var I=!1,U=0,$=m.length-1;Uy.y!=he.y>y.y&&y.x<(he.x-ae.x)*(y.y-ae.y)/(he.y-ae.y)+ae.x&&(I=!I)}return I}function vp(m,y,I,U,$){for(var ae=0,he=m;ae=Oe.x&&$>=Oe.y)return!0}var rt=[new u(y,I),new u(y,$),new u(U,$),new u(U,I)];if(m.length>2)for(var gt=0,Mt=rt;gt$.x&&y.x>$.x||m.y$.y&&y.y>$.y)return!1;var ae=oe(m,y,I[0]);return ae!==oe(m,y,I[1])||ae!==oe(m,y,I[2])||ae!==oe(m,y,I[3])}function Ad(m,y,I){var U=y.paint.get(m).value;return U.kind==="constant"?U.value:I.programConfigurations.get(y.id).getMaxValue(m)}function Cv(m){return Math.sqrt(m[0]*m[0]+m[1]*m[1])}function Kv(m,y,I,U,$){if(!y[0]&&!y[1])return m;var ae=u.convert(y)._mult($);I==="viewport"&&ae._rotate(-U);for(var he=[],Oe=0;Oe0&&(ae=1/Math.sqrt(ae)),m[0]=y[0]*ae,m[1]=y[1]*ae,m[2]=y[2]*ae,m}function D9(m,y){return m[0]*y[0]+m[1]*y[1]+m[2]*y[2]}function F9(m,y,I){var U=y[0],$=y[1],ae=y[2],he=I[0],Oe=I[1],rt=I[2];return m[0]=$*rt-ae*Oe,m[1]=ae*he-U*rt,m[2]=U*Oe-$*he,m}function z9(m,y,I){var U=y[0],$=y[1],ae=y[2];return m[0]=U*I[0]+$*I[3]+ae*I[6],m[1]=U*I[1]+$*I[4]+ae*I[7],m[2]=U*I[2]+$*I[5]+ae*I[8],m}var O9=om,CQ=function(){var m=am();return function(y,I,U,$,ae,he){var Oe,rt;for(I||(I=3),U||(U=0),$?rt=Math.min($*I+U,y.length):rt=y.length,Oe=U;Oem.width||$.height>m.height||I.x>m.width-$.width||I.y>m.height-$.height)throw new RangeError("out of range source coordinates for image copy");if($.width>y.width||$.height>y.height||U.x>y.width-$.width||U.y>y.height-$.height)throw new RangeError("out of range destination coordinates for image copy");for(var he=m.data,Oe=y.data,rt=0;rt<$.height;rt++)for(var gt=((I.y+rt)*m.width+I.x)*ae,Mt=((U.y+rt)*y.width+U.x)*ae,or=0;or<$.width*ae;or++)Oe[Mt+or]=he[gt+or];return y}var Pv=function(y,I){Md(this,y,1,I)};Pv.prototype.resize=function(y){Cw(this,y,1)},Pv.prototype.clone=function(){return new Pv({width:this.width,height:this.height},new Uint8Array(this.data))},Pv.copy=function(y,I,U,$,ae){kw(y,I,U,$,ae,1)};var wh=function(y,I){Md(this,y,4,I)};wh.prototype.resize=function(y){Cw(this,y,4)},wh.prototype.replace=function(y,I){I?this.data.set(y):y instanceof Uint8ClampedArray?this.data=new Uint8Array(y.buffer):this.data=y},wh.prototype.clone=function(){return new wh({width:this.width,height:this.height},new Uint8Array(this.data))},wh.copy=function(y,I,U,$,ae){kw(y,I,U,$,ae,4)},X("AlphaImage",Pv),X("RGBAImage",wh);var Gx=new Br({"heatmap-radius":new xt(Fn.paint_heatmap["heatmap-radius"]),"heatmap-weight":new xt(Fn.paint_heatmap["heatmap-weight"]),"heatmap-intensity":new Ee(Fn.paint_heatmap["heatmap-intensity"]),"heatmap-color":new Hr(Fn.paint_heatmap["heatmap-color"]),"heatmap-opacity":new Ee(Fn.paint_heatmap["heatmap-opacity"])}),S1={paint:Gx};function Hx(m){var y={},I=m.resolution||256,U=m.clips?m.clips.length:1,$=m.image||new wh({width:I,height:U}),ae=function(bn,rn,xn){y[m.evaluationKey]=xn;var Dn=m.expression.evaluate(y);$.data[bn+rn+0]=Math.floor(Dn.r*255/Dn.a),$.data[bn+rn+1]=Math.floor(Dn.g*255/Dn.a),$.data[bn+rn+2]=Math.floor(Dn.b*255/Dn.a),$.data[bn+rn+3]=Math.floor(Dn.a*255)};if(m.clips)for(var gt=0,Mt=0;gt80*I){Oe=gt=m[0],rt=Mt=m[1];for(var Fr=I;Fr<$;Fr+=I)or=m[Fr],_r=m[Fr+1],orgt&&(gt=or),_r>Mt&&(Mt=_r);vr=Math.max(gt-Oe,Mt-rt),vr=vr!==0?1/vr:0}return jx(ae,he,I,Oe,rt,vr),he}function Iw(m,y,I,U,$){var ae,he;if($===cS(m,y,I,U)>0)for(ae=y;ae=y;ae-=U)he=Mk(ae,m[ae],m[ae+1],he);return he&&Xx(he,he.next)&&(Kx(he),he=he.next),he}function sm(m,y){if(!m)return m;y||(y=m);var I=m,U;do if(U=!1,!I.steiner&&(Xx(I,I.next)||wf(I.prev,I,I.next)===0)){if(Kx(I),I=y=I.prev,I===I.next)break;U=!0}else I=I.next;while(U||I!==y);return y}function jx(m,y,I,U,$,ae,he){if(m){!he&&ae&&Rw(m,U,$,ae);for(var Oe=m,rt,gt;m.prev!==m.next;){if(rt=m.prev,gt=m.next,ae?Tk(m,U,$,ae):wk(m)){y.push(rt.i/I),y.push(m.i/I),y.push(gt.i/I),Kx(m),m=gt.next,Oe=gt.next;continue}if(m=gt,m===Oe){he?he===1?(m=Wx(sm(m),y,I),jx(m,y,I,U,$,ae,2)):he===2&&v0(m,y,I,U,$,ae):jx(sm(m),y,I,U,$,ae,1);break}}}}function wk(m){var y=m.prev,I=m,U=m.next;if(wf(y,I,U)>=0)return!1;for(var $=m.next.next;$!==m.prev;){if(um(y.x,y.y,I.x,I.y,U.x,U.y,$.x,$.y)&&wf($.prev,$,$.next)>=0)return!1;$=$.next}return!0}function Tk(m,y,I,U){var $=m.prev,ae=m,he=m.next;if(wf($,ae,he)>=0)return!1;for(var Oe=$.xae.x?$.x>he.x?$.x:he.x:ae.x>he.x?ae.x:he.x,Mt=$.y>ae.y?$.y>he.y?$.y:he.y:ae.y>he.y?ae.y:he.y,or=oS(Oe,rt,y,I,U),_r=oS(gt,Mt,y,I,U),vr=m.prevZ,Fr=m.nextZ;vr&&vr.z>=or&&Fr&&Fr.z<=_r;){if(vr!==m.prev&&vr!==m.next&&um($.x,$.y,ae.x,ae.y,he.x,he.y,vr.x,vr.y)&&wf(vr.prev,vr,vr.next)>=0||(vr=vr.prevZ,Fr!==m.prev&&Fr!==m.next&&um($.x,$.y,ae.x,ae.y,he.x,he.y,Fr.x,Fr.y)&&wf(Fr.prev,Fr,Fr.next)>=0))return!1;Fr=Fr.nextZ}for(;vr&&vr.z>=or;){if(vr!==m.prev&&vr!==m.next&&um($.x,$.y,ae.x,ae.y,he.x,he.y,vr.x,vr.y)&&wf(vr.prev,vr,vr.next)>=0)return!1;vr=vr.prevZ}for(;Fr&&Fr.z<=_r;){if(Fr!==m.prev&&Fr!==m.next&&um($.x,$.y,ae.x,ae.y,he.x,he.y,Fr.x,Fr.y)&&wf(Fr.prev,Fr,Fr.next)>=0)return!1;Fr=Fr.nextZ}return!0}function Wx(m,y,I){var U=m;do{var $=U.prev,ae=U.next.next;!Xx($,ae)&&Dw($,U,U.next,ae)&&Yx($,ae)&&Yx(ae,$)&&(y.push($.i/I),y.push(U.i/I),y.push(ae.i/I),Kx(U),Kx(U.next),U=m=ae),U=U.next}while(U!==m);return sm(U)}function v0(m,y,I,U,$,ae){var he=m;do{for(var Oe=he.next.next;Oe!==he.prev;){if(he.i!==Oe.i&&E1(he,Oe)){var rt=lS(he,Oe);he=sm(he,he.next),rt=sm(rt,rt.next),jx(he,y,I,U,$,ae),jx(rt,y,I,U,$,ae);return}Oe=Oe.next}he=he.next}while(he!==m)}function lm(m,y,I,U){var $=[],ae,he,Oe,rt,gt;for(ae=0,he=y.length;ae=I.next.y&&I.next.y!==I.y){var Oe=I.x+($-I.y)*(I.next.x-I.x)/(I.next.y-I.y);if(Oe<=U&&Oe>ae){if(ae=Oe,Oe===U){if($===I.y)return I;if($===I.next.y)return I.next}he=I.x=I.x&&I.x>=gt&&U!==I.x&&um($he.x||I.x===he.x&&W9(he,I)))&&(he=I,or=_r)),I=I.next;while(I!==rt);return he}function W9(m,y){return wf(m.prev,m,y.prev)<0&&wf(y.next,m,m.next)<0}function Rw(m,y,I,U){var $=m;do $.z===null&&($.z=oS($.x,$.y,y,I,U)),$.prevZ=$.prev,$.nextZ=$.next,$=$.next;while($!==m);$.prevZ.nextZ=null,$.prevZ=null,aS($)}function aS(m){var y,I,U,$,ae,he,Oe,rt,gt=1;do{for(I=m,m=null,ae=null,he=0;I;){for(he++,U=I,Oe=0,y=0;y0||rt>0&&U;)Oe!==0&&(rt===0||!U||I.z<=U.z)?($=I,I=I.nextZ,Oe--):($=U,U=U.nextZ,rt--),ae?ae.nextZ=$:m=$,$.prevZ=ae,ae=$;I=U}ae.nextZ=null,gt*=2}while(he>1);return m}function oS(m,y,I,U,$){return m=32767*(m-I)*$,y=32767*(y-U)*$,m=(m|m<<8)&16711935,m=(m|m<<4)&252645135,m=(m|m<<2)&858993459,m=(m|m<<1)&1431655765,y=(y|y<<8)&16711935,y=(y|y<<4)&252645135,y=(y|y<<2)&858993459,y=(y|y<<1)&1431655765,m|y<<1}function sS(m){var y=m,I=m;do(y.x=0&&(m-he)*(U-Oe)-(I-he)*(y-Oe)>=0&&(I-he)*(ae-Oe)-($-he)*(U-Oe)>=0}function E1(m,y){return m.next.i!==y.i&&m.prev.i!==y.i&&!Sk(m,y)&&(Yx(m,y)&&Yx(y,m)&&X9(m,y)&&(wf(m.prev,m,y.prev)||wf(m,y.prev,y))||Xx(m,y)&&wf(m.prev,m,m.next)>0&&wf(y.prev,y,y.next)>0)}function wf(m,y,I){return(y.y-m.y)*(I.x-y.x)-(y.x-m.x)*(I.y-y.y)}function Xx(m,y){return m.x===y.x&&m.y===y.y}function Dw(m,y,I,U){var $=uy(wf(m,y,I)),ae=uy(wf(m,y,U)),he=uy(wf(I,U,m)),Oe=uy(wf(I,U,y));return!!($!==ae&&he!==Oe||$===0&&Zx(m,I,y)||ae===0&&Zx(m,U,y)||he===0&&Zx(I,m,U)||Oe===0&&Zx(I,y,U))}function Zx(m,y,I){return y.x<=Math.max(m.x,I.x)&&y.x>=Math.min(m.x,I.x)&&y.y<=Math.max(m.y,I.y)&&y.y>=Math.min(m.y,I.y)}function uy(m){return m>0?1:m<0?-1:0}function Sk(m,y){var I=m;do{if(I.i!==m.i&&I.next.i!==m.i&&I.i!==y.i&&I.next.i!==y.i&&Dw(I,I.next,m,y))return!0;I=I.next}while(I!==m);return!1}function Yx(m,y){return wf(m.prev,m,m.next)<0?wf(m,y,m.next)>=0&&wf(m,m.prev,y)>=0:wf(m,y,m.prev)<0||wf(m,m.next,y)<0}function X9(m,y){var I=m,U=!1,$=(m.x+y.x)/2,ae=(m.y+y.y)/2;do I.y>ae!=I.next.y>ae&&I.next.y!==I.y&&$<(I.next.x-I.x)*(ae-I.y)/(I.next.y-I.y)+I.x&&(U=!U),I=I.next;while(I!==m);return U}function lS(m,y){var I=new uS(m.i,m.x,m.y),U=new uS(y.i,y.x,y.y),$=m.next,ae=y.prev;return m.next=y,y.prev=m,I.next=$,$.prev=I,U.next=I,I.prev=U,ae.next=U,U.prev=ae,U}function Mk(m,y,I,U){var $=new uS(m,y,I);return U?($.next=U.next,$.prev=U,U.next.prev=$,U.next=$):($.prev=$,$.next=$),$}function Kx(m){m.next.prev=m.prev,m.prev.next=m.next,m.prevZ&&(m.prevZ.nextZ=m.nextZ),m.nextZ&&(m.nextZ.prevZ=m.prevZ)}function uS(m,y,I){this.i=m,this.x=y,this.y=I,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}M1.deviation=function(m,y,I,U){var $=y&&y.length,ae=$?y[0]*I:m.length,he=Math.abs(cS(m,0,ae,I));if($)for(var Oe=0,rt=y.length;Oe0&&(U+=m[$-1].length,I.holes.push(U))}return I},Pw.default=bk;function fS(m,y,I,U,$){dg(m,y,I||0,U||m.length-1,$||Ek)}function dg(m,y,I,U,$){for(;U>I;){if(U-I>600){var ae=U-I+1,he=y-I+1,Oe=Math.log(ae),rt=.5*Math.exp(2*Oe/3),gt=.5*Math.sqrt(Oe*rt*(ae-rt)/ae)*(he-ae/2<0?-1:1),Mt=Math.max(I,Math.floor(y-he*rt/ae+gt)),or=Math.min(U,Math.floor(y+(ae-he)*rt/ae+gt));dg(m,y,Mt,or,$)}var _r=m[y],vr=I,Fr=U;for(C1(m,I,y),$(m[U],_r)>0&&C1(m,I,U);vr0;)Fr--}$(m[I],_r)===0?C1(m,I,Fr):(Fr++,C1(m,Fr,U)),Fr<=y&&(I=Fr+1),y<=Fr&&(U=Fr-1)}}function C1(m,y,I){var U=m[y];m[y]=m[I],m[I]=U}function Ek(m,y){return my?1:0}function Fw(m,y){var I=m.length;if(I<=1)return[m];for(var U=[],$,ae,he=0;he1)for(var rt=0;rt>3}if(U--,I===1||I===2)$+=m.readSVarint(),ae+=m.readSVarint(),I===1&&(Oe&&he.push(Oe),Oe=[]),Oe.push(new u($,ae));else if(I===7)Oe&&Oe.push(Oe[0].clone());else throw new Error("unknown command "+I)}return Oe&&he.push(Oe),he},cy.prototype.bbox=function(){var m=this._pbf;m.pos=this._geometry;for(var y=m.readVarint()+m.pos,I=1,U=0,$=0,ae=0,he=1/0,Oe=-1/0,rt=1/0,gt=-1/0;m.pos>3}if(U--,I===1||I===2)$+=m.readSVarint(),ae+=m.readSVarint(),$Oe&&(Oe=$),aegt&&(gt=ae);else if(I!==7)throw new Error("unknown command "+I)}return[he,rt,Oe,gt]},cy.prototype.toGeoJSON=function(m,y,I){var U=this.extent*Math.pow(2,I),$=this.extent*m,ae=this.extent*y,he=this.loadGeometry(),Oe=cy.types[this.type],rt,gt;function Mt(vr){for(var Fr=0;Fr>3;y=U===1?m.readString():U===2?m.readFloat():U===3?m.readDouble():U===4?m.readVarint64():U===5?m.readVarint():U===6?m.readSVarint():U===7?m.readBoolean():null}return y}vS.prototype.feature=function(m){if(m<0||m>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[m];var y=this._pbf.readVarint()+this._pbf.pos;return new dS(this._pbf,y,this.extent,this._keys,this._values)};var Ok=Y9;function Y9(m,y){this.layers=m.readFields(K9,{},y)}function K9(m,y,I){if(m===3){var U=new vg(I,I.readVarint()+I.pos);U.length&&(y[U.name]=U)}}var qk=Ok,k1=dS,Bk=vg,pg={VectorTile:qk,VectorTileFeature:k1,VectorTileLayer:Bk},Nk=pg.VectorTileFeature.types,Ow=500,L1=Math.pow(2,13);function cm(m,y,I,U,$,ae,he,Oe){m.emplaceBack(y,I,Math.floor(U*L1)*2+he,$*L1*2,ae*L1*2,Math.round(Oe))}var Vp=function(y){this.zoom=y.zoom,this.overscaling=y.overscaling,this.layers=y.layers,this.layerIds=this.layers.map(function(I){return I.id}),this.index=y.index,this.hasPattern=!1,this.layoutVertexArray=new Ii,this.indexArray=new vn,this.programConfigurations=new hi(y.layers,y.zoom),this.segments=new io,this.stateDependentLayerIds=this.layers.filter(function(I){return I.isStateDependent()}).map(function(I){return I.id})};Vp.prototype.populate=function(y,I,U){this.features=[],this.hasPattern=zw("fill-extrusion",this.layers,I);for(var $=0,ae=y;$=1){var xn=Gi[bn-1];if(!J9(rn,xn)){vr.vertexLength+4>io.MAX_VERTEX_ARRAY_LENGTH&&(vr=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));var Dn=rn.sub(xn)._perp()._unit(),Zn=xn.dist(rn);Ti+Zn>32768&&(Ti=0),cm(this.layoutVertexArray,rn.x,rn.y,Dn.x,Dn.y,0,0,Ti),cm(this.layoutVertexArray,rn.x,rn.y,Dn.x,Dn.y,0,1,Ti),Ti+=Zn,cm(this.layoutVertexArray,xn.x,xn.y,Dn.x,Dn.y,0,0,Ti),cm(this.layoutVertexArray,xn.x,xn.y,Dn.x,Dn.y,0,1,Ti);var ga=vr.vertexLength;this.indexArray.emplaceBack(ga,ga+2,ga+1),this.indexArray.emplaceBack(ga+1,ga+2,ga+3),vr.vertexLength+=4,vr.primitiveLength+=2}}}}if(vr.vertexLength+gt>io.MAX_VERTEX_ARRAY_LENGTH&&(vr=this.segments.prepareSegment(gt,this.layoutVertexArray,this.indexArray)),Nk[y.type]==="Polygon"){for(var ha=[],eo=[],za=vr.vertexLength,Za=0,Ko=rt;ZaCi)||m.y===y.y&&(m.y<0||m.y>Ci)}function $9(m){return m.every(function(y){return y.x<0})||m.every(function(y){return y.x>Ci})||m.every(function(y){return y.y<0})||m.every(function(y){return y.y>Ci})}var P1=new Br({"fill-extrusion-opacity":new Ee(Fn["paint_fill-extrusion"]["fill-extrusion-opacity"]),"fill-extrusion-color":new xt(Fn["paint_fill-extrusion"]["fill-extrusion-color"]),"fill-extrusion-translate":new Ee(Fn["paint_fill-extrusion"]["fill-extrusion-translate"]),"fill-extrusion-translate-anchor":new Ee(Fn["paint_fill-extrusion"]["fill-extrusion-translate-anchor"]),"fill-extrusion-pattern":new zt(Fn["paint_fill-extrusion"]["fill-extrusion-pattern"]),"fill-extrusion-height":new xt(Fn["paint_fill-extrusion"]["fill-extrusion-height"]),"fill-extrusion-base":new xt(Fn["paint_fill-extrusion"]["fill-extrusion-base"]),"fill-extrusion-vertical-gradient":new Ee(Fn["paint_fill-extrusion"]["fill-extrusion-vertical-gradient"])}),sd={paint:P1},fm=function(m){function y(I){m.call(this,I,sd)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype.createBucket=function(U){return new Vp(U)},y.prototype.queryRadius=function(){return Cv(this.paint.get("fill-extrusion-translate"))},y.prototype.is3D=function(){return!0},y.prototype.queryIntersectsFeature=function(U,$,ae,he,Oe,rt,gt,Mt){var or=Kv(U,this.paint.get("fill-extrusion-translate"),this.paint.get("fill-extrusion-translate-anchor"),rt.angle,gt),_r=this.paint.get("fill-extrusion-height").evaluate($,ae),vr=this.paint.get("fill-extrusion-base").evaluate($,ae),Fr=Q9(or,Mt,rt,0),ai=gS(he,vr,_r,Mt),Gi=ai[0],Ti=ai[1];return Uk(Gi,Ti,Fr)},y}(mi);function fy(m,y){return m.x*y.x+m.y*y.y}function pS(m,y){if(m.length===1){for(var I=0,U=y[I++],$;!$||U.equals($);)if($=y[I++],!$)return 1/0;for(;I=2&&y[gt-1].equals(y[gt-2]);)gt--;for(var Mt=0;Mt0;if(ha&&bn>Mt){var za=vr.dist(Fr);if(za>2*or){var Za=vr.sub(vr.sub(Fr)._mult(or/za)._round());this.updateDistance(Fr,Za),this.addCurrentVertex(Za,Gi,0,0,_r),Fr=Za}}var Ko=Fr&&ai,to=Ko?U:rt?"butt":$;if(Ko&&to==="round"&&(Znae&&(to="bevel"),to==="bevel"&&(Zn>2&&(to="flipbevel"),Zn100)rn=Ti.mult(-1);else{var ao=Zn*Gi.add(Ti).mag()/Gi.sub(Ti).mag();rn._perp()._mult(ao*(eo?-1:1))}this.addCurrentVertex(vr,rn,0,0,_r),this.addCurrentVertex(vr,rn.mult(-1),0,0,_r)}else if(to==="bevel"||to==="fakeround"){var xs=-Math.sqrt(Zn*Zn-1),jo=eo?xs:0,El=eo?0:xs;if(Fr&&this.addCurrentVertex(vr,Gi,jo,El,_r),to==="fakeround")for(var Iu=Math.round(ga*180/Math.PI/yS),Cl=1;Cl2*or){var ch=vr.add(ai.sub(vr)._mult(or/Xh)._round());this.updateDistance(vr,ch),this.addCurrentVertex(ch,Ti,0,0,_r),vr=ch}}}}},sh.prototype.addCurrentVertex=function(y,I,U,$,ae,he){he===void 0&&(he=!1);var Oe=I.x+I.y*U,rt=I.y-I.x*U,gt=-I.x+I.y*$,Mt=-I.y-I.x*$;this.addHalfVertex(y,Oe,rt,he,!1,U,ae),this.addHalfVertex(y,gt,Mt,he,!0,-$,ae),this.distance>tb/2&&this.totalDistance===0&&(this.distance=0,this.addCurrentVertex(y,I,U,$,ae,he))},sh.prototype.addHalfVertex=function(y,I,U,$,ae,he,Oe){var rt=y.x,gt=y.y,Mt=this.lineClips?this.scaledDistance*(tb-1):this.scaledDistance,or=Mt*Bw;if(this.layoutVertexArray.emplaceBack((rt<<1)+($?1:0),(gt<<1)+(ae?1:0),Math.round(qw*I)+128,Math.round(qw*U)+128,(he===0?0:he<0?-1:1)+1|(or&63)<<2,or>>6),this.lineClips){var _r=this.scaledDistance-this.lineClips.start,vr=this.lineClips.end-this.lineClips.start,Fr=_r/vr;this.layoutVertexArray2.emplaceBack(Fr,this.lineClipsArray.length)}var ai=Oe.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,this.e2,ai),Oe.primitiveLength++),ae?this.e2=ai:this.e1=ai},sh.prototype.updateScaledDistance=function(){this.scaledDistance=this.lineClips?this.lineClips.start+(this.lineClips.end-this.lineClips.start)*this.distance/this.totalDistance:this.distance},sh.prototype.updateDistance=function(y,I){this.distance+=y.dist(I),this.updateScaledDistance()},X("LineBucket",sh,{omit:["layers","patternFeatures"]});var _S=new Br({"line-cap":new Ee(Fn.layout_line["line-cap"]),"line-join":new xt(Fn.layout_line["line-join"]),"line-miter-limit":new Ee(Fn.layout_line["line-miter-limit"]),"line-round-limit":new Ee(Fn.layout_line["line-round-limit"]),"line-sort-key":new xt(Fn.layout_line["line-sort-key"])}),xS=new Br({"line-opacity":new xt(Fn.paint_line["line-opacity"]),"line-color":new xt(Fn.paint_line["line-color"]),"line-translate":new Ee(Fn.paint_line["line-translate"]),"line-translate-anchor":new Ee(Fn.paint_line["line-translate-anchor"]),"line-width":new xt(Fn.paint_line["line-width"]),"line-gap-width":new xt(Fn.paint_line["line-gap-width"]),"line-offset":new xt(Fn.paint_line["line-offset"]),"line-blur":new xt(Fn.paint_line["line-blur"]),"line-dasharray":new Ir(Fn.paint_line["line-dasharray"]),"line-pattern":new zt(Fn.paint_line["line-pattern"]),"line-gradient":new Hr(Fn.paint_line["line-gradient"])}),Nw={paint:xS,layout:_S},tO=function(m){function y(){m.apply(this,arguments)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype.possiblyEvaluate=function(U,$){return $=new Gn(Math.floor($.zoom),{now:$.now,fadeDuration:$.fadeDuration,zoomHistory:$.zoomHistory,transition:$.transition}),m.prototype.possiblyEvaluate.call(this,U,$)},y.prototype.evaluate=function(U,$,ae,he){return $=_({},$,{zoom:Math.floor($.zoom)}),m.prototype.evaluate.call(this,U,$,ae,he)},y}(xt),R=new tO(Nw.paint.properties["line-width"].specification);R.useIntegerZoom=!0;var S=function(m){function y(I){m.call(this,I,Nw),this.gradientVersion=0}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype._handleSpecialPaintPropertyUpdate=function(U){if(U==="line-gradient"){var $=this._transitionablePaint._values["line-gradient"].value.expression;this.stepInterpolant=$._styleExpression.expression instanceof _u,this.gradientVersion=(this.gradientVersion+1)%d}},y.prototype.gradientExpression=function(){return this._transitionablePaint._values["line-gradient"].value.expression},y.prototype.recalculate=function(U,$){m.prototype.recalculate.call(this,U,$),this.paint._values["line-floorwidth"]=R.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,U)},y.prototype.createBucket=function(U){return new sh(U)},y.prototype.queryRadius=function(U){var $=U,ae=F(Ad("line-width",this,$),Ad("line-gap-width",this,$)),he=Ad("line-offset",this,$);return ae/2+Math.abs(he)+Cv(this.paint.get("line-translate"))},y.prototype.queryIntersectsFeature=function(U,$,ae,he,Oe,rt,gt){var Mt=Kv(U,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),rt.angle,gt),or=gt/2*F(this.paint.get("line-width").evaluate($,ae),this.paint.get("line-gap-width").evaluate($,ae)),_r=this.paint.get("line-offset").evaluate($,ae);return _r&&(he=W(he,_r*gt)),su(Mt,he,or)},y.prototype.isTileClipped=function(){return!0},y}(mi);function F(m,y){return y>0?y+2*m:m}function W(m,y){for(var I=[],U=new u(0,0),$=0;$":"\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","\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 ln(m){for(var y="",I=0;I>1,Mt=-7,or=I?$-1:0,_r=I?-1:1,vr=m[y+or];for(or+=_r,ae=vr&(1<<-Mt)-1,vr>>=-Mt,Mt+=Oe;Mt>0;ae=ae*256+m[y+or],or+=_r,Mt-=8);for(he=ae&(1<<-Mt)-1,ae>>=-Mt,Mt+=U;Mt>0;he=he*256+m[y+or],or+=_r,Mt-=8);if(ae===0)ae=1-gt;else{if(ae===rt)return he?NaN:(vr?-1:1)*(1/0);he=he+Math.pow(2,U),ae=ae-gt}return(vr?-1:1)*he*Math.pow(2,ae-U)},ro=function(m,y,I,U,$,ae){var he,Oe,rt,gt=ae*8-$-1,Mt=(1<>1,_r=$===23?Math.pow(2,-24)-Math.pow(2,-77):0,vr=U?0:ae-1,Fr=U?1:-1,ai=y<0||y===0&&1/y<0?1:0;for(y=Math.abs(y),isNaN(y)||y===1/0?(Oe=isNaN(y)?1:0,he=Mt):(he=Math.floor(Math.log(y)/Math.LN2),y*(rt=Math.pow(2,-he))<1&&(he--,rt*=2),he+or>=1?y+=_r/rt:y+=_r*Math.pow(2,1-or),y*rt>=2&&(he++,rt/=2),he+or>=Mt?(Oe=0,he=Mt):he+or>=1?(Oe=(y*rt-1)*Math.pow(2,$),he=he+or):(Oe=y*Math.pow(2,or-1)*Math.pow(2,$),he=0));$>=8;m[I+vr]=Oe&255,vr+=Fr,Oe/=256,$-=8);for(he=he<<$|Oe,gt+=$;gt>0;m[I+vr]=he&255,vr+=Fr,he/=256,gt-=8);m[I+vr-Fr]|=ai*128},Vo={read:pa,write:ro},Xa=sa;function sa(m){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(m)?m:new Uint8Array(m||0),this.pos=0,this.type=0,this.length=this.buf.length}sa.Varint=0,sa.Fixed64=1,sa.Bytes=2,sa.Fixed32=5;var Mo=65536*65536,fo=1/Mo,lo=12,Xn=typeof TextDecoder=="undefined"?null:new TextDecoder("utf8");sa.prototype={destroy:function(){this.buf=null},readFields:function(m,y,I){for(I=I||this.length;this.pos>3,ae=this.pos;this.type=U&7,m($,y,this),this.pos===ae&&this.skip(U)}return y},readMessage:function(m,y){return this.readFields(m,y,this.readVarint()+this.pos)},readFixed32:function(){var m=Hh(this.buf,this.pos);return this.pos+=4,m},readSFixed32:function(){var m=Iv(this.buf,this.pos);return this.pos+=4,m},readFixed64:function(){var m=Hh(this.buf,this.pos)+Hh(this.buf,this.pos+4)*Mo;return this.pos+=8,m},readSFixed64:function(){var m=Hh(this.buf,this.pos)+Iv(this.buf,this.pos+4)*Mo;return this.pos+=8,m},readFloat:function(){var m=Vo.read(this.buf,this.pos,!0,23,4);return this.pos+=4,m},readDouble:function(){var m=Vo.read(this.buf,this.pos,!0,52,8);return this.pos+=8,m},readVarint:function(m){var y=this.buf,I,U;return U=y[this.pos++],I=U&127,U<128||(U=y[this.pos++],I|=(U&127)<<7,U<128)||(U=y[this.pos++],I|=(U&127)<<14,U<128)||(U=y[this.pos++],I|=(U&127)<<21,U<128)?I:(U=y[this.pos],I|=(U&15)<<28,Ro(I,m,this))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var m=this.readVarint();return m%2===1?(m+1)/-2:m/2},readBoolean:function(){return!!this.readVarint()},readString:function(){var m=this.readVarint()+this.pos,y=this.pos;return this.pos=m,m-y>=lo&&Xn?tu(this.buf,y,m):lv(this.buf,y,m)},readBytes:function(){var m=this.readVarint()+this.pos,y=this.buf.subarray(this.pos,m);return this.pos=m,y},readPackedVarint:function(m,y){if(this.type!==sa.Bytes)return m.push(this.readVarint(y));var I=uo(this);for(m=m||[];this.pos127;);else if(y===sa.Bytes)this.pos=this.readVarint()+this.pos;else if(y===sa.Fixed32)this.pos+=4;else if(y===sa.Fixed64)this.pos+=8;else throw new Error("Unimplemented type: "+y)},writeTag:function(m,y){this.writeVarint(m<<3|y)},realloc:function(m){for(var y=this.length||16;y268435455||m<0){Ju(m,this);return}this.realloc(4),this.buf[this.pos++]=m&127|(m>127?128:0),!(m<=127)&&(this.buf[this.pos++]=(m>>>=7)&127|(m>127?128:0),!(m<=127)&&(this.buf[this.pos++]=(m>>>=7)&127|(m>127?128:0),!(m<=127)&&(this.buf[this.pos++]=m>>>7&127)))},writeSVarint:function(m){this.writeVarint(m<0?-m*2-1:m*2)},writeBoolean:function(m){this.writeVarint(!!m)},writeString:function(m){m=String(m),this.realloc(m.length*4),this.pos++;var y=this.pos;this.pos=pc(this.buf,m,this.pos);var I=this.pos-y;I>=128&&$v(y,I,this),this.pos=y-1,this.writeVarint(I),this.pos+=I},writeFloat:function(m){this.realloc(4),Vo.write(this.buf,m,this.pos,!0,23,4),this.pos+=4},writeDouble:function(m){this.realloc(8),Vo.write(this.buf,m,this.pos,!0,52,8),this.pos+=8},writeBytes:function(m){var y=m.length;this.writeVarint(y),this.realloc(y);for(var I=0;I=128&&$v(I,U,this),this.pos=I-1,this.writeVarint(U),this.pos+=U},writeMessage:function(m,y,I){this.writeTag(m,sa.Bytes),this.writeRawMessage(y,I)},writePackedVarint:function(m,y){y.length&&this.writeMessage(m,ld,y)},writePackedSVarint:function(m,y){y.length&&this.writeMessage(m,Ah,y)},writePackedBoolean:function(m,y){y.length&&this.writeMessage(m,jd,y)},writePackedFloat:function(m,y){y.length&&this.writeMessage(m,Gd,y)},writePackedDouble:function(m,y){y.length&&this.writeMessage(m,Hd,y)},writePackedFixed32:function(m,y){y.length&&this.writeMessage(m,Tf,y)},writePackedSFixed32:function(m,y){y.length&&this.writeMessage(m,Sh,y)},writePackedFixed64:function(m,y){y.length&&this.writeMessage(m,Ed,y)},writePackedSFixed64:function(m,y){y.length&&this.writeMessage(m,ud,y)},writeBytesField:function(m,y){this.writeTag(m,sa.Bytes),this.writeBytes(y)},writeFixed32Field:function(m,y){this.writeTag(m,sa.Fixed32),this.writeFixed32(y)},writeSFixed32Field:function(m,y){this.writeTag(m,sa.Fixed32),this.writeSFixed32(y)},writeFixed64Field:function(m,y){this.writeTag(m,sa.Fixed64),this.writeFixed64(y)},writeSFixed64Field:function(m,y){this.writeTag(m,sa.Fixed64),this.writeSFixed64(y)},writeVarintField:function(m,y){this.writeTag(m,sa.Varint),this.writeVarint(y)},writeSVarintField:function(m,y){this.writeTag(m,sa.Varint),this.writeSVarint(y)},writeStringField:function(m,y){this.writeTag(m,sa.Bytes),this.writeString(y)},writeFloatField:function(m,y){this.writeTag(m,sa.Fixed32),this.writeFloat(y)},writeDoubleField:function(m,y){this.writeTag(m,sa.Fixed64),this.writeDouble(y)},writeBooleanField:function(m,y){this.writeVarintField(m,!!y)}};function Ro(m,y,I){var U=I.buf,$,ae;if(ae=U[I.pos++],$=(ae&112)>>4,ae<128||(ae=U[I.pos++],$|=(ae&127)<<3,ae<128)||(ae=U[I.pos++],$|=(ae&127)<<10,ae<128)||(ae=U[I.pos++],$|=(ae&127)<<17,ae<128)||(ae=U[I.pos++],$|=(ae&127)<<24,ae<128)||(ae=U[I.pos++],$|=(ae&1)<<31,ae<128))return $o(m,$,y);throw new Error("Expected varint not more than 10 bytes")}function uo(m){return m.type===sa.Bytes?m.readVarint()+m.pos:m.pos+1}function $o(m,y,I){return I?y*4294967296+(m>>>0):(y>>>0)*4294967296+(m>>>0)}function Ju(m,y){var I,U;if(m>=0?(I=m%4294967296|0,U=m/4294967296|0):(I=~(-m%4294967296),U=~(-m/4294967296),I^4294967295?I=I+1|0:(I=0,U=U+1|0)),m>=18446744073709552e3||m<-18446744073709552e3)throw new Error("Given varint doesn't fit into 10 bytes");y.realloc(10),qu(I,U,y),Th(U,y)}function qu(m,y,I){I.buf[I.pos++]=m&127|128,m>>>=7,I.buf[I.pos++]=m&127|128,m>>>=7,I.buf[I.pos++]=m&127|128,m>>>=7,I.buf[I.pos++]=m&127|128,m>>>=7,I.buf[I.pos]=m&127}function Th(m,y){var I=(m&7)<<4;y.buf[y.pos++]|=I|((m>>>=3)?128:0),m&&(y.buf[y.pos++]=m&127|((m>>>=7)?128:0),m&&(y.buf[y.pos++]=m&127|((m>>>=7)?128:0),m&&(y.buf[y.pos++]=m&127|((m>>>=7)?128:0),m&&(y.buf[y.pos++]=m&127|((m>>>=7)?128:0),m&&(y.buf[y.pos++]=m&127)))))}function $v(m,y,I){var U=y<=16383?1:y<=2097151?2:y<=268435455?3:Math.floor(Math.log(y)/(Math.LN2*7));I.realloc(U);for(var $=I.pos-1;$>=m;$--)I.buf[$+U]=I.buf[$]}function ld(m,y){for(var I=0;I>>8,m[I+2]=y>>>16,m[I+3]=y>>>24}function Iv(m,y){return(m[y]|m[y+1]<<8|m[y+2]<<16)+(m[y+3]<<24)}function lv(m,y,I){for(var U="",$=y;$239?4:ae>223?3:ae>191?2:1;if($+Oe>I)break;var rt,gt,Mt;Oe===1?ae<128&&(he=ae):Oe===2?(rt=m[$+1],(rt&192)===128&&(he=(ae&31)<<6|rt&63,he<=127&&(he=null))):Oe===3?(rt=m[$+1],gt=m[$+2],(rt&192)===128&&(gt&192)===128&&(he=(ae&15)<<12|(rt&63)<<6|gt&63,(he<=2047||he>=55296&&he<=57343)&&(he=null))):Oe===4&&(rt=m[$+1],gt=m[$+2],Mt=m[$+3],(rt&192)===128&&(gt&192)===128&&(Mt&192)===128&&(he=(ae&15)<<18|(rt&63)<<12|(gt&63)<<6|Mt&63,(he<=65535||he>=1114112)&&(he=null))),he===null?(he=65533,Oe=1):he>65535&&(he-=65536,U+=String.fromCharCode(he>>>10&1023|55296),he=56320|he&1023),U+=String.fromCharCode(he),$+=Oe}return U}function tu(m,y,I){return Xn.decode(m.subarray(y,I))}function pc(m,y,I){for(var U=0,$,ae;U55295&&$<57344)if(ae)if($<56320){m[I++]=239,m[I++]=191,m[I++]=189,ae=$;continue}else $=ae-55296<<10|$-56320|65536,ae=null;else{$>56319||U+1===y.length?(m[I++]=239,m[I++]=191,m[I++]=189):ae=$;continue}else ae&&(m[I++]=239,m[I++]=191,m[I++]=189,ae=null);$<128?m[I++]=$:($<2048?m[I++]=$>>6|192:($<65536?m[I++]=$>>12|224:(m[I++]=$>>18|240,m[I++]=$>>12&63|128),m[I++]=$>>6&63|128),m[I++]=$&63|128)}return I}var $u=3;function Rv(m,y,I){m===1&&I.readMessage(ff,y)}function ff(m,y,I){if(m===3){var U=I.readMessage(I1,{}),$=U.id,ae=U.bitmap,he=U.width,Oe=U.height,rt=U.left,gt=U.top,Mt=U.advance;y.push({id:$,bitmap:new Pv({width:he+2*$u,height:Oe+2*$u},ae),metrics:{width:he,height:Oe,left:rt,top:gt,advance:Mt}})}}function I1(m,y,I){m===1?y.id=I.readVarint():m===2?y.bitmap=I.readBytes():m===3?y.width=I.readVarint():m===4?y.height=I.readVarint():m===5?y.left=I.readSVarint():m===6?y.top=I.readSVarint():m===7&&(y.advance=I.readVarint())}function p0(m){return new Xa(m).readFields(Rv,[])}var Gp=$u;function Qv(m){for(var y=0,I=0,U=0,$=m;U<$.length;U+=1){var ae=$[U];y+=ae.w*ae.h,I=Math.max(I,ae.w)}m.sort(function(Gi,Ti){return Ti.h-Gi.h});for(var he=Math.max(Math.ceil(Math.sqrt(y/.95)),I),Oe=[{x:0,y:0,w:he,h:1/0}],rt=0,gt=0,Mt=0,or=m;Mt=0;vr--){var Fr=Oe[vr];if(!(_r.w>Fr.w||_r.h>Fr.h)){if(_r.x=Fr.x,_r.y=Fr.y,gt=Math.max(gt,_r.y+_r.h),rt=Math.max(rt,_r.x+_r.w),_r.w===Fr.w&&_r.h===Fr.h){var ai=Oe.pop();vr=0&&$>=y&&m0[this.text.charCodeAt($)];$--)U--;this.text=this.text.substring(y,U),this.sectionIndex=this.sectionIndex.slice(y,U)},jh.prototype.substring=function(y,I){var U=new jh;return U.text=this.text.substring(y,I),U.sectionIndex=this.sectionIndex.slice(y,I),U.sections=this.sections,U},jh.prototype.toString=function(){return this.text},jh.prototype.getMaxScale=function(){var y=this;return this.sectionIndex.reduce(function(I,U){return Math.max(I,y.sections[U].scale)},0)},jh.prototype.addTextSection=function(y,I){this.text+=y.text,this.sections.push(hy.forText(y.scale,y.fontStack||I));for(var U=this.sections.length-1,$=0;$=g0?null:++this.imageSectionID:(this.imageSectionID=Uw,this.imageSectionID)};function rO(m,y){for(var I=[],U=m.text,$=0,ae=0,he=y;ae=0,Mt=0,or=0;or0&&ch>eo&&(eo=ch)}else{var kl=I[Za.fontStack],_l=kl&&kl[to];if(_l&&_l.rect)jo=_l.rect,xs=_l.metrics;else{var Qu=y[Za.fontStack],gc=Qu&&Qu[to];if(!gc)continue;xs=gc.metrics}ao=(Dn-Za.scale)*An}Cl?(m.verticalizable=!0,ha.push({glyph:to,imageName:El,x:_r,y:vr+ao,vertical:Cl,scale:Za.scale,fontStack:Za.fontStack,sectionIndex:Ko,metrics:xs,rect:jo}),_r+=Iu*Za.scale+gt):(ha.push({glyph:to,imageName:El,x:_r,y:vr+ao,vertical:Cl,scale:Za.scale,fontStack:Za.fontStack,sectionIndex:Ko,metrics:xs,rect:jo}),_r+=xs.advance*Za.scale+gt)}if(ha.length!==0){var Xd=_r-gt;Fr=Math.max(Xd,Fr),oO(ha,0,ha.length-1,Gi,eo)}_r=0;var Zd=ae*Dn+eo;ga.lineOffset=Math.max(eo,Zn),vr+=Zd,ai=Math.max(Zd,ai),++Ti}var Zh=vr-R1,fv=wS(he),hv=fv.horizontalAlign,Mh=fv.verticalAlign;Cd(m.positionedLines,Gi,hv,Mh,Fr,ai,ae,Zh,$.length),m.top+=-Mh*Zh,m.bottom=m.top+Zh,m.left+=-hv*Fr,m.right=m.left+Fr}function oO(m,y,I,U,$){if(!(!U&&!$))for(var ae=m[I],he=ae.metrics.advance*ae.scale,Oe=(m[I].x+he)*U,rt=y;rt<=I;rt++)m[rt].x-=Oe,m[rt].y+=$}function Cd(m,y,I,U,$,ae,he,Oe,rt){var gt=(y-I)*$,Mt=0;ae!==he?Mt=-Oe*U-R1:Mt=(-U*rt+.5)*he;for(var or=0,_r=m;or<_r.length;or+=1)for(var vr=_r[or],Fr=0,ai=vr.positionedGlyphs;Fr-I/2;){if(he--,he<0)return!1;Oe-=m[he].dist(ae),ae=m[he]}Oe+=m[he].dist(m[he+1]),he++;for(var rt=[],gt=0;OeU;)gt-=rt.shift().angleDelta;if(gt>$)return!1;he++,Oe+=or.dist(_r)}return!0}function RQ(m){for(var y=0,I=0;Igt){var Fr=(gt-rt)/vr,ai=al(or.x,_r.x,Fr),Gi=al(or.y,_r.y,Fr),Ti=new Wd(ai,Gi,_r.angleTo(or),Mt);return Ti._round(),!he||IQ(m,Ti,Oe,he,y)?Ti:void 0}rt+=vr}}function ret(m,y,I,U,$,ae,he,Oe,rt){var gt=DQ(U,ae,he),Mt=FQ(U,$),or=Mt*he,_r=m[0].x===0||m[0].x===rt||m[0].y===0||m[0].y===rt;y-or=0&&xn=0&&Dn=0&&_r+gt<=Mt){var Zn=new Wd(xn,Dn,bn,Fr);Zn._round(),(!U||IQ(m,Zn,ae,U,$))&&vr.push(Zn)}}or+=Ti}return!Oe&&!vr.length&&!he&&(vr=zQ(m,or/2,I,U,$,ae,he,!0,rt)),vr}function OQ(m,y,I,U,$){for(var ae=[],he=0;he=U&&or.x>=U)&&(Mt.x>=U?Mt=new u(U,Mt.y+(or.y-Mt.y)*((U-Mt.x)/(or.x-Mt.x)))._round():or.x>=U&&(or=new u(U,Mt.y+(or.y-Mt.y)*((U-Mt.x)/(or.x-Mt.x)))._round()),!(Mt.y>=$&&or.y>=$)&&(Mt.y>=$?Mt=new u(Mt.x+(or.x-Mt.x)*(($-Mt.y)/(or.y-Mt.y)),$)._round():or.y>=$&&(or=new u(Mt.x+(or.x-Mt.x)*(($-Mt.y)/(or.y-Mt.y)),$)._round()),(!rt||!Mt.equals(rt[rt.length-1]))&&(rt=[Mt],ae.push(rt)),rt.push(or)))))}return ae}var Hw=Gc;function qQ(m,y,I,U){var $=[],ae=m.image,he=ae.pixelRatio,Oe=ae.paddedRect.w-2*Hw,rt=ae.paddedRect.h-2*Hw,gt=m.right-m.left,Mt=m.bottom-m.top,or=ae.stretchX||[[0,Oe]],_r=ae.stretchY||[[0,rt]],vr=function(kl,_l){return kl+_l[1]-_l[0]},Fr=or.reduce(vr,0),ai=_r.reduce(vr,0),Gi=Oe-Fr,Ti=rt-ai,bn=0,rn=Fr,xn=0,Dn=ai,Zn=0,ga=Gi,ha=0,eo=Ti;if(ae.content&&U){var za=ae.content;bn=Yk(or,0,za[0]),xn=Yk(_r,0,za[1]),rn=Yk(or,za[0],za[2]),Dn=Yk(_r,za[1],za[3]),Zn=za[0]-bn,ha=za[1]-xn,ga=za[2]-za[0]-rn,eo=za[3]-za[1]-Dn}var Za=function(kl,_l,Qu,gc){var Af=Kk(kl.stretch-bn,rn,gt,m.left),Df=Jk(kl.fixed-Zn,ga,kl.stretch,Fr),Xh=Kk(_l.stretch-xn,Dn,Mt,m.top),ch=Jk(_l.fixed-ha,eo,_l.stretch,ai),Xd=Kk(Qu.stretch-bn,rn,gt,m.left),Zd=Jk(Qu.fixed-Zn,ga,Qu.stretch,Fr),Zh=Kk(gc.stretch-xn,Dn,Mt,m.top),fv=Jk(gc.fixed-ha,eo,gc.stretch,ai),hv=new u(Af,Xh),Mh=new u(Xd,Xh),dv=new u(Xd,Zh),yp=new u(Af,Zh),py=new u(Df/he,ch/he),z1=new u(Zd/he,fv/he),O1=y*Math.PI/180;if(O1){var q1=Math.sin(O1),$w=Math.cos(O1),y0=[$w,-q1,q1,$w];hv._matMult(y0),Mh._matMult(y0),yp._matMult(y0),dv._matMult(y0)}var i6=kl.stretch+kl.fixed,vO=Qu.stretch+Qu.fixed,n6=_l.stretch+_l.fixed,pO=gc.stretch+gc.fixed,Hp={x:ae.paddedRect.x+Hw+i6,y:ae.paddedRect.y+Hw+n6,w:vO-i6,h:pO-n6},Qw=ga/he/gt,a6=eo/he/Mt;return{tl:hv,tr:Mh,bl:yp,br:dv,tex:Hp,writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:py,pixelOffsetBR:z1,minFontScaleX:Qw,minFontScaleY:a6,isSDF:I}};if(!U||!ae.stretchX&&!ae.stretchY)$.push(Za({fixed:0,stretch:-1},{fixed:0,stretch:-1},{fixed:0,stretch:Oe+1},{fixed:0,stretch:rt+1}));else for(var Ko=BQ(or,Gi,Fr),to=BQ(_r,Ti,ai),ao=0;ao0&&(Fr=Math.max(10,Fr),this.circleDiameter=Fr)}else{var ai=he.top*Oe-rt,Gi=he.bottom*Oe+rt,Ti=he.left*Oe-rt,bn=he.right*Oe+rt,rn=he.collisionPadding;if(rn&&(Ti-=rn[0]*Oe,ai-=rn[1]*Oe,bn+=rn[2]*Oe,Gi+=rn[3]*Oe),Mt){var xn=new u(Ti,ai),Dn=new u(bn,ai),Zn=new u(Ti,Gi),ga=new u(bn,Gi),ha=Mt*Math.PI/180;xn._rotate(ha),Dn._rotate(ha),Zn._rotate(ha),ga._rotate(ha),Ti=Math.min(xn.x,Dn.x,Zn.x,ga.x),bn=Math.max(xn.x,Dn.x,Zn.x,ga.x),ai=Math.min(xn.y,Dn.y,Zn.y,ga.y),Gi=Math.max(xn.y,Dn.y,Zn.y,ga.y)}y.emplaceBack(I.x,I.y,Ti,ai,bn,Gi,U,$,ae)}this.boxEndIndex=y.length},jw=function(y,I){if(y===void 0&&(y=[]),I===void 0&&(I=net),this.data=y,this.length=this.data.length,this.compare=I,this.length>0)for(var U=(this.length>>1)-1;U>=0;U--)this._down(U)};jw.prototype.push=function(y){this.data.push(y),this.length++,this._up(this.length-1)},jw.prototype.pop=function(){if(this.length!==0){var y=this.data[0],I=this.data.pop();return this.length--,this.length>0&&(this.data[0]=I,this._down(0)),y}},jw.prototype.peek=function(){return this.data[0]},jw.prototype._up=function(y){for(var I=this,U=I.data,$=I.compare,ae=U[y];y>0;){var he=y-1>>1,Oe=U[he];if($(ae,Oe)>=0)break;U[y]=Oe,y=he}U[y]=ae},jw.prototype._down=function(y){for(var I=this,U=I.data,$=I.compare,ae=this.length>>1,he=U[y];y=0)break;U[y]=rt,y=Oe}U[y]=he};function net(m,y){return my?1:0}function aet(m,y,I){y===void 0&&(y=1),I===void 0&&(I=!1);for(var U=1/0,$=1/0,ae=-1/0,he=-1/0,Oe=m[0],rt=0;rtae)&&(ae=gt.x),(!rt||gt.y>he)&&(he=gt.y)}var Mt=ae-U,or=he-$,_r=Math.min(Mt,or),vr=_r/2,Fr=new jw([],oet);if(_r===0)return new u(U,$);for(var ai=U;aiTi.d||!Ti.d)&&(Ti=rn,I&&console.log("found best %d after %d probes",Math.round(1e4*rn.d)/1e4,bn)),!(rn.max-Ti.d<=y)&&(vr=rn.h/2,Fr.push(new Ww(rn.p.x-vr,rn.p.y-vr,vr,m)),Fr.push(new Ww(rn.p.x+vr,rn.p.y-vr,vr,m)),Fr.push(new Ww(rn.p.x-vr,rn.p.y+vr,vr,m)),Fr.push(new Ww(rn.p.x+vr,rn.p.y+vr,vr,m)),bn+=4)}return I&&(console.log("num probes: "+bn),console.log("best distance: "+Ti.d)),Ti.p}function oet(m,y){return y.max-m.max}function Ww(m,y,I,U){this.p=new u(m,y),this.h=I,this.d=set(this.p,U),this.max=this.d+this.h*Math.SQRT2}function set(m,y){for(var I=!1,U=1/0,$=0;$m.y!=Mt.y>m.y&&m.x<(Mt.x-gt.x)*(m.y-gt.y)/(Mt.y-gt.y)+gt.x&&(I=!I),U=Math.min(U,cg(m,gt,Mt))}return(I?1:-1)*Math.sqrt(U)}function uet(m){for(var y=0,I=0,U=0,$=m[0],ae=0,he=$.length,Oe=he-1;ae=Ci||y0.y<0||y0.y>=Ci||het(m,y0,$w,I,U,$,to,m.layers[0],m.collisionBoxArray,y.index,y.sourceLayerIndex,m.index,Ti,Dn,ha,rt,rn,Zn,eo,vr,y,ae,gt,Mt,he)};if(za==="line")for(var xs=0,jo=OQ(y.geometry,0,0,Ci,Ci);xs1){var Xh=tet(Df,ga,I.vertical||Fr,U,ai,bn);Xh&&ao(Df,Xh)}}else if(y.type==="Polygon")for(var ch=0,Xd=Fw(y.geometry,0);chD1&&re(m.layerIds[0]+': Value for "text-size" is >= '+TS+'. Reduce your "text-size".')):Gi.kind==="composite"&&(Ti=[kd*vr.compositeTextSizes[0].evaluate(he,{},Fr),kd*vr.compositeTextSizes[1].evaluate(he,{},Fr)],(Ti[0]>D1||Ti[1]>D1)&&re(m.layerIds[0]+': Value for "text-size" is >= '+TS+'. Reduce your "text-size".')),m.addSymbols(m.text,ai,Ti,Oe,ae,he,gt,y,rt.lineStartIndex,rt.lineLength,_r,Fr);for(var bn=0,rn=Mt;bnD1&&re(m.layerIds[0]+': Value for "icon-size" is >= '+TS+'. Reduce your "icon-size".')):hv.kind==="composite"&&(Mh=[kd*Dn.compositeIconSizes[0].evaluate(xn,{},ga),kd*Dn.compositeIconSizes[1].evaluate(xn,{},ga)],(Mh[0]>D1||Mh[1]>D1)&&re(m.layerIds[0]+': Value for "icon-size" is >= '+TS+'. Reduce your "icon-size".')),m.addSymbols(m.icon,Zh,Mh,rn,bn,xn,!1,y,za.lineStartIndex,za.lineLength,-1,ga),Cl=m.icon.placedSymbolArray.length-1,fv&&(jo=fv.length*4,m.addSymbols(m.icon,fv,Mh,rn,bn,xn,uv.vertical,y,za.lineStartIndex,za.lineLength,-1,ga),kl=m.icon.placedSymbolArray.length-1)}for(var dv in U.horizontal){var yp=U.horizontal[dv];if(!Za){Qu=K(yp.text);var py=Oe.layout.get("text-rotate").evaluate(xn,{},ga);Za=new $k(rt,y,gt,Mt,or,yp,_r,vr,Fr,py)}var z1=yp.positionedLines.length===1;if(El+=UQ(m,y,yp,ae,Oe,Fr,xn,ai,za,U.vertical?uv.horizontal:uv.horizontalOnly,z1?Object.keys(U.horizontal):[dv],_l,Cl,Dn,ga),z1)break}U.vertical&&(Iu+=UQ(m,y,U.vertical,ae,Oe,Fr,xn,ai,za,uv.vertical,["vertical"],_l,kl,Dn,ga));var O1=Za?Za.boxStartIndex:m.collisionBoxArray.length,q1=Za?Za.boxEndIndex:m.collisionBoxArray.length,$w=to?to.boxStartIndex:m.collisionBoxArray.length,y0=to?to.boxEndIndex:m.collisionBoxArray.length,i6=Ko?Ko.boxStartIndex:m.collisionBoxArray.length,vO=Ko?Ko.boxEndIndex:m.collisionBoxArray.length,n6=ao?ao.boxStartIndex:m.collisionBoxArray.length,pO=ao?ao.boxEndIndex:m.collisionBoxArray.length,Hp=-1,Qw=function(MS,nee){return MS&&MS.circleDiameter?Math.max(MS.circleDiameter,nee):nee};Hp=Qw(Za,Hp),Hp=Qw(to,Hp),Hp=Qw(Ko,Hp),Hp=Qw(ao,Hp);var a6=Hp>-1?1:0;a6&&(Hp*=ha/An),m.glyphOffsetArray.length>=Pu.MAX_GLYPHS&&re("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),xn.sortKey!==void 0&&m.addToSortKeyRanges(m.symbolInstances.length,xn.sortKey),m.symbolInstances.emplaceBack(y.x,y.y,_l.right>=0?_l.right:-1,_l.center>=0?_l.center:-1,_l.left>=0?_l.left:-1,_l.vertical||-1,Cl,kl,Qu,O1,q1,$w,y0,i6,vO,n6,pO,gt,El,Iu,xs,jo,a6,0,_r,gc,Af,Hp)}function det(m,y,I,U){var $=m.compareText;if(!(y in $))$[y]=[];else for(var ae=$[y],he=ae.length-1;he>=0;he--)if(U.dist(ae[he])0)&&(he.value.kind!=="constant"||he.value.value.length>0),Mt=rt.value.kind!=="constant"||!!rt.value.value||Object.keys(rt.parameters).length>0,or=ae.get("symbol-sort-key");if(this.features=[],!(!gt&&!Mt)){for(var _r=I.iconDependencies,vr=I.glyphDependencies,Fr=I.availableImages,ai=new Gn(this.zoom),Gi=0,Ti=y;Gi=0;for(var Iu=0,Cl=eo.sections;Iu=0;rt--)he[rt]={x:I[rt].x,y:I[rt].y,tileUnitDistanceFromAnchor:ae},rt>0&&(ae+=I[rt-1].dist(I[rt]));for(var gt=0;gt0},Pu.prototype.hasIconData=function(){return this.icon.segments.get().length>0},Pu.prototype.hasDebugData=function(){return this.textCollisionBox&&this.iconCollisionBox},Pu.prototype.hasTextCollisionBoxData=function(){return this.hasDebugData()&&this.textCollisionBox.segments.get().length>0},Pu.prototype.hasIconCollisionBoxData=function(){return this.hasDebugData()&&this.iconCollisionBox.segments.get().length>0},Pu.prototype.addIndicesForPlacedSymbol=function(y,I){for(var U=y.placedSymbolArray.get(I),$=U.vertexStartIndex+U.numGlyphs*4,ae=U.vertexStartIndex;ae<$;ae+=4)y.indexArray.emplaceBack(ae,ae+1,ae+2),y.indexArray.emplaceBack(ae+1,ae+2,ae+3)},Pu.prototype.getSortedSymbolIndexes=function(y){if(this.sortedAngle===y&&this.symbolInstanceIndexes!==void 0)return this.symbolInstanceIndexes;for(var I=Math.sin(y),U=Math.cos(y),$=[],ae=[],he=[],Oe=0;Oe1||this.icon.segments.get().length>1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(y),this.sortedAngle=y,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(var U=0,$=this.symbolInstanceIndexes;U<$.length;U+=1){var ae=$[U],he=this.symbolInstances.get(ae);this.featureSortOrder.push(he.featureIndex),[he.rightJustifiedTextSymbolIndex,he.centerJustifiedTextSymbolIndex,he.leftJustifiedTextSymbolIndex].forEach(function(Oe,rt,gt){Oe>=0&>.indexOf(Oe)===rt&&I.addIndicesForPlacedSymbol(I.text,Oe)}),he.verticalPlacedTextSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.text,he.verticalPlacedTextSymbolIndex),he.placedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,he.placedIconSymbolIndex),he.verticalPlacedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,he.verticalPlacedIconSymbolIndex)}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}},X("SymbolBucket",Pu,{omit:["layers","collisionBoxArray","features","compareText"]}),Pu.MAX_GLYPHS=65535,Pu.addDynamicAttributes=uO;function met(m,y){return y.replace(/{([^{}]+)}/g,function(I,U){return U in m?String(m[U]):""})}var yet=new Br({"symbol-placement":new Ee(Fn.layout_symbol["symbol-placement"]),"symbol-spacing":new Ee(Fn.layout_symbol["symbol-spacing"]),"symbol-avoid-edges":new Ee(Fn.layout_symbol["symbol-avoid-edges"]),"symbol-sort-key":new xt(Fn.layout_symbol["symbol-sort-key"]),"symbol-z-order":new Ee(Fn.layout_symbol["symbol-z-order"]),"icon-allow-overlap":new Ee(Fn.layout_symbol["icon-allow-overlap"]),"icon-ignore-placement":new Ee(Fn.layout_symbol["icon-ignore-placement"]),"icon-optional":new Ee(Fn.layout_symbol["icon-optional"]),"icon-rotation-alignment":new Ee(Fn.layout_symbol["icon-rotation-alignment"]),"icon-size":new xt(Fn.layout_symbol["icon-size"]),"icon-text-fit":new Ee(Fn.layout_symbol["icon-text-fit"]),"icon-text-fit-padding":new Ee(Fn.layout_symbol["icon-text-fit-padding"]),"icon-image":new xt(Fn.layout_symbol["icon-image"]),"icon-rotate":new xt(Fn.layout_symbol["icon-rotate"]),"icon-padding":new Ee(Fn.layout_symbol["icon-padding"]),"icon-keep-upright":new Ee(Fn.layout_symbol["icon-keep-upright"]),"icon-offset":new xt(Fn.layout_symbol["icon-offset"]),"icon-anchor":new xt(Fn.layout_symbol["icon-anchor"]),"icon-pitch-alignment":new Ee(Fn.layout_symbol["icon-pitch-alignment"]),"text-pitch-alignment":new Ee(Fn.layout_symbol["text-pitch-alignment"]),"text-rotation-alignment":new Ee(Fn.layout_symbol["text-rotation-alignment"]),"text-field":new xt(Fn.layout_symbol["text-field"]),"text-font":new xt(Fn.layout_symbol["text-font"]),"text-size":new xt(Fn.layout_symbol["text-size"]),"text-max-width":new xt(Fn.layout_symbol["text-max-width"]),"text-line-height":new Ee(Fn.layout_symbol["text-line-height"]),"text-letter-spacing":new xt(Fn.layout_symbol["text-letter-spacing"]),"text-justify":new xt(Fn.layout_symbol["text-justify"]),"text-radial-offset":new xt(Fn.layout_symbol["text-radial-offset"]),"text-variable-anchor":new Ee(Fn.layout_symbol["text-variable-anchor"]),"text-anchor":new xt(Fn.layout_symbol["text-anchor"]),"text-max-angle":new Ee(Fn.layout_symbol["text-max-angle"]),"text-writing-mode":new Ee(Fn.layout_symbol["text-writing-mode"]),"text-rotate":new xt(Fn.layout_symbol["text-rotate"]),"text-padding":new Ee(Fn.layout_symbol["text-padding"]),"text-keep-upright":new Ee(Fn.layout_symbol["text-keep-upright"]),"text-transform":new xt(Fn.layout_symbol["text-transform"]),"text-offset":new xt(Fn.layout_symbol["text-offset"]),"text-allow-overlap":new Ee(Fn.layout_symbol["text-allow-overlap"]),"text-ignore-placement":new Ee(Fn.layout_symbol["text-ignore-placement"]),"text-optional":new Ee(Fn.layout_symbol["text-optional"])}),_et=new Br({"icon-opacity":new xt(Fn.paint_symbol["icon-opacity"]),"icon-color":new xt(Fn.paint_symbol["icon-color"]),"icon-halo-color":new xt(Fn.paint_symbol["icon-halo-color"]),"icon-halo-width":new xt(Fn.paint_symbol["icon-halo-width"]),"icon-halo-blur":new xt(Fn.paint_symbol["icon-halo-blur"]),"icon-translate":new Ee(Fn.paint_symbol["icon-translate"]),"icon-translate-anchor":new Ee(Fn.paint_symbol["icon-translate-anchor"]),"text-opacity":new xt(Fn.paint_symbol["text-opacity"]),"text-color":new xt(Fn.paint_symbol["text-color"],{runtimeType:Ol,getOverride:function(m){return m.textColor},hasOverride:function(m){return!!m.textColor}}),"text-halo-color":new xt(Fn.paint_symbol["text-halo-color"]),"text-halo-width":new xt(Fn.paint_symbol["text-halo-width"]),"text-halo-blur":new xt(Fn.paint_symbol["text-halo-blur"]),"text-translate":new Ee(Fn.paint_symbol["text-translate"]),"text-translate-anchor":new Ee(Fn.paint_symbol["text-translate-anchor"])}),cO={paint:_et,layout:yet},Yw=function(y){this.type=y.property.overrides?y.property.overrides.runtimeType:ac,this.defaultValue=y};Yw.prototype.evaluate=function(y){if(y.formattedSection){var I=this.defaultValue.property.overrides;if(I&&I.hasOverride(y.formattedSection))return I.getOverride(y.formattedSection)}return y.feature&&y.featureState?this.defaultValue.evaluate(y.feature,y.featureState):this.defaultValue.property.specification.default},Yw.prototype.eachChild=function(y){if(!this.defaultValue.isConstant()){var I=this.defaultValue.value;y(I._styleExpression.expression)}},Yw.prototype.outputDefined=function(){return!1},Yw.prototype.serialize=function(){return null},X("FormatSectionOverride",Yw,{omit:["defaultValue"]});var xet=function(m){function y(I){m.call(this,I,cO)}return m&&(y.__proto__=m),y.prototype=Object.create(m&&m.prototype),y.prototype.constructor=y,y.prototype.recalculate=function(U,$){if(m.prototype.recalculate.call(this,U,$),this.layout.get("icon-rotation-alignment")==="auto"&&(this.layout.get("symbol-placement")!=="point"?this.layout._values["icon-rotation-alignment"]="map":this.layout._values["icon-rotation-alignment"]="viewport"),this.layout.get("text-rotation-alignment")==="auto"&&(this.layout.get("symbol-placement")!=="point"?this.layout._values["text-rotation-alignment"]="map":this.layout._values["text-rotation-alignment"]="viewport"),this.layout.get("text-pitch-alignment")==="auto"&&(this.layout._values["text-pitch-alignment"]=this.layout.get("text-rotation-alignment")),this.layout.get("icon-pitch-alignment")==="auto"&&(this.layout._values["icon-pitch-alignment"]=this.layout.get("icon-rotation-alignment")),this.layout.get("symbol-placement")==="point"){var ae=this.layout.get("text-writing-mode");if(ae){for(var he=[],Oe=0,rt=ae;Oe",targetMapId:$,sourceMapId:he.mapId})}}},Kw.prototype.receive=function(y){var I=y.data,U=I.id;if(U&&!(I.targetMapId&&this.mapId!==I.targetMapId))if(I.type===""){delete this.tasks[U];var $=this.cancelCallbacks[U];delete this.cancelCallbacks[U],$&&$()}else ke()||I.mustQueue?(this.tasks[U]=I,this.taskQueue.push(U),this.invoker.trigger()):this.processTask(U,I)},Kw.prototype.process=function(){if(this.taskQueue.length){var y=this.taskQueue.shift(),I=this.tasks[y];delete this.tasks[y],this.taskQueue.length&&this.invoker.trigger(),I&&this.processTask(y,I)}},Kw.prototype.processTask=function(y,I){var U=this;if(I.type===""){var $=this.callbacks[y];delete this.callbacks[y],$&&(I.error?$(Ye(I.error)):$(null,Ye(I.data)))}else{var ae=!1,he=Se(this.globalScope)?void 0:[],Oe=I.hasCallback?function(_r,vr){ae=!0,delete U.cancelCallbacks[y],U.target.postMessage({id:y,type:"",sourceMapId:U.mapId,error:_r?He(_r):null,data:He(vr,he)},he)}:function(_r){ae=!0},rt=null,gt=Ye(I.data);if(this.parent[I.type])rt=this.parent[I.type](I.sourceMapId,gt,Oe);else if(this.parent.getWorkerSource){var Mt=I.type.split("."),or=this.parent.getWorkerSource(I.sourceMapId,Mt[0],gt.source);rt=or[Mt[1]](gt,Oe)}else Oe(new Error("Could not find function "+I.type));!ae&&rt&&rt.cancel&&(this.cancelCallbacks[y]=rt.cancel)}},Kw.prototype.remove=function(){this.invoker.remove(),this.target.removeEventListener("message",this.receive,!1)};function Iet(m,y,I){y=Math.pow(2,I)-y-1;var U=XQ(m*256,y*256,I),$=XQ((m+1)*256,(y+1)*256,I);return U[0]+","+U[1]+","+$[0]+","+$[1]}function XQ(m,y,I){var U=2*Math.PI*6378137/256/Math.pow(2,I),$=m*U-2*Math.PI*6378137/2,ae=y*U-2*Math.PI*6378137/2;return[$,ae]}var lh=function(y,I){y&&(I?this.setSouthWest(y).setNorthEast(I):y.length===4?this.setSouthWest([y[0],y[1]]).setNorthEast([y[2],y[3]]):this.setSouthWest(y[0]).setNorthEast(y[1]))};lh.prototype.setNorthEast=function(y){return this._ne=y instanceof Hc?new Hc(y.lng,y.lat):Hc.convert(y),this},lh.prototype.setSouthWest=function(y){return this._sw=y instanceof Hc?new Hc(y.lng,y.lat):Hc.convert(y),this},lh.prototype.extend=function(y){var I=this._sw,U=this._ne,$,ae;if(y instanceof Hc)$=y,ae=y;else if(y instanceof lh){if($=y._sw,ae=y._ne,!$||!ae)return this}else{if(Array.isArray(y))if(y.length===4||y.every(Array.isArray)){var he=y;return this.extend(lh.convert(he))}else{var Oe=y;return this.extend(Hc.convert(Oe))}return this}return!I&&!U?(this._sw=new Hc($.lng,$.lat),this._ne=new Hc(ae.lng,ae.lat)):(I.lng=Math.min($.lng,I.lng),I.lat=Math.min($.lat,I.lat),U.lng=Math.max(ae.lng,U.lng),U.lat=Math.max(ae.lat,U.lat)),this},lh.prototype.getCenter=function(){return new Hc((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)},lh.prototype.getSouthWest=function(){return this._sw},lh.prototype.getNorthEast=function(){return this._ne},lh.prototype.getNorthWest=function(){return new Hc(this.getWest(),this.getNorth())},lh.prototype.getSouthEast=function(){return new Hc(this.getEast(),this.getSouth())},lh.prototype.getWest=function(){return this._sw.lng},lh.prototype.getSouth=function(){return this._sw.lat},lh.prototype.getEast=function(){return this._ne.lng},lh.prototype.getNorth=function(){return this._ne.lat},lh.prototype.toArray=function(){return[this._sw.toArray(),this._ne.toArray()]},lh.prototype.toString=function(){return"LngLatBounds("+this._sw.toString()+", "+this._ne.toString()+")"},lh.prototype.isEmpty=function(){return!(this._sw&&this._ne)},lh.prototype.contains=function(y){var I=Hc.convert(y),U=I.lng,$=I.lat,ae=this._sw.lat<=$&&$<=this._ne.lat,he=this._sw.lng<=U&&U<=this._ne.lng;return this._sw.lng>this._ne.lng&&(he=this._sw.lng>=U&&U>=this._ne.lng),ae&&he},lh.convert=function(y){return!y||y instanceof lh?y:new lh(y)};var ZQ=63710088e-1,Hc=function(y,I){if(isNaN(y)||isNaN(I))throw new Error("Invalid LngLat object: ("+y+", "+I+")");if(this.lng=+y,this.lat=+I,this.lat>90||this.lat<-90)throw new Error("Invalid LngLat latitude value: must be between -90 and 90")};Hc.prototype.wrap=function(){return new Hc(C(this.lng,-180,180),this.lat)},Hc.prototype.toArray=function(){return[this.lng,this.lat]},Hc.prototype.toString=function(){return"LngLat("+this.lng+", "+this.lat+")"},Hc.prototype.distanceTo=function(y){var I=Math.PI/180,U=this.lat*I,$=y.lat*I,ae=Math.sin(U)*Math.sin($)+Math.cos(U)*Math.cos($)*Math.cos((y.lng-this.lng)*I),he=ZQ*Math.acos(Math.min(ae,1));return he},Hc.prototype.toBounds=function(y){y===void 0&&(y=0);var I=40075017,U=360*y/I,$=U/Math.cos(Math.PI/180*this.lat);return new lh(new Hc(this.lng-$,this.lat-U),new Hc(this.lng+$,this.lat+U))},Hc.convert=function(y){if(y instanceof Hc)return y;if(Array.isArray(y)&&(y.length===2||y.length===3))return new Hc(Number(y[0]),Number(y[1]));if(!Array.isArray(y)&&typeof y=="object"&&y!==null)return new Hc(Number("lng"in y?y.lng:y.lon),Number(y.lat));throw new Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: , lat: }, an object {lon: , lat: }, or an array of [, ]")};var YQ=2*Math.PI*ZQ;function KQ(m){return YQ*Math.cos(m*Math.PI/180)}function JQ(m){return(180+m)/360}function $Q(m){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+m*Math.PI/360)))/360}function QQ(m,y){return m/KQ(y)}function Ret(m){return m*360-180}function hO(m){var y=180-m*360;return 360/Math.PI*Math.atan(Math.exp(y*Math.PI/180))-90}function Det(m,y){return m*KQ(hO(y))}function Fet(m){return 1/Math.cos(m*Math.PI/180)}var nb=function(y,I,U){U===void 0&&(U=0),this.x=+y,this.y=+I,this.z=+U};nb.fromLngLat=function(y,I){I===void 0&&(I=0);var U=Hc.convert(y);return new nb(JQ(U.lng),$Q(U.lat),QQ(I,U.lat))},nb.prototype.toLngLat=function(){return new Hc(Ret(this.x),hO(this.y))},nb.prototype.toAltitude=function(){return Det(this.z,this.y)},nb.prototype.meterInMercatorCoordinateUnits=function(){return 1/YQ*Fet(hO(this.y))};var ab=function(y,I,U){this.z=y,this.x=I,this.y=U,this.key=SS(0,y,y,I,U)};ab.prototype.equals=function(y){return this.z===y.z&&this.x===y.x&&this.y===y.y},ab.prototype.url=function(y,I){var U=Iet(this.x,this.y,this.z),$=zet(this.z,this.x,this.y);return y[(this.x+this.y)%y.length].replace("{prefix}",(this.x%16).toString(16)+(this.y%16).toString(16)).replace("{z}",String(this.z)).replace("{x}",String(this.x)).replace("{y}",String(I==="tms"?Math.pow(2,this.z)-this.y-1:this.y)).replace("{quadkey}",$).replace("{bbox-epsg-3857}",U)},ab.prototype.getTilePoint=function(y){var I=Math.pow(2,this.z);return new u((y.x*I-this.x)*Ci,(y.y*I-this.y)*Ci)},ab.prototype.toString=function(){return this.z+"/"+this.x+"/"+this.y};var eee=function(y,I){this.wrap=y,this.canonical=I,this.key=SS(y,I.z,I.z,I.x,I.y)},uh=function(y,I,U,$,ae){this.overscaledZ=y,this.wrap=I,this.canonical=new ab(U,+$,+ae),this.key=SS(I,y,U,$,ae)};uh.prototype.equals=function(y){return this.overscaledZ===y.overscaledZ&&this.wrap===y.wrap&&this.canonical.equals(y.canonical)},uh.prototype.scaledTo=function(y){var I=this.canonical.z-y;return y>this.canonical.z?new uh(y,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new uh(y,this.wrap,y,this.canonical.x>>I,this.canonical.y>>I)},uh.prototype.calculateScaledKey=function(y,I){var U=this.canonical.z-y;return y>this.canonical.z?SS(this.wrap*+I,y,this.canonical.z,this.canonical.x,this.canonical.y):SS(this.wrap*+I,y,y,this.canonical.x>>U,this.canonical.y>>U)},uh.prototype.isChildOf=function(y){if(y.wrap!==this.wrap)return!1;var I=this.canonical.z-y.canonical.z;return y.overscaledZ===0||y.overscaledZ>I&&y.canonical.y===this.canonical.y>>I},uh.prototype.children=function(y){if(this.overscaledZ>=y)return[new uh(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];var I=this.canonical.z+1,U=this.canonical.x*2,$=this.canonical.y*2;return[new uh(I,this.wrap,I,U,$),new uh(I,this.wrap,I,U+1,$),new uh(I,this.wrap,I,U,$+1),new uh(I,this.wrap,I,U+1,$+1)]},uh.prototype.isLessThan=function(y){return this.wrapy.wrap?!1:this.overscaledZy.overscaledZ?!1:this.canonical.xy.canonical.x?!1:this.canonical.y0;ae--)$=1<=this.dim+1||I<-1||I>=this.dim+1)throw new RangeError("out of range source coordinates for DEM data");return(I+1)*this.stride+(y+1)},dy.prototype._unpackMapbox=function(y,I,U){return(y*256*256+I*256+U)/10-1e4},dy.prototype._unpackTerrarium=function(y,I,U){return y*256+I+U/256-32768},dy.prototype.getPixels=function(){return new wh({width:this.stride,height:this.stride},new Uint8Array(this.data.buffer))},dy.prototype.backfillBorder=function(y,I,U){if(this.dim!==y.dim)throw new Error("dem dimension mismatch");var $=I*this.dim,ae=I*this.dim+this.dim,he=U*this.dim,Oe=U*this.dim+this.dim;switch(I){case-1:$=ae-1;break;case 1:ae=$+1;break}switch(U){case-1:he=Oe-1;break;case 1:Oe=he+1;break}for(var rt=-I*this.dim,gt=-U*this.dim,Mt=he;Mt=0&&or[3]>=0&&rt.insert(Oe,or[0],or[1],or[2],or[3])}},vy.prototype.loadVTLayers=function(){return this.vtLayers||(this.vtLayers=new pg.VectorTile(new Xa(this.rawTileData)).layers,this.sourceLayerCoder=new t6(this.vtLayers?Object.keys(this.vtLayers).sort():["_geojsonTileLayer"])),this.vtLayers},vy.prototype.query=function(y,I,U,$){var ae=this;this.loadVTLayers();for(var he=y.params||{},Oe=Ci/y.tileSize/y.scale,rt=be(he.filter),gt=y.queryGeometry,Mt=y.queryPadding*Oe,or=ree(gt),_r=this.grid.query(or.minX-Mt,or.minY-Mt,or.maxX+Mt,or.maxY+Mt),vr=ree(y.cameraQueryGeometry),Fr=this.grid3D.query(vr.minX-Mt,vr.minY-Mt,vr.maxX+Mt,vr.maxY+Mt,function(Zn,ga,ha,eo){return vp(y.cameraQueryGeometry,Zn-Mt,ga-Mt,ha+Mt,eo+Mt)}),ai=0,Gi=Fr;ai$)ae=!1;else if(!I)ae=!0;else if(this.expirationTime=Ga.maxzoom)&&Ga.visibility!=="none"){h(Wn,this.zoom,ar);var vo=Ji[Ga.id]=Ga.createBucket({index:zi.bucketLayerIDs.length,layers:Wn,zoom:this.zoom,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:Ba,sourceID:this.source});vo.populate(la,en,this.tileID.canonical),zi.bucketLayerIDs.push(Wn.map(function(ki){return ki.id}))}}}}var jn,St,Cr,Qr,pi=i.mapObject(en.glyphDependencies,function(ki){return Object.keys(ki).map(Number)});Object.keys(pi).length?Er.send("getGlyphs",{uid:this.uid,stacks:pi},function(ki,_n){jn||(jn=ki,St=_n,En.call(ri))}):St={};var fn=Object.keys(en.iconDependencies);fn.length?Er.send("getImages",{icons:fn,source:this.source,tileID:this.tileID,type:"icons"},function(ki,_n){jn||(jn=ki,Cr=_n,En.call(ri))}):Cr={};var Sn=Object.keys(en.patternDependencies);Sn.length?Er.send("getImages",{icons:Sn,source:this.source,tileID:this.tileID,type:"patterns"},function(ki,_n){jn||(jn=ki,Qr=_n,En.call(ri))}):Qr={},En.call(this);function En(){if(jn)return Zr(jn);if(St&&Cr&&Qr){var ki=new c(St),_n=new i.ImageAtlas(Cr,Qr);for(var ya in Ji){var Jn=Ji[ya];Jn instanceof i.SymbolBucket?(h(Jn.layers,this.zoom,ar),i.performSymbolLayout(Jn,St,ki.positions,Cr,_n.iconPositions,this.showCollisionBoxes,this.tileID.canonical)):Jn.hasPattern&&(Jn instanceof i.LineBucket||Jn instanceof i.FillBucket||Jn instanceof i.FillExtrusionBucket)&&(h(Jn.layers,this.zoom,ar),Jn.addFeatures(en,this.tileID.canonical,_n.patternPositions))}this.status="done",Zr(null,{buckets:i.values(Ji).filter(function(Ma){return!Ma.isEmpty()}),featureIndex:zi,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:ki.image,imageAtlas:_n,glyphMap:this.returnDependencies?St:null,iconMap:this.returnDependencies?Cr:null,glyphPositions:this.returnDependencies?ki.positions:null})}}};function h(Vt,_t,tr){for(var ar=new i.EvaluationParameters(_t),Er=0,Zr=Vt;Er=0!=!!_t&&Vt.reverse()}var L=i.vectorTile.VectorTileFeature.prototype.toGeoJSON,_=function(_t){this._feature=_t,this.extent=i.EXTENT,this.type=_t.type,this.properties=_t.tags,"id"in _t&&!isNaN(_t.id)&&(this.id=parseInt(_t.id,10))};_.prototype.loadGeometry=function(){if(this._feature.type===1){for(var _t=[],tr=0,ar=this._feature.geometry;tr>31}function ke(Vt,_t){for(var tr=Vt.loadGeometry(),ar=Vt.type,Er=0,Zr=0,ri=tr.length,$r=0;$r>1;Se(Vt,_t,ri,ar,Er,Zr%2),ie(Vt,_t,tr,ar,ri-1,Zr+1),ie(Vt,_t,tr,ri+1,Er,Zr+1)}}function Se(Vt,_t,tr,ar,Er,Zr){for(;Er>ar;){if(Er-ar>600){var ri=Er-ar+1,$r=tr-ar+1,zi=Math.log(ri),Ji=.5*Math.exp(2*zi/3),en=.5*Math.sqrt(zi*Ji*(ri-Ji)/ri)*($r-ri/2<0?-1:1),cn=Math.max(ar,Math.floor(tr-$r*Ji/ri+en)),yn=Math.min(Er,Math.floor(tr+(ri-$r)*Ji/ri+en));Se(Vt,_t,tr,cn,yn,Zr)}var Mn=_t[2*tr+Zr],Ba=ar,la=Er;for(Le(Vt,_t,ar,tr),_t[2*Er+Zr]>Mn&&Le(Vt,_t,ar,Er);BaMn;)la--}_t[2*ar+Zr]===Mn?Le(Vt,_t,ar,la):(la++,Le(Vt,_t,la,Er)),la<=tr&&(ar=la+1),tr<=la&&(Er=la-1)}}function Le(Vt,_t,tr,ar){Ae(Vt,tr,ar),Ae(_t,2*tr,2*ar),Ae(_t,2*tr+1,2*ar+1)}function Ae(Vt,_t,tr){var ar=Vt[_t];Vt[_t]=Vt[tr],Vt[tr]=ar}function De(Vt,_t,tr,ar,Er,Zr,ri){for(var $r=[0,Vt.length-1,0],zi=[],Ji,en;$r.length;){var cn=$r.pop(),yn=$r.pop(),Mn=$r.pop();if(yn-Mn<=ri){for(var Ba=Mn;Ba<=yn;Ba++)Ji=_t[2*Ba],en=_t[2*Ba+1],Ji>=tr&&Ji<=Er&&en>=ar&&en<=Zr&&zi.push(Vt[Ba]);continue}var la=Math.floor((Mn+yn)/2);Ji=_t[2*la],en=_t[2*la+1],Ji>=tr&&Ji<=Er&&en>=ar&&en<=Zr&&zi.push(Vt[la]);var ma=(cn+1)%2;(cn===0?tr<=Ji:ar<=en)&&($r.push(Mn),$r.push(la-1),$r.push(ma)),(cn===0?Er>=Ji:Zr>=en)&&($r.push(la+1),$r.push(yn),$r.push(ma))}return zi}function Pe(Vt,_t,tr,ar,Er,Zr){for(var ri=[0,Vt.length-1,0],$r=[],zi=Er*Er;ri.length;){var Ji=ri.pop(),en=ri.pop(),cn=ri.pop();if(en-cn<=Zr){for(var yn=cn;yn<=en;yn++)ge(_t[2*yn],_t[2*yn+1],tr,ar)<=zi&&$r.push(Vt[yn]);continue}var Mn=Math.floor((cn+en)/2),Ba=_t[2*Mn],la=_t[2*Mn+1];ge(Ba,la,tr,ar)<=zi&&$r.push(Vt[Mn]);var ma=(Ji+1)%2;(Ji===0?tr-Er<=Ba:ar-Er<=la)&&(ri.push(cn),ri.push(Mn-1),ri.push(ma)),(Ji===0?tr+Er>=Ba:ar+Er>=la)&&(ri.push(Mn+1),ri.push(en),ri.push(ma))}return $r}function ge(Vt,_t,tr,ar){var Er=Vt-tr,Zr=_t-ar;return Er*Er+Zr*Zr}var Fe=function(Vt){return Vt[0]},ce=function(Vt){return Vt[1]},Ze=function(_t,tr,ar,Er,Zr){tr===void 0&&(tr=Fe),ar===void 0&&(ar=ce),Er===void 0&&(Er=64),Zr===void 0&&(Zr=Float64Array),this.nodeSize=Er,this.points=_t;for(var ri=_t.length<65536?Uint16Array:Uint32Array,$r=this.ids=new ri(_t.length),zi=this.coords=new Zr(_t.length*2),Ji=0;Ji<_t.length;Ji++)$r[Ji]=Ji,zi[2*Ji]=tr(_t[Ji]),zi[2*Ji+1]=ar(_t[Ji]);ie($r,zi,Er,0,$r.length-1,0)};Ze.prototype.range=function(_t,tr,ar,Er){return De(this.ids,this.coords,_t,tr,ar,Er,this.nodeSize)},Ze.prototype.within=function(_t,tr,ar){return Pe(this.ids,this.coords,_t,tr,ar,this.nodeSize)};var ct={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:function(Vt){return Vt}},pt=function(_t){this.options=ur(Object.create(ct),_t),this.trees=new Array(this.options.maxZoom+1)};pt.prototype.load=function(_t){var tr=this.options,ar=tr.log,Er=tr.minZoom,Zr=tr.maxZoom,ri=tr.nodeSize;ar&&console.time("total time");var $r="prepare "+_t.length+" points";ar&&console.time($r),this.points=_t;for(var zi=[],Ji=0;Ji<_t.length;Ji++)_t[Ji].geometry&&zi.push(st(_t[Ji],Ji));this.trees[Zr+1]=new Ze(zi,Qe,Et,ri,Float32Array),ar&&console.timeEnd($r);for(var en=Zr;en>=Er;en--){var cn=+Date.now();zi=this._cluster(zi,en),this.trees[en]=new Ze(zi,Qe,Et,ri,Float32Array),ar&&console.log("z%d: %d clusters in %dms",en,zi.length,+Date.now()-cn)}return ar&&console.timeEnd("total time"),this},pt.prototype.getClusters=function(_t,tr){var ar=((_t[0]+180)%360+360)%360-180,Er=Math.max(-90,Math.min(90,_t[1])),Zr=_t[2]===180?180:((_t[2]+180)%360+360)%360-180,ri=Math.max(-90,Math.min(90,_t[3]));if(_t[2]-_t[0]>=360)ar=-180,Zr=180;else if(ar>Zr){var $r=this.getClusters([ar,Er,180,ri],tr),zi=this.getClusters([-180,Er,Zr,ri],tr);return $r.concat(zi)}for(var Ji=this.trees[this._limitZoom(tr)],en=Ji.range(Nt(ar),$t(ri),Nt(Zr),$t(Er)),cn=[],yn=0,Mn=en;yntr&&(la+=Wo.numPoints||1)}if(la>=zi){for(var da=cn.x*Ba,Wn=cn.y*Ba,Ga=$r&&Ba>1?this._map(cn,!0):null,vo=(en<<5)+(tr+1)+this.points.length,jn=0,St=Mn;jn1)for(var fn=0,Sn=Mn;fn>5},pt.prototype._getOriginZoom=function(_t){return(_t-this.points.length)%32},pt.prototype._map=function(_t,tr){if(_t.numPoints)return tr?ur({},_t.properties):_t.properties;var ar=this.points[_t.index].properties,Er=this.options.map(ar);return tr&&Er===ar?ur({},Er):Er};function Wt(Vt,_t,tr,ar,Er){return{x:Vt,y:_t,zoom:1/0,id:tr,parentId:-1,numPoints:ar,properties:Er}}function st(Vt,_t){var tr=Vt.geometry.coordinates,ar=tr[0],Er=tr[1];return{x:Nt(ar),y:$t(Er),zoom:1/0,index:_t,parentId:-1}}function lt(Vt){return{type:"Feature",id:Vt.id,properties:Gt(Vt),geometry:{type:"Point",coordinates:[sr(Vt.x),wr(Vt.y)]}}}function Gt(Vt){var _t=Vt.numPoints,tr=_t>=1e4?Math.round(_t/1e3)+"k":_t>=1e3?Math.round(_t/100)/10+"k":_t;return ur(ur({},Vt.properties),{cluster:!0,cluster_id:Vt.id,point_count:_t,point_count_abbreviated:tr})}function Nt(Vt){return Vt/360+.5}function $t(Vt){var _t=Math.sin(Vt*Math.PI/180),tr=.5-.25*Math.log((1+_t)/(1-_t))/Math.PI;return tr<0?0:tr>1?1:tr}function sr(Vt){return(Vt-.5)*360}function wr(Vt){var _t=(180-Vt*360)*Math.PI/180;return 360*Math.atan(Math.exp(_t))/Math.PI-90}function ur(Vt,_t){for(var tr in _t)Vt[tr]=_t[tr];return Vt}function Qe(Vt){return Vt.x}function Et(Vt){return Vt.y}function er(Vt,_t,tr,ar){for(var Er=ar,Zr=tr-_t>>1,ri=tr-_t,$r,zi=Vt[_t],Ji=Vt[_t+1],en=Vt[tr],cn=Vt[tr+1],yn=_t+3;ynEr)$r=yn,Er=Mn;else if(Mn===Er){var Ba=Math.abs(yn-Zr);Baar&&($r-_t>3&&er(Vt,_t,$r,ar),Vt[$r+2]=Er,tr-$r>3&&er(Vt,$r,tr,ar))}function Ut(Vt,_t,tr,ar,Er,Zr){var ri=Er-tr,$r=Zr-ar;if(ri!==0||$r!==0){var zi=((Vt-tr)*ri+(_t-ar)*$r)/(ri*ri+$r*$r);zi>1?(tr=Er,ar=Zr):zi>0&&(tr+=ri*zi,ar+=$r*zi)}return ri=Vt-tr,$r=_t-ar,ri*ri+$r*$r}function Ft(Vt,_t,tr,ar){var Er={id:typeof Vt=="undefined"?null:Vt,type:_t,geometry:tr,tags:ar,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};return bt(Er),Er}function bt(Vt){var _t=Vt.geometry,tr=Vt.type;if(tr==="Point"||tr==="MultiPoint"||tr==="LineString")yt(Vt,_t);else if(tr==="Polygon"||tr==="MultiLineString")for(var ar=0;ar<_t.length;ar++)yt(Vt,_t[ar]);else if(tr==="MultiPolygon")for(ar=0;ar<_t.length;ar++)for(var Er=0;Er<_t[ar].length;Er++)yt(Vt,_t[ar][Er])}function yt(Vt,_t){for(var tr=0;tr<_t.length;tr+=3)Vt.minX=Math.min(Vt.minX,_t[tr]),Vt.minY=Math.min(Vt.minY,_t[tr+1]),Vt.maxX=Math.max(Vt.maxX,_t[tr]),Vt.maxY=Math.max(Vt.maxY,_t[tr+1])}function Yt(Vt,_t){var tr=[];if(Vt.type==="FeatureCollection")for(var ar=0;ar0&&(ar?ri+=(Er*Ji-zi*Zr)/2:ri+=Math.sqrt(Math.pow(zi-Er,2)+Math.pow(Ji-Zr,2))),Er=zi,Zr=Ji}var en=_t.length-3;_t[2]=1,er(_t,0,en,tr),_t[en+2]=1,_t.size=Math.abs(ri),_t.start=0,_t.end=_t.size}function ei(Vt,_t,tr,ar){for(var Er=0;Er1?1:tr}function dt(Vt,_t,tr,ar,Er,Zr,ri,$r){if(tr/=_t,ar/=_t,Zr>=tr&&ri=ar)return null;for(var zi=[],Ji=0;Ji=tr&&Ba=ar)continue;var la=[];if(yn==="Point"||yn==="MultiPoint")Ge(cn,la,tr,ar,Er);else if(yn==="LineString")Je(cn,la,tr,ar,Er,!1,$r.lineMetrics);else if(yn==="MultiLineString")$e(cn,la,tr,ar,Er,!1);else if(yn==="Polygon")$e(cn,la,tr,ar,Er,!0);else if(yn==="MultiPolygon")for(var ma=0;ma=tr&&ri<=ar&&(_t.push(Vt[Zr]),_t.push(Vt[Zr+1]),_t.push(Vt[Zr+2]))}}function Je(Vt,_t,tr,ar,Er,Zr,ri){for(var $r=je(Vt),zi=Er===0?Ie:xe,Ji=Vt.start,en,cn,yn=0;yntr&&(cn=zi($r,Mn,Ba,ma,Wa,tr),ri&&($r.start=Ji+en*cn)):Fa>ar?Wo=tr&&(cn=zi($r,Mn,Ba,ma,Wa,tr),da=!0),Wo>ar&&Fa<=ar&&(cn=zi($r,Mn,Ba,ma,Wa,ar),da=!0),!Zr&&da&&(ri&&($r.end=Ji+en*cn),_t.push($r),$r=je(Vt)),ri&&(Ji+=en)}var Wn=Vt.length-3;Mn=Vt[Wn],Ba=Vt[Wn+1],la=Vt[Wn+2],Fa=Er===0?Mn:Ba,Fa>=tr&&Fa<=ar&&wt($r,Mn,Ba,la),Wn=$r.length-3,Zr&&Wn>=3&&($r[Wn]!==$r[0]||$r[Wn+1]!==$r[1])&&wt($r,$r[0],$r[1],$r[2]),$r.length&&_t.push($r)}function je(Vt){var _t=[];return _t.size=Vt.size,_t.start=Vt.start,_t.end=Vt.end,_t}function $e(Vt,_t,tr,ar,Er,Zr){for(var ri=0;riri.maxX&&(ri.maxX=en),cn>ri.maxY&&(ri.maxY=cn)}return ri}function di(Vt,_t,tr,ar){var Er=_t.geometry,Zr=_t.type,ri=[];if(Zr==="Point"||Zr==="MultiPoint")for(var $r=0;$r0&&_t.size<(Er?ri:ar)){tr.numPoints+=_t.length/3;return}for(var $r=[],zi=0;zi<_t.length;zi+=3)(ar===0||_t[zi+2]>ri)&&(tr.numSimplified++,$r.push(_t[zi]),$r.push(_t[zi+1])),tr.numPoints++;Er&&fi($r,Zr),Vt.push($r)}function fi(Vt,_t){for(var tr=0,ar=0,Er=Vt.length,Zr=Er-2;ar0===_t)for(ar=0,Er=Vt.length;ar24)throw new Error("maxZoom should be in the 0-24 range");if(_t.promoteId&&_t.generateId)throw new Error("promoteId and generateId cannot be used together.");var ar=Yt(Vt,_t);this.tiles={},this.tileCoords=[],tr&&(console.timeEnd("preprocess data"),console.log("index: maxZoom: %d, maxPoints: %d",_t.indexMaxZoom,_t.indexMaxPoints),console.time("generate tiles"),this.stats={},this.total=0),ar=Ce(ar,_t),ar.length&&this.splitTile(ar,0,0,0),tr&&(ar.length&&console.log("features: %d, points: %d",this.tiles[0].numFeatures,this.tiles[0].numPoints),console.timeEnd("generate tiles"),console.log("tiles generated:",this.total,JSON.stringify(this.stats)))}Pn.prototype.options={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,tolerance:3,extent:4096,buffer:64,lineMetrics:!1,promoteId:null,generateId:!1,debug:0},Pn.prototype.splitTile=function(Vt,_t,tr,ar,Er,Zr,ri){for(var $r=[Vt,_t,tr,ar],zi=this.options,Ji=zi.debug;$r.length;){ar=$r.pop(),tr=$r.pop(),_t=$r.pop(),Vt=$r.pop();var en=1<<_t,cn=wn(_t,tr,ar),yn=this.tiles[cn];if(!yn&&(Ji>1&&console.time("creation"),yn=this.tiles[cn]=oi(Vt,_t,tr,ar,zi),this.tileCoords.push({z:_t,x:tr,y:ar}),Ji)){Ji>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",_t,tr,ar,yn.numFeatures,yn.numPoints,yn.numSimplified),console.timeEnd("creation"));var Mn="z"+_t;this.stats[Mn]=(this.stats[Mn]||0)+1,this.total++}if(yn.source=Vt,Er){if(_t===zi.maxZoom||_t===Er)continue;var Ba=1<1&&console.time("clipping");var la=.5*zi.buffer/zi.extent,ma=.5-la,Wa=.5+la,Fa=1+la,Wo,da,Wn,Ga,vo,jn;Wo=da=Wn=Ga=null,vo=dt(Vt,en,tr-la,tr+Wa,0,yn.minX,yn.maxX,zi),jn=dt(Vt,en,tr+ma,tr+Fa,0,yn.minX,yn.maxX,zi),Vt=null,vo&&(Wo=dt(vo,en,ar-la,ar+Wa,1,yn.minY,yn.maxY,zi),da=dt(vo,en,ar+ma,ar+Fa,1,yn.minY,yn.maxY,zi),vo=null),jn&&(Wn=dt(jn,en,ar-la,ar+Wa,1,yn.minY,yn.maxY,zi),Ga=dt(jn,en,ar+ma,ar+Fa,1,yn.minY,yn.maxY,zi),jn=null),Ji>1&&console.timeEnd("clipping"),$r.push(Wo||[],_t+1,tr*2,ar*2),$r.push(da||[],_t+1,tr*2,ar*2+1),$r.push(Wn||[],_t+1,tr*2+1,ar*2),$r.push(Ga||[],_t+1,tr*2+1,ar*2+1)}}},Pn.prototype.getTile=function(Vt,_t,tr){var ar=this.options,Er=ar.extent,Zr=ar.debug;if(Vt<0||Vt>24)return null;var ri=1<1&&console.log("drilling down to z%d-%d-%d",Vt,_t,tr);for(var zi=Vt,Ji=_t,en=tr,cn;!cn&&zi>0;)zi--,Ji=Math.floor(Ji/2),en=Math.floor(en/2),cn=this.tiles[wn(zi,Ji,en)];return!cn||!cn.source?null:(Zr>1&&console.log("found parent tile z%d-%d-%d",zi,Ji,en),Zr>1&&console.time("drilling down"),this.splitTile(cn.source,zi,Ji,en,Vt,_t,tr),Zr>1&&console.timeEnd("drilling down"),this.tiles[$r]?ir(this.tiles[$r],Er):null)};function wn(Vt,_t,tr){return((1<=0?0:Y.button},o.remove=function(Y){Y.parentNode&&Y.parentNode.removeChild(Y)};function x(Y,D,J){var q,K,de,ne=i.browser.devicePixelRatio>1?"@2x":"",we=i.getJSON(D.transformRequest(D.normalizeSpriteURL(Y,ne,".json"),i.ResourceType.SpriteJSON),function(Zt,hr){we=null,de||(de=Zt,q=hr,ft())}),Ue=i.getImage(D.transformRequest(D.normalizeSpriteURL(Y,ne,".png"),i.ResourceType.SpriteImage),function(Zt,hr){Ue=null,de||(de=Zt,K=hr,ft())});function ft(){if(de)J(de);else if(q&&K){var Zt=i.browser.getImageData(K),hr={};for(var qt in q){var Ve=q[qt],et=Ve.width,at=Ve.height,kt=Ve.x,Ot=Ve.y,It=Ve.sdf,Bt=Ve.pixelRatio,Rt=Ve.stretchX,mt=Ve.stretchY,Pt=Ve.content,ht=new i.RGBAImage({width:et,height:at});i.RGBAImage.copy(Zt,ht,{x:kt,y:Ot},{x:0,y:0},{width:et,height:at}),hr[qt]={data:ht,pixelRatio:Bt,sdf:It,stretchX:Rt,stretchY:mt,content:Pt}}J(null,hr)}}return{cancel:function(){we&&(we.cancel(),we=null),Ue&&(Ue.cancel(),Ue=null)}}}function b(Y){var D=Y.userImage;if(D&&D.render){var J=D.render();if(J)return Y.data.replace(new Uint8Array(D.data.buffer)),!0}return!1}var p=1,C=function(Y){function D(){Y.call(this),this.images={},this.updatedImages={},this.callbackDispatchedThisFrame={},this.loaded=!1,this.requestors=[],this.patterns={},this.atlasImage=new i.RGBAImage({width:1,height:1}),this.dirty=!0}return Y&&(D.__proto__=Y),D.prototype=Object.create(Y&&Y.prototype),D.prototype.constructor=D,D.prototype.isLoaded=function(){return this.loaded},D.prototype.setLoaded=function(q){if(this.loaded!==q&&(this.loaded=q,q)){for(var K=0,de=this.requestors;K=0?1.2:1))}k.prototype.draw=function(Y){this.ctx.clearRect(0,0,this.size,this.size),this.ctx.fillText(Y,this.buffer,this.middle);for(var D=this.ctx.getImageData(0,0,this.size,this.size),J=new Uint8ClampedArray(this.size*this.size),q=0;q65535){Zt(new Error("glyphs > 65535 not supported"));return}if(Ve.ranges[at]){Zt(null,{stack:hr,id:qt,glyph:et});return}var kt=Ve.requests[at];kt||(kt=Ve.requests[at]=[],P.loadGlyphRange(hr,at,q.url,q.requestManager,function(Ot,It){if(It){for(var Bt in It)q._doesCharSupportLocalGlyph(+Bt)||(Ve.glyphs[+Bt]=It[+Bt]);Ve.ranges[at]=!0}for(var Rt=0,mt=kt;Rt1&&(ft=D[++Ue]);var hr=Math.abs(Zt-ft.left),qt=Math.abs(Zt-ft.right),Ve=Math.min(hr,qt),et=void 0,at=de/q*(K+1);if(ft.isDash){var kt=K-Math.abs(at);et=Math.sqrt(Ve*Ve+kt*kt)}else et=K-Math.sqrt(Ve*Ve+at*at);this.data[we+Zt]=Math.max(0,Math.min(255,et+128))}},G.prototype.addRegularDash=function(D){for(var J=D.length-1;J>=0;--J){var q=D[J],K=D[J+1];q.zeroLength?D.splice(J,1):K&&K.isDash===q.isDash&&(K.left=q.left,D.splice(J,1))}var de=D[0],ne=D[D.length-1];de.isDash===ne.isDash&&(de.left=ne.left-this.width,ne.right=de.right+this.width);for(var we=this.width*this.nextRow,Ue=0,ft=D[Ue],Zt=0;Zt1&&(ft=D[++Ue]);var hr=Math.abs(Zt-ft.left),qt=Math.abs(Zt-ft.right),Ve=Math.min(hr,qt),et=ft.isDash?Ve:-Ve;this.data[we+Zt]=Math.max(0,Math.min(255,et+128))}},G.prototype.addDash=function(D,J){var q=J?7:0,K=2*q+1;if(this.nextRow+K>this.height)return i.warnOnce("LineAtlas out of space"),null;for(var de=0,ne=0;ne=q.minX&&D.x=q.minY&&D.y0&&(Zt[new i.OverscaledTileID(q.overscaledZ,we,K.z,ne,K.y-1).key]={backfilled:!1},Zt[new i.OverscaledTileID(q.overscaledZ,q.wrap,K.z,K.x,K.y-1).key]={backfilled:!1},Zt[new i.OverscaledTileID(q.overscaledZ,ft,K.z,Ue,K.y-1).key]={backfilled:!1}),K.y+10&&(de.resourceTiming=q._resourceTiming,q._resourceTiming=[]),q.fire(new i.Event("data",de))})},D.prototype.onAdd=function(q){this.map=q,this.load()},D.prototype.setData=function(q){var K=this;return this._data=q,this.fire(new i.Event("dataloading",{dataType:"source"})),this._updateWorkerData(function(de){if(de){K.fire(new i.ErrorEvent(de));return}var ne={dataType:"source",sourceDataType:"content"};K._collectResourceTiming&&K._resourceTiming&&K._resourceTiming.length>0&&(ne.resourceTiming=K._resourceTiming,K._resourceTiming=[]),K.fire(new i.Event("data",ne))}),this},D.prototype.getClusterExpansionZoom=function(q,K){return this.actor.send("geojson.getClusterExpansionZoom",{clusterId:q,source:this.id},K),this},D.prototype.getClusterChildren=function(q,K){return this.actor.send("geojson.getClusterChildren",{clusterId:q,source:this.id},K),this},D.prototype.getClusterLeaves=function(q,K,de,ne){return this.actor.send("geojson.getClusterLeaves",{source:this.id,clusterId:q,limit:K,offset:de},ne),this},D.prototype._updateWorkerData=function(q){var K=this;this._loaded=!1;var de=i.extend({},this.workerOptions),ne=this._data;typeof ne=="string"?(de.request=this.map._requestManager.transformRequest(i.browser.resolveURL(ne),i.ResourceType.Source),de.request.collectResourceTiming=this._collectResourceTiming):de.data=JSON.stringify(ne),this.actor.send(this.type+".loadData",de,function(we,Ue){K._removed||Ue&&Ue.abandoned||(K._loaded=!0,Ue&&Ue.resourceTiming&&Ue.resourceTiming[K.id]&&(K._resourceTiming=Ue.resourceTiming[K.id].slice(0)),K.actor.send(K.type+".coalesce",{source:de.source},null),q(we))})},D.prototype.loaded=function(){return this._loaded},D.prototype.loadTile=function(q,K){var de=this,ne=q.actor?"reloadTile":"loadTile";q.actor=this.actor;var we={type:this.type,uid:q.uid,tileID:q.tileID,zoom:q.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:i.browser.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId};q.request=this.actor.send(ne,we,function(Ue,ft){return delete q.request,q.unloadVectorData(),q.aborted?K(null):Ue?K(Ue):(q.loadVectorData(ft,de.map.painter,ne==="reloadTile"),K(null))})},D.prototype.abortTile=function(q){q.request&&(q.request.cancel(),delete q.request),q.aborted=!0},D.prototype.unloadTile=function(q){q.unloadVectorData(),this.actor.send("removeTile",{uid:q.uid,type:this.type,source:this.id})},D.prototype.onRemove=function(){this._removed=!0,this.actor.send("removeSource",{type:this.type,source:this.id})},D.prototype.serialize=function(){return i.extend({},this._options,{type:this.type,data:this._data})},D.prototype.hasTransition=function(){return!1},D}(i.Evented),Me=i.createLayout([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]),ke=function(Y){function D(J,q,K,de){Y.call(this),this.id=J,this.dispatcher=K,this.coordinates=q.coordinates,this.type="image",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent(de),this.options=q}return Y&&(D.__proto__=Y),D.prototype=Object.create(Y&&Y.prototype),D.prototype.constructor=D,D.prototype.load=function(q,K){var de=this;this._loaded=!1,this.fire(new i.Event("dataloading",{dataType:"source"})),this.url=this.options.url,i.getImage(this.map._requestManager.transformRequest(this.url,i.ResourceType.Image),function(ne,we){de._loaded=!0,ne?de.fire(new i.ErrorEvent(ne)):we&&(de.image=we,q&&(de.coordinates=q),K&&K(),de._finishLoading())})},D.prototype.loaded=function(){return this._loaded},D.prototype.updateImage=function(q){var K=this;return!this.image||!q.url?this:(this.options.url=q.url,this.load(q.coordinates,function(){K.texture=null}),this)},D.prototype._finishLoading=function(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new i.Event("data",{dataType:"source",sourceDataType:"metadata"})))},D.prototype.onAdd=function(q){this.map=q,this.load()},D.prototype.setCoordinates=function(q){var K=this;this.coordinates=q;var de=q.map(i.MercatorCoordinate.fromLngLat);this.tileID=me(de),this.minzoom=this.maxzoom=this.tileID.z;var ne=de.map(function(we){return K.tileID.getTilePoint(we)._round()});return this._boundsArray=new i.StructArrayLayout4i8,this._boundsArray.emplaceBack(ne[0].x,ne[0].y,0,0),this._boundsArray.emplaceBack(ne[1].x,ne[1].y,i.EXTENT,0),this._boundsArray.emplaceBack(ne[3].x,ne[3].y,0,i.EXTENT),this._boundsArray.emplaceBack(ne[2].x,ne[2].y,i.EXTENT,i.EXTENT),this.boundsBuffer&&(this.boundsBuffer.destroy(),delete this.boundsBuffer),this.fire(new i.Event("data",{dataType:"source",sourceDataType:"content"})),this},D.prototype.prepare=function(){if(!(Object.keys(this.tiles).length===0||!this.image)){var q=this.map.painter.context,K=q.gl;this.boundsBuffer||(this.boundsBuffer=q.createVertexBuffer(this._boundsArray,Me.members)),this.boundsSegments||(this.boundsSegments=i.SegmentVector.simpleSegment(0,0,4,2)),this.texture||(this.texture=new i.Texture(q,this.image,K.RGBA),this.texture.bind(K.LINEAR,K.CLAMP_TO_EDGE));for(var de in this.tiles){var ne=this.tiles[de];ne.state!=="loaded"&&(ne.state="loaded",ne.texture=this.texture)}}},D.prototype.loadTile=function(q,K){this.tileID&&this.tileID.equals(q.tileID.canonical)?(this.tiles[String(q.tileID.wrap)]=q,q.buckets={},K(null)):(q.state="errored",K(null))},D.prototype.serialize=function(){return{type:"image",url:this.options.url,coordinates:this.coordinates}},D.prototype.hasTransition=function(){return!1},D}(i.Evented);function me(Y){for(var D=1/0,J=1/0,q=-1/0,K=-1/0,de=0,ne=Y;deK.end(0)?this.fire(new i.ErrorEvent(new i.ValidationError("sources."+this.id,null,"Playback for this video can be set only between the "+K.start(0)+" and "+K.end(0)+"-second mark."))):this.video.currentTime=q}},D.prototype.getVideo=function(){return this.video},D.prototype.onAdd=function(q){this.map||(this.map=q,this.load(),this.video&&(this.video.play(),this.setCoordinates(this.coordinates)))},D.prototype.prepare=function(){if(!(Object.keys(this.tiles).length===0||this.video.readyState<2)){var q=this.map.painter.context,K=q.gl;this.boundsBuffer||(this.boundsBuffer=q.createVertexBuffer(this._boundsArray,Me.members)),this.boundsSegments||(this.boundsSegments=i.SegmentVector.simpleSegment(0,0,4,2)),this.texture?this.video.paused||(this.texture.bind(K.LINEAR,K.CLAMP_TO_EDGE),K.texSubImage2D(K.TEXTURE_2D,0,0,0,K.RGBA,K.UNSIGNED_BYTE,this.video)):(this.texture=new i.Texture(q,this.video,K.RGBA),this.texture.bind(K.LINEAR,K.CLAMP_TO_EDGE));for(var de in this.tiles){var ne=this.tiles[de];ne.state!=="loaded"&&(ne.state="loaded",ne.texture=this.texture)}}},D.prototype.serialize=function(){return{type:"video",urls:this.urls,coordinates:this.coordinates}},D.prototype.hasTransition=function(){return this.video&&!this.video.paused},D}(ke),Se=function(Y){function D(J,q,K,de){Y.call(this,J,q,K,de),q.coordinates?(!Array.isArray(q.coordinates)||q.coordinates.length!==4||q.coordinates.some(function(ne){return!Array.isArray(ne)||ne.length!==2||ne.some(function(we){return typeof we!="number"})}))&&this.fire(new i.ErrorEvent(new i.ValidationError("sources."+J,null,'"coordinates" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new i.ErrorEvent(new i.ValidationError("sources."+J,null,'missing required property "coordinates"'))),q.animate&&typeof q.animate!="boolean"&&this.fire(new i.ErrorEvent(new i.ValidationError("sources."+J,null,'optional "animate" property must be a boolean value'))),q.canvas?typeof q.canvas!="string"&&!(q.canvas instanceof i.window.HTMLCanvasElement)&&this.fire(new i.ErrorEvent(new i.ValidationError("sources."+J,null,'"canvas" must be either a string representing the ID of the canvas element from which to read, or an HTMLCanvasElement instance'))):this.fire(new i.ErrorEvent(new i.ValidationError("sources."+J,null,'missing required property "canvas"'))),this.options=q,this.animate=q.animate!==void 0?q.animate:!0}return Y&&(D.__proto__=Y),D.prototype=Object.create(Y&&Y.prototype),D.prototype.constructor=D,D.prototype.load=function(){if(this._loaded=!0,this.canvas||(this.canvas=this.options.canvas instanceof i.window.HTMLCanvasElement?this.options.canvas:i.window.document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()){this.fire(new i.ErrorEvent(new Error("Canvas dimensions cannot be less than or equal to zero.")));return}this.play=function(){this._playing=!0,this.map.triggerRepaint()},this.pause=function(){this._playing&&(this.prepare(),this._playing=!1)},this._finishLoading()},D.prototype.getCanvas=function(){return this.canvas},D.prototype.onAdd=function(q){this.map=q,this.load(),this.canvas&&this.animate&&this.play()},D.prototype.onRemove=function(){this.pause()},D.prototype.prepare=function(){var q=!1;if(this.canvas.width!==this.width&&(this.width=this.canvas.width,q=!0),this.canvas.height!==this.height&&(this.height=this.canvas.height,q=!0),!this._hasInvalidDimensions()&&Object.keys(this.tiles).length!==0){var K=this.map.painter.context,de=K.gl;this.boundsBuffer||(this.boundsBuffer=K.createVertexBuffer(this._boundsArray,Me.members)),this.boundsSegments||(this.boundsSegments=i.SegmentVector.simpleSegment(0,0,4,2)),this.texture?(q||this._playing)&&this.texture.update(this.canvas,{premultiply:!0}):this.texture=new i.Texture(K,this.canvas,de.RGBA,{premultiply:!0});for(var ne in this.tiles){var we=this.tiles[ne];we.state!=="loaded"&&(we.state="loaded",we.texture=this.texture)}}},D.prototype.serialize=function(){return{type:"canvas",coordinates:this.coordinates}},D.prototype.hasTransition=function(){return this._playing},D.prototype._hasInvalidDimensions=function(){for(var q=0,K=[this.canvas.width,this.canvas.height];qthis.max){var we=this._getAndRemoveByKey(this.order[0]);we&&this.onRemove(we)}return this},st.prototype.has=function(D){return D.wrapped().key in this.data},st.prototype.getAndRemove=function(D){return this.has(D)?this._getAndRemoveByKey(D.wrapped().key):null},st.prototype._getAndRemoveByKey=function(D){var J=this.data[D].shift();return J.timeout&&clearTimeout(J.timeout),this.data[D].length===0&&delete this.data[D],this.order.splice(this.order.indexOf(D),1),J.value},st.prototype.getByKey=function(D){var J=this.data[D];return J?J[0].value:null},st.prototype.get=function(D){if(!this.has(D))return null;var J=this.data[D.wrapped().key][0];return J.value},st.prototype.remove=function(D,J){if(!this.has(D))return this;var q=D.wrapped().key,K=J===void 0?0:this.data[q].indexOf(J),de=this.data[q][K];return this.data[q].splice(K,1),de.timeout&&clearTimeout(de.timeout),this.data[q].length===0&&delete this.data[q],this.onRemove(de.value),this.order.splice(this.order.indexOf(q),1),this},st.prototype.setMaxSize=function(D){for(this.max=D;this.order.length>this.max;){var J=this._getAndRemoveByKey(this.order[0]);J&&this.onRemove(J)}return this},st.prototype.filter=function(D){var J=[];for(var q in this.data)for(var K=0,de=this.data[q];K1||(Math.abs(hr)>1&&(Math.abs(hr+Ve)===1?hr+=Ve:Math.abs(hr-Ve)===1&&(hr-=Ve)),!(!Zt.dem||!ft.dem)&&(ft.dem.backfillBorder(Zt.dem,hr,qt),ft.neighboringTiles&&ft.neighboringTiles[et]&&(ft.neighboringTiles[et].backfilled=!0)))}},D.prototype.getTile=function(q){return this.getTileByID(q.key)},D.prototype.getTileByID=function(q){return this._tiles[q]},D.prototype._retainLoadedChildren=function(q,K,de,ne){for(var we in this._tiles){var Ue=this._tiles[we];if(!(ne[we]||!Ue.hasData()||Ue.tileID.overscaledZ<=K||Ue.tileID.overscaledZ>de)){for(var ft=Ue.tileID;Ue&&Ue.tileID.overscaledZ>K+1;){var Zt=Ue.tileID.scaledTo(Ue.tileID.overscaledZ-1);Ue=this._tiles[Zt.key],Ue&&Ue.hasData()&&(ft=Zt)}for(var hr=ft;hr.overscaledZ>K;)if(hr=hr.scaledTo(hr.overscaledZ-1),q[hr.key]){ne[ft.key]=ft;break}}}},D.prototype.findLoadedParent=function(q,K){if(q.key in this._loadedParentTiles){var de=this._loadedParentTiles[q.key];return de&&de.tileID.overscaledZ>=K?de:null}for(var ne=q.overscaledZ-1;ne>=K;ne--){var we=q.scaledTo(ne),Ue=this._getLoadedTile(we);if(Ue)return Ue}},D.prototype._getLoadedTile=function(q){var K=this._tiles[q.key];if(K&&K.hasData())return K;var de=this._cache.getByKey(q.wrapped().key);return de},D.prototype.updateCacheSize=function(q){var K=Math.ceil(q.width/this._source.tileSize)+1,de=Math.ceil(q.height/this._source.tileSize)+1,ne=K*de,we=5,Ue=Math.floor(ne*we),ft=typeof this._maxTileCacheSize=="number"?Math.min(this._maxTileCacheSize,Ue):Ue;this._cache.setMaxSize(ft)},D.prototype.handleWrapJump=function(q){var K=this._prevLng===void 0?q:this._prevLng,de=q-K,ne=de/360,we=Math.round(ne);if(this._prevLng=q,we){var Ue={};for(var ft in this._tiles){var Zt=this._tiles[ft];Zt.tileID=Zt.tileID.unwrapTo(Zt.tileID.wrap+we),Ue[Zt.tileID.key]=Zt}this._tiles=Ue;for(var hr in this._timers)clearTimeout(this._timers[hr]),delete this._timers[hr];for(var qt in this._tiles){var Ve=this._tiles[qt];this._setTileReloadTimer(qt,Ve)}}},D.prototype.update=function(q){var K=this;if(this.transform=q,!(!this._sourceLoaded||this._paused)){this.updateCacheSize(q),this.handleWrapJump(this.transform.center.lng),this._coveredTiles={};var de;this.used?this._source.tileID?de=q.getVisibleUnwrappedCoordinates(this._source.tileID).map(function(Nr){return new i.OverscaledTileID(Nr.canonical.z,Nr.wrap,Nr.canonical.z,Nr.canonical.x,Nr.canonical.y)}):(de=q.coveringTiles({tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled}),this._source.hasTile&&(de=de.filter(function(Nr){return K._source.hasTile(Nr)}))):de=[];var ne=q.coveringZoomLevel(this._source),we=Math.max(ne-D.maxOverzooming,this._source.minzoom),Ue=Math.max(ne+D.maxUnderzooming,this._source.minzoom),ft=this._updateRetainedTiles(de,ne);if(zi(this._source.type)){for(var Zt={},hr={},qt=Object.keys(ft),Ve=0,et=qt;Vethis._source.maxzoom){var It=kt.children(this._source.maxzoom)[0],Bt=this.getTile(It);if(Bt&&Bt.hasData()){de[It.key]=It;continue}}else{var Rt=kt.children(this._source.maxzoom);if(de[Rt[0].key]&&de[Rt[1].key]&&de[Rt[2].key]&&de[Rt[3].key])continue}for(var mt=Ot.wasRequested(),Pt=kt.overscaledZ-1;Pt>=we;--Pt){var ht=kt.scaledTo(Pt);if(ne[ht.key]||(ne[ht.key]=!0,Ot=this.getTile(ht),!Ot&&mt&&(Ot=this._addTile(ht)),Ot&&(de[ht.key]=ht,mt=Ot.wasRequested(),Ot.hasData())))break}}}return de},D.prototype._updateLoadedParentTileCache=function(){this._loadedParentTiles={};for(var q in this._tiles){for(var K=[],de=void 0,ne=this._tiles[q].tileID;ne.overscaledZ>0;){if(ne.key in this._loadedParentTiles){de=this._loadedParentTiles[ne.key];break}K.push(ne.key);var we=ne.scaledTo(ne.overscaledZ-1);if(de=this._getLoadedTile(we),de)break;ne=we}for(var Ue=0,ft=K;Ue0)&&(K.hasData()&&K.state!=="reloading"?this._cache.add(K.tileID,K,K.getExpiryTimeout()):(K.aborted=!0,this._abortTile(K),this._unloadTile(K))))},D.prototype.clearTiles=function(){this._shouldReloadOnResume=!1,this._paused=!1;for(var q in this._tiles)this._removeTile(q);this._cache.reset()},D.prototype.tilesIn=function(q,K,de){var ne=this,we=[],Ue=this.transform;if(!Ue)return we;for(var ft=de?Ue.getCameraQueryGeometry(q):q,Zt=q.map(function(Pt){return Ue.pointCoordinate(Pt)}),hr=ft.map(function(Pt){return Ue.pointCoordinate(Pt)}),qt=this.getIds(),Ve=1/0,et=1/0,at=-1/0,kt=-1/0,Ot=0,It=hr;Ot=0&&Ri[1].y+Nr>=0){var hi=Zt.map(function(gn){return cr.getTilePoint(gn)}),wi=hr.map(function(gn){return cr.getTilePoint(gn)});we.push({tile:ht,tileID:cr,queryGeometry:hi,cameraQueryGeometry:wi,scale:br})}}},mt=0;mt=i.browser.now())return!0}return!1},D.prototype.setFeatureState=function(q,K,de){q=q||"_geojsonTileLayer",this._state.updateState(q,K,de)},D.prototype.removeFeatureState=function(q,K,de){q=q||"_geojsonTileLayer",this._state.removeFeatureState(q,K,de)},D.prototype.getFeatureState=function(q,K){return q=q||"_geojsonTileLayer",this._state.getState(q,K)},D.prototype.setDependencies=function(q,K,de){var ne=this._tiles[q];ne&&ne.setDependencies(K,de)},D.prototype.reloadTilesForDependencies=function(q,K){for(var de in this._tiles){var ne=this._tiles[de];ne.hasDependency(q,K)&&this._reloadTile(de,"reloading")}this._cache.filter(function(we){return!we.hasDependency(q,K)})},D}(i.Evented);ri.maxOverzooming=10,ri.maxUnderzooming=3;function $r(Y,D){var J=Math.abs(Y.wrap*2)-+(Y.wrap<0),q=Math.abs(D.wrap*2)-+(D.wrap<0);return Y.overscaledZ-D.overscaledZ||q-J||D.canonical.y-Y.canonical.y||D.canonical.x-Y.canonical.x}function zi(Y){return Y==="raster"||Y==="image"||Y==="video"}function Ji(){return new i.window.Worker(io.workerUrl)}var en="mapboxgl_preloaded_worker_pool",cn=function(){this.active={}};cn.prototype.acquire=function(D){if(!this.workers)for(this.workers=[];this.workers.length0?(K-ne)/we:0;return this.points[de].mult(1-Ue).add(this.points[J].mult(Ue))};var ki=function(D,J,q){var K=this.boxCells=[],de=this.circleCells=[];this.xCellCount=Math.ceil(D/q),this.yCellCount=Math.ceil(J/q);for(var ne=0;nethis.width||K<0||J>this.height)return de?!1:[];var we=[];if(D<=0&&J<=0&&this.width<=q&&this.height<=K){if(de)return!0;for(var Ue=0;Ue0:we}},ki.prototype._queryCircle=function(D,J,q,K,de){var ne=D-q,we=D+q,Ue=J-q,ft=J+q;if(we<0||ne>this.width||ft<0||Ue>this.height)return K?!1:[];var Zt=[],hr={hitTest:K,circle:{x:D,y:J,radius:q},seenUids:{box:{},circle:{}}};return this._forEachCell(ne,Ue,we,ft,this._queryCellCircle,Zt,hr,de),K?Zt.length>0:Zt},ki.prototype.query=function(D,J,q,K,de){return this._query(D,J,q,K,!1,de)},ki.prototype.hitTest=function(D,J,q,K,de){return this._query(D,J,q,K,!0,de)},ki.prototype.hitTestCircle=function(D,J,q,K){return this._queryCircle(D,J,q,!0,K)},ki.prototype._queryCell=function(D,J,q,K,de,ne,we,Ue){var ft=we.seenUids,Zt=this.boxCells[de];if(Zt!==null)for(var hr=this.bboxes,qt=0,Ve=Zt;qt=hr[at+0]&&K>=hr[at+1]&&(!Ue||Ue(this.boxKeys[et]))){if(we.hitTest)return ne.push(!0),!0;ne.push({key:this.boxKeys[et],x1:hr[at],y1:hr[at+1],x2:hr[at+2],y2:hr[at+3]})}}}var kt=this.circleCells[de];if(kt!==null)for(var Ot=this.circles,It=0,Bt=kt;Itwe*we+Ue*Ue},ki.prototype._circleAndRectCollide=function(D,J,q,K,de,ne,we){var Ue=(ne-K)/2,ft=Math.abs(D-(K+Ue));if(ft>Ue+q)return!1;var Zt=(we-de)/2,hr=Math.abs(J-(de+Zt));if(hr>Zt+q)return!1;if(ft<=Ue||hr<=Zt)return!0;var qt=ft-Ue,Ve=hr-Zt;return qt*qt+Ve*Ve<=q*q};function _n(Y,D,J,q,K){var de=i.create();return D?(i.scale(de,de,[1/K,1/K,1]),J||i.rotateZ(de,de,q.angle)):i.multiply(de,q.labelPlaneMatrix,Y),de}function ya(Y,D,J,q,K){if(D){var de=i.clone(Y);return i.scale(de,de,[K,K,1]),J||i.rotateZ(de,de,-q.angle),de}else return q.glCoordMatrix}function Jn(Y,D){var J=[Y.x,Y.y,0,1];Fl(J,J,D);var q=J[3];return{point:new i.Point(J[0]/q,J[1]/q),signedDistanceFromCamera:q}}function Ma(Y,D){return .5+.5*(Y/D)}function _o(Y,D){var J=Y[0]/Y[3],q=Y[1]/Y[3],K=J>=-D[0]&&J<=D[0]&&q>=-D[1]&&q<=D[1];return K}function No(Y,D,J,q,K,de,ne,we){var Ue=q?Y.textSizeData:Y.iconSizeData,ft=i.evaluateSizeForZoom(Ue,J.transform.zoom),Zt=[256/J.width*2+1,256/J.height*2+1],hr=q?Y.text.dynamicLayoutVertexArray:Y.icon.dynamicLayoutVertexArray;hr.clear();for(var qt=Y.lineVertexArray,Ve=q?Y.text.placedSymbolArray:Y.icon.placedSymbolArray,et=J.transform.width/J.transform.height,at=!1,kt=0;ktde)return{useVertical:!0}}return(Y===i.WritingMode.vertical?D.yJ.x)?{needsFlipping:!0}:null}function Co(Y,D,J,q,K,de,ne,we,Ue,ft,Zt,hr,qt,Ve){var et=D/24,at=Y.lineOffsetX*et,kt=Y.lineOffsetY*et,Ot;if(Y.numGlyphs>1){var It=Y.glyphStartIndex+Y.numGlyphs,Bt=Y.lineStartIndex,Rt=Y.lineStartIndex+Y.lineLength,mt=po(et,we,at,kt,J,Zt,hr,Y,Ue,de,qt);if(!mt)return{notEnoughRoom:!0};var Pt=Jn(mt.first.point,ne).point,ht=Jn(mt.last.point,ne).point;if(q&&!J){var cr=Lo(Y.writingMode,Pt,ht,Ve);if(cr)return cr}Ot=[mt.first];for(var br=Y.glyphStartIndex+1;br0?wi.point:Fs(hr,hi,Nr,1,K),tn=Lo(Y.writingMode,Nr,gn,Ve);if(tn)return tn}var Ci=zs(et*we.getoffsetX(Y.glyphStartIndex),at,kt,J,Zt,hr,Y.segment,Y.lineStartIndex,Y.lineStartIndex+Y.lineLength,Ue,de,qt);if(!Ci)return{notEnoughRoom:!0};Ot=[Ci]}for(var qi=0,Vi=Ot;qi0?1:-1,et=0;q&&(Ve*=-1,et=Math.PI),Ve<0&&(et+=Math.PI);for(var at=Ve>0?we+ne:we+ne+1,kt=K,Ot=K,It=0,Bt=0,Rt=Math.abs(qt),mt=[];It+Bt<=Rt;){if(at+=Ve,at=Ue)return null;if(Ot=kt,mt.push(kt),kt=hr[at],kt===void 0){var Pt=new i.Point(ft.getx(at),ft.gety(at)),ht=Jn(Pt,Zt);if(ht.signedDistanceFromCamera>0)kt=hr[at]=ht.point;else{var cr=at-Ve,br=It===0?de:new i.Point(ft.getx(cr),ft.gety(cr));kt=Fs(br,Pt,Ot,Rt-It+1,Zt)}}It+=Bt,Bt=Ot.dist(kt)}var Nr=(Rt-It)/Bt,Ri=kt.sub(Ot),hi=Ri.mult(Nr)._add(Ot);hi._add(Ri._unit()._perp()._mult(J*Ve));var wi=et+Math.atan2(kt.y-Ot.y,kt.x-Ot.x);return mt.push(hi),{point:hi,angle:wi,path:mt}}var ul=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);function cl(Y,D){for(var J=0;J=1;on--)Vi.push(Ci.path[on]);for(var On=1;On0){for(var so=Vi[0].clone(),Zo=Vi[0].clone(),ys=1;ys=wi.x&&Zo.x<=gn.x&&so.y>=wi.y&&Zo.y<=gn.y?rs=[Vi]:Zo.xgn.x||Zo.ygn.y?rs=[]:rs=i.clipLine([Vi],wi.x,wi.y,gn.x,gn.y)}for(var su=0,Mv=rs;su=this.screenRightBoundary||Kthis.screenBottomBoundary},nl.prototype.isInsideGrid=function(D,J,q,K){return q>=0&&D=0&&J0){var Rt;return this.prevPlacement&&this.prevPlacement.variableOffsets[qt.crossTileID]&&this.prevPlacement.placements[qt.crossTileID]&&this.prevPlacement.placements[qt.crossTileID].text&&(Rt=this.prevPlacement.variableOffsets[qt.crossTileID].anchor),this.variableOffsets[qt.crossTileID]={textOffset:kt,width:q,height:K,anchor:D,textBoxScale:de,prevAnchor:Rt},this.markUsedJustification(Ve,D,qt,et),Ve.allowVerticalPlacement&&(this.markUsedOrientation(Ve,et,qt),this.placedOrientations[qt.crossTileID]=et),{shift:Ot,placedGlyphBoxes:It}}},ws.prototype.placeLayerBucketPart=function(D,J,q){var K=this,de=D.parameters,ne=de.bucket,we=de.layout,Ue=de.posMatrix,ft=de.textLabelPlaneMatrix,Zt=de.labelToScreenMatrix,hr=de.textPixelRatio,qt=de.holdingForFade,Ve=de.collisionBoxArray,et=de.partiallyEvaluatedTextSize,at=de.collisionGroup,kt=we.get("text-optional"),Ot=we.get("icon-optional"),It=we.get("text-allow-overlap"),Bt=we.get("icon-allow-overlap"),Rt=we.get("text-rotation-alignment")==="map",mt=we.get("text-pitch-alignment")==="map",Pt=we.get("icon-text-fit")!=="none",ht=we.get("symbol-z-order")==="viewport-y",cr=It&&(Bt||!ne.hasIconData()||Ot),br=Bt&&(It||!ne.hasTextData()||kt);!ne.collisionArrays&&Ve&&ne.deserializeCollisionBoxes(Ve);var Nr=function(Ci,qi){if(!J[Ci.crossTileID]){if(qt){K.placements[Ci.crossTileID]=new Os(!1,!1,!1);return}var Vi=!1,on=!1,On=!0,Ja=null,co={box:null,offscreen:null},rs={box:null,offscreen:null},so=null,Zo=null,ys=null,su=0,Mv=0,Ev=0;qi.textFeatureIndex?su=qi.textFeatureIndex:Ci.useRuntimeCollisionCircles&&(su=Ci.featureIndex),qi.verticalTextFeatureIndex&&(Mv=qi.verticalTextFeatureIndex);var wd=qi.textBox;if(wd){var Yv=function(vc){var eu=i.WritingMode.horizontal;if(ne.allowVerticalPlacement&&!vc&&K.prevPlacement){var Sd=K.prevPlacement.placedOrientations[Ci.crossTileID];Sd&&(K.placedOrientations[Ci.crossTileID]=Sd,eu=Sd,K.markUsedOrientation(ne,eu,Ci))}return eu},cg=function(vc,eu){if(ne.allowVerticalPlacement&&Ci.numVerticalGlyphVertices>0&&qi.verticalTextBox)for(var Sd=0,sy=ne.writingModes;Sd0&&(Vd=Vd.filter(function(vc){return vc!==Ad.anchor}),Vd.unshift(Ad.anchor))}var Cv=function(vc,eu,Sd){for(var sy=vc.x2-vc.x1,A1=vc.y2-vc.y1,wu=Ci.textBoxScale,Nx=Pt&&!Bt?eu:null,am={box:[],offscreen:!1},Mw=It?Vd.length*2:Vd.length,Lv=0;Lv=Vd.length,Ux=K.attemptAnchorPlacement(om,vc,sy,A1,wu,Rt,mt,hr,Ue,at,Ew,Ci,ne,Sd,Nx);if(Ux&&(am=Ux.placedGlyphBoxes,am&&am.box&&am.box.length)){Vi=!0,Ja=Ux.shift;break}}return am},Kv=function(){return Cv(wd,qi.iconBox,i.WritingMode.horizontal)},kv=function(){var vc=qi.verticalTextBox,eu=co&&co.box&&co.box.length;return ne.allowVerticalPlacement&&!eu&&Ci.numVerticalGlyphVertices>0&&vc?Cv(vc,qi.verticalIconBox,i.WritingMode.vertical):{box:null,offscreen:null}};cg(Kv,kv),co&&(Vi=co.box,On=co.offscreen);var ny=Yv(co&&co.box);if(!Vi&&K.prevPlacement){var fg=K.prevPlacement.variableOffsets[Ci.crossTileID];fg&&(K.variableOffsets[Ci.crossTileID]=fg,K.markUsedJustification(ne,fg.anchor,Ci,ny))}}else{var dp=function(vc,eu){var Sd=K.collisionIndex.placeCollisionBox(vc,It,hr,Ue,at.predicate);return Sd&&Sd.box&&Sd.box.length&&(K.markUsedOrientation(ne,eu,Ci),K.placedOrientations[Ci.crossTileID]=eu),Sd},Td=function(){return dp(wd,i.WritingMode.horizontal)},vp=function(){var vc=qi.verticalTextBox;return ne.allowVerticalPlacement&&Ci.numVerticalGlyphVertices>0&&vc?dp(vc,i.WritingMode.vertical):{box:null,offscreen:null}};cg(Td,vp),Yv(co&&co.box&&co.box.length)}}if(so=co,Vi=so&&so.box&&so.box.length>0,On=so&&so.offscreen,Ci.useRuntimeCollisionCircles){var oh=ne.text.placedSymbolArray.get(Ci.centerJustifiedTextSymbolIndex),hg=i.evaluateSizeForFeature(ne.textSizeData,et,oh),ay=we.get("text-padding"),Gh=Ci.collisionCircleDiameter;Zo=K.collisionIndex.placeCollisionCircles(It,oh,ne.lineVertexArray,ne.glyphOffsetArray,hg,Ue,ft,Zt,q,mt,at.predicate,Gh,ay),Vi=It||Zo.circles.length>0&&!Zo.collisionDetected,On=On&&Zo.offscreen}if(qi.iconFeatureIndex&&(Ev=qi.iconFeatureIndex),qi.iconBox){var rm=function(vc){var eu=Pt&&Ja?nc(vc,Ja.x,Ja.y,Rt,mt,K.transform.angle):vc;return K.collisionIndex.placeCollisionBox(eu,Bt,hr,Ue,at.predicate)};rs&&rs.box&&rs.box.length&&qi.verticalIconBox?(ys=rm(qi.verticalIconBox),on=ys.box.length>0):(ys=rm(qi.iconBox),on=ys.box.length>0),On=On&&ys.offscreen}var w1=kt||Ci.numHorizontalGlyphVertices===0&&Ci.numVerticalGlyphVertices===0,T1=Ot||Ci.numIconVertices===0;if(!w1&&!T1?on=Vi=on&&Vi:T1?w1||(on=on&&Vi):Vi=on&&Vi,Vi&&so&&so.box&&(rs&&rs.box&&Mv?K.collisionIndex.insertCollisionBox(so.box,we.get("text-ignore-placement"),ne.bucketInstanceId,Mv,at.ID):K.collisionIndex.insertCollisionBox(so.box,we.get("text-ignore-placement"),ne.bucketInstanceId,su,at.ID)),on&&ys&&K.collisionIndex.insertCollisionBox(ys.box,we.get("icon-ignore-placement"),ne.bucketInstanceId,Ev,at.ID),Zo&&(Vi&&K.collisionIndex.insertCollisionCircles(Zo.circles,we.get("text-ignore-placement"),ne.bucketInstanceId,su,at.ID),q)){var oy=ne.bucketInstanceId,im=K.collisionCircleArrays[oy];im===void 0&&(im=K.collisionCircleArrays[oy]=new Io);for(var nm=0;nm=0;--hi){var wi=Ri[hi];Nr(ne.symbolInstances.get(wi),ne.collisionArrays[wi])}else for(var gn=D.symbolInstanceStart;gn=0&&(ne>=0&&Zt!==ne?D.text.placedSymbolArray.get(Zt).crossTileID=0:D.text.placedSymbolArray.get(Zt).crossTileID=q.crossTileID)}},ws.prototype.markUsedOrientation=function(D,J,q){for(var K=J===i.WritingMode.horizontal||J===i.WritingMode.horizontalOnly?J:0,de=J===i.WritingMode.vertical?J:0,ne=[q.leftJustifiedTextSymbolIndex,q.centerJustifiedTextSymbolIndex,q.rightJustifiedTextSymbolIndex],we=0,Ue=ne;we0||mt>0,Nr=Bt.numIconVertices>0,Ri=K.placedOrientations[Bt.crossTileID],hi=Ri===i.WritingMode.vertical,wi=Ri===i.WritingMode.horizontal||Ri===i.WritingMode.horizontalOnly;if(br){var gn=ac(cr.text),tn=hi?aa:gn;et(D.text,Rt,tn);var Ci=wi?aa:gn;et(D.text,mt,Ci);var qi=cr.text.isHidden();[Bt.rightJustifiedTextSymbolIndex,Bt.centerJustifiedTextSymbolIndex,Bt.leftJustifiedTextSymbolIndex].forEach(function(Ev){Ev>=0&&(D.text.placedSymbolArray.get(Ev).hidden=qi||hi?1:0)}),Bt.verticalPlacedTextSymbolIndex>=0&&(D.text.placedSymbolArray.get(Bt.verticalPlacedTextSymbolIndex).hidden=qi||wi?1:0);var Vi=K.variableOffsets[Bt.crossTileID];Vi&&K.markUsedJustification(D,Vi.anchor,Bt,Ri);var on=K.placedOrientations[Bt.crossTileID];on&&(K.markUsedJustification(D,"left",Bt,on),K.markUsedOrientation(D,on,Bt))}if(Nr){var On=ac(cr.icon),Ja=!(qt&&Bt.verticalPlacedIconSymbolIndex&&hi);if(Bt.placedIconSymbolIndex>=0){var co=Ja?On:aa;et(D.icon,Bt.numIconVertices,co),D.icon.placedSymbolArray.get(Bt.placedIconSymbolIndex).hidden=cr.icon.isHidden()}if(Bt.verticalPlacedIconSymbolIndex>=0){var rs=Ja?aa:On;et(D.icon,Bt.numVerticalIconVertices,rs),D.icon.placedSymbolArray.get(Bt.verticalPlacedIconSymbolIndex).hidden=cr.icon.isHidden()}}if(D.hasIconCollisionBoxData()||D.hasTextCollisionBoxData()){var so=D.collisionArrays[It];if(so){var Zo=new i.Point(0,0);if(so.textBox||so.verticalTextBox){var ys=!0;if(ft){var su=K.variableOffsets[Pt];su?(Zo=Su(su.anchor,su.width,su.height,su.textOffset,su.textBoxScale),Zt&&Zo._rotate(hr?K.transform.angle:-K.transform.angle)):ys=!1}so.textBox&&Fn(D.textCollisionBox.collisionVertexArray,cr.text.placed,!ys||hi,Zo.x,Zo.y),so.verticalTextBox&&Fn(D.textCollisionBox.collisionVertexArray,cr.text.placed,!ys||wi,Zo.x,Zo.y)}var Mv=!!(!wi&&so.verticalIconBox);so.iconBox&&Fn(D.iconCollisionBox.collisionVertexArray,cr.icon.placed,Mv,qt?Zo.x:0,qt?Zo.y:0),so.verticalIconBox&&Fn(D.iconCollisionBox.collisionVertexArray,cr.icon.placed,!Mv,qt?Zo.x:0,qt?Zo.y:0)}}},kt=0;ktD},ws.prototype.setStale=function(){this.stale=!0};function Fn(Y,D,J,q,K){Y.emplaceBack(D?1:0,J?1:0,q||0,K||0),Y.emplaceBack(D?1:0,J?1:0,q||0,K||0),Y.emplaceBack(D?1:0,J?1:0,q||0,K||0),Y.emplaceBack(D?1:0,J?1:0,q||0,K||0)}var _a=Math.pow(2,25),Vu=Math.pow(2,24),zl=Math.pow(2,17),xo=Math.pow(2,16),Yl=Math.pow(2,9),Us=Math.pow(2,8),Hl=Math.pow(2,1);function ac(Y){if(Y.opacity===0&&!Y.placed)return 0;if(Y.opacity===1&&Y.placed)return 4294967295;var D=Y.placed?1:0,J=Math.floor(Y.opacity*127);return J*_a+D*Vu+J*zl+D*xo+J*Yl+D*Us+J*Hl+D}var aa=0,Oo=function(D){this._sortAcrossTiles=D.layout.get("symbol-z-order")!=="viewport-y"&&D.layout.get("symbol-sort-key").constantOr(1)!==void 0,this._currentTileIndex=0,this._currentPartIndex=0,this._seenCrossTileIDs={},this._bucketParts=[]};Oo.prototype.continuePlacement=function(D,J,q,K,de){for(var ne=this._bucketParts;this._currentTileIndex2};this._currentPlacementIndex>=0;){var we=D[this._currentPlacementIndex],Ue=J[we],ft=this.placement.collisionIndex.transform.zoom;if(Ue.type==="symbol"&&(!Ue.minzoom||Ue.minzoom<=ft)&&(!Ue.maxzoom||Ue.maxzoom>ft)){this._inProgressLayer||(this._inProgressLayer=new Oo(Ue));var Zt=this._inProgressLayer.continuePlacement(q[Ue.source],this.placement,this._showCollisionBoxes,Ue,ne);if(Zt)return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0},qo.prototype.commit=function(D){return this.placement.commit(D),this.placement};var Ol=512/i.EXTENT/2,Pc=function(D,J,q){this.tileID=D,this.indexedSymbolInstances={},this.bucketInstanceId=q;for(var K=0;KD.overscaledZ)for(var ft in Ue){var Zt=Ue[ft];Zt.tileID.isChildOf(D)&&Zt.findMatches(J.symbolInstances,D,ne)}else{var hr=D.scaledTo(Number(we)),qt=Ue[hr.key];qt&&qt.findMatches(J.symbolInstances,D,ne)}}for(var Ve=0;Ve0)throw new Error("Unimplemented: "+ne.map(function(we){return we.command}).join(", ")+".");return de.forEach(function(we){we.command!=="setTransition"&&K[we.command].apply(K,we.args)}),this.stylesheet=q,!0},D.prototype.addImage=function(q,K){if(this.getImage(q))return this.fire(new i.ErrorEvent(new Error("An image with this name already exists.")));this.imageManager.addImage(q,K),this._afterImageUpdated(q)},D.prototype.updateImage=function(q,K){this.imageManager.updateImage(q,K)},D.prototype.getImage=function(q){return this.imageManager.getImage(q)},D.prototype.removeImage=function(q){if(!this.getImage(q))return this.fire(new i.ErrorEvent(new Error("No image with this name exists.")));this.imageManager.removeImage(q),this._afterImageUpdated(q)},D.prototype._afterImageUpdated=function(q){this._availableImages=this.imageManager.listImages(),this._changedImages[q]=!0,this._changed=!0,this.dispatcher.broadcast("setImages",this._availableImages),this.fire(new i.Event("data",{dataType:"style"}))},D.prototype.listImages=function(){return this._checkLoaded(),this.imageManager.listImages()},D.prototype.addSource=function(q,K,de){var ne=this;if(de===void 0&&(de={}),this._checkLoaded(),this.sourceCaches[q]!==void 0)throw new Error("There is already a source with this ID");if(!K.type)throw new Error("The type property must be defined, but only the following properties were given: "+Object.keys(K).join(", ")+".");var we=["vector","raster","geojson","video","image"],Ue=we.indexOf(K.type)>=0;if(!(Ue&&this._validate(i.validateStyle.source,"sources."+q,K,null,de))){this.map&&this.map._collectResourceTiming&&(K.collectResourceTiming=!0);var ft=this.sourceCaches[q]=new ri(q,K,this.dispatcher);ft.style=this,ft.setEventedParent(this,function(){return{isSourceLoaded:ne.loaded(),source:ft.serialize(),sourceId:q}}),ft.onAdd(this.map),this._changed=!0}},D.prototype.removeSource=function(q){if(this._checkLoaded(),this.sourceCaches[q]===void 0)throw new Error("There is no source with this ID");for(var K in this._layers)if(this._layers[K].source===q)return this.fire(new i.ErrorEvent(new Error('Source "'+q+'" cannot be removed while layer "'+K+'" is using it.')));var de=this.sourceCaches[q];delete this.sourceCaches[q],delete this._updatedSources[q],de.fire(new i.Event("data",{sourceDataType:"metadata",dataType:"source",sourceId:q})),de.setEventedParent(null),de.clearTiles(),de.onRemove&&de.onRemove(this.map),this._changed=!0},D.prototype.setGeoJSONSourceData=function(q,K){this._checkLoaded();var de=this.sourceCaches[q].getSource();de.setData(K),this._changed=!0},D.prototype.getSource=function(q){return this.sourceCaches[q]&&this.sourceCaches[q].getSource()},D.prototype.addLayer=function(q,K,de){de===void 0&&(de={}),this._checkLoaded();var ne=q.id;if(this.getLayer(ne)){this.fire(new i.ErrorEvent(new Error('Layer with id "'+ne+'" already exists on this map')));return}var we;if(q.type==="custom"){if(ml(this,i.validateCustomStyleLayer(q)))return;we=i.createStyleLayer(q)}else{if(typeof q.source=="object"&&(this.addSource(ne,q.source),q=i.clone$1(q),q=i.extend(q,{source:ne})),this._validate(i.validateStyle.layer,"layers."+ne,q,{arrayIndex:-1},de))return;we=i.createStyleLayer(q),this._validateLayer(we),we.setEventedParent(this,{layer:{id:ne}}),this._serializedLayers[we.id]=we.serialize()}var Ue=K?this._order.indexOf(K):this._order.length;if(K&&Ue===-1){this.fire(new i.ErrorEvent(new Error('Layer with id "'+K+'" does not exist on this map.')));return}if(this._order.splice(Ue,0,ne),this._layerOrderChanged=!0,this._layers[ne]=we,this._removedLayers[ne]&&we.source&&we.type!=="custom"){var ft=this._removedLayers[ne];delete this._removedLayers[ne],ft.type!==we.type?this._updatedSources[we.source]="clear":(this._updatedSources[we.source]="reload",this.sourceCaches[we.source].pause())}this._updateLayer(we),we.onAdd&&we.onAdd(this.map)},D.prototype.moveLayer=function(q,K){this._checkLoaded(),this._changed=!0;var de=this._layers[q];if(!de){this.fire(new i.ErrorEvent(new Error("The layer '"+q+"' does not exist in the map's style and cannot be moved.")));return}if(q!==K){var ne=this._order.indexOf(q);this._order.splice(ne,1);var we=K?this._order.indexOf(K):this._order.length;if(K&&we===-1){this.fire(new i.ErrorEvent(new Error('Layer with id "'+K+'" does not exist on this map.')));return}this._order.splice(we,0,q),this._layerOrderChanged=!0}},D.prototype.removeLayer=function(q){this._checkLoaded();var K=this._layers[q];if(!K){this.fire(new i.ErrorEvent(new Error("The layer '"+q+"' does not exist in the map's style and cannot be removed.")));return}K.setEventedParent(null);var de=this._order.indexOf(q);this._order.splice(de,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[q]=K,delete this._layers[q],delete this._serializedLayers[q],delete this._updatedLayers[q],delete this._updatedPaintProps[q],K.onRemove&&K.onRemove(this.map)},D.prototype.getLayer=function(q){return this._layers[q]},D.prototype.hasLayer=function(q){return q in this._layers},D.prototype.setLayerZoomRange=function(q,K,de){this._checkLoaded();var ne=this.getLayer(q);if(!ne){this.fire(new i.ErrorEvent(new Error("The layer '"+q+"' does not exist in the map's style and cannot have zoom extent.")));return}ne.minzoom===K&&ne.maxzoom===de||(K!=null&&(ne.minzoom=K),de!=null&&(ne.maxzoom=de),this._updateLayer(ne))},D.prototype.setFilter=function(q,K,de){de===void 0&&(de={}),this._checkLoaded();var ne=this.getLayer(q);if(!ne){this.fire(new i.ErrorEvent(new Error("The layer '"+q+"' does not exist in the map's style and cannot be filtered.")));return}if(!i.deepEqual(ne.filter,K)){if(K==null){ne.filter=void 0,this._updateLayer(ne);return}this._validate(i.validateStyle.filter,"layers."+ne.id+".filter",K,null,de)||(ne.filter=i.clone$1(K),this._updateLayer(ne))}},D.prototype.getFilter=function(q){return i.clone$1(this.getLayer(q).filter)},D.prototype.setLayoutProperty=function(q,K,de,ne){ne===void 0&&(ne={}),this._checkLoaded();var we=this.getLayer(q);if(!we){this.fire(new i.ErrorEvent(new Error("The layer '"+q+"' does not exist in the map's style and cannot be styled.")));return}i.deepEqual(we.getLayoutProperty(K),de)||(we.setLayoutProperty(K,de,ne),this._updateLayer(we))},D.prototype.getLayoutProperty=function(q,K){var de=this.getLayer(q);if(!de){this.fire(new i.ErrorEvent(new Error("The layer '"+q+"' does not exist in the map's style.")));return}return de.getLayoutProperty(K)},D.prototype.setPaintProperty=function(q,K,de,ne){ne===void 0&&(ne={}),this._checkLoaded();var we=this.getLayer(q);if(!we){this.fire(new i.ErrorEvent(new Error("The layer '"+q+"' does not exist in the map's style and cannot be styled.")));return}if(!i.deepEqual(we.getPaintProperty(K),de)){var Ue=we.setPaintProperty(K,de,ne);Ue&&this._updateLayer(we),this._changed=!0,this._updatedPaintProps[q]=!0}},D.prototype.getPaintProperty=function(q,K){return this.getLayer(q).getPaintProperty(K)},D.prototype.setFeatureState=function(q,K){this._checkLoaded();var de=q.source,ne=q.sourceLayer,we=this.sourceCaches[de];if(we===void 0){this.fire(new i.ErrorEvent(new Error("The source '"+de+"' does not exist in the map's style.")));return}var Ue=we.getSource().type;if(Ue==="geojson"&&ne){this.fire(new i.ErrorEvent(new Error("GeoJSON sources cannot have a sourceLayer parameter.")));return}if(Ue==="vector"&&!ne){this.fire(new i.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")));return}q.id===void 0&&this.fire(new i.ErrorEvent(new Error("The feature id parameter must be provided."))),we.setFeatureState(ne,q.id,K)},D.prototype.removeFeatureState=function(q,K){this._checkLoaded();var de=q.source,ne=this.sourceCaches[de];if(ne===void 0){this.fire(new i.ErrorEvent(new Error("The source '"+de+"' does not exist in the map's style.")));return}var we=ne.getSource().type,Ue=we==="vector"?q.sourceLayer:void 0;if(we==="vector"&&!Ue){this.fire(new i.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")));return}if(K&&typeof q.id!="string"&&typeof q.id!="number"){this.fire(new i.ErrorEvent(new Error("A feature id is required to remove its specific state property.")));return}ne.removeFeatureState(Ue,q.id,K)},D.prototype.getFeatureState=function(q){this._checkLoaded();var K=q.source,de=q.sourceLayer,ne=this.sourceCaches[K];if(ne===void 0){this.fire(new i.ErrorEvent(new Error("The source '"+K+"' does not exist in the map's style.")));return}var we=ne.getSource().type;if(we==="vector"&&!de){this.fire(new i.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")));return}return q.id===void 0&&this.fire(new i.ErrorEvent(new Error("The feature id parameter must be provided."))),ne.getFeatureState(de,q.id)},D.prototype.getTransition=function(){return i.extend({duration:300,delay:0},this.stylesheet&&this.stylesheet.transition)},D.prototype.serialize=function(){return i.filterObject({version:this.stylesheet.version,name:this.stylesheet.name,metadata:this.stylesheet.metadata,light:this.stylesheet.light,center:this.stylesheet.center,zoom:this.stylesheet.zoom,bearing:this.stylesheet.bearing,pitch:this.stylesheet.pitch,sprite:this.stylesheet.sprite,glyphs:this.stylesheet.glyphs,transition:this.stylesheet.transition,sources:i.mapObject(this.sourceCaches,function(q){return q.serialize()}),layers:this._serializeLayers(this._order)},function(q){return q!==void 0})},D.prototype._updateLayer=function(q){this._updatedLayers[q.id]=!0,q.source&&!this._updatedSources[q.source]&&this.sourceCaches[q.source].getSource().type!=="raster"&&(this._updatedSources[q.source]="reload",this.sourceCaches[q.source].pause()),this._changed=!0},D.prototype._flattenAndSortRenderedFeatures=function(q){for(var K=this,de=function(wi){return K._layers[wi].type==="fill-extrusion"},ne={},we=[],Ue=this._order.length-1;Ue>=0;Ue--){var ft=this._order[Ue];if(de(ft)){ne[ft]=Ue;for(var Zt=0,hr=q;Zt=0;It--){var Bt=this._order[It];if(de(Bt))for(var Rt=we.length-1;Rt>=0;Rt--){var mt=we[Rt].feature;if(ne[mt.layer.id] 0.0 ? height : base,1);float colorvalue=color.r*0.2126+color.g*0.7152+color.b*0.0722;v_color=vec4(0.0,0.0,0.0,1.0);vec4 ambientlight=vec4(0.03,0.03,0.03,1.0);color+=ambientlight;float directional=clamp(dot(normal/16384.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((1.0-colorvalue+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_color.r+=clamp(color.r*directional*u_lightcolor.r,mix(0.0,0.3,1.0-u_lightcolor.r),1.0);v_color.g+=clamp(color.g*directional*u_lightcolor.g,mix(0.0,0.3,1.0-u_lightcolor.g),1.0);v_color.b+=clamp(color.b*directional*u_lightcolor.b,mix(0.0,0.3,1.0-u_lightcolor.b),1.0);v_color*=u_opacity;}`,ql=`uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting; +#pragma mapbox: define lowp float base +#pragma mapbox: define lowp float height +#pragma mapbox: define lowp vec4 pattern_from +#pragma mapbox: define lowp vec4 pattern_to +#pragma mapbox: define lowp float pixel_ratio_from +#pragma mapbox: define lowp float pixel_ratio_to +void main() { +#pragma mapbox: initialize lowp float base +#pragma mapbox: initialize lowp float height +#pragma mapbox: initialize mediump vec4 pattern_from +#pragma mapbox: initialize mediump vec4 pattern_to +#pragma mapbox: initialize lowp float pixel_ratio_from +#pragma mapbox: initialize lowp float pixel_ratio_to +vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);vec4 mixedColor=mix(color1,color2,u_fade);gl_FragColor=mixedColor*v_lighting; +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,_h=`uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_height_factor;uniform vec3 u_scale;uniform float u_vertical_gradient;uniform lowp float u_opacity;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;attribute vec2 a_pos;attribute vec4 a_normal_ed;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting; +#pragma mapbox: define lowp float base +#pragma mapbox: define lowp float height +#pragma mapbox: define lowp vec4 pattern_from +#pragma mapbox: define lowp vec4 pattern_to +#pragma mapbox: define lowp float pixel_ratio_from +#pragma mapbox: define lowp float pixel_ratio_to +void main() { +#pragma mapbox: initialize lowp float base +#pragma mapbox: initialize lowp float height +#pragma mapbox: initialize mediump vec4 pattern_from +#pragma mapbox: initialize mediump vec4 pattern_to +#pragma mapbox: initialize lowp float pixel_ratio_from +#pragma mapbox: initialize lowp float pixel_ratio_to +vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec3 normal=a_normal_ed.xyz;float edgedistance=a_normal_ed.w;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;base=max(0.0,base);height=max(0.0,height);float t=mod(normal.x,2.0);float z=t > 0.0 ? height : base;gl_Position=u_matrix*vec4(a_pos,z,1);vec2 pos=normal.x==1.0 && normal.y==0.0 && normal.z==16384.0 +? a_pos +: vec2(edgedistance,z*u_height_factor);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,pos);v_lighting=vec4(0.0,0.0,0.0,1.0);float directional=clamp(dot(normal/16383.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((0.5+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_lighting.rgb+=clamp(directional*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));v_lighting*=u_opacity;}`,Qf=`#ifdef GL_ES +precision highp float; +#endif +uniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_dimension;uniform float u_zoom;uniform vec4 u_unpack;float getElevation(vec2 coord,float bias) {vec4 data=texture2D(u_image,coord)*255.0;data.a=-1.0;return dot(data,u_unpack)/4.0;}void main() {vec2 epsilon=1.0/u_dimension;float a=getElevation(v_pos+vec2(-epsilon.x,-epsilon.y),0.0);float b=getElevation(v_pos+vec2(0,-epsilon.y),0.0);float c=getElevation(v_pos+vec2(epsilon.x,-epsilon.y),0.0);float d=getElevation(v_pos+vec2(-epsilon.x,0),0.0);float e=getElevation(v_pos,0.0);float f=getElevation(v_pos+vec2(epsilon.x,0),0.0);float g=getElevation(v_pos+vec2(-epsilon.x,epsilon.y),0.0);float h=getElevation(v_pos+vec2(0,epsilon.y),0.0);float i=getElevation(v_pos+vec2(epsilon.x,epsilon.y),0.0);float exaggerationFactor=u_zoom < 2.0 ? 0.4 : u_zoom < 4.5 ? 0.35 : 0.3;float exaggeration=u_zoom < 15.0 ? (u_zoom-15.0)*exaggerationFactor : 0.0;vec2 deriv=vec2((c+f+f+i)-(a+d+d+g),(g+h+h+i)-(a+b+b+c))/pow(2.0,exaggeration+(19.2562-u_zoom));gl_FragColor=clamp(vec4(deriv.x/2.0+0.5,deriv.y/2.0+0.5,1.0,1.0),0.0,1.0); +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,yf="uniform mat4 u_matrix;uniform vec2 u_dimension;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);highp vec2 epsilon=1.0/u_dimension;float scale=(u_dimension.x-2.0)/u_dimension.x;v_pos=(a_texture_pos/8192.0)*scale+epsilon;}",Yc=`uniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_latrange;uniform vec2 u_light;uniform vec4 u_shadow;uniform vec4 u_highlight;uniform vec4 u_accent; +#define PI 3.141592653589793 +void main() {vec4 pixel=texture2D(u_image,v_pos);vec2 deriv=((pixel.rg*2.0)-1.0);float scaleFactor=cos(radians((u_latrange[0]-u_latrange[1])*(1.0-v_pos.y)+u_latrange[1]));float slope=atan(1.25*length(deriv)/scaleFactor);float aspect=deriv.x !=0.0 ? atan(deriv.y,-deriv.x) : PI/2.0*(deriv.y > 0.0 ? 1.0 :-1.0);float intensity=u_light.x;float azimuth=u_light.y+PI;float base=1.875-intensity*1.75;float maxValue=0.5*PI;float scaledSlope=intensity !=0.5 ? ((pow(base,slope)-1.0)/(pow(base,maxValue)-1.0))*maxValue : slope;float accent=cos(scaledSlope);vec4 accent_color=(1.0-accent)*u_accent*clamp(intensity*2.0,0.0,1.0);float shade=abs(mod((aspect+azimuth)/PI+0.5,2.0)-1.0);vec4 shade_color=mix(u_shadow,u_highlight,shade)*sin(scaledSlope)*clamp(intensity*2.0,0.0,1.0);gl_FragColor=accent_color*(1.0-shade_color.a)+shade_color; +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,eh="uniform mat4 u_matrix;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=a_texture_pos/8192.0;}",th=`uniform lowp float u_device_pixel_ratio;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale; +#pragma mapbox: define highp vec4 color +#pragma mapbox: define lowp float blur +#pragma mapbox: define lowp float opacity +void main() { +#pragma mapbox: initialize highp vec4 color +#pragma mapbox: initialize lowp float blur +#pragma mapbox: initialize lowp float opacity +float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);gl_FragColor=color*(alpha*opacity); +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,ju=` +#define scale 0.015873016 +attribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform vec2 u_units_to_pixels;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_gamma_scale;varying highp float v_linesofar; +#pragma mapbox: define highp vec4 color +#pragma mapbox: define lowp float blur +#pragma mapbox: define lowp float opacity +#pragma mapbox: define mediump float gapwidth +#pragma mapbox: define lowp float offset +#pragma mapbox: define mediump float width +void main() { +#pragma mapbox: initialize highp vec4 color +#pragma mapbox: initialize lowp float blur +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize mediump float gapwidth +#pragma mapbox: initialize lowp float offset +#pragma mapbox: initialize mediump float width +float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;v_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*2.0;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_width2=vec2(outset,inset);}`,Hf=`uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale;varying highp vec2 v_uv; +#pragma mapbox: define lowp float blur +#pragma mapbox: define lowp float opacity +void main() { +#pragma mapbox: initialize lowp float blur +#pragma mapbox: initialize lowp float opacity +float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);vec4 color=texture2D(u_image,v_uv);gl_FragColor=color*(alpha*opacity); +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,cc=` +#define scale 0.015873016 +attribute vec2 a_pos_normal;attribute vec4 a_data;attribute float a_uv_x;attribute float a_split_index;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_units_to_pixels;uniform float u_image_height;varying vec2 v_normal;varying vec2 v_width2;varying float v_gamma_scale;varying highp vec2 v_uv; +#pragma mapbox: define lowp float blur +#pragma mapbox: define lowp float opacity +#pragma mapbox: define mediump float gapwidth +#pragma mapbox: define lowp float offset +#pragma mapbox: define mediump float width +void main() { +#pragma mapbox: initialize lowp float blur +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize mediump float gapwidth +#pragma mapbox: initialize lowp float offset +#pragma mapbox: initialize mediump float width +float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;highp float texel_height=1.0/u_image_height;highp float half_texel_height=0.5*texel_height;v_uv=vec2(a_uv_x,a_split_index*texel_height-half_texel_height);vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_width2=vec2(outset,inset);}`,of=`uniform lowp float u_device_pixel_ratio;uniform vec2 u_texsize;uniform float u_fade;uniform mediump vec3 u_scale;uniform sampler2D u_image;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width; +#pragma mapbox: define lowp vec4 pattern_from +#pragma mapbox: define lowp vec4 pattern_to +#pragma mapbox: define lowp float pixel_ratio_from +#pragma mapbox: define lowp float pixel_ratio_to +#pragma mapbox: define lowp float blur +#pragma mapbox: define lowp float opacity +void main() { +#pragma mapbox: initialize mediump vec4 pattern_from +#pragma mapbox: initialize mediump vec4 pattern_to +#pragma mapbox: initialize lowp float pixel_ratio_from +#pragma mapbox: initialize lowp float pixel_ratio_to +#pragma mapbox: initialize lowp float blur +#pragma mapbox: initialize lowp float opacity +vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;vec2 pattern_size_a=vec2(display_size_a.x*fromScale/tileZoomRatio,display_size_a.y);vec2 pattern_size_b=vec2(display_size_b.x*toScale/tileZoomRatio,display_size_b.y);float aspect_a=display_size_a.y/v_width;float aspect_b=display_size_b.y/v_width;float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float x_a=mod(v_linesofar/pattern_size_a.x*aspect_a,1.0);float x_b=mod(v_linesofar/pattern_size_b.x*aspect_b,1.0);float y=0.5*v_normal.y+0.5;vec2 texel_size=1.0/u_texsize;vec2 pos_a=mix(pattern_tl_a*texel_size-texel_size,pattern_br_a*texel_size+texel_size,vec2(x_a,y));vec2 pos_b=mix(pattern_tl_b*texel_size-texel_size,pattern_br_b*texel_size+texel_size,vec2(x_b,y));vec4 color=mix(texture2D(u_image,pos_a),texture2D(u_image,pos_b),u_fade);gl_FragColor=color*alpha*opacity; +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,Bl=` +#define scale 0.015873016 +#define LINE_DISTANCE_SCALE 2.0 +attribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform vec2 u_units_to_pixels;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width; +#pragma mapbox: define lowp float blur +#pragma mapbox: define lowp float opacity +#pragma mapbox: define lowp float offset +#pragma mapbox: define mediump float gapwidth +#pragma mapbox: define mediump float width +#pragma mapbox: define lowp float floorwidth +#pragma mapbox: define lowp vec4 pattern_from +#pragma mapbox: define lowp vec4 pattern_to +#pragma mapbox: define lowp float pixel_ratio_from +#pragma mapbox: define lowp float pixel_ratio_to +void main() { +#pragma mapbox: initialize lowp float blur +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize lowp float offset +#pragma mapbox: initialize mediump float gapwidth +#pragma mapbox: initialize mediump float width +#pragma mapbox: initialize lowp float floorwidth +#pragma mapbox: initialize mediump vec4 pattern_from +#pragma mapbox: initialize mediump vec4 pattern_to +#pragma mapbox: initialize lowp float pixel_ratio_from +#pragma mapbox: initialize lowp float pixel_ratio_to +float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_linesofar=a_linesofar;v_width2=vec2(outset,inset);v_width=floorwidth;}`,Kc=`uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;uniform float u_sdfgamma;uniform float u_mix;varying vec2 v_normal;varying vec2 v_width2;varying vec2 v_tex_a;varying vec2 v_tex_b;varying float v_gamma_scale; +#pragma mapbox: define highp vec4 color +#pragma mapbox: define lowp float blur +#pragma mapbox: define lowp float opacity +#pragma mapbox: define mediump float width +#pragma mapbox: define lowp float floorwidth +void main() { +#pragma mapbox: initialize highp vec4 color +#pragma mapbox: initialize lowp float blur +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize mediump float width +#pragma mapbox: initialize lowp float floorwidth +float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float sdfdist_a=texture2D(u_image,v_tex_a).a;float sdfdist_b=texture2D(u_image,v_tex_b).a;float sdfdist=mix(sdfdist_a,sdfdist_b,u_mix);alpha*=smoothstep(0.5-u_sdfgamma/floorwidth,0.5+u_sdfgamma/floorwidth,sdfdist);gl_FragColor=color*(alpha*opacity); +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,Rc=` +#define scale 0.015873016 +#define LINE_DISTANCE_SCALE 2.0 +attribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_patternscale_a;uniform float u_tex_y_a;uniform vec2 u_patternscale_b;uniform float u_tex_y_b;uniform vec2 u_units_to_pixels;varying vec2 v_normal;varying vec2 v_width2;varying vec2 v_tex_a;varying vec2 v_tex_b;varying float v_gamma_scale; +#pragma mapbox: define highp vec4 color +#pragma mapbox: define lowp float blur +#pragma mapbox: define lowp float opacity +#pragma mapbox: define mediump float gapwidth +#pragma mapbox: define lowp float offset +#pragma mapbox: define mediump float width +#pragma mapbox: define lowp float floorwidth +void main() { +#pragma mapbox: initialize highp vec4 color +#pragma mapbox: initialize lowp float blur +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize mediump float gapwidth +#pragma mapbox: initialize lowp float offset +#pragma mapbox: initialize mediump float width +#pragma mapbox: initialize lowp float floorwidth +float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_tex_a=vec2(a_linesofar*u_patternscale_a.x/floorwidth,normal.y*u_patternscale_a.y+u_tex_y_a);v_tex_b=vec2(a_linesofar*u_patternscale_b.x/floorwidth,normal.y*u_patternscale_b.y+u_tex_y_b);v_width2=vec2(outset,inset);}`,ms=`uniform float u_fade_t;uniform float u_opacity;uniform sampler2D u_image0;uniform sampler2D u_image1;varying vec2 v_pos0;varying vec2 v_pos1;uniform float u_brightness_low;uniform float u_brightness_high;uniform float u_saturation_factor;uniform float u_contrast_factor;uniform vec3 u_spin_weights;void main() {vec4 color0=texture2D(u_image0,v_pos0);vec4 color1=texture2D(u_image1,v_pos1);if (color0.a > 0.0) {color0.rgb=color0.rgb/color0.a;}if (color1.a > 0.0) {color1.rgb=color1.rgb/color1.a;}vec4 color=mix(color0,color1,u_fade_t);color.a*=u_opacity;vec3 rgb=color.rgb;rgb=vec3(dot(rgb,u_spin_weights.xyz),dot(rgb,u_spin_weights.zxy),dot(rgb,u_spin_weights.yzx));float average=(color.r+color.g+color.b)/3.0;rgb+=(average-rgb)*u_saturation_factor;rgb=(rgb-0.5)*u_contrast_factor+0.5;vec3 u_high_vec=vec3(u_brightness_low,u_brightness_low,u_brightness_low);vec3 u_low_vec=vec3(u_brightness_high,u_brightness_high,u_brightness_high);gl_FragColor=vec4(mix(u_high_vec,u_low_vec,rgb)*color.a,color.a); +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,jf="uniform mat4 u_matrix;uniform vec2 u_tl_parent;uniform float u_scale_parent;uniform float u_buffer_scale;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos0;varying vec2 v_pos1;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos0=(((a_texture_pos/8192.0)-0.5)/u_buffer_scale )+0.5;v_pos1=(v_pos0*u_scale_parent)+u_tl_parent;}",Uh=`uniform sampler2D u_texture;varying vec2 v_tex;varying float v_fade_opacity; +#pragma mapbox: define lowp float opacity +void main() { +#pragma mapbox: initialize lowp float opacity +lowp float alpha=opacity*v_fade_opacity;gl_FragColor=texture2D(u_texture,v_tex)*alpha; +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,rh=`const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec4 a_pixeloffset;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform highp float u_camera_to_center_distance;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform float u_fade_change;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform vec2 u_texsize;varying vec2 v_tex;varying float v_fade_opacity; +#pragma mapbox: define lowp float opacity +void main() { +#pragma mapbox: initialize lowp float opacity +vec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;vec2 a_minFontScale=a_pixeloffset.zw/256.0;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ? +camera_to_anchor_distance/u_camera_to_center_distance : +u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*max(a_minFontScale,fontScale)+a_pxoffset/16.0),0.0,1.0);v_tex=a_tex/u_texsize;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;v_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));}`,sf=`#define SDF_PX 8.0 +uniform bool u_is_halo;uniform sampler2D u_texture;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;uniform bool u_is_text;varying vec2 v_data0;varying vec3 v_data1; +#pragma mapbox: define highp vec4 fill_color +#pragma mapbox: define highp vec4 halo_color +#pragma mapbox: define lowp float opacity +#pragma mapbox: define lowp float halo_width +#pragma mapbox: define lowp float halo_blur +void main() { +#pragma mapbox: initialize highp vec4 fill_color +#pragma mapbox: initialize highp vec4 halo_color +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize lowp float halo_width +#pragma mapbox: initialize lowp float halo_blur +float EDGE_GAMMA=0.105/u_device_pixel_ratio;vec2 tex=v_data0.xy;float gamma_scale=v_data1.x;float size=v_data1.y;float fade_opacity=v_data1[2];float fontScale=u_is_text ? size/24.0 : size;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);buff=(6.0-halo_width/fontScale)/SDF_PX;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);gl_FragColor=color*(alpha*opacity*fade_opacity); +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,xh=`const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec4 a_pixeloffset;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;varying vec2 v_data0;varying vec3 v_data1; +#pragma mapbox: define highp vec4 fill_color +#pragma mapbox: define highp vec4 halo_color +#pragma mapbox: define lowp float opacity +#pragma mapbox: define lowp float halo_width +#pragma mapbox: define lowp float halo_blur +void main() { +#pragma mapbox: initialize highp vec4 fill_color +#pragma mapbox: initialize highp vec4 halo_color +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize lowp float halo_width +#pragma mapbox: initialize lowp float halo_blur +vec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ? +camera_to_anchor_distance/u_camera_to_center_distance : +u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale+a_pxoffset),0.0,1.0);float gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));v_data0=a_tex/u_texsize;v_data1=vec3(gamma_scale,size,interpolated_fade_opacity);}`,Mu=`#define SDF_PX 8.0 +#define SDF 1.0 +#define ICON 0.0 +uniform bool u_is_halo;uniform sampler2D u_texture;uniform sampler2D u_texture_icon;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;varying vec4 v_data0;varying vec4 v_data1; +#pragma mapbox: define highp vec4 fill_color +#pragma mapbox: define highp vec4 halo_color +#pragma mapbox: define lowp float opacity +#pragma mapbox: define lowp float halo_width +#pragma mapbox: define lowp float halo_blur +void main() { +#pragma mapbox: initialize highp vec4 fill_color +#pragma mapbox: initialize highp vec4 halo_color +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize lowp float halo_width +#pragma mapbox: initialize lowp float halo_blur +float fade_opacity=v_data1[2];if (v_data1.w==ICON) {vec2 tex_icon=v_data0.zw;lowp float alpha=opacity*fade_opacity;gl_FragColor=texture2D(u_texture_icon,tex_icon)*alpha; +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +return;}vec2 tex=v_data0.xy;float EDGE_GAMMA=0.105/u_device_pixel_ratio;float gamma_scale=v_data1.x;float size=v_data1.y;float fontScale=size/24.0;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);buff=(6.0-halo_width/fontScale)/SDF_PX;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);gl_FragColor=color*(alpha*opacity*fade_opacity); +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,ih=`const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;uniform vec2 u_texsize_icon;varying vec4 v_data0;varying vec4 v_data1; +#pragma mapbox: define highp vec4 fill_color +#pragma mapbox: define highp vec4 halo_color +#pragma mapbox: define lowp float opacity +#pragma mapbox: define lowp float halo_width +#pragma mapbox: define lowp float halo_blur +void main() { +#pragma mapbox: initialize highp vec4 fill_color +#pragma mapbox: initialize highp vec4 halo_color +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize lowp float halo_width +#pragma mapbox: initialize lowp float halo_blur +vec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);float is_sdf=a_size[0]-2.0*a_size_min;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ? +camera_to_anchor_distance/u_camera_to_center_distance : +u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=size/24.0;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale),0.0,1.0);float gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));v_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec4(gamma_scale,size,interpolated_fade_opacity,is_sdf);}`,Ws=Vs(Cf,sc),Eu=Vs(Nh,kf),Dc=Vs(fs,nf),ks=Vs(Vf,Jl),bc=Vs(hl,lc),du=Vs(Fu,Cs),_u=Vs(js,Go),al=Vs(gs,uc),nh=Vs(xl,Gu),bh=Vs(Bs,ad),zu=Vs(Po,od),Fc=Vs(Yo,Pa),wc=Vs(af,Hu),bd=Vs(bl,Gf),_f=Vs(Ic,mf),Lf=Vs(ql,_h),Ou=Vs(Qf,yf),xf=Vs(Yc,eh),jl=Vs(th,ju),lf=Vs(Hf,cc),Vh=Vs(of,Bl),Pf=Vs(Kc,Rc),Ls=Vs(ms,jf),vu=Vs(Uh,rh),Cu=Vs(sf,xh),Wf=Vs(Mu,ih);function Vs(Y,D){var J=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,q=D.match(/attribute ([\w]+) ([\w]+)/g),K=Y.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),de=D.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),ne=de?de.concat(K):K,we={};return Y=Y.replace(J,function(Ue,ft,Zt,hr,qt){return we[qt]=!0,ft==="define"?` +#ifndef HAS_UNIFORM_u_`+qt+` +varying `+Zt+" "+hr+" "+qt+`; +#else +uniform `+Zt+" "+hr+" u_"+qt+`; +#endif +`:` +#ifdef HAS_UNIFORM_u_`+qt+` + `+Zt+" "+hr+" "+qt+" = u_"+qt+`; +#endif +`}),D=D.replace(J,function(Ue,ft,Zt,hr,qt){var Ve=hr==="float"?"vec2":"vec4",et=qt.match(/color/)?"color":Ve;return we[qt]?ft==="define"?` +#ifndef HAS_UNIFORM_u_`+qt+` +uniform lowp float u_`+qt+`_t; +attribute `+Zt+" "+Ve+" a_"+qt+`; +varying `+Zt+" "+hr+" "+qt+`; +#else +uniform `+Zt+" "+hr+" u_"+qt+`; +#endif +`:et==="vec4"?` +#ifndef HAS_UNIFORM_u_`+qt+` + `+qt+" = a_"+qt+`; +#else + `+Zt+" "+hr+" "+qt+" = u_"+qt+`; +#endif +`:` +#ifndef HAS_UNIFORM_u_`+qt+` + `+qt+" = unpack_mix_"+et+"(a_"+qt+", u_"+qt+`_t); +#else + `+Zt+" "+hr+" "+qt+" = u_"+qt+`; +#endif +`:ft==="define"?` +#ifndef HAS_UNIFORM_u_`+qt+` +uniform lowp float u_`+qt+`_t; +attribute `+Zt+" "+Ve+" a_"+qt+`; +#else +uniform `+Zt+" "+hr+" u_"+qt+`; +#endif +`:et==="vec4"?` +#ifndef HAS_UNIFORM_u_`+qt+` + `+Zt+" "+hr+" "+qt+" = a_"+qt+`; +#else + `+Zt+" "+hr+" "+qt+" = u_"+qt+`; +#endif +`:` +#ifndef HAS_UNIFORM_u_`+qt+` + `+Zt+" "+hr+" "+qt+" = unpack_mix_"+et+"(a_"+qt+", u_"+qt+`_t); +#else + `+Zt+" "+hr+" "+qt+" = u_"+qt+`; +#endif +`}),{fragmentSource:Y,vertexSource:D,staticAttributes:q,staticUniforms:ne}}var bf=Object.freeze({__proto__:null,prelude:Ws,background:Eu,backgroundPattern:Dc,circle:ks,clippingMask:bc,heatmap:du,heatmapTexture:_u,collisionBox:al,collisionCircle:nh,debug:bh,fill:zu,fillOutline:Fc,fillOutlinePattern:wc,fillPattern:bd,fillExtrusion:_f,fillExtrusionPattern:Lf,hillshadePrepare:Ou,hillshade:xf,line:jl,lineGradient:lf,linePattern:Vh,lineSDF:Pf,raster:Ls,symbolIcon:vu,symbolSDF:Cu,symbolTextAndIcon:Wf}),zc=function(){this.boundProgram=null,this.boundLayoutVertexBuffer=null,this.boundPaintVertexBuffers=[],this.boundIndexBuffer=null,this.boundVertexOffset=null,this.boundDynamicVertexBuffer=null,this.vao=null};zc.prototype.bind=function(D,J,q,K,de,ne,we,Ue){this.context=D;for(var ft=this.boundPaintVertexBuffers.length!==K.length,Zt=0;!ft&&Zt>16,we>>16],u_pixel_coord_lower:[ne&65535,we&65535]}}function uf(Y,D,J,q){var K=J.imageManager.getPattern(Y.from.toString()),de=J.imageManager.getPattern(Y.to.toString()),ne=J.imageManager.getPixelSize(),we=ne.width,Ue=ne.height,ft=Math.pow(2,q.tileID.overscaledZ),Zt=q.tileSize*Math.pow(2,J.transform.tileZoom)/ft,hr=Zt*(q.tileID.canonical.x+q.tileID.wrap*ft),qt=Zt*q.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:K.tl,u_pattern_br_a:K.br,u_pattern_tl_b:de.tl,u_pattern_br_b:de.br,u_texsize:[we,Ue],u_mix:D.t,u_pattern_size_a:K.displaySize,u_pattern_size_b:de.displaySize,u_scale_a:D.fromScale,u_scale_b:D.toScale,u_tile_units_to_pixels:1/Ss(q,1,J.transform.tileZoom),u_pixel_coord_upper:[hr>>16,qt>>16],u_pixel_coord_lower:[hr&65535,qt&65535]}}var Xf=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_lightpos:new i.Uniform3f(Y,D.u_lightpos),u_lightintensity:new i.Uniform1f(Y,D.u_lightintensity),u_lightcolor:new i.Uniform3f(Y,D.u_lightcolor),u_vertical_gradient:new i.Uniform1f(Y,D.u_vertical_gradient),u_opacity:new i.Uniform1f(Y,D.u_opacity)}},Wl=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_lightpos:new i.Uniform3f(Y,D.u_lightpos),u_lightintensity:new i.Uniform1f(Y,D.u_lightintensity),u_lightcolor:new i.Uniform3f(Y,D.u_lightcolor),u_vertical_gradient:new i.Uniform1f(Y,D.u_vertical_gradient),u_height_factor:new i.Uniform1f(Y,D.u_height_factor),u_image:new i.Uniform1i(Y,D.u_image),u_texsize:new i.Uniform2f(Y,D.u_texsize),u_pixel_coord_upper:new i.Uniform2f(Y,D.u_pixel_coord_upper),u_pixel_coord_lower:new i.Uniform2f(Y,D.u_pixel_coord_lower),u_scale:new i.Uniform3f(Y,D.u_scale),u_fade:new i.Uniform1f(Y,D.u_fade),u_opacity:new i.Uniform1f(Y,D.u_opacity)}},ah=function(Y,D,J,q){var K=D.style.light,de=K.properties.get("position"),ne=[de.x,de.y,de.z],we=i.create$1();K.properties.get("anchor")==="viewport"&&i.fromRotation(we,-D.transform.angle),i.transformMat3(ne,ne,we);var Ue=K.properties.get("color");return{u_matrix:Y,u_lightpos:ne,u_lightintensity:K.properties.get("intensity"),u_lightcolor:[Ue.r,Ue.g,Ue.b],u_vertical_gradient:+J,u_opacity:q}},Zu=function(Y,D,J,q,K,de,ne){return i.extend(ah(Y,D,J,q),Xu(de,D,ne),{u_height_factor:-Math.pow(2,K.overscaledZ)/ne.tileSize/8})},Oc=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix)}},Tc=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_image:new i.Uniform1i(Y,D.u_image),u_texsize:new i.Uniform2f(Y,D.u_texsize),u_pixel_coord_upper:new i.Uniform2f(Y,D.u_pixel_coord_upper),u_pixel_coord_lower:new i.Uniform2f(Y,D.u_pixel_coord_lower),u_scale:new i.Uniform3f(Y,D.u_scale),u_fade:new i.Uniform1f(Y,D.u_fade)}},wl=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_world:new i.Uniform2f(Y,D.u_world)}},pu=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_world:new i.Uniform2f(Y,D.u_world),u_image:new i.Uniform1i(Y,D.u_image),u_texsize:new i.Uniform2f(Y,D.u_texsize),u_pixel_coord_upper:new i.Uniform2f(Y,D.u_pixel_coord_upper),u_pixel_coord_lower:new i.Uniform2f(Y,D.u_pixel_coord_lower),u_scale:new i.Uniform3f(Y,D.u_scale),u_fade:new i.Uniform1f(Y,D.u_fade)}},qc=function(Y){return{u_matrix:Y}},cf=function(Y,D,J,q){return i.extend(qc(Y),Xu(J,D,q))},fc=function(Y,D){return{u_matrix:Y,u_world:D}},Bc=function(Y,D,J,q,K){return i.extend(cf(Y,D,J,q),{u_world:K})},At=function(Y,D){return{u_camera_to_center_distance:new i.Uniform1f(Y,D.u_camera_to_center_distance),u_scale_with_map:new i.Uniform1i(Y,D.u_scale_with_map),u_pitch_with_map:new i.Uniform1i(Y,D.u_pitch_with_map),u_extrude_scale:new i.Uniform2f(Y,D.u_extrude_scale),u_device_pixel_ratio:new i.Uniform1f(Y,D.u_device_pixel_ratio),u_matrix:new i.UniformMatrix4f(Y,D.u_matrix)}},Xt=function(Y,D,J,q){var K=Y.transform,de,ne;if(q.paint.get("circle-pitch-alignment")==="map"){var we=Ss(J,1,K.zoom);de=!0,ne=[we,we]}else de=!1,ne=K.pixelsToGLUnits;return{u_camera_to_center_distance:K.cameraToCenterDistance,u_scale_with_map:+(q.paint.get("circle-pitch-scale")==="map"),u_matrix:Y.translatePosMatrix(D.posMatrix,J,q.paint.get("circle-translate"),q.paint.get("circle-translate-anchor")),u_pitch_with_map:+de,u_device_pixel_ratio:i.browser.devicePixelRatio,u_extrude_scale:ne}},kr=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_camera_to_center_distance:new i.Uniform1f(Y,D.u_camera_to_center_distance),u_pixels_to_tile_units:new i.Uniform1f(Y,D.u_pixels_to_tile_units),u_extrude_scale:new i.Uniform2f(Y,D.u_extrude_scale),u_overscale_factor:new i.Uniform1f(Y,D.u_overscale_factor)}},Ar=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_inv_matrix:new i.UniformMatrix4f(Y,D.u_inv_matrix),u_camera_to_center_distance:new i.Uniform1f(Y,D.u_camera_to_center_distance),u_viewport_size:new i.Uniform2f(Y,D.u_viewport_size)}},Kr=function(Y,D,J){var q=Ss(J,1,D.zoom),K=Math.pow(2,D.zoom-J.tileID.overscaledZ),de=J.tileID.overscaleFactor();return{u_matrix:Y,u_camera_to_center_distance:D.cameraToCenterDistance,u_pixels_to_tile_units:q,u_extrude_scale:[D.pixelsToGLUnits[0]/(q*K),D.pixelsToGLUnits[1]/(q*K)],u_overscale_factor:de}},Ei=function(Y,D,J){return{u_matrix:Y,u_inv_matrix:D,u_camera_to_center_distance:J.cameraToCenterDistance,u_viewport_size:[J.width,J.height]}},Wi=function(Y,D){return{u_color:new i.UniformColor(Y,D.u_color),u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_overlay:new i.Uniform1i(Y,D.u_overlay),u_overlay_scale:new i.Uniform1f(Y,D.u_overlay_scale)}},hn=function(Y,D,J){return J===void 0&&(J=1),{u_matrix:Y,u_color:D,u_overlay:0,u_overlay_scale:J}},Tn=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix)}},Bn=function(Y){return{u_matrix:Y}},Zi=function(Y,D){return{u_extrude_scale:new i.Uniform1f(Y,D.u_extrude_scale),u_intensity:new i.Uniform1f(Y,D.u_intensity),u_matrix:new i.UniformMatrix4f(Y,D.u_matrix)}},$i=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_world:new i.Uniform2f(Y,D.u_world),u_image:new i.Uniform1i(Y,D.u_image),u_color_ramp:new i.Uniform1i(Y,D.u_color_ramp),u_opacity:new i.Uniform1f(Y,D.u_opacity)}},an=function(Y,D,J,q){return{u_matrix:Y,u_extrude_scale:Ss(D,1,J),u_intensity:q}},Di=function(Y,D,J,q){var K=i.create();i.ortho(K,0,Y.width,Y.height,0,0,1);var de=Y.context.gl;return{u_matrix:K,u_world:[de.drawingBufferWidth,de.drawingBufferHeight],u_image:J,u_color_ramp:q,u_opacity:D.paint.get("heatmap-opacity")}},$n=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_image:new i.Uniform1i(Y,D.u_image),u_latrange:new i.Uniform2f(Y,D.u_latrange),u_light:new i.Uniform2f(Y,D.u_light),u_shadow:new i.UniformColor(Y,D.u_shadow),u_highlight:new i.UniformColor(Y,D.u_highlight),u_accent:new i.UniformColor(Y,D.u_accent)}},ka=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_image:new i.Uniform1i(Y,D.u_image),u_dimension:new i.Uniform2f(Y,D.u_dimension),u_zoom:new i.Uniform1f(Y,D.u_zoom),u_unpack:new i.Uniform4f(Y,D.u_unpack)}},Ra=function(Y,D,J){var q=J.paint.get("hillshade-shadow-color"),K=J.paint.get("hillshade-highlight-color"),de=J.paint.get("hillshade-accent-color"),ne=J.paint.get("hillshade-illumination-direction")*(Math.PI/180);J.paint.get("hillshade-illumination-anchor")==="viewport"&&(ne-=Y.transform.angle);var we=!Y.options.moving;return{u_matrix:Y.transform.calculatePosMatrix(D.tileID.toUnwrapped(),we),u_image:0,u_latrange:Na(Y,D.tileID),u_light:[J.paint.get("hillshade-exaggeration"),ne],u_shadow:q,u_highlight:K,u_accent:de}},La=function(Y,D){var J=D.stride,q=i.create();return i.ortho(q,0,i.EXTENT,-i.EXTENT,0,0,1),i.translate(q,q,[0,-i.EXTENT,0]),{u_matrix:q,u_image:1,u_dimension:[J,J],u_zoom:Y.overscaledZ,u_unpack:D.getUnpackVector()}};function Na(Y,D){var J=Math.pow(2,D.canonical.z),q=D.canonical.y;return[new i.MercatorCoordinate(0,q/J).toLngLat().lat,new i.MercatorCoordinate(0,(q+1)/J).toLngLat().lat]}var Yn=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_ratio:new i.Uniform1f(Y,D.u_ratio),u_device_pixel_ratio:new i.Uniform1f(Y,D.u_device_pixel_ratio),u_units_to_pixels:new i.Uniform2f(Y,D.u_units_to_pixels)}},zn=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_ratio:new i.Uniform1f(Y,D.u_ratio),u_device_pixel_ratio:new i.Uniform1f(Y,D.u_device_pixel_ratio),u_units_to_pixels:new i.Uniform2f(Y,D.u_units_to_pixels),u_image:new i.Uniform1i(Y,D.u_image),u_image_height:new i.Uniform1f(Y,D.u_image_height)}},Ka=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_texsize:new i.Uniform2f(Y,D.u_texsize),u_ratio:new i.Uniform1f(Y,D.u_ratio),u_device_pixel_ratio:new i.Uniform1f(Y,D.u_device_pixel_ratio),u_image:new i.Uniform1i(Y,D.u_image),u_units_to_pixels:new i.Uniform2f(Y,D.u_units_to_pixels),u_scale:new i.Uniform3f(Y,D.u_scale),u_fade:new i.Uniform1f(Y,D.u_fade)}},bo=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_ratio:new i.Uniform1f(Y,D.u_ratio),u_device_pixel_ratio:new i.Uniform1f(Y,D.u_device_pixel_ratio),u_units_to_pixels:new i.Uniform2f(Y,D.u_units_to_pixels),u_patternscale_a:new i.Uniform2f(Y,D.u_patternscale_a),u_patternscale_b:new i.Uniform2f(Y,D.u_patternscale_b),u_sdfgamma:new i.Uniform1f(Y,D.u_sdfgamma),u_image:new i.Uniform1i(Y,D.u_image),u_tex_y_a:new i.Uniform1f(Y,D.u_tex_y_a),u_tex_y_b:new i.Uniform1f(Y,D.u_tex_y_b),u_mix:new i.Uniform1f(Y,D.u_mix)}},Xo=function(Y,D,J){var q=Y.transform;return{u_matrix:yl(Y,D,J),u_ratio:1/Ss(D,1,q.zoom),u_device_pixel_ratio:i.browser.devicePixelRatio,u_units_to_pixels:[1/q.pixelsToGLUnits[0],1/q.pixelsToGLUnits[1]]}},Ms=function(Y,D,J,q){return i.extend(Xo(Y,D,J),{u_image:0,u_image_height:q})},os=function(Y,D,J,q){var K=Y.transform,de=Ho(D,K);return{u_matrix:yl(Y,D,J),u_texsize:D.imageAtlasTexture.size,u_ratio:1/Ss(D,1,K.zoom),u_device_pixel_ratio:i.browser.devicePixelRatio,u_image:0,u_scale:[de,q.fromScale,q.toScale],u_fade:q.t,u_units_to_pixels:[1/K.pixelsToGLUnits[0],1/K.pixelsToGLUnits[1]]}},Ts=function(Y,D,J,q,K){var de=Y.transform,ne=Y.lineAtlas,we=Ho(D,de),Ue=J.layout.get("line-cap")==="round",ft=ne.getDash(q.from,Ue),Zt=ne.getDash(q.to,Ue),hr=ft.width*K.fromScale,qt=Zt.width*K.toScale;return i.extend(Xo(Y,D,J),{u_patternscale_a:[we/hr,-ft.height/2],u_patternscale_b:[we/qt,-Zt.height/2],u_sdfgamma:ne.width/(Math.min(hr,qt)*256*i.browser.devicePixelRatio)/2,u_image:0,u_tex_y_a:ft.y,u_tex_y_b:Zt.y,u_mix:K.t})};function Ho(Y,D){return 1/Ss(Y,1,D.tileZoom)}function yl(Y,D,J){return Y.translatePosMatrix(D.tileID.posMatrix,D,J.paint.get("line-translate"),J.paint.get("line-translate-anchor"))}var Xs=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_tl_parent:new i.Uniform2f(Y,D.u_tl_parent),u_scale_parent:new i.Uniform1f(Y,D.u_scale_parent),u_buffer_scale:new i.Uniform1f(Y,D.u_buffer_scale),u_fade_t:new i.Uniform1f(Y,D.u_fade_t),u_opacity:new i.Uniform1f(Y,D.u_opacity),u_image0:new i.Uniform1i(Y,D.u_image0),u_image1:new i.Uniform1i(Y,D.u_image1),u_brightness_low:new i.Uniform1f(Y,D.u_brightness_low),u_brightness_high:new i.Uniform1f(Y,D.u_brightness_high),u_saturation_factor:new i.Uniform1f(Y,D.u_saturation_factor),u_contrast_factor:new i.Uniform1f(Y,D.u_contrast_factor),u_spin_weights:new i.Uniform3f(Y,D.u_spin_weights)}},Ps=function(Y,D,J,q,K){return{u_matrix:Y,u_tl_parent:D,u_scale_parent:J,u_buffer_scale:1,u_fade_t:q.mix,u_opacity:q.opacity*K.paint.get("raster-opacity"),u_image0:0,u_image1:1,u_brightness_low:K.paint.get("raster-brightness-min"),u_brightness_high:K.paint.get("raster-brightness-max"),u_saturation_factor:_s(K.paint.get("raster-saturation")),u_contrast_factor:no(K.paint.get("raster-contrast")),u_spin_weights:va(K.paint.get("raster-hue-rotate"))}};function va(Y){Y*=Math.PI/180;var D=Math.sin(Y),J=Math.cos(Y);return[(2*J+1)/3,(-Math.sqrt(3)*D-J+1)/3,(Math.sqrt(3)*D-J+1)/3]}function no(Y){return Y>0?1/(1-Y):1+Y}function _s(Y){return Y>0?1-1/(1.001-Y):-Y}var is=function(Y,D){return{u_is_size_zoom_constant:new i.Uniform1i(Y,D.u_is_size_zoom_constant),u_is_size_feature_constant:new i.Uniform1i(Y,D.u_is_size_feature_constant),u_size_t:new i.Uniform1f(Y,D.u_size_t),u_size:new i.Uniform1f(Y,D.u_size),u_camera_to_center_distance:new i.Uniform1f(Y,D.u_camera_to_center_distance),u_pitch:new i.Uniform1f(Y,D.u_pitch),u_rotate_symbol:new i.Uniform1i(Y,D.u_rotate_symbol),u_aspect_ratio:new i.Uniform1f(Y,D.u_aspect_ratio),u_fade_change:new i.Uniform1f(Y,D.u_fade_change),u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_label_plane_matrix:new i.UniformMatrix4f(Y,D.u_label_plane_matrix),u_coord_matrix:new i.UniformMatrix4f(Y,D.u_coord_matrix),u_is_text:new i.Uniform1i(Y,D.u_is_text),u_pitch_with_map:new i.Uniform1i(Y,D.u_pitch_with_map),u_texsize:new i.Uniform2f(Y,D.u_texsize),u_texture:new i.Uniform1i(Y,D.u_texture)}},$l=function(Y,D){return{u_is_size_zoom_constant:new i.Uniform1i(Y,D.u_is_size_zoom_constant),u_is_size_feature_constant:new i.Uniform1i(Y,D.u_is_size_feature_constant),u_size_t:new i.Uniform1f(Y,D.u_size_t),u_size:new i.Uniform1f(Y,D.u_size),u_camera_to_center_distance:new i.Uniform1f(Y,D.u_camera_to_center_distance),u_pitch:new i.Uniform1f(Y,D.u_pitch),u_rotate_symbol:new i.Uniform1i(Y,D.u_rotate_symbol),u_aspect_ratio:new i.Uniform1f(Y,D.u_aspect_ratio),u_fade_change:new i.Uniform1f(Y,D.u_fade_change),u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_label_plane_matrix:new i.UniformMatrix4f(Y,D.u_label_plane_matrix),u_coord_matrix:new i.UniformMatrix4f(Y,D.u_coord_matrix),u_is_text:new i.Uniform1i(Y,D.u_is_text),u_pitch_with_map:new i.Uniform1i(Y,D.u_pitch_with_map),u_texsize:new i.Uniform2f(Y,D.u_texsize),u_texture:new i.Uniform1i(Y,D.u_texture),u_gamma_scale:new i.Uniform1f(Y,D.u_gamma_scale),u_device_pixel_ratio:new i.Uniform1f(Y,D.u_device_pixel_ratio),u_is_halo:new i.Uniform1i(Y,D.u_is_halo)}},ku=function(Y,D){return{u_is_size_zoom_constant:new i.Uniform1i(Y,D.u_is_size_zoom_constant),u_is_size_feature_constant:new i.Uniform1i(Y,D.u_is_size_feature_constant),u_size_t:new i.Uniform1f(Y,D.u_size_t),u_size:new i.Uniform1f(Y,D.u_size),u_camera_to_center_distance:new i.Uniform1f(Y,D.u_camera_to_center_distance),u_pitch:new i.Uniform1f(Y,D.u_pitch),u_rotate_symbol:new i.Uniform1i(Y,D.u_rotate_symbol),u_aspect_ratio:new i.Uniform1f(Y,D.u_aspect_ratio),u_fade_change:new i.Uniform1f(Y,D.u_fade_change),u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_label_plane_matrix:new i.UniformMatrix4f(Y,D.u_label_plane_matrix),u_coord_matrix:new i.UniformMatrix4f(Y,D.u_coord_matrix),u_is_text:new i.Uniform1i(Y,D.u_is_text),u_pitch_with_map:new i.Uniform1i(Y,D.u_pitch_with_map),u_texsize:new i.Uniform2f(Y,D.u_texsize),u_texsize_icon:new i.Uniform2f(Y,D.u_texsize_icon),u_texture:new i.Uniform1i(Y,D.u_texture),u_texture_icon:new i.Uniform1i(Y,D.u_texture_icon),u_gamma_scale:new i.Uniform1f(Y,D.u_gamma_scale),u_device_pixel_ratio:new i.Uniform1f(Y,D.u_device_pixel_ratio),u_is_halo:new i.Uniform1i(Y,D.u_is_halo)}},Yu=function(Y,D,J,q,K,de,ne,we,Ue,ft){var Zt=K.transform;return{u_is_size_zoom_constant:+(Y==="constant"||Y==="source"),u_is_size_feature_constant:+(Y==="constant"||Y==="camera"),u_size_t:D?D.uSizeT:0,u_size:D?D.uSize:0,u_camera_to_center_distance:Zt.cameraToCenterDistance,u_pitch:Zt.pitch/360*2*Math.PI,u_rotate_symbol:+J,u_aspect_ratio:Zt.width/Zt.height,u_fade_change:K.options.fadeDuration?K.symbolFadeChange:1,u_matrix:de,u_label_plane_matrix:ne,u_coord_matrix:we,u_is_text:+Ue,u_pitch_with_map:+q,u_texsize:ft,u_texture:0}},Nc=function(Y,D,J,q,K,de,ne,we,Ue,ft,Zt){var hr=K.transform;return i.extend(Yu(Y,D,J,q,K,de,ne,we,Ue,ft),{u_gamma_scale:q?Math.cos(hr._pitch)*hr.cameraToCenterDistance:1,u_device_pixel_ratio:i.browser.devicePixelRatio,u_is_halo:+Zt})},gu=function(Y,D,J,q,K,de,ne,we,Ue,ft){return i.extend(Nc(Y,D,J,q,K,de,ne,we,!0,Ue,!0),{u_texsize_icon:ft,u_texture_icon:1})},Uc=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_opacity:new i.Uniform1f(Y,D.u_opacity),u_color:new i.UniformColor(Y,D.u_color)}},xu=function(Y,D){return{u_matrix:new i.UniformMatrix4f(Y,D.u_matrix),u_opacity:new i.Uniform1f(Y,D.u_opacity),u_image:new i.Uniform1i(Y,D.u_image),u_pattern_tl_a:new i.Uniform2f(Y,D.u_pattern_tl_a),u_pattern_br_a:new i.Uniform2f(Y,D.u_pattern_br_a),u_pattern_tl_b:new i.Uniform2f(Y,D.u_pattern_tl_b),u_pattern_br_b:new i.Uniform2f(Y,D.u_pattern_br_b),u_texsize:new i.Uniform2f(Y,D.u_texsize),u_mix:new i.Uniform1f(Y,D.u_mix),u_pattern_size_a:new i.Uniform2f(Y,D.u_pattern_size_a),u_pattern_size_b:new i.Uniform2f(Y,D.u_pattern_size_b),u_scale_a:new i.Uniform1f(Y,D.u_scale_a),u_scale_b:new i.Uniform1f(Y,D.u_scale_b),u_pixel_coord_upper:new i.Uniform2f(Y,D.u_pixel_coord_upper),u_pixel_coord_lower:new i.Uniform2f(Y,D.u_pixel_coord_lower),u_tile_units_to_pixels:new i.Uniform1f(Y,D.u_tile_units_to_pixels)}},Ac=function(Y,D,J){return{u_matrix:Y,u_opacity:D,u_color:J}},Ua=function(Y,D,J,q,K,de){return i.extend(uf(q,de,J,K),{u_matrix:Y,u_opacity:D})},oo={fillExtrusion:Xf,fillExtrusionPattern:Wl,fill:Oc,fillPattern:Tc,fillOutline:wl,fillOutlinePattern:pu,circle:At,collisionBox:kr,collisionCircle:Ar,debug:Wi,clippingMask:Tn,heatmap:Zi,heatmapTexture:$i,hillshade:$n,hillshadePrepare:ka,line:Yn,lineGradient:zn,linePattern:Ka,lineSDF:bo,raster:Xs,symbolIcon:is,symbolSDF:$l,symbolTextAndIcon:ku,background:Uc,backgroundPattern:xu},Vc;function hc(Y,D,J,q,K,de,ne){for(var we=Y.context,Ue=we.gl,ft=Y.useProgram("collisionBox"),Zt=[],hr=0,qt=0,Ve=0;Ve0){var Rt=i.create(),mt=Ot;i.mul(Rt,kt.placementInvProjMatrix,Y.transform.glCoordMatrix),i.mul(Rt,Rt,kt.placementViewportMatrix),Zt.push({circleArray:Bt,circleOffset:qt,transform:mt,invTransform:Rt}),hr+=Bt.length/4,qt=hr}It&&ft.draw(we,Ue.LINES,wn.disabled,kn.disabled,Y.colorModeForRenderPass(),Er.disabled,Kr(Ot,Y.transform,at),J.id,It.layoutVertexBuffer,It.indexBuffer,It.segments,null,Y.transform.zoom,null,null,It.collisionVertexBuffer)}}if(!(!ne||!Zt.length)){var Pt=Y.useProgram("collisionCircle"),ht=new i.StructArrayLayout2f1f2i16;ht.resize(hr*4),ht._trim();for(var cr=0,br=0,Nr=Zt;br=0&&(et[kt.associatedIconIndex]={shiftedAnchor:wi,angle:gn})}}if(Zt){Ve.clear();for(var Ci=Y.icon.placedSymbolArray,qi=0;qi0){var ne=i.browser.now(),we=(ne-Y.timeAdded)/de,Ue=D?(ne-D.timeAdded)/de:-1,ft=J.getSource(),Zt=K.coveringZoomLevel({tileSize:ft.tileSize,roundZoom:ft.roundZoom}),hr=!D||Math.abs(D.tileID.overscaledZ-Zt)>Math.abs(Y.tileID.overscaledZ-Zt),qt=hr&&Y.refreshedUponExpiration?1:i.clamp(hr?we:1-Ue,0,1);return Y.refreshedUponExpiration&&we>=1&&(Y.refreshedUponExpiration=!1),D?{opacity:1,mix:1-qt}:{opacity:qt,mix:0}}else return{opacity:1,mix:0}}function rr(Y,D,J){var q=J.paint.get("background-color"),K=J.paint.get("background-opacity");if(K!==0){var de=Y.context,ne=de.gl,we=Y.transform,Ue=we.tileSize,ft=J.paint.get("background-pattern");if(!Y.isPatternMissing(ft)){var Zt=!ft&&q.a===1&&K===1&&Y.opaquePassEnabledForLayer()?"opaque":"translucent";if(Y.renderPass===Zt){var hr=kn.disabled,qt=Y.depthModeForSublayer(0,Zt==="opaque"?wn.ReadWrite:wn.ReadOnly),Ve=Y.colorModeForRenderPass(),et=Y.useProgram(ft?"backgroundPattern":"background"),at=we.coveringTiles({tileSize:Ue});ft&&(de.activeTexture.set(ne.TEXTURE0),Y.imageManager.bind(Y.context));for(var kt=J.getCrossfadeParameters(),Ot=0,It=at;Ot "+J.overscaledZ);var Ot=kt+" "+Ve+"kb";$a(Y,Ot),ne.draw(q,K.TRIANGLES,we,Ue,_t.alphaBlended,Er.disabled,hn(de,i.Color.transparent,at),Zt,Y.debugBuffer,Y.quadTriangleIndexBuffer,Y.debugSegments)}function $a(Y,D){Y.initDebugOverlayCanvas();var J=Y.debugOverlayCanvas,q=Y.context.gl,K=Y.debugOverlayCanvas.getContext("2d");K.clearRect(0,0,J.width,J.height),K.shadowColor="white",K.shadowBlur=2,K.lineWidth=1.5,K.strokeStyle="white",K.textBaseline="top",K.font="bold 36px Open Sans, sans-serif",K.fillText(D,5,5),K.strokeText(D,5,5),Y.debugOverlayTexture.update(J),Y.debugOverlayTexture.bind(q.LINEAR,q.CLAMP_TO_EDGE)}function ko(Y,D,J){var q=Y.context,K=J.implementation;if(Y.renderPass==="offscreen"){var de=K.prerender;de&&(Y.setCustomLayerDefaults(),q.setColorMode(Y.colorModeForRenderPass()),de.call(K,q.gl,Y.transform.customLayerMatrix()),q.setDirty(),Y.setBaseState())}else if(Y.renderPass==="translucent"){Y.setCustomLayerDefaults(),q.setColorMode(Y.colorModeForRenderPass()),q.setStencilMode(kn.disabled);var ne=K.renderingMode==="3d"?new wn(Y.context.gl.LEQUAL,wn.ReadWrite,Y.depthRangeFor3D):Y.depthModeForSublayer(0,wn.ReadOnly);q.setDepthMode(ne),K.render(q.gl,Y.transform.customLayerMatrix()),q.setDirty(),Y.setBaseState(),q.bindFramebuffer.set(null)}}var Qa={symbol:w,circle:ot,heatmap:Tt,line:Pr,fill:ve,"fill-extrusion":Re,hillshade:tt,raster:Dt,background:rr,debug:Aa,custom:ko},mo=function(D,J){this.context=new Zr(D),this.transform=J,this._tileTextures={},this.setup(),this.numSublayers=ri.maxUnderzooming+ri.maxOverzooming+1,this.depthEpsilon=1/Math.pow(2,16),this.crossTileSymbolIndex=new Uf,this.gpuTimers={}};mo.prototype.resize=function(D,J){if(this.width=D*i.browser.devicePixelRatio,this.height=J*i.browser.devicePixelRatio,this.context.viewport.set([0,0,this.width,this.height]),this.style)for(var q=0,K=this.style._order;q256&&this.clearStencil(),q.setColorMode(_t.disabled),q.setDepthMode(wn.disabled);var de=this.useProgram("clippingMask");this._tileClippingMaskIDs={};for(var ne=0,we=J;ne256&&this.clearStencil();var D=this.nextStencilID++,J=this.context.gl;return new kn({func:J.NOTEQUAL,mask:255},D,255,J.KEEP,J.KEEP,J.REPLACE)},mo.prototype.stencilModeForClipping=function(D){var J=this.context.gl;return new kn({func:J.EQUAL,mask:255},this._tileClippingMaskIDs[D.key],0,J.KEEP,J.KEEP,J.REPLACE)},mo.prototype.stencilConfigForOverlap=function(D){var J,q=this.context.gl,K=D.sort(function(ft,Zt){return Zt.overscaledZ-ft.overscaledZ}),de=K[K.length-1].overscaledZ,ne=K[0].overscaledZ-de+1;if(ne>1){this.currentStencilSource=void 0,this.nextStencilID+ne>256&&this.clearStencil();for(var we={},Ue=0;Ue=0;this.currentLayer--){var Rt=this.style._layers[K[this.currentLayer]],mt=de[Rt.source],Pt=Ue[Rt.source];this._renderTileClippingMasks(Rt,Pt),this.renderLayer(this,mt,Rt,Pt)}for(this.renderPass="translucent",this.currentLayer=0;this.currentLayer0?J.pop():null},mo.prototype.isPatternMissing=function(D){if(!D)return!1;if(!D.from||!D.to)return!0;var J=this.imageManager.getPattern(D.from.toString()),q=this.imageManager.getPattern(D.to.toString());return!J||!q},mo.prototype.useProgram=function(D,J){this.cache=this.cache||{};var q=""+D+(J?J.cacheKey:"")+(this._showOverdrawInspector?"/overdraw":"");return this.cache[q]||(this.cache[q]=new If(this.context,D,bf[D],J,oo[D],this._showOverdrawInspector)),this.cache[q]},mo.prototype.setCustomLayerDefaults=function(){this.context.unbindVAO(),this.context.cullFace.setDefault(),this.context.activeTexture.setDefault(),this.context.pixelStoreUnpack.setDefault(),this.context.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.context.pixelStoreUnpackFlipY.setDefault()},mo.prototype.setBaseState=function(){var D=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(D.FUNC_ADD)},mo.prototype.initDebugOverlayCanvas=function(){if(this.debugOverlayCanvas==null){this.debugOverlayCanvas=i.window.document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512;var D=this.context.gl;this.debugOverlayTexture=new i.Texture(this.context,this.debugOverlayCanvas,D.RGBA)}},mo.prototype.destroy=function(){this.emptyTexture.destroy(),this.debugOverlayTexture&&this.debugOverlayTexture.destroy()};var Bo=function(D,J){this.points=D,this.planes=J};Bo.fromInvProjectionMatrix=function(D,J,q){var K=[[-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]],de=Math.pow(2,q),ne=K.map(function(ft){return i.transformMat4([],ft,D)}).map(function(ft){return i.scale$1([],ft,1/ft[3]/J*de)}),we=[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]],Ue=we.map(function(ft){var Zt=i.sub([],ne[ft[0]],ne[ft[1]]),hr=i.sub([],ne[ft[2]],ne[ft[1]]),qt=i.normalize([],i.cross([],Zt,hr)),Ve=-i.dot(qt,ne[ft[1]]);return qt.concat(Ve)});return new Bo(ne,Ue)};var Is=function(D,J){this.min=D,this.max=J,this.center=i.scale$2([],i.add([],this.min,this.max),.5)};Is.prototype.quadrant=function(D){for(var J=[D%2===0,D<2],q=i.clone$2(this.min),K=i.clone$2(this.max),de=0;de=0;if(ne===0)return 0;ne!==J.length&&(q=!1)}if(q)return 2;for(var Ue=0;Ue<3;Ue++){for(var ft=Number.MAX_VALUE,Zt=-Number.MAX_VALUE,hr=0;hrthis.max[Ue]-this.min[Ue])return 0}return 1};var As=function(D,J,q,K){if(D===void 0&&(D=0),J===void 0&&(J=0),q===void 0&&(q=0),K===void 0&&(K=0),isNaN(D)||D<0||isNaN(J)||J<0||isNaN(q)||q<0||isNaN(K)||K<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=D,this.bottom=J,this.left=q,this.right=K};As.prototype.interpolate=function(D,J,q){return J.top!=null&&D.top!=null&&(this.top=i.number(D.top,J.top,q)),J.bottom!=null&&D.bottom!=null&&(this.bottom=i.number(D.bottom,J.bottom,q)),J.left!=null&&D.left!=null&&(this.left=i.number(D.left,J.left,q)),J.right!=null&&D.right!=null&&(this.right=i.number(D.right,J.right,q)),this},As.prototype.getCenter=function(D,J){var q=i.clamp((this.left+D-this.right)/2,0,D),K=i.clamp((this.top+J-this.bottom)/2,0,J);return new i.Point(q,K)},As.prototype.equals=function(D){return this.top===D.top&&this.bottom===D.bottom&&this.left===D.left&&this.right===D.right},As.prototype.clone=function(){return new As(this.top,this.bottom,this.left,this.right)},As.prototype.toJSON=function(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}};var wo=function(D,J,q,K,de){this.tileSize=512,this.maxValidLatitude=85.051129,this._renderWorldCopies=de===void 0?!0:de,this._minZoom=D||0,this._maxZoom=J||22,this._minPitch=q==null?0:q,this._maxPitch=K==null?60:K,this.setMaxBounds(),this.width=0,this.height=0,this._center=new i.LngLat(0,0),this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this._unmodified=!0,this._edgeInsets=new As,this._posMatrixCache={},this._alignedPosMatrixCache={}},To={minZoom:{configurable:!0},maxZoom:{configurable:!0},minPitch:{configurable:!0},maxPitch:{configurable:!0},renderWorldCopies:{configurable:!0},worldSize:{configurable:!0},centerOffset:{configurable:!0},size:{configurable:!0},bearing:{configurable:!0},pitch:{configurable:!0},fov:{configurable:!0},zoom:{configurable:!0},center:{configurable:!0},padding:{configurable:!0},centerPoint:{configurable:!0},unmodified:{configurable:!0},point:{configurable:!0}};wo.prototype.clone=function(){var D=new wo(this._minZoom,this._maxZoom,this._minPitch,this.maxPitch,this._renderWorldCopies);return D.tileSize=this.tileSize,D.latRange=this.latRange,D.width=this.width,D.height=this.height,D._center=this._center,D.zoom=this.zoom,D.angle=this.angle,D._fov=this._fov,D._pitch=this._pitch,D._unmodified=this._unmodified,D._edgeInsets=this._edgeInsets.clone(),D._calcMatrices(),D},To.minZoom.get=function(){return this._minZoom},To.minZoom.set=function(Y){this._minZoom!==Y&&(this._minZoom=Y,this.zoom=Math.max(this.zoom,Y))},To.maxZoom.get=function(){return this._maxZoom},To.maxZoom.set=function(Y){this._maxZoom!==Y&&(this._maxZoom=Y,this.zoom=Math.min(this.zoom,Y))},To.minPitch.get=function(){return this._minPitch},To.minPitch.set=function(Y){this._minPitch!==Y&&(this._minPitch=Y,this.pitch=Math.max(this.pitch,Y))},To.maxPitch.get=function(){return this._maxPitch},To.maxPitch.set=function(Y){this._maxPitch!==Y&&(this._maxPitch=Y,this.pitch=Math.min(this.pitch,Y))},To.renderWorldCopies.get=function(){return this._renderWorldCopies},To.renderWorldCopies.set=function(Y){Y===void 0?Y=!0:Y===null&&(Y=!1),this._renderWorldCopies=Y},To.worldSize.get=function(){return this.tileSize*this.scale},To.centerOffset.get=function(){return this.centerPoint._sub(this.size._div(2))},To.size.get=function(){return new i.Point(this.width,this.height)},To.bearing.get=function(){return-this.angle/Math.PI*180},To.bearing.set=function(Y){var D=-i.wrap(Y,-180,180)*Math.PI/180;this.angle!==D&&(this._unmodified=!1,this.angle=D,this._calcMatrices(),this.rotationMatrix=i.create$2(),i.rotate(this.rotationMatrix,this.rotationMatrix,this.angle))},To.pitch.get=function(){return this._pitch/Math.PI*180},To.pitch.set=function(Y){var D=i.clamp(Y,this.minPitch,this.maxPitch)/180*Math.PI;this._pitch!==D&&(this._unmodified=!1,this._pitch=D,this._calcMatrices())},To.fov.get=function(){return this._fov/Math.PI*180},To.fov.set=function(Y){Y=Math.max(.01,Math.min(60,Y)),this._fov!==Y&&(this._unmodified=!1,this._fov=Y/180*Math.PI,this._calcMatrices())},To.zoom.get=function(){return this._zoom},To.zoom.set=function(Y){var D=Math.min(Math.max(Y,this.minZoom),this.maxZoom);this._zoom!==D&&(this._unmodified=!1,this._zoom=D,this.scale=this.zoomScale(D),this.tileZoom=Math.floor(D),this.zoomFraction=D-this.tileZoom,this._constrain(),this._calcMatrices())},To.center.get=function(){return this._center},To.center.set=function(Y){Y.lat===this._center.lat&&Y.lng===this._center.lng||(this._unmodified=!1,this._center=Y,this._constrain(),this._calcMatrices())},To.padding.get=function(){return this._edgeInsets.toJSON()},To.padding.set=function(Y){this._edgeInsets.equals(Y)||(this._unmodified=!1,this._edgeInsets.interpolate(this._edgeInsets,Y,1),this._calcMatrices())},To.centerPoint.get=function(){return this._edgeInsets.getCenter(this.width,this.height)},wo.prototype.isPaddingEqual=function(D){return this._edgeInsets.equals(D)},wo.prototype.interpolatePadding=function(D,J,q){this._unmodified=!1,this._edgeInsets.interpolate(D,J,q),this._constrain(),this._calcMatrices()},wo.prototype.coveringZoomLevel=function(D){var J=(D.roundZoom?Math.round:Math.floor)(this.zoom+this.scaleZoom(this.tileSize/D.tileSize));return Math.max(0,J)},wo.prototype.getVisibleUnwrappedCoordinates=function(D){var J=[new i.UnwrappedTileID(0,D)];if(this._renderWorldCopies)for(var q=this.pointCoordinate(new i.Point(0,0)),K=this.pointCoordinate(new i.Point(this.width,0)),de=this.pointCoordinate(new i.Point(this.width,this.height)),ne=this.pointCoordinate(new i.Point(0,this.height)),we=Math.floor(Math.min(q.x,K.x,de.x,ne.x)),Ue=Math.floor(Math.max(q.x,K.x,de.x,ne.x)),ft=1,Zt=we-ft;Zt<=Ue+ft;Zt++)Zt!==0&&J.push(new i.UnwrappedTileID(Zt,D));return J},wo.prototype.coveringTiles=function(D){var J=this.coveringZoomLevel(D),q=J;if(D.minzoom!==void 0&&JD.maxzoom&&(J=D.maxzoom);var K=i.MercatorCoordinate.fromLngLat(this.center),de=Math.pow(2,J),ne=[de*K.x,de*K.y,0],we=Bo.fromInvProjectionMatrix(this.invProjMatrix,this.worldSize,J),Ue=D.minzoom||0;this.pitch<=60&&this._edgeInsets.top<.1&&(Ue=J);var ft=3,Zt=function(hi){return{aabb:new Is([hi*de,0,0],[(hi+1)*de,de,0]),zoom:0,x:0,y:0,wrap:hi,fullyVisible:!1}},hr=[],qt=[],Ve=J,et=D.reparseOverscaled?q:J;if(this._renderWorldCopies)for(var at=1;at<=3;at++)hr.push(Zt(-at)),hr.push(Zt(at));for(hr.push(Zt(0));hr.length>0;){var kt=hr.pop(),Ot=kt.x,It=kt.y,Bt=kt.fullyVisible;if(!Bt){var Rt=kt.aabb.intersects(we);if(Rt===0)continue;Bt=Rt===2}var mt=kt.aabb.distanceX(ne),Pt=kt.aabb.distanceY(ne),ht=Math.max(Math.abs(mt),Math.abs(Pt)),cr=ft+(1<cr&&kt.zoom>=Ue){qt.push({tileID:new i.OverscaledTileID(kt.zoom===Ve?et:kt.zoom,kt.wrap,kt.zoom,Ot,It),distanceSq:i.sqrLen([ne[0]-.5-Ot,ne[1]-.5-It])});continue}for(var br=0;br<4;br++){var Nr=(Ot<<1)+br%2,Ri=(It<<1)+(br>>1);hr.push({aabb:kt.aabb.quadrant(br),zoom:kt.zoom+1,x:Nr,y:Ri,wrap:kt.wrap,fullyVisible:Bt})}}return qt.sort(function(hi,wi){return hi.distanceSq-wi.distanceSq}).map(function(hi){return hi.tileID})},wo.prototype.resize=function(D,J){this.width=D,this.height=J,this.pixelsToGLUnits=[2/D,-2/J],this._constrain(),this._calcMatrices()},To.unmodified.get=function(){return this._unmodified},wo.prototype.zoomScale=function(D){return Math.pow(2,D)},wo.prototype.scaleZoom=function(D){return Math.log(D)/Math.LN2},wo.prototype.project=function(D){var J=i.clamp(D.lat,-this.maxValidLatitude,this.maxValidLatitude);return new i.Point(i.mercatorXfromLng(D.lng)*this.worldSize,i.mercatorYfromLat(J)*this.worldSize)},wo.prototype.unproject=function(D){return new i.MercatorCoordinate(D.x/this.worldSize,D.y/this.worldSize).toLngLat()},To.point.get=function(){return this.project(this.center)},wo.prototype.setLocationAtPoint=function(D,J){var q=this.pointCoordinate(J),K=this.pointCoordinate(this.centerPoint),de=this.locationCoordinate(D),ne=new i.MercatorCoordinate(de.x-(q.x-K.x),de.y-(q.y-K.y));this.center=this.coordinateLocation(ne),this._renderWorldCopies&&(this.center=this.center.wrap())},wo.prototype.locationPoint=function(D){return this.coordinatePoint(this.locationCoordinate(D))},wo.prototype.pointLocation=function(D){return this.coordinateLocation(this.pointCoordinate(D))},wo.prototype.locationCoordinate=function(D){return i.MercatorCoordinate.fromLngLat(D)},wo.prototype.coordinateLocation=function(D){return D.toLngLat()},wo.prototype.pointCoordinate=function(D){var J=0,q=[D.x,D.y,0,1],K=[D.x,D.y,1,1];i.transformMat4(q,q,this.pixelMatrixInverse),i.transformMat4(K,K,this.pixelMatrixInverse);var de=q[3],ne=K[3],we=q[0]/de,Ue=K[0]/ne,ft=q[1]/de,Zt=K[1]/ne,hr=q[2]/de,qt=K[2]/ne,Ve=hr===qt?0:(J-hr)/(qt-hr);return new i.MercatorCoordinate(i.number(we,Ue,Ve)/this.worldSize,i.number(ft,Zt,Ve)/this.worldSize)},wo.prototype.coordinatePoint=function(D){var J=[D.x*this.worldSize,D.y*this.worldSize,0,1];return i.transformMat4(J,J,this.pixelMatrix),new i.Point(J[0]/J[3],J[1]/J[3])},wo.prototype.getBounds=function(){return new i.LngLatBounds().extend(this.pointLocation(new i.Point(0,0))).extend(this.pointLocation(new i.Point(this.width,0))).extend(this.pointLocation(new i.Point(this.width,this.height))).extend(this.pointLocation(new i.Point(0,this.height)))},wo.prototype.getMaxBounds=function(){return!this.latRange||this.latRange.length!==2||!this.lngRange||this.lngRange.length!==2?null:new i.LngLatBounds([this.lngRange[0],this.latRange[0]],[this.lngRange[1],this.latRange[1]])},wo.prototype.setMaxBounds=function(D){D?(this.lngRange=[D.getWest(),D.getEast()],this.latRange=[D.getSouth(),D.getNorth()],this._constrain()):(this.lngRange=null,this.latRange=[-this.maxValidLatitude,this.maxValidLatitude])},wo.prototype.calculatePosMatrix=function(D,J){J===void 0&&(J=!1);var q=D.key,K=J?this._alignedPosMatrixCache:this._posMatrixCache;if(K[q])return K[q];var de=D.canonical,ne=this.worldSize/this.zoomScale(de.z),we=de.x+Math.pow(2,de.z)*D.wrap,Ue=i.identity(new Float64Array(16));return i.translate(Ue,Ue,[we*ne,de.y*ne,0]),i.scale(Ue,Ue,[ne/i.EXTENT,ne/i.EXTENT,1]),i.multiply(Ue,J?this.alignedProjMatrix:this.projMatrix,Ue),K[q]=new Float32Array(Ue),K[q]},wo.prototype.customLayerMatrix=function(){return this.mercatorMatrix.slice()},wo.prototype._constrain=function(){if(!(!this.center||!this.width||!this.height||this._constraining)){this._constraining=!0;var D=-90,J=90,q=-180,K=180,de,ne,we,Ue,ft=this.size,Zt=this._unmodified;if(this.latRange){var hr=this.latRange;D=i.mercatorYfromLat(hr[1])*this.worldSize,J=i.mercatorYfromLat(hr[0])*this.worldSize,de=J-DJ&&(Ue=J-kt)}if(this.lngRange){var Ot=Ve.x,It=ft.x/2;Ot-ItK&&(we=K-It)}(we!==void 0||Ue!==void 0)&&(this.center=this.unproject(new i.Point(we!==void 0?we:Ve.x,Ue!==void 0?Ue:Ve.y))),this._unmodified=Zt,this._constraining=!1}},wo.prototype._calcMatrices=function(){if(this.height){var D=this._fov/2,J=this.centerOffset;this.cameraToCenterDistance=.5/Math.tan(D)*this.height;var q=Math.PI/2+this._pitch,K=this._fov*(.5+J.y/this.height),de=Math.sin(K)*this.cameraToCenterDistance/Math.sin(i.clamp(Math.PI-q-K,.01,Math.PI-.01)),ne=this.point,we=ne.x,Ue=ne.y,ft=Math.cos(Math.PI/2-this._pitch)*de+this.cameraToCenterDistance,Zt=ft*1.01,hr=this.height/50,qt=new Float64Array(16);i.perspective(qt,this._fov,this.width/this.height,hr,Zt),qt[8]=-J.x*2/this.width,qt[9]=J.y*2/this.height,i.scale(qt,qt,[1,-1,1]),i.translate(qt,qt,[0,0,-this.cameraToCenterDistance]),i.rotateX(qt,qt,this._pitch),i.rotateZ(qt,qt,this.angle),i.translate(qt,qt,[-we,-Ue,0]),this.mercatorMatrix=i.scale([],qt,[this.worldSize,this.worldSize,this.worldSize]),i.scale(qt,qt,[1,1,i.mercatorZfromAltitude(1,this.center.lat)*this.worldSize,1]),this.projMatrix=qt,this.invProjMatrix=i.invert([],this.projMatrix);var Ve=this.width%2/2,et=this.height%2/2,at=Math.cos(this.angle),kt=Math.sin(this.angle),Ot=we-Math.round(we)+at*Ve+kt*et,It=Ue-Math.round(Ue)+at*et+kt*Ve,Bt=new Float64Array(qt);if(i.translate(Bt,Bt,[Ot>.5?Ot-1:Ot,It>.5?It-1:It,0]),this.alignedProjMatrix=Bt,qt=i.create(),i.scale(qt,qt,[this.width/2,-this.height/2,1]),i.translate(qt,qt,[1,-1,0]),this.labelPlaneMatrix=qt,qt=i.create(),i.scale(qt,qt,[1,-1,1]),i.translate(qt,qt,[-1,-1,0]),i.scale(qt,qt,[2/this.width,2/this.height,1]),this.glCoordMatrix=qt,this.pixelMatrix=i.multiply(new Float64Array(16),this.labelPlaneMatrix,this.projMatrix),qt=i.invert(new Float64Array(16),this.pixelMatrix),!qt)throw new Error("failed to invert matrix");this.pixelMatrixInverse=qt,this._posMatrixCache={},this._alignedPosMatrixCache={}}},wo.prototype.maxPitchScaleFactor=function(){if(!this.pixelMatrixInverse)return 1;var D=this.pointCoordinate(new i.Point(0,0)),J=[D.x*this.worldSize,D.y*this.worldSize,0,1],q=i.transformMat4(J,J,this.pixelMatrix);return q[3]/this.cameraToCenterDistance},wo.prototype.getCameraPoint=function(){var D=this._pitch,J=Math.tan(D)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new i.Point(0,J))},wo.prototype.getCameraQueryGeometry=function(D){var J=this.getCameraPoint();if(D.length===1)return[D[0],J];for(var q=J.x,K=J.y,de=J.x,ne=J.y,we=0,Ue=D;we=3&&!D.some(function(q){return isNaN(q)})){var J=this._map.dragRotate.isEnabled()&&this._map.touchZoomRotate.isEnabled()?+(D[3]||0):this._map.getBearing();return this._map.jumpTo({center:[+D[2],+D[1]],zoom:+D[0],bearing:J,pitch:+(D[4]||0)}),!0}return!1},Nl.prototype._updateHashUnthrottled=function(){var D=i.window.location.href.replace(/(#.+)?$/,this.getHashString());try{i.window.history.replaceState(i.window.history.state,null,D)}catch(J){}};var Lu={linearity:.3,easing:i.bezier(0,0,.3,1)},ou=i.extend({deceleration:2500,maxSpeed:1400},Lu),$s=i.extend({deceleration:20,maxSpeed:1400},Lu),Ql=i.extend({deceleration:1e3,maxSpeed:360},Lu),dc=i.extend({deceleration:1e3,maxSpeed:90},Lu),Tl=function(D){this._map=D,this.clear()};Tl.prototype.clear=function(){this._inertiaBuffer=[]},Tl.prototype.record=function(D){this._drainInertiaBuffer(),this._inertiaBuffer.push({time:i.browser.now(),settings:D})},Tl.prototype._drainInertiaBuffer=function(){for(var D=this._inertiaBuffer,J=i.browser.now(),q=160;D.length>0&&J-D[0].time>q;)D.shift()},Tl.prototype._onMoveEnd=function(D){if(this._drainInertiaBuffer(),!(this._inertiaBuffer.length<2)){for(var J={zoom:0,bearing:0,pitch:0,pan:new i.Point(0,0),pinchAround:void 0,around:void 0},q=0,K=this._inertiaBuffer;q=this._clickTolerance||this._map.fire(new se(D.type,this._map,D))},He.prototype.dblclick=function(D){return this._firePreventable(new se(D.type,this._map,D))},He.prototype.mouseover=function(D){this._map.fire(new se(D.type,this._map,D))},He.prototype.mouseout=function(D){this._map.fire(new se(D.type,this._map,D))},He.prototype.touchstart=function(D){return this._firePreventable(new Te(D.type,this._map,D))},He.prototype.touchmove=function(D){this._map.fire(new Te(D.type,this._map,D))},He.prototype.touchend=function(D){this._map.fire(new Te(D.type,this._map,D))},He.prototype.touchcancel=function(D){this._map.fire(new Te(D.type,this._map,D))},He.prototype._firePreventable=function(D){if(this._map.fire(D),D.defaultPrevented)return{}},He.prototype.isEnabled=function(){return!0},He.prototype.isActive=function(){return!1},He.prototype.enable=function(){},He.prototype.disable=function(){};var Ye=function(D){this._map=D};Ye.prototype.reset=function(){this._delayContextMenu=!1,delete this._contextMenuEvent},Ye.prototype.mousemove=function(D){this._map.fire(new se(D.type,this._map,D))},Ye.prototype.mousedown=function(){this._delayContextMenu=!0},Ye.prototype.mouseup=function(){this._delayContextMenu=!1,this._contextMenuEvent&&(this._map.fire(new se("contextmenu",this._map,this._contextMenuEvent)),delete this._contextMenuEvent)},Ye.prototype.contextmenu=function(D){this._delayContextMenu?this._contextMenuEvent=D:this._map.fire(new se(D.type,this._map,D)),this._map.listens("contextmenu")&&D.preventDefault()},Ye.prototype.isEnabled=function(){return!0},Ye.prototype.isActive=function(){return!1},Ye.prototype.enable=function(){},Ye.prototype.disable=function(){};var Ct=function(D,J){this._map=D,this._el=D.getCanvasContainer(),this._container=D.getContainer(),this._clickTolerance=J.clickTolerance||1};Ct.prototype.isEnabled=function(){return!!this._enabled},Ct.prototype.isActive=function(){return!!this._active},Ct.prototype.enable=function(){this.isEnabled()||(this._enabled=!0)},Ct.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},Ct.prototype.mousedown=function(D,J){this.isEnabled()&&D.shiftKey&&D.button===0&&(o.disableDrag(),this._startPos=this._lastPos=J,this._active=!0)},Ct.prototype.mousemoveWindow=function(D,J){if(this._active){var q=J;if(!(this._lastPos.equals(q)||!this._box&&q.dist(this._startPos)this.numTouches)&&(this.aborted=!0),!this.aborted&&(this.startTime===void 0&&(this.startTime=D.timeStamp),q.length===this.numTouches&&(this.centroid=jt(J),this.touches=nt(q,J)))},qr.prototype.touchmove=function(D,J,q){if(!(this.aborted||!this.centroid)){var K=nt(q,J);for(var de in this.touches){var ne=this.touches[de],we=K[de];(!we||we.dist(ne)>Gr)&&(this.aborted=!0)}}},qr.prototype.touchend=function(D,J,q){if((!this.centroid||D.timeStamp-this.startTime>yr)&&(this.aborted=!0),q.length===0){var K=!this.aborted&&this.centroid;if(this.reset(),K)return K}};var _i=function(D){this.singleTap=new qr(D),this.numTaps=D.numTaps,this.reset()};_i.prototype.reset=function(){this.lastTime=1/0,delete this.lastTap,this.count=0,this.singleTap.reset()},_i.prototype.touchstart=function(D,J,q){this.singleTap.touchstart(D,J,q)},_i.prototype.touchmove=function(D,J,q){this.singleTap.touchmove(D,J,q)},_i.prototype.touchend=function(D,J,q){var K=this.singleTap.touchend(D,J,q);if(K){var de=D.timeStamp-this.lastTime0&&(this._active=!0);var K=nt(q,J),de=new i.Point(0,0),ne=new i.Point(0,0),we=0;for(var Ue in K){var ft=K[Ue],Zt=this._touches[Ue];Zt&&(de._add(ft),ne._add(ft.sub(Zt)),we++,K[Ue]=ft)}if(this._touches=K,!(weMath.abs(Y.x)}var Gn=100,Ha=function(Y){function D(){Y.apply(this,arguments)}return Y&&(D.__proto__=Y),D.prototype=Object.create(Y&&Y.prototype),D.prototype.constructor=D,D.prototype.reset=function(){Y.prototype.reset.call(this),this._valid=void 0,delete this._firstMove,delete this._lastPoints},D.prototype._start=function(q){this._lastPoints=q,Zs(q[0].sub(q[1]))&&(this._valid=!1)},D.prototype._move=function(q,K,de){var ne=q[0].sub(this._lastPoints[0]),we=q[1].sub(this._lastPoints[1]);if(this._valid=this.gestureBeginsVertically(ne,we,de.timeStamp),!!this._valid){this._lastPoints=q,this._active=!0;var Ue=(ne.y+we.y)/2,ft=-.5;return{pitchDelta:Ue*ft}}},D.prototype.gestureBeginsVertically=function(q,K,de){if(this._valid!==void 0)return this._valid;var ne=2,we=q.mag()>=ne,Ue=K.mag()>=ne;if(!(!we&&!Ue)){if(!we||!Ue)return this._firstMove===void 0&&(this._firstMove=de),de-this._firstMove0==K.y>0;return Zs(q)&&Zs(K)&&ft}},D}(ia),Fo={panStep:100,bearingStep:15,pitchStep:10},Uo=function(){var D=Fo;this._panStep=D.panStep,this._bearingStep=D.bearingStep,this._pitchStep=D.pitchStep,this._rotationDisabled=!1};Uo.prototype.reset=function(){this._active=!1},Uo.prototype.keydown=function(D){var J=this;if(!(D.altKey||D.ctrlKey||D.metaKey)){var q=0,K=0,de=0,ne=0,we=0;switch(D.keyCode){case 61:case 107:case 171:case 187:q=1;break;case 189:case 109:case 173:q=-1;break;case 37:D.shiftKey?K=-1:(D.preventDefault(),ne=-1);break;case 39:D.shiftKey?K=1:(D.preventDefault(),ne=1);break;case 38:D.shiftKey?de=1:(D.preventDefault(),we=-1);break;case 40:D.shiftKey?de=-1:(D.preventDefault(),we=1);break;default:return}return this._rotationDisabled&&(K=0,de=0),{cameraAnimation:function(Ue){var ft=Ue.getZoom();Ue.easeTo({duration:300,easeId:"keyboardHandler",easing:Qs,zoom:q?Math.round(ft)+q*(D.shiftKey?2:1):ft,bearing:Ue.getBearing()+K*J._bearingStep,pitch:Ue.getPitch()+de*J._pitchStep,offset:[-ne*J._panStep,-we*J._panStep],center:Ue.getCenter()},{originalEvent:D})}}}},Uo.prototype.enable=function(){this._enabled=!0},Uo.prototype.disable=function(){this._enabled=!1,this.reset()},Uo.prototype.isEnabled=function(){return this._enabled},Uo.prototype.isActive=function(){return this._active},Uo.prototype.disableRotation=function(){this._rotationDisabled=!0},Uo.prototype.enableRotation=function(){this._rotationDisabled=!1};function Qs(Y){return Y*(2-Y)}var Sl=4.000244140625,bu=1/100,vl=1/450,Sc=2,Ee=function(D,J){this._map=D,this._el=D.getCanvasContainer(),this._handler=J,this._delta=0,this._defaultZoomRate=bu,this._wheelZoomRate=vl,i.bindAll(["_onTimeout"],this)};Ee.prototype.setZoomRate=function(D){this._defaultZoomRate=D},Ee.prototype.setWheelZoomRate=function(D){this._wheelZoomRate=D},Ee.prototype.isEnabled=function(){return!!this._enabled},Ee.prototype.isActive=function(){return!!this._active||this._finishTimeout!==void 0},Ee.prototype.isZooming=function(){return!!this._zooming},Ee.prototype.enable=function(D){this.isEnabled()||(this._enabled=!0,this._aroundCenter=D&&D.around==="center")},Ee.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},Ee.prototype.wheel=function(D){if(this.isEnabled()){var J=D.deltaMode===i.window.WheelEvent.DOM_DELTA_LINE?D.deltaY*40:D.deltaY,q=i.browser.now(),K=q-(this._lastWheelEventTime||0);this._lastWheelEventTime=q,J!==0&&J%Sl===0?this._type="wheel":J!==0&&Math.abs(J)<4?this._type="trackpad":K>400?(this._type=null,this._lastValue=J,this._timeout=setTimeout(this._onTimeout,40,D)):this._type||(this._type=Math.abs(K*J)<200?"trackpad":"wheel",this._timeout&&(clearTimeout(this._timeout),this._timeout=null,J+=this._lastValue)),D.shiftKey&&J&&(J=J/4),this._type&&(this._lastWheelEvent=D,this._delta-=J,this._active||this._start(D)),D.preventDefault()}},Ee.prototype._onTimeout=function(D){this._type="wheel",this._delta-=this._lastValue,this._active||this._start(D)},Ee.prototype._start=function(D){if(this._delta){this._frameId&&(this._frameId=null),this._active=!0,this.isZooming()||(this._zooming=!0),this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout);var J=o.mousePos(this._el,D);this._around=i.LngLat.convert(this._aroundCenter?this._map.getCenter():this._map.unproject(J)),this._aroundPoint=this._map.transform.locationPoint(this._around),this._frameId||(this._frameId=!0,this._handler._triggerRenderFrame())}},Ee.prototype.renderFrame=function(){var D=this;if(this._frameId&&(this._frameId=null,!!this.isActive())){var J=this._map.transform;if(this._delta!==0){var q=this._type==="wheel"&&Math.abs(this._delta)>Sl?this._wheelZoomRate:this._defaultZoomRate,K=Sc/(1+Math.exp(-Math.abs(this._delta*q)));this._delta<0&&K!==0&&(K=1/K);var de=typeof this._targetZoom=="number"?J.zoomScale(this._targetZoom):J.scale;this._targetZoom=Math.min(J.maxZoom,Math.max(J.minZoom,J.scaleZoom(de*K))),this._type==="wheel"&&(this._startZoom=J.zoom,this._easing=this._smoothOutEasing(200)),this._delta=0}var ne=typeof this._targetZoom=="number"?this._targetZoom:J.zoom,we=this._startZoom,Ue=this._easing,ft=!1,Zt;if(this._type==="wheel"&&we&&Ue){var hr=Math.min((i.browser.now()-this._lastWheelEventTime)/200,1),qt=Ue(hr);Zt=i.number(we,ne,qt),hr<1?this._frameId||(this._frameId=!0):ft=!0}else Zt=ne,ft=!0;return this._active=!0,ft&&(this._active=!1,this._finishTimeout=setTimeout(function(){D._zooming=!1,D._handler._triggerRenderFrame(),delete D._targetZoom,delete D._finishTimeout},200)),{noInertia:!0,needsRenderFrame:!ft,zoomDelta:Zt-J.zoom,around:this._aroundPoint,originalEvent:this._lastWheelEvent}}},Ee.prototype._smoothOutEasing=function(D){var J=i.ease;if(this._prevEase){var q=this._prevEase,K=(i.browser.now()-q.start)/q.duration,de=q.easing(K+.01)-q.easing(K),ne=.27/Math.sqrt(de*de+1e-4)*.01,we=Math.sqrt(.27*.27-ne*ne);J=i.bezier(ne,we,.25,1)}return this._prevEase={start:i.browser.now(),duration:D,easing:J},J},Ee.prototype.reset=function(){this._active=!1};var xt=function(D,J){this._clickZoom=D,this._tapZoom=J};xt.prototype.enable=function(){this._clickZoom.enable(),this._tapZoom.enable()},xt.prototype.disable=function(){this._clickZoom.disable(),this._tapZoom.disable()},xt.prototype.isEnabled=function(){return this._clickZoom.isEnabled()&&this._tapZoom.isEnabled()},xt.prototype.isActive=function(){return this._clickZoom.isActive()||this._tapZoom.isActive()};var zt=function(){this.reset()};zt.prototype.reset=function(){this._active=!1},zt.prototype.dblclick=function(D,J){return D.preventDefault(),{cameraAnimation:function(q){q.easeTo({duration:300,zoom:q.getZoom()+(D.shiftKey?-1:1),around:q.unproject(J)},{originalEvent:D})}}},zt.prototype.enable=function(){this._enabled=!0},zt.prototype.disable=function(){this._enabled=!1,this.reset()},zt.prototype.isEnabled=function(){return this._enabled},zt.prototype.isActive=function(){return this._active};var Ir=function(){this._tap=new _i({numTouches:1,numTaps:1}),this.reset()};Ir.prototype.reset=function(){this._active=!1,delete this._swipePoint,delete this._swipeTouch,delete this._tapTime,this._tap.reset()},Ir.prototype.touchstart=function(D,J,q){this._swipePoint||(this._tapTime&&D.timeStamp-this._tapTime>gr&&this.reset(),this._tapTime?q.length>0&&(this._swipePoint=J[0],this._swipeTouch=q[0].identifier):this._tap.touchstart(D,J,q))},Ir.prototype.touchmove=function(D,J,q){if(!this._tapTime)this._tap.touchmove(D,J,q);else if(this._swipePoint){if(q[0].identifier!==this._swipeTouch)return;var K=J[0],de=K.y-this._swipePoint.y;return this._swipePoint=K,D.preventDefault(),this._active=!0,{zoomDelta:de/128}}},Ir.prototype.touchend=function(D,J,q){if(this._tapTime)this._swipePoint&&q.length===0&&this.reset();else{var K=this._tap.touchend(D,J,q);K&&(this._tapTime=D.timeStamp)}},Ir.prototype.touchcancel=function(){this.reset()},Ir.prototype.enable=function(){this._enabled=!0},Ir.prototype.disable=function(){this._enabled=!1,this.reset()},Ir.prototype.isEnabled=function(){return this._enabled},Ir.prototype.isActive=function(){return this._active};var Hr=function(D,J,q){this._el=D,this._mousePan=J,this._touchPan=q};Hr.prototype.enable=function(D){this._inertiaOptions=D||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add("mapboxgl-touch-drag-pan")},Hr.prototype.disable=function(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove("mapboxgl-touch-drag-pan")},Hr.prototype.isEnabled=function(){return this._mousePan.isEnabled()&&this._touchPan.isEnabled()},Hr.prototype.isActive=function(){return this._mousePan.isActive()||this._touchPan.isActive()};var Br=function(D,J,q){this._pitchWithRotate=D.pitchWithRotate,this._mouseRotate=J,this._mousePitch=q};Br.prototype.enable=function(){this._mouseRotate.enable(),this._pitchWithRotate&&this._mousePitch.enable()},Br.prototype.disable=function(){this._mouseRotate.disable(),this._mousePitch.disable()},Br.prototype.isEnabled=function(){return this._mouseRotate.isEnabled()&&(!this._pitchWithRotate||this._mousePitch.isEnabled())},Br.prototype.isActive=function(){return this._mouseRotate.isActive()||this._mousePitch.isActive()};var Vr=function(D,J,q,K){this._el=D,this._touchZoom=J,this._touchRotate=q,this._tapDragZoom=K,this._rotationDisabled=!1,this._enabled=!0};Vr.prototype.enable=function(D){this._touchZoom.enable(D),this._rotationDisabled||this._touchRotate.enable(D),this._tapDragZoom.enable(),this._el.classList.add("mapboxgl-touch-zoom-rotate")},Vr.prototype.disable=function(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove("mapboxgl-touch-zoom-rotate")},Vr.prototype.isEnabled=function(){return this._touchZoom.isEnabled()&&(this._rotationDisabled||this._touchRotate.isEnabled())&&this._tapDragZoom.isEnabled()},Vr.prototype.isActive=function(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()},Vr.prototype.disableRotation=function(){this._rotationDisabled=!0,this._touchRotate.disable()},Vr.prototype.enableRotation=function(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&&this._touchRotate.enable()};var mi=function(Y){return Y.zoom||Y.drag||Y.pitch||Y.rotate},Ni=function(Y){function D(){Y.apply(this,arguments)}return Y&&(D.__proto__=Y),D.prototype=Object.create(Y&&Y.prototype),D.prototype.constructor=D,D}(i.Event);function Oi(Y){return Y.panDelta&&Y.panDelta.mag()||Y.zoomDelta||Y.bearingDelta||Y.pitchDelta}var Mi=function(D,J){this._map=D,this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new Tl(D),this._bearingSnap=J.bearingSnap,this._previousActiveHandlers={},this._eventsInProgress={},this._addDefaultHandlers(J),i.bindAll(["handleEvent","handleWindowEvent"],this);var q=this._el;this._listeners=[[q,"touchstart",{passive:!0}],[q,"touchmove",{passive:!1}],[q,"touchend",void 0],[q,"touchcancel",void 0],[q,"mousedown",void 0],[q,"mousemove",void 0],[q,"mouseup",void 0],[i.window.document,"mousemove",{capture:!0}],[i.window.document,"mouseup",void 0],[q,"mouseover",void 0],[q,"mouseout",void 0],[q,"dblclick",void 0],[q,"click",void 0],[q,"keydown",{capture:!1}],[q,"keyup",void 0],[q,"wheel",{passive:!1}],[q,"contextmenu",void 0],[i.window,"blur",void 0]];for(var K=0,de=this._listeners;Kwe?Math.min(2,mt):Math.max(.5,mt),hi=Math.pow(Ri,1-br),wi=ne.unproject(Bt.add(Rt.mult(br*hi)).mult(Nr));ne.setLocationAtPoint(ne.renderWorldCopies?wi.wrap():wi,kt)}de._fireMoveEvents(K)},function(br){de._afterEase(K,br)},q),this},D.prototype._prepareEase=function(q,K,de){de===void 0&&(de={}),this._moving=!0,!K&&!de.moving&&this.fire(new i.Event("movestart",q)),this._zooming&&!de.zooming&&this.fire(new i.Event("zoomstart",q)),this._rotating&&!de.rotating&&this.fire(new i.Event("rotatestart",q)),this._pitching&&!de.pitching&&this.fire(new i.Event("pitchstart",q))},D.prototype._fireMoveEvents=function(q){this.fire(new i.Event("move",q)),this._zooming&&this.fire(new i.Event("zoom",q)),this._rotating&&this.fire(new i.Event("rotate",q)),this._pitching&&this.fire(new i.Event("pitch",q))},D.prototype._afterEase=function(q,K){if(!(this._easeId&&K&&this._easeId===K)){delete this._easeId;var de=this._zooming,ne=this._rotating,we=this._pitching;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._padding=!1,de&&this.fire(new i.Event("zoomend",q)),ne&&this.fire(new i.Event("rotateend",q)),we&&this.fire(new i.Event("pitchend",q)),this.fire(new i.Event("moveend",q))}},D.prototype.flyTo=function(q,K){var de=this;if(!q.essential&&i.browser.prefersReducedMotion){var ne=i.pick(q,["center","zoom","bearing","pitch","around"]);return this.jumpTo(ne,K)}this.stop(),q=i.extend({offset:[0,0],speed:1.2,curve:1.42,easing:i.ease},q);var we=this.transform,Ue=this.getZoom(),ft=this.getBearing(),Zt=this.getPitch(),hr=this.getPadding(),qt="zoom"in q?i.clamp(+q.zoom,we.minZoom,we.maxZoom):Ue,Ve="bearing"in q?this._normalizeBearing(q.bearing,ft):ft,et="pitch"in q?+q.pitch:Zt,at="padding"in q?q.padding:we.padding,kt=we.zoomScale(qt-Ue),Ot=i.Point.convert(q.offset),It=we.centerPoint.add(Ot),Bt=we.pointLocation(It),Rt=i.LngLat.convert(q.center||Bt);this._normalizeCenter(Rt);var mt=we.project(Bt),Pt=we.project(Rt).sub(mt),ht=q.curve,cr=Math.max(we.width,we.height),br=cr/kt,Nr=Pt.mag();if("minZoom"in q){var Ri=i.clamp(Math.min(q.minZoom,Ue,qt),we.minZoom,we.maxZoom),hi=cr/we.zoomScale(Ri-Ue);ht=Math.sqrt(hi/Nr*2)}var wi=ht*ht;function gn(so){var Zo=(br*br-cr*cr+(so?-1:1)*wi*wi*Nr*Nr)/(2*(so?br:cr)*wi*Nr);return Math.log(Math.sqrt(Zo*Zo+1)-Zo)}function tn(so){return(Math.exp(so)-Math.exp(-so))/2}function Ci(so){return(Math.exp(so)+Math.exp(-so))/2}function qi(so){return tn(so)/Ci(so)}var Vi=gn(0),on=function(so){return Ci(Vi)/Ci(Vi+ht*so)},On=function(so){return cr*((Ci(Vi)*qi(Vi+ht*so)-tn(Vi))/wi)/Nr},Ja=(gn(1)-Vi)/ht;if(Math.abs(Nr)<1e-6||!isFinite(Ja)){if(Math.abs(cr-br)<1e-6)return this.easeTo(q,K);var co=brq.maxDuration&&(q.duration=0),this._zooming=!0,this._rotating=ft!==Ve,this._pitching=et!==Zt,this._padding=!we.isPaddingEqual(at),this._prepareEase(K,!1),this._ease(function(so){var Zo=so*Ja,ys=1/on(Zo);we.zoom=so===1?qt:Ue+we.scaleZoom(ys),de._rotating&&(we.bearing=i.number(ft,Ve,so)),de._pitching&&(we.pitch=i.number(Zt,et,so)),de._padding&&(we.interpolatePadding(hr,at,so),It=we.centerPoint.add(Ot));var su=so===1?Rt:we.unproject(mt.add(Pt.mult(On(Zo))).mult(ys));we.setLocationAtPoint(we.renderWorldCopies?su.wrap():su,It),de._fireMoveEvents(K)},function(){return de._afterEase(K)},q),this},D.prototype.isEasing=function(){return!!this._easeFrameId},D.prototype.stop=function(){return this._stop()},D.prototype._stop=function(q,K){if(this._easeFrameId&&(this._cancelRenderFrame(this._easeFrameId),delete this._easeFrameId,delete this._onEaseFrame),this._onEaseEnd){var de=this._onEaseEnd;delete this._onEaseEnd,de.call(this,K)}if(!q){var ne=this.handlers;ne&&ne.stop(!1)}return this},D.prototype._ease=function(q,K,de){de.animate===!1||de.duration===0?(q(1),K()):(this._easeStart=i.browser.now(),this._easeOptions=de,this._onEaseFrame=q,this._onEaseEnd=K,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))},D.prototype._renderFrameCallback=function(){var q=Math.min((i.browser.now()-this._easeStart)/this._easeOptions.duration,1);this._onEaseFrame(this._easeOptions.easing(q)),q<1?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()},D.prototype._normalizeBearing=function(q,K){q=i.wrap(q,-180,180);var de=Math.abs(q-K);return Math.abs(q-360-K)180?-360:de<-180?360:0}},D}(i.Evented),Qi=function(D){D===void 0&&(D={}),this.options=D,i.bindAll(["_toggleAttribution","_updateEditLink","_updateData","_updateCompact"],this)};Qi.prototype.getDefaultPosition=function(){return"bottom-right"},Qi.prototype.onAdd=function(D){var J=this.options&&this.options.compact;return this._map=D,this._container=o.create("div","mapboxgl-ctrl mapboxgl-ctrl-attrib"),this._compactButton=o.create("button","mapboxgl-ctrl-attrib-button",this._container),this._compactButton.addEventListener("click",this._toggleAttribution),this._setElementTitle(this._compactButton,"ToggleAttribution"),this._innerContainer=o.create("div","mapboxgl-ctrl-attrib-inner",this._container),this._innerContainer.setAttribute("role","list"),J&&this._container.classList.add("mapboxgl-compact"),this._updateAttributions(),this._updateEditLink(),this._map.on("styledata",this._updateData),this._map.on("sourcedata",this._updateData),this._map.on("moveend",this._updateEditLink),J===void 0&&(this._map.on("resize",this._updateCompact),this._updateCompact()),this._container},Qi.prototype.onRemove=function(){o.remove(this._container),this._map.off("styledata",this._updateData),this._map.off("sourcedata",this._updateData),this._map.off("moveend",this._updateEditLink),this._map.off("resize",this._updateCompact),this._map=void 0,this._attribHTML=void 0},Qi.prototype._setElementTitle=function(D,J){var q=this._map._getUIString("AttributionControl."+J);D.title=q,D.setAttribute("aria-label",q)},Qi.prototype._toggleAttribution=function(){this._container.classList.contains("mapboxgl-compact-show")?(this._container.classList.remove("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-pressed","false")):(this._container.classList.add("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-pressed","true"))},Qi.prototype._updateEditLink=function(){var D=this._editLink;D||(D=this._editLink=this._container.querySelector(".mapbox-improve-map"));var J=[{key:"owner",value:this.styleOwner},{key:"id",value:this.styleId},{key:"access_token",value:this._map._requestManager._customAccessToken||i.config.ACCESS_TOKEN}];if(D){var q=J.reduce(function(K,de,ne){return de.value&&(K+=de.key+"="+de.value+(ne=0)return!1;return!0});var we=D.join(" | ");we!==this._attribHTML&&(this._attribHTML=we,D.length?(this._innerContainer.innerHTML=we,this._container.classList.remove("mapboxgl-attrib-empty")):this._container.classList.add("mapboxgl-attrib-empty"),this._editLink=null)}},Qi.prototype._updateCompact=function(){this._map.getCanvasContainer().offsetWidth<=640?this._container.classList.add("mapboxgl-compact"):this._container.classList.remove("mapboxgl-compact","mapboxgl-compact-show")};var ji=function(){i.bindAll(["_updateLogo"],this),i.bindAll(["_updateCompact"],this)};ji.prototype.onAdd=function(D){this._map=D,this._container=o.create("div","mapboxgl-ctrl");var J=o.create("a","mapboxgl-ctrl-logo");return J.target="_blank",J.rel="noopener nofollow",J.href="https://www.mapbox.com/",J.setAttribute("aria-label",this._map._getUIString("LogoControl.Title")),J.setAttribute("rel","noopener nofollow"),this._container.appendChild(J),this._container.style.display="none",this._map.on("sourcedata",this._updateLogo),this._updateLogo(),this._map.on("resize",this._updateCompact),this._updateCompact(),this._container},ji.prototype.onRemove=function(){o.remove(this._container),this._map.off("sourcedata",this._updateLogo),this._map.off("resize",this._updateCompact)},ji.prototype.getDefaultPosition=function(){return"bottom-left"},ji.prototype._updateLogo=function(D){(!D||D.sourceDataType==="metadata")&&(this._container.style.display=this._logoRequired()?"block":"none")},ji.prototype._logoRequired=function(){if(this._map.style){var D=this._map.style.sourceCaches;for(var J in D){var q=D[J].getSource();if(q.mapbox_logo)return!0}return!1}},ji.prototype._updateCompact=function(){var D=this._container.children;if(D.length){var J=D[0];this._map.getCanvasContainer().offsetWidth<250?J.classList.add("mapboxgl-compact"):J.classList.remove("mapboxgl-compact")}};var si=function(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1};si.prototype.add=function(D){var J=++this._id,q=this._queue;return q.push({callback:D,id:J,cancelled:!1}),J},si.prototype.remove=function(D){for(var J=this._currentlyRunning,q=J?this._queue.concat(J):this._queue,K=0,de=q;Kq.maxZoom)throw new Error("maxZoom must be greater than or equal to minZoom");if(q.minPitch!=null&&q.maxPitch!=null&&q.minPitch>q.maxPitch)throw new Error("maxPitch must be greater than or equal to minPitch");if(q.minPitch!=null&&q.minPitchqn)throw new Error("maxPitch must be less than or equal to "+qn);var de=new wo(q.minZoom,q.maxZoom,q.minPitch,q.maxPitch,q.renderWorldCopies);if(Y.call(this,de,q),this._interactive=q.interactive,this._maxTileCacheSize=q.maxTileCacheSize,this._failIfMajorPerformanceCaveat=q.failIfMajorPerformanceCaveat,this._preserveDrawingBuffer=q.preserveDrawingBuffer,this._antialias=q.antialias,this._trackResize=q.trackResize,this._bearingSnap=q.bearingSnap,this._refreshExpiredTiles=q.refreshExpiredTiles,this._fadeDuration=q.fadeDuration,this._crossSourceCollisions=q.crossSourceCollisions,this._crossFadingFactor=1,this._collectResourceTiming=q.collectResourceTiming,this._renderTaskQueue=new si,this._controls=[],this._mapId=i.uniqueId(),this._locale=i.extend({},Mr,q.locale),this._clickTolerance=q.clickTolerance,this._requestManager=new i.RequestManager(q.transformRequest,q.accessToken),typeof q.container=="string"){if(this._container=i.window.document.getElementById(q.container),!this._container)throw new Error("Container '"+q.container+"' not found.")}else if(q.container instanceof xi)this._container=q.container;else throw new Error("Invalid type: 'container' must be a String or HTMLElement.");if(q.maxBounds&&this.setMaxBounds(q.maxBounds),i.bindAll(["_onWindowOnline","_onWindowResize","_onMapScroll","_contextLost","_contextRestored"],this),this._setupContainer(),this._setupPainter(),this.painter===void 0)throw new Error("Failed to initialize WebGL.");this.on("move",function(){return K._update(!1)}),this.on("moveend",function(){return K._update(!1)}),this.on("zoom",function(){return K._update(!0)}),typeof i.window!="undefined"&&(i.window.addEventListener("online",this._onWindowOnline,!1),i.window.addEventListener("resize",this._onWindowResize,!1),i.window.addEventListener("orientationchange",this._onWindowResize,!1)),this.handlers=new Mi(this,q);var ne=typeof q.hash=="string"&&q.hash||void 0;this._hash=q.hash&&new Nl(ne).addTo(this),(!this._hash||!this._hash._onHashChange())&&(this.jumpTo({center:q.center,zoom:q.zoom,bearing:q.bearing,pitch:q.pitch}),q.bounds&&(this.resize(),this.fitBounds(q.bounds,i.extend({},q.fitBoundsOptions,{duration:0})))),this.resize(),this._localIdeographFontFamily=q.localIdeographFontFamily,q.style&&this.setStyle(q.style,{localIdeographFontFamily:q.localIdeographFontFamily}),q.attributionControl&&this.addControl(new Qi({customAttribution:q.customAttribution})),this.addControl(new ji,q.logoPosition),this.on("style.load",function(){K.transform.unmodified&&K.jumpTo(K.style.stylesheet)}),this.on("data",function(we){K._update(we.dataType==="style"),K.fire(new i.Event(we.dataType+"data",we))}),this.on("dataloading",function(we){K.fire(new i.Event(we.dataType+"dataloading",we))})}Y&&(D.__proto__=Y),D.prototype=Object.create(Y&&Y.prototype),D.prototype.constructor=D;var J={showTileBoundaries:{configurable:!0},showPadding:{configurable:!0},showCollisionBoxes:{configurable:!0},showOverdrawInspector:{configurable:!0},repaint:{configurable:!0},vertices:{configurable:!0},version:{configurable:!0}};return D.prototype._getMapId=function(){return this._mapId},D.prototype.addControl=function(K,de){if(de===void 0&&(K.getDefaultPosition?de=K.getDefaultPosition():de="top-right"),!K||!K.onAdd)return this.fire(new i.ErrorEvent(new Error("Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.")));var ne=K.onAdd(this);this._controls.push(K);var we=this._controlPositions[de];return de.indexOf("bottom")!==-1?we.insertBefore(ne,we.firstChild):we.appendChild(ne),this},D.prototype.removeControl=function(K){if(!K||!K.onRemove)return this.fire(new i.ErrorEvent(new Error("Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.")));var de=this._controls.indexOf(K);return de>-1&&this._controls.splice(de,1),K.onRemove(this),this},D.prototype.hasControl=function(K){return this._controls.indexOf(K)>-1},D.prototype.resize=function(K){var de=this._containerDimensions(),ne=de[0],we=de[1];this._resizeCanvas(ne,we),this.transform.resize(ne,we),this.painter.resize(ne,we);var Ue=!this._moving;return Ue&&(this.stop(),this.fire(new i.Event("movestart",K)).fire(new i.Event("move",K))),this.fire(new i.Event("resize",K)),Ue&&this.fire(new i.Event("moveend",K)),this},D.prototype.getBounds=function(){return this.transform.getBounds()},D.prototype.getMaxBounds=function(){return this.transform.getMaxBounds()},D.prototype.setMaxBounds=function(K){return this.transform.setMaxBounds(i.LngLatBounds.convert(K)),this._update()},D.prototype.setMinZoom=function(K){if(K=K==null?ci:K,K>=ci&&K<=this.transform.maxZoom)return this.transform.minZoom=K,this._update(),this.getZoom()=this.transform.minZoom)return this.transform.maxZoom=K,this._update(),this.getZoom()>K&&this.setZoom(K),this;throw new Error("maxZoom must be greater than the current minZoom")},D.prototype.getMaxZoom=function(){return this.transform.maxZoom},D.prototype.setMinPitch=function(K){if(K=K==null?Xi:K,K=Xi&&K<=this.transform.maxPitch)return this.transform.minPitch=K,this._update(),this.getPitch()qn)throw new Error("maxPitch must be less than or equal to "+qn);if(K>=this.transform.minPitch)return this.transform.maxPitch=K,this._update(),this.getPitch()>K&&this.setPitch(K),this;throw new Error("maxPitch must be greater than the current minPitch")},D.prototype.getMaxPitch=function(){return this.transform.maxPitch},D.prototype.getRenderWorldCopies=function(){return this.transform.renderWorldCopies},D.prototype.setRenderWorldCopies=function(K){return this.transform.renderWorldCopies=K,this._update()},D.prototype.project=function(K){return this.transform.locationPoint(i.LngLat.convert(K))},D.prototype.unproject=function(K){return this.transform.pointLocation(i.Point.convert(K))},D.prototype.isMoving=function(){return this._moving||this.handlers.isMoving()},D.prototype.isZooming=function(){return this._zooming||this.handlers.isZooming()},D.prototype.isRotating=function(){return this._rotating||this.handlers.isRotating()},D.prototype._createDelegatedListener=function(K,de,ne){var we=this,Ue;if(K==="mouseenter"||K==="mouseover"){var ft=!1,Zt=function(kt){var Ot=we.getLayer(de)?we.queryRenderedFeatures(kt.point,{layers:[de]}):[];Ot.length?ft||(ft=!0,ne.call(we,new se(K,we,kt.originalEvent,{features:Ot}))):ft=!1},hr=function(){ft=!1};return{layer:de,listener:ne,delegates:{mousemove:Zt,mouseout:hr}}}else if(K==="mouseleave"||K==="mouseout"){var qt=!1,Ve=function(kt){var Ot=we.getLayer(de)?we.queryRenderedFeatures(kt.point,{layers:[de]}):[];Ot.length?qt=!0:qt&&(qt=!1,ne.call(we,new se(K,we,kt.originalEvent)))},et=function(kt){qt&&(qt=!1,ne.call(we,new se(K,we,kt.originalEvent)))};return{layer:de,listener:ne,delegates:{mousemove:Ve,mouseout:et}}}else{var at=function(kt){var Ot=we.getLayer(de)?we.queryRenderedFeatures(kt.point,{layers:[de]}):[];Ot.length&&(kt.features=Ot,ne.call(we,kt),delete kt.features)};return{layer:de,listener:ne,delegates:(Ue={},Ue[K]=at,Ue)}}},D.prototype.on=function(K,de,ne){if(ne===void 0)return Y.prototype.on.call(this,K,de);var we=this._createDelegatedListener(K,de,ne);this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[K]=this._delegatedListeners[K]||[],this._delegatedListeners[K].push(we);for(var Ue in we.delegates)this.on(Ue,we.delegates[Ue]);return this},D.prototype.once=function(K,de,ne){if(ne===void 0)return Y.prototype.once.call(this,K,de);var we=this._createDelegatedListener(K,de,ne);for(var Ue in we.delegates)this.once(Ue,we.delegates[Ue]);return this},D.prototype.off=function(K,de,ne){var we=this;if(ne===void 0)return Y.prototype.off.call(this,K,de);var Ue=function(ft){for(var Zt=ft[K],hr=0;hr180;){var ne=J.locationPoint(Y);if(ne.x>=0&&ne.y>=0&&ne.x<=J.width&&ne.y<=J.height)break;Y.lng>J.center.lng?Y.lng-=360:Y.lng+=360}return Y}var Un={center:"translate(-50%,-50%)",top:"translate(-50%,0)","top-left":"translate(0,0)","top-right":"translate(-100%,0)",bottom:"translate(-50%,-100%)","bottom-left":"translate(0,-100%)","bottom-right":"translate(-100%,-100%)",left:"translate(0,-50%)",right:"translate(-100%,-50%)"};function na(Y,D,J){var q=Y.classList;for(var K in Un)q.remove("mapboxgl-"+J+"-anchor-"+K);q.add("mapboxgl-"+J+"-anchor-"+D)}var Yi=function(Y){function D(J,q){if(Y.call(this),(J instanceof i.window.HTMLElement||q)&&(J=i.extend({element:J},q)),i.bindAll(["_update","_onMove","_onUp","_addDragHandler","_onMapClick","_onKeyPress"],this),this._anchor=J&&J.anchor||"center",this._color=J&&J.color||"#3FB1CE",this._scale=J&&J.scale||1,this._draggable=J&&J.draggable||!1,this._clickTolerance=J&&J.clickTolerance||0,this._isDragging=!1,this._state="inactive",this._rotation=J&&J.rotation||0,this._rotationAlignment=J&&J.rotationAlignment||"auto",this._pitchAlignment=J&&J.pitchAlignment&&J.pitchAlignment!=="auto"?J.pitchAlignment:this._rotationAlignment,!J||!J.element){this._defaultMarker=!0,this._element=o.create("div"),this._element.setAttribute("aria-label","Map marker");var K=o.createNS("http://www.w3.org/2000/svg","svg"),de=41,ne=27;K.setAttributeNS(null,"display","block"),K.setAttributeNS(null,"height",de+"px"),K.setAttributeNS(null,"width",ne+"px"),K.setAttributeNS(null,"viewBox","0 0 "+ne+" "+de);var we=o.createNS("http://www.w3.org/2000/svg","g");we.setAttributeNS(null,"stroke","none"),we.setAttributeNS(null,"stroke-width","1"),we.setAttributeNS(null,"fill","none"),we.setAttributeNS(null,"fill-rule","evenodd");var Ue=o.createNS("http://www.w3.org/2000/svg","g");Ue.setAttributeNS(null,"fill-rule","nonzero");var ft=o.createNS("http://www.w3.org/2000/svg","g");ft.setAttributeNS(null,"transform","translate(3.0, 29.0)"),ft.setAttributeNS(null,"fill","#000000");for(var Zt=[{rx:"10.5",ry:"5.25002273"},{rx:"10.5",ry:"5.25002273"},{rx:"9.5",ry:"4.77275007"},{rx:"8.5",ry:"4.29549936"},{rx:"7.5",ry:"3.81822308"},{rx:"6.5",ry:"3.34094679"},{rx:"5.5",ry:"2.86367051"},{rx:"4.5",ry:"2.38636864"}],hr=0,qt=Zt;hr=K}this._isDragging&&(this._pos=q.point.sub(this._positionDelta),this._lngLat=this._map.unproject(this._pos),this.setLngLat(this._lngLat),this._element.style.pointerEvents="none",this._state==="pending"&&(this._state="active",this.fire(new i.Event("dragstart"))),this.fire(new i.Event("drag")))},D.prototype._onUp=function(){this._element.style.pointerEvents="auto",this._positionDelta=null,this._pointerdownPos=null,this._isDragging=!1,this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),this._state==="active"&&this.fire(new i.Event("dragend")),this._state="inactive"},D.prototype._addDragHandler=function(q){this._element.contains(q.originalEvent.target)&&(q.preventDefault(),this._positionDelta=q.point.sub(this._pos).add(this._offset),this._pointerdownPos=q.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))},D.prototype.setDraggable=function(q){return this._draggable=!!q,this._map&&(q?(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},D.prototype.isDraggable=function(){return this._draggable},D.prototype.setRotation=function(q){return this._rotation=q||0,this._update(),this},D.prototype.getRotation=function(){return this._rotation},D.prototype.setRotationAlignment=function(q){return this._rotationAlignment=q||"auto",this._update(),this},D.prototype.getRotationAlignment=function(){return this._rotationAlignment},D.prototype.setPitchAlignment=function(q){return this._pitchAlignment=q&&q!=="auto"?q:this._rotationAlignment,this._update(),this},D.prototype.getPitchAlignment=function(){return this._pitchAlignment},D}(i.Evented),Ln={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0},ra;function oa(Y){ra!==void 0?Y(ra):i.window.navigator.permissions!==void 0?i.window.navigator.permissions.query({name:"geolocation"}).then(function(D){ra=D.state!=="denied",Y(ra)}):(ra=!!i.window.navigator.geolocation,Y(ra))}var wa=0,ns=!1,Ys=function(Y){function D(J){Y.call(this),this.options=i.extend({},Ln,J),i.bindAll(["_onSuccess","_onError","_onZoom","_finish","_setupUI","_updateCamera","_updateMarker"],this)}return Y&&(D.__proto__=Y),D.prototype=Object.create(Y&&Y.prototype),D.prototype.constructor=D,D.prototype.onAdd=function(q){return this._map=q,this._container=o.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),oa(this._setupUI),this._container},D.prototype.onRemove=function(){this._geolocationWatchID!==void 0&&(i.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0),this.options.showUserLocation&&this._userLocationDotMarker&&this._userLocationDotMarker.remove(),this.options.showAccuracyCircle&&this._accuracyCircleMarker&&this._accuracyCircleMarker.remove(),o.remove(this._container),this._map.off("zoom",this._onZoom),this._map=void 0,wa=0,ns=!1},D.prototype._isOutOfMapMaxBounds=function(q){var K=this._map.getMaxBounds(),de=q.coords;return K&&(de.longitudeK.getEast()||de.latitudeK.getNorth())},D.prototype._setErrorState=function(){switch(this._watchState){case"WAITING_ACTIVE":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"ACTIVE_LOCK":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting");break;case"BACKGROUND":this._watchState="BACKGROUND_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting");break}},D.prototype._onSuccess=function(q){if(this._map){if(this._isOutOfMapMaxBounds(q)){this._setErrorState(),this.fire(new i.Event("outofmaxbounds",q)),this._updateMarker(),this._finish();return}if(this.options.trackUserLocation)switch(this._lastKnownPosition=q,this._watchState){case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"BACKGROUND":case"BACKGROUND_ERROR":this._watchState="BACKGROUND",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background");break}this.options.showUserLocation&&this._watchState!=="OFF"&&this._updateMarker(q),(!this.options.trackUserLocation||this._watchState==="ACTIVE_LOCK")&&this._updateCamera(q),this.options.showUserLocation&&this._dotElement.classList.remove("mapboxgl-user-location-dot-stale"),this.fire(new i.Event("geolocate",q)),this._finish()}},D.prototype._updateCamera=function(q){var K=new i.LngLat(q.coords.longitude,q.coords.latitude),de=q.coords.accuracy,ne=this._map.getBearing(),we=i.extend({bearing:ne},this.options.fitBoundsOptions);this._map.fitBounds(K.toBounds(de),we,{geolocateSource:!0})},D.prototype._updateMarker=function(q){if(q){var K=new i.LngLat(q.coords.longitude,q.coords.latitude);this._accuracyCircleMarker.setLngLat(K).addTo(this._map),this._userLocationDotMarker.setLngLat(K).addTo(this._map),this._accuracy=q.coords.accuracy,this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()},D.prototype._updateCircleRadius=function(){var q=this._map._container.clientHeight/2,K=this._map.unproject([0,q]),de=this._map.unproject([1,q]),ne=K.distanceTo(de),we=Math.ceil(2*this._accuracy/ne);this._circleElement.style.width=we+"px",this._circleElement.style.height=we+"px"},D.prototype._onZoom=function(){this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()},D.prototype._onError=function(q){if(this._map){if(this.options.trackUserLocation)if(q.code===1){this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.disabled=!0;var K=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.title=K,this._geolocateButton.setAttribute("aria-label",K),this._geolocationWatchID!==void 0&&this._clearWatch()}else{if(q.code===3&&ns)return;this._setErrorState()}this._watchState!=="OFF"&&this.options.showUserLocation&&this._dotElement.classList.add("mapboxgl-user-location-dot-stale"),this.fire(new i.Event("error",q)),this._finish()}},D.prototype._finish=function(){this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0},D.prototype._setupUI=function(q){var K=this;if(this._container.addEventListener("contextmenu",function(we){return we.preventDefault()}),this._geolocateButton=o.create("button","mapboxgl-ctrl-geolocate",this._container),o.create("span","mapboxgl-ctrl-icon",this._geolocateButton).setAttribute("aria-hidden",!0),this._geolocateButton.type="button",q===!1){i.warnOnce("Geolocation support is not available so the GeolocateControl will be disabled.");var de=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.disabled=!0,this._geolocateButton.title=de,this._geolocateButton.setAttribute("aria-label",de)}else{var ne=this._map._getUIString("GeolocateControl.FindMyLocation");this._geolocateButton.title=ne,this._geolocateButton.setAttribute("aria-label",ne)}this.options.trackUserLocation&&(this._geolocateButton.setAttribute("aria-pressed","false"),this._watchState="OFF"),this.options.showUserLocation&&(this._dotElement=o.create("div","mapboxgl-user-location-dot"),this._userLocationDotMarker=new Yi(this._dotElement),this._circleElement=o.create("div","mapboxgl-user-location-accuracy-circle"),this._accuracyCircleMarker=new Yi({element:this._circleElement,pitchAlignment:"map"}),this.options.trackUserLocation&&(this._watchState="OFF"),this._map.on("zoom",this._onZoom)),this._geolocateButton.addEventListener("click",this.trigger.bind(this)),this._setup=!0,this.options.trackUserLocation&&this._map.on("movestart",function(we){var Ue=we.originalEvent&&we.originalEvent.type==="resize";!we.geolocateSource&&K._watchState==="ACTIVE_LOCK"&&!Ue&&(K._watchState="BACKGROUND",K._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background"),K._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),K.fire(new i.Event("trackuserlocationend")))})},D.prototype.trigger=function(){if(!this._setup)return i.warnOnce("Geolocate control triggered before added to a map"),!1;if(this.options.trackUserLocation){switch(this._watchState){case"OFF":this._watchState="WAITING_ACTIVE",this.fire(new i.Event("trackuserlocationstart"));break;case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":case"BACKGROUND_ERROR":wa--,ns=!1,this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this.fire(new i.Event("trackuserlocationend"));break;case"BACKGROUND":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._lastKnownPosition&&this._updateCamera(this._lastKnownPosition),this.fire(new i.Event("trackuserlocationstart"));break}switch(this._watchState){case"WAITING_ACTIVE":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_LOCK":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"BACKGROUND":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background");break;case"BACKGROUND_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error");break}if(this._watchState==="OFF"&&this._geolocationWatchID!==void 0)this._clearWatch();else if(this._geolocationWatchID===void 0){this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),wa++;var q;wa>1?(q={maximumAge:6e5,timeout:0},ns=!0):(q=this.options.positionOptions,ns=!1),this._geolocationWatchID=i.window.navigator.geolocation.watchPosition(this._onSuccess,this._onError,q)}}else i.window.navigator.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0},D.prototype._clearWatch=function(){i.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","false"),this.options.showUserLocation&&this._updateMarker(null)},D}(i.Evented),Va={maxWidth:100,unit:"metric"},Ml=function(D){this.options=i.extend({},Va,D),i.bindAll(["_onMove","setUnit"],this)};Ml.prototype.getDefaultPosition=function(){return"bottom-left"},Ml.prototype._onMove=function(){zo(this._map,this._container,this.options)},Ml.prototype.onAdd=function(D){return this._map=D,this._container=o.create("div","mapboxgl-ctrl mapboxgl-ctrl-scale",D.getContainer()),this._map.on("move",this._onMove),this._onMove(),this._container},Ml.prototype.onRemove=function(){o.remove(this._container),this._map.off("move",this._onMove),this._map=void 0},Ml.prototype.setUnit=function(D){this.options.unit=D,zo(this._map,this._container,this.options)};function zo(Y,D,J){var q=J&&J.maxWidth||100,K=Y._container.clientHeight/2,de=Y.unproject([0,K]),ne=Y.unproject([q,K]),we=de.distanceTo(ne);if(J&&J.unit==="imperial"){var Ue=3.2808*we;if(Ue>5280){var ft=Ue/5280;el(D,q,ft,Y._getUIString("ScaleControl.Miles"))}else el(D,q,Ue,Y._getUIString("ScaleControl.Feet"))}else if(J&&J.unit==="nautical"){var Zt=we/1852;el(D,q,Zt,Y._getUIString("ScaleControl.NauticalMiles"))}else we>=1e3?el(D,q,we/1e3,Y._getUIString("ScaleControl.Kilometers")):el(D,q,we,Y._getUIString("ScaleControl.Meters"))}function el(Y,D,J,q){var K=Ul(J),de=K/J;Y.style.width=D*de+"px",Y.innerHTML=K+" "+q}function ol(Y){var D=Math.pow(10,Math.ceil(-Math.log(Y)/Math.LN10));return Math.round(Y*D)/D}function Ul(Y){var D=Math.pow(10,(""+Math.floor(Y)).length-1),J=Y/D;return J=J>=10?10:J>=5?5:J>=3?3:J>=2?2:J>=1?1:ol(J),D*J}var ls=function(D){this._fullscreen=!1,D&&D.container&&(D.container instanceof i.window.HTMLElement?this._container=D.container:i.warnOnce("Full screen control 'container' must be a DOM element.")),i.bindAll(["_onClickFullscreen","_changeIcon"],this),"onfullscreenchange"in i.window.document?this._fullscreenchange="fullscreenchange":"onmozfullscreenchange"in i.window.document?this._fullscreenchange="mozfullscreenchange":"onwebkitfullscreenchange"in i.window.document?this._fullscreenchange="webkitfullscreenchange":"onmsfullscreenchange"in i.window.document&&(this._fullscreenchange="MSFullscreenChange")};ls.prototype.onAdd=function(D){return this._map=D,this._container||(this._container=this._map.getContainer()),this._controlContainer=o.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._checkFullscreenSupport()?this._setupUI():(this._controlContainer.style.display="none",i.warnOnce("This device does not support fullscreen mode.")),this._controlContainer},ls.prototype.onRemove=function(){o.remove(this._controlContainer),this._map=null,i.window.document.removeEventListener(this._fullscreenchange,this._changeIcon)},ls.prototype._checkFullscreenSupport=function(){return!!(i.window.document.fullscreenEnabled||i.window.document.mozFullScreenEnabled||i.window.document.msFullscreenEnabled||i.window.document.webkitFullscreenEnabled)},ls.prototype._setupUI=function(){var D=this._fullscreenButton=o.create("button","mapboxgl-ctrl-fullscreen",this._controlContainer);o.create("span","mapboxgl-ctrl-icon",D).setAttribute("aria-hidden",!0),D.type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),i.window.document.addEventListener(this._fullscreenchange,this._changeIcon)},ls.prototype._updateTitle=function(){var D=this._getTitle();this._fullscreenButton.setAttribute("aria-label",D),this._fullscreenButton.title=D},ls.prototype._getTitle=function(){return this._map._getUIString(this._isFullscreen()?"FullscreenControl.Exit":"FullscreenControl.Enter")},ls.prototype._isFullscreen=function(){return this._fullscreen},ls.prototype._changeIcon=function(){var D=i.window.document.fullscreenElement||i.window.document.mozFullScreenElement||i.window.document.webkitFullscreenElement||i.window.document.msFullscreenElement;D===this._container!==this._fullscreen&&(this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle("mapboxgl-ctrl-shrink"),this._fullscreenButton.classList.toggle("mapboxgl-ctrl-fullscreen"),this._updateTitle())},ls.prototype._onClickFullscreen=function(){this._isFullscreen()?i.window.document.exitFullscreen?i.window.document.exitFullscreen():i.window.document.mozCancelFullScreen?i.window.document.mozCancelFullScreen():i.window.document.msExitFullscreen?i.window.document.msExitFullscreen():i.window.document.webkitCancelFullScreen&&i.window.document.webkitCancelFullScreen():this._container.requestFullscreen?this._container.requestFullscreen():this._container.mozRequestFullScreen?this._container.mozRequestFullScreen():this._container.msRequestFullscreen?this._container.msRequestFullscreen():this._container.webkitRequestFullscreen&&this._container.webkitRequestFullscreen()};var Gs={closeButton:!0,closeOnClick:!0,focusAfterOpen:!0,className:"",maxWidth:"240px"},Ks=["a[href]","[tabindex]:not([tabindex='-1'])","[contenteditable]:not([contenteditable='false'])","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].join(", "),Ta=function(Y){function D(J){Y.call(this),this.options=i.extend(Object.create(Gs),J),i.bindAll(["_update","_onClose","remove","_onMouseMove","_onMouseUp","_onDrag"],this)}return Y&&(D.__proto__=Y),D.prototype=Object.create(Y&&Y.prototype),D.prototype.constructor=D,D.prototype.addTo=function(q){return this._map&&this.remove(),this._map=q,this.options.closeOnClick&&this._map.on("click",this._onClose),this.options.closeOnMove&&this._map.on("move",this._onClose),this._map.on("remove",this.remove),this._update(),this._focusFirstElement(),this._trackPointer?(this._map.on("mousemove",this._onMouseMove),this._map.on("mouseup",this._onMouseUp),this._container&&this._container.classList.add("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")):this._map.on("move",this._update),this.fire(new i.Event("open")),this},D.prototype.isOpen=function(){return!!this._map},D.prototype.remove=function(){return this._content&&o.remove(this._content),this._container&&(o.remove(this._container),delete this._container),this._map&&(this._map.off("move",this._update),this._map.off("move",this._onClose),this._map.off("click",this._onClose),this._map.off("remove",this.remove),this._map.off("mousemove",this._onMouseMove),this._map.off("mouseup",this._onMouseUp),this._map.off("drag",this._onDrag),delete this._map),this.fire(new i.Event("close")),this},D.prototype.getLngLat=function(){return this._lngLat},D.prototype.setLngLat=function(q){return this._lngLat=i.LngLat.convert(q),this._pos=null,this._trackPointer=!1,this._update(),this._map&&(this._map.on("move",this._update),this._map.off("mousemove",this._onMouseMove),this._container&&this._container.classList.remove("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.remove("mapboxgl-track-pointer")),this},D.prototype.trackPointer=function(){return this._trackPointer=!0,this._pos=null,this._update(),this._map&&(this._map.off("move",this._update),this._map.on("mousemove",this._onMouseMove),this._map.on("drag",this._onDrag),this._container&&this._container.classList.add("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")),this},D.prototype.getElement=function(){return this._container},D.prototype.setText=function(q){return this.setDOMContent(i.window.document.createTextNode(q))},D.prototype.setHTML=function(q){var K=i.window.document.createDocumentFragment(),de=i.window.document.createElement("body"),ne;for(de.innerHTML=q;ne=de.firstChild,!!ne;)K.appendChild(ne);return this.setDOMContent(K)},D.prototype.getMaxWidth=function(){return this._container&&this._container.style.maxWidth},D.prototype.setMaxWidth=function(q){return this.options.maxWidth=q,this._update(),this},D.prototype.setDOMContent=function(q){if(this._content)for(;this._content.hasChildNodes();)this._content.firstChild&&this._content.removeChild(this._content.firstChild);else this._content=o.create("div","mapboxgl-popup-content",this._container);return this._content.appendChild(q),this._createCloseButton(),this._update(),this._focusFirstElement(),this},D.prototype.addClassName=function(q){this._container&&this._container.classList.add(q)},D.prototype.removeClassName=function(q){this._container&&this._container.classList.remove(q)},D.prototype.setOffset=function(q){return this.options.offset=q,this._update(),this},D.prototype.toggleClassName=function(q){if(this._container)return this._container.classList.toggle(q)},D.prototype._createCloseButton=function(){this.options.closeButton&&(this._closeButton=o.create("button","mapboxgl-popup-close-button",this._content),this._closeButton.type="button",this._closeButton.setAttribute("aria-label","Close popup"),this._closeButton.innerHTML="×",this._closeButton.addEventListener("click",this._onClose))},D.prototype._onMouseUp=function(q){this._update(q.point)},D.prototype._onMouseMove=function(q){this._update(q.point)},D.prototype._onDrag=function(q){this._update(q.point)},D.prototype._update=function(q){var K=this,de=this._lngLat||this._trackPointer;if(!(!this._map||!de||!this._content)&&(this._container||(this._container=o.create("div","mapboxgl-popup",this._map.getContainer()),this._tip=o.create("div","mapboxgl-popup-tip",this._container),this._container.appendChild(this._content),this.options.className&&this.options.className.split(" ").forEach(function(Ve){return K._container.classList.add(Ve)}),this._trackPointer&&this._container.classList.add("mapboxgl-popup-track-pointer")),this.options.maxWidth&&this._container.style.maxWidth!==this.options.maxWidth&&(this._container.style.maxWidth=this.options.maxWidth),this._map.transform.renderWorldCopies&&!this._trackPointer&&(this._lngLat=vn(this._lngLat,this._pos,this._map.transform)),!(this._trackPointer&&!q))){var ne=this._pos=this._trackPointer&&q?q:this._map.project(this._lngLat),we=this.options.anchor,Ue=sl(this.options.offset);if(!we){var ft=this._container.offsetWidth,Zt=this._container.offsetHeight,hr;ne.y+Ue.bottom.ythis._map.transform.height-Zt?hr=["bottom"]:hr=[],ne.xthis._map.transform.width-ft/2&&hr.push("right"),hr.length===0?we="bottom":we=hr.join("-")}var qt=ne.add(Ue[we]).round();o.setTransform(this._container,Un[we]+" translate("+qt.x+"px,"+qt.y+"px)"),na(this._container,we,"popup")}},D.prototype._focusFirstElement=function(){if(!(!this.options.focusAfterOpen||!this._container)){var q=this._container.querySelector(Ks);q&&q.focus()}},D.prototype._onClose=function(){this.remove()},D}(i.Evented);function sl(Y){if(Y)if(typeof Y=="number"){var D=Math.round(Math.sqrt(.5*Math.pow(Y,2)));return{center:new i.Point(0,0),top:new i.Point(0,Y),"top-left":new i.Point(D,D),"top-right":new i.Point(-D,D),bottom:new i.Point(0,-Y),"bottom-left":new i.Point(D,-D),"bottom-right":new i.Point(-D,-D),left:new i.Point(Y,0),right:new i.Point(-Y,0)}}else if(Y instanceof i.Point||Array.isArray(Y)){var J=i.Point.convert(Y);return{center:J,top:J,"top-left":J,"top-right":J,bottom:J,"bottom-left":J,"bottom-right":J,left:J,right:J}}else return{center:i.Point.convert(Y.center||[0,0]),top:i.Point.convert(Y.top||[0,0]),"top-left":i.Point.convert(Y["top-left"]||[0,0]),"top-right":i.Point.convert(Y["top-right"]||[0,0]),bottom:i.Point.convert(Y.bottom||[0,0]),"bottom-left":i.Point.convert(Y["bottom-left"]||[0,0]),"bottom-right":i.Point.convert(Y["bottom-right"]||[0,0]),left:i.Point.convert(Y.left||[0,0]),right:i.Point.convert(Y.right||[0,0])};else return sl(new i.Point(0,0))}var io={version:i.version,supported:a,setRTLTextPlugin:i.setRTLTextPlugin,getRTLTextPluginStatus:i.getRTLTextPluginStatus,Map:li,NavigationControl:Ui,GeolocateControl:Ys,AttributionControl:Qi,ScaleControl:Ml,FullscreenControl:ls,Popup:Ta,Marker:Yi,Style:yu,LngLat:i.LngLat,LngLatBounds:i.LngLatBounds,Point:i.Point,MercatorCoordinate:i.MercatorCoordinate,Evented:i.Evented,config:i.config,prewarm:la,clearPrewarmedResources:ma,get accessToken(){return i.config.ACCESS_TOKEN},set accessToken(Y){i.config.ACCESS_TOKEN=Y},get baseApiUrl(){return i.config.API_URL},set baseApiUrl(Y){i.config.API_URL=Y},get workerCount(){return cn.workerCount},set workerCount(Y){cn.workerCount=Y},get maxParallelImageRequests(){return i.config.MAX_PARALLEL_IMAGE_REQUESTS},set maxParallelImageRequests(Y){i.config.MAX_PARALLEL_IMAGE_REQUESTS=Y},clearStorage:function(D){i.clearTileCache(D)},workerUrl:""};return io}),r})});var ZVe=ye((A_r,XVe)=>{"use strict";var tw=Dr(),KHt=iu().sanitizeHTML,JHt=tJ(),HVe=c1();function jVe(e,t){this.subplot=e,this.uid=e.uid+"-"+t,this.index=t,this.idSource="source-"+this.uid,this.idLayer=HVe.layoutLayerPrefix+this.uid,this.sourceType=null,this.source=null,this.layerType=null,this.below=null,this.visible=!1}var ig=jVe.prototype;ig.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=Zz(t)};ig.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))};ig.needsNewSource=function(e){return this.sourceType!==e.sourcetype||JSON.stringify(this.source)!==JSON.stringify(e.source)||this.layerType!==e.type};ig.needsNewLayer=function(e){return this.layerType!==e.type||this.below!==this.subplot.belowLookup["layout-"+this.index]};ig.lookupBelow=function(){return this.subplot.belowLookup["layout-"+this.index]};ig.updateImage=function(e){var t=this.subplot.map;t.getSource(this.idSource).updateImage({url:e.source,coordinates:e.coordinates});var r=this.findFollowingMapboxLayerId(this.lookupBelow());r!==null&&this.subplot.map.moveLayer(this.idLayer,r)};ig.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,!!Zz(e)){var r=$Ht(e);t.addSource(this.idSource,r)}};ig.findFollowingMapboxLayerId=function(e){if(e==="traces")for(var t=this.subplot.getMapLayers(),r=0;r0){for(var r=0;r0}function WVe(e){var t={},r={};switch(e.type){case"circle":tw.extendFlat(r,{"circle-radius":e.circle.radius,"circle-color":e.color,"circle-opacity":e.opacity});break;case"line":tw.extendFlat(r,{"line-width":e.line.width,"line-color":e.color,"line-opacity":e.opacity,"line-dasharray":e.line.dash});break;case"fill":tw.extendFlat(r,{"fill-color":e.color,"fill-outline-color":e.fill.outlinecolor,"fill-opacity":e.opacity});break;case"symbol":var n=e.symbol,i=JHt(n.textposition,n.iconsize);tw.extendFlat(t,{"icon-image":n.icon+"-15","icon-size":n.iconsize/10,"text-field":n.text,"text-size":n.textfont.size,"text-anchor":i.anchor,"text-offset":i.offset,"symbol-placement":n.placement}),tw.extendFlat(r,{"icon-color":e.color,"text-color":n.textfont.color,"text-opacity":e.opacity});break;case"raster":tw.extendFlat(r,{"raster-fade-duration":0,"raster-opacity":e.opacity});break}return{layout:t,paint:r}}function $Ht(e){var t=e.sourcetype,r=e.source,n={type:t},i;return t==="geojson"?i="data":t==="vector"?i=typeof r=="string"?"url":"tiles":t==="raster"?(i="tiles",n.tileSize=256):t==="image"&&(i="url",n.coordinates=e.coordinates),n[i]=r,e.sourceattribution&&(n.attribution=KHt(e.sourceattribution)),n}XVe.exports=function(t,r,n){var i=new jVe(t,r);return i.update(n),i}});var iGe=ye((S_r,rGe)=>{"use strict";var lJ=sJ(),uJ=Dr(),$Ve=nx(),YVe=qa(),QHt=ho(),ejt=gv(),Yz=vf(),QVe=Sg(),tjt=QVe.drawMode,rjt=QVe.selectMode,ijt=zf().prepSelect,njt=zf().clearOutline,ajt=zf().clearSelectionsCache,ojt=zf().selectOnClick,_x=c1(),sjt=ZVe();function eGe(e,t){this.id=t,this.gd=e;var r=e._fullLayout,n=e._context;this.container=r._glcontainer.node(),this.isStatic=n.staticPlot,this.uid=r._uid+"-"+this.id,this.div=null,this.xaxis=null,this.yaxis=null,this.createFramework(r),this.map=null,this.accessToken=null,this.styleObj=null,this.traceHash={},this.layerList=[],this.belowLookup={},this.dragging=!1,this.wheeling=!1}var qh=eGe.prototype;qh.plot=function(e,t,r){var n=this,i=t[n.id];n.map&&i.accesstoken!==n.accessToken&&(n.map.remove(),n.map=null,n.styleObj=null,n.traceHash={},n.layerList=[]);var a;n.map?a=new Promise(function(o,s){n.updateMap(e,t,o,s)}):a=new Promise(function(o,s){n.createMap(e,t,o,s)}),r.push(a)};qh.createMap=function(e,t,r,n){var i=this,a=t[i.id],o=i.styleObj=tGe(a.style,t);i.accessToken=a.accesstoken;var s=a.bounds,l=s?[[s.west,s.south],[s.east,s.north]]:null,u=i.map=new lJ.Map({container:i.div,style:o.style,center:cJ(a.center),zoom:a.zoom,bearing:a.bearing,pitch:a.pitch,maxBounds:l,interactive:!i.isStatic,preserveDrawingBuffer:i.isStatic,doubleClickZoom:!1,boxZoom:!1,attributionControl:!1}).addControl(new lJ.AttributionControl({compact:!0}));u._canvas.style.left="0px",u._canvas.style.top="0px",i.rejectOnError(n),i.isStatic||i.initFx(e,t);var c=[];c.push(new Promise(function(f){u.once("load",f)})),c=c.concat($Ve.fetchTraceGeoData(e)),Promise.all(c).then(function(){i.fillBelowLookup(e,t),i.updateData(e),i.updateLayout(t),i.resolveOnRender(r)}).catch(n)};qh.updateMap=function(e,t,r,n){var i=this,a=i.map,o=t[this.id];i.rejectOnError(n);var s=[],l=tGe(o.style,t);JSON.stringify(i.styleObj)!==JSON.stringify(l)&&(i.styleObj=l,a.setStyle(l.style),i.traceHash={},s.push(new Promise(function(u){a.once("styledata",u)}))),s=s.concat($Ve.fetchTraceGeoData(e)),Promise.all(s).then(function(){i.fillBelowLookup(e,t),i.updateData(e),i.updateLayout(t),i.resolveOnRender(r)}).catch(n)};qh.fillBelowLookup=function(e,t){var r=t[this.id],n=r.layers,i,a,o=this.belowLookup={},s=!1;for(i=0;i1)for(i=0;i-1&&ojt(l.originalEvent,n,[r.xaxis],[r.yaxis],r.id,s),u.indexOf("event")>-1&&Yz.click(n,l.originalEvent)}}};qh.updateFx=function(e){var t=this,r=t.map,n=t.gd;if(t.isStatic)return;function i(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]=[i([u.xmin,u.ymin]),i([u.xmax,u.ymax])]}else{var f=l.lassoPoints={};f[t.id]=u.map(i)}};var s=t.dragOptions;t.dragOptions=uJ.extendDeep(s||{},{dragmode:e.dragmode,element:t.div,gd:n,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),rjt(a)||tjt(a)?(r.dragPan.disable(),r.on("zoomstart",t.clearOutline),t.dragOptions.prepFn=function(l,u,c){ijt(l,u,c,t.dragOptions,a)},ejt.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))};qh.updateFramework=function(e){var t=e[this.id].domain,r=e._size,n=this.div.style;n.width=r.w*(t.x[1]-t.x[0])+"px",n.height=r.h*(t.y[1]-t.y[0])+"px",n.left=r.l+t.x[0]*r.w+"px",n.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])};qh.updateLayers=function(e){var t=e[this.id],r=t.layers,n=this.layerList,i;if(r.length!==n.length){for(i=0;i{"use strict";var fJ=Dr(),ljt=k_(),ujt=Yd(),nGe=BC();aGe.exports=function(t,r,n){ljt(t,r,n,{type:"mapbox",attributes:nGe,handleDefaults:cjt,partition:"y",accessToken:r._mapboxAccessToken})};function cjt(e,t,r,n){r("accesstoken",n.accessToken),r("style"),r("center.lon"),r("center.lat"),r("zoom"),r("bearing"),r("pitch");var i=r("bounds.west"),a=r("bounds.east"),o=r("bounds.south"),s=r("bounds.north");(i===void 0||a===void 0||o===void 0||s===void 0)&&delete t.bounds,ujt(e,t,{name:"layers",handleItemDefaults:fjt}),t._input=e}function fjt(e,t){function r(l,u){return fJ.coerce(e,t,nGe.layers,l,u)}var n=r("visible");if(n){var i=r("sourcetype"),a=i==="raster"||i==="image";r("source"),r("sourceattribution"),i==="vector"&&r("sourcelayer"),i==="image"&&r("coordinates");var o;a&&(o="raster");var s=r("type",o);a&&s!=="raster"&&(s=t.type="raster",fJ.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"),fJ.coerceFont(r,"symbol.textfont",void 0,{noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0}),r("symbol.textposition"),r("symbol.placement"))}}});var Kz=ye(Bp=>{"use strict";var sGe=sJ(),tm=Dr(),hJ=tm.strTranslate,hjt=tm.strScale,djt=Id().getSubplotCalcData,vjt=Wp(),pjt=Oa(),lGe=So(),gjt=iu(),mjt=iGe(),xx="mapbox",Qm=Bp.constants=c1();Bp.name=xx;Bp.attr="subplot";Bp.idRoot=xx;Bp.idRegex=Bp.attrRegex=tm.counterRegex(xx);var yjt=["mapbox subplots and traces are deprecated!","Please consider switching to `map` subplots and traces.","Learn more at: https://plotly.com/python/maplibre-migration/","as well as https://plotly.com/javascript/maplibre-migration/"].join(" ");Bp.attributes={subplot:{valType:"subplotid",dflt:"mapbox",editType:"calc"}};Bp.layoutAttributes=BC();Bp.supplyLayoutDefaults=oGe();var uGe=!0;Bp.plot=function(t){uGe&&(uGe=!1,tm.warn(yjt));var r=t._fullLayout,n=t.calcdata,i=r._subplots[xx];if(sGe.version!==Qm.requiredVersion)throw new Error(Qm.wrongVersionErrorMsg);var a=_jt(t,i);sGe.accessToken=a;for(var o=0;op/2){var C=d.split("|").join("
");x.text(C).attr("data-unformatted",C).call(gjt.convertToTspans,e),b=lGe.bBox(x.node())}x.attr("transform",hJ(-3,-b.height+8)),v.insert("rect",".static-attribution").attr({x:-b.width-6,y:-b.height-3,width:b.width+6,height:b.height+3,fill:"rgba(255, 255, 255, 0.75)"});var E=1;b.width+6>p&&(E=p/(b.width+6));var A=[n.l+n.w*o.x[1],n.t+n.h*(1-o.y[0])];v.attr("transform",hJ(A[0],A[1])+hjt(E))}};function _jt(e,t){var r=e._fullLayout,n=e._context;if(n.mapboxAccessToken==="")return"";for(var i=[],a=[],o=!1,s=!1,l=0;l1&&tm.warn(Qm.multipleTokensErrorMsg),i[0]):(a.length&&tm.log(["Listed mapbox access token(s)",a.join(","),"but did not use a Mapbox map style, ignoring token(s)."].join(" ")),"")}function cGe(e){return typeof e=="string"&&(Qm.styleValuesMapbox.indexOf(e)!==-1||e.indexOf("mapbox://")===0||e.indexOf("stamen")===0)}Bp.updateFx=function(e){for(var t=e._fullLayout,r=t._subplots[xx],n=0;n{"use strict";var C_r=["*scattermapbox* trace is deprecated!","Please consider switching to the *scattermap* trace type and `map` subplots.","Learn more at: https://plotly.com/python/maplibre-migration/","as well as https://plotly.com/javascript/maplibre-migration/"].join(" ");fGe.exports={attributes:Vz(),supplyDefaults:TVe(),colorbar:$d(),formatLabels:eJ(),calc:fF(),plot:OVe(),hoverPoints:Xz().hoverPoints,eventData:UVe(),selectPoints:GVe(),styleOnSelect:function(e,t){if(t){var r=t[0].trace;r._glTrace.update(t)}},moduleType:"trace",name:"scattermapbox",basePlotModule:Kz(),categories:["mapbox","gl","symbols","showLegend","scatter-like"],meta:{}}});var vGe=ye((L_r,dGe)=>{"use strict";dGe.exports=hGe()});var dJ=ye((P_r,pGe)=>{"use strict";var f1=JA(),xjt=Tu(),bjt=Qo().hovertemplateAttrs,wjt=Vl(),bx=Ao().extendFlat;pGe.exports=bx({locations:{valType:"data_array",editType:"calc"},z:{valType:"data_array",editType:"calc"},geojson:{valType:"any",editType:"calc"},featureidkey:bx({},f1.featureidkey,{}),below:{valType:"string",editType:"plot"},text:f1.text,hovertext:f1.hovertext,marker:{line:{color:bx({},f1.marker.line.color,{editType:"plot"}),width:bx({},f1.marker.line.width,{editType:"plot"}),editType:"calc"},opacity:bx({},f1.marker.opacity,{editType:"plot"}),editType:"calc"},selected:{marker:{opacity:bx({},f1.selected.marker.opacity,{editType:"plot"}),editType:"plot"},editType:"plot"},unselected:{marker:{opacity:bx({},f1.unselected.marker.opacity,{editType:"plot"}),editType:"plot"},editType:"plot"},hoverinfo:f1.hoverinfo,hovertemplate:bjt({},{keys:["properties"]}),showlegend:bx({},wjt.showlegend,{dflt:!1})},xjt("",{cLetter:"z",editTypeOverride:"calc"}))});var mGe=ye((I_r,gGe)=>{"use strict";var GC=Dr(),Tjt=Jh(),Ajt=dJ();gGe.exports=function(t,r,n,i){function a(c,f){return GC.coerce(t,r,Ajt,c,f)}var o=a("locations"),s=a("z"),l=a("geojson");if(!GC.isArrayOrTypedArray(o)||!o.length||!GC.isArrayOrTypedArray(s)||!s.length||!(typeof l=="string"&&l!==""||GC.isPlainObject(l))){r.visible=!1;return}a("featureidkey"),r._length=Math.min(o.length,s.length),a("below"),a("text"),a("hovertext"),a("hovertemplate");var u=a("marker.line.width");u&&a("marker.line.color"),a("marker.opacity"),Tjt(t,r,i,a,{prefix:"",cLetter:"z"}),GC.coerceSelectionMarkerOpacity(r,a)}});var vJ=ye((R_r,xGe)=>{"use strict";var Sjt=Eo(),h1=Dr(),Mjt=tc(),Ejt=So(),Cjt=rx().makeBlank,yGe=nx();function kjt(e){var t=e[0].trace,r=t.visible===!0&&t._length!==0,n={layout:{visibility:"none"},paint:{}},i={layout:{visibility:"none"},paint:{}},a=t._opts={fill:n,line:i,geojson:Cjt()};if(!r)return a;var o=yGe.extractTraceFeature(e);if(!o)return a;var s=Mjt.makeColorScaleFuncFromTrace(t),l=t.marker,u=l.line||{},c;h1.isArrayOrTypedArray(l.opacity)&&(c=function(C){var E=C.mo;return Sjt(E)?+h1.constrain(E,0,1):0});var f;h1.isArrayOrTypedArray(u.color)&&(f=function(C){return C.mlc});var h;h1.isArrayOrTypedArray(u.width)&&(h=function(C){return C.mlw});for(var d=0;d{"use strict";var wGe=vJ().convert,Ljt=vJ().convertOnSelect,bGe=c1().traceLayerPrefix;function TGe(e,t){this.type="choroplethmapbox",this.subplot=e,this.uid=t,this.sourceId="source-"+t,this.layerList=[["fill",bGe+t+"-fill"],["line",bGe+t+"-line"]],this.below=null}var T5=TGe.prototype;T5.update=function(e){this._update(wGe(e)),e[0].trace._glTrace=this};T5.updateOnSelect=function(e){this._update(Ljt(e))};T5._update=function(e){var t=this.subplot,r=this.layerList,n=t.belowLookup["trace-"+this.uid];t.map.getSource(this.sourceId).setData(e.geojson),n!==this.below&&(this._removeLayers(),this._addLayers(e,n),this.below=n);for(var i=0;i=0;r--)e.removeLayer(t[r][1])};T5.dispose=function(){var e=this.subplot.map;this._removeLayers(),e.removeSource(this.sourceId)};AGe.exports=function(t,r){var n=r[0].trace,i=new TGe(t,n.uid),a=i.sourceId,o=wGe(r),s=i.below=t.belowLookup["trace-"+n.uid];return t.map.addSource(a,{type:"geojson",data:o.geojson}),i._addLayers(o,s),r[0].trace._glTrace=i,i}});var EGe=ye((z_r,MGe)=>{"use strict";var F_r=["*choroplethmapbox* trace is deprecated!","Please consider switching to the *choroplethmap* trace type and `map` subplots.","Learn more at: https://plotly.com/python/maplibre-migration/","as well as https://plotly.com/javascript/maplibre-migration/"].join(" ");MGe.exports={attributes:dJ(),supplyDefaults:mGe(),colorbar:M_(),calc:IF(),plot:SGe(),hoverPoints:DF(),eventData:FF(),selectPoints:zF(),styleOnSelect:function(e,t){if(t){var r=t[0].trace;r._glTrace.updateOnSelect(t)}},getBelow:function(e,t){for(var r=t.getMapLayers(),n=r.length-2;n>=0;n--){var i=r[n].id;if(typeof i=="string"&&i.indexOf("water")===0){for(var a=n+1;a{"use strict";CGe.exports=EGe()});var gJ=ye((q_r,PGe)=>{"use strict";var Pjt=Tu(),Ijt=Qo().hovertemplateAttrs,LGe=Vl(),Jz=Vz(),pJ=Ao().extendFlat;PGe.exports=pJ({lon:Jz.lon,lat:Jz.lat,z:{valType:"data_array",editType:"calc"},radius:{valType:"number",editType:"plot",arrayOk:!0,min:1,dflt:30},below:{valType:"string",editType:"plot"},text:Jz.text,hovertext:Jz.hovertext,hoverinfo:pJ({},LGe.hoverinfo,{flags:["lon","lat","z","text","name"]}),hovertemplate:Ijt(),showlegend:pJ({},LGe.showlegend,{dflt:!1})},Pjt("",{cLetter:"z",editTypeOverride:"calc"}))});var RGe=ye((B_r,IGe)=>{"use strict";var Rjt=Dr(),Djt=Jh(),Fjt=gJ();IGe.exports=function(t,r,n,i){function a(u,c){return Rjt.coerce(t,r,Fjt,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"),Djt(t,r,i,a,{prefix:"",cLetter:"z"})}});var zGe=ye((N_r,FGe)=>{"use strict";var mJ=Eo(),zjt=Dr().isArrayOrTypedArray,yJ=hs().BADNUM,Ojt=Fv(),DGe=Dr()._;FGe.exports=function(t,r){for(var n=r._length,i=new Array(n),a=r.z,o=zjt(a)&&a.length,s=0;s{"use strict";var qjt=Eo(),_J=Dr(),OGe=Ca(),qGe=tc(),BGe=hs().BADNUM,Bjt=rx().makeBlank;NGe.exports=function(t){var r=t[0].trace,n=r.visible===!0&&r._length!==0,i={layout:{visibility:"none"},paint:{}},a=r._opts={heatmap:i,geojson:Bjt()};if(!n)return a;var o=[],s,l=r.z,u=r.radius,c=_J.isArrayOrTypedArray(l)&&l.length,f=_J.isArrayOrTypedArray(u);for(s=0;s0?+u[s]:0),o.push({type:"Feature",geometry:{type:"Point",coordinates:d},properties:v})}}var b=qGe.extractOpts(r),p=b.reversescale?qGe.flipScale(b.colorscale):b.colorscale,C=p[0][1],E=OGe.opacity(C)<1?C:OGe.addOpacity(C,0),A=["interpolate",["linear"],["heatmap-density"],0,E];for(s=1;s{"use strict";var VGe=UGe(),Njt=c1().traceLayerPrefix;function GGe(e,t){this.type="densitymapbox",this.subplot=e,this.uid=t,this.sourceId="source-"+t,this.layerList=[["heatmap",Njt+t+"-heatmap"]],this.below=null}var $z=GGe.prototype;$z.update=function(e){var t=this.subplot,r=this.layerList,n=VGe(e),i=t.belowLookup["trace-"+this.uid];t.map.getSource(this.sourceId).setData(n.geojson),i!==this.below&&(this._removeLayers(),this._addLayers(n,i),this.below=i);for(var a=0;a=0;r--)e.removeLayer(t[r][1])};$z.dispose=function(){var e=this.subplot.map;this._removeLayers(),e.removeSource(this.sourceId)};HGe.exports=function(t,r){var n=r[0].trace,i=new GGe(t,n.uid),a=i.sourceId,o=VGe(r),s=i.below=t.belowLookup["trace-"+n.uid];return t.map.addSource(a,{type:"geojson",data:o.geojson}),i._addLayers(o,s),i}});var XGe=ye((G_r,WGe)=>{"use strict";var Ujt=ho(),Vjt=Xz().hoverPoints,Gjt=Xz().getExtraText;WGe.exports=function(t,r,n){var i=Vjt(t,r,n);if(i){var a=i[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=Ujt.tickText(u,u.c2l(l.z),"hover").text}return a.extraText=Gjt(s,l,o[0].t.labels),[a]}}});var YGe=ye((H_r,ZGe)=>{"use strict";ZGe.exports=function(t,r){return t.lon=r.lon,t.lat=r.lat,t.z=r.z,t}});var JGe=ye((W_r,KGe)=>{"use strict";var j_r=["*densitymapbox* trace is deprecated!","Please consider switching to the *densitymap* trace type and `map` subplots.","Learn more at: https://plotly.com/python/maplibre-migration/","as well as https://plotly.com/javascript/maplibre-migration/"].join(" ");KGe.exports={attributes:gJ(),supplyDefaults:RGe(),colorbar:M_(),formatLabels:eJ(),calc:zGe(),plot:jGe(),hoverPoints:XGe(),eventData:YGe(),getBelow:function(e,t){for(var r=t.getMapLayers(),n=0;n{"use strict";$Ge.exports=JGe()});var tHe=ye((Z_r,eHe)=>{eHe.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} +{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-1",type:"symbol",source:"openmaptiles","source-layer":"poi",minzoom:14,filter:["all",["==","$type","Point"],["<=","rank",14],["has","name"]],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":11,"text-max-width":9},paint:{"text-halo-blur":.5,"text-color":"rgba(191, 228, 172, 1)","text-halo-width":1,"text-halo-color":"rgba(30, 29, 29, 1)"}},{id:"poi-railway",type:"symbol",source:"openmaptiles","source-layer":"poi",minzoom:13,filter:["all",["==","$type","Point"],["has","name"],["==","class","railway"],["==","subclass","station"]],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,"icon-optional":!1,"icon-ignore-placement":!1,"icon-allow-overlap":!1,"text-ignore-placement":!1,"text-allow-overlap":!1,"text-optional":!0},paint:{"text-halo-blur":.5,"text-color":"#666","text-halo-width":1,"text-halo-color":"#ffffff"}},{id:"road_oneway",type:"symbol",source:"openmaptiles","source-layer":"transportation",minzoom:15,filter:["all",["==","oneway",1],["in","class","motorway","trunk","primary","secondary","tertiary","minor","service"]],layout:{"symbol-placement":"line","icon-image":"oneway","symbol-spacing":75,"icon-padding":2,"icon-rotation-alignment":"map","icon-rotate":90,"icon-size":{stops:[[15,.5],[19,1]]}},paint:{"icon-opacity":.5}},{id:"road_oneway_opposite",type:"symbol",source:"openmaptiles","source-layer":"transportation",minzoom:15,filter:["all",["==","oneway",-1],["in","class","motorway","trunk","primary","secondary","tertiary","minor","service"]],layout:{"symbol-placement":"line","icon-image":"oneway","symbol-spacing":75,"icon-padding":2,"icon-rotation-alignment":"map","icon-rotate":-90,"icon-size":{stops:[[15,.5],[19,1]]}},paint:{"icon-opacity":.5}},{id:"highway-name-path",type:"symbol",source:"openmaptiles","source-layer":"transportation_name",minzoom:15.5,filter:["==","class","path"],layout:{"text-size":{base:1,stops:[[13,12],[14,13]]},"text-font":["Noto Sans Regular"],"text-field":"{name:latin} {name:nonlatin}","symbol-placement":"line","text-rotation-alignment":"map"},paint:{"text-halo-color":"#f8f4f0","text-color":"hsl(30, 23%, 62%)","text-halo-width":.5}},{id:"highway-name-minor",type:"symbol",source:"openmaptiles","source-layer":"transportation_name",minzoom:15,filter:["all",["==","$type","LineString"],["in","class","minor","service","track"]],layout:{"text-size":{base:1,stops:[[13,12],[14,13]]},"text-font":["Noto Sans Regular"],"text-field":"{name:latin} {name:nonlatin}","symbol-placement":"line","text-rotation-alignment":"map"},paint:{"text-halo-blur":.5,"text-color":"#765","text-halo-width":1}},{id:"highway-name-major",type:"symbol",source:"openmaptiles","source-layer":"transportation_name",minzoom:12.2,filter:["in","class","primary","secondary","tertiary","trunk"],layout:{"text-size":{base:1,stops:[[13,12],[14,13]]},"text-font":["Noto Sans Regular"],"text-field":"{name:latin} {name:nonlatin}","symbol-placement":"line","text-rotation-alignment":"map"},paint:{"text-halo-blur":.5,"text-color":"#765","text-halo-width":1}},{id:"highway-shield",type:"symbol",source:"openmaptiles","source-layer":"transportation_name",minzoom:8,filter:["all",["<=","ref_length",6],["==","$type","LineString"],["!in","network","us-interstate","us-highway","us-state"]],layout:{"text-size":10,"icon-image":"road_{ref_length}","icon-rotation-alignment":"viewport","symbol-spacing":200,"text-font":["Noto Sans Regular"],"symbol-placement":{base:1,stops:[[10,"point"],[11,"line"]]},"text-rotation-alignment":"viewport","icon-size":1,"text-field":"{ref}"},paint:{"text-opacity":1,"text-color":"rgba(20, 19, 19, 1)","text-halo-color":"rgba(230, 221, 221, 0)","text-halo-width":2,"icon-color":"rgba(183, 18, 18, 1)","icon-opacity":.3,"icon-halo-color":"rgba(183, 55, 55, 0)"}},{id:"highway-shield-us-interstate",type:"symbol",source:"openmaptiles","source-layer":"transportation_name",minzoom:7,filter:["all",["<=","ref_length",6],["==","$type","LineString"],["in","network","us-interstate"]],layout:{"text-size":10,"icon-image":"{network}_{ref_length}","icon-rotation-alignment":"viewport","symbol-spacing":200,"text-font":["Noto Sans Regular"],"symbol-placement":{base:1,stops:[[7,"point"],[7,"line"],[8,"line"]]},"text-rotation-alignment":"viewport","icon-size":1,"text-field":"{ref}"},paint:{"text-color":"rgba(0, 0, 0, 1)"}},{id:"highway-shield-us-other",type:"symbol",source:"openmaptiles","source-layer":"transportation_name",minzoom:9,filter:["all",["<=","ref_length",6],["==","$type","LineString"],["in","network","us-highway","us-state"]],layout:{"text-size":10,"icon-image":"{network}_{ref_length}","icon-rotation-alignment":"viewport","symbol-spacing":200,"text-font":["Noto Sans Regular"],"symbol-placement":{base:1,stops:[[10,"point"],[11,"line"]]},"text-rotation-alignment":"viewport","icon-size":1,"text-field":"{ref}"},paint:{"text-color":"rgba(0, 0, 0, 1)"}},{id:"place-other",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",minzoom:12,filter:["!in","class","city","town","village","country","continent"],layout:{"text-letter-spacing":.1,"text-size":{base:1.2,stops:[[12,10],[15,14]]},"text-font":["Noto Sans Bold"],"text-field":`{name:latin} +{name:nonlatin}`,"text-transform":"uppercase","text-max-width":9,visibility:"visible"},paint:{"text-color":"rgba(255,255,255,1)","text-halo-width":1.2,"text-halo-color":"rgba(57, 28, 28, 1)"}},{id:"place-village",type:"symbol",metadata:{"mapbox:group":"1444849242106.713"},source:"openmaptiles","source-layer":"place",minzoom:10,filter:["==","class","village"],layout:{"text-font":["Noto Sans Regular"],"text-size":{base:1.2,stops:[[10,12],[15,16]]},"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(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 iHe=ye((Y_r,rHe)=>{rHe.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 wx=ye((K_r,lHe)=>{"use strict";var Hjt=Y1(),jjt=tHe(),Wjt=iHe(),Xjt='\xA9 OpenStreetMap contributors',nHe="https://basemaps.cartocdn.com/gl/positron-gl-style/style.json",aHe="https://basemaps.cartocdn.com/gl/dark-matter-gl-style/style.json",Qz="https://basemaps.cartocdn.com/gl/voyager-gl-style/style.json",Zjt="https://basemaps.cartocdn.com/gl/positron-nolabels-gl-style/style.json",Yjt="https://basemaps.cartocdn.com/gl/dark-matter-nolabels-gl-style/style.json",Kjt="https://basemaps.cartocdn.com/gl/voyager-nolabels-gl-style/style.json",sHe={basic:Qz,streets:Qz,outdoors:Qz,light:nHe,dark:aHe,satellite:Wjt,"satellite-streets":jjt,"open-street-map":{id:"osm",version:8,sources:{"plotly-osm-tiles":{type:"raster",attribution:Xjt,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":nHe,"carto-darkmatter":aHe,"carto-voyager":Qz,"carto-positron-nolabels":Zjt,"carto-darkmatter-nolabels":Yjt,"carto-voyager-nolabels":Kjt},oHe=Hjt(sHe);lHe.exports={styleValueDflt:"basic",stylesMap:sHe,styleValuesMap:oHe,traceLayerPrefix:"plotly-trace-layer-",layoutLayerPrefix:"plotly-layout-layer-",missingStyleErrorMsg:["No valid maplibre style found, please set `map.style` to one of:",oHe.join(", "),"or use a tile service."].join(` +`),mapOnErrorMsg:"Map error."}});var HC=ye((J_r,dHe)=>{"use strict";var uHe=Dr(),cHe=Ca().defaultLine,Jjt=kc().attributes,$jt=ec(),Qjt=pf().textposition,eWt=mc().overrideAll,tWt=pl().templatedArray,fHe=wx(),hHe=$jt({noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0});hHe.family.dflt="Open Sans Regular, Arial Unicode MS Regular";var rWt=dHe.exports=eWt({_arrayAttrRegexps:[uHe.counterRegex("map",".layers",!0)],domain:Jjt({name:"map"}),style:{valType:"any",values:fHe.styleValuesMap,dflt:fHe.styleValueDflt},center:{lon:{valType:"number",dflt:0},lat:{valType:"number",dflt:0}},zoom:{valType:"number",dflt:1},bearing:{valType:"number",dflt:0},pitch:{valType:"number",dflt:0},bounds:{west:{valType:"number"},east:{valType:"number"},south:{valType:"number"},north:{valType:"number"}},layers:tWt("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:cHe},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:cHe}},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:hHe,textposition:uHe.extendFlat({},Qjt,{arrayOk:!1})}})},"plot","from-root");rWt.uirevision={valType:"any",editType:"none"}});var e7=ye(($_r,gHe)=>{"use strict";var iWt=Qo().hovertemplateAttrs,nWt=Qo().texttemplateAttrs,aWt=Eg(),jC=G2(),A5=pf(),vHe=HC(),oWt=Vl(),sWt=Tu(),rw=Ao().extendFlat,lWt=mc().overrideAll,uWt=HC(),pHe=jC.line,S5=jC.marker;gHe.exports=lWt({lon:jC.lon,lat:jC.lat,cluster:{enabled:{valType:"boolean"},maxzoom:rw({},uWt.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:rw({},S5.opacity,{dflt:1})},mode:rw({},A5.mode,{dflt:"markers"}),text:rw({},A5.text,{}),texttemplate:nWt({editType:"plot"},{keys:["lat","lon","text"]}),hovertext:rw({},A5.hovertext,{}),line:{color:pHe.color,width:pHe.width},connectgaps:A5.connectgaps,marker:rw({symbol:{valType:"string",dflt:"circle",arrayOk:!0},angle:{valType:"number",dflt:"auto",arrayOk:!0},allowoverlap:{valType:"boolean",dflt:!1},opacity:S5.opacity,size:S5.size,sizeref:S5.sizeref,sizemin:S5.sizemin,sizemode:S5.sizemode},sWt("marker")),fill:jC.fill,fillcolor:aWt(),textfont:vHe.layers.symbol.textfont,textposition:vHe.layers.symbol.textposition,below:{valType:"string"},selected:{marker:A5.selected.marker},unselected:{marker:A5.unselected.marker},hoverinfo:rw({},oWt.hoverinfo,{flags:["lon","lat","text","name"]}),hovertemplate:iWt()},"calc","nested")});var xJ=ye((Q_r,mHe)=>{"use strict";var cWt=["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"];mHe.exports={isSupportedFont:function(e){return cWt.indexOf(e)!==-1}}});var xHe=ye((exr,_He)=>{"use strict";var WC=Dr(),bJ=Ru(),fWt=$p(),hWt=R0(),dWt=D0(),vWt=Ig(),yHe=e7(),pWt=xJ().isSupportedFont;_He.exports=function(t,r,n,i){function a(p,C){return WC.coerce(t,r,yHe,p,C)}function o(p,C){return WC.coerce2(t,r,yHe,p,C)}var s=gWt(t,r,a);if(!s){r.visible=!1;return}if(a("text"),a("texttemplate"),a("hovertext"),a("hovertemplate"),a("mode"),a("below"),bJ.hasMarkers(r)){fWt(t,r,n,i,a,{noLine:!0,noAngle:!0}),a("marker.allowoverlap"),a("marker.angle");var l=r.marker;l.symbol!=="circle"&&(WC.isArrayOrTypedArray(l.size)&&(l.size=l.size[0]),WC.isArrayOrTypedArray(l.color)&&(l.color=l.color[0]))}bJ.hasLines(r)&&(hWt(t,r,n,i,a,{noDash:!0}),a("connectgaps"));var u=o("cluster.maxzoom"),c=o("cluster.step"),f=o("cluster.color",r.marker&&r.marker.color||n),h=o("cluster.size"),d=o("cluster.opacity"),v=u!==!1||c!==!1||f!==!1||h!==!1||d!==!1,x=a("cluster.enabled",v);if(x||bJ.hasText(r)){var b=i.font.family;dWt(t,r,i,a,{noSelect:!0,noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0,font:{family:pWt(b)?b:"Open Sans Regular",weight:i.font.weight,style:i.font.style,size:i.font.size,color:i.font.color}})}a("fill"),r.fill!=="none"&&vWt(t,r,n,a),WC.coerceSelectionMarkerOpacity(r,a)};function gWt(e,t,r){var n=r("lon")||[],i=r("lat")||[],a=Math.min(n.length,i.length);return t._length=a,a}});var wJ=ye((txr,wHe)=>{"use strict";var bHe=ho();wHe.exports=function(t,r,n){var i={},a=n[r.subplot]._subplot,o=a.mockAxis,s=t.lonlat;return i.lonLabel=bHe.tickText(o,o.c2l(s[0]),!0).text,i.latLabel=bHe.tickText(o,o.c2l(s[1]),!0).text,i}});var TJ=ye((rxr,AHe)=>{"use strict";var THe=Dr();AHe.exports=function(t,r){var n=t.split(" "),i=n[0],a=n[1],o=THe.isArrayOrTypedArray(r)?THe.mean(r):r,s=.5+o/100,l=1.5+o/100,u=["",""],c=[0,0];switch(i){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 LHe=ye((ixr,kHe)=>{"use strict";var EHe=Eo(),ov=Dr(),mWt=hs().BADNUM,r7=rx(),SHe=tc(),yWt=So(),_Wt=S3(),i7=Ru(),xWt=xJ().isSupportedFont,bWt=TJ(),wWt=rp().appendArrayPointValue,TWt=iu().NEWLINES,AWt=iu().BR_TAG_ALL;kHe.exports=function(t,r){var n=r[0].trace,i=n.visible===!0&&n._length!==0,a=n.fill!=="none",o=i7.hasLines(n),s=i7.hasMarkers(n),l=i7.hasText(n),u=s&&n.marker.symbol==="circle",c=s&&n.marker.symbol!=="circle",f=n.cluster&&n.cluster.enabled,h=t7("fill"),d=t7("line"),v=t7("circle"),x=t7("symbol"),b={fill:h,line:d,circle:v,symbol:x};if(!i)return b;var p;if((a||o)&&(p=r7.calcTraceToLineCoords(r)),a&&(h.geojson=r7.makePolygon(p),h.layout.visibility="visible",ov.extendFlat(h.paint,{"fill-color":n.fillcolor})),o&&(d.geojson=r7.makeLine(p),d.layout.visibility="visible",ov.extendFlat(d.paint,{"line-width":n.line.width,"line-color":n.line.color,"line-opacity":n.opacity})),u){var C=SWt(r);v.geojson=C.geojson,v.layout.visibility="visible",f&&(v.filter=["!",["has","point_count"]],b.cluster={type:"circle",filter:["has","point_count"],layout:{visibility:"visible"},paint:{"circle-color":SJ(n.cluster.color,n.cluster.step),"circle-radius":SJ(n.cluster.size,n.cluster.step),"circle-opacity":SJ(n.cluster.opacity,n.cluster.step)}},b.clusterCount={type:"symbol",filter:["has","point_count"],paint:{},layout:{"text-field":"{point_count_abbreviated}","text-font":MHe(n),"text-size":12}}),ov.extendFlat(v.paint,{"circle-color":C.mcc,"circle-radius":C.mrc,"circle-opacity":C.mo})}if(u&&f&&(v.filter=["!",["has","point_count"]]),(c||l)&&(x.geojson=MWt(r,t),ov.extendFlat(x.layout,{visibility:"visible","icon-image":"{symbol}-15","text-field":"{text}"}),c&&(ov.extendFlat(x.layout,{"icon-size":n.marker.size/10}),"angle"in n.marker&&n.marker.angle!=="auto"&&ov.extendFlat(x.layout,{"icon-rotate":{type:"identity",property:"angle"},"icon-rotation-alignment":"map"}),x.layout["icon-allow-overlap"]=n.marker.allowoverlap,ov.extendFlat(x.paint,{"icon-opacity":n.opacity*n.marker.opacity,"icon-color":n.marker.color})),l)){var E=(n.marker||{}).size,A=bWt(n.textposition,E);ov.extendFlat(x.layout,{"text-size":n.textfont.size,"text-anchor":A.anchor,"text-offset":A.offset,"text-font":MHe(n)}),ov.extendFlat(x.paint,{"text-color":n.textfont.color,"text-opacity":n.opacity})}return b};function t7(e){return{type:e,geojson:r7.makeBlank(),layout:{visibility:"none"},filter:null,paint:{}}}function SWt(e){var t=e[0].trace,r=t.marker,n=t.selectedpoints,i=ov.isArrayOrTypedArray(r.color),a=ov.isArrayOrTypedArray(r.size),o=ov.isArrayOrTypedArray(r.opacity),s;function l(E){return t.opacity*E}function u(E){return E/2}var c;i&&(SHe.hasColorscale(t,"marker")?c=SHe.makeColorScaleFuncFromTrace(r):c=ov.identity);var f;a&&(f=_Wt(t));var h;o&&(h=function(E){var A=EHe(E)?+ov.constrain(E,0,1):0;return l(A)});var d=[];for(s=0;s850?s+=" Black":i>750?s+=" Extra Bold":i>650?s+=" Bold":i>550?s+=" Semi Bold":i>450?s+=" Medium":i>350?s+=" Regular":i>250?s+=" Light":i>150?s+=" Extra Light":s+=" Thin"):a.slice(0,2).join(" ")==="Open Sans"?(s="Open Sans",i>750?s+=" Extrabold":i>650?s+=" Bold":i>550?s+=" Semibold":i>350?s+=" Regular":s+=" Light"):a.slice(0,3).join(" ")==="Klokantech Noto Sans"&&(s="Klokantech Noto Sans",a[3]==="CJK"&&(s+=" CJK"),s+=i>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"),xWt(s)||(s=r);var l=s.split(", ");return l}});var DHe=ye((nxr,RHe)=>{"use strict";var EWt=Dr(),PHe=LHe(),M5=wx().traceLayerPrefix,ng={cluster:["cluster","clusterCount","circle"],nonCluster:["fill","line","circle","symbol"]};function IHe(e,t,r,n){this.type="scattermap",this.subplot=e,this.uid=t,this.clusterEnabled=r,this.isHidden=n,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:M5+t+"-fill",line:M5+t+"-line",circle:M5+t+"-circle",symbol:M5+t+"-symbol",cluster:M5+t+"-cluster",clusterCount:M5+t+"-cluster-count"},this.below=null}var XC=IHe.prototype;XC.addSource=function(e,t,r){var n={type:"geojson",data:t.geojson};r&&r.enabled&&EWt.extendFlat(n,{cluster:!0,clusterMaxZoom:r.maxzoom});var i=this.subplot.map.getSource(this.sourceIds[e]);i?i.setData(t.geojson):this.subplot.map.addSource(this.sourceIds[e],n)};XC.setSourceData=function(e,t){this.subplot.map.getSource(this.sourceIds[e]).setData(t.geojson)};XC.addLayer=function(e,t,r){var n={type:t.type,id:this.layerIds[e],source:this.sourceIds[e],layout:t.layout,paint:t.paint};t.filter&&(n.filter=t.filter);for(var i=this.layerIds[e],a,o=this.subplot.getMapLayers(),s=0;s=0;L--){var _=A[L];i.removeLayer(u.layerIds[_])}E||i.removeSource(u.sourceIds.circle)}function h(E){for(var A=ng.nonCluster,L=0;L=0;L--){var _=A[L];i.removeLayer(u.layerIds[_]),E||i.removeSource(u.sourceIds[_])}}function v(E){l?f(E):d(E)}function x(E){s?c(E):h(E)}function b(){for(var E=s?ng.cluster:ng.nonCluster,A=0;A=0;n--){var i=r[n];t.removeLayer(this.layerIds[i]),t.removeSource(this.sourceIds[i])}};RHe.exports=function(t,r){var n=r[0].trace,i=n.cluster&&n.cluster.enabled,a=n.visible!==!0,o=new IHe(t,n.uid,i,a),s=PHe(t.gd,r),l=o.below=t.belowLookup["trace-"+n.uid],u,c,f;if(i)for(o.addSource("circle",s.circle,n.cluster),u=0;u{"use strict";var CWt=vf(),MJ=Dr(),kWt=oT(),LWt=MJ.fillText,PWt=hs().BADNUM,IWt=wx().traceLayerPrefix;function RWt(e,t,r){var n=e.cd,i=n[0].trace,a=e.xa,o=e.ya,s=e.subplot,l=[],u=IWt+i.uid+"-circle",c=i.cluster&&i.cluster.enabled;if(c){var f=s.map.queryRenderedFeatures(null,{layers:[u]});l=f.map(function(M){return M.id})}var h=t>=0?Math.floor((t+180)/360):Math.ceil((t-180)/360),d=h*360,v=t-d;function x(M){var g=M.lonlat;if(g[0]===PWt||c&&l.indexOf(M.i+1)===-1)return 1/0;var P=MJ.modHalf(g[0],360),T=g[1],z=s.project([P,T]),O=z.x-a.c2p([v,T]),V=z.y-o.c2p([P,r]),G=Math.max(3,M.mrc||0);return Math.max(Math.sqrt(O*O+V*V)-G,1-3/G)}if(CWt.getClosest(n,x,e),e.index!==!1){var b=n[e.index],p=b.lonlat,C=[MJ.modHalf(p[0],360)+d,p[1]],E=a.c2p(C),A=o.c2p(C),L=b.mrc||1;e.x0=E-L,e.x1=E+L,e.y0=A-L,e.y1=A+L;var _={};_[i.subplot]={_subplot:s};var k=i._module.formatLabels(b,i,_);return e.lonLabel=k.lonLabel,e.latLabel=k.latLabel,e.color=kWt(i,b),e.extraText=FHe(i,b,n[0].t.labels),e.hovertemplate=i.hovertemplate,[e]}}function FHe(e,t,r){if(e.hovertemplate)return;var n=t.hi||e.hoverinfo,i=n.split("+"),a=i.indexOf("all")!==-1,o=i.indexOf("lon")!==-1,s=i.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||i.indexOf("text")!==-1)&&LWt(t,e,u),u.join("
")}zHe.exports={hoverPoints:RWt,getExtraText:FHe}});var qHe=ye((oxr,OHe)=>{"use strict";OHe.exports=function(t,r){return t.lon=r.lon,t.lat=r.lat,t}});var NHe=ye((sxr,BHe)=>{"use strict";var DWt=Dr(),FWt=Ru(),zWt=hs().BADNUM;BHe.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s=n[0].trace,l;if(!FWt.hasMarkers(s))return[];if(r===!1)for(l=0;l{(function(e,t){typeof EJ=="object"&&typeof CJ!="undefined"?CJ.exports=t():(e=typeof globalThis!="undefined"?globalThis:e||self,e.maplibregl=t())})(EJ,function(){"use strict";var e={},t={};function r(i,a,o){if(t[i]=o,i==="index"){var s="var sharedModule = {}; ("+t.shared+")(sharedModule); ("+t.worker+")(sharedModule);",l={};return t.shared(l),t.index(e,l),typeof window!="undefined"&&e.setWorkerUrl(window.URL.createObjectURL(new Blob([s],{type:"text/javascript"}))),e}}r("shared",["exports"],function(i){"use strict";function a(R,S,F,W){return new(F||(F=Promise))(function(te,fe){function pe(ut){try{Ke(W.next(ut))}catch(Lt){fe(Lt)}}function ze(ut){try{Ke(W.throw(ut))}catch(Lt){fe(Lt)}}function Ke(ut){var Lt;ut.done?te(ut.value):(Lt=ut.value,Lt instanceof F?Lt:new F(function(Qt){Qt(Lt)})).then(pe,ze)}Ke((W=W.apply(R,S||[])).next())})}function o(R){return R&&R.__esModule&&Object.prototype.hasOwnProperty.call(R,"default")?R.default:R}typeof SuppressedError=="function"&&SuppressedError;var s=l;function l(R,S){this.x=R,this.y=S}l.prototype={clone:function(){return new l(this.x,this.y)},add:function(R){return this.clone()._add(R)},sub:function(R){return this.clone()._sub(R)},multByPoint:function(R){return this.clone()._multByPoint(R)},divByPoint:function(R){return this.clone()._divByPoint(R)},mult:function(R){return this.clone()._mult(R)},div:function(R){return this.clone()._div(R)},rotate:function(R){return this.clone()._rotate(R)},rotateAround:function(R,S){return this.clone()._rotateAround(R,S)},matMult:function(R){return this.clone()._matMult(R)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(R){return this.x===R.x&&this.y===R.y},dist:function(R){return Math.sqrt(this.distSqr(R))},distSqr:function(R){var S=R.x-this.x,F=R.y-this.y;return S*S+F*F},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(R){return Math.atan2(this.y-R.y,this.x-R.x)},angleWith:function(R){return this.angleWithSep(R.x,R.y)},angleWithSep:function(R,S){return Math.atan2(this.x*S-this.y*R,this.x*R+this.y*S)},_matMult:function(R){var S=R[2]*this.x+R[3]*this.y;return this.x=R[0]*this.x+R[1]*this.y,this.y=S,this},_add:function(R){return this.x+=R.x,this.y+=R.y,this},_sub:function(R){return this.x-=R.x,this.y-=R.y,this},_mult:function(R){return this.x*=R,this.y*=R,this},_div:function(R){return this.x/=R,this.y/=R,this},_multByPoint:function(R){return this.x*=R.x,this.y*=R.y,this},_divByPoint:function(R){return this.x/=R.x,this.y/=R.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var R=this.y;return this.y=this.x,this.x=-R,this},_rotate:function(R){var S=Math.cos(R),F=Math.sin(R),W=F*this.x+S*this.y;return this.x=S*this.x-F*this.y,this.y=W,this},_rotateAround:function(R,S){var F=Math.cos(R),W=Math.sin(R),te=S.y+W*(this.x-S.x)+F*(this.y-S.y);return this.x=S.x+F*(this.x-S.x)-W*(this.y-S.y),this.y=te,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},l.convert=function(R){return R instanceof l?R:Array.isArray(R)?new l(R[0],R[1]):R};var u=o(s),c=f;function f(R,S,F,W){this.cx=3*R,this.bx=3*(F-R)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*S,this.by=3*(W-S)-this.cy,this.ay=1-this.cy-this.by,this.p1x=R,this.p1y=S,this.p2x=F,this.p2y=W}f.prototype={sampleCurveX:function(R){return((this.ax*R+this.bx)*R+this.cx)*R},sampleCurveY:function(R){return((this.ay*R+this.by)*R+this.cy)*R},sampleCurveDerivativeX:function(R){return(3*this.ax*R+2*this.bx)*R+this.cx},solveCurveX:function(R,S){if(S===void 0&&(S=1e-6),R<0)return 0;if(R>1)return 1;for(var F=R,W=0;W<8;W++){var te=this.sampleCurveX(F)-R;if(Math.abs(te)te?pe=F:ze=F,F=.5*(ze-pe)+pe;return F},solve:function(R,S){return this.sampleCurveY(this.solveCurveX(R,S))}};var h=o(c);let d,v;function x(){return d==null&&(d=typeof OffscreenCanvas!="undefined"&&new OffscreenCanvas(1,1).getContext("2d")&&typeof createImageBitmap=="function"),d}function b(){if(v==null&&(v=!1,x())){let S=new OffscreenCanvas(5,5).getContext("2d",{willReadFrequently:!0});if(S){for(let W=0;W<5*5;W++){let te=4*W;S.fillStyle=`rgb(${te},${te+1},${te+2})`,S.fillRect(W%5,Math.floor(W/5),1,1)}let F=S.getImageData(0,0,5,5).data;for(let W=0;W<5*5*4;W++)if(W%4!=3&&F[W]!==W){v=!0;break}}}return v||!1}function p(R,S,F,W){let te=new h(R,S,F,W);return fe=>te.solve(fe)}let C=p(.25,.1,.25,1);function E(R,S,F){return Math.min(F,Math.max(S,R))}function A(R,S,F){let W=F-S,te=((R-S)%W+W)%W+S;return te===S?F:te}function L(R,...S){for(let F of S)for(let W in F)R[W]=F[W];return R}let _=1;function k(R,S,F){let W={};for(let te in R)W[te]=S.call(this,R[te],te,R);return W}function M(R,S,F){let W={};for(let te in R)S.call(this,R[te],te,R)&&(W[te]=R[te]);return W}function g(R){return Array.isArray(R)?R.map(g):typeof R=="object"&&R?k(R,g):R}let P={};function T(R){P[R]||(typeof console!="undefined"&&console.warn(R),P[R]=!0)}function z(R,S,F){return(F.y-R.y)*(S.x-R.x)>(S.y-R.y)*(F.x-R.x)}function O(R){return typeof WorkerGlobalScope!="undefined"&&R!==void 0&&R instanceof WorkerGlobalScope}let V=null;function G(R){return typeof ImageBitmap!="undefined"&&R instanceof ImageBitmap}let Z="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";function H(R,S,F,W,te){return a(this,void 0,void 0,function*(){if(typeof VideoFrame=="undefined")throw new Error("VideoFrame not supported");let fe=new VideoFrame(R,{timestamp:0});try{let pe=fe==null?void 0:fe.format;if(!pe||!pe.startsWith("BGR")&&!pe.startsWith("RGB"))throw new Error(`Unrecognized format ${pe}`);let ze=pe.startsWith("BGR"),Ke=new Uint8ClampedArray(W*te*4);if(yield fe.copyTo(Ke,function(ut,Lt,Qt,fr,mr){let Lr=4*Math.max(-Lt,0),zr=(Math.max(0,Qt)-Qt)*fr*4+Lr,ui=4*fr,yi=Math.max(0,Lt),dn=Math.max(0,Qt);return{rect:{x:yi,y:dn,width:Math.min(ut.width,Lt+fr)-yi,height:Math.min(ut.height,Qt+mr)-dn},layout:[{offset:zr,stride:ui}]}}(R,S,F,W,te)),ze)for(let ut=0;utO(self)?self.worker&&self.worker.referrer:(window.location.protocol==="blob:"?window.parent:window).location.href,Se=function(R,S){if(/:\/\//.test(R.url)&&!/^https?:|^file:/.test(R.url)){let W=Me(R.url);if(W)return W(R,S);if(O(self)&&self.worker&&self.worker.actor)return self.worker.actor.sendAsync({type:"GR",data:R,targetMapId:ke},S)}if(!(/^file:/.test(F=R.url)||/^file:/.test(ie())&&!/^\w+:/.test(F))){if(fetch&&Request&&AbortController&&Object.prototype.hasOwnProperty.call(Request.prototype,"signal"))return function(W,te){return a(this,void 0,void 0,function*(){let fe=new Request(W.url,{method:W.method||"GET",body:W.body,credentials:W.credentials,headers:W.headers,cache:W.cache,referrer:ie(),signal:te.signal});W.type!=="json"||fe.headers.has("Accept")||fe.headers.set("Accept","application/json");let pe=yield fetch(fe);if(!pe.ok){let ut=yield pe.blob();throw new me(pe.status,pe.statusText,W.url,ut)}let ze;ze=W.type==="arrayBuffer"||W.type==="image"?pe.arrayBuffer():W.type==="json"?pe.json():pe.text();let Ke=yield ze;if(te.signal.aborted)throw oe();return{data:Ke,cacheControl:pe.headers.get("Cache-Control"),expires:pe.headers.get("Expires")}})}(R,S);if(O(self)&&self.worker&&self.worker.actor)return self.worker.actor.sendAsync({type:"GR",data:R,mustQueue:!0,targetMapId:ke},S)}var F;return function(W,te){return new Promise((fe,pe)=>{var ze;let Ke=new XMLHttpRequest;Ke.open(W.method||"GET",W.url,!0),W.type!=="arrayBuffer"&&W.type!=="image"||(Ke.responseType="arraybuffer");for(let ut in W.headers)Ke.setRequestHeader(ut,W.headers[ut]);W.type==="json"&&(Ke.responseType="text",!((ze=W.headers)===null||ze===void 0)&&ze.Accept||Ke.setRequestHeader("Accept","application/json")),Ke.withCredentials=W.credentials==="include",Ke.onerror=()=>{pe(new Error(Ke.statusText))},Ke.onload=()=>{if(!te.signal.aborted)if((Ke.status>=200&&Ke.status<300||Ke.status===0)&&Ke.response!==null){let ut=Ke.response;if(W.type==="json")try{ut=JSON.parse(Ke.response)}catch(Lt){return void pe(Lt)}fe({data:ut,cacheControl:Ke.getResponseHeader("Cache-Control"),expires:Ke.getResponseHeader("Expires")})}else{let ut=new Blob([Ke.response],{type:Ke.getResponseHeader("Content-Type")});pe(new me(Ke.status,Ke.statusText,W.url,ut))}},te.signal.addEventListener("abort",()=>{Ke.abort(),pe(oe())}),Ke.send(W.body)})}(R,S)};function Le(R){if(!R||R.indexOf("://")<=0||R.indexOf("data:image/")===0||R.indexOf("blob:")===0)return!0;let S=new URL(R),F=window.location;return S.protocol===F.protocol&&S.host===F.host}function Ae(R,S,F){F[R]&&F[R].indexOf(S)!==-1||(F[R]=F[R]||[],F[R].push(S))}function De(R,S,F){if(F&&F[R]){let W=F[R].indexOf(S);W!==-1&&F[R].splice(W,1)}}class Pe{constructor(S,F={}){L(this,F),this.type=S}}class ge extends Pe{constructor(S,F={}){super("error",L({error:S},F))}}class Fe{on(S,F){return this._listeners=this._listeners||{},Ae(S,F,this._listeners),this}off(S,F){return De(S,F,this._listeners),De(S,F,this._oneTimeListeners),this}once(S,F){return F?(this._oneTimeListeners=this._oneTimeListeners||{},Ae(S,F,this._oneTimeListeners),this):new Promise(W=>this.once(S,W))}fire(S,F){typeof S=="string"&&(S=new Pe(S,F||{}));let W=S.type;if(this.listens(W)){S.target=this;let te=this._listeners&&this._listeners[W]?this._listeners[W].slice():[];for(let ze of te)ze.call(this,S);let fe=this._oneTimeListeners&&this._oneTimeListeners[W]?this._oneTimeListeners[W].slice():[];for(let ze of fe)De(W,ze,this._oneTimeListeners),ze.call(this,S);let pe=this._eventedParent;pe&&(L(S,typeof this._eventedParentData=="function"?this._eventedParentData():this._eventedParentData),pe.fire(S))}else S instanceof ge&&console.error(S.error);return this}listens(S){return this._listeners&&this._listeners[S]&&this._listeners[S].length>0||this._oneTimeListeners&&this._oneTimeListeners[S]&&this._oneTimeListeners[S].length>0||this._eventedParent&&this._eventedParent.listens(S)}setEventedParent(S,F){return this._eventedParent=S,this._eventedParentData=F,this}}var ce={$version:8,$root:{version:{required:!0,type:"enum",values:[8]},name:{type:"string"},metadata:{type:"*"},center:{type:"array",value:"number"},zoom:{type:"number"},bearing:{type:"number",default:0,period:360,units:"degrees"},pitch:{type:"number",default:0,units:"degrees"},light:{type:"light"},sky:{type:"sky"},projection:{type:"projection"},terrain:{type:"terrain"},sources:{required:!0,type:"sources"},sprite:{type:"sprite"},glyphs:{type:"string"},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},"*":{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:"*"},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:{required:!0,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:{},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_background"],layout_background:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"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","property-type":"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","property-type":"constant"}},layout_heatmap:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_line:{"line-cap":{type:"enum",values:{butt:{},round:{},square:{}},default:"butt",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-join":{type:"enum",values:{bevel:{},round:{},miter:{}},default:"miter",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{type:"number",default:2,requires:[{"line-join":"miter"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-round-limit":{type:"number",default:1.05,requires:[{"line-join":"round"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},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"]},"property-type":"data-constant"},"icon-size":{type:"number",default:1,minimum:0,units:"factor of the original icon size",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{type:"enum",values:{none:{},width:{},height:{},both:{}},default:"none",requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-text-fit-padding":{type:"array",value:"number",length:4,default:[0,0,0,0],units:"pixels",requires:["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-image":{type:"resolvedImage",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{type:"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"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_raster:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_hillshade:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},filter:{type:"array",value:"*"},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:"*",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:"enum",default:"mercator",values:{mercator:{},globe:{}}}},paint:["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","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-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{type:"color",transition:!0,requires:[{"!":"fill-pattern"},{"fill-antialias":!0}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"}},"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-extrusion-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",transition:!0,requires:["fill-extrusion-height"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_line:{"line-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"line-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["line-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-width":{type:"number",default:1,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{type:"number",default:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{type:"array",value:"number",minimum:0,transition:!0,units:"line widths",requires:[{"!":"line-pattern"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"line-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-gradient":{type:"color",transition:!1,requires:[{"!":"line-dasharray"},{"!":"line-pattern"},{source:"geojson",has:{lineMetrics:!0}}],expression:{interpolated:!0,parameters:["line-progress"]},"property-type":"color-ramp"}},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"},"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:"number",default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{type:"number",default:.5,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"color",default:"#FFFFFF",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},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"}}};let Ze=["type","source","source-layer","minzoom","maxzoom","filter","layout"];function ct(R,S){let F={};for(let W in R)W!=="ref"&&(F[W]=R[W]);return Ze.forEach(W=>{W in S&&(F[W]=S[W])}),F}function pt(R,S){if(Array.isArray(R)){if(!Array.isArray(S)||R.length!==S.length)return!1;for(let F=0;F`:R.itemType.kind==="value"?"array":`array<${S}>`}return R.kind}let je=[Ut,Ft,bt,yt,Yt,ei,lr,Ge(Tr),Wr,Ur,dt];function $e(R,S){if(S.kind==="error")return null;if(R.kind==="array"){if(S.kind==="array"&&(S.N===0&&S.itemType.kind==="value"||!$e(R.itemType,S.itemType))&&(typeof R.N!="number"||R.N===S.N))return null}else{if(R.kind===S.kind)return null;if(R.kind==="value"){for(let F of je)if(!$e(F,S))return null}}return`Expected ${Je(R)} but found ${Je(S)} instead.`}function wt(R,S){return S.some(F=>F.kind===R.kind)}function Ie(R,S){return S.some(F=>F==="null"?R===null:F==="array"?Array.isArray(R):F==="object"?R&&!Array.isArray(R)&&typeof R=="object":F===typeof R)}function xe(R,S){return R.kind==="array"&&S.kind==="array"?R.itemType.kind===S.itemType.kind&&typeof R.N=="number":R.kind===S.kind}let Ce=.96422,vt=.82521,nr=4/29,ir=6/29,pr=3*ir*ir,oi=ir*ir*ir,di=Math.PI/180,Jr=180/Math.PI;function fi(R){return(R%=360)<0&&(R+=360),R}function Hi([R,S,F,W]){let te,fe,pe=wn((.2225045*(R=Pn(R))+.7168786*(S=Pn(S))+.0606169*(F=Pn(F)))/1);R===S&&S===F?te=fe=pe:(te=wn((.4360747*R+.3850649*S+.1430804*F)/Ce),fe=wn((.0139322*R+.0971045*S+.7141733*F)/vt));let ze=116*pe-16;return[ze<0?0:ze,500*(te-pe),200*(pe-fe),W]}function Pn(R){return R<=.04045?R/12.92:Math.pow((R+.055)/1.055,2.4)}function wn(R){return R>oi?Math.pow(R,1/3):R/pr+nr}function pn([R,S,F,W]){let te=(R+16)/116,fe=isNaN(S)?te:te+S/500,pe=isNaN(F)?te:te-F/200;return te=1*kn(te),fe=Ce*kn(fe),pe=vt*kn(pe),[Vn(3.1338561*fe-1.6168667*te-.4906146*pe),Vn(-.9787684*fe+1.9161415*te+.033454*pe),Vn(.0719453*fe-.2289914*te+1.4052427*pe),W]}function Vn(R){return(R=R<=.00304?12.92*R:1.055*Math.pow(R,1/2.4)-.055)<0?0:R>1?1:R}function kn(R){return R>ir?R*R*R:pr*(R-nr)}function ea(R){return parseInt(R.padEnd(2,R),16)/255}function ua(R,S){return Vt(S?R/100:R,0,1)}function Vt(R,S,F){return Math.min(Math.max(S,R),F)}function _t(R){return!R.some(Number.isNaN)}let tr={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]};class ar{constructor(S,F,W,te=1,fe=!0){this.r=S,this.g=F,this.b=W,this.a=te,fe||(this.r*=te,this.g*=te,this.b*=te,te||this.overwriteGetter("rgb",[S,F,W,te]))}static parse(S){if(S instanceof ar)return S;if(typeof S!="string")return;let F=function(W){if((W=W.toLowerCase().trim())==="transparent")return[0,0,0,0];let te=tr[W];if(te){let[pe,ze,Ke]=te;return[pe/255,ze/255,Ke/255,1]}if(W.startsWith("#")&&/^#(?:[0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/.test(W)){let pe=W.length<6?1:2,ze=1;return[ea(W.slice(ze,ze+=pe)),ea(W.slice(ze,ze+=pe)),ea(W.slice(ze,ze+=pe)),ea(W.slice(ze,ze+pe)||"ff")]}if(W.startsWith("rgb")){let pe=W.match(/^rgba?\(\s*([\de.+-]+)(%)?(?:\s+|\s*(,)\s*)([\de.+-]+)(%)?(?:\s+|\s*(,)\s*)([\de.+-]+)(%)?(?:\s*([,\/])\s*([\de.+-]+)(%)?)?\s*\)$/);if(pe){let[ze,Ke,ut,Lt,Qt,fr,mr,Lr,zr,ui,yi,dn]=pe,Fi=[Lt||" ",mr||" ",ui].join("");if(Fi===" "||Fi===" /"||Fi===",,"||Fi===",,,"){let ln=[ut,fr,zr].join(""),An=ln==="%%%"?100:ln===""?255:0;if(An){let pa=[Vt(+Ke/An,0,1),Vt(+Qt/An,0,1),Vt(+Lr/An,0,1),yi?ua(+yi,dn):1];if(_t(pa))return pa}}return}}let fe=W.match(/^hsla?\(\s*([\de.+-]+)(?:deg)?(?:\s+|\s*(,)\s*)([\de.+-]+)%(?:\s+|\s*(,)\s*)([\de.+-]+)%(?:\s*([,\/])\s*([\de.+-]+)(%)?)?\s*\)$/);if(fe){let[pe,ze,Ke,ut,Lt,Qt,fr,mr,Lr]=fe,zr=[Ke||" ",Lt||" ",fr].join("");if(zr===" "||zr===" /"||zr===",,"||zr===",,,"){let ui=[+ze,Vt(+ut,0,100),Vt(+Qt,0,100),mr?ua(+mr,Lr):1];if(_t(ui))return function([yi,dn,Fi,ln]){function An(pa){let ro=(pa+yi/30)%12,Vo=dn*Math.min(Fi,1-Fi);return Fi-Vo*Math.max(-1,Math.min(ro-3,9-ro,1))}return yi=fi(yi),dn/=100,Fi/=100,[An(0),An(8),An(4),ln]}(ui)}}}(S);return F?new ar(...F,!1):void 0}get rgb(){let{r:S,g:F,b:W,a:te}=this,fe=te||1/0;return this.overwriteGetter("rgb",[S/fe,F/fe,W/fe,te])}get hcl(){return this.overwriteGetter("hcl",function(S){let[F,W,te,fe]=Hi(S),pe=Math.sqrt(W*W+te*te);return[Math.round(1e4*pe)?fi(Math.atan2(te,W)*Jr):NaN,pe,F,fe]}(this.rgb))}get lab(){return this.overwriteGetter("lab",Hi(this.rgb))}overwriteGetter(S,F){return Object.defineProperty(this,S,{value:F}),F}toString(){let[S,F,W,te]=this.rgb;return`rgba(${[S,F,W].map(fe=>Math.round(255*fe)).join(",")},${te})`}}ar.black=new ar(0,0,0,1),ar.white=new ar(1,1,1,1),ar.transparent=new ar(0,0,0,0),ar.red=new ar(1,0,0,1);class Er{constructor(S,F,W){this.sensitivity=S?F?"variant":"case":F?"accent":"base",this.locale=W,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})}compare(S,F){return this.collator.compare(S,F)}resolvedLocale(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale}}class Zr{constructor(S,F,W,te,fe){this.text=S,this.image=F,this.scale=W,this.fontStack=te,this.textColor=fe}}class ri{constructor(S){this.sections=S}static fromString(S){return new ri([new Zr(S,null,null,null,null)])}isEmpty(){return this.sections.length===0||!this.sections.some(S=>S.text.length!==0||S.image&&S.image.name.length!==0)}static factory(S){return S instanceof ri?S:ri.fromString(S)}toString(){return this.sections.length===0?"":this.sections.map(S=>S.text).join("")}}class $r{constructor(S){this.values=S.slice()}static parse(S){if(S instanceof $r)return S;if(typeof S=="number")return new $r([S,S,S,S]);if(Array.isArray(S)&&!(S.length<1||S.length>4)){for(let F of S)if(typeof F!="number")return;switch(S.length){case 1:S=[S[0],S[0],S[0],S[0]];break;case 2:S=[S[0],S[1],S[0],S[1]];break;case 3:S=[S[0],S[1],S[2],S[1]]}return new $r(S)}}toString(){return JSON.stringify(this.values)}}let zi=new Set(["center","left","right","top","bottom","top-left","top-right","bottom-left","bottom-right"]);class Ji{constructor(S){this.values=S.slice()}static parse(S){if(S instanceof Ji)return S;if(Array.isArray(S)&&!(S.length<1)&&S.length%2==0){for(let F=0;F=0&&R<=255&&typeof S=="number"&&S>=0&&S<=255&&typeof F=="number"&&F>=0&&F<=255?W===void 0||typeof W=="number"&&W>=0&&W<=1?null:`Invalid rgba value [${[R,S,F,W].join(", ")}]: 'a' must be between 0 and 1.`:`Invalid rgba value [${(typeof W=="number"?[R,S,F,W]:[R,S,F]).join(", ")}]: 'r', 'g', and 'b' must be between 0 and 255.`}function yn(R){if(R===null||typeof R=="string"||typeof R=="boolean"||typeof R=="number"||R instanceof ar||R instanceof Er||R instanceof ri||R instanceof $r||R instanceof Ji||R instanceof en)return!0;if(Array.isArray(R)){for(let S of R)if(!yn(S))return!1;return!0}if(typeof R=="object"){for(let S in R)if(!yn(R[S]))return!1;return!0}return!1}function Mn(R){if(R===null)return Ut;if(typeof R=="string")return bt;if(typeof R=="boolean")return yt;if(typeof R=="number")return Ft;if(R instanceof ar)return Yt;if(R instanceof Er)return Rr;if(R instanceof ri)return ei;if(R instanceof $r)return Wr;if(R instanceof Ji)return dt;if(R instanceof en)return Ur;if(Array.isArray(R)){let S=R.length,F;for(let W of R){let te=Mn(W);if(F){if(F===te)continue;F=Tr;break}F=te}return Ge(F||Tr,S)}return lr}function Ba(R){let S=typeof R;return R===null?"":S==="string"||S==="number"||S==="boolean"?String(R):R instanceof ar||R instanceof ri||R instanceof $r||R instanceof Ji||R instanceof en?R.toString():JSON.stringify(R)}class la{constructor(S,F){this.type=S,this.value=F}static parse(S,F){if(S.length!==2)return F.error(`'literal' expression requires exactly one argument, but found ${S.length-1} instead.`);if(!yn(S[1]))return F.error("invalid value");let W=S[1],te=Mn(W),fe=F.expectedType;return te.kind!=="array"||te.N!==0||!fe||fe.kind!=="array"||typeof fe.N=="number"&&fe.N!==0||(te=fe),new la(te,W)}evaluate(){return this.value}eachChild(){}outputDefined(){return!0}}class ma{constructor(S){this.name="ExpressionEvaluationError",this.message=S}toJSON(){return this.message}}let Wa={string:bt,number:Ft,boolean:yt,object:lr};class Fa{constructor(S,F){this.type=S,this.args=F}static parse(S,F){if(S.length<2)return F.error("Expected at least one argument.");let W,te=1,fe=S[0];if(fe==="array"){let ze,Ke;if(S.length>2){let ut=S[1];if(typeof ut!="string"||!(ut in Wa)||ut==="object")return F.error('The item type argument of "array" must be one of string, number, boolean',1);ze=Wa[ut],te++}else ze=Tr;if(S.length>3){if(S[2]!==null&&(typeof S[2]!="number"||S[2]<0||S[2]!==Math.floor(S[2])))return F.error('The length argument to "array" must be a positive integer literal',2);Ke=S[2],te++}W=Ge(ze,Ke)}else{if(!Wa[fe])throw new Error(`Types doesn't contain name = ${fe}`);W=Wa[fe]}let pe=[];for(;teS.outputDefined())}}let Wo={"to-boolean":yt,"to-color":Yt,"to-number":Ft,"to-string":bt};class da{constructor(S,F){this.type=S,this.args=F}static parse(S,F){if(S.length<2)return F.error("Expected at least one argument.");let W=S[0];if(!Wo[W])throw new Error(`Can't parse ${W} as it is not part of the known types`);if((W==="to-boolean"||W==="to-string")&&S.length!==2)return F.error("Expected one argument.");let te=Wo[W],fe=[];for(let pe=1;pe4?`Invalid rbga value ${JSON.stringify(F)}: expected an array containing either three or four numeric values.`:cn(F[0],F[1],F[2],F[3]),!W))return new ar(F[0]/255,F[1]/255,F[2]/255,F[3])}throw new ma(W||`Could not parse color from value '${typeof F=="string"?F:JSON.stringify(F)}'`)}case"padding":{let F;for(let W of this.args){F=W.evaluate(S);let te=$r.parse(F);if(te)return te}throw new ma(`Could not parse padding from value '${typeof F=="string"?F:JSON.stringify(F)}'`)}case"variableAnchorOffsetCollection":{let F;for(let W of this.args){F=W.evaluate(S);let te=Ji.parse(F);if(te)return te}throw new ma(`Could not parse variableAnchorOffsetCollection from value '${typeof F=="string"?F:JSON.stringify(F)}'`)}case"number":{let F=null;for(let W of this.args){if(F=W.evaluate(S),F===null)return 0;let te=Number(F);if(!isNaN(te))return te}throw new ma(`Could not convert ${JSON.stringify(F)} to number.`)}case"formatted":return ri.fromString(Ba(this.args[0].evaluate(S)));case"resolvedImage":return en.fromString(Ba(this.args[0].evaluate(S)));default:return Ba(this.args[0].evaluate(S))}}eachChild(S){this.args.forEach(S)}outputDefined(){return this.args.every(S=>S.outputDefined())}}let Wn=["Unknown","Point","LineString","Polygon"];class Ga{constructor(){this.globals=null,this.feature=null,this.featureState=null,this.formattedSection=null,this._parseColorCache={},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"?Wn[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(S){let F=this._parseColorCache[S];return F||(F=this._parseColorCache[S]=ar.parse(S)),F}}class vo{constructor(S,F,W=[],te,fe=new er,pe=[]){this.registry=S,this.path=W,this.key=W.map(ze=>`[${ze}]`).join(""),this.scope=fe,this.errors=pe,this.expectedType=te,this._isConstant=F}parse(S,F,W,te,fe={}){return F?this.concat(F,W,te)._parse(S,fe):this._parse(S,fe)}_parse(S,F){function W(te,fe,pe){return pe==="assert"?new Fa(fe,[te]):pe==="coerce"?new da(fe,[te]):te}if(S!==null&&typeof S!="string"&&typeof S!="boolean"&&typeof S!="number"||(S=["literal",S]),Array.isArray(S)){if(S.length===0)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');let te=S[0];if(typeof te!="string")return this.error(`Expression name must be a string, but found ${typeof te} instead. If you wanted a literal array, use ["literal", [...]].`,0),null;let fe=this.registry[te];if(fe){let pe=fe.parse(S,this);if(!pe)return null;if(this.expectedType){let ze=this.expectedType,Ke=pe.type;if(ze.kind!=="string"&&ze.kind!=="number"&&ze.kind!=="boolean"&&ze.kind!=="object"&&ze.kind!=="array"||Ke.kind!=="value")if(ze.kind!=="color"&&ze.kind!=="formatted"&&ze.kind!=="resolvedImage"||Ke.kind!=="value"&&Ke.kind!=="string")if(ze.kind!=="padding"||Ke.kind!=="value"&&Ke.kind!=="number"&&Ke.kind!=="array")if(ze.kind!=="variableAnchorOffsetCollection"||Ke.kind!=="value"&&Ke.kind!=="array"){if(this.checkSubtype(ze,Ke))return null}else pe=W(pe,ze,F.typeAnnotation||"coerce");else pe=W(pe,ze,F.typeAnnotation||"coerce");else pe=W(pe,ze,F.typeAnnotation||"coerce");else pe=W(pe,ze,F.typeAnnotation||"assert")}if(!(pe instanceof la)&&pe.type.kind!=="resolvedImage"&&this._isConstant(pe)){let ze=new Ga;try{pe=new la(pe.type,pe.evaluate(ze))}catch(Ke){return this.error(Ke.message),null}}return pe}return this.error(`Unknown expression "${te}". If you wanted a literal array, use ["literal", [...]].`,0)}return this.error(S===void 0?"'undefined' value invalid. Use null instead.":typeof S=="object"?'Bare objects invalid. Use ["literal", {...}] instead.':`Expected an array, but found ${typeof S} instead.`)}concat(S,F,W){let te=typeof S=="number"?this.path.concat(S):this.path,fe=W?this.scope.concat(W):this.scope;return new vo(this.registry,this._isConstant,te,F||null,fe,this.errors)}error(S,...F){let W=`${this.key}${F.map(te=>`[${te}]`).join("")}`;this.errors.push(new Et(W,S))}checkSubtype(S,F){let W=$e(S,F);return W&&this.error(W),W}}class jn{constructor(S,F){this.type=F.type,this.bindings=[].concat(S),this.result=F}evaluate(S){return this.result.evaluate(S)}eachChild(S){for(let F of this.bindings)S(F[1]);S(this.result)}static parse(S,F){if(S.length<4)return F.error(`Expected at least 3 arguments, but found ${S.length-1} instead.`);let W=[];for(let fe=1;fe=W.length)throw new ma(`Array index out of bounds: ${F} > ${W.length-1}.`);if(F!==Math.floor(F))throw new ma(`Array index must be an integer, but found ${F} instead.`);return W[F]}eachChild(S){S(this.index),S(this.input)}outputDefined(){return!1}}class Qr{constructor(S,F){this.type=yt,this.needle=S,this.haystack=F}static parse(S,F){if(S.length!==3)return F.error(`Expected 2 arguments, but found ${S.length-1} instead.`);let W=F.parse(S[1],1,Tr),te=F.parse(S[2],2,Tr);return W&&te?wt(W.type,[yt,bt,Ft,Ut,Tr])?new Qr(W,te):F.error(`Expected first argument to be of type boolean, string, number or null, but found ${Je(W.type)} instead`):null}evaluate(S){let F=this.needle.evaluate(S),W=this.haystack.evaluate(S);if(!W)return!1;if(!Ie(F,["boolean","string","number","null"]))throw new ma(`Expected first argument to be of type boolean, string, number or null, but found ${Je(Mn(F))} instead.`);if(!Ie(W,["string","array"]))throw new ma(`Expected second argument to be of type array or string, but found ${Je(Mn(W))} instead.`);return W.indexOf(F)>=0}eachChild(S){S(this.needle),S(this.haystack)}outputDefined(){return!0}}class pi{constructor(S,F,W){this.type=Ft,this.needle=S,this.haystack=F,this.fromIndex=W}static parse(S,F){if(S.length<=2||S.length>=5)return F.error(`Expected 3 or 4 arguments, but found ${S.length-1} instead.`);let W=F.parse(S[1],1,Tr),te=F.parse(S[2],2,Tr);if(!W||!te)return null;if(!wt(W.type,[yt,bt,Ft,Ut,Tr]))return F.error(`Expected first argument to be of type boolean, string, number or null, but found ${Je(W.type)} instead`);if(S.length===4){let fe=F.parse(S[3],3,Ft);return fe?new pi(W,te,fe):null}return new pi(W,te)}evaluate(S){let F=this.needle.evaluate(S),W=this.haystack.evaluate(S);if(!Ie(F,["boolean","string","number","null"]))throw new ma(`Expected first argument to be of type boolean, string, number or null, but found ${Je(Mn(F))} instead.`);let te;if(this.fromIndex&&(te=this.fromIndex.evaluate(S)),Ie(W,["string"])){let fe=W.indexOf(F,te);return fe===-1?-1:[...W.slice(0,fe)].length}if(Ie(W,["array"]))return W.indexOf(F,te);throw new ma(`Expected second argument to be of type array or string, but found ${Je(Mn(W))} instead.`)}eachChild(S){S(this.needle),S(this.haystack),this.fromIndex&&S(this.fromIndex)}outputDefined(){return!1}}class fn{constructor(S,F,W,te,fe,pe){this.inputType=S,this.type=F,this.input=W,this.cases=te,this.outputs=fe,this.otherwise=pe}static parse(S,F){if(S.length<5)return F.error(`Expected at least 4 arguments, but found only ${S.length-1}.`);if(S.length%2!=1)return F.error("Expected an even number of arguments.");let W,te;F.expectedType&&F.expectedType.kind!=="value"&&(te=F.expectedType);let fe={},pe=[];for(let ut=2;utNumber.MAX_SAFE_INTEGER)return fr.error(`Branch labels must be integers no larger than ${Number.MAX_SAFE_INTEGER}.`);if(typeof Lr=="number"&&Math.floor(Lr)!==Lr)return fr.error("Numeric branch labels must be integer values.");if(W){if(fr.checkSubtype(W,Mn(Lr)))return null}else W=Mn(Lr);if(fe[String(Lr)]!==void 0)return fr.error("Branch labels must be unique.");fe[String(Lr)]=pe.length}let mr=F.parse(Qt,ut,te);if(!mr)return null;te=te||mr.type,pe.push(mr)}let ze=F.parse(S[1],1,Tr);if(!ze)return null;let Ke=F.parse(S[S.length-1],S.length-1,te);return Ke?ze.type.kind!=="value"&&F.concat(1).checkSubtype(W,ze.type)?null:new fn(W,te,ze,fe,pe,Ke):null}evaluate(S){let F=this.input.evaluate(S);return(Mn(F)===this.inputType&&this.outputs[this.cases[F]]||this.otherwise).evaluate(S)}eachChild(S){S(this.input),this.outputs.forEach(S),S(this.otherwise)}outputDefined(){return this.outputs.every(S=>S.outputDefined())&&this.otherwise.outputDefined()}}class Sn{constructor(S,F,W){this.type=S,this.branches=F,this.otherwise=W}static parse(S,F){if(S.length<4)return F.error(`Expected at least 3 arguments, but found only ${S.length-1}.`);if(S.length%2!=0)return F.error("Expected an odd number of arguments.");let W;F.expectedType&&F.expectedType.kind!=="value"&&(W=F.expectedType);let te=[];for(let pe=1;peF.outputDefined())&&this.otherwise.outputDefined()}}class En{constructor(S,F,W,te){this.type=S,this.input=F,this.beginIndex=W,this.endIndex=te}static parse(S,F){if(S.length<=2||S.length>=5)return F.error(`Expected 3 or 4 arguments, but found ${S.length-1} instead.`);let W=F.parse(S[1],1,Tr),te=F.parse(S[2],2,Ft);if(!W||!te)return null;if(!wt(W.type,[Ge(Tr),bt,Tr]))return F.error(`Expected first argument to be of type array or string, but found ${Je(W.type)} instead`);if(S.length===4){let fe=F.parse(S[3],3,Ft);return fe?new En(W.type,W,te,fe):null}return new En(W.type,W,te)}evaluate(S){let F=this.input.evaluate(S),W=this.beginIndex.evaluate(S),te;if(this.endIndex&&(te=this.endIndex.evaluate(S)),Ie(F,["string"]))return[...F].slice(W,te).join("");if(Ie(F,["array"]))return F.slice(W,te);throw new ma(`Expected first argument to be of type array or string, but found ${Je(Mn(F))} instead.`)}eachChild(S){S(this.input),S(this.beginIndex),this.endIndex&&S(this.endIndex)}outputDefined(){return!1}}function ki(R,S){let F=R.length-1,W,te,fe=0,pe=F,ze=0;for(;fe<=pe;)if(ze=Math.floor((fe+pe)/2),W=R[ze],te=R[ze+1],W<=S){if(ze===F||SS))throw new ma("Input is not a number.");pe=ze-1}return 0}class _n{constructor(S,F,W){this.type=S,this.input=F,this.labels=[],this.outputs=[];for(let[te,fe]of W)this.labels.push(te),this.outputs.push(fe)}static parse(S,F){if(S.length-1<4)return F.error(`Expected at least 4 arguments, but found only ${S.length-1}.`);if((S.length-1)%2!=0)return F.error("Expected an even number of arguments.");let W=F.parse(S[1],1,Ft);if(!W)return null;let te=[],fe=null;F.expectedType&&F.expectedType.kind!=="value"&&(fe=F.expectedType);for(let pe=1;pe=ze)return F.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',ut);let Qt=F.parse(Ke,Lt,fe);if(!Qt)return null;fe=fe||Qt.type,te.push([ze,Qt])}return new _n(fe,W,te)}evaluate(S){let F=this.labels,W=this.outputs;if(F.length===1)return W[0].evaluate(S);let te=this.input.evaluate(S);if(te<=F[0])return W[0].evaluate(S);let fe=F.length;return te>=F[fe-1]?W[fe-1].evaluate(S):W[ki(F,te)].evaluate(S)}eachChild(S){S(this.input);for(let F of this.outputs)S(F)}outputDefined(){return this.outputs.every(S=>S.outputDefined())}}function ya(R){return R&&R.__esModule&&Object.prototype.hasOwnProperty.call(R,"default")?R.default:R}var Jn=Ma;function Ma(R,S,F,W){this.cx=3*R,this.bx=3*(F-R)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*S,this.by=3*(W-S)-this.cy,this.ay=1-this.cy-this.by,this.p1x=R,this.p1y=S,this.p2x=F,this.p2y=W}Ma.prototype={sampleCurveX:function(R){return((this.ax*R+this.bx)*R+this.cx)*R},sampleCurveY:function(R){return((this.ay*R+this.by)*R+this.cy)*R},sampleCurveDerivativeX:function(R){return(3*this.ax*R+2*this.bx)*R+this.cx},solveCurveX:function(R,S){if(S===void 0&&(S=1e-6),R<0)return 0;if(R>1)return 1;for(var F=R,W=0;W<8;W++){var te=this.sampleCurveX(F)-R;if(Math.abs(te)te?pe=F:ze=F,F=.5*(ze-pe)+pe;return F},solve:function(R,S){return this.sampleCurveY(this.solveCurveX(R,S))}};var _o=ya(Jn);function No(R,S,F){return R+F*(S-R)}function po(R,S,F){return R.map((W,te)=>No(W,S[te],F))}let Lo={number:No,color:function(R,S,F,W="rgb"){switch(W){case"rgb":{let[te,fe,pe,ze]=po(R.rgb,S.rgb,F);return new ar(te,fe,pe,ze,!1)}case"hcl":{let[te,fe,pe,ze]=R.hcl,[Ke,ut,Lt,Qt]=S.hcl,fr,mr;if(isNaN(te)||isNaN(Ke))isNaN(te)?isNaN(Ke)?fr=NaN:(fr=Ke,pe!==1&&pe!==0||(mr=ut)):(fr=te,Lt!==1&&Lt!==0||(mr=fe));else{let dn=Ke-te;Ke>te&&dn>180?dn-=360:Ke180&&(dn+=360),fr=te+F*dn}let[Lr,zr,ui,yi]=function([dn,Fi,ln,An]){return dn=isNaN(dn)?0:dn*di,pn([ln,Math.cos(dn)*Fi,Math.sin(dn)*Fi,An])}([fr,mr!=null?mr:No(fe,ut,F),No(pe,Lt,F),No(ze,Qt,F)]);return new ar(Lr,zr,ui,yi,!1)}case"lab":{let[te,fe,pe,ze]=pn(po(R.lab,S.lab,F));return new ar(te,fe,pe,ze,!1)}}},array:po,padding:function(R,S,F){return new $r(po(R.values,S.values,F))},variableAnchorOffsetCollection:function(R,S,F){let W=R.values,te=S.values;if(W.length!==te.length)throw new ma(`Cannot interpolate values of different length. from: ${R.toString()}, to: ${S.toString()}`);let fe=[];for(let pe=0;petypeof Lt!="number"||Lt<0||Lt>1))return F.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);te={name:"cubic-bezier",controlPoints:ut}}}if(S.length-1<4)return F.error(`Expected at least 4 arguments, but found only ${S.length-1}.`);if((S.length-1)%2!=0)return F.error("Expected an even number of arguments.");if(fe=F.parse(fe,2,Ft),!fe)return null;let ze=[],Ke=null;W==="interpolate-hcl"||W==="interpolate-lab"?Ke=Yt:F.expectedType&&F.expectedType.kind!=="value"&&(Ke=F.expectedType);for(let ut=0;ut=Lt)return F.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',fr);let Lr=F.parse(Qt,mr,Ke);if(!Lr)return null;Ke=Ke||Lr.type,ze.push([Lt,Lr])}return xe(Ke,Ft)||xe(Ke,Yt)||xe(Ke,Wr)||xe(Ke,dt)||xe(Ke,Ge(Ft))?new Co(Ke,W,te,fe,ze):F.error(`Type ${Je(Ke)} is not interpolatable.`)}evaluate(S){let F=this.labels,W=this.outputs;if(F.length===1)return W[0].evaluate(S);let te=this.input.evaluate(S);if(te<=F[0])return W[0].evaluate(S);let fe=F.length;if(te>=F[fe-1])return W[fe-1].evaluate(S);let pe=ki(F,te),ze=Co.interpolationFactor(this.interpolation,te,F[pe],F[pe+1]),Ke=W[pe].evaluate(S),ut=W[pe+1].evaluate(S);switch(this.operator){case"interpolate":return Lo[this.type.kind](Ke,ut,ze);case"interpolate-hcl":return Lo.color(Ke,ut,ze,"hcl");case"interpolate-lab":return Lo.color(Ke,ut,ze,"lab")}}eachChild(S){S(this.input);for(let F of this.outputs)S(F)}outputDefined(){return this.outputs.every(S=>S.outputDefined())}}function Fs(R,S,F,W){let te=W-F,fe=R-F;return te===0?0:S===1?fe/te:(Math.pow(S,fe)-1)/(Math.pow(S,te)-1)}class zs{constructor(S,F){this.type=S,this.args=F}static parse(S,F){if(S.length<2)return F.error("Expectected at least one argument.");let W=null,te=F.expectedType;te&&te.kind!=="value"&&(W=te);let fe=[];for(let ze of S.slice(1)){let Ke=F.parse(ze,1+fe.length,W,void 0,{typeAnnotation:"omit"});if(!Ke)return null;W=W||Ke.type,fe.push(Ke)}if(!W)throw new Error("No output type");let pe=te&&fe.some(ze=>$e(te,ze.type));return new zs(pe?Tr:W,fe)}evaluate(S){let F,W=null,te=0;for(let fe of this.args)if(te++,W=fe.evaluate(S),W&&W instanceof en&&!W.available&&(F||(F=W.name),W=null,te===this.args.length&&(W=F)),W!==null)break;return W}eachChild(S){this.args.forEach(S)}outputDefined(){return this.args.every(S=>S.outputDefined())}}function ul(R,S){return R==="=="||R==="!="?S.kind==="boolean"||S.kind==="string"||S.kind==="number"||S.kind==="null"||S.kind==="value":S.kind==="string"||S.kind==="number"||S.kind==="value"}function cl(R,S,F,W){return W.compare(S,F)===0}function Fl(R,S,F){let W=R!=="=="&&R!=="!=";return class UHe{constructor(fe,pe,ze){this.type=yt,this.lhs=fe,this.rhs=pe,this.collator=ze,this.hasUntypedArgument=fe.type.kind==="value"||pe.type.kind==="value"}static parse(fe,pe){if(fe.length!==3&&fe.length!==4)return pe.error("Expected two or three arguments.");let ze=fe[0],Ke=pe.parse(fe[1],1,Tr);if(!Ke)return null;if(!ul(ze,Ke.type))return pe.concat(1).error(`"${ze}" comparisons are not supported for type '${Je(Ke.type)}'.`);let ut=pe.parse(fe[2],2,Tr);if(!ut)return null;if(!ul(ze,ut.type))return pe.concat(2).error(`"${ze}" comparisons are not supported for type '${Je(ut.type)}'.`);if(Ke.type.kind!==ut.type.kind&&Ke.type.kind!=="value"&&ut.type.kind!=="value")return pe.error(`Cannot compare types '${Je(Ke.type)}' and '${Je(ut.type)}'.`);W&&(Ke.type.kind==="value"&&ut.type.kind!=="value"?Ke=new Fa(ut.type,[Ke]):Ke.type.kind!=="value"&&ut.type.kind==="value"&&(ut=new Fa(Ke.type,[ut])));let Lt=null;if(fe.length===4){if(Ke.type.kind!=="string"&&ut.type.kind!=="string"&&Ke.type.kind!=="value"&&ut.type.kind!=="value")return pe.error("Cannot use collator to compare non-string types.");if(Lt=pe.parse(fe[3],3,Rr),!Lt)return null}return new UHe(Ke,ut,Lt)}evaluate(fe){let pe=this.lhs.evaluate(fe),ze=this.rhs.evaluate(fe);if(W&&this.hasUntypedArgument){let Ke=Mn(pe),ut=Mn(ze);if(Ke.kind!==ut.kind||Ke.kind!=="string"&&Ke.kind!=="number")throw new ma(`Expected arguments for "${R}" to be (string, string) or (number, number), but found (${Ke.kind}, ${ut.kind}) instead.`)}if(this.collator&&!W&&this.hasUntypedArgument){let Ke=Mn(pe),ut=Mn(ze);if(Ke.kind!=="string"||ut.kind!=="string")return S(fe,pe,ze)}return this.collator?F(fe,pe,ze,this.collator.evaluate(fe)):S(fe,pe,ze)}eachChild(fe){fe(this.lhs),fe(this.rhs),this.collator&&fe(this.collator)}outputDefined(){return!0}}}let cs=Fl("==",function(R,S,F){return S===F},cl),nl=Fl("!=",function(R,S,F){return S!==F},function(R,S,F,W){return!cl(0,S,F,W)}),Ss=Fl("<",function(R,S,F){return S",function(R,S,F){return S>F},function(R,S,F,W){return W.compare(S,F)>0}),Js=Fl("<=",function(R,S,F){return S<=F},function(R,S,F,W){return W.compare(S,F)<=0}),Os=Fl(">=",function(R,S,F){return S>=F},function(R,S,F,W){return W.compare(S,F)>=0});class Io{constructor(S,F,W){this.type=Rr,this.locale=W,this.caseSensitive=S,this.diacriticSensitive=F}static parse(S,F){if(S.length!==2)return F.error("Expected one argument.");let W=S[1];if(typeof W!="object"||Array.isArray(W))return F.error("Collator options argument must be an object.");let te=F.parse(W["case-sensitive"]!==void 0&&W["case-sensitive"],1,yt);if(!te)return null;let fe=F.parse(W["diacritic-sensitive"]!==void 0&&W["diacritic-sensitive"],1,yt);if(!fe)return null;let pe=null;return W.locale&&(pe=F.parse(W.locale,1,bt),!pe)?null:new Io(te,fe,pe)}evaluate(S){return new Er(this.caseSensitive.evaluate(S),this.diacriticSensitive.evaluate(S),this.locale?this.locale.evaluate(S):null)}eachChild(S){S(this.caseSensitive),S(this.diacriticSensitive),this.locale&&S(this.locale)}outputDefined(){return!1}}class us{constructor(S,F,W,te,fe){this.type=bt,this.number=S,this.locale=F,this.currency=W,this.minFractionDigits=te,this.maxFractionDigits=fe}static parse(S,F){if(S.length!==3)return F.error("Expected two arguments.");let W=F.parse(S[1],1,Ft);if(!W)return null;let te=S[2];if(typeof te!="object"||Array.isArray(te))return F.error("NumberFormat options argument must be an object.");let fe=null;if(te.locale&&(fe=F.parse(te.locale,1,bt),!fe))return null;let pe=null;if(te.currency&&(pe=F.parse(te.currency,1,bt),!pe))return null;let ze=null;if(te["min-fraction-digits"]&&(ze=F.parse(te["min-fraction-digits"],1,Ft),!ze))return null;let Ke=null;return te["max-fraction-digits"]&&(Ke=F.parse(te["max-fraction-digits"],1,Ft),!Ke)?null:new us(W,fe,pe,ze,Ke)}evaluate(S){return new Intl.NumberFormat(this.locale?this.locale.evaluate(S):[],{style:this.currency?"currency":"decimal",currency:this.currency?this.currency.evaluate(S):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(S):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(S):void 0}).format(this.number.evaluate(S))}eachChild(S){S(this.number),this.locale&&S(this.locale),this.currency&&S(this.currency),this.minFractionDigits&&S(this.minFractionDigits),this.maxFractionDigits&&S(this.maxFractionDigits)}outputDefined(){return!1}}class Zl{constructor(S){this.type=ei,this.sections=S}static parse(S,F){if(S.length<2)return F.error("Expected at least one argument.");let W=S[1];if(!Array.isArray(W)&&typeof W=="object")return F.error("First argument must be an image or text section.");let te=[],fe=!1;for(let pe=1;pe<=S.length-1;++pe){let ze=S[pe];if(fe&&typeof ze=="object"&&!Array.isArray(ze)){fe=!1;let Ke=null;if(ze["font-scale"]&&(Ke=F.parse(ze["font-scale"],1,Ft),!Ke))return null;let ut=null;if(ze["text-font"]&&(ut=F.parse(ze["text-font"],1,Ge(bt)),!ut))return null;let Lt=null;if(ze["text-color"]&&(Lt=F.parse(ze["text-color"],1,Yt),!Lt))return null;let Qt=te[te.length-1];Qt.scale=Ke,Qt.font=ut,Qt.textColor=Lt}else{let Ke=F.parse(S[pe],1,Tr);if(!Ke)return null;let ut=Ke.type.kind;if(ut!=="string"&&ut!=="value"&&ut!=="null"&&ut!=="resolvedImage")return F.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");fe=!0,te.push({content:Ke,scale:null,font:null,textColor:null})}}return new Zl(te)}evaluate(S){return new ri(this.sections.map(F=>{let W=F.content.evaluate(S);return Mn(W)===Ur?new Zr("",W,null,null,null):new Zr(Ba(W),null,F.scale?F.scale.evaluate(S):null,F.font?F.font.evaluate(S).join(","):null,F.textColor?F.textColor.evaluate(S):null)}))}eachChild(S){for(let F of this.sections)S(F.content),F.scale&&S(F.scale),F.font&&S(F.font),F.textColor&&S(F.textColor)}outputDefined(){return!1}}class Su{constructor(S){this.type=Ur,this.input=S}static parse(S,F){if(S.length!==2)return F.error("Expected two arguments.");let W=F.parse(S[1],1,bt);return W?new Su(W):F.error("No image name provided.")}evaluate(S){let F=this.input.evaluate(S),W=en.fromString(F);return W&&S.availableImages&&(W.available=S.availableImages.indexOf(F)>-1),W}eachChild(S){S(this.input)}outputDefined(){return!1}}class nc{constructor(S){this.type=Ft,this.input=S}static parse(S,F){if(S.length!==2)return F.error(`Expected 1 argument, but found ${S.length-1} instead.`);let W=F.parse(S[1],1);return W?W.type.kind!=="array"&&W.type.kind!=="string"&&W.type.kind!=="value"?F.error(`Expected argument of type string or array, but found ${Je(W.type)} instead.`):new nc(W):null}evaluate(S){let F=this.input.evaluate(S);if(typeof F=="string")return[...F].length;if(Array.isArray(F))return F.length;throw new ma(`Expected value to be of type string or array, but found ${Je(Mn(F))} instead.`)}eachChild(S){S(this.input)}outputDefined(){return!1}}let ws=8192;function Fn(R,S){let F=(180+R[0])/360,W=(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+R[1]*Math.PI/360)))/360,te=Math.pow(2,S.z);return[Math.round(F*te*ws),Math.round(W*te*ws)]}function _a(R,S){let F=Math.pow(2,S.z);return[(te=(R[0]/ws+S.x)/F,360*te-180),(W=(R[1]/ws+S.y)/F,360/Math.PI*Math.atan(Math.exp((180-360*W)*Math.PI/180))-90)];var W,te}function Vu(R,S){R[0]=Math.min(R[0],S[0]),R[1]=Math.min(R[1],S[1]),R[2]=Math.max(R[2],S[0]),R[3]=Math.max(R[3],S[1])}function zl(R,S){return!(R[0]<=S[0]||R[2]>=S[2]||R[1]<=S[1]||R[3]>=S[3])}function xo(R,S,F){let W=R[0]-S[0],te=R[1]-S[1],fe=R[0]-F[0],pe=R[1]-F[1];return W*pe-fe*te==0&&W*fe<=0&&te*pe<=0}function Yl(R,S,F,W){return(te=[W[0]-F[0],W[1]-F[1]])[0]*(fe=[S[0]-R[0],S[1]-R[1]])[1]-te[1]*fe[0]!=0&&!(!qo(R,S,F,W)||!qo(F,W,R,S));var te,fe}function Us(R,S,F){for(let W of F)for(let te=0;te(te=R)[1]!=(pe=ze[Ke+1])[1]>te[1]&&te[0]<(pe[0]-fe[0])*(te[1]-fe[1])/(pe[1]-fe[1])+fe[0]&&(W=!W)}var te,fe,pe;return W}function ac(R,S){for(let F of S)if(Hl(R,F))return!0;return!1}function aa(R,S){for(let F of R)if(!Hl(F,S))return!1;for(let F=0;F0&&ze<0||pe<0&&ze>0}function Ol(R,S,F){let W=[];for(let te=0;teF[2]){let te=.5*W,fe=R[0]-F[0]>te?-W:F[0]-R[0]>te?W:0;fe===0&&(fe=R[0]-F[2]>te?-W:F[2]-R[0]>te?W:0),R[0]+=fe}Vu(S,R)}function rf(R,S,F,W){let te=Math.pow(2,W.z)*ws,fe=[W.x*ws,W.y*ws],pe=[];for(let ze of R)for(let Ke of ze){let ut=[Ke.x+fe[0],Ke.y+fe[1]];Do(ut,S,F,te),pe.push(ut)}return pe}function Uf(R,S,F,W){let te=Math.pow(2,W.z)*ws,fe=[W.x*ws,W.y*ws],pe=[];for(let Ke of R){let ut=[];for(let Lt of Ke){let Qt=[Lt.x+fe[0],Lt.y+fe[1]];Vu(S,Qt),ut.push(Qt)}pe.push(ut)}if(S[2]-S[0]<=te/2){(ze=S)[0]=ze[1]=1/0,ze[2]=ze[3]=-1/0;for(let Ke of pe)for(let ut of Ke)Do(ut,S,F,te)}var ze;return pe}class ml{constructor(S,F){this.type=yt,this.geojson=S,this.geometries=F}static parse(S,F){if(S.length!==2)return F.error(`'within' expression requires exactly one argument, but found ${S.length-1} instead.`);if(yn(S[1])){let W=S[1];if(W.type==="FeatureCollection"){let te=[];for(let fe of W.features){let{type:pe,coordinates:ze}=fe.geometry;pe==="Polygon"&&te.push(ze),pe==="MultiPolygon"&&te.push(...ze)}if(te.length)return new ml(W,{type:"MultiPolygon",coordinates:te})}else if(W.type==="Feature"){let te=W.geometry.type;if(te==="Polygon"||te==="MultiPolygon")return new ml(W,W.geometry)}else if(W.type==="Polygon"||W.type==="MultiPolygon")return new ml(W,W)}return F.error("'within' expression requires valid geojson object that contains polygon geometry type.")}evaluate(S){if(S.geometry()!=null&&S.canonicalID()!=null){if(S.geometryType()==="Point")return function(F,W){let te=[1/0,1/0,-1/0,-1/0],fe=[1/0,1/0,-1/0,-1/0],pe=F.canonicalID();if(W.type==="Polygon"){let ze=Ol(W.coordinates,fe,pe),Ke=rf(F.geometry(),te,fe,pe);if(!zl(te,fe))return!1;for(let ut of Ke)if(!Hl(ut,ze))return!1}if(W.type==="MultiPolygon"){let ze=Pc(W.coordinates,fe,pe),Ke=rf(F.geometry(),te,fe,pe);if(!zl(te,fe))return!1;for(let ut of Ke)if(!ac(ut,ze))return!1}return!0}(S,this.geometries);if(S.geometryType()==="LineString")return function(F,W){let te=[1/0,1/0,-1/0,-1/0],fe=[1/0,1/0,-1/0,-1/0],pe=F.canonicalID();if(W.type==="Polygon"){let ze=Ol(W.coordinates,fe,pe),Ke=Uf(F.geometry(),te,fe,pe);if(!zl(te,fe))return!1;for(let ut of Ke)if(!aa(ut,ze))return!1}if(W.type==="MultiPolygon"){let ze=Pc(W.coordinates,fe,pe),Ke=Uf(F.geometry(),te,fe,pe);if(!zl(te,fe))return!1;for(let ut of Ke)if(!Oo(ut,ze))return!1}return!0}(S,this.geometries)}return!1}eachChild(){}outputDefined(){return!0}}let Zc=class{constructor(R=[],S=(F,W)=>FW?1:0){if(this.data=R,this.length=this.data.length,this.compare=S,this.length>0)for(let F=(this.length>>1)-1;F>=0;F--)this._down(F)}push(R){this.data.push(R),this._up(this.length++)}pop(){if(this.length===0)return;let R=this.data[0],S=this.data.pop();return--this.length>0&&(this.data[0]=S,this._down(0)),R}peek(){return this.data[0]}_up(R){let{data:S,compare:F}=this,W=S[R];for(;R>0;){let te=R-1>>1,fe=S[te];if(F(W,fe)>=0)break;S[R]=fe,R=te}S[R]=W}_down(R){let{data:S,compare:F}=this,W=this.length>>1,te=S[R];for(;R=0)break;S[R]=S[fe],R=fe}S[R]=te}};function Kl(R,S,F,W,te){qs(R,S,F,W||R.length-1,te||oc)}function qs(R,S,F,W,te){for(;W>F;){if(W-F>600){var fe=W-F+1,pe=S-F+1,ze=Math.log(fe),Ke=.5*Math.exp(2*ze/3),ut=.5*Math.sqrt(ze*Ke*(fe-Ke)/fe)*(pe-fe/2<0?-1:1);qs(R,S,Math.max(F,Math.floor(S-pe*Ke/fe+ut)),Math.min(W,Math.floor(S+(fe-pe)*Ke/fe+ut)),te)}var Lt=R[S],Qt=F,fr=W;for(yu(R,F,S),te(R[W],Lt)>0&&yu(R,F,W);Qt0;)fr--}te(R[F],Lt)===0?yu(R,F,fr):yu(R,++fr,W),fr<=S&&(F=fr+1),S<=fr&&(W=fr-1)}}function yu(R,S,F){var W=R[S];R[S]=R[F],R[F]=W}function oc(R,S){return RS?1:0}function Cf(R,S){if(R.length<=1)return[R];let F=[],W,te;for(let fe of R){let pe=Nh(fe);pe!==0&&(fe.area=Math.abs(pe),te===void 0&&(te=pe<0),te===pe<0?(W&&F.push(W),W=[fe]):W.push(fe))}if(W&&F.push(W),S>1)for(let fe=0;fe1?(ut=S[Ke+1][0],Lt=S[Ke+1][1]):mr>0&&(ut+=Qt/this.kx*mr,Lt+=fr/this.ky*mr)),Qt=this.wrap(F[0]-ut)*this.kx,fr=(F[1]-Lt)*this.ky;let Lr=Qt*Qt+fr*fr;Lr180;)S-=360;return S}}function Jl(R,S){return S[0]-R[0]}function hl(R){return R[1]-R[0]+1}function lc(R,S){return R[1]>=R[0]&&R[1]R[1])return[null,null];let F=hl(R);if(S){if(F===2)return[R,null];let te=Math.floor(F/2);return[[R[0],R[0]+te],[R[0]+te,R[1]]]}if(F===1)return[R,null];let W=Math.floor(F/2)-1;return[[R[0],R[0]+W],[R[0]+W+1,R[1]]]}function Cs(R,S){if(!lc(S,R.length))return[1/0,1/0,-1/0,-1/0];let F=[1/0,1/0,-1/0,-1/0];for(let W=S[0];W<=S[1];++W)Vu(F,R[W]);return F}function js(R){let S=[1/0,1/0,-1/0,-1/0];for(let F of R)for(let W of F)Vu(S,W);return S}function Go(R){return R[0]!==-1/0&&R[1]!==-1/0&&R[2]!==1/0&&R[3]!==1/0}function gs(R,S,F){if(!Go(R)||!Go(S))return NaN;let W=0,te=0;return R[2]S[2]&&(W=R[0]-S[2]),R[1]>S[3]&&(te=R[1]-S[3]),R[3]=W)return W;if(zl(te,fe)){if(od(R,S))return 0}else if(od(S,R))return 0;let pe=1/0;for(let ze of R)for(let Ke=0,ut=ze.length,Lt=ut-1;Ke0;){let Ke=pe.pop();if(Ke[0]>=fe)continue;let ut=Ke[1],Lt=S?50:100;if(hl(ut)<=Lt){if(!lc(ut,R.length))return NaN;if(S){let Qt=Po(R,ut,F,W);if(isNaN(Qt)||Qt===0)return Qt;fe=Math.min(fe,Qt)}else for(let Qt=ut[0];Qt<=ut[1];++Qt){let fr=ad(R[Qt],F,W);if(fe=Math.min(fe,fr),fe===0)return 0}}else{let Qt=Fu(ut,S);Pa(pe,fe,W,R,ze,Qt[0]),Pa(pe,fe,W,R,ze,Qt[1])}}return fe}function bl(R,S,F,W,te,fe=1/0){let pe=Math.min(fe,te.distance(R[0],F[0]));if(pe===0)return pe;let ze=new Zc([[0,[0,R.length-1],[0,F.length-1]]],Jl);for(;ze.length>0;){let Ke=ze.pop();if(Ke[0]>=pe)continue;let ut=Ke[1],Lt=Ke[2],Qt=S?50:100,fr=W?50:100;if(hl(ut)<=Qt&&hl(Lt)<=fr){if(!lc(ut,R.length)&&lc(Lt,F.length))return NaN;let mr;if(S&&W)mr=Gu(R,ut,F,Lt,te),pe=Math.min(pe,mr);else if(S&&!W){let Lr=R.slice(ut[0],ut[1]+1);for(let zr=Lt[0];zr<=Lt[1];++zr)if(mr=uc(F[zr],Lr,te),pe=Math.min(pe,mr),pe===0)return pe}else if(!S&&W){let Lr=F.slice(Lt[0],Lt[1]+1);for(let zr=ut[0];zr<=ut[1];++zr)if(mr=uc(R[zr],Lr,te),pe=Math.min(pe,mr),pe===0)return pe}else mr=Bs(R,ut,F,Lt,te),pe=Math.min(pe,mr)}else{let mr=Fu(ut,S),Lr=Fu(Lt,W);af(ze,pe,te,R,F,mr[0],Lr[0]),af(ze,pe,te,R,F,mr[0],Lr[1]),af(ze,pe,te,R,F,mr[1],Lr[0]),af(ze,pe,te,R,F,mr[1],Lr[1])}}return pe}function Gf(R){return R.type==="MultiPolygon"?R.coordinates.map(S=>({type:"Polygon",coordinates:S})):R.type==="MultiLineString"?R.coordinates.map(S=>({type:"LineString",coordinates:S})):R.type==="MultiPoint"?R.coordinates.map(S=>({type:"Point",coordinates:S})):[R]}class Ic{constructor(S,F){this.type=Ft,this.geojson=S,this.geometries=F}static parse(S,F){if(S.length!==2)return F.error(`'distance' expression requires exactly one argument, but found ${S.length-1} instead.`);if(yn(S[1])){let W=S[1];if(W.type==="FeatureCollection")return new Ic(W,W.features.map(te=>Gf(te.geometry)).flat());if(W.type==="Feature")return new Ic(W,Gf(W.geometry));if("type"in W&&"coordinates"in W)return new Ic(W,Gf(W))}return F.error("'distance' expression requires valid geojson object that contains polygon geometry type.")}evaluate(S){if(S.geometry()!=null&&S.canonicalID()!=null){if(S.geometryType()==="Point")return function(F,W){let te=F.geometry(),fe=te.flat().map(Ke=>_a([Ke.x,Ke.y],F.canonical));if(te.length===0)return NaN;let pe=new Vf(fe[0][1]),ze=1/0;for(let Ke of W){switch(Ke.type){case"Point":ze=Math.min(ze,bl(fe,!1,[Ke.coordinates],!1,pe,ze));break;case"LineString":ze=Math.min(ze,bl(fe,!1,Ke.coordinates,!0,pe,ze));break;case"Polygon":ze=Math.min(ze,Hu(fe,!1,Ke.coordinates,pe,ze))}if(ze===0)return ze}return ze}(S,this.geometries);if(S.geometryType()==="LineString")return function(F,W){let te=F.geometry(),fe=te.flat().map(Ke=>_a([Ke.x,Ke.y],F.canonical));if(te.length===0)return NaN;let pe=new Vf(fe[0][1]),ze=1/0;for(let Ke of W){switch(Ke.type){case"Point":ze=Math.min(ze,bl(fe,!0,[Ke.coordinates],!1,pe,ze));break;case"LineString":ze=Math.min(ze,bl(fe,!0,Ke.coordinates,!0,pe,ze));break;case"Polygon":ze=Math.min(ze,Hu(fe,!0,Ke.coordinates,pe,ze))}if(ze===0)return ze}return ze}(S,this.geometries);if(S.geometryType()==="Polygon")return function(F,W){let te=F.geometry();if(te.length===0||te[0].length===0)return NaN;let fe=Cf(te,0).map(Ke=>Ke.map(ut=>ut.map(Lt=>_a([Lt.x,Lt.y],F.canonical)))),pe=new Vf(fe[0][0][0][1]),ze=1/0;for(let Ke of W)for(let ut of fe){switch(Ke.type){case"Point":ze=Math.min(ze,Hu([Ke.coordinates],!1,ut,pe,ze));break;case"LineString":ze=Math.min(ze,Hu(Ke.coordinates,!0,ut,pe,ze));break;case"Polygon":ze=Math.min(ze,Yo(ut,Ke.coordinates,pe,ze))}if(ze===0)return ze}return ze}(S,this.geometries)}return NaN}eachChild(){}outputDefined(){return!0}}let mf={"==":cs,"!=":nl,">":fl,"<":Ss,">=":Os,"<=":Js,array:Fa,at:Cr,boolean:Fa,case:Sn,coalesce:zs,collator:Io,format:Zl,image:Su,in:Qr,"index-of":pi,interpolate:Co,"interpolate-hcl":Co,"interpolate-lab":Co,length:nc,let:jn,literal:la,match:fn,number:Fa,"number-format":us,object:Fa,slice:En,step:_n,string:Fa,"to-boolean":da,"to-color":da,"to-number":da,"to-string":da,var:St,within:ml,distance:Ic};class ql{constructor(S,F,W,te){this.name=S,this.type=F,this._evaluate=W,this.args=te}evaluate(S){return this._evaluate(S,this.args)}eachChild(S){this.args.forEach(S)}outputDefined(){return!1}static parse(S,F){let W=S[0],te=ql.definitions[W];if(!te)return F.error(`Unknown expression "${W}". If you wanted a literal array, use ["literal", [...]].`,0);let fe=Array.isArray(te)?te[0]:te.type,pe=Array.isArray(te)?[[te[1],te[2]]]:te.overloads,ze=pe.filter(([ut])=>!Array.isArray(ut)||ut.length===S.length-1),Ke=null;for(let[ut,Lt]of ze){Ke=new vo(F.registry,eh,F.path,null,F.scope);let Qt=[],fr=!1;for(let mr=1;mr{return fr=Qt,Array.isArray(fr)?`(${fr.map(Je).join(", ")})`:`(${Je(fr.type)}...)`;var fr}).join(" | "),Lt=[];for(let Qt=1;Qt{F=S?F&&eh(W):F&&W instanceof la}),!!F&&th(R)&&Hf(R,["zoom","heatmap-density","line-progress","accumulated","is-supported-script"])}function th(R){if(R instanceof ql&&(R.name==="get"&&R.args.length===1||R.name==="feature-state"||R.name==="has"&&R.args.length===1||R.name==="properties"||R.name==="geometry-type"||R.name==="id"||/^filter-/.test(R.name))||R instanceof ml||R instanceof Ic)return!1;let S=!0;return R.eachChild(F=>{S&&!th(F)&&(S=!1)}),S}function ju(R){if(R instanceof ql&&R.name==="feature-state")return!1;let S=!0;return R.eachChild(F=>{S&&!ju(F)&&(S=!1)}),S}function Hf(R,S){if(R instanceof ql&&S.indexOf(R.name)>=0)return!1;let F=!0;return R.eachChild(W=>{F&&!Hf(W,S)&&(F=!1)}),F}function cc(R){return{result:"success",value:R}}function of(R){return{result:"error",value:R}}function Bl(R){return R["property-type"]==="data-driven"||R["property-type"]==="cross-faded-data-driven"}function Kc(R){return!!R.expression&&R.expression.parameters.indexOf("zoom")>-1}function Rc(R){return!!R.expression&&R.expression.interpolated}function ms(R){return R instanceof Number?"number":R instanceof String?"string":R instanceof Boolean?"boolean":Array.isArray(R)?"array":R===null?"null":typeof R}function jf(R){return typeof R=="object"&&R!==null&&!Array.isArray(R)}function Uh(R){return R}function rh(R,S){let F=S.type==="color",W=R.stops&&typeof R.stops[0][0]=="object",te=W||!(W||R.property!==void 0),fe=R.type||(Rc(S)?"exponential":"interval");if(F||S.type==="padding"){let Lt=F?ar.parse:$r.parse;(R=Qe({},R)).stops&&(R.stops=R.stops.map(Qt=>[Qt[0],Lt(Qt[1])])),R.default=Lt(R.default?R.default:S.default)}if(R.colorSpace&&(pe=R.colorSpace)!=="rgb"&&pe!=="hcl"&&pe!=="lab")throw new Error(`Unknown color space: "${R.colorSpace}"`);var pe;let ze,Ke,ut;if(fe==="exponential")ze=ih;else if(fe==="interval")ze=Mu;else if(fe==="categorical"){ze=xh,Ke=Object.create(null);for(let Lt of R.stops)Ke[Lt[0]]=Lt[1];ut=typeof R.stops[0][0]}else{if(fe!=="identity")throw new Error(`Unknown function type "${fe}"`);ze=Ws}if(W){let Lt={},Qt=[];for(let Lr=0;LrLr[0]),evaluate:({zoom:Lr},zr)=>ih({stops:fr,base:R.base},S,Lr).evaluate(Lr,zr)}}if(te){let Lt=fe==="exponential"?{name:"exponential",base:R.base!==void 0?R.base:1}:null;return{kind:"camera",interpolationType:Lt,interpolationFactor:Co.interpolationFactor.bind(void 0,Lt),zoomStops:R.stops.map(Qt=>Qt[0]),evaluate:({zoom:Qt})=>ze(R,S,Qt,Ke,ut)}}return{kind:"source",evaluate(Lt,Qt){let fr=Qt&&Qt.properties?Qt.properties[R.property]:void 0;return fr===void 0?sf(R.default,S.default):ze(R,S,fr,Ke,ut)}}}function sf(R,S,F){return R!==void 0?R:S!==void 0?S:F!==void 0?F:void 0}function xh(R,S,F,W,te){return sf(typeof F===te?W[F]:void 0,R.default,S.default)}function Mu(R,S,F){if(ms(F)!=="number")return sf(R.default,S.default);let W=R.stops.length;if(W===1||F<=R.stops[0][0])return R.stops[0][1];if(F>=R.stops[W-1][0])return R.stops[W-1][1];let te=ki(R.stops.map(fe=>fe[0]),F);return R.stops[te][1]}function ih(R,S,F){let W=R.base!==void 0?R.base:1;if(ms(F)!=="number")return sf(R.default,S.default);let te=R.stops.length;if(te===1||F<=R.stops[0][0])return R.stops[0][1];if(F>=R.stops[te-1][0])return R.stops[te-1][1];let fe=ki(R.stops.map(Lt=>Lt[0]),F),pe=function(Lt,Qt,fr,mr){let Lr=mr-fr,zr=Lt-fr;return Lr===0?0:Qt===1?zr/Lr:(Math.pow(Qt,zr)-1)/(Math.pow(Qt,Lr)-1)}(F,W,R.stops[fe][0],R.stops[fe+1][0]),ze=R.stops[fe][1],Ke=R.stops[fe+1][1],ut=Lo[S.type]||Uh;return typeof ze.evaluate=="function"?{evaluate(...Lt){let Qt=ze.evaluate.apply(void 0,Lt),fr=Ke.evaluate.apply(void 0,Lt);if(Qt!==void 0&&fr!==void 0)return ut(Qt,fr,pe,R.colorSpace)}}:ut(ze,Ke,pe,R.colorSpace)}function Ws(R,S,F){switch(S.type){case"color":F=ar.parse(F);break;case"formatted":F=ri.fromString(F.toString());break;case"resolvedImage":F=en.fromString(F.toString());break;case"padding":F=$r.parse(F);break;default:ms(F)===S.type||S.type==="enum"&&S.values[F]||(F=void 0)}return sf(F,R.default,S.default)}ql.register(mf,{error:[{kind:"error"},[bt],(R,[S])=>{throw new ma(S.evaluate(R))}],typeof:[bt,[Tr],(R,[S])=>Je(Mn(S.evaluate(R)))],"to-rgba":[Ge(Ft,4),[Yt],(R,[S])=>{let[F,W,te,fe]=S.evaluate(R).rgb;return[255*F,255*W,255*te,fe]}],rgb:[Yt,[Ft,Ft,Ft],_h],rgba:[Yt,[Ft,Ft,Ft,Ft],_h],has:{type:yt,overloads:[[[bt],(R,[S])=>Qf(S.evaluate(R),R.properties())],[[bt,lr],(R,[S,F])=>Qf(S.evaluate(R),F.evaluate(R))]]},get:{type:Tr,overloads:[[[bt],(R,[S])=>yf(S.evaluate(R),R.properties())],[[bt,lr],(R,[S,F])=>yf(S.evaluate(R),F.evaluate(R))]]},"feature-state":[Tr,[bt],(R,[S])=>yf(S.evaluate(R),R.featureState||{})],properties:[lr,[],R=>R.properties()],"geometry-type":[bt,[],R=>R.geometryType()],id:[Tr,[],R=>R.id()],zoom:[Ft,[],R=>R.globals.zoom],"heatmap-density":[Ft,[],R=>R.globals.heatmapDensity||0],"line-progress":[Ft,[],R=>R.globals.lineProgress||0],accumulated:[Tr,[],R=>R.globals.accumulated===void 0?null:R.globals.accumulated],"+":[Ft,Yc(Ft),(R,S)=>{let F=0;for(let W of S)F+=W.evaluate(R);return F}],"*":[Ft,Yc(Ft),(R,S)=>{let F=1;for(let W of S)F*=W.evaluate(R);return F}],"-":{type:Ft,overloads:[[[Ft,Ft],(R,[S,F])=>S.evaluate(R)-F.evaluate(R)],[[Ft],(R,[S])=>-S.evaluate(R)]]},"/":[Ft,[Ft,Ft],(R,[S,F])=>S.evaluate(R)/F.evaluate(R)],"%":[Ft,[Ft,Ft],(R,[S,F])=>S.evaluate(R)%F.evaluate(R)],ln2:[Ft,[],()=>Math.LN2],pi:[Ft,[],()=>Math.PI],e:[Ft,[],()=>Math.E],"^":[Ft,[Ft,Ft],(R,[S,F])=>Math.pow(S.evaluate(R),F.evaluate(R))],sqrt:[Ft,[Ft],(R,[S])=>Math.sqrt(S.evaluate(R))],log10:[Ft,[Ft],(R,[S])=>Math.log(S.evaluate(R))/Math.LN10],ln:[Ft,[Ft],(R,[S])=>Math.log(S.evaluate(R))],log2:[Ft,[Ft],(R,[S])=>Math.log(S.evaluate(R))/Math.LN2],sin:[Ft,[Ft],(R,[S])=>Math.sin(S.evaluate(R))],cos:[Ft,[Ft],(R,[S])=>Math.cos(S.evaluate(R))],tan:[Ft,[Ft],(R,[S])=>Math.tan(S.evaluate(R))],asin:[Ft,[Ft],(R,[S])=>Math.asin(S.evaluate(R))],acos:[Ft,[Ft],(R,[S])=>Math.acos(S.evaluate(R))],atan:[Ft,[Ft],(R,[S])=>Math.atan(S.evaluate(R))],min:[Ft,Yc(Ft),(R,S)=>Math.min(...S.map(F=>F.evaluate(R)))],max:[Ft,Yc(Ft),(R,S)=>Math.max(...S.map(F=>F.evaluate(R)))],abs:[Ft,[Ft],(R,[S])=>Math.abs(S.evaluate(R))],round:[Ft,[Ft],(R,[S])=>{let F=S.evaluate(R);return F<0?-Math.round(-F):Math.round(F)}],floor:[Ft,[Ft],(R,[S])=>Math.floor(S.evaluate(R))],ceil:[Ft,[Ft],(R,[S])=>Math.ceil(S.evaluate(R))],"filter-==":[yt,[bt,Tr],(R,[S,F])=>R.properties()[S.value]===F.value],"filter-id-==":[yt,[Tr],(R,[S])=>R.id()===S.value],"filter-type-==":[yt,[bt],(R,[S])=>R.geometryType()===S.value],"filter-<":[yt,[bt,Tr],(R,[S,F])=>{let W=R.properties()[S.value],te=F.value;return typeof W==typeof te&&W{let F=R.id(),W=S.value;return typeof F==typeof W&&F":[yt,[bt,Tr],(R,[S,F])=>{let W=R.properties()[S.value],te=F.value;return typeof W==typeof te&&W>te}],"filter-id->":[yt,[Tr],(R,[S])=>{let F=R.id(),W=S.value;return typeof F==typeof W&&F>W}],"filter-<=":[yt,[bt,Tr],(R,[S,F])=>{let W=R.properties()[S.value],te=F.value;return typeof W==typeof te&&W<=te}],"filter-id-<=":[yt,[Tr],(R,[S])=>{let F=R.id(),W=S.value;return typeof F==typeof W&&F<=W}],"filter->=":[yt,[bt,Tr],(R,[S,F])=>{let W=R.properties()[S.value],te=F.value;return typeof W==typeof te&&W>=te}],"filter-id->=":[yt,[Tr],(R,[S])=>{let F=R.id(),W=S.value;return typeof F==typeof W&&F>=W}],"filter-has":[yt,[Tr],(R,[S])=>S.value in R.properties()],"filter-has-id":[yt,[],R=>R.id()!==null&&R.id()!==void 0],"filter-type-in":[yt,[Ge(bt)],(R,[S])=>S.value.indexOf(R.geometryType())>=0],"filter-id-in":[yt,[Ge(Tr)],(R,[S])=>S.value.indexOf(R.id())>=0],"filter-in-small":[yt,[bt,Ge(Tr)],(R,[S,F])=>F.value.indexOf(R.properties()[S.value])>=0],"filter-in-large":[yt,[bt,Ge(Tr)],(R,[S,F])=>function(W,te,fe,pe){for(;fe<=pe;){let ze=fe+pe>>1;if(te[ze]===W)return!0;te[ze]>W?pe=ze-1:fe=ze+1}return!1}(R.properties()[S.value],F.value,0,F.value.length-1)],all:{type:yt,overloads:[[[yt,yt],(R,[S,F])=>S.evaluate(R)&&F.evaluate(R)],[Yc(yt),(R,S)=>{for(let F of S)if(!F.evaluate(R))return!1;return!0}]]},any:{type:yt,overloads:[[[yt,yt],(R,[S,F])=>S.evaluate(R)||F.evaluate(R)],[Yc(yt),(R,S)=>{for(let F of S)if(F.evaluate(R))return!0;return!1}]]},"!":[yt,[yt],(R,[S])=>!S.evaluate(R)],"is-supported-script":[yt,[bt],(R,[S])=>{let F=R.globals&&R.globals.isSupportedScript;return!F||F(S.evaluate(R))}],upcase:[bt,[bt],(R,[S])=>S.evaluate(R).toUpperCase()],downcase:[bt,[bt],(R,[S])=>S.evaluate(R).toLowerCase()],concat:[bt,Yc(Tr),(R,S)=>S.map(F=>Ba(F.evaluate(R))).join("")],"resolved-locale":[bt,[Rr],(R,[S])=>S.evaluate(R).resolvedLocale()]});class Eu{constructor(S,F){var W;this.expression=S,this._warningHistory={},this._evaluator=new Ga,this._defaultValue=F?(W=F).type==="color"&&jf(W.default)?new ar(0,0,0,0):W.type==="color"?ar.parse(W.default)||null:W.type==="padding"?$r.parse(W.default)||null:W.type==="variableAnchorOffsetCollection"?Ji.parse(W.default)||null:W.default===void 0?null:W.default:null,this._enumValues=F&&F.type==="enum"?F.values:null}evaluateWithoutErrorHandling(S,F,W,te,fe,pe){return this._evaluator.globals=S,this._evaluator.feature=F,this._evaluator.featureState=W,this._evaluator.canonical=te,this._evaluator.availableImages=fe||null,this._evaluator.formattedSection=pe,this.expression.evaluate(this._evaluator)}evaluate(S,F,W,te,fe,pe){this._evaluator.globals=S,this._evaluator.feature=F||null,this._evaluator.featureState=W||null,this._evaluator.canonical=te,this._evaluator.availableImages=fe||null,this._evaluator.formattedSection=pe||null;try{let ze=this.expression.evaluate(this._evaluator);if(ze==null||typeof ze=="number"&&ze!=ze)return this._defaultValue;if(this._enumValues&&!(ze in this._enumValues))throw new ma(`Expected value to be one of ${Object.keys(this._enumValues).map(Ke=>JSON.stringify(Ke)).join(", ")}, but found ${JSON.stringify(ze)} instead.`);return ze}catch(ze){return this._warningHistory[ze.message]||(this._warningHistory[ze.message]=!0,typeof console!="undefined"&&console.warn(ze.message)),this._defaultValue}}}function Dc(R){return Array.isArray(R)&&R.length>0&&typeof R[0]=="string"&&R[0]in mf}function ks(R,S){let F=new vo(mf,eh,[],S?function(te){let fe={color:Yt,string:bt,number:Ft,enum:bt,boolean:yt,formatted:ei,padding:Wr,resolvedImage:Ur,variableAnchorOffsetCollection:dt};return te.type==="array"?Ge(fe[te.value]||Tr,te.length):fe[te.type]}(S):void 0),W=F.parse(R,void 0,void 0,void 0,S&&S.type==="string"?{typeAnnotation:"coerce"}:void 0);return W?cc(new Eu(W,S)):of(F.errors)}class bc{constructor(S,F){this.kind=S,this._styleExpression=F,this.isStateDependent=S!=="constant"&&!ju(F.expression)}evaluateWithoutErrorHandling(S,F,W,te,fe,pe){return this._styleExpression.evaluateWithoutErrorHandling(S,F,W,te,fe,pe)}evaluate(S,F,W,te,fe,pe){return this._styleExpression.evaluate(S,F,W,te,fe,pe)}}class du{constructor(S,F,W,te){this.kind=S,this.zoomStops=W,this._styleExpression=F,this.isStateDependent=S!=="camera"&&!ju(F.expression),this.interpolationType=te}evaluateWithoutErrorHandling(S,F,W,te,fe,pe){return this._styleExpression.evaluateWithoutErrorHandling(S,F,W,te,fe,pe)}evaluate(S,F,W,te,fe,pe){return this._styleExpression.evaluate(S,F,W,te,fe,pe)}interpolationFactor(S,F,W){return this.interpolationType?Co.interpolationFactor(this.interpolationType,S,F,W):0}}function _u(R,S){let F=ks(R,S);if(F.result==="error")return F;let W=F.value.expression,te=th(W);if(!te&&!Bl(S))return of([new Et("","data expressions not supported")]);let fe=Hf(W,["zoom"]);if(!fe&&!Kc(S))return of([new Et("","zoom expressions not supported")]);let pe=nh(W);return pe||fe?pe instanceof Et?of([pe]):pe instanceof Co&&!Rc(S)?of([new Et("",'"interpolate" expressions cannot be used with this property')]):cc(pe?new du(te?"camera":"composite",F.value,pe.labels,pe instanceof Co?pe.interpolation:void 0):new bc(te?"constant":"source",F.value)):of([new Et("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')])}class al{constructor(S,F){this._parameters=S,this._specification=F,Qe(this,rh(this._parameters,this._specification))}static deserialize(S){return new al(S._parameters,S._specification)}static serialize(S){return{_parameters:S._parameters,_specification:S._specification}}}function nh(R){let S=null;if(R instanceof jn)S=nh(R.result);else if(R instanceof zs){for(let F of R.args)if(S=nh(F),S)break}else(R instanceof _n||R instanceof Co)&&R.input instanceof ql&&R.input.name==="zoom"&&(S=R);return S instanceof Et||R.eachChild(F=>{let W=nh(F);W instanceof Et?S=W:!S&&W?S=new Et("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.'):S&&W&&S!==W&&(S=new Et("",'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'))}),S}function bh(R){if(R===!0||R===!1)return!0;if(!Array.isArray(R)||R.length===0)return!1;switch(R[0]){case"has":return R.length>=2&&R[1]!=="$id"&&R[1]!=="$type";case"in":return R.length>=3&&(typeof R[1]!="string"||Array.isArray(R[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return R.length!==3||Array.isArray(R[1])||Array.isArray(R[2]);case"any":case"all":for(let S of R.slice(1))if(!bh(S)&&typeof S!="boolean")return!1;return!0;default:return!0}}let zu={type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}};function Fc(R){if(R==null)return{filter:()=>!0,needGeometry:!1};bh(R)||(R=_f(R));let S=ks(R,zu);if(S.result==="error")throw new Error(S.value.map(F=>`${F.key}: ${F.message}`).join(", "));return{filter:(F,W,te)=>S.value.evaluate(F,W,{},te),needGeometry:bd(R)}}function wc(R,S){return RS?1:0}function bd(R){if(!Array.isArray(R))return!1;if(R[0]==="within"||R[0]==="distance")return!0;for(let S=1;S"||S==="<="||S===">="?Lf(R[1],R[2],S):S==="any"?(F=R.slice(1),["any"].concat(F.map(_f))):S==="all"?["all"].concat(R.slice(1).map(_f)):S==="none"?["all"].concat(R.slice(1).map(_f).map(jl)):S==="in"?Ou(R[1],R.slice(2)):S==="!in"?jl(Ou(R[1],R.slice(2))):S==="has"?xf(R[1]):S!=="!has"||jl(xf(R[1]));var F}function Lf(R,S,F){switch(R){case"$type":return[`filter-type-${F}`,S];case"$id":return[`filter-id-${F}`,S];default:return[`filter-${F}`,R,S]}}function Ou(R,S){if(S.length===0)return!1;switch(R){case"$type":return["filter-type-in",["literal",S]];case"$id":return["filter-id-in",["literal",S]];default:return S.length>200&&!S.some(F=>typeof F!=typeof S[0])?["filter-in-large",R,["literal",S.sort(wc)]]:["filter-in-small",R,["literal",S]]}}function xf(R){switch(R){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",R]}}function jl(R){return["!",R]}function lf(R){let S=typeof R;if(S==="number"||S==="boolean"||S==="string"||R==null)return JSON.stringify(R);if(Array.isArray(R)){let te="[";for(let fe of R)te+=`${lf(fe)},`;return`${te}]`}let F=Object.keys(R).sort(),W="{";for(let te=0;teW.maximum?[new ur(S,F,`${F} is greater than the maximum value ${W.maximum}`)]:[]}function bf(R){let S=R.valueSpec,F=Ls(R.value.type),W,te,fe,pe={},ze=F!=="categorical"&&R.value.property===void 0,Ke=!ze,ut=ms(R.value.stops)==="array"&&ms(R.value.stops[0])==="array"&&ms(R.value.stops[0][0])==="object",Lt=Cu({key:R.key,value:R.value,valueSpec:R.styleSpec.function,validateSpec:R.validateSpec,style:R.style,styleSpec:R.styleSpec,objectElementValidators:{stops:function(mr){if(F==="identity")return[new ur(mr.key,mr.value,'identity function may not have a "stops" property')];let Lr=[],zr=mr.value;return Lr=Lr.concat(Wf({key:mr.key,value:zr,valueSpec:mr.valueSpec,validateSpec:mr.validateSpec,style:mr.style,styleSpec:mr.styleSpec,arrayElementValidator:Qt})),ms(zr)==="array"&&zr.length===0&&Lr.push(new ur(mr.key,zr,"array must have at least one stop")),Lr},default:function(mr){return mr.validateSpec({key:mr.key,value:mr.value,valueSpec:S,validateSpec:mr.validateSpec,style:mr.style,styleSpec:mr.styleSpec})}}});return F==="identity"&&ze&&Lt.push(new ur(R.key,R.value,'missing required property "property"')),F==="identity"||R.value.stops||Lt.push(new ur(R.key,R.value,'missing required property "stops"')),F==="exponential"&&R.valueSpec.expression&&!Rc(R.valueSpec)&&Lt.push(new ur(R.key,R.value,"exponential functions not supported")),R.styleSpec.$version>=8&&(Ke&&!Bl(R.valueSpec)?Lt.push(new ur(R.key,R.value,"property functions not supported")):ze&&!Kc(R.valueSpec)&&Lt.push(new ur(R.key,R.value,"zoom functions not supported"))),F!=="categorical"&&!ut||R.value.property!==void 0||Lt.push(new ur(R.key,R.value,'"property" property is required')),Lt;function Qt(mr){let Lr=[],zr=mr.value,ui=mr.key;if(ms(zr)!=="array")return[new ur(ui,zr,`array expected, ${ms(zr)} found`)];if(zr.length!==2)return[new ur(ui,zr,`array length 2 expected, length ${zr.length} found`)];if(ut){if(ms(zr[0])!=="object")return[new ur(ui,zr,`object expected, ${ms(zr[0])} found`)];if(zr[0].zoom===void 0)return[new ur(ui,zr,"object stop key must have zoom")];if(zr[0].value===void 0)return[new ur(ui,zr,"object stop key must have value")];if(fe&&fe>Ls(zr[0].zoom))return[new ur(ui,zr[0].zoom,"stop zoom values must appear in ascending order")];Ls(zr[0].zoom)!==fe&&(fe=Ls(zr[0].zoom),te=void 0,pe={}),Lr=Lr.concat(Cu({key:`${ui}[0]`,value:zr[0],valueSpec:{zoom:{}},validateSpec:mr.validateSpec,style:mr.style,styleSpec:mr.styleSpec,objectElementValidators:{zoom:Vs,value:fr}}))}else Lr=Lr.concat(fr({key:`${ui}[0]`,value:zr[0],valueSpec:{},validateSpec:mr.validateSpec,style:mr.style,styleSpec:mr.styleSpec},zr));return Dc(vu(zr[1]))?Lr.concat([new ur(`${ui}[1]`,zr[1],"expressions are not allowed in function stops.")]):Lr.concat(mr.validateSpec({key:`${ui}[1]`,value:zr[1],valueSpec:S,validateSpec:mr.validateSpec,style:mr.style,styleSpec:mr.styleSpec}))}function fr(mr,Lr){let zr=ms(mr.value),ui=Ls(mr.value),yi=mr.value!==null?mr.value:Lr;if(W){if(zr!==W)return[new ur(mr.key,yi,`${zr} stop domain type must match previous stop domain type ${W}`)]}else W=zr;if(zr!=="number"&&zr!=="string"&&zr!=="boolean")return[new ur(mr.key,yi,"stop domain value must be a number, string, or boolean")];if(zr!=="number"&&F!=="categorical"){let dn=`number expected, ${zr} found`;return Bl(S)&&F===void 0&&(dn+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new ur(mr.key,yi,dn)]}return F!=="categorical"||zr!=="number"||isFinite(ui)&&Math.floor(ui)===ui?F!=="categorical"&&zr==="number"&&te!==void 0&&uinew ur(`${R.key}${W.key}`,R.value,W.message));let F=S.value.expression||S.value._styleExpression.expression;if(R.expressionContext==="property"&&R.propertyKey==="text-font"&&!F.outputDefined())return[new ur(R.key,R.value,`Invalid data expression for "${R.propertyKey}". Output values must be contained as literals within the expression.`)];if(R.expressionContext==="property"&&R.propertyType==="layout"&&!ju(F))return[new ur(R.key,R.value,'"feature-state" data expressions are not supported with layout properties.')];if(R.expressionContext==="filter"&&!ju(F))return[new ur(R.key,R.value,'"feature-state" data expressions are not supported with filters.')];if(R.expressionContext&&R.expressionContext.indexOf("cluster")===0){if(!Hf(F,["zoom","feature-state"]))return[new ur(R.key,R.value,'"zoom" and "feature-state" expressions are not supported with cluster properties.')];if(R.expressionContext==="cluster-initial"&&!th(F))return[new ur(R.key,R.value,"Feature data expressions are not supported with initial expression part of cluster properties.")]}return[]}function Wu(R){let S=R.key,F=R.value,W=R.valueSpec,te=[];return Array.isArray(W.values)?W.values.indexOf(Ls(F))===-1&&te.push(new ur(S,F,`expected one of [${W.values.join(", ")}], ${JSON.stringify(F)} found`)):Object.keys(W.values).indexOf(Ls(F))===-1&&te.push(new ur(S,F,`expected one of [${Object.keys(W.values).join(", ")}], ${JSON.stringify(F)} found`)),te}function If(R){return bh(vu(R.value))?zc(Qe({},R,{expressionContext:"filter",valueSpec:{value:"boolean"}})):Xu(R)}function Xu(R){let S=R.value,F=R.key;if(ms(S)!=="array")return[new ur(F,S,`array expected, ${ms(S)} found`)];let W=R.styleSpec,te,fe=[];if(S.length<1)return[new ur(F,S,"filter array must have at least 1 element")];switch(fe=fe.concat(Wu({key:`${F}[0]`,value:S[0],valueSpec:W.filter_operator,style:R.style,styleSpec:R.styleSpec})),Ls(S[0])){case"<":case"<=":case">":case">=":S.length>=2&&Ls(S[1])==="$type"&&fe.push(new ur(F,S,`"$type" cannot be use with operator "${S[0]}"`));case"==":case"!=":S.length!==3&&fe.push(new ur(F,S,`filter array for operator "${S[0]}" must have 3 elements`));case"in":case"!in":S.length>=2&&(te=ms(S[1]),te!=="string"&&fe.push(new ur(`${F}[1]`,S[1],`string expected, ${te} found`)));for(let pe=2;pe{ut in F&&S.push(new ur(W,F[ut],`"${ut}" is prohibited for ref layers`))}),te.layers.forEach(ut=>{Ls(ut.id)===ze&&(Ke=ut)}),Ke?Ke.ref?S.push(new ur(W,F.ref,"ref cannot reference another ref layer")):pe=Ls(Ke.type):S.push(new ur(W,F.ref,`ref layer "${ze}" not found`))}else if(pe!=="background")if(F.source){let Ke=te.sources&&te.sources[F.source],ut=Ke&&Ls(Ke.type);Ke?ut==="vector"&&pe==="raster"?S.push(new ur(W,F.source,`layer "${F.id}" requires a raster source`)):ut!=="raster-dem"&&pe==="hillshade"?S.push(new ur(W,F.source,`layer "${F.id}" requires a raster-dem source`)):ut==="raster"&&pe!=="raster"?S.push(new ur(W,F.source,`layer "${F.id}" requires a vector source`)):ut!=="vector"||F["source-layer"]?ut==="raster-dem"&&pe!=="hillshade"?S.push(new ur(W,F.source,"raster-dem source can only be used with layer type 'hillshade'.")):pe!=="line"||!F.paint||!F.paint["line-gradient"]||ut==="geojson"&&Ke.lineMetrics||S.push(new ur(W,F,`layer "${F.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)):S.push(new ur(W,F,`layer "${F.id}" must specify a "source-layer"`)):S.push(new ur(W,F.source,`source "${F.source}" not found`))}else S.push(new ur(W,F,'missing required property "source"'));return S=S.concat(Cu({key:W,value:F,valueSpec:fe.layer,style:R.style,styleSpec:R.styleSpec,validateSpec:R.validateSpec,objectElementValidators:{"*":()=>[],type:()=>R.validateSpec({key:`${W}.type`,value:F.type,valueSpec:fe.layer.type,style:R.style,styleSpec:R.styleSpec,validateSpec:R.validateSpec,object:F,objectKey:"type"}),filter:If,layout:Ke=>Cu({layer:F,key:Ke.key,value:Ke.value,style:Ke.style,styleSpec:Ke.styleSpec,validateSpec:Ke.validateSpec,objectElementValidators:{"*":ut=>Wl(Qe({layerType:pe},ut))}}),paint:Ke=>Cu({layer:F,key:Ke.key,value:Ke.value,style:Ke.style,styleSpec:Ke.styleSpec,validateSpec:Ke.validateSpec,objectElementValidators:{"*":ut=>Xf(Qe({layerType:pe},ut))}})}})),S}function Zu(R){let S=R.value,F=R.key,W=ms(S);return W!=="string"?[new ur(F,S,`string expected, ${W} found`)]:[]}let Oc={promoteId:function({key:R,value:S}){if(ms(S)==="string")return Zu({key:R,value:S});{let F=[];for(let W in S)F.push(...Zu({key:`${R}.${W}`,value:S[W]}));return F}}};function Tc(R){let S=R.value,F=R.key,W=R.styleSpec,te=R.style,fe=R.validateSpec;if(!S.type)return[new ur(F,S,'"type" is required')];let pe=Ls(S.type),ze;switch(pe){case"vector":case"raster":return ze=Cu({key:F,value:S,valueSpec:W[`source_${pe.replace("-","_")}`],style:R.style,styleSpec:W,objectElementValidators:Oc,validateSpec:fe}),ze;case"raster-dem":return ze=function(Ke){var ut;let Lt=(ut=Ke.sourceName)!==null&&ut!==void 0?ut:"",Qt=Ke.value,fr=Ke.styleSpec,mr=fr.source_raster_dem,Lr=Ke.style,zr=[],ui=ms(Qt);if(Qt===void 0)return zr;if(ui!=="object")return zr.push(new ur("source_raster_dem",Qt,`object expected, ${ui} found`)),zr;let yi=Ls(Qt.encoding)==="custom",dn=["redFactor","greenFactor","blueFactor","baseShift"],Fi=Ke.value.encoding?`"${Ke.value.encoding}"`:"Default";for(let ln in Qt)!yi&&dn.includes(ln)?zr.push(new ur(ln,Qt[ln],`In "${Lt}": "${ln}" is only valid when "encoding" is set to "custom". ${Fi} encoding found`)):mr[ln]?zr=zr.concat(Ke.validateSpec({key:ln,value:Qt[ln],valueSpec:mr[ln],validateSpec:Ke.validateSpec,style:Lr,styleSpec:fr})):zr.push(new ur(ln,Qt[ln],`unknown property "${ln}"`));return zr}({sourceName:F,value:S,style:R.style,styleSpec:W,validateSpec:fe}),ze;case"geojson":if(ze=Cu({key:F,value:S,valueSpec:W.source_geojson,style:te,styleSpec:W,validateSpec:fe,objectElementValidators:Oc}),S.cluster)for(let Ke in S.clusterProperties){let[ut,Lt]=S.clusterProperties[Ke],Qt=typeof ut=="string"?[ut,["accumulated"],["get",Ke]]:ut;ze.push(...zc({key:`${F}.${Ke}.map`,value:Lt,validateSpec:fe,expressionContext:"cluster-map"})),ze.push(...zc({key:`${F}.${Ke}.reduce`,value:Qt,validateSpec:fe,expressionContext:"cluster-reduce"}))}return ze;case"video":return Cu({key:F,value:S,valueSpec:W.source_video,style:te,validateSpec:fe,styleSpec:W});case"image":return Cu({key:F,value:S,valueSpec:W.source_image,style:te,validateSpec:fe,styleSpec:W});case"canvas":return[new ur(F,null,"Please use runtime APIs to add canvas sources, rather than including them in stylesheets.","source.canvas")];default:return Wu({key:`${F}.type`,value:S.type,valueSpec:{values:["vector","raster","raster-dem","geojson","video","image"]},style:te,validateSpec:fe,styleSpec:W})}}function wl(R){let S=R.value,F=R.styleSpec,W=F.light,te=R.style,fe=[],pe=ms(S);if(S===void 0)return fe;if(pe!=="object")return fe=fe.concat([new ur("light",S,`object expected, ${pe} found`)]),fe;for(let ze in S){let Ke=ze.match(/^(.*)-transition$/);fe=fe.concat(Ke&&W[Ke[1]]&&W[Ke[1]].transition?R.validateSpec({key:ze,value:S[ze],valueSpec:F.transition,validateSpec:R.validateSpec,style:te,styleSpec:F}):W[ze]?R.validateSpec({key:ze,value:S[ze],valueSpec:W[ze],validateSpec:R.validateSpec,style:te,styleSpec:F}):[new ur(ze,S[ze],`unknown property "${ze}"`)])}return fe}function pu(R){let S=R.value,F=R.styleSpec,W=F.sky,te=R.style,fe=ms(S);if(S===void 0)return[];if(fe!=="object")return[new ur("sky",S,`object expected, ${fe} found`)];let pe=[];for(let ze in S)pe=pe.concat(W[ze]?R.validateSpec({key:ze,value:S[ze],valueSpec:W[ze],style:te,styleSpec:F}):[new ur(ze,S[ze],`unknown property "${ze}"`)]);return pe}function qc(R){let S=R.value,F=R.styleSpec,W=F.terrain,te=R.style,fe=[],pe=ms(S);if(S===void 0)return fe;if(pe!=="object")return fe=fe.concat([new ur("terrain",S,`object expected, ${pe} found`)]),fe;for(let ze in S)fe=fe.concat(W[ze]?R.validateSpec({key:ze,value:S[ze],valueSpec:W[ze],validateSpec:R.validateSpec,style:te,styleSpec:F}):[new ur(ze,S[ze],`unknown property "${ze}"`)]);return fe}function cf(R){let S=[],F=R.value,W=R.key;if(Array.isArray(F)){let te=[],fe=[];for(let pe in F)F[pe].id&&te.includes(F[pe].id)&&S.push(new ur(W,F,`all the sprites' ids must be unique, but ${F[pe].id} is duplicated`)),te.push(F[pe].id),F[pe].url&&fe.includes(F[pe].url)&&S.push(new ur(W,F,`all the sprites' URLs must be unique, but ${F[pe].url} is duplicated`)),fe.push(F[pe].url),S=S.concat(Cu({key:`${W}[${pe}]`,value:F[pe],valueSpec:{id:{type:"string",required:!0},url:{type:"string",required:!0}},validateSpec:R.validateSpec}));return S}return Zu({key:W,value:F})}let fc={"*":()=>[],array:Wf,boolean:function(R){let S=R.value,F=R.key,W=ms(S);return W!=="boolean"?[new ur(F,S,`boolean expected, ${W} found`)]:[]},number:Vs,color:function(R){let S=R.key,F=R.value,W=ms(F);return W!=="string"?[new ur(S,F,`color expected, ${W} found`)]:ar.parse(String(F))?[]:[new ur(S,F,`color expected, "${F}" found`)]},constants:Pf,enum:Wu,filter:If,function:bf,layer:ah,object:Cu,source:Tc,light:wl,sky:pu,terrain:qc,projection:function(R){let S=R.value,F=R.styleSpec,W=F.projection,te=R.style,fe=ms(S);if(S===void 0)return[];if(fe!=="object")return[new ur("projection",S,`object expected, ${fe} found`)];let pe=[];for(let ze in S)pe=pe.concat(W[ze]?R.validateSpec({key:ze,value:S[ze],valueSpec:W[ze],style:te,styleSpec:F}):[new ur(ze,S[ze],`unknown property "${ze}"`)]);return pe},string:Zu,formatted:function(R){return Zu(R).length===0?[]:zc(R)},resolvedImage:function(R){return Zu(R).length===0?[]:zc(R)},padding:function(R){let S=R.key,F=R.value;if(ms(F)==="array"){if(F.length<1||F.length>4)return[new ur(S,F,`padding requires 1 to 4 values; ${F.length} values found`)];let W={type:"number"},te=[];for(let fe=0;fe[]}})),R.constants&&(F=F.concat(Pf({key:"constants",value:R.constants,style:R,styleSpec:S,validateSpec:Bc}))),Ar(F)}function kr(R){return function(S){return R(uee(lee({},S),{validateSpec:Bc}))}}function Ar(R){return[].concat(R).sort((S,F)=>S.line-F.line)}function Kr(R){return function(...S){return Ar(R.apply(this,S))}}Xt.source=Kr(kr(Tc)),Xt.sprite=Kr(kr(cf)),Xt.glyphs=Kr(kr(At)),Xt.light=Kr(kr(wl)),Xt.sky=Kr(kr(pu)),Xt.terrain=Kr(kr(qc)),Xt.layer=Kr(kr(ah)),Xt.filter=Kr(kr(If)),Xt.paintProperty=Kr(kr(Xf)),Xt.layoutProperty=Kr(kr(Wl));let Ei=Xt,Wi=Ei.light,hn=Ei.sky,Tn=Ei.paintProperty,Bn=Ei.layoutProperty;function Zi(R,S){let F=!1;if(S&&S.length)for(let W of S)R.fire(new ge(new Error(W.message))),F=!0;return F}class $i{constructor(S,F,W){let te=this.cells=[];if(S instanceof ArrayBuffer){this.arrayBuffer=S;let pe=new Int32Array(this.arrayBuffer);S=pe[0],this.d=(F=pe[1])+2*(W=pe[2]);for(let Ke=0;Ke=Qt[Lr+0]&&te>=Qt[Lr+1])?(ze[mr]=!0,pe.push(Lt[mr])):ze[mr]=!1}}}}_forEachCell(S,F,W,te,fe,pe,ze,Ke){let ut=this._convertToCellCoord(S),Lt=this._convertToCellCoord(F),Qt=this._convertToCellCoord(W),fr=this._convertToCellCoord(te);for(let mr=ut;mr<=Qt;mr++)for(let Lr=Lt;Lr<=fr;Lr++){let zr=this.d*Lr+mr;if((!Ke||Ke(this._convertFromCellCoord(mr),this._convertFromCellCoord(Lr),this._convertFromCellCoord(mr+1),this._convertFromCellCoord(Lr+1)))&&fe.call(this,S,F,W,te,zr,pe,ze,Ke))return}}_convertFromCellCoord(S){return(S-this.padding)/this.scale}_convertToCellCoord(S){return Math.max(0,Math.min(this.d-1,Math.floor(S*this.scale)+this.padding))}toArrayBuffer(){if(this.arrayBuffer)return this.arrayBuffer;let S=this.cells,F=3+this.cells.length+1+1,W=0;for(let pe=0;pe=0)continue;let pe=R[fe];te[fe]=an[F].shallow.indexOf(fe)>=0?pe:La(pe,S)}R instanceof Error&&(te.message=R.message)}if(te.$name)throw new Error("$name property is reserved for worker serialization logic.");return F!=="Object"&&(te.$name=F),te}function Na(R){if(Ra(R))return R;if(Array.isArray(R))return R.map(Na);if(typeof R!="object")throw new Error("can't deserialize object of type "+typeof R);let S=ka(R)||"Object";if(!an[S])throw new Error(`can't deserialize unregistered class ${S}`);let{klass:F}=an[S];if(!F)throw new Error(`can't deserialize unregistered class ${S}`);if(F.deserialize)return F.deserialize(R);let W=Object.create(F.prototype);for(let te of Object.keys(R)){if(te==="$name")continue;let fe=R[te];W[te]=an[S].shallow.indexOf(te)>=0?fe:Na(fe)}return W}class Yn{constructor(){this.first=!0}update(S,F){let W=Math.floor(S);return this.first?(this.first=!1,this.lastIntegerZoom=W,this.lastIntegerZoomTime=0,this.lastZoom=S,this.lastFloorZoom=W,!0):(this.lastFloorZoom>W?(this.lastIntegerZoom=W+1,this.lastIntegerZoomTime=F):this.lastFloorZoomR>=128&&R<=255,"Hangul Jamo":R=>R>=4352&&R<=4607,Khmer:R=>R>=6016&&R<=6143,"General Punctuation":R=>R>=8192&&R<=8303,"Letterlike Symbols":R=>R>=8448&&R<=8527,"Number Forms":R=>R>=8528&&R<=8591,"Miscellaneous Technical":R=>R>=8960&&R<=9215,"Control Pictures":R=>R>=9216&&R<=9279,"Optical Character Recognition":R=>R>=9280&&R<=9311,"Enclosed Alphanumerics":R=>R>=9312&&R<=9471,"Geometric Shapes":R=>R>=9632&&R<=9727,"Miscellaneous Symbols":R=>R>=9728&&R<=9983,"Miscellaneous Symbols and Arrows":R=>R>=11008&&R<=11263,"Ideographic Description Characters":R=>R>=12272&&R<=12287,"CJK Symbols and Punctuation":R=>R>=12288&&R<=12351,Katakana:R=>R>=12448&&R<=12543,Kanbun:R=>R>=12688&&R<=12703,"CJK Strokes":R=>R>=12736&&R<=12783,"Enclosed CJK Letters and Months":R=>R>=12800&&R<=13055,"CJK Compatibility":R=>R>=13056&&R<=13311,"Yijing Hexagram Symbols":R=>R>=19904&&R<=19967,"Private Use Area":R=>R>=57344&&R<=63743,"Vertical Forms":R=>R>=65040&&R<=65055,"CJK Compatibility Forms":R=>R>=65072&&R<=65103,"Small Form Variants":R=>R>=65104&&R<=65135,"Halfwidth and Fullwidth Forms":R=>R>=65280&&R<=65519};function Ka(R){for(let S of R)if(Ho(S.charCodeAt(0)))return!0;return!1}function bo(R){for(let S of R)if(!os(S.charCodeAt(0)))return!1;return!0}function Xo(R){let S=R.map(F=>{try{return new RegExp(`\\p{sc=${F}}`,"u").source}catch(W){return null}}).filter(F=>F);return new RegExp(S.join("|"),"u")}let Ms=Xo(["Arab","Dupl","Mong","Ougr","Syrc"]);function os(R){return!Ms.test(String.fromCodePoint(R))}let Ts=Xo(["Bopo","Hani","Hira","Kana","Kits","Nshu","Tang","Yiii"]);function Ho(R){return!(R!==746&&R!==747&&(R<4352||!(zn["CJK Compatibility Forms"](R)&&!(R>=65097&&R<=65103)||zn["CJK Compatibility"](R)||zn["CJK Strokes"](R)||!(!zn["CJK Symbols and Punctuation"](R)||R>=12296&&R<=12305||R>=12308&&R<=12319||R===12336)||zn["Enclosed CJK Letters and Months"](R)||zn["Ideographic Description Characters"](R)||zn.Kanbun(R)||zn.Katakana(R)&&R!==12540||!(!zn["Halfwidth and Fullwidth Forms"](R)||R===65288||R===65289||R===65293||R>=65306&&R<=65310||R===65339||R===65341||R===65343||R>=65371&&R<=65503||R===65507||R>=65512&&R<=65519)||!(!zn["Small Form Variants"](R)||R>=65112&&R<=65118||R>=65123&&R<=65126)||zn["Vertical Forms"](R)||zn["Yijing Hexagram Symbols"](R)||new RegExp("\\p{sc=Cans}","u").test(String.fromCodePoint(R))||new RegExp("\\p{sc=Hang}","u").test(String.fromCodePoint(R))||Ts.test(String.fromCodePoint(R)))))}function yl(R){return!(Ho(R)||function(S){return!!(zn["Latin-1 Supplement"](S)&&(S===167||S===169||S===174||S===177||S===188||S===189||S===190||S===215||S===247)||zn["General Punctuation"](S)&&(S===8214||S===8224||S===8225||S===8240||S===8241||S===8251||S===8252||S===8258||S===8263||S===8264||S===8265||S===8273)||zn["Letterlike Symbols"](S)||zn["Number Forms"](S)||zn["Miscellaneous Technical"](S)&&(S>=8960&&S<=8967||S>=8972&&S<=8991||S>=8996&&S<=9e3||S===9003||S>=9085&&S<=9114||S>=9150&&S<=9165||S===9167||S>=9169&&S<=9179||S>=9186&&S<=9215)||zn["Control Pictures"](S)&&S!==9251||zn["Optical Character Recognition"](S)||zn["Enclosed Alphanumerics"](S)||zn["Geometric Shapes"](S)||zn["Miscellaneous Symbols"](S)&&!(S>=9754&&S<=9759)||zn["Miscellaneous Symbols and Arrows"](S)&&(S>=11026&&S<=11055||S>=11088&&S<=11097||S>=11192&&S<=11243)||zn["CJK Symbols and Punctuation"](S)||zn.Katakana(S)||zn["Private Use Area"](S)||zn["CJK Compatibility Forms"](S)||zn["Small Form Variants"](S)||zn["Halfwidth and Fullwidth Forms"](S)||S===8734||S===8756||S===8757||S>=9984&&S<=10087||S>=10102&&S<=10131||S===65532||S===65533)}(R))}let Xs=Xo(["Adlm","Arab","Armi","Avst","Chrs","Cprt","Egyp","Elym","Gara","Hatr","Hebr","Hung","Khar","Lydi","Mand","Mani","Mend","Merc","Mero","Narb","Nbat","Nkoo","Orkh","Palm","Phli","Phlp","Phnx","Prti","Rohg","Samr","Sarb","Sogo","Syrc","Thaa","Todr","Yezi"]);function Ps(R){return Xs.test(String.fromCodePoint(R))}function va(R,S){return!(!S&&Ps(R)||R>=2304&&R<=3583||R>=3840&&R<=4255||zn.Khmer(R))}function no(R){for(let S of R)if(Ps(S.charCodeAt(0)))return!0;return!1}let _s=new class{constructor(){this.applyArabicShaping=null,this.processBidirectionalText=null,this.processStyledBidirectionalText=null,this.pluginStatus="unavailable",this.pluginURL=null}setState(R){this.pluginStatus=R.pluginStatus,this.pluginURL=R.pluginURL}getState(){return{pluginStatus:this.pluginStatus,pluginURL:this.pluginURL}}setMethods(R){this.applyArabicShaping=R.applyArabicShaping,this.processBidirectionalText=R.processBidirectionalText,this.processStyledBidirectionalText=R.processStyledBidirectionalText}isParsed(){return this.applyArabicShaping!=null&&this.processBidirectionalText!=null&&this.processStyledBidirectionalText!=null}getPluginURL(){return this.pluginURL}getRTLTextPluginStatus(){return this.pluginStatus}};class is{constructor(S,F){this.zoom=S,F?(this.now=F.now,this.fadeDuration=F.fadeDuration,this.zoomHistory=F.zoomHistory,this.transition=F.transition):(this.now=0,this.fadeDuration=0,this.zoomHistory=new Yn,this.transition={})}isSupportedScript(S){return function(F,W){for(let te of F)if(!va(te.charCodeAt(0),W))return!1;return!0}(S,_s.getRTLTextPluginStatus()==="loaded")}crossFadingFactor(){return this.fadeDuration===0?1:Math.min((this.now-this.zoomHistory.lastIntegerZoomTime)/this.fadeDuration,1)}getCrossfadeParameters(){let S=this.zoom,F=S-Math.floor(S),W=this.crossFadingFactor();return S>this.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:F+(1-F)*W}:{fromScale:.5,toScale:1,t:1-(1-W)*F}}}class $l{constructor(S,F){this.property=S,this.value=F,this.expression=function(W,te){if(jf(W))return new al(W,te);if(Dc(W)){let fe=_u(W,te);if(fe.result==="error")throw new Error(fe.value.map(pe=>`${pe.key}: ${pe.message}`).join(", "));return fe.value}{let fe=W;return te.type==="color"&&typeof W=="string"?fe=ar.parse(W):te.type!=="padding"||typeof W!="number"&&!Array.isArray(W)?te.type==="variableAnchorOffsetCollection"&&Array.isArray(W)&&(fe=Ji.parse(W)):fe=$r.parse(W),{kind:"constant",evaluate:()=>fe}}}(F===void 0?S.specification.default:F,S.specification)}isDataDriven(){return this.expression.kind==="source"||this.expression.kind==="composite"}possiblyEvaluate(S,F,W){return this.property.possiblyEvaluate(this,S,F,W)}}class ku{constructor(S){this.property=S,this.value=new $l(S,void 0)}transitioned(S,F){return new Nc(this.property,this.value,F,L({},S.transition,this.transition),S.now)}untransitioned(){return new Nc(this.property,this.value,null,{},0)}}class Yu{constructor(S){this._properties=S,this._values=Object.create(S.defaultTransitionablePropertyValues)}getValue(S){return g(this._values[S].value.value)}setValue(S,F){Object.prototype.hasOwnProperty.call(this._values,S)||(this._values[S]=new ku(this._values[S].property)),this._values[S].value=new $l(this._values[S].property,F===null?void 0:g(F))}getTransition(S){return g(this._values[S].transition)}setTransition(S,F){Object.prototype.hasOwnProperty.call(this._values,S)||(this._values[S]=new ku(this._values[S].property)),this._values[S].transition=g(F)||void 0}serialize(){let S={};for(let F of Object.keys(this._values)){let W=this.getValue(F);W!==void 0&&(S[F]=W);let te=this.getTransition(F);te!==void 0&&(S[`${F}-transition`]=te)}return S}transitioned(S,F){let W=new gu(this._properties);for(let te of Object.keys(this._values))W._values[te]=this._values[te].transitioned(S,F._values[te]);return W}untransitioned(){let S=new gu(this._properties);for(let F of Object.keys(this._values))S._values[F]=this._values[F].untransitioned();return S}}class Nc{constructor(S,F,W,te,fe){this.property=S,this.value=F,this.begin=fe+te.delay||0,this.end=this.begin+te.duration||0,S.specification.transition&&(te.delay||te.duration)&&(this.prior=W)}possiblyEvaluate(S,F,W){let te=S.now||0,fe=this.value.possiblyEvaluate(S,F,W),pe=this.prior;if(pe){if(te>this.end)return this.prior=null,fe;if(this.value.isDataDriven())return this.prior=null,fe;if(te=1)return 1;let ut=Ke*Ke,Lt=ut*Ke;return 4*(Ke<.5?Lt:3*(Ke-ut)+Lt-.75)}(ze))}}return fe}}class gu{constructor(S){this._properties=S,this._values=Object.create(S.defaultTransitioningPropertyValues)}possiblyEvaluate(S,F,W){let te=new Ac(this._properties);for(let fe of Object.keys(this._values))te._values[fe]=this._values[fe].possiblyEvaluate(S,F,W);return te}hasTransition(){for(let S of Object.keys(this._values))if(this._values[S].prior)return!0;return!1}}class Uc{constructor(S){this._properties=S,this._values=Object.create(S.defaultPropertyValues)}hasValue(S){return this._values[S].value!==void 0}getValue(S){return g(this._values[S].value)}setValue(S,F){this._values[S]=new $l(this._values[S].property,F===null?void 0:g(F))}serialize(){let S={};for(let F of Object.keys(this._values)){let W=this.getValue(F);W!==void 0&&(S[F]=W)}return S}possiblyEvaluate(S,F,W){let te=new Ac(this._properties);for(let fe of Object.keys(this._values))te._values[fe]=this._values[fe].possiblyEvaluate(S,F,W);return te}}class xu{constructor(S,F,W){this.property=S,this.value=F,this.parameters=W}isConstant(){return this.value.kind==="constant"}constantOr(S){return this.value.kind==="constant"?this.value.value:S}evaluate(S,F,W,te){return this.property.evaluate(this.value,this.parameters,S,F,W,te)}}class Ac{constructor(S){this._properties=S,this._values=Object.create(S.defaultPossiblyEvaluatedValues)}get(S){return this._values[S]}}class Ua{constructor(S){this.specification=S}possiblyEvaluate(S,F){if(S.isDataDriven())throw new Error("Value should not be data driven");return S.expression.evaluate(F)}interpolate(S,F,W){let te=Lo[this.specification.type];return te?te(S,F,W):S}}class oo{constructor(S,F){this.specification=S,this.overrides=F}possiblyEvaluate(S,F,W,te){return new xu(this,S.expression.kind==="constant"||S.expression.kind==="camera"?{kind:"constant",value:S.expression.evaluate(F,null,{},W,te)}:S.expression,F)}interpolate(S,F,W){if(S.value.kind!=="constant"||F.value.kind!=="constant")return S;if(S.value.value===void 0||F.value.value===void 0)return new xu(this,{kind:"constant",value:void 0},S.parameters);let te=Lo[this.specification.type];if(te){let fe=te(S.value.value,F.value.value,W);return new xu(this,{kind:"constant",value:fe},S.parameters)}return S}evaluate(S,F,W,te,fe,pe){return S.kind==="constant"?S.value:S.evaluate(F,W,te,fe,pe)}}class Vc extends oo{possiblyEvaluate(S,F,W,te){if(S.value===void 0)return new xu(this,{kind:"constant",value:void 0},F);if(S.expression.kind==="constant"){let fe=S.expression.evaluate(F,null,{},W,te),pe=S.property.specification.type==="resolvedImage"&&typeof fe!="string"?fe.name:fe,ze=this._calculate(pe,pe,pe,F);return new xu(this,{kind:"constant",value:ze},F)}if(S.expression.kind==="camera"){let fe=this._calculate(S.expression.evaluate({zoom:F.zoom-1}),S.expression.evaluate({zoom:F.zoom}),S.expression.evaluate({zoom:F.zoom+1}),F);return new xu(this,{kind:"constant",value:fe},F)}return new xu(this,S.expression,F)}evaluate(S,F,W,te,fe,pe){if(S.kind==="source"){let ze=S.evaluate(F,W,te,fe,pe);return this._calculate(ze,ze,ze,F)}return S.kind==="composite"?this._calculate(S.evaluate({zoom:Math.floor(F.zoom)-1},W,te),S.evaluate({zoom:Math.floor(F.zoom)},W,te),S.evaluate({zoom:Math.floor(F.zoom)+1},W,te),F):S.value}_calculate(S,F,W,te){return te.zoom>te.zoomHistory.lastIntegerZoom?{from:S,to:F}:{from:W,to:F}}interpolate(S){return S}}class hc{constructor(S){this.specification=S}possiblyEvaluate(S,F,W,te){if(S.value!==void 0){if(S.expression.kind==="constant"){let fe=S.expression.evaluate(F,null,{},W,te);return this._calculate(fe,fe,fe,F)}return this._calculate(S.expression.evaluate(new is(Math.floor(F.zoom-1),F)),S.expression.evaluate(new is(Math.floor(F.zoom),F)),S.expression.evaluate(new is(Math.floor(F.zoom+1),F)),F)}}_calculate(S,F,W,te){return te.zoom>te.zoomHistory.lastIntegerZoom?{from:S,to:F}:{from:W,to:F}}interpolate(S){return S}}class Ku{constructor(S){this.specification=S}possiblyEvaluate(S,F,W,te){return!!S.expression.evaluate(F,null,{},W,te)}interpolate(){return!1}}class ue{constructor(S){this.properties=S,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[];for(let F in S){let W=S[F];W.specification.overridable&&this.overridableProperties.push(F);let te=this.defaultPropertyValues[F]=new $l(W,void 0),fe=this.defaultTransitionablePropertyValues[F]=new ku(W);this.defaultTransitioningPropertyValues[F]=fe.untransitioned(),this.defaultPossiblyEvaluatedValues[F]=te.possiblyEvaluate({})}}}Di("DataDrivenProperty",oo),Di("DataConstantProperty",Ua),Di("CrossFadedDataDrivenProperty",Vc),Di("CrossFadedProperty",hc),Di("ColorRampProperty",Ku);let w="-transition";class B extends Fe{constructor(S,F){if(super(),this.id=S.id,this.type=S.type,this._featureFilter={filter:()=>!0,needGeometry:!1},S.type!=="custom"&&(this.metadata=S.metadata,this.minzoom=S.minzoom,this.maxzoom=S.maxzoom,S.type!=="background"&&(this.source=S.source,this.sourceLayer=S["source-layer"],this.filter=S.filter),F.layout&&(this._unevaluatedLayout=new Uc(F.layout)),F.paint)){this._transitionablePaint=new Yu(F.paint);for(let W in S.paint)this.setPaintProperty(W,S.paint[W],{validate:!1});for(let W in S.layout)this.setLayoutProperty(W,S.layout[W],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new Ac(F.paint)}}getCrossfadeParameters(){return this._crossfadeParameters}getLayoutProperty(S){return S==="visibility"?this.visibility:this._unevaluatedLayout.getValue(S)}setLayoutProperty(S,F,W={}){F!=null&&this._validate(Bn,`layers.${this.id}.layout.${S}`,S,F,W)||(S!=="visibility"?this._unevaluatedLayout.setValue(S,F):this.visibility=F)}getPaintProperty(S){return S.endsWith(w)?this._transitionablePaint.getTransition(S.slice(0,-11)):this._transitionablePaint.getValue(S)}setPaintProperty(S,F,W={}){if(F!=null&&this._validate(Tn,`layers.${this.id}.paint.${S}`,S,F,W))return!1;if(S.endsWith(w))return this._transitionablePaint.setTransition(S.slice(0,-11),F||void 0),!1;{let te=this._transitionablePaint._values[S],fe=te.property.specification["property-type"]==="cross-faded-data-driven",pe=te.value.isDataDriven(),ze=te.value;this._transitionablePaint.setValue(S,F),this._handleSpecialPaintPropertyUpdate(S);let Ke=this._transitionablePaint._values[S].value;return Ke.isDataDriven()||pe||fe||this._handleOverridablePaintPropertyUpdate(S,ze,Ke)}}_handleSpecialPaintPropertyUpdate(S){}_handleOverridablePaintPropertyUpdate(S,F,W){return!1}isHidden(S){return!!(this.minzoom&&S=this.maxzoom)||this.visibility==="none"}updateTransitions(S){this._transitioningPaint=this._transitionablePaint.transitioned(S,this._transitioningPaint)}hasTransition(){return this._transitioningPaint.hasTransition()}recalculate(S,F){S.getCrossfadeParameters&&(this._crossfadeParameters=S.getCrossfadeParameters()),this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(S,void 0,F)),this.paint=this._transitioningPaint.possiblyEvaluate(S,void 0,F)}serialize(){let S={id:this.id,type:this.type,source:this.source,"source-layer":this.sourceLayer,metadata:this.metadata,minzoom:this.minzoom,maxzoom:this.maxzoom,filter:this.filter,layout:this._unevaluatedLayout&&this._unevaluatedLayout.serialize(),paint:this._transitionablePaint&&this._transitionablePaint.serialize()};return this.visibility&&(S.layout=S.layout||{},S.layout.visibility=this.visibility),M(S,(F,W)=>!(F===void 0||W==="layout"&&!Object.keys(F).length||W==="paint"&&!Object.keys(F).length))}_validate(S,F,W,te,fe={}){return(!fe||fe.validate!==!1)&&Zi(this,S.call(Ei,{key:F,layerType:this.type,objectKey:W,value:te,styleSpec:ce,style:{glyphs:!0,sprite:!0}}))}is3D(){return!1}isTileClipped(){return!1}hasOffscreenPass(){return!1}resize(){}isStateDependent(){for(let S in this.paint._values){let F=this.paint.get(S);if(F instanceof xu&&Bl(F.property.specification)&&(F.value.kind==="source"||F.value.kind==="composite")&&F.value.isStateDependent)return!0}return!1}}let Q={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array};class ee{constructor(S,F){this._structArray=S,this._pos1=F*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8}}class le{constructor(){this.isTransferred=!1,this.capacity=-1,this.resize(0)}static serialize(S,F){return S._trim(),F&&(S.isTransferred=!0,F.push(S.arrayBuffer)),{length:S.length,arrayBuffer:S.arrayBuffer}}static deserialize(S){let F=Object.create(this.prototype);return F.arrayBuffer=S.arrayBuffer,F.length=S.length,F.capacity=S.arrayBuffer.byteLength/F.bytesPerElement,F._refreshViews(),F}_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(S){this.reserve(S),this.length=S}reserve(S){if(S>this.capacity){this.capacity=Math.max(S,Math.floor(5*this.capacity),128),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);let F=this.uint8;this._refreshViews(),F&&this.uint8.set(F)}}_refreshViews(){throw new Error("_refreshViews() must be implemented by each concrete StructArray layout")}}function qe(R,S=1){let F=0,W=0;return{members:R.map(te=>{let fe=Q[te.type].BYTES_PER_ELEMENT,pe=F=Xe(F,Math.max(S,fe)),ze=te.components||1;return W=Math.max(W,fe),F+=fe*ze,{name:te.name,type:te.type,components:ze,offset:pe}}),size:Xe(F,Math.max(W,S)),alignment:S}}function Xe(R,S){return Math.ceil(R/S)*S}class ot extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(S,F){let W=this.length;return this.resize(W+1),this.emplace(W,S,F)}emplace(S,F,W){let te=2*S;return this.int16[te+0]=F,this.int16[te+1]=W,S}}ot.prototype.bytesPerElement=4,Di("StructArrayLayout2i4",ot);class Tt extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(S,F,W){let te=this.length;return this.resize(te+1),this.emplace(te,S,F,W)}emplace(S,F,W,te){let fe=3*S;return this.int16[fe+0]=F,this.int16[fe+1]=W,this.int16[fe+2]=te,S}}Tt.prototype.bytesPerElement=6,Di("StructArrayLayout3i6",Tt);class Kt extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(S,F,W,te){let fe=this.length;return this.resize(fe+1),this.emplace(fe,S,F,W,te)}emplace(S,F,W,te,fe){let pe=4*S;return this.int16[pe+0]=F,this.int16[pe+1]=W,this.int16[pe+2]=te,this.int16[pe+3]=fe,S}}Kt.prototype.bytesPerElement=8,Di("StructArrayLayout4i8",Kt);class Jt extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(S,F,W,te,fe,pe){let ze=this.length;return this.resize(ze+1),this.emplace(ze,S,F,W,te,fe,pe)}emplace(S,F,W,te,fe,pe,ze){let Ke=6*S;return this.int16[Ke+0]=F,this.int16[Ke+1]=W,this.int16[Ke+2]=te,this.int16[Ke+3]=fe,this.int16[Ke+4]=pe,this.int16[Ke+5]=ze,S}}Jt.prototype.bytesPerElement=12,Di("StructArrayLayout2i4i12",Jt);class xr extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(S,F,W,te,fe,pe){let ze=this.length;return this.resize(ze+1),this.emplace(ze,S,F,W,te,fe,pe)}emplace(S,F,W,te,fe,pe,ze){let Ke=4*S,ut=8*S;return this.int16[Ke+0]=F,this.int16[Ke+1]=W,this.uint8[ut+4]=te,this.uint8[ut+5]=fe,this.uint8[ut+6]=pe,this.uint8[ut+7]=ze,S}}xr.prototype.bytesPerElement=8,Di("StructArrayLayout2i4ub8",xr);class Pr extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(S,F){let W=this.length;return this.resize(W+1),this.emplace(W,S,F)}emplace(S,F,W){let te=2*S;return this.float32[te+0]=F,this.float32[te+1]=W,S}}Pr.prototype.bytesPerElement=8,Di("StructArrayLayout2f8",Pr);class ve extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(S,F,W,te,fe,pe,ze,Ke,ut,Lt){let Qt=this.length;return this.resize(Qt+1),this.emplace(Qt,S,F,W,te,fe,pe,ze,Ke,ut,Lt)}emplace(S,F,W,te,fe,pe,ze,Ke,ut,Lt,Qt){let fr=10*S;return this.uint16[fr+0]=F,this.uint16[fr+1]=W,this.uint16[fr+2]=te,this.uint16[fr+3]=fe,this.uint16[fr+4]=pe,this.uint16[fr+5]=ze,this.uint16[fr+6]=Ke,this.uint16[fr+7]=ut,this.uint16[fr+8]=Lt,this.uint16[fr+9]=Qt,S}}ve.prototype.bytesPerElement=20,Di("StructArrayLayout10ui20",ve);class be extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(S,F,W,te,fe,pe,ze,Ke,ut,Lt,Qt,fr){let mr=this.length;return this.resize(mr+1),this.emplace(mr,S,F,W,te,fe,pe,ze,Ke,ut,Lt,Qt,fr)}emplace(S,F,W,te,fe,pe,ze,Ke,ut,Lt,Qt,fr,mr){let Lr=12*S;return this.int16[Lr+0]=F,this.int16[Lr+1]=W,this.int16[Lr+2]=te,this.int16[Lr+3]=fe,this.uint16[Lr+4]=pe,this.uint16[Lr+5]=ze,this.uint16[Lr+6]=Ke,this.uint16[Lr+7]=ut,this.int16[Lr+8]=Lt,this.int16[Lr+9]=Qt,this.int16[Lr+10]=fr,this.int16[Lr+11]=mr,S}}be.prototype.bytesPerElement=24,Di("StructArrayLayout4i4ui4i24",be);class Re extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(S,F,W){let te=this.length;return this.resize(te+1),this.emplace(te,S,F,W)}emplace(S,F,W,te){let fe=3*S;return this.float32[fe+0]=F,this.float32[fe+1]=W,this.float32[fe+2]=te,S}}Re.prototype.bytesPerElement=12,Di("StructArrayLayout3f12",Re);class Be extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)}emplaceBack(S){let F=this.length;return this.resize(F+1),this.emplace(F,S)}emplace(S,F){return this.uint32[1*S+0]=F,S}}Be.prototype.bytesPerElement=4,Di("StructArrayLayout1ul4",Be);class tt extends le{_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(S,F,W,te,fe,pe,ze,Ke,ut){let Lt=this.length;return this.resize(Lt+1),this.emplace(Lt,S,F,W,te,fe,pe,ze,Ke,ut)}emplace(S,F,W,te,fe,pe,ze,Ke,ut,Lt){let Qt=10*S,fr=5*S;return this.int16[Qt+0]=F,this.int16[Qt+1]=W,this.int16[Qt+2]=te,this.int16[Qt+3]=fe,this.int16[Qt+4]=pe,this.int16[Qt+5]=ze,this.uint32[fr+3]=Ke,this.uint16[Qt+8]=ut,this.uint16[Qt+9]=Lt,S}}tt.prototype.bytesPerElement=20,Di("StructArrayLayout6i1ul2ui20",tt);class We extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(S,F,W,te,fe,pe){let ze=this.length;return this.resize(ze+1),this.emplace(ze,S,F,W,te,fe,pe)}emplace(S,F,W,te,fe,pe,ze){let Ke=6*S;return this.int16[Ke+0]=F,this.int16[Ke+1]=W,this.int16[Ke+2]=te,this.int16[Ke+3]=fe,this.int16[Ke+4]=pe,this.int16[Ke+5]=ze,S}}We.prototype.bytesPerElement=12,Di("StructArrayLayout2i2i2i12",We);class it extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(S,F,W,te,fe){let pe=this.length;return this.resize(pe+1),this.emplace(pe,S,F,W,te,fe)}emplace(S,F,W,te,fe,pe){let ze=4*S,Ke=8*S;return this.float32[ze+0]=F,this.float32[ze+1]=W,this.float32[ze+2]=te,this.int16[Ke+6]=fe,this.int16[Ke+7]=pe,S}}it.prototype.bytesPerElement=16,Di("StructArrayLayout2f1f2i16",it);class Dt extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(S,F,W,te,fe,pe){let ze=this.length;return this.resize(ze+1),this.emplace(ze,S,F,W,te,fe,pe)}emplace(S,F,W,te,fe,pe,ze){let Ke=16*S,ut=4*S,Lt=8*S;return this.uint8[Ke+0]=F,this.uint8[Ke+1]=W,this.float32[ut+1]=te,this.float32[ut+2]=fe,this.int16[Lt+6]=pe,this.int16[Lt+7]=ze,S}}Dt.prototype.bytesPerElement=16,Di("StructArrayLayout2ub2f2i16",Dt);class Ht extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(S,F,W){let te=this.length;return this.resize(te+1),this.emplace(te,S,F,W)}emplace(S,F,W,te){let fe=3*S;return this.uint16[fe+0]=F,this.uint16[fe+1]=W,this.uint16[fe+2]=te,S}}Ht.prototype.bytesPerElement=6,Di("StructArrayLayout3ui6",Ht);class rr extends le{_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(S,F,W,te,fe,pe,ze,Ke,ut,Lt,Qt,fr,mr,Lr,zr,ui,yi){let dn=this.length;return this.resize(dn+1),this.emplace(dn,S,F,W,te,fe,pe,ze,Ke,ut,Lt,Qt,fr,mr,Lr,zr,ui,yi)}emplace(S,F,W,te,fe,pe,ze,Ke,ut,Lt,Qt,fr,mr,Lr,zr,ui,yi,dn){let Fi=24*S,ln=12*S,An=48*S;return this.int16[Fi+0]=F,this.int16[Fi+1]=W,this.uint16[Fi+2]=te,this.uint16[Fi+3]=fe,this.uint32[ln+2]=pe,this.uint32[ln+3]=ze,this.uint32[ln+4]=Ke,this.uint16[Fi+10]=ut,this.uint16[Fi+11]=Lt,this.uint16[Fi+12]=Qt,this.float32[ln+7]=fr,this.float32[ln+8]=mr,this.uint8[An+36]=Lr,this.uint8[An+37]=zr,this.uint8[An+38]=ui,this.uint32[ln+10]=yi,this.int16[Fi+22]=dn,S}}rr.prototype.bytesPerElement=48,Di("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48",rr);class dr extends le{_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(S,F,W,te,fe,pe,ze,Ke,ut,Lt,Qt,fr,mr,Lr,zr,ui,yi,dn,Fi,ln,An,pa,ro,Vo,Xa,sa,Mo,fo){let lo=this.length;return this.resize(lo+1),this.emplace(lo,S,F,W,te,fe,pe,ze,Ke,ut,Lt,Qt,fr,mr,Lr,zr,ui,yi,dn,Fi,ln,An,pa,ro,Vo,Xa,sa,Mo,fo)}emplace(S,F,W,te,fe,pe,ze,Ke,ut,Lt,Qt,fr,mr,Lr,zr,ui,yi,dn,Fi,ln,An,pa,ro,Vo,Xa,sa,Mo,fo,lo){let Xn=32*S,Ro=16*S;return this.int16[Xn+0]=F,this.int16[Xn+1]=W,this.int16[Xn+2]=te,this.int16[Xn+3]=fe,this.int16[Xn+4]=pe,this.int16[Xn+5]=ze,this.int16[Xn+6]=Ke,this.int16[Xn+7]=ut,this.uint16[Xn+8]=Lt,this.uint16[Xn+9]=Qt,this.uint16[Xn+10]=fr,this.uint16[Xn+11]=mr,this.uint16[Xn+12]=Lr,this.uint16[Xn+13]=zr,this.uint16[Xn+14]=ui,this.uint16[Xn+15]=yi,this.uint16[Xn+16]=dn,this.uint16[Xn+17]=Fi,this.uint16[Xn+18]=ln,this.uint16[Xn+19]=An,this.uint16[Xn+20]=pa,this.uint16[Xn+21]=ro,this.uint16[Xn+22]=Vo,this.uint32[Ro+12]=Xa,this.float32[Ro+13]=sa,this.float32[Ro+14]=Mo,this.uint16[Xn+30]=fo,this.uint16[Xn+31]=lo,S}}dr.prototype.bytesPerElement=64,Di("StructArrayLayout8i15ui1ul2f2ui64",dr);class Sr extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(S){let F=this.length;return this.resize(F+1),this.emplace(F,S)}emplace(S,F){return this.float32[1*S+0]=F,S}}Sr.prototype.bytesPerElement=4,Di("StructArrayLayout1f4",Sr);class Or extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(S,F,W){let te=this.length;return this.resize(te+1),this.emplace(te,S,F,W)}emplace(S,F,W,te){let fe=3*S;return this.uint16[6*S+0]=F,this.float32[fe+1]=W,this.float32[fe+2]=te,S}}Or.prototype.bytesPerElement=12,Di("StructArrayLayout1ui2f12",Or);class jr extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(S,F,W){let te=this.length;return this.resize(te+1),this.emplace(te,S,F,W)}emplace(S,F,W,te){let fe=4*S;return this.uint32[2*S+0]=F,this.uint16[fe+2]=W,this.uint16[fe+3]=te,S}}jr.prototype.bytesPerElement=8,Di("StructArrayLayout1ul2ui8",jr);class ii extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(S,F){let W=this.length;return this.resize(W+1),this.emplace(W,S,F)}emplace(S,F,W){let te=2*S;return this.uint16[te+0]=F,this.uint16[te+1]=W,S}}ii.prototype.bytesPerElement=4,Di("StructArrayLayout2ui4",ii);class Li extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(S){let F=this.length;return this.resize(F+1),this.emplace(F,S)}emplace(S,F){return this.uint16[1*S+0]=F,S}}Li.prototype.bytesPerElement=2,Di("StructArrayLayout1ui2",Li);class un extends le{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(S,F,W,te){let fe=this.length;return this.resize(fe+1),this.emplace(fe,S,F,W,te)}emplace(S,F,W,te,fe){let pe=4*S;return this.float32[pe+0]=F,this.float32[pe+1]=W,this.float32[pe+2]=te,this.float32[pe+3]=fe,S}}un.prototype.bytesPerElement=16,Di("StructArrayLayout4f16",un);class sn extends ee{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 u(this.anchorPointX,this.anchorPointY)}}sn.prototype.size=20;class In extends tt{get(S){return new sn(this,S)}}Di("CollisionBoxArray",In);class Kn extends ee{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(S){this._structArray.uint8[this._pos1+37]=S}get hidden(){return this._structArray.uint8[this._pos1+38]}set hidden(S){this._structArray.uint8[this._pos1+38]=S}get crossTileID(){return this._structArray.uint32[this._pos4+10]}set crossTileID(S){this._structArray.uint32[this._pos4+10]=S}get associatedIconIndex(){return this._structArray.int16[this._pos2+22]}}Kn.prototype.size=48;class Aa extends rr{get(S){return new Kn(this,S)}}Di("PlacedSymbolArray",Aa);class fa extends ee{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(S){this._structArray.uint32[this._pos4+12]=S}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]}}fa.prototype.size=64;class $a extends dr{get(S){return new fa(this,S)}}Di("SymbolInstanceArray",$a);class ko extends Sr{getoffsetX(S){return this.float32[1*S+0]}}Di("GlyphOffsetArray",ko);class Qa extends Tt{getx(S){return this.int16[3*S+0]}gety(S){return this.int16[3*S+1]}gettileUnitDistanceFromAnchor(S){return this.int16[3*S+2]}}Di("SymbolLineVertexArray",Qa);class mo extends ee{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]}}mo.prototype.size=12;class Bo extends Or{get(S){return new mo(this,S)}}Di("TextAnchorOffsetArray",Bo);class Is extends ee{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]}}Is.prototype.size=8;class As extends jr{get(S){return new Is(this,S)}}Di("FeatureIndexArray",As);class wo extends ot{}class To extends ot{}class dl extends ot{}class Nl extends Jt{}class Lu extends xr{}class ou extends Pr{}class $s extends ve{}class Ql extends be{}class dc extends Re{}class Tl extends Be{}class Al extends We{}class X extends Dt{}class se extends Ht{}class Te extends ii{}let Ne=qe([{name:"a_pos",components:2,type:"Int16"}],4),{members:He}=Ne;class Ye{constructor(S=[]){this.segments=S}prepareSegment(S,F,W,te){let fe=this.segments[this.segments.length-1];return S>Ye.MAX_VERTEX_ARRAY_LENGTH&&T(`Max vertices per segment is ${Ye.MAX_VERTEX_ARRAY_LENGTH}: bucket requested ${S}`),(!fe||fe.vertexLength+S>Ye.MAX_VERTEX_ARRAY_LENGTH||fe.sortKey!==te)&&(fe={vertexOffset:F.length,primitiveOffset:W.length,vertexLength:0,primitiveLength:0},te!==void 0&&(fe.sortKey=te),this.segments.push(fe)),fe}get(){return this.segments}destroy(){for(let S of this.segments)for(let F in S.vaos)S.vaos[F].destroy()}static simpleSegment(S,F,W,te){return new Ye([{vertexOffset:S,primitiveOffset:F,vertexLength:W,primitiveLength:te,vaos:{},sortKey:0}])}}function Ct(R,S){return 256*(R=E(Math.floor(R),0,255))+E(Math.floor(S),0,255)}Ye.MAX_VERTEX_ARRAY_LENGTH=Math.pow(2,16)-1,Di("SegmentVector",Ye);let nt=qe([{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"}]);var jt={exports:{}},gr={exports:{}};gr.exports=function(R,S){var F,W,te,fe,pe,ze,Ke,ut;for(W=R.length-(F=3&R.length),te=S,pe=3432918353,ze=461845907,ut=0;ut>>16)*pe&65535)<<16)&4294967295)<<15|Ke>>>17))*ze+(((Ke>>>16)*ze&65535)<<16)&4294967295)<<13|te>>>19))+((5*(te>>>16)&65535)<<16)&4294967295))+((58964+(fe>>>16)&65535)<<16);switch(Ke=0,F){case 3:Ke^=(255&R.charCodeAt(ut+2))<<16;case 2:Ke^=(255&R.charCodeAt(ut+1))<<8;case 1:te^=Ke=(65535&(Ke=(Ke=(65535&(Ke^=255&R.charCodeAt(ut)))*pe+(((Ke>>>16)*pe&65535)<<16)&4294967295)<<15|Ke>>>17))*ze+(((Ke>>>16)*ze&65535)<<16)&4294967295}return te^=R.length,te=2246822507*(65535&(te^=te>>>16))+((2246822507*(te>>>16)&65535)<<16)&4294967295,te=3266489909*(65535&(te^=te>>>13))+((3266489909*(te>>>16)&65535)<<16)&4294967295,(te^=te>>>16)>>>0};var yr=gr.exports,Gr={exports:{}};Gr.exports=function(R,S){for(var F,W=R.length,te=S^W,fe=0;W>=4;)F=1540483477*(65535&(F=255&R.charCodeAt(fe)|(255&R.charCodeAt(++fe))<<8|(255&R.charCodeAt(++fe))<<16|(255&R.charCodeAt(++fe))<<24))+((1540483477*(F>>>16)&65535)<<16),te=1540483477*(65535&te)+((1540483477*(te>>>16)&65535)<<16)^(F=1540483477*(65535&(F^=F>>>24))+((1540483477*(F>>>16)&65535)<<16)),W-=4,++fe;switch(W){case 3:te^=(255&R.charCodeAt(fe+2))<<16;case 2:te^=(255&R.charCodeAt(fe+1))<<8;case 1:te=1540483477*(65535&(te^=255&R.charCodeAt(fe)))+((1540483477*(te>>>16)&65535)<<16)}return te=1540483477*(65535&(te^=te>>>13))+((1540483477*(te>>>16)&65535)<<16),(te^=te>>>15)>>>0};var qr=yr,_i=Gr.exports;jt.exports=qr,jt.exports.murmur3=qr,jt.exports.murmur2=_i;var bi=o(jt.exports);class Xr{constructor(){this.ids=[],this.positions=[],this.indexed=!1}add(S,F,W,te){this.ids.push(ni(S)),this.positions.push(F,W,te)}getPositions(S){if(!this.indexed)throw new Error("Trying to get index, but feature positions are not indexed");let F=ni(S),W=0,te=this.ids.length-1;for(;W>1;this.ids[pe]>=F?te=pe:W=pe+1}let fe=[];for(;this.ids[W]===F;)fe.push({index:this.positions[3*W],start:this.positions[3*W+1],end:this.positions[3*W+2]}),W++;return fe}static serialize(S,F){let W=new Float64Array(S.ids),te=new Uint32Array(S.positions);return gi(W,te,0,W.length-1),F&&F.push(W.buffer,te.buffer),{ids:W,positions:te}}static deserialize(S){let F=new Xr;return F.ids=S.ids,F.positions=S.positions,F.indexed=!0,F}}function ni(R){let S=+R;return!isNaN(S)&&S<=Number.MAX_SAFE_INTEGER?S:bi(String(R))}function gi(R,S,F,W){for(;F>1],fe=F-1,pe=W+1;for(;;){do fe++;while(R[fe]te);if(fe>=pe)break;Pi(R,fe,pe),Pi(S,3*fe,3*pe),Pi(S,3*fe+1,3*pe+1),Pi(S,3*fe+2,3*pe+2)}pe-F`u_${te}`),this.type=W}setUniform(S,F,W){S.set(W.constantOr(this.value))}getBinding(S,F,W){return this.type==="color"?new Cn(S,F):new ti(S,F)}}class Ia{constructor(S,F){this.uniformNames=F.map(W=>`u_${W}`),this.patternFrom=null,this.patternTo=null,this.pixelRatioFrom=1,this.pixelRatioTo=1}setConstantPatternPositions(S,F){this.pixelRatioFrom=F.pixelRatio,this.pixelRatioTo=S.pixelRatio,this.patternFrom=F.tlbr,this.patternTo=S.tlbr}setUniform(S,F,W,te){let fe=te==="u_pattern_to"?this.patternTo:te==="u_pattern_from"?this.patternFrom:te==="u_pixel_ratio_to"?this.pixelRatioTo:te==="u_pixel_ratio_from"?this.pixelRatioFrom:null;fe&&S.set(fe)}getBinding(S,F,W){return W.substr(0,9)==="u_pattern"?new Rn(S,F):new ti(S,F)}}class yo{constructor(S,F,W,te){this.expression=S,this.type=W,this.maxValue=0,this.paintVertexAttributes=F.map(fe=>({name:`a_${fe}`,type:"Float32",components:W==="color"?2:1,offset:0})),this.paintVertexArray=new te}populatePaintArray(S,F,W,te,fe){let pe=this.paintVertexArray.length,ze=this.expression.evaluate(new is(0),F,{},te,[],fe);this.paintVertexArray.resize(S),this._setPaintValue(pe,S,ze)}updatePaintArray(S,F,W,te){let fe=this.expression.evaluate({zoom:0},W,te);this._setPaintValue(S,F,fe)}_setPaintValue(S,F,W){if(this.type==="color"){let te=ia(W);for(let fe=S;fe`u_${ze}_t`),this.type=W,this.useIntegerZoom=te,this.zoom=fe,this.maxValue=0,this.paintVertexAttributes=F.map(ze=>({name:`a_${ze}`,type:"Float32",components:W==="color"?4:2,offset:0})),this.paintVertexArray=new pe}populatePaintArray(S,F,W,te,fe){let pe=this.expression.evaluate(new is(this.zoom),F,{},te,[],fe),ze=this.expression.evaluate(new is(this.zoom+1),F,{},te,[],fe),Ke=this.paintVertexArray.length;this.paintVertexArray.resize(S),this._setPaintValue(Ke,S,pe,ze)}updatePaintArray(S,F,W,te){let fe=this.expression.evaluate({zoom:this.zoom},W,te),pe=this.expression.evaluate({zoom:this.zoom+1},W,te);this._setPaintValue(S,F,fe,pe)}_setPaintValue(S,F,W,te){if(this.type==="color"){let fe=ia(W),pe=ia(te);for(let ze=S;ze`#define HAS_UNIFORM_${te}`))}return S}getBinderAttributes(){let S=[];for(let F in this.binders){let W=this.binders[F];if(W instanceof yo||W instanceof Da)for(let te=0;te!0){this.programConfigurations={};for(let te of S)this.programConfigurations[te.id]=new Rs(te,F,W);this.needsUpload=!1,this._featureMap=new Xr,this._bufferOffset=0}populatePaintArrays(S,F,W,te,fe,pe){for(let ze in this.programConfigurations)this.programConfigurations[ze].populatePaintArrays(S,F,te,fe,pe);F.id!==void 0&&this._featureMap.add(F.id,W,this._bufferOffset,S),this._bufferOffset=S,this.needsUpload=!0}updatePaintArrays(S,F,W,te){for(let fe of W)this.needsUpload=this.programConfigurations[fe.id].updatePaintArrays(S,this._featureMap,F,fe,te)||this.needsUpload}get(S){return this.programConfigurations[S]}upload(S){if(this.needsUpload){for(let F in this.programConfigurations)this.programConfigurations[F].upload(S);this.needsUpload=!1}}destroy(){for(let S in this.programConfigurations)this.programConfigurations[S].destroy()}}function Zs(R,S){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-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"]}[R]||[R.replace(`${S}-`,"").replace(/-/g,"_")]}function Gn(R,S,F){let W={color:{source:Pr,composite:un},number:{source:Sr,composite:Pr}},te=function(fe){return{"line-pattern":{source:$s,composite:$s},"fill-pattern":{source:$s,composite:$s},"fill-extrusion-pattern":{source:$s,composite:$s}}[fe]}(R);return te&&te[F]||W[S][F]}Di("ConstantBinder",Ea),Di("CrossFadedConstantBinder",Ia),Di("SourceExpressionBinder",yo),Di("CrossFadedCompositeBinder",go),Di("CompositeExpressionBinder",Da),Di("ProgramConfiguration",Rs,{omit:["_buffers"]}),Di("ProgramConfigurationSet",Es);let Ha=8192,Fo=Math.pow(2,14)-1,Uo=-Fo-1;function Qs(R){let S=Ha/R.extent,F=R.loadGeometry();for(let W=0;Wpe.x+1||Kepe.y+1)&&T("Geometry exceeds allowed extent, reduce your vector tile buffer size")}}return F}function Sl(R,S){return{type:R.type,id:R.id,properties:R.properties,geometry:S?Qs(R):[]}}function bu(R,S,F,W,te){R.emplaceBack(2*S+(W+1)/2,2*F+(te+1)/2)}class vl{constructor(S){this.zoom=S.zoom,this.overscaling=S.overscaling,this.layers=S.layers,this.layerIds=this.layers.map(F=>F.id),this.index=S.index,this.hasPattern=!1,this.layoutVertexArray=new To,this.indexArray=new se,this.segments=new Ye,this.programConfigurations=new Es(S.layers,S.zoom),this.stateDependentLayerIds=this.layers.filter(F=>F.isStateDependent()).map(F=>F.id)}populate(S,F,W){let te=this.layers[0],fe=[],pe=null,ze=!1;te.type==="circle"&&(pe=te.layout.get("circle-sort-key"),ze=!pe.isConstant());for(let{feature:Ke,id:ut,index:Lt,sourceLayerIndex:Qt}of S){let fr=this.layers[0]._featureFilter.needGeometry,mr=Sl(Ke,fr);if(!this.layers[0]._featureFilter.filter(new is(this.zoom),mr,W))continue;let Lr=ze?pe.evaluate(mr,{},W):void 0,zr={id:ut,properties:Ke.properties,type:Ke.type,sourceLayerIndex:Qt,index:Lt,geometry:fr?mr.geometry:Qs(Ke),patterns:{},sortKey:Lr};fe.push(zr)}ze&&fe.sort((Ke,ut)=>Ke.sortKey-ut.sortKey);for(let Ke of fe){let{geometry:ut,index:Lt,sourceLayerIndex:Qt}=Ke,fr=S[Lt].feature;this.addFeature(Ke,ut,Lt,W),F.featureIndex.insert(fr,ut,Lt,Qt,this.index)}}update(S,F,W){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(S,F,this.stateDependentLayers,W)}isEmpty(){return this.layoutVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(S){this.uploaded||(this.layoutVertexBuffer=S.createVertexBuffer(this.layoutVertexArray,He),this.indexBuffer=S.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(S),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}addFeature(S,F,W,te){for(let fe of F)for(let pe of fe){let ze=pe.x,Ke=pe.y;if(ze<0||ze>=Ha||Ke<0||Ke>=Ha)continue;let ut=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,S.sortKey),Lt=ut.vertexLength;bu(this.layoutVertexArray,ze,Ke,-1,-1),bu(this.layoutVertexArray,ze,Ke,1,-1),bu(this.layoutVertexArray,ze,Ke,1,1),bu(this.layoutVertexArray,ze,Ke,-1,1),this.indexArray.emplaceBack(Lt,Lt+1,Lt+2),this.indexArray.emplaceBack(Lt,Lt+3,Lt+2),ut.vertexLength+=4,ut.primitiveLength+=2}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,S,W,{},te)}}function Sc(R,S){for(let F=0;F1){if(Ir(R,S))return!0;for(let W=0;W1?F:F.sub(S)._mult(te)._add(S))}function mi(R,S){let F,W,te,fe=!1;for(let pe=0;peS.y!=te.y>S.y&&S.x<(te.x-W.x)*(S.y-W.y)/(te.y-W.y)+W.x&&(fe=!fe)}return fe}function Ni(R,S){let F=!1;for(let W=0,te=R.length-1;WS.y!=pe.y>S.y&&S.x<(pe.x-fe.x)*(S.y-fe.y)/(pe.y-fe.y)+fe.x&&(F=!F)}return F}function Oi(R,S,F){let W=F[0],te=F[2];if(R.xte.x&&S.x>te.x||R.yte.y&&S.y>te.y)return!1;let fe=z(R,S,F[0]);return fe!==z(R,S,F[1])||fe!==z(R,S,F[2])||fe!==z(R,S,F[3])}function Mi(R,S,F){let W=S.paint.get(R).value;return W.kind==="constant"?W.value:F.programConfigurations.get(S.id).getMaxValue(R)}function Hn(R){return Math.sqrt(R[0]*R[0]+R[1]*R[1])}function Qi(R,S,F,W,te){if(!S[0]&&!S[1])return R;let fe=u.convert(S)._mult(te);F==="viewport"&&fe._rotate(-W);let pe=[];for(let ze=0;zeli(ui,zr))}(ut,Ke),mr=Qt?Lt*ze:Lt;for(let Lr of te)for(let zr of Lr){let ui=Qt?zr:li(zr,Ke),yi=mr,dn=qn([],[zr.x,zr.y,0,1],Ke);if(this.paint.get("circle-pitch-scale")==="viewport"&&this.paint.get("circle-pitch-alignment")==="map"?yi*=dn[3]/pe.cameraToCenterDistance:this.paint.get("circle-pitch-scale")==="map"&&this.paint.get("circle-pitch-alignment")==="viewport"&&(yi*=pe.cameraToCenterDistance/dn[3]),Ee(fr,ui,yi))return!0}return!1}}function li(R,S){let F=qn([],[R.x,R.y,0,1],S);return new u(F[0]/F[3],F[1]/F[3])}class mn extends vl{}let Ki;Di("HeatmapBucket",mn,{omit:["layers"]});var Ui={get paint(){return Ki=Ki||new ue({"heatmap-radius":new oo(ce.paint_heatmap["heatmap-radius"]),"heatmap-weight":new oo(ce.paint_heatmap["heatmap-weight"]),"heatmap-intensity":new Ua(ce.paint_heatmap["heatmap-intensity"]),"heatmap-color":new Ku(ce.paint_heatmap["heatmap-color"]),"heatmap-opacity":new Ua(ce.paint_heatmap["heatmap-opacity"])})}};function Bi(R,{width:S,height:F},W,te){if(te){if(te instanceof Uint8ClampedArray)te=new Uint8Array(te.buffer);else if(te.length!==S*F*W)throw new RangeError(`mismatched image size. expected: ${te.length} but got: ${S*F*W}`)}else te=new Uint8Array(S*F*W);return R.width=S,R.height=F,R.data=te,R}function vn(R,{width:S,height:F},W){if(S===R.width&&F===R.height)return;let te=Bi({},{width:S,height:F},W);Un(R,te,{x:0,y:0},{x:0,y:0},{width:Math.min(R.width,S),height:Math.min(R.height,F)},W),R.width=S,R.height=F,R.data=te.data}function Un(R,S,F,W,te,fe){if(te.width===0||te.height===0)return S;if(te.width>R.width||te.height>R.height||F.x>R.width-te.width||F.y>R.height-te.height)throw new RangeError("out of range source coordinates for image copy");if(te.width>S.width||te.height>S.height||W.x>S.width-te.width||W.y>S.height-te.height)throw new RangeError("out of range destination coordinates for image copy");let pe=R.data,ze=S.data;if(pe===ze)throw new Error("srcData equals dstData, so image is already copied");for(let Ke=0;Ke{S[R.evaluationKey]=Ke;let ut=R.expression.evaluate(S);te.data[pe+ze+0]=Math.floor(255*ut.r/ut.a),te.data[pe+ze+1]=Math.floor(255*ut.g/ut.a),te.data[pe+ze+2]=Math.floor(255*ut.b/ut.a),te.data[pe+ze+3]=Math.floor(255*ut.a)};if(R.clips)for(let pe=0,ze=0;pe80*F){ze=1/0,Ke=1/0;let Lt=-1/0,Qt=-1/0;for(let fr=F;frLt&&(Lt=mr),Lr>Qt&&(Qt=Lr)}ut=Math.max(Lt-ze,Qt-Ke),ut=ut!==0?32767/ut:0}return Ul(fe,pe,F,ze,Ke,ut,0),pe}function el(R,S,F,W,te){let fe;if(te===function(pe,ze,Ke,ut){let Lt=0;for(let Qt=ze,fr=Ke-ut;Qt0)for(let pe=S;pe=S;pe-=W)fe=qt(pe/W|0,R[pe],R[pe+1],fe);return fe&&ne(fe,fe.next)&&(Ve(fe),fe=fe.next),fe}function ol(R,S){if(!R)return R;S||(S=R);let F,W=R;do if(F=!1,W.steiner||!ne(W,W.next)&&de(W.prev,W,W.next)!==0)W=W.next;else{if(Ve(W),W=S=W.prev,W===W.next)break;F=!0}while(F||W!==S);return S}function Ul(R,S,F,W,te,fe,pe){if(!R)return;!pe&&fe&&function(Ke,ut,Lt,Qt){let fr=Ke;do fr.z===0&&(fr.z=D(fr.x,fr.y,ut,Lt,Qt)),fr.prevZ=fr.prev,fr.nextZ=fr.next,fr=fr.next;while(fr!==Ke);fr.prevZ.nextZ=null,fr.prevZ=null,function(mr){let Lr,zr=1;do{let ui,yi=mr;mr=null;let dn=null;for(Lr=0;yi;){Lr++;let Fi=yi,ln=0;for(let pa=0;pa0||An>0&&Fi;)ln!==0&&(An===0||!Fi||yi.z<=Fi.z)?(ui=yi,yi=yi.nextZ,ln--):(ui=Fi,Fi=Fi.nextZ,An--),dn?dn.nextZ=ui:mr=ui,ui.prevZ=dn,dn=ui;yi=Fi}dn.nextZ=null,zr*=2}while(Lr>1)}(fr)}(R,W,te,fe);let ze=R;for(;R.prev!==R.next;){let Ke=R.prev,ut=R.next;if(fe?Gs(R,W,te,fe):ls(R))S.push(Ke.i,R.i,ut.i),Ve(R),R=ut.next,ze=ut.next;else if((R=ut)===ze){pe?pe===1?Ul(R=Ks(ol(R),S),S,F,W,te,fe,2):pe===2&&Ta(R,S,F,W,te,fe):Ul(ol(R),S,F,W,te,fe,1);break}}}function ls(R){let S=R.prev,F=R,W=R.next;if(de(S,F,W)>=0)return!1;let te=S.x,fe=F.x,pe=W.x,ze=S.y,Ke=F.y,ut=W.y,Lt=tefe?te>pe?te:pe:fe>pe?fe:pe,mr=ze>Ke?ze>ut?ze:ut:Ke>ut?Ke:ut,Lr=W.next;for(;Lr!==S;){if(Lr.x>=Lt&&Lr.x<=fr&&Lr.y>=Qt&&Lr.y<=mr&&q(te,ze,fe,Ke,pe,ut,Lr.x,Lr.y)&&de(Lr.prev,Lr,Lr.next)>=0)return!1;Lr=Lr.next}return!0}function Gs(R,S,F,W){let te=R.prev,fe=R,pe=R.next;if(de(te,fe,pe)>=0)return!1;let ze=te.x,Ke=fe.x,ut=pe.x,Lt=te.y,Qt=fe.y,fr=pe.y,mr=zeKe?ze>ut?ze:ut:Ke>ut?Ke:ut,ui=Lt>Qt?Lt>fr?Lt:fr:Qt>fr?Qt:fr,yi=D(mr,Lr,S,F,W),dn=D(zr,ui,S,F,W),Fi=R.prevZ,ln=R.nextZ;for(;Fi&&Fi.z>=yi&&ln&&ln.z<=dn;){if(Fi.x>=mr&&Fi.x<=zr&&Fi.y>=Lr&&Fi.y<=ui&&Fi!==te&&Fi!==pe&&q(ze,Lt,Ke,Qt,ut,fr,Fi.x,Fi.y)&&de(Fi.prev,Fi,Fi.next)>=0||(Fi=Fi.prevZ,ln.x>=mr&&ln.x<=zr&&ln.y>=Lr&&ln.y<=ui&&ln!==te&&ln!==pe&&q(ze,Lt,Ke,Qt,ut,fr,ln.x,ln.y)&&de(ln.prev,ln,ln.next)>=0))return!1;ln=ln.nextZ}for(;Fi&&Fi.z>=yi;){if(Fi.x>=mr&&Fi.x<=zr&&Fi.y>=Lr&&Fi.y<=ui&&Fi!==te&&Fi!==pe&&q(ze,Lt,Ke,Qt,ut,fr,Fi.x,Fi.y)&&de(Fi.prev,Fi,Fi.next)>=0)return!1;Fi=Fi.prevZ}for(;ln&&ln.z<=dn;){if(ln.x>=mr&&ln.x<=zr&&ln.y>=Lr&&ln.y<=ui&&ln!==te&&ln!==pe&&q(ze,Lt,Ke,Qt,ut,fr,ln.x,ln.y)&&de(ln.prev,ln,ln.next)>=0)return!1;ln=ln.nextZ}return!0}function Ks(R,S){let F=R;do{let W=F.prev,te=F.next.next;!ne(W,te)&&we(W,F,F.next,te)&&Zt(W,te)&&Zt(te,W)&&(S.push(W.i,F.i,te.i),Ve(F),Ve(F.next),F=R=te),F=F.next}while(F!==R);return ol(F)}function Ta(R,S,F,W,te,fe){let pe=R;do{let ze=pe.next.next;for(;ze!==pe.prev;){if(pe.i!==ze.i&&K(pe,ze)){let Ke=hr(pe,ze);return pe=ol(pe,pe.next),Ke=ol(Ke,Ke.next),Ul(pe,S,F,W,te,fe,0),void Ul(Ke,S,F,W,te,fe,0)}ze=ze.next}pe=pe.next}while(pe!==R)}function sl(R,S){return R.x-S.x}function io(R,S){let F=function(te,fe){let pe=fe,ze=te.x,Ke=te.y,ut,Lt=-1/0;do{if(Ke<=pe.y&&Ke>=pe.next.y&&pe.next.y!==pe.y){let zr=pe.x+(Ke-pe.y)*(pe.next.x-pe.x)/(pe.next.y-pe.y);if(zr<=ze&&zr>Lt&&(Lt=zr,ut=pe.x=pe.x&&pe.x>=fr&&ze!==pe.x&&q(Keut.x||pe.x===ut.x&&Y(ut,pe)))&&(ut=pe,Lr=zr)}pe=pe.next}while(pe!==Qt);return ut}(R,S);if(!F)return S;let W=hr(F,R);return ol(W,W.next),ol(F,F.next)}function Y(R,S){return de(R.prev,R,S.prev)<0&&de(S.next,R,R.next)<0}function D(R,S,F,W,te){return(R=1431655765&((R=858993459&((R=252645135&((R=16711935&((R=(R-F)*te|0)|R<<8))|R<<4))|R<<2))|R<<1))|(S=1431655765&((S=858993459&((S=252645135&((S=16711935&((S=(S-W)*te|0)|S<<8))|S<<4))|S<<2))|S<<1))<<1}function J(R){let S=R,F=R;do(S.x=(R-pe)*(fe-ze)&&(R-pe)*(W-ze)>=(F-pe)*(S-ze)&&(F-pe)*(fe-ze)>=(te-pe)*(W-ze)}function K(R,S){return R.next.i!==S.i&&R.prev.i!==S.i&&!function(F,W){let te=F;do{if(te.i!==F.i&&te.next.i!==F.i&&te.i!==W.i&&te.next.i!==W.i&&we(te,te.next,F,W))return!0;te=te.next}while(te!==F);return!1}(R,S)&&(Zt(R,S)&&Zt(S,R)&&function(F,W){let te=F,fe=!1,pe=(F.x+W.x)/2,ze=(F.y+W.y)/2;do te.y>ze!=te.next.y>ze&&te.next.y!==te.y&&pe<(te.next.x-te.x)*(ze-te.y)/(te.next.y-te.y)+te.x&&(fe=!fe),te=te.next;while(te!==F);return fe}(R,S)&&(de(R.prev,R,S.prev)||de(R,S.prev,S))||ne(R,S)&&de(R.prev,R,R.next)>0&&de(S.prev,S,S.next)>0)}function de(R,S,F){return(S.y-R.y)*(F.x-S.x)-(S.x-R.x)*(F.y-S.y)}function ne(R,S){return R.x===S.x&&R.y===S.y}function we(R,S,F,W){let te=ft(de(R,S,F)),fe=ft(de(R,S,W)),pe=ft(de(F,W,R)),ze=ft(de(F,W,S));return te!==fe&&pe!==ze||!(te!==0||!Ue(R,F,S))||!(fe!==0||!Ue(R,W,S))||!(pe!==0||!Ue(F,R,W))||!(ze!==0||!Ue(F,S,W))}function Ue(R,S,F){return S.x<=Math.max(R.x,F.x)&&S.x>=Math.min(R.x,F.x)&&S.y<=Math.max(R.y,F.y)&&S.y>=Math.min(R.y,F.y)}function ft(R){return R>0?1:R<0?-1:0}function Zt(R,S){return de(R.prev,R,R.next)<0?de(R,S,R.next)>=0&&de(R,R.prev,S)>=0:de(R,S,R.prev)<0||de(R,R.next,S)<0}function hr(R,S){let F=et(R.i,R.x,R.y),W=et(S.i,S.x,S.y),te=R.next,fe=S.prev;return R.next=S,S.prev=R,F.next=te,te.prev=F,W.next=F,F.prev=W,fe.next=W,W.prev=fe,W}function qt(R,S,F,W){let te=et(R,S,F);return W?(te.next=W.next,te.prev=W,W.next.prev=te,W.next=te):(te.prev=te,te.next=te),te}function Ve(R){R.next.prev=R.prev,R.prev.next=R.next,R.prevZ&&(R.prevZ.nextZ=R.nextZ),R.nextZ&&(R.nextZ.prevZ=R.prevZ)}function et(R,S,F){return{i:R,x:S,y:F,prev:null,next:null,z:0,prevZ:null,nextZ:null,steiner:!1}}function at(R,S,F){let W=F.patternDependencies,te=!1;for(let fe of S){let pe=fe.paint.get(`${R}-pattern`);pe.isConstant()||(te=!0);let ze=pe.constantOr(null);ze&&(te=!0,W[ze.to]=!0,W[ze.from]=!0)}return te}function kt(R,S,F,W,te){let fe=te.patternDependencies;for(let pe of S){let ze=pe.paint.get(`${R}-pattern`).value;if(ze.kind!=="constant"){let Ke=ze.evaluate({zoom:W-1},F,{},te.availableImages),ut=ze.evaluate({zoom:W},F,{},te.availableImages),Lt=ze.evaluate({zoom:W+1},F,{},te.availableImages);Ke=Ke&&Ke.name?Ke.name:Ke,ut=ut&&ut.name?ut.name:ut,Lt=Lt&&Lt.name?Lt.name:Lt,fe[Ke]=!0,fe[ut]=!0,fe[Lt]=!0,F.patterns[pe.id]={min:Ke,mid:ut,max:Lt}}}return F}class Ot{constructor(S){this.zoom=S.zoom,this.overscaling=S.overscaling,this.layers=S.layers,this.layerIds=this.layers.map(F=>F.id),this.index=S.index,this.hasPattern=!1,this.patternFeatures=[],this.layoutVertexArray=new dl,this.indexArray=new se,this.indexArray2=new Te,this.programConfigurations=new Es(S.layers,S.zoom),this.segments=new Ye,this.segments2=new Ye,this.stateDependentLayerIds=this.layers.filter(F=>F.isStateDependent()).map(F=>F.id)}populate(S,F,W){this.hasPattern=at("fill",this.layers,F);let te=this.layers[0].layout.get("fill-sort-key"),fe=!te.isConstant(),pe=[];for(let{feature:ze,id:Ke,index:ut,sourceLayerIndex:Lt}of S){let Qt=this.layers[0]._featureFilter.needGeometry,fr=Sl(ze,Qt);if(!this.layers[0]._featureFilter.filter(new is(this.zoom),fr,W))continue;let mr=fe?te.evaluate(fr,{},W,F.availableImages):void 0,Lr={id:Ke,properties:ze.properties,type:ze.type,sourceLayerIndex:Lt,index:ut,geometry:Qt?fr.geometry:Qs(ze),patterns:{},sortKey:mr};pe.push(Lr)}fe&&pe.sort((ze,Ke)=>ze.sortKey-Ke.sortKey);for(let ze of pe){let{geometry:Ke,index:ut,sourceLayerIndex:Lt}=ze;if(this.hasPattern){let Qt=kt("fill",this.layers,ze,this.zoom,F);this.patternFeatures.push(Qt)}else this.addFeature(ze,Ke,ut,W,{});F.featureIndex.insert(S[ut].feature,Ke,ut,Lt,this.index)}}update(S,F,W){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(S,F,this.stateDependentLayers,W)}addFeatures(S,F,W){for(let te of this.patternFeatures)this.addFeature(te,te.geometry,te.index,F,W)}isEmpty(){return this.layoutVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(S){this.uploaded||(this.layoutVertexBuffer=S.createVertexBuffer(this.layoutVertexArray,Ml),this.indexBuffer=S.createIndexBuffer(this.indexArray),this.indexBuffer2=S.createIndexBuffer(this.indexArray2)),this.programConfigurations.upload(S),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(S,F,W,te,fe){for(let pe of Cf(F,500)){let ze=0;for(let mr of pe)ze+=mr.length;let Ke=this.segments.prepareSegment(ze,this.layoutVertexArray,this.indexArray),ut=Ke.vertexLength,Lt=[],Qt=[];for(let mr of pe){if(mr.length===0)continue;mr!==pe[0]&&Qt.push(Lt.length/2);let Lr=this.segments2.prepareSegment(mr.length,this.layoutVertexArray,this.indexArray2),zr=Lr.vertexLength;this.layoutVertexArray.emplaceBack(mr[0].x,mr[0].y),this.indexArray2.emplaceBack(zr+mr.length-1,zr),Lt.push(mr[0].x),Lt.push(mr[0].y);for(let ui=1;ui>3}if(te--,W===1||W===2)fe+=R.readSVarint(),pe+=R.readSVarint(),W===1&&(S&&ze.push(S),S=[]),S.push(new Nr(fe,pe));else{if(W!==7)throw new Error("unknown command "+W);S&&S.push(S[0].clone())}}return S&&ze.push(S),ze},hi.prototype.bbox=function(){var R=this._pbf;R.pos=this._geometry;for(var S=R.readVarint()+R.pos,F=1,W=0,te=0,fe=0,pe=1/0,ze=-1/0,Ke=1/0,ut=-1/0;R.pos>3}if(W--,F===1||F===2)(te+=R.readSVarint())ze&&(ze=te),(fe+=R.readSVarint())ut&&(ut=fe);else if(F!==7)throw new Error("unknown command "+F)}return[pe,Ke,ze,ut]},hi.prototype.toGeoJSON=function(R,S,F){var W,te,fe=this.extent*Math.pow(2,F),pe=this.extent*R,ze=this.extent*S,Ke=this.loadGeometry(),ut=hi.types[this.type];function Lt(mr){for(var Lr=0;Lr>3;te=pe===1?W.readString():pe===2?W.readFloat():pe===3?W.readDouble():pe===4?W.readVarint64():pe===5?W.readVarint():pe===6?W.readSVarint():pe===7?W.readBoolean():null}return te}(F))}qi.prototype.feature=function(R){if(R<0||R>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[R];var S=this._pbf.readVarint()+this._pbf.pos;return new tn(this._pbf,S,this.extent,this._keys,this._values)};var on=Ci;function On(R,S,F){if(R===3){var W=new on(F,F.readVarint()+F.pos);W.length&&(S[W.name]=W)}}br.VectorTile=function(R,S){this.layers=R.readFields(On,{},S)},br.VectorTileFeature=Ri,br.VectorTileLayer=Ci;let Ja=br.VectorTileFeature.types,co=Math.pow(2,13);function rs(R,S,F,W,te,fe,pe,ze){R.emplaceBack(S,F,2*Math.floor(W*co)+pe,te*co*2,fe*co*2,Math.round(ze))}class so{constructor(S){this.zoom=S.zoom,this.overscaling=S.overscaling,this.layers=S.layers,this.layerIds=this.layers.map(F=>F.id),this.index=S.index,this.hasPattern=!1,this.layoutVertexArray=new Nl,this.centroidVertexArray=new wo,this.indexArray=new se,this.programConfigurations=new Es(S.layers,S.zoom),this.segments=new Ye,this.stateDependentLayerIds=this.layers.filter(F=>F.isStateDependent()).map(F=>F.id)}populate(S,F,W){this.features=[],this.hasPattern=at("fill-extrusion",this.layers,F);for(let{feature:te,id:fe,index:pe,sourceLayerIndex:ze}of S){let Ke=this.layers[0]._featureFilter.needGeometry,ut=Sl(te,Ke);if(!this.layers[0]._featureFilter.filter(new is(this.zoom),ut,W))continue;let Lt={id:fe,sourceLayerIndex:ze,index:pe,geometry:Ke?ut.geometry:Qs(te),properties:te.properties,type:te.type,patterns:{}};this.hasPattern?this.features.push(kt("fill-extrusion",this.layers,Lt,this.zoom,F)):this.addFeature(Lt,Lt.geometry,pe,W,{}),F.featureIndex.insert(te,Lt.geometry,pe,ze,this.index,!0)}}addFeatures(S,F,W){for(let te of this.features){let{geometry:fe}=te;this.addFeature(te,fe,te.index,F,W)}}update(S,F,W){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(S,F,this.stateDependentLayers,W)}isEmpty(){return this.layoutVertexArray.length===0&&this.centroidVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(S){this.uploaded||(this.layoutVertexBuffer=S.createVertexBuffer(this.layoutVertexArray,cr),this.centroidVertexBuffer=S.createVertexBuffer(this.centroidVertexArray,ht.members,!0),this.indexBuffer=S.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(S),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.centroidVertexBuffer.destroy())}addFeature(S,F,W,te,fe){for(let pe of Cf(F,500)){let ze={x:0,y:0,vertexCount:0},Ke=0;for(let Lr of pe)Ke+=Lr.length;let ut=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray);for(let Lr of pe){if(Lr.length===0||ys(Lr))continue;let zr=0;for(let ui=0;ui=1){let dn=Lr[ui-1];if(!Zo(yi,dn)){ut.vertexLength+4>Ye.MAX_VERTEX_ARRAY_LENGTH&&(ut=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));let Fi=yi.sub(dn)._perp()._unit(),ln=dn.dist(yi);zr+ln>32768&&(zr=0),rs(this.layoutVertexArray,yi.x,yi.y,Fi.x,Fi.y,0,0,zr),rs(this.layoutVertexArray,yi.x,yi.y,Fi.x,Fi.y,0,1,zr),ze.x+=2*yi.x,ze.y+=2*yi.y,ze.vertexCount+=2,zr+=ln,rs(this.layoutVertexArray,dn.x,dn.y,Fi.x,Fi.y,0,0,zr),rs(this.layoutVertexArray,dn.x,dn.y,Fi.x,Fi.y,0,1,zr),ze.x+=2*dn.x,ze.y+=2*dn.y,ze.vertexCount+=2;let An=ut.vertexLength;this.indexArray.emplaceBack(An,An+2,An+1),this.indexArray.emplaceBack(An+1,An+2,An+3),ut.vertexLength+=4,ut.primitiveLength+=2}}}}if(ut.vertexLength+Ke>Ye.MAX_VERTEX_ARRAY_LENGTH&&(ut=this.segments.prepareSegment(Ke,this.layoutVertexArray,this.indexArray)),Ja[S.type]!=="Polygon")continue;let Lt=[],Qt=[],fr=ut.vertexLength;for(let Lr of pe)if(Lr.length!==0){Lr!==pe[0]&&Qt.push(Lt.length/2);for(let zr=0;zrHa)||R.y===S.y&&(R.y<0||R.y>Ha)}function ys(R){return R.every(S=>S.x<0)||R.every(S=>S.x>Ha)||R.every(S=>S.y<0)||R.every(S=>S.y>Ha)}let su;Di("FillExtrusionBucket",so,{omit:["layers","features"]});var Mv={get paint(){return su=su||new ue({"fill-extrusion-opacity":new Ua(ce["paint_fill-extrusion"]["fill-extrusion-opacity"]),"fill-extrusion-color":new oo(ce["paint_fill-extrusion"]["fill-extrusion-color"]),"fill-extrusion-translate":new Ua(ce["paint_fill-extrusion"]["fill-extrusion-translate"]),"fill-extrusion-translate-anchor":new Ua(ce["paint_fill-extrusion"]["fill-extrusion-translate-anchor"]),"fill-extrusion-pattern":new Vc(ce["paint_fill-extrusion"]["fill-extrusion-pattern"]),"fill-extrusion-height":new oo(ce["paint_fill-extrusion"]["fill-extrusion-height"]),"fill-extrusion-base":new oo(ce["paint_fill-extrusion"]["fill-extrusion-base"]),"fill-extrusion-vertical-gradient":new Ua(ce["paint_fill-extrusion"]["fill-extrusion-vertical-gradient"])})}};class Ev extends B{constructor(S){super(S,Mv)}createBucket(S){return new so(S)}queryRadius(){return Hn(this.paint.get("fill-extrusion-translate"))}is3D(){return!0}queryIntersectsFeature(S,F,W,te,fe,pe,ze,Ke){let ut=Qi(S,this.paint.get("fill-extrusion-translate"),this.paint.get("fill-extrusion-translate-anchor"),pe.angle,ze),Lt=this.paint.get("fill-extrusion-height").evaluate(F,W),Qt=this.paint.get("fill-extrusion-base").evaluate(F,W),fr=function(Lr,zr,ui,yi){let dn=[];for(let Fi of Lr){let ln=[Fi.x,Fi.y,0,1];qn(ln,ln,zr),dn.push(new u(ln[0]/ln[3],ln[1]/ln[3]))}return dn}(ut,Ke),mr=function(Lr,zr,ui,yi){let dn=[],Fi=[],ln=yi[8]*zr,An=yi[9]*zr,pa=yi[10]*zr,ro=yi[11]*zr,Vo=yi[8]*ui,Xa=yi[9]*ui,sa=yi[10]*ui,Mo=yi[11]*ui;for(let fo of Lr){let lo=[],Xn=[];for(let Ro of fo){let uo=Ro.x,$o=Ro.y,Ju=yi[0]*uo+yi[4]*$o+yi[12],qu=yi[1]*uo+yi[5]*$o+yi[13],Th=yi[2]*uo+yi[6]*$o+yi[14],$v=yi[3]*uo+yi[7]*$o+yi[15],ld=Th+pa,Ah=$v+ro,Gd=Ju+Vo,Hd=qu+Xa,jd=Th+sa,Tf=$v+Mo,Sh=new u((Ju+ln)/Ah,(qu+An)/Ah);Sh.z=ld/Ah,lo.push(Sh);let Ed=new u(Gd/Tf,Hd/Tf);Ed.z=jd/Tf,Xn.push(Ed)}dn.push(lo),Fi.push(Xn)}return[dn,Fi]}(te,Qt,Lt,Ke);return function(Lr,zr,ui){let yi=1/0;xt(ui,zr)&&(yi=Yv(ui,zr[0]));for(let dn=0;dnF.id),this.index=S.index,this.hasPattern=!1,this.patternFeatures=[],this.lineClipsArray=[],this.gradients={},this.layers.forEach(F=>{this.gradients[F.id]={}}),this.layoutVertexArray=new Lu,this.layoutVertexArray2=new ou,this.indexArray=new se,this.programConfigurations=new Es(S.layers,S.zoom),this.segments=new Ye,this.maxLineLength=0,this.stateDependentLayerIds=this.layers.filter(F=>F.isStateDependent()).map(F=>F.id)}populate(S,F,W){this.hasPattern=at("line",this.layers,F);let te=this.layers[0].layout.get("line-sort-key"),fe=!te.isConstant(),pe=[];for(let{feature:ze,id:Ke,index:ut,sourceLayerIndex:Lt}of S){let Qt=this.layers[0]._featureFilter.needGeometry,fr=Sl(ze,Qt);if(!this.layers[0]._featureFilter.filter(new is(this.zoom),fr,W))continue;let mr=fe?te.evaluate(fr,{},W):void 0,Lr={id:Ke,properties:ze.properties,type:ze.type,sourceLayerIndex:Lt,index:ut,geometry:Qt?fr.geometry:Qs(ze),patterns:{},sortKey:mr};pe.push(Lr)}fe&&pe.sort((ze,Ke)=>ze.sortKey-Ke.sortKey);for(let ze of pe){let{geometry:Ke,index:ut,sourceLayerIndex:Lt}=ze;if(this.hasPattern){let Qt=kt("line",this.layers,ze,this.zoom,F);this.patternFeatures.push(Qt)}else this.addFeature(ze,Ke,ut,W,{});F.featureIndex.insert(S[ut].feature,Ke,ut,Lt,this.index)}}update(S,F,W){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(S,F,this.stateDependentLayers,W)}addFeatures(S,F,W){for(let te of this.patternFeatures)this.addFeature(te,te.geometry,te.index,F,W)}isEmpty(){return this.layoutVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(S){this.uploaded||(this.layoutVertexArray2.length!==0&&(this.layoutVertexBuffer2=S.createVertexBuffer(this.layoutVertexArray2,vp)),this.layoutVertexBuffer=S.createVertexBuffer(this.layoutVertexArray,dp),this.indexBuffer=S.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(S),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}lineFeatureClips(S){if(S.properties&&Object.prototype.hasOwnProperty.call(S.properties,"mapbox_clip_start")&&Object.prototype.hasOwnProperty.call(S.properties,"mapbox_clip_end"))return{start:+S.properties.mapbox_clip_start,end:+S.properties.mapbox_clip_end}}addFeature(S,F,W,te,fe){let pe=this.layers[0].layout,ze=pe.get("line-join").evaluate(S,{}),Ke=pe.get("line-cap"),ut=pe.get("line-miter-limit"),Lt=pe.get("line-round-limit");this.lineClips=this.lineFeatureClips(S);for(let Qt of F)this.addLine(Qt,S,ze,Ke,ut,Lt);this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,S,W,fe,te)}addLine(S,F,W,te,fe,pe){if(this.distance=0,this.scaledDistance=0,this.totalDistance=0,this.lineClips){this.lineClipsArray.push(this.lineClips);for(let yi=0;yi=2&&S[Ke-1].equals(S[Ke-2]);)Ke--;let ut=0;for(;ut0;if(ro&&yi>ut){let Mo=fr.dist(mr);if(Mo>2*Lt){let fo=fr.sub(fr.sub(mr)._mult(Lt/Mo)._round());this.updateDistance(mr,fo),this.addCurrentVertex(fo,zr,0,0,Qt),mr=fo}}let Xa=mr&&Lr,sa=Xa?W:ze?"butt":te;if(Xa&&sa==="round"&&(Anfe&&(sa="bevel"),sa==="bevel"&&(An>2&&(sa="flipbevel"),An100)dn=ui.mult(-1);else{let Mo=An*zr.add(ui).mag()/zr.sub(ui).mag();dn._perp()._mult(Mo*(Vo?-1:1))}this.addCurrentVertex(fr,dn,0,0,Qt),this.addCurrentVertex(fr,dn.mult(-1),0,0,Qt)}else if(sa==="bevel"||sa==="fakeround"){let Mo=-Math.sqrt(An*An-1),fo=Vo?Mo:0,lo=Vo?0:Mo;if(mr&&this.addCurrentVertex(fr,zr,fo,lo,Qt),sa==="fakeround"){let Xn=Math.round(180*pa/Math.PI/20);for(let Ro=1;Ro2*Lt){let fo=fr.add(Lr.sub(fr)._mult(Lt/Mo)._round());this.updateDistance(fr,fo),this.addCurrentVertex(fo,ui,0,0,Qt),fr=fo}}}}addCurrentVertex(S,F,W,te,fe,pe=!1){let ze=F.y*te-F.x,Ke=-F.y-F.x*te;this.addHalfVertex(S,F.x+F.y*W,F.y-F.x*W,pe,!1,W,fe),this.addHalfVertex(S,ze,Ke,pe,!0,-te,fe),this.distance>Cv/2&&this.totalDistance===0&&(this.distance=0,this.updateScaledDistance(),this.addCurrentVertex(S,F,W,te,fe,pe))}addHalfVertex({x:S,y:F},W,te,fe,pe,ze,Ke){let ut=.5*(this.lineClips?this.scaledDistance*(Cv-1):this.scaledDistance);this.layoutVertexArray.emplaceBack((S<<1)+(fe?1:0),(F<<1)+(pe?1:0),Math.round(63*W)+128,Math.round(63*te)+128,1+(ze===0?0:ze<0?-1:1)|(63&ut)<<2,ut>>6),this.lineClips&&this.layoutVertexArray2.emplaceBack((this.scaledDistance-this.lineClips.start)/(this.lineClips.end-this.lineClips.start),this.lineClipsArray.length);let Lt=Ke.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,this.e2,Lt),Ke.primitiveLength++),pe?this.e2=Lt:this.e1=Lt}updateScaledDistance(){this.scaledDistance=this.lineClips?this.lineClips.start+(this.lineClips.end-this.lineClips.start)*this.distance/this.totalDistance:this.distance}updateDistance(S,F){this.distance+=S.dist(F),this.updateScaledDistance()}}let kv,ny;Di("LineBucket",Kv,{omit:["layers","patternFeatures"]});var fg={get paint(){return ny=ny||new ue({"line-opacity":new oo(ce.paint_line["line-opacity"]),"line-color":new oo(ce.paint_line["line-color"]),"line-translate":new Ua(ce.paint_line["line-translate"]),"line-translate-anchor":new Ua(ce.paint_line["line-translate-anchor"]),"line-width":new oo(ce.paint_line["line-width"]),"line-gap-width":new oo(ce.paint_line["line-gap-width"]),"line-offset":new oo(ce.paint_line["line-offset"]),"line-blur":new oo(ce.paint_line["line-blur"]),"line-dasharray":new hc(ce.paint_line["line-dasharray"]),"line-pattern":new Vc(ce.paint_line["line-pattern"]),"line-gradient":new Ku(ce.paint_line["line-gradient"])})},get layout(){return kv=kv||new ue({"line-cap":new Ua(ce.layout_line["line-cap"]),"line-join":new oo(ce.layout_line["line-join"]),"line-miter-limit":new Ua(ce.layout_line["line-miter-limit"]),"line-round-limit":new Ua(ce.layout_line["line-round-limit"]),"line-sort-key":new oo(ce.layout_line["line-sort-key"])})}};class oh extends oo{possiblyEvaluate(S,F){return F=new is(Math.floor(F.zoom),{now:F.now,fadeDuration:F.fadeDuration,zoomHistory:F.zoomHistory,transition:F.transition}),super.possiblyEvaluate(S,F)}evaluate(S,F,W,te){return F=L({},F,{zoom:Math.floor(F.zoom)}),super.evaluate(S,F,W,te)}}let hg;class ay extends B{constructor(S){super(S,fg),this.gradientVersion=0,hg||(hg=new oh(fg.paint.properties["line-width"].specification),hg.useIntegerZoom=!0)}_handleSpecialPaintPropertyUpdate(S){if(S==="line-gradient"){let F=this.gradientExpression();this.stepInterpolant=!!function(W){return W._styleExpression!==void 0}(F)&&F._styleExpression.expression instanceof _n,this.gradientVersion=(this.gradientVersion+1)%Number.MAX_SAFE_INTEGER}}gradientExpression(){return this._transitionablePaint._values["line-gradient"].value.expression}recalculate(S,F){super.recalculate(S,F),this.paint._values["line-floorwidth"]=hg.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,S)}createBucket(S){return new Kv(S)}queryRadius(S){let F=S,W=Gh(Mi("line-width",this,F),Mi("line-gap-width",this,F)),te=Mi("line-offset",this,F);return W/2+Math.abs(te)+Hn(this.paint.get("line-translate"))}queryIntersectsFeature(S,F,W,te,fe,pe,ze){let Ke=Qi(S,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),pe.angle,ze),ut=ze/2*Gh(this.paint.get("line-width").evaluate(F,W),this.paint.get("line-gap-width").evaluate(F,W)),Lt=this.paint.get("line-offset").evaluate(F,W);return Lt&&(te=function(Qt,fr){let mr=[];for(let Lr=0;Lr=3){for(let ui=0;ui0?S+2*R:R}let rm=qe([{name:"a_pos_offset",components:4,type:"Int16"},{name:"a_data",components:4,type:"Uint16"},{name:"a_pixeloffset",components:4,type:"Int16"}],4),w1=qe([{name:"a_projected_pos",components:3,type:"Float32"}],4);qe([{name:"a_fade_opacity",components:1,type:"Uint32"}],4);let T1=qe([{name:"a_placed",components:2,type:"Uint8"},{name:"a_shift",components:2,type:"Float32"},{name:"a_box_real",components:2,type:"Int16"}]);qe([{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"}]);let oy=qe([{name:"a_pos",components:2,type:"Int16"},{name:"a_anchor_pos",components:2,type:"Int16"},{name:"a_extrude",components:2,type:"Int16"}],4),im=qe([{name:"a_pos",components:2,type:"Float32"},{name:"a_radius",components:1,type:"Float32"},{name:"a_flags",components:2,type:"Int16"}],4);function nm(R,S,F){return R.sections.forEach(W=>{W.text=function(te,fe,pe){let ze=fe.layout.get("text-transform").evaluate(pe,{});return ze==="uppercase"?te=te.toLocaleUpperCase():ze==="lowercase"&&(te=te.toLocaleLowerCase()),_s.applyArabicShaping&&(te=_s.applyArabicShaping(te)),te}(W.text,S,F)}),R}qe([{name:"triangle",components:3,type:"Uint16"}]),qe([{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"}]),qe([{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"}]),qe([{type:"Float32",name:"offsetX"}]),qe([{type:"Int16",name:"x"},{type:"Int16",name:"y"},{type:"Int16",name:"tileUnitDistanceFromAnchor"}]),qe([{type:"Uint16",name:"textAnchor"},{type:"Float32",components:2,name:"textOffset"}]);let vc={"!":"\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","\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"};var eu=24,Sd=wu,sy=function(R,S,F,W,te){var fe,pe,ze=8*te-W-1,Ke=(1<>1,Lt=-7,Qt=F?te-1:0,fr=F?-1:1,mr=R[S+Qt];for(Qt+=fr,fe=mr&(1<<-Lt)-1,mr>>=-Lt,Lt+=ze;Lt>0;fe=256*fe+R[S+Qt],Qt+=fr,Lt-=8);for(pe=fe&(1<<-Lt)-1,fe>>=-Lt,Lt+=W;Lt>0;pe=256*pe+R[S+Qt],Qt+=fr,Lt-=8);if(fe===0)fe=1-ut;else{if(fe===Ke)return pe?NaN:1/0*(mr?-1:1);pe+=Math.pow(2,W),fe-=ut}return(mr?-1:1)*pe*Math.pow(2,fe-W)},A1=function(R,S,F,W,te,fe){var pe,ze,Ke,ut=8*fe-te-1,Lt=(1<>1,fr=te===23?Math.pow(2,-24)-Math.pow(2,-77):0,mr=W?0:fe-1,Lr=W?1:-1,zr=S<0||S===0&&1/S<0?1:0;for(S=Math.abs(S),isNaN(S)||S===1/0?(ze=isNaN(S)?1:0,pe=Lt):(pe=Math.floor(Math.log(S)/Math.LN2),S*(Ke=Math.pow(2,-pe))<1&&(pe--,Ke*=2),(S+=pe+Qt>=1?fr/Ke:fr*Math.pow(2,1-Qt))*Ke>=2&&(pe++,Ke/=2),pe+Qt>=Lt?(ze=0,pe=Lt):pe+Qt>=1?(ze=(S*Ke-1)*Math.pow(2,te),pe+=Qt):(ze=S*Math.pow(2,Qt-1)*Math.pow(2,te),pe=0));te>=8;R[F+mr]=255&ze,mr+=Lr,ze/=256,te-=8);for(pe=pe<0;R[F+mr]=255&pe,mr+=Lr,pe/=256,ut-=8);R[F+mr-Lr]|=128*zr};function wu(R){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(R)?R:new Uint8Array(R||0),this.pos=0,this.type=0,this.length=this.buf.length}wu.Varint=0,wu.Fixed64=1,wu.Bytes=2,wu.Fixed32=5;var Nx=4294967296,am=1/Nx,Mw=typeof TextDecoder=="undefined"?null:new TextDecoder("utf-8");function Lv(R){return R.type===wu.Bytes?R.readVarint()+R.pos:R.pos+1}function om(R,S,F){return F?4294967296*S+(R>>>0):4294967296*(S>>>0)+(R>>>0)}function Ew(R,S,F){var W=S<=16383?1:S<=2097151?2:S<=268435455?3:Math.floor(Math.log(S)/(7*Math.LN2));F.realloc(W);for(var te=F.pos-1;te>=R;te--)F.buf[te+W]=F.buf[te]}function Ux(R,S){for(var F=0;F>>8,R[F+2]=S>>>16,R[F+3]=S>>>24}function gk(R,S){return(R[S]|R[S+1]<<8|R[S+2]<<16)+(R[S+3]<<24)}wu.prototype={destroy:function(){this.buf=null},readFields:function(R,S,F){for(F=F||this.length;this.pos>3,fe=this.pos;this.type=7&W,R(te,S,this),this.pos===fe&&this.skip(W)}return S},readMessage:function(R,S){return this.readFields(R,S,this.readVarint()+this.pos)},readFixed32:function(){var R=ly(this.buf,this.pos);return this.pos+=4,R},readSFixed32:function(){var R=gk(this.buf,this.pos);return this.pos+=4,R},readFixed64:function(){var R=ly(this.buf,this.pos)+ly(this.buf,this.pos+4)*Nx;return this.pos+=8,R},readSFixed64:function(){var R=ly(this.buf,this.pos)+gk(this.buf,this.pos+4)*Nx;return this.pos+=8,R},readFloat:function(){var R=sy(this.buf,this.pos,!0,23,4);return this.pos+=4,R},readDouble:function(){var R=sy(this.buf,this.pos,!0,52,8);return this.pos+=8,R},readVarint:function(R){var S,F,W=this.buf;return S=127&(F=W[this.pos++]),F<128?S:(S|=(127&(F=W[this.pos++]))<<7,F<128?S:(S|=(127&(F=W[this.pos++]))<<14,F<128?S:(S|=(127&(F=W[this.pos++]))<<21,F<128?S:function(te,fe,pe){var ze,Ke,ut=pe.buf;if(ze=(112&(Ke=ut[pe.pos++]))>>4,Ke<128||(ze|=(127&(Ke=ut[pe.pos++]))<<3,Ke<128)||(ze|=(127&(Ke=ut[pe.pos++]))<<10,Ke<128)||(ze|=(127&(Ke=ut[pe.pos++]))<<17,Ke<128)||(ze|=(127&(Ke=ut[pe.pos++]))<<24,Ke<128)||(ze|=(1&(Ke=ut[pe.pos++]))<<31,Ke<128))return om(te,ze,fe);throw new Error("Expected varint not more than 10 bytes")}(S|=(15&(F=W[this.pos]))<<28,R,this))))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var R=this.readVarint();return R%2==1?(R+1)/-2:R/2},readBoolean:function(){return!!this.readVarint()},readString:function(){var R=this.readVarint()+this.pos,S=this.pos;return this.pos=R,R-S>=12&&Mw?function(F,W,te){return Mw.decode(F.subarray(W,te))}(this.buf,S,R):function(F,W,te){for(var fe="",pe=W;pe239?4:Lt>223?3:Lt>191?2:1;if(pe+fr>te)break;fr===1?Lt<128&&(Qt=Lt):fr===2?(192&(ze=F[pe+1]))==128&&(Qt=(31&Lt)<<6|63&ze)<=127&&(Qt=null):fr===3?(Ke=F[pe+2],(192&(ze=F[pe+1]))==128&&(192&Ke)==128&&((Qt=(15&Lt)<<12|(63&ze)<<6|63&Ke)<=2047||Qt>=55296&&Qt<=57343)&&(Qt=null)):fr===4&&(Ke=F[pe+2],ut=F[pe+3],(192&(ze=F[pe+1]))==128&&(192&Ke)==128&&(192&ut)==128&&((Qt=(15&Lt)<<18|(63&ze)<<12|(63&Ke)<<6|63&ut)<=65535||Qt>=1114112)&&(Qt=null)),Qt===null?(Qt=65533,fr=1):Qt>65535&&(Qt-=65536,fe+=String.fromCharCode(Qt>>>10&1023|55296),Qt=56320|1023&Qt),fe+=String.fromCharCode(Qt),pe+=fr}return fe}(this.buf,S,R)},readBytes:function(){var R=this.readVarint()+this.pos,S=this.buf.subarray(this.pos,R);return this.pos=R,S},readPackedVarint:function(R,S){if(this.type!==wu.Bytes)return R.push(this.readVarint(S));var F=Lv(this);for(R=R||[];this.pos127;);else if(S===wu.Bytes)this.pos=this.readVarint()+this.pos;else if(S===wu.Fixed32)this.pos+=4;else{if(S!==wu.Fixed64)throw new Error("Unimplemented type: "+S);this.pos+=8}},writeTag:function(R,S){this.writeVarint(R<<3|S)},realloc:function(R){for(var S=this.length||16;S268435455||R<0?function(S,F){var W,te;if(S>=0?(W=S%4294967296|0,te=S/4294967296|0):(te=~(-S/4294967296),4294967295^(W=~(-S%4294967296))?W=W+1|0:(W=0,te=te+1|0)),S>=18446744073709552e3||S<-18446744073709552e3)throw new Error("Given varint doesn't fit into 10 bytes");F.realloc(10),function(fe,pe,ze){ze.buf[ze.pos++]=127&fe|128,fe>>>=7,ze.buf[ze.pos++]=127&fe|128,fe>>>=7,ze.buf[ze.pos++]=127&fe|128,fe>>>=7,ze.buf[ze.pos++]=127&fe|128,ze.buf[ze.pos]=127&(fe>>>=7)}(W,0,F),function(fe,pe){var ze=(7&fe)<<4;pe.buf[pe.pos++]|=ze|((fe>>>=3)?128:0),fe&&(pe.buf[pe.pos++]=127&fe|((fe>>>=7)?128:0),fe&&(pe.buf[pe.pos++]=127&fe|((fe>>>=7)?128:0),fe&&(pe.buf[pe.pos++]=127&fe|((fe>>>=7)?128:0),fe&&(pe.buf[pe.pos++]=127&fe|((fe>>>=7)?128:0),fe&&(pe.buf[pe.pos++]=127&fe)))))}(te,F)}(R,this):(this.realloc(4),this.buf[this.pos++]=127&R|(R>127?128:0),R<=127||(this.buf[this.pos++]=127&(R>>>=7)|(R>127?128:0),R<=127||(this.buf[this.pos++]=127&(R>>>=7)|(R>127?128:0),R<=127||(this.buf[this.pos++]=R>>>7&127))))},writeSVarint:function(R){this.writeVarint(R<0?2*-R-1:2*R)},writeBoolean:function(R){this.writeVarint(!!R)},writeString:function(R){R=String(R),this.realloc(4*R.length),this.pos++;var S=this.pos;this.pos=function(W,te,fe){for(var pe,ze,Ke=0;Ke55295&&pe<57344){if(!ze){pe>56319||Ke+1===te.length?(W[fe++]=239,W[fe++]=191,W[fe++]=189):ze=pe;continue}if(pe<56320){W[fe++]=239,W[fe++]=191,W[fe++]=189,ze=pe;continue}pe=ze-55296<<10|pe-56320|65536,ze=null}else ze&&(W[fe++]=239,W[fe++]=191,W[fe++]=189,ze=null);pe<128?W[fe++]=pe:(pe<2048?W[fe++]=pe>>6|192:(pe<65536?W[fe++]=pe>>12|224:(W[fe++]=pe>>18|240,W[fe++]=pe>>12&63|128),W[fe++]=pe>>6&63|128),W[fe++]=63&pe|128)}return fe}(this.buf,R,this.pos);var F=this.pos-S;F>=128&&Ew(S,F,this),this.pos=S-1,this.writeVarint(F),this.pos+=F},writeFloat:function(R){this.realloc(4),A1(this.buf,R,this.pos,!0,23,4),this.pos+=4},writeDouble:function(R){this.realloc(8),A1(this.buf,R,this.pos,!0,52,8),this.pos+=8},writeBytes:function(R){var S=R.length;this.writeVarint(S),this.realloc(S);for(var F=0;F=128&&Ew(F,W,this),this.pos=F-1,this.writeVarint(W),this.pos+=W},writeMessage:function(R,S,F){this.writeTag(R,wu.Bytes),this.writeRawMessage(S,F)},writePackedVarint:function(R,S){S.length&&this.writeMessage(R,Ux,S)},writePackedSVarint:function(R,S){S.length&&this.writeMessage(R,D9,S)},writePackedBoolean:function(R,S){S.length&&this.writeMessage(R,O9,S)},writePackedFloat:function(R,S){S.length&&this.writeMessage(R,F9,S)},writePackedDouble:function(R,S){S.length&&this.writeMessage(R,z9,S)},writePackedFixed32:function(R,S){S.length&&this.writeMessage(R,CQ,S)},writePackedSFixed32:function(R,S){S.length&&this.writeMessage(R,q9,S)},writePackedFixed64:function(R,S){S.length&&this.writeMessage(R,B9,S)},writePackedSFixed64:function(R,S){S.length&&this.writeMessage(R,N9,S)},writeBytesField:function(R,S){this.writeTag(R,wu.Bytes),this.writeBytes(S)},writeFixed32Field:function(R,S){this.writeTag(R,wu.Fixed32),this.writeFixed32(S)},writeSFixed32Field:function(R,S){this.writeTag(R,wu.Fixed32),this.writeSFixed32(S)},writeFixed64Field:function(R,S){this.writeTag(R,wu.Fixed64),this.writeFixed64(S)},writeSFixed64Field:function(R,S){this.writeTag(R,wu.Fixed64),this.writeSFixed64(S)},writeVarintField:function(R,S){this.writeTag(R,wu.Varint),this.writeVarint(S)},writeSVarintField:function(R,S){this.writeTag(R,wu.Varint),this.writeSVarint(S)},writeStringField:function(R,S){this.writeTag(R,wu.Bytes),this.writeString(S)},writeFloatField:function(R,S){this.writeTag(R,wu.Fixed32),this.writeFloat(S)},writeDoubleField:function(R,S){this.writeTag(R,wu.Fixed64),this.writeDouble(S)},writeBooleanField:function(R,S){this.writeVarintField(R,!!S)}};var tS=o(Sd);let rS=3;function kQ(R,S,F){R===1&&F.readMessage(U9,S)}function U9(R,S,F){if(R===3){let{id:W,bitmap:te,width:fe,height:pe,left:ze,top:Ke,advance:ut}=F.readMessage(mk,{});S.push({id:W,bitmap:new na({width:fe+2*rS,height:pe+2*rS},te),metrics:{width:fe,height:pe,left:ze,top:Ke,advance:ut}})}}function mk(R,S,F){R===1?S.id=F.readVarint():R===2?S.bitmap=F.readBytes():R===3?S.width=F.readVarint():R===4?S.height=F.readVarint():R===5?S.left=F.readSVarint():R===6?S.top=F.readSVarint():R===7&&(S.advance=F.readVarint())}let yk=rS;function iS(R){let S=0,F=0;for(let pe of R)S+=pe.w*pe.h,F=Math.max(F,pe.w);R.sort((pe,ze)=>ze.h-pe.h);let W=[{x:0,y:0,w:Math.max(Math.ceil(Math.sqrt(S/.95)),F),h:1/0}],te=0,fe=0;for(let pe of R)for(let ze=W.length-1;ze>=0;ze--){let Ke=W[ze];if(!(pe.w>Ke.w||pe.h>Ke.h)){if(pe.x=Ke.x,pe.y=Ke.y,fe=Math.max(fe,pe.y+pe.h),te=Math.max(te,pe.x+pe.w),pe.w===Ke.w&&pe.h===Ke.h){let ut=W.pop();ze=0&&W>=S&&Lw[this.text.charCodeAt(W)];W--)F--;this.text=this.text.substring(S,F),this.sectionIndex=this.sectionIndex.slice(S,F)}substring(S,F){let W=new S1;return W.text=this.text.substring(S,F),W.sectionIndex=this.sectionIndex.slice(S,F),W.sections=this.sections,W}toString(){return this.text}getMaxScale(){return this.sectionIndex.reduce((S,F)=>Math.max(S,this.sections[F].scale),0)}addTextSection(S,F){this.text+=S.text,this.sections.push(Gx.forText(S.scale,S.fontStack||F));let W=this.sections.length-1;for(let te=0;te=63743?null:++this.imageSectionID:(this.imageSectionID=57344,this.imageSectionID)}}function Hx(R,S,F,W,te,fe,pe,ze,Ke,ut,Lt,Qt,fr,mr,Lr){let zr=S1.fromFeature(R,te),ui;Qt===i.ah.vertical&&zr.verticalizePunctuation();let{processBidirectionalText:yi,processStyledBidirectionalText:dn}=_s;if(yi&&zr.sections.length===1){ui=[];let An=yi(zr.toString(),M1(zr,ut,fe,S,W,mr));for(let pa of An){let ro=new S1;ro.text=pa,ro.sections=zr.sections;for(let Vo=0;Vo0&&ep>Rf&&(Rf=ep)}else{let Gc=ro[tu.fontStack],Zf=Gc&&Gc[$u];if(Zf&&Zf.rect)I1=Zf.rect,ff=Zf.metrics;else{let ep=pa[tu.fontStack],gg=ep&&ep[$u];if(!gg)continue;ff=gg.metrics}Rv=(Sh-tu.scale)*eu}Qv?(An.verticalizable=!0,Hh.push({glyph:$u,imageName:p0,x:$o,y:Ju+Rv,vertical:Qv,scale:tu.scale,fontStack:tu.fontStack,sectionIndex:pc,metrics:ff,rect:I1}),$o+=Gp*tu.scale+Xn):(Hh.push({glyph:$u,imageName:p0,x:$o,y:Ju+Rv,vertical:Qv,scale:tu.scale,fontStack:tu.fontStack,sectionIndex:pc,metrics:ff,rect:I1}),$o+=ff.advance*tu.scale+Xn)}Hh.length!==0&&(qu=Math.max($o-Xn,qu),sm(Hh,0,Hh.length-1,$v,Rf)),$o=0;let Iv=sa*Sh+Rf;ud.lineOffset=Math.max(Rf,Ed),Ju+=Iv,Th=Math.max(Iv,Th),++ld}var Ah;let Gd=Ju-wh,{horizontalAlign:Hd,verticalAlign:jd}=Iw(Mo);(function(Tf,Sh,Ed,ud,Hh,Rf,Iv,lv,tu){let pc=(Sh-Ed)*Hh,$u=0;$u=Rf!==Iv?-lv*ud-wh:(-ud*tu+.5)*Iv;for(let Rv of Tf)for(let ff of Rv.positionedGlyphs)ff.x+=pc,ff.y+=$u})(An.positionedLines,$v,Hd,jd,qu,Th,sa,Gd,Xa.length),An.top+=-jd*Gd,An.bottom=An.top+Gd,An.left+=-Hd*qu,An.right=An.left+qu}(ln,S,F,W,ui,pe,ze,Ke,Qt,ut,fr,Lr),!function(An){for(let pa of An)if(pa.positionedGlyphs.length!==0)return!1;return!0}(Fi)&&ln}let Lw={9:!0,10:!0,11:!0,12:!0,13:!0,32:!0},V9={10:!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},G9={40:!0};function _k(R,S,F,W,te,fe){if(S.imageName){let pe=W[S.imageName];return pe?pe.displaySize[0]*S.scale*eu/fe+te:0}{let pe=F[S.fontStack],ze=pe&&pe[R];return ze?ze.metrics.advance*S.scale+te:0}}function xk(R,S,F,W){let te=Math.pow(R-S,2);return W?R=0,ut=0;for(let Qt=0;Qtut){let Lt=Math.ceil(fe/ut);te*=Lt/pe,pe=Lt}return{x1:W,y1:te,x2:W+fe,y2:te+pe}}function Tk(R,S,F,W,te,fe){let pe=R.image,ze;if(pe.content){let ui=pe.content,yi=pe.pixelRatio||1;ze=[ui[0]/yi,ui[1]/yi,pe.displaySize[0]-ui[2]/yi,pe.displaySize[1]-ui[3]/yi]}let Ke=S.left*fe,ut=S.right*fe,Lt,Qt,fr,mr;F==="width"||F==="both"?(mr=te[0]+Ke-W[3],Qt=te[0]+ut+W[1]):(mr=te[0]+(Ke+ut-pe.displaySize[0])/2,Qt=mr+pe.displaySize[0]);let Lr=S.top*fe,zr=S.bottom*fe;return F==="height"||F==="both"?(Lt=te[1]+Lr-W[0],fr=te[1]+zr+W[2]):(Lt=te[1]+(Lr+zr-pe.displaySize[1])/2,fr=Lt+pe.displaySize[1]),{image:pe,top:Lt,right:Qt,bottom:fr,left:mr,collisionPadding:ze}}let Wx=255,v0=128,lm=Wx*v0;function Ak(R,S){let{expression:F}=S;if(F.kind==="constant")return{kind:"constant",layoutSize:F.evaluate(new is(R+1))};if(F.kind==="source")return{kind:"source"};{let{zoomStops:W,interpolationType:te}=F,fe=0;for(;fepe.id),this.index=S.index,this.pixelRatio=S.pixelRatio,this.sourceLayerIndex=S.sourceLayerIndex,this.hasPattern=!1,this.hasRTLText=!1,this.sortKeyRanges=[],this.collisionCircleArray=[],this.placementInvProjMatrix=Ii([]),this.placementViewportMatrix=Ii([]);let F=this.layers[0]._unevaluatedLayout._values;this.textSizeData=Ak(this.zoom,F["text-size"]),this.iconSizeData=Ak(this.zoom,F["icon-size"]);let W=this.layers[0].layout,te=W.get("symbol-sort-key"),fe=W.get("symbol-z-order");this.canOverlap=nS(W,"text-overlap","text-allow-overlap")!=="never"||nS(W,"icon-overlap","icon-allow-overlap")!=="never"||W.get("text-ignore-placement")||W.get("icon-ignore-placement"),this.sortFeaturesByKey=fe!=="viewport-y"&&!te.isConstant(),this.sortFeaturesByY=(fe==="viewport-y"||fe==="auto"&&!this.sortFeaturesByKey)&&this.canOverlap,W.get("symbol-placement")==="point"&&(this.writingModes=W.get("text-writing-mode").map(pe=>i.ah[pe])),this.stateDependentLayerIds=this.layers.filter(pe=>pe.isStateDependent()).map(pe=>pe.id),this.sourceID=S.sourceID}createArrays(){this.text=new sS(new Es(this.layers,this.zoom,S=>/^text/.test(S))),this.icon=new sS(new Es(this.layers,this.zoom,S=>/^icon/.test(S))),this.glyphOffsetArray=new ko,this.lineVertexArray=new Qa,this.symbolInstances=new $a,this.textAnchorOffsets=new Bo}calculateGlyphDependencies(S,F,W,te,fe){for(let pe=0;pe0)&&(pe.value.kind!=="constant"||pe.value.value.length>0),Lt=Ke.value.kind!=="constant"||!!Ke.value.value||Object.keys(Ke.parameters).length>0,Qt=fe.get("symbol-sort-key");if(this.features=[],!ut&&!Lt)return;let fr=F.iconDependencies,mr=F.glyphDependencies,Lr=F.availableImages,zr=new is(this.zoom);for(let{feature:ui,id:yi,index:dn,sourceLayerIndex:Fi}of S){let ln=te._featureFilter.needGeometry,An=Sl(ui,ln);if(!te._featureFilter.filter(zr,An,W))continue;let pa,ro;if(ln||(An.geometry=Qs(ui)),ut){let Xa=te.getValueAndResolveTokens("text-field",An,W,Lr),sa=ri.factory(Xa),Mo=this.hasRTLText=this.hasRTLText||oS(sa);(!Mo||_s.getRTLTextPluginStatus()==="unavailable"||Mo&&_s.isParsed())&&(pa=nm(sa,te,An))}if(Lt){let Xa=te.getValueAndResolveTokens("icon-image",An,W,Lr);ro=Xa instanceof en?Xa:en.fromString(Xa)}if(!pa&&!ro)continue;let Vo=this.sortFeaturesByKey?Qt.evaluate(An,{},W):void 0;if(this.features.push({id:yi,text:pa,icon:ro,index:dn,sourceLayerIndex:Fi,geometry:An.geometry,properties:ui.properties,type:j9[ui.type],sortKey:Vo}),ro&&(fr[ro.name]=!0),pa){let Xa=pe.evaluate(An,{},W).join(","),sa=fe.get("text-rotation-alignment")!=="viewport"&&fe.get("symbol-placement")!=="point";this.allowVerticalPlacement=this.writingModes&&this.writingModes.indexOf(i.ah.vertical)>=0;for(let Mo of pa.sections)if(Mo.image)fr[Mo.image.name]=!0;else{let fo=Ka(pa.toString()),lo=Mo.fontStack||Xa,Xn=mr[lo]=mr[lo]||{};this.calculateGlyphDependencies(Mo.text,Xn,sa,this.allowVerticalPlacement,fo)}}}fe.get("symbol-placement")==="line"&&(this.features=function(ui){let yi={},dn={},Fi=[],ln=0;function An(Xa){Fi.push(ui[Xa]),ln++}function pa(Xa,sa,Mo){let fo=dn[Xa];return delete dn[Xa],dn[sa]=fo,Fi[fo].geometry[0].pop(),Fi[fo].geometry[0]=Fi[fo].geometry[0].concat(Mo[0]),fo}function ro(Xa,sa,Mo){let fo=yi[sa];return delete yi[sa],yi[Xa]=fo,Fi[fo].geometry[0].shift(),Fi[fo].geometry[0]=Mo[0].concat(Fi[fo].geometry[0]),fo}function Vo(Xa,sa,Mo){let fo=Mo?sa[0][sa[0].length-1]:sa[0][0];return`${Xa}:${fo.x}:${fo.y}`}for(let Xa=0;XaXa.geometry)}(this.features)),this.sortFeaturesByKey&&this.features.sort((ui,yi)=>ui.sortKey-yi.sortKey)}update(S,F,W){this.stateDependentLayers.length&&(this.text.programConfigurations.updatePaintArrays(S,F,this.layers,W),this.icon.programConfigurations.updatePaintArrays(S,F,this.layers,W))}isEmpty(){return this.symbolInstances.length===0&&!this.hasRTLText}uploadPending(){return!this.uploaded||this.text.programConfigurations.needsUpload||this.icon.programConfigurations.needsUpload}upload(S){!this.uploaded&&this.hasDebugData()&&(this.textCollisionBox.upload(S),this.iconCollisionBox.upload(S)),this.text.upload(S,this.sortFeaturesByY,!this.uploaded,this.text.programConfigurations.needsUpload),this.icon.upload(S,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(S,F){let W=this.lineVertexArray.length;if(S.segment!==void 0){let te=S.dist(F[S.segment+1]),fe=S.dist(F[S.segment]),pe={};for(let ze=S.segment+1;ze=0;ze--)pe[ze]={x:F[ze].x,y:F[ze].y,tileUnitDistanceFromAnchor:fe},ze>0&&(fe+=F[ze-1].dist(F[ze]));for(let ze=0;ze0}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(S,F){let W=S.placedSymbolArray.get(F),te=W.vertexStartIndex+4*W.numGlyphs;for(let fe=W.vertexStartIndex;fete[ze]-te[Ke]||fe[Ke]-fe[ze]),pe}addToSortKeyRanges(S,F){let W=this.sortKeyRanges[this.sortKeyRanges.length-1];W&&W.sortKey===F?W.symbolInstanceEnd=S+1:this.sortKeyRanges.push({sortKey:F,symbolInstanceStart:S,symbolInstanceEnd:S+1})}sortFeatures(S){if(this.sortFeaturesByY&&this.sortedAngle!==S&&!(this.text.segments.get().length>1||this.icon.segments.get().length>1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(S),this.sortedAngle=S,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(let F of this.symbolInstanceIndexes){let W=this.symbolInstances.get(F);this.featureSortOrder.push(W.featureIndex),[W.rightJustifiedTextSymbolIndex,W.centerJustifiedTextSymbolIndex,W.leftJustifiedTextSymbolIndex].forEach((te,fe,pe)=>{te>=0&&pe.indexOf(te)===fe&&this.addIndicesForPlacedSymbol(this.text,te)}),W.verticalPlacedTextSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.text,W.verticalPlacedTextSymbolIndex),W.placedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,W.placedIconSymbolIndex),W.verticalPlacedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,W.verticalPlacedIconSymbolIndex)}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}}}let wf,Xx;Di("SymbolBucket",E1,{omit:["layers","collisionBoxArray","features","compareText"]}),E1.MAX_GLYPHS=65535,E1.addDynamicAttributes=aS;var Dw={get paint(){return Xx=Xx||new ue({"icon-opacity":new oo(ce.paint_symbol["icon-opacity"]),"icon-color":new oo(ce.paint_symbol["icon-color"]),"icon-halo-color":new oo(ce.paint_symbol["icon-halo-color"]),"icon-halo-width":new oo(ce.paint_symbol["icon-halo-width"]),"icon-halo-blur":new oo(ce.paint_symbol["icon-halo-blur"]),"icon-translate":new Ua(ce.paint_symbol["icon-translate"]),"icon-translate-anchor":new Ua(ce.paint_symbol["icon-translate-anchor"]),"text-opacity":new oo(ce.paint_symbol["text-opacity"]),"text-color":new oo(ce.paint_symbol["text-color"],{runtimeType:Yt,getOverride:R=>R.textColor,hasOverride:R=>!!R.textColor}),"text-halo-color":new oo(ce.paint_symbol["text-halo-color"]),"text-halo-width":new oo(ce.paint_symbol["text-halo-width"]),"text-halo-blur":new oo(ce.paint_symbol["text-halo-blur"]),"text-translate":new Ua(ce.paint_symbol["text-translate"]),"text-translate-anchor":new Ua(ce.paint_symbol["text-translate-anchor"])})},get layout(){return wf=wf||new ue({"symbol-placement":new Ua(ce.layout_symbol["symbol-placement"]),"symbol-spacing":new Ua(ce.layout_symbol["symbol-spacing"]),"symbol-avoid-edges":new Ua(ce.layout_symbol["symbol-avoid-edges"]),"symbol-sort-key":new oo(ce.layout_symbol["symbol-sort-key"]),"symbol-z-order":new Ua(ce.layout_symbol["symbol-z-order"]),"icon-allow-overlap":new Ua(ce.layout_symbol["icon-allow-overlap"]),"icon-overlap":new Ua(ce.layout_symbol["icon-overlap"]),"icon-ignore-placement":new Ua(ce.layout_symbol["icon-ignore-placement"]),"icon-optional":new Ua(ce.layout_symbol["icon-optional"]),"icon-rotation-alignment":new Ua(ce.layout_symbol["icon-rotation-alignment"]),"icon-size":new oo(ce.layout_symbol["icon-size"]),"icon-text-fit":new Ua(ce.layout_symbol["icon-text-fit"]),"icon-text-fit-padding":new Ua(ce.layout_symbol["icon-text-fit-padding"]),"icon-image":new oo(ce.layout_symbol["icon-image"]),"icon-rotate":new oo(ce.layout_symbol["icon-rotate"]),"icon-padding":new oo(ce.layout_symbol["icon-padding"]),"icon-keep-upright":new Ua(ce.layout_symbol["icon-keep-upright"]),"icon-offset":new oo(ce.layout_symbol["icon-offset"]),"icon-anchor":new oo(ce.layout_symbol["icon-anchor"]),"icon-pitch-alignment":new Ua(ce.layout_symbol["icon-pitch-alignment"]),"text-pitch-alignment":new Ua(ce.layout_symbol["text-pitch-alignment"]),"text-rotation-alignment":new Ua(ce.layout_symbol["text-rotation-alignment"]),"text-field":new oo(ce.layout_symbol["text-field"]),"text-font":new oo(ce.layout_symbol["text-font"]),"text-size":new oo(ce.layout_symbol["text-size"]),"text-max-width":new oo(ce.layout_symbol["text-max-width"]),"text-line-height":new Ua(ce.layout_symbol["text-line-height"]),"text-letter-spacing":new oo(ce.layout_symbol["text-letter-spacing"]),"text-justify":new oo(ce.layout_symbol["text-justify"]),"text-radial-offset":new oo(ce.layout_symbol["text-radial-offset"]),"text-variable-anchor":new Ua(ce.layout_symbol["text-variable-anchor"]),"text-variable-anchor-offset":new oo(ce.layout_symbol["text-variable-anchor-offset"]),"text-anchor":new oo(ce.layout_symbol["text-anchor"]),"text-max-angle":new Ua(ce.layout_symbol["text-max-angle"]),"text-writing-mode":new Ua(ce.layout_symbol["text-writing-mode"]),"text-rotate":new oo(ce.layout_symbol["text-rotate"]),"text-padding":new Ua(ce.layout_symbol["text-padding"]),"text-keep-upright":new Ua(ce.layout_symbol["text-keep-upright"]),"text-transform":new oo(ce.layout_symbol["text-transform"]),"text-offset":new oo(ce.layout_symbol["text-offset"]),"text-allow-overlap":new Ua(ce.layout_symbol["text-allow-overlap"]),"text-overlap":new Ua(ce.layout_symbol["text-overlap"]),"text-ignore-placement":new Ua(ce.layout_symbol["text-ignore-placement"]),"text-optional":new Ua(ce.layout_symbol["text-optional"])})}};class Zx{constructor(S){if(S.property.overrides===void 0)throw new Error("overrides must be provided to instantiate FormatSectionOverride class");this.type=S.property.overrides?S.property.overrides.runtimeType:Ut,this.defaultValue=S}evaluate(S){if(S.formattedSection){let F=this.defaultValue.property.overrides;if(F&&F.hasOverride(S.formattedSection))return F.getOverride(S.formattedSection)}return S.feature&&S.featureState?this.defaultValue.evaluate(S.feature,S.featureState):this.defaultValue.property.specification.default}eachChild(S){this.defaultValue.isConstant()||S(this.defaultValue.value._styleExpression.expression)}outputDefined(){return!1}serialize(){return null}}Di("FormatSectionOverride",Zx,{omit:["defaultValue"]});class uy extends B{constructor(S){super(S,Dw)}recalculate(S,F){if(super.recalculate(S,F),this.layout.get("icon-rotation-alignment")==="auto"&&(this.layout._values["icon-rotation-alignment"]=this.layout.get("symbol-placement")!=="point"?"map":"viewport"),this.layout.get("text-rotation-alignment")==="auto"&&(this.layout._values["text-rotation-alignment"]=this.layout.get("symbol-placement")!=="point"?"map":"viewport"),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")),this.layout.get("symbol-placement")==="point"){let W=this.layout.get("text-writing-mode");if(W){let te=[];for(let fe of W)te.indexOf(fe)<0&&te.push(fe);this.layout._values["text-writing-mode"]=te}else this.layout._values["text-writing-mode"]=["horizontal"]}this._setPaintOverrides()}getValueAndResolveTokens(S,F,W,te){let fe=this.layout.get(S).evaluate(F,{},W,te),pe=this._unevaluatedLayout._values[S];return pe.isDataDriven()||Dc(pe.value)||!fe?fe:function(ze,Ke){return Ke.replace(/{([^{}]+)}/g,(ut,Lt)=>ze&&Lt in ze?String(ze[Lt]):"")}(F.properties,fe)}createBucket(S){return new E1(S)}queryRadius(){return 0}queryIntersectsFeature(){throw new Error("Should take a different path in FeatureIndex")}_setPaintOverrides(){for(let S of Dw.paint.overridableProperties){if(!uy.hasPaintOverride(this.layout,S))continue;let F=this.paint.get(S),W=new Zx(F),te=new Eu(W,F.property.specification),fe=null;fe=F.value.kind==="constant"||F.value.kind==="source"?new bc("source",te):new du("composite",te,F.value.zoomStops),this.paint._values[S]=new xu(F.property,fe,F.parameters)}}_handleOverridablePaintPropertyUpdate(S,F,W){return!(!this.layout||F.isDataDriven()||W.isDataDriven())&&uy.hasPaintOverride(this.layout,S)}static hasPaintOverride(S,F){let W=S.get("text-field"),te=Dw.paint.properties[F],fe=!1,pe=ze=>{for(let Ke of ze)if(te.overrides&&te.overrides.hasOverride(Ke))return void(fe=!0)};if(W.value.kind==="constant"&&W.value.value instanceof ri)pe(W.value.value.sections);else if(W.value.kind==="source"){let ze=ut=>{fe||(ut instanceof la&&Mn(ut.value)===ei?pe(ut.value.sections):ut instanceof Zl?pe(ut.sections):ut.eachChild(ze))},Ke=W.value;Ke._styleExpression&&ze(Ke._styleExpression.expression)}return fe}}let Sk;var Yx={get paint(){return Sk=Sk||new ue({"background-color":new Ua(ce.paint_background["background-color"]),"background-pattern":new hc(ce.paint_background["background-pattern"]),"background-opacity":new Ua(ce.paint_background["background-opacity"])})}};class X9 extends B{constructor(S){super(S,Yx)}}let lS;var Mk={get paint(){return lS=lS||new ue({"raster-opacity":new Ua(ce.paint_raster["raster-opacity"]),"raster-hue-rotate":new Ua(ce.paint_raster["raster-hue-rotate"]),"raster-brightness-min":new Ua(ce.paint_raster["raster-brightness-min"]),"raster-brightness-max":new Ua(ce.paint_raster["raster-brightness-max"]),"raster-saturation":new Ua(ce.paint_raster["raster-saturation"]),"raster-contrast":new Ua(ce.paint_raster["raster-contrast"]),"raster-resampling":new Ua(ce.paint_raster["raster-resampling"]),"raster-fade-duration":new Ua(ce.paint_raster["raster-fade-duration"])})}};class Kx extends B{constructor(S){super(S,Mk)}}class uS extends B{constructor(S){super(S,{}),this.onAdd=F=>{this.implementation.onAdd&&this.implementation.onAdd(F,F.painter.context.gl)},this.onRemove=F=>{this.implementation.onRemove&&this.implementation.onRemove(F,F.painter.context.gl)},this.implementation=S}is3D(){return this.implementation.renderingMode==="3d"}hasOffscreenPass(){return this.implementation.prerender!==void 0}recalculate(){}updateTransitions(){}hasTransition(){return!1}serialize(){throw new Error("Custom layers cannot be serialized")}}class cS{constructor(S){this._methodToThrottle=S,this._triggered=!1,typeof MessageChannel!="undefined"&&(this._channel=new MessageChannel,this._channel.port2.onmessage=()=>{this._triggered=!1,this._methodToThrottle()})}trigger(){this._triggered||(this._triggered=!0,this._channel?this._channel.port1.postMessage(!0):setTimeout(()=>{this._triggered=!1,this._methodToThrottle()},0))}remove(){delete this._channel,this._methodToThrottle=()=>{}}}let fS=63710088e-1;class dg{constructor(S,F){if(isNaN(S)||isNaN(F))throw new Error(`Invalid LngLat object: (${S}, ${F})`);if(this.lng=+S,this.lat=+F,this.lat>90||this.lat<-90)throw new Error("Invalid LngLat latitude value: must be between -90 and 90")}wrap(){return new dg(A(this.lng,-180,180),this.lat)}toArray(){return[this.lng,this.lat]}toString(){return`LngLat(${this.lng}, ${this.lat})`}distanceTo(S){let F=Math.PI/180,W=this.lat*F,te=S.lat*F,fe=Math.sin(W)*Math.sin(te)+Math.cos(W)*Math.cos(te)*Math.cos((S.lng-this.lng)*F);return fS*Math.acos(Math.min(fe,1))}static convert(S){if(S instanceof dg)return S;if(Array.isArray(S)&&(S.length===2||S.length===3))return new dg(Number(S[0]),Number(S[1]));if(!Array.isArray(S)&&typeof S=="object"&&S!==null)return new dg(Number("lng"in S?S.lng:S.lon),Number(S.lat));throw new Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: , lat: }, an object {lon: , lat: }, or an array of [, ]")}}let C1=2*Math.PI*fS;function Ek(R){return C1*Math.cos(R*Math.PI/180)}function Fw(R){return(180+R)/360}function Ck(R){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+R*Math.PI/360)))/360}function zw(R,S){return R/Ek(S)}function Jx(R){return 360/Math.PI*Math.atan(Math.exp((180-360*R)*Math.PI/180))-90}class $x{constructor(S,F,W=0){this.x=+S,this.y=+F,this.z=+W}static fromLngLat(S,F=0){let W=dg.convert(S);return new $x(Fw(W.lng),Ck(W.lat),zw(F,W.lat))}toLngLat(){return new dg(360*this.x-180,Jx(this.y))}toAltitude(){return this.z*Ek(Jx(this.y))}meterInMercatorCoordinateUnits(){return 1/C1*(S=Jx(this.y),1/Math.cos(S*Math.PI/180));var S}}function pp(R,S,F){var W=2*Math.PI*6378137/256/Math.pow(2,F);return[R*W-2*Math.PI*6378137/2,S*W-2*Math.PI*6378137/2]}class hS{constructor(S,F,W){if(!function(te,fe,pe){return!(te<0||te>25||pe<0||pe>=Math.pow(2,te)||fe<0||fe>=Math.pow(2,te))}(S,F,W))throw new Error(`x=${F}, y=${W}, z=${S} outside of bounds. 0<=x<${Math.pow(2,S)}, 0<=y<${Math.pow(2,S)} 0<=z<=25 `);this.z=S,this.x=F,this.y=W,this.key=Qx(0,S,S,F,W)}equals(S){return this.z===S.z&&this.x===S.x&&this.y===S.y}url(S,F,W){let te=(pe=this.y,ze=this.z,Ke=pp(256*(fe=this.x),256*(pe=Math.pow(2,ze)-pe-1),ze),ut=pp(256*(fe+1),256*(pe+1),ze),Ke[0]+","+Ke[1]+","+ut[0]+","+ut[1]);var fe,pe,ze,Ke,ut;let Lt=function(Qt,fr,mr){let Lr,zr="";for(let ui=Qt;ui>0;ui--)Lr=1<1?"@2x":"").replace(/{quadkey}/g,Lt).replace(/{bbox-epsg-3857}/g,te)}isChildOf(S){let F=this.z-S.z;return F>0&&S.x===this.x>>F&&S.y===this.y>>F}getTilePoint(S){let F=Math.pow(2,this.z);return new u((S.x*F-this.x)*Ha,(S.y*F-this.y)*Ha)}toString(){return`${this.z}/${this.x}/${this.y}`}}class kk{constructor(S,F){this.wrap=S,this.canonical=F,this.key=Qx(S,F.z,F.z,F.x,F.y)}}class Jv{constructor(S,F,W,te,fe){if(S= z; overscaledZ = ${S}; z = ${W}`);this.overscaledZ=S,this.wrap=F,this.canonical=new hS(W,+te,+fe),this.key=Qx(F,S,W,te,fe)}clone(){return new Jv(this.overscaledZ,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)}equals(S){return this.overscaledZ===S.overscaledZ&&this.wrap===S.wrap&&this.canonical.equals(S.canonical)}scaledTo(S){if(S>this.overscaledZ)throw new Error(`targetZ > this.overscaledZ; targetZ = ${S}; overscaledZ = ${this.overscaledZ}`);let F=this.canonical.z-S;return S>this.canonical.z?new Jv(S,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new Jv(S,this.wrap,S,this.canonical.x>>F,this.canonical.y>>F)}calculateScaledKey(S,F){if(S>this.overscaledZ)throw new Error(`targetZ > this.overscaledZ; targetZ = ${S}; overscaledZ = ${this.overscaledZ}`);let W=this.canonical.z-S;return S>this.canonical.z?Qx(this.wrap*+F,S,this.canonical.z,this.canonical.x,this.canonical.y):Qx(this.wrap*+F,S,S,this.canonical.x>>W,this.canonical.y>>W)}isChildOf(S){if(S.wrap!==this.wrap)return!1;let F=this.canonical.z-S.canonical.z;return S.overscaledZ===0||S.overscaledZ>F&&S.canonical.y===this.canonical.y>>F}children(S){if(this.overscaledZ>=S)return[new Jv(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];let F=this.canonical.z+1,W=2*this.canonical.x,te=2*this.canonical.y;return[new Jv(F,this.wrap,F,W,te),new Jv(F,this.wrap,F,W+1,te),new Jv(F,this.wrap,F,W,te+1),new Jv(F,this.wrap,F,W+1,te+1)]}isLessThan(S){return this.wrapS.wrap)&&(this.overscaledZS.overscaledZ)&&(this.canonical.xS.canonical.x)&&this.canonical.ythis.max&&(this.max=Qt),Qt=this.dim+1||F<-1||F>=this.dim+1)throw new RangeError("out of range source coordinates for DEM data");return(F+1)*this.stride+(S+1)}unpack(S,F,W){return S*this.redFactor+F*this.greenFactor+W*this.blueFactor-this.baseShift}getPixels(){return new Yi({width:this.stride,height:this.stride},new Uint8Array(this.data.buffer))}backfillBorder(S,F,W){if(this.dim!==S.dim)throw new Error("dem dimension mismatch");let te=F*this.dim,fe=F*this.dim+this.dim,pe=W*this.dim,ze=W*this.dim+this.dim;switch(F){case-1:te=fe-1;break;case 1:fe=te+1}switch(W){case-1:pe=ze-1;break;case 1:ze=pe+1}let Ke=-F*this.dim,ut=-W*this.dim;for(let Lt=pe;Lt=this._numberToString.length)throw new Error(`Out of bounds. Index requested n=${S} can't be >= this._numberToString.length ${this._numberToString.length}`);return this._numberToString[S]}}class dS{constructor(S,F,W,te,fe){this.type="Feature",this._vectorTileFeature=S,S._z=F,S._x=W,S._y=te,this.properties=S.properties,this.id=fe}get geometry(){return this._geometry===void 0&&(this._geometry=this._vectorTileFeature.toGeoJSON(this._vectorTileFeature._x,this._vectorTileFeature._y,this._vectorTileFeature._z).geometry),this._geometry}set geometry(S){this._geometry=S}toJSON(){let S={geometry:this.geometry};for(let F in this)F!=="_geometry"&&F!=="_vectorTileFeature"&&(S[F]=this[F]);return S}}class cy{constructor(S,F){this.tileID=S,this.x=S.canonical.x,this.y=S.canonical.y,this.z=S.canonical.z,this.grid=new $i(Ha,16,0),this.grid3D=new $i(Ha,16,0),this.featureIndexArray=new As,this.promoteId=F}insert(S,F,W,te,fe,pe){let ze=this.featureIndexArray.length;this.featureIndexArray.emplaceBack(W,te,fe);let Ke=pe?this.grid3D:this.grid;for(let ut=0;ut=0&&Qt[3]>=0&&Ke.insert(ze,Qt[0],Qt[1],Qt[2],Qt[3])}}loadVTLayers(){return this.vtLayers||(this.vtLayers=new br.VectorTile(new tS(this.rawTileData)).layers,this.sourceLayerCoder=new Pk(this.vtLayers?Object.keys(this.vtLayers).sort():["_geojsonTileLayer"])),this.vtLayers}query(S,F,W,te){this.loadVTLayers();let fe=S.params||{},pe=Ha/S.tileSize/S.scale,ze=Fc(fe.filter),Ke=S.queryGeometry,ut=S.queryPadding*pe,Lt=Rk(Ke),Qt=this.grid.query(Lt.minX-ut,Lt.minY-ut,Lt.maxX+ut,Lt.maxY+ut),fr=Rk(S.cameraQueryGeometry),mr=this.grid3D.query(fr.minX-ut,fr.minY-ut,fr.maxX+ut,fr.maxY+ut,(ui,yi,dn,Fi)=>function(ln,An,pa,ro,Vo){for(let sa of ln)if(An<=sa.x&&pa<=sa.y&&ro>=sa.x&&Vo>=sa.y)return!0;let Xa=[new u(An,pa),new u(An,Vo),new u(ro,Vo),new u(ro,pa)];if(ln.length>2){for(let sa of Xa)if(Ni(ln,sa))return!0}for(let sa=0;sa(Fi||(Fi=Qs(ln)),An.queryIntersectsFeature(Ke,ln,pa,Fi,this.z,S.transform,pe,S.pixelPosMatrix)))}return Lr}loadMatchingFeature(S,F,W,te,fe,pe,ze,Ke,ut,Lt,Qt){let fr=this.bucketLayerIDs[F];if(pe&&!function(ui,yi){for(let dn=0;dn=0)return!0;return!1}(pe,fr))return;let mr=this.sourceLayerCoder.decode(W),Lr=this.vtLayers[mr].feature(te);if(fe.needGeometry){let ui=Sl(Lr,!0);if(!fe.filter(new is(this.tileID.overscaledZ),ui,this.tileID.canonical))return}else if(!fe.filter(new is(this.tileID.overscaledZ),Lr))return;let zr=this.getId(Lr,mr);for(let ui=0;ui{let ze=S instanceof Ac?S.get(pe):null;return ze&&ze.evaluate?ze.evaluate(F,W,te):ze})}function Rk(R){let S=1/0,F=1/0,W=-1/0,te=-1/0;for(let fe of R)S=Math.min(S,fe.x),F=Math.min(F,fe.y),W=Math.max(W,fe.x),te=Math.max(te,fe.y);return{minX:S,minY:F,maxX:W,maxY:te}}function Z9(R,S){return S-R}function Dk(R,S,F,W,te){let fe=[];for(let pe=0;pe=W&&Qt.x>=W||(Lt.x>=W?Lt=new u(W,Lt.y+(W-Lt.x)/(Qt.x-Lt.x)*(Qt.y-Lt.y))._round():Qt.x>=W&&(Qt=new u(W,Lt.y+(W-Lt.x)/(Qt.x-Lt.x)*(Qt.y-Lt.y))._round()),Lt.y>=te&&Qt.y>=te||(Lt.y>=te?Lt=new u(Lt.x+(te-Lt.y)/(Qt.y-Lt.y)*(Qt.x-Lt.x),te)._round():Qt.y>=te&&(Qt=new u(Lt.x+(te-Lt.y)/(Qt.y-Lt.y)*(Qt.x-Lt.x),te)._round()),Ke&&Lt.equals(Ke[Ke.length-1])||(Ke=[Lt],fe.push(Ke)),Ke.push(Qt)))))}}return fe}Di("FeatureIndex",cy,{omit:["rawTileData","sourceLayerCoder"]});class vg extends u{constructor(S,F,W,te){super(S,F),this.angle=W,te!==void 0&&(this.segment=te)}clone(){return new vg(this.x,this.y,this.angle,this.segment)}}function vS(R,S,F,W,te){if(S.segment===void 0||F===0)return!0;let fe=S,pe=S.segment+1,ze=0;for(;ze>-F/2;){if(pe--,pe<0)return!1;ze-=R[pe].dist(fe),fe=R[pe]}ze+=R[pe].dist(R[pe+1]),pe++;let Ke=[],ut=0;for(;zeW;)ut-=Ke.shift().angleDelta;if(ut>te)return!1;pe++,ze+=Lt.dist(Qt)}return!0}function Fk(R){let S=0;for(let F=0;Fut){let Lr=(ut-Ke)/mr,zr=Lo.number(Qt.x,fr.x,Lr),ui=Lo.number(Qt.y,fr.y,Lr),yi=new vg(zr,ui,fr.angleTo(Qt),Lt);return yi._round(),!pe||vS(R,yi,ze,pe,S)?yi:void 0}Ke+=mr}}function K9(R,S,F,W,te,fe,pe,ze,Ke){let ut=zk(W,fe,pe),Lt=Ok(W,te),Qt=Lt*pe,fr=R[0].x===0||R[0].x===Ke||R[0].y===0||R[0].y===Ke;return S-Qt=0&&ln=0&&An=0&&fr+ut<=Lt){let pa=new vg(ln,An,dn,Lr);pa._round(),W&&!vS(R,pa,fe,W,te)||mr.push(pa)}}Qt+=yi}return ze||mr.length||pe||(mr=qk(R,Qt/2,F,W,te,fe,pe,!0,Ke)),mr}Di("Anchor",vg);let k1=Md;function Bk(R,S,F,W){let te=[],fe=R.image,pe=fe.pixelRatio,ze=fe.paddedRect.w-2*k1,Ke=fe.paddedRect.h-2*k1,ut={x1:R.left,y1:R.top,x2:R.right,y2:R.bottom},Lt=fe.stretchX||[[0,ze]],Qt=fe.stretchY||[[0,Ke]],fr=(Xn,Ro)=>Xn+Ro[1]-Ro[0],mr=Lt.reduce(fr,0),Lr=Qt.reduce(fr,0),zr=ze-mr,ui=Ke-Lr,yi=0,dn=mr,Fi=0,ln=Lr,An=0,pa=zr,ro=0,Vo=ui;if(fe.content&&W){let Xn=fe.content,Ro=Xn[2]-Xn[0],uo=Xn[3]-Xn[1];(fe.textFitWidth||fe.textFitHeight)&&(ut=wk(R)),yi=pg(Lt,0,Xn[0]),Fi=pg(Qt,0,Xn[1]),dn=pg(Lt,Xn[0],Xn[2]),ln=pg(Qt,Xn[1],Xn[3]),An=Xn[0]-yi,ro=Xn[1]-Fi,pa=Ro-dn,Vo=uo-ln}let Xa=ut.x1,sa=ut.y1,Mo=ut.x2-Xa,fo=ut.y2-sa,lo=(Xn,Ro,uo,$o)=>{let Ju=Ow(Xn.stretch-yi,dn,Mo,Xa),qu=L1(Xn.fixed-An,pa,Xn.stretch,mr),Th=Ow(Ro.stretch-Fi,ln,fo,sa),$v=L1(Ro.fixed-ro,Vo,Ro.stretch,Lr),ld=Ow(uo.stretch-yi,dn,Mo,Xa),Ah=L1(uo.fixed-An,pa,uo.stretch,mr),Gd=Ow($o.stretch-Fi,ln,fo,sa),Hd=L1($o.fixed-ro,Vo,$o.stretch,Lr),jd=new u(Ju,Th),Tf=new u(ld,Th),Sh=new u(ld,Gd),Ed=new u(Ju,Gd),ud=new u(qu/pe,$v/pe),Hh=new u(Ah/pe,Hd/pe),Rf=S*Math.PI/180;if(Rf){let tu=Math.sin(Rf),pc=Math.cos(Rf),$u=[pc,-tu,tu,pc];jd._matMult($u),Tf._matMult($u),Ed._matMult($u),Sh._matMult($u)}let Iv=Xn.stretch+Xn.fixed,lv=Ro.stretch+Ro.fixed;return{tl:jd,tr:Tf,bl:Ed,br:Sh,tex:{x:fe.paddedRect.x+k1+Iv,y:fe.paddedRect.y+k1+lv,w:uo.stretch+uo.fixed-Iv,h:$o.stretch+$o.fixed-lv},writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:ud,pixelOffsetBR:Hh,minFontScaleX:pa/pe/Mo,minFontScaleY:Vo/pe/fo,isSDF:F}};if(W&&(fe.stretchX||fe.stretchY)){let Xn=Nk(Lt,zr,mr),Ro=Nk(Qt,ui,Lr);for(let uo=0;uo0&&(zr=Math.max(10,zr),this.circleDiameter=zr)}else{let fr=!((Qt=pe.image)===null||Qt===void 0)&&Qt.content&&(pe.image.textFitWidth||pe.image.textFitHeight)?wk(pe):{x1:pe.left,y1:pe.top,x2:pe.right,y2:pe.bottom};fr.y1=fr.y1*ze-Ke[0],fr.y2=fr.y2*ze+Ke[2],fr.x1=fr.x1*ze-Ke[3],fr.x2=fr.x2*ze+Ke[1];let mr=pe.collisionPadding;if(mr&&(fr.x1-=mr[0]*ze,fr.y1-=mr[1]*ze,fr.x2+=mr[2]*ze,fr.y2+=mr[3]*ze),Lt){let Lr=new u(fr.x1,fr.y1),zr=new u(fr.x2,fr.y1),ui=new u(fr.x1,fr.y2),yi=new u(fr.x2,fr.y2),dn=Lt*Math.PI/180;Lr._rotate(dn),zr._rotate(dn),ui._rotate(dn),yi._rotate(dn),fr.x1=Math.min(Lr.x,zr.x,ui.x,yi.x),fr.x2=Math.max(Lr.x,zr.x,ui.x,yi.x),fr.y1=Math.min(Lr.y,zr.y,ui.y,yi.y),fr.y2=Math.max(Lr.y,zr.y,ui.y,yi.y)}S.emplaceBack(F.x,F.y,fr.x1,fr.y1,fr.x2,fr.y2,W,te,fe)}this.boxEndIndex=S.length}}class Vp{constructor(S=[],F=(W,te)=>Wte?1:0){if(this.data=S,this.length=this.data.length,this.compare=F,this.length>0)for(let W=(this.length>>1)-1;W>=0;W--)this._down(W)}push(S){this.data.push(S),this._up(this.length++)}pop(){if(this.length===0)return;let S=this.data[0],F=this.data.pop();return--this.length>0&&(this.data[0]=F,this._down(0)),S}peek(){return this.data[0]}_up(S){let{data:F,compare:W}=this,te=F[S];for(;S>0;){let fe=S-1>>1,pe=F[fe];if(W(te,pe)>=0)break;F[S]=pe,S=fe}F[S]=te}_down(S){let{data:F,compare:W}=this,te=this.length>>1,fe=F[S];for(;S=0)break;F[S]=F[pe],S=pe}F[S]=fe}}function J9(R,S=1,F=!1){let W=1/0,te=1/0,fe=-1/0,pe=-1/0,ze=R[0];for(let mr=0;mrfe)&&(fe=Lr.x),(!mr||Lr.y>pe)&&(pe=Lr.y)}let Ke=Math.min(fe-W,pe-te),ut=Ke/2,Lt=new Vp([],$9);if(Ke===0)return new u(W,te);for(let mr=W;mrQt.d||!Qt.d)&&(Qt=mr,F&&console.log("found best %d after %d probes",Math.round(1e4*mr.d)/1e4,fr)),mr.max-Qt.d<=S||(ut=mr.h/2,Lt.push(new P1(mr.p.x-ut,mr.p.y-ut,ut,R)),Lt.push(new P1(mr.p.x+ut,mr.p.y-ut,ut,R)),Lt.push(new P1(mr.p.x-ut,mr.p.y+ut,ut,R)),Lt.push(new P1(mr.p.x+ut,mr.p.y+ut,ut,R)),fr+=4)}return F&&(console.log(`num probes: ${fr}`),console.log(`best distance: ${Qt.d}`)),Qt.p}function $9(R,S){return S.max-R.max}function P1(R,S,F,W){this.p=new u(R,S),this.h=F,this.d=function(te,fe){let pe=!1,ze=1/0;for(let Ke=0;Kete.y!=Lr.y>te.y&&te.x<(Lr.x-mr.x)*(te.y-mr.y)/(Lr.y-mr.y)+mr.x&&(pe=!pe),ze=Math.min(ze,Vr(te,mr,Lr))}}return(pe?1:-1)*Math.sqrt(ze)}(this.p,W),this.max=this.d+this.h*Math.SQRT2}var sd;i.aq=void 0,(sd=i.aq||(i.aq={}))[sd.center=1]="center",sd[sd.left=2]="left",sd[sd.right=3]="right",sd[sd.top=4]="top",sd[sd.bottom=5]="bottom",sd[sd["top-left"]=6]="top-left",sd[sd["top-right"]=7]="top-right",sd[sd["bottom-left"]=8]="bottom-left",sd[sd["bottom-right"]=9]="bottom-right";let fm=7,fy=Number.POSITIVE_INFINITY;function pS(R,S){return S[1]!==fy?function(F,W,te){let fe=0,pe=0;switch(W=Math.abs(W),te=Math.abs(te),F){case"top-right":case"top-left":case"top":pe=te-fm;break;case"bottom-right":case"bottom-left":case"bottom":pe=-te+fm}switch(F){case"top-right":case"bottom-right":case"right":fe=-W;break;case"top-left":case"bottom-left":case"left":fe=W}return[fe,pe]}(R,S[0],S[1]):function(F,W){let te=0,fe=0;W<0&&(W=0);let pe=W/Math.SQRT2;switch(F){case"top-right":case"top-left":fe=pe-fm;break;case"bottom-right":case"bottom-left":fe=-pe+fm;break;case"bottom":fe=-W+fm;break;case"top":fe=W-fm}switch(F){case"top-right":case"bottom-right":te=-pe;break;case"top-left":case"bottom-left":te=pe;break;case"left":te=W;break;case"right":te=-W}return[te,fe]}(R,S[0])}function Uk(R,S,F){var W;let te=R.layout,fe=(W=te.get("text-variable-anchor-offset"))===null||W===void 0?void 0:W.evaluate(S,{},F);if(fe){let ze=fe.values,Ke=[];for(let ut=0;utfr*eu);Lt.startsWith("top")?Qt[1]-=fm:Lt.startsWith("bottom")&&(Qt[1]+=fm),Ke[ut+1]=Qt}return new Ji(Ke)}let pe=te.get("text-variable-anchor");if(pe){let ze;ze=R._unevaluatedLayout.getValue("text-radial-offset")!==void 0?[te.get("text-radial-offset").evaluate(S,{},F)*eu,fy]:te.get("text-offset").evaluate(S,{},F).map(ut=>ut*eu);let Ke=[];for(let ut of pe)Ke.push(ut,pS(ut,ze));return new Ji(Ke)}return null}function gS(R){switch(R){case"right":case"top-right":case"bottom-right":return"right";case"left":case"top-left":case"bottom-left":return"left"}return"center"}function Q9(R,S,F,W,te,fe,pe,ze,Ke,ut,Lt){let Qt=fe.textMaxSize.evaluate(S,{});Qt===void 0&&(Qt=pe);let fr=R.layers[0].layout,mr=fr.get("icon-offset").evaluate(S,{},Lt),Lr=Gk(F.horizontal),zr=pe/24,ui=R.tilePixelRatio*zr,yi=R.tilePixelRatio*Qt/24,dn=R.tilePixelRatio*ze,Fi=R.tilePixelRatio*fr.get("symbol-spacing"),ln=fr.get("text-padding")*R.tilePixelRatio,An=function(Xn,Ro,uo,$o=1){let Ju=Xn.get("icon-padding").evaluate(Ro,{},uo),qu=Ju&&Ju.values;return[qu[0]*$o,qu[1]*$o,qu[2]*$o,qu[3]*$o]}(fr,S,Lt,R.tilePixelRatio),pa=fr.get("text-max-angle")/180*Math.PI,ro=fr.get("text-rotation-alignment")!=="viewport"&&fr.get("symbol-placement")!=="point",Vo=fr.get("icon-rotation-alignment")==="map"&&fr.get("symbol-placement")!=="point",Xa=fr.get("symbol-placement"),sa=Fi/2,Mo=fr.get("icon-text-fit"),fo;W&&Mo!=="none"&&(R.allowVerticalPlacement&&F.vertical&&(fo=Tk(W,F.vertical,Mo,fr.get("icon-text-fit-padding"),mr,zr)),Lr&&(W=Tk(W,Lr,Mo,fr.get("icon-text-fit-padding"),mr,zr)));let lo=(Xn,Ro)=>{Ro.x<0||Ro.x>=Ha||Ro.y<0||Ro.y>=Ha||function(uo,$o,Ju,qu,Th,$v,ld,Ah,Gd,Hd,jd,Tf,Sh,Ed,ud,Hh,Rf,Iv,lv,tu,pc,$u,Rv,ff,I1){let p0=uo.addToLineVertexArray($o,Ju),Gp,Qv,Gc,Zf,ep=0,gg=0,uv=0,R1=0,bS=-1,Uw=-1,g0={},hy=bi("");if(uo.allowVerticalPlacement&&qu.vertical){let Cd=Ah.layout.get("text-rotate").evaluate(pc,{},ff)+90;Gc=new cm(Gd,$o,Hd,jd,Tf,qu.vertical,Sh,Ed,ud,Cd),ld&&(Zf=new cm(Gd,$o,Hd,jd,Tf,ld,Rf,Iv,ud,Cd))}if(Th){let Cd=Ah.layout.get("icon-rotate").evaluate(pc,{}),tp=Ah.layout.get("icon-text-fit")!=="none",hm=Bk(Th,Cd,Rv,tp),Wd=ld?Bk(ld,Cd,Rv,tp):void 0;Qv=new cm(Gd,$o,Hd,jd,Tf,Th,Rf,Iv,!1,Cd),ep=4*hm.length;let kd=uo.iconSizeData,mp=null;kd.kind==="source"?(mp=[v0*Ah.layout.get("icon-size").evaluate(pc,{})],mp[0]>lm&&T(`${uo.layerIds[0]}: Value for "icon-size" is >= ${Wx}. Reduce your "icon-size".`)):kd.kind==="composite"&&(mp=[v0*$u.compositeIconSizes[0].evaluate(pc,{},ff),v0*$u.compositeIconSizes[1].evaluate(pc,{},ff)],(mp[0]>lm||mp[1]>lm)&&T(`${uo.layerIds[0]}: Value for "icon-size" is >= ${Wx}. Reduce your "icon-size".`)),uo.addSymbols(uo.icon,hm,mp,tu,lv,pc,i.ah.none,$o,p0.lineStartIndex,p0.lineLength,-1,ff),bS=uo.icon.placedSymbolArray.length-1,Wd&&(gg=4*Wd.length,uo.addSymbols(uo.icon,Wd,mp,tu,lv,pc,i.ah.vertical,$o,p0.lineStartIndex,p0.lineLength,-1,ff),Uw=uo.icon.placedSymbolArray.length-1)}let jh=Object.keys(qu.horizontal);for(let Cd of jh){let tp=qu.horizontal[Cd];if(!Gp){hy=bi(tp.text);let Wd=Ah.layout.get("text-rotate").evaluate(pc,{},ff);Gp=new cm(Gd,$o,Hd,jd,Tf,tp,Sh,Ed,ud,Wd)}let hm=tp.positionedLines.length===1;if(uv+=Vk(uo,$o,tp,$v,Ah,ud,pc,Hh,p0,qu.vertical?i.ah.horizontal:i.ah.horizontalOnly,hm?jh:[Cd],g0,bS,$u,ff),hm)break}qu.vertical&&(R1+=Vk(uo,$o,qu.vertical,$v,Ah,ud,pc,Hh,p0,i.ah.vertical,["vertical"],g0,Uw,$u,ff));let rO=Gp?Gp.boxStartIndex:uo.collisionBoxArray.length,Vw=Gp?Gp.boxEndIndex:uo.collisionBoxArray.length,m0=Gc?Gc.boxStartIndex:uo.collisionBoxArray.length,cv=Gc?Gc.boxEndIndex:uo.collisionBoxArray.length,Xk=Qv?Qv.boxStartIndex:uo.collisionBoxArray.length,iO=Qv?Qv.boxEndIndex:uo.collisionBoxArray.length,Zk=Zf?Zf.boxStartIndex:uo.collisionBoxArray.length,nO=Zf?Zf.boxEndIndex:uo.collisionBoxArray.length,gp=-1,rb=(Cd,tp)=>Cd&&Cd.circleDiameter?Math.max(Cd.circleDiameter,tp):tp;gp=rb(Gp,gp),gp=rb(Gc,gp),gp=rb(Qv,gp),gp=rb(Zf,gp);let Gw=gp>-1?1:0;Gw&&(gp*=I1/eu),uo.glyphOffsetArray.length>=E1.MAX_GLYPHS&&T("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),pc.sortKey!==void 0&&uo.addToSortKeyRanges(uo.symbolInstances.length,pc.sortKey);let wS=Uk(Ah,pc,ff),[aO,oO]=function(Cd,tp){let hm=Cd.length,Wd=tp==null?void 0:tp.values;if((Wd==null?void 0:Wd.length)>0)for(let kd=0;kd=0?g0.right:-1,g0.center>=0?g0.center:-1,g0.left>=0?g0.left:-1,g0.vertical||-1,bS,Uw,hy,rO,Vw,m0,cv,Xk,iO,Zk,nO,Hd,uv,R1,ep,gg,Gw,0,Sh,gp,aO,oO)}(R,Ro,Xn,F,W,te,fo,R.layers[0],R.collisionBoxArray,S.index,S.sourceLayerIndex,R.index,ui,[ln,ln,ln,ln],ro,Ke,dn,An,Vo,mr,S,fe,ut,Lt,pe)};if(Xa==="line")for(let Xn of Dk(S.geometry,0,0,Ha,Ha)){let Ro=K9(Xn,Fi,pa,F.vertical||Lr,W,24,yi,R.overscaling,Ha);for(let uo of Ro)Lr&&eO(R,Lr.text,sa,uo)||lo(Xn,uo)}else if(Xa==="line-center"){for(let Xn of S.geometry)if(Xn.length>1){let Ro=Y9(Xn,pa,F.vertical||Lr,W,24,yi);Ro&&lo(Xn,Ro)}}else if(S.type==="Polygon")for(let Xn of Cf(S.geometry,0)){let Ro=J9(Xn,16);lo(Xn[0],new vg(Ro.x,Ro.y,0))}else if(S.type==="LineString")for(let Xn of S.geometry)lo(Xn,new vg(Xn[0].x,Xn[0].y,0));else if(S.type==="Point")for(let Xn of S.geometry)for(let Ro of Xn)lo([Ro],new vg(Ro.x,Ro.y,0))}function Vk(R,S,F,W,te,fe,pe,ze,Ke,ut,Lt,Qt,fr,mr,Lr){let zr=function(dn,Fi,ln,An,pa,ro,Vo,Xa){let sa=An.layout.get("text-rotate").evaluate(ro,{})*Math.PI/180,Mo=[];for(let fo of Fi.positionedLines)for(let lo of fo.positionedGlyphs){if(!lo.rect)continue;let Xn=lo.rect||{},Ro=yk+1,uo=!0,$o=1,Ju=0,qu=(pa||Xa)&&lo.vertical,Th=lo.metrics.advance*lo.scale/2;if(Xa&&Fi.verticalizable&&(Ju=fo.lineOffset/2-(lo.imageName?-(eu-lo.metrics.width*lo.scale)/2:(lo.scale-1)*eu)),lo.imageName){let tu=Vo[lo.imageName];uo=tu.sdf,$o=tu.pixelRatio,Ro=Md/$o}let $v=pa?[lo.x+Th,lo.y]:[0,0],ld=pa?[0,0]:[lo.x+Th+ln[0],lo.y+ln[1]-Ju],Ah=[0,0];qu&&(Ah=ld,ld=[0,0]);let Gd=lo.metrics.isDoubleResolution?2:1,Hd=(lo.metrics.left-Ro)*lo.scale-Th+ld[0],jd=(-lo.metrics.top-Ro)*lo.scale+ld[1],Tf=Hd+Xn.w/Gd*lo.scale/$o,Sh=jd+Xn.h/Gd*lo.scale/$o,Ed=new u(Hd,jd),ud=new u(Tf,jd),Hh=new u(Hd,Sh),Rf=new u(Tf,Sh);if(qu){let tu=new u(-Th,Th-wh),pc=-Math.PI/2,$u=eu/2-Th,Rv=new u(5-wh-$u,-(lo.imageName?$u:0)),ff=new u(...Ah);Ed._rotateAround(pc,tu)._add(Rv)._add(ff),ud._rotateAround(pc,tu)._add(Rv)._add(ff),Hh._rotateAround(pc,tu)._add(Rv)._add(ff),Rf._rotateAround(pc,tu)._add(Rv)._add(ff)}if(sa){let tu=Math.sin(sa),pc=Math.cos(sa),$u=[pc,-tu,tu,pc];Ed._matMult($u),ud._matMult($u),Hh._matMult($u),Rf._matMult($u)}let Iv=new u(0,0),lv=new u(0,0);Mo.push({tl:Ed,tr:ud,bl:Hh,br:Rf,tex:Xn,writingMode:Fi.writingMode,glyphOffset:$v,sectionIndex:lo.sectionIndex,isSDF:uo,pixelOffsetTL:Iv,pixelOffsetBR:lv,minFontScaleX:0,minFontScaleY:0})}return Mo}(0,F,ze,te,fe,pe,W,R.allowVerticalPlacement),ui=R.textSizeData,yi=null;ui.kind==="source"?(yi=[v0*te.layout.get("text-size").evaluate(pe,{})],yi[0]>lm&&T(`${R.layerIds[0]}: Value for "text-size" is >= ${Wx}. Reduce your "text-size".`)):ui.kind==="composite"&&(yi=[v0*mr.compositeTextSizes[0].evaluate(pe,{},Lr),v0*mr.compositeTextSizes[1].evaluate(pe,{},Lr)],(yi[0]>lm||yi[1]>lm)&&T(`${R.layerIds[0]}: Value for "text-size" is >= ${Wx}. Reduce your "text-size".`)),R.addSymbols(R.text,zr,yi,ze,fe,pe,ut,S,Ke.lineStartIndex,Ke.lineLength,fr,Lr);for(let dn of Lt)Qt[dn]=R.text.placedSymbolArray.length-1;return 4*zr.length}function Gk(R){for(let S in R)return R[S];return null}function eO(R,S,F,W){let te=R.compareText;if(S in te){let fe=te[S];for(let pe=fe.length-1;pe>=0;pe--)if(W.dist(fe[pe])>4;if(te!==1)throw new Error(`Got v${te} data when expected v1.`);let fe=Hk[15&W];if(!fe)throw new Error("Unrecognized array type.");let[pe]=new Uint16Array(S,2,1),[ze]=new Uint32Array(S,4,1);return new mS(ze,pe,fe,S)}constructor(S,F=64,W=Float64Array,te){if(isNaN(S)||S<0)throw new Error(`Unpexpected numItems value: ${S}.`);this.numItems=+S,this.nodeSize=Math.min(Math.max(+F,2),65535),this.ArrayType=W,this.IndexArrayType=S<65536?Uint16Array:Uint32Array;let fe=Hk.indexOf(this.ArrayType),pe=2*S*this.ArrayType.BYTES_PER_ELEMENT,ze=S*this.IndexArrayType.BYTES_PER_ELEMENT,Ke=(8-ze%8)%8;if(fe<0)throw new Error(`Unexpected typed array class: ${W}.`);te&&te instanceof ArrayBuffer?(this.data=te,this.ids=new this.IndexArrayType(this.data,8,S),this.coords=new this.ArrayType(this.data,8+ze+Ke,2*S),this._pos=2*S,this._finished=!0):(this.data=new ArrayBuffer(8+pe+ze+Ke),this.ids=new this.IndexArrayType(this.data,8,S),this.coords=new this.ArrayType(this.data,8+ze+Ke,2*S),this._pos=0,this._finished=!1,new Uint8Array(this.data,0,2).set([219,16+fe]),new Uint16Array(this.data,2,1)[0]=F,new Uint32Array(this.data,4,1)[0]=S)}add(S,F){let W=this._pos>>1;return this.ids[W]=W,this.coords[this._pos++]=S,this.coords[this._pos++]=F,W}finish(){let S=this._pos>>1;if(S!==this.numItems)throw new Error(`Added ${S} items when expected ${this.numItems}.`);return qw(this.ids,this.coords,this.nodeSize,0,this.numItems-1,0),this._finished=!0,this}range(S,F,W,te){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");let{ids:fe,coords:pe,nodeSize:ze}=this,Ke=[0,fe.length-1,0],ut=[];for(;Ke.length;){let Lt=Ke.pop()||0,Qt=Ke.pop()||0,fr=Ke.pop()||0;if(Qt-fr<=ze){for(let ui=fr;ui<=Qt;ui++){let yi=pe[2*ui],dn=pe[2*ui+1];yi>=S&&yi<=W&&dn>=F&&dn<=te&&ut.push(fe[ui])}continue}let mr=fr+Qt>>1,Lr=pe[2*mr],zr=pe[2*mr+1];Lr>=S&&Lr<=W&&zr>=F&&zr<=te&&ut.push(fe[mr]),(Lt===0?S<=Lr:F<=zr)&&(Ke.push(fr),Ke.push(mr-1),Ke.push(1-Lt)),(Lt===0?W>=Lr:te>=zr)&&(Ke.push(mr+1),Ke.push(Qt),Ke.push(1-Lt))}return ut}within(S,F,W){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");let{ids:te,coords:fe,nodeSize:pe}=this,ze=[0,te.length-1,0],Ke=[],ut=W*W;for(;ze.length;){let Lt=ze.pop()||0,Qt=ze.pop()||0,fr=ze.pop()||0;if(Qt-fr<=pe){for(let ui=fr;ui<=Qt;ui++)Wk(fe[2*ui],fe[2*ui+1],S,F)<=ut&&Ke.push(te[ui]);continue}let mr=fr+Qt>>1,Lr=fe[2*mr],zr=fe[2*mr+1];Wk(Lr,zr,S,F)<=ut&&Ke.push(te[mr]),(Lt===0?S-W<=Lr:F-W<=zr)&&(ze.push(fr),ze.push(mr-1),ze.push(1-Lt)),(Lt===0?S+W>=Lr:F+W>=zr)&&(ze.push(mr+1),ze.push(Qt),ze.push(1-Lt))}return Ke}}function qw(R,S,F,W,te,fe){if(te-W<=F)return;let pe=W+te>>1;jk(R,S,pe,W,te,fe),qw(R,S,F,W,pe-1,1-fe),qw(R,S,F,pe+1,te,1-fe)}function jk(R,S,F,W,te,fe){for(;te>W;){if(te-W>600){let ut=te-W+1,Lt=F-W+1,Qt=Math.log(ut),fr=.5*Math.exp(2*Qt/3),mr=.5*Math.sqrt(Qt*fr*(ut-fr)/ut)*(Lt-ut/2<0?-1:1);jk(R,S,F,Math.max(W,Math.floor(F-Lt*fr/ut+mr)),Math.min(te,Math.floor(F+(ut-Lt)*fr/ut+mr)),fe)}let pe=S[2*F+fe],ze=W,Ke=te;for(eb(R,S,W,F),S[2*te+fe]>pe&&eb(R,S,W,te);zepe;)Ke--}S[2*W+fe]===pe?eb(R,S,W,Ke):(Ke++,eb(R,S,Ke,te)),Ke<=F&&(W=Ke+1),F<=Ke&&(te=Ke-1)}}function eb(R,S,F,W){yS(R,F,W),yS(S,2*F,2*W),yS(S,2*F+1,2*W+1)}function yS(R,S,F){let W=R[S];R[S]=R[F],R[F]=W}function Wk(R,S,F,W){let te=R-F,fe=S-W;return te*te+fe*fe}var Bw;i.bg=void 0,(Bw=i.bg||(i.bg={})).create="create",Bw.load="load",Bw.fullLoad="fullLoad";let tb=null,sh=[],_S=1e3/60,xS="loadTime",Nw="fullLoadTime",tO={mark(R){performance.mark(R)},frame(R){let S=R;tb!=null&&sh.push(S-tb),tb=S},clearMetrics(){tb=null,sh=[],performance.clearMeasures(xS),performance.clearMeasures(Nw);for(let R in i.bg)performance.clearMarks(i.bg[R])},getPerformanceMetrics(){performance.measure(xS,i.bg.create,i.bg.load),performance.measure(Nw,i.bg.create,i.bg.fullLoad);let R=performance.getEntriesByName(xS)[0].duration,S=performance.getEntriesByName(Nw)[0].duration,F=sh.length,W=1/(sh.reduce((fe,pe)=>fe+pe,0)/F/1e3),te=sh.filter(fe=>fe>_S).reduce((fe,pe)=>fe+(pe-_S)/_S,0);return{loadTime:R,fullLoadTime:S,fps:W,percentDroppedFrames:te/(F+te)*100,totalFrames:F}}};i.$=class extends Kt{},i.A=xi,i.B=hn,i.C=function(R){if(V==null){let S=R.navigator?R.navigator.userAgent:null;V=!!R.safari||!(!S||!(/\b(iPad|iPhone|iPod)\b/.test(S)||S.match("Safari")&&!S.match("Chrome")))}return V},i.D=Ua,i.E=Fe,i.F=class{constructor(R,S){this.target=R,this.mapId=S,this.resolveRejects={},this.tasks={},this.taskQueue=[],this.abortControllers={},this.messageHandlers={},this.invoker=new cS(()=>this.process()),this.subscription=function(F,W,te,fe){return F.addEventListener(W,te,!1),{unsubscribe:()=>{F.removeEventListener(W,te,!1)}}}(this.target,"message",F=>this.receive(F)),this.globalScope=O(self)?R:window}registerMessageHandler(R,S){this.messageHandlers[R]=S}sendAsync(R,S){return new Promise((F,W)=>{let te=Math.round(1e18*Math.random()).toString(36).substring(0,10);this.resolveRejects[te]={resolve:F,reject:W},S&&S.signal.addEventListener("abort",()=>{delete this.resolveRejects[te];let ze={id:te,type:"",origin:location.origin,targetMapId:R.targetMapId,sourceMapId:this.mapId};this.target.postMessage(ze)},{once:!0});let fe=[],pe=Object.assign(Object.assign({},R),{id:te,sourceMapId:this.mapId,origin:location.origin,data:La(R.data,fe)});this.target.postMessage(pe,{transfer:fe})})}receive(R){let S=R.data,F=S.id;if(!(S.origin!=="file://"&&location.origin!=="file://"&&S.origin!=="resource://android"&&location.origin!=="resource://android"&&S.origin!==location.origin||S.targetMapId&&this.mapId!==S.targetMapId)){if(S.type===""){delete this.tasks[F];let W=this.abortControllers[F];return delete this.abortControllers[F],void(W&&W.abort())}if(O(self)||S.mustQueue)return this.tasks[F]=S,this.taskQueue.push(F),void this.invoker.trigger();this.processTask(F,S)}}process(){if(this.taskQueue.length===0)return;let R=this.taskQueue.shift(),S=this.tasks[R];delete this.tasks[R],this.taskQueue.length>0&&this.invoker.trigger(),S&&this.processTask(R,S)}processTask(R,S){return a(this,void 0,void 0,function*(){if(S.type===""){let te=this.resolveRejects[R];return delete this.resolveRejects[R],te?void(S.error?te.reject(Na(S.error)):te.resolve(Na(S.data))):void 0}if(!this.messageHandlers[S.type])return void this.completeTask(R,new Error(`Could not find a registered handler for ${S.type}, map ID: ${this.mapId}, available handlers: ${Object.keys(this.messageHandlers).join(", ")}`));let F=Na(S.data),W=new AbortController;this.abortControllers[R]=W;try{let te=yield this.messageHandlers[S.type](S.sourceMapId,F,W);this.completeTask(R,null,te)}catch(te){this.completeTask(R,te)}})}completeTask(R,S,F){let W=[];delete this.abortControllers[R];let te={id:R,type:"",sourceMapId:this.mapId,origin:location.origin,error:S?La(S):null,data:La(F,W)};this.target.postMessage(te,{transfer:W})}remove(){this.invoker.remove(),this.subscription.unsubscribe()}},i.G=ke,i.H=function(){var R=new xi(16);return xi!=Float32Array&&(R[1]=0,R[2]=0,R[3]=0,R[4]=0,R[6]=0,R[7]=0,R[8]=0,R[9]=0,R[11]=0,R[12]=0,R[13]=0,R[14]=0),R[0]=1,R[5]=1,R[10]=1,R[15]=1,R},i.I=Cw,i.J=function(R,S,F){var W,te,fe,pe,ze,Ke,ut,Lt,Qt,fr,mr,Lr,zr=F[0],ui=F[1],yi=F[2];return S===R?(R[12]=S[0]*zr+S[4]*ui+S[8]*yi+S[12],R[13]=S[1]*zr+S[5]*ui+S[9]*yi+S[13],R[14]=S[2]*zr+S[6]*ui+S[10]*yi+S[14],R[15]=S[3]*zr+S[7]*ui+S[11]*yi+S[15]):(te=S[1],fe=S[2],pe=S[3],ze=S[4],Ke=S[5],ut=S[6],Lt=S[7],Qt=S[8],fr=S[9],mr=S[10],Lr=S[11],R[0]=W=S[0],R[1]=te,R[2]=fe,R[3]=pe,R[4]=ze,R[5]=Ke,R[6]=ut,R[7]=Lt,R[8]=Qt,R[9]=fr,R[10]=mr,R[11]=Lr,R[12]=W*zr+ze*ui+Qt*yi+S[12],R[13]=te*zr+Ke*ui+fr*yi+S[13],R[14]=fe*zr+ut*ui+mr*yi+S[14],R[15]=pe*zr+Lt*ui+Lr*yi+S[15]),R},i.K=function(R,S,F){var W=F[0],te=F[1],fe=F[2];return R[0]=S[0]*W,R[1]=S[1]*W,R[2]=S[2]*W,R[3]=S[3]*W,R[4]=S[4]*te,R[5]=S[5]*te,R[6]=S[6]*te,R[7]=S[7]*te,R[8]=S[8]*fe,R[9]=S[9]*fe,R[10]=S[10]*fe,R[11]=S[11]*fe,R[12]=S[12],R[13]=S[13],R[14]=S[14],R[15]=S[15],R},i.L=ci,i.M=function(R,S){let F={};for(let W=0;W{let S=window.document.createElement("video");return S.muted=!0,new Promise(F=>{S.onloadstart=()=>{F(S)};for(let W of R){let te=window.document.createElement("source");Le(W)||(S.crossOrigin="Anonymous"),te.src=W,S.appendChild(te)}})},i.a4=function(){return _++},i.a5=In,i.a6=E1,i.a7=Fc,i.a8=Sl,i.a9=dS,i.aA=function(R){if(R.type==="custom")return new uS(R);switch(R.type){case"background":return new X9(R);case"circle":return new vi(R);case"fill":return new mt(R);case"fill-extrusion":return new Ev(R);case"heatmap":return new oa(R);case"hillshade":return new Ys(R);case"line":return new ay(R);case"raster":return new Kx(R);case"symbol":return new uy(R)}},i.aB=g,i.aC=function(R,S){if(!R)return[{command:"setStyle",args:[S]}];let F=[];try{if(!pt(R.version,S.version))return[{command:"setStyle",args:[S]}];pt(R.center,S.center)||F.push({command:"setCenter",args:[S.center]}),pt(R.zoom,S.zoom)||F.push({command:"setZoom",args:[S.zoom]}),pt(R.bearing,S.bearing)||F.push({command:"setBearing",args:[S.bearing]}),pt(R.pitch,S.pitch)||F.push({command:"setPitch",args:[S.pitch]}),pt(R.sprite,S.sprite)||F.push({command:"setSprite",args:[S.sprite]}),pt(R.glyphs,S.glyphs)||F.push({command:"setGlyphs",args:[S.glyphs]}),pt(R.transition,S.transition)||F.push({command:"setTransition",args:[S.transition]}),pt(R.light,S.light)||F.push({command:"setLight",args:[S.light]}),pt(R.terrain,S.terrain)||F.push({command:"setTerrain",args:[S.terrain]}),pt(R.sky,S.sky)||F.push({command:"setSky",args:[S.sky]}),pt(R.projection,S.projection)||F.push({command:"setProjection",args:[S.projection]});let W={},te=[];(function(pe,ze,Ke,ut){let Lt;for(Lt in ze=ze||{},pe=pe||{})Object.prototype.hasOwnProperty.call(pe,Lt)&&(Object.prototype.hasOwnProperty.call(ze,Lt)||lt(Lt,Ke,ut));for(Lt in ze)Object.prototype.hasOwnProperty.call(ze,Lt)&&(Object.prototype.hasOwnProperty.call(pe,Lt)?pt(pe[Lt],ze[Lt])||(pe[Lt].type==="geojson"&&ze[Lt].type==="geojson"&&Nt(pe,ze,Lt)?Wt(Ke,{command:"setGeoJSONSourceData",args:[Lt,ze[Lt].data]}):Gt(Lt,ze,Ke,ut)):st(Lt,ze,Ke))})(R.sources,S.sources,te,W);let fe=[];R.layers&&R.layers.forEach(pe=>{"source"in pe&&W[pe.source]?F.push({command:"removeLayer",args:[pe.id]}):fe.push(pe)}),F=F.concat(te),function(pe,ze,Ke){ze=ze||[];let ut=(pe=pe||[]).map(sr),Lt=ze.map(sr),Qt=pe.reduce(wr,{}),fr=ze.reduce(wr,{}),mr=ut.slice(),Lr=Object.create(null),zr,ui,yi,dn,Fi;for(let ln=0,An=0;ln@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,(F,W,te,fe)=>{let pe=te||fe;return S[W]=!pe||pe.toLowerCase(),""}),S["max-age"]){let F=parseInt(S["max-age"],10);isNaN(F)?delete S["max-age"]:S["max-age"]=F}return S},i.ab=function(R,S){let F=[];for(let W in R)W in S||F.push(W);return F},i.ac=E,i.ad=function(R,S,F){var W=Math.sin(F),te=Math.cos(F),fe=S[0],pe=S[1],ze=S[2],Ke=S[3],ut=S[4],Lt=S[5],Qt=S[6],fr=S[7];return S!==R&&(R[8]=S[8],R[9]=S[9],R[10]=S[10],R[11]=S[11],R[12]=S[12],R[13]=S[13],R[14]=S[14],R[15]=S[15]),R[0]=fe*te+ut*W,R[1]=pe*te+Lt*W,R[2]=ze*te+Qt*W,R[3]=Ke*te+fr*W,R[4]=ut*te-fe*W,R[5]=Lt*te-pe*W,R[6]=Qt*te-ze*W,R[7]=fr*te-Ke*W,R},i.ae=function(R){var S=new xi(16);return S[0]=R[0],S[1]=R[1],S[2]=R[2],S[3]=R[3],S[4]=R[4],S[5]=R[5],S[6]=R[6],S[7]=R[7],S[8]=R[8],S[9]=R[9],S[10]=R[10],S[11]=R[11],S[12]=R[12],S[13]=R[13],S[14]=R[14],S[15]=R[15],S},i.af=qn,i.ag=function(R,S){let F=0,W=0;if(R.kind==="constant")W=R.layoutSize;else if(R.kind!=="source"){let{interpolationType:te,minZoom:fe,maxZoom:pe}=R,ze=te?E(Co.interpolationFactor(te,S,fe,pe),0,1):0;R.kind==="camera"?W=Lo.number(R.minSize,R.maxSize,ze):F=ze}return{uSizeT:F,uSize:W}},i.ai=function(R,{uSize:S,uSizeT:F},{lowerSize:W,upperSize:te}){return R.kind==="source"?W/v0:R.kind==="composite"?Lo.number(W/v0,te/v0,F):S},i.aj=aS,i.ak=function(R,S,F,W){let te=S.y-R.y,fe=S.x-R.x,pe=W.y-F.y,ze=W.x-F.x,Ke=pe*fe-ze*te;if(Ke===0)return null;let ut=(ze*(R.y-F.y)-pe*(R.x-F.x))/Ke;return new u(R.x+ut*fe,R.y+ut*te)},i.al=Dk,i.am=Sc,i.an=Ii,i.ao=function(R){let S=1/0,F=1/0,W=-1/0,te=-1/0;for(let fe of R)S=Math.min(S,fe.x),F=Math.min(F,fe.y),W=Math.max(W,fe.x),te=Math.max(te,fe.y);return[S,F,W,te]},i.ap=eu,i.ar=nS,i.as=function(R,S){var F=S[0],W=S[1],te=S[2],fe=S[3],pe=S[4],ze=S[5],Ke=S[6],ut=S[7],Lt=S[8],Qt=S[9],fr=S[10],mr=S[11],Lr=S[12],zr=S[13],ui=S[14],yi=S[15],dn=F*ze-W*pe,Fi=F*Ke-te*pe,ln=F*ut-fe*pe,An=W*Ke-te*ze,pa=W*ut-fe*ze,ro=te*ut-fe*Ke,Vo=Lt*zr-Qt*Lr,Xa=Lt*ui-fr*Lr,sa=Lt*yi-mr*Lr,Mo=Qt*ui-fr*zr,fo=Qt*yi-mr*zr,lo=fr*yi-mr*ui,Xn=dn*lo-Fi*fo+ln*Mo+An*sa-pa*Xa+ro*Vo;return Xn?(R[0]=(ze*lo-Ke*fo+ut*Mo)*(Xn=1/Xn),R[1]=(te*fo-W*lo-fe*Mo)*Xn,R[2]=(zr*ro-ui*pa+yi*An)*Xn,R[3]=(fr*pa-Qt*ro-mr*An)*Xn,R[4]=(Ke*sa-pe*lo-ut*Xa)*Xn,R[5]=(F*lo-te*sa+fe*Xa)*Xn,R[6]=(ui*ln-Lr*ro-yi*Fi)*Xn,R[7]=(Lt*ro-fr*ln+mr*Fi)*Xn,R[8]=(pe*fo-ze*sa+ut*Vo)*Xn,R[9]=(W*sa-F*fo-fe*Vo)*Xn,R[10]=(Lr*pa-zr*ln+yi*dn)*Xn,R[11]=(Qt*ln-Lt*pa-mr*dn)*Xn,R[12]=(ze*Xa-pe*Mo-Ke*Vo)*Xn,R[13]=(F*Mo-W*Xa+te*Vo)*Xn,R[14]=(zr*Fi-Lr*An-ui*dn)*Xn,R[15]=(Lt*An-Qt*Fi+fr*dn)*Xn,R):null},i.at=gS,i.au=Iw,i.av=mS,i.aw=function(){let R={},S=ce.$version;for(let F in ce.$root){let W=ce.$root[F];if(W.required){let te=null;te=F==="version"?S:W.type==="array"?[]:{},te!=null&&(R[F]=te)}}return R},i.ax=Yn,i.ay=ie,i.az=function(R){R=R.slice();let S=Object.create(null);for(let F=0;F25||W<0||W>=1||F<0||F>=1)},i.bc=function(R,S){return R[0]=S[0],R[1]=0,R[2]=0,R[3]=0,R[4]=0,R[5]=S[1],R[6]=0,R[7]=0,R[8]=0,R[9]=0,R[10]=S[2],R[11]=0,R[12]=0,R[13]=0,R[14]=0,R[15]=1,R},i.bd=class extends Tt{},i.be=fS,i.bf=tO,i.bh=me,i.bi=function(R,S){_e.REGISTERED_PROTOCOLS[R]=S},i.bj=function(R){delete _e.REGISTERED_PROTOCOLS[R]},i.bk=function(R,S){let F={};for(let te=0;telo*eu)}let Xa=pe?"center":F.get("text-justify").evaluate(ut,{},R.canonical),sa=F.get("symbol-placement")==="point"?F.get("text-max-width").evaluate(ut,{},R.canonical)*eu:1/0,Mo=()=>{R.bucket.allowVerticalPlacement&&Ka(ln)&&(Lr.vertical=Hx(zr,R.glyphMap,R.glyphPositions,R.imagePositions,Lt,sa,fe,ro,"left",pa,yi,i.ah.vertical,!0,fr,Qt))};if(!pe&&Vo){let fo=new Set;if(Xa==="auto")for(let Xn=0;Xna(void 0,void 0,void 0,function*(){if(R.byteLength===0)return createImageBitmap(new ImageData(1,1));let S=new Blob([new Uint8Array(R)],{type:"image/png"});try{return createImageBitmap(S)}catch(F){throw new Error(`Could not load image because of ${F.message}. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.`)}}),i.e=L,i.f=R=>new Promise((S,F)=>{let W=new Image;W.onload=()=>{S(W),URL.revokeObjectURL(W.src),W.onload=null,window.requestAnimationFrame(()=>{W.src=Z})},W.onerror=()=>F(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."));let te=new Blob([new Uint8Array(R)],{type:"image/png"});W.src=R.byteLength?URL.createObjectURL(te):Z}),i.g=Me,i.h=(R,S)=>Se(L(R,{type:"json"}),S),i.i=O,i.j=ge,i.k=Pe,i.l=(R,S)=>Se(L(R,{type:"arrayBuffer"}),S),i.m=Se,i.n=function(R){return new tS(R).readFields(kQ,[])},i.o=na,i.p=iS,i.q=ue,i.r=Wi,i.s=Le,i.t=Zi,i.u=Ei,i.v=ce,i.w=T,i.x=function([R,S,F]){return S+=90,S*=Math.PI/180,F*=Math.PI/180,{x:R*Math.cos(S)*Math.sin(F),y:R*Math.sin(S)*Math.sin(F),z:R*Math.cos(F)}},i.y=Lo,i.z=is}),r("worker",["./shared"],function(i){"use strict";class a{constructor(Ge){this.keyCache={},Ge&&this.replace(Ge)}replace(Ge){this._layerConfigs={},this._layers={},this.update(Ge,[])}update(Ge,Je){for(let $e of Ge){this._layerConfigs[$e.id]=$e;let wt=this._layers[$e.id]=i.aA($e);wt._featureFilter=i.a7(wt.filter),this.keyCache[$e.id]&&delete this.keyCache[$e.id]}for(let $e of Je)delete this.keyCache[$e],delete this._layerConfigs[$e],delete this._layers[$e];this.familiesBySource={};let je=i.bk(Object.values(this._layerConfigs),this.keyCache);for(let $e of je){let wt=$e.map(ir=>this._layers[ir.id]),Ie=wt[0];if(Ie.visibility==="none")continue;let xe=Ie.source||"",Ce=this.familiesBySource[xe];Ce||(Ce=this.familiesBySource[xe]={});let vt=Ie.sourceLayer||"_geojsonTileLayer",nr=Ce[vt];nr||(nr=Ce[vt]=[]),nr.push(wt)}}}class o{constructor(Ge){let Je={},je=[];for(let xe in Ge){let Ce=Ge[xe],vt=Je[xe]={};for(let nr in Ce){let ir=Ce[+nr];if(!ir||ir.bitmap.width===0||ir.bitmap.height===0)continue;let pr={x:0,y:0,w:ir.bitmap.width+2,h:ir.bitmap.height+2};je.push(pr),vt[nr]={rect:pr,metrics:ir.metrics}}}let{w:$e,h:wt}=i.p(je),Ie=new i.o({width:$e||1,height:wt||1});for(let xe in Ge){let Ce=Ge[xe];for(let vt in Ce){let nr=Ce[+vt];if(!nr||nr.bitmap.width===0||nr.bitmap.height===0)continue;let ir=Je[xe][vt].rect;i.o.copy(nr.bitmap,Ie,{x:0,y:0},{x:ir.x+1,y:ir.y+1},nr.bitmap)}}this.image=Ie,this.positions=Je}}i.bl("GlyphAtlas",o);class s{constructor(Ge){this.tileID=new i.S(Ge.tileID.overscaledZ,Ge.tileID.wrap,Ge.tileID.canonical.z,Ge.tileID.canonical.x,Ge.tileID.canonical.y),this.uid=Ge.uid,this.zoom=Ge.zoom,this.pixelRatio=Ge.pixelRatio,this.tileSize=Ge.tileSize,this.source=Ge.source,this.overscaling=this.tileID.overscaleFactor(),this.showCollisionBoxes=Ge.showCollisionBoxes,this.collectResourceTiming=!!Ge.collectResourceTiming,this.returnDependencies=!!Ge.returnDependencies,this.promoteId=Ge.promoteId,this.inFlightDependencies=[]}parse(Ge,Je,je,$e){return i._(this,void 0,void 0,function*(){this.status="parsing",this.data=Ge,this.collisionBoxArray=new i.a5;let wt=new i.bm(Object.keys(Ge.layers).sort()),Ie=new i.bn(this.tileID,this.promoteId);Ie.bucketLayerIDs=[];let xe={},Ce={featureIndex:Ie,iconDependencies:{},patternDependencies:{},glyphDependencies:{},availableImages:je},vt=Je.familiesBySource[this.source];for(let Vn in vt){let kn=Ge.layers[Vn];if(!kn)continue;kn.version===1&&i.w(`Vector tile source "${this.source}" layer "${Vn}" does not use vector tile spec v2 and therefore may have some rendering errors.`);let ea=wt.encode(Vn),ua=[];for(let Vt=0;Vt=_t.maxzoom||_t.visibility!=="none"&&(l(Vt,this.zoom,je),(xe[_t.id]=_t.createBucket({index:Ie.bucketLayerIDs.length,layers:Vt,zoom:this.zoom,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:ea,sourceID:this.source})).populate(ua,Ce,this.tileID.canonical),Ie.bucketLayerIDs.push(Vt.map(tr=>tr.id)))}}let nr=i.aF(Ce.glyphDependencies,Vn=>Object.keys(Vn).map(Number));this.inFlightDependencies.forEach(Vn=>Vn==null?void 0:Vn.abort()),this.inFlightDependencies=[];let ir=Promise.resolve({});if(Object.keys(nr).length){let Vn=new AbortController;this.inFlightDependencies.push(Vn),ir=$e.sendAsync({type:"GG",data:{stacks:nr,source:this.source,tileID:this.tileID,type:"glyphs"}},Vn)}let pr=Object.keys(Ce.iconDependencies),oi=Promise.resolve({});if(pr.length){let Vn=new AbortController;this.inFlightDependencies.push(Vn),oi=$e.sendAsync({type:"GI",data:{icons:pr,source:this.source,tileID:this.tileID,type:"icons"}},Vn)}let di=Object.keys(Ce.patternDependencies),Jr=Promise.resolve({});if(di.length){let Vn=new AbortController;this.inFlightDependencies.push(Vn),Jr=$e.sendAsync({type:"GI",data:{icons:di,source:this.source,tileID:this.tileID,type:"patterns"}},Vn)}let[fi,Hi,Pn]=yield Promise.all([ir,oi,Jr]),wn=new o(fi),pn=new i.bo(Hi,Pn);for(let Vn in xe){let kn=xe[Vn];kn instanceof i.a6?(l(kn.layers,this.zoom,je),i.bp({bucket:kn,glyphMap:fi,glyphPositions:wn.positions,imageMap:Hi,imagePositions:pn.iconPositions,showCollisionBoxes:this.showCollisionBoxes,canonical:this.tileID.canonical})):kn.hasPattern&&(kn instanceof i.bq||kn instanceof i.br||kn instanceof i.bs)&&(l(kn.layers,this.zoom,je),kn.addFeatures(Ce,this.tileID.canonical,pn.patternPositions))}return this.status="done",{buckets:Object.values(xe).filter(Vn=>!Vn.isEmpty()),featureIndex:Ie,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:wn.image,imageAtlas:pn,glyphMap:this.returnDependencies?fi:null,iconMap:this.returnDependencies?Hi:null,glyphPositions:this.returnDependencies?wn.positions:null}})}}function l(dt,Ge,Je){let je=new i.z(Ge);for(let $e of dt)$e.recalculate(je,Je)}class u{constructor(Ge,Je,je){this.actor=Ge,this.layerIndex=Je,this.availableImages=je,this.fetching={},this.loading={},this.loaded={}}loadVectorTile(Ge,Je){return i._(this,void 0,void 0,function*(){let je=yield i.l(Ge.request,Je);try{return{vectorTile:new i.bt.VectorTile(new i.bu(je.data)),rawData:je.data,cacheControl:je.cacheControl,expires:je.expires}}catch($e){let wt=new Uint8Array(je.data),Ie=`Unable to parse the tile at ${Ge.request.url}, `;throw Ie+=wt[0]===31&&wt[1]===139?"please make sure the data is not gzipped and that you have configured the relevant header in the server":`got error: ${$e.message}`,new Error(Ie)}})}loadTile(Ge){return i._(this,void 0,void 0,function*(){let Je=Ge.uid,je=!!(Ge&&Ge.request&&Ge.request.collectResourceTiming)&&new i.bv(Ge.request),$e=new s(Ge);this.loading[Je]=$e;let wt=new AbortController;$e.abort=wt;try{let Ie=yield this.loadVectorTile(Ge,wt);if(delete this.loading[Je],!Ie)return null;let xe=Ie.rawData,Ce={};Ie.expires&&(Ce.expires=Ie.expires),Ie.cacheControl&&(Ce.cacheControl=Ie.cacheControl);let vt={};if(je){let ir=je.finish();ir&&(vt.resourceTiming=JSON.parse(JSON.stringify(ir)))}$e.vectorTile=Ie.vectorTile;let nr=$e.parse(Ie.vectorTile,this.layerIndex,this.availableImages,this.actor);this.loaded[Je]=$e,this.fetching[Je]={rawTileData:xe,cacheControl:Ce,resourceTiming:vt};try{let ir=yield nr;return i.e({rawTileData:xe.slice(0)},ir,Ce,vt)}finally{delete this.fetching[Je]}}catch(Ie){throw delete this.loading[Je],$e.status="done",this.loaded[Je]=$e,Ie}})}reloadTile(Ge){return i._(this,void 0,void 0,function*(){let Je=Ge.uid;if(!this.loaded||!this.loaded[Je])throw new Error("Should not be trying to reload a tile that was never loaded or has been removed");let je=this.loaded[Je];if(je.showCollisionBoxes=Ge.showCollisionBoxes,je.status==="parsing"){let $e=yield je.parse(je.vectorTile,this.layerIndex,this.availableImages,this.actor),wt;if(this.fetching[Je]){let{rawTileData:Ie,cacheControl:xe,resourceTiming:Ce}=this.fetching[Je];delete this.fetching[Je],wt=i.e({rawTileData:Ie.slice(0)},$e,xe,Ce)}else wt=$e;return wt}if(je.status==="done"&&je.vectorTile)return je.parse(je.vectorTile,this.layerIndex,this.availableImages,this.actor)})}abortTile(Ge){return i._(this,void 0,void 0,function*(){let Je=this.loading,je=Ge.uid;Je&&Je[je]&&Je[je].abort&&(Je[je].abort.abort(),delete Je[je])})}removeTile(Ge){return i._(this,void 0,void 0,function*(){this.loaded&&this.loaded[Ge.uid]&&delete this.loaded[Ge.uid]})}}class c{constructor(){this.loaded={}}loadTile(Ge){return i._(this,void 0,void 0,function*(){let{uid:Je,encoding:je,rawImageData:$e,redFactor:wt,greenFactor:Ie,blueFactor:xe,baseShift:Ce}=Ge,vt=$e.width+2,nr=$e.height+2,ir=i.b($e)?new i.R({width:vt,height:nr},yield i.bw($e,-1,-1,vt,nr)):$e,pr=new i.bx(Je,ir,je,wt,Ie,xe,Ce);return this.loaded=this.loaded||{},this.loaded[Je]=pr,pr})}removeTile(Ge){let Je=this.loaded,je=Ge.uid;Je&&Je[je]&&delete Je[je]}}function f(dt,Ge){if(dt.length!==0){h(dt[0],Ge);for(var Je=1;Je=Math.abs(xe)?Je-Ce+xe:xe-Ce+Je,Je=Ce}Je+je>=0!=!!Ge&&dt.reverse()}var d=i.by(function dt(Ge,Je){var je,$e=Ge&&Ge.type;if($e==="FeatureCollection")for(je=0;je>31}function O(dt,Ge){for(var Je=dt.loadGeometry(),je=dt.type,$e=0,wt=0,Ie=Je.length,xe=0;xedt},H=Math.fround||(N=new Float32Array(1),dt=>(N[0]=+dt,N[0]));var N;let j=3,re=5,oe=6;class _e{constructor(Ge){this.options=Object.assign(Object.create(Z),Ge),this.trees=new Array(this.options.maxZoom+1),this.stride=this.options.reduce?7:6,this.clusterProps=[]}load(Ge){let{log:Je,minZoom:je,maxZoom:$e}=this.options;Je&&console.time("total time");let wt=`prepare ${Ge.length} points`;Je&&console.time(wt),this.points=Ge;let Ie=[];for(let Ce=0;Ce=je;Ce--){let vt=+Date.now();xe=this.trees[Ce]=this._createTree(this._cluster(xe,Ce)),Je&&console.log("z%d: %d clusters in %dms",Ce,xe.numItems,+Date.now()-vt)}return Je&&console.timeEnd("total time"),this}getClusters(Ge,Je){let je=((Ge[0]+180)%360+360)%360-180,$e=Math.max(-90,Math.min(90,Ge[1])),wt=Ge[2]===180?180:((Ge[2]+180)%360+360)%360-180,Ie=Math.max(-90,Math.min(90,Ge[3]));if(Ge[2]-Ge[0]>=360)je=-180,wt=180;else if(je>wt){let ir=this.getClusters([je,$e,180,Ie],Je),pr=this.getClusters([-180,$e,wt,Ie],Je);return ir.concat(pr)}let xe=this.trees[this._limitZoom(Je)],Ce=xe.range(me(je),ie(Ie),me(wt),ie($e)),vt=xe.data,nr=[];for(let ir of Ce){let pr=this.stride*ir;nr.push(vt[pr+re]>1?Me(vt,pr,this.clusterProps):this.points[vt[pr+j]])}return nr}getChildren(Ge){let Je=this._getOriginId(Ge),je=this._getOriginZoom(Ge),$e="No cluster with the specified id.",wt=this.trees[je];if(!wt)throw new Error($e);let Ie=wt.data;if(Je*this.stride>=Ie.length)throw new Error($e);let xe=this.options.radius/(this.options.extent*Math.pow(2,je-1)),Ce=wt.within(Ie[Je*this.stride],Ie[Je*this.stride+1],xe),vt=[];for(let nr of Ce){let ir=nr*this.stride;Ie[ir+4]===Ge&&vt.push(Ie[ir+re]>1?Me(Ie,ir,this.clusterProps):this.points[Ie[ir+j]])}if(vt.length===0)throw new Error($e);return vt}getLeaves(Ge,Je,je){let $e=[];return this._appendLeaves($e,Ge,Je=Je||10,je=je||0,0),$e}getTile(Ge,Je,je){let $e=this.trees[this._limitZoom(Ge)],wt=Math.pow(2,Ge),{extent:Ie,radius:xe}=this.options,Ce=xe/Ie,vt=(je-Ce)/wt,nr=(je+1+Ce)/wt,ir={features:[]};return this._addTileFeatures($e.range((Je-Ce)/wt,vt,(Je+1+Ce)/wt,nr),$e.data,Je,je,wt,ir),Je===0&&this._addTileFeatures($e.range(1-Ce/wt,vt,1,nr),$e.data,wt,je,wt,ir),Je===wt-1&&this._addTileFeatures($e.range(0,vt,Ce/wt,nr),$e.data,-1,je,wt,ir),ir.features.length?ir:null}getClusterExpansionZoom(Ge){let Je=this._getOriginZoom(Ge)-1;for(;Je<=this.options.maxZoom;){let je=this.getChildren(Ge);if(Je++,je.length!==1)break;Ge=je[0].properties.cluster_id}return Je}_appendLeaves(Ge,Je,je,$e,wt){let Ie=this.getChildren(Je);for(let xe of Ie){let Ce=xe.properties;if(Ce&&Ce.cluster?wt+Ce.point_count<=$e?wt+=Ce.point_count:wt=this._appendLeaves(Ge,Ce.cluster_id,je,$e,wt):wt<$e?wt++:Ge.push(xe),Ge.length===je)break}return wt}_createTree(Ge){let Je=new i.av(Ge.length/this.stride|0,this.options.nodeSize,Float32Array);for(let je=0;je1,nr,ir,pr;if(vt)nr=ke(Je,Ce,this.clusterProps),ir=Je[Ce],pr=Je[Ce+1];else{let Jr=this.points[Je[Ce+j]];nr=Jr.properties;let[fi,Hi]=Jr.geometry.coordinates;ir=me(fi),pr=ie(Hi)}let oi={type:1,geometry:[[Math.round(this.options.extent*(ir*wt-je)),Math.round(this.options.extent*(pr*wt-$e))]],tags:nr},di;di=vt||this.options.generateId?Je[Ce+j]:this.points[Je[Ce+j]].id,di!==void 0&&(oi.id=di),Ie.features.push(oi)}}_limitZoom(Ge){return Math.max(this.options.minZoom,Math.min(Math.floor(+Ge),this.options.maxZoom+1))}_cluster(Ge,Je){let{radius:je,extent:$e,reduce:wt,minPoints:Ie}=this.options,xe=je/($e*Math.pow(2,Je)),Ce=Ge.data,vt=[],nr=this.stride;for(let ir=0;irJe&&(fi+=Ce[Pn+re])}if(fi>Jr&&fi>=Ie){let Hi,Pn=pr*Jr,wn=oi*Jr,pn=-1,Vn=((ir/nr|0)<<5)+(Je+1)+this.points.length;for(let kn of di){let ea=kn*nr;if(Ce[ea+2]<=Je)continue;Ce[ea+2]=Je;let ua=Ce[ea+re];Pn+=Ce[ea]*ua,wn+=Ce[ea+1]*ua,Ce[ea+4]=Vn,wt&&(Hi||(Hi=this._map(Ce,ir,!0),pn=this.clusterProps.length,this.clusterProps.push(Hi)),wt(Hi,this._map(Ce,ea)))}Ce[ir+4]=Vn,vt.push(Pn/fi,wn/fi,1/0,Vn,-1,fi),wt&&vt.push(pn)}else{for(let Hi=0;Hi1)for(let Hi of di){let Pn=Hi*nr;if(!(Ce[Pn+2]<=Je)){Ce[Pn+2]=Je;for(let wn=0;wn>5}_getOriginZoom(Ge){return(Ge-this.points.length)%32}_map(Ge,Je,je){if(Ge[Je+re]>1){let Ie=this.clusterProps[Ge[Je+oe]];return je?Object.assign({},Ie):Ie}let $e=this.points[Ge[Je+j]].properties,wt=this.options.map($e);return je&&wt===$e?Object.assign({},wt):wt}}function Me(dt,Ge,Je){return{type:"Feature",id:dt[Ge+j],properties:ke(dt,Ge,Je),geometry:{type:"Point",coordinates:[(je=dt[Ge],360*(je-.5)),Se(dt[Ge+1])]}};var je}function ke(dt,Ge,Je){let je=dt[Ge+re],$e=je>=1e4?`${Math.round(je/1e3)}k`:je>=1e3?Math.round(je/100)/10+"k":je,wt=dt[Ge+oe],Ie=wt===-1?{}:Object.assign({},Je[wt]);return Object.assign(Ie,{cluster:!0,cluster_id:dt[Ge+j],point_count:je,point_count_abbreviated:$e})}function me(dt){return dt/360+.5}function ie(dt){let Ge=Math.sin(dt*Math.PI/180),Je=.5-.25*Math.log((1+Ge)/(1-Ge))/Math.PI;return Je<0?0:Je>1?1:Je}function Se(dt){let Ge=(180-360*dt)*Math.PI/180;return 360*Math.atan(Math.exp(Ge))/Math.PI-90}function Le(dt,Ge,Je,je){let $e=je,wt=Ge+(Je-Ge>>1),Ie,xe=Je-Ge,Ce=dt[Ge],vt=dt[Ge+1],nr=dt[Je],ir=dt[Je+1];for(let pr=Ge+3;pr$e)Ie=pr,$e=oi;else if(oi===$e){let di=Math.abs(pr-wt);dije&&(Ie-Ge>3&&Le(dt,Ge,Ie,je),dt[Ie+2]=$e,Je-Ie>3&&Le(dt,Ie,Je,je))}function Ae(dt,Ge,Je,je,$e,wt){let Ie=$e-Je,xe=wt-je;if(Ie!==0||xe!==0){let Ce=((dt-Je)*Ie+(Ge-je)*xe)/(Ie*Ie+xe*xe);Ce>1?(Je=$e,je=wt):Ce>0&&(Je+=Ie*Ce,je+=xe*Ce)}return Ie=dt-Je,xe=Ge-je,Ie*Ie+xe*xe}function De(dt,Ge,Je,je){let $e={id:dt==null?null:dt,type:Ge,geometry:Je,tags:je,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};if(Ge==="Point"||Ge==="MultiPoint"||Ge==="LineString")Pe($e,Je);else if(Ge==="Polygon")Pe($e,Je[0]);else if(Ge==="MultiLineString")for(let wt of Je)Pe($e,wt);else if(Ge==="MultiPolygon")for(let wt of Je)Pe($e,wt[0]);return $e}function Pe(dt,Ge){for(let Je=0;Je0&&(Ie+=je?($e*nr-vt*wt)/2:Math.sqrt(Math.pow(vt-$e,2)+Math.pow(nr-wt,2))),$e=vt,wt=nr}let xe=Ge.length-3;Ge[2]=1,Le(Ge,0,xe,Je),Ge[xe+2]=1,Ge.size=Math.abs(Ie),Ge.start=0,Ge.end=Ge.size}function Ze(dt,Ge,Je,je){for(let $e=0;$e1?1:Je}function Wt(dt,Ge,Je,je,$e,wt,Ie,xe){if(je/=Ge,wt>=(Je/=Ge)&&Ie=je)return null;let Ce=[];for(let vt of dt){let nr=vt.geometry,ir=vt.type,pr=$e===0?vt.minX:vt.minY,oi=$e===0?vt.maxX:vt.maxY;if(pr>=Je&&oi=je)continue;let di=[];if(ir==="Point"||ir==="MultiPoint")st(nr,di,Je,je,$e);else if(ir==="LineString")lt(nr,di,Je,je,$e,!1,xe.lineMetrics);else if(ir==="MultiLineString")Nt(nr,di,Je,je,$e,!1);else if(ir==="Polygon")Nt(nr,di,Je,je,$e,!0);else if(ir==="MultiPolygon")for(let Jr of nr){let fi=[];Nt(Jr,fi,Je,je,$e,!0),fi.length&&di.push(fi)}if(di.length){if(xe.lineMetrics&&ir==="LineString"){for(let Jr of di)Ce.push(De(vt.id,ir,Jr,vt.tags));continue}ir!=="LineString"&&ir!=="MultiLineString"||(di.length===1?(ir="LineString",di=di[0]):ir="MultiLineString"),ir!=="Point"&&ir!=="MultiPoint"||(ir=di.length===3?"Point":"MultiPoint"),Ce.push(De(vt.id,ir,di,vt.tags))}}return Ce.length?Ce:null}function st(dt,Ge,Je,je,$e){for(let wt=0;wt=Je&&Ie<=je&&$t(Ge,dt[wt],dt[wt+1],dt[wt+2])}}function lt(dt,Ge,Je,je,$e,wt,Ie){let xe=Gt(dt),Ce=$e===0?sr:wr,vt,nr,ir=dt.start;for(let fi=0;fiJe&&(nr=Ce(xe,Hi,Pn,pn,Vn,Je),Ie&&(xe.start=ir+vt*nr)):kn>je?ea=Je&&(nr=Ce(xe,Hi,Pn,pn,Vn,Je),ua=!0),ea>je&&kn<=je&&(nr=Ce(xe,Hi,Pn,pn,Vn,je),ua=!0),!wt&&ua&&(Ie&&(xe.end=ir+vt*nr),Ge.push(xe),xe=Gt(dt)),Ie&&(ir+=vt)}let pr=dt.length-3,oi=dt[pr],di=dt[pr+1],Jr=$e===0?oi:di;Jr>=Je&&Jr<=je&&$t(xe,oi,di,dt[pr+2]),pr=xe.length-3,wt&&pr>=3&&(xe[pr]!==xe[0]||xe[pr+1]!==xe[1])&&$t(xe,xe[0],xe[1],xe[2]),xe.length&&Ge.push(xe)}function Gt(dt){let Ge=[];return Ge.size=dt.size,Ge.start=dt.start,Ge.end=dt.end,Ge}function Nt(dt,Ge,Je,je,$e,wt){for(let Ie of dt)lt(Ie,Ge,Je,je,$e,wt,!1)}function $t(dt,Ge,Je,je){dt.push(Ge,Je,je)}function sr(dt,Ge,Je,je,$e,wt){let Ie=(wt-Ge)/(je-Ge);return $t(dt,wt,Je+($e-Je)*Ie,1),Ie}function wr(dt,Ge,Je,je,$e,wt){let Ie=(wt-Je)/($e-Je);return $t(dt,Ge+(je-Ge)*Ie,wt,1),Ie}function ur(dt,Ge){let Je=[];for(let je=0;je0&&Ge.size<($e?Ie:je))return void(Je.numPoints+=Ge.length/3);let xe=[];for(let Ce=0;CeIe)&&(Je.numSimplified++,xe.push(Ge[Ce],Ge[Ce+1])),Je.numPoints++;$e&&function(Ce,vt){let nr=0;for(let ir=0,pr=Ce.length,oi=pr-2;ir0===vt)for(let ir=0,pr=Ce.length;ir24)throw new Error("maxZoom should be in the 0-24 range");if(Je.promoteId&&Je.generateId)throw new Error("promoteId and generateId cannot be used together.");let $e=function(wt,Ie){let xe=[];if(wt.type==="FeatureCollection")for(let Ce=0;Ce1&&console.time("creation"),oi=this.tiles[pr]=Ut(Ge,Je,je,$e,vt),this.tileCoords.push({z:Je,x:je,y:$e}),nr)){nr>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",Je,je,$e,oi.numFeatures,oi.numPoints,oi.numSimplified),console.timeEnd("creation"));let ua=`z${Je}`;this.stats[ua]=(this.stats[ua]||0)+1,this.total++}if(oi.source=Ge,wt==null){if(Je===vt.indexMaxZoom||oi.numPoints<=vt.indexMaxPoints)continue}else{if(Je===vt.maxZoom||Je===wt)continue;if(wt!=null){let ua=wt-Je;if(je!==Ie>>ua||$e!==xe>>ua)continue}}if(oi.source=null,Ge.length===0)continue;nr>1&&console.time("clipping");let di=.5*vt.buffer/vt.extent,Jr=.5-di,fi=.5+di,Hi=1+di,Pn=null,wn=null,pn=null,Vn=null,kn=Wt(Ge,ir,je-di,je+fi,0,oi.minX,oi.maxX,vt),ea=Wt(Ge,ir,je+Jr,je+Hi,0,oi.minX,oi.maxX,vt);Ge=null,kn&&(Pn=Wt(kn,ir,$e-di,$e+fi,1,oi.minY,oi.maxY,vt),wn=Wt(kn,ir,$e+Jr,$e+Hi,1,oi.minY,oi.maxY,vt),kn=null),ea&&(pn=Wt(ea,ir,$e-di,$e+fi,1,oi.minY,oi.maxY,vt),Vn=Wt(ea,ir,$e+Jr,$e+Hi,1,oi.minY,oi.maxY,vt),ea=null),nr>1&&console.timeEnd("clipping"),Ce.push(Pn||[],Je+1,2*je,2*$e),Ce.push(wn||[],Je+1,2*je,2*$e+1),Ce.push(pn||[],Je+1,2*je+1,2*$e),Ce.push(Vn||[],Je+1,2*je+1,2*$e+1)}}getTile(Ge,Je,je){Ge=+Ge,Je=+Je,je=+je;let $e=this.options,{extent:wt,debug:Ie}=$e;if(Ge<0||Ge>24)return null;let xe=1<1&&console.log("drilling down to z%d-%d-%d",Ge,Je,je);let vt,nr=Ge,ir=Je,pr=je;for(;!vt&&nr>0;)nr--,ir>>=1,pr>>=1,vt=this.tiles[lr(nr,ir,pr)];return vt&&vt.source?(Ie>1&&(console.log("found parent tile z%d-%d-%d",nr,ir,pr),console.time("drilling down")),this.splitTile(vt.source,nr,ir,pr,Ge,Je,je),Ie>1&&console.timeEnd("drilling down"),this.tiles[Ce]?Et(this.tiles[Ce],wt):null):null}}function lr(dt,Ge,Je){return 32*((1<{ir.properties=oi;let di={};for(let Jr of pr)di[Jr]=Ce[Jr].evaluate(nr,ir);return di},Ie.reduce=(oi,di)=>{ir.properties=di;for(let Jr of pr)nr.accumulated=oi[Jr],oi[Jr]=vt[Jr].evaluate(nr,ir)},Ie}(Ge)).load((yield this._pendingData).features):($e=yield this._pendingData,new Yt($e,Ge.geojsonVtOptions)),this.loaded={};let wt={};if(je){let Ie=je.finish();Ie&&(wt.resourceTiming={},wt.resourceTiming[Ge.source]=JSON.parse(JSON.stringify(Ie)))}return wt}catch(wt){if(delete this._pendingRequest,i.bB(wt))return{abandoned:!0};throw wt}var $e})}getData(){return i._(this,void 0,void 0,function*(){return this._pendingData})}reloadTile(Ge){let Je=this.loaded;return Je&&Je[Ge.uid]?super.reloadTile(Ge):this.loadTile(Ge)}loadAndProcessGeoJSON(Ge,Je){return i._(this,void 0,void 0,function*(){let je=yield this.loadGeoJSON(Ge,Je);if(delete this._pendingRequest,typeof je!="object")throw new Error(`Input data given to '${Ge.source}' is not a valid GeoJSON object.`);if(d(je,!0),Ge.filter){let $e=i.bC(Ge.filter,{type:"boolean","property-type":"data-driven",overridable:!1,transition:!1});if($e.result==="error")throw new Error($e.value.map(Ie=>`${Ie.key}: ${Ie.message}`).join(", "));je={type:"FeatureCollection",features:je.features.filter(Ie=>$e.value.evaluate({zoom:0},Ie))}}return je})}loadGeoJSON(Ge,Je){return i._(this,void 0,void 0,function*(){let{promoteId:je}=Ge;if(Ge.request){let $e=yield i.h(Ge.request,Je);return this._dataUpdateable=Rr($e.data,je)?ei($e.data,je):void 0,$e.data}if(typeof Ge.data=="string")try{let $e=JSON.parse(Ge.data);return this._dataUpdateable=Rr($e,je)?ei($e,je):void 0,$e}catch($e){throw new Error(`Input data given to '${Ge.source}' is not a valid GeoJSON object.`)}if(!Ge.dataDiff)throw new Error(`Input data given to '${Ge.source}' is not a valid GeoJSON object.`);if(!this._dataUpdateable)throw new Error(`Cannot update existing geojson data in ${Ge.source}`);return function($e,wt,Ie){var xe,Ce,vt,nr;if(wt.removeAll&&$e.clear(),wt.remove)for(let ir of wt.remove)$e.delete(ir);if(wt.add)for(let ir of wt.add){let pr=Tr(ir,Ie);pr!=null&&$e.set(pr,ir)}if(wt.update)for(let ir of wt.update){let pr=$e.get(ir.id);if(pr==null)continue;let oi=!ir.removeAllProperties&&(((xe=ir.removeProperties)===null||xe===void 0?void 0:xe.length)>0||((Ce=ir.addOrUpdateProperties)===null||Ce===void 0?void 0:Ce.length)>0);if((ir.newGeometry||ir.removeAllProperties||oi)&&(pr=Object.assign({},pr),$e.set(ir.id,pr),oi&&(pr.properties=Object.assign({},pr.properties))),ir.newGeometry&&(pr.geometry=ir.newGeometry),ir.removeAllProperties)pr.properties={};else if(((vt=ir.removeProperties)===null||vt===void 0?void 0:vt.length)>0)for(let di of ir.removeProperties)Object.prototype.hasOwnProperty.call(pr.properties,di)&&delete pr.properties[di];if(((nr=ir.addOrUpdateProperties)===null||nr===void 0?void 0:nr.length)>0)for(let{key:di,value:Jr}of ir.addOrUpdateProperties)pr.properties[di]=Jr}}(this._dataUpdateable,Ge.dataDiff,je),{type:"FeatureCollection",features:Array.from(this._dataUpdateable.values())}})}removeSource(Ge){return i._(this,void 0,void 0,function*(){this._pendingRequest&&this._pendingRequest.abort()})}getClusterExpansionZoom(Ge){return this._geoJSONIndex.getClusterExpansionZoom(Ge.clusterId)}getClusterChildren(Ge){return this._geoJSONIndex.getChildren(Ge.clusterId)}getClusterLeaves(Ge){return this._geoJSONIndex.getLeaves(Ge.clusterId,Ge.limit,Ge.offset)}}class Ur{constructor(Ge){this.self=Ge,this.actor=new i.F(Ge),this.layerIndexes={},this.availableImages={},this.workerSources={},this.demWorkerSources={},this.externalWorkerSourceTypes={},this.self.registerWorkerSource=(Je,je)=>{if(this.externalWorkerSourceTypes[Je])throw new Error(`Worker source with name "${Je}" already registered.`);this.externalWorkerSourceTypes[Je]=je},this.self.addProtocol=i.bi,this.self.removeProtocol=i.bj,this.self.registerRTLTextPlugin=Je=>{if(i.bD.isParsed())throw new Error("RTL text plugin already registered.");i.bD.setMethods(Je)},this.actor.registerMessageHandler("LDT",(Je,je)=>this._getDEMWorkerSource(Je,je.source).loadTile(je)),this.actor.registerMessageHandler("RDT",(Je,je)=>i._(this,void 0,void 0,function*(){this._getDEMWorkerSource(Je,je.source).removeTile(je)})),this.actor.registerMessageHandler("GCEZ",(Je,je)=>i._(this,void 0,void 0,function*(){return this._getWorkerSource(Je,je.type,je.source).getClusterExpansionZoom(je)})),this.actor.registerMessageHandler("GCC",(Je,je)=>i._(this,void 0,void 0,function*(){return this._getWorkerSource(Je,je.type,je.source).getClusterChildren(je)})),this.actor.registerMessageHandler("GCL",(Je,je)=>i._(this,void 0,void 0,function*(){return this._getWorkerSource(Je,je.type,je.source).getClusterLeaves(je)})),this.actor.registerMessageHandler("LD",(Je,je)=>this._getWorkerSource(Je,je.type,je.source).loadData(je)),this.actor.registerMessageHandler("GD",(Je,je)=>this._getWorkerSource(Je,je.type,je.source).getData()),this.actor.registerMessageHandler("LT",(Je,je)=>this._getWorkerSource(Je,je.type,je.source).loadTile(je)),this.actor.registerMessageHandler("RT",(Je,je)=>this._getWorkerSource(Je,je.type,je.source).reloadTile(je)),this.actor.registerMessageHandler("AT",(Je,je)=>this._getWorkerSource(Je,je.type,je.source).abortTile(je)),this.actor.registerMessageHandler("RMT",(Je,je)=>this._getWorkerSource(Je,je.type,je.source).removeTile(je)),this.actor.registerMessageHandler("RS",(Je,je)=>i._(this,void 0,void 0,function*(){if(!this.workerSources[Je]||!this.workerSources[Je][je.type]||!this.workerSources[Je][je.type][je.source])return;let $e=this.workerSources[Je][je.type][je.source];delete this.workerSources[Je][je.type][je.source],$e.removeSource!==void 0&&$e.removeSource(je)})),this.actor.registerMessageHandler("RM",Je=>i._(this,void 0,void 0,function*(){delete this.layerIndexes[Je],delete this.availableImages[Je],delete this.workerSources[Je],delete this.demWorkerSources[Je]})),this.actor.registerMessageHandler("SR",(Je,je)=>i._(this,void 0,void 0,function*(){this.referrer=je})),this.actor.registerMessageHandler("SRPS",(Je,je)=>this._syncRTLPluginState(Je,je)),this.actor.registerMessageHandler("IS",(Je,je)=>i._(this,void 0,void 0,function*(){this.self.importScripts(je)})),this.actor.registerMessageHandler("SI",(Je,je)=>this._setImages(Je,je)),this.actor.registerMessageHandler("UL",(Je,je)=>i._(this,void 0,void 0,function*(){this._getLayerIndex(Je).update(je.layers,je.removedIds)})),this.actor.registerMessageHandler("SL",(Je,je)=>i._(this,void 0,void 0,function*(){this._getLayerIndex(Je).replace(je)}))}_setImages(Ge,Je){return i._(this,void 0,void 0,function*(){this.availableImages[Ge]=Je;for(let je in this.workerSources[Ge]){let $e=this.workerSources[Ge][je];for(let wt in $e)$e[wt].availableImages=Je}})}_syncRTLPluginState(Ge,Je){return i._(this,void 0,void 0,function*(){if(i.bD.isParsed())return i.bD.getState();if(Je.pluginStatus!=="loading")return i.bD.setState(Je),Je;let je=Je.pluginURL;if(this.self.importScripts(je),i.bD.isParsed()){let $e={pluginStatus:"loaded",pluginURL:je};return i.bD.setState($e),$e}throw i.bD.setState({pluginStatus:"error",pluginURL:""}),new Error(`RTL Text Plugin failed to import scripts from ${je}`)})}_getAvailableImages(Ge){let Je=this.availableImages[Ge];return Je||(Je=[]),Je}_getLayerIndex(Ge){let Je=this.layerIndexes[Ge];return Je||(Je=this.layerIndexes[Ge]=new a),Je}_getWorkerSource(Ge,Je,je){if(this.workerSources[Ge]||(this.workerSources[Ge]={}),this.workerSources[Ge][Je]||(this.workerSources[Ge][Je]={}),!this.workerSources[Ge][Je][je]){let $e={sendAsync:(wt,Ie)=>(wt.targetMapId=Ge,this.actor.sendAsync(wt,Ie))};switch(Je){case"vector":this.workerSources[Ge][Je][je]=new u($e,this._getLayerIndex(Ge),this._getAvailableImages(Ge));break;case"geojson":this.workerSources[Ge][Je][je]=new Wr($e,this._getLayerIndex(Ge),this._getAvailableImages(Ge));break;default:this.workerSources[Ge][Je][je]=new this.externalWorkerSourceTypes[Je]($e,this._getLayerIndex(Ge),this._getAvailableImages(Ge))}}return this.workerSources[Ge][Je][je]}_getDEMWorkerSource(Ge,Je){return this.demWorkerSources[Ge]||(this.demWorkerSources[Ge]={}),this.demWorkerSources[Ge][Je]||(this.demWorkerSources[Ge][Je]=new c),this.demWorkerSources[Ge][Je]}}return i.i(self)&&(self.worker=new Ur(self)),Ur}),r("index",["exports","./shared"],function(i,a){"use strict";var o="4.7.1";let s,l,u={now:typeof performance!="undefined"&&performance&&performance.now?performance.now.bind(performance):Date.now.bind(Date),frameAsync:ue=>new Promise((w,B)=>{let Q=requestAnimationFrame(w);ue.signal.addEventListener("abort",()=>{cancelAnimationFrame(Q),B(a.c())})}),getImageData(ue,w=0){return this.getImageCanvasContext(ue).getImageData(-w,-w,ue.width+2*w,ue.height+2*w)},getImageCanvasContext(ue){let w=window.document.createElement("canvas"),B=w.getContext("2d",{willReadFrequently:!0});if(!B)throw new Error("failed to create canvas 2d context");return w.width=ue.width,w.height=ue.height,B.drawImage(ue,0,0,ue.width,ue.height),B},resolveURL:ue=>(s||(s=document.createElement("a")),s.href=ue,s.href),hardwareConcurrency:typeof navigator!="undefined"&&navigator.hardwareConcurrency||4,get prefersReducedMotion(){return!!matchMedia&&(l==null&&(l=matchMedia("(prefers-reduced-motion: reduce)")),l.matches)}};class c{static testProp(w){if(!c.docStyle)return w[0];for(let B=0;B{window.removeEventListener("click",c.suppressClickInternal,!0)},0)}static getScale(w){let B=w.getBoundingClientRect();return{x:B.width/w.offsetWidth||1,y:B.height/w.offsetHeight||1,boundingClientRect:B}}static getPoint(w,B,Q){let ee=B.boundingClientRect;return new a.P((Q.clientX-ee.left)/B.x-w.clientLeft,(Q.clientY-ee.top)/B.y-w.clientTop)}static mousePos(w,B){let Q=c.getScale(w);return c.getPoint(w,Q,B)}static touchPos(w,B){let Q=[],ee=c.getScale(w);for(let le=0;le{h&&b(h),h=null,x=!0},d.onerror=()=>{v=!0,h=null},d.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA="),function(ue){let w,B,Q,ee;ue.resetRequestQueue=()=>{w=[],B=0,Q=0,ee={}},ue.addThrottleControl=ot=>{let Tt=Q++;return ee[Tt]=ot,Tt},ue.removeThrottleControl=ot=>{delete ee[ot],qe()},ue.getImage=(ot,Tt,Kt=!0)=>new Promise((Jt,xr)=>{f.supported&&(ot.headers||(ot.headers={}),ot.headers.accept="image/webp,*/*"),a.e(ot,{type:"image"}),w.push({abortController:Tt,requestParameters:ot,supportImageRefresh:Kt,state:"queued",onError:Pr=>{xr(Pr)},onSuccess:Pr=>{Jt(Pr)}}),qe()});let le=ot=>a._(this,void 0,void 0,function*(){ot.state="running";let{requestParameters:Tt,supportImageRefresh:Kt,onError:Jt,onSuccess:xr,abortController:Pr}=ot,ve=Kt===!1&&!a.i(self)&&!a.g(Tt.url)&&(!Tt.headers||Object.keys(Tt.headers).reduce((Be,tt)=>Be&&tt==="accept",!0));B++;let be=ve?Xe(Tt,Pr):a.m(Tt,Pr);try{let Be=yield be;delete ot.abortController,ot.state="completed",Be.data instanceof HTMLImageElement||a.b(Be.data)?xr(Be):Be.data&&xr({data:yield(Re=Be.data,typeof createImageBitmap=="function"?a.d(Re):a.f(Re)),cacheControl:Be.cacheControl,expires:Be.expires})}catch(Be){delete ot.abortController,Jt(Be)}finally{B--,qe()}var Re}),qe=()=>{let ot=(()=>{for(let Tt of Object.keys(ee))if(ee[Tt]())return!0;return!1})()?a.a.MAX_PARALLEL_IMAGE_REQUESTS_PER_FRAME:a.a.MAX_PARALLEL_IMAGE_REQUESTS;for(let Tt=B;Tt0;Tt++){let Kt=w.shift();Kt.abortController.signal.aborted?Tt--:le(Kt)}},Xe=(ot,Tt)=>new Promise((Kt,Jt)=>{let xr=new Image,Pr=ot.url,ve=ot.credentials;ve&&ve==="include"?xr.crossOrigin="use-credentials":(ve&&ve==="same-origin"||!a.s(Pr))&&(xr.crossOrigin="anonymous"),Tt.signal.addEventListener("abort",()=>{xr.src="",Jt(a.c())}),xr.fetchPriority="high",xr.onload=()=>{xr.onerror=xr.onload=null,Kt({data:xr})},xr.onerror=()=>{xr.onerror=xr.onload=null,Tt.signal.aborted||Jt(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."))},xr.src=Pr})}(p||(p={})),p.resetRequestQueue();class C{constructor(w){this._transformRequestFn=w}transformRequest(w,B){return this._transformRequestFn&&this._transformRequestFn(w,B)||{url:w}}setTransformRequest(w){this._transformRequestFn=w}}function E(ue){var w=new a.A(3);return w[0]=ue[0],w[1]=ue[1],w[2]=ue[2],w}var A,L=function(ue,w,B){return ue[0]=w[0]-B[0],ue[1]=w[1]-B[1],ue[2]=w[2]-B[2],ue};A=new a.A(3),a.A!=Float32Array&&(A[0]=0,A[1]=0,A[2]=0);var _=function(ue){var w=ue[0],B=ue[1];return w*w+B*B};function k(ue){let w=[];if(typeof ue=="string")w.push({id:"default",url:ue});else if(ue&&ue.length>0){let B=[];for(let{id:Q,url:ee}of ue){let le=`${Q}${ee}`;B.indexOf(le)===-1&&(B.push(le),w.push({id:Q,url:ee}))}}return w}function M(ue,w,B){let Q=ue.split("?");return Q[0]+=`${w}${B}`,Q.join("?")}(function(){var ue=new a.A(2);a.A!=Float32Array&&(ue[0]=0,ue[1]=0)})();class g{constructor(w,B,Q,ee){this.context=w,this.format=Q,this.texture=w.gl.createTexture(),this.update(B,ee)}update(w,B,Q){let{width:ee,height:le}=w,qe=!(this.size&&this.size[0]===ee&&this.size[1]===le||Q),{context:Xe}=this,{gl:ot}=Xe;if(this.useMipmap=!!(B&&B.useMipmap),ot.bindTexture(ot.TEXTURE_2D,this.texture),Xe.pixelStoreUnpackFlipY.set(!1),Xe.pixelStoreUnpack.set(1),Xe.pixelStoreUnpackPremultiplyAlpha.set(this.format===ot.RGBA&&(!B||B.premultiply!==!1)),qe)this.size=[ee,le],w instanceof HTMLImageElement||w instanceof HTMLCanvasElement||w instanceof HTMLVideoElement||w instanceof ImageData||a.b(w)?ot.texImage2D(ot.TEXTURE_2D,0,this.format,this.format,ot.UNSIGNED_BYTE,w):ot.texImage2D(ot.TEXTURE_2D,0,this.format,ee,le,0,this.format,ot.UNSIGNED_BYTE,w.data);else{let{x:Tt,y:Kt}=Q||{x:0,y:0};w instanceof HTMLImageElement||w instanceof HTMLCanvasElement||w instanceof HTMLVideoElement||w instanceof ImageData||a.b(w)?ot.texSubImage2D(ot.TEXTURE_2D,0,Tt,Kt,ot.RGBA,ot.UNSIGNED_BYTE,w):ot.texSubImage2D(ot.TEXTURE_2D,0,Tt,Kt,ee,le,ot.RGBA,ot.UNSIGNED_BYTE,w.data)}this.useMipmap&&this.isSizePowerOfTwo()&&ot.generateMipmap(ot.TEXTURE_2D)}bind(w,B,Q){let{context:ee}=this,{gl:le}=ee;le.bindTexture(le.TEXTURE_2D,this.texture),Q!==le.LINEAR_MIPMAP_NEAREST||this.isSizePowerOfTwo()||(Q=le.LINEAR),w!==this.filter&&(le.texParameteri(le.TEXTURE_2D,le.TEXTURE_MAG_FILTER,w),le.texParameteri(le.TEXTURE_2D,le.TEXTURE_MIN_FILTER,Q||w),this.filter=w),B!==this.wrap&&(le.texParameteri(le.TEXTURE_2D,le.TEXTURE_WRAP_S,B),le.texParameteri(le.TEXTURE_2D,le.TEXTURE_WRAP_T,B),this.wrap=B)}isSizePowerOfTwo(){return this.size[0]===this.size[1]&&Math.log(this.size[0])/Math.LN2%1==0}destroy(){let{gl:w}=this.context;w.deleteTexture(this.texture),this.texture=null}}function P(ue){let{userImage:w}=ue;return!!(w&&w.render&&w.render())&&(ue.data.replace(new Uint8Array(w.data.buffer)),!0)}class T extends a.E{constructor(){super(),this.images={},this.updatedImages={},this.callbackDispatchedThisFrame={},this.loaded=!1,this.requestors=[],this.patterns={},this.atlasImage=new a.R({width:1,height:1}),this.dirty=!0}isLoaded(){return this.loaded}setLoaded(w){if(this.loaded!==w&&(this.loaded=w,w)){for(let{ids:B,promiseResolve:Q}of this.requestors)Q(this._getImagesForIds(B));this.requestors=[]}}getImage(w){let B=this.images[w];if(B&&!B.data&&B.spriteData){let Q=B.spriteData;B.data=new a.R({width:Q.width,height:Q.height},Q.context.getImageData(Q.x,Q.y,Q.width,Q.height).data),B.spriteData=null}return B}addImage(w,B){if(this.images[w])throw new Error(`Image id ${w} already exist, use updateImage instead`);this._validate(w,B)&&(this.images[w]=B)}_validate(w,B){let Q=!0,ee=B.data||B.spriteData;return this._validateStretch(B.stretchX,ee&&ee.width)||(this.fire(new a.j(new Error(`Image "${w}" has invalid "stretchX" value`))),Q=!1),this._validateStretch(B.stretchY,ee&&ee.height)||(this.fire(new a.j(new Error(`Image "${w}" has invalid "stretchY" value`))),Q=!1),this._validateContent(B.content,B)||(this.fire(new a.j(new Error(`Image "${w}" has invalid "content" value`))),Q=!1),Q}_validateStretch(w,B){if(!w)return!0;let Q=0;for(let ee of w){if(ee[0]{let ee=!0;if(!this.isLoaded())for(let le of w)this.images[le]||(ee=!1);this.isLoaded()||ee?B(this._getImagesForIds(w)):this.requestors.push({ids:w,promiseResolve:B})})}_getImagesForIds(w){let B={};for(let Q of w){let ee=this.getImage(Q);ee||(this.fire(new a.k("styleimagemissing",{id:Q})),ee=this.getImage(Q)),ee?B[Q]={data:ee.data.clone(),pixelRatio:ee.pixelRatio,sdf:ee.sdf,version:ee.version,stretchX:ee.stretchX,stretchY:ee.stretchY,content:ee.content,textFitWidth:ee.textFitWidth,textFitHeight:ee.textFitHeight,hasRenderCallback:!!(ee.userImage&&ee.userImage.render)}:a.w(`Image "${Q}" could not be loaded. Please make sure you have added the image with map.addImage() or a "sprite" property in your style. You can provide missing images by listening for the "styleimagemissing" map event.`)}return B}getPixelSize(){let{width:w,height:B}=this.atlasImage;return{width:w,height:B}}getPattern(w){let B=this.patterns[w],Q=this.getImage(w);if(!Q)return null;if(B&&B.position.version===Q.version)return B.position;if(B)B.position.version=Q.version;else{let ee={w:Q.data.width+2,h:Q.data.height+2,x:0,y:0},le=new a.I(ee,Q);this.patterns[w]={bin:ee,position:le}}return this._updatePatternAtlas(),this.patterns[w].position}bind(w){let B=w.gl;this.atlasTexture?this.dirty&&(this.atlasTexture.update(this.atlasImage),this.dirty=!1):this.atlasTexture=new g(w,this.atlasImage,B.RGBA),this.atlasTexture.bind(B.LINEAR,B.CLAMP_TO_EDGE)}_updatePatternAtlas(){let w=[];for(let le in this.patterns)w.push(this.patterns[le].bin);let{w:B,h:Q}=a.p(w),ee=this.atlasImage;ee.resize({width:B||1,height:Q||1});for(let le in this.patterns){let{bin:qe}=this.patterns[le],Xe=qe.x+1,ot=qe.y+1,Tt=this.getImage(le).data,Kt=Tt.width,Jt=Tt.height;a.R.copy(Tt,ee,{x:0,y:0},{x:Xe,y:ot},{width:Kt,height:Jt}),a.R.copy(Tt,ee,{x:0,y:Jt-1},{x:Xe,y:ot-1},{width:Kt,height:1}),a.R.copy(Tt,ee,{x:0,y:0},{x:Xe,y:ot+Jt},{width:Kt,height:1}),a.R.copy(Tt,ee,{x:Kt-1,y:0},{x:Xe-1,y:ot},{width:1,height:Jt}),a.R.copy(Tt,ee,{x:0,y:0},{x:Xe+Kt,y:ot},{width:1,height:Jt})}this.dirty=!0}beginFrame(){this.callbackDispatchedThisFrame={}}dispatchRenderCallbacks(w){for(let B of w){if(this.callbackDispatchedThisFrame[B])continue;this.callbackDispatchedThisFrame[B]=!0;let Q=this.getImage(B);Q||a.w(`Image with ID: "${B}" was not found`),P(Q)&&this.updateImage(B,Q)}}}let z=1e20;function O(ue,w,B,Q,ee,le,qe,Xe,ot){for(let Tt=w;Tt-1);ot++,le[ot]=Xe,qe[ot]=Tt,qe[ot+1]=z}for(let Xe=0,ot=0;Xe65535)throw new Error("glyphs > 65535 not supported");if(Q.ranges[le])return{stack:w,id:B,glyph:ee};if(!this.url)throw new Error("glyphsUrl is not set");if(!Q.requests[le]){let Xe=G.loadGlyphRange(w,le,this.url,this.requestManager);Q.requests[le]=Xe}let qe=yield Q.requests[le];for(let Xe in qe)this._doesCharSupportLocalGlyph(+Xe)||(Q.glyphs[+Xe]=qe[+Xe]);return Q.ranges[le]=!0,{stack:w,id:B,glyph:qe[B]||null}})}_doesCharSupportLocalGlyph(w){return!!this.localIdeographFontFamily&&new RegExp("\\p{Ideo}|\\p{sc=Hang}|\\p{sc=Hira}|\\p{sc=Kana}","u").test(String.fromCodePoint(w))}_tinySDF(w,B,Q){let ee=this.localIdeographFontFamily;if(!ee||!this._doesCharSupportLocalGlyph(Q))return;let le=w.tinySDF;if(!le){let Xe="400";/bold/i.test(B)?Xe="900":/medium/i.test(B)?Xe="500":/light/i.test(B)&&(Xe="200"),le=w.tinySDF=new G.TinySDF({fontSize:48,buffer:6,radius:16,cutoff:.25,fontFamily:ee,fontWeight:Xe})}let qe=le.draw(String.fromCharCode(Q));return{id:Q,bitmap:new a.o({width:qe.width||60,height:qe.height||60},qe.data),metrics:{width:qe.glyphWidth/2||24,height:qe.glyphHeight/2||24,left:qe.glyphLeft/2+.5||0,top:qe.glyphTop/2-27.5||-8,advance:qe.glyphAdvance/2||24,isDoubleResolution:!0}}}}G.loadGlyphRange=function(ue,w,B,Q){return a._(this,void 0,void 0,function*(){let ee=256*w,le=ee+255,qe=Q.transformRequest(B.replace("{fontstack}",ue).replace("{range}",`${ee}-${le}`),"Glyphs"),Xe=yield a.l(qe,new AbortController);if(!Xe||!Xe.data)throw new Error(`Could not load glyph range. range: ${w}, ${ee}-${le}`);let ot={};for(let Tt of a.n(Xe.data))ot[Tt.id]=Tt;return ot})},G.TinySDF=class{constructor({fontSize:ue=24,buffer:w=3,radius:B=8,cutoff:Q=.25,fontFamily:ee="sans-serif",fontWeight:le="normal",fontStyle:qe="normal"}={}){this.buffer=w,this.cutoff=Q,this.radius=B;let Xe=this.size=ue+4*w,ot=this._createCanvas(Xe),Tt=this.ctx=ot.getContext("2d",{willReadFrequently:!0});Tt.font=`${qe} ${le} ${ue}px ${ee}`,Tt.textBaseline="alphabetic",Tt.textAlign="left",Tt.fillStyle="black",this.gridOuter=new Float64Array(Xe*Xe),this.gridInner=new Float64Array(Xe*Xe),this.f=new Float64Array(Xe),this.z=new Float64Array(Xe+1),this.v=new Uint16Array(Xe)}_createCanvas(ue){let w=document.createElement("canvas");return w.width=w.height=ue,w}draw(ue){let{width:w,actualBoundingBoxAscent:B,actualBoundingBoxDescent:Q,actualBoundingBoxLeft:ee,actualBoundingBoxRight:le}=this.ctx.measureText(ue),qe=Math.ceil(B),Xe=Math.max(0,Math.min(this.size-this.buffer,Math.ceil(le-ee))),ot=Math.min(this.size-this.buffer,qe+Math.ceil(Q)),Tt=Xe+2*this.buffer,Kt=ot+2*this.buffer,Jt=Math.max(Tt*Kt,0),xr=new Uint8ClampedArray(Jt),Pr={data:xr,width:Tt,height:Kt,glyphWidth:Xe,glyphHeight:ot,glyphTop:qe,glyphLeft:0,glyphAdvance:w};if(Xe===0||ot===0)return Pr;let{ctx:ve,buffer:be,gridInner:Re,gridOuter:Be}=this;ve.clearRect(be,be,Xe,ot),ve.fillText(ue,be,be+qe);let tt=ve.getImageData(be,be,Xe,ot);Be.fill(z,0,Jt),Re.fill(0,0,Jt);for(let We=0;We0?rr*rr:0,Re[Ht]=rr<0?rr*rr:0}}O(Be,0,0,Tt,Kt,Tt,this.f,this.v,this.z),O(Re,be,be,Xe,ot,Tt,this.f,this.v,this.z);for(let We=0;We1&&(ot=w[++Xe]);let Kt=Math.abs(Tt-ot.left),Jt=Math.abs(Tt-ot.right),xr=Math.min(Kt,Jt),Pr,ve=le/Q*(ee+1);if(ot.isDash){let be=ee-Math.abs(ve);Pr=Math.sqrt(xr*xr+be*be)}else Pr=ee-Math.sqrt(xr*xr+ve*ve);this.data[qe+Tt]=Math.max(0,Math.min(255,Pr+128))}}}addRegularDash(w){for(let Xe=w.length-1;Xe>=0;--Xe){let ot=w[Xe],Tt=w[Xe+1];ot.zeroLength?w.splice(Xe,1):Tt&&Tt.isDash===ot.isDash&&(Tt.left=ot.left,w.splice(Xe,1))}let B=w[0],Q=w[w.length-1];B.isDash===Q.isDash&&(B.left=Q.left-this.width,Q.right=B.right+this.width);let ee=this.width*this.nextRow,le=0,qe=w[le];for(let Xe=0;Xe1&&(qe=w[++le]);let ot=Math.abs(Xe-qe.left),Tt=Math.abs(Xe-qe.right),Kt=Math.min(ot,Tt);this.data[ee+Xe]=Math.max(0,Math.min(255,(qe.isDash?Kt:-Kt)+128))}}addDash(w,B){let Q=B?7:0,ee=2*Q+1;if(this.nextRow+ee>this.height)return a.w("LineAtlas out of space"),null;let le=0;for(let Xe=0;Xe{B.terminate()}),this.workers=null)}isPreloaded(){return!!this.active[_e]}numActive(){return Object.keys(this.active).length}}let ke=Math.floor(u.hardwareConcurrency/2),me,ie;function Se(){return me||(me=new Me),me}Me.workerCount=a.C(globalThis)?Math.max(Math.min(ke,3),1):1;class Le{constructor(w,B){this.workerPool=w,this.actors=[],this.currentActor=0,this.id=B;let Q=this.workerPool.acquire(B);for(let ee=0;ee{B.remove()}),this.actors=[],w&&this.workerPool.release(this.id)}registerMessageHandler(w,B){for(let Q of this.actors)Q.registerMessageHandler(w,B)}}function Ae(){return ie||(ie=new Le(Se(),a.G),ie.registerMessageHandler("GR",(ue,w,B)=>a.m(w,B))),ie}function De(ue,w){let B=a.H();return a.J(B,B,[1,1,0]),a.K(B,B,[.5*ue.width,.5*ue.height,1]),a.L(B,B,ue.calculatePosMatrix(w.toUnwrapped()))}function Pe(ue,w,B,Q,ee,le){let qe=function(Jt,xr,Pr){if(Jt)for(let ve of Jt){let be=xr[ve];if(be&&be.source===Pr&&be.type==="fill-extrusion")return!0}else for(let ve in xr){let be=xr[ve];if(be.source===Pr&&be.type==="fill-extrusion")return!0}return!1}(ee&&ee.layers,w,ue.id),Xe=le.maxPitchScaleFactor(),ot=ue.tilesIn(Q,Xe,qe);ot.sort(ge);let Tt=[];for(let Jt of ot)Tt.push({wrappedTileID:Jt.tileID.wrapped().key,queryResults:Jt.tile.queryRenderedFeatures(w,B,ue._state,Jt.queryGeometry,Jt.cameraQueryGeometry,Jt.scale,ee,le,Xe,De(ue.transform,Jt.tileID))});let Kt=function(Jt){let xr={},Pr={};for(let ve of Jt){let be=ve.queryResults,Re=ve.wrappedTileID,Be=Pr[Re]=Pr[Re]||{};for(let tt in be){let We=be[tt],it=Be[tt]=Be[tt]||{},Dt=xr[tt]=xr[tt]||[];for(let Ht of We)it[Ht.featureIndex]||(it[Ht.featureIndex]=!0,Dt.push(Ht))}}return xr}(Tt);for(let Jt in Kt)Kt[Jt].forEach(xr=>{let Pr=xr.feature,ve=ue.getFeatureState(Pr.layer["source-layer"],Pr.id);Pr.source=Pr.layer.source,Pr.layer["source-layer"]&&(Pr.sourceLayer=Pr.layer["source-layer"]),Pr.state=ve});return Kt}function ge(ue,w){let B=ue.tileID,Q=w.tileID;return B.overscaledZ-Q.overscaledZ||B.canonical.y-Q.canonical.y||B.wrap-Q.wrap||B.canonical.x-Q.canonical.x}function Fe(ue,w,B){return a._(this,void 0,void 0,function*(){let Q=ue;if(ue.url?Q=(yield a.h(w.transformRequest(ue.url,"Source"),B)).data:yield u.frameAsync(B),!Q)return null;let ee=a.M(a.e(Q,ue),["tiles","minzoom","maxzoom","attribution","bounds","scheme","tileSize","encoding"]);return"vector_layers"in Q&&Q.vector_layers&&(ee.vectorLayerIds=Q.vector_layers.map(le=>le.id)),ee})}class ce{constructor(w,B){w&&(B?this.setSouthWest(w).setNorthEast(B):Array.isArray(w)&&(w.length===4?this.setSouthWest([w[0],w[1]]).setNorthEast([w[2],w[3]]):this.setSouthWest(w[0]).setNorthEast(w[1])))}setNorthEast(w){return this._ne=w instanceof a.N?new a.N(w.lng,w.lat):a.N.convert(w),this}setSouthWest(w){return this._sw=w instanceof a.N?new a.N(w.lng,w.lat):a.N.convert(w),this}extend(w){let B=this._sw,Q=this._ne,ee,le;if(w instanceof a.N)ee=w,le=w;else{if(!(w instanceof ce))return Array.isArray(w)?w.length===4||w.every(Array.isArray)?this.extend(ce.convert(w)):this.extend(a.N.convert(w)):w&&("lng"in w||"lon"in w)&&"lat"in w?this.extend(a.N.convert(w)):this;if(ee=w._sw,le=w._ne,!ee||!le)return this}return B||Q?(B.lng=Math.min(ee.lng,B.lng),B.lat=Math.min(ee.lat,B.lat),Q.lng=Math.max(le.lng,Q.lng),Q.lat=Math.max(le.lat,Q.lat)):(this._sw=new a.N(ee.lng,ee.lat),this._ne=new a.N(le.lng,le.lat)),this}getCenter(){return new a.N((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 a.N(this.getWest(),this.getNorth())}getSouthEast(){return new a.N(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(w){let{lng:B,lat:Q}=a.N.convert(w),ee=this._sw.lng<=B&&B<=this._ne.lng;return this._sw.lng>this._ne.lng&&(ee=this._sw.lng>=B&&B>=this._ne.lng),this._sw.lat<=Q&&Q<=this._ne.lat&&ee}static convert(w){return w instanceof ce?w:w&&new ce(w)}static fromLngLat(w,B=0){let Q=360*B/40075017,ee=Q/Math.cos(Math.PI/180*w.lat);return new ce(new a.N(w.lng-ee,w.lat-Q),new a.N(w.lng+ee,w.lat+Q))}adjustAntiMeridian(){let w=new a.N(this._sw.lng,this._sw.lat),B=new a.N(this._ne.lng,this._ne.lat);return new ce(w,w.lng>B.lng?new a.N(B.lng+360,B.lat):B)}}class Ze{constructor(w,B,Q){this.bounds=ce.convert(this.validateBounds(w)),this.minzoom=B||0,this.maxzoom=Q||24}validateBounds(w){return Array.isArray(w)&&w.length===4?[Math.max(-180,w[0]),Math.max(-90,w[1]),Math.min(180,w[2]),Math.min(90,w[3])]:[-180,-90,180,90]}contains(w){let B=Math.pow(2,w.z),Q=Math.floor(a.O(this.bounds.getWest())*B),ee=Math.floor(a.Q(this.bounds.getNorth())*B),le=Math.ceil(a.O(this.bounds.getEast())*B),qe=Math.ceil(a.Q(this.bounds.getSouth())*B);return w.x>=Q&&w.x=ee&&w.y{this._options.tiles=w}),this}setUrl(w){return this.setSourceProperty(()=>{this.url=w,this._options.url=w}),this}onRemove(){this._tileJSONRequest&&(this._tileJSONRequest.abort(),this._tileJSONRequest=null)}serialize(){return a.e({},this._options)}loadTile(w){return a._(this,void 0,void 0,function*(){let B=w.tileID.canonical.url(this.tiles,this.map.getPixelRatio(),this.scheme),Q={request:this.map._requestManager.transformRequest(B,"Tile"),uid:w.uid,tileID:w.tileID,zoom:w.tileID.overscaledZ,tileSize:this.tileSize*w.tileID.overscaleFactor(),type:this.type,source:this.id,pixelRatio:this.map.getPixelRatio(),showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId};Q.request.collectResourceTiming=this._collectResourceTiming;let ee="RT";if(w.actor&&w.state!=="expired"){if(w.state==="loading")return new Promise((le,qe)=>{w.reloadPromise={resolve:le,reject:qe}})}else w.actor=this.dispatcher.getActor(),ee="LT";w.abortController=new AbortController;try{let le=yield w.actor.sendAsync({type:ee,data:Q},w.abortController);if(delete w.abortController,w.aborted)return;this._afterTileLoadWorkerResponse(w,le)}catch(le){if(delete w.abortController,w.aborted)return;if(le&&le.status!==404)throw le;this._afterTileLoadWorkerResponse(w,null)}})}_afterTileLoadWorkerResponse(w,B){if(B&&B.resourceTiming&&(w.resourceTiming=B.resourceTiming),B&&this.map._refreshExpiredTiles&&w.setExpiryData(B),w.loadVectorData(B,this.map.painter),w.reloadPromise){let Q=w.reloadPromise;w.reloadPromise=null,this.loadTile(w).then(Q.resolve).catch(Q.reject)}}abortTile(w){return a._(this,void 0,void 0,function*(){w.abortController&&(w.abortController.abort(),delete w.abortController),w.actor&&(yield w.actor.sendAsync({type:"AT",data:{uid:w.uid,type:this.type,source:this.id}}))})}unloadTile(w){return a._(this,void 0,void 0,function*(){w.unloadVectorData(),w.actor&&(yield w.actor.sendAsync({type:"RMT",data:{uid:w.uid,type:this.type,source:this.id}}))})}hasTransition(){return!1}}class pt extends a.E{constructor(w,B,Q,ee){super(),this.id=w,this.dispatcher=Q,this.setEventedParent(ee),this.type="raster",this.minzoom=0,this.maxzoom=22,this.roundZoom=!0,this.scheme="xyz",this.tileSize=512,this._loaded=!1,this._options=a.e({type:"raster"},B),a.e(this,a.M(B,["url","scheme","tileSize"]))}load(){return a._(this,void 0,void 0,function*(){this._loaded=!1,this.fire(new a.k("dataloading",{dataType:"source"})),this._tileJSONRequest=new AbortController;try{let w=yield Fe(this._options,this.map._requestManager,this._tileJSONRequest);this._tileJSONRequest=null,this._loaded=!0,w&&(a.e(this,w),w.bounds&&(this.tileBounds=new Ze(w.bounds,this.minzoom,this.maxzoom)),this.fire(new a.k("data",{dataType:"source",sourceDataType:"metadata"})),this.fire(new a.k("data",{dataType:"source",sourceDataType:"content"})))}catch(w){this._tileJSONRequest=null,this.fire(new a.j(w))}})}loaded(){return this._loaded}onAdd(w){this.map=w,this.load()}onRemove(){this._tileJSONRequest&&(this._tileJSONRequest.abort(),this._tileJSONRequest=null)}setSourceProperty(w){this._tileJSONRequest&&(this._tileJSONRequest.abort(),this._tileJSONRequest=null),w(),this.load()}setTiles(w){return this.setSourceProperty(()=>{this._options.tiles=w}),this}setUrl(w){return this.setSourceProperty(()=>{this.url=w,this._options.url=w}),this}serialize(){return a.e({},this._options)}hasTile(w){return!this.tileBounds||this.tileBounds.contains(w.canonical)}loadTile(w){return a._(this,void 0,void 0,function*(){let B=w.tileID.canonical.url(this.tiles,this.map.getPixelRatio(),this.scheme);w.abortController=new AbortController;try{let Q=yield p.getImage(this.map._requestManager.transformRequest(B,"Tile"),w.abortController,this.map._refreshExpiredTiles);if(delete w.abortController,w.aborted)return void(w.state="unloaded");if(Q&&Q.data){this.map._refreshExpiredTiles&&Q.cacheControl&&Q.expires&&w.setExpiryData({cacheControl:Q.cacheControl,expires:Q.expires});let ee=this.map.painter.context,le=ee.gl,qe=Q.data;w.texture=this.map.painter.getTileTexture(qe.width),w.texture?w.texture.update(qe,{useMipmap:!0}):(w.texture=new g(ee,qe,le.RGBA,{useMipmap:!0}),w.texture.bind(le.LINEAR,le.CLAMP_TO_EDGE,le.LINEAR_MIPMAP_NEAREST)),w.state="loaded"}}catch(Q){if(delete w.abortController,w.aborted)w.state="unloaded";else if(Q)throw w.state="errored",Q}})}abortTile(w){return a._(this,void 0,void 0,function*(){w.abortController&&(w.abortController.abort(),delete w.abortController)})}unloadTile(w){return a._(this,void 0,void 0,function*(){w.texture&&this.map.painter.saveTileTexture(w.texture)})}hasTransition(){return!1}}class Wt extends pt{constructor(w,B,Q,ee){super(w,B,Q,ee),this.type="raster-dem",this.maxzoom=22,this._options=a.e({type:"raster-dem"},B),this.encoding=B.encoding||"mapbox",this.redFactor=B.redFactor,this.greenFactor=B.greenFactor,this.blueFactor=B.blueFactor,this.baseShift=B.baseShift}loadTile(w){return a._(this,void 0,void 0,function*(){let B=w.tileID.canonical.url(this.tiles,this.map.getPixelRatio(),this.scheme),Q=this.map._requestManager.transformRequest(B,"Tile");w.neighboringTiles=this._getNeighboringTiles(w.tileID),w.abortController=new AbortController;try{let ee=yield p.getImage(Q,w.abortController,this.map._refreshExpiredTiles);if(delete w.abortController,w.aborted)return void(w.state="unloaded");if(ee&&ee.data){let le=ee.data;this.map._refreshExpiredTiles&&ee.cacheControl&&ee.expires&&w.setExpiryData({cacheControl:ee.cacheControl,expires:ee.expires});let qe=a.b(le)&&a.U()?le:yield this.readImageNow(le),Xe={type:this.type,uid:w.uid,source:this.id,rawImageData:qe,encoding:this.encoding,redFactor:this.redFactor,greenFactor:this.greenFactor,blueFactor:this.blueFactor,baseShift:this.baseShift};if(!w.actor||w.state==="expired"){w.actor=this.dispatcher.getActor();let ot=yield w.actor.sendAsync({type:"LDT",data:Xe});w.dem=ot,w.needsHillshadePrepare=!0,w.needsTerrainPrepare=!0,w.state="loaded"}}}catch(ee){if(delete w.abortController,w.aborted)w.state="unloaded";else if(ee)throw w.state="errored",ee}})}readImageNow(w){return a._(this,void 0,void 0,function*(){if(typeof VideoFrame!="undefined"&&a.V()){let B=w.width+2,Q=w.height+2;try{return new a.R({width:B,height:Q},yield a.W(w,-1,-1,B,Q))}catch(ee){}}return u.getImageData(w,1)})}_getNeighboringTiles(w){let B=w.canonical,Q=Math.pow(2,B.z),ee=(B.x-1+Q)%Q,le=B.x===0?w.wrap-1:w.wrap,qe=(B.x+1+Q)%Q,Xe=B.x+1===Q?w.wrap+1:w.wrap,ot={};return ot[new a.S(w.overscaledZ,le,B.z,ee,B.y).key]={backfilled:!1},ot[new a.S(w.overscaledZ,Xe,B.z,qe,B.y).key]={backfilled:!1},B.y>0&&(ot[new a.S(w.overscaledZ,le,B.z,ee,B.y-1).key]={backfilled:!1},ot[new a.S(w.overscaledZ,w.wrap,B.z,B.x,B.y-1).key]={backfilled:!1},ot[new a.S(w.overscaledZ,Xe,B.z,qe,B.y-1).key]={backfilled:!1}),B.y+10&&a.e(le,{resourceTiming:ee}),this.fire(new a.k("data",Object.assign(Object.assign({},le),{sourceDataType:"metadata"}))),this.fire(new a.k("data",Object.assign(Object.assign({},le),{sourceDataType:"content"})))}catch(Q){if(this._pendingLoads--,this._removed)return void this.fire(new a.k("dataabort",{dataType:"source"}));this.fire(new a.j(Q))}})}loaded(){return this._pendingLoads===0}loadTile(w){return a._(this,void 0,void 0,function*(){let B=w.actor?"RT":"LT";w.actor=this.actor;let Q={type:this.type,uid:w.uid,tileID:w.tileID,zoom:w.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:this.map.getPixelRatio(),showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId};w.abortController=new AbortController;let ee=yield this.actor.sendAsync({type:B,data:Q},w.abortController);delete w.abortController,w.unloadVectorData(),w.aborted||w.loadVectorData(ee,this.map.painter,B==="RT")})}abortTile(w){return a._(this,void 0,void 0,function*(){w.abortController&&(w.abortController.abort(),delete w.abortController),w.aborted=!0})}unloadTile(w){return a._(this,void 0,void 0,function*(){w.unloadVectorData(),yield this.actor.sendAsync({type:"RMT",data:{uid:w.uid,type:this.type,source:this.id}})})}onRemove(){this._removed=!0,this.actor.sendAsync({type:"RS",data:{type:this.type,source:this.id}})}serialize(){return a.e({},this._options,{type:this.type,data:this._data})}hasTransition(){return!1}}var lt=a.Y([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]);class Gt extends a.E{constructor(w,B,Q,ee){super(),this.id=w,this.dispatcher=Q,this.coordinates=B.coordinates,this.type="image",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent(ee),this.options=B}load(w){return a._(this,void 0,void 0,function*(){this._loaded=!1,this.fire(new a.k("dataloading",{dataType:"source"})),this.url=this.options.url,this._request=new AbortController;try{let B=yield p.getImage(this.map._requestManager.transformRequest(this.url,"Image"),this._request);this._request=null,this._loaded=!0,B&&B.data&&(this.image=B.data,w&&(this.coordinates=w),this._finishLoading())}catch(B){this._request=null,this._loaded=!0,this.fire(new a.j(B))}})}loaded(){return this._loaded}updateImage(w){return w.url?(this._request&&(this._request.abort(),this._request=null),this.options.url=w.url,this.load(w.coordinates).finally(()=>{this.texture=null}),this):this}_finishLoading(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new a.k("data",{dataType:"source",sourceDataType:"metadata"})))}onAdd(w){this.map=w,this.load()}onRemove(){this._request&&(this._request.abort(),this._request=null)}setCoordinates(w){this.coordinates=w;let B=w.map(a.Z.fromLngLat);this.tileID=function(ee){let le=1/0,qe=1/0,Xe=-1/0,ot=-1/0;for(let xr of ee)le=Math.min(le,xr.x),qe=Math.min(qe,xr.y),Xe=Math.max(Xe,xr.x),ot=Math.max(ot,xr.y);let Tt=Math.max(Xe-le,ot-qe),Kt=Math.max(0,Math.floor(-Math.log(Tt)/Math.LN2)),Jt=Math.pow(2,Kt);return new a.a1(Kt,Math.floor((le+Xe)/2*Jt),Math.floor((qe+ot)/2*Jt))}(B),this.minzoom=this.maxzoom=this.tileID.z;let Q=B.map(ee=>this.tileID.getTilePoint(ee)._round());return this._boundsArray=new a.$,this._boundsArray.emplaceBack(Q[0].x,Q[0].y,0,0),this._boundsArray.emplaceBack(Q[1].x,Q[1].y,a.X,0),this._boundsArray.emplaceBack(Q[3].x,Q[3].y,0,a.X),this._boundsArray.emplaceBack(Q[2].x,Q[2].y,a.X,a.X),this.boundsBuffer&&(this.boundsBuffer.destroy(),delete this.boundsBuffer),this.fire(new a.k("data",{dataType:"source",sourceDataType:"content"})),this}prepare(){if(Object.keys(this.tiles).length===0||!this.image)return;let w=this.map.painter.context,B=w.gl;this.boundsBuffer||(this.boundsBuffer=w.createVertexBuffer(this._boundsArray,lt.members)),this.boundsSegments||(this.boundsSegments=a.a0.simpleSegment(0,0,4,2)),this.texture||(this.texture=new g(w,this.image,B.RGBA),this.texture.bind(B.LINEAR,B.CLAMP_TO_EDGE));let Q=!1;for(let ee in this.tiles){let le=this.tiles[ee];le.state!=="loaded"&&(le.state="loaded",le.texture=this.texture,Q=!0)}Q&&this.fire(new a.k("data",{dataType:"source",sourceDataType:"idle",sourceId:this.id}))}loadTile(w){return a._(this,void 0,void 0,function*(){this.tileID&&this.tileID.equals(w.tileID.canonical)?(this.tiles[String(w.tileID.wrap)]=w,w.buckets={}):w.state="errored"})}serialize(){return{type:"image",url:this.options.url,coordinates:this.coordinates}}hasTransition(){return!1}}class Nt extends Gt{constructor(w,B,Q,ee){super(w,B,Q,ee),this.roundZoom=!0,this.type="video",this.options=B}load(){return a._(this,void 0,void 0,function*(){this._loaded=!1;let w=this.options;this.urls=[];for(let B of w.urls)this.urls.push(this.map._requestManager.transformRequest(B,"Source").url);try{let B=yield a.a3(this.urls);if(this._loaded=!0,!B)return;this.video=B,this.video.loop=!0,this.video.addEventListener("playing",()=>{this.map.triggerRepaint()}),this.map&&this.video.play(),this._finishLoading()}catch(B){this.fire(new a.j(B))}})}pause(){this.video&&this.video.pause()}play(){this.video&&this.video.play()}seek(w){if(this.video){let B=this.video.seekable;wB.end(0)?this.fire(new a.j(new a.a2(`sources.${this.id}`,null,`Playback for this video can be set only between the ${B.start(0)} and ${B.end(0)}-second mark.`))):this.video.currentTime=w}}getVideo(){return this.video}onAdd(w){this.map||(this.map=w,this.load(),this.video&&(this.video.play(),this.setCoordinates(this.coordinates)))}prepare(){if(Object.keys(this.tiles).length===0||this.video.readyState<2)return;let w=this.map.painter.context,B=w.gl;this.boundsBuffer||(this.boundsBuffer=w.createVertexBuffer(this._boundsArray,lt.members)),this.boundsSegments||(this.boundsSegments=a.a0.simpleSegment(0,0,4,2)),this.texture?this.video.paused||(this.texture.bind(B.LINEAR,B.CLAMP_TO_EDGE),B.texSubImage2D(B.TEXTURE_2D,0,0,0,B.RGBA,B.UNSIGNED_BYTE,this.video)):(this.texture=new g(w,this.video,B.RGBA),this.texture.bind(B.LINEAR,B.CLAMP_TO_EDGE));let Q=!1;for(let ee in this.tiles){let le=this.tiles[ee];le.state!=="loaded"&&(le.state="loaded",le.texture=this.texture,Q=!0)}Q&&this.fire(new a.k("data",{dataType:"source",sourceDataType:"idle",sourceId:this.id}))}serialize(){return{type:"video",urls:this.urls,coordinates:this.coordinates}}hasTransition(){return this.video&&!this.video.paused}}class $t extends Gt{constructor(w,B,Q,ee){super(w,B,Q,ee),B.coordinates?Array.isArray(B.coordinates)&&B.coordinates.length===4&&!B.coordinates.some(le=>!Array.isArray(le)||le.length!==2||le.some(qe=>typeof qe!="number"))||this.fire(new a.j(new a.a2(`sources.${w}`,null,'"coordinates" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new a.j(new a.a2(`sources.${w}`,null,'missing required property "coordinates"'))),B.animate&&typeof B.animate!="boolean"&&this.fire(new a.j(new a.a2(`sources.${w}`,null,'optional "animate" property must be a boolean value'))),B.canvas?typeof B.canvas=="string"||B.canvas instanceof HTMLCanvasElement||this.fire(new a.j(new a.a2(`sources.${w}`,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 a.j(new a.a2(`sources.${w}`,null,'missing required property "canvas"'))),this.options=B,this.animate=B.animate===void 0||B.animate}load(){return a._(this,void 0,void 0,function*(){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 a.j(new Error("Canvas dimensions cannot be less than or equal to zero."))):(this.play=function(){this._playing=!0,this.map.triggerRepaint()},this.pause=function(){this._playing&&(this.prepare(),this._playing=!1)},this._finishLoading())})}getCanvas(){return this.canvas}onAdd(w){this.map=w,this.load(),this.canvas&&this.animate&&this.play()}onRemove(){this.pause()}prepare(){let w=!1;if(this.canvas.width!==this.width&&(this.width=this.canvas.width,w=!0),this.canvas.height!==this.height&&(this.height=this.canvas.height,w=!0),this._hasInvalidDimensions()||Object.keys(this.tiles).length===0)return;let B=this.map.painter.context,Q=B.gl;this.boundsBuffer||(this.boundsBuffer=B.createVertexBuffer(this._boundsArray,lt.members)),this.boundsSegments||(this.boundsSegments=a.a0.simpleSegment(0,0,4,2)),this.texture?(w||this._playing)&&this.texture.update(this.canvas,{premultiply:!0}):this.texture=new g(B,this.canvas,Q.RGBA,{premultiply:!0});let ee=!1;for(let le in this.tiles){let qe=this.tiles[le];qe.state!=="loaded"&&(qe.state="loaded",qe.texture=this.texture,ee=!0)}ee&&this.fire(new a.k("data",{dataType:"source",sourceDataType:"idle",sourceId:this.id}))}serialize(){return{type:"canvas",coordinates:this.coordinates}}hasTransition(){return this._playing}_hasInvalidDimensions(){for(let w of[this.canvas.width,this.canvas.height])if(isNaN(w)||w<=0)return!0;return!1}}let sr={},wr=ue=>{switch(ue){case"geojson":return st;case"image":return Gt;case"raster":return pt;case"raster-dem":return Wt;case"vector":return ct;case"video":return Nt;case"canvas":return $t}return sr[ue]},ur="RTLPluginLoaded";class Qe extends a.E{constructor(){super(...arguments),this.status="unavailable",this.url=null,this.dispatcher=Ae()}_syncState(w){return this.status=w,this.dispatcher.broadcast("SRPS",{pluginStatus:w,pluginURL:this.url}).catch(B=>{throw this.status="error",B})}getRTLTextPluginStatus(){return this.status}clearRTLTextPlugin(){this.status="unavailable",this.url=null}setRTLTextPlugin(w){return a._(this,arguments,void 0,function*(B,Q=!1){if(this.url)throw new Error("setRTLTextPlugin cannot be called multiple times.");if(this.url=u.resolveURL(B),!this.url)throw new Error(`requested url ${B} is invalid`);if(this.status==="unavailable"){if(!Q)return this._requestImport();this.status="deferred",this._syncState(this.status)}else if(this.status==="requested")return this._requestImport()})}_requestImport(){return a._(this,void 0,void 0,function*(){yield this._syncState("loading"),this.status="loaded",this.fire(new a.k(ur))})}lazyLoad(){this.status==="unavailable"?this.status="requested":this.status==="deferred"&&this._requestImport()}}let Et=null;function er(){return Et||(Et=new Qe),Et}class Ut{constructor(w,B){this.timeAdded=0,this.fadeEndTime=0,this.tileID=w,this.uid=a.a4(),this.uses=0,this.tileSize=B,this.buckets={},this.expirationTime=null,this.queryPadding=0,this.hasSymbolBuckets=!1,this.hasRTLText=!1,this.dependencies={},this.rtt=[],this.rttCoords={},this.expiredRequestCount=0,this.state="loading"}registerFadeDuration(w){let B=w+this.timeAdded;Ble.getLayer(Tt)).filter(Boolean);if(ot.length!==0){Xe.layers=ot,Xe.stateDependentLayerIds&&(Xe.stateDependentLayers=Xe.stateDependentLayerIds.map(Tt=>ot.filter(Kt=>Kt.id===Tt)[0]));for(let Tt of ot)qe[Tt.id]=Xe}}return qe}(w.buckets,B.style),this.hasSymbolBuckets=!1;for(let ee in this.buckets){let le=this.buckets[ee];if(le instanceof a.a6){if(this.hasSymbolBuckets=!0,!Q)break;le.justReloaded=!0}}if(this.hasRTLText=!1,this.hasSymbolBuckets)for(let ee in this.buckets){let le=this.buckets[ee];if(le instanceof a.a6&&le.hasRTLText){this.hasRTLText=!0,er().lazyLoad();break}}this.queryPadding=0;for(let ee in this.buckets){let le=this.buckets[ee];this.queryPadding=Math.max(this.queryPadding,B.style.getLayer(ee).queryRadius(le))}w.imageAtlas&&(this.imageAtlas=w.imageAtlas),w.glyphAtlasImage&&(this.glyphAtlasImage=w.glyphAtlasImage)}else this.collisionBoxArray=new a.a5}unloadVectorData(){for(let w in this.buckets)this.buckets[w].destroy();this.buckets={},this.imageAtlasTexture&&this.imageAtlasTexture.destroy(),this.imageAtlas&&(this.imageAtlas=null),this.glyphAtlasTexture&&this.glyphAtlasTexture.destroy(),this.latestFeatureIndex=null,this.state="unloaded"}getBucket(w){return this.buckets[w.id]}upload(w){for(let Q in this.buckets){let ee=this.buckets[Q];ee.uploadPending()&&ee.upload(w)}let B=w.gl;this.imageAtlas&&!this.imageAtlas.uploaded&&(this.imageAtlasTexture=new g(w,this.imageAtlas.image,B.RGBA),this.imageAtlas.uploaded=!0),this.glyphAtlasImage&&(this.glyphAtlasTexture=new g(w,this.glyphAtlasImage,B.ALPHA),this.glyphAtlasImage=null)}prepare(w){this.imageAtlas&&this.imageAtlas.patchUpdatedImages(w,this.imageAtlasTexture)}queryRenderedFeatures(w,B,Q,ee,le,qe,Xe,ot,Tt,Kt){return this.latestFeatureIndex&&this.latestFeatureIndex.rawTileData?this.latestFeatureIndex.query({queryGeometry:ee,cameraQueryGeometry:le,scale:qe,tileSize:this.tileSize,pixelPosMatrix:Kt,transform:ot,params:Xe,queryPadding:this.queryPadding*Tt},w,B,Q):{}}querySourceFeatures(w,B){let Q=this.latestFeatureIndex;if(!Q||!Q.rawTileData)return;let ee=Q.loadVTLayers(),le=B&&B.sourceLayer?B.sourceLayer:"",qe=ee._geojsonTileLayer||ee[le];if(!qe)return;let Xe=a.a7(B&&B.filter),{z:ot,x:Tt,y:Kt}=this.tileID.canonical,Jt={z:ot,x:Tt,y:Kt};for(let xr=0;xrQ)ee=!1;else if(B)if(this.expirationTime{this.remove(w,le)},Q)),this.data[ee].push(le),this.order.push(ee),this.order.length>this.max){let qe=this._getAndRemoveByKey(this.order[0]);qe&&this.onRemove(qe)}return this}has(w){return w.wrapped().key in this.data}getAndRemove(w){return this.has(w)?this._getAndRemoveByKey(w.wrapped().key):null}_getAndRemoveByKey(w){let B=this.data[w].shift();return B.timeout&&clearTimeout(B.timeout),this.data[w].length===0&&delete this.data[w],this.order.splice(this.order.indexOf(w),1),B.value}getByKey(w){let B=this.data[w];return B?B[0].value:null}get(w){return this.has(w)?this.data[w.wrapped().key][0].value:null}remove(w,B){if(!this.has(w))return this;let Q=w.wrapped().key,ee=B===void 0?0:this.data[Q].indexOf(B),le=this.data[Q][ee];return this.data[Q].splice(ee,1),le.timeout&&clearTimeout(le.timeout),this.data[Q].length===0&&delete this.data[Q],this.onRemove(le.value),this.order.splice(this.order.indexOf(Q),1),this}setMaxSize(w){for(this.max=w;this.order.length>this.max;){let B=this._getAndRemoveByKey(this.order[0]);B&&this.onRemove(B)}return this}filter(w){let B=[];for(let Q in this.data)for(let ee of this.data[Q])w(ee.value)||B.push(ee);for(let Q of B)this.remove(Q.value.tileID,Q)}}class bt{constructor(){this.state={},this.stateChanges={},this.deletedStates={}}updateState(w,B,Q){let ee=String(B);if(this.stateChanges[w]=this.stateChanges[w]||{},this.stateChanges[w][ee]=this.stateChanges[w][ee]||{},a.e(this.stateChanges[w][ee],Q),this.deletedStates[w]===null){this.deletedStates[w]={};for(let le in this.state[w])le!==ee&&(this.deletedStates[w][le]=null)}else if(this.deletedStates[w]&&this.deletedStates[w][ee]===null){this.deletedStates[w][ee]={};for(let le in this.state[w][ee])Q[le]||(this.deletedStates[w][ee][le]=null)}else for(let le in Q)this.deletedStates[w]&&this.deletedStates[w][ee]&&this.deletedStates[w][ee][le]===null&&delete this.deletedStates[w][ee][le]}removeFeatureState(w,B,Q){if(this.deletedStates[w]===null)return;let ee=String(B);if(this.deletedStates[w]=this.deletedStates[w]||{},Q&&B!==void 0)this.deletedStates[w][ee]!==null&&(this.deletedStates[w][ee]=this.deletedStates[w][ee]||{},this.deletedStates[w][ee][Q]=null);else if(B!==void 0)if(this.stateChanges[w]&&this.stateChanges[w][ee])for(Q in this.deletedStates[w][ee]={},this.stateChanges[w][ee])this.deletedStates[w][ee][Q]=null;else this.deletedStates[w][ee]=null;else this.deletedStates[w]=null}getState(w,B){let Q=String(B),ee=a.e({},(this.state[w]||{})[Q],(this.stateChanges[w]||{})[Q]);if(this.deletedStates[w]===null)return{};if(this.deletedStates[w]){let le=this.deletedStates[w][B];if(le===null)return{};for(let qe in le)delete ee[qe]}return ee}initializeTileState(w,B){w.setFeatureState(this.state,B)}coalesceChanges(w,B){let Q={};for(let ee in this.stateChanges){this.state[ee]=this.state[ee]||{};let le={};for(let qe in this.stateChanges[ee])this.state[ee][qe]||(this.state[ee][qe]={}),a.e(this.state[ee][qe],this.stateChanges[ee][qe]),le[qe]=this.state[ee][qe];Q[ee]=le}for(let ee in this.deletedStates){this.state[ee]=this.state[ee]||{};let le={};if(this.deletedStates[ee]===null)for(let qe in this.state[ee])le[qe]={},this.state[ee][qe]={};else for(let qe in this.deletedStates[ee]){if(this.deletedStates[ee][qe]===null)this.state[ee][qe]={};else for(let Xe of Object.keys(this.deletedStates[ee][qe]))delete this.state[ee][qe][Xe];le[qe]=this.state[ee][qe]}Q[ee]=Q[ee]||{},a.e(Q[ee],le)}if(this.stateChanges={},this.deletedStates={},Object.keys(Q).length!==0)for(let ee in w)w[ee].setFeatureState(Q,B)}}class yt extends a.E{constructor(w,B,Q){super(),this.id=w,this.dispatcher=Q,this.on("data",ee=>this._dataHandler(ee)),this.on("dataloading",()=>{this._sourceErrored=!1}),this.on("error",()=>{this._sourceErrored=this._source.loaded()}),this._source=((ee,le,qe,Xe)=>{let ot=new(wr(le.type))(ee,le,qe,Xe);if(ot.id!==ee)throw new Error(`Expected Source id to be ${ee} instead of ${ot.id}`);return ot})(w,B,Q,this),this._tiles={},this._cache=new Ft(0,ee=>this._unloadTile(ee)),this._timers={},this._cacheTimers={},this._maxTileCacheSize=null,this._maxTileCacheZoomLevels=null,this._loadedParentTiles={},this._coveredTiles={},this._state=new bt,this._didEmitContent=!1,this._updated=!1}onAdd(w){this.map=w,this._maxTileCacheSize=w?w._maxTileCacheSize:null,this._maxTileCacheZoomLevels=w?w._maxTileCacheZoomLevels:null,this._source&&this._source.onAdd&&this._source.onAdd(w)}onRemove(w){this.clearTiles(),this._source&&this._source.onRemove&&this._source.onRemove(w)}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 w in this._tiles){let B=this._tiles[w];if(B.state!=="loaded"&&B.state!=="errored")return!1}return!0}getSource(){return this._source}pause(){this._paused=!0}resume(){if(!this._paused)return;let w=this._shouldReloadOnResume;this._paused=!1,this._shouldReloadOnResume=!1,w&&this.reload(),this.transform&&this.update(this.transform,this.terrain)}_loadTile(w,B,Q){return a._(this,void 0,void 0,function*(){try{yield this._source.loadTile(w),this._tileLoaded(w,B,Q)}catch(ee){w.state="errored",ee.status!==404?this._source.fire(new a.j(ee,{tile:w})):this.update(this.transform,this.terrain)}})}_unloadTile(w){this._source.unloadTile&&this._source.unloadTile(w)}_abortTile(w){this._source.abortTile&&this._source.abortTile(w),this._source.fire(new a.k("dataabort",{tile:w,coord:w.tileID,dataType:"source"}))}serialize(){return this._source.serialize()}prepare(w){this._source.prepare&&this._source.prepare(),this._state.coalesceChanges(this._tiles,this.map?this.map.painter:null);for(let B in this._tiles){let Q=this._tiles[B];Q.upload(w),Q.prepare(this.map.style.imageManager)}}getIds(){return Object.values(this._tiles).map(w=>w.tileID).sort(Yt).map(w=>w.key)}getRenderableIds(w){let B=[];for(let Q in this._tiles)this._isIdRenderable(Q,w)&&B.push(this._tiles[Q]);return w?B.sort((Q,ee)=>{let le=Q.tileID,qe=ee.tileID,Xe=new a.P(le.canonical.x,le.canonical.y)._rotate(this.transform.angle),ot=new a.P(qe.canonical.x,qe.canonical.y)._rotate(this.transform.angle);return le.overscaledZ-qe.overscaledZ||ot.y-Xe.y||ot.x-Xe.x}).map(Q=>Q.tileID.key):B.map(Q=>Q.tileID).sort(Yt).map(Q=>Q.key)}hasRenderableParent(w){let B=this.findLoadedParent(w,0);return!!B&&this._isIdRenderable(B.tileID.key)}_isIdRenderable(w,B){return this._tiles[w]&&this._tiles[w].hasData()&&!this._coveredTiles[w]&&(B||!this._tiles[w].holdingForFade())}reload(){if(this._paused)this._shouldReloadOnResume=!0;else{this._cache.reset();for(let w in this._tiles)this._tiles[w].state!=="errored"&&this._reloadTile(w,"reloading")}}_reloadTile(w,B){return a._(this,void 0,void 0,function*(){let Q=this._tiles[w];Q&&(Q.state!=="loading"&&(Q.state=B),yield this._loadTile(Q,w,B))})}_tileLoaded(w,B,Q){w.timeAdded=u.now(),Q==="expired"&&(w.refreshedUponExpiration=!0),this._setTileReloadTimer(B,w),this.getSource().type==="raster-dem"&&w.dem&&this._backfillDEM(w),this._state.initializeTileState(w,this.map?this.map.painter:null),w.aborted||this._source.fire(new a.k("data",{dataType:"source",tile:w,coord:w.tileID}))}_backfillDEM(w){let B=this.getRenderableIds();for(let ee=0;ee1||(Math.abs(qe)>1&&(Math.abs(qe+ot)===1?qe+=ot:Math.abs(qe-ot)===1&&(qe-=ot)),le.dem&&ee.dem&&(ee.dem.backfillBorder(le.dem,qe,Xe),ee.neighboringTiles&&ee.neighboringTiles[Tt]&&(ee.neighboringTiles[Tt].backfilled=!0)))}}getTile(w){return this.getTileByID(w.key)}getTileByID(w){return this._tiles[w]}_retainLoadedChildren(w,B,Q,ee){for(let le in this._tiles){let qe=this._tiles[le];if(ee[le]||!qe.hasData()||qe.tileID.overscaledZ<=B||qe.tileID.overscaledZ>Q)continue;let Xe=qe.tileID;for(;qe&&qe.tileID.overscaledZ>B+1;){let Tt=qe.tileID.scaledTo(qe.tileID.overscaledZ-1);qe=this._tiles[Tt.key],qe&&qe.hasData()&&(Xe=Tt)}let ot=Xe;for(;ot.overscaledZ>B;)if(ot=ot.scaledTo(ot.overscaledZ-1),w[ot.key]){ee[Xe.key]=Xe;break}}}findLoadedParent(w,B){if(w.key in this._loadedParentTiles){let Q=this._loadedParentTiles[w.key];return Q&&Q.tileID.overscaledZ>=B?Q:null}for(let Q=w.overscaledZ-1;Q>=B;Q--){let ee=w.scaledTo(Q),le=this._getLoadedTile(ee);if(le)return le}}findLoadedSibling(w){return this._getLoadedTile(w)}_getLoadedTile(w){let B=this._tiles[w.key];return B&&B.hasData()?B:this._cache.getByKey(w.wrapped().key)}updateCacheSize(w){let B=Math.ceil(w.width/this._source.tileSize)+1,Q=Math.ceil(w.height/this._source.tileSize)+1,ee=Math.floor(B*Q*(this._maxTileCacheZoomLevels===null?a.a.MAX_TILE_CACHE_ZOOM_LEVELS:this._maxTileCacheZoomLevels)),le=typeof this._maxTileCacheSize=="number"?Math.min(this._maxTileCacheSize,ee):ee;this._cache.setMaxSize(le)}handleWrapJump(w){let B=Math.round((w-(this._prevLng===void 0?w:this._prevLng))/360);if(this._prevLng=w,B){let Q={};for(let ee in this._tiles){let le=this._tiles[ee];le.tileID=le.tileID.unwrapTo(le.tileID.wrap+B),Q[le.tileID.key]=le}this._tiles=Q;for(let ee in this._timers)clearTimeout(this._timers[ee]),delete this._timers[ee];for(let ee in this._tiles)this._setTileReloadTimer(ee,this._tiles[ee])}}_updateCoveredAndRetainedTiles(w,B,Q,ee,le,qe){let Xe={},ot={},Tt=Object.keys(w),Kt=u.now();for(let Jt of Tt){let xr=w[Jt],Pr=this._tiles[Jt];if(!Pr||Pr.fadeEndTime!==0&&Pr.fadeEndTime<=Kt)continue;let ve=this.findLoadedParent(xr,B),be=this.findLoadedSibling(xr),Re=ve||be||null;Re&&(this._addTile(Re.tileID),Xe[Re.tileID.key]=Re.tileID),ot[Jt]=xr}this._retainLoadedChildren(ot,ee,Q,w);for(let Jt in Xe)w[Jt]||(this._coveredTiles[Jt]=!0,w[Jt]=Xe[Jt]);if(qe){let Jt={},xr={};for(let Pr of le)this._tiles[Pr.key].hasData()?Jt[Pr.key]=Pr:xr[Pr.key]=Pr;for(let Pr in xr){let ve=xr[Pr].children(this._source.maxzoom);this._tiles[ve[0].key]&&this._tiles[ve[1].key]&&this._tiles[ve[2].key]&&this._tiles[ve[3].key]&&(Jt[ve[0].key]=w[ve[0].key]=ve[0],Jt[ve[1].key]=w[ve[1].key]=ve[1],Jt[ve[2].key]=w[ve[2].key]=ve[2],Jt[ve[3].key]=w[ve[3].key]=ve[3],delete xr[Pr])}for(let Pr in xr){let ve=xr[Pr],be=this.findLoadedParent(ve,this._source.minzoom),Re=this.findLoadedSibling(ve),Be=be||Re||null;if(Be){Jt[Be.tileID.key]=w[Be.tileID.key]=Be.tileID;for(let tt in Jt)Jt[tt].isChildOf(Be.tileID)&&delete Jt[tt]}}for(let Pr in this._tiles)Jt[Pr]||(this._coveredTiles[Pr]=!0)}}update(w,B){if(!this._sourceLoaded||this._paused)return;let Q;this.transform=w,this.terrain=B,this.updateCacheSize(w),this.handleWrapJump(this.transform.center.lng),this._coveredTiles={},this.used||this.usedForTerrain?this._source.tileID?Q=w.getVisibleUnwrappedCoordinates(this._source.tileID).map(Kt=>new a.S(Kt.canonical.z,Kt.wrap,Kt.canonical.z,Kt.canonical.x,Kt.canonical.y)):(Q=w.coveringTiles({tileSize:this.usedForTerrain?this.tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:!this.usedForTerrain&&this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled,terrain:B}),this._source.hasTile&&(Q=Q.filter(Kt=>this._source.hasTile(Kt)))):Q=[];let ee=w.coveringZoomLevel(this._source),le=Math.max(ee-yt.maxOverzooming,this._source.minzoom),qe=Math.max(ee+yt.maxUnderzooming,this._source.minzoom);if(this.usedForTerrain){let Kt={};for(let Jt of Q)if(Jt.canonical.z>this._source.minzoom){let xr=Jt.scaledTo(Jt.canonical.z-1);Kt[xr.key]=xr;let Pr=Jt.scaledTo(Math.max(this._source.minzoom,Math.min(Jt.canonical.z,5)));Kt[Pr.key]=Pr}Q=Q.concat(Object.values(Kt))}let Xe=Q.length===0&&!this._updated&&this._didEmitContent;this._updated=!0,Xe&&this.fire(new a.k("data",{sourceDataType:"idle",dataType:"source",sourceId:this.id}));let ot=this._updateRetainedTiles(Q,ee);lr(this._source.type)&&this._updateCoveredAndRetainedTiles(ot,le,qe,ee,Q,B);for(let Kt in ot)this._tiles[Kt].clearFadeHold();let Tt=a.ab(this._tiles,ot);for(let Kt of Tt){let Jt=this._tiles[Kt];Jt.hasSymbolBuckets&&!Jt.holdingForFade()?Jt.setHoldDuration(this.map._fadeDuration):Jt.hasSymbolBuckets&&!Jt.symbolFadeFinished()||this._removeTile(Kt)}this._updateLoadedParentTileCache(),this._updateLoadedSiblingTileCache()}releaseSymbolFadeTiles(){for(let w in this._tiles)this._tiles[w].holdingForFade()&&this._removeTile(w)}_updateRetainedTiles(w,B){var Q;let ee={},le={},qe=Math.max(B-yt.maxOverzooming,this._source.minzoom),Xe=Math.max(B+yt.maxUnderzooming,this._source.minzoom),ot={};for(let Tt of w){let Kt=this._addTile(Tt);ee[Tt.key]=Tt,Kt.hasData()||Bthis._source.maxzoom){let xr=Tt.children(this._source.maxzoom)[0],Pr=this.getTile(xr);if(Pr&&Pr.hasData()){ee[xr.key]=xr;continue}}else{let xr=Tt.children(this._source.maxzoom);if(ee[xr[0].key]&&ee[xr[1].key]&&ee[xr[2].key]&&ee[xr[3].key])continue}let Jt=Kt.wasRequested();for(let xr=Tt.overscaledZ-1;xr>=qe;--xr){let Pr=Tt.scaledTo(xr);if(le[Pr.key])break;if(le[Pr.key]=!0,Kt=this.getTile(Pr),!Kt&&Jt&&(Kt=this._addTile(Pr)),Kt){let ve=Kt.hasData();if((ve||!(!((Q=this.map)===null||Q===void 0)&&Q.cancelPendingTileRequestsWhileZooming)||Jt)&&(ee[Pr.key]=Pr),Jt=Kt.wasRequested(),ve)break}}}return ee}_updateLoadedParentTileCache(){this._loadedParentTiles={};for(let w in this._tiles){let B=[],Q,ee=this._tiles[w].tileID;for(;ee.overscaledZ>0;){if(ee.key in this._loadedParentTiles){Q=this._loadedParentTiles[ee.key];break}B.push(ee.key);let le=ee.scaledTo(ee.overscaledZ-1);if(Q=this._getLoadedTile(le),Q)break;ee=le}for(let le of B)this._loadedParentTiles[le]=Q}}_updateLoadedSiblingTileCache(){this._loadedSiblingTiles={};for(let w in this._tiles){let B=this._tiles[w].tileID,Q=this._getLoadedTile(B);this._loadedSiblingTiles[B.key]=Q}}_addTile(w){let B=this._tiles[w.key];if(B)return B;B=this._cache.getAndRemove(w),B&&(this._setTileReloadTimer(w.key,B),B.tileID=w,this._state.initializeTileState(B,this.map?this.map.painter:null),this._cacheTimers[w.key]&&(clearTimeout(this._cacheTimers[w.key]),delete this._cacheTimers[w.key],this._setTileReloadTimer(w.key,B)));let Q=B;return B||(B=new Ut(w,this._source.tileSize*w.overscaleFactor()),this._loadTile(B,w.key,B.state)),B.uses++,this._tiles[w.key]=B,Q||this._source.fire(new a.k("dataloading",{tile:B,coord:B.tileID,dataType:"source"})),B}_setTileReloadTimer(w,B){w in this._timers&&(clearTimeout(this._timers[w]),delete this._timers[w]);let Q=B.getExpiryTimeout();Q&&(this._timers[w]=setTimeout(()=>{this._reloadTile(w,"expired"),delete this._timers[w]},Q))}_removeTile(w){let B=this._tiles[w];B&&(B.uses--,delete this._tiles[w],this._timers[w]&&(clearTimeout(this._timers[w]),delete this._timers[w]),B.uses>0||(B.hasData()&&B.state!=="reloading"?this._cache.add(B.tileID,B,B.getExpiryTimeout()):(B.aborted=!0,this._abortTile(B),this._unloadTile(B))))}_dataHandler(w){let B=w.sourceDataType;w.dataType==="source"&&B==="metadata"&&(this._sourceLoaded=!0),this._sourceLoaded&&!this._paused&&w.dataType==="source"&&B==="content"&&(this.reload(),this.transform&&this.update(this.transform,this.terrain),this._didEmitContent=!0)}clearTiles(){this._shouldReloadOnResume=!1,this._paused=!1;for(let w in this._tiles)this._removeTile(w);this._cache.reset()}tilesIn(w,B,Q){let ee=[],le=this.transform;if(!le)return ee;let qe=Q?le.getCameraQueryGeometry(w):w,Xe=w.map(ve=>le.pointCoordinate(ve,this.terrain)),ot=qe.map(ve=>le.pointCoordinate(ve,this.terrain)),Tt=this.getIds(),Kt=1/0,Jt=1/0,xr=-1/0,Pr=-1/0;for(let ve of ot)Kt=Math.min(Kt,ve.x),Jt=Math.min(Jt,ve.y),xr=Math.max(xr,ve.x),Pr=Math.max(Pr,ve.y);for(let ve=0;ve=0&&We[1].y+tt>=0){let it=Xe.map(Ht=>Re.getTilePoint(Ht)),Dt=ot.map(Ht=>Re.getTilePoint(Ht));ee.push({tile:be,tileID:Re,queryGeometry:it,cameraQueryGeometry:Dt,scale:Be})}}return ee}getVisibleCoordinates(w){let B=this.getRenderableIds(w).map(Q=>this._tiles[Q].tileID);for(let Q of B)Q.posMatrix=this.transform.calculatePosMatrix(Q.toUnwrapped());return B}hasTransition(){if(this._source.hasTransition())return!0;if(lr(this._source.type)){let w=u.now();for(let B in this._tiles)if(this._tiles[B].fadeEndTime>=w)return!0}return!1}setFeatureState(w,B,Q){this._state.updateState(w=w||"_geojsonTileLayer",B,Q)}removeFeatureState(w,B,Q){this._state.removeFeatureState(w=w||"_geojsonTileLayer",B,Q)}getFeatureState(w,B){return this._state.getState(w=w||"_geojsonTileLayer",B)}setDependencies(w,B,Q){let ee=this._tiles[w];ee&&ee.setDependencies(B,Q)}reloadTilesForDependencies(w,B){for(let Q in this._tiles)this._tiles[Q].hasDependency(w,B)&&this._reloadTile(Q,"reloading");this._cache.filter(Q=>!Q.hasDependency(w,B))}}function Yt(ue,w){let B=Math.abs(2*ue.wrap)-+(ue.wrap<0),Q=Math.abs(2*w.wrap)-+(w.wrap<0);return ue.overscaledZ-w.overscaledZ||Q-B||w.canonical.y-ue.canonical.y||w.canonical.x-ue.canonical.x}function lr(ue){return ue==="raster"||ue==="image"||ue==="video"}yt.maxOverzooming=10,yt.maxUnderzooming=3;class Tr{constructor(w,B){this.reset(w,B)}reset(w,B){this.points=w||[],this._distances=[0];for(let Q=1;Q0?(ee-qe)/Xe:0;return this.points[le].mult(1-ot).add(this.points[B].mult(ot))}}function Rr(ue,w){let B=!0;return ue==="always"||ue!=="never"&&w!=="never"||(B=!1),B}class ei{constructor(w,B,Q){let ee=this.boxCells=[],le=this.circleCells=[];this.xCellCount=Math.ceil(w/Q),this.yCellCount=Math.ceil(B/Q);for(let qe=0;qethis.width||ee<0||B>this.height)return[];let ot=[];if(w<=0&&B<=0&&this.width<=Q&&this.height<=ee){if(le)return[{key:null,x1:w,y1:B,x2:Q,y2:ee}];for(let Tt=0;Tt0}hitTestCircle(w,B,Q,ee,le){let qe=w-Q,Xe=w+Q,ot=B-Q,Tt=B+Q;if(Xe<0||qe>this.width||Tt<0||ot>this.height)return!1;let Kt=[];return this._forEachCell(qe,ot,Xe,Tt,this._queryCellCircle,Kt,{hitTest:!0,overlapMode:ee,circle:{x:w,y:B,radius:Q},seenUids:{box:{},circle:{}}},le),Kt.length>0}_queryCell(w,B,Q,ee,le,qe,Xe,ot){let{seenUids:Tt,hitTest:Kt,overlapMode:Jt}=Xe,xr=this.boxCells[le];if(xr!==null){let ve=this.bboxes;for(let be of xr)if(!Tt.box[be]){Tt.box[be]=!0;let Re=4*be,Be=this.boxKeys[be];if(w<=ve[Re+2]&&B<=ve[Re+3]&&Q>=ve[Re+0]&&ee>=ve[Re+1]&&(!ot||ot(Be))&&(!Kt||!Rr(Jt,Be.overlapMode))&&(qe.push({key:Be,x1:ve[Re],y1:ve[Re+1],x2:ve[Re+2],y2:ve[Re+3]}),Kt))return!0}}let Pr=this.circleCells[le];if(Pr!==null){let ve=this.circles;for(let be of Pr)if(!Tt.circle[be]){Tt.circle[be]=!0;let Re=3*be,Be=this.circleKeys[be];if(this._circleAndRectCollide(ve[Re],ve[Re+1],ve[Re+2],w,B,Q,ee)&&(!ot||ot(Be))&&(!Kt||!Rr(Jt,Be.overlapMode))){let tt=ve[Re],We=ve[Re+1],it=ve[Re+2];if(qe.push({key:Be,x1:tt-it,y1:We-it,x2:tt+it,y2:We+it}),Kt)return!0}}}return!1}_queryCellCircle(w,B,Q,ee,le,qe,Xe,ot){let{circle:Tt,seenUids:Kt,overlapMode:Jt}=Xe,xr=this.boxCells[le];if(xr!==null){let ve=this.bboxes;for(let be of xr)if(!Kt.box[be]){Kt.box[be]=!0;let Re=4*be,Be=this.boxKeys[be];if(this._circleAndRectCollide(Tt.x,Tt.y,Tt.radius,ve[Re+0],ve[Re+1],ve[Re+2],ve[Re+3])&&(!ot||ot(Be))&&!Rr(Jt,Be.overlapMode))return qe.push(!0),!0}}let Pr=this.circleCells[le];if(Pr!==null){let ve=this.circles;for(let be of Pr)if(!Kt.circle[be]){Kt.circle[be]=!0;let Re=3*be,Be=this.circleKeys[be];if(this._circlesCollide(ve[Re],ve[Re+1],ve[Re+2],Tt.x,Tt.y,Tt.radius)&&(!ot||ot(Be))&&!Rr(Jt,Be.overlapMode))return qe.push(!0),!0}}}_forEachCell(w,B,Q,ee,le,qe,Xe,ot){let Tt=this._convertToXCellCoord(w),Kt=this._convertToYCellCoord(B),Jt=this._convertToXCellCoord(Q),xr=this._convertToYCellCoord(ee);for(let Pr=Tt;Pr<=Jt;Pr++)for(let ve=Kt;ve<=xr;ve++)if(le.call(this,w,B,Q,ee,this.xCellCount*ve+Pr,qe,Xe,ot))return}_convertToXCellCoord(w){return Math.max(0,Math.min(this.xCellCount-1,Math.floor(w*this.xScale)))}_convertToYCellCoord(w){return Math.max(0,Math.min(this.yCellCount-1,Math.floor(w*this.yScale)))}_circlesCollide(w,B,Q,ee,le,qe){let Xe=ee-w,ot=le-B,Tt=Q+qe;return Tt*Tt>Xe*Xe+ot*ot}_circleAndRectCollide(w,B,Q,ee,le,qe,Xe){let ot=(qe-ee)/2,Tt=Math.abs(w-(ee+ot));if(Tt>ot+Q)return!1;let Kt=(Xe-le)/2,Jt=Math.abs(B-(le+Kt));if(Jt>Kt+Q)return!1;if(Tt<=ot||Jt<=Kt)return!0;let xr=Tt-ot,Pr=Jt-Kt;return xr*xr+Pr*Pr<=Q*Q}}function Wr(ue,w,B,Q,ee){let le=a.H();return w?(a.K(le,le,[1/ee,1/ee,1]),B||a.ad(le,le,Q.angle)):a.L(le,Q.labelPlaneMatrix,ue),le}function Ur(ue,w,B,Q,ee){if(w){let le=a.ae(ue);return a.K(le,le,[ee,ee,1]),B||a.ad(le,le,-Q.angle),le}return Q.glCoordMatrix}function dt(ue,w,B,Q){let ee;Q?(ee=[ue,w,Q(ue,w),1],a.af(ee,ee,B)):(ee=[ue,w,0,1],Jr(ee,ee,B));let le=ee[3];return{point:new a.P(ee[0]/le,ee[1]/le),signedDistanceFromCamera:le,isOccluded:!1}}function Ge(ue,w){return .5+ue/w*.5}function Je(ue,w){return ue.x>=-w[0]&&ue.x<=w[0]&&ue.y>=-w[1]&&ue.y<=w[1]}function je(ue,w,B,Q,ee,le,qe,Xe,ot,Tt,Kt,Jt,xr,Pr,ve){let be=Q?ue.textSizeData:ue.iconSizeData,Re=a.ag(be,B.transform.zoom),Be=[256/B.width*2+1,256/B.height*2+1],tt=Q?ue.text.dynamicLayoutVertexArray:ue.icon.dynamicLayoutVertexArray;tt.clear();let We=ue.lineVertexArray,it=Q?ue.text.placedSymbolArray:ue.icon.placedSymbolArray,Dt=B.transform.width/B.transform.height,Ht=!1;for(let rr=0;rrMath.abs(B.x-w.x)*Q?{useVertical:!0}:(ue===a.ah.vertical?w.yB.x)?{needsFlipping:!0}:null}function Ie(ue,w,B,Q,ee,le,qe,Xe,ot,Tt,Kt){let Jt=B/24,xr=w.lineOffsetX*Jt,Pr=w.lineOffsetY*Jt,ve;if(w.numGlyphs>1){let be=w.glyphStartIndex+w.numGlyphs,Re=w.lineStartIndex,Be=w.lineStartIndex+w.lineLength,tt=$e(Jt,Xe,xr,Pr,Q,w,Kt,ue);if(!tt)return{notEnoughRoom:!0};let We=dt(tt.first.point.x,tt.first.point.y,qe,ue.getElevation).point,it=dt(tt.last.point.x,tt.last.point.y,qe,ue.getElevation).point;if(ee&&!Q){let Dt=wt(w.writingMode,We,it,Tt);if(Dt)return Dt}ve=[tt.first];for(let Dt=w.glyphStartIndex+1;Dt0?We.point:function(Ht,rr,dr,Sr,Or,jr){return xe(Ht,rr,dr,1,Or,jr)}(ue.tileAnchorPoint,tt,Re,0,le,ue),Dt=wt(w.writingMode,Re,it,Tt);if(Dt)return Dt}let be=pr(Jt*Xe.getoffsetX(w.glyphStartIndex),xr,Pr,Q,w.segment,w.lineStartIndex,w.lineStartIndex+w.lineLength,ue,Kt);if(!be||ue.projectionCache.anyProjectionOccluded)return{notEnoughRoom:!0};ve=[be]}for(let be of ve)a.aj(ot,be.point,be.angle);return{}}function xe(ue,w,B,Q,ee,le){let qe=ue.add(ue.sub(w)._unit()),Xe=ee!==void 0?dt(qe.x,qe.y,ee,le.getElevation).point:vt(qe.x,qe.y,le).point,ot=B.sub(Xe);return B.add(ot._mult(Q/ot.mag()))}function Ce(ue,w,B){let Q=w.projectionCache;if(Q.projections[ue])return Q.projections[ue];let ee=new a.P(w.lineVertexArray.getx(ue),w.lineVertexArray.gety(ue)),le=vt(ee.x,ee.y,w);if(le.signedDistanceFromCamera>0)return Q.projections[ue]=le.point,Q.anyProjectionOccluded=Q.anyProjectionOccluded||le.isOccluded,le.point;let qe=ue-B.direction;return function(Xe,ot,Tt,Kt,Jt){return xe(Xe,ot,Tt,Kt,void 0,Jt)}(B.distanceFromAnchor===0?w.tileAnchorPoint:new a.P(w.lineVertexArray.getx(qe),w.lineVertexArray.gety(qe)),ee,B.previousVertex,B.absOffsetX-B.distanceFromAnchor+1,w)}function vt(ue,w,B){let Q=ue+B.translation[0],ee=w+B.translation[1],le;return!B.pitchWithMap&&B.projection.useSpecialProjectionForSymbols?(le=B.projection.projectTileCoordinates(Q,ee,B.unwrappedTileID,B.getElevation),le.point.x=(.5*le.point.x+.5)*B.width,le.point.y=(.5*-le.point.y+.5)*B.height):(le=dt(Q,ee,B.labelPlaneMatrix,B.getElevation),le.isOccluded=!1),le}function nr(ue,w,B){return ue._unit()._perp()._mult(w*B)}function ir(ue,w,B,Q,ee,le,qe,Xe,ot){if(Xe.projectionCache.offsets[ue])return Xe.projectionCache.offsets[ue];let Tt=B.add(w);if(ue+ot.direction=ee)return Xe.projectionCache.offsets[ue]=Tt,Tt;let Kt=Ce(ue+ot.direction,Xe,ot),Jt=nr(Kt.sub(B),qe,ot.direction),xr=B.add(Jt),Pr=Kt.add(Jt);return Xe.projectionCache.offsets[ue]=a.ak(le,Tt,xr,Pr)||Tt,Xe.projectionCache.offsets[ue]}function pr(ue,w,B,Q,ee,le,qe,Xe,ot){let Tt=Q?ue-w:ue+w,Kt=Tt>0?1:-1,Jt=0;Q&&(Kt*=-1,Jt=Math.PI),Kt<0&&(Jt+=Math.PI);let xr,Pr=Kt>0?le+ee:le+ee+1;Xe.projectionCache.cachedAnchorPoint?xr=Xe.projectionCache.cachedAnchorPoint:(xr=vt(Xe.tileAnchorPoint.x,Xe.tileAnchorPoint.y,Xe).point,Xe.projectionCache.cachedAnchorPoint=xr);let ve,be,Re=xr,Be=xr,tt=0,We=0,it=Math.abs(Tt),Dt=[],Ht;for(;tt+We<=it;){if(Pr+=Kt,Pr=qe)return null;tt+=We,Be=Re,be=ve;let Sr={absOffsetX:it,direction:Kt,distanceFromAnchor:tt,previousVertex:Be};if(Re=Ce(Pr,Xe,Sr),B===0)Dt.push(Be),Ht=Re.sub(Be);else{let Or,jr=Re.sub(Be);Or=jr.mag()===0?nr(Ce(Pr+Kt,Xe,Sr).sub(Re),B,Kt):nr(jr,B,Kt),be||(be=Be.add(Or)),ve=ir(Pr,Or,Re,le,qe,be,B,Xe,Sr),Dt.push(be),Ht=ve.sub(be)}We=Ht.mag()}let rr=Ht._mult((it-tt)/We)._add(be||Be),dr=Jt+Math.atan2(Re.y-Be.y,Re.x-Be.x);return Dt.push(rr),{point:rr,angle:ot?dr:0,path:Dt}}let oi=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);function di(ue,w){for(let B=0;B=1;fa--)In.push(un.path[fa]);for(let fa=1;fa$a.signedDistanceFromCamera<=0)?[]:fa.map($a=>$a.point)}let Aa=[];if(In.length>0){let fa=In[0].clone(),$a=In[0].clone();for(let ko=1;ko=jr.x&&$a.x<=ii.x&&fa.y>=jr.y&&$a.y<=ii.y?[In]:$a.xii.x||$a.yii.y?[]:a.al([In],jr.x,jr.y,ii.x,ii.y)}for(let fa of Aa){Li.reset(fa,.25*Or);let $a=0;$a=Li.length<=.5*Or?1:Math.ceil(Li.paddedLength/Kn)+1;for(let ko=0;ko<$a;ko++){let Qa=ko/Math.max($a-1,1),mo=Li.lerp(Qa),Bo=mo.x+fi,Is=mo.y+fi;Be.push(Bo,Is,Or,0);let As=Bo-Or,wo=Is-Or,To=Bo+Or,dl=Is+Or;if(Sr=Sr&&this.isOffscreen(As,wo,To,dl),dr=dr||this.isInsideGrid(As,wo,To,dl),w!=="always"&&this.grid.hitTestCircle(Bo,Is,Or,w,xr)&&(rr=!0,!Kt))return{circles:[],offscreen:!1,collisionDetected:rr}}}}return{circles:!Kt&&rr||!dr||Wedt(ee.x,ee.y,Q,B.getElevation))}queryRenderedSymbols(w){if(w.length===0||this.grid.keysLength()===0&&this.ignoredGrid.keysLength()===0)return{};let B=[],Q=1/0,ee=1/0,le=-1/0,qe=-1/0;for(let Kt of w){let Jt=new a.P(Kt.x+fi,Kt.y+fi);Q=Math.min(Q,Jt.x),ee=Math.min(ee,Jt.y),le=Math.max(le,Jt.x),qe=Math.max(qe,Jt.y),B.push(Jt)}let Xe=this.grid.query(Q,ee,le,qe).concat(this.ignoredGrid.query(Q,ee,le,qe)),ot={},Tt={};for(let Kt of Xe){let Jt=Kt.key;if(ot[Jt.bucketInstanceId]===void 0&&(ot[Jt.bucketInstanceId]={}),ot[Jt.bucketInstanceId][Jt.featureIndex])continue;let xr=[new a.P(Kt.x1,Kt.y1),new a.P(Kt.x2,Kt.y1),new a.P(Kt.x2,Kt.y2),new a.P(Kt.x1,Kt.y2)];a.am(B,xr)&&(ot[Jt.bucketInstanceId][Jt.featureIndex]=!0,Tt[Jt.bucketInstanceId]===void 0&&(Tt[Jt.bucketInstanceId]=[]),Tt[Jt.bucketInstanceId].push(Jt.featureIndex))}return Tt}insertCollisionBox(w,B,Q,ee,le,qe){(Q?this.ignoredGrid:this.grid).insert({bucketInstanceId:ee,featureIndex:le,collisionGroupID:qe,overlapMode:B},w[0],w[1],w[2],w[3])}insertCollisionCircles(w,B,Q,ee,le,qe){let Xe=Q?this.ignoredGrid:this.grid,ot={bucketInstanceId:ee,featureIndex:le,collisionGroupID:qe,overlapMode:B};for(let Tt=0;Tt=this.screenRightBoundary||eethis.screenBottomBoundary}isInsideGrid(w,B,Q,ee){return Q>=0&&w=0&&Bthis.projectAndGetPerspectiveRatio(Q,Or.x,Or.y,ee,Tt));dr=Sr.some(Or=>!Or.isOccluded),rr=Sr.map(Or=>Or.point)}else dr=!0;return{box:a.ao(rr),allPointsOccluded:!dr}}}function Pn(ue,w,B){return w*(a.X/(ue.tileSize*Math.pow(2,B-ue.tileID.overscaledZ)))}class wn{constructor(w,B,Q,ee){this.opacity=w?Math.max(0,Math.min(1,w.opacity+(w.placed?B:-B))):ee&&Q?1:0,this.placed=Q}isHidden(){return this.opacity===0&&!this.placed}}class pn{constructor(w,B,Q,ee,le){this.text=new wn(w?w.text:null,B,Q,le),this.icon=new wn(w?w.icon:null,B,ee,le)}isHidden(){return this.text.isHidden()&&this.icon.isHidden()}}class Vn{constructor(w,B,Q){this.text=w,this.icon=B,this.skipFade=Q}}class kn{constructor(){this.invProjMatrix=a.H(),this.viewportMatrix=a.H(),this.circles=[]}}class ea{constructor(w,B,Q,ee,le){this.bucketInstanceId=w,this.featureIndex=B,this.sourceLayerIndex=Q,this.bucketIndex=ee,this.tileID=le}}class ua{constructor(w){this.crossSourceCollisions=w,this.maxGroupID=0,this.collisionGroups={}}get(w){if(this.crossSourceCollisions)return{ID:0,predicate:null};if(!this.collisionGroups[w]){let B=++this.maxGroupID;this.collisionGroups[w]={ID:B,predicate:Q=>Q.collisionGroupID===B}}return this.collisionGroups[w]}}function Vt(ue,w,B,Q,ee){let{horizontalAlign:le,verticalAlign:qe}=a.au(ue);return new a.P(-(le-.5)*w+Q[0]*ee,-(qe-.5)*B+Q[1]*ee)}class _t{constructor(w,B,Q,ee,le,qe){this.transform=w.clone(),this.terrain=Q,this.collisionIndex=new Hi(this.transform,B),this.placements={},this.opacities={},this.variableOffsets={},this.stale=!1,this.commitTime=0,this.fadeDuration=ee,this.retainedQueryData={},this.collisionGroups=new ua(le),this.collisionCircleArrays={},this.collisionBoxArrays=new Map,this.prevPlacement=qe,qe&&(qe.prevPlacement=void 0),this.placedOrientations={}}_getTerrainElevationFunc(w){let B=this.terrain;return B?(Q,ee)=>B.getElevation(w,Q,ee):null}getBucketParts(w,B,Q,ee){let le=Q.getBucket(B),qe=Q.latestFeatureIndex;if(!le||!qe||B.id!==le.layerIds[0])return;let Xe=Q.collisionBoxArray,ot=le.layers[0].layout,Tt=le.layers[0].paint,Kt=Math.pow(2,this.transform.zoom-Q.tileID.overscaledZ),Jt=Q.tileSize/a.X,xr=Q.tileID.toUnwrapped(),Pr=this.transform.calculatePosMatrix(xr),ve=ot.get("text-pitch-alignment")==="map",be=ot.get("text-rotation-alignment")==="map",Re=Pn(Q,1,this.transform.zoom),Be=this.collisionIndex.mapProjection.translatePosition(this.transform,Q,Tt.get("text-translate"),Tt.get("text-translate-anchor")),tt=this.collisionIndex.mapProjection.translatePosition(this.transform,Q,Tt.get("icon-translate"),Tt.get("icon-translate-anchor")),We=Wr(Pr,ve,be,this.transform,Re),it=null;if(ve){let Ht=Ur(Pr,ve,be,this.transform,Re);it=a.L([],this.transform.labelPlaneMatrix,Ht)}this.retainedQueryData[le.bucketInstanceId]=new ea(le.bucketInstanceId,qe,le.sourceLayerIndex,le.index,Q.tileID);let Dt={bucket:le,layout:ot,translationText:Be,translationIcon:tt,posMatrix:Pr,unwrappedTileID:xr,textLabelPlaneMatrix:We,labelToScreenMatrix:it,scale:Kt,textPixelRatio:Jt,holdingForFade:Q.holdingForFade(),collisionBoxArray:Xe,partiallyEvaluatedTextSize:a.ag(le.textSizeData,this.transform.zoom),collisionGroup:this.collisionGroups.get(le.sourceID)};if(ee)for(let Ht of le.sortKeyRanges){let{sortKey:rr,symbolInstanceStart:dr,symbolInstanceEnd:Sr}=Ht;w.push({sortKey:rr,symbolInstanceStart:dr,symbolInstanceEnd:Sr,parameters:Dt})}else w.push({symbolInstanceStart:0,symbolInstanceEnd:le.symbolInstances.length,parameters:Dt})}attemptAnchorPlacement(w,B,Q,ee,le,qe,Xe,ot,Tt,Kt,Jt,xr,Pr,ve,be,Re,Be,tt,We){let it=a.aq[w.textAnchor],Dt=[w.textOffset0,w.textOffset1],Ht=Vt(it,Q,ee,Dt,le),rr=this.collisionIndex.placeCollisionBox(B,xr,ot,Tt,Kt,Xe,qe,Re,Jt.predicate,We,Ht);if((!tt||this.collisionIndex.placeCollisionBox(tt,xr,ot,Tt,Kt,Xe,qe,Be,Jt.predicate,We,Ht).placeable)&&rr.placeable){let dr;if(this.prevPlacement&&this.prevPlacement.variableOffsets[Pr.crossTileID]&&this.prevPlacement.placements[Pr.crossTileID]&&this.prevPlacement.placements[Pr.crossTileID].text&&(dr=this.prevPlacement.variableOffsets[Pr.crossTileID].anchor),Pr.crossTileID===0)throw new Error("symbolInstance.crossTileID can't be 0");return this.variableOffsets[Pr.crossTileID]={textOffset:Dt,width:Q,height:ee,anchor:it,textBoxScale:le,prevAnchor:dr},this.markUsedJustification(ve,it,Pr,be),ve.allowVerticalPlacement&&(this.markUsedOrientation(ve,be,Pr),this.placedOrientations[Pr.crossTileID]=be),{shift:Ht,placedGlyphBoxes:rr}}}placeLayerBucketPart(w,B,Q){let{bucket:ee,layout:le,translationText:qe,translationIcon:Xe,posMatrix:ot,unwrappedTileID:Tt,textLabelPlaneMatrix:Kt,labelToScreenMatrix:Jt,textPixelRatio:xr,holdingForFade:Pr,collisionBoxArray:ve,partiallyEvaluatedTextSize:be,collisionGroup:Re}=w.parameters,Be=le.get("text-optional"),tt=le.get("icon-optional"),We=a.ar(le,"text-overlap","text-allow-overlap"),it=We==="always",Dt=a.ar(le,"icon-overlap","icon-allow-overlap"),Ht=Dt==="always",rr=le.get("text-rotation-alignment")==="map",dr=le.get("text-pitch-alignment")==="map",Sr=le.get("icon-text-fit")!=="none",Or=le.get("symbol-z-order")==="viewport-y",jr=it&&(Ht||!ee.hasIconData()||tt),ii=Ht&&(it||!ee.hasTextData()||Be);!ee.collisionArrays&&ve&&ee.deserializeCollisionBoxes(ve);let Li=this._getTerrainElevationFunc(this.retainedQueryData[ee.bucketInstanceId].tileID),un=(sn,In,Kn)=>{var Aa,fa;if(B[sn.crossTileID])return;if(Pr)return void(this.placements[sn.crossTileID]=new Vn(!1,!1,!1));let $a=!1,ko=!1,Qa=!0,mo=null,Bo={box:null,placeable:!1,offscreen:null},Is={box:null,placeable:!1,offscreen:null},As=null,wo=null,To=null,dl=0,Nl=0,Lu=0;In.textFeatureIndex?dl=In.textFeatureIndex:sn.useRuntimeCollisionCircles&&(dl=sn.featureIndex),In.verticalTextFeatureIndex&&(Nl=In.verticalTextFeatureIndex);let ou=In.textBox;if(ou){let Tl=Te=>{let Ne=a.ah.horizontal;if(ee.allowVerticalPlacement&&!Te&&this.prevPlacement){let He=this.prevPlacement.placedOrientations[sn.crossTileID];He&&(this.placedOrientations[sn.crossTileID]=He,Ne=He,this.markUsedOrientation(ee,Ne,sn))}return Ne},Al=(Te,Ne)=>{if(ee.allowVerticalPlacement&&sn.numVerticalGlyphVertices>0&&In.verticalTextBox){for(let He of ee.writingModes)if(He===a.ah.vertical?(Bo=Ne(),Is=Bo):Bo=Te(),Bo&&Bo.placeable)break}else Bo=Te()},X=sn.textAnchorOffsetStartIndex,se=sn.textAnchorOffsetEndIndex;if(se===X){let Te=(Ne,He)=>{let Ye=this.collisionIndex.placeCollisionBox(Ne,We,xr,ot,Tt,dr,rr,qe,Re.predicate,Li);return Ye&&Ye.placeable&&(this.markUsedOrientation(ee,He,sn),this.placedOrientations[sn.crossTileID]=He),Ye};Al(()=>Te(ou,a.ah.horizontal),()=>{let Ne=In.verticalTextBox;return ee.allowVerticalPlacement&&sn.numVerticalGlyphVertices>0&&Ne?Te(Ne,a.ah.vertical):{box:null,offscreen:null}}),Tl(Bo&&Bo.placeable)}else{let Te=a.aq[(fa=(Aa=this.prevPlacement)===null||Aa===void 0?void 0:Aa.variableOffsets[sn.crossTileID])===null||fa===void 0?void 0:fa.anchor],Ne=(Ye,Ct,nt)=>{let jt=Ye.x2-Ye.x1,gr=Ye.y2-Ye.y1,yr=sn.textBoxScale,Gr=Sr&&Dt==="never"?Ct:null,qr=null,_i=We==="never"?1:2,bi="never";Te&&_i++;for(let Xr=0;Xr<_i;Xr++){for(let ni=X;niNe(ou,In.iconBox,a.ah.horizontal),()=>{let Ye=In.verticalTextBox;return ee.allowVerticalPlacement&&(!Bo||!Bo.placeable)&&sn.numVerticalGlyphVertices>0&&Ye?Ne(Ye,In.verticalIconBox,a.ah.vertical):{box:null,occluded:!0,offscreen:null}}),Bo&&($a=Bo.placeable,Qa=Bo.offscreen);let He=Tl(Bo&&Bo.placeable);if(!$a&&this.prevPlacement){let Ye=this.prevPlacement.variableOffsets[sn.crossTileID];Ye&&(this.variableOffsets[sn.crossTileID]=Ye,this.markUsedJustification(ee,Ye.anchor,sn,He))}}}if(As=Bo,$a=As&&As.placeable,Qa=As&&As.offscreen,sn.useRuntimeCollisionCircles){let Tl=ee.text.placedSymbolArray.get(sn.centerJustifiedTextSymbolIndex),Al=a.ai(ee.textSizeData,be,Tl),X=le.get("text-padding");wo=this.collisionIndex.placeCollisionCircles(We,Tl,ee.lineVertexArray,ee.glyphOffsetArray,Al,ot,Tt,Kt,Jt,Q,dr,Re.predicate,sn.collisionCircleDiameter,X,qe,Li),wo.circles.length&&wo.collisionDetected&&!Q&&a.w("Collisions detected, but collision boxes are not shown"),$a=it||wo.circles.length>0&&!wo.collisionDetected,Qa=Qa&&wo.offscreen}if(In.iconFeatureIndex&&(Lu=In.iconFeatureIndex),In.iconBox){let Tl=Al=>this.collisionIndex.placeCollisionBox(Al,Dt,xr,ot,Tt,dr,rr,Xe,Re.predicate,Li,Sr&&mo?mo:void 0);Is&&Is.placeable&&In.verticalIconBox?(To=Tl(In.verticalIconBox),ko=To.placeable):(To=Tl(In.iconBox),ko=To.placeable),Qa=Qa&&To.offscreen}let $s=Be||sn.numHorizontalGlyphVertices===0&&sn.numVerticalGlyphVertices===0,Ql=tt||sn.numIconVertices===0;$s||Ql?Ql?$s||(ko=ko&&$a):$a=ko&&$a:ko=$a=ko&&$a;let dc=ko&&To.placeable;if($a&&As.placeable&&this.collisionIndex.insertCollisionBox(As.box,We,le.get("text-ignore-placement"),ee.bucketInstanceId,Is&&Is.placeable&&Nl?Nl:dl,Re.ID),dc&&this.collisionIndex.insertCollisionBox(To.box,Dt,le.get("icon-ignore-placement"),ee.bucketInstanceId,Lu,Re.ID),wo&&$a&&this.collisionIndex.insertCollisionCircles(wo.circles,We,le.get("text-ignore-placement"),ee.bucketInstanceId,dl,Re.ID),Q&&this.storeCollisionData(ee.bucketInstanceId,Kn,In,As,To,wo),sn.crossTileID===0)throw new Error("symbolInstance.crossTileID can't be 0");if(ee.bucketInstanceId===0)throw new Error("bucket.bucketInstanceId can't be 0");this.placements[sn.crossTileID]=new Vn($a||jr,ko||ii,Qa||ee.justReloaded),B[sn.crossTileID]=!0};if(Or){if(w.symbolInstanceStart!==0)throw new Error("bucket.bucketInstanceId should be 0");let sn=ee.getSortedSymbolIndexes(this.transform.angle);for(let In=sn.length-1;In>=0;--In){let Kn=sn[In];un(ee.symbolInstances.get(Kn),ee.collisionArrays[Kn],Kn)}}else for(let sn=w.symbolInstanceStart;sn=0&&(w.text.placedSymbolArray.get(Xe).crossTileID=le>=0&&Xe!==le?0:Q.crossTileID)}markUsedOrientation(w,B,Q){let ee=B===a.ah.horizontal||B===a.ah.horizontalOnly?B:0,le=B===a.ah.vertical?B:0,qe=[Q.leftJustifiedTextSymbolIndex,Q.centerJustifiedTextSymbolIndex,Q.rightJustifiedTextSymbolIndex];for(let Xe of qe)w.text.placedSymbolArray.get(Xe).placedOrientation=ee;Q.verticalPlacedTextSymbolIndex&&(w.text.placedSymbolArray.get(Q.verticalPlacedTextSymbolIndex).placedOrientation=le)}commit(w){this.commitTime=w,this.zoomAtLastRecencyCheck=this.transform.zoom;let B=this.prevPlacement,Q=!1;this.prevZoomAdjustment=B?B.zoomAdjustment(this.transform.zoom):0;let ee=B?B.symbolFadeChange(w):1,le=B?B.opacities:{},qe=B?B.variableOffsets:{},Xe=B?B.placedOrientations:{};for(let ot in this.placements){let Tt=this.placements[ot],Kt=le[ot];Kt?(this.opacities[ot]=new pn(Kt,ee,Tt.text,Tt.icon),Q=Q||Tt.text!==Kt.text.placed||Tt.icon!==Kt.icon.placed):(this.opacities[ot]=new pn(null,ee,Tt.text,Tt.icon,Tt.skipFade),Q=Q||Tt.text||Tt.icon)}for(let ot in le){let Tt=le[ot];if(!this.opacities[ot]){let Kt=new pn(Tt,ee,!1,!1);Kt.isHidden()||(this.opacities[ot]=Kt,Q=Q||Tt.text.placed||Tt.icon.placed)}}for(let ot in qe)this.variableOffsets[ot]||!this.opacities[ot]||this.opacities[ot].isHidden()||(this.variableOffsets[ot]=qe[ot]);for(let ot in Xe)this.placedOrientations[ot]||!this.opacities[ot]||this.opacities[ot].isHidden()||(this.placedOrientations[ot]=Xe[ot]);if(B&&B.lastPlacementChangeTime===void 0)throw new Error("Last placement time for previous placement is not defined");Q?this.lastPlacementChangeTime=w:typeof this.lastPlacementChangeTime!="number"&&(this.lastPlacementChangeTime=B?B.lastPlacementChangeTime:w)}updateLayerOpacities(w,B){let Q={};for(let ee of B){let le=ee.getBucket(w);le&&ee.latestFeatureIndex&&w.id===le.layerIds[0]&&this.updateBucketOpacities(le,ee.tileID,Q,ee.collisionBoxArray)}}updateBucketOpacities(w,B,Q,ee){w.hasTextData()&&(w.text.opacityVertexArray.clear(),w.text.hasVisibleVertices=!1),w.hasIconData()&&(w.icon.opacityVertexArray.clear(),w.icon.hasVisibleVertices=!1),w.hasIconCollisionBoxData()&&w.iconCollisionBox.collisionVertexArray.clear(),w.hasTextCollisionBoxData()&&w.textCollisionBox.collisionVertexArray.clear();let le=w.layers[0],qe=le.layout,Xe=new pn(null,0,!1,!1,!0),ot=qe.get("text-allow-overlap"),Tt=qe.get("icon-allow-overlap"),Kt=le._unevaluatedLayout.hasValue("text-variable-anchor")||le._unevaluatedLayout.hasValue("text-variable-anchor-offset"),Jt=qe.get("text-rotation-alignment")==="map",xr=qe.get("text-pitch-alignment")==="map",Pr=qe.get("icon-text-fit")!=="none",ve=new pn(null,0,ot&&(Tt||!w.hasIconData()||qe.get("icon-optional")),Tt&&(ot||!w.hasTextData()||qe.get("text-optional")),!0);!w.collisionArrays&&ee&&(w.hasIconCollisionBoxData()||w.hasTextCollisionBoxData())&&w.deserializeCollisionBoxes(ee);let be=(Be,tt,We)=>{for(let it=0;it0,dr=this.placedOrientations[tt.crossTileID],Sr=dr===a.ah.vertical,Or=dr===a.ah.horizontal||dr===a.ah.horizontalOnly;if(We>0||it>0){let ii=en(Ht.text);be(w.text,We,Sr?cn:ii),be(w.text,it,Or?cn:ii);let Li=Ht.text.isHidden();[tt.rightJustifiedTextSymbolIndex,tt.centerJustifiedTextSymbolIndex,tt.leftJustifiedTextSymbolIndex].forEach(In=>{In>=0&&(w.text.placedSymbolArray.get(In).hidden=Li||Sr?1:0)}),tt.verticalPlacedTextSymbolIndex>=0&&(w.text.placedSymbolArray.get(tt.verticalPlacedTextSymbolIndex).hidden=Li||Or?1:0);let un=this.variableOffsets[tt.crossTileID];un&&this.markUsedJustification(w,un.anchor,tt,dr);let sn=this.placedOrientations[tt.crossTileID];sn&&(this.markUsedJustification(w,"left",tt,sn),this.markUsedOrientation(w,sn,tt))}if(rr){let ii=en(Ht.icon),Li=!(Pr&&tt.verticalPlacedIconSymbolIndex&&Sr);tt.placedIconSymbolIndex>=0&&(be(w.icon,tt.numIconVertices,Li?ii:cn),w.icon.placedSymbolArray.get(tt.placedIconSymbolIndex).hidden=Ht.icon.isHidden()),tt.verticalPlacedIconSymbolIndex>=0&&(be(w.icon,tt.numVerticalIconVertices,Li?cn:ii),w.icon.placedSymbolArray.get(tt.verticalPlacedIconSymbolIndex).hidden=Ht.icon.isHidden())}let jr=Re&&Re.has(Be)?Re.get(Be):{text:null,icon:null};if(w.hasIconCollisionBoxData()||w.hasTextCollisionBoxData()){let ii=w.collisionArrays[Be];if(ii){let Li=new a.P(0,0);if(ii.textBox||ii.verticalTextBox){let un=!0;if(Kt){let sn=this.variableOffsets[Dt];sn?(Li=Vt(sn.anchor,sn.width,sn.height,sn.textOffset,sn.textBoxScale),Jt&&Li._rotate(xr?this.transform.angle:-this.transform.angle)):un=!1}if(ii.textBox||ii.verticalTextBox){let sn;ii.textBox&&(sn=Sr),ii.verticalTextBox&&(sn=Or),tr(w.textCollisionBox.collisionVertexArray,Ht.text.placed,!un||sn,jr.text,Li.x,Li.y)}}if(ii.iconBox||ii.verticalIconBox){let un=!!(!Or&&ii.verticalIconBox),sn;ii.iconBox&&(sn=un),ii.verticalIconBox&&(sn=!un),tr(w.iconCollisionBox.collisionVertexArray,Ht.icon.placed,sn,jr.icon,Pr?Li.x:0,Pr?Li.y:0)}}}}if(w.sortFeatures(this.transform.angle),this.retainedQueryData[w.bucketInstanceId]&&(this.retainedQueryData[w.bucketInstanceId].featureSortOrder=w.featureSortOrder),w.hasTextData()&&w.text.opacityVertexBuffer&&w.text.opacityVertexBuffer.updateData(w.text.opacityVertexArray),w.hasIconData()&&w.icon.opacityVertexBuffer&&w.icon.opacityVertexBuffer.updateData(w.icon.opacityVertexArray),w.hasIconCollisionBoxData()&&w.iconCollisionBox.collisionVertexBuffer&&w.iconCollisionBox.collisionVertexBuffer.updateData(w.iconCollisionBox.collisionVertexArray),w.hasTextCollisionBoxData()&&w.textCollisionBox.collisionVertexBuffer&&w.textCollisionBox.collisionVertexBuffer.updateData(w.textCollisionBox.collisionVertexArray),w.text.opacityVertexArray.length!==w.text.layoutVertexArray.length/4)throw new Error(`bucket.text.opacityVertexArray.length (= ${w.text.opacityVertexArray.length}) !== bucket.text.layoutVertexArray.length (= ${w.text.layoutVertexArray.length}) / 4`);if(w.icon.opacityVertexArray.length!==w.icon.layoutVertexArray.length/4)throw new Error(`bucket.icon.opacityVertexArray.length (= ${w.icon.opacityVertexArray.length}) !== bucket.icon.layoutVertexArray.length (= ${w.icon.layoutVertexArray.length}) / 4`);if(w.bucketInstanceId in this.collisionCircleArrays){let Be=this.collisionCircleArrays[w.bucketInstanceId];w.placementInvProjMatrix=Be.invProjMatrix,w.placementViewportMatrix=Be.viewportMatrix,w.collisionCircleArray=Be.circles,delete this.collisionCircleArrays[w.bucketInstanceId]}}symbolFadeChange(w){return this.fadeDuration===0?1:(w-this.commitTime)/this.fadeDuration+this.prevZoomAdjustment}zoomAdjustment(w){return Math.max(0,(this.transform.zoom-w)/1.5)}hasTransitions(w){return this.stale||w-this.lastPlacementChangeTimew}setStale(){this.stale=!0}}function tr(ue,w,B,Q,ee,le){Q&&Q.length!==0||(Q=[0,0,0,0]);let qe=Q[0]-fi,Xe=Q[1]-fi,ot=Q[2]-fi,Tt=Q[3]-fi;ue.emplaceBack(w?1:0,B?1:0,ee||0,le||0,qe,Xe),ue.emplaceBack(w?1:0,B?1:0,ee||0,le||0,ot,Xe),ue.emplaceBack(w?1:0,B?1:0,ee||0,le||0,ot,Tt),ue.emplaceBack(w?1:0,B?1:0,ee||0,le||0,qe,Tt)}let ar=Math.pow(2,25),Er=Math.pow(2,24),Zr=Math.pow(2,17),ri=Math.pow(2,16),$r=Math.pow(2,9),zi=Math.pow(2,8),Ji=Math.pow(2,1);function en(ue){if(ue.opacity===0&&!ue.placed)return 0;if(ue.opacity===1&&ue.placed)return 4294967295;let w=ue.placed?1:0,B=Math.floor(127*ue.opacity);return B*ar+w*Er+B*Zr+w*ri+B*$r+w*zi+B*Ji+w}let cn=0;function yn(){return{isOccluded:(ue,w,B)=>!1,getPitchedTextCorrection:(ue,w,B)=>1,get useSpecialProjectionForSymbols(){return!1},projectTileCoordinates(ue,w,B,Q){throw new Error("Not implemented.")},translatePosition:(ue,w,B,Q)=>function(ee,le,qe,Xe,ot=!1){if(!qe[0]&&!qe[1])return[0,0];let Tt=ot?Xe==="map"?ee.angle:0:Xe==="viewport"?-ee.angle:0;if(Tt){let Kt=Math.sin(Tt),Jt=Math.cos(Tt);qe=[qe[0]*Jt-qe[1]*Kt,qe[0]*Kt+qe[1]*Jt]}return[ot?qe[0]:Pn(le,qe[0],ee.zoom),ot?qe[1]:Pn(le,qe[1],ee.zoom)]}(ue,w,B,Q),getCircleRadiusCorrection:ue=>1}}class Mn{constructor(w){this._sortAcrossTiles=w.layout.get("symbol-z-order")!=="viewport-y"&&!w.layout.get("symbol-sort-key").isConstant(),this._currentTileIndex=0,this._currentPartIndex=0,this._seenCrossTileIDs={},this._bucketParts=[]}continuePlacement(w,B,Q,ee,le){let qe=this._bucketParts;for(;this._currentTileIndexXe.sortKey-ot.sortKey));this._currentPartIndex!this._forceFullPlacement&&u.now()-ee>2;for(;this._currentPlacementIndex>=0;){let qe=B[w[this._currentPlacementIndex]],Xe=this.placement.collisionIndex.transform.zoom;if(qe.type==="symbol"&&(!qe.minzoom||qe.minzoom<=Xe)&&(!qe.maxzoom||qe.maxzoom>Xe)){if(this._inProgressLayer||(this._inProgressLayer=new Mn(qe)),this._inProgressLayer.continuePlacement(Q[qe.source],this.placement,this._showCollisionBoxes,qe,le))return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0}commit(w){return this.placement.commit(w),this.placement}}let la=512/a.X/2;class ma{constructor(w,B,Q){this.tileID=w,this.bucketInstanceId=Q,this._symbolsByKey={};let ee=new Map;for(let le=0;le({x:Math.floor(ot.anchorX*la),y:Math.floor(ot.anchorY*la)})),crossTileIDs:qe.map(ot=>ot.crossTileID)};if(Xe.positions.length>128){let ot=new a.av(Xe.positions.length,16,Uint16Array);for(let{x:Tt,y:Kt}of Xe.positions)ot.add(Tt,Kt);ot.finish(),delete Xe.positions,Xe.index=ot}this._symbolsByKey[le]=Xe}}getScaledCoordinates(w,B){let{x:Q,y:ee,z:le}=this.tileID.canonical,{x:qe,y:Xe,z:ot}=B.canonical,Tt=la/Math.pow(2,ot-le),Kt=(Xe*a.X+w.anchorY)*Tt,Jt=ee*a.X*la;return{x:Math.floor((qe*a.X+w.anchorX)*Tt-Q*a.X*la),y:Math.floor(Kt-Jt)}}findMatches(w,B,Q){let ee=this.tileID.canonical.zw)}}class Wa{constructor(){this.maxCrossTileID=0}generate(){return++this.maxCrossTileID}}class Fa{constructor(){this.indexes={},this.usedCrossTileIDs={},this.lng=0}handleWrapJump(w){let B=Math.round((w-this.lng)/360);if(B!==0)for(let Q in this.indexes){let ee=this.indexes[Q],le={};for(let qe in ee){let Xe=ee[qe];Xe.tileID=Xe.tileID.unwrapTo(Xe.tileID.wrap+B),le[Xe.tileID.key]=Xe}this.indexes[Q]=le}this.lng=w}addBucket(w,B,Q){if(this.indexes[w.overscaledZ]&&this.indexes[w.overscaledZ][w.key]){if(this.indexes[w.overscaledZ][w.key].bucketInstanceId===B.bucketInstanceId)return!1;this.removeBucketCrossTileIDs(w.overscaledZ,this.indexes[w.overscaledZ][w.key])}for(let le=0;lew.overscaledZ)for(let Xe in qe){let ot=qe[Xe];ot.tileID.isChildOf(w)&&ot.findMatches(B.symbolInstances,w,ee)}else{let Xe=qe[w.scaledTo(Number(le)).key];Xe&&Xe.findMatches(B.symbolInstances,w,ee)}}for(let le=0;le{B[Q]=!0});for(let Q in this.layerIndexes)B[Q]||delete this.layerIndexes[Q]}}let da=(ue,w)=>a.t(ue,w&&w.filter(B=>B.identifier!=="source.canvas")),Wn=a.aw();class Ga extends a.E{constructor(w,B={}){super(),this._rtlPluginLoaded=()=>{for(let Q in this.sourceCaches){let ee=this.sourceCaches[Q].getSource().type;ee!=="vector"&&ee!=="geojson"||this.sourceCaches[Q].reload()}},this.map=w,this.dispatcher=new Le(Se(),w._getMapId()),this.dispatcher.registerMessageHandler("GG",(Q,ee)=>this.getGlyphs(Q,ee)),this.dispatcher.registerMessageHandler("GI",(Q,ee)=>this.getImages(Q,ee)),this.imageManager=new T,this.imageManager.setEventedParent(this),this.glyphManager=new G(w._requestManager,B.localIdeographFontFamily),this.lineAtlas=new oe(256,512),this.crossTileSymbolIndex=new Wo,this._spritesImagesIds={},this._layers={},this._order=[],this.sourceCaches={},this.zoomHistory=new a.ax,this._loaded=!1,this._availableImages=[],this._resetUpdates(),this.dispatcher.broadcast("SR",a.ay()),er().on(ur,this._rtlPluginLoaded),this.on("data",Q=>{if(Q.dataType!=="source"||Q.sourceDataType!=="metadata")return;let ee=this.sourceCaches[Q.sourceId];if(!ee)return;let le=ee.getSource();if(le&&le.vectorLayerIds)for(let qe in this._layers){let Xe=this._layers[qe];Xe.source===le.id&&this._validateLayer(Xe)}})}loadURL(w,B={},Q){this.fire(new a.k("dataloading",{dataType:"style"})),B.validate=typeof B.validate!="boolean"||B.validate;let ee=this.map._requestManager.transformRequest(w,"Style");this._loadStyleRequest=new AbortController;let le=this._loadStyleRequest;a.h(ee,this._loadStyleRequest).then(qe=>{this._loadStyleRequest=null,this._load(qe.data,B,Q)}).catch(qe=>{this._loadStyleRequest=null,qe&&!le.signal.aborted&&this.fire(new a.j(qe))})}loadJSON(w,B={},Q){this.fire(new a.k("dataloading",{dataType:"style"})),this._frameRequest=new AbortController,u.frameAsync(this._frameRequest).then(()=>{this._frameRequest=null,B.validate=B.validate!==!1,this._load(w,B,Q)}).catch(()=>{})}loadEmpty(){this.fire(new a.k("dataloading",{dataType:"style"})),this._load(Wn,{validate:!1})}_load(w,B,Q){var ee;let le=B.transformStyle?B.transformStyle(Q,w):w;if(!B.validate||!da(this,a.u(le))){this._loaded=!0,this.stylesheet=le;for(let qe in le.sources)this.addSource(qe,le.sources[qe],{validate:!1});le.sprite?this._loadSprite(le.sprite):this.imageManager.setLoaded(!0),this.glyphManager.setURL(le.glyphs),this._createLayers(),this.light=new N(this.stylesheet.light),this.sky=new re(this.stylesheet.sky),this.map.setTerrain((ee=this.stylesheet.terrain)!==null&&ee!==void 0?ee:null),this.fire(new a.k("data",{dataType:"style"})),this.fire(new a.k("style.load"))}}_createLayers(){let w=a.az(this.stylesheet.layers);this.dispatcher.broadcast("SL",w),this._order=w.map(B=>B.id),this._layers={},this._serializedLayers=null;for(let B of w){let Q=a.aA(B);Q.setEventedParent(this,{layer:{id:B.id}}),this._layers[B.id]=Q}}_loadSprite(w,B=!1,Q=void 0){let ee;this.imageManager.setLoaded(!1),this._spriteRequest=new AbortController,function(le,qe,Xe,ot){return a._(this,void 0,void 0,function*(){let Tt=k(le),Kt=Xe>1?"@2x":"",Jt={},xr={};for(let{id:Pr,url:ve}of Tt){let be=qe.transformRequest(M(ve,Kt,".json"),"SpriteJSON");Jt[Pr]=a.h(be,ot);let Re=qe.transformRequest(M(ve,Kt,".png"),"SpriteImage");xr[Pr]=p.getImage(Re,ot)}return yield Promise.all([...Object.values(Jt),...Object.values(xr)]),function(Pr,ve){return a._(this,void 0,void 0,function*(){let be={};for(let Re in Pr){be[Re]={};let Be=u.getImageCanvasContext((yield ve[Re]).data),tt=(yield Pr[Re]).data;for(let We in tt){let{width:it,height:Dt,x:Ht,y:rr,sdf:dr,pixelRatio:Sr,stretchX:Or,stretchY:jr,content:ii,textFitWidth:Li,textFitHeight:un}=tt[We];be[Re][We]={data:null,pixelRatio:Sr,sdf:dr,stretchX:Or,stretchY:jr,content:ii,textFitWidth:Li,textFitHeight:un,spriteData:{width:it,height:Dt,x:Ht,y:rr,context:Be}}}}return be})}(Jt,xr)})}(w,this.map._requestManager,this.map.getPixelRatio(),this._spriteRequest).then(le=>{if(this._spriteRequest=null,le)for(let qe in le){this._spritesImagesIds[qe]=[];let Xe=this._spritesImagesIds[qe]?this._spritesImagesIds[qe].filter(ot=>!(ot in le)):[];for(let ot of Xe)this.imageManager.removeImage(ot),this._changedImages[ot]=!0;for(let ot in le[qe]){let Tt=qe==="default"?ot:`${qe}:${ot}`;this._spritesImagesIds[qe].push(Tt),Tt in this.imageManager.images?this.imageManager.updateImage(Tt,le[qe][ot],!1):this.imageManager.addImage(Tt,le[qe][ot]),B&&(this._changedImages[Tt]=!0)}}}).catch(le=>{this._spriteRequest=null,ee=le,this.fire(new a.j(ee))}).finally(()=>{this.imageManager.setLoaded(!0),this._availableImages=this.imageManager.listImages(),B&&(this._changed=!0),this.dispatcher.broadcast("SI",this._availableImages),this.fire(new a.k("data",{dataType:"style"})),Q&&Q(ee)})}_unloadSprite(){for(let w of Object.values(this._spritesImagesIds).flat())this.imageManager.removeImage(w),this._changedImages[w]=!0;this._spritesImagesIds={},this._availableImages=this.imageManager.listImages(),this._changed=!0,this.dispatcher.broadcast("SI",this._availableImages),this.fire(new a.k("data",{dataType:"style"}))}_validateLayer(w){let B=this.sourceCaches[w.source];if(!B)return;let Q=w.sourceLayer;if(!Q)return;let ee=B.getSource();(ee.type==="geojson"||ee.vectorLayerIds&&ee.vectorLayerIds.indexOf(Q)===-1)&&this.fire(new a.j(new Error(`Source layer "${Q}" does not exist on source "${ee.id}" as specified by style layer "${w.id}".`)))}loaded(){if(!this._loaded||Object.keys(this._updatedSources).length)return!1;for(let w in this.sourceCaches)if(!this.sourceCaches[w].loaded())return!1;return!!this.imageManager.isLoaded()}_serializeByIds(w,B=!1){let Q=this._serializedAllLayers();if(!w||w.length===0)return Object.values(B?a.aB(Q):Q);let ee=[];for(let le of w)if(Q[le]){let qe=B?a.aB(Q[le]):Q[le];ee.push(qe)}return ee}_serializedAllLayers(){let w=this._serializedLayers;if(w)return w;w=this._serializedLayers={};let B=Object.keys(this._layers);for(let Q of B){let ee=this._layers[Q];ee.type!=="custom"&&(w[Q]=ee.serialize())}return w}hasTransitions(){if(this.light&&this.light.hasTransition()||this.sky&&this.sky.hasTransition())return!0;for(let w in this.sourceCaches)if(this.sourceCaches[w].hasTransition())return!0;for(let w in this._layers)if(this._layers[w].hasTransition())return!0;return!1}_checkLoaded(){if(!this._loaded)throw new Error("Style is not done loading.")}update(w){if(!this._loaded)return;let B=this._changed;if(B){let ee=Object.keys(this._updatedLayers),le=Object.keys(this._removedLayers);(ee.length||le.length)&&this._updateWorkerLayers(ee,le);for(let qe in this._updatedSources){let Xe=this._updatedSources[qe];if(Xe==="reload")this._reloadSource(qe);else{if(Xe!=="clear")throw new Error(`Invalid action ${Xe}`);this._clearSource(qe)}}this._updateTilesForChangedImages(),this._updateTilesForChangedGlyphs();for(let qe in this._updatedPaintProps)this._layers[qe].updateTransitions(w);this.light.updateTransitions(w),this.sky.updateTransitions(w),this._resetUpdates()}let Q={};for(let ee in this.sourceCaches){let le=this.sourceCaches[ee];Q[ee]=le.used,le.used=!1}for(let ee of this._order){let le=this._layers[ee];le.recalculate(w,this._availableImages),!le.isHidden(w.zoom)&&le.source&&(this.sourceCaches[le.source].used=!0)}for(let ee in Q){let le=this.sourceCaches[ee];!!Q[ee]!=!!le.used&&le.fire(new a.k("data",{sourceDataType:"visibility",dataType:"source",sourceId:ee}))}this.light.recalculate(w),this.sky.recalculate(w),this.z=w.zoom,B&&this.fire(new a.k("data",{dataType:"style"}))}_updateTilesForChangedImages(){let w=Object.keys(this._changedImages);if(w.length){for(let B in this.sourceCaches)this.sourceCaches[B].reloadTilesForDependencies(["icons","patterns"],w);this._changedImages={}}}_updateTilesForChangedGlyphs(){if(this._glyphsDidChange){for(let w in this.sourceCaches)this.sourceCaches[w].reloadTilesForDependencies(["glyphs"],[""]);this._glyphsDidChange=!1}}_updateWorkerLayers(w,B){this.dispatcher.broadcast("UL",{layers:this._serializeByIds(w,!1),removedIds:B})}_resetUpdates(){this._changed=!1,this._updatedLayers={},this._removedLayers={},this._updatedSources={},this._updatedPaintProps={},this._changedImages={},this._glyphsDidChange=!1}setState(w,B={}){var Q;this._checkLoaded();let ee=this.serialize();if(w=B.transformStyle?B.transformStyle(ee,w):w,((Q=B.validate)===null||Q===void 0||Q)&&da(this,a.u(w)))return!1;(w=a.aB(w)).layers=a.az(w.layers);let le=a.aC(ee,w),qe=this._getOperationsToPerform(le);if(qe.unimplemented.length>0)throw new Error(`Unimplemented: ${qe.unimplemented.join(", ")}.`);if(qe.operations.length===0)return!1;for(let Xe of qe.operations)Xe();return this.stylesheet=w,this._serializedLayers=null,!0}_getOperationsToPerform(w){let B=[],Q=[];for(let ee of w)switch(ee.command){case"setCenter":case"setZoom":case"setBearing":case"setPitch":continue;case"addLayer":B.push(()=>this.addLayer.apply(this,ee.args));break;case"removeLayer":B.push(()=>this.removeLayer.apply(this,ee.args));break;case"setPaintProperty":B.push(()=>this.setPaintProperty.apply(this,ee.args));break;case"setLayoutProperty":B.push(()=>this.setLayoutProperty.apply(this,ee.args));break;case"setFilter":B.push(()=>this.setFilter.apply(this,ee.args));break;case"addSource":B.push(()=>this.addSource.apply(this,ee.args));break;case"removeSource":B.push(()=>this.removeSource.apply(this,ee.args));break;case"setLayerZoomRange":B.push(()=>this.setLayerZoomRange.apply(this,ee.args));break;case"setLight":B.push(()=>this.setLight.apply(this,ee.args));break;case"setGeoJSONSourceData":B.push(()=>this.setGeoJSONSourceData.apply(this,ee.args));break;case"setGlyphs":B.push(()=>this.setGlyphs.apply(this,ee.args));break;case"setSprite":B.push(()=>this.setSprite.apply(this,ee.args));break;case"setSky":B.push(()=>this.setSky.apply(this,ee.args));break;case"setTerrain":B.push(()=>this.map.setTerrain.apply(this,ee.args));break;case"setTransition":B.push(()=>{});break;default:Q.push(ee.command)}return{operations:B,unimplemented:Q}}addImage(w,B){if(this.getImage(w))return this.fire(new a.j(new Error(`An image named "${w}" already exists.`)));this.imageManager.addImage(w,B),this._afterImageUpdated(w)}updateImage(w,B){this.imageManager.updateImage(w,B)}getImage(w){return this.imageManager.getImage(w)}removeImage(w){if(!this.getImage(w))return this.fire(new a.j(new Error(`An image named "${w}" does not exist.`)));this.imageManager.removeImage(w),this._afterImageUpdated(w)}_afterImageUpdated(w){this._availableImages=this.imageManager.listImages(),this._changedImages[w]=!0,this._changed=!0,this.dispatcher.broadcast("SI",this._availableImages),this.fire(new a.k("data",{dataType:"style"}))}listImages(){return this._checkLoaded(),this.imageManager.listImages()}addSource(w,B,Q={}){if(this._checkLoaded(),this.sourceCaches[w]!==void 0)throw new Error(`Source "${w}" already exists.`);if(!B.type)throw new Error(`The type property must be defined, but only the following properties were given: ${Object.keys(B).join(", ")}.`);if(["vector","raster","geojson","video","image"].indexOf(B.type)>=0&&this._validate(a.u.source,`sources.${w}`,B,null,Q))return;this.map&&this.map._collectResourceTiming&&(B.collectResourceTiming=!0);let ee=this.sourceCaches[w]=new yt(w,B,this.dispatcher);ee.style=this,ee.setEventedParent(this,()=>({isSourceLoaded:ee.loaded(),source:ee.serialize(),sourceId:w})),ee.onAdd(this.map),this._changed=!0}removeSource(w){if(this._checkLoaded(),this.sourceCaches[w]===void 0)throw new Error("There is no source with this ID");for(let Q in this._layers)if(this._layers[Q].source===w)return this.fire(new a.j(new Error(`Source "${w}" cannot be removed while layer "${Q}" is using it.`)));let B=this.sourceCaches[w];delete this.sourceCaches[w],delete this._updatedSources[w],B.fire(new a.k("data",{sourceDataType:"metadata",dataType:"source",sourceId:w})),B.setEventedParent(null),B.onRemove(this.map),this._changed=!0}setGeoJSONSourceData(w,B){if(this._checkLoaded(),this.sourceCaches[w]===void 0)throw new Error(`There is no source with this ID=${w}`);let Q=this.sourceCaches[w].getSource();if(Q.type!=="geojson")throw new Error(`geojsonSource.type is ${Q.type}, which is !== 'geojson`);Q.setData(B),this._changed=!0}getSource(w){return this.sourceCaches[w]&&this.sourceCaches[w].getSource()}addLayer(w,B,Q={}){this._checkLoaded();let ee=w.id;if(this.getLayer(ee))return void this.fire(new a.j(new Error(`Layer "${ee}" already exists on this map.`)));let le;if(w.type==="custom"){if(da(this,a.aD(w)))return;le=a.aA(w)}else{if("source"in w&&typeof w.source=="object"&&(this.addSource(ee,w.source),w=a.aB(w),w=a.e(w,{source:ee})),this._validate(a.u.layer,`layers.${ee}`,w,{arrayIndex:-1},Q))return;le=a.aA(w),this._validateLayer(le),le.setEventedParent(this,{layer:{id:ee}})}let qe=B?this._order.indexOf(B):this._order.length;if(B&&qe===-1)this.fire(new a.j(new Error(`Cannot add layer "${ee}" before non-existing layer "${B}".`)));else{if(this._order.splice(qe,0,ee),this._layerOrderChanged=!0,this._layers[ee]=le,this._removedLayers[ee]&&le.source&&le.type!=="custom"){let Xe=this._removedLayers[ee];delete this._removedLayers[ee],Xe.type!==le.type?this._updatedSources[le.source]="clear":(this._updatedSources[le.source]="reload",this.sourceCaches[le.source].pause())}this._updateLayer(le),le.onAdd&&le.onAdd(this.map)}}moveLayer(w,B){if(this._checkLoaded(),this._changed=!0,!this._layers[w])return void this.fire(new a.j(new Error(`The layer '${w}' does not exist in the map's style and cannot be moved.`)));if(w===B)return;let Q=this._order.indexOf(w);this._order.splice(Q,1);let ee=B?this._order.indexOf(B):this._order.length;B&&ee===-1?this.fire(new a.j(new Error(`Cannot move layer "${w}" before non-existing layer "${B}".`))):(this._order.splice(ee,0,w),this._layerOrderChanged=!0)}removeLayer(w){this._checkLoaded();let B=this._layers[w];if(!B)return void this.fire(new a.j(new Error(`Cannot remove non-existing layer "${w}".`)));B.setEventedParent(null);let Q=this._order.indexOf(w);this._order.splice(Q,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[w]=B,delete this._layers[w],this._serializedLayers&&delete this._serializedLayers[w],delete this._updatedLayers[w],delete this._updatedPaintProps[w],B.onRemove&&B.onRemove(this.map)}getLayer(w){return this._layers[w]}getLayersOrder(){return[...this._order]}hasLayer(w){return w in this._layers}setLayerZoomRange(w,B,Q){this._checkLoaded();let ee=this.getLayer(w);ee?ee.minzoom===B&&ee.maxzoom===Q||(B!=null&&(ee.minzoom=B),Q!=null&&(ee.maxzoom=Q),this._updateLayer(ee)):this.fire(new a.j(new Error(`Cannot set the zoom range of non-existing layer "${w}".`)))}setFilter(w,B,Q={}){this._checkLoaded();let ee=this.getLayer(w);if(ee){if(!a.aE(ee.filter,B))return B==null?(ee.filter=void 0,void this._updateLayer(ee)):void(this._validate(a.u.filter,`layers.${ee.id}.filter`,B,null,Q)||(ee.filter=a.aB(B),this._updateLayer(ee)))}else this.fire(new a.j(new Error(`Cannot filter non-existing layer "${w}".`)))}getFilter(w){return a.aB(this.getLayer(w).filter)}setLayoutProperty(w,B,Q,ee={}){this._checkLoaded();let le=this.getLayer(w);le?a.aE(le.getLayoutProperty(B),Q)||(le.setLayoutProperty(B,Q,ee),this._updateLayer(le)):this.fire(new a.j(new Error(`Cannot style non-existing layer "${w}".`)))}getLayoutProperty(w,B){let Q=this.getLayer(w);if(Q)return Q.getLayoutProperty(B);this.fire(new a.j(new Error(`Cannot get style of non-existing layer "${w}".`)))}setPaintProperty(w,B,Q,ee={}){this._checkLoaded();let le=this.getLayer(w);le?a.aE(le.getPaintProperty(B),Q)||(le.setPaintProperty(B,Q,ee)&&this._updateLayer(le),this._changed=!0,this._updatedPaintProps[w]=!0,this._serializedLayers=null):this.fire(new a.j(new Error(`Cannot style non-existing layer "${w}".`)))}getPaintProperty(w,B){return this.getLayer(w).getPaintProperty(B)}setFeatureState(w,B){this._checkLoaded();let Q=w.source,ee=w.sourceLayer,le=this.sourceCaches[Q];if(le===void 0)return void this.fire(new a.j(new Error(`The source '${Q}' does not exist in the map's style.`)));let qe=le.getSource().type;qe==="geojson"&&ee?this.fire(new a.j(new Error("GeoJSON sources cannot have a sourceLayer parameter."))):qe!=="vector"||ee?(w.id===void 0&&this.fire(new a.j(new Error("The feature id parameter must be provided."))),le.setFeatureState(ee,w.id,B)):this.fire(new a.j(new Error("The sourceLayer parameter must be provided for vector source types.")))}removeFeatureState(w,B){this._checkLoaded();let Q=w.source,ee=this.sourceCaches[Q];if(ee===void 0)return void this.fire(new a.j(new Error(`The source '${Q}' does not exist in the map's style.`)));let le=ee.getSource().type,qe=le==="vector"?w.sourceLayer:void 0;le!=="vector"||qe?B&&typeof w.id!="string"&&typeof w.id!="number"?this.fire(new a.j(new Error("A feature id is required to remove its specific state property."))):ee.removeFeatureState(qe,w.id,B):this.fire(new a.j(new Error("The sourceLayer parameter must be provided for vector source types.")))}getFeatureState(w){this._checkLoaded();let B=w.source,Q=w.sourceLayer,ee=this.sourceCaches[B];if(ee!==void 0)return ee.getSource().type!=="vector"||Q?(w.id===void 0&&this.fire(new a.j(new Error("The feature id parameter must be provided."))),ee.getFeatureState(Q,w.id)):void this.fire(new a.j(new Error("The sourceLayer parameter must be provided for vector source types.")));this.fire(new a.j(new Error(`The source '${B}' does not exist in the map's style.`)))}getTransition(){return a.e({duration:300,delay:0},this.stylesheet&&this.stylesheet.transition)}serialize(){if(!this._loaded)return;let w=a.aF(this.sourceCaches,le=>le.serialize()),B=this._serializeByIds(this._order,!0),Q=this.map.getTerrain()||void 0,ee=this.stylesheet;return a.aG({version:ee.version,name:ee.name,metadata:ee.metadata,light:ee.light,sky:ee.sky,center:ee.center,zoom:ee.zoom,bearing:ee.bearing,pitch:ee.pitch,sprite:ee.sprite,glyphs:ee.glyphs,transition:ee.transition,sources:w,layers:B,terrain:Q},le=>le!==void 0)}_updateLayer(w){this._updatedLayers[w.id]=!0,w.source&&!this._updatedSources[w.source]&&this.sourceCaches[w.source].getSource().type!=="raster"&&(this._updatedSources[w.source]="reload",this.sourceCaches[w.source].pause()),this._serializedLayers=null,this._changed=!0}_flattenAndSortRenderedFeatures(w){let B=qe=>this._layers[qe].type==="fill-extrusion",Q={},ee=[];for(let qe=this._order.length-1;qe>=0;qe--){let Xe=this._order[qe];if(B(Xe)){Q[Xe]=qe;for(let ot of w){let Tt=ot[Xe];if(Tt)for(let Kt of Tt)ee.push(Kt)}}}ee.sort((qe,Xe)=>Xe.intersectionZ-qe.intersectionZ);let le=[];for(let qe=this._order.length-1;qe>=0;qe--){let Xe=this._order[qe];if(B(Xe))for(let ot=ee.length-1;ot>=0;ot--){let Tt=ee[ot].feature;if(Q[Tt.layer.id]{let dr=Be.featureSortOrder;if(dr){let Sr=dr.indexOf(Ht.featureIndex);return dr.indexOf(rr.featureIndex)-Sr}return rr.featureIndex-Ht.featureIndex});for(let Ht of Dt)it.push(Ht)}}for(let Be in ve)ve[Be].forEach(tt=>{let We=tt.feature,it=Tt[Xe[Be].source].getFeatureState(We.layer["source-layer"],We.id);We.source=We.layer.source,We.layer["source-layer"]&&(We.sourceLayer=We.layer["source-layer"]),We.state=it});return ve}(this._layers,qe,this.sourceCaches,w,B,this.placement.collisionIndex,this.placement.retainedQueryData)),this._flattenAndSortRenderedFeatures(le)}querySourceFeatures(w,B){B&&B.filter&&this._validate(a.u.filter,"querySourceFeatures.filter",B.filter,null,B);let Q=this.sourceCaches[w];return Q?function(ee,le){let qe=ee.getRenderableIds().map(Tt=>ee.getTileByID(Tt)),Xe=[],ot={};for(let Tt=0;Ttxr.getTileByID(Pr)).sort((Pr,ve)=>ve.tileID.overscaledZ-Pr.tileID.overscaledZ||(Pr.tileID.isLessThan(ve.tileID)?-1:1))}let Jt=this.crossTileSymbolIndex.addLayer(Kt,ot[Kt.source],w.center.lng);qe=qe||Jt}if(this.crossTileSymbolIndex.pruneUnusedLayers(this._order),((le=le||this._layerOrderChanged||Q===0)||!this.pauseablePlacement||this.pauseablePlacement.isDone()&&!this.placement.stillRecent(u.now(),w.zoom))&&(this.pauseablePlacement=new Ba(w,this.map.terrain,this._order,le,B,Q,ee,this.placement),this._layerOrderChanged=!1),this.pauseablePlacement.isDone()?this.placement.setStale():(this.pauseablePlacement.continuePlacement(this._order,this._layers,ot),this.pauseablePlacement.isDone()&&(this.placement=this.pauseablePlacement.commit(u.now()),Xe=!0),qe&&this.pauseablePlacement.placement.setStale()),Xe||qe)for(let Tt of this._order){let Kt=this._layers[Tt];Kt.type==="symbol"&&this.placement.updateLayerOpacities(Kt,ot[Kt.source])}return!this.pauseablePlacement.isDone()||this.placement.hasTransitions(u.now())}_releaseSymbolFadeTiles(){for(let w in this.sourceCaches)this.sourceCaches[w].releaseSymbolFadeTiles()}getImages(w,B){return a._(this,void 0,void 0,function*(){let Q=yield this.imageManager.getImages(B.icons);this._updateTilesForChangedImages();let ee=this.sourceCaches[B.source];return ee&&ee.setDependencies(B.tileID.key,B.type,B.icons),Q})}getGlyphs(w,B){return a._(this,void 0,void 0,function*(){let Q=yield this.glyphManager.getGlyphs(B.stacks),ee=this.sourceCaches[B.source];return ee&&ee.setDependencies(B.tileID.key,B.type,[""]),Q})}getGlyphsUrl(){return this.stylesheet.glyphs||null}setGlyphs(w,B={}){this._checkLoaded(),w&&this._validate(a.u.glyphs,"glyphs",w,null,B)||(this._glyphsDidChange=!0,this.stylesheet.glyphs=w,this.glyphManager.entries={},this.glyphManager.setURL(w))}addSprite(w,B,Q={},ee){this._checkLoaded();let le=[{id:w,url:B}],qe=[...k(this.stylesheet.sprite),...le];this._validate(a.u.sprite,"sprite",qe,null,Q)||(this.stylesheet.sprite=qe,this._loadSprite(le,!0,ee))}removeSprite(w){this._checkLoaded();let B=k(this.stylesheet.sprite);if(B.find(Q=>Q.id===w)){if(this._spritesImagesIds[w])for(let Q of this._spritesImagesIds[w])this.imageManager.removeImage(Q),this._changedImages[Q]=!0;B.splice(B.findIndex(Q=>Q.id===w),1),this.stylesheet.sprite=B.length>0?B:void 0,delete this._spritesImagesIds[w],this._availableImages=this.imageManager.listImages(),this._changed=!0,this.dispatcher.broadcast("SI",this._availableImages),this.fire(new a.k("data",{dataType:"style"}))}else this.fire(new a.j(new Error(`Sprite "${w}" doesn't exists on this map.`)))}getSprite(){return k(this.stylesheet.sprite)}setSprite(w,B={},Q){this._checkLoaded(),w&&this._validate(a.u.sprite,"sprite",w,null,B)||(this.stylesheet.sprite=w,w?this._loadSprite(w,!0,Q):(this._unloadSprite(),Q&&Q(null)))}}var vo=a.Y([{name:"a_pos",type:"Int16",components:2}]);let jn={prelude:St(`#ifdef GL_ES +precision mediump float; +#else +#if !defined(lowp) +#define lowp +#endif +#if !defined(mediump) +#define mediump +#endif +#if !defined(highp) +#define highp +#endif +#endif +`,`#ifdef GL_ES +precision highp float; +#else +#if !defined(lowp) +#define lowp +#endif +#if !defined(mediump) +#define mediump +#endif +#if !defined(highp) +#define highp +#endif +#endif +vec2 unpack_float(const float packedValue) {int packedIntValue=int(packedValue);int v0=packedIntValue/256;return vec2(v0,packedIntValue-v0*256);}vec2 unpack_opacity(const float packedOpacity) {int intOpacity=int(packedOpacity)/2;return vec2(float(intOpacity)/127.0,mod(packedOpacity,2.0));}vec4 decode_color(const vec2 encodedColor) {return vec4(unpack_float(encodedColor[0])/255.0,unpack_float(encodedColor[1])/255.0 +);}float unpack_mix_vec2(const vec2 packedValue,const float t) {return mix(packedValue[0],packedValue[1],t);}vec4 unpack_mix_color(const vec4 packedColors,const float t) {vec4 minColor=decode_color(vec2(packedColors[0],packedColors[1]));vec4 maxColor=decode_color(vec2(packedColors[2],packedColors[3]));return mix(minColor,maxColor,t);}vec2 get_pattern_pos(const vec2 pixel_coord_upper,const vec2 pixel_coord_lower,const vec2 pattern_size,const float tile_units_to_pixels,const vec2 pos) {vec2 offset=mod(mod(mod(pixel_coord_upper,pattern_size)*256.0,pattern_size)*256.0+pixel_coord_lower,pattern_size);return (tile_units_to_pixels*pos+offset)/pattern_size;} +#ifdef TERRAIN3D +uniform sampler2D u_terrain;uniform float u_terrain_dim;uniform mat4 u_terrain_matrix;uniform vec4 u_terrain_unpack;uniform float u_terrain_exaggeration;uniform highp sampler2D u_depth; +#endif +const highp vec4 bitSh=vec4(256.*256.*256.,256.*256.,256.,1.);const highp vec4 bitShifts=vec4(1.)/bitSh;highp float unpack(highp vec4 color) {return dot(color,bitShifts);}highp float depthOpacity(vec3 frag) { +#ifdef TERRAIN3D +highp float d=unpack(texture2D(u_depth,frag.xy*0.5+0.5))+0.0001-frag.z;return 1.0-max(0.0,min(1.0,-d*500.0)); +#else +return 1.0; +#endif +}float calculate_visibility(vec4 pos) { +#ifdef TERRAIN3D +vec3 frag=pos.xyz/pos.w;highp float d=depthOpacity(frag);if (d > 0.95) return 1.0;return (d+depthOpacity(frag+vec3(0.0,0.01,0.0)))/2.0; +#else +return 1.0; +#endif +}float ele(vec2 pos) { +#ifdef TERRAIN3D +vec4 rgb=(texture2D(u_terrain,pos)*255.0)*u_terrain_unpack;return rgb.r+rgb.g+rgb.b-u_terrain_unpack.a; +#else +return 0.0; +#endif +}float get_elevation(vec2 pos) { +#ifdef TERRAIN3D +vec2 coord=(u_terrain_matrix*vec4(pos,0.0,1.0)).xy*u_terrain_dim+1.0;vec2 f=fract(coord);vec2 c=(floor(coord)+0.5)/(u_terrain_dim+2.0);float d=1.0/(u_terrain_dim+2.0);float tl=ele(c);float tr=ele(c+vec2(d,0.0));float bl=ele(c+vec2(0.0,d));float br=ele(c+vec2(d,d));float elevation=mix(mix(tl,tr,f.x),mix(bl,br,f.x),f.y);return elevation*u_terrain_exaggeration; +#else +return 0.0; +#endif +}`),background:St(`uniform vec4 u_color;uniform float u_opacity;void main() {gl_FragColor=u_color*u_opacity; +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,"attribute vec2 a_pos;uniform mat4 u_matrix;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);}"),backgroundPattern:St(`uniform vec2 u_pattern_tl_a;uniform vec2 u_pattern_br_a;uniform vec2 u_pattern_tl_b;uniform vec2 u_pattern_br_b;uniform vec2 u_texsize;uniform float u_mix;uniform float u_opacity;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;void main() {vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(u_pattern_tl_a/u_texsize,u_pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(u_pattern_tl_b/u_texsize,u_pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);gl_FragColor=mix(color1,color2,u_mix)*u_opacity; +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,"uniform mat4 u_matrix;uniform vec2 u_pattern_size_a;uniform vec2 u_pattern_size_b;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_scale_a;uniform float u_scale_b;uniform float u_tile_units_to_pixels;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_scale_a*u_pattern_size_a,u_tile_units_to_pixels,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_scale_b*u_pattern_size_b,u_tile_units_to_pixels,a_pos);}"),circle:St(`varying vec3 v_data;varying float v_visibility; +#pragma mapbox: define highp vec4 color +#pragma mapbox: define mediump float radius +#pragma mapbox: define lowp float blur +#pragma mapbox: define lowp float opacity +#pragma mapbox: define highp vec4 stroke_color +#pragma mapbox: define mediump float stroke_width +#pragma mapbox: define lowp float stroke_opacity +void main() { +#pragma mapbox: initialize highp vec4 color +#pragma mapbox: initialize mediump float radius +#pragma mapbox: initialize lowp float blur +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize highp vec4 stroke_color +#pragma mapbox: initialize mediump float stroke_width +#pragma mapbox: initialize lowp float stroke_opacity +vec2 extrude=v_data.xy;float extrude_length=length(extrude);float antialiased_blur=v_data.z;float opacity_t=smoothstep(0.0,antialiased_blur,extrude_length-1.0);float color_t=stroke_width < 0.01 ? 0.0 : smoothstep(antialiased_blur,0.0,extrude_length-radius/(radius+stroke_width));gl_FragColor=v_visibility*opacity_t*mix(color*opacity,stroke_color*stroke_opacity,color_t); +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,`uniform mat4 u_matrix;uniform bool u_scale_with_map;uniform bool u_pitch_with_map;uniform vec2 u_extrude_scale;uniform lowp float u_device_pixel_ratio;uniform highp float u_camera_to_center_distance;attribute vec2 a_pos;varying vec3 v_data;varying float v_visibility; +#pragma mapbox: define highp vec4 color +#pragma mapbox: define mediump float radius +#pragma mapbox: define lowp float blur +#pragma mapbox: define lowp float opacity +#pragma mapbox: define highp vec4 stroke_color +#pragma mapbox: define mediump float stroke_width +#pragma mapbox: define lowp float stroke_opacity +void main(void) { +#pragma mapbox: initialize highp vec4 color +#pragma mapbox: initialize mediump float radius +#pragma mapbox: initialize lowp float blur +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize highp vec4 stroke_color +#pragma mapbox: initialize mediump float stroke_width +#pragma mapbox: initialize lowp float stroke_opacity +vec2 extrude=vec2(mod(a_pos,2.0)*2.0-1.0);vec2 circle_center=floor(a_pos*0.5);float ele=get_elevation(circle_center);v_visibility=calculate_visibility(u_matrix*vec4(circle_center,ele,1.0));if (u_pitch_with_map) {vec2 corner_position=circle_center;if (u_scale_with_map) {corner_position+=extrude*(radius+stroke_width)*u_extrude_scale;} else {vec4 projected_center=u_matrix*vec4(circle_center,0,1);corner_position+=extrude*(radius+stroke_width)*u_extrude_scale*(projected_center.w/u_camera_to_center_distance);}gl_Position=u_matrix*vec4(corner_position,ele,1);} else {gl_Position=u_matrix*vec4(circle_center,ele,1);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);}`),clippingMask:St("void main() {gl_FragColor=vec4(1.0);}","attribute vec2 a_pos;uniform mat4 u_matrix;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);}"),heatmap:St(`uniform highp float u_intensity;varying vec2 v_extrude; +#pragma mapbox: define highp float weight +#define GAUSS_COEF 0.3989422804014327 +void main() { +#pragma mapbox: initialize highp float weight +float d=-0.5*3.0*3.0*dot(v_extrude,v_extrude);float val=weight*u_intensity*GAUSS_COEF*exp(d);gl_FragColor=vec4(val,1.0,1.0,1.0); +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,`uniform mat4 u_matrix;uniform float u_extrude_scale;uniform float u_opacity;uniform float u_intensity;attribute vec2 a_pos;varying vec2 v_extrude; +#pragma mapbox: define highp float weight +#pragma mapbox: define mediump float radius +const highp float ZERO=1.0/255.0/16.0; +#define GAUSS_COEF 0.3989422804014327 +void main(void) { +#pragma mapbox: initialize highp float weight +#pragma mapbox: initialize mediump float radius +vec2 unscaled_extrude=vec2(mod(a_pos,2.0)*2.0-1.0);float S=sqrt(-2.0*log(ZERO/weight/u_intensity/GAUSS_COEF))/3.0;v_extrude=S*unscaled_extrude;vec2 extrude=v_extrude*radius*u_extrude_scale;vec4 pos=vec4(floor(a_pos*0.5)+extrude,get_elevation(floor(a_pos*0.5)),1);gl_Position=u_matrix*pos;}`),heatmapTexture:St(`uniform sampler2D u_image;uniform sampler2D u_color_ramp;uniform float u_opacity;varying vec2 v_pos;void main() {float t=texture2D(u_image,v_pos).r;vec4 color=texture2D(u_color_ramp,vec2(t,0.5));gl_FragColor=color*u_opacity; +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(0.0); +#endif +}`,"uniform mat4 u_matrix;uniform vec2 u_world;attribute vec2 a_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos*u_world,0,1);v_pos.x=a_pos.x;v_pos.y=1.0-a_pos.y;}"),collisionBox:St("varying float v_placed;varying float v_notUsed;void main() {float alpha=0.5;gl_FragColor=vec4(1.0,0.0,0.0,1.0)*alpha;if (v_placed > 0.5) {gl_FragColor=vec4(0.0,0.0,1.0,0.5)*alpha;}if (v_notUsed > 0.5) {gl_FragColor*=.1;}}","attribute vec2 a_anchor_pos;attribute vec2 a_placed;attribute vec2 a_box_real;uniform mat4 u_matrix;uniform vec2 u_pixel_extrude_scale;varying float v_placed;varying float v_notUsed;vec4 projectTileWithElevation(vec2 posInTile,float elevation) {return u_matrix*vec4(posInTile,elevation,1.0);}void main() {gl_Position=projectTileWithElevation(a_anchor_pos,get_elevation(a_anchor_pos));gl_Position.xy=((a_box_real+0.5)*u_pixel_extrude_scale*2.0-1.0)*vec2(1.0,-1.0)*gl_Position.w;if (gl_Position.z/gl_Position.w < 1.1) {gl_Position.z=0.5;}v_placed=a_placed.x;v_notUsed=a_placed.y;}"),collisionCircle:St("varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;void main() {float alpha=0.5*min(v_perspective_ratio,1.0);float stroke_radius=0.9*max(v_perspective_ratio,1.0);float distance_to_center=length(v_extrude);float distance_to_edge=abs(distance_to_center-v_radius);float opacity_t=smoothstep(-stroke_radius,0.0,-distance_to_edge);vec4 color=mix(vec4(0.0,0.0,1.0,0.5),vec4(1.0,0.0,0.0,1.0),v_collision);gl_FragColor=color*alpha*opacity_t;}","attribute vec2 a_pos;attribute float a_radius;attribute vec2 a_flags;uniform mat4 u_matrix;uniform mat4 u_inv_matrix;uniform vec2 u_viewport_size;uniform float u_camera_to_center_distance;varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;vec3 toTilePosition(vec2 screenPos) {vec4 rayStart=u_inv_matrix*vec4(screenPos,-1.0,1.0);vec4 rayEnd =u_inv_matrix*vec4(screenPos, 1.0,1.0);rayStart.xyz/=rayStart.w;rayEnd.xyz /=rayEnd.w;highp float t=(0.0-rayStart.z)/(rayEnd.z-rayStart.z);return mix(rayStart.xyz,rayEnd.xyz,t);}void main() {vec2 quadCenterPos=a_pos;float radius=a_radius;float collision=a_flags.x;float vertexIdx=a_flags.y;vec2 quadVertexOffset=vec2(mix(-1.0,1.0,float(vertexIdx >=2.0)),mix(-1.0,1.0,float(vertexIdx >=1.0 && vertexIdx <=2.0)));vec2 quadVertexExtent=quadVertexOffset*radius;vec3 tilePos=toTilePosition(quadCenterPos);vec4 clipPos=u_matrix*vec4(tilePos,1.0);highp float camera_to_anchor_distance=clipPos.w;highp float collision_perspective_ratio=clamp(0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);float padding_factor=1.2;v_radius=radius;v_extrude=quadVertexExtent*padding_factor;v_perspective_ratio=collision_perspective_ratio;v_collision=collision;gl_Position=vec4(clipPos.xyz/clipPos.w,1.0)+vec4(quadVertexExtent*padding_factor/u_viewport_size*2.0,0.0,0.0);}"),debug:St("uniform highp vec4 u_color;uniform sampler2D u_overlay;varying vec2 v_uv;void main() {vec4 overlay_color=texture2D(u_overlay,v_uv);gl_FragColor=mix(u_color,overlay_color,overlay_color.a);}","attribute vec2 a_pos;varying vec2 v_uv;uniform mat4 u_matrix;uniform float u_overlay_scale;void main() {v_uv=a_pos/8192.0;gl_Position=u_matrix*vec4(a_pos*u_overlay_scale,get_elevation(a_pos),1);}"),fill:St(`#pragma mapbox: define highp vec4 color +#pragma mapbox: define lowp float opacity +void main() { +#pragma mapbox: initialize highp vec4 color +#pragma mapbox: initialize lowp float opacity +gl_FragColor=color*opacity; +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,`attribute vec2 a_pos;uniform mat4 u_matrix; +#pragma mapbox: define highp vec4 color +#pragma mapbox: define lowp float opacity +void main() { +#pragma mapbox: initialize highp vec4 color +#pragma mapbox: initialize lowp float opacity +gl_Position=u_matrix*vec4(a_pos,0,1);}`),fillOutline:St(`varying vec2 v_pos; +#pragma mapbox: define highp vec4 outline_color +#pragma mapbox: define lowp float opacity +void main() { +#pragma mapbox: initialize highp vec4 outline_color +#pragma mapbox: initialize lowp float opacity +float dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);gl_FragColor=outline_color*(alpha*opacity); +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,`attribute vec2 a_pos;uniform mat4 u_matrix;uniform vec2 u_world;varying vec2 v_pos; +#pragma mapbox: define highp vec4 outline_color +#pragma mapbox: define lowp float opacity +void main() { +#pragma mapbox: initialize highp vec4 outline_color +#pragma mapbox: initialize lowp float opacity +gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;}`),fillOutlinePattern:St(`uniform vec2 u_texsize;uniform sampler2D u_image;uniform float u_fade;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec2 v_pos; +#pragma mapbox: define lowp float opacity +#pragma mapbox: define lowp vec4 pattern_from +#pragma mapbox: define lowp vec4 pattern_to +void main() { +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize mediump vec4 pattern_from +#pragma mapbox: initialize mediump vec4 pattern_to +vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);float dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);gl_FragColor=mix(color1,color2,u_fade)*alpha*opacity; +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,`uniform mat4 u_matrix;uniform vec2 u_world;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec3 u_scale;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec2 v_pos; +#pragma mapbox: define lowp float opacity +#pragma mapbox: define lowp vec4 pattern_from +#pragma mapbox: define lowp vec4 pattern_to +#pragma mapbox: define lowp float pixel_ratio_from +#pragma mapbox: define lowp float pixel_ratio_to +void main() { +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize mediump vec4 pattern_from +#pragma mapbox: initialize mediump vec4 pattern_to +#pragma mapbox: initialize lowp float pixel_ratio_from +#pragma mapbox: initialize lowp float pixel_ratio_to +vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;gl_Position=u_matrix*vec4(a_pos,0,1);vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,a_pos);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;}`),fillPattern:St(`#ifdef GL_ES +precision highp float; +#endif +uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b; +#pragma mapbox: define lowp float opacity +#pragma mapbox: define lowp vec4 pattern_from +#pragma mapbox: define lowp vec4 pattern_to +void main() { +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize mediump vec4 pattern_from +#pragma mapbox: initialize mediump vec4 pattern_to +vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);gl_FragColor=mix(color1,color2,u_fade)*opacity; +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,`uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec3 u_scale;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b; +#pragma mapbox: define lowp float opacity +#pragma mapbox: define lowp vec4 pattern_from +#pragma mapbox: define lowp vec4 pattern_to +#pragma mapbox: define lowp float pixel_ratio_from +#pragma mapbox: define lowp float pixel_ratio_to +void main() { +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize mediump vec4 pattern_from +#pragma mapbox: initialize mediump vec4 pattern_to +#pragma mapbox: initialize lowp float pixel_ratio_from +#pragma mapbox: initialize lowp float pixel_ratio_to +vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;gl_Position=u_matrix*vec4(a_pos,0,1);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileZoomRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileZoomRatio,a_pos);}`),fillExtrusion:St(`varying vec4 v_color;void main() {gl_FragColor=v_color; +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,`uniform mat4 u_matrix;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;uniform float u_vertical_gradient;uniform lowp float u_opacity;attribute vec2 a_pos;attribute vec4 a_normal_ed; +#ifdef TERRAIN3D +attribute vec2 a_centroid; +#endif +varying vec4 v_color; +#pragma mapbox: define highp float base +#pragma mapbox: define highp float height +#pragma mapbox: define highp vec4 color +void main() { +#pragma mapbox: initialize highp float base +#pragma mapbox: initialize highp float height +#pragma mapbox: initialize highp vec4 color +vec3 normal=a_normal_ed.xyz; +#ifdef TERRAIN3D +float height_terrain3d_offset=get_elevation(a_centroid);float base_terrain3d_offset=height_terrain3d_offset-(base > 0.0 ? 0.0 : 10.0); +#else +float height_terrain3d_offset=0.0;float base_terrain3d_offset=0.0; +#endif +base=max(0.0,base)+base_terrain3d_offset;height=max(0.0,height)+height_terrain3d_offset;float t=mod(normal.x,2.0);gl_Position=u_matrix*vec4(a_pos,t > 0.0 ? height : base,1);float colorvalue=color.r*0.2126+color.g*0.7152+color.b*0.0722;v_color=vec4(0.0,0.0,0.0,1.0);vec4 ambientlight=vec4(0.03,0.03,0.03,1.0);color+=ambientlight;float directional=clamp(dot(normal/16384.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((1.0-colorvalue+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_color.r+=clamp(color.r*directional*u_lightcolor.r,mix(0.0,0.3,1.0-u_lightcolor.r),1.0);v_color.g+=clamp(color.g*directional*u_lightcolor.g,mix(0.0,0.3,1.0-u_lightcolor.g),1.0);v_color.b+=clamp(color.b*directional*u_lightcolor.b,mix(0.0,0.3,1.0-u_lightcolor.b),1.0);v_color*=u_opacity;}`),fillExtrusionPattern:St(`uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting; +#pragma mapbox: define lowp float base +#pragma mapbox: define lowp float height +#pragma mapbox: define lowp vec4 pattern_from +#pragma mapbox: define lowp vec4 pattern_to +#pragma mapbox: define lowp float pixel_ratio_from +#pragma mapbox: define lowp float pixel_ratio_to +void main() { +#pragma mapbox: initialize lowp float base +#pragma mapbox: initialize lowp float height +#pragma mapbox: initialize mediump vec4 pattern_from +#pragma mapbox: initialize mediump vec4 pattern_to +#pragma mapbox: initialize lowp float pixel_ratio_from +#pragma mapbox: initialize lowp float pixel_ratio_to +vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);vec4 mixedColor=mix(color1,color2,u_fade);gl_FragColor=mixedColor*v_lighting; +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,`uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_height_factor;uniform vec3 u_scale;uniform float u_vertical_gradient;uniform lowp float u_opacity;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;attribute vec2 a_pos;attribute vec4 a_normal_ed; +#ifdef TERRAIN3D +attribute vec2 a_centroid; +#endif +varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting; +#pragma mapbox: define lowp float base +#pragma mapbox: define lowp float height +#pragma mapbox: define lowp vec4 pattern_from +#pragma mapbox: define lowp vec4 pattern_to +#pragma mapbox: define lowp float pixel_ratio_from +#pragma mapbox: define lowp float pixel_ratio_to +void main() { +#pragma mapbox: initialize lowp float base +#pragma mapbox: initialize lowp float height +#pragma mapbox: initialize mediump vec4 pattern_from +#pragma mapbox: initialize mediump vec4 pattern_to +#pragma mapbox: initialize lowp float pixel_ratio_from +#pragma mapbox: initialize lowp float pixel_ratio_to +vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec3 normal=a_normal_ed.xyz;float edgedistance=a_normal_ed.w;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to; +#ifdef TERRAIN3D +float height_terrain3d_offset=get_elevation(a_centroid);float base_terrain3d_offset=height_terrain3d_offset-(base > 0.0 ? 0.0 : 10.0); +#else +float height_terrain3d_offset=0.0;float base_terrain3d_offset=0.0; +#endif +base=max(0.0,base)+base_terrain3d_offset;height=max(0.0,height)+height_terrain3d_offset;float t=mod(normal.x,2.0);float z=t > 0.0 ? height : base;gl_Position=u_matrix*vec4(a_pos,z,1);vec2 pos=normal.x==1.0 && normal.y==0.0 && normal.z==16384.0 +? a_pos +: vec2(edgedistance,z*u_height_factor);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,pos);v_lighting=vec4(0.0,0.0,0.0,1.0);float directional=clamp(dot(normal/16383.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((0.5+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_lighting.rgb+=clamp(directional*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));v_lighting*=u_opacity;}`),hillshadePrepare:St(`#ifdef GL_ES +precision highp float; +#endif +uniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_dimension;uniform float u_zoom;uniform vec4 u_unpack;float getElevation(vec2 coord,float bias) {vec4 data=texture2D(u_image,coord)*255.0;data.a=-1.0;return dot(data,u_unpack)/4.0;}void main() {vec2 epsilon=1.0/u_dimension;float a=getElevation(v_pos+vec2(-epsilon.x,-epsilon.y),0.0);float b=getElevation(v_pos+vec2(0,-epsilon.y),0.0);float c=getElevation(v_pos+vec2(epsilon.x,-epsilon.y),0.0);float d=getElevation(v_pos+vec2(-epsilon.x,0),0.0);float e=getElevation(v_pos,0.0);float f=getElevation(v_pos+vec2(epsilon.x,0),0.0);float g=getElevation(v_pos+vec2(-epsilon.x,epsilon.y),0.0);float h=getElevation(v_pos+vec2(0,epsilon.y),0.0);float i=getElevation(v_pos+vec2(epsilon.x,epsilon.y),0.0);float exaggerationFactor=u_zoom < 2.0 ? 0.4 : u_zoom < 4.5 ? 0.35 : 0.3;float exaggeration=u_zoom < 15.0 ? (u_zoom-15.0)*exaggerationFactor : 0.0;vec2 deriv=vec2((c+f+f+i)-(a+d+d+g),(g+h+h+i)-(a+b+b+c))/pow(2.0,exaggeration+(19.2562-u_zoom));gl_FragColor=clamp(vec4(deriv.x/2.0+0.5,deriv.y/2.0+0.5,1.0,1.0),0.0,1.0); +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,"uniform mat4 u_matrix;uniform vec2 u_dimension;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);highp vec2 epsilon=1.0/u_dimension;float scale=(u_dimension.x-2.0)/u_dimension.x;v_pos=(a_texture_pos/8192.0)*scale+epsilon;}"),hillshade:St(`uniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_latrange;uniform vec2 u_light;uniform vec4 u_shadow;uniform vec4 u_highlight;uniform vec4 u_accent; +#define PI 3.141592653589793 +void main() {vec4 pixel=texture2D(u_image,v_pos);vec2 deriv=((pixel.rg*2.0)-1.0);float scaleFactor=cos(radians((u_latrange[0]-u_latrange[1])*(1.0-v_pos.y)+u_latrange[1]));float slope=atan(1.25*length(deriv)/scaleFactor);float aspect=deriv.x !=0.0 ? atan(deriv.y,-deriv.x) : PI/2.0*(deriv.y > 0.0 ? 1.0 :-1.0);float intensity=u_light.x;float azimuth=u_light.y+PI;float base=1.875-intensity*1.75;float maxValue=0.5*PI;float scaledSlope=intensity !=0.5 ? ((pow(base,slope)-1.0)/(pow(base,maxValue)-1.0))*maxValue : slope;float accent=cos(scaledSlope);vec4 accent_color=(1.0-accent)*u_accent*clamp(intensity*2.0,0.0,1.0);float shade=abs(mod((aspect+azimuth)/PI+0.5,2.0)-1.0);vec4 shade_color=mix(u_shadow,u_highlight,shade)*sin(scaledSlope)*clamp(intensity*2.0,0.0,1.0);gl_FragColor=accent_color*(1.0-shade_color.a)+shade_color; +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,"uniform mat4 u_matrix;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=a_texture_pos/8192.0;}"),line:St(`uniform lowp float u_device_pixel_ratio;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale; +#pragma mapbox: define highp vec4 color +#pragma mapbox: define lowp float blur +#pragma mapbox: define lowp float opacity +void main() { +#pragma mapbox: initialize highp vec4 color +#pragma mapbox: initialize lowp float blur +#pragma mapbox: initialize lowp float opacity +float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);gl_FragColor=color*(alpha*opacity); +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,` +#define scale 0.015873016 +attribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform vec2 u_units_to_pixels;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_gamma_scale;varying highp float v_linesofar; +#pragma mapbox: define highp vec4 color +#pragma mapbox: define lowp float blur +#pragma mapbox: define lowp float opacity +#pragma mapbox: define mediump float gapwidth +#pragma mapbox: define lowp float offset +#pragma mapbox: define mediump float width +void main() { +#pragma mapbox: initialize highp vec4 color +#pragma mapbox: initialize lowp float blur +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize mediump float gapwidth +#pragma mapbox: initialize lowp float offset +#pragma mapbox: initialize mediump float width +float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;v_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*2.0;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude; +#ifdef TERRAIN3D +v_gamma_scale=1.0; +#else +float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective; +#endif +v_width2=vec2(outset,inset);}`),lineGradient:St(`uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale;varying highp vec2 v_uv; +#pragma mapbox: define lowp float blur +#pragma mapbox: define lowp float opacity +void main() { +#pragma mapbox: initialize lowp float blur +#pragma mapbox: initialize lowp float opacity +float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);vec4 color=texture2D(u_image,v_uv);gl_FragColor=color*(alpha*opacity); +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,` +#define scale 0.015873016 +attribute vec2 a_pos_normal;attribute vec4 a_data;attribute float a_uv_x;attribute float a_split_index;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_units_to_pixels;uniform float u_image_height;varying vec2 v_normal;varying vec2 v_width2;varying float v_gamma_scale;varying highp vec2 v_uv; +#pragma mapbox: define lowp float blur +#pragma mapbox: define lowp float opacity +#pragma mapbox: define mediump float gapwidth +#pragma mapbox: define lowp float offset +#pragma mapbox: define mediump float width +void main() { +#pragma mapbox: initialize lowp float blur +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize mediump float gapwidth +#pragma mapbox: initialize lowp float offset +#pragma mapbox: initialize mediump float width +float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;highp float texel_height=1.0/u_image_height;highp float half_texel_height=0.5*texel_height;v_uv=vec2(a_uv_x,a_split_index*texel_height-half_texel_height);vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude; +#ifdef TERRAIN3D +v_gamma_scale=1.0; +#else +float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective; +#endif +v_width2=vec2(outset,inset);}`),linePattern:St(`#ifdef GL_ES +precision highp float; +#endif +uniform lowp float u_device_pixel_ratio;uniform vec2 u_texsize;uniform float u_fade;uniform mediump vec3 u_scale;uniform sampler2D u_image;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width; +#pragma mapbox: define lowp vec4 pattern_from +#pragma mapbox: define lowp vec4 pattern_to +#pragma mapbox: define lowp float pixel_ratio_from +#pragma mapbox: define lowp float pixel_ratio_to +#pragma mapbox: define lowp float blur +#pragma mapbox: define lowp float opacity +void main() { +#pragma mapbox: initialize mediump vec4 pattern_from +#pragma mapbox: initialize mediump vec4 pattern_to +#pragma mapbox: initialize lowp float pixel_ratio_from +#pragma mapbox: initialize lowp float pixel_ratio_to +#pragma mapbox: initialize lowp float blur +#pragma mapbox: initialize lowp float opacity +vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;vec2 pattern_size_a=vec2(display_size_a.x*fromScale/tileZoomRatio,display_size_a.y);vec2 pattern_size_b=vec2(display_size_b.x*toScale/tileZoomRatio,display_size_b.y);float aspect_a=display_size_a.y/v_width;float aspect_b=display_size_b.y/v_width;float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float x_a=mod(v_linesofar/pattern_size_a.x*aspect_a,1.0);float x_b=mod(v_linesofar/pattern_size_b.x*aspect_b,1.0);float y=0.5*v_normal.y+0.5;vec2 texel_size=1.0/u_texsize;vec2 pos_a=mix(pattern_tl_a*texel_size-texel_size,pattern_br_a*texel_size+texel_size,vec2(x_a,y));vec2 pos_b=mix(pattern_tl_b*texel_size-texel_size,pattern_br_b*texel_size+texel_size,vec2(x_b,y));vec4 color=mix(texture2D(u_image,pos_a),texture2D(u_image,pos_b),u_fade);gl_FragColor=color*alpha*opacity; +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,` +#define scale 0.015873016 +#define LINE_DISTANCE_SCALE 2.0 +attribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform vec2 u_units_to_pixels;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width; +#pragma mapbox: define lowp float blur +#pragma mapbox: define lowp float opacity +#pragma mapbox: define lowp float offset +#pragma mapbox: define mediump float gapwidth +#pragma mapbox: define mediump float width +#pragma mapbox: define lowp float floorwidth +#pragma mapbox: define lowp vec4 pattern_from +#pragma mapbox: define lowp vec4 pattern_to +#pragma mapbox: define lowp float pixel_ratio_from +#pragma mapbox: define lowp float pixel_ratio_to +void main() { +#pragma mapbox: initialize lowp float blur +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize lowp float offset +#pragma mapbox: initialize mediump float gapwidth +#pragma mapbox: initialize mediump float width +#pragma mapbox: initialize lowp float floorwidth +#pragma mapbox: initialize mediump vec4 pattern_from +#pragma mapbox: initialize mediump vec4 pattern_to +#pragma mapbox: initialize lowp float pixel_ratio_from +#pragma mapbox: initialize lowp float pixel_ratio_to +float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude; +#ifdef TERRAIN3D +v_gamma_scale=1.0; +#else +float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective; +#endif +v_linesofar=a_linesofar;v_width2=vec2(outset,inset);v_width=floorwidth;}`),lineSDF:St(`uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;uniform float u_sdfgamma;uniform float u_mix;varying vec2 v_normal;varying vec2 v_width2;varying vec2 v_tex_a;varying vec2 v_tex_b;varying float v_gamma_scale; +#pragma mapbox: define highp vec4 color +#pragma mapbox: define lowp float blur +#pragma mapbox: define lowp float opacity +#pragma mapbox: define mediump float width +#pragma mapbox: define lowp float floorwidth +void main() { +#pragma mapbox: initialize highp vec4 color +#pragma mapbox: initialize lowp float blur +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize mediump float width +#pragma mapbox: initialize lowp float floorwidth +float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float sdfdist_a=texture2D(u_image,v_tex_a).a;float sdfdist_b=texture2D(u_image,v_tex_b).a;float sdfdist=mix(sdfdist_a,sdfdist_b,u_mix);alpha*=smoothstep(0.5-u_sdfgamma/floorwidth,0.5+u_sdfgamma/floorwidth,sdfdist);gl_FragColor=color*(alpha*opacity); +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,` +#define scale 0.015873016 +#define LINE_DISTANCE_SCALE 2.0 +attribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_patternscale_a;uniform float u_tex_y_a;uniform vec2 u_patternscale_b;uniform float u_tex_y_b;uniform vec2 u_units_to_pixels;varying vec2 v_normal;varying vec2 v_width2;varying vec2 v_tex_a;varying vec2 v_tex_b;varying float v_gamma_scale; +#pragma mapbox: define highp vec4 color +#pragma mapbox: define lowp float blur +#pragma mapbox: define lowp float opacity +#pragma mapbox: define mediump float gapwidth +#pragma mapbox: define lowp float offset +#pragma mapbox: define mediump float width +#pragma mapbox: define lowp float floorwidth +void main() { +#pragma mapbox: initialize highp vec4 color +#pragma mapbox: initialize lowp float blur +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize mediump float gapwidth +#pragma mapbox: initialize lowp float offset +#pragma mapbox: initialize mediump float width +#pragma mapbox: initialize lowp float floorwidth +float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude; +#ifdef TERRAIN3D +v_gamma_scale=1.0; +#else +float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective; +#endif +v_tex_a=vec2(a_linesofar*u_patternscale_a.x/floorwidth,normal.y*u_patternscale_a.y+u_tex_y_a);v_tex_b=vec2(a_linesofar*u_patternscale_b.x/floorwidth,normal.y*u_patternscale_b.y+u_tex_y_b);v_width2=vec2(outset,inset);}`),raster:St(`uniform float u_fade_t;uniform float u_opacity;uniform sampler2D u_image0;uniform sampler2D u_image1;varying vec2 v_pos0;varying vec2 v_pos1;uniform float u_brightness_low;uniform float u_brightness_high;uniform float u_saturation_factor;uniform float u_contrast_factor;uniform vec3 u_spin_weights;void main() {vec4 color0=texture2D(u_image0,v_pos0);vec4 color1=texture2D(u_image1,v_pos1);if (color0.a > 0.0) {color0.rgb=color0.rgb/color0.a;}if (color1.a > 0.0) {color1.rgb=color1.rgb/color1.a;}vec4 color=mix(color0,color1,u_fade_t);color.a*=u_opacity;vec3 rgb=color.rgb;rgb=vec3(dot(rgb,u_spin_weights.xyz),dot(rgb,u_spin_weights.zxy),dot(rgb,u_spin_weights.yzx));float average=(color.r+color.g+color.b)/3.0;rgb+=(average-rgb)*u_saturation_factor;rgb=(rgb-0.5)*u_contrast_factor+0.5;vec3 u_high_vec=vec3(u_brightness_low,u_brightness_low,u_brightness_low);vec3 u_low_vec=vec3(u_brightness_high,u_brightness_high,u_brightness_high);gl_FragColor=vec4(mix(u_high_vec,u_low_vec,rgb)*color.a,color.a); +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,"uniform mat4 u_matrix;uniform vec2 u_tl_parent;uniform float u_scale_parent;uniform float u_buffer_scale;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos0;varying vec2 v_pos1;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos0=(((a_texture_pos/8192.0)-0.5)/u_buffer_scale )+0.5;v_pos1=(v_pos0*u_scale_parent)+u_tl_parent;}"),symbolIcon:St(`uniform sampler2D u_texture;varying vec2 v_tex;varying float v_fade_opacity; +#pragma mapbox: define lowp float opacity +void main() { +#pragma mapbox: initialize lowp float opacity +lowp float alpha=opacity*v_fade_opacity;gl_FragColor=texture2D(u_texture,v_tex)*alpha; +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,`attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec4 a_pixeloffset;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform highp float u_camera_to_center_distance;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform float u_fade_change;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform vec2 u_texsize;uniform bool u_is_along_line;uniform bool u_is_variable_anchor;uniform vec2 u_translation;uniform float u_pitched_scale;varying vec2 v_tex;varying float v_fade_opacity;vec4 projectTileWithElevation(vec2 posInTile,float elevation) {return u_matrix*vec4(posInTile,elevation,1.0);} +#pragma mapbox: define lowp float opacity +void main() { +#pragma mapbox: initialize lowp float opacity +vec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;vec2 a_minFontScale=a_pixeloffset.zw/256.0;float ele=get_elevation(a_pos);highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec2 translated_a_pos=a_pos+u_translation;vec4 projectedPoint=projectTileWithElevation(translated_a_pos,ele);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ? +camera_to_anchor_distance/u_camera_to_center_distance : +u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=projectTileWithElevation(translated_a_pos+vec2(1,0),ele);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos;if (u_is_along_line || u_is_variable_anchor) {projected_pos=vec4(a_projected_pos.xy,ele,1.0);} else if (u_pitch_with_map) {projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy+u_translation,ele,1.0);} else {projected_pos=u_label_plane_matrix*projectTileWithElevation(a_projected_pos.xy+u_translation,ele);}float z=float(u_pitch_with_map)*projected_pos.z/projected_pos.w;float projectionScaling=1.0;vec4 finalPos=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*max(a_minFontScale,fontScale)+a_pxoffset/16.0)*projectionScaling,z,1.0);if(u_pitch_with_map) {finalPos=projectTileWithElevation(finalPos.xy,finalPos.z);}gl_Position=finalPos;v_tex=a_tex/u_texsize;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float visibility=calculate_visibility(projectedPoint);v_fade_opacity=max(0.0,min(visibility,fade_opacity[0]+fade_change));}`),symbolSDF:St(`#define SDF_PX 8.0 +uniform bool u_is_halo;uniform sampler2D u_texture;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;uniform bool u_is_text;varying vec2 v_data0;varying vec3 v_data1; +#pragma mapbox: define highp vec4 fill_color +#pragma mapbox: define highp vec4 halo_color +#pragma mapbox: define lowp float opacity +#pragma mapbox: define lowp float halo_width +#pragma mapbox: define lowp float halo_blur +void main() { +#pragma mapbox: initialize highp vec4 fill_color +#pragma mapbox: initialize highp vec4 halo_color +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize lowp float halo_width +#pragma mapbox: initialize lowp float halo_blur +float EDGE_GAMMA=0.105/u_device_pixel_ratio;vec2 tex=v_data0.xy;float gamma_scale=v_data1.x;float size=v_data1.y;float fade_opacity=v_data1[2];float fontScale=u_is_text ? size/24.0 : size;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float inner_edge=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);inner_edge=inner_edge+gamma*gamma_scale;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(inner_edge-gamma_scaled,inner_edge+gamma_scaled,dist);if (u_is_halo) {lowp float halo_edge=(6.0-halo_width/fontScale)/SDF_PX;alpha=min(smoothstep(halo_edge-gamma_scaled,halo_edge+gamma_scaled,dist),1.0-alpha);}gl_FragColor=color*(alpha*opacity*fade_opacity); +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,`attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec4 a_pixeloffset;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform bool u_is_along_line;uniform bool u_is_variable_anchor;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;uniform vec2 u_translation;uniform float u_pitched_scale;varying vec2 v_data0;varying vec3 v_data1;vec4 projectTileWithElevation(vec2 posInTile,float elevation) {return u_matrix*vec4(posInTile,elevation,1.0);} +#pragma mapbox: define highp vec4 fill_color +#pragma mapbox: define highp vec4 halo_color +#pragma mapbox: define lowp float opacity +#pragma mapbox: define lowp float halo_width +#pragma mapbox: define lowp float halo_blur +void main() { +#pragma mapbox: initialize highp vec4 fill_color +#pragma mapbox: initialize highp vec4 halo_color +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize lowp float halo_width +#pragma mapbox: initialize lowp float halo_blur +vec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;float ele=get_elevation(a_pos);highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec2 translated_a_pos=a_pos+u_translation;vec4 projectedPoint=projectTileWithElevation(translated_a_pos,ele);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ? +camera_to_anchor_distance/u_camera_to_center_distance : +u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=projectTileWithElevation(translated_a_pos+vec2(1,0),ele);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos;if (u_is_along_line || u_is_variable_anchor) {projected_pos=vec4(a_projected_pos.xy,ele,1.0);} else if (u_pitch_with_map) {projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy+u_translation,ele,1.0);} else {projected_pos=u_label_plane_matrix*projectTileWithElevation(a_projected_pos.xy+u_translation,ele);}float z=float(u_pitch_with_map)*projected_pos.z/projected_pos.w;float projectionScaling=1.0;vec4 finalPos=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale+a_pxoffset)*projectionScaling,z,1.0);if(u_pitch_with_map) {finalPos=projectTileWithElevation(finalPos.xy,finalPos.z);}float gamma_scale=finalPos.w;gl_Position=finalPos;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float visibility=calculate_visibility(projectedPoint);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(visibility,fade_opacity[0]+fade_change));v_data0=a_tex/u_texsize;v_data1=vec3(gamma_scale,size,interpolated_fade_opacity);}`),symbolTextAndIcon:St(`#define SDF_PX 8.0 +#define SDF 1.0 +#define ICON 0.0 +uniform bool u_is_halo;uniform sampler2D u_texture;uniform sampler2D u_texture_icon;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;varying vec4 v_data0;varying vec4 v_data1; +#pragma mapbox: define highp vec4 fill_color +#pragma mapbox: define highp vec4 halo_color +#pragma mapbox: define lowp float opacity +#pragma mapbox: define lowp float halo_width +#pragma mapbox: define lowp float halo_blur +void main() { +#pragma mapbox: initialize highp vec4 fill_color +#pragma mapbox: initialize highp vec4 halo_color +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize lowp float halo_width +#pragma mapbox: initialize lowp float halo_blur +float fade_opacity=v_data1[2];if (v_data1.w==ICON) {vec2 tex_icon=v_data0.zw;lowp float alpha=opacity*fade_opacity;gl_FragColor=texture2D(u_texture_icon,tex_icon)*alpha; +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +return;}vec2 tex=v_data0.xy;float EDGE_GAMMA=0.105/u_device_pixel_ratio;float gamma_scale=v_data1.x;float size=v_data1.y;float fontScale=size/24.0;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);buff=(6.0-halo_width/fontScale)/SDF_PX;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);gl_FragColor=color*(alpha*opacity*fade_opacity); +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,`attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;uniform vec2 u_texsize_icon;uniform bool u_is_along_line;uniform bool u_is_variable_anchor;uniform vec2 u_translation;uniform float u_pitched_scale;varying vec4 v_data0;varying vec4 v_data1;vec4 projectTileWithElevation(vec2 posInTile,float elevation) {return u_matrix*vec4(posInTile,elevation,1.0);} +#pragma mapbox: define highp vec4 fill_color +#pragma mapbox: define highp vec4 halo_color +#pragma mapbox: define lowp float opacity +#pragma mapbox: define lowp float halo_width +#pragma mapbox: define lowp float halo_blur +void main() { +#pragma mapbox: initialize highp vec4 fill_color +#pragma mapbox: initialize highp vec4 halo_color +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize lowp float halo_width +#pragma mapbox: initialize lowp float halo_blur +vec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);float is_sdf=a_size[0]-2.0*a_size_min;float ele=get_elevation(a_pos);highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec2 translated_a_pos=a_pos+u_translation;vec4 projectedPoint=projectTileWithElevation(translated_a_pos,ele);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ? +camera_to_anchor_distance/u_camera_to_center_distance : +u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=size/24.0;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=projectTileWithElevation(translated_a_pos+vec2(1,0),ele);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos;if (u_is_along_line || u_is_variable_anchor) {projected_pos=vec4(a_projected_pos.xy,ele,1.0);} else if (u_pitch_with_map) {projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy+u_translation,ele,1.0);} else {projected_pos=u_label_plane_matrix*projectTileWithElevation(a_projected_pos.xy+u_translation,ele);}float z=float(u_pitch_with_map)*projected_pos.z/projected_pos.w;float projectionScaling=1.0;vec4 finalPos=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale)*projectionScaling,z,1.0);if(u_pitch_with_map) {finalPos=projectTileWithElevation(finalPos.xy,finalPos.z);}float gamma_scale=finalPos.w;gl_Position=finalPos;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float visibility=calculate_visibility(projectedPoint);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(visibility,fade_opacity[0]+fade_change));v_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec4(gamma_scale,size,interpolated_fade_opacity,is_sdf);}`),terrain:St("uniform sampler2D u_texture;uniform vec4 u_fog_color;uniform vec4 u_horizon_color;uniform float u_fog_ground_blend;uniform float u_fog_ground_blend_opacity;uniform float u_horizon_fog_blend;varying vec2 v_texture_pos;varying float v_fog_depth;const float gamma=2.2;vec4 gammaToLinear(vec4 color) {return pow(color,vec4(gamma));}vec4 linearToGamma(vec4 color) {return pow(color,vec4(1.0/gamma));}void main() {vec4 surface_color=texture2D(u_texture,v_texture_pos);if (v_fog_depth > u_fog_ground_blend) {vec4 surface_color_linear=gammaToLinear(surface_color);float blend_color=smoothstep(0.0,1.0,max((v_fog_depth-u_horizon_fog_blend)/(1.0-u_horizon_fog_blend),0.0));vec4 fog_horizon_color_linear=mix(gammaToLinear(u_fog_color),gammaToLinear(u_horizon_color),blend_color);float factor_fog=max(v_fog_depth-u_fog_ground_blend,0.0)/(1.0-u_fog_ground_blend);gl_FragColor=linearToGamma(mix(surface_color_linear,fog_horizon_color_linear,pow(factor_fog,2.0)*u_fog_ground_blend_opacity));} else {gl_FragColor=surface_color;}}","attribute vec3 a_pos3d;uniform mat4 u_matrix;uniform mat4 u_fog_matrix;uniform float u_ele_delta;varying vec2 v_texture_pos;varying float v_fog_depth;void main() {float ele=get_elevation(a_pos3d.xy);float ele_delta=a_pos3d.z==1.0 ? u_ele_delta : 0.0;v_texture_pos=a_pos3d.xy/8192.0;gl_Position=u_matrix*vec4(a_pos3d.xy,ele-ele_delta,1.0);vec4 pos=u_fog_matrix*vec4(a_pos3d.xy,ele,1.0);v_fog_depth=pos.z/pos.w*0.5+0.5;}"),terrainDepth:St("varying float v_depth;const highp vec4 bitSh=vec4(256.*256.*256.,256.*256.,256.,1.);const highp vec4 bitMsk=vec4(0.,vec3(1./256.0));highp vec4 pack(highp float value) {highp vec4 comp=fract(value*bitSh);comp-=comp.xxyz*bitMsk;return comp;}void main() {gl_FragColor=pack(v_depth);}","attribute vec3 a_pos3d;uniform mat4 u_matrix;uniform float u_ele_delta;varying float v_depth;void main() {float ele=get_elevation(a_pos3d.xy);float ele_delta=a_pos3d.z==1.0 ? u_ele_delta : 0.0;gl_Position=u_matrix*vec4(a_pos3d.xy,ele-ele_delta,1.0);v_depth=gl_Position.z/gl_Position.w;}"),terrainCoords:St("precision mediump float;uniform sampler2D u_texture;uniform float u_terrain_coords_id;varying vec2 v_texture_pos;void main() {vec4 rgba=texture2D(u_texture,v_texture_pos);gl_FragColor=vec4(rgba.r,rgba.g,rgba.b,u_terrain_coords_id);}","attribute vec3 a_pos3d;uniform mat4 u_matrix;uniform float u_ele_delta;varying vec2 v_texture_pos;void main() {float ele=get_elevation(a_pos3d.xy);float ele_delta=a_pos3d.z==1.0 ? u_ele_delta : 0.0;v_texture_pos=a_pos3d.xy/8192.0;gl_Position=u_matrix*vec4(a_pos3d.xy,ele-ele_delta,1.0);}"),sky:St("uniform vec4 u_sky_color;uniform vec4 u_horizon_color;uniform float u_horizon;uniform float u_sky_horizon_blend;void main() {float y=gl_FragCoord.y;if (y > u_horizon) {float blend=y-u_horizon;if (blend < u_sky_horizon_blend) {gl_FragColor=mix(u_sky_color,u_horizon_color,pow(1.0-blend/u_sky_horizon_blend,2.0));} else {gl_FragColor=u_sky_color;}}}","attribute vec2 a_pos;void main() {gl_Position=vec4(a_pos,1.0,1.0);}")};function St(ue,w){let B=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,Q=w.match(/attribute ([\w]+) ([\w]+)/g),ee=ue.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),le=w.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),qe=le?le.concat(ee):ee,Xe={};return{fragmentSource:ue=ue.replace(B,(ot,Tt,Kt,Jt,xr)=>(Xe[xr]=!0,Tt==="define"?` +#ifndef HAS_UNIFORM_u_${xr} +varying ${Kt} ${Jt} ${xr}; +#else +uniform ${Kt} ${Jt} u_${xr}; +#endif +`:` +#ifdef HAS_UNIFORM_u_${xr} + ${Kt} ${Jt} ${xr} = u_${xr}; +#endif +`)),vertexSource:w=w.replace(B,(ot,Tt,Kt,Jt,xr)=>{let Pr=Jt==="float"?"vec2":"vec4",ve=xr.match(/color/)?"color":Pr;return Xe[xr]?Tt==="define"?` +#ifndef HAS_UNIFORM_u_${xr} +uniform lowp float u_${xr}_t; +attribute ${Kt} ${Pr} a_${xr}; +varying ${Kt} ${Jt} ${xr}; +#else +uniform ${Kt} ${Jt} u_${xr}; +#endif +`:ve==="vec4"?` +#ifndef HAS_UNIFORM_u_${xr} + ${xr} = a_${xr}; +#else + ${Kt} ${Jt} ${xr} = u_${xr}; +#endif +`:` +#ifndef HAS_UNIFORM_u_${xr} + ${xr} = unpack_mix_${ve}(a_${xr}, u_${xr}_t); +#else + ${Kt} ${Jt} ${xr} = u_${xr}; +#endif +`:Tt==="define"?` +#ifndef HAS_UNIFORM_u_${xr} +uniform lowp float u_${xr}_t; +attribute ${Kt} ${Pr} a_${xr}; +#else +uniform ${Kt} ${Jt} u_${xr}; +#endif +`:ve==="vec4"?` +#ifndef HAS_UNIFORM_u_${xr} + ${Kt} ${Jt} ${xr} = a_${xr}; +#else + ${Kt} ${Jt} ${xr} = u_${xr}; +#endif +`:` +#ifndef HAS_UNIFORM_u_${xr} + ${Kt} ${Jt} ${xr} = unpack_mix_${ve}(a_${xr}, u_${xr}_t); +#else + ${Kt} ${Jt} ${xr} = u_${xr}; +#endif +`}),staticAttributes:Q,staticUniforms:qe}}class Cr{constructor(){this.boundProgram=null,this.boundLayoutVertexBuffer=null,this.boundPaintVertexBuffers=[],this.boundIndexBuffer=null,this.boundVertexOffset=null,this.boundDynamicVertexBuffer=null,this.vao=null}bind(w,B,Q,ee,le,qe,Xe,ot,Tt){this.context=w;let Kt=this.boundPaintVertexBuffers.length!==ee.length;for(let Jt=0;!Kt&&Jt({u_matrix:ue,u_texture:0,u_ele_delta:w,u_fog_matrix:B,u_fog_color:Q?Q.properties.get("fog-color"):a.aM.white,u_fog_ground_blend:Q?Q.properties.get("fog-ground-blend"):1,u_fog_ground_blend_opacity:Q?Q.calculateFogBlendOpacity(ee):0,u_horizon_color:Q?Q.properties.get("horizon-color"):a.aM.white,u_horizon_fog_blend:Q?Q.properties.get("horizon-fog-blend"):1});function pi(ue){let w=[];for(let B=0;B({u_depth:new a.aH(Ht,rr.u_depth),u_terrain:new a.aH(Ht,rr.u_terrain),u_terrain_dim:new a.aI(Ht,rr.u_terrain_dim),u_terrain_matrix:new a.aJ(Ht,rr.u_terrain_matrix),u_terrain_unpack:new a.aK(Ht,rr.u_terrain_unpack),u_terrain_exaggeration:new a.aI(Ht,rr.u_terrain_exaggeration)}))(w,Dt),this.binderUniforms=Q?Q.getUniforms(w,Dt):[]}draw(w,B,Q,ee,le,qe,Xe,ot,Tt,Kt,Jt,xr,Pr,ve,be,Re,Be,tt){let We=w.gl;if(this.failedToCreate)return;if(w.program.set(this.program),w.setDepthMode(Q),w.setStencilMode(ee),w.setColorMode(le),w.setCullFace(qe),ot){w.activeTexture.set(We.TEXTURE2),We.bindTexture(We.TEXTURE_2D,ot.depthTexture),w.activeTexture.set(We.TEXTURE3),We.bindTexture(We.TEXTURE_2D,ot.texture);for(let Dt in this.terrainUniforms)this.terrainUniforms[Dt].set(ot[Dt])}for(let Dt in this.fixedUniforms)this.fixedUniforms[Dt].set(Xe[Dt]);be&&be.setUniforms(w,this.binderUniforms,Pr,{zoom:ve});let it=0;switch(B){case We.LINES:it=2;break;case We.TRIANGLES:it=3;break;case We.LINE_STRIP:it=1}for(let Dt of xr.get()){let Ht=Dt.vaos||(Dt.vaos={});(Ht[Tt]||(Ht[Tt]=new Cr)).bind(w,this,Kt,be?be.getPaintVertexBuffers():[],Jt,Dt.vertexOffset,Re,Be,tt),We.drawElements(B,Dt.primitiveLength*it,We.UNSIGNED_SHORT,Dt.primitiveOffset*it*2)}}}function Sn(ue,w,B){let Q=1/Pn(B,1,w.transform.tileZoom),ee=Math.pow(2,B.tileID.overscaledZ),le=B.tileSize*Math.pow(2,w.transform.tileZoom)/ee,qe=le*(B.tileID.canonical.x+B.tileID.wrap*ee),Xe=le*B.tileID.canonical.y;return{u_image:0,u_texsize:B.imageAtlasTexture.size,u_scale:[Q,ue.fromScale,ue.toScale],u_fade:ue.t,u_pixel_coord_upper:[qe>>16,Xe>>16],u_pixel_coord_lower:[65535&qe,65535&Xe]}}let En=(ue,w,B,Q)=>{let ee=w.style.light,le=ee.properties.get("position"),qe=[le.x,le.y,le.z],Xe=function(){var Tt=new a.A(9);return a.A!=Float32Array&&(Tt[1]=0,Tt[2]=0,Tt[3]=0,Tt[5]=0,Tt[6]=0,Tt[7]=0),Tt[0]=1,Tt[4]=1,Tt[8]=1,Tt}();ee.properties.get("anchor")==="viewport"&&function(Tt,Kt){var Jt=Math.sin(Kt),xr=Math.cos(Kt);Tt[0]=xr,Tt[1]=Jt,Tt[2]=0,Tt[3]=-Jt,Tt[4]=xr,Tt[5]=0,Tt[6]=0,Tt[7]=0,Tt[8]=1}(Xe,-w.transform.angle),function(Tt,Kt,Jt){var xr=Kt[0],Pr=Kt[1],ve=Kt[2];Tt[0]=xr*Jt[0]+Pr*Jt[3]+ve*Jt[6],Tt[1]=xr*Jt[1]+Pr*Jt[4]+ve*Jt[7],Tt[2]=xr*Jt[2]+Pr*Jt[5]+ve*Jt[8]}(qe,qe,Xe);let ot=ee.properties.get("color");return{u_matrix:ue,u_lightpos:qe,u_lightintensity:ee.properties.get("intensity"),u_lightcolor:[ot.r,ot.g,ot.b],u_vertical_gradient:+B,u_opacity:Q}},ki=(ue,w,B,Q,ee,le,qe)=>a.e(En(ue,w,B,Q),Sn(le,w,qe),{u_height_factor:-Math.pow(2,ee.overscaledZ)/qe.tileSize/8}),_n=ue=>({u_matrix:ue}),ya=(ue,w,B,Q)=>a.e(_n(ue),Sn(B,w,Q)),Jn=(ue,w)=>({u_matrix:ue,u_world:w}),Ma=(ue,w,B,Q,ee)=>a.e(ya(ue,w,B,Q),{u_world:ee}),_o=(ue,w,B,Q)=>{let ee=ue.transform,le,qe;if(Q.paint.get("circle-pitch-alignment")==="map"){let Xe=Pn(B,1,ee.zoom);le=!0,qe=[Xe,Xe]}else le=!1,qe=ee.pixelsToGLUnits;return{u_camera_to_center_distance:ee.cameraToCenterDistance,u_scale_with_map:+(Q.paint.get("circle-pitch-scale")==="map"),u_matrix:ue.translatePosMatrix(w.posMatrix,B,Q.paint.get("circle-translate"),Q.paint.get("circle-translate-anchor")),u_pitch_with_map:+le,u_device_pixel_ratio:ue.pixelRatio,u_extrude_scale:qe}},No=(ue,w,B)=>({u_matrix:ue,u_inv_matrix:w,u_camera_to_center_distance:B.cameraToCenterDistance,u_viewport_size:[B.width,B.height]}),po=(ue,w,B=1)=>({u_matrix:ue,u_color:w,u_overlay:0,u_overlay_scale:B}),Lo=ue=>({u_matrix:ue}),Co=(ue,w,B,Q)=>({u_matrix:ue,u_extrude_scale:Pn(w,1,B),u_intensity:Q}),Fs=(ue,w,B,Q)=>{let ee=a.H();a.aP(ee,0,ue.width,ue.height,0,0,1);let le=ue.context.gl;return{u_matrix:ee,u_world:[le.drawingBufferWidth,le.drawingBufferHeight],u_image:B,u_color_ramp:Q,u_opacity:w.paint.get("heatmap-opacity")}};function zs(ue,w){let B=Math.pow(2,w.canonical.z),Q=w.canonical.y;return[new a.Z(0,Q/B).toLngLat().lat,new a.Z(0,(Q+1)/B).toLngLat().lat]}let ul=(ue,w,B,Q)=>{let ee=ue.transform;return{u_matrix:Ss(ue,w,B,Q),u_ratio:1/Pn(w,1,ee.zoom),u_device_pixel_ratio:ue.pixelRatio,u_units_to_pixels:[1/ee.pixelsToGLUnits[0],1/ee.pixelsToGLUnits[1]]}},cl=(ue,w,B,Q,ee)=>a.e(ul(ue,w,B,ee),{u_image:0,u_image_height:Q}),Fl=(ue,w,B,Q,ee)=>{let le=ue.transform,qe=nl(w,le);return{u_matrix:Ss(ue,w,B,ee),u_texsize:w.imageAtlasTexture.size,u_ratio:1/Pn(w,1,le.zoom),u_device_pixel_ratio:ue.pixelRatio,u_image:0,u_scale:[qe,Q.fromScale,Q.toScale],u_fade:Q.t,u_units_to_pixels:[1/le.pixelsToGLUnits[0],1/le.pixelsToGLUnits[1]]}},cs=(ue,w,B,Q,ee,le)=>{let qe=ue.lineAtlas,Xe=nl(w,ue.transform),ot=B.layout.get("line-cap")==="round",Tt=qe.getDash(Q.from,ot),Kt=qe.getDash(Q.to,ot),Jt=Tt.width*ee.fromScale,xr=Kt.width*ee.toScale;return a.e(ul(ue,w,B,le),{u_patternscale_a:[Xe/Jt,-Tt.height/2],u_patternscale_b:[Xe/xr,-Kt.height/2],u_sdfgamma:qe.width/(256*Math.min(Jt,xr)*ue.pixelRatio)/2,u_image:0,u_tex_y_a:Tt.y,u_tex_y_b:Kt.y,u_mix:ee.t})};function nl(ue,w){return 1/Pn(ue,1,w.tileZoom)}function Ss(ue,w,B,Q){return ue.translatePosMatrix(Q?Q.posMatrix:w.tileID.posMatrix,w,B.paint.get("line-translate"),B.paint.get("line-translate-anchor"))}let fl=(ue,w,B,Q,ee)=>{return{u_matrix:ue,u_tl_parent:w,u_scale_parent:B,u_buffer_scale:1,u_fade_t:Q.mix,u_opacity:Q.opacity*ee.paint.get("raster-opacity"),u_image0:0,u_image1:1,u_brightness_low:ee.paint.get("raster-brightness-min"),u_brightness_high:ee.paint.get("raster-brightness-max"),u_saturation_factor:(qe=ee.paint.get("raster-saturation"),qe>0?1-1/(1.001-qe):-qe),u_contrast_factor:(le=ee.paint.get("raster-contrast"),le>0?1/(1-le):1+le),u_spin_weights:Js(ee.paint.get("raster-hue-rotate"))};var le,qe};function Js(ue){ue*=Math.PI/180;let w=Math.sin(ue),B=Math.cos(ue);return[(2*B+1)/3,(-Math.sqrt(3)*w-B+1)/3,(Math.sqrt(3)*w-B+1)/3]}let Os=(ue,w,B,Q,ee,le,qe,Xe,ot,Tt,Kt,Jt,xr,Pr)=>{let ve=qe.transform;return{u_is_size_zoom_constant:+(ue==="constant"||ue==="source"),u_is_size_feature_constant:+(ue==="constant"||ue==="camera"),u_size_t:w?w.uSizeT:0,u_size:w?w.uSize:0,u_camera_to_center_distance:ve.cameraToCenterDistance,u_pitch:ve.pitch/360*2*Math.PI,u_rotate_symbol:+B,u_aspect_ratio:ve.width/ve.height,u_fade_change:qe.options.fadeDuration?qe.symbolFadeChange:1,u_matrix:Xe,u_label_plane_matrix:ot,u_coord_matrix:Tt,u_is_text:+Jt,u_pitch_with_map:+Q,u_is_along_line:ee,u_is_variable_anchor:le,u_texsize:xr,u_texture:0,u_translation:Kt,u_pitched_scale:Pr}},Io=(ue,w,B,Q,ee,le,qe,Xe,ot,Tt,Kt,Jt,xr,Pr,ve)=>{let be=qe.transform;return a.e(Os(ue,w,B,Q,ee,le,qe,Xe,ot,Tt,Kt,Jt,xr,ve),{u_gamma_scale:Q?Math.cos(be._pitch)*be.cameraToCenterDistance:1,u_device_pixel_ratio:qe.pixelRatio,u_is_halo:+Pr})},us=(ue,w,B,Q,ee,le,qe,Xe,ot,Tt,Kt,Jt,xr,Pr)=>a.e(Io(ue,w,B,Q,ee,le,qe,Xe,ot,Tt,Kt,!0,Jt,!0,Pr),{u_texsize_icon:xr,u_texture_icon:1}),Zl=(ue,w,B)=>({u_matrix:ue,u_opacity:w,u_color:B}),Su=(ue,w,B,Q,ee,le)=>a.e(function(qe,Xe,ot,Tt){let Kt=ot.imageManager.getPattern(qe.from.toString()),Jt=ot.imageManager.getPattern(qe.to.toString()),{width:xr,height:Pr}=ot.imageManager.getPixelSize(),ve=Math.pow(2,Tt.tileID.overscaledZ),be=Tt.tileSize*Math.pow(2,ot.transform.tileZoom)/ve,Re=be*(Tt.tileID.canonical.x+Tt.tileID.wrap*ve),Be=be*Tt.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:Kt.tl,u_pattern_br_a:Kt.br,u_pattern_tl_b:Jt.tl,u_pattern_br_b:Jt.br,u_texsize:[xr,Pr],u_mix:Xe.t,u_pattern_size_a:Kt.displaySize,u_pattern_size_b:Jt.displaySize,u_scale_a:Xe.fromScale,u_scale_b:Xe.toScale,u_tile_units_to_pixels:1/Pn(Tt,1,ot.transform.tileZoom),u_pixel_coord_upper:[Re>>16,Be>>16],u_pixel_coord_lower:[65535&Re,65535&Be]}}(Q,le,B,ee),{u_matrix:ue,u_opacity:w}),nc={fillExtrusion:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_lightpos:new a.aN(ue,w.u_lightpos),u_lightintensity:new a.aI(ue,w.u_lightintensity),u_lightcolor:new a.aN(ue,w.u_lightcolor),u_vertical_gradient:new a.aI(ue,w.u_vertical_gradient),u_opacity:new a.aI(ue,w.u_opacity)}),fillExtrusionPattern:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_lightpos:new a.aN(ue,w.u_lightpos),u_lightintensity:new a.aI(ue,w.u_lightintensity),u_lightcolor:new a.aN(ue,w.u_lightcolor),u_vertical_gradient:new a.aI(ue,w.u_vertical_gradient),u_height_factor:new a.aI(ue,w.u_height_factor),u_image:new a.aH(ue,w.u_image),u_texsize:new a.aO(ue,w.u_texsize),u_pixel_coord_upper:new a.aO(ue,w.u_pixel_coord_upper),u_pixel_coord_lower:new a.aO(ue,w.u_pixel_coord_lower),u_scale:new a.aN(ue,w.u_scale),u_fade:new a.aI(ue,w.u_fade),u_opacity:new a.aI(ue,w.u_opacity)}),fill:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix)}),fillPattern:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_image:new a.aH(ue,w.u_image),u_texsize:new a.aO(ue,w.u_texsize),u_pixel_coord_upper:new a.aO(ue,w.u_pixel_coord_upper),u_pixel_coord_lower:new a.aO(ue,w.u_pixel_coord_lower),u_scale:new a.aN(ue,w.u_scale),u_fade:new a.aI(ue,w.u_fade)}),fillOutline:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_world:new a.aO(ue,w.u_world)}),fillOutlinePattern:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_world:new a.aO(ue,w.u_world),u_image:new a.aH(ue,w.u_image),u_texsize:new a.aO(ue,w.u_texsize),u_pixel_coord_upper:new a.aO(ue,w.u_pixel_coord_upper),u_pixel_coord_lower:new a.aO(ue,w.u_pixel_coord_lower),u_scale:new a.aN(ue,w.u_scale),u_fade:new a.aI(ue,w.u_fade)}),circle:(ue,w)=>({u_camera_to_center_distance:new a.aI(ue,w.u_camera_to_center_distance),u_scale_with_map:new a.aH(ue,w.u_scale_with_map),u_pitch_with_map:new a.aH(ue,w.u_pitch_with_map),u_extrude_scale:new a.aO(ue,w.u_extrude_scale),u_device_pixel_ratio:new a.aI(ue,w.u_device_pixel_ratio),u_matrix:new a.aJ(ue,w.u_matrix)}),collisionBox:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_pixel_extrude_scale:new a.aO(ue,w.u_pixel_extrude_scale)}),collisionCircle:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_inv_matrix:new a.aJ(ue,w.u_inv_matrix),u_camera_to_center_distance:new a.aI(ue,w.u_camera_to_center_distance),u_viewport_size:new a.aO(ue,w.u_viewport_size)}),debug:(ue,w)=>({u_color:new a.aL(ue,w.u_color),u_matrix:new a.aJ(ue,w.u_matrix),u_overlay:new a.aH(ue,w.u_overlay),u_overlay_scale:new a.aI(ue,w.u_overlay_scale)}),clippingMask:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix)}),heatmap:(ue,w)=>({u_extrude_scale:new a.aI(ue,w.u_extrude_scale),u_intensity:new a.aI(ue,w.u_intensity),u_matrix:new a.aJ(ue,w.u_matrix)}),heatmapTexture:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_world:new a.aO(ue,w.u_world),u_image:new a.aH(ue,w.u_image),u_color_ramp:new a.aH(ue,w.u_color_ramp),u_opacity:new a.aI(ue,w.u_opacity)}),hillshade:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_image:new a.aH(ue,w.u_image),u_latrange:new a.aO(ue,w.u_latrange),u_light:new a.aO(ue,w.u_light),u_shadow:new a.aL(ue,w.u_shadow),u_highlight:new a.aL(ue,w.u_highlight),u_accent:new a.aL(ue,w.u_accent)}),hillshadePrepare:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_image:new a.aH(ue,w.u_image),u_dimension:new a.aO(ue,w.u_dimension),u_zoom:new a.aI(ue,w.u_zoom),u_unpack:new a.aK(ue,w.u_unpack)}),line:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_ratio:new a.aI(ue,w.u_ratio),u_device_pixel_ratio:new a.aI(ue,w.u_device_pixel_ratio),u_units_to_pixels:new a.aO(ue,w.u_units_to_pixels)}),lineGradient:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_ratio:new a.aI(ue,w.u_ratio),u_device_pixel_ratio:new a.aI(ue,w.u_device_pixel_ratio),u_units_to_pixels:new a.aO(ue,w.u_units_to_pixels),u_image:new a.aH(ue,w.u_image),u_image_height:new a.aI(ue,w.u_image_height)}),linePattern:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_texsize:new a.aO(ue,w.u_texsize),u_ratio:new a.aI(ue,w.u_ratio),u_device_pixel_ratio:new a.aI(ue,w.u_device_pixel_ratio),u_image:new a.aH(ue,w.u_image),u_units_to_pixels:new a.aO(ue,w.u_units_to_pixels),u_scale:new a.aN(ue,w.u_scale),u_fade:new a.aI(ue,w.u_fade)}),lineSDF:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_ratio:new a.aI(ue,w.u_ratio),u_device_pixel_ratio:new a.aI(ue,w.u_device_pixel_ratio),u_units_to_pixels:new a.aO(ue,w.u_units_to_pixels),u_patternscale_a:new a.aO(ue,w.u_patternscale_a),u_patternscale_b:new a.aO(ue,w.u_patternscale_b),u_sdfgamma:new a.aI(ue,w.u_sdfgamma),u_image:new a.aH(ue,w.u_image),u_tex_y_a:new a.aI(ue,w.u_tex_y_a),u_tex_y_b:new a.aI(ue,w.u_tex_y_b),u_mix:new a.aI(ue,w.u_mix)}),raster:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_tl_parent:new a.aO(ue,w.u_tl_parent),u_scale_parent:new a.aI(ue,w.u_scale_parent),u_buffer_scale:new a.aI(ue,w.u_buffer_scale),u_fade_t:new a.aI(ue,w.u_fade_t),u_opacity:new a.aI(ue,w.u_opacity),u_image0:new a.aH(ue,w.u_image0),u_image1:new a.aH(ue,w.u_image1),u_brightness_low:new a.aI(ue,w.u_brightness_low),u_brightness_high:new a.aI(ue,w.u_brightness_high),u_saturation_factor:new a.aI(ue,w.u_saturation_factor),u_contrast_factor:new a.aI(ue,w.u_contrast_factor),u_spin_weights:new a.aN(ue,w.u_spin_weights)}),symbolIcon:(ue,w)=>({u_is_size_zoom_constant:new a.aH(ue,w.u_is_size_zoom_constant),u_is_size_feature_constant:new a.aH(ue,w.u_is_size_feature_constant),u_size_t:new a.aI(ue,w.u_size_t),u_size:new a.aI(ue,w.u_size),u_camera_to_center_distance:new a.aI(ue,w.u_camera_to_center_distance),u_pitch:new a.aI(ue,w.u_pitch),u_rotate_symbol:new a.aH(ue,w.u_rotate_symbol),u_aspect_ratio:new a.aI(ue,w.u_aspect_ratio),u_fade_change:new a.aI(ue,w.u_fade_change),u_matrix:new a.aJ(ue,w.u_matrix),u_label_plane_matrix:new a.aJ(ue,w.u_label_plane_matrix),u_coord_matrix:new a.aJ(ue,w.u_coord_matrix),u_is_text:new a.aH(ue,w.u_is_text),u_pitch_with_map:new a.aH(ue,w.u_pitch_with_map),u_is_along_line:new a.aH(ue,w.u_is_along_line),u_is_variable_anchor:new a.aH(ue,w.u_is_variable_anchor),u_texsize:new a.aO(ue,w.u_texsize),u_texture:new a.aH(ue,w.u_texture),u_translation:new a.aO(ue,w.u_translation),u_pitched_scale:new a.aI(ue,w.u_pitched_scale)}),symbolSDF:(ue,w)=>({u_is_size_zoom_constant:new a.aH(ue,w.u_is_size_zoom_constant),u_is_size_feature_constant:new a.aH(ue,w.u_is_size_feature_constant),u_size_t:new a.aI(ue,w.u_size_t),u_size:new a.aI(ue,w.u_size),u_camera_to_center_distance:new a.aI(ue,w.u_camera_to_center_distance),u_pitch:new a.aI(ue,w.u_pitch),u_rotate_symbol:new a.aH(ue,w.u_rotate_symbol),u_aspect_ratio:new a.aI(ue,w.u_aspect_ratio),u_fade_change:new a.aI(ue,w.u_fade_change),u_matrix:new a.aJ(ue,w.u_matrix),u_label_plane_matrix:new a.aJ(ue,w.u_label_plane_matrix),u_coord_matrix:new a.aJ(ue,w.u_coord_matrix),u_is_text:new a.aH(ue,w.u_is_text),u_pitch_with_map:new a.aH(ue,w.u_pitch_with_map),u_is_along_line:new a.aH(ue,w.u_is_along_line),u_is_variable_anchor:new a.aH(ue,w.u_is_variable_anchor),u_texsize:new a.aO(ue,w.u_texsize),u_texture:new a.aH(ue,w.u_texture),u_gamma_scale:new a.aI(ue,w.u_gamma_scale),u_device_pixel_ratio:new a.aI(ue,w.u_device_pixel_ratio),u_is_halo:new a.aH(ue,w.u_is_halo),u_translation:new a.aO(ue,w.u_translation),u_pitched_scale:new a.aI(ue,w.u_pitched_scale)}),symbolTextAndIcon:(ue,w)=>({u_is_size_zoom_constant:new a.aH(ue,w.u_is_size_zoom_constant),u_is_size_feature_constant:new a.aH(ue,w.u_is_size_feature_constant),u_size_t:new a.aI(ue,w.u_size_t),u_size:new a.aI(ue,w.u_size),u_camera_to_center_distance:new a.aI(ue,w.u_camera_to_center_distance),u_pitch:new a.aI(ue,w.u_pitch),u_rotate_symbol:new a.aH(ue,w.u_rotate_symbol),u_aspect_ratio:new a.aI(ue,w.u_aspect_ratio),u_fade_change:new a.aI(ue,w.u_fade_change),u_matrix:new a.aJ(ue,w.u_matrix),u_label_plane_matrix:new a.aJ(ue,w.u_label_plane_matrix),u_coord_matrix:new a.aJ(ue,w.u_coord_matrix),u_is_text:new a.aH(ue,w.u_is_text),u_pitch_with_map:new a.aH(ue,w.u_pitch_with_map),u_is_along_line:new a.aH(ue,w.u_is_along_line),u_is_variable_anchor:new a.aH(ue,w.u_is_variable_anchor),u_texsize:new a.aO(ue,w.u_texsize),u_texsize_icon:new a.aO(ue,w.u_texsize_icon),u_texture:new a.aH(ue,w.u_texture),u_texture_icon:new a.aH(ue,w.u_texture_icon),u_gamma_scale:new a.aI(ue,w.u_gamma_scale),u_device_pixel_ratio:new a.aI(ue,w.u_device_pixel_ratio),u_is_halo:new a.aH(ue,w.u_is_halo),u_translation:new a.aO(ue,w.u_translation),u_pitched_scale:new a.aI(ue,w.u_pitched_scale)}),background:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_opacity:new a.aI(ue,w.u_opacity),u_color:new a.aL(ue,w.u_color)}),backgroundPattern:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_opacity:new a.aI(ue,w.u_opacity),u_image:new a.aH(ue,w.u_image),u_pattern_tl_a:new a.aO(ue,w.u_pattern_tl_a),u_pattern_br_a:new a.aO(ue,w.u_pattern_br_a),u_pattern_tl_b:new a.aO(ue,w.u_pattern_tl_b),u_pattern_br_b:new a.aO(ue,w.u_pattern_br_b),u_texsize:new a.aO(ue,w.u_texsize),u_mix:new a.aI(ue,w.u_mix),u_pattern_size_a:new a.aO(ue,w.u_pattern_size_a),u_pattern_size_b:new a.aO(ue,w.u_pattern_size_b),u_scale_a:new a.aI(ue,w.u_scale_a),u_scale_b:new a.aI(ue,w.u_scale_b),u_pixel_coord_upper:new a.aO(ue,w.u_pixel_coord_upper),u_pixel_coord_lower:new a.aO(ue,w.u_pixel_coord_lower),u_tile_units_to_pixels:new a.aI(ue,w.u_tile_units_to_pixels)}),terrain:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_texture:new a.aH(ue,w.u_texture),u_ele_delta:new a.aI(ue,w.u_ele_delta),u_fog_matrix:new a.aJ(ue,w.u_fog_matrix),u_fog_color:new a.aL(ue,w.u_fog_color),u_fog_ground_blend:new a.aI(ue,w.u_fog_ground_blend),u_fog_ground_blend_opacity:new a.aI(ue,w.u_fog_ground_blend_opacity),u_horizon_color:new a.aL(ue,w.u_horizon_color),u_horizon_fog_blend:new a.aI(ue,w.u_horizon_fog_blend)}),terrainDepth:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_ele_delta:new a.aI(ue,w.u_ele_delta)}),terrainCoords:(ue,w)=>({u_matrix:new a.aJ(ue,w.u_matrix),u_texture:new a.aH(ue,w.u_texture),u_terrain_coords_id:new a.aI(ue,w.u_terrain_coords_id),u_ele_delta:new a.aI(ue,w.u_ele_delta)}),sky:(ue,w)=>({u_sky_color:new a.aL(ue,w.u_sky_color),u_horizon_color:new a.aL(ue,w.u_horizon_color),u_horizon:new a.aI(ue,w.u_horizon),u_sky_horizon_blend:new a.aI(ue,w.u_sky_horizon_blend)})};class ws{constructor(w,B,Q){this.context=w;let ee=w.gl;this.buffer=ee.createBuffer(),this.dynamicDraw=!!Q,this.context.unbindVAO(),w.bindElementBuffer.set(this.buffer),ee.bufferData(ee.ELEMENT_ARRAY_BUFFER,B.arrayBuffer,this.dynamicDraw?ee.DYNAMIC_DRAW:ee.STATIC_DRAW),this.dynamicDraw||delete B.arrayBuffer}bind(){this.context.bindElementBuffer.set(this.buffer)}updateData(w){let B=this.context.gl;if(!this.dynamicDraw)throw new Error("Attempted to update data while not in dynamic mode.");this.context.unbindVAO(),this.bind(),B.bufferSubData(B.ELEMENT_ARRAY_BUFFER,0,w.arrayBuffer)}destroy(){this.buffer&&(this.context.gl.deleteBuffer(this.buffer),delete this.buffer)}}let Fn={Int8:"BYTE",Uint8:"UNSIGNED_BYTE",Int16:"SHORT",Uint16:"UNSIGNED_SHORT",Int32:"INT",Uint32:"UNSIGNED_INT",Float32:"FLOAT"};class _a{constructor(w,B,Q,ee){this.length=B.length,this.attributes=Q,this.itemSize=B.bytesPerElement,this.dynamicDraw=ee,this.context=w;let le=w.gl;this.buffer=le.createBuffer(),w.bindVertexBuffer.set(this.buffer),le.bufferData(le.ARRAY_BUFFER,B.arrayBuffer,this.dynamicDraw?le.DYNAMIC_DRAW:le.STATIC_DRAW),this.dynamicDraw||delete B.arrayBuffer}bind(){this.context.bindVertexBuffer.set(this.buffer)}updateData(w){if(w.length!==this.length)throw new Error(`Length of new data is ${w.length}, which doesn't match current length of ${this.length}`);let B=this.context.gl;this.bind(),B.bufferSubData(B.ARRAY_BUFFER,0,w.arrayBuffer)}enableAttributes(w,B){for(let Q=0;Q0){let Ht=a.H();a.aQ(Ht,We.placementInvProjMatrix,ue.transform.glCoordMatrix),a.aQ(Ht,Ht,We.placementViewportMatrix),ot.push({circleArray:Dt,circleOffset:Kt,transform:tt.posMatrix,invTransform:Ht,coord:tt}),Tt+=Dt.length/4,Kt=Tt}it&&Xe.draw(le,qe.LINES,Po.disabled,Yo.disabled,ue.colorModeForRenderPass(),Pa.disabled,{u_matrix:tt.posMatrix,u_pixel_extrude_scale:[1/(Jt=ue.transform).width,1/Jt.height]},ue.style.map.terrain&&ue.style.map.terrain.getTerrainData(tt),B.id,it.layoutVertexBuffer,it.indexBuffer,it.segments,null,ue.transform.zoom,null,null,it.collisionVertexBuffer)}var Jt;if(!ee||!ot.length)return;let xr=ue.useProgram("collisionCircle"),Pr=new a.aR;Pr.resize(4*Tt),Pr._trim();let ve=0;for(let Be of ot)for(let tt=0;tt=0&&(Be[We.associatedIconIndex]={shiftedAnchor:Kn,angle:Aa})}else di(We.numGlyphs,be)}if(Tt){Re.clear();let tt=ue.icon.placedSymbolArray;for(let We=0;Weue.style.map.terrain.getElevation(jr,nt,jt):null,Ct=B.layout.get("text-rotation-alignment")==="map";je(Li,jr.posMatrix,ue,ee,Nl,ou,Be,Tt,Ct,be,jr.toUnwrapped(),ve.width,ve.height,$s,Ye)}let Tl=jr.posMatrix,Al=ee&&dr||dc,X=tt||Al?bl:Nl,se=Lu,Te=In&&B.paint.get(ee?"text-halo-width":"icon-halo-width").constantOr(1)!==0,Ne;Ne=In?Li.iconsInText?us(Kn.kind,$a,We,Be,tt,Al,ue,Tl,X,se,$s,Qa,As,Or):Io(Kn.kind,$a,We,Be,tt,Al,ue,Tl,X,se,$s,ee,Qa,!0,Or):Os(Kn.kind,$a,We,Be,tt,Al,ue,Tl,X,se,$s,ee,Qa,Or);let He={program:fa,buffers:un,uniformValues:Ne,atlasTexture:mo,atlasTextureIcon:wo,atlasInterpolation:Bo,atlasInterpolationIcon:Is,isSDF:In,hasHalo:Te};if(Dt&&Li.canOverlap){Ht=!0;let Ye=un.segments.get();for(let Ct of Ye)Sr.push({segments:new a.a0([Ct]),sortKey:Ct.sortKey,state:He,terrainData:ko})}else Sr.push({segments:un.segments,sortKey:0,state:He,terrainData:ko})}Ht&&Sr.sort((jr,ii)=>jr.sortKey-ii.sortKey);for(let jr of Sr){let ii=jr.state;if(xr.activeTexture.set(Pr.TEXTURE0),ii.atlasTexture.bind(ii.atlasInterpolation,Pr.CLAMP_TO_EDGE),ii.atlasTextureIcon&&(xr.activeTexture.set(Pr.TEXTURE1),ii.atlasTextureIcon&&ii.atlasTextureIcon.bind(ii.atlasInterpolationIcon,Pr.CLAMP_TO_EDGE)),ii.isSDF){let Li=ii.uniformValues;ii.hasHalo&&(Li.u_is_halo=1,Qf(ii.buffers,jr.segments,B,ue,ii.program,rr,Kt,Jt,Li,jr.terrainData)),Li.u_is_halo=0}Qf(ii.buffers,jr.segments,B,ue,ii.program,rr,Kt,Jt,ii.uniformValues,jr.terrainData)}}function Qf(ue,w,B,Q,ee,le,qe,Xe,ot,Tt){let Kt=Q.context;ee.draw(Kt,Kt.gl.TRIANGLES,le,qe,Xe,Pa.disabled,ot,Tt,B.id,ue.layoutVertexBuffer,ue.indexBuffer,w,B.paint,Q.transform.zoom,ue.programConfigurations.get(B.id),ue.dynamicLayoutVertexBuffer,ue.opacityVertexBuffer)}function yf(ue,w,B,Q){let ee=ue.context,le=ee.gl,qe=Yo.disabled,Xe=new Bs([le.ONE,le.ONE],a.aM.transparent,[!0,!0,!0,!0]),ot=w.getBucket(B);if(!ot)return;let Tt=Q.key,Kt=B.heatmapFbos.get(Tt);Kt||(Kt=eh(ee,w.tileSize,w.tileSize),B.heatmapFbos.set(Tt,Kt)),ee.bindFramebuffer.set(Kt.framebuffer),ee.viewport.set([0,0,w.tileSize,w.tileSize]),ee.clear({color:a.aM.transparent});let Jt=ot.programConfigurations.get(B.id),xr=ue.useProgram("heatmap",Jt),Pr=ue.style.map.terrain.getTerrainData(Q);xr.draw(ee,le.TRIANGLES,Po.disabled,qe,Xe,Pa.disabled,Co(Q.posMatrix,w,ue.transform.zoom,B.paint.get("heatmap-intensity")),Pr,B.id,ot.layoutVertexBuffer,ot.indexBuffer,ot.segments,B.paint,ue.transform.zoom,Jt)}function Yc(ue,w,B){let Q=ue.context,ee=Q.gl;Q.setColorMode(ue.colorModeForRenderPass());let le=th(Q,w),qe=B.key,Xe=w.heatmapFbos.get(qe);Xe&&(Q.activeTexture.set(ee.TEXTURE0),ee.bindTexture(ee.TEXTURE_2D,Xe.colorAttachment.get()),Q.activeTexture.set(ee.TEXTURE1),le.bind(ee.LINEAR,ee.CLAMP_TO_EDGE),ue.useProgram("heatmapTexture").draw(Q,ee.TRIANGLES,Po.disabled,Yo.disabled,ue.colorModeForRenderPass(),Pa.disabled,Fs(ue,w,0,1),null,w.id,ue.rasterBoundsBuffer,ue.quadTriangleIndexBuffer,ue.rasterBoundsSegments,w.paint,ue.transform.zoom),Xe.destroy(),w.heatmapFbos.delete(qe))}function eh(ue,w,B){var Q,ee;let le=ue.gl,qe=le.createTexture();le.bindTexture(le.TEXTURE_2D,qe),le.texParameteri(le.TEXTURE_2D,le.TEXTURE_WRAP_S,le.CLAMP_TO_EDGE),le.texParameteri(le.TEXTURE_2D,le.TEXTURE_WRAP_T,le.CLAMP_TO_EDGE),le.texParameteri(le.TEXTURE_2D,le.TEXTURE_MIN_FILTER,le.LINEAR),le.texParameteri(le.TEXTURE_2D,le.TEXTURE_MAG_FILTER,le.LINEAR);let Xe=(Q=ue.HALF_FLOAT)!==null&&Q!==void 0?Q:le.UNSIGNED_BYTE,ot=(ee=ue.RGBA16F)!==null&&ee!==void 0?ee:le.RGBA;le.texImage2D(le.TEXTURE_2D,0,ot,w,B,0,le.RGBA,Xe,null);let Tt=ue.createFramebuffer(w,B,!1,!1);return Tt.colorAttachment.set(qe),Tt}function th(ue,w){return w.colorRampTexture||(w.colorRampTexture=new g(ue,w.colorRamp,ue.gl.RGBA)),w.colorRampTexture}function ju(ue,w,B,Q,ee){if(!B||!Q||!Q.imageAtlas)return;let le=Q.imageAtlas.patternPositions,qe=le[B.to.toString()],Xe=le[B.from.toString()];if(!qe&&Xe&&(qe=Xe),!Xe&&qe&&(Xe=qe),!qe||!Xe){let ot=ee.getPaintProperty(w);qe=le[ot],Xe=le[ot]}qe&&Xe&&ue.setConstantPatternPositions(qe,Xe)}function Hf(ue,w,B,Q,ee,le,qe){let Xe=ue.context.gl,ot="fill-pattern",Tt=B.paint.get(ot),Kt=Tt&&Tt.constantOr(1),Jt=B.getCrossfadeParameters(),xr,Pr,ve,be,Re;qe?(Pr=Kt&&!B.getPaintProperty("fill-outline-color")?"fillOutlinePattern":"fillOutline",xr=Xe.LINES):(Pr=Kt?"fillPattern":"fill",xr=Xe.TRIANGLES);let Be=Tt.constantOr(null);for(let tt of Q){let We=w.getTile(tt);if(Kt&&!We.patternsLoaded())continue;let it=We.getBucket(B);if(!it)continue;let Dt=it.programConfigurations.get(B.id),Ht=ue.useProgram(Pr,Dt),rr=ue.style.map.terrain&&ue.style.map.terrain.getTerrainData(tt);Kt&&(ue.context.activeTexture.set(Xe.TEXTURE0),We.imageAtlasTexture.bind(Xe.LINEAR,Xe.CLAMP_TO_EDGE),Dt.updatePaintBuffers(Jt)),ju(Dt,ot,Be,We,B);let dr=rr?tt:null,Sr=ue.translatePosMatrix(dr?dr.posMatrix:tt.posMatrix,We,B.paint.get("fill-translate"),B.paint.get("fill-translate-anchor"));if(qe){be=it.indexBuffer2,Re=it.segments2;let Or=[Xe.drawingBufferWidth,Xe.drawingBufferHeight];ve=Pr==="fillOutlinePattern"&&Kt?Ma(Sr,ue,Jt,We,Or):Jn(Sr,Or)}else be=it.indexBuffer,Re=it.segments,ve=Kt?ya(Sr,ue,Jt,We):_n(Sr);Ht.draw(ue.context,xr,ee,ue.stencilModeForClipping(tt),le,Pa.disabled,ve,rr,B.id,it.layoutVertexBuffer,be,Re,B.paint,ue.transform.zoom,Dt)}}function cc(ue,w,B,Q,ee,le,qe){let Xe=ue.context,ot=Xe.gl,Tt="fill-extrusion-pattern",Kt=B.paint.get(Tt),Jt=Kt.constantOr(1),xr=B.getCrossfadeParameters(),Pr=B.paint.get("fill-extrusion-opacity"),ve=Kt.constantOr(null);for(let be of Q){let Re=w.getTile(be),Be=Re.getBucket(B);if(!Be)continue;let tt=ue.style.map.terrain&&ue.style.map.terrain.getTerrainData(be),We=Be.programConfigurations.get(B.id),it=ue.useProgram(Jt?"fillExtrusionPattern":"fillExtrusion",We);Jt&&(ue.context.activeTexture.set(ot.TEXTURE0),Re.imageAtlasTexture.bind(ot.LINEAR,ot.CLAMP_TO_EDGE),We.updatePaintBuffers(xr)),ju(We,Tt,ve,Re,B);let Dt=ue.translatePosMatrix(be.posMatrix,Re,B.paint.get("fill-extrusion-translate"),B.paint.get("fill-extrusion-translate-anchor")),Ht=B.paint.get("fill-extrusion-vertical-gradient"),rr=Jt?ki(Dt,ue,Ht,Pr,be,xr,Re):En(Dt,ue,Ht,Pr);it.draw(Xe,Xe.gl.TRIANGLES,ee,le,qe,Pa.backCCW,rr,tt,B.id,Be.layoutVertexBuffer,Be.indexBuffer,Be.segments,B.paint,ue.transform.zoom,We,ue.style.map.terrain&&Be.centroidVertexBuffer)}}function of(ue,w,B,Q,ee,le,qe){let Xe=ue.context,ot=Xe.gl,Tt=B.fbo;if(!Tt)return;let Kt=ue.useProgram("hillshade"),Jt=ue.style.map.terrain&&ue.style.map.terrain.getTerrainData(w);Xe.activeTexture.set(ot.TEXTURE0),ot.bindTexture(ot.TEXTURE_2D,Tt.colorAttachment.get()),Kt.draw(Xe,ot.TRIANGLES,ee,le,qe,Pa.disabled,((xr,Pr,ve,be)=>{let Re=ve.paint.get("hillshade-shadow-color"),Be=ve.paint.get("hillshade-highlight-color"),tt=ve.paint.get("hillshade-accent-color"),We=ve.paint.get("hillshade-illumination-direction")*(Math.PI/180);ve.paint.get("hillshade-illumination-anchor")==="viewport"&&(We-=xr.transform.angle);let it=!xr.options.moving;return{u_matrix:be?be.posMatrix:xr.transform.calculatePosMatrix(Pr.tileID.toUnwrapped(),it),u_image:0,u_latrange:zs(0,Pr.tileID),u_light:[ve.paint.get("hillshade-exaggeration"),We],u_shadow:Re,u_highlight:Be,u_accent:tt}})(ue,B,Q,Jt?w:null),Jt,Q.id,ue.rasterBoundsBuffer,ue.quadTriangleIndexBuffer,ue.rasterBoundsSegments)}function Bl(ue,w,B,Q,ee,le){let qe=ue.context,Xe=qe.gl,ot=w.dem;if(ot&&ot.data){let Tt=ot.dim,Kt=ot.stride,Jt=ot.getPixels();if(qe.activeTexture.set(Xe.TEXTURE1),qe.pixelStoreUnpackPremultiplyAlpha.set(!1),w.demTexture=w.demTexture||ue.getTileTexture(Kt),w.demTexture){let Pr=w.demTexture;Pr.update(Jt,{premultiply:!1}),Pr.bind(Xe.NEAREST,Xe.CLAMP_TO_EDGE)}else w.demTexture=new g(qe,Jt,Xe.RGBA,{premultiply:!1}),w.demTexture.bind(Xe.NEAREST,Xe.CLAMP_TO_EDGE);qe.activeTexture.set(Xe.TEXTURE0);let xr=w.fbo;if(!xr){let Pr=new g(qe,{width:Tt,height:Tt,data:null},Xe.RGBA);Pr.bind(Xe.LINEAR,Xe.CLAMP_TO_EDGE),xr=w.fbo=qe.createFramebuffer(Tt,Tt,!0,!1),xr.colorAttachment.set(Pr.texture)}qe.bindFramebuffer.set(xr.framebuffer),qe.viewport.set([0,0,Tt,Tt]),ue.useProgram("hillshadePrepare").draw(qe,Xe.TRIANGLES,Q,ee,le,Pa.disabled,((Pr,ve)=>{let be=ve.stride,Re=a.H();return a.aP(Re,0,a.X,-a.X,0,0,1),a.J(Re,Re,[0,-a.X,0]),{u_matrix:Re,u_image:1,u_dimension:[be,be],u_zoom:Pr.overscaledZ,u_unpack:ve.getUnpackVector()}})(w.tileID,ot),null,B.id,ue.rasterBoundsBuffer,ue.quadTriangleIndexBuffer,ue.rasterBoundsSegments),w.needsHillshadePrepare=!1}}function Kc(ue,w,B,Q,ee,le){let qe=Q.paint.get("raster-fade-duration");if(!le&&qe>0){let Xe=u.now(),ot=(Xe-ue.timeAdded)/qe,Tt=w?(Xe-w.timeAdded)/qe:-1,Kt=B.getSource(),Jt=ee.coveringZoomLevel({tileSize:Kt.tileSize,roundZoom:Kt.roundZoom}),xr=!w||Math.abs(w.tileID.overscaledZ-Jt)>Math.abs(ue.tileID.overscaledZ-Jt),Pr=xr&&ue.refreshedUponExpiration?1:a.ac(xr?ot:1-Tt,0,1);return ue.refreshedUponExpiration&&ot>=1&&(ue.refreshedUponExpiration=!1),w?{opacity:1,mix:1-Pr}:{opacity:Pr,mix:0}}return{opacity:1,mix:0}}let Rc=new a.aM(1,0,0,1),ms=new a.aM(0,1,0,1),jf=new a.aM(0,0,1,1),Uh=new a.aM(1,0,1,1),rh=new a.aM(0,1,1,1);function sf(ue,w,B,Q){Mu(ue,0,w+B/2,ue.transform.width,B,Q)}function xh(ue,w,B,Q){Mu(ue,w-B/2,0,B,ue.transform.height,Q)}function Mu(ue,w,B,Q,ee,le){let qe=ue.context,Xe=qe.gl;Xe.enable(Xe.SCISSOR_TEST),Xe.scissor(w*ue.pixelRatio,B*ue.pixelRatio,Q*ue.pixelRatio,ee*ue.pixelRatio),qe.clear({color:le}),Xe.disable(Xe.SCISSOR_TEST)}function ih(ue,w,B){let Q=ue.context,ee=Q.gl,le=B.posMatrix,qe=ue.useProgram("debug"),Xe=Po.disabled,ot=Yo.disabled,Tt=ue.colorModeForRenderPass(),Kt="$debug",Jt=ue.style.map.terrain&&ue.style.map.terrain.getTerrainData(B);Q.activeTexture.set(ee.TEXTURE0);let xr=w.getTileByID(B.key).latestRawTileData,Pr=Math.floor((xr&&xr.byteLength||0)/1024),ve=w.getTile(B).tileSize,be=512/Math.min(ve,512)*(B.overscaledZ/ue.transform.zoom)*.5,Re=B.canonical.toString();B.overscaledZ!==B.canonical.z&&(Re+=` => ${B.overscaledZ}`),function(Be,tt){Be.initDebugOverlayCanvas();let We=Be.debugOverlayCanvas,it=Be.context.gl,Dt=Be.debugOverlayCanvas.getContext("2d");Dt.clearRect(0,0,We.width,We.height),Dt.shadowColor="white",Dt.shadowBlur=2,Dt.lineWidth=1.5,Dt.strokeStyle="white",Dt.textBaseline="top",Dt.font="bold 36px Open Sans, sans-serif",Dt.fillText(tt,5,5),Dt.strokeText(tt,5,5),Be.debugOverlayTexture.update(We),Be.debugOverlayTexture.bind(it.LINEAR,it.CLAMP_TO_EDGE)}(ue,`${Re} ${Pr}kB`),qe.draw(Q,ee.TRIANGLES,Xe,ot,Bs.alphaBlended,Pa.disabled,po(le,a.aM.transparent,be),null,Kt,ue.debugBuffer,ue.quadTriangleIndexBuffer,ue.debugSegments),qe.draw(Q,ee.LINE_STRIP,Xe,ot,Tt,Pa.disabled,po(le,a.aM.red),Jt,Kt,ue.debugBuffer,ue.tileBorderIndexBuffer,ue.debugSegments)}function Ws(ue,w,B){let Q=ue.context,ee=Q.gl,le=ue.colorModeForRenderPass(),qe=new Po(ee.LEQUAL,Po.ReadWrite,ue.depthRangeFor3D),Xe=ue.useProgram("terrain"),ot=w.getTerrainMesh();Q.bindFramebuffer.set(null),Q.viewport.set([0,0,ue.width,ue.height]);for(let Tt of B){let Kt=ue.renderToTexture.getTexture(Tt),Jt=w.getTerrainData(Tt.tileID);Q.activeTexture.set(ee.TEXTURE0),ee.bindTexture(ee.TEXTURE_2D,Kt.texture);let xr=ue.transform.calculatePosMatrix(Tt.tileID.toUnwrapped()),Pr=w.getMeshFrameDelta(ue.transform.zoom),ve=ue.transform.calculateFogMatrix(Tt.tileID.toUnwrapped()),be=Qr(xr,Pr,ve,ue.style.sky,ue.transform.pitch);Xe.draw(Q,ee.TRIANGLES,qe,Yo.disabled,le,Pa.backCCW,be,Jt,"terrain",ot.vertexBuffer,ot.indexBuffer,ot.segments)}}class Eu{constructor(w,B,Q){this.vertexBuffer=w,this.indexBuffer=B,this.segments=Q}destroy(){this.vertexBuffer.destroy(),this.indexBuffer.destroy(),this.segments.destroy(),this.vertexBuffer=null,this.indexBuffer=null,this.segments=null}}class Dc{constructor(w,B){this.context=new ad(w),this.transform=B,this._tileTextures={},this.terrainFacilitator={dirty:!0,matrix:a.an(new Float64Array(16)),renderTime:0},this.setup(),this.numSublayers=yt.maxUnderzooming+yt.maxOverzooming+1,this.depthEpsilon=1/Math.pow(2,16),this.crossTileSymbolIndex=new Wo}resize(w,B,Q){if(this.width=Math.floor(w*Q),this.height=Math.floor(B*Q),this.pixelRatio=Q,this.context.viewport.set([0,0,this.width,this.height]),this.style)for(let ee of this.style._order)this.style._layers[ee].resize()}setup(){let w=this.context,B=new a.aX;B.emplaceBack(0,0),B.emplaceBack(a.X,0),B.emplaceBack(0,a.X),B.emplaceBack(a.X,a.X),this.tileExtentBuffer=w.createVertexBuffer(B,vo.members),this.tileExtentSegments=a.a0.simpleSegment(0,0,4,2);let Q=new a.aX;Q.emplaceBack(0,0),Q.emplaceBack(a.X,0),Q.emplaceBack(0,a.X),Q.emplaceBack(a.X,a.X),this.debugBuffer=w.createVertexBuffer(Q,vo.members),this.debugSegments=a.a0.simpleSegment(0,0,4,5);let ee=new a.$;ee.emplaceBack(0,0,0,0),ee.emplaceBack(a.X,0,a.X,0),ee.emplaceBack(0,a.X,0,a.X),ee.emplaceBack(a.X,a.X,a.X,a.X),this.rasterBoundsBuffer=w.createVertexBuffer(ee,lt.members),this.rasterBoundsSegments=a.a0.simpleSegment(0,0,4,2);let le=new a.aX;le.emplaceBack(0,0),le.emplaceBack(1,0),le.emplaceBack(0,1),le.emplaceBack(1,1),this.viewportBuffer=w.createVertexBuffer(le,vo.members),this.viewportSegments=a.a0.simpleSegment(0,0,4,2);let qe=new a.aZ;qe.emplaceBack(0),qe.emplaceBack(1),qe.emplaceBack(3),qe.emplaceBack(2),qe.emplaceBack(0),this.tileBorderIndexBuffer=w.createIndexBuffer(qe);let Xe=new a.aY;Xe.emplaceBack(0,1,2),Xe.emplaceBack(2,1,3),this.quadTriangleIndexBuffer=w.createIndexBuffer(Xe);let ot=this.context.gl;this.stencilClearMode=new Yo({func:ot.ALWAYS,mask:0},0,255,ot.ZERO,ot.ZERO,ot.ZERO)}clearStencil(){let w=this.context,B=w.gl;this.nextStencilID=1,this.currentStencilSource=void 0;let Q=a.H();a.aP(Q,0,this.width,this.height,0,0,1),a.K(Q,Q,[B.drawingBufferWidth,B.drawingBufferHeight,0]),this.useProgram("clippingMask").draw(w,B.TRIANGLES,Po.disabled,this.stencilClearMode,Bs.disabled,Pa.disabled,Lo(Q),null,"$clipping",this.viewportBuffer,this.quadTriangleIndexBuffer,this.viewportSegments)}_renderTileClippingMasks(w,B){if(this.currentStencilSource===w.source||!w.isTileClipped()||!B||!B.length)return;this.currentStencilSource=w.source;let Q=this.context,ee=Q.gl;this.nextStencilID+B.length>256&&this.clearStencil(),Q.setColorMode(Bs.disabled),Q.setDepthMode(Po.disabled);let le=this.useProgram("clippingMask");this._tileClippingMaskIDs={};for(let qe of B){let Xe=this._tileClippingMaskIDs[qe.key]=this.nextStencilID++,ot=this.style.map.terrain&&this.style.map.terrain.getTerrainData(qe);le.draw(Q,ee.TRIANGLES,Po.disabled,new Yo({func:ee.ALWAYS,mask:0},Xe,255,ee.KEEP,ee.KEEP,ee.REPLACE),Bs.disabled,Pa.disabled,Lo(qe.posMatrix),ot,"$clipping",this.tileExtentBuffer,this.quadTriangleIndexBuffer,this.tileExtentSegments)}}stencilModeFor3D(){this.currentStencilSource=void 0,this.nextStencilID+1>256&&this.clearStencil();let w=this.nextStencilID++,B=this.context.gl;return new Yo({func:B.NOTEQUAL,mask:255},w,255,B.KEEP,B.KEEP,B.REPLACE)}stencilModeForClipping(w){let B=this.context.gl;return new Yo({func:B.EQUAL,mask:255},this._tileClippingMaskIDs[w.key],0,B.KEEP,B.KEEP,B.REPLACE)}stencilConfigForOverlap(w){let B=this.context.gl,Q=w.sort((qe,Xe)=>Xe.overscaledZ-qe.overscaledZ),ee=Q[Q.length-1].overscaledZ,le=Q[0].overscaledZ-ee+1;if(le>1){this.currentStencilSource=void 0,this.nextStencilID+le>256&&this.clearStencil();let qe={};for(let Xe=0;Xe({u_sky_color:Be.properties.get("sky-color"),u_horizon_color:Be.properties.get("horizon-color"),u_horizon:(tt.height/2+tt.getHorizon())*We,u_sky_horizon_blend:Be.properties.get("sky-horizon-blend")*tt.height/2*We}))(Tt,ot.style.map.transform,ot.pixelRatio),Pr=new Po(Jt.LEQUAL,Po.ReadWrite,[0,1]),ve=Yo.disabled,be=ot.colorModeForRenderPass(),Re=ot.useProgram("sky");if(!Tt.mesh){let Be=new a.aX;Be.emplaceBack(-1,-1),Be.emplaceBack(1,-1),Be.emplaceBack(1,1),Be.emplaceBack(-1,1);let tt=new a.aY;tt.emplaceBack(0,1,2),tt.emplaceBack(0,2,3),Tt.mesh=new Eu(Kt.createVertexBuffer(Be,vo.members),Kt.createIndexBuffer(tt),a.a0.simpleSegment(0,0,Be.length,tt.length))}Re.draw(Kt,Jt.TRIANGLES,Pr,ve,be,Pa.disabled,xr,void 0,"sky",Tt.mesh.vertexBuffer,Tt.mesh.indexBuffer,Tt.mesh.segments)}(this,this.style.sky),this._showOverdrawInspector=B.showOverdrawInspector,this.depthRangeFor3D=[0,1-(w._order.length+2)*this.numSublayers*this.depthEpsilon],!this.renderToTexture)for(this.renderPass="opaque",this.currentLayer=Q.length-1;this.currentLayer>=0;this.currentLayer--){let ot=this.style._layers[Q[this.currentLayer]],Tt=ee[ot.source],Kt=le[ot.source];this._renderTileClippingMasks(ot,Kt),this.renderLayer(this,Tt,ot,Kt)}for(this.renderPass="translucent",this.currentLayer=0;this.currentLayerRe.source&&!Re.isHidden(Kt)?[Tt.sourceCaches[Re.source]]:[]),Pr=xr.filter(Re=>Re.getSource().type==="vector"),ve=xr.filter(Re=>Re.getSource().type!=="vector"),be=Re=>{(!Jt||Jt.getSource().maxzoombe(Re)),Jt||ve.forEach(Re=>be(Re)),Jt}(this.style,this.transform.zoom);ot&&function(Tt,Kt,Jt){for(let xr=0;xr0),ee&&(a.b0(B,Q),this.terrainFacilitator.renderTime=Date.now(),this.terrainFacilitator.dirty=!1,function(le,qe){let Xe=le.context,ot=Xe.gl,Tt=Bs.unblended,Kt=new Po(ot.LEQUAL,Po.ReadWrite,[0,1]),Jt=qe.getTerrainMesh(),xr=qe.sourceCache.getRenderableTiles(),Pr=le.useProgram("terrainDepth");Xe.bindFramebuffer.set(qe.getFramebuffer("depth").framebuffer),Xe.viewport.set([0,0,le.width/devicePixelRatio,le.height/devicePixelRatio]),Xe.clear({color:a.aM.transparent,depth:1});for(let ve of xr){let be=qe.getTerrainData(ve.tileID),Re={u_matrix:le.transform.calculatePosMatrix(ve.tileID.toUnwrapped()),u_ele_delta:qe.getMeshFrameDelta(le.transform.zoom)};Pr.draw(Xe,ot.TRIANGLES,Kt,Yo.disabled,Tt,Pa.backCCW,Re,be,"terrain",Jt.vertexBuffer,Jt.indexBuffer,Jt.segments)}Xe.bindFramebuffer.set(null),Xe.viewport.set([0,0,le.width,le.height])}(this,this.style.map.terrain),function(le,qe){let Xe=le.context,ot=Xe.gl,Tt=Bs.unblended,Kt=new Po(ot.LEQUAL,Po.ReadWrite,[0,1]),Jt=qe.getTerrainMesh(),xr=qe.getCoordsTexture(),Pr=qe.sourceCache.getRenderableTiles(),ve=le.useProgram("terrainCoords");Xe.bindFramebuffer.set(qe.getFramebuffer("coords").framebuffer),Xe.viewport.set([0,0,le.width/devicePixelRatio,le.height/devicePixelRatio]),Xe.clear({color:a.aM.transparent,depth:1}),qe.coordsIndex=[];for(let be of Pr){let Re=qe.getTerrainData(be.tileID);Xe.activeTexture.set(ot.TEXTURE0),ot.bindTexture(ot.TEXTURE_2D,xr.texture);let Be={u_matrix:le.transform.calculatePosMatrix(be.tileID.toUnwrapped()),u_terrain_coords_id:(255-qe.coordsIndex.length)/255,u_texture:0,u_ele_delta:qe.getMeshFrameDelta(le.transform.zoom)};ve.draw(Xe,ot.TRIANGLES,Kt,Yo.disabled,Tt,Pa.backCCW,Be,Re,"terrain",Jt.vertexBuffer,Jt.indexBuffer,Jt.segments),qe.coordsIndex.push(be.tileID.key)}Xe.bindFramebuffer.set(null),Xe.viewport.set([0,0,le.width,le.height])}(this,this.style.map.terrain))}renderLayer(w,B,Q,ee){if(!Q.isHidden(this.transform.zoom)&&(Q.type==="background"||Q.type==="custom"||(ee||[]).length))switch(this.id=Q.id,Q.type){case"symbol":(function(le,qe,Xe,ot,Tt){if(le.renderPass!=="translucent")return;let Kt=Yo.disabled,Jt=le.colorModeForRenderPass();(Xe._unevaluatedLayout.hasValue("text-variable-anchor")||Xe._unevaluatedLayout.hasValue("text-variable-anchor-offset"))&&function(xr,Pr,ve,be,Re,Be,tt,We,it){let Dt=Pr.transform,Ht=yn(),rr=Re==="map",dr=Be==="map";for(let Sr of xr){let Or=be.getTile(Sr),jr=Or.getBucket(ve);if(!jr||!jr.text||!jr.text.segments.get().length)continue;let ii=a.ag(jr.textSizeData,Dt.zoom),Li=Pn(Or,1,Pr.transform.zoom),un=Wr(Sr.posMatrix,dr,rr,Pr.transform,Li),sn=ve.layout.get("icon-text-fit")!=="none"&&jr.hasIconData();if(ii){let In=Math.pow(2,Dt.zoom-Or.tileID.overscaledZ),Kn=Pr.style.map.terrain?(fa,$a)=>Pr.style.map.terrain.getElevation(Sr,fa,$a):null,Aa=Ht.translatePosition(Dt,Or,tt,We);mf(jr,rr,dr,it,Dt,un,Sr.posMatrix,In,ii,sn,Ht,Aa,Sr.toUnwrapped(),Kn)}}}(ot,le,Xe,qe,Xe.layout.get("text-rotation-alignment"),Xe.layout.get("text-pitch-alignment"),Xe.paint.get("text-translate"),Xe.paint.get("text-translate-anchor"),Tt),Xe.paint.get("icon-opacity").constantOr(1)!==0&&_h(le,qe,Xe,ot,!1,Xe.paint.get("icon-translate"),Xe.paint.get("icon-translate-anchor"),Xe.layout.get("icon-rotation-alignment"),Xe.layout.get("icon-pitch-alignment"),Xe.layout.get("icon-keep-upright"),Kt,Jt),Xe.paint.get("text-opacity").constantOr(1)!==0&&_h(le,qe,Xe,ot,!0,Xe.paint.get("text-translate"),Xe.paint.get("text-translate-anchor"),Xe.layout.get("text-rotation-alignment"),Xe.layout.get("text-pitch-alignment"),Xe.layout.get("text-keep-upright"),Kt,Jt),qe.map.showCollisionBoxes&&(Hu(le,qe,Xe,ot,!0),Hu(le,qe,Xe,ot,!1))})(w,B,Q,ee,this.style.placement.variableOffsets);break;case"circle":(function(le,qe,Xe,ot){if(le.renderPass!=="translucent")return;let Tt=Xe.paint.get("circle-opacity"),Kt=Xe.paint.get("circle-stroke-width"),Jt=Xe.paint.get("circle-stroke-opacity"),xr=!Xe.layout.get("circle-sort-key").isConstant();if(Tt.constantOr(1)===0&&(Kt.constantOr(1)===0||Jt.constantOr(1)===0))return;let Pr=le.context,ve=Pr.gl,be=le.depthModeForSublayer(0,Po.ReadOnly),Re=Yo.disabled,Be=le.colorModeForRenderPass(),tt=[];for(let We=0;WeWe.sortKey-it.sortKey);for(let We of tt){let{programConfiguration:it,program:Dt,layoutVertexBuffer:Ht,indexBuffer:rr,uniformValues:dr,terrainData:Sr}=We.state;Dt.draw(Pr,ve.TRIANGLES,be,Re,Be,Pa.disabled,dr,Sr,Xe.id,Ht,rr,We.segments,Xe.paint,le.transform.zoom,it)}})(w,B,Q,ee);break;case"heatmap":(function(le,qe,Xe,ot){if(Xe.paint.get("heatmap-opacity")===0)return;let Tt=le.context;if(le.style.map.terrain){for(let Kt of ot){let Jt=qe.getTile(Kt);qe.hasRenderableParent(Kt)||(le.renderPass==="offscreen"?yf(le,Jt,Xe,Kt):le.renderPass==="translucent"&&Yc(le,Xe,Kt))}Tt.viewport.set([0,0,le.width,le.height])}else le.renderPass==="offscreen"?function(Kt,Jt,xr,Pr){let ve=Kt.context,be=ve.gl,Re=Yo.disabled,Be=new Bs([be.ONE,be.ONE],a.aM.transparent,[!0,!0,!0,!0]);(function(tt,We,it){let Dt=tt.gl;tt.activeTexture.set(Dt.TEXTURE1),tt.viewport.set([0,0,We.width/4,We.height/4]);let Ht=it.heatmapFbos.get(a.aU);Ht?(Dt.bindTexture(Dt.TEXTURE_2D,Ht.colorAttachment.get()),tt.bindFramebuffer.set(Ht.framebuffer)):(Ht=eh(tt,We.width/4,We.height/4),it.heatmapFbos.set(a.aU,Ht))})(ve,Kt,xr),ve.clear({color:a.aM.transparent});for(let tt=0;tt20&&Kt.texParameterf(Kt.TEXTURE_2D,Tt.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,Tt.extTextureFilterAnisotropicMax);let jr=le.style.map.terrain&&le.style.map.terrain.getTerrainData(tt),ii=jr?tt:null,Li=ii?ii.posMatrix:le.transform.calculatePosMatrix(tt.toUnwrapped(),Be),un=fl(Li,Sr||[0,0],dr||1,rr,Xe);Jt instanceof Gt?xr.draw(Tt,Kt.TRIANGLES,We,Yo.disabled,Pr,Pa.disabled,un,jr,Xe.id,Jt.boundsBuffer,le.quadTriangleIndexBuffer,Jt.boundsSegments):xr.draw(Tt,Kt.TRIANGLES,We,ve[tt.overscaledZ],Pr,Pa.disabled,un,jr,Xe.id,le.rasterBoundsBuffer,le.quadTriangleIndexBuffer,le.rasterBoundsSegments)}})(w,B,Q,ee);break;case"background":(function(le,qe,Xe,ot){let Tt=Xe.paint.get("background-color"),Kt=Xe.paint.get("background-opacity");if(Kt===0)return;let Jt=le.context,xr=Jt.gl,Pr=le.transform,ve=Pr.tileSize,be=Xe.paint.get("background-pattern");if(le.isPatternMissing(be))return;let Re=!be&&Tt.a===1&&Kt===1&&le.opaquePassEnabledForLayer()?"opaque":"translucent";if(le.renderPass!==Re)return;let Be=Yo.disabled,tt=le.depthModeForSublayer(0,Re==="opaque"?Po.ReadWrite:Po.ReadOnly),We=le.colorModeForRenderPass(),it=le.useProgram(be?"backgroundPattern":"background"),Dt=ot||Pr.coveringTiles({tileSize:ve,terrain:le.style.map.terrain});be&&(Jt.activeTexture.set(xr.TEXTURE0),le.imageManager.bind(le.context));let Ht=Xe.getCrossfadeParameters();for(let rr of Dt){let dr=ot?rr.posMatrix:le.transform.calculatePosMatrix(rr.toUnwrapped()),Sr=be?Su(dr,Kt,le,be,{tileID:rr,tileSize:ve},Ht):Zl(dr,Kt,Tt),Or=le.style.map.terrain&&le.style.map.terrain.getTerrainData(rr);it.draw(Jt,xr.TRIANGLES,tt,Be,We,Pa.disabled,Sr,Or,Xe.id,le.tileExtentBuffer,le.quadTriangleIndexBuffer,le.tileExtentSegments)}})(w,0,Q,ee);break;case"custom":(function(le,qe,Xe){let ot=le.context,Tt=Xe.implementation;if(le.renderPass==="offscreen"){let Kt=Tt.prerender;Kt&&(le.setCustomLayerDefaults(),ot.setColorMode(le.colorModeForRenderPass()),Kt.call(Tt,ot.gl,le.transform.customLayerMatrix()),ot.setDirty(),le.setBaseState())}else if(le.renderPass==="translucent"){le.setCustomLayerDefaults(),ot.setColorMode(le.colorModeForRenderPass()),ot.setStencilMode(Yo.disabled);let Kt=Tt.renderingMode==="3d"?new Po(le.context.gl.LEQUAL,Po.ReadWrite,le.depthRangeFor3D):le.depthModeForSublayer(0,Po.ReadOnly);ot.setDepthMode(Kt),Tt.render(ot.gl,le.transform.customLayerMatrix(),{farZ:le.transform.farZ,nearZ:le.transform.nearZ,fov:le.transform._fov,modelViewProjectionMatrix:le.transform.modelViewProjectionMatrix,projectionMatrix:le.transform.projectionMatrix}),ot.setDirty(),le.setBaseState(),ot.bindFramebuffer.set(null)}})(w,0,Q)}}translatePosMatrix(w,B,Q,ee,le){if(!Q[0]&&!Q[1])return w;let qe=le?ee==="map"?this.transform.angle:0:ee==="viewport"?-this.transform.angle:0;if(qe){let Tt=Math.sin(qe),Kt=Math.cos(qe);Q=[Q[0]*Kt-Q[1]*Tt,Q[0]*Tt+Q[1]*Kt]}let Xe=[le?Q[0]:Pn(B,Q[0],this.transform.zoom),le?Q[1]:Pn(B,Q[1],this.transform.zoom),0],ot=new Float32Array(16);return a.J(ot,w,Xe),ot}saveTileTexture(w){let B=this._tileTextures[w.size[0]];B?B.push(w):this._tileTextures[w.size[0]]=[w]}getTileTexture(w){let B=this._tileTextures[w];return B&&B.length>0?B.pop():null}isPatternMissing(w){if(!w)return!1;if(!w.from||!w.to)return!0;let B=this.imageManager.getPattern(w.from.toString()),Q=this.imageManager.getPattern(w.to.toString());return!B||!Q}useProgram(w,B){this.cache=this.cache||{};let Q=w+(B?B.cacheKey:"")+(this._showOverdrawInspector?"/overdraw":"")+(this.style.map.terrain?"/terrain":"");return this.cache[Q]||(this.cache[Q]=new fn(this.context,jn[w],B,nc[w],this._showOverdrawInspector,this.style.map.terrain)),this.cache[Q]}setCustomLayerDefaults(){this.context.unbindVAO(),this.context.cullFace.setDefault(),this.context.activeTexture.setDefault(),this.context.pixelStoreUnpack.setDefault(),this.context.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.context.pixelStoreUnpackFlipY.setDefault()}setBaseState(){let w=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(w.FUNC_ADD)}initDebugOverlayCanvas(){this.debugOverlayCanvas==null&&(this.debugOverlayCanvas=document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512,this.debugOverlayTexture=new g(this.context,this.debugOverlayCanvas,this.context.gl.RGBA))}destroy(){this.debugOverlayTexture&&this.debugOverlayTexture.destroy()}overLimit(){let{drawingBufferWidth:w,drawingBufferHeight:B}=this.context.gl;return this.width!==w||this.height!==B}}class ks{constructor(w,B){this.points=w,this.planes=B}static fromInvProjectionMatrix(w,B,Q){let ee=Math.pow(2,Q),le=[[-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]].map(Xe=>{let ot=1/(Xe=a.af([],Xe,w))[3]/B*ee;return a.b1(Xe,Xe,[ot,ot,1/Xe[3],ot])}),qe=[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]].map(Xe=>{let ot=function(xr,Pr){var ve=Pr[0],be=Pr[1],Re=Pr[2],Be=ve*ve+be*be+Re*Re;return Be>0&&(Be=1/Math.sqrt(Be)),xr[0]=Pr[0]*Be,xr[1]=Pr[1]*Be,xr[2]=Pr[2]*Be,xr}([],function(xr,Pr,ve){var be=Pr[0],Re=Pr[1],Be=Pr[2],tt=ve[0],We=ve[1],it=ve[2];return xr[0]=Re*it-Be*We,xr[1]=Be*tt-be*it,xr[2]=be*We-Re*tt,xr}([],L([],le[Xe[0]],le[Xe[1]]),L([],le[Xe[2]],le[Xe[1]]))),Tt=-((Kt=ot)[0]*(Jt=le[Xe[1]])[0]+Kt[1]*Jt[1]+Kt[2]*Jt[2]);var Kt,Jt;return ot.concat(Tt)});return new ks(le,qe)}}class bc{constructor(w,B){this.min=w,this.max=B,this.center=function(Q,ee,le){return Q[0]=.5*ee[0],Q[1]=.5*ee[1],Q[2]=.5*ee[2],Q}([],function(Q,ee,le){return Q[0]=ee[0]+le[0],Q[1]=ee[1]+le[1],Q[2]=ee[2]+le[2],Q}([],this.min,this.max))}quadrant(w){let B=[w%2==0,w<2],Q=E(this.min),ee=E(this.max);for(let le=0;le=0&&qe++;if(qe===0)return 0;qe!==B.length&&(Q=!1)}if(Q)return 2;for(let ee=0;ee<3;ee++){let le=Number.MAX_VALUE,qe=-Number.MAX_VALUE;for(let Xe=0;Xethis.max[ee]-this.min[ee])return 0}return 1}}class du{constructor(w=0,B=0,Q=0,ee=0){if(isNaN(w)||w<0||isNaN(B)||B<0||isNaN(Q)||Q<0||isNaN(ee)||ee<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=w,this.bottom=B,this.left=Q,this.right=ee}interpolate(w,B,Q){return B.top!=null&&w.top!=null&&(this.top=a.y.number(w.top,B.top,Q)),B.bottom!=null&&w.bottom!=null&&(this.bottom=a.y.number(w.bottom,B.bottom,Q)),B.left!=null&&w.left!=null&&(this.left=a.y.number(w.left,B.left,Q)),B.right!=null&&w.right!=null&&(this.right=a.y.number(w.right,B.right,Q)),this}getCenter(w,B){let Q=a.ac((this.left+w-this.right)/2,0,w),ee=a.ac((this.top+B-this.bottom)/2,0,B);return new a.P(Q,ee)}equals(w){return this.top===w.top&&this.bottom===w.bottom&&this.left===w.left&&this.right===w.right}clone(){return new du(this.top,this.bottom,this.left,this.right)}toJSON(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}}}let _u=85.051129;class al{constructor(w,B,Q,ee,le){this.tileSize=512,this._renderWorldCopies=le===void 0||!!le,this._minZoom=w||0,this._maxZoom=B||22,this._minPitch=Q==null?0:Q,this._maxPitch=ee==null?60:ee,this.setMaxBounds(),this.width=0,this.height=0,this._center=new a.N(0,0),this._elevation=0,this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this._unmodified=!0,this._edgeInsets=new du,this._posMatrixCache={},this._alignedPosMatrixCache={},this._fogMatrixCache={},this.minElevationForCurrentTile=0}clone(){let w=new al(this._minZoom,this._maxZoom,this._minPitch,this.maxPitch,this._renderWorldCopies);return w.apply(this),w}apply(w){this.tileSize=w.tileSize,this.latRange=w.latRange,this.lngRange=w.lngRange,this.width=w.width,this.height=w.height,this._center=w._center,this._elevation=w._elevation,this.minElevationForCurrentTile=w.minElevationForCurrentTile,this.zoom=w.zoom,this.angle=w.angle,this._fov=w._fov,this._pitch=w._pitch,this._unmodified=w._unmodified,this._edgeInsets=w._edgeInsets.clone(),this._calcMatrices()}get minZoom(){return this._minZoom}set minZoom(w){this._minZoom!==w&&(this._minZoom=w,this.zoom=Math.max(this.zoom,w))}get maxZoom(){return this._maxZoom}set maxZoom(w){this._maxZoom!==w&&(this._maxZoom=w,this.zoom=Math.min(this.zoom,w))}get minPitch(){return this._minPitch}set minPitch(w){this._minPitch!==w&&(this._minPitch=w,this.pitch=Math.max(this.pitch,w))}get maxPitch(){return this._maxPitch}set maxPitch(w){this._maxPitch!==w&&(this._maxPitch=w,this.pitch=Math.min(this.pitch,w))}get renderWorldCopies(){return this._renderWorldCopies}set renderWorldCopies(w){w===void 0?w=!0:w===null&&(w=!1),this._renderWorldCopies=w}get worldSize(){return this.tileSize*this.scale}get centerOffset(){return this.centerPoint._sub(this.size._div(2))}get size(){return new a.P(this.width,this.height)}get bearing(){return-this.angle/Math.PI*180}set bearing(w){let B=-a.b3(w,-180,180)*Math.PI/180;this.angle!==B&&(this._unmodified=!1,this.angle=B,this._calcMatrices(),this.rotationMatrix=function(){var Q=new a.A(4);return a.A!=Float32Array&&(Q[1]=0,Q[2]=0),Q[0]=1,Q[3]=1,Q}(),function(Q,ee,le){var qe=ee[0],Xe=ee[1],ot=ee[2],Tt=ee[3],Kt=Math.sin(le),Jt=Math.cos(le);Q[0]=qe*Jt+ot*Kt,Q[1]=Xe*Jt+Tt*Kt,Q[2]=qe*-Kt+ot*Jt,Q[3]=Xe*-Kt+Tt*Jt}(this.rotationMatrix,this.rotationMatrix,this.angle))}get pitch(){return this._pitch/Math.PI*180}set pitch(w){let B=a.ac(w,this.minPitch,this.maxPitch)/180*Math.PI;this._pitch!==B&&(this._unmodified=!1,this._pitch=B,this._calcMatrices())}get fov(){return this._fov/Math.PI*180}set fov(w){w=Math.max(.01,Math.min(60,w)),this._fov!==w&&(this._unmodified=!1,this._fov=w/180*Math.PI,this._calcMatrices())}get zoom(){return this._zoom}set zoom(w){let B=Math.min(Math.max(w,this.minZoom),this.maxZoom);this._zoom!==B&&(this._unmodified=!1,this._zoom=B,this.tileZoom=Math.max(0,Math.floor(B)),this.scale=this.zoomScale(B),this._constrain(),this._calcMatrices())}get center(){return this._center}set center(w){w.lat===this._center.lat&&w.lng===this._center.lng||(this._unmodified=!1,this._center=w,this._constrain(),this._calcMatrices())}get elevation(){return this._elevation}set elevation(w){w!==this._elevation&&(this._elevation=w,this._constrain(),this._calcMatrices())}get padding(){return this._edgeInsets.toJSON()}set padding(w){this._edgeInsets.equals(w)||(this._unmodified=!1,this._edgeInsets.interpolate(this._edgeInsets,w,1),this._calcMatrices())}get centerPoint(){return this._edgeInsets.getCenter(this.width,this.height)}isPaddingEqual(w){return this._edgeInsets.equals(w)}interpolatePadding(w,B,Q){this._unmodified=!1,this._edgeInsets.interpolate(w,B,Q),this._constrain(),this._calcMatrices()}coveringZoomLevel(w){let B=(w.roundZoom?Math.round:Math.floor)(this.zoom+this.scaleZoom(this.tileSize/w.tileSize));return Math.max(0,B)}getVisibleUnwrappedCoordinates(w){let B=[new a.b4(0,w)];if(this._renderWorldCopies){let Q=this.pointCoordinate(new a.P(0,0)),ee=this.pointCoordinate(new a.P(this.width,0)),le=this.pointCoordinate(new a.P(this.width,this.height)),qe=this.pointCoordinate(new a.P(0,this.height)),Xe=Math.floor(Math.min(Q.x,ee.x,le.x,qe.x)),ot=Math.floor(Math.max(Q.x,ee.x,le.x,qe.x)),Tt=1;for(let Kt=Xe-Tt;Kt<=ot+Tt;Kt++)Kt!==0&&B.push(new a.b4(Kt,w))}return B}coveringTiles(w){var B,Q;let ee=this.coveringZoomLevel(w),le=ee;if(w.minzoom!==void 0&&eew.maxzoom&&(ee=w.maxzoom);let qe=this.pointCoordinate(this.getCameraPoint()),Xe=a.Z.fromLngLat(this.center),ot=Math.pow(2,ee),Tt=[ot*qe.x,ot*qe.y,0],Kt=[ot*Xe.x,ot*Xe.y,0],Jt=ks.fromInvProjectionMatrix(this.invModelViewProjectionMatrix,this.worldSize,ee),xr=w.minzoom||0;!w.terrain&&this.pitch<=60&&this._edgeInsets.top<.1&&(xr=ee);let Pr=w.terrain?2/Math.min(this.tileSize,w.tileSize)*this.tileSize:3,ve=We=>({aabb:new bc([We*ot,0,0],[(We+1)*ot,ot,0]),zoom:0,x:0,y:0,wrap:We,fullyVisible:!1}),be=[],Re=[],Be=ee,tt=w.reparseOverscaled?le:ee;if(this._renderWorldCopies)for(let We=1;We<=3;We++)be.push(ve(-We)),be.push(ve(We));for(be.push(ve(0));be.length>0;){let We=be.pop(),it=We.x,Dt=We.y,Ht=We.fullyVisible;if(!Ht){let jr=We.aabb.intersects(Jt);if(jr===0)continue;Ht=jr===2}let rr=w.terrain?Tt:Kt,dr=We.aabb.distanceX(rr),Sr=We.aabb.distanceY(rr),Or=Math.max(Math.abs(dr),Math.abs(Sr));if(We.zoom===Be||Or>Pr+(1<=xr){let jr=Be-We.zoom,ii=Tt[0]-.5-(it<>1),un=We.zoom+1,sn=We.aabb.quadrant(jr);if(w.terrain){let In=new a.S(un,We.wrap,un,ii,Li),Kn=w.terrain.getMinMaxElevation(In),Aa=(B=Kn.minElevation)!==null&&B!==void 0?B:this.elevation,fa=(Q=Kn.maxElevation)!==null&&Q!==void 0?Q:this.elevation;sn=new bc([sn.min[0],sn.min[1],Aa],[sn.max[0],sn.max[1],fa])}be.push({aabb:sn,zoom:un,x:ii,y:Li,wrap:We.wrap,fullyVisible:Ht})}}return Re.sort((We,it)=>We.distanceSq-it.distanceSq).map(We=>We.tileID)}resize(w,B){this.width=w,this.height=B,this.pixelsToGLUnits=[2/w,-2/B],this._constrain(),this._calcMatrices()}get unmodified(){return this._unmodified}zoomScale(w){return Math.pow(2,w)}scaleZoom(w){return Math.log(w)/Math.LN2}project(w){let B=a.ac(w.lat,-85.051129,_u);return new a.P(a.O(w.lng)*this.worldSize,a.Q(B)*this.worldSize)}unproject(w){return new a.Z(w.x/this.worldSize,w.y/this.worldSize).toLngLat()}get point(){return this.project(this.center)}getCameraPosition(){return{lngLat:this.pointLocation(this.getCameraPoint()),altitude:Math.cos(this._pitch)*this.cameraToCenterDistance/this._pixelPerMeter+this.elevation}}recalculateZoom(w){let B=this.elevation,Q=Math.cos(this._pitch)*this.cameraToCenterDistance/this._pixelPerMeter,ee=this.pointLocation(this.centerPoint,w),le=w.getElevationForLngLatZoom(ee,this.tileZoom);if(!(this.elevation-le))return;let qe=Q+B-le,Xe=Math.cos(this._pitch)*this.cameraToCenterDistance/qe/a.b5(1,ee.lat),ot=this.scaleZoom(Xe/this.tileSize);this._elevation=le,this._center=ee,this.zoom=ot}setLocationAtPoint(w,B){let Q=this.pointCoordinate(B),ee=this.pointCoordinate(this.centerPoint),le=this.locationCoordinate(w),qe=new a.Z(le.x-(Q.x-ee.x),le.y-(Q.y-ee.y));this.center=this.coordinateLocation(qe),this._renderWorldCopies&&(this.center=this.center.wrap())}locationPoint(w,B){return B?this.coordinatePoint(this.locationCoordinate(w),B.getElevationForLngLatZoom(w,this.tileZoom),this.pixelMatrix3D):this.coordinatePoint(this.locationCoordinate(w))}pointLocation(w,B){return this.coordinateLocation(this.pointCoordinate(w,B))}locationCoordinate(w){return a.Z.fromLngLat(w)}coordinateLocation(w){return w&&w.toLngLat()}pointCoordinate(w,B){if(B){let xr=B.pointCoordinate(w);if(xr!=null)return xr}let Q=[w.x,w.y,0,1],ee=[w.x,w.y,1,1];a.af(Q,Q,this.pixelMatrixInverse),a.af(ee,ee,this.pixelMatrixInverse);let le=Q[3],qe=ee[3],Xe=Q[1]/le,ot=ee[1]/qe,Tt=Q[2]/le,Kt=ee[2]/qe,Jt=Tt===Kt?0:(0-Tt)/(Kt-Tt);return new a.Z(a.y.number(Q[0]/le,ee[0]/qe,Jt)/this.worldSize,a.y.number(Xe,ot,Jt)/this.worldSize)}coordinatePoint(w,B=0,Q=this.pixelMatrix){let ee=[w.x*this.worldSize,w.y*this.worldSize,B,1];return a.af(ee,ee,Q),new a.P(ee[0]/ee[3],ee[1]/ee[3])}getBounds(){let w=Math.max(0,this.height/2-this.getHorizon());return new ce().extend(this.pointLocation(new a.P(0,w))).extend(this.pointLocation(new a.P(this.width,w))).extend(this.pointLocation(new a.P(this.width,this.height))).extend(this.pointLocation(new a.P(0,this.height)))}getMaxBounds(){return this.latRange&&this.latRange.length===2&&this.lngRange&&this.lngRange.length===2?new ce([this.lngRange[0],this.latRange[0]],[this.lngRange[1],this.latRange[1]]):null}getHorizon(){return Math.tan(Math.PI/2-this._pitch)*this.cameraToCenterDistance*.85}setMaxBounds(w){w?(this.lngRange=[w.getWest(),w.getEast()],this.latRange=[w.getSouth(),w.getNorth()],this._constrain()):(this.lngRange=null,this.latRange=[-85.051129,_u])}calculateTileMatrix(w){let B=w.canonical,Q=this.worldSize/this.zoomScale(B.z),ee=B.x+Math.pow(2,B.z)*w.wrap,le=a.an(new Float64Array(16));return a.J(le,le,[ee*Q,B.y*Q,0]),a.K(le,le,[Q/a.X,Q/a.X,1]),le}calculatePosMatrix(w,B=!1){let Q=w.key,ee=B?this._alignedPosMatrixCache:this._posMatrixCache;if(ee[Q])return ee[Q];let le=this.calculateTileMatrix(w);return a.L(le,B?this.alignedModelViewProjectionMatrix:this.modelViewProjectionMatrix,le),ee[Q]=new Float32Array(le),ee[Q]}calculateFogMatrix(w){let B=w.key,Q=this._fogMatrixCache;if(Q[B])return Q[B];let ee=this.calculateTileMatrix(w);return a.L(ee,this.fogMatrix,ee),Q[B]=new Float32Array(ee),Q[B]}customLayerMatrix(){return this.mercatorMatrix.slice()}getConstrained(w,B){B=a.ac(+B,this.minZoom,this.maxZoom);let Q={center:new a.N(w.lng,w.lat),zoom:B},ee=this.lngRange;if(!this._renderWorldCopies&&ee===null){let We=179.9999999999;ee=[-We,We]}let le=this.tileSize*this.zoomScale(Q.zoom),qe=0,Xe=le,ot=0,Tt=le,Kt=0,Jt=0,{x:xr,y:Pr}=this.size;if(this.latRange){let We=this.latRange;qe=a.Q(We[1])*le,Xe=a.Q(We[0])*le,Xe-qeXe&&(Be=Xe-We)}if(ee){let We=(ot+Tt)/2,it=ve;this._renderWorldCopies&&(it=a.b3(ve,We-le/2,We+le/2));let Dt=xr/2;it-DtTt&&(Re=Tt-Dt)}if(Re!==void 0||Be!==void 0){let We=new a.P(Re!=null?Re:ve,Be!=null?Be:be);Q.center=this.unproject.call({worldSize:le},We).wrap()}return Q}_constrain(){if(!this.center||!this.width||!this.height||this._constraining)return;this._constraining=!0;let w=this._unmodified,{center:B,zoom:Q}=this.getConstrained(this.center,this.zoom);this.center=B,this.zoom=Q,this._unmodified=w,this._constraining=!1}_calcMatrices(){if(!this.height)return;let w=this.centerOffset,B=this.point.x,Q=this.point.y;this.cameraToCenterDistance=.5/Math.tan(this._fov/2)*this.height,this._pixelPerMeter=a.b5(1,this.center.lat)*this.worldSize;let ee=a.an(new Float64Array(16));a.K(ee,ee,[this.width/2,-this.height/2,1]),a.J(ee,ee,[1,-1,0]),this.labelPlaneMatrix=ee,ee=a.an(new Float64Array(16)),a.K(ee,ee,[1,-1,1]),a.J(ee,ee,[-1,-1,0]),a.K(ee,ee,[2/this.width,2/this.height,1]),this.glCoordMatrix=ee;let le=this.cameraToCenterDistance+this._elevation*this._pixelPerMeter/Math.cos(this._pitch),qe=Math.min(this.elevation,this.minElevationForCurrentTile),Xe=le-qe*this._pixelPerMeter/Math.cos(this._pitch),ot=qe<0?Xe:le,Tt=Math.PI/2+this._pitch,Kt=this._fov*(.5+w.y/this.height),Jt=Math.sin(Kt)*ot/Math.sin(a.ac(Math.PI-Tt-Kt,.01,Math.PI-.01)),xr=this.getHorizon(),Pr=2*Math.atan(xr/this.cameraToCenterDistance)*(.5+w.y/(2*xr)),ve=Math.sin(Pr)*ot/Math.sin(a.ac(Math.PI-Tt-Pr,.01,Math.PI-.01)),be=Math.min(Jt,ve);this.farZ=1.01*(Math.cos(Math.PI/2-this._pitch)*be+ot),this.nearZ=this.height/50,ee=new Float64Array(16),a.b6(ee,this._fov,this.width/this.height,this.nearZ,this.farZ),ee[8]=2*-w.x/this.width,ee[9]=2*w.y/this.height,this.projectionMatrix=a.ae(ee),a.K(ee,ee,[1,-1,1]),a.J(ee,ee,[0,0,-this.cameraToCenterDistance]),a.b7(ee,ee,this._pitch),a.ad(ee,ee,this.angle),a.J(ee,ee,[-B,-Q,0]),this.mercatorMatrix=a.K([],ee,[this.worldSize,this.worldSize,this.worldSize]),a.K(ee,ee,[1,1,this._pixelPerMeter]),this.pixelMatrix=a.L(new Float64Array(16),this.labelPlaneMatrix,ee),a.J(ee,ee,[0,0,-this.elevation]),this.modelViewProjectionMatrix=ee,this.invModelViewProjectionMatrix=a.as([],ee),this.fogMatrix=new Float64Array(16),a.b6(this.fogMatrix,this._fov,this.width/this.height,le,this.farZ),this.fogMatrix[8]=2*-w.x/this.width,this.fogMatrix[9]=2*w.y/this.height,a.K(this.fogMatrix,this.fogMatrix,[1,-1,1]),a.J(this.fogMatrix,this.fogMatrix,[0,0,-this.cameraToCenterDistance]),a.b7(this.fogMatrix,this.fogMatrix,this._pitch),a.ad(this.fogMatrix,this.fogMatrix,this.angle),a.J(this.fogMatrix,this.fogMatrix,[-B,-Q,0]),a.K(this.fogMatrix,this.fogMatrix,[1,1,this._pixelPerMeter]),a.J(this.fogMatrix,this.fogMatrix,[0,0,-this.elevation]),this.pixelMatrix3D=a.L(new Float64Array(16),this.labelPlaneMatrix,ee);let Re=this.width%2/2,Be=this.height%2/2,tt=Math.cos(this.angle),We=Math.sin(this.angle),it=B-Math.round(B)+tt*Re+We*Be,Dt=Q-Math.round(Q)+tt*Be+We*Re,Ht=new Float64Array(ee);if(a.J(Ht,Ht,[it>.5?it-1:it,Dt>.5?Dt-1:Dt,0]),this.alignedModelViewProjectionMatrix=Ht,ee=a.as(new Float64Array(16),this.pixelMatrix),!ee)throw new Error("failed to invert matrix");this.pixelMatrixInverse=ee,this._posMatrixCache={},this._alignedPosMatrixCache={},this._fogMatrixCache={}}maxPitchScaleFactor(){if(!this.pixelMatrixInverse)return 1;let w=this.pointCoordinate(new a.P(0,0)),B=[w.x*this.worldSize,w.y*this.worldSize,0,1];return a.af(B,B,this.pixelMatrix)[3]/this.cameraToCenterDistance}getCameraPoint(){let w=Math.tan(this._pitch)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new a.P(0,w))}getCameraQueryGeometry(w){let B=this.getCameraPoint();if(w.length===1)return[w[0],B];{let Q=B.x,ee=B.y,le=B.x,qe=B.y;for(let Xe of w)Q=Math.min(Q,Xe.x),ee=Math.min(ee,Xe.y),le=Math.max(le,Xe.x),qe=Math.max(qe,Xe.y);return[new a.P(Q,ee),new a.P(le,ee),new a.P(le,qe),new a.P(Q,qe),new a.P(Q,ee)]}}lngLatToCameraDepth(w,B){let Q=this.locationCoordinate(w),ee=[Q.x*this.worldSize,Q.y*this.worldSize,B,1];return a.af(ee,ee,this.modelViewProjectionMatrix),ee[2]/ee[3]}}function nh(ue,w){let B,Q=!1,ee=null,le=null,qe=()=>{ee=null,Q&&(ue.apply(le,B),ee=setTimeout(qe,w),Q=!1)};return(...Xe)=>(Q=!0,le=this,B=Xe,ee||qe(),ee)}class bh{constructor(w){this._getCurrentHash=()=>{let B=window.location.hash.replace("#","");if(this._hashName){let Q;return B.split("&").map(ee=>ee.split("=")).forEach(ee=>{ee[0]===this._hashName&&(Q=ee)}),(Q&&Q[1]||"").split("/")}return B.split("/")},this._onHashChange=()=>{let B=this._getCurrentHash();if(B.length>=3&&!B.some(Q=>isNaN(Q))){let Q=this._map.dragRotate.isEnabled()&&this._map.touchZoomRotate.isEnabled()?+(B[3]||0):this._map.getBearing();return this._map.jumpTo({center:[+B[2],+B[1]],zoom:+B[0],bearing:Q,pitch:+(B[4]||0)}),!0}return!1},this._updateHashUnthrottled=()=>{let B=window.location.href.replace(/(#.*)?$/,this.getHashString());window.history.replaceState(window.history.state,null,B)},this._removeHash=()=>{let B=this._getCurrentHash();if(B.length===0)return;let Q=B.join("/"),ee=Q;ee.split("&").length>0&&(ee=ee.split("&")[0]),this._hashName&&(ee=`${this._hashName}=${Q}`);let le=window.location.hash.replace(ee,"");le.startsWith("#&")?le=le.slice(0,1)+le.slice(2):le==="#"&&(le="");let qe=window.location.href.replace(/(#.+)?$/,le);qe=qe.replace("&&","&"),window.history.replaceState(window.history.state,null,qe)},this._updateHash=nh(this._updateHashUnthrottled,300),this._hashName=w&&encodeURIComponent(w)}addTo(w){return this._map=w,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(w){let B=this._map.getCenter(),Q=Math.round(100*this._map.getZoom())/100,ee=Math.ceil((Q*Math.LN2+Math.log(512/360/.5))/Math.LN10),le=Math.pow(10,ee),qe=Math.round(B.lng*le)/le,Xe=Math.round(B.lat*le)/le,ot=this._map.getBearing(),Tt=this._map.getPitch(),Kt="";if(Kt+=w?`/${qe}/${Xe}/${Q}`:`${Q}/${Xe}/${qe}`,(ot||Tt)&&(Kt+="/"+Math.round(10*ot)/10),Tt&&(Kt+=`/${Math.round(Tt)}`),this._hashName){let Jt=this._hashName,xr=!1,Pr=window.location.hash.slice(1).split("&").map(ve=>{let be=ve.split("=")[0];return be===Jt?(xr=!0,`${be}=${Kt}`):ve}).filter(ve=>ve);return xr||Pr.push(`${Jt}=${Kt}`),`#${Pr.join("&")}`}return`#${Kt}`}}let zu={linearity:.3,easing:a.b8(0,0,.3,1)},Fc=a.e({deceleration:2500,maxSpeed:1400},zu),wc=a.e({deceleration:20,maxSpeed:1400},zu),bd=a.e({deceleration:1e3,maxSpeed:360},zu),_f=a.e({deceleration:1e3,maxSpeed:90},zu);class Lf{constructor(w){this._map=w,this.clear()}clear(){this._inertiaBuffer=[]}record(w){this._drainInertiaBuffer(),this._inertiaBuffer.push({time:u.now(),settings:w})}_drainInertiaBuffer(){let w=this._inertiaBuffer,B=u.now();for(;w.length>0&&B-w[0].time>160;)w.shift()}_onMoveEnd(w){if(this._drainInertiaBuffer(),this._inertiaBuffer.length<2)return;let B={zoom:0,bearing:0,pitch:0,pan:new a.P(0,0),pinchAround:void 0,around:void 0};for(let{settings:le}of this._inertiaBuffer)B.zoom+=le.zoomDelta||0,B.bearing+=le.bearingDelta||0,B.pitch+=le.pitchDelta||0,le.panDelta&&B.pan._add(le.panDelta),le.around&&(B.around=le.around),le.pinchAround&&(B.pinchAround=le.pinchAround);let Q=this._inertiaBuffer[this._inertiaBuffer.length-1].time-this._inertiaBuffer[0].time,ee={};if(B.pan.mag()){let le=xf(B.pan.mag(),Q,a.e({},Fc,w||{}));ee.offset=B.pan.mult(le.amount/B.pan.mag()),ee.center=this._map.transform.center,Ou(ee,le)}if(B.zoom){let le=xf(B.zoom,Q,wc);ee.zoom=this._map.transform.zoom+le.amount,Ou(ee,le)}if(B.bearing){let le=xf(B.bearing,Q,bd);ee.bearing=this._map.transform.bearing+a.ac(le.amount,-179,179),Ou(ee,le)}if(B.pitch){let le=xf(B.pitch,Q,_f);ee.pitch=this._map.transform.pitch+le.amount,Ou(ee,le)}if(ee.zoom||ee.bearing){let le=B.pinchAround===void 0?B.around:B.pinchAround;ee.around=le?this._map.unproject(le):this._map.getCenter()}return this.clear(),a.e(ee,{noMoveStart:!0})}}function Ou(ue,w){(!ue.duration||ue.durationB.unproject(ot)),Xe=le.reduce((ot,Tt,Kt,Jt)=>ot.add(Tt.div(Jt.length)),new a.P(0,0));super(w,{points:le,point:Xe,lngLats:qe,lngLat:B.unproject(Xe),originalEvent:Q}),this._defaultPrevented=!1}}class Vh extends a.k{preventDefault(){this._defaultPrevented=!0}get defaultPrevented(){return this._defaultPrevented}constructor(w,B,Q){super(w,{originalEvent:Q}),this._defaultPrevented=!1}}class Pf{constructor(w,B){this._map=w,this._clickTolerance=B.clickTolerance}reset(){delete this._mousedownPos}wheel(w){return this._firePreventable(new Vh(w.type,this._map,w))}mousedown(w,B){return this._mousedownPos=B,this._firePreventable(new jl(w.type,this._map,w))}mouseup(w){this._map.fire(new jl(w.type,this._map,w))}click(w,B){this._mousedownPos&&this._mousedownPos.dist(B)>=this._clickTolerance||this._map.fire(new jl(w.type,this._map,w))}dblclick(w){return this._firePreventable(new jl(w.type,this._map,w))}mouseover(w){this._map.fire(new jl(w.type,this._map,w))}mouseout(w){this._map.fire(new jl(w.type,this._map,w))}touchstart(w){return this._firePreventable(new lf(w.type,this._map,w))}touchmove(w){this._map.fire(new lf(w.type,this._map,w))}touchend(w){this._map.fire(new lf(w.type,this._map,w))}touchcancel(w){this._map.fire(new lf(w.type,this._map,w))}_firePreventable(w){if(this._map.fire(w),w.defaultPrevented)return{}}isEnabled(){return!0}isActive(){return!1}enable(){}disable(){}}class Ls{constructor(w){this._map=w}reset(){this._delayContextMenu=!1,this._ignoreContextMenu=!0,delete this._contextMenuEvent}mousemove(w){this._map.fire(new jl(w.type,this._map,w))}mousedown(){this._delayContextMenu=!0,this._ignoreContextMenu=!1}mouseup(){this._delayContextMenu=!1,this._contextMenuEvent&&(this._map.fire(new jl("contextmenu",this._map,this._contextMenuEvent)),delete this._contextMenuEvent)}contextmenu(w){this._delayContextMenu?this._contextMenuEvent=w:this._ignoreContextMenu||this._map.fire(new jl(w.type,this._map,w)),this._map.listens("contextmenu")&&w.preventDefault()}isEnabled(){return!0}isActive(){return!1}enable(){}disable(){}}class vu{constructor(w){this._map=w}get transform(){return this._map._requestedCameraState||this._map.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(w){return this.transform.pointLocation(a.P.convert(w),this._map.terrain)}}class Cu{constructor(w,B){this._map=w,this._tr=new vu(w),this._el=w.getCanvasContainer(),this._container=w.getContainer(),this._clickTolerance=B.clickTolerance||1}isEnabled(){return!!this._enabled}isActive(){return!!this._active}enable(){this.isEnabled()||(this._enabled=!0)}disable(){this.isEnabled()&&(this._enabled=!1)}mousedown(w,B){this.isEnabled()&&w.shiftKey&&w.button===0&&(c.disableDrag(),this._startPos=this._lastPos=B,this._active=!0)}mousemoveWindow(w,B){if(!this._active)return;let Q=B;if(this._lastPos.equals(Q)||!this._box&&Q.dist(this._startPos)le.fitScreenCoordinates(Q,ee,this._tr.bearing,{linear:!0})};this._fireEvent("boxzoomcancel",w)}keydown(w){this._active&&w.keyCode===27&&(this.reset(),this._fireEvent("boxzoomcancel",w))}reset(){this._active=!1,this._container.classList.remove("maplibregl-crosshair"),this._box&&(c.remove(this._box),this._box=null),c.enableDrag(),delete this._startPos,delete this._lastPos}_fireEvent(w,B){return this._map.fire(new a.k(w,{originalEvent:B}))}}function Wf(ue,w){if(ue.length!==w.length)throw new Error(`The number of touches and points are not equal - touches ${ue.length}, points ${w.length}`);let B={};for(let Q=0;Qthis.numTouches)&&(this.aborted=!0),this.aborted||(this.startTime===void 0&&(this.startTime=w.timeStamp),Q.length===this.numTouches&&(this.centroid=function(ee){let le=new a.P(0,0);for(let qe of ee)le._add(qe);return le.div(ee.length)}(B),this.touches=Wf(Q,B)))}touchmove(w,B,Q){if(this.aborted||!this.centroid)return;let ee=Wf(Q,B);for(let le in this.touches){let qe=ee[le];(!qe||qe.dist(this.touches[le])>30)&&(this.aborted=!0)}}touchend(w,B,Q){if((!this.centroid||w.timeStamp-this.startTime>500)&&(this.aborted=!0),Q.length===0){let ee=!this.aborted&&this.centroid;if(this.reset(),ee)return ee}}}class bf{constructor(w){this.singleTap=new Vs(w),this.numTaps=w.numTaps,this.reset()}reset(){this.lastTime=1/0,delete this.lastTap,this.count=0,this.singleTap.reset()}touchstart(w,B,Q){this.singleTap.touchstart(w,B,Q)}touchmove(w,B,Q){this.singleTap.touchmove(w,B,Q)}touchend(w,B,Q){let ee=this.singleTap.touchend(w,B,Q);if(ee){let le=w.timeStamp-this.lastTime<500,qe=!this.lastTap||this.lastTap.dist(ee)<30;if(le&&qe||this.reset(),this.count++,this.lastTime=w.timeStamp,this.lastTap=ee,this.count===this.numTaps)return this.reset(),ee}}}class zc{constructor(w){this._tr=new vu(w),this._zoomIn=new bf({numTouches:1,numTaps:2}),this._zoomOut=new bf({numTouches:2,numTaps:1}),this.reset()}reset(){this._active=!1,this._zoomIn.reset(),this._zoomOut.reset()}touchstart(w,B,Q){this._zoomIn.touchstart(w,B,Q),this._zoomOut.touchstart(w,B,Q)}touchmove(w,B,Q){this._zoomIn.touchmove(w,B,Q),this._zoomOut.touchmove(w,B,Q)}touchend(w,B,Q){let ee=this._zoomIn.touchend(w,B,Q),le=this._zoomOut.touchend(w,B,Q),qe=this._tr;return ee?(this._active=!0,w.preventDefault(),setTimeout(()=>this.reset(),0),{cameraAnimation:Xe=>Xe.easeTo({duration:300,zoom:qe.zoom+1,around:qe.unproject(ee)},{originalEvent:w})}):le?(this._active=!0,w.preventDefault(),setTimeout(()=>this.reset(),0),{cameraAnimation:Xe=>Xe.easeTo({duration:300,zoom:qe.zoom-1,around:qe.unproject(le)},{originalEvent:w})}):void 0}touchcancel(){this.reset()}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class Wu{constructor(w){this._enabled=!!w.enable,this._moveStateManager=w.moveStateManager,this._clickTolerance=w.clickTolerance||1,this._moveFunction=w.move,this._activateOnStart=!!w.activateOnStart,w.assignEvents(this),this.reset()}reset(w){this._active=!1,this._moved=!1,delete this._lastPoint,this._moveStateManager.endMove(w)}_move(...w){let B=this._moveFunction(...w);if(B.bearingDelta||B.pitchDelta||B.around||B.panDelta)return this._active=!0,B}dragStart(w,B){this.isEnabled()&&!this._lastPoint&&this._moveStateManager.isValidStartEvent(w)&&(this._moveStateManager.startMove(w),this._lastPoint=B.length?B[0]:B,this._activateOnStart&&this._lastPoint&&(this._active=!0))}dragMove(w,B){if(!this.isEnabled())return;let Q=this._lastPoint;if(!Q)return;if(w.preventDefault(),!this._moveStateManager.isValidMoveEvent(w))return void this.reset(w);let ee=B.length?B[0]:B;return!this._moved&&ee.dist(Q){ue.mousedown=ue.dragStart,ue.mousemoveWindow=ue.dragMove,ue.mouseup=ue.dragEnd,ue.contextmenu=w=>{w.preventDefault()}},Wl=({enable:ue,clickTolerance:w,bearingDegreesPerPixelMoved:B=.8})=>{let Q=new Xu({checkCorrectEvent:ee=>c.mouseButton(ee)===0&&ee.ctrlKey||c.mouseButton(ee)===2});return new Wu({clickTolerance:w,move:(ee,le)=>({bearingDelta:(le.x-ee.x)*B}),moveStateManager:Q,enable:ue,assignEvents:Xf})},ah=({enable:ue,clickTolerance:w,pitchDegreesPerPixelMoved:B=-.5})=>{let Q=new Xu({checkCorrectEvent:ee=>c.mouseButton(ee)===0&&ee.ctrlKey||c.mouseButton(ee)===2});return new Wu({clickTolerance:w,move:(ee,le)=>({pitchDelta:(le.y-ee.y)*B}),moveStateManager:Q,enable:ue,assignEvents:Xf})};class Zu{constructor(w,B){this._clickTolerance=w.clickTolerance||1,this._map=B,this.reset()}reset(){this._active=!1,this._touches={},this._sum=new a.P(0,0)}_shouldBePrevented(w){return w<(this._map.cooperativeGestures.isEnabled()?2:1)}touchstart(w,B,Q){return this._calculateTransform(w,B,Q)}touchmove(w,B,Q){if(this._active){if(!this._shouldBePrevented(Q.length))return w.preventDefault(),this._calculateTransform(w,B,Q);this._map.cooperativeGestures.notifyGestureBlocked("touch_pan",w)}}touchend(w,B,Q){this._calculateTransform(w,B,Q),this._active&&this._shouldBePrevented(Q.length)&&this.reset()}touchcancel(){this.reset()}_calculateTransform(w,B,Q){Q.length>0&&(this._active=!0);let ee=Wf(Q,B),le=new a.P(0,0),qe=new a.P(0,0),Xe=0;for(let Tt in ee){let Kt=ee[Tt],Jt=this._touches[Tt];Jt&&(le._add(Kt),qe._add(Kt.sub(Jt)),Xe++,ee[Tt]=Kt)}if(this._touches=ee,this._shouldBePrevented(Xe)||!qe.mag())return;let ot=qe.div(Xe);return this._sum._add(ot),this._sum.mag()Math.abs(ue.x)}class Bc extends Oc{constructor(w){super(),this._currentTouchCount=0,this._map=w}reset(){super.reset(),this._valid=void 0,delete this._firstMove,delete this._lastPoints}touchstart(w,B,Q){super.touchstart(w,B,Q),this._currentTouchCount=Q.length}_start(w){this._lastPoints=w,fc(w[0].sub(w[1]))&&(this._valid=!1)}_move(w,B,Q){if(this._map.cooperativeGestures.isEnabled()&&this._currentTouchCount<3)return;let ee=w[0].sub(this._lastPoints[0]),le=w[1].sub(this._lastPoints[1]);return this._valid=this.gestureBeginsVertically(ee,le,Q.timeStamp),this._valid?(this._lastPoints=w,this._active=!0,{pitchDelta:(ee.y+le.y)/2*-.5}):void 0}gestureBeginsVertically(w,B,Q){if(this._valid!==void 0)return this._valid;let ee=w.mag()>=2,le=B.mag()>=2;if(!ee&&!le)return;if(!ee||!le)return this._firstMove===void 0&&(this._firstMove=Q),Q-this._firstMove<100&&void 0;let qe=w.y>0==B.y>0;return fc(w)&&fc(B)&&qe}}let At={panStep:100,bearingStep:15,pitchStep:10};class Xt{constructor(w){this._tr=new vu(w);let B=At;this._panStep=B.panStep,this._bearingStep=B.bearingStep,this._pitchStep=B.pitchStep,this._rotationDisabled=!1}reset(){this._active=!1}keydown(w){if(w.altKey||w.ctrlKey||w.metaKey)return;let B=0,Q=0,ee=0,le=0,qe=0;switch(w.keyCode){case 61:case 107:case 171:case 187:B=1;break;case 189:case 109:case 173:B=-1;break;case 37:w.shiftKey?Q=-1:(w.preventDefault(),le=-1);break;case 39:w.shiftKey?Q=1:(w.preventDefault(),le=1);break;case 38:w.shiftKey?ee=1:(w.preventDefault(),qe=-1);break;case 40:w.shiftKey?ee=-1:(w.preventDefault(),qe=1);break;default:return}return this._rotationDisabled&&(Q=0,ee=0),{cameraAnimation:Xe=>{let ot=this._tr;Xe.easeTo({duration:300,easeId:"keyboardHandler",easing:kr,zoom:B?Math.round(ot.zoom)+B*(w.shiftKey?2:1):ot.zoom,bearing:ot.bearing+Q*this._bearingStep,pitch:ot.pitch+ee*this._pitchStep,offset:[-le*this._panStep,-qe*this._panStep],center:ot.center},{originalEvent:w})}}}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}}function kr(ue){return ue*(2-ue)}let Ar=4.000244140625;class Kr{constructor(w,B){this._onTimeout=Q=>{this._type="wheel",this._delta-=this._lastValue,this._active||this._start(Q)},this._map=w,this._tr=new vu(w),this._triggerRenderFrame=B,this._delta=0,this._defaultZoomRate=.01,this._wheelZoomRate=.0022222222222222222}setZoomRate(w){this._defaultZoomRate=w}setWheelZoomRate(w){this._wheelZoomRate=w}isEnabled(){return!!this._enabled}isActive(){return!!this._active||this._finishTimeout!==void 0}isZooming(){return!!this._zooming}enable(w){this.isEnabled()||(this._enabled=!0,this._aroundCenter=!!w&&w.around==="center")}disable(){this.isEnabled()&&(this._enabled=!1)}_shouldBePrevented(w){return!!this._map.cooperativeGestures.isEnabled()&&!(w.ctrlKey||this._map.cooperativeGestures.isBypassed(w))}wheel(w){if(!this.isEnabled())return;if(this._shouldBePrevented(w))return void this._map.cooperativeGestures.notifyGestureBlocked("wheel_zoom",w);let B=w.deltaMode===WheelEvent.DOM_DELTA_LINE?40*w.deltaY:w.deltaY,Q=u.now(),ee=Q-(this._lastWheelEventTime||0);this._lastWheelEventTime=Q,B!==0&&B%Ar==0?this._type="wheel":B!==0&&Math.abs(B)<4?this._type="trackpad":ee>400?(this._type=null,this._lastValue=B,this._timeout=setTimeout(this._onTimeout,40,w)):this._type||(this._type=Math.abs(ee*B)<200?"trackpad":"wheel",this._timeout&&(clearTimeout(this._timeout),this._timeout=null,B+=this._lastValue)),w.shiftKey&&B&&(B/=4),this._type&&(this._lastWheelEvent=w,this._delta-=B,this._active||this._start(w)),w.preventDefault()}_start(w){if(!this._delta)return;this._frameId&&(this._frameId=null),this._active=!0,this.isZooming()||(this._zooming=!0),this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout);let B=c.mousePos(this._map.getCanvas(),w),Q=this._tr;this._around=B.y>Q.transform.height/2-Q.transform.getHorizon()?a.N.convert(this._aroundCenter?Q.center:Q.unproject(B)):a.N.convert(Q.center),this._aroundPoint=Q.transform.locationPoint(this._around),this._frameId||(this._frameId=!0,this._triggerRenderFrame())}renderFrame(){if(!this._frameId||(this._frameId=null,!this.isActive()))return;let w=this._tr.transform;if(this._delta!==0){let ot=this._type==="wheel"&&Math.abs(this._delta)>Ar?this._wheelZoomRate:this._defaultZoomRate,Tt=2/(1+Math.exp(-Math.abs(this._delta*ot)));this._delta<0&&Tt!==0&&(Tt=1/Tt);let Kt=typeof this._targetZoom=="number"?w.zoomScale(this._targetZoom):w.scale;this._targetZoom=Math.min(w.maxZoom,Math.max(w.minZoom,w.scaleZoom(Kt*Tt))),this._type==="wheel"&&(this._startZoom=w.zoom,this._easing=this._smoothOutEasing(200)),this._delta=0}let B=typeof this._targetZoom=="number"?this._targetZoom:w.zoom,Q=this._startZoom,ee=this._easing,le,qe=!1,Xe=u.now()-this._lastWheelEventTime;if(this._type==="wheel"&&Q&&ee&&Xe){let ot=Math.min(Xe/200,1),Tt=ee(ot);le=a.y.number(Q,B,Tt),ot<1?this._frameId||(this._frameId=!0):qe=!0}else le=B,qe=!0;return this._active=!0,qe&&(this._active=!1,this._finishTimeout=setTimeout(()=>{this._zooming=!1,this._triggerRenderFrame(),delete this._targetZoom,delete this._finishTimeout},200)),{noInertia:!0,needsRenderFrame:!qe,zoomDelta:le-w.zoom,around:this._aroundPoint,originalEvent:this._lastWheelEvent}}_smoothOutEasing(w){let B=a.b9;if(this._prevEase){let Q=this._prevEase,ee=(u.now()-Q.start)/Q.duration,le=Q.easing(ee+.01)-Q.easing(ee),qe=.27/Math.sqrt(le*le+1e-4)*.01,Xe=Math.sqrt(.0729-qe*qe);B=a.b8(qe,Xe,.25,1)}return this._prevEase={start:u.now(),duration:w,easing:B},B}reset(){this._active=!1,this._zooming=!1,delete this._targetZoom,this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout)}}class Ei{constructor(w,B){this._clickZoom=w,this._tapZoom=B}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()}}class Wi{constructor(w){this._tr=new vu(w),this.reset()}reset(){this._active=!1}dblclick(w,B){return w.preventDefault(),{cameraAnimation:Q=>{Q.easeTo({duration:300,zoom:this._tr.zoom+(w.shiftKey?-1:1),around:this._tr.unproject(B)},{originalEvent:w})}}}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class hn{constructor(){this._tap=new bf({numTouches:1,numTaps:1}),this.reset()}reset(){this._active=!1,delete this._swipePoint,delete this._swipeTouch,delete this._tapTime,delete this._tapPoint,this._tap.reset()}touchstart(w,B,Q){if(!this._swipePoint)if(this._tapTime){let ee=B[0],le=w.timeStamp-this._tapTime<500,qe=this._tapPoint.dist(ee)<30;le&&qe?Q.length>0&&(this._swipePoint=ee,this._swipeTouch=Q[0].identifier):this.reset()}else this._tap.touchstart(w,B,Q)}touchmove(w,B,Q){if(this._tapTime){if(this._swipePoint){if(Q[0].identifier!==this._swipeTouch)return;let ee=B[0],le=ee.y-this._swipePoint.y;return this._swipePoint=ee,w.preventDefault(),this._active=!0,{zoomDelta:le/128}}}else this._tap.touchmove(w,B,Q)}touchend(w,B,Q){if(this._tapTime)this._swipePoint&&Q.length===0&&this.reset();else{let ee=this._tap.touchend(w,B,Q);ee&&(this._tapTime=w.timeStamp,this._tapPoint=ee)}}touchcancel(){this.reset()}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class Tn{constructor(w,B,Q){this._el=w,this._mousePan=B,this._touchPan=Q}enable(w){this._inertiaOptions=w||{},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()}}class Bn{constructor(w,B,Q){this._pitchWithRotate=w.pitchWithRotate,this._mouseRotate=B,this._mousePitch=Q}enable(){this._mouseRotate.enable(),this._pitchWithRotate&&this._mousePitch.enable()}disable(){this._mouseRotate.disable(),this._mousePitch.disable()}isEnabled(){return this._mouseRotate.isEnabled()&&(!this._pitchWithRotate||this._mousePitch.isEnabled())}isActive(){return this._mouseRotate.isActive()||this._mousePitch.isActive()}}class Zi{constructor(w,B,Q,ee){this._el=w,this._touchZoom=B,this._touchRotate=Q,this._tapDragZoom=ee,this._rotationDisabled=!1,this._enabled=!0}enable(w){this._touchZoom.enable(w),this._rotationDisabled||this._touchRotate.enable(w),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()}disableRotation(){this._rotationDisabled=!0,this._touchRotate.disable()}enableRotation(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&&this._touchRotate.enable()}}class $i{constructor(w,B){this._bypassKey=navigator.userAgent.indexOf("Mac")!==-1?"metaKey":"ctrlKey",this._map=w,this._options=B,this._enabled=!1}isActive(){return!1}reset(){}_setupUI(){if(this._container)return;let w=this._map.getCanvasContainer();w.classList.add("maplibregl-cooperative-gestures"),this._container=c.create("div","maplibregl-cooperative-gesture-screen",w);let B=this._map._getUIString("CooperativeGesturesHandler.WindowsHelpText");this._bypassKey==="metaKey"&&(B=this._map._getUIString("CooperativeGesturesHandler.MacHelpText"));let Q=this._map._getUIString("CooperativeGesturesHandler.MobileHelpText"),ee=document.createElement("div");ee.className="maplibregl-desktop-message",ee.textContent=B,this._container.appendChild(ee);let le=document.createElement("div");le.className="maplibregl-mobile-message",le.textContent=Q,this._container.appendChild(le),this._container.setAttribute("aria-hidden","true")}_destroyUI(){this._container&&(c.remove(this._container),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(w){return w[this._bypassKey]}notifyGestureBlocked(w,B){this._enabled&&(this._map.fire(new a.k("cooperativegestureprevented",{gestureType:w,originalEvent:B})),this._container.classList.add("maplibregl-show"),setTimeout(()=>{this._container.classList.remove("maplibregl-show")},100))}}let an=ue=>ue.zoom||ue.drag||ue.pitch||ue.rotate;class Di extends a.k{}function $n(ue){return ue.panDelta&&ue.panDelta.mag()||ue.zoomDelta||ue.bearingDelta||ue.pitchDelta}class ka{constructor(w,B){this.handleWindowEvent=ee=>{this.handleEvent(ee,`${ee.type}Window`)},this.handleEvent=(ee,le)=>{if(ee.type==="blur")return void this.stop(!0);this._updatingCamera=!0;let qe=ee.type==="renderFrame"?void 0:ee,Xe={needsRenderFrame:!1},ot={},Tt={},Kt=ee.touches,Jt=Kt?this._getMapTouches(Kt):void 0,xr=Jt?c.touchPos(this._map.getCanvas(),Jt):c.mousePos(this._map.getCanvas(),ee);for(let{handlerName:be,handler:Re,allowed:Be}of this._handlers){if(!Re.isEnabled())continue;let tt;this._blockedByActive(Tt,Be,be)?Re.reset():Re[le||ee.type]&&(tt=Re[le||ee.type](ee,xr,Jt),this.mergeHandlerResult(Xe,ot,tt,be,qe),tt&&tt.needsRenderFrame&&this._triggerRenderFrame()),(tt||Re.isActive())&&(Tt[be]=Re)}let Pr={};for(let be in this._previousActiveHandlers)Tt[be]||(Pr[be]=qe);this._previousActiveHandlers=Tt,(Object.keys(Pr).length||$n(Xe))&&(this._changes.push([Xe,ot,Pr]),this._triggerRenderFrame()),(Object.keys(Tt).length||$n(Xe))&&this._map._stop(!0),this._updatingCamera=!1;let{cameraAnimation:ve}=Xe;ve&&(this._inertia.clear(),this._fireEvents({},{},!0),this._changes=[],ve(this._map))},this._map=w,this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new Lf(w),this._bearingSnap=B.bearingSnap,this._previousActiveHandlers={},this._eventsInProgress={},this._addDefaultHandlers(B);let Q=this._el;this._listeners=[[Q,"touchstart",{passive:!0}],[Q,"touchmove",{passive:!1}],[Q,"touchend",void 0],[Q,"touchcancel",void 0],[Q,"mousedown",void 0],[Q,"mousemove",void 0],[Q,"mouseup",void 0],[document,"mousemove",{capture:!0}],[document,"mouseup",void 0],[Q,"mouseover",void 0],[Q,"mouseout",void 0],[Q,"dblclick",void 0],[Q,"click",void 0],[Q,"keydown",{capture:!1}],[Q,"keyup",void 0],[Q,"wheel",{passive:!1}],[Q,"contextmenu",void 0],[window,"blur",void 0]];for(let[ee,le,qe]of this._listeners)c.addEventListener(ee,le,ee===document?this.handleWindowEvent:this.handleEvent,qe)}destroy(){for(let[w,B,Q]of this._listeners)c.removeEventListener(w,B,w===document?this.handleWindowEvent:this.handleEvent,Q)}_addDefaultHandlers(w){let B=this._map,Q=B.getCanvasContainer();this._add("mapEvent",new Pf(B,w));let ee=B.boxZoom=new Cu(B,w);this._add("boxZoom",ee),w.interactive&&w.boxZoom&&ee.enable();let le=B.cooperativeGestures=new $i(B,w.cooperativeGestures);this._add("cooperativeGestures",le),w.cooperativeGestures&&le.enable();let qe=new zc(B),Xe=new Wi(B);B.doubleClickZoom=new Ei(Xe,qe),this._add("tapZoom",qe),this._add("clickZoom",Xe),w.interactive&&w.doubleClickZoom&&B.doubleClickZoom.enable();let ot=new hn;this._add("tapDragZoom",ot);let Tt=B.touchPitch=new Bc(B);this._add("touchPitch",Tt),w.interactive&&w.touchPitch&&B.touchPitch.enable(w.touchPitch);let Kt=Wl(w),Jt=ah(w);B.dragRotate=new Bn(w,Kt,Jt),this._add("mouseRotate",Kt,["mousePitch"]),this._add("mousePitch",Jt,["mouseRotate"]),w.interactive&&w.dragRotate&&B.dragRotate.enable();let xr=(({enable:tt,clickTolerance:We})=>{let it=new Xu({checkCorrectEvent:Dt=>c.mouseButton(Dt)===0&&!Dt.ctrlKey});return new Wu({clickTolerance:We,move:(Dt,Ht)=>({around:Ht,panDelta:Ht.sub(Dt)}),activateOnStart:!0,moveStateManager:it,enable:tt,assignEvents:Xf})})(w),Pr=new Zu(w,B);B.dragPan=new Tn(Q,xr,Pr),this._add("mousePan",xr),this._add("touchPan",Pr,["touchZoom","touchRotate"]),w.interactive&&w.dragPan&&B.dragPan.enable(w.dragPan);let ve=new cf,be=new pu;B.touchZoomRotate=new Zi(Q,be,ve,ot),this._add("touchRotate",ve,["touchPan","touchZoom"]),this._add("touchZoom",be,["touchPan","touchRotate"]),w.interactive&&w.touchZoomRotate&&B.touchZoomRotate.enable(w.touchZoomRotate);let Re=B.scrollZoom=new Kr(B,()=>this._triggerRenderFrame());this._add("scrollZoom",Re,["mousePan"]),w.interactive&&w.scrollZoom&&B.scrollZoom.enable(w.scrollZoom);let Be=B.keyboard=new Xt(B);this._add("keyboard",Be),w.interactive&&w.keyboard&&B.keyboard.enable(),this._add("blockableMapEvent",new Ls(B))}_add(w,B,Q){this._handlers.push({handlerName:w,handler:B,allowed:Q}),this._handlersById[w]=B}stop(w){if(!this._updatingCamera){for(let{handler:B}of this._handlers)B.reset();this._inertia.clear(),this._fireEvents({},{},w),this._changes=[]}}isActive(){for(let{handler:w}of this._handlers)if(w.isActive())return!0;return!1}isZooming(){return!!this._eventsInProgress.zoom||this._map.scrollZoom.isZooming()}isRotating(){return!!this._eventsInProgress.rotate}isMoving(){return!!an(this._eventsInProgress)||this.isZooming()}_blockedByActive(w,B,Q){for(let ee in w)if(ee!==Q&&(!B||B.indexOf(ee)<0))return!0;return!1}_getMapTouches(w){let B=[];for(let Q of w)this._el.contains(Q.target)&&B.push(Q);return B}mergeHandlerResult(w,B,Q,ee,le){if(!Q)return;a.e(w,Q);let qe={handlerName:ee,originalEvent:Q.originalEvent||le};Q.zoomDelta!==void 0&&(B.zoom=qe),Q.panDelta!==void 0&&(B.drag=qe),Q.pitchDelta!==void 0&&(B.pitch=qe),Q.bearingDelta!==void 0&&(B.rotate=qe)}_applyChanges(){let w={},B={},Q={};for(let[ee,le,qe]of this._changes)ee.panDelta&&(w.panDelta=(w.panDelta||new a.P(0,0))._add(ee.panDelta)),ee.zoomDelta&&(w.zoomDelta=(w.zoomDelta||0)+ee.zoomDelta),ee.bearingDelta&&(w.bearingDelta=(w.bearingDelta||0)+ee.bearingDelta),ee.pitchDelta&&(w.pitchDelta=(w.pitchDelta||0)+ee.pitchDelta),ee.around!==void 0&&(w.around=ee.around),ee.pinchAround!==void 0&&(w.pinchAround=ee.pinchAround),ee.noInertia&&(w.noInertia=ee.noInertia),a.e(B,le),a.e(Q,qe);this._updateMapTransform(w,B,Q),this._changes=[]}_updateMapTransform(w,B,Q){let ee=this._map,le=ee._getTransformForUpdate(),qe=ee.terrain;if(!($n(w)||qe&&this._terrainMovement))return this._fireEvents(B,Q,!0);let{panDelta:Xe,zoomDelta:ot,bearingDelta:Tt,pitchDelta:Kt,around:Jt,pinchAround:xr}=w;xr!==void 0&&(Jt=xr),ee._stop(!0),Jt=Jt||ee.transform.centerPoint;let Pr=le.pointLocation(Xe?Jt.sub(Xe):Jt);Tt&&(le.bearing+=Tt),Kt&&(le.pitch+=Kt),ot&&(le.zoom+=ot),qe?this._terrainMovement||!B.drag&&!B.zoom?B.drag&&this._terrainMovement?le.center=le.pointLocation(le.centerPoint.sub(Xe)):le.setLocationAtPoint(Pr,Jt):(this._terrainMovement=!0,this._map._elevationFreeze=!0,le.setLocationAtPoint(Pr,Jt)):le.setLocationAtPoint(Pr,Jt),ee._applyUpdatedTransform(le),this._map._update(),w.noInertia||this._inertia.record(w),this._fireEvents(B,Q,!0)}_fireEvents(w,B,Q){let ee=an(this._eventsInProgress),le=an(w),qe={};for(let Jt in w){let{originalEvent:xr}=w[Jt];this._eventsInProgress[Jt]||(qe[`${Jt}start`]=xr),this._eventsInProgress[Jt]=w[Jt]}!ee&&le&&this._fireEvent("movestart",le.originalEvent);for(let Jt in qe)this._fireEvent(Jt,qe[Jt]);le&&this._fireEvent("move",le.originalEvent);for(let Jt in w){let{originalEvent:xr}=w[Jt];this._fireEvent(Jt,xr)}let Xe={},ot;for(let Jt in this._eventsInProgress){let{handlerName:xr,originalEvent:Pr}=this._eventsInProgress[Jt];this._handlersById[xr].isActive()||(delete this._eventsInProgress[Jt],ot=B[xr]||Pr,Xe[`${Jt}end`]=ot)}for(let Jt in Xe)this._fireEvent(Jt,Xe[Jt]);let Tt=an(this._eventsInProgress),Kt=(ee||le)&&!Tt;if(Kt&&this._terrainMovement){this._map._elevationFreeze=!1,this._terrainMovement=!1;let Jt=this._map._getTransformForUpdate();Jt.recalculateZoom(this._map.terrain),this._map._applyUpdatedTransform(Jt)}if(Q&&Kt){this._updatingCamera=!0;let Jt=this._inertia._onMoveEnd(this._map.dragPan._inertiaOptions),xr=Pr=>Pr!==0&&-this._bearingSnap{delete this._frameId,this.handleEvent(new Di("renderFrame",{timeStamp:w})),this._applyChanges()})}_triggerRenderFrame(){this._frameId===void 0&&(this._frameId=this._requestFrame())}}class Ra extends a.E{constructor(w,B){super(),this._renderFrameCallback=()=>{let Q=Math.min((u.now()-this._easeStart)/this._easeOptions.duration,1);this._onEaseFrame(this._easeOptions.easing(Q)),Q<1&&this._easeFrameId?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()},this._moving=!1,this._zooming=!1,this.transform=w,this._bearingSnap=B.bearingSnap,this.on("moveend",()=>{delete this._requestedCameraState})}getCenter(){return new a.N(this.transform.center.lng,this.transform.center.lat)}setCenter(w,B){return this.jumpTo({center:w},B)}panBy(w,B,Q){return w=a.P.convert(w).mult(-1),this.panTo(this.transform.center,a.e({offset:w},B),Q)}panTo(w,B,Q){return this.easeTo(a.e({center:w},B),Q)}getZoom(){return this.transform.zoom}setZoom(w,B){return this.jumpTo({zoom:w},B),this}zoomTo(w,B,Q){return this.easeTo(a.e({zoom:w},B),Q)}zoomIn(w,B){return this.zoomTo(this.getZoom()+1,w,B),this}zoomOut(w,B){return this.zoomTo(this.getZoom()-1,w,B),this}getBearing(){return this.transform.bearing}setBearing(w,B){return this.jumpTo({bearing:w},B),this}getPadding(){return this.transform.padding}setPadding(w,B){return this.jumpTo({padding:w},B),this}rotateTo(w,B,Q){return this.easeTo(a.e({bearing:w},B),Q)}resetNorth(w,B){return this.rotateTo(0,a.e({duration:1e3},w),B),this}resetNorthPitch(w,B){return this.easeTo(a.e({bearing:0,pitch:0,duration:1e3},w),B),this}snapToNorth(w,B){return Math.abs(this.getBearing()){if(this._zooming&&(ee.zoom=a.y.number(le,Re,rr)),this._rotating&&(ee.bearing=a.y.number(qe,Tt,rr)),this._pitching&&(ee.pitch=a.y.number(Xe,Kt,rr)),this._padding&&(ee.interpolatePadding(ot,Jt,rr),Pr=ee.centerPoint.add(xr)),this.terrain&&!w.freezeElevation&&this._updateElevation(rr),it)ee.setLocationAtPoint(it,Dt);else{let dr=ee.zoomScale(ee.zoom-le),Sr=Re>le?Math.min(2,We):Math.max(.5,We),Or=Math.pow(Sr,1-rr),jr=ee.unproject(Be.add(tt.mult(rr*Or)).mult(dr));ee.setLocationAtPoint(ee.renderWorldCopies?jr.wrap():jr,Pr)}this._applyUpdatedTransform(ee),this._fireMoveEvents(B)},rr=>{this.terrain&&w.freezeElevation&&this._finalizeElevation(),this._afterEase(B,rr)},w),this}_prepareEase(w,B,Q={}){this._moving=!0,B||Q.moving||this.fire(new a.k("movestart",w)),this._zooming&&!Q.zooming&&this.fire(new a.k("zoomstart",w)),this._rotating&&!Q.rotating&&this.fire(new a.k("rotatestart",w)),this._pitching&&!Q.pitching&&this.fire(new a.k("pitchstart",w))}_prepareElevation(w){this._elevationCenter=w,this._elevationStart=this.transform.elevation,this._elevationTarget=this.terrain.getElevationForLngLatZoom(w,this.transform.tileZoom),this._elevationFreeze=!0}_updateElevation(w){this.transform.minElevationForCurrentTile=this.terrain.getMinTileElevationForLngLatZoom(this._elevationCenter,this.transform.tileZoom);let B=this.terrain.getElevationForLngLatZoom(this._elevationCenter,this.transform.tileZoom);if(w<1&&B!==this._elevationTarget){let Q=this._elevationTarget-this._elevationStart;this._elevationStart+=w*(Q-(B-(Q*w+this._elevationStart))/(1-w)),this._elevationTarget=B}this.transform.elevation=a.y.number(this._elevationStart,this._elevationTarget,w)}_finalizeElevation(){this._elevationFreeze=!1,this.transform.recalculateZoom(this.terrain)}_getTransformForUpdate(){return this.transformCameraUpdate||this.terrain?(this._requestedCameraState||(this._requestedCameraState=this.transform.clone()),this._requestedCameraState):this.transform}_elevateCameraIfInsideTerrain(w){let B=w.getCameraPosition(),Q=this.terrain.getElevationForLngLatZoom(B.lngLat,w.zoom);if(B.altitudethis._elevateCameraIfInsideTerrain(ee)),this.transformCameraUpdate&&B.push(ee=>this.transformCameraUpdate(ee)),!B.length)return;let Q=w.clone();for(let ee of B){let le=Q.clone(),{center:qe,zoom:Xe,pitch:ot,bearing:Tt,elevation:Kt}=ee(le);qe&&(le.center=qe),Xe!==void 0&&(le.zoom=Xe),ot!==void 0&&(le.pitch=ot),Tt!==void 0&&(le.bearing=Tt),Kt!==void 0&&(le.elevation=Kt),Q.apply(le)}this.transform.apply(Q)}_fireMoveEvents(w){this.fire(new a.k("move",w)),this._zooming&&this.fire(new a.k("zoom",w)),this._rotating&&this.fire(new a.k("rotate",w)),this._pitching&&this.fire(new a.k("pitch",w))}_afterEase(w,B){if(this._easeId&&B&&this._easeId===B)return;delete this._easeId;let Q=this._zooming,ee=this._rotating,le=this._pitching;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._padding=!1,Q&&this.fire(new a.k("zoomend",w)),ee&&this.fire(new a.k("rotateend",w)),le&&this.fire(new a.k("pitchend",w)),this.fire(new a.k("moveend",w))}flyTo(w,B){var Q;if(!w.essential&&u.prefersReducedMotion){let In=a.M(w,["center","zoom","bearing","pitch","around"]);return this.jumpTo(In,B)}this.stop(),w=a.e({offset:[0,0],speed:1.2,curve:1.42,easing:a.b9},w);let ee=this._getTransformForUpdate(),le=ee.zoom,qe=ee.bearing,Xe=ee.pitch,ot=ee.padding,Tt="bearing"in w?this._normalizeBearing(w.bearing,qe):qe,Kt="pitch"in w?+w.pitch:Xe,Jt="padding"in w?w.padding:ee.padding,xr=a.P.convert(w.offset),Pr=ee.centerPoint.add(xr),ve=ee.pointLocation(Pr),{center:be,zoom:Re}=ee.getConstrained(a.N.convert(w.center||ve),(Q=w.zoom)!==null&&Q!==void 0?Q:le);this._normalizeCenter(be,ee);let Be=ee.zoomScale(Re-le),tt=ee.project(ve),We=ee.project(be).sub(tt),it=w.curve,Dt=Math.max(ee.width,ee.height),Ht=Dt/Be,rr=We.mag();if("minZoom"in w){let In=a.ac(Math.min(w.minZoom,le,Re),ee.minZoom,ee.maxZoom),Kn=Dt/ee.zoomScale(In-le);it=Math.sqrt(Kn/rr*2)}let dr=it*it;function Sr(In){let Kn=(Ht*Ht-Dt*Dt+(In?-1:1)*dr*dr*rr*rr)/(2*(In?Ht:Dt)*dr*rr);return Math.log(Math.sqrt(Kn*Kn+1)-Kn)}function Or(In){return(Math.exp(In)-Math.exp(-In))/2}function jr(In){return(Math.exp(In)+Math.exp(-In))/2}let ii=Sr(!1),Li=function(In){return jr(ii)/jr(ii+it*In)},un=function(In){return Dt*((jr(ii)*(Or(Kn=ii+it*In)/jr(Kn))-Or(ii))/dr)/rr;var Kn},sn=(Sr(!0)-ii)/it;if(Math.abs(rr)<1e-6||!isFinite(sn)){if(Math.abs(Dt-Ht)<1e-6)return this.easeTo(w,B);let In=Ht0,Li=Kn=>Math.exp(In*it*Kn)}return w.duration="duration"in w?+w.duration:1e3*sn/("screenSpeed"in w?+w.screenSpeed/it:+w.speed),w.maxDuration&&w.duration>w.maxDuration&&(w.duration=0),this._zooming=!0,this._rotating=qe!==Tt,this._pitching=Kt!==Xe,this._padding=!ee.isPaddingEqual(Jt),this._prepareEase(B,!1),this.terrain&&this._prepareElevation(be),this._ease(In=>{let Kn=In*sn,Aa=1/Li(Kn);ee.zoom=In===1?Re:le+ee.scaleZoom(Aa),this._rotating&&(ee.bearing=a.y.number(qe,Tt,In)),this._pitching&&(ee.pitch=a.y.number(Xe,Kt,In)),this._padding&&(ee.interpolatePadding(ot,Jt,In),Pr=ee.centerPoint.add(xr)),this.terrain&&!w.freezeElevation&&this._updateElevation(In);let fa=In===1?be:ee.unproject(tt.add(We.mult(un(Kn))).mult(Aa));ee.setLocationAtPoint(ee.renderWorldCopies?fa.wrap():fa,Pr),this._applyUpdatedTransform(ee),this._fireMoveEvents(B)},()=>{this.terrain&&w.freezeElevation&&this._finalizeElevation(),this._afterEase(B)},w),this}isEasing(){return!!this._easeFrameId}stop(){return this._stop()}_stop(w,B){var Q;if(this._easeFrameId&&(this._cancelRenderFrame(this._easeFrameId),delete this._easeFrameId,delete this._onEaseFrame),this._onEaseEnd){let ee=this._onEaseEnd;delete this._onEaseEnd,ee.call(this,B)}return w||(Q=this.handlers)===null||Q===void 0||Q.stop(!1),this}_ease(w,B,Q){Q.animate===!1||Q.duration===0?(w(1),B()):(this._easeStart=u.now(),this._easeOptions=Q,this._onEaseFrame=w,this._onEaseEnd=B,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))}_normalizeBearing(w,B){w=a.b3(w,-180,180);let Q=Math.abs(w-B);return Math.abs(w-360-B)180?-360:Q<-180?360:0}queryTerrainElevation(w){return this.terrain?this.terrain.getElevationForLngLatZoom(a.N.convert(w),this.transform.tileZoom)-this.transform.elevation:null}}let La={compact:!0,customAttribution:'MapLibre'};class Na{constructor(w=La){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=B=>{!B||B.sourceDataType!=="metadata"&&B.sourceDataType!=="visibility"&&B.dataType!=="style"&&B.type!=="terrain"||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=w}getDefaultPosition(){return"bottom-right"}onAdd(w){return this._map=w,this._compact=this.options.compact,this._container=c.create("details","maplibregl-ctrl maplibregl-ctrl-attrib"),this._compactButton=c.create("summary","maplibregl-ctrl-attrib-button",this._container),this._compactButton.addEventListener("click",this._toggleAttribution),this._setElementTitle(this._compactButton,"ToggleAttribution"),this._innerContainer=c.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(){c.remove(this._container),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(w,B){let Q=this._map._getUIString(`AttributionControl.${B}`);w.title=Q,w.setAttribute("aria-label",Q)}_updateAttributions(){if(!this._map.style)return;let w=[];if(this.options.customAttribution&&(Array.isArray(this.options.customAttribution)?w=w.concat(this.options.customAttribution.map(ee=>typeof ee!="string"?"":ee)):typeof this.options.customAttribution=="string"&&w.push(this.options.customAttribution)),this._map.style.stylesheet){let ee=this._map.style.stylesheet;this.styleOwner=ee.owner,this.styleId=ee.id}let B=this._map.style.sourceCaches;for(let ee in B){let le=B[ee];if(le.used||le.usedForTerrain){let qe=le.getSource();qe.attribution&&w.indexOf(qe.attribution)<0&&w.push(qe.attribution)}}w=w.filter(ee=>String(ee).trim()),w.sort((ee,le)=>ee.length-le.length),w=w.filter((ee,le)=>{for(let qe=le+1;qe=0)return!1;return!0});let Q=w.join(" | ");Q!==this._attribHTML&&(this._attribHTML=Q,w.length?(this._innerContainer.innerHTML=Q,this._container.classList.remove("maplibregl-attrib-empty")):this._container.classList.add("maplibregl-attrib-empty"),this._updateCompact(),this._editLink=null)}}class Yn{constructor(w={}){this._updateCompact=()=>{let B=this._container.children;if(B.length){let Q=B[0];this._map.getCanvasContainer().offsetWidth<=640||this._compact?this._compact!==!1&&Q.classList.add("maplibregl-compact"):Q.classList.remove("maplibregl-compact")}},this.options=w}getDefaultPosition(){return"bottom-left"}onAdd(w){this._map=w,this._compact=this.options&&this.options.compact,this._container=c.create("div","maplibregl-ctrl");let B=c.create("a","maplibregl-ctrl-logo");return B.target="_blank",B.rel="noopener nofollow",B.href="https://maplibre.org/",B.setAttribute("aria-label",this._map._getUIString("LogoControl.Title")),B.setAttribute("rel","noopener nofollow"),this._container.appendChild(B),this._container.style.display="block",this._map.on("resize",this._updateCompact),this._updateCompact(),this._container}onRemove(){c.remove(this._container),this._map.off("resize",this._updateCompact),this._map=void 0,this._compact=void 0}}class zn{constructor(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1}add(w){let B=++this._id;return this._queue.push({callback:w,id:B,cancelled:!1}),B}remove(w){let B=this._currentlyRunning,Q=B?this._queue.concat(B):this._queue;for(let ee of Q)if(ee.id===w)return void(ee.cancelled=!0)}run(w=0){if(this._currentlyRunning)throw new Error("Attempting to run(), but is already running.");let B=this._currentlyRunning=this._queue;this._queue=[];for(let Q of B)if(!Q.cancelled&&(Q.callback(w),this._cleared))break;this._cleared=!1,this._currentlyRunning=!1}clear(){this._currentlyRunning&&(this._cleared=!0),this._queue=[]}}var Ka=a.Y([{name:"a_pos3d",type:"Int16",components:3}]);class bo extends a.E{constructor(w){super(),this.sourceCache=w,this._tiles={},this._renderableTilesKeys=[],this._sourceTileCache={},this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.deltaZoom=1,w.usedForTerrain=!0,w.tileSize=this.tileSize*2**this.deltaZoom}destruct(){this.sourceCache.usedForTerrain=!1,this.sourceCache.tileSize=null}update(w,B){this.sourceCache.update(w,B),this._renderableTilesKeys=[];let Q={};for(let ee of w.coveringTiles({tileSize:this.tileSize,minzoom:this.minzoom,maxzoom:this.maxzoom,reparseOverscaled:!1,terrain:B}))Q[ee.key]=!0,this._renderableTilesKeys.push(ee.key),this._tiles[ee.key]||(ee.posMatrix=new Float64Array(16),a.aP(ee.posMatrix,0,a.X,0,a.X,0,1),this._tiles[ee.key]=new Ut(ee,this.tileSize));for(let ee in this._tiles)Q[ee]||delete this._tiles[ee]}freeRtt(w){for(let B in this._tiles){let Q=this._tiles[B];(!w||Q.tileID.equals(w)||Q.tileID.isChildOf(w)||w.isChildOf(Q.tileID))&&(Q.rtt=[])}}getRenderableTiles(){return this._renderableTilesKeys.map(w=>this.getTileByID(w))}getTileByID(w){return this._tiles[w]}getTerrainCoords(w){let B={};for(let Q of this._renderableTilesKeys){let ee=this._tiles[Q].tileID;if(ee.canonical.equals(w.canonical)){let le=w.clone();le.posMatrix=new Float64Array(16),a.aP(le.posMatrix,0,a.X,0,a.X,0,1),B[Q]=le}else if(ee.canonical.isChildOf(w.canonical)){let le=w.clone();le.posMatrix=new Float64Array(16);let qe=ee.canonical.z-w.canonical.z,Xe=ee.canonical.x-(ee.canonical.x>>qe<>qe<>qe;a.aP(le.posMatrix,0,Tt,0,Tt,0,1),a.J(le.posMatrix,le.posMatrix,[-Xe*Tt,-ot*Tt,0]),B[Q]=le}else if(w.canonical.isChildOf(ee.canonical)){let le=w.clone();le.posMatrix=new Float64Array(16);let qe=w.canonical.z-ee.canonical.z,Xe=w.canonical.x-(w.canonical.x>>qe<>qe<>qe;a.aP(le.posMatrix,0,a.X,0,a.X,0,1),a.J(le.posMatrix,le.posMatrix,[Xe*Tt,ot*Tt,0]),a.K(le.posMatrix,le.posMatrix,[1/2**qe,1/2**qe,0]),B[Q]=le}}return B}getSourceTile(w,B){let Q=this.sourceCache._source,ee=w.overscaledZ-this.deltaZoom;if(ee>Q.maxzoom&&(ee=Q.maxzoom),ee=Q.minzoom&&(!le||!le.dem);)le=this.sourceCache.getTileByID(w.scaledTo(ee--).key);return le}tilesAfterTime(w=Date.now()){return Object.values(this._tiles).filter(B=>B.timeAdded>=w)}}class Xo{constructor(w,B,Q){this.painter=w,this.sourceCache=new bo(B),this.options=Q,this.exaggeration=typeof Q.exaggeration=="number"?Q.exaggeration:1,this.qualityFactor=2,this.meshSize=128,this._demMatrixCache={},this.coordsIndex=[],this._coordsTextureSize=1024}getDEMElevation(w,B,Q,ee=a.X){var le;if(!(B>=0&&B=0&&Qw.canonical.z&&(w.canonical.z>=ee?le=w.canonical.z-ee:a.w("cannot calculate elevation if elevation maxzoom > source.maxzoom"));let qe=w.canonical.x-(w.canonical.x>>le<>le<>8<<4|le>>8,B[qe+3]=0;let Q=new a.R({width:this._coordsTextureSize,height:this._coordsTextureSize},new Uint8Array(B.buffer)),ee=new g(w,Q,w.gl.RGBA,{premultiply:!1});return ee.bind(w.gl.NEAREST,w.gl.CLAMP_TO_EDGE),this._coordsTexture=ee,ee}pointCoordinate(w){this.painter.maybeDrawDepthAndCoords(!0);let B=new Uint8Array(4),Q=this.painter.context,ee=Q.gl,le=Math.round(w.x*this.painter.pixelRatio/devicePixelRatio),qe=Math.round(w.y*this.painter.pixelRatio/devicePixelRatio),Xe=Math.round(this.painter.height/devicePixelRatio);Q.bindFramebuffer.set(this.getFramebuffer("coords").framebuffer),ee.readPixels(le,Xe-qe-1,1,1,ee.RGBA,ee.UNSIGNED_BYTE,B),Q.bindFramebuffer.set(null);let ot=B[0]+(B[2]>>4<<8),Tt=B[1]+((15&B[2])<<8),Kt=this.coordsIndex[255-B[3]],Jt=Kt&&this.sourceCache.getTileByID(Kt);if(!Jt)return null;let xr=this._coordsTextureSize,Pr=(1<w.id!==B),this._recentlyUsed.push(w.id)}stampObject(w){w.stamp=++this._stamp}getOrCreateFreeObject(){for(let B of this._recentlyUsed)if(!this._objects[B].inUse)return this._objects[B];if(this._objects.length>=this._size)throw new Error("No free RenderPool available, call freeAllObjects() required!");let w=this._createObject(this._objects.length);return this._objects.push(w),w}freeObject(w){w.inUse=!1}freeAllObjects(){for(let w of this._objects)this.freeObject(w)}isFull(){return!(this._objects.length!w.inUse)===!1}}let os={background:!0,fill:!0,line:!0,raster:!0,hillshade:!0};class Ts{constructor(w,B){this.painter=w,this.terrain=B,this.pool=new Ms(w.context,30,B.sourceCache.tileSize*B.qualityFactor)}destruct(){this.pool.destruct()}getTexture(w){return this.pool.getObjectForId(w.rtt[this._stacks.length-1].id).texture}prepareForRender(w,B){this._stacks=[],this._prevType=null,this._rttTiles=[],this._renderableTiles=this.terrain.sourceCache.getRenderableTiles(),this._renderableLayerIds=w._order.filter(Q=>!w._layers[Q].isHidden(B)),this._coordsDescendingInv={};for(let Q in w.sourceCaches){this._coordsDescendingInv[Q]={};let ee=w.sourceCaches[Q].getVisibleCoordinates();for(let le of ee){let qe=this.terrain.sourceCache.getTerrainCoords(le);for(let Xe in qe)this._coordsDescendingInv[Q][Xe]||(this._coordsDescendingInv[Q][Xe]=[]),this._coordsDescendingInv[Q][Xe].push(qe[Xe])}}this._coordsDescendingInvStr={};for(let Q of w._order){let ee=w._layers[Q],le=ee.source;if(os[ee.type]&&!this._coordsDescendingInvStr[le]){this._coordsDescendingInvStr[le]={};for(let qe in this._coordsDescendingInv[le])this._coordsDescendingInvStr[le][qe]=this._coordsDescendingInv[le][qe].map(Xe=>Xe.key).sort().join()}}for(let Q of this._renderableTiles)for(let ee in this._coordsDescendingInvStr){let le=this._coordsDescendingInvStr[ee][Q.tileID.key];le&&le!==Q.rttCoords[ee]&&(Q.rtt=[])}}renderLayer(w){if(w.isHidden(this.painter.transform.zoom))return!1;let B=w.type,Q=this.painter,ee=this._renderableLayerIds[this._renderableLayerIds.length-1]===w.id;if(os[B]&&(this._prevType&&os[this._prevType]||this._stacks.push([]),this._prevType=B,this._stacks[this._stacks.length-1].push(w.id),!ee))return!0;if(os[this._prevType]||os[B]&&ee){this._prevType=B;let le=this._stacks.length-1,qe=this._stacks[le]||[];for(let Xe of this._renderableTiles){if(this.pool.isFull()&&(Ws(this.painter,this.terrain,this._rttTiles),this._rttTiles=[],this.pool.freeAllObjects()),this._rttTiles.push(Xe),Xe.rtt[le]){let Tt=this.pool.getObjectForId(Xe.rtt[le].id);if(Tt.stamp===Xe.rtt[le].stamp){this.pool.useObject(Tt);continue}}let ot=this.pool.getOrCreateFreeObject();this.pool.useObject(ot),this.pool.stampObject(ot),Xe.rtt[le]={id:ot.id,stamp:ot.stamp},Q.context.bindFramebuffer.set(ot.fbo.framebuffer),Q.context.clear({color:a.aM.transparent,stencil:0}),Q.currentStencilSource=void 0;for(let Tt=0;Tt{ue.touchstart=ue.dragStart,ue.touchmoveWindow=ue.dragMove,ue.touchend=ue.dragEnd},va={showCompass:!0,showZoom:!0,visualizePitch:!1};class no{constructor(w,B,Q=!1){this.mousedown=qe=>{this.startMouse(a.e({},qe,{ctrlKey:!0,preventDefault:()=>qe.preventDefault()}),c.mousePos(this.element,qe)),c.addEventListener(window,"mousemove",this.mousemove),c.addEventListener(window,"mouseup",this.mouseup)},this.mousemove=qe=>{this.moveMouse(qe,c.mousePos(this.element,qe))},this.mouseup=qe=>{this.mouseRotate.dragEnd(qe),this.mousePitch&&this.mousePitch.dragEnd(qe),this.offTemp()},this.touchstart=qe=>{qe.targetTouches.length!==1?this.reset():(this._startPos=this._lastPos=c.touchPos(this.element,qe.targetTouches)[0],this.startTouch(qe,this._startPos),c.addEventListener(window,"touchmove",this.touchmove,{passive:!1}),c.addEventListener(window,"touchend",this.touchend))},this.touchmove=qe=>{qe.targetTouches.length!==1?this.reset():(this._lastPos=c.touchPos(this.element,qe.targetTouches)[0],this.moveTouch(qe,this._lastPos))},this.touchend=qe=>{qe.targetTouches.length===0&&this._startPos&&this._lastPos&&this._startPos.dist(this._lastPos){this.mouseRotate.reset(),this.mousePitch&&this.mousePitch.reset(),this.touchRotate.reset(),this.touchPitch&&this.touchPitch.reset(),delete this._startPos,delete this._lastPos,this.offTemp()},this._clickTolerance=10;let ee=w.dragRotate._mouseRotate.getClickTolerance(),le=w.dragRotate._mousePitch.getClickTolerance();this.element=B,this.mouseRotate=Wl({clickTolerance:ee,enable:!0}),this.touchRotate=(({enable:qe,clickTolerance:Xe,bearingDegreesPerPixelMoved:ot=.8})=>{let Tt=new uf;return new Wu({clickTolerance:Xe,move:(Kt,Jt)=>({bearingDelta:(Jt.x-Kt.x)*ot}),moveStateManager:Tt,enable:qe,assignEvents:Ps})})({clickTolerance:ee,enable:!0}),this.map=w,Q&&(this.mousePitch=ah({clickTolerance:le,enable:!0}),this.touchPitch=(({enable:qe,clickTolerance:Xe,pitchDegreesPerPixelMoved:ot=-.5})=>{let Tt=new uf;return new Wu({clickTolerance:Xe,move:(Kt,Jt)=>({pitchDelta:(Jt.y-Kt.y)*ot}),moveStateManager:Tt,enable:qe,assignEvents:Ps})})({clickTolerance:le,enable:!0})),c.addEventListener(B,"mousedown",this.mousedown),c.addEventListener(B,"touchstart",this.touchstart,{passive:!1}),c.addEventListener(B,"touchcancel",this.reset)}startMouse(w,B){this.mouseRotate.dragStart(w,B),this.mousePitch&&this.mousePitch.dragStart(w,B),c.disableDrag()}startTouch(w,B){this.touchRotate.dragStart(w,B),this.touchPitch&&this.touchPitch.dragStart(w,B),c.disableDrag()}moveMouse(w,B){let Q=this.map,{bearingDelta:ee}=this.mouseRotate.dragMove(w,B)||{};if(ee&&Q.setBearing(Q.getBearing()+ee),this.mousePitch){let{pitchDelta:le}=this.mousePitch.dragMove(w,B)||{};le&&Q.setPitch(Q.getPitch()+le)}}moveTouch(w,B){let Q=this.map,{bearingDelta:ee}=this.touchRotate.dragMove(w,B)||{};if(ee&&Q.setBearing(Q.getBearing()+ee),this.touchPitch){let{pitchDelta:le}=this.touchPitch.dragMove(w,B)||{};le&&Q.setPitch(Q.getPitch()+le)}}off(){let w=this.element;c.removeEventListener(w,"mousedown",this.mousedown),c.removeEventListener(w,"touchstart",this.touchstart,{passive:!1}),c.removeEventListener(window,"touchmove",this.touchmove,{passive:!1}),c.removeEventListener(window,"touchend",this.touchend),c.removeEventListener(w,"touchcancel",this.reset),this.offTemp()}offTemp(){c.enableDrag(),c.removeEventListener(window,"mousemove",this.mousemove),c.removeEventListener(window,"mouseup",this.mouseup),c.removeEventListener(window,"touchmove",this.touchmove,{passive:!1}),c.removeEventListener(window,"touchend",this.touchend)}}let _s;function is(ue,w,B){let Q=new a.N(ue.lng,ue.lat);if(ue=new a.N(ue.lng,ue.lat),w){let ee=new a.N(ue.lng-360,ue.lat),le=new a.N(ue.lng+360,ue.lat),qe=B.locationPoint(ue).distSqr(w);B.locationPoint(ee).distSqr(w)180;){let ee=B.locationPoint(ue);if(ee.x>=0&&ee.y>=0&&ee.x<=B.width&&ee.y<=B.height)break;ue.lng>B.center.lng?ue.lng-=360:ue.lng+=360}return ue.lng!==Q.lng&&B.locationPoint(ue).y>B.height/2-B.getHorizon()?ue:Q}let $l={center:"translate(-50%,-50%)",top:"translate(-50%,0)","top-left":"translate(0,0)","top-right":"translate(-100%,0)",bottom:"translate(-50%,-100%)","bottom-left":"translate(0,-100%)","bottom-right":"translate(-100%,-100%)",left:"translate(0,-50%)",right:"translate(-100%,-50%)"};function ku(ue,w,B){let Q=ue.classList;for(let ee in $l)Q.remove(`maplibregl-${B}-anchor-${ee}`);Q.add(`maplibregl-${B}-anchor-${w}`)}class Yu extends a.E{constructor(w){if(super(),this._onKeyPress=B=>{let Q=B.code,ee=B.charCode||B.keyCode;Q!=="Space"&&Q!=="Enter"&&ee!==32&&ee!==13||this.togglePopup()},this._onMapClick=B=>{let Q=B.originalEvent.target,ee=this._element;this._popup&&(Q===ee||ee.contains(Q))&&this.togglePopup()},this._update=B=>{var Q;if(!this._map)return;let ee=this._map.loaded()&&!this._map.isMoving();((B==null?void 0:B.type)==="terrain"||(B==null?void 0:B.type)==="render"&&!ee)&&this._map.once("render",this._update),this._lngLat=this._map.transform.renderWorldCopies?is(this._lngLat,this._flatPos,this._map.transform):(Q=this._lngLat)===null||Q===void 0?void 0:Q.wrap(),this._flatPos=this._pos=this._map.project(this._lngLat)._add(this._offset),this._map.terrain&&(this._flatPos=this._map.transform.locationPoint(this._lngLat)._add(this._offset));let le="";this._rotationAlignment==="viewport"||this._rotationAlignment==="auto"?le=`rotateZ(${this._rotation}deg)`:this._rotationAlignment==="map"&&(le=`rotateZ(${this._rotation-this._map.getBearing()}deg)`);let qe="";this._pitchAlignment==="viewport"||this._pitchAlignment==="auto"?qe="rotateX(0deg)":this._pitchAlignment==="map"&&(qe=`rotateX(${this._map.getPitch()}deg)`),this._subpixelPositioning||B&&B.type!=="moveend"||(this._pos=this._pos.round()),c.setTransform(this._element,`${$l[this._anchor]} translate(${this._pos.x}px, ${this._pos.y}px) ${qe} ${le}`),u.frameAsync(new AbortController).then(()=>{this._updateOpacity(B&&B.type==="moveend")}).catch(()=>{})},this._onMove=B=>{if(!this._isDragging){let Q=this._clickTolerance||this._map._clickTolerance;this._isDragging=B.point.dist(this._pointerdownPos)>=Q}this._isDragging&&(this._pos=B.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 a.k("dragstart"))),this.fire(new a.k("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 a.k("dragend")),this._state="inactive"},this._addDragHandler=B=>{this._element.contains(B.originalEvent.target)&&(B.preventDefault(),this._positionDelta=B.point.sub(this._pos).add(this._offset),this._pointerdownPos=B.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=w&&w.anchor||"center",this._color=w&&w.color||"#3FB1CE",this._scale=w&&w.scale||1,this._draggable=w&&w.draggable||!1,this._clickTolerance=w&&w.clickTolerance||0,this._subpixelPositioning=w&&w.subpixelPositioning||!1,this._isDragging=!1,this._state="inactive",this._rotation=w&&w.rotation||0,this._rotationAlignment=w&&w.rotationAlignment||"auto",this._pitchAlignment=w&&w.pitchAlignment&&w.pitchAlignment!=="auto"?w.pitchAlignment:this._rotationAlignment,this.setOpacity(),this.setOpacity(w==null?void 0:w.opacity,w==null?void 0:w.opacityWhenCovered),w&&w.element)this._element=w.element,this._offset=a.P.convert(w&&w.offset||[0,0]);else{this._defaultMarker=!0,this._element=c.create("div");let B=c.createNS("http://www.w3.org/2000/svg","svg"),Q=41,ee=27;B.setAttributeNS(null,"display","block"),B.setAttributeNS(null,"height",`${Q}px`),B.setAttributeNS(null,"width",`${ee}px`),B.setAttributeNS(null,"viewBox",`0 0 ${ee} ${Q}`);let le=c.createNS("http://www.w3.org/2000/svg","g");le.setAttributeNS(null,"stroke","none"),le.setAttributeNS(null,"stroke-width","1"),le.setAttributeNS(null,"fill","none"),le.setAttributeNS(null,"fill-rule","evenodd");let qe=c.createNS("http://www.w3.org/2000/svg","g");qe.setAttributeNS(null,"fill-rule","nonzero");let Xe=c.createNS("http://www.w3.org/2000/svg","g");Xe.setAttributeNS(null,"transform","translate(3.0, 29.0)"),Xe.setAttributeNS(null,"fill","#000000");let ot=[{rx:"10.5",ry:"5.25002273"},{rx:"10.5",ry:"5.25002273"},{rx:"9.5",ry:"4.77275007"},{rx:"8.5",ry:"4.29549936"},{rx:"7.5",ry:"3.81822308"},{rx:"6.5",ry:"3.34094679"},{rx:"5.5",ry:"2.86367051"},{rx:"4.5",ry:"2.38636864"}];for(let Be of ot){let tt=c.createNS("http://www.w3.org/2000/svg","ellipse");tt.setAttributeNS(null,"opacity","0.04"),tt.setAttributeNS(null,"cx","10.5"),tt.setAttributeNS(null,"cy","5.80029008"),tt.setAttributeNS(null,"rx",Be.rx),tt.setAttributeNS(null,"ry",Be.ry),Xe.appendChild(tt)}let Tt=c.createNS("http://www.w3.org/2000/svg","g");Tt.setAttributeNS(null,"fill",this._color);let Kt=c.createNS("http://www.w3.org/2000/svg","path");Kt.setAttributeNS(null,"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"),Tt.appendChild(Kt);let Jt=c.createNS("http://www.w3.org/2000/svg","g");Jt.setAttributeNS(null,"opacity","0.25"),Jt.setAttributeNS(null,"fill","#000000");let xr=c.createNS("http://www.w3.org/2000/svg","path");xr.setAttributeNS(null,"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"),Jt.appendChild(xr);let Pr=c.createNS("http://www.w3.org/2000/svg","g");Pr.setAttributeNS(null,"transform","translate(6.0, 7.0)"),Pr.setAttributeNS(null,"fill","#FFFFFF");let ve=c.createNS("http://www.w3.org/2000/svg","g");ve.setAttributeNS(null,"transform","translate(8.0, 8.0)");let be=c.createNS("http://www.w3.org/2000/svg","circle");be.setAttributeNS(null,"fill","#000000"),be.setAttributeNS(null,"opacity","0.25"),be.setAttributeNS(null,"cx","5.5"),be.setAttributeNS(null,"cy","5.5"),be.setAttributeNS(null,"r","5.4999962");let Re=c.createNS("http://www.w3.org/2000/svg","circle");Re.setAttributeNS(null,"fill","#FFFFFF"),Re.setAttributeNS(null,"cx","5.5"),Re.setAttributeNS(null,"cy","5.5"),Re.setAttributeNS(null,"r","5.4999962"),ve.appendChild(be),ve.appendChild(Re),qe.appendChild(Xe),qe.appendChild(Tt),qe.appendChild(Jt),qe.appendChild(Pr),qe.appendChild(ve),B.appendChild(qe),B.setAttributeNS(null,"height",Q*this._scale+"px"),B.setAttributeNS(null,"width",ee*this._scale+"px"),this._element.appendChild(B),this._offset=a.P.convert(w&&w.offset||[0,-14])}if(this._element.classList.add("maplibregl-marker"),this._element.addEventListener("dragstart",B=>{B.preventDefault()}),this._element.addEventListener("mousedown",B=>{B.preventDefault()}),ku(this._element,this._anchor,"marker"),w&&w.className)for(let B of w.className.split(" "))this._element.classList.add(B);this._popup=null}addTo(w){return this.remove(),this._map=w,this._element.setAttribute("aria-label",w._getUIString("Marker.Title")),w.getCanvasContainer().appendChild(this._element),w.on("move",this._update),w.on("moveend",this._update),w.on("terrain",this._update),this.setDraggable(this._draggable),this._update(),this._map.on("click",this._onMapClick),this}remove(){return this._opacityTimeout&&(clearTimeout(this._opacityTimeout),delete this._opacityTimeout),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("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),c.remove(this._element),this._popup&&this._popup.remove(),this}getLngLat(){return this._lngLat}setLngLat(w){return this._lngLat=a.N.convert(w),this._pos=null,this._popup&&this._popup.setLngLat(this._lngLat),this._update(),this}getElement(){return this._element}setPopup(w){if(this._popup&&(this._popup.remove(),this._popup=null,this._element.removeEventListener("keypress",this._onKeyPress),this._originalTabIndex||this._element.removeAttribute("tabindex")),w){if(!("offset"in w.options)){let ee=Math.abs(13.5)/Math.SQRT2;w.options.offset=this._defaultMarker?{top:[0,0],"top-left":[0,0],"top-right":[0,0],bottom:[0,-38.1],"bottom-left":[ee,-1*(38.1-13.5+ee)],"bottom-right":[-ee,-1*(38.1-13.5+ee)],left:[13.5,-1*(38.1-13.5)],right:[-13.5,-1*(38.1-13.5)]}:this._offset}this._popup=w,this._originalTabIndex=this._element.getAttribute("tabindex"),this._originalTabIndex||this._element.setAttribute("tabindex","0"),this._element.addEventListener("keypress",this._onKeyPress)}return this}setSubpixelPositioning(w){return this._subpixelPositioning=w,this}getPopup(){return this._popup}togglePopup(){let w=this._popup;return this._element.style.opacity===this._opacityWhenCovered?this:w?(w.isOpen()?w.remove():(w.setLngLat(this._lngLat),w.addTo(this._map)),this):this}_updateOpacity(w=!1){var B,Q;if(!(!((B=this._map)===null||B===void 0)&&B.terrain))return void(this._element.style.opacity!==this._opacity&&(this._element.style.opacity=this._opacity));if(w)this._opacityTimeout=null;else{if(this._opacityTimeout)return;this._opacityTimeout=setTimeout(()=>{this._opacityTimeout=null},100)}let ee=this._map,le=ee.terrain.depthAtPoint(this._pos),qe=ee.terrain.getElevationForLngLatZoom(this._lngLat,ee.transform.tileZoom);if(ee.transform.lngLatToCameraDepth(this._lngLat,qe)-le<.006)return void(this._element.style.opacity=this._opacity);let Xe=-this._offset.y/ee.transform._pixelPerMeter,ot=Math.sin(ee.getPitch()*Math.PI/180)*Xe,Tt=ee.terrain.depthAtPoint(new a.P(this._pos.x,this._pos.y-this._offset.y)),Kt=ee.transform.lngLatToCameraDepth(this._lngLat,qe+ot)-Tt>.006;!((Q=this._popup)===null||Q===void 0)&&Q.isOpen()&&Kt&&this._popup.remove(),this._element.style.opacity=Kt?this._opacityWhenCovered:this._opacity}getOffset(){return this._offset}setOffset(w){return this._offset=a.P.convert(w),this._update(),this}addClassName(w){this._element.classList.add(w)}removeClassName(w){this._element.classList.remove(w)}toggleClassName(w){return this._element.classList.toggle(w)}setDraggable(w){return this._draggable=!!w,this._map&&(w?(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}isDraggable(){return this._draggable}setRotation(w){return this._rotation=w||0,this._update(),this}getRotation(){return this._rotation}setRotationAlignment(w){return this._rotationAlignment=w||"auto",this._update(),this}getRotationAlignment(){return this._rotationAlignment}setPitchAlignment(w){return this._pitchAlignment=w&&w!=="auto"?w:this._rotationAlignment,this._update(),this}getPitchAlignment(){return this._pitchAlignment}setOpacity(w,B){return w===void 0&&B===void 0&&(this._opacity="1",this._opacityWhenCovered="0.2"),w!==void 0&&(this._opacity=w),B!==void 0&&(this._opacityWhenCovered=B),this._map&&this._updateOpacity(!0),this}}let Nc={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0},gu=0,Uc=!1,xu={maxWidth:100,unit:"metric"};function Ac(ue,w,B){let Q=B&&B.maxWidth||100,ee=ue._container.clientHeight/2,le=ue.unproject([0,ee]),qe=ue.unproject([Q,ee]),Xe=le.distanceTo(qe);if(B&&B.unit==="imperial"){let ot=3.2808*Xe;ot>5280?Ua(w,Q,ot/5280,ue._getUIString("ScaleControl.Miles")):Ua(w,Q,ot,ue._getUIString("ScaleControl.Feet"))}else B&&B.unit==="nautical"?Ua(w,Q,Xe/1852,ue._getUIString("ScaleControl.NauticalMiles")):Xe>=1e3?Ua(w,Q,Xe/1e3,ue._getUIString("ScaleControl.Kilometers")):Ua(w,Q,Xe,ue._getUIString("ScaleControl.Meters"))}function Ua(ue,w,B,Q){let ee=function(le){let qe=Math.pow(10,`${Math.floor(le)}`.length-1),Xe=le/qe;return Xe=Xe>=10?10:Xe>=5?5:Xe>=3?3:Xe>=2?2:Xe>=1?1:function(ot){let Tt=Math.pow(10,Math.ceil(-Math.log(ot)/Math.LN10));return Math.round(ot*Tt)/Tt}(Xe),qe*Xe}(B);ue.style.width=w*(ee/B)+"px",ue.innerHTML=`${ee} ${Q}`}let oo={closeButton:!0,closeOnClick:!0,focusAfterOpen:!0,className:"",maxWidth:"240px",subpixelPositioning:!1},Vc=["a[href]","[tabindex]:not([tabindex='-1'])","[contenteditable]:not([contenteditable='false'])","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].join(", ");function hc(ue){if(ue){if(typeof ue=="number"){let w=Math.round(Math.abs(ue)/Math.SQRT2);return{center:new a.P(0,0),top:new a.P(0,ue),"top-left":new a.P(w,w),"top-right":new a.P(-w,w),bottom:new a.P(0,-ue),"bottom-left":new a.P(w,-w),"bottom-right":new a.P(-w,-w),left:new a.P(ue,0),right:new a.P(-ue,0)}}if(ue instanceof a.P||Array.isArray(ue)){let w=a.P.convert(ue);return{center:w,top:w,"top-left":w,"top-right":w,bottom:w,"bottom-left":w,"bottom-right":w,left:w,right:w}}return{center:a.P.convert(ue.center||[0,0]),top:a.P.convert(ue.top||[0,0]),"top-left":a.P.convert(ue["top-left"]||[0,0]),"top-right":a.P.convert(ue["top-right"]||[0,0]),bottom:a.P.convert(ue.bottom||[0,0]),"bottom-left":a.P.convert(ue["bottom-left"]||[0,0]),"bottom-right":a.P.convert(ue["bottom-right"]||[0,0]),left:a.P.convert(ue.left||[0,0]),right:a.P.convert(ue.right||[0,0])}}return hc(new a.P(0,0))}let Ku=o;i.AJAXError=a.bh,i.Evented=a.E,i.LngLat=a.N,i.MercatorCoordinate=a.Z,i.Point=a.P,i.addProtocol=a.bi,i.config=a.a,i.removeProtocol=a.bj,i.AttributionControl=Na,i.BoxZoomHandler=Cu,i.CanvasSource=$t,i.CooperativeGesturesHandler=$i,i.DoubleClickZoomHandler=Ei,i.DragPanHandler=Tn,i.DragRotateHandler=Bn,i.EdgeInsets=du,i.FullscreenControl=class extends a.E{constructor(ue={}){super(),this._onFullscreenChange=()=>{var w;let B=window.document.fullscreenElement||window.document.mozFullScreenElement||window.document.webkitFullscreenElement||window.document.msFullscreenElement;for(;!((w=B==null?void 0:B.shadowRoot)===null||w===void 0)&&w.fullscreenElement;)B=B.shadowRoot.fullscreenElement;B===this._container!==this._fullscreen&&this._handleFullscreenChange()},this._onClickFullscreen=()=>{this._isFullscreen()?this._exitFullscreen():this._requestFullscreen()},this._fullscreen=!1,ue&&ue.container&&(ue.container instanceof HTMLElement?this._container=ue.container:a.w("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(ue){return this._map=ue,this._container||(this._container=this._map.getContainer()),this._controlContainer=c.create("div","maplibregl-ctrl maplibregl-ctrl-group"),this._setupUI(),this._controlContainer}onRemove(){c.remove(this._controlContainer),this._map=null,window.document.removeEventListener(this._fullscreenchange,this._onFullscreenChange)}_setupUI(){let ue=this._fullscreenButton=c.create("button","maplibregl-ctrl-fullscreen",this._controlContainer);c.create("span","maplibregl-ctrl-icon",ue).setAttribute("aria-hidden","true"),ue.type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),window.document.addEventListener(this._fullscreenchange,this._onFullscreenChange)}_updateTitle(){let ue=this._getTitle();this._fullscreenButton.setAttribute("aria-label",ue),this._fullscreenButton.title=ue}_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 a.k("fullscreenstart")),this._prevCooperativeGesturesEnabled=this._map.cooperativeGestures.isEnabled(),this._map.cooperativeGestures.disable()):(this.fire(new a.k("fullscreenend")),this._prevCooperativeGesturesEnabled&&this._map.cooperativeGestures.enable())}_exitFullscreen(){window.document.exitFullscreen?window.document.exitFullscreen():window.document.mozCancelFullScreen?window.document.mozCancelFullScreen():window.document.msExitFullscreen?window.document.msExitFullscreen():window.document.webkitCancelFullScreen?window.document.webkitCancelFullScreen():this._togglePseudoFullScreen()}_requestFullscreen(){this._container.requestFullscreen?this._container.requestFullscreen():this._container.mozRequestFullScreen?this._container.mozRequestFullScreen():this._container.msRequestFullscreen?this._container.msRequestFullscreen():this._container.webkitRequestFullscreen?this._container.webkitRequestFullscreen():this._togglePseudoFullScreen()}_togglePseudoFullScreen(){this._container.classList.toggle("maplibregl-pseudo-fullscreen"),this._handleFullscreenChange(),this._map.resize()}},i.GeoJSONSource=st,i.GeolocateControl=class extends a.E{constructor(ue){super(),this._onSuccess=w=>{if(this._map){if(this._isOutOfMapMaxBounds(w))return this._setErrorState(),this.fire(new a.k("outofmaxbounds",w)),this._updateMarker(),void this._finish();if(this.options.trackUserLocation)switch(this._lastKnownPosition=w,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 new Error(`Unexpected watchState ${this._watchState}`)}this.options.showUserLocation&&this._watchState!=="OFF"&&this._updateMarker(w),this.options.trackUserLocation&&this._watchState!=="ACTIVE_LOCK"||this._updateCamera(w),this.options.showUserLocation&&this._dotElement.classList.remove("maplibregl-user-location-dot-stale"),this.fire(new a.k("geolocate",w)),this._finish()}},this._updateCamera=w=>{let B=new a.N(w.coords.longitude,w.coords.latitude),Q=w.coords.accuracy,ee=this._map.getBearing(),le=a.e({bearing:ee},this.options.fitBoundsOptions),qe=ce.fromLngLat(B,Q);this._map.fitBounds(qe,le,{geolocateSource:!0})},this._updateMarker=w=>{if(w){let B=new a.N(w.coords.longitude,w.coords.latitude);this._accuracyCircleMarker.setLngLat(B).addTo(this._map),this._userLocationDotMarker.setLngLat(B).addTo(this._map),this._accuracy=w.coords.accuracy,this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()},this._onZoom=()=>{this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()},this._onError=w=>{if(this._map){if(this.options.trackUserLocation)if(w.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 B=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.title=B,this._geolocateButton.setAttribute("aria-label",B),this._geolocationWatchID!==void 0&&this._clearWatch()}else{if(w.code===3&&Uc)return;this._setErrorState()}this._watchState!=="OFF"&&this.options.showUserLocation&&this._dotElement.classList.add("maplibregl-user-location-dot-stale"),this.fire(new a.k("error",w)),this._finish()}},this._finish=()=>{this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0},this._setupUI=()=>{this._map&&(this._container.addEventListener("contextmenu",w=>w.preventDefault()),this._geolocateButton=c.create("button","maplibregl-ctrl-geolocate",this._container),c.create("span","maplibregl-ctrl-icon",this._geolocateButton).setAttribute("aria-hidden","true"),this._geolocateButton.type="button",this._geolocateButton.disabled=!0)},this._finishSetupUI=w=>{if(this._map){if(w===!1){a.w("Geolocation support is not available so the GeolocateControl will be disabled.");let B=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.disabled=!0,this._geolocateButton.title=B,this._geolocateButton.setAttribute("aria-label",B)}else{let B=this._map._getUIString("GeolocateControl.FindMyLocation");this._geolocateButton.disabled=!1,this._geolocateButton.title=B,this._geolocateButton.setAttribute("aria-label",B)}this.options.trackUserLocation&&(this._geolocateButton.setAttribute("aria-pressed","false"),this._watchState="OFF"),this.options.showUserLocation&&(this._dotElement=c.create("div","maplibregl-user-location-dot"),this._userLocationDotMarker=new Yu({element:this._dotElement}),this._circleElement=c.create("div","maplibregl-user-location-accuracy-circle"),this._accuracyCircleMarker=new Yu({element:this._circleElement,pitchAlignment:"map"}),this.options.trackUserLocation&&(this._watchState="OFF"),this._map.on("zoom",this._onZoom)),this._geolocateButton.addEventListener("click",()=>this.trigger()),this._setup=!0,this.options.trackUserLocation&&this._map.on("movestart",B=>{B.geolocateSource||this._watchState!=="ACTIVE_LOCK"||B.originalEvent&&B.originalEvent.type==="resize"||(this._watchState="BACKGROUND",this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this.fire(new a.k("trackuserlocationend")),this.fire(new a.k("userlocationlostfocus")))})}},this.options=a.e({},Nc,ue)}onAdd(ue){return this._map=ue,this._container=c.create("div","maplibregl-ctrl maplibregl-ctrl-group"),this._setupUI(),function(){return a._(this,arguments,void 0,function*(w=!1){if(_s!==void 0&&!w)return _s;if(window.navigator.permissions===void 0)return _s=!!window.navigator.geolocation,_s;try{_s=(yield window.navigator.permissions.query({name:"geolocation"})).state!=="denied"}catch(B){_s=!!window.navigator.geolocation}return _s})}().then(w=>this._finishSetupUI(w)),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(),c.remove(this._container),this._map.off("zoom",this._onZoom),this._map=void 0,gu=0,Uc=!1}_isOutOfMapMaxBounds(ue){let w=this._map.getMaxBounds(),B=ue.coords;return w&&(B.longitudew.getEast()||B.latitudew.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":break;default:throw new Error(`Unexpected watchState ${this._watchState}`)}}_updateCircleRadius(){let ue=this._map.getBounds(),w=ue.getSouthEast(),B=ue.getNorthEast(),Q=w.distanceTo(B),ee=Math.ceil(this._accuracy/(Q/this._map._container.clientHeight)*2);this._circleElement.style.width=`${ee}px`,this._circleElement.style.height=`${ee}px`}trigger(){if(!this._setup)return a.w("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 a.k("trackuserlocationstart"));break;case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":case"BACKGROUND_ERROR":gu--,Uc=!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 a.k("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 a.k("trackuserlocationstart")),this.fire(new a.k("userlocationfocus"));break;default:throw new 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 new Error(`Unexpected watchState ${this._watchState}`)}if(this._watchState==="OFF"&&this._geolocationWatchID!==void 0)this._clearWatch();else if(this._geolocationWatchID===void 0){let ue;this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),gu++,gu>1?(ue={maximumAge:6e5,timeout:0},Uc=!0):(ue=this.options.positionOptions,Uc=!1),this._geolocationWatchID=window.navigator.geolocation.watchPosition(this._onSuccess,this._onError,ue)}}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)}},i.Hash=bh,i.ImageSource=Gt,i.KeyboardHandler=Xt,i.LngLatBounds=ce,i.LogoControl=Yn,i.Map=class extends Ra{constructor(ue){a.bf.mark(a.bg.create);let w=Object.assign(Object.assign({},Xs),ue);if(w.minZoom!=null&&w.maxZoom!=null&&w.minZoom>w.maxZoom)throw new Error("maxZoom must be greater than or equal to minZoom");if(w.minPitch!=null&&w.maxPitch!=null&&w.minPitch>w.maxPitch)throw new Error("maxPitch must be greater than or equal to minPitch");if(w.minPitch!=null&&w.minPitch<0)throw new Error("minPitch must be greater than or equal to 0");if(w.maxPitch!=null&&w.maxPitch>85)throw new Error("maxPitch must be less than or equal to 85");if(super(new al(w.minZoom,w.maxZoom,w.minPitch,w.maxPitch,w.renderWorldCopies),{bearingSnap:w.bearingSnap}),this._idleTriggered=!1,this._crossFadingFactor=1,this._renderTaskQueue=new zn,this._controls=[],this._mapId=a.a4(),this._contextLost=B=>{B.preventDefault(),this._frameRequest&&(this._frameRequest.abort(),this._frameRequest=null),this.fire(new a.k("webglcontextlost",{originalEvent:B}))},this._contextRestored=B=>{this._setupPainter(),this.resize(),this._update(),this.fire(new a.k("webglcontextrestored",{originalEvent:B}))},this._onMapScroll=B=>{if(B.target===this._container)return this._container.scrollTop=0,this._container.scrollLeft=0,!1},this._onWindowOnline=()=>{this._update()},this._interactive=w.interactive,this._maxTileCacheSize=w.maxTileCacheSize,this._maxTileCacheZoomLevels=w.maxTileCacheZoomLevels,this._failIfMajorPerformanceCaveat=w.failIfMajorPerformanceCaveat===!0,this._preserveDrawingBuffer=w.preserveDrawingBuffer===!0,this._antialias=w.antialias===!0,this._trackResize=w.trackResize===!0,this._bearingSnap=w.bearingSnap,this._refreshExpiredTiles=w.refreshExpiredTiles===!0,this._fadeDuration=w.fadeDuration,this._crossSourceCollisions=w.crossSourceCollisions===!0,this._collectResourceTiming=w.collectResourceTiming===!0,this._locale=Object.assign(Object.assign({},Ho),w.locale),this._clickTolerance=w.clickTolerance,this._overridePixelRatio=w.pixelRatio,this._maxCanvasSize=w.maxCanvasSize,this.transformCameraUpdate=w.transformCameraUpdate,this.cancelPendingTileRequestsWhileZooming=w.cancelPendingTileRequestsWhileZooming===!0,this._imageQueueHandle=p.addThrottleControl(()=>this.isMoving()),this._requestManager=new C(w.transformRequest),typeof w.container=="string"){if(this._container=document.getElementById(w.container),!this._container)throw new Error(`Container '${w.container}' not found.`)}else{if(!(w.container instanceof HTMLElement))throw new Error("Invalid type: 'container' must be a String or HTMLElement.");this._container=w.container}if(w.maxBounds&&this.setMaxBounds(w.maxBounds),this._setupContainer(),this._setupPainter(),this.on("move",()=>this._update(!1)).on("moveend",()=>this._update(!1)).on("zoom",()=>this._update(!0)).on("terrain",()=>{this.painter.terrainFacilitator.dirty=!0,this._update(!0)}).once("idle",()=>{this._idleTriggered=!0}),typeof window!="undefined"){addEventListener("online",this._onWindowOnline,!1);let B=!1,Q=nh(ee=>{this._trackResize&&!this._removed&&(this.resize(ee),this.redraw())},50);this._resizeObserver=new ResizeObserver(ee=>{B?Q(ee):B=!0}),this._resizeObserver.observe(this._container)}this.handlers=new ka(this,w),this._hash=w.hash&&new bh(typeof w.hash=="string"&&w.hash||void 0).addTo(this),this._hash&&this._hash._onHashChange()||(this.jumpTo({center:w.center,zoom:w.zoom,bearing:w.bearing,pitch:w.pitch}),w.bounds&&(this.resize(),this.fitBounds(w.bounds,a.e({},w.fitBoundsOptions,{duration:0})))),this.resize(),this._localIdeographFontFamily=w.localIdeographFontFamily,this._validateStyle=w.validateStyle,w.style&&this.setStyle(w.style,{localIdeographFontFamily:w.localIdeographFontFamily}),w.attributionControl&&this.addControl(new Na(typeof w.attributionControl=="boolean"?void 0:w.attributionControl)),w.maplibreLogo&&this.addControl(new Yn,w.logoPosition),this.on("style.load",()=>{this.transform.unmodified&&this.jumpTo(this.style.stylesheet)}),this.on("data",B=>{this._update(B.dataType==="style"),this.fire(new a.k(`${B.dataType}data`,B))}),this.on("dataloading",B=>{this.fire(new a.k(`${B.dataType}dataloading`,B))}),this.on("dataabort",B=>{this.fire(new a.k("sourcedataabort",B))})}_getMapId(){return this._mapId}addControl(ue,w){if(w===void 0&&(w=ue.getDefaultPosition?ue.getDefaultPosition():"top-right"),!ue||!ue.onAdd)return this.fire(new a.j(new Error("Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.")));let B=ue.onAdd(this);this._controls.push(ue);let Q=this._controlPositions[w];return w.indexOf("bottom")!==-1?Q.insertBefore(B,Q.firstChild):Q.appendChild(B),this}removeControl(ue){if(!ue||!ue.onRemove)return this.fire(new a.j(new Error("Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.")));let w=this._controls.indexOf(ue);return w>-1&&this._controls.splice(w,1),ue.onRemove(this),this}hasControl(ue){return this._controls.indexOf(ue)>-1}calculateCameraOptionsFromTo(ue,w,B,Q){return Q==null&&this.terrain&&(Q=this.terrain.getElevationForLngLatZoom(B,this.transform.tileZoom)),super.calculateCameraOptionsFromTo(ue,w,B,Q)}resize(ue){var w;let B=this._containerDimensions(),Q=B[0],ee=B[1],le=this._getClampedPixelRatio(Q,ee);if(this._resizeCanvas(Q,ee,le),this.painter.resize(Q,ee,le),this.painter.overLimit()){let Xe=this.painter.context.gl;this._maxCanvasSize=[Xe.drawingBufferWidth,Xe.drawingBufferHeight];let ot=this._getClampedPixelRatio(Q,ee);this._resizeCanvas(Q,ee,ot),this.painter.resize(Q,ee,ot)}this.transform.resize(Q,ee),(w=this._requestedCameraState)===null||w===void 0||w.resize(Q,ee);let qe=!this._moving;return qe&&(this.stop(),this.fire(new a.k("movestart",ue)).fire(new a.k("move",ue))),this.fire(new a.k("resize",ue)),qe&&this.fire(new a.k("moveend",ue)),this}_getClampedPixelRatio(ue,w){let{0:B,1:Q}=this._maxCanvasSize,ee=this.getPixelRatio(),le=ue*ee,qe=w*ee;return Math.min(le>B?B/le:1,qe>Q?Q/qe:1)*ee}getPixelRatio(){var ue;return(ue=this._overridePixelRatio)!==null&&ue!==void 0?ue:devicePixelRatio}setPixelRatio(ue){this._overridePixelRatio=ue,this.resize()}getBounds(){return this.transform.getBounds()}getMaxBounds(){return this.transform.getMaxBounds()}setMaxBounds(ue){return this.transform.setMaxBounds(ce.convert(ue)),this._update()}setMinZoom(ue){if((ue=ue==null?-2:ue)>=-2&&ue<=this.transform.maxZoom)return this.transform.minZoom=ue,this._update(),this.getZoom()=this.transform.minZoom)return this.transform.maxZoom=ue,this._update(),this.getZoom()>ue&&this.setZoom(ue),this;throw new Error("maxZoom must be greater than the current minZoom")}getMaxZoom(){return this.transform.maxZoom}setMinPitch(ue){if((ue=ue==null?0:ue)<0)throw new Error("minPitch must be greater than or equal to 0");if(ue>=0&&ue<=this.transform.maxPitch)return this.transform.minPitch=ue,this._update(),this.getPitch()85)throw new Error("maxPitch must be less than or equal to 85");if(ue>=this.transform.minPitch)return this.transform.maxPitch=ue,this._update(),this.getPitch()>ue&&this.setPitch(ue),this;throw new Error("maxPitch must be greater than the current minPitch")}getMaxPitch(){return this.transform.maxPitch}getRenderWorldCopies(){return this.transform.renderWorldCopies}setRenderWorldCopies(ue){return this.transform.renderWorldCopies=ue,this._update()}project(ue){return this.transform.locationPoint(a.N.convert(ue),this.style&&this.terrain)}unproject(ue){return this.transform.pointLocation(a.P.convert(ue),this.terrain)}isMoving(){var ue;return this._moving||((ue=this.handlers)===null||ue===void 0?void 0:ue.isMoving())}isZooming(){var ue;return this._zooming||((ue=this.handlers)===null||ue===void 0?void 0:ue.isZooming())}isRotating(){var ue;return this._rotating||((ue=this.handlers)===null||ue===void 0?void 0:ue.isRotating())}_createDelegatedListener(ue,w,B){if(ue==="mouseenter"||ue==="mouseover"){let Q=!1;return{layers:w,listener:B,delegates:{mousemove:le=>{let qe=w.filter(ot=>this.getLayer(ot)),Xe=qe.length!==0?this.queryRenderedFeatures(le.point,{layers:qe}):[];Xe.length?Q||(Q=!0,B.call(this,new jl(ue,this,le.originalEvent,{features:Xe}))):Q=!1},mouseout:()=>{Q=!1}}}}if(ue==="mouseleave"||ue==="mouseout"){let Q=!1;return{layers:w,listener:B,delegates:{mousemove:qe=>{let Xe=w.filter(ot=>this.getLayer(ot));(Xe.length!==0?this.queryRenderedFeatures(qe.point,{layers:Xe}):[]).length?Q=!0:Q&&(Q=!1,B.call(this,new jl(ue,this,qe.originalEvent)))},mouseout:qe=>{Q&&(Q=!1,B.call(this,new jl(ue,this,qe.originalEvent)))}}}}{let Q=ee=>{let le=w.filter(Xe=>this.getLayer(Xe)),qe=le.length!==0?this.queryRenderedFeatures(ee.point,{layers:le}):[];qe.length&&(ee.features=qe,B.call(this,ee),delete ee.features)};return{layers:w,listener:B,delegates:{[ue]:Q}}}}_saveDelegatedListener(ue,w){this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[ue]=this._delegatedListeners[ue]||[],this._delegatedListeners[ue].push(w)}_removeDelegatedListener(ue,w,B){if(!this._delegatedListeners||!this._delegatedListeners[ue])return;let Q=this._delegatedListeners[ue];for(let ee=0;eew.includes(qe))){for(let qe in le.delegates)this.off(qe,le.delegates[qe]);return void Q.splice(ee,1)}}}on(ue,w,B){if(B===void 0)return super.on(ue,w);let Q=this._createDelegatedListener(ue,typeof w=="string"?[w]:w,B);this._saveDelegatedListener(ue,Q);for(let ee in Q.delegates)this.on(ee,Q.delegates[ee]);return this}once(ue,w,B){if(B===void 0)return super.once(ue,w);let Q=typeof w=="string"?[w]:w,ee=this._createDelegatedListener(ue,Q,B);for(let le in ee.delegates){let qe=ee.delegates[le];ee.delegates[le]=(...Xe)=>{this._removeDelegatedListener(ue,Q,B),qe(...Xe)}}this._saveDelegatedListener(ue,ee);for(let le in ee.delegates)this.once(le,ee.delegates[le]);return this}off(ue,w,B){return B===void 0?super.off(ue,w):(this._removeDelegatedListener(ue,typeof w=="string"?[w]:w,B),this)}queryRenderedFeatures(ue,w){if(!this.style)return[];let B,Q=ue instanceof a.P||Array.isArray(ue),ee=Q?ue:[[0,0],[this.transform.width,this.transform.height]];if(w=w||(Q?{}:ue)||{},ee instanceof a.P||typeof ee[0]=="number")B=[a.P.convert(ee)];else{let le=a.P.convert(ee[0]),qe=a.P.convert(ee[1]);B=[le,new a.P(qe.x,le.y),qe,new a.P(le.x,qe.y),le]}return this.style.queryRenderedFeatures(B,w,this.transform)}querySourceFeatures(ue,w){return this.style.querySourceFeatures(ue,w)}setStyle(ue,w){return(w=a.e({},{localIdeographFontFamily:this._localIdeographFontFamily,validate:this._validateStyle},w)).diff!==!1&&w.localIdeographFontFamily===this._localIdeographFontFamily&&this.style&&ue?(this._diffStyle(ue,w),this):(this._localIdeographFontFamily=w.localIdeographFontFamily,this._updateStyle(ue,w))}setTransformRequest(ue){return this._requestManager.setTransformRequest(ue),this}_getUIString(ue){let w=this._locale[ue];if(w==null)throw new Error(`Missing UI string '${ue}'`);return w}_updateStyle(ue,w){if(w.transformStyle&&this.style&&!this.style._loaded)return void this.style.once("style.load",()=>this._updateStyle(ue,w));let B=this.style&&w.transformStyle?this.style.serialize():void 0;return this.style&&(this.style.setEventedParent(null),this.style._remove(!ue)),ue?(this.style=new Ga(this,w||{}),this.style.setEventedParent(this,{style:this.style}),typeof ue=="string"?this.style.loadURL(ue,w,B):this.style.loadJSON(ue,w,B),this):(delete this.style,this)}_lazyInitEmptyStyle(){this.style||(this.style=new Ga(this,{}),this.style.setEventedParent(this,{style:this.style}),this.style.loadEmpty())}_diffStyle(ue,w){if(typeof ue=="string"){let B=this._requestManager.transformRequest(ue,"Style");a.h(B,new AbortController).then(Q=>{this._updateDiff(Q.data,w)}).catch(Q=>{Q&&this.fire(new a.j(Q))})}else typeof ue=="object"&&this._updateDiff(ue,w)}_updateDiff(ue,w){try{this.style.setState(ue,w)&&this._update(!0)}catch(B){a.w(`Unable to perform style diff: ${B.message||B.error||B}. Rebuilding the style from scratch.`),this._updateStyle(ue,w)}}getStyle(){if(this.style)return this.style.serialize()}isStyleLoaded(){return this.style?this.style.loaded():a.w("There is no style added to the map.")}addSource(ue,w){return this._lazyInitEmptyStyle(),this.style.addSource(ue,w),this._update(!0)}isSourceLoaded(ue){let w=this.style&&this.style.sourceCaches[ue];if(w!==void 0)return w.loaded();this.fire(new a.j(new Error(`There is no source with ID '${ue}'`)))}setTerrain(ue){if(this.style._checkLoaded(),this._terrainDataCallback&&this.style.off("data",this._terrainDataCallback),ue){let w=this.style.sourceCaches[ue.source];if(!w)throw new Error(`cannot load terrain, because there exists no source with ID: ${ue.source}`);this.terrain===null&&w.reload();for(let B in this.style._layers){let Q=this.style._layers[B];Q.type==="hillshade"&&Q.source===ue.source&&a.w("You are using the same source for a hillshade layer and for 3D terrain. Please consider using two separate sources to improve rendering quality.")}this.terrain=new Xo(this.painter,w,ue),this.painter.renderToTexture=new Ts(this.painter,this.terrain),this.transform.minElevationForCurrentTile=this.terrain.getMinTileElevationForLngLatZoom(this.transform.center,this.transform.tileZoom),this.transform.elevation=this.terrain.getElevationForLngLatZoom(this.transform.center,this.transform.tileZoom),this._terrainDataCallback=B=>{B.dataType==="style"?this.terrain.sourceCache.freeRtt():B.dataType==="source"&&B.tile&&(B.sourceId!==ue.source||this._elevationFreeze||(this.transform.minElevationForCurrentTile=this.terrain.getMinTileElevationForLngLatZoom(this.transform.center,this.transform.tileZoom),this.transform.elevation=this.terrain.getElevationForLngLatZoom(this.transform.center,this.transform.tileZoom)),this.terrain.sourceCache.freeRtt(B.tile.tileID))},this.style.on("data",this._terrainDataCallback)}else this.terrain&&this.terrain.sourceCache.destruct(),this.terrain=null,this.painter.renderToTexture&&this.painter.renderToTexture.destruct(),this.painter.renderToTexture=null,this.transform.minElevationForCurrentTile=0,this.transform.elevation=0;return this.fire(new a.k("terrain",{terrain:ue})),this}getTerrain(){var ue,w;return(w=(ue=this.terrain)===null||ue===void 0?void 0:ue.options)!==null&&w!==void 0?w:null}areTilesLoaded(){let ue=this.style&&this.style.sourceCaches;for(let w in ue){let B=ue[w]._tiles;for(let Q in B){let ee=B[Q];if(ee.state!=="loaded"&&ee.state!=="errored")return!1}}return!0}removeSource(ue){return this.style.removeSource(ue),this._update(!0)}getSource(ue){return this.style.getSource(ue)}addImage(ue,w,B={}){let{pixelRatio:Q=1,sdf:ee=!1,stretchX:le,stretchY:qe,content:Xe,textFitWidth:ot,textFitHeight:Tt}=B;if(this._lazyInitEmptyStyle(),!(w instanceof HTMLImageElement||a.b(w))){if(w.width===void 0||w.height===void 0)return this.fire(new a.j(new 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`")));{let{width:Kt,height:Jt,data:xr}=w,Pr=w;return this.style.addImage(ue,{data:new a.R({width:Kt,height:Jt},new Uint8Array(xr)),pixelRatio:Q,stretchX:le,stretchY:qe,content:Xe,textFitWidth:ot,textFitHeight:Tt,sdf:ee,version:0,userImage:Pr}),Pr.onAdd&&Pr.onAdd(this,ue),this}}{let{width:Kt,height:Jt,data:xr}=u.getImageData(w);this.style.addImage(ue,{data:new a.R({width:Kt,height:Jt},xr),pixelRatio:Q,stretchX:le,stretchY:qe,content:Xe,textFitWidth:ot,textFitHeight:Tt,sdf:ee,version:0})}}updateImage(ue,w){let B=this.style.getImage(ue);if(!B)return this.fire(new a.j(new Error("The map has no image with that id. If you are adding a new image use `map.addImage(...)` instead.")));let Q=w instanceof HTMLImageElement||a.b(w)?u.getImageData(w):w,{width:ee,height:le,data:qe}=Q;if(ee===void 0||le===void 0)return this.fire(new a.j(new 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(ee!==B.data.width||le!==B.data.height)return this.fire(new a.j(new Error("The width and height of the updated image must be that same as the previous version of the image")));let Xe=!(w instanceof HTMLImageElement||a.b(w));return B.data.replace(qe,Xe),this.style.updateImage(ue,B),this}getImage(ue){return this.style.getImage(ue)}hasImage(ue){return ue?!!this.style.getImage(ue):(this.fire(new a.j(new Error("Missing required image id"))),!1)}removeImage(ue){this.style.removeImage(ue)}loadImage(ue){return p.getImage(this._requestManager.transformRequest(ue,"Image"),new AbortController)}listImages(){return this.style.listImages()}addLayer(ue,w){return this._lazyInitEmptyStyle(),this.style.addLayer(ue,w),this._update(!0)}moveLayer(ue,w){return this.style.moveLayer(ue,w),this._update(!0)}removeLayer(ue){return this.style.removeLayer(ue),this._update(!0)}getLayer(ue){return this.style.getLayer(ue)}getLayersOrder(){return this.style.getLayersOrder()}setLayerZoomRange(ue,w,B){return this.style.setLayerZoomRange(ue,w,B),this._update(!0)}setFilter(ue,w,B={}){return this.style.setFilter(ue,w,B),this._update(!0)}getFilter(ue){return this.style.getFilter(ue)}setPaintProperty(ue,w,B,Q={}){return this.style.setPaintProperty(ue,w,B,Q),this._update(!0)}getPaintProperty(ue,w){return this.style.getPaintProperty(ue,w)}setLayoutProperty(ue,w,B,Q={}){return this.style.setLayoutProperty(ue,w,B,Q),this._update(!0)}getLayoutProperty(ue,w){return this.style.getLayoutProperty(ue,w)}setGlyphs(ue,w={}){return this._lazyInitEmptyStyle(),this.style.setGlyphs(ue,w),this._update(!0)}getGlyphs(){return this.style.getGlyphsUrl()}addSprite(ue,w,B={}){return this._lazyInitEmptyStyle(),this.style.addSprite(ue,w,B,Q=>{Q||this._update(!0)}),this}removeSprite(ue){return this._lazyInitEmptyStyle(),this.style.removeSprite(ue),this._update(!0)}getSprite(){return this.style.getSprite()}setSprite(ue,w={}){return this._lazyInitEmptyStyle(),this.style.setSprite(ue,w,B=>{B||this._update(!0)}),this}setLight(ue,w={}){return this._lazyInitEmptyStyle(),this.style.setLight(ue,w),this._update(!0)}getLight(){return this.style.getLight()}setSky(ue){return this._lazyInitEmptyStyle(),this.style.setSky(ue),this._update(!0)}getSky(){return this.style.getSky()}setFeatureState(ue,w){return this.style.setFeatureState(ue,w),this._update()}removeFeatureState(ue,w){return this.style.removeFeatureState(ue,w),this._update()}getFeatureState(ue){return this.style.getFeatureState(ue)}getContainer(){return this._container}getCanvasContainer(){return this._canvasContainer}getCanvas(){return this._canvas}_containerDimensions(){let ue=0,w=0;return this._container&&(ue=this._container.clientWidth||400,w=this._container.clientHeight||300),[ue,w]}_setupContainer(){let ue=this._container;ue.classList.add("maplibregl-map");let w=this._canvasContainer=c.create("div","maplibregl-canvas-container",ue);this._interactive&&w.classList.add("maplibregl-interactive"),this._canvas=c.create("canvas","maplibregl-canvas",w),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");let B=this._containerDimensions(),Q=this._getClampedPixelRatio(B[0],B[1]);this._resizeCanvas(B[0],B[1],Q);let ee=this._controlContainer=c.create("div","maplibregl-control-container",ue),le=this._controlPositions={};["top-left","top-right","bottom-left","bottom-right"].forEach(qe=>{le[qe]=c.create("div",`maplibregl-ctrl-${qe} `,ee)}),this._container.addEventListener("scroll",this._onMapScroll,!1)}_resizeCanvas(ue,w,B){this._canvas.width=Math.floor(B*ue),this._canvas.height=Math.floor(B*w),this._canvas.style.width=`${ue}px`,this._canvas.style.height=`${w}px`}_setupPainter(){let ue={alpha:!0,stencil:!0,depth:!0,failIfMajorPerformanceCaveat:this._failIfMajorPerformanceCaveat,preserveDrawingBuffer:this._preserveDrawingBuffer,antialias:this._antialias||!1},w=null;this._canvas.addEventListener("webglcontextcreationerror",Q=>{w={requestedAttributes:ue},Q&&(w.statusMessage=Q.statusMessage,w.type=Q.type)},{once:!0});let B=this._canvas.getContext("webgl2",ue)||this._canvas.getContext("webgl",ue);if(!B){let Q="Failed to initialize WebGL";throw w?(w.message=Q,new Error(JSON.stringify(w))):new Error(Q)}this.painter=new Dc(B,this.transform),f.testSupport(B)}loaded(){return!this._styleDirty&&!this._sourcesDirty&&!!this.style&&this.style.loaded()}_update(ue){return this.style&&this.style._loaded?(this._styleDirty=this._styleDirty||ue,this._sourcesDirty=!0,this.triggerRepaint(),this):this}_requestRenderFrame(ue){return this._update(),this._renderTaskQueue.add(ue)}_cancelRenderFrame(ue){this._renderTaskQueue.remove(ue)}_render(ue){let w=this._idleTriggered?this._fadeDuration:0;if(this.painter.context.setDirty(),this.painter.setBaseState(),this._renderTaskQueue.run(ue),this._removed)return;let B=!1;if(this.style&&this._styleDirty){this._styleDirty=!1;let ee=this.transform.zoom,le=u.now();this.style.zoomHistory.update(ee,le);let qe=new a.z(ee,{now:le,fadeDuration:w,zoomHistory:this.style.zoomHistory,transition:this.style.getTransition()}),Xe=qe.crossFadingFactor();Xe===1&&Xe===this._crossFadingFactor||(B=!0,this._crossFadingFactor=Xe),this.style.update(qe)}this.style&&this._sourcesDirty&&(this._sourcesDirty=!1,this.style._updateSources(this.transform)),this.terrain?(this.terrain.sourceCache.update(this.transform,this.terrain),this.transform.minElevationForCurrentTile=this.terrain.getMinTileElevationForLngLatZoom(this.transform.center,this.transform.tileZoom),this._elevationFreeze||(this.transform.elevation=this.terrain.getElevationForLngLatZoom(this.transform.center,this.transform.tileZoom))):(this.transform.minElevationForCurrentTile=0,this.transform.elevation=0),this._placementDirty=this.style&&this.style._updatePlacement(this.painter.transform,this.showCollisionBoxes,w,this._crossSourceCollisions),this.painter.render(this.style,{showTileBoundaries:this.showTileBoundaries,showOverdrawInspector:this._showOverdrawInspector,rotating:this.isRotating(),zooming:this.isZooming(),moving:this.isMoving(),fadeDuration:w,showPadding:this.showPadding}),this.fire(new a.k("render")),this.loaded()&&!this._loaded&&(this._loaded=!0,a.bf.mark(a.bg.load),this.fire(new a.k("load"))),this.style&&(this.style.hasTransitions()||B)&&(this._styleDirty=!0),this.style&&!this._placementDirty&&this.style._releaseSymbolFadeTiles();let Q=this._sourcesDirty||this._styleDirty||this._placementDirty;return Q||this._repaint?this.triggerRepaint():!this.isMoving()&&this.loaded()&&this.fire(new a.k("idle")),!this._loaded||this._fullyLoaded||Q||(this._fullyLoaded=!0,a.bf.mark(a.bg.fullLoad)),this}redraw(){return this.style&&(this._frameRequest&&(this._frameRequest.abort(),this._frameRequest=null),this._render(0)),this}remove(){var ue;this._hash&&this._hash.remove();for(let B of this._controls)B.onRemove(this);this._controls=[],this._frameRequest&&(this._frameRequest.abort(),this._frameRequest=null),this._renderTaskQueue.clear(),this.painter.destroy(),this.handlers.destroy(),delete this.handlers,this.setStyle(null),typeof window!="undefined"&&removeEventListener("online",this._onWindowOnline,!1),p.removeThrottleControl(this._imageQueueHandle),(ue=this._resizeObserver)===null||ue===void 0||ue.disconnect();let w=this.painter.context.gl.getExtension("WEBGL_lose_context");w!=null&&w.loseContext&&w.loseContext(),this._canvas.removeEventListener("webglcontextrestored",this._contextRestored,!1),this._canvas.removeEventListener("webglcontextlost",this._contextLost,!1),c.remove(this._canvasContainer),c.remove(this._controlContainer),this._container.classList.remove("maplibregl-map"),a.bf.clearMetrics(),this._removed=!0,this.fire(new a.k("remove"))}triggerRepaint(){this.style&&!this._frameRequest&&(this._frameRequest=new AbortController,u.frameAsync(this._frameRequest).then(ue=>{a.bf.frame(ue),this._frameRequest=null,this._render(ue)}).catch(()=>{}))}get showTileBoundaries(){return!!this._showTileBoundaries}set showTileBoundaries(ue){this._showTileBoundaries!==ue&&(this._showTileBoundaries=ue,this._update())}get showPadding(){return!!this._showPadding}set showPadding(ue){this._showPadding!==ue&&(this._showPadding=ue,this._update())}get showCollisionBoxes(){return!!this._showCollisionBoxes}set showCollisionBoxes(ue){this._showCollisionBoxes!==ue&&(this._showCollisionBoxes=ue,ue?this.style._generateCollisionBoxes():this._update())}get showOverdrawInspector(){return!!this._showOverdrawInspector}set showOverdrawInspector(ue){this._showOverdrawInspector!==ue&&(this._showOverdrawInspector=ue,this._update())}get repaint(){return!!this._repaint}set repaint(ue){this._repaint!==ue&&(this._repaint=ue,this.triggerRepaint())}get vertices(){return!!this._vertices}set vertices(ue){this._vertices=ue,this._update()}get version(){return yl}getCameraTargetElevation(){return this.transform.elevation}},i.MapMouseEvent=jl,i.MapTouchEvent=lf,i.MapWheelEvent=Vh,i.Marker=Yu,i.NavigationControl=class{constructor(ue){this._updateZoomButtons=()=>{let w=this._map.getZoom(),B=w===this._map.getMaxZoom(),Q=w===this._map.getMinZoom();this._zoomInButton.disabled=B,this._zoomOutButton.disabled=Q,this._zoomInButton.setAttribute("aria-disabled",B.toString()),this._zoomOutButton.setAttribute("aria-disabled",Q.toString())},this._rotateCompassArrow=()=>{let w=this.options.visualizePitch?`scale(${1/Math.pow(Math.cos(this._map.transform.pitch*(Math.PI/180)),.5)}) rotateX(${this._map.transform.pitch}deg) rotateZ(${this._map.transform.angle*(180/Math.PI)}deg)`:`rotate(${this._map.transform.angle*(180/Math.PI)}deg)`;this._compassIcon.style.transform=w},this._setButtonTitle=(w,B)=>{let Q=this._map._getUIString(`NavigationControl.${B}`);w.title=Q,w.setAttribute("aria-label",Q)},this.options=a.e({},va,ue),this._container=c.create("div","maplibregl-ctrl maplibregl-ctrl-group"),this._container.addEventListener("contextmenu",w=>w.preventDefault()),this.options.showZoom&&(this._zoomInButton=this._createButton("maplibregl-ctrl-zoom-in",w=>this._map.zoomIn({},{originalEvent:w})),c.create("span","maplibregl-ctrl-icon",this._zoomInButton).setAttribute("aria-hidden","true"),this._zoomOutButton=this._createButton("maplibregl-ctrl-zoom-out",w=>this._map.zoomOut({},{originalEvent:w})),c.create("span","maplibregl-ctrl-icon",this._zoomOutButton).setAttribute("aria-hidden","true")),this.options.showCompass&&(this._compass=this._createButton("maplibregl-ctrl-compass",w=>{this.options.visualizePitch?this._map.resetNorthPitch({},{originalEvent:w}):this._map.resetNorth({},{originalEvent:w})}),this._compassIcon=c.create("span","maplibregl-ctrl-icon",this._compass),this._compassIcon.setAttribute("aria-hidden","true"))}onAdd(ue){return this._map=ue,this.options.showZoom&&(this._setButtonTitle(this._zoomInButton,"ZoomIn"),this._setButtonTitle(this._zoomOutButton,"ZoomOut"),this._map.on("zoom",this._updateZoomButtons),this._updateZoomButtons()),this.options.showCompass&&(this._setButtonTitle(this._compass,"ResetBearing"),this.options.visualizePitch&&this._map.on("pitch",this._rotateCompassArrow),this._map.on("rotate",this._rotateCompassArrow),this._rotateCompassArrow(),this._handler=new no(this._map,this._compass,this.options.visualizePitch)),this._container}onRemove(){c.remove(this._container),this.options.showZoom&&this._map.off("zoom",this._updateZoomButtons),this.options.showCompass&&(this.options.visualizePitch&&this._map.off("pitch",this._rotateCompassArrow),this._map.off("rotate",this._rotateCompassArrow),this._handler.off(),delete this._handler),delete this._map}_createButton(ue,w){let B=c.create("button",ue,this._container);return B.type="button",B.addEventListener("click",w),B}},i.Popup=class extends a.E{constructor(ue){super(),this.remove=()=>(this._content&&c.remove(this._content),this._container&&(c.remove(this._container),delete this._container),this._map&&(this._map.off("move",this._update),this._map.off("move",this._onClose),this._map.off("click",this._onClose),this._map.off("remove",this.remove),this._map.off("mousemove",this._onMouseMove),this._map.off("mouseup",this._onMouseUp),this._map.off("drag",this._onDrag),this._map._canvasContainer.classList.remove("maplibregl-track-pointer"),delete this._map,this.fire(new a.k("close"))),this),this._onMouseUp=w=>{this._update(w.point)},this._onMouseMove=w=>{this._update(w.point)},this._onDrag=w=>{this._update(w.point)},this._update=w=>{var B;if(!this._map||!this._lngLat&&!this._trackPointer||!this._content)return;if(!this._container){if(this._container=c.create("div","maplibregl-popup",this._map.getContainer()),this._tip=c.create("div","maplibregl-popup-tip",this._container),this._container.appendChild(this._content),this.options.className)for(let Xe of this.options.className.split(" "))this._container.classList.add(Xe);this._closeButton&&this._closeButton.setAttribute("aria-label",this._map._getUIString("Popup.Close")),this._trackPointer&&this._container.classList.add("maplibregl-popup-track-pointer")}if(this.options.maxWidth&&this._container.style.maxWidth!==this.options.maxWidth&&(this._container.style.maxWidth=this.options.maxWidth),this._lngLat=this._map.transform.renderWorldCopies&&!this._trackPointer?is(this._lngLat,this._flatPos,this._map.transform):(B=this._lngLat)===null||B===void 0?void 0:B.wrap(),this._trackPointer&&!w)return;let Q=this._flatPos=this._pos=this._trackPointer&&w?w:this._map.project(this._lngLat);this._map.terrain&&(this._flatPos=this._trackPointer&&w?w:this._map.transform.locationPoint(this._lngLat));let ee=this.options.anchor,le=hc(this.options.offset);if(!ee){let Xe=this._container.offsetWidth,ot=this._container.offsetHeight,Tt;Tt=Q.y+le.bottom.ythis._map.transform.height-ot?["bottom"]:[],Q.xthis._map.transform.width-Xe/2&&Tt.push("right"),ee=Tt.length===0?"bottom":Tt.join("-")}let qe=Q.add(le[ee]);this.options.subpixelPositioning||(qe=qe.round()),c.setTransform(this._container,`${$l[ee]} translate(${qe.x}px,${qe.y}px)`),ku(this._container,ee,"popup")},this._onClose=()=>{this.remove()},this.options=a.e(Object.create(oo),ue)}addTo(ue){return this._map&&this.remove(),this._map=ue,this.options.closeOnClick&&this._map.on("click",this._onClose),this.options.closeOnMove&&this._map.on("move",this._onClose),this._map.on("remove",this.remove),this._update(),this._focusFirstElement(),this._trackPointer?(this._map.on("mousemove",this._onMouseMove),this._map.on("mouseup",this._onMouseUp),this._container&&this._container.classList.add("maplibregl-popup-track-pointer"),this._map._canvasContainer.classList.add("maplibregl-track-pointer")):this._map.on("move",this._update),this.fire(new a.k("open")),this}isOpen(){return!!this._map}getLngLat(){return this._lngLat}setLngLat(ue){return this._lngLat=a.N.convert(ue),this._pos=null,this._flatPos=null,this._trackPointer=!1,this._update(),this._map&&(this._map.on("move",this._update),this._map.off("mousemove",this._onMouseMove),this._container&&this._container.classList.remove("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._onMouseMove),this._map.on("drag",this._onDrag),this._container&&this._container.classList.add("maplibregl-popup-track-pointer"),this._map._canvasContainer.classList.add("maplibregl-track-pointer")),this}getElement(){return this._container}setText(ue){return this.setDOMContent(document.createTextNode(ue))}setHTML(ue){let w=document.createDocumentFragment(),B=document.createElement("body"),Q;for(B.innerHTML=ue;Q=B.firstChild,Q;)w.appendChild(Q);return this.setDOMContent(w)}getMaxWidth(){var ue;return(ue=this._container)===null||ue===void 0?void 0:ue.style.maxWidth}setMaxWidth(ue){return this.options.maxWidth=ue,this._update(),this}setDOMContent(ue){if(this._content)for(;this._content.hasChildNodes();)this._content.firstChild&&this._content.removeChild(this._content.firstChild);else this._content=c.create("div","maplibregl-popup-content",this._container);return this._content.appendChild(ue),this._createCloseButton(),this._update(),this._focusFirstElement(),this}addClassName(ue){return this._container&&this._container.classList.add(ue),this}removeClassName(ue){return this._container&&this._container.classList.remove(ue),this}setOffset(ue){return this.options.offset=ue,this._update(),this}toggleClassName(ue){if(this._container)return this._container.classList.toggle(ue)}setSubpixelPositioning(ue){this.options.subpixelPositioning=ue}_createCloseButton(){this.options.closeButton&&(this._closeButton=c.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 ue=this._container.querySelector(Vc);ue&&ue.focus()}},i.RasterDEMTileSource=Wt,i.RasterTileSource=pt,i.ScaleControl=class{constructor(ue){this._onMove=()=>{Ac(this._map,this._container,this.options)},this.setUnit=w=>{this.options.unit=w,Ac(this._map,this._container,this.options)},this.options=Object.assign(Object.assign({},xu),ue)}getDefaultPosition(){return"bottom-left"}onAdd(ue){return this._map=ue,this._container=c.create("div","maplibregl-ctrl maplibregl-ctrl-scale",ue.getContainer()),this._map.on("move",this._onMove),this._onMove(),this._container}onRemove(){c.remove(this._container),this._map.off("move",this._onMove),this._map=void 0}},i.ScrollZoomHandler=Kr,i.Style=Ga,i.TerrainControl=class{constructor(ue){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=ue}onAdd(ue){return this._map=ue,this._container=c.create("div","maplibregl-ctrl maplibregl-ctrl-group"),this._terrainButton=c.create("button","maplibregl-ctrl-terrain",this._container),c.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(){c.remove(this._container),this._map.off("terrain",this._updateTerrainIcon),this._map=void 0}},i.TwoFingersTouchPitchHandler=Bc,i.TwoFingersTouchRotateHandler=cf,i.TwoFingersTouchZoomHandler=pu,i.TwoFingersTouchZoomRotateHandler=Zi,i.VectorTileSource=ct,i.VideoSource=Nt,i.addSourceType=(ue,w)=>a._(void 0,void 0,void 0,function*(){if(wr(ue))throw new Error(`A source type called "${ue}" already exists.`);((B,Q)=>{sr[B]=Q})(ue,w)}),i.clearPrewarmedResources=function(){let ue=me;ue&&(ue.isPreloaded()&&ue.numActive()===1?(ue.release(_e),me=null):console.warn("Could not clear WebWorkers since there are active Map instances that still reference it. The pre-warmed WebWorker pool can only be cleared when all map instances have been removed with map.remove()"))},i.getMaxParallelImageRequests=function(){return a.a.MAX_PARALLEL_IMAGE_REQUESTS},i.getRTLTextPluginStatus=function(){return er().getRTLTextPluginStatus()},i.getVersion=function(){return Ku},i.getWorkerCount=function(){return Me.workerCount},i.getWorkerUrl=function(){return a.a.WORKER_URL},i.importScriptInWorkers=function(ue){return Ae().broadcast("IS",ue)},i.prewarm=function(){Se().acquire(_e)},i.setMaxParallelImageRequests=function(ue){a.a.MAX_PARALLEL_IMAGE_REQUESTS=ue},i.setRTLTextPlugin=function(ue,w){return er().setRTLTextPlugin(ue,w)},i.setWorkerCount=function(ue){Me.workerCount=ue},i.setWorkerUrl=function(ue){a.a.WORKER_URL=ue}});var n=e;return n})});var XHe=ye((Ixr,WHe)=>{"use strict";var iw=Dr(),OWt=iu().sanitizeHTML,qWt=TJ(),GHe=wx();function HHe(e,t){this.subplot=e,this.uid=e.uid+"-"+t,this.index=t,this.idSource="source-"+this.uid,this.idLayer=GHe.layoutLayerPrefix+this.uid,this.sourceType=null,this.source=null,this.layerType=null,this.below=null,this.visible=!1}var ag=HHe.prototype;ag.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=o7(t)};ag.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))};ag.needsNewSource=function(e){return this.sourceType!==e.sourcetype||JSON.stringify(this.source)!==JSON.stringify(e.source)||this.layerType!==e.type};ag.needsNewLayer=function(e){return this.layerType!==e.type||this.below!==this.subplot.belowLookup["layout-"+this.index]};ag.lookupBelow=function(){return this.subplot.belowLookup["layout-"+this.index]};ag.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)};ag.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,!!o7(e)){var r=BWt(e);t.addSource(this.idSource,r)}};ag.findFollowingMapLayerId=function(e){if(e==="traces")for(var t=this.subplot.getMapLayers(),r=0;r0){for(var r=0;r0}function jHe(e){var t={},r={};switch(e.type){case"circle":iw.extendFlat(r,{"circle-radius":e.circle.radius,"circle-color":e.color,"circle-opacity":e.opacity});break;case"line":iw.extendFlat(r,{"line-width":e.line.width,"line-color":e.color,"line-opacity":e.opacity,"line-dasharray":e.line.dash});break;case"fill":iw.extendFlat(r,{"fill-color":e.color,"fill-outline-color":e.fill.outlinecolor,"fill-opacity":e.opacity});break;case"symbol":var n=e.symbol,i=qWt(n.textposition,n.iconsize);iw.extendFlat(t,{"icon-image":n.icon+"-15","icon-size":n.iconsize/10,"text-field":n.text,"text-size":n.textfont.size,"text-anchor":i.anchor,"text-offset":i.offset,"symbol-placement":n.placement}),iw.extendFlat(r,{"icon-color":e.color,"text-color":n.textfont.color,"text-opacity":e.opacity});break;case"raster":iw.extendFlat(r,{"raster-fade-duration":0,"raster-opacity":e.opacity});break}return{layout:t,paint:r}}function BWt(e){var t=e.sourcetype,r=e.source,n={type:t},i;return t==="geojson"?i="data":t==="vector"?i=typeof r=="string"?"url":"tiles":t==="raster"?(i="tiles",n.tileSize=256):t==="image"&&(i="url",n.coordinates=e.coordinates),n[i]=r,e.sourceattribution&&(n.attribution=OWt(e.sourceattribution)),n}WHe.exports=function(t,r,n){var i=new HHe(t,r);return i.update(n),i}});var tje=ye((Rxr,eje)=>{"use strict";var kJ=VHe(),LJ=Dr(),KHe=nx(),ZHe=qa(),NWt=ho(),UWt=gv(),s7=vf(),JHe=Sg(),VWt=JHe.drawMode,GWt=JHe.selectMode,HWt=zf().prepSelect,jWt=zf().clearOutline,WWt=zf().clearSelectionsCache,XWt=zf().selectOnClick,nw=wx(),ZWt=XHe();function $He(e,t){this.id=t,this.gd=e;var r=e._fullLayout,n=e._context;this.container=r._glcontainer.node(),this.isStatic=n.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 Bh=$He.prototype;Bh.plot=function(e,t,r){var n=this,i;n.map?i=new Promise(function(a,o){n.updateMap(e,t,a,o)}):i=new Promise(function(a,o){n.createMap(e,t,a,o)}),r.push(i)};Bh.createMap=function(e,t,r,n){var i=this,a=t[i.id],o=i.styleObj=QHe(a.style),s=a.bounds,l=s?[[s.west,s.south],[s.east,s.north]]:null,u=i.map=new kJ.Map({container:i.div,style:o.style,center:PJ(a.center),zoom:a.zoom,bearing:a.bearing,pitch:a.pitch,maxBounds:l,interactive:!i.isStatic,preserveDrawingBuffer:i.isStatic,doubleClickZoom:!1,boxZoom:!1,attributionControl:!1}).addControl(new kJ.AttributionControl({compact:!0})),c={};u.on("styleimagemissing",function(h){var d=h.id;if(!c[d]&&d.includes("-15")){c[d]=!0;var v=new Image(15,15);v.onload=function(){u.addImage(d,v)},v.crossOrigin="Anonymous",v.src="https://unpkg.com/maki@2.1.0/icons/"+d+".svg"}}),u.setTransformRequest(function(h){return h=h.replace("https://fonts.openmaptiles.org/Open Sans Extrabold","https://fonts.openmaptiles.org/Open Sans Extra Bold"),h=h.replace("https://tiles.basemaps.cartocdn.com/fonts/Open Sans Extrabold","https://fonts.openmaptiles.org/Open Sans Extra Bold"),h=h.replace("https://fonts.openmaptiles.org/Open Sans Regular,Arial Unicode MS Regular","https://fonts.openmaptiles.org/Klokantech Noto Sans Regular"),{url:h}}),u._canvas.style.left="0px",u._canvas.style.top="0px",i.rejectOnError(n),i.isStatic||i.initFx(e,t);var f=[];f.push(new Promise(function(h){u.once("load",h)})),f=f.concat(KHe.fetchTraceGeoData(e)),Promise.all(f).then(function(){i.fillBelowLookup(e,t),i.updateData(e),i.updateLayout(t),i.resolveOnRender(r)}).catch(n)};Bh.updateMap=function(e,t,r,n){var i=this,a=i.map,o=t[this.id];i.rejectOnError(n);var s=[],l=QHe(o.style);JSON.stringify(i.styleObj)!==JSON.stringify(l)&&(i.styleObj=l,a.setStyle(l.style),i.traceHash={},s.push(new Promise(function(u){a.once("styledata",u)}))),s=s.concat(KHe.fetchTraceGeoData(e)),Promise.all(s).then(function(){i.fillBelowLookup(e,t),i.updateData(e),i.updateLayout(t),i.resolveOnRender(r)}).catch(n)};Bh.fillBelowLookup=function(e,t){var r=t[this.id],n=r.layers,i,a,o=this.belowLookup={},s=!1;for(i=0;i1)for(i=0;i-1&&XWt(l.originalEvent,n,[r.xaxis],[r.yaxis],r.id,s),u.indexOf("event")>-1&&s7.click(n,l.originalEvent)}}};Bh.updateFx=function(e){var t=this,r=t.map,n=t.gd;if(t.isStatic)return;function i(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]=[i([u.xmin,u.ymin]),i([u.xmax,u.ymax])]}else{var f=l.lassoPoints={};f[t.id]=u.map(i)}};var s=t.dragOptions;t.dragOptions=LJ.extendDeep(s||{},{dragmode:e.dragmode,element:t.div,gd:n,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),GWt(a)||VWt(a)?(r.dragPan.disable(),r.on("zoomstart",t.clearOutline),t.dragOptions.prepFn=function(l,u,c){HWt(l,u,c,t.dragOptions,a)},UWt.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))};Bh.updateFramework=function(e){var t=e[this.id].domain,r=e._size,n=this.div.style;n.width=r.w*(t.x[1]-t.x[0])+"px",n.height=r.h*(t.y[1]-t.y[0])+"px",n.left=r.l+t.x[0]*r.w+"px",n.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])};Bh.updateLayers=function(e){var t=e[this.id],r=t.layers,n=this.layerList,i;if(r.length!==n.length){for(i=0;i{"use strict";var IJ=Dr(),KWt=k_(),JWt=Yd(),rje=HC();ije.exports=function(t,r,n){KWt(t,r,n,{type:"map",attributes:rje,handleDefaults:$Wt,partition:"y"})};function $Wt(e,t,r){r("style"),r("center.lon"),r("center.lat"),r("zoom"),r("bearing"),r("pitch");var n=r("bounds.west"),i=r("bounds.east"),a=r("bounds.south"),o=r("bounds.north");(n===void 0||i===void 0||a===void 0||o===void 0)&&delete t.bounds,JWt(e,t,{name:"layers",handleItemDefaults:QWt}),t._input=e}function QWt(e,t){function r(l,u){return IJ.coerce(e,t,rje.layers,l,u)}var n=r("visible");if(n){var i=r("sourcetype"),a=i==="raster"||i==="image";r("source"),r("sourceattribution"),i==="vector"&&r("sourcelayer"),i==="image"&&r("coordinates");var o;a&&(o="raster");var s=r("type",o);a&&s!=="raster"&&(s=t.type="raster",IJ.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"),IJ.coerceFont(r,"symbol.textfont",void 0,{noFontVariant:!0,noFontShadow:!0,noFontLineposition:!0,noFontTextcase:!0}),r("symbol.textposition"),r("symbol.placement"))}}});var u7=ye(l0=>{"use strict";var l7=Dr(),aje=l7.strTranslate,eXt=l7.strScale,tXt=Id().getSubplotCalcData,rXt=Wp(),iXt=Oa(),oje=So(),nXt=iu(),aXt=tje(),Tx="map";l0.name=Tx;l0.attr="subplot";l0.idRoot=Tx;l0.idRegex=l0.attrRegex=l7.counterRegex(Tx);l0.attributes={subplot:{valType:"subplotid",dflt:"map",editType:"calc"}};l0.layoutAttributes=HC();l0.supplyLayoutDefaults=nje();l0.plot=function(t){for(var r=t._fullLayout,n=t.calcdata,i=r._subplots[Tx],a=0;ax/2){var b=f.split("|").join("
");d.text(b).attr("data-unformatted",b).call(nXt.convertToTspans,e),v=oje.bBox(d.node())}d.attr("transform",aje(-3,-v.height+8)),h.insert("rect",".static-attribution").attr({x:-v.width-6,y:-v.height-3,width:v.width+6,height:v.height+3,fill:"rgba(255, 255, 255, 0.75)"});var p=1;v.width+6>x&&(p=x/(v.width+6));var C=[n.l+n.w*o.x[1],n.t+n.h*(1-o.y[0])];h.attr("transform",aje(C[0],C[1])+eXt(p))}};l0.updateFx=function(e){for(var t=e._fullLayout,r=t._subplots[Tx],n=0;n{"use strict";sje.exports={attributes:e7(),supplyDefaults:xHe(),colorbar:$d(),formatLabels:wJ(),calc:fF(),plot:DHe(),hoverPoints:a7().hoverPoints,eventData:qHe(),selectPoints:NHe(),styleOnSelect:function(e,t){if(t){var r=t[0].trace;r._glTrace.update(t)}},moduleType:"trace",name:"scattermap",basePlotModule:u7(),categories:["map","gl","symbols","showLegend","scatter-like"],meta:{}}});var cje=ye((Oxr,uje)=>{"use strict";uje.exports=lje()});var RJ=ye((qxr,fje)=>{"use strict";var d1=JA(),oXt=Tu(),sXt=Qo().hovertemplateAttrs,lXt=Vl(),Ax=Ao().extendFlat;fje.exports=Ax({locations:{valType:"data_array",editType:"calc"},z:{valType:"data_array",editType:"calc"},geojson:{valType:"any",editType:"calc"},featureidkey:Ax({},d1.featureidkey,{}),below:{valType:"string",editType:"plot"},text:d1.text,hovertext:d1.hovertext,marker:{line:{color:Ax({},d1.marker.line.color,{editType:"plot"}),width:Ax({},d1.marker.line.width,{editType:"plot"}),editType:"calc"},opacity:Ax({},d1.marker.opacity,{editType:"plot"}),editType:"calc"},selected:{marker:{opacity:Ax({},d1.selected.marker.opacity,{editType:"plot"}),editType:"plot"},editType:"plot"},unselected:{marker:{opacity:Ax({},d1.unselected.marker.opacity,{editType:"plot"}),editType:"plot"},editType:"plot"},hoverinfo:d1.hoverinfo,hovertemplate:sXt({},{keys:["properties"]}),showlegend:Ax({},lXt.showlegend,{dflt:!1})},oXt("",{cLetter:"z",editTypeOverride:"calc"}))});var dje=ye((Bxr,hje)=>{"use strict";var ZC=Dr(),uXt=Jh(),cXt=RJ();hje.exports=function(t,r,n,i){function a(c,f){return ZC.coerce(t,r,cXt,c,f)}var o=a("locations"),s=a("z"),l=a("geojson");if(!ZC.isArrayOrTypedArray(o)||!o.length||!ZC.isArrayOrTypedArray(s)||!s.length||!(typeof l=="string"&&l!==""||ZC.isPlainObject(l))){r.visible=!1;return}a("featureidkey"),r._length=Math.min(o.length,s.length),a("below"),a("text"),a("hovertext"),a("hovertemplate");var u=a("marker.line.width");u&&a("marker.line.color"),a("marker.opacity"),uXt(t,r,i,a,{prefix:"",cLetter:"z"}),ZC.coerceSelectionMarkerOpacity(r,a)}});var DJ=ye((Nxr,gje)=>{"use strict";var fXt=Eo(),v1=Dr(),hXt=tc(),dXt=So(),vXt=rx().makeBlank,vje=nx();function pXt(e){var t=e[0].trace,r=t.visible===!0&&t._length!==0,n={layout:{visibility:"none"},paint:{}},i={layout:{visibility:"none"},paint:{}},a=t._opts={fill:n,line:i,geojson:vXt()};if(!r)return a;var o=vje.extractTraceFeature(e);if(!o)return a;var s=hXt.makeColorScaleFuncFromTrace(t),l=t.marker,u=l.line||{},c;v1.isArrayOrTypedArray(l.opacity)&&(c=function(C){var E=C.mo;return fXt(E)?+v1.constrain(E,0,1):0});var f;v1.isArrayOrTypedArray(u.color)&&(f=function(C){return C.mlc});var h;v1.isArrayOrTypedArray(u.width)&&(h=function(C){return C.mlw});for(var d=0;d{"use strict";var yje=DJ().convert,gXt=DJ().convertOnSelect,mje=wx().traceLayerPrefix;function _je(e,t){this.type="choroplethmap",this.subplot=e,this.uid=t,this.sourceId="source-"+t,this.layerList=[["fill",mje+t+"-fill"],["line",mje+t+"-line"]],this.below=null}var E5=_je.prototype;E5.update=function(e){this._update(yje(e)),e[0].trace._glTrace=this};E5.updateOnSelect=function(e){this._update(gXt(e))};E5._update=function(e){var t=this.subplot,r=this.layerList,n=t.belowLookup["trace-"+this.uid];t.map.getSource(this.sourceId).setData(e.geojson),n!==this.below&&(this._removeLayers(),this._addLayers(e,n),this.below=n);for(var i=0;i=0;r--)e.removeLayer(t[r][1])};E5.dispose=function(){var e=this.subplot.map;this._removeLayers(),e.removeSource(this.sourceId)};xje.exports=function(t,r){var n=r[0].trace,i=new _je(t,n.uid),a=i.sourceId,o=yje(r),s=i.below=t.belowLookup["trace-"+n.uid];return t.map.addSource(a,{type:"geojson",data:o.geojson}),i._addLayers(o,s),r[0].trace._glTrace=i,i}});var Tje=ye((Vxr,wje)=>{"use strict";wje.exports={attributes:RJ(),supplyDefaults:dje(),colorbar:M_(),calc:IF(),plot:bje(),hoverPoints:DF(),eventData:FF(),selectPoints:zF(),styleOnSelect:function(e,t){if(t){var r=t[0].trace;r._glTrace.updateOnSelect(t)}},getBelow:function(e,t){for(var r=t.getMapLayers(),n=r.length-2;n>=0;n--){var i=r[n].id;if(typeof i=="string"&&i.indexOf("water")===0){for(var a=n+1;a{"use strict";Aje.exports=Tje()});var zJ=ye((Hxr,Eje)=>{"use strict";var mXt=Tu(),yXt=Qo().hovertemplateAttrs,Mje=Vl(),c7=e7(),FJ=Ao().extendFlat;Eje.exports=FJ({lon:c7.lon,lat:c7.lat,z:{valType:"data_array",editType:"calc"},radius:{valType:"number",editType:"plot",arrayOk:!0,min:1,dflt:30},below:{valType:"string",editType:"plot"},text:c7.text,hovertext:c7.hovertext,hoverinfo:FJ({},Mje.hoverinfo,{flags:["lon","lat","z","text","name"]}),hovertemplate:yXt(),showlegend:FJ({},Mje.showlegend,{dflt:!1})},mXt("",{cLetter:"z",editTypeOverride:"calc"}))});var kje=ye((jxr,Cje)=>{"use strict";var _Xt=Dr(),xXt=Jh(),bXt=zJ();Cje.exports=function(t,r,n,i){function a(u,c){return _Xt.coerce(t,r,bXt,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"),xXt(t,r,i,a,{prefix:"",cLetter:"z"})}});var Ije=ye((Wxr,Pje)=>{"use strict";var OJ=Eo(),wXt=Dr().isArrayOrTypedArray,qJ=hs().BADNUM,TXt=Fv(),Lje=Dr()._;Pje.exports=function(t,r){for(var n=r._length,i=new Array(n),a=r.z,o=wXt(a)&&a.length,s=0;s{"use strict";var AXt=Eo(),BJ=Dr(),Rje=Ca(),Dje=tc(),Fje=hs().BADNUM,SXt=rx().makeBlank;zje.exports=function(t){var r=t[0].trace,n=r.visible===!0&&r._length!==0,i={layout:{visibility:"none"},paint:{}},a=r._opts={heatmap:i,geojson:SXt()};if(!n)return a;var o=[],s,l=r.z,u=r.radius,c=BJ.isArrayOrTypedArray(l)&&l.length,f=BJ.isArrayOrTypedArray(u);for(s=0;s0?+u[s]:0),o.push({type:"Feature",geometry:{type:"Point",coordinates:d},properties:v})}}var b=Dje.extractOpts(r),p=b.reversescale?Dje.flipScale(b.colorscale):b.colorscale,C=p[0][1],E=Rje.opacity(C)<1?C:Rje.addOpacity(C,0),A=["interpolate",["linear"],["heatmap-density"],0,E];for(s=1;s{"use strict";var qje=Oje(),MXt=wx().traceLayerPrefix;function Bje(e,t){this.type="densitymap",this.subplot=e,this.uid=t,this.sourceId="source-"+t,this.layerList=[["heatmap",MXt+t+"-heatmap"]],this.below=null}var f7=Bje.prototype;f7.update=function(e){var t=this.subplot,r=this.layerList,n=qje(e),i=t.belowLookup["trace-"+this.uid];t.map.getSource(this.sourceId).setData(n.geojson),i!==this.below&&(this._removeLayers(),this._addLayers(n,i),this.below=i);for(var a=0;a=0;r--)e.removeLayer(t[r][1])};f7.dispose=function(){var e=this.subplot.map;this._removeLayers(),e.removeSource(this.sourceId)};Nje.exports=function(t,r){var n=r[0].trace,i=new Bje(t,n.uid),a=i.sourceId,o=qje(r),s=i.below=t.belowLookup["trace-"+n.uid];return t.map.addSource(a,{type:"geojson",data:o.geojson}),i._addLayers(o,s),i}});var Gje=ye((Yxr,Vje)=>{"use strict";var EXt=ho(),CXt=a7().hoverPoints,kXt=a7().getExtraText;Vje.exports=function(t,r,n){var i=CXt(t,r,n);if(i){var a=i[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=EXt.tickText(u,u.c2l(l.z),"hover").text}return a.extraText=kXt(s,l,o[0].t.labels),[a]}}});var jje=ye((Kxr,Hje)=>{"use strict";Hje.exports=function(t,r){return t.lon=r.lon,t.lat=r.lat,t.z=r.z,t}});var Xje=ye((Jxr,Wje)=>{"use strict";Wje.exports={attributes:zJ(),supplyDefaults:kje(),colorbar:M_(),formatLabels:wJ(),calc:Ije(),plot:Uje(),hoverPoints:Gje(),eventData:jje(),getBelow:function(e,t){for(var r=t.getMapLayers(),n=0;n{"use strict";Zje.exports=Xje()});var UJ=ye((ebr,Qje)=>{"use strict";var LXt=ec(),PXt=Vl(),Kje=Eh(),NJ=i3(),IXt=kc().attributes,Jje=Qo().hovertemplateAttrs,RXt=Tu(),DXt=pl().templatedArray,FXt=df().descriptionOnlyNumbers,$je=Ao().extendFlat,zXt=mc().overrideAll,Qxr=Qje.exports=zXt({hoverinfo:$je({},PXt.hoverinfo,{flags:[],arrayOk:!1}),hoverlabel:NJ.hoverlabel,domain:IXt({name:"sankey",trace:!0}),orientation:{valType:"enumerated",values:["v","h"],dflt:"h"},valueformat:{valType:"string",dflt:".3s",description:FXt("value")},valuesuffix:{valType:"string",dflt:""},arrangement:{valType:"enumerated",values:["snap","perpendicular","freeform","fixed"],dflt:"snap"},textfont:LXt({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:Kje.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:NJ.hoverlabel,hovertemplate:Jje({},{keys:["value","label"]}),align:{valType:"enumerated",values:["justify","left","right","center"],dflt:"justify"}},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:Kje.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:NJ.hoverlabel,hovertemplate:Jje({},{keys:["value","label"]}),colorscales:DXt("concentrationscales",{editType:"calc",label:{valType:"string",editType:"calc",dflt:""},cmax:{valType:"number",editType:"calc",dflt:1},cmin:{valType:"number",editType:"calc",dflt:0},colorscale:$je(RXt().colorscale,{dflt:[[0,"white"],[1,"black"]]})})}},"calc","nested")});var nWe=ye((tbr,iWe)=>{"use strict";var C5=Dr(),h7=UJ(),OXt=Ca(),eWe=cd(),qXt=kc().defaults,tWe=cM(),rWe=pl(),BXt=Yd();iWe.exports=function(t,r,n,i){function a(A,L){return C5.coerce(t,r,h7,A,L)}var o=C5.extendDeep(i.hoverlabel,t.hoverlabel),s=t.node,l=rWe.newContainer(r,"node");function u(A,L){return C5.coerce(s,l,h7.node,A,L)}u("label"),u("groups"),u("x"),u("y"),u("pad"),u("thickness"),u("line.color"),u("line.width"),u("hoverinfo",t.hoverinfo),tWe(s,l,u,o),u("hovertemplate"),u("align");var c=i.colorway,f=function(A){return c[A%c.length]};u("color",l.label.map(function(A,L){return OXt.addOpacity(f(L),.8)})),u("customdata");var h=t.link||{},d=rWe.newContainer(r,"link");function v(A,L){return C5.coerce(h,d,h7.link,A,L)}v("label"),v("arrowlen"),v("source"),v("target"),v("value"),v("line.color"),v("line.width"),v("hoverinfo",t.hoverinfo),tWe(h,d,v,o),v("hovertemplate");var x=eWe(i.paper_bgcolor).getLuminance()<.333,b=x?"rgba(255, 255, 255, 0.6)":"rgba(0, 0, 0, 0.2)",p=v("color",b);function C(A){var L=eWe(A);if(!L.isValid())return A;var _=L.getAlpha();return _<=.8?L.setAlpha(_+.2):L=x?L.brighten():L.darken(),L.toRgbString()}v("hovercolor",Array.isArray(p)?p.map(C):C(p)),v("customdata"),BXt(h,d,{name:"colorscales",handleItemDefaults:NXt}),qXt(r,i,a),a("orientation"),a("valueformat"),a("valuesuffix");var E;l.x.length&&l.y.length&&(E="freeform"),a("arrangement",E),C5.coerceFont(a,"textfont",i.font,{autoShadowDflt:!0}),r._length=null};function NXt(e,t){function r(n,i){return C5.coerce(e,t,h7.link.colorscales,n,i)}r("label"),r("cmin"),r("cmax"),r("colorscale")}});var VJ=ye((rbr,aWe)=>{"use strict";aWe.exports=UXt;function UXt(e){for(var t=e.length,r=new Array(t),n=new Array(t),i=new Array(t),a=new Array(t),o=new Array(t),s=new Array(t),l=0;l0;){b=C[C.length-1];var E=e[b];if(a[b]=0&&s[b].push(o[L])}a[b]=A}else{if(n[b]===r[b]){for(var _=[],k=[],M=0,A=p.length-1;A>=0;--A){var g=p[A];if(i[g]=!1,_.push(g),k.push(s[g]),M+=s[g].length,o[g]=c.length,g===b){p.length=A;break}}c.push(_);for(var P=new Array(M),A=0;A{"use strict";var VXt=VJ(),k5=Dr(),GXt=Km().wrap,YC=k5.isArrayOrTypedArray,oWe=k5.isIndex,sWe=tc();function HXt(e){var t=e.node,r=e.link,n=[],i=YC(r.color),a=YC(r.hovercolor),o=YC(r.customdata),s={},l={},u=r.colorscales.length,c;for(c=0;cv&&(v=r.source[c]),r.target[c]>v&&(v=r.target[c]);var x=v+1;e.node._count=x;var b,p=e.node.groups,C={};for(c=0;c0&&oWe(M,x)&&oWe(g,x)&&!(C.hasOwnProperty(M)&&C.hasOwnProperty(g)&&C[M]===C[g])){C.hasOwnProperty(g)&&(g=C[g]),C.hasOwnProperty(M)&&(M=C[M]),M=+M,g=+g,s[M]=s[g]=!0;var P="";r.label&&r.label[c]&&(P=r.label[c]);var T=null;P&&l.hasOwnProperty(P)&&(T=l[P]),n.push({pointNumber:c,label:P,color:i?r.color[c]:r.color,hovercolor:a?r.hovercolor[c]:r.hovercolor,customdata:o?r.customdata[c]:r.customdata,concentrationscale:T,source:M,target:g,value:+k}),_.source.push(M),_.target.push(g)}}var z=x+p.length,O=YC(t.color),V=YC(t.customdata),G=[];for(c=0;cx-1,childrenNodes:[],pointNumber:c,label:Z,color:O?t.color[c]:t.color,customdata:V?t.customdata[c]:t.customdata})}var H=!1;return jXt(z,_.source,_.target)&&(H=!0),{circular:H,links:n,nodes:G,groups:p,groupLookup:C}}function jXt(e,t,r){for(var n=k5.init2dArray(e,0),i=0;i1})}lWe.exports=function(t,r){var n=HXt(r);return GXt({circular:n.circular,_nodes:n.nodes,_links:n.links,_groups:n.groups,_groupLookup:n.groupLookup})}});var fWe=ye((d7,cWe)=>{(function(e,t){typeof d7=="object"&&typeof cWe!="undefined"?t(d7):(e=e||self,t(e.d3=e.d3||{}))})(d7,function(e){"use strict";function t(k){var M=+this._x.call(null,k),g=+this._y.call(null,k);return r(this.cover(M,g),M,g,k)}function r(k,M,g,P){if(isNaN(M)||isNaN(g))return k;var T,z=k._root,O={data:P},V=k._x0,G=k._y0,Z=k._x1,H=k._y1,N,j,re,oe,_e,Me,ke,me;if(!z)return k._root=O,k;for(;z.length;)if((_e=M>=(N=(V+Z)/2))?V=N:Z=N,(Me=g>=(j=(G+H)/2))?G=j:H=j,T=z,!(z=z[ke=Me<<1|_e]))return T[ke]=O,k;if(re=+k._x.call(null,z.data),oe=+k._y.call(null,z.data),M===re&&g===oe)return O.next=z,T?T[ke]=O:k._root=O,k;do T=T?T[ke]=new Array(4):k._root=new Array(4),(_e=M>=(N=(V+Z)/2))?V=N:Z=N,(Me=g>=(j=(G+H)/2))?G=j:H=j;while((ke=Me<<1|_e)===(me=(oe>=j)<<1|re>=N));return T[me]=z,T[ke]=O,k}function n(k){var M,g,P=k.length,T,z,O=new Array(P),V=new Array(P),G=1/0,Z=1/0,H=-1/0,N=-1/0;for(g=0;gH&&(H=T),zN&&(N=z));if(G>H||Z>N)return this;for(this.cover(G,Z).cover(H,N),g=0;gk||k>=T||P>M||M>=z;)switch(Z=(MH||(V=oe.y0)>N||(G=oe.x1)=ke)<<1|k>=Me)&&(oe=j[j.length-1],j[j.length-1]=j[j.length-1-_e],j[j.length-1-_e]=oe)}else{var me=k-+this._x.call(null,re.data),ie=M-+this._y.call(null,re.data),Se=me*me+ie*ie;if(Se=(j=(O+G)/2))?O=j:G=j,(_e=N>=(re=(V+Z)/2))?V=re:Z=re,M=g,!(g=g[Me=_e<<1|oe]))return this;if(!g.length)break;(M[Me+1&3]||M[Me+2&3]||M[Me+3&3])&&(P=M,ke=Me)}for(;g.data!==k;)if(T=g,!(g=g.next))return this;return(z=g.next)&&delete g.next,T?(z?T.next=z:delete T.next,this):M?(z?M[Me]=z:delete M[Me],(g=M[0]||M[1]||M[2]||M[3])&&g===(M[3]||M[2]||M[1]||M[0])&&!g.length&&(P?P[ke]=g:this._root=g),this):(this._root=z,this)}function c(k){for(var M=0,g=k.length;M{(function(e,t){t(typeof v7=="object"&&typeof hWe!="undefined"?v7:e.d3=e.d3||{})})(v7,function(e){"use strict";var t="$";function r(){}r.prototype=n.prototype={constructor:r,has:function(x){return t+x in this},get:function(x){return this[t+x]},set:function(x,b){return this[t+x]=b,this},remove:function(x){var b=t+x;return b in this&&delete this[b]},clear:function(){for(var x in this)x[0]===t&&delete this[x]},keys:function(){var x=[];for(var b in this)b[0]===t&&x.push(b.slice(1));return x},values:function(){var x=[];for(var b in this)b[0]===t&&x.push(this[b]);return x},entries:function(){var x=[];for(var b in this)b[0]===t&&x.push({key:b.slice(1),value:this[b]});return x},size:function(){var x=0;for(var b in this)b[0]===t&&++x;return x},empty:function(){for(var x in this)if(x[0]===t)return!1;return!0},each:function(x){for(var b in this)b[0]===t&&x(this[b],b.slice(1),this)}};function n(x,b){var p=new r;if(x instanceof r)x.each(function(_,k){p.set(k,_)});else if(Array.isArray(x)){var C=-1,E=x.length,A;if(b==null)for(;++C=x.length)return p!=null&&_.sort(p),C!=null?C(_):_;for(var P=-1,T=_.length,z=x[k++],O,V,G=n(),Z,H=M();++Px.length)return _;var M,g=b[k-1];return C!=null&&k>=x.length?M=_.entries():(M=[],_.each(function(P,T){M.push({key:T,values:L(P,k)})})),g!=null?M.sort(function(P,T){return g(P.key,T.key)}):M}return E={object:function(_){return A(_,0,a,o)},map:function(_){return A(_,0,s,l)},entries:function(_){return L(A(_,0,s,l),0)},key:function(_){return x.push(_),E},sortKeys:function(_){return b[x.length-1]=_,E},sortValues:function(_){return p=_,E},rollup:function(_){return C=_,E}}}function a(){return{}}function o(x,b,p){x[b]=p}function s(){return n()}function l(x,b,p){x.set(b,p)}function u(){}var c=n.prototype;u.prototype=f.prototype={constructor:u,has:c.has,add:function(x){return x+="",this[t+x]=x,this},remove:c.remove,clear:c.clear,values:c.keys,size:c.size,empty:c.empty,each:c.each};function f(x,b){var p=new u;if(x instanceof u)x.each(function(A){p.add(A)});else if(x){var C=-1,E=x.length;if(b==null)for(;++C{(function(e,t){typeof g7=="object"&&typeof dWe!="undefined"?t(g7):(e=e||self,t(e.d3=e.d3||{}))})(g7,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}})}n.prototype=r.prototype={constructor:n,on:function(s,l){var u=this._,c=i(s+"",u),f,h=-1,d=c.length;if(arguments.length<2){for(;++h0)for(var u=new Array(f),c=0,f,h;c{(function(e,t){typeof m7=="object"&&typeof pWe!="undefined"?t(m7):(e=e||self,t(e.d3=e.d3||{}))})(m7,function(e){"use strict";var t=0,r=0,n=0,i=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(k){setTimeout(k,17)};function h(){return l||(f(d),l=c.now()+u)}function d(){l=0}function v(){this._call=this._time=this._next=null}v.prototype=x.prototype={constructor:v,restart:function(k,M,g){if(typeof k!="function")throw new TypeError("callback is not a function");g=(g==null?h():+g)+(M==null?0:+M),!this._next&&o!==this&&(o?o._next=this:a=this,o=this),this._call=k,this._time=g,A()},stop:function(){this._call&&(this._call=null,this._time=1/0,A())}};function x(k,M,g){var P=new v;return P.restart(k,M,g),P}function b(){h(),++t;for(var k=a,M;k;)(M=l-k._time)>=0&&k._call.call(null,M),k=k._next;--t}function p(){l=(s=c.now())+u,t=r=0;try{b()}finally{t=0,E(),l=0}}function C(){var k=c.now(),M=k-s;M>i&&(u-=M,s=k)}function E(){for(var k,M=a,g,P=1/0;M;)M._call?(P>M._time&&(P=M._time),k=M,M=M._next):(g=M._next,M._next=null,M=k?k._next=g:a=g);o=k,A(P)}function A(k){if(!t){r&&(r=clearTimeout(r));var M=k-l;M>24?(k<1/0&&(r=setTimeout(p,k-c.now()-u)),n&&(n=clearInterval(n))):(n||(s=c.now(),n=setInterval(C,i)),t=1,f(p))}}function L(k,M,g){var P=new v;return M=M==null?0:+M,P.restart(function(T){P.stop(),k(T+M)},M,g),P}function _(k,M,g){var P=new v,T=M;return M==null?(P.restart(k,M,g),P):(M=+M,g=g==null?h():+g,P.restart(function z(O){O+=T,P.restart(z,T+=M,g),k(O)},M,g),P)}e.interval=_,e.now=h,e.timeout=L,e.timer=x,e.timerFlush=b,Object.defineProperty(e,"__esModule",{value:!0})})});var yWe=ye((y7,mWe)=>{(function(e,t){typeof y7=="object"&&typeof mWe!="undefined"?t(y7,fWe(),p7(),vWe(),gWe()):t(e.d3=e.d3||{},e.d3,e.d3,e.d3,e.d3)})(y7,function(e,t,r,n,i){"use strict";function a(k,M){var g;k==null&&(k=0),M==null&&(M=0);function P(){var T,z=g.length,O,V=0,G=0;for(T=0;TN.index){var Fe=j-De.x-De.vx,ce=re-De.y-De.vy,Ze=Fe*Fe+ce*ce;Zej+ge||Lere+ge||AeG.r&&(G.r=G[Z].r)}function V(){if(M){var G,Z=M.length,H;for(g=new Array(Z),G=0;G1?(_e==null?V.remove(oe):V.set(oe,re(_e)),M):V.get(oe)},find:function(oe,_e,Me){var ke=0,me=k.length,ie,Se,Le,Ae,De;for(Me==null?Me=1/0:Me*=Me,ke=0;ke1?(Z.on(oe,_e),M):Z.on(oe)}}}function E(){var k,M,g,P=o(-30),T,z=1,O=1/0,V=.81;function G(j){var re,oe=k.length,_e=t.quadtree(k,v,x).visitAfter(H);for(g=j,re=0;re=O)return;(j.data!==M||j.next)&&(Me===0&&(Me=s(),ie+=Me*Me),ke===0&&(ke=s(),ie+=ke*ke),ie{(function(e,t){typeof _7=="object"&&typeof _We!="undefined"?t(_7):(e=e||self,t(e.d3=e.d3||{}))})(_7,function(e){"use strict";var t=Math.PI,r=2*t,n=1e-6,i=r-n;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,d=this._y1,v=u-s,x=c-l,b=h-s,p=d-l,C=b*b+p*p;if(f<0)throw new Error("negative radius: "+f);if(this._x1===null)this._+="M"+(this._x1=s)+","+(this._y1=l);else if(C>n)if(!(Math.abs(p*v-x*b)>n)||!f)this._+="L"+(this._x1=s)+","+(this._y1=l);else{var E=u-h,A=c-d,L=v*v+x*x,_=E*E+A*A,k=Math.sqrt(L),M=Math.sqrt(C),g=f*Math.tan((t-Math.acos((L+C-_)/(2*k*M)))/2),P=g/M,T=g/k;Math.abs(P-1)>n&&(this._+="L"+(s+P*b)+","+(l+P*p)),this._+="A"+f+","+f+",0,0,"+ +(p*E>b*A)+","+(this._x1=s+T*v)+","+(this._y1=l+T*x)}},arc:function(s,l,u,c,f,h){s=+s,l=+l,u=+u,h=!!h;var d=u*Math.cos(c),v=u*Math.sin(c),x=s+d,b=l+v,p=1^h,C=h?c-f:f-c;if(u<0)throw new Error("negative radius: "+u);this._x1===null?this._+="M"+x+","+b:(Math.abs(this._x1-x)>n||Math.abs(this._y1-b)>n)&&(this._+="L"+x+","+b),u&&(C<0&&(C=C%r+r),C>i?this._+="A"+u+","+u+",0,1,"+p+","+(s-d)+","+(l-v)+"A"+u+","+u+",0,1,"+p+","+(this._x1=x)+","+(this._y1=b):C>n&&(this._+="A"+u+","+u+",0,"+ +(C>=t)+","+p+","+(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 GJ=ye((x7,bWe)=>{(function(e,t){typeof x7=="object"&&typeof bWe!="undefined"?t(x7,xWe()):(e=e||self,t(e.d3=e.d3||{},e.d3))})(x7,function(e,t){"use strict";function r(St){return function(){return St}}var n=Math.abs,i=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,d=2*f;function v(St){return St>1?0:St<-1?f:Math.acos(St)}function x(St){return St>=1?h:St<=-1?-h:Math.asin(St)}function b(St){return St.innerRadius}function p(St){return St.outerRadius}function C(St){return St.startAngle}function E(St){return St.endAngle}function A(St){return St&&St.padAngle}function L(St,Cr,Qr,pi,fn,Sn,En,ki){var _n=Qr-St,ya=pi-Cr,Jn=En-fn,Ma=ki-Sn,_o=Ma*_n-Jn*ya;if(!(_o*_oZl*Zl+Su*Su&&(Ss=Js,fl=Os),{cx:Ss,cy:fl,x01:-Jn,y01:-Ma,x11:Ss*(fn/Fl-1),y11:fl*(fn/Fl-1)}}function k(){var St=b,Cr=p,Qr=r(0),pi=null,fn=C,Sn=E,En=A,ki=null;function _n(){var ya,Jn,Ma=+St.apply(this,arguments),_o=+Cr.apply(this,arguments),No=fn.apply(this,arguments)-h,po=Sn.apply(this,arguments)-h,Lo=n(po-No),Co=po>No;if(ki||(ki=ya=t.path()),_oc))ki.moveTo(0,0);else if(Lo>d-c)ki.moveTo(_o*a(No),_o*l(No)),ki.arc(0,0,_o,No,po,!Co),Ma>c&&(ki.moveTo(Ma*a(po),Ma*l(po)),ki.arc(0,0,Ma,po,No,Co));else{var Fs=No,zs=po,ul=No,cl=po,Fl=Lo,cs=Lo,nl=En.apply(this,arguments)/2,Ss=nl>c&&(pi?+pi.apply(this,arguments):u(Ma*Ma+_o*_o)),fl=s(n(_o-Ma)/2,+Qr.apply(this,arguments)),Js=fl,Os=fl,Io,us;if(Ss>c){var Zl=x(Ss/Ma*l(nl)),Su=x(Ss/_o*l(nl));(Fl-=Zl*2)>c?(Zl*=Co?1:-1,ul+=Zl,cl-=Zl):(Fl=0,ul=cl=(No+po)/2),(cs-=Su*2)>c?(Su*=Co?1:-1,Fs+=Su,zs-=Su):(cs=0,Fs=zs=(No+po)/2)}var nc=_o*a(Fs),ws=_o*l(Fs),Fn=Ma*a(cl),_a=Ma*l(cl);if(fl>c){var Vu=_o*a(zs),zl=_o*l(zs),xo=Ma*a(ul),Yl=Ma*l(ul),Us;if(Loc?Os>c?(Io=_(xo,Yl,nc,ws,_o,Os,Co),us=_(Vu,zl,Fn,_a,_o,Os,Co),ki.moveTo(Io.cx+Io.x01,Io.cy+Io.y01),Osc)||!(Fl>c)?ki.lineTo(Fn,_a):Js>c?(Io=_(Fn,_a,Vu,zl,Ma,-Js,Co),us=_(nc,ws,xo,Yl,Ma,-Js,Co),ki.lineTo(Io.cx+Io.x01,Io.cy+Io.y01),Js=_o;--No)ki.point(zs[No],ul[No]);ki.lineEnd(),ki.areaEnd()}Co&&(zs[Ma]=+St(Lo,Ma,Jn),ul[Ma]=+Qr(Lo,Ma,Jn),ki.point(Cr?+Cr(Lo,Ma,Jn):zs[Ma],pi?+pi(Lo,Ma,Jn):ul[Ma]))}if(Fs)return ki=null,Fs+""||null}function ya(){return z().defined(fn).curve(En).context(Sn)}return _n.x=function(Jn){return arguments.length?(St=typeof Jn=="function"?Jn:r(+Jn),Cr=null,_n):St},_n.x0=function(Jn){return arguments.length?(St=typeof Jn=="function"?Jn:r(+Jn),_n):St},_n.x1=function(Jn){return arguments.length?(Cr=Jn==null?null:typeof Jn=="function"?Jn:r(+Jn),_n):Cr},_n.y=function(Jn){return arguments.length?(Qr=typeof Jn=="function"?Jn:r(+Jn),pi=null,_n):Qr},_n.y0=function(Jn){return arguments.length?(Qr=typeof Jn=="function"?Jn:r(+Jn),_n):Qr},_n.y1=function(Jn){return arguments.length?(pi=Jn==null?null:typeof Jn=="function"?Jn:r(+Jn),_n):pi},_n.lineX0=_n.lineY0=function(){return ya().x(St).y(Qr)},_n.lineY1=function(){return ya().x(St).y(pi)},_n.lineX1=function(){return ya().x(Cr).y(Qr)},_n.defined=function(Jn){return arguments.length?(fn=typeof Jn=="function"?Jn:r(!!Jn),_n):fn},_n.curve=function(Jn){return arguments.length?(En=Jn,Sn!=null&&(ki=En(Sn)),_n):En},_n.context=function(Jn){return arguments.length?(Jn==null?Sn=ki=null:ki=En(Sn=Jn),_n):Sn},_n}function V(St,Cr){return CrSt?1:Cr>=St?0:NaN}function G(St){return St}function Z(){var St=G,Cr=V,Qr=null,pi=r(0),fn=r(d),Sn=r(0);function En(ki){var _n,ya=ki.length,Jn,Ma,_o=0,No=new Array(ya),po=new Array(ya),Lo=+pi.apply(this,arguments),Co=Math.min(d,Math.max(-d,fn.apply(this,arguments)-Lo)),Fs,zs=Math.min(Math.abs(Co)/ya,Sn.apply(this,arguments)),ul=zs*(Co<0?-1:1),cl;for(_n=0;_n0&&(_o+=cl);for(Cr!=null?No.sort(function(Fl,cs){return Cr(po[Fl],po[cs])}):Qr!=null&&No.sort(function(Fl,cs){return Qr(ki[Fl],ki[cs])}),_n=0,Ma=_o?(Co-ya*ul)/_o:0;_n0?cl*Ma:0)+ul,po[Jn]={data:ki[Jn],index:_n,value:cl,startAngle:Lo,endAngle:Fs,padAngle:zs};return po}return En.value=function(ki){return arguments.length?(St=typeof ki=="function"?ki:r(+ki),En):St},En.sortValues=function(ki){return arguments.length?(Cr=ki,Qr=null,En):Cr},En.sort=function(ki){return arguments.length?(Qr=ki,Cr=null,En):Qr},En.startAngle=function(ki){return arguments.length?(pi=typeof ki=="function"?ki:r(+ki),En):pi},En.endAngle=function(ki){return arguments.length?(fn=typeof ki=="function"?ki:r(+ki),En):fn},En.padAngle=function(ki){return arguments.length?(Sn=typeof ki=="function"?ki:r(+ki),En):Sn},En}var H=j(g);function N(St){this._curve=St}N.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(St,Cr){this._curve.point(Cr*Math.sin(St),Cr*-Math.cos(St))}};function j(St){function Cr(Qr){return new N(St(Qr))}return Cr._curve=St,Cr}function re(St){var Cr=St.curve;return St.angle=St.x,delete St.x,St.radius=St.y,delete St.y,St.curve=function(Qr){return arguments.length?Cr(j(Qr)):Cr()._curve},St}function oe(){return re(z().curve(H))}function _e(){var St=O().curve(H),Cr=St.curve,Qr=St.lineX0,pi=St.lineX1,fn=St.lineY0,Sn=St.lineY1;return St.angle=St.x,delete St.x,St.startAngle=St.x0,delete St.x0,St.endAngle=St.x1,delete St.x1,St.radius=St.y,delete St.y,St.innerRadius=St.y0,delete St.y0,St.outerRadius=St.y1,delete St.y1,St.lineStartAngle=function(){return re(Qr())},delete St.lineX0,St.lineEndAngle=function(){return re(pi())},delete St.lineX1,St.lineInnerRadius=function(){return re(fn())},delete St.lineY0,St.lineOuterRadius=function(){return re(Sn())},delete St.lineY1,St.curve=function(En){return arguments.length?Cr(j(En)):Cr()._curve},St}function Me(St,Cr){return[(Cr=+Cr)*Math.cos(St-=Math.PI/2),Cr*Math.sin(St)]}var ke=Array.prototype.slice;function me(St){return St.source}function ie(St){return St.target}function Se(St){var Cr=me,Qr=ie,pi=P,fn=T,Sn=null;function En(){var ki,_n=ke.call(arguments),ya=Cr.apply(this,_n),Jn=Qr.apply(this,_n);if(Sn||(Sn=ki=t.path()),St(Sn,+pi.apply(this,(_n[0]=ya,_n)),+fn.apply(this,_n),+pi.apply(this,(_n[0]=Jn,_n)),+fn.apply(this,_n)),ki)return Sn=null,ki+""||null}return En.source=function(ki){return arguments.length?(Cr=ki,En):Cr},En.target=function(ki){return arguments.length?(Qr=ki,En):Qr},En.x=function(ki){return arguments.length?(pi=typeof ki=="function"?ki:r(+ki),En):pi},En.y=function(ki){return arguments.length?(fn=typeof ki=="function"?ki:r(+ki),En):fn},En.context=function(ki){return arguments.length?(Sn=ki==null?null:ki,En):Sn},En}function Le(St,Cr,Qr,pi,fn){St.moveTo(Cr,Qr),St.bezierCurveTo(Cr=(Cr+pi)/2,Qr,Cr,fn,pi,fn)}function Ae(St,Cr,Qr,pi,fn){St.moveTo(Cr,Qr),St.bezierCurveTo(Cr,Qr=(Qr+fn)/2,pi,Qr,pi,fn)}function De(St,Cr,Qr,pi,fn){var Sn=Me(Cr,Qr),En=Me(Cr,Qr=(Qr+fn)/2),ki=Me(pi,Qr),_n=Me(pi,fn);St.moveTo(Sn[0],Sn[1]),St.bezierCurveTo(En[0],En[1],ki[0],ki[1],_n[0],_n[1])}function Pe(){return Se(Le)}function ge(){return Se(Ae)}function Fe(){var St=Se(De);return St.angle=St.x,delete St.x,St.radius=St.y,delete St.y,St}var ce={draw:function(St,Cr){var Qr=Math.sqrt(Cr/f);St.moveTo(Qr,0),St.arc(0,0,Qr,0,d)}},Ze={draw:function(St,Cr){var Qr=Math.sqrt(Cr/5)/2;St.moveTo(-3*Qr,-Qr),St.lineTo(-Qr,-Qr),St.lineTo(-Qr,-3*Qr),St.lineTo(Qr,-3*Qr),St.lineTo(Qr,-Qr),St.lineTo(3*Qr,-Qr),St.lineTo(3*Qr,Qr),St.lineTo(Qr,Qr),St.lineTo(Qr,3*Qr),St.lineTo(-Qr,3*Qr),St.lineTo(-Qr,Qr),St.lineTo(-3*Qr,Qr),St.closePath()}},ct=Math.sqrt(1/3),pt=ct*2,Wt={draw:function(St,Cr){var Qr=Math.sqrt(Cr/pt),pi=Qr*ct;St.moveTo(0,-Qr),St.lineTo(pi,0),St.lineTo(0,Qr),St.lineTo(-pi,0),St.closePath()}},st=.8908130915292852,lt=Math.sin(f/10)/Math.sin(7*f/10),Gt=Math.sin(d/10)*lt,Nt=-Math.cos(d/10)*lt,$t={draw:function(St,Cr){var Qr=Math.sqrt(Cr*st),pi=Gt*Qr,fn=Nt*Qr;St.moveTo(0,-Qr),St.lineTo(pi,fn);for(var Sn=1;Sn<5;++Sn){var En=d*Sn/5,ki=Math.cos(En),_n=Math.sin(En);St.lineTo(_n*Qr,-ki*Qr),St.lineTo(ki*pi-_n*fn,_n*pi+ki*fn)}St.closePath()}},sr={draw:function(St,Cr){var Qr=Math.sqrt(Cr),pi=-Qr/2;St.rect(pi,pi,Qr,Qr)}},wr=Math.sqrt(3),ur={draw:function(St,Cr){var Qr=-Math.sqrt(Cr/(wr*3));St.moveTo(0,Qr*2),St.lineTo(-wr*Qr,-Qr),St.lineTo(wr*Qr,-Qr),St.closePath()}},Qe=-.5,Et=Math.sqrt(3)/2,er=1/Math.sqrt(12),Ut=(er/2+1)*3,Ft={draw:function(St,Cr){var Qr=Math.sqrt(Cr/Ut),pi=Qr/2,fn=Qr*er,Sn=pi,En=Qr*er+Qr,ki=-Sn,_n=En;St.moveTo(pi,fn),St.lineTo(Sn,En),St.lineTo(ki,_n),St.lineTo(Qe*pi-Et*fn,Et*pi+Qe*fn),St.lineTo(Qe*Sn-Et*En,Et*Sn+Qe*En),St.lineTo(Qe*ki-Et*_n,Et*ki+Qe*_n),St.lineTo(Qe*pi+Et*fn,Qe*fn-Et*pi),St.lineTo(Qe*Sn+Et*En,Qe*En-Et*Sn),St.lineTo(Qe*ki+Et*_n,Qe*_n-Et*ki),St.closePath()}},bt=[ce,Ze,Wt,sr,$t,ur,Ft];function yt(){var St=r(ce),Cr=r(64),Qr=null;function pi(){var fn;if(Qr||(Qr=fn=t.path()),St.apply(this,arguments).draw(Qr,+Cr.apply(this,arguments)),fn)return Qr=null,fn+""||null}return pi.type=function(fn){return arguments.length?(St=typeof fn=="function"?fn:r(fn),pi):St},pi.size=function(fn){return arguments.length?(Cr=typeof fn=="function"?fn:r(+fn),pi):Cr},pi.context=function(fn){return arguments.length?(Qr=fn==null?null:fn,pi):Qr},pi}function Yt(){}function lr(St,Cr,Qr){St._context.bezierCurveTo((2*St._x0+St._x1)/3,(2*St._y0+St._y1)/3,(St._x0+2*St._x1)/3,(St._y0+2*St._y1)/3,(St._x0+4*St._x1+Cr)/6,(St._y0+4*St._y1+Qr)/6)}function Tr(St){this._context=St}Tr.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:lr(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(St,Cr){switch(St=+St,Cr=+Cr,this._point){case 0:this._point=1,this._line?this._context.lineTo(St,Cr):this._context.moveTo(St,Cr);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:lr(this,St,Cr);break}this._x0=this._x1,this._x1=St,this._y0=this._y1,this._y1=Cr}};function Rr(St){return new Tr(St)}function ei(St){this._context=St}ei.prototype={areaStart:Yt,areaEnd:Yt,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(St,Cr){switch(St=+St,Cr=+Cr,this._point){case 0:this._point=1,this._x2=St,this._y2=Cr;break;case 1:this._point=2,this._x3=St,this._y3=Cr;break;case 2:this._point=3,this._x4=St,this._y4=Cr,this._context.moveTo((this._x0+4*this._x1+St)/6,(this._y0+4*this._y1+Cr)/6);break;default:lr(this,St,Cr);break}this._x0=this._x1,this._x1=St,this._y0=this._y1,this._y1=Cr}};function Wr(St){return new ei(St)}function Ur(St){this._context=St}Ur.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(St,Cr){switch(St=+St,Cr=+Cr,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var Qr=(this._x0+4*this._x1+St)/6,pi=(this._y0+4*this._y1+Cr)/6;this._line?this._context.lineTo(Qr,pi):this._context.moveTo(Qr,pi);break;case 3:this._point=4;default:lr(this,St,Cr);break}this._x0=this._x1,this._x1=St,this._y0=this._y1,this._y1=Cr}};function dt(St){return new Ur(St)}function Ge(St,Cr){this._basis=new Tr(St),this._beta=Cr}Ge.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var St=this._x,Cr=this._y,Qr=St.length-1;if(Qr>0)for(var pi=St[0],fn=Cr[0],Sn=St[Qr]-pi,En=Cr[Qr]-fn,ki=-1,_n;++ki<=Qr;)_n=ki/Qr,this._basis.point(this._beta*St[ki]+(1-this._beta)*(pi+_n*Sn),this._beta*Cr[ki]+(1-this._beta)*(fn+_n*En));this._x=this._y=null,this._basis.lineEnd()},point:function(St,Cr){this._x.push(+St),this._y.push(+Cr)}};var Je=function St(Cr){function Qr(pi){return Cr===1?new Tr(pi):new Ge(pi,Cr)}return Qr.beta=function(pi){return St(+pi)},Qr}(.85);function je(St,Cr,Qr){St._context.bezierCurveTo(St._x1+St._k*(St._x2-St._x0),St._y1+St._k*(St._y2-St._y0),St._x2+St._k*(St._x1-Cr),St._y2+St._k*(St._y1-Qr),St._x2,St._y2)}function $e(St,Cr){this._context=St,this._k=(1-Cr)/6}$e.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:je(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(St,Cr){switch(St=+St,Cr=+Cr,this._point){case 0:this._point=1,this._line?this._context.lineTo(St,Cr):this._context.moveTo(St,Cr);break;case 1:this._point=2,this._x1=St,this._y1=Cr;break;case 2:this._point=3;default:je(this,St,Cr);break}this._x0=this._x1,this._x1=this._x2,this._x2=St,this._y0=this._y1,this._y1=this._y2,this._y2=Cr}};var wt=function St(Cr){function Qr(pi){return new $e(pi,Cr)}return Qr.tension=function(pi){return St(+pi)},Qr}(0);function Ie(St,Cr){this._context=St,this._k=(1-Cr)/6}Ie.prototype={areaStart:Yt,areaEnd:Yt,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(St,Cr){switch(St=+St,Cr=+Cr,this._point){case 0:this._point=1,this._x3=St,this._y3=Cr;break;case 1:this._point=2,this._context.moveTo(this._x4=St,this._y4=Cr);break;case 2:this._point=3,this._x5=St,this._y5=Cr;break;default:je(this,St,Cr);break}this._x0=this._x1,this._x1=this._x2,this._x2=St,this._y0=this._y1,this._y1=this._y2,this._y2=Cr}};var xe=function St(Cr){function Qr(pi){return new Ie(pi,Cr)}return Qr.tension=function(pi){return St(+pi)},Qr}(0);function Ce(St,Cr){this._context=St,this._k=(1-Cr)/6}Ce.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(St,Cr){switch(St=+St,Cr=+Cr,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:je(this,St,Cr);break}this._x0=this._x1,this._x1=this._x2,this._x2=St,this._y0=this._y1,this._y1=this._y2,this._y2=Cr}};var vt=function St(Cr){function Qr(pi){return new Ce(pi,Cr)}return Qr.tension=function(pi){return St(+pi)},Qr}(0);function nr(St,Cr,Qr){var pi=St._x1,fn=St._y1,Sn=St._x2,En=St._y2;if(St._l01_a>c){var ki=2*St._l01_2a+3*St._l01_a*St._l12_a+St._l12_2a,_n=3*St._l01_a*(St._l01_a+St._l12_a);pi=(pi*ki-St._x0*St._l12_2a+St._x2*St._l01_2a)/_n,fn=(fn*ki-St._y0*St._l12_2a+St._y2*St._l01_2a)/_n}if(St._l23_a>c){var ya=2*St._l23_2a+3*St._l23_a*St._l12_a+St._l12_2a,Jn=3*St._l23_a*(St._l23_a+St._l12_a);Sn=(Sn*ya+St._x1*St._l23_2a-Cr*St._l12_2a)/Jn,En=(En*ya+St._y1*St._l23_2a-Qr*St._l12_2a)/Jn}St._context.bezierCurveTo(pi,fn,Sn,En,St._x2,St._y2)}function ir(St,Cr){this._context=St,this._alpha=Cr}ir.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(St,Cr){if(St=+St,Cr=+Cr,this._point){var Qr=this._x2-St,pi=this._y2-Cr;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(Qr*Qr+pi*pi,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(St,Cr):this._context.moveTo(St,Cr);break;case 1:this._point=2;break;case 2:this._point=3;default:nr(this,St,Cr);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=St,this._y0=this._y1,this._y1=this._y2,this._y2=Cr}};var pr=function St(Cr){function Qr(pi){return Cr?new ir(pi,Cr):new $e(pi,0)}return Qr.alpha=function(pi){return St(+pi)},Qr}(.5);function oi(St,Cr){this._context=St,this._alpha=Cr}oi.prototype={areaStart:Yt,areaEnd:Yt,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(St,Cr){if(St=+St,Cr=+Cr,this._point){var Qr=this._x2-St,pi=this._y2-Cr;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(Qr*Qr+pi*pi,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=St,this._y3=Cr;break;case 1:this._point=2,this._context.moveTo(this._x4=St,this._y4=Cr);break;case 2:this._point=3,this._x5=St,this._y5=Cr;break;default:nr(this,St,Cr);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=St,this._y0=this._y1,this._y1=this._y2,this._y2=Cr}};var di=function St(Cr){function Qr(pi){return Cr?new oi(pi,Cr):new Ie(pi,0)}return Qr.alpha=function(pi){return St(+pi)},Qr}(.5);function Jr(St,Cr){this._context=St,this._alpha=Cr}Jr.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(St,Cr){if(St=+St,Cr=+Cr,this._point){var Qr=this._x2-St,pi=this._y2-Cr;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(Qr*Qr+pi*pi,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:nr(this,St,Cr);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=St,this._y0=this._y1,this._y1=this._y2,this._y2=Cr}};var fi=function St(Cr){function Qr(pi){return Cr?new Jr(pi,Cr):new Ce(pi,0)}return Qr.alpha=function(pi){return St(+pi)},Qr}(.5);function Hi(St){this._context=St}Hi.prototype={areaStart:Yt,areaEnd:Yt,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(St,Cr){St=+St,Cr=+Cr,this._point?this._context.lineTo(St,Cr):(this._point=1,this._context.moveTo(St,Cr))}};function Pn(St){return new Hi(St)}function wn(St){return St<0?-1:1}function pn(St,Cr,Qr){var pi=St._x1-St._x0,fn=Cr-St._x1,Sn=(St._y1-St._y0)/(pi||fn<0&&-0),En=(Qr-St._y1)/(fn||pi<0&&-0),ki=(Sn*fn+En*pi)/(pi+fn);return(wn(Sn)+wn(En))*Math.min(Math.abs(Sn),Math.abs(En),.5*Math.abs(ki))||0}function Vn(St,Cr){var Qr=St._x1-St._x0;return Qr?(3*(St._y1-St._y0)/Qr-Cr)/2:Cr}function kn(St,Cr,Qr){var pi=St._x0,fn=St._y0,Sn=St._x1,En=St._y1,ki=(Sn-pi)/3;St._context.bezierCurveTo(pi+ki,fn+ki*Cr,Sn-ki,En-ki*Qr,Sn,En)}function ea(St){this._context=St}ea.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:kn(this,this._t0,Vn(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(St,Cr){var Qr=NaN;if(St=+St,Cr=+Cr,!(St===this._x1&&Cr===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(St,Cr):this._context.moveTo(St,Cr);break;case 1:this._point=2;break;case 2:this._point=3,kn(this,Vn(this,Qr=pn(this,St,Cr)),Qr);break;default:kn(this,this._t0,Qr=pn(this,St,Cr));break}this._x0=this._x1,this._x1=St,this._y0=this._y1,this._y1=Cr,this._t0=Qr}}};function ua(St){this._context=new Vt(St)}(ua.prototype=Object.create(ea.prototype)).point=function(St,Cr){ea.prototype.point.call(this,Cr,St)};function Vt(St){this._context=St}Vt.prototype={moveTo:function(St,Cr){this._context.moveTo(Cr,St)},closePath:function(){this._context.closePath()},lineTo:function(St,Cr){this._context.lineTo(Cr,St)},bezierCurveTo:function(St,Cr,Qr,pi,fn,Sn){this._context.bezierCurveTo(Cr,St,pi,Qr,Sn,fn)}};function _t(St){return new ea(St)}function tr(St){return new ua(St)}function ar(St){this._context=St}ar.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var St=this._x,Cr=this._y,Qr=St.length;if(Qr)if(this._line?this._context.lineTo(St[0],Cr[0]):this._context.moveTo(St[0],Cr[0]),Qr===2)this._context.lineTo(St[1],Cr[1]);else for(var pi=Er(St),fn=Er(Cr),Sn=0,En=1;En=0;--Cr)fn[Cr]=(En[Cr]-fn[Cr+1])/Sn[Cr];for(Sn[Qr-1]=(St[Qr]+fn[Qr-1])/2,Cr=0;Cr=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(St,Cr){switch(St=+St,Cr=+Cr,this._point){case 0:this._point=1,this._line?this._context.lineTo(St,Cr):this._context.moveTo(St,Cr);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,Cr),this._context.lineTo(St,Cr);else{var Qr=this._x*(1-this._t)+St*this._t;this._context.lineTo(Qr,this._y),this._context.lineTo(Qr,Cr)}break}}this._x=St,this._y=Cr}};function $r(St){return new ri(St,.5)}function zi(St){return new ri(St,0)}function Ji(St){return new ri(St,1)}function en(St,Cr){if((En=St.length)>1)for(var Qr=1,pi,fn,Sn=St[Cr[0]],En,ki=Sn.length;Qr=0;)Qr[Cr]=Cr;return Qr}function yn(St,Cr){return St[Cr]}function Mn(){var St=r([]),Cr=cn,Qr=en,pi=yn;function fn(Sn){var En=St.apply(this,arguments),ki,_n=Sn.length,ya=En.length,Jn=new Array(ya),Ma;for(ki=0;ki0){for(var Qr,pi,fn=0,Sn=St[0].length,En;fn0)for(var Qr,pi=0,fn,Sn,En,ki,_n,ya=St[Cr[0]].length;pi0?(fn[0]=En,fn[1]=En+=Sn):Sn<0?(fn[1]=ki,fn[0]=ki+=Sn):(fn[0]=0,fn[1]=Sn)}function ma(St,Cr){if((fn=St.length)>0){for(var Qr=0,pi=St[Cr[0]],fn,Sn=pi.length;Qr0)||!((Sn=(fn=St[Cr[0]]).length)>0))){for(var Qr=0,pi=1,fn,Sn,En;piSn&&(Sn=fn,Qr=Cr);return Qr}function da(St){var Cr=St.map(Wn);return cn(St).sort(function(Qr,pi){return Cr[Qr]-Cr[pi]})}function Wn(St){for(var Cr=0,Qr=-1,pi=St.length,fn;++Qr{(function(e,t){typeof b7=="object"&&typeof wWe!="undefined"?t(b7,nC(),p7(),GJ()):t(e.d3=e.d3||{},e.d3,e.d3,e.d3)})(b7,function(e,t,r,n){"use strict";function i(g){return g.target.depth}function a(g){return g.depth}function o(g,P){return P-1-g.height}function s(g,P){return g.sourceLinks.length?g.depth:P-1}function l(g){return g.targetLinks.length?g.depth:g.sourceLinks.length?t.min(g.sourceLinks,i)-1:0}function u(g){return function(){return g}}function c(g,P){return h(g.source,P.source)||g.index-P.index}function f(g,P){return h(g.target,P.target)||g.index-P.index}function h(g,P){return g.y0-P.y0}function d(g){return g.value}function v(g){return(g.y0+g.y1)/2}function x(g){return v(g.source)*g.value}function b(g){return v(g.target)*g.value}function p(g){return g.index}function C(g){return g.nodes}function E(g){return g.links}function A(g,P){var T=g.get(P);if(!T)throw new Error("missing: "+P);return T}var L=function(){var g=0,P=0,T=1,z=1,O=24,V=8,G=p,Z=s,H=C,N=E,j=32,re=2/3;function oe(){var Se={nodes:H.apply(null,arguments),links:N.apply(null,arguments)};return _e(Se),Me(Se),ke(Se),me(Se,j),ie(Se),Se}oe.update=function(Se){return ie(Se),Se},oe.nodeId=function(Se){return arguments.length?(G=typeof Se=="function"?Se:u(Se),oe):G},oe.nodeAlign=function(Se){return arguments.length?(Z=typeof Se=="function"?Se:u(Se),oe):Z},oe.nodeWidth=function(Se){return arguments.length?(O=+Se,oe):O},oe.nodePadding=function(Se){return arguments.length?(V=+Se,oe):V},oe.nodes=function(Se){return arguments.length?(H=typeof Se=="function"?Se:u(Se),oe):H},oe.links=function(Se){return arguments.length?(N=typeof Se=="function"?Se:u(Se),oe):N},oe.size=function(Se){return arguments.length?(g=P=0,T=+Se[0],z=+Se[1],oe):[T-g,z-P]},oe.extent=function(Se){return arguments.length?(g=+Se[0][0],T=+Se[1][0],P=+Se[0][1],z=+Se[1][1],oe):[[g,P],[T,z]]},oe.iterations=function(Se){return arguments.length?(j=+Se,oe):j};function _e(Se){Se.nodes.forEach(function(Ae,De){Ae.index=De,Ae.sourceLinks=[],Ae.targetLinks=[]});var Le=r.map(Se.nodes,G);Se.links.forEach(function(Ae,De){Ae.index=De;var Pe=Ae.source,ge=Ae.target;typeof Pe!="object"&&(Pe=Ae.source=A(Le,Pe)),typeof ge!="object"&&(ge=Ae.target=A(Le,ge)),Pe.sourceLinks.push(Ae),ge.targetLinks.push(Ae)})}function Me(Se){Se.nodes.forEach(function(Le){Le.value=Math.max(t.sum(Le.sourceLinks,d),t.sum(Le.targetLinks,d))})}function ke(Se){var Le,Ae,De;for(Le=Se.nodes,Ae=[],De=0;Le.length;++De,Le=Ae,Ae=[])Le.forEach(function(ge){ge.depth=De,ge.sourceLinks.forEach(function(Fe){Ae.indexOf(Fe.target)<0&&Ae.push(Fe.target)})});for(Le=Se.nodes,Ae=[],De=0;Le.length;++De,Le=Ae,Ae=[])Le.forEach(function(ge){ge.height=De,ge.targetLinks.forEach(function(Fe){Ae.indexOf(Fe.source)<0&&Ae.push(Fe.source)})});var Pe=(T-g-O)/(De-1);Se.nodes.forEach(function(ge){ge.x1=(ge.x0=g+Math.max(0,Math.min(De-1,Math.floor(Z.call(null,ge,De))))*Pe)+O})}function me(Se){var Le=r.nest().key(function(Ze){return Ze.x0}).sortKeys(t.ascending).entries(Se.nodes).map(function(Ze){return Ze.values});Pe(),ce();for(var Ae=1,De=j;De>0;--De)Fe(Ae*=.99),ce(),ge(Ae),ce();function Pe(){var Ze=t.max(Le,function(Wt){return Wt.length}),ct=re*(z-P)/(Ze-1);V>ct&&(V=ct);var pt=t.min(Le,function(Wt){return(z-P-(Wt.length-1)*V)/t.sum(Wt,d)});Le.forEach(function(Wt){Wt.forEach(function(st,lt){st.y1=(st.y0=lt)+st.value*pt})}),Se.links.forEach(function(Wt){Wt.width=Wt.value*pt})}function ge(Ze){Le.forEach(function(ct){ct.forEach(function(pt){if(pt.targetLinks.length){var Wt=(t.sum(pt.targetLinks,x)/t.sum(pt.targetLinks,d)-v(pt))*Ze;pt.y0+=Wt,pt.y1+=Wt}})})}function Fe(Ze){Le.slice().reverse().forEach(function(ct){ct.forEach(function(pt){if(pt.sourceLinks.length){var Wt=(t.sum(pt.sourceLinks,b)/t.sum(pt.sourceLinks,d)-v(pt))*Ze;pt.y0+=Wt,pt.y1+=Wt}})})}function ce(){Le.forEach(function(Ze){var ct,pt,Wt=P,st=Ze.length,lt;for(Ze.sort(h),lt=0;lt0&&(ct.y0+=pt,ct.y1+=pt),Wt=ct.y1+V;if(pt=Wt-V-z,pt>0)for(Wt=ct.y0-=pt,ct.y1-=pt,lt=st-2;lt>=0;--lt)ct=Ze[lt],pt=ct.y1+V-Wt,pt>0&&(ct.y0-=pt,ct.y1-=pt),Wt=ct.y0})}}function ie(Se){Se.nodes.forEach(function(Le){Le.sourceLinks.sort(f),Le.targetLinks.sort(c)}),Se.nodes.forEach(function(Le){var Ae=Le.y0,De=Ae;Le.sourceLinks.forEach(function(Pe){Pe.y0=Ae+Pe.width/2,Ae+=Pe.width}),Le.targetLinks.forEach(function(Pe){Pe.y1=De+Pe.width/2,De+=Pe.width})})}return oe};function _(g){return[g.source.x1,g.y0]}function k(g){return[g.target.x0,g.y1]}var M=function(){return n.linkHorizontal().source(_).target(k)};e.sankey=L,e.sankeyCenter=l,e.sankeyLeft=a,e.sankeyRight=o,e.sankeyJustify=s,e.sankeyLinkHorizontal=M,Object.defineProperty(e,"__esModule",{value:!0})})});var SWe=ye((nbr,AWe)=>{var WXt=VJ();AWe.exports=function(t,r){var n=[],i=[],a=[],o={},s=[],l;function u(E){a[E]=!1,o.hasOwnProperty(E)&&Object.keys(o[E]).forEach(function(A){delete o[E][A],a[A]&&u(A)})}function c(E){var A=!1;i.push(E),a[E]=!0;var L,_;for(L=0;L=E})}function d(E){h(E);for(var A=t,L=WXt(A),_=L.components.filter(function(O){return O.length>1}),k=1/0,M,g=0;g<_.length;g++)for(var P=0;P<_[g].length;P++)_[g][P]{(function(e,t){typeof w7=="object"&&typeof MWe!="undefined"?t(w7,nC(),p7(),GJ(),SWe()):t(e.d3=e.d3||{},e.d3,e.d3,e.d3,null)})(w7,function(e,t,r,n,i){"use strict";i=i&&i.hasOwnProperty("default")?i.default:i;function a(st){return st.target.depth}function o(st){return st.depth}function s(st,lt){return lt-1-st.height}function l(st,lt){return st.sourceLinks.length?st.depth:lt-1}function u(st){return st.targetLinks.length?st.depth:st.sourceLinks.length?t.min(st.sourceLinks,a)-1:0}function c(st){return function(){return st}}var f=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(st){return typeof st}:function(st){return st&&typeof Symbol=="function"&&st.constructor===Symbol&&st!==Symbol.prototype?"symbol":typeof st};function h(st,lt){return v(st.source,lt.source)||st.index-lt.index}function d(st,lt){return v(st.target,lt.target)||st.index-lt.index}function v(st,lt){return st.partOfCycle===lt.partOfCycle?st.y0-lt.y0:st.circularLinkType==="top"||lt.circularLinkType==="bottom"?-1:1}function x(st){return st.value}function b(st){return(st.y0+st.y1)/2}function p(st){return b(st.source)}function C(st){return b(st.target)}function E(st){return st.index}function A(st){return st.nodes}function L(st){return st.links}function _(st,lt){var Gt=st.get(lt);if(!Gt)throw new Error("missing: "+lt);return Gt}function k(st,lt){return lt(st)}var M=25,g=10,P=.3;function T(){var st=0,lt=0,Gt=1,Nt=1,$t=24,sr,wr=E,ur=l,Qe=A,Et=L,er=32,Ut=2,Ft,bt=null;function yt(){var dt={nodes:Qe.apply(null,arguments),links:Et.apply(null,arguments)};Yt(dt),z(dt,wr,bt),lr(dt),ei(dt),O(dt,wr),Wr(dt,er,wr),Ur(dt);for(var Ge=4,Je=0;Je0?Ge+M+g:Ge,Je=Je>0?Je+M+g:Je,je=je>0?je+M+g:je,$e=$e>0?$e+M+g:$e,{top:Ge,bottom:Je,left:$e,right:je}}function Rr(dt,Ge){var Je=t.max(dt.nodes,function(vt){return vt.column}),je=Gt-st,$e=Nt-lt,wt=je+Ge.right+Ge.left,Ie=$e+Ge.top+Ge.bottom,xe=je/wt,Ce=$e/Ie;return st=st*xe+Ge.left,Gt=Ge.right==0?Gt:Gt*xe,lt=lt*Ce+Ge.top,Nt=Nt*Ce,dt.nodes.forEach(function(vt){vt.x0=st+vt.column*((Gt-st-$t)/Je),vt.x1=vt.x0+$t}),Ce}function ei(dt){var Ge,Je,je;for(Ge=dt.nodes,Je=[],je=0;Ge.length;++je,Ge=Je,Je=[])Ge.forEach(function($e){$e.depth=je,$e.sourceLinks.forEach(function(wt){Je.indexOf(wt.target)<0&&!wt.circular&&Je.push(wt.target)})});for(Ge=dt.nodes,Je=[],je=0;Ge.length;++je,Ge=Je,Je=[])Ge.forEach(function($e){$e.height=je,$e.targetLinks.forEach(function(wt){Je.indexOf(wt.source)<0&&!wt.circular&&Je.push(wt.source)})});dt.nodes.forEach(function($e){$e.column=Math.floor(ur.call(null,$e,je))})}function Wr(dt,Ge,Je){var je=r.nest().key(function(vt){return vt.column}).sortKeys(t.ascending).entries(dt.nodes).map(function(vt){return vt.values});Ie(Je),Ce();for(var $e=1,wt=Ge;wt>0;--wt)xe($e*=.99,Je),Ce();function Ie(vt){if(Ft){var nr=1/0;je.forEach(function(di){var Jr=Nt*Ft/(di.length+1);nr=Jr0))if(di==0&&oi==1)fi=Jr.y1-Jr.y0,Jr.y0=Nt/2-fi/2,Jr.y1=Nt/2+fi/2;else if(di==ir-1&&oi==1)fi=Jr.y1-Jr.y0,Jr.y0=Nt/2-fi/2,Jr.y1=Nt/2+fi/2;else{var Hi=0,Pn=t.mean(Jr.sourceLinks,C),wn=t.mean(Jr.targetLinks,p);Pn&&wn?Hi=(Pn+wn)/2:Hi=Pn||wn;var pn=(Hi-b(Jr))*vt;Jr.y0+=pn,Jr.y1+=pn}})})}function Ce(){je.forEach(function(vt){var nr,ir,pr=lt,oi=vt.length,di;for(vt.sort(v),di=0;di0&&(nr.y0+=ir,nr.y1+=ir),pr=nr.y1+sr;if(ir=pr-sr-Nt,ir>0)for(pr=nr.y0-=ir,nr.y1-=ir,di=oi-2;di>=0;--di)nr=vt[di],ir=nr.y1+sr-pr,ir>0&&(nr.y0-=ir,nr.y1-=ir),pr=nr.y0})}}function Ur(dt){dt.nodes.forEach(function(Ge){Ge.sourceLinks.sort(d),Ge.targetLinks.sort(h)}),dt.nodes.forEach(function(Ge){var Je=Ge.y0,je=Je,$e=Ge.y1,wt=$e;Ge.sourceLinks.forEach(function(Ie){Ie.circular?(Ie.y0=$e-Ie.width/2,$e=$e-Ie.width):(Ie.y0=Je+Ie.width/2,Je+=Ie.width)}),Ge.targetLinks.forEach(function(Ie){Ie.circular?(Ie.y1=wt-Ie.width/2,wt=wt-Ie.width):(Ie.y1=je+Ie.width/2,je+=Ie.width)})})}return yt}function z(st,lt,Gt){var Nt=0;if(Gt===null){for(var $t=[],sr=0;srlt.source.column)}function Z(st,lt){var Gt=0;st.sourceLinks.forEach(function($t){Gt=$t.circular&&!pt($t,lt)?Gt+1:Gt});var Nt=0;return st.targetLinks.forEach(function($t){Nt=$t.circular&&!pt($t,lt)?Nt+1:Nt}),Gt+Nt}function H(st){var lt=st.source.sourceLinks,Gt=0;lt.forEach(function(sr){Gt=sr.circular?Gt+1:Gt});var Nt=st.target.targetLinks,$t=0;return Nt.forEach(function(sr){$t=sr.circular?$t+1:$t}),!(Gt>1||$t>1)}function N(st,lt,Gt){return st.sort(oe),st.forEach(function(Nt,$t){var sr=0;if(pt(Nt,Gt)&&H(Nt))Nt.circularPathData.verticalBuffer=sr+Nt.width/2;else{var wr=0;for(wr;wr<$t;wr++)if(G(st[$t],st[wr])){var ur=st[wr].circularPathData.verticalBuffer+st[wr].width/2+lt;sr=ur>sr?ur:sr}Nt.circularPathData.verticalBuffer=sr+Nt.width/2}}),st}function j(st,lt,Gt,Nt){var $t=5,sr=t.min(st.links,function(Qe){return Qe.source.y0});st.links.forEach(function(Qe){Qe.circular&&(Qe.circularPathData={})});var wr=st.links.filter(function(Qe){return Qe.circularLinkType=="top"});N(wr,lt,Nt);var ur=st.links.filter(function(Qe){return Qe.circularLinkType=="bottom"});N(ur,lt,Nt),st.links.forEach(function(Qe){if(Qe.circular){if(Qe.circularPathData.arcRadius=Qe.width+g,Qe.circularPathData.leftNodeBuffer=$t,Qe.circularPathData.rightNodeBuffer=$t,Qe.circularPathData.sourceWidth=Qe.source.x1-Qe.source.x0,Qe.circularPathData.sourceX=Qe.source.x0+Qe.circularPathData.sourceWidth,Qe.circularPathData.targetX=Qe.target.x0,Qe.circularPathData.sourceY=Qe.y0,Qe.circularPathData.targetY=Qe.y1,pt(Qe,Nt)&&H(Qe))Qe.circularPathData.leftSmallArcRadius=g+Qe.width/2,Qe.circularPathData.leftLargeArcRadius=g+Qe.width/2,Qe.circularPathData.rightSmallArcRadius=g+Qe.width/2,Qe.circularPathData.rightLargeArcRadius=g+Qe.width/2,Qe.circularLinkType=="bottom"?(Qe.circularPathData.verticalFullExtent=Qe.source.y1+M+Qe.circularPathData.verticalBuffer,Qe.circularPathData.verticalLeftInnerExtent=Qe.circularPathData.verticalFullExtent-Qe.circularPathData.leftLargeArcRadius,Qe.circularPathData.verticalRightInnerExtent=Qe.circularPathData.verticalFullExtent-Qe.circularPathData.rightLargeArcRadius):(Qe.circularPathData.verticalFullExtent=Qe.source.y0-M-Qe.circularPathData.verticalBuffer,Qe.circularPathData.verticalLeftInnerExtent=Qe.circularPathData.verticalFullExtent+Qe.circularPathData.leftLargeArcRadius,Qe.circularPathData.verticalRightInnerExtent=Qe.circularPathData.verticalFullExtent+Qe.circularPathData.rightLargeArcRadius);else{var Et=Qe.source.column,er=Qe.circularLinkType,Ut=st.links.filter(function(yt){return yt.source.column==Et&&yt.circularLinkType==er});Qe.circularLinkType=="bottom"?Ut.sort(Me):Ut.sort(_e);var Ft=0;Ut.forEach(function(yt,Yt){yt.circularLinkID==Qe.circularLinkID&&(Qe.circularPathData.leftSmallArcRadius=g+Qe.width/2+Ft,Qe.circularPathData.leftLargeArcRadius=g+Qe.width/2+Yt*lt+Ft),Ft=Ft+yt.width}),Et=Qe.target.column,Ut=st.links.filter(function(yt){return yt.target.column==Et&&yt.circularLinkType==er}),Qe.circularLinkType=="bottom"?Ut.sort(me):Ut.sort(ke),Ft=0,Ut.forEach(function(yt,Yt){yt.circularLinkID==Qe.circularLinkID&&(Qe.circularPathData.rightSmallArcRadius=g+Qe.width/2+Ft,Qe.circularPathData.rightLargeArcRadius=g+Qe.width/2+Yt*lt+Ft),Ft=Ft+yt.width}),Qe.circularLinkType=="bottom"?(Qe.circularPathData.verticalFullExtent=Math.max(Gt,Qe.source.y1,Qe.target.y1)+M+Qe.circularPathData.verticalBuffer,Qe.circularPathData.verticalLeftInnerExtent=Qe.circularPathData.verticalFullExtent-Qe.circularPathData.leftLargeArcRadius,Qe.circularPathData.verticalRightInnerExtent=Qe.circularPathData.verticalFullExtent-Qe.circularPathData.rightLargeArcRadius):(Qe.circularPathData.verticalFullExtent=sr-M-Qe.circularPathData.verticalBuffer,Qe.circularPathData.verticalLeftInnerExtent=Qe.circularPathData.verticalFullExtent+Qe.circularPathData.leftLargeArcRadius,Qe.circularPathData.verticalRightInnerExtent=Qe.circularPathData.verticalFullExtent+Qe.circularPathData.rightLargeArcRadius)}Qe.circularPathData.leftInnerExtent=Qe.circularPathData.sourceX+Qe.circularPathData.leftNodeBuffer,Qe.circularPathData.rightInnerExtent=Qe.circularPathData.targetX-Qe.circularPathData.rightNodeBuffer,Qe.circularPathData.leftFullExtent=Qe.circularPathData.sourceX+Qe.circularPathData.leftLargeArcRadius+Qe.circularPathData.leftNodeBuffer,Qe.circularPathData.rightFullExtent=Qe.circularPathData.targetX-Qe.circularPathData.rightLargeArcRadius-Qe.circularPathData.rightNodeBuffer}if(Qe.circular)Qe.path=re(Qe);else{var bt=n.linkHorizontal().source(function(yt){var Yt=yt.source.x0+(yt.source.x1-yt.source.x0),lr=yt.y0;return[Yt,lr]}).target(function(yt){var Yt=yt.target.x0,lr=yt.y1;return[Yt,lr]});Qe.path=bt(Qe)}})}function re(st){var lt="";return st.circularLinkType=="top"?lt="M"+st.circularPathData.sourceX+" "+st.circularPathData.sourceY+" L"+st.circularPathData.leftInnerExtent+" "+st.circularPathData.sourceY+" A"+st.circularPathData.leftLargeArcRadius+" "+st.circularPathData.leftSmallArcRadius+" 0 0 0 "+st.circularPathData.leftFullExtent+" "+(st.circularPathData.sourceY-st.circularPathData.leftSmallArcRadius)+" L"+st.circularPathData.leftFullExtent+" "+st.circularPathData.verticalLeftInnerExtent+" A"+st.circularPathData.leftLargeArcRadius+" "+st.circularPathData.leftLargeArcRadius+" 0 0 0 "+st.circularPathData.leftInnerExtent+" "+st.circularPathData.verticalFullExtent+" L"+st.circularPathData.rightInnerExtent+" "+st.circularPathData.verticalFullExtent+" A"+st.circularPathData.rightLargeArcRadius+" "+st.circularPathData.rightLargeArcRadius+" 0 0 0 "+st.circularPathData.rightFullExtent+" "+st.circularPathData.verticalRightInnerExtent+" L"+st.circularPathData.rightFullExtent+" "+(st.circularPathData.targetY-st.circularPathData.rightSmallArcRadius)+" A"+st.circularPathData.rightLargeArcRadius+" "+st.circularPathData.rightSmallArcRadius+" 0 0 0 "+st.circularPathData.rightInnerExtent+" "+st.circularPathData.targetY+" L"+st.circularPathData.targetX+" "+st.circularPathData.targetY:lt="M"+st.circularPathData.sourceX+" "+st.circularPathData.sourceY+" L"+st.circularPathData.leftInnerExtent+" "+st.circularPathData.sourceY+" A"+st.circularPathData.leftLargeArcRadius+" "+st.circularPathData.leftSmallArcRadius+" 0 0 1 "+st.circularPathData.leftFullExtent+" "+(st.circularPathData.sourceY+st.circularPathData.leftSmallArcRadius)+" L"+st.circularPathData.leftFullExtent+" "+st.circularPathData.verticalLeftInnerExtent+" A"+st.circularPathData.leftLargeArcRadius+" "+st.circularPathData.leftLargeArcRadius+" 0 0 1 "+st.circularPathData.leftInnerExtent+" "+st.circularPathData.verticalFullExtent+" L"+st.circularPathData.rightInnerExtent+" "+st.circularPathData.verticalFullExtent+" A"+st.circularPathData.rightLargeArcRadius+" "+st.circularPathData.rightLargeArcRadius+" 0 0 1 "+st.circularPathData.rightFullExtent+" "+st.circularPathData.verticalRightInnerExtent+" L"+st.circularPathData.rightFullExtent+" "+(st.circularPathData.targetY+st.circularPathData.rightSmallArcRadius)+" A"+st.circularPathData.rightLargeArcRadius+" "+st.circularPathData.rightSmallArcRadius+" 0 0 1 "+st.circularPathData.rightInnerExtent+" "+st.circularPathData.targetY+" L"+st.circularPathData.targetX+" "+st.circularPathData.targetY,lt}function oe(st,lt){return ie(st)==ie(lt)?st.circularLinkType=="bottom"?Me(st,lt):_e(st,lt):ie(lt)-ie(st)}function _e(st,lt){return st.y0-lt.y0}function Me(st,lt){return lt.y0-st.y0}function ke(st,lt){return st.y1-lt.y1}function me(st,lt){return lt.y1-st.y1}function ie(st){return st.target.column-st.source.column}function Se(st){return st.target.x0-st.source.x1}function Le(st,lt){var Gt=V(st),Nt=Se(lt)/Math.tan(Gt),$t=ct(st)=="up"?st.y1+Nt:st.y1-Nt;return $t}function Ae(st,lt){var Gt=V(st),Nt=Se(lt)/Math.tan(Gt),$t=ct(st)=="up"?st.y1-Nt:st.y1+Nt;return $t}function De(st,lt,Gt,Nt){st.links.forEach(function($t){if(!$t.circular&&$t.target.column-$t.source.column>1){var sr=$t.source.column+1,wr=$t.target.column-1,ur=1,Qe=wr-sr+1;for(ur=1;sr<=wr;sr++,ur++)st.nodes.forEach(function(Et){if(Et.column==sr){var er=ur/(Qe+1),Ut=Math.pow(1-er,3),Ft=3*er*Math.pow(1-er,2),bt=3*Math.pow(er,2)*(1-er),yt=Math.pow(er,3),Yt=Ut*$t.y0+Ft*$t.y0+bt*$t.y1+yt*$t.y1,lr=Yt-$t.width/2,Tr=Yt+$t.width/2,Rr;lr>Et.y0&&lrEt.y0&&TrEt.y1&&ge(ei,Rr,lt,Gt)})):lrEt.y1&&(Rr=Tr-Et.y0+10,Et=ge(Et,Rr,lt,Gt),st.nodes.forEach(function(ei){k(ei,Nt)==k(Et,Nt)||ei.column!=Et.column||ei.y0Et.y1&&ge(ei,Rr,lt,Gt)}))}})}})}function Pe(st,lt){return st.y0>lt.y0&&st.y0lt.y0&&st.y1lt.y1}function ge(st,lt,Gt,Nt){return st.y0+lt>=Gt&&st.y1+lt<=Nt&&(st.y0=st.y0+lt,st.y1=st.y1+lt,st.targetLinks.forEach(function($t){$t.y1=$t.y1+lt}),st.sourceLinks.forEach(function($t){$t.y0=$t.y0+lt})),st}function Fe(st,lt,Gt,Nt){st.nodes.forEach(function($t){Nt&&$t.y+($t.y1-$t.y0)>lt&&($t.y=$t.y-($t.y+($t.y1-$t.y0)-lt));var sr=st.links.filter(function(Qe){return k(Qe.source,Gt)==k($t,Gt)}),wr=sr.length;wr>1&&sr.sort(function(Qe,Et){if(!Qe.circular&&!Et.circular){if(Qe.target.column==Et.target.column)return Qe.y1-Et.y1;if(Ze(Qe,Et)){if(Qe.target.column>Et.target.column){var er=Ae(Et,Qe);return Qe.y1-er}if(Et.target.column>Qe.target.column){var Ut=Ae(Qe,Et);return Ut-Et.y1}}else return Qe.y1-Et.y1}if(Qe.circular&&!Et.circular)return Qe.circularLinkType=="top"?-1:1;if(Et.circular&&!Qe.circular)return Et.circularLinkType=="top"?1:-1;if(Qe.circular&&Et.circular)return Qe.circularLinkType===Et.circularLinkType&&Qe.circularLinkType=="top"?Qe.target.column===Et.target.column?Qe.target.y1-Et.target.y1:Et.target.column-Qe.target.column:Qe.circularLinkType===Et.circularLinkType&&Qe.circularLinkType=="bottom"?Qe.target.column===Et.target.column?Et.target.y1-Qe.target.y1:Qe.target.column-Et.target.column:Qe.circularLinkType=="top"?-1:1});var ur=$t.y0;sr.forEach(function(Qe){Qe.y0=ur+Qe.width/2,ur=ur+Qe.width}),sr.forEach(function(Qe,Et){if(Qe.circularLinkType=="bottom"){var er=Et+1,Ut=0;for(er;er1&&$t.sort(function(ur,Qe){if(!ur.circular&&!Qe.circular){if(ur.source.column==Qe.source.column)return ur.y0-Qe.y0;if(Ze(ur,Qe)){if(Qe.source.column0?"up":"down"}function pt(st,lt){return k(st.source,lt)==k(st.target,lt)}function Wt(st,lt,Gt){var Nt=st.nodes,$t=st.links,sr=!1,wr=!1;if($t.forEach(function(Ft){Ft.circularLinkType=="top"?sr=!0:Ft.circularLinkType=="bottom"&&(wr=!0)}),sr==!1||wr==!1){var ur=t.min(Nt,function(Ft){return Ft.y0}),Qe=t.max(Nt,function(Ft){return Ft.y1}),Et=Qe-ur,er=Gt-lt,Ut=er/Et;Nt.forEach(function(Ft){var bt=(Ft.y1-Ft.y0)*Ut;Ft.y0=(Ft.y0-ur)*Ut,Ft.y1=Ft.y0+bt}),$t.forEach(function(Ft){Ft.y0=(Ft.y0-ur)*Ut,Ft.y1=(Ft.y1-ur)*Ut,Ft.width=Ft.width*Ut})}}e.sankeyCircular=T,e.sankeyCenter=u,e.sankeyLeft=o,e.sankeyRight=s,e.sankeyJustify=l,Object.defineProperty(e,"__esModule",{value:!0})})});var HJ=ye((abr,CWe)=>{"use strict";CWe.exports={nodeTextOffsetHorizontal:4,nodeTextOffsetVertical:3,nodePadAcross:10,sankeyIterations:50,forceIterations:5,forceTicksPerFrame:10,duration:500,ease:"linear",cn:{sankey:"sankey",sankeyLinks:"sankey-links",sankeyLink:"sankey-link",sankeyNodeSet:"sankey-node-set",sankeyNode:"sankey-node",nodeRect:"node-rect",nodeLabel:"node-label"}}});var UWe=ye((obr,NWe)=>{"use strict";var kWe=yWe(),XXt=(R2(),B1(I2)).interpolateNumber,L5=Oa(),KC=TWe(),ZXt=EWe(),Nu=HJ(),P5=cd(),aw=Ca(),YXt=So(),p1=Dr(),XJ=p1.strTranslate,KXt=p1.strRotate,ZJ=Km(),JC=ZJ.keyFun,T7=ZJ.repeat,FWe=ZJ.unwrap,LWe=iu(),JXt=qa(),zWe=Kh(),$Xt=zWe.CAP_SHIFT,QXt=zWe.LINE_SPACING,eZt=3;function tZt(e,t,r){var n=FWe(t),i=n.trace,a=i.domain,o=i.orientation==="h",s=i.node.pad,l=i.node.thickness,u={justify:KC.sankeyJustify,left:KC.sankeyLeft,right:KC.sankeyRight,center:KC.sankeyCenter}[i.node.align],c=e.width*(a.x[1]-a.x[0]),f=e.height*(a.y[1]-a.y[0]),h=n._nodes,d=n._links,v=n.circular,x;v?x=ZXt.sankeyCircular().circularLinkGap(0):x=KC.sankey(),x.iterations(Nu.sankeyIterations).size(o?[c,f]:[f,c]).nodeWidth(l).nodePadding(s).nodeId(function(V){return V.pointNumber}).nodeAlign(u).nodes(h).links(d);var b=x();x.nodePadding()=N||(H=N-Z.y0,H>1e-6&&(Z.y0+=H,Z.y1+=H)),N=Z.y1+s})}function P(V){var G=V.map(function(_e,Me){return{x0:_e.x0,index:Me}}).sort(function(_e,Me){return _e.x0-Me.x0}),Z=[],H=-1,N,j=-1/0,re;for(p=0;pj+l&&(H+=1,N=oe.x0),j=oe.x0,Z[H]||(Z[H]=[]),Z[H].push(oe),re=N-oe.x0,oe.x0+=re,oe.x1+=re}return Z}if(i.node.x.length&&i.node.y.length){for(p=0;p0?" L "+i.targetX+" "+i.targetY:"")+"Z"):(r="M "+(i.targetX-t)+" "+(i.targetY-n)+" L "+(i.rightInnerExtent-t)+" "+(i.targetY-n)+" A "+(i.rightLargeArcRadius+n)+" "+(i.rightSmallArcRadius+n)+" 0 0 0 "+(i.rightFullExtent-n-t)+" "+(i.targetY+i.rightSmallArcRadius)+" L "+(i.rightFullExtent-n-t)+" "+i.verticalRightInnerExtent,a&&o?r+=" A "+(i.rightLargeArcRadius+n)+" "+(i.rightLargeArcRadius+n)+" 0 0 0 "+(i.rightInnerExtent-n-t)+" "+(i.verticalFullExtent+n)+" L "+(i.rightFullExtent+n-t-(i.rightLargeArcRadius-n))+" "+(i.verticalFullExtent+n)+" A "+(i.rightLargeArcRadius+n)+" "+(i.rightLargeArcRadius+n)+" 0 0 0 "+(i.leftFullExtent+n)+" "+i.verticalLeftInnerExtent:a?r+=" A "+(i.rightLargeArcRadius-n)+" "+(i.rightSmallArcRadius-n)+" 0 0 1 "+(i.rightFullExtent-t-n-(i.rightLargeArcRadius-n))+" "+(i.verticalFullExtent-n)+" L "+(i.leftFullExtent+n+(i.rightLargeArcRadius-n))+" "+(i.verticalFullExtent-n)+" A "+(i.rightLargeArcRadius-n)+" "+(i.rightSmallArcRadius-n)+" 0 0 1 "+(i.leftFullExtent+n)+" "+i.verticalLeftInnerExtent:r+=" A "+(i.rightLargeArcRadius+n)+" "+(i.rightLargeArcRadius+n)+" 0 0 0 "+(i.rightInnerExtent-t)+" "+(i.verticalFullExtent+n)+" L "+i.leftInnerExtent+" "+(i.verticalFullExtent+n)+" A "+(i.leftLargeArcRadius+n)+" "+(i.leftLargeArcRadius+n)+" 0 0 0 "+(i.leftFullExtent+n)+" "+i.verticalLeftInnerExtent,r+=" L "+(i.leftFullExtent+n)+" "+(i.sourceY+i.leftSmallArcRadius)+" A "+(i.leftLargeArcRadius+n)+" "+(i.leftSmallArcRadius+n)+" 0 0 0 "+i.leftInnerExtent+" "+(i.sourceY-n)+" L "+i.sourceX+" "+(i.sourceY-n)+" L "+i.sourceX+" "+(i.sourceY+n)+" L "+i.leftInnerExtent+" "+(i.sourceY+n)+" A "+(i.leftLargeArcRadius-n)+" "+(i.leftSmallArcRadius-n)+" 0 0 1 "+(i.leftFullExtent-n)+" "+(i.sourceY+i.leftSmallArcRadius)+" L "+(i.leftFullExtent-n)+" "+i.verticalLeftInnerExtent,a&&o?r+=" A "+(i.rightLargeArcRadius-n)+" "+(i.rightSmallArcRadius-n)+" 0 0 1 "+(i.leftFullExtent-n-(i.rightLargeArcRadius-n))+" "+(i.verticalFullExtent-n)+" L "+(i.rightFullExtent+n-t+(i.rightLargeArcRadius-n))+" "+(i.verticalFullExtent-n)+" A "+(i.rightLargeArcRadius-n)+" "+(i.rightSmallArcRadius-n)+" 0 0 1 "+(i.rightFullExtent+n-t)+" "+i.verticalRightInnerExtent:a?r+=" A "+(i.rightLargeArcRadius+n)+" "+(i.rightLargeArcRadius+n)+" 0 0 0 "+(i.leftFullExtent+n)+" "+(i.verticalFullExtent+n)+" L "+(i.rightFullExtent-t-n)+" "+(i.verticalFullExtent+n)+" A "+(i.rightLargeArcRadius+n)+" "+(i.rightLargeArcRadius+n)+" 0 0 0 "+(i.rightFullExtent+n-t)+" "+i.verticalRightInnerExtent:r+=" A "+(i.leftLargeArcRadius-n)+" "+(i.leftLargeArcRadius-n)+" 0 0 1 "+i.leftInnerExtent+" "+(i.verticalFullExtent-n)+" L "+(i.rightInnerExtent-t)+" "+(i.verticalFullExtent-n)+" A "+(i.rightLargeArcRadius-n)+" "+(i.rightLargeArcRadius-n)+" 0 0 1 "+(i.rightFullExtent+n-t)+" "+i.verticalRightInnerExtent,r+=" L "+(i.rightFullExtent+n-t)+" "+(i.targetY+i.rightSmallArcRadius)+" A "+(i.rightLargeArcRadius-n)+" "+(i.rightSmallArcRadius-n)+" 0 0 1 "+(i.rightInnerExtent-t)+" "+(i.targetY+n)+" L "+(i.targetX-t)+" "+(i.targetY+n)+(t>0?" L "+i.targetX+" "+i.targetY:"")+"Z"),r}function YJ(){var e=.5;function t(r){var n=r.linkArrowLength;if(r.link.circular)return iZt(r.link,n);var i=Math.abs((r.link.target.x0-r.link.source.x1)/2);n>i&&(n=i);var a=r.link.source.x1,o=r.link.target.x0-n,s=XXt(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,d=r.link.y1+r.link.width/2,v="M"+a+","+c,x="C"+l+","+c+" "+u+","+h+" "+o+","+h,b="C"+u+","+d+" "+l+","+f+" "+a+","+f,p=n>0?"L"+(o+n)+","+(h+r.link.width/2):"";return p+="L"+o+","+d,v+x+p+b+"Z"}return t}function nZt(e,t){var r=P5(t.color),n=Nu.nodePadAcross,i=e.nodePad/2;t.dx=t.x1-t.x0,t.dy=t.y1-t.y0;var a=t.dx,o=Math.max(.5,t.dy),s="node_"+t.pointNumber;return t.group&&(s=p1.randstr()),t.trace=e.trace,t.curveNumber=e.trace.index,{index:t.pointNumber,key:s,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(a),visibleHeight:o,zoneX:-n,zoneY:-i,zoneWidth:a+2*n,zoneHeight:o+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,darkBackground:r.getBrightness()<=128,tinyColorHue:aw.tinyRGB(r),tinyColorAlpha:r.getAlpha(),valueFormat:e.valueFormat,valueSuffix:e.valueSuffix,sankey:e.sankey,graph:e.graph,arrangement:e.arrangement,uniqueNodeLabelPathId:[e.guid,e.key,s].join("_"),interactionState:e.interactionState,figure:e}}function WJ(e){e.attr("transform",function(t){return XJ(t.node.x0.toFixed(3),t.node.y0.toFixed(3))})}function aZt(e){e.call(WJ)}function OWe(e,t){e.call(aZt),t.attr("d",YJ())}function PWe(e){e.attr("width",function(t){return t.node.x1-t.node.x0}).attr("height",function(t){return t.visibleHeight})}function jJ(e){return e.link.width>1||e.linkLineWidth>0}function IWe(e){var t=XJ(e.translateX,e.translateY);return t+(e.horizontal?"matrix(1 0 0 1 0 0)":"matrix(0 1 1 0 0 0)")}function RWe(e,t,r){e.on(".basic",null).on("mouseover.basic",function(n){!n.interactionState.dragInProgress&&!n.partOfGroup&&(r.hover(this,n,t),n.interactionState.hovered=[this,n])}).on("mousemove.basic",function(n){!n.interactionState.dragInProgress&&!n.partOfGroup&&(r.follow(this,n),n.interactionState.hovered=[this,n])}).on("mouseout.basic",function(n){!n.interactionState.dragInProgress&&!n.partOfGroup&&(r.unhover(this,n,t),n.interactionState.hovered=!1)}).on("click.basic",function(n){n.interactionState.hovered&&(r.unhover(this,n,t),n.interactionState.hovered=!1),!n.interactionState.dragInProgress&&!n.partOfGroup&&r.select(this,n,t)})}function oZt(e,t,r,n){var i=L5.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"&&(p1.ensureSingle(n._fullLayout._infolayer,"g","dragcover",function(s){n._fullLayout._dragCover=s}),p1.raiseToTop(this),a.interactionState.dragInProgress=a.node,DWe(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):sZt(e,o,a,n),lZt(e,t,a,o,n)}}).on("drag",function(a){if(a.arrangement!=="fixed"){var o=L5.event.x,s=L5.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),DWe(a.node),a.arrangement!=="snap"&&(a.sankey.update(a.graph),OWe(e.filter(BWe(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,qWe(r,i)}})}function uZt(e,t,r,n){return function(){for(var a=0,o=0;o0&&n.forceLayouts[t].alpha(0)}}function qWe(e,t){for(var r=[],n=[],i=0;i{"use strict";var Xv=Oa(),JJ=Dr(),A7=JJ.numberFormat,dZt=UWe(),I5=vf(),vZt=Ca(),Sx=HJ().cn,$C=JJ._;function VWe(e){return e!==""}function R5(e,t){return e.filter(function(r){return r.key===t.traceId})}function GWe(e,t){Xv.select(e).select("path").style("fill-opacity",t),Xv.select(e).select("rect").style("fill-opacity",t)}function HWe(e){Xv.select(e).select("text.name").style("fill","black")}function jWe(e){return function(t){return e.node.sourceLinks.indexOf(t.link)!==-1||e.node.targetLinks.indexOf(t.link)!==-1}}function WWe(e){return function(t){return t.node.sourceLinks.indexOf(e.link)!==-1||t.node.targetLinks.indexOf(e.link)!==-1}}function XWe(e,t,r){t&&r&&R5(r,t).selectAll("."+Sx.sankeyLink).filter(jWe(t)).call(ZWe.bind(0,t,r,!1))}function KJ(e,t,r){t&&r&&R5(r,t).selectAll("."+Sx.sankeyLink).filter(jWe(t)).call(YWe.bind(0,t,r,!1))}function ZWe(e,t,r,n){n.style("fill",function(i){if(!i.link.concentrationscale)return i.tinyColorHoverHue}).style("fill-opacity",function(i){if(!i.link.concentrationscale)return i.tinyColorHoverAlpha}),n.each(function(i){var a=i.link.label;a!==""&&R5(t,e).selectAll("."+Sx.sankeyLink).filter(function(o){return o.link.label===a}).style("fill",function(o){if(!o.link.concentrationscale)return o.tinyColorHoverHue}).style("fill-opacity",function(o){if(!o.link.concentrationscale)return o.tinyColorHoverAlpha})}),r&&R5(t,e).selectAll("."+Sx.sankeyNode).filter(WWe(e)).call(XWe)}function YWe(e,t,r,n){n.style("fill",function(i){return i.tinyColorHue}).style("fill-opacity",function(i){return i.tinyColorAlpha}),n.each(function(i){var a=i.link.label;a!==""&&R5(t,e).selectAll("."+Sx.sankeyLink).filter(function(o){return o.link.label===a}).style("fill",function(o){return o.tinyColorHue}).style("fill-opacity",function(o){return o.tinyColorAlpha})}),r&&R5(t,e).selectAll(Sx.sankeyNode).filter(WWe(e)).call(KJ)}function Ef(e,t){var r=e.hoverlabel||{},n=JJ.nestedProperty(r,t).get();return Array.isArray(n)?!1:n}KWe.exports=function(t,r){for(var n=t._fullLayout,i=n._paper,a=n._size,o=0;o"),color:Ef(k,"bgcolor")||vZt.addOpacity(z.color,1),borderColor:Ef(k,"bordercolor"),fontFamily:Ef(k,"font.family"),fontSize:Ef(k,"font.size"),fontColor:Ef(k,"font.color"),fontWeight:Ef(k,"font.weight"),fontStyle:Ef(k,"font.style"),fontVariant:Ef(k,"font.variant"),fontTextcase:Ef(k,"font.textcase"),fontLineposition:Ef(k,"font.lineposition"),fontShadow:Ef(k,"font.shadow"),nameLength:Ef(k,"namelength"),textAlign:Ef(k,"align"),idealAlign:Xv.event.x"),color:Ef(k,"bgcolor")||_.tinyColorHue,borderColor:Ef(k,"bordercolor"),fontFamily:Ef(k,"font.family"),fontSize:Ef(k,"font.size"),fontColor:Ef(k,"font.color"),fontWeight:Ef(k,"font.weight"),fontStyle:Ef(k,"font.style"),fontVariant:Ef(k,"font.variant"),fontTextcase:Ef(k,"font.textcase"),fontLineposition:Ef(k,"font.lineposition"),fontShadow:Ef(k,"font.shadow"),nameLength:Ef(k,"namelength"),textAlign:Ef(k,"align"),idealAlign:"left",hovertemplate:k.hovertemplate,hovertemplateLabels:V,eventData:[_.node]},{container:n._hoverlayer.node(),outerContainer:n._paper.node(),gd:t});GWe(H,.85),HWe(H)}}},A=function(L,_,k){t._fullLayout.hovermode!==!1&&(Xv.select(L).call(KJ,_,k),_.node.trace.node.hoverinfo!=="skip"&&(_.node.fullData=_.node.trace,t.emit("plotly_unhover",{event:Xv.event,points:[_.node]})),I5.loneUnhover(n._hoverlayer.node()))};dZt(t,i,r,{width:a.w,height:a.h,margin:{t:a.t,r:a.r,b:a.b,l:a.l}},{linkEvents:{hover:u,follow:x,unhover:b,select:l},nodeEvents:{hover:C,follow:E,unhover:A,select:p}})}});var JWe=ye(ow=>{"use strict";var pZt=mc().overrideAll,gZt=Id().getModuleCalcData,mZt=$J(),yZt=N1(),_Zt=Tg(),xZt=gv(),bZt=zf().prepSelect,QJ=Dr(),wZt=qa(),S7="sankey";ow.name=S7;ow.baseLayoutAttrOverrides=pZt({hoverlabel:yZt.hoverlabel},"plot","nested");ow.plot=function(e){var t=gZt(e.calcdata,S7)[0];mZt(e,t),ow.updateFx(e)};ow.clean=function(e,t,r,n){var i=n._has&&n._has(S7),a=t._has&&t._has(S7);i&&!a&&(n._paperdiv.selectAll(".sankey").remove(),n._paperdiv.selectAll(".bgsankey").remove())};ow.updateFx=function(e){for(var t=0;t{"use strict";$We.exports=function(t,r){for(var n=t.cd,i=[],a=n[0].trace,o=a._sankey.graph.nodes,s=0;s{"use strict";eXe.exports={attributes:UJ(),supplyDefaults:nWe(),calc:uWe(),plot:$J(),moduleType:"trace",name:"sankey",basePlotModule:JWe(),selectPoints:QWe(),categories:["noOpacity"],meta:{}}});var iXe=ye((fbr,rXe)=>{"use strict";rXe.exports=tXe()});var aXe=ye(D5=>{"use strict";var nXe=Mc();D5.name="indicator";D5.plot=function(e,t,r,n){nXe.plotBasePlot(D5.name,e,t,r,n)};D5.clean=function(e,t,r,n){nXe.cleanBasePlot(D5.name,e,t,r,n)}});var t$=ye((dbr,fXe)=>{"use strict";var Mx=Ao().extendFlat,sXe=Ao().extendDeep,AZt=mc().overrideAll,lXe=ec(),uXe=Eh(),SZt=kc().attributes,Bf=Rd(),MZt=pl().templatedArray,M7=GT(),oXe=df().descriptionOnlyNumbers,e$=lXe({editType:"plot",colorEditType:"plot"}),QC={color:{valType:"color",editType:"plot"},line:{color:{valType:"color",dflt:uXe.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"},cXe={valType:"info_array",items:[{valType:"number",editType:"plot"},{valType:"number",editType:"plot"}],editType:"plot"},EZt=MZt("step",sXe({},QC,{range:cXe}));fXe.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:SZt({name:"indicator",trace:!0,editType:"calc"}),title:{text:{valType:"string",editType:"plot"},align:{valType:"enumerated",values:["left","center","right"],editType:"plot"},font:Mx({},e$,{}),editType:"plot"},number:{valueformat:{valType:"string",dflt:"",editType:"plot",description:oXe("value")},font:Mx({},e$,{}),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:oXe("value")},increasing:{symbol:{valType:"string",dflt:M7.INCREASING.SYMBOL,editType:"plot"},color:{valType:"color",dflt:M7.INCREASING.COLOR,editType:"plot"},editType:"plot"},decreasing:{symbol:{valType:"string",dflt:M7.DECREASING.SYMBOL,editType:"plot"},color:{valType:"color",dflt:M7.DECREASING.COLOR,editType:"plot"},editType:"plot"},font:Mx({},e$,{}),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:sXe({},QC,{color:{dflt:"green"}}),bgcolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:uXe.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:1,editType:"plot"},axis:AZt({range:cXe,visible:Mx({},Bf.visible,{dflt:!0}),tickmode:Bf.minor.tickmode,nticks:Bf.nticks,tick0:Bf.tick0,dtick:Bf.dtick,tickvals:Bf.tickvals,ticktext:Bf.ticktext,ticks:Mx({},Bf.ticks,{dflt:"outside"}),ticklen:Bf.ticklen,tickwidth:Bf.tickwidth,tickcolor:Bf.tickcolor,ticklabelstep:Bf.ticklabelstep,showticklabels:Bf.showticklabels,labelalias:Bf.labelalias,tickfont:lXe({}),tickangle:Bf.tickangle,tickformat:Bf.tickformat,tickformatstops:Bf.tickformatstops,tickprefix:Bf.tickprefix,showtickprefix:Bf.showtickprefix,ticksuffix:Bf.ticksuffix,showticksuffix:Bf.showticksuffix,separatethousands:Bf.separatethousands,exponentformat:Bf.exponentformat,minexponent:Bf.minexponent,showexponent:Bf.showexponent,editType:"plot"},"plot"),steps:EZt,threshold:{line:{color:Mx({},QC.line.color,{}),width:Mx({},QC.line.width,{dflt:1}),editType:"plot"},thickness:Mx({},QC.thickness,{dflt:.85}),value:{valType:"number",editType:"calc",dflt:!1},editType:"plot"},editType:"plot"}}});var r$=ye((vbr,hXe)=>{"use strict";hXe.exports={defaultNumberFontSize:80,bulletNumberDomainSize:.25,bulletPadding:.025,innerRadius:.75,valueThickness:.5,titlePadding:5,horizontalPadding:10}});var pXe=ye((pbr,vXe)=>{"use strict";var ey=Dr(),C7=t$(),CZt=kc().defaults,dXe=pl(),kZt=Yd(),E7=r$(),LZt=xb(),PZt=T3(),IZt=t_(),RZt=r_();function DZt(e,t,r,n){function i(_,k){return ey.coerce(e,t,C7,_,k)}CZt(t,n,i),i("mode"),t._hasNumber=t.mode.indexOf("number")!==-1,t._hasDelta=t.mode.indexOf("delta")!==-1,t._hasGauge=t.mode.indexOf("gauge")!==-1;var a=i("value");t._range=[0,typeof a=="number"?1.5*a:1];var o=new Array(2),s;if(t._hasNumber){i("number.valueformat");var l=ey.extendFlat({},n.font);l.size=void 0,ey.coerceFont(i,"number.font",l),t.number.font.size===void 0&&(t.number.font.size=E7.defaultNumberFontSize,o[0]=!0),i("number.prefix"),i("number.suffix"),s=t.number.font.size}var u;if(t._hasDelta){var c=ey.extendFlat({},n.font);c.size=void 0,ey.coerceFont(i,"delta.font",c),t.delta.font.size===void 0&&(t.delta.font.size=(t._hasNumber?.5:1)*(s||E7.defaultNumberFontSize),o[1]=!0),i("delta.reference",t.value),i("delta.relative"),i("delta.valueformat",t.delta.relative?"2%":""),i("delta.increasing.symbol"),i("delta.increasing.color"),i("delta.decreasing.symbol"),i("delta.decreasing.color"),i("delta.position"),i("delta.prefix"),i("delta.suffix"),u=t.delta.font.size}t._scaleNumbers=(!t._hasNumber||o[0])&&(!t._hasDelta||o[1])||!1;var f=ey.extendFlat({},n.font);f.size=.25*(s||u||E7.defaultNumberFontSize),ey.coerceFont(i,"title.font",f),i("title.text");var h,d,v,x;function b(_,k){return ey.coerce(h,d,C7.gauge,_,k)}function p(_,k){return ey.coerce(v,x,C7.gauge.axis,_,k)}if(t._hasGauge){h=e.gauge,h||(h={}),d=dXe.newContainer(t,"gauge"),b("shape");var C=t._isBullet=t.gauge.shape==="bullet";C||i("title.align","center");var E=t._isAngular=t.gauge.shape==="angular";E||i("align","center"),b("bgcolor",n.paper_bgcolor),b("borderwidth"),b("bordercolor"),b("bar.color"),b("bar.line.color"),b("bar.line.width");var A=E7.valueThickness*(t.gauge.shape==="bullet"?.5:1);b("bar.thickness",A),kZt(h,d,{name:"steps",handleItemDefaults:FZt}),b("threshold.value"),b("threshold.thickness"),b("threshold.line.width"),b("threshold.line.color"),v={},h&&(v=h.axis||{}),x=dXe.newContainer(d,"axis"),p("visible"),t._range=p("range",t._range);var L={font:n.font,noAutotickangles:!0,outerTicks:!0,noTicklabelshift:!0,noTicklabelstandoff:!0};LZt(v,x,p,"linear"),RZt(v,x,p,"linear",L),IZt(v,x,p,"linear",L),PZt(v,x,p,L)}else i("title.align","center"),i("align","center"),t._isAngular=t._isBullet=!1;t._length=null}function FZt(e,t){function r(n,i){return ey.coerce(e,t,C7.gauge.steps,n,i)}r("color"),r("line.color"),r("line.width"),r("range"),r("thickness")}vXe.exports={supplyDefaults:DZt}});var mXe=ye((gbr,gXe)=>{"use strict";function zZt(e,t){var r=[],n=t.value;typeof t._lastValue!="number"&&(t._lastValue=t.value);var i=t._lastValue,a=i;return t._hasDelta&&typeof t.delta.reference=="number"&&(a=t.delta.reference),r[0]={y:n,lastY:i,delta:n-a,relativeDelta:(n-a)/a},r}gXe.exports={calc:zZt}});var TXe=ye((mbr,wXe)=>{"use strict";var fw=Oa(),OZt=(R2(),B1(I2)).interpolate,yXe=(R2(),B1(I2)).interpolateNumber,Ex=Dr(),qZt=Ex.strScale,tk=Ex.strTranslate,BZt=Ex.rad2deg,NZt=Kh().MID_SHIFT,cw=So(),sw=r$(),L7=iu(),sv=ho(),UZt=t4(),VZt=oI(),GZt=Rd(),F5=Ca(),i$={left:"start",center:"middle",right:"end"},lw={left:0,center:.5,right:1},_Xe=/[yzafpnµmkMGTPEZY]/;function rk(e){return e&&e.duration>0}wXe.exports=function(t,r,n,i){var a=t._fullLayout,o;rk(n)&&i&&(o=i()),Ex.makeTraceGroups(a._indicatorlayer,r,"trace").each(function(s){var l=s[0],u=l.trace,c=fw.select(this),f=u._hasGauge,h=u._isAngular,d=u._isBullet,v=u.domain,x={w:a._size.w*(v.x[1]-v.x[0]),h:a._size.h*(v.y[1]-v.y[0]),l:a._size.l+a._size.w*v.x[0],r:a._size.r+a._size.w*(1-v.x[1]),t:a._size.t+a._size.h*(1-v.y[1]),b:a._size.b+a._size.h*v.y[0]},b=x.l+x.w/2,p=x.t+x.h/2,C=Math.min(x.w/2,x.h),E=sw.innerRadius*C,A,L,_,k=u.align||"center";if(L=p,!f)A=x.l+lw[k]*x.w,_=function(H){return xXe(H,x.w,x.h)};else if(h&&(A=b,L=p+C/2,_=function(H){return ZZt(H,.9*E)}),d){var M=sw.bulletPadding,g=1-sw.bulletNumberDomainSize+M;A=x.l+(g+(1-g)*lw[k])*x.w,_=function(H){return xXe(H,(sw.bulletNumberDomainSize-M)*x.w,x.h)}}WZt(t,c,s,{numbersX:A,numbersY:L,numbersScaler:_,transitionOpts:n,onComplete:o});var P,T;f&&(P={range:u.gauge.axis.range,color:u.gauge.bgcolor,line:{color:u.gauge.bordercolor,width:0},thickness:1},T={range:u.gauge.axis.range,color:"rgba(0, 0, 0, 0)",line:{color:u.gauge.bordercolor,width:u.gauge.borderwidth},thickness:1});var z=c.selectAll("g.angular").data(h?s:[]);z.exit().remove();var O=c.selectAll("g.angularaxis").data(h?s:[]);O.exit().remove(),h&&jZt(t,c,s,{radius:C,innerRadius:E,gauge:z,layer:O,size:x,gaugeBg:P,gaugeOutline:T,transitionOpts:n,onComplete:o});var V=c.selectAll("g.bullet").data(d?s:[]);V.exit().remove();var G=c.selectAll("g.bulletaxis").data(d?s:[]);G.exit().remove(),d&&HZt(t,c,s,{gauge:V,layer:G,size:x,gaugeBg:P,gaugeOutline:T,transitionOpts:n,onComplete:o});var Z=c.selectAll("text.title").data(s);Z.exit().remove(),Z.enter().append("text").classed("title",!0),Z.attr("text-anchor",function(){return d?i$.right:i$[u.title.align]}).text(u.title.text).call(cw.font,u.title.font).call(L7.convertToTspans,t),Z.attr("transform",function(){var H=x.l+x.w*lw[u.title.align],N,j=sw.titlePadding,re=cw.bBox(Z.node());if(f){if(h)if(u.gauge.axis.visible){var oe=cw.bBox(O.node());N=oe.top-j-re.bottom}else N=x.t+x.h/2-C/2-re.bottom-j;d&&(N=L-(re.top+re.bottom)/2,H=x.l-sw.bulletPadding*x.w)}else N=u._numbersTop-j-re.bottom;return tk(H,N)})})};function HZt(e,t,r,n){var i=r[0].trace,a=n.gauge,o=n.layer,s=n.gaugeBg,l=n.gaugeOutline,u=n.size,c=i.domain,f=n.transitionOpts,h=n.onComplete,d,v,x,b,p;a.enter().append("g").classed("bullet",!0),a.attr("transform",tk(u.l,u.t)),o.enter().append("g").classed("bulletaxis",!0).classed("crisp",!0),o.selectAll("g.xbulletaxistick,path,text").remove();var C=u.h,E=i.gauge.bar.thickness*C,A=c.x[0],L=c.x[0]+(c.x[1]-c.x[0])*(i._hasNumber||i._hasDelta?1-sw.bulletNumberDomainSize:1);d=ek(e,i.gauge.axis),d._id="xbulletaxis",d.domain=[A,L],d.setScale(),v=sv.calcTicks(d),x=sv.makeTransTickFn(d),b=sv.getTickSigns(d)[2],p=u.t+u.h,d.visible&&(sv.drawTicks(e,d,{vals:d.ticks==="inside"?sv.clipEnds(d,v):v,layer:o,path:sv.makeTickPath(d,p,b),transFn:x}),sv.drawLabels(e,d,{vals:v,layer:o,transFn:x,labelFns:sv.makeLabelFns(d,p)}));function _(O){O.attr("width",function(V){return Math.max(0,d.c2p(V.range[1])-d.c2p(V.range[0]))}).attr("x",function(V){return d.c2p(V.range[0])}).attr("y",function(V){return .5*(1-V.thickness)*C}).attr("height",function(V){return V.thickness*C})}var k=[s].concat(i.gauge.steps),M=a.selectAll("g.bg-bullet").data(k);M.enter().append("g").classed("bg-bullet",!0).append("rect"),M.select("rect").call(_).call(uw),M.exit().remove();var g=a.selectAll("g.value-bullet").data([i.gauge.bar]);g.enter().append("g").classed("value-bullet",!0).append("rect"),g.select("rect").attr("height",E).attr("y",(C-E)/2).call(uw),rk(f)?g.select("rect").transition().duration(f.duration).ease(f.easing).each("end",function(){h&&h()}).each("interrupt",function(){h&&h()}).attr("width",Math.max(0,d.c2p(Math.min(i.gauge.axis.range[1],r[0].y)))):g.select("rect").attr("width",typeof r[0].y=="number"?Math.max(0,d.c2p(Math.min(i.gauge.axis.range[1],r[0].y))):0),g.exit().remove();var P=r.filter(function(){return i.gauge.threshold.value||i.gauge.threshold.value===0}),T=a.selectAll("g.threshold-bullet").data(P);T.enter().append("g").classed("threshold-bullet",!0).append("line"),T.select("line").attr("x1",d.c2p(i.gauge.threshold.value)).attr("x2",d.c2p(i.gauge.threshold.value)).attr("y1",(1-i.gauge.threshold.thickness)/2*C).attr("y2",(1-(1-i.gauge.threshold.thickness)/2)*C).call(F5.stroke,i.gauge.threshold.line.color).style("stroke-width",i.gauge.threshold.line.width),T.exit().remove();var z=a.selectAll("g.gauge-outline").data([l]);z.enter().append("g").classed("gauge-outline",!0).append("rect"),z.select("rect").call(_).call(uw),z.exit().remove()}function jZt(e,t,r,n){var i=r[0].trace,a=n.size,o=n.radius,s=n.innerRadius,l=n.gaugeBg,u=n.gaugeOutline,c=[a.l+a.w/2,a.t+a.h/2+o/2],f=n.gauge,h=n.layer,d=n.transitionOpts,v=n.onComplete,x=Math.PI/2;function b(_e){var Me=i.gauge.axis.range[0],ke=i.gauge.axis.range[1],me=(_e-Me)/(ke-Me)*Math.PI-x;return me<-x?-x:me>x?x:me}function p(_e){return fw.svg.arc().innerRadius((s+o)/2-_e/2*(o-s)).outerRadius((s+o)/2+_e/2*(o-s)).startAngle(-x)}function C(_e){_e.attr("d",function(Me){return p(Me.thickness).startAngle(b(Me.range[0])).endAngle(b(Me.range[1]))()})}var E,A,L,_;f.enter().append("g").classed("angular",!0),f.attr("transform",tk(c[0],c[1])),h.enter().append("g").classed("angularaxis",!0).classed("crisp",!0),h.selectAll("g.xangularaxistick,path,text").remove(),E=ek(e,i.gauge.axis),E.type="linear",E.range=i.gauge.axis.range,E._id="xangularaxis",E.ticklabeloverflow="allow",E.setScale();var k=function(_e){return(E.range[0]-_e.x)/(E.range[1]-E.range[0])*Math.PI+Math.PI},M={},g=sv.makeLabelFns(E,0),P=g.labelStandoff;M.xFn=function(_e){var Me=k(_e);return Math.cos(Me)*P},M.yFn=function(_e){var Me=k(_e),ke=Math.sin(Me)>0?.2:1;return-Math.sin(Me)*(P+_e.fontSize*ke)+Math.abs(Math.cos(Me))*(_e.fontSize*NZt)},M.anchorFn=function(_e){var Me=k(_e),ke=Math.cos(Me);return Math.abs(ke)<.1?"middle":ke>0?"start":"end"},M.heightFn=function(_e,Me,ke){var me=k(_e);return-.5*(1+Math.sin(me))*ke};var T=function(_e){return tk(c[0]+o*Math.cos(_e),c[1]-o*Math.sin(_e))};L=function(_e){return T(k(_e))};var z=function(_e){var Me=k(_e);return T(Me)+"rotate("+-BZt(Me)+")"};if(A=sv.calcTicks(E),_=sv.getTickSigns(E)[2],E.visible){_=E.ticks==="inside"?-1:1;var O=(E.linewidth||1)/2;sv.drawTicks(e,E,{vals:A,layer:h,path:"M"+_*O+",0h"+_*E.ticklen,transFn:z}),sv.drawLabels(e,E,{vals:A,layer:h,transFn:L,labelFns:M})}var V=[l].concat(i.gauge.steps),G=f.selectAll("g.bg-arc").data(V);G.enter().append("g").classed("bg-arc",!0).append("path"),G.select("path").call(C).call(uw),G.exit().remove();var Z=p(i.gauge.bar.thickness),H=f.selectAll("g.value-arc").data([i.gauge.bar]);H.enter().append("g").classed("value-arc",!0).append("path");var N=H.select("path");rk(d)?(N.transition().duration(d.duration).ease(d.easing).each("end",function(){v&&v()}).each("interrupt",function(){v&&v()}).attrTween("d",XZt(Z,b(r[0].lastY),b(r[0].y))),i._lastValue=r[0].y):N.attr("d",typeof r[0].y=="number"?Z.endAngle(b(r[0].y)):"M0,0Z"),N.call(uw),H.exit().remove(),V=[];var j=i.gauge.threshold.value;(j||j===0)&&V.push({range:[j,j],color:i.gauge.threshold.color,line:{color:i.gauge.threshold.line.color,width:i.gauge.threshold.line.width},thickness:i.gauge.threshold.thickness});var re=f.selectAll("g.threshold-arc").data(V);re.enter().append("g").classed("threshold-arc",!0).append("path"),re.select("path").call(C).call(uw),re.exit().remove();var oe=f.selectAll("g.gauge-outline").data([u]);oe.enter().append("g").classed("gauge-outline",!0).append("path"),oe.select("path").call(C).call(uw),oe.exit().remove()}function WZt(e,t,r,n){var i=r[0].trace,a=n.numbersX,o=n.numbersY,s=i.align||"center",l=i$[s],u=n.transitionOpts,c=n.onComplete,f=Ex.ensureSingle(t,"g","numbers"),h,d,v,x=[];i._hasNumber&&x.push("number"),i._hasDelta&&(x.push("delta"),i.delta.position==="left"&&x.reverse());var b=f.selectAll("text").data(x);b.enter().append("text"),b.attr("text-anchor",function(){return l}).attr("class",function(T){return T}).attr("x",null).attr("y",null).attr("dx",null).attr("dy",null),b.exit().remove();function p(T,z,O,V){if(T.match("s")&&O>=0!=V>=0&&!z(O).slice(-1).match(_Xe)&&!z(V).slice(-1).match(_Xe)){var G=T.slice().replace("s","f").replace(/\d+/,function(H){return parseInt(H)-1}),Z=ek(e,{tickformat:G});return function(H){return Math.abs(H)<1?sv.tickText(Z,H).text:z(H)}}else return z}function C(){var T=ek(e,{tickformat:i.number.valueformat},i._range);T.setScale(),sv.prepTicks(T);var z=function(H){return sv.tickText(T,H).text},O=i.number.suffix,V=i.number.prefix,G=f.select("text.number");function Z(){var H=typeof r[0].y=="number"?V+z(r[0].y)+O:"-";G.text(H).call(cw.font,i.number.font).call(L7.convertToTspans,e)}return rk(u)?G.transition().duration(u.duration).ease(u.easing).each("end",function(){Z(),c&&c()}).each("interrupt",function(){Z(),c&&c()}).attrTween("text",function(){var H=fw.select(this),N=yXe(r[0].lastY,r[0].y);i._lastValue=r[0].y;var j=p(i.number.valueformat,z,r[0].lastY,r[0].y);return function(re){H.text(V+j(N(re))+O)}}):Z(),h=bXe(V+z(r[0].y)+O,i.number.font,l,e),G}function E(){var T=ek(e,{tickformat:i.delta.valueformat},i._range);T.setScale(),sv.prepTicks(T);var z=function(re){return sv.tickText(T,re).text},O=i.delta.suffix,V=i.delta.prefix,G=function(re){var oe=i.delta.relative?re.relativeDelta:re.delta;return oe},Z=function(re,oe){return re===0||typeof re!="number"||isNaN(re)?"-":(re>0?i.delta.increasing.symbol:i.delta.decreasing.symbol)+V+oe(re)+O},H=function(re){return re.delta>=0?i.delta.increasing.color:i.delta.decreasing.color};i._deltaLastValue===void 0&&(i._deltaLastValue=G(r[0]));var N=f.select("text.delta");N.call(cw.font,i.delta.font).call(F5.fill,H({delta:i._deltaLastValue}));function j(){N.text(Z(G(r[0]),z)).call(F5.fill,H(r[0])).call(L7.convertToTspans,e)}return rk(u)?N.transition().duration(u.duration).ease(u.easing).tween("text",function(){var re=fw.select(this),oe=G(r[0]),_e=i._deltaLastValue,Me=p(i.delta.valueformat,z,_e,oe),ke=yXe(_e,oe);return i._deltaLastValue=oe,function(me){re.text(Z(ke(me),Me)),re.call(F5.fill,H({delta:ke(me)}))}}).each("end",function(){j(),c&&c()}).each("interrupt",function(){j(),c&&c()}):j(),d=bXe(Z(G(r[0]),z),i.delta.font,l,e),N}var A=i.mode+i.align,L;if(i._hasDelta&&(L=E(),A+=i.delta.position+i.delta.font.size+i.delta.font.family+i.delta.valueformat,A+=i.delta.increasing.symbol+i.delta.decreasing.symbol,v=d),i._hasNumber&&(C(),A+=i.number.font.size+i.number.font.family+i.number.valueformat+i.number.suffix+i.number.prefix,v=h),i._hasDelta&&i._hasNumber){var _=[(h.left+h.right)/2,(h.top+h.bottom)/2],k=[(d.left+d.right)/2,(d.top+d.bottom)/2],M,g,P=.75*i.delta.font.size;i.delta.position==="left"&&(M=k7(i,"deltaPos",0,-1*(h.width*lw[i.align]+d.width*(1-lw[i.align])+P),A,Math.min),g=_[1]-k[1],v={width:h.width+d.width+P,height:Math.max(h.height,d.height),left:d.left+M,right:h.right,top:Math.min(h.top,d.top+g),bottom:Math.max(h.bottom,d.bottom+g)}),i.delta.position==="right"&&(M=k7(i,"deltaPos",0,h.width*(1-lw[i.align])+d.width*lw[i.align]+P,A,Math.max),g=_[1]-k[1],v={width:h.width+d.width+P,height:Math.max(h.height,d.height),left:h.left,right:d.right+M,top:Math.min(h.top,d.top+g),bottom:Math.max(h.bottom,d.bottom+g)}),i.delta.position==="bottom"&&(M=null,g=d.height,v={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}),i.delta.position==="top"&&(M=null,g=h.top,v={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}),L.attr({dx:M,dy:g})}(i._hasNumber||i._hasDelta)&&f.attr("transform",function(){var T=n.numbersScaler(v);A+=T[2];var z=k7(i,"numbersScale",1,T[0],A,Math.min),O;i._scaleNumbers||(z=1),i._isAngular?O=o-z*v.bottom:O=o-z*(v.top+v.bottom)/2,i._numbersTop=z*v.top+O;var V=v[s];s==="center"&&(V=(v.left+v.right)/2);var G=a-z*V;return G=k7(i,"numbersTranslate",0,G,A,Math.max),tk(G,O)+qZt(z)})}function uw(e){e.each(function(t){F5.stroke(fw.select(this),t.line.color)}).each(function(t){F5.fill(fw.select(this),t.color)}).style("stroke-width",function(t){return t.line.width})}function XZt(e,t,r){return function(){var n=OZt(t,r);return function(i){return e.endAngle(n(i))()}}}function ek(e,t,r){var n=e._fullLayout,i=Ex.extendFlat({type:"linear",ticks:"outside",range:r,showline:!0},t),a={type:"linear",_id:"x"+t._id},o={letter:"x",font:n.font,noAutotickangles:!0,noHover:!0,noTickson:!0};function s(l,u){return Ex.coerce(i,a,GZt,l,u)}return UZt(i,a,s,o,n),VZt(i,a,s,o),a}function xXe(e,t,r){var n=Math.min(t/e.width,r/e.height);return[n,e,t+"x"+r]}function ZZt(e,t){var r=Math.sqrt(e.width/2*(e.width/2)+e.height*e.height),n=t/r;return[n,e,t]}function bXe(e,t,r,n){var i=document.createElementNS("http://www.w3.org/2000/svg","text"),a=fw.select(i);return a.text(e).attr("x",0).attr("y",0).attr("text-anchor",r).attr("data-unformatted",e).call(L7.convertToTspans,n).call(cw.font,t),cw.bBox(a.node())}function k7(e,t,r,n,i,a){var o="_cache"+t;e[o]&&e[o].key===i||(e[o]={key:i,value:r});var s=Ex.aggNums(a,null,[e[o].value,n],2);return e[o].value=s,s}});var SXe=ye((ybr,AXe)=>{"use strict";AXe.exports={moduleType:"trace",name:"indicator",basePlotModule:aXe(),categories:["svg","noOpacity","noHover"],animatable:!0,attributes:t$(),supplyDefaults:pXe().supplyDefaults,calc:mXe().calc,plot:TXe(),meta:{}}});var EXe=ye((_br,MXe)=>{"use strict";MXe.exports=SXe()});var n$=ye((bbr,PXe)=>{"use strict";var CXe=Nb(),P7=Ao().extendFlat,YZt=mc().overrideAll,kXe=ec(),KZt=kc().attributes,LXe=df().descriptionOnlyNumbers,xbr=PXe.exports=YZt({domain:KZt({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:LXe("cell value")},prefix:{valType:"string",arrayOk:!0,dflt:null},suffix:{valType:"string",arrayOk:!0,dflt:null},height:{valType:"number",dflt:28},align:P7({},CXe.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:P7({},kXe({arrayOk:!0}))},cells:{values:{valType:"data_array",dflt:[]},format:{valType:"data_array",dflt:[],description:LXe("cell value")},prefix:{valType:"string",arrayOk:!0,dflt:null},suffix:{valType:"string",arrayOk:!0,dflt:null},height:{valType:"number",dflt:20},align:P7({},CXe.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:P7({},kXe({arrayOk:!0}))}},"calc","from-root")});var RXe=ye((wbr,IXe)=>{"use strict";var a$=Dr(),JZt=n$(),$Zt=kc().defaults;function QZt(e,t){for(var r=e.columnorder||[],n=e.header.values.length,i=r.slice(0,n),a=i.slice().sort(function(l,u){return l-u}),o=i.map(function(l){return a.indexOf(l)}),s=o.length;s{"use strict";var eYt=Km().wrap;DXe.exports=function(){return eYt({})}});var o$=ye((Abr,zXe)=>{"use strict";zXe.exports={cellPad:8,columnExtentOffset:10,columnTitleOffset:28,emptyHeaderHeight:16,latexCheck:/^\$.*\$$/,goldenRatio:1.618,lineBreaker:"
",maxDimensionCount:60,overdrag:45,releaseTransitionDuration:120,releaseTransitionEase:"cubic-out",scrollbarCaptureWidth:18,scrollbarHideDelay:1e3,scrollbarHideDuration:1e3,scrollbarOffset:5,scrollbarWidth:8,transitionDuration:100,transitionEase:"cubic-out",uplift:5,wrapSpacer:" ",wrapSplitCharacter:" ",cn:{table:"table",tableControlView:"table-control-view",scrollBackground:"scroll-background",yColumn:"y-column",columnBlock:"column-block",scrollAreaClip:"scroll-area-clip",scrollAreaClipRect:"scroll-area-clip-rect",columnBoundary:"column-boundary",columnBoundaryClippath:"column-boundary-clippath",columnBoundaryRect:"column-boundary-rect",columnCells:"column-cells",columnCell:"column-cell",cellRect:"cell-rect",cellText:"cell-text",cellTextHolder:"cell-text-holder",scrollbarKit:"scrollbar-kit",scrollbar:"scrollbar",scrollbarSlider:"scrollbar-slider",scrollbarGlyph:"scrollbar-glyph",scrollbarCaptureZone:"scrollbar-capture-zone"}}});var jXe=ye((Sbr,HXe)=>{"use strict";var OXe=o$(),l$=Ao().extendFlat,tYt=Eo(),rYt=vv().isTypedArray,I7=vv().isArrayOrTypedArray;HXe.exports=function(t,r){var n=s$(r.cells.values),i=function(g){return g.slice(r.header.values.length,g.length)},a=s$(r.header.values);a.length&&!a[0].length&&(a[0]=[""],a=s$(a));var o=a.concat(i(n).map(function(){return GXe((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}):[OXe.emptyHeaderHeight],f=n.length?n[0].map(function(){return r.cells.height}):[],h=c.reduce(qXe,0),d=u-h,v=d+OXe.uplift,x=UXe(f,v),b=UXe(c,h),p=NXe(b,[]),C=NXe(x,p),E={},A=r._fullInput.columnorder;I7(A)&&(A=Array.from(A)),A=A.concat(i(n.map(function(g,P){return P})));var L=o.map(function(g,P){var T=I7(r.columnwidth)?r.columnwidth[Math.min(P,r.columnwidth.length-1)]:r.columnwidth;return tYt(T)?Number(T):1}),_=L.reduce(qXe,0);L=L.map(function(g){return g/_*l});var k=Math.max(u$(r.header.line.width),u$(r.cells.line.width)),M={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:k,height:u,columnOrder:A,groupHeight:u,rowBlocks:C,headerRowBlocks:p,scrollY:0,cells:l$({},r.cells,{values:n}),headerCells:l$({},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,P){var T=E[g];E[g]=(T||0)+1;var z=g+"__"+E[g];return{key:z,label:g,specIndex:P,xIndex:A[P],xScale:BXe,x:void 0,calcdata:void 0,columnWidth:L[P]}})};return M.columns.forEach(function(g){g.calcdata=M,g.x=BXe(g)}),M};function u$(e){if(I7(e)){for(var t=0,r=0;r=t||u===e.length-1)&&(r[i]=o,o.key=l++,o.firstRowIndex=s,o.lastRowIndex=u,o=VXe(),i+=a,s=u+1,a=0);return r}function VXe(){return{firstRowIndex:null,lastRowIndex:null,rows:[]}}});var WXe=ye(c$=>{"use strict";var R7=Ao().extendFlat;c$.splitToPanels=function(e){var t=[0,0],r=R7({},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:R7({},e.calcdata,{cells:e.calcdata.headerCells})}),n=R7({},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}),i=R7({},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[n,i,r]};c$.splitToCells=function(e){var t=iYt(e);return(e.values||[]).slice(t[0],t[1]).map(function(r,n){var i=typeof r=="string"&&r.match(/[<$&> ]/)?"_keybuster_"+Math.random():"";return{keyWithinBlock:n+i,key:t[0]+n,column:e,calcdata:e.calcdata,page:e.page,rowBlocks:e.rowBlocks,value:r}})};function iYt(e){var t=e.rowBlocks[e.page],r=t?t.rows[0].rowIndex:0,n=t?r+t.rows.length:0;return[r,n]}});var x$=ye((Ebr,iZe)=>{"use strict";var Ya=o$(),tf=Oa(),f$=Dr(),nYt=f$.numberFormat,Uu=Km(),h$=So(),aYt=iu(),oYt=Dr().raiseToTop,og=Dr().strTranslate,sYt=Dr().cancelTransition,lYt=jXe(),QXe=WXe(),XXe=Ca();iZe.exports=function(t,r){var n=!t._context.staticPlot,i=t._fullLayout._paper.selectAll("."+Ya.cn.table).data(r.map(function(C){var E=Uu.unwrap(C),A=E.trace;return lYt(t,A)}),Uu.keyFun);i.exit().remove(),i.enter().append("g").classed(Ya.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"),i.attr("width",function(C){return C.width+C.size.l+C.size.r}).attr("height",function(C){return C.height+C.size.t+C.size.b}).attr("transform",function(C){return og(C.translateX,C.translateY)});var a=i.selectAll("."+Ya.cn.tableControlView).data(Uu.repeat,Uu.keyFun),o=a.enter().append("g").classed(Ya.cn.tableControlView,!0).style("box-sizing","content-box");if(n){var s="onwheel"in document?"wheel":"mousewheel";o.on("mousemove",function(C){a.filter(function(E){return C===E}).call(ik,t)}).on(s,function(C){if(!C.scrollbarState.wheeling){C.scrollbarState.wheeling=!0;var E=C.scrollY+tf.event.deltaY,A=F7(t,a,null,E)(C);A||(tf.event.stopPropagation(),tf.event.preventDefault()),C.scrollbarState.wheeling=!1}}).call(ik,t,!0)}a.attr("transform",function(C){return og(C.size.l,C.size.t)});var l=a.selectAll("."+Ya.cn.scrollBackground).data(Uu.repeat,Uu.keyFun);l.enter().append("rect").classed(Ya.cn.scrollBackground,!0).attr("fill","none"),l.attr("width",function(C){return C.width}).attr("height",function(C){return C.height}),a.each(function(C){h$.setClipUrl(tf.select(this),ZXe(t,C),t)});var u=a.selectAll("."+Ya.cn.yColumn).data(function(C){return C.columns},Uu.keyFun);u.enter().append("g").classed(Ya.cn.yColumn,!0),u.exit().remove(),u.attr("transform",function(C){return og(C.x,0)}),n&&u.call(tf.behavior.drag().origin(function(C){var E=tf.select(this);return JXe(E,C,-Ya.uplift),oYt(this),C.calcdata.columnDragInProgress=!0,ik(a.filter(function(A){return C.calcdata.key===A.key}),t),C}).on("drag",function(C){var E=tf.select(this),A=function(k){return(C===k?tf.event.x:k.x)+k.columnWidth/2};C.x=Math.max(-Ya.overdrag,Math.min(C.calcdata.width+Ya.overdrag-C.columnWidth,tf.event.x));var L=eZe(u).filter(function(k){return k.calcdata.key===C.calcdata.key}),_=L.sort(function(k,M){return A(k)-A(M)});_.forEach(function(k,M){k.xIndex=M,k.x=C===k?k.x:k.xScale(k)}),u.filter(function(k){return C!==k}).transition().ease(Ya.transitionEase).duration(Ya.transitionDuration).attr("transform",function(k){return og(k.x,0)}),E.call(sYt).attr("transform",og(C.x,-Ya.uplift))}).on("dragend",function(C){var E=tf.select(this),A=C.calcdata;C.x=C.xScale(C),C.calcdata.columnDragInProgress=!1,JXe(E,C,0),yYt(t,A,A.columns.map(function(L){return L.xIndex}))})),u.each(function(C){h$.setClipUrl(tf.select(this),YXe(t,C),t)});var c=u.selectAll("."+Ya.cn.columnBlock).data(QXe.splitToPanels,Uu.keyFun);c.enter().append("g").classed(Ya.cn.columnBlock,!0).attr("id",function(C){return C.key}),c.style("cursor",function(C){return C.dragHandle?"ew-resize":C.calcdata.scrollbarState.barWiggleRoom?"ns-resize":"default"});var f=c.filter(_Yt),h=c.filter(m$);n&&h.call(tf.behavior.drag().origin(function(C){return tf.event.stopPropagation(),C}).on("drag",F7(t,a,-1)).on("dragend",function(){})),d$(t,a,f,c),d$(t,a,h,c);var d=a.selectAll("."+Ya.cn.scrollAreaClip).data(Uu.repeat,Uu.keyFun);d.enter().append("clipPath").classed(Ya.cn.scrollAreaClip,!0).attr("id",function(C){return ZXe(t,C)});var v=d.selectAll("."+Ya.cn.scrollAreaClipRect).data(Uu.repeat,Uu.keyFun);v.enter().append("rect").classed(Ya.cn.scrollAreaClipRect,!0).attr("x",-Ya.overdrag).attr("y",-Ya.uplift).attr("fill","none"),v.attr("width",function(C){return C.width+2*Ya.overdrag}).attr("height",function(C){return C.height+Ya.uplift});var x=u.selectAll("."+Ya.cn.columnBoundary).data(Uu.repeat,Uu.keyFun);x.enter().append("g").classed(Ya.cn.columnBoundary,!0);var b=u.selectAll("."+Ya.cn.columnBoundaryClippath).data(Uu.repeat,Uu.keyFun);b.enter().append("clipPath").classed(Ya.cn.columnBoundaryClippath,!0),b.attr("id",function(C){return YXe(t,C)});var p=b.selectAll("."+Ya.cn.columnBoundaryRect).data(Uu.repeat,Uu.keyFun);p.enter().append("rect").classed(Ya.cn.columnBoundaryRect,!0).attr("fill","none"),p.attr("width",function(C){return C.columnWidth+2*D7(C)}).attr("height",function(C){return C.calcdata.height+2*D7(C)+Ya.uplift}).attr("x",function(C){return-D7(C)}).attr("y",function(C){return-D7(C)}),y$(null,h,a)};function D7(e){return Math.ceil(e.calcdata.maxLineWidth/2)}function ZXe(e,t){return"clip"+e._fullLayout._uid+"_scrollAreaBottomClip_"+t.key}function YXe(e,t){return"clip"+e._fullLayout._uid+"_columnBoundaryClippath_"+t.calcdata.key+"_"+t.specIndex}function eZe(e){return[].concat.apply([],e.map(function(t){return t})).map(function(t){return t.__data__})}function ik(e,t,r){function n(u){var c=u.rowBlocks;return p$(c,c.length-1)+(c.length?z7(c[c.length-1],1/0):1)}var i=e.selectAll("."+Ya.cn.scrollbarKit).data(Uu.repeat,Uu.keyFun);i.enter().append("g").classed(Ya.cn.scrollbarKit,!0).style("shape-rendering","geometricPrecision"),i.each(function(u){var c=u.scrollbarState;c.totalHeight=n(u),c.scrollableAreaHeight=u.groupHeight-v$(u),c.currentlyVisibleHeight=Math.min(c.totalHeight,c.scrollableAreaHeight),c.ratio=c.currentlyVisibleHeight/c.totalHeight,c.barLength=Math.max(c.ratio*c.currentlyVisibleHeight,Ya.goldenRatio*Ya.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+Ya.scrollbarWidth/2+Ya.scrollbarOffset;return og(c,v$(u))});var a=i.selectAll("."+Ya.cn.scrollbar).data(Uu.repeat,Uu.keyFun);a.enter().append("g").classed(Ya.cn.scrollbar,!0);var o=a.selectAll("."+Ya.cn.scrollbarSlider).data(Uu.repeat,Uu.keyFun);o.enter().append("g").classed(Ya.cn.scrollbarSlider,!0),o.attr("transform",function(u){return og(0,u.scrollbarState.topY||0)});var s=o.selectAll("."+Ya.cn.scrollbarGlyph).data(Uu.repeat,Uu.keyFun);s.enter().append("line").classed(Ya.cn.scrollbarGlyph,!0).attr("stroke","black").attr("stroke-width",Ya.scrollbarWidth).attr("stroke-linecap","round").attr("y1",Ya.scrollbarWidth/2),s.attr("y2",function(u){return u.scrollbarState.barLength-Ya.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(Ya.scrollbarHideDelay).duration(Ya.scrollbarHideDuration).attr("stroke-opacity",0);var l=a.selectAll("."+Ya.cn.scrollbarCaptureZone).data(Uu.repeat,Uu.keyFun);l.enter().append("line").classed(Ya.cn.scrollbarCaptureZone,!0).attr("stroke","white").attr("stroke-opacity",.01).attr("stroke-width",Ya.scrollbarCaptureWidth).attr("stroke-linecap","butt").attr("y1",0).on("mousedown",function(u){var c=tf.event.y,f=this.getBoundingClientRect(),h=u.scrollbarState,d=c-f.top,v=tf.scale.linear().domain([0,h.scrollableAreaHeight]).range([0,h.totalHeight]).clamp(!0);h.topY<=d&&d<=h.bottomY||F7(t,e,null,v(d-h.barLength/2))(u)}).call(tf.behavior.drag().origin(function(u){return tf.event.stopPropagation(),u.scrollbarState.scrollbarScrollInProgress=!0,u}).on("drag",F7(t,e)).on("dragend",function(){})),l.attr("y2",function(u){return u.scrollbarState.scrollableAreaHeight}),t._context.staticPlot&&(s.remove(),l.remove())}function d$(e,t,r,n){var i=uYt(r),a=cYt(i);vYt(a);var o=fYt(a);gYt(o);var s=dYt(a),l=hYt(s);pYt(l),tZe(l,t,n,e),_$(a)}function uYt(e){var t=e.selectAll("."+Ya.cn.columnCells).data(Uu.repeat,Uu.keyFun);return t.enter().append("g").classed(Ya.cn.columnCells,!0),t.exit().remove(),t}function cYt(e){var t=e.selectAll("."+Ya.cn.columnCell).data(QXe.splitToCells,function(r){return r.keyWithinBlock});return t.enter().append("g").classed(Ya.cn.columnCell,!0),t.exit().remove(),t}function fYt(e){var t=e.selectAll("."+Ya.cn.cellRect).data(Uu.repeat,function(r){return r.keyWithinBlock});return t.enter().append("rect").classed(Ya.cn.cellRect,!0),t}function hYt(e){var t=e.selectAll("."+Ya.cn.cellText).data(Uu.repeat,function(r){return r.keyWithinBlock});return t.enter().append("text").classed(Ya.cn.cellText,!0).style("cursor",function(){return"auto"}).on("mousedown",function(){tf.event.stopPropagation()}),t}function dYt(e){var t=e.selectAll("."+Ya.cn.cellTextHolder).data(Uu.repeat,function(r){return r.keyWithinBlock});return t.enter().append("g").classed(Ya.cn.cellTextHolder,!0).style("shape-rendering","geometricPrecision"),t}function vYt(e){e.each(function(t,r){var n=t.calcdata.cells.font,i=t.column.specIndex,a={size:Zv(n.size,i,r),color:Zv(n.color,i,r),family:Zv(n.family,i,r),weight:Zv(n.weight,i,r),style:Zv(n.style,i,r),variant:Zv(n.variant,i,r),textcase:Zv(n.textcase,i,r),lineposition:Zv(n.lineposition,i,r),shadow:Zv(n.shadow,i,r)};t.rowNumber=t.key,t.align=Zv(t.calcdata.cells.align,i,r),t.cellBorderWidth=Zv(t.calcdata.cells.line.width,i,r),t.font=a})}function pYt(e){e.each(function(t){h$.font(tf.select(this),t.font)})}function gYt(e){e.attr("width",function(t){return t.column.columnWidth}).attr("stroke-width",function(t){return t.cellBorderWidth}).each(function(t){var r=tf.select(this);XXe.stroke(r,Zv(t.calcdata.cells.line.color,t.column.specIndex,t.rowNumber)),XXe.fill(r,Zv(t.calcdata.cells.fill.color,t.column.specIndex,t.rowNumber))})}function tZe(e,t,r,n){e.text(function(i){var a=i.column.specIndex,o=i.rowNumber,s=i.value,l=typeof s=="string",u=l&&s.match(/
/i),c=!l||u;i.mayHaveMarkup=l&&s.match(/[<&>]/);var f=mYt(s);i.latex=f;var h=f?"":Zv(i.calcdata.cells.prefix,a,o)||"",d=f?"":Zv(i.calcdata.cells.suffix,a,o)||"",v=f?null:Zv(i.calcdata.cells.format,a,o)||null,x=h+(v?nYt(v)(i.value):i.value)+d,b;i.wrappingNeeded=!i.wrapped&&!c&&!f&&(b=KXe(x)),i.cellHeightMayIncrease=u||f||i.mayHaveMarkup||(b===void 0?KXe(x):b),i.needsConvertToTspans=i.mayHaveMarkup||i.wrappingNeeded||i.latex;var p;if(i.wrappingNeeded){var C=Ya.wrapSplitCharacter===" "?x.replace(/i&&n.push(a),i+=l}return n}function y$(e,t,r){var n=eZe(t)[0];if(n!==void 0){var i=n.rowBlocks,a=n.calcdata,o=p$(i,i.length),s=n.calcdata.groupHeight-v$(n),l=a.scrollY=Math.max(0,Math.min(o-s,a.scrollY)),u=xYt(i,l,s);u.length===1&&(u[0]===i.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=p$(c.rowBlocks,c.page)-c.scrollY;return og(0,f)}),e&&($Xe(e,r,t,u,n.prevPages,n,0),$Xe(e,r,t,u,n.prevPages,n,1),ik(r,e))}}function F7(e,t,r,n){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=n===void 0?o.scrollY+l*tf.event.dy:n;var c=s.selectAll("."+Ya.cn.yColumn).selectAll("."+Ya.cn.columnBlock).filter(m$);return y$(e,c,s),o.scrollY===u}}function $Xe(e,t,r,n,i,a,o){var s=n[o]!==i[o];s&&(clearTimeout(a.currentRepaint[o]),a.currentRepaint[o]=setTimeout(function(){var l=r.filter(function(u,c){return c===o&&n[c]!==i[c]});d$(e,t,l,r),i[o]=n[o]}))}function bYt(e,t,r,n){return function(){var a=tf.select(t.parentNode);a.each(function(o){var s=o.fragments;a.selectAll("tspan.line").each(function(x,b){s[b].width=this.getComputedTextLength()});var l=s[s.length-1].width,u=s.slice(0,-1),c=[],f,h,d=0,v=o.column.columnWidth-2*Ya.cellPad;for(o.value="";u.length;)f=u.shift(),h=f.width+l,d+h>v&&(o.value+=c.join(Ya.wrapSpacer)+Ya.lineBreaker,c=[],d=0),c.push(f.text),d+=h;d&&(o.value+=c.join(Ya.wrapSpacer)),o.wrapped=!0}),a.selectAll("tspan.line").remove(),tZe(a.select("."+Ya.cn.cellText),r,e,n),tf.select(t.parentNode.parentNode).call(_$)}}function wYt(e,t,r,n,i){return function(){if(!i.settledY){var o=tf.select(t.parentNode),s=g$(i),l=i.key-s.firstRowIndex,u=s.rows[l].rowHeight,c=i.cellHeightMayIncrease?t.parentNode.getBoundingClientRect().height+2*Ya.cellPad:u,f=Math.max(c,u),h=f-s.rows[l].rowHeight;h&&(s.rows[l].rowHeight=f,e.selectAll("."+Ya.cn.columnCell).call(_$),y$(null,e.filter(m$),0),ik(r,n,!0)),o.attr("transform",function(){var d=this,v=d.parentNode,x=v.getBoundingClientRect(),b=tf.select(d.parentNode).select("."+Ya.cn.cellRect).node().getBoundingClientRect(),p=d.transform.baseVal.consolidate(),C=b.top-x.top+(p?p.matrix.f:Ya.cellPad);return og(rZe(i,tf.select(d.parentNode).select("."+Ya.cn.cellTextHolder).node().getBoundingClientRect().width),C)}),i.settledY=!0}}}function rZe(e,t){switch(e.align){case"left":return Ya.cellPad;case"right":return e.column.columnWidth-(t||0)-Ya.cellPad;case"center":return(e.column.columnWidth-(t||0))/2;default:return Ya.cellPad}}function _$(e){e.attr("transform",function(t){var r=t.rowBlocks[0].auxiliaryBlocks.reduce(function(o,s){return o+z7(s,1/0)},0),n=g$(t),i=z7(n,t.key),a=i+r;return og(0,a)}).selectAll("."+Ya.cn.cellRect).attr("height",function(t){return AYt(g$(t),t.key).rowHeight})}function p$(e,t){for(var r=0,n=t-1;n>=0;n--)r+=TYt(e[n]);return r}function z7(e,t){for(var r=0,n=0;n{"use strict";var SYt=Id().getModuleCalcData,MYt=x$(),O7="table";q7.name=O7;q7.plot=function(e){var t=SYt(e.calcdata,O7)[0];t.length&&MYt(e,t)};q7.clean=function(e,t,r,n){var i=n._has&&n._has(O7),a=t._has&&t._has(O7);i&&!a&&n._paperdiv.selectAll(".table").remove()}});var oZe=ye((kbr,aZe)=>{"use strict";aZe.exports={attributes:n$(),supplyDefaults:RXe(),calc:FXe(),plot:x$(),moduleType:"trace",name:"table",basePlotModule:nZe(),categories:["noOpacity"],meta:{}}});var lZe=ye((Lbr,sZe)=>{"use strict";sZe.exports=oZe()});var dZe=ye((Pbr,hZe)=>{"use strict";var uZe=ec(),cZe=Eh(),b$=Rd(),EYt=df().descriptionWithDates,CYt=mc().overrideAll,fZe=Pd().dash,w$=Ao().extendFlat;hZe.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:uZe({editType:"calc"}),offset:{valType:"number",dflt:10,editType:"calc"},editType:"calc"},type:{valType:"enumerated",values:["-","linear","date","category"],dflt:"-",editType:"calc"},autotypenumbers:b$.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:w$({},b$.labelalias,{editType:"calc"}),tickfont:uZe({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"],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:EYt("tick label")},tickformatstops:CYt(b$.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:cZe.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:w$({},fZe,{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:w$({},fZe,{editType:"calc"}),minorgridcolor:{valType:"color",dflt:cZe.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 N7=ye((Ibr,gZe)=>{"use strict";var kYt=ec(),vZe=dZe(),pZe=Eh(),B7=kYt({editType:"calc"}),LYt=pf().zorder;B7.family.dflt='"Open Sans", verdana, arial, sans-serif';B7.size.dflt=12;B7.color.dflt=pZe.defaultLine;gZe.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:vZe,baxis:vZe,font:B7,color:{valType:"color",dflt:pZe.defaultLine,editType:"plot"},zorder:LYt}});var _Ze=ye((Rbr,yZe)=>{"use strict";var mZe=Dr().isArray1D;yZe.exports=function(t,r,n){var i=n("x"),a=i&&i.length,o=n("y"),s=o&&o.length;if(!a&&!s)return!1;if(r._cheater=!i,(!a||mZe(i))&&(!s||mZe(o))){var l=a?i.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 wZe=ye((Dbr,bZe)=>{"use strict";var PYt=N7(),xZe=Ca().addOpacity,IYt=qa(),nk=Dr(),RYt=xb(),DYt=t_(),FYt=r_(),zYt=iI(),OYt=ym(),qYt=L3();bZe.exports=function(t,r,n){var i=n.letter,a=n.font||{},o=PYt[i+"axis"];function s(g,P){return nk.coerce(t,r,o,g,P)}function l(g,P){return nk.coerce2(t,r,o,g,P)}n.name&&(r._name=n.name,r._id=n.name),s("autotypenumbers",n.autotypenumbersDflt);var u=s("type");if(u==="-"&&(n.data&&BYt(r,n.data),r.type==="-"?r.type="linear":u=t.type=r.type),s("smoothing"),s("cheatertype"),s("showticklabels"),s("labelprefix",i+" = "),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=i,u==="date"){var c=IYt.getComponentMethod("calendars","handleDefaults");c(t,r,"calendar",n.calendar)}OYt(r,n.fullLayout),r.c2p=nk.identity;var f=s("color",n.dfltColor),h=f===t.color?f:a.color,d=s("title.text");d&&(nk.coerceFont(s,"title.font",a,{overrideDflt:{size:nk.bigFont(a.size),color:h}}),s("title.offset")),s("tickangle");var v=s("autorange",!r.isValidRange(t.range));v&&s("rangemode"),s("range"),r.cleanRange(),s("fixedrange"),RYt(t,r,s,u),FYt(t,r,s,u,n),DYt(t,r,s,u,n),zYt(t,r,s,{data:n.data,dataAttr:i});var x=l("gridcolor",xZe(f,.3)),b=l("gridwidth"),p=l("griddash"),C=s("showgrid");C||(delete r.gridcolor,delete r.gridwidth,delete r.griddash);var E=l("startlinecolor",f),A=l("startlinewidth",b),L=s("startline",r.showgrid||!!E||!!A);L||(delete r.startlinecolor,delete r.startlinewidth);var _=l("endlinecolor",f),k=l("endlinewidth",b),M=s("endline",r.showgrid||!!_||!!k);return M||(delete r.endlinecolor,delete r.endlinewidth),C?(s("minorgridcount"),s("minorgridwidth",b),s("minorgriddash",p),s("minorgridcolor",xZe(x,.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 BYt(e,t){if(e.type==="-"){var r=e._id,n=r.charAt(0),i=n+"calendar",a=e[i];e.type=qYt(t,a,{autotypenumbers:e.autotypenumbers})}}});var AZe=ye((Fbr,TZe)=>{"use strict";var NYt=wZe(),UYt=pl();TZe.exports=function(t,r,n,i,a){var o=i("a");o||(i("da"),i("a0"));var s=i("b");s||(i("db"),i("b0")),VYt(t,r,n,a)};function VYt(e,t,r,n){var i=["aaxis","baxis"];i.forEach(function(a){var o=a.charAt(0),s=e[a]||{},l=UYt.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:n,bgColor:r.paper_bgcolor,autotypenumbersDflt:r.autotypenumbers,fullLayout:r};NYt(s,l,u),l._categories=l._categories||[],!e[a]&&s.type!=="-"&&(e[a]={type:s.type})})}});var EZe=ye((zbr,MZe)=>{"use strict";var SZe=Dr(),GYt=_Ze(),HYt=AZe(),jYt=N7(),WYt=Eh();MZe.exports=function(t,r,n,i){function a(l,u){return SZe.coerce(t,r,jYt,l,u)}r._clipPathId="clip"+r.uid+"carpet";var o=a("color",WYt.defaultLine);if(SZe.coerceFont(a,"font",i.font),a("carpet"),HYt(t,r,i,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=GYt(t,r,a);s||(r.visible=!1),r._cheater&&a("cheaterslope"),a("zorder")}});var T$=ye((Obr,CZe)=>{"use strict";var XYt=Dr().isArrayOrTypedArray;CZe.exports=function(t,r,n){var i;for(XYt(t)?t.length>r.length&&(t=t.slice(0,r.length)):t=[],i=0;i{"use strict";kZe.exports=function(t,r,n){if(t.length===0)return"";var i,a=[],o=n?3:1;for(i=0;i{"use strict";LZe.exports=function(t,r,n,i,a,o){var s=a[0]*t.dpdx(r),l=a[1]*t.dpdy(n),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]),d=(a[0]*o[0]+a[1]*o[1])/f/h;c=Math.max(0,d)}var v=Math.atan2(l,s)*180/Math.PI;return v<-90?(v+=180,u=-u):v>90&&(v-=180,u=-u),{angle:v,flip:u,p:t.c2p(i,r,n),offsetMultplier:c}}});var BZe=ye((Nbr,qZe)=>{"use strict";var H7=Oa(),U7=So(),V7=T$(),DZe=A$(),ak=PZe(),S$=iu(),Np=Dr(),FZe=Np.strRotate,G7=Np.strTranslate,zZe=Kh();qZe.exports=function(t,r,n,i){var a=t._context.staticPlot,o=r.xaxis,s=r.yaxis,l=t._fullLayout,u=l._clips;Np.makeTraceGroups(i,n,"trace").each(function(c){var f=H7.select(this),h=c[0],d=h.trace,v=d.aaxis,x=d.baxis,b=Np.ensureSingle(f,"g","minorlayer"),p=Np.ensureSingle(f,"g","majorlayer"),C=Np.ensureSingle(f,"g","boundarylayer"),E=Np.ensureSingle(f,"g","labellayer");f.style("opacity",d.opacity),z5(o,s,p,v,"a",v._gridlines,!0,a),z5(o,s,p,x,"b",x._gridlines,!0,a),z5(o,s,b,v,"a",v._minorgridlines,!0,a),z5(o,s,b,x,"b",x._minorgridlines,!0,a),z5(o,s,C,v,"a-boundary",v._boundarylines,a),z5(o,s,C,x,"b-boundary",x._boundarylines,a);var A=IZe(t,o,s,d,h,E,v._labels,"a-label"),L=IZe(t,o,s,d,h,E,x._labels,"b-label");YYt(t,E,d,h,o,s,A,L),ZYt(d,h,u,o,s)})};function ZYt(e,t,r,n,i){var a,o,s,l,u=r.select("#"+e._clipPathId);u.size()||(u=r.append("clipPath").classed("carpetclip",!0));var c=Np.ensureSingle(u,"path","carpetboundary"),f=t.clipsegments,h=[];for(l=0;l0?"start":"end","data-notex":1}).call(U7.font,f.font).text(f.text).call(S$.convertToTspans,e),p=U7.bBox(this);b.attr("transform",G7(d.p[0],d.p[1])+FZe(d.angle)+G7(f.axis.labelpadding*x,p.height*.3)),u=Math.max(u,p.width+f.axis.labelpadding)}),l.exit().remove(),c.maxExtent=u,c}function YYt(e,t,r,n,i,a,o,s){var l,u,c,f,h=Np.aggNums(Math.min,null,r.a),d=Np.aggNums(Math.max,null,r.a),v=Np.aggNums(Math.min,null,r.b),x=Np.aggNums(Math.max,null,r.b);l=.5*(h+d),u=v,c=r.ab2xy(l,u,!0),f=r.dxyda_rough(l,u),o.angle===void 0&&Np.extendFlat(o,ak(r,i,a,c,r.dxydb_rough(l,u))),RZe(e,t,r,n,c,f,r.aaxis,i,a,o,"a-title"),l=h,u=.5*(v+x),c=r.ab2xy(l,u,!0),f=r.dxydb_rough(l,u),s.angle===void 0&&Np.extendFlat(s,ak(r,i,a,c,r.dxyda_rough(l,u))),RZe(e,t,r,n,c,f,r.baxis,i,a,s,"b-title")}var OZe=zZe.LINE_SPACING,KYt=(1-zZe.MID_SHIFT)/OZe+1;function RZe(e,t,r,n,i,a,o,s,l,u,c){var f=[];o.title.text&&f.push(o.title.text);var h=t.selectAll("text."+c).data(f),d=u.maxExtent;h.enter().append("text").classed(c,!0),h.each(function(){var v=ak(r,s,l,i,a);["start","both"].indexOf(o.showticklabels)===-1&&(d=0);var x=o.title.font.size;d+=x+o.title.offset;var b=u.angle+(u.flip<0?180:0),p=(b-v.angle+450)%360,C=p>90&&p<270,E=H7.select(this);E.text(o.title.text).call(S$.convertToTspans,e),C&&(d=(-S$.lineCount(E)+KYt)*OZe*x-d),E.attr("transform",G7(v.p[0],v.p[1])+FZe(v.angle)+G7(0,d)).attr("text-anchor","middle").call(U7.font,o.title.font)}),h.exit().remove()}});var UZe=ye((Ubr,NZe)=>{"use strict";var j7=Dr().isArrayOrTypedArray;NZe.exports=function(e,t,r){var n,i,a,o,s,l,u=[],c=j7(e)?e.length:e,f=j7(t)?t.length:t,h=j7(e)?e:null,d=j7(t)?t:null;h&&(a=(h.length-1)/(h[h.length-1]-h[0])/(c-1)),d&&(o=(d.length-1)/(d[d.length-1]-d[0])/(f-1));var v,x=1/0,b=-1/0;for(i=0;i{"use strict";var VZe=Dr().isArrayOrTypedArray;HZe.exports=function(e){return GZe(e,0)};function GZe(e,t){if(!VZe(e)||t>=10)return null;for(var r=1/0,n=-1/0,i=e.length,a=0;a{"use strict";var JYt=ho(),Cx=Ao().extendFlat;WZe.exports=function(t,r,n){var i,a,o,s,l,u,c,f,h,d,v,x,b,p,C=t["_"+r],E=t[r+"axis"],A=E._gridlines=[],L=E._minorgridlines=[],_=E._boundarylines=[],k=t["_"+n],M=t[n+"axis"];E.tickmode==="array"&&(E.tickvals=C.slice());var g=t._xctrl,P=t._yctrl,T=g[0].length,z=g.length,O=t._a.length,V=t._b.length;JYt.prepTicks(E),E.tickmode==="array"&&delete E.tickvals;var G=E.smoothing?3:1;function Z(N){var j,re,oe,_e,Me,ke,me,ie,Se,Le,Ae,De,Pe=[],ge=[],Fe={};if(r==="b")for(re=t.b2j(N),oe=Math.floor(Math.max(0,Math.min(V-2,re))),_e=re-oe,Fe.length=V,Fe.crossLength=O,Fe.xy=function(ce){return t.evalxy([],ce,re)},Fe.dxy=function(ce,Ze){return t.dxydi([],ce,oe,Ze,_e)},j=0;j0&&(Se=t.dxydi([],j-1,oe,0,_e),Pe.push(Me[0]+Se[0]/3),ge.push(Me[1]+Se[1]/3),Le=t.dxydi([],j-1,oe,1,_e),Pe.push(ie[0]-Le[0]/3),ge.push(ie[1]-Le[1]/3)),Pe.push(ie[0]),ge.push(ie[1]),Me=ie;else for(j=t.a2i(N),ke=Math.floor(Math.max(0,Math.min(O-2,j))),me=j-ke,Fe.length=O,Fe.crossLength=V,Fe.xy=function(ce){return t.evalxy([],j,ce)},Fe.dxy=function(ce,Ze){return t.dxydj([],ke,ce,me,Ze)},re=0;re0&&(Ae=t.dxydj([],ke,re-1,me,0),Pe.push(Me[0]+Ae[0]/3),ge.push(Me[1]+Ae[1]/3),De=t.dxydj([],ke,re-1,me,1),Pe.push(ie[0]-De[0]/3),ge.push(ie[1]-De[1]/3)),Pe.push(ie[0]),ge.push(ie[1]),Me=ie;return Fe.axisLetter=r,Fe.axis=E,Fe.crossAxis=M,Fe.value=N,Fe.constvar=n,Fe.index=f,Fe.x=Pe,Fe.y=ge,Fe.smoothing=M.smoothing,Fe}function H(N){var j,re,oe,_e,Me,ke=[],me=[],ie={};if(ie.length=C.length,ie.crossLength=k.length,r==="b")for(oe=Math.max(0,Math.min(V-2,N)),Me=Math.min(1,Math.max(0,N-oe)),ie.xy=function(Se){return t.evalxy([],Se,N)},ie.dxy=function(Se,Le){return t.dxydi([],Se,oe,Le,Me)},j=0;jC.length-1)&&A.push(Cx(H(a),{color:E.gridcolor,width:E.gridwidth,dash:E.griddash}));for(f=u;fC.length-1)&&!(v<0||v>C.length-1))for(x=C[o],b=C[v],i=0;iC[C.length-1])&&L.push(Cx(Z(d),{color:E.minorgridcolor,width:E.minorgridwidth,dash:E.minorgriddash})));E.startline&&_.push(Cx(H(0),{color:E.startlinecolor,width:E.startlinewidth})),E.endline&&_.push(Cx(H(C.length-1),{color:E.endlinecolor,width:E.endlinewidth}))}else{for(s=5e-15,l=[Math.floor((C[C.length-1]-E.tick0)/E.dtick*(1+s)),Math.ceil((C[0]-E.tick0)/E.dtick/(1+s))].sort(function(N,j){return N-j}),u=l[0],c=l[1],f=u;f<=c;f++)h=E.tick0+E.dtick*f,A.push(Cx(Z(h),{color:E.gridcolor,width:E.gridwidth,dash:E.griddash}));for(f=u-1;fC[C.length-1])&&L.push(Cx(Z(d),{color:E.minorgridcolor,width:E.minorgridwidth,dash:E.minorgriddash}));E.startline&&_.push(Cx(Z(C[0]),{color:E.startlinecolor,width:E.startlinewidth})),E.endline&&_.push(Cx(Z(C[C.length-1]),{color:E.endlinecolor,width:E.endlinewidth}))}}});var JZe=ye((Hbr,KZe)=>{"use strict";var ZZe=ho(),YZe=Ao().extendFlat;KZe.exports=function(t,r){var n,i,a,o,s,l=r._labels=[],u=r._gridlines;for(n=0;n{"use strict";$Ze.exports=function(t,r,n,i){var a,o,s,l=[],u=!!n.smoothing,c=!!i.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 tYe=ye((Wbr,eYe)=>{"use strict";var $Yt=Dr();eYe.exports=function(t,r,n){var i,a,o,s=[],l=[],u=t[0].length,c=t.length;function f(oe,_e){var Me=0,ke,me=0;return oe>0&&(ke=t[_e][oe-1])!==void 0&&(me++,Me+=ke),oe0&&(ke=t[_e-1][oe])!==void 0&&(me++,Me+=ke),_e0&&a0&&iM);return $Yt.log("Smoother converged to",g,"after",T,"iterations"),t}});var iYe=ye((Xbr,rYe)=>{"use strict";rYe.exports={RELATIVE_CULL_TOLERANCE:1e-6}});var oYe=ye((Zbr,aYe)=>{"use strict";var nYe=.5;aYe.exports=function(t,r,n,i){var a=t[0]-r[0],o=t[1]-r[1],s=n[0]-r[0],l=n[1]-r[1],u=Math.pow(a*a+o*o,nYe/2),c=Math.pow(s*s+l*l,nYe/2),f=(c*c*a-u*u*s)*i,h=(c*c*o-u*u*l)*i,d=c*(u+c)*3,v=u*(u+c)*3;return[[r[0]+(d&&f/d),r[1]+(d&&h/d)],[r[0]-(v&&f/v),r[1]-(v&&h/v)]]}});var lYe=ye((Ybr,sYe)=>{"use strict";var M$=oYe(),W7=Dr().ensureArray;function O5(e,t,r){var n=-.5*r[0]+1.5*t[0],i=-.5*r[1]+1.5*t[1];return[(2*n+e[0])/3,(2*i+e[1])/3]}sYe.exports=function(t,r,n,i,a,o){var s,l,u,c,f,h,d,v,x,b,p=n[0].length,C=n.length,E=a?3*p-2:p,A=o?3*C-2:C;for(t=W7(t,A),r=W7(r,A),u=0;u{"use strict";uYe.exports=function(e,t,r,n,i){var a=t-2,o=r-2;return n&&i?function(s,l,u){s||(s=[]);var c,f,h,d,v,x,b=Math.max(0,Math.min(Math.floor(l),a)),p=Math.max(0,Math.min(Math.floor(u),o)),C=Math.max(0,Math.min(1,l-b)),E=Math.max(0,Math.min(1,u-p));b*=3,p*=3;var A=C*C,L=A*C,_=1-C,k=_*_,M=k*_,g=E*E,P=g*E,T=1-E,z=T*T,O=z*T;for(x=0;x{"use strict";fYe.exports=function(e,t,r){return t&&r?function(n,i,a,o,s){n||(n=[]);var l,u,c,f,h,d;i*=3,a*=3;var v=o*o,x=1-o,b=x*x,p=x*o*2,C=-3*b,E=3*(b-p),A=3*(p-v),L=3*v,_=s*s,k=_*s,M=1-s,g=M*M,P=g*M;for(d=0;d{"use strict";dYe.exports=function(e,t,r){return t&&r?function(n,i,a,o,s){n||(n=[]);var l,u,c,f,h,d;i*=3,a*=3;var v=o*o,x=v*o,b=1-o,p=b*b,C=p*b,E=s*s,A=1-s,L=A*A,_=A*s*2,k=-3*L,M=3*(L-_),g=3*(_-E),P=3*E;for(d=0;d{"use strict";var pYe=iYe(),gYe=P6().findBin,QYt=lYe(),eKt=cYe(),tKt=hYe(),rKt=vYe();mYe.exports=function(t){var r=t._a,n=t._b,i=r.length,a=n.length,o=t.aaxis,s=t.baxis,l=r[0],u=r[i-1],c=n[0],f=n[a-1],h=r[r.length-1]-r[0],d=n[n.length-1]-n[0],v=h*pYe.RELATIVE_CULL_TOLERANCE,x=d*pYe.RELATIVE_CULL_TOLERANCE;l-=v,u+=v,c-=x,f+=x,t.isVisible=function(b,p){return b>l&&bc&&pu||pf},t.setScale=function(){var b=t._x,p=t._y,C=QYt(t._xctrl,t._yctrl,b,p,o.smoothing,s.smoothing);t._xctrl=C[0],t._yctrl=C[1],t.evalxy=eKt([t._xctrl,t._yctrl],i,a,o.smoothing,s.smoothing),t.dxydi=tKt([t._xctrl,t._yctrl],o.smoothing,s.smoothing),t.dxydj=rKt([t._xctrl,t._yctrl],o.smoothing,s.smoothing)},t.i2a=function(b){var p=Math.max(0,Math.floor(b[0]),i-2),C=b[0]-p;return(1-C)*r[p]+C*r[p+1]},t.j2b=function(b){var p=Math.max(0,Math.floor(b[1]),i-2),C=b[1]-p;return(1-C)*n[p]+C*n[p+1]},t.ij2ab=function(b){return[t.i2a(b[0]),t.j2b(b[1])]},t.a2i=function(b){var p=Math.max(0,Math.min(gYe(b,r),i-2)),C=r[p],E=r[p+1];return Math.max(0,Math.min(i-1,p+(b-C)/(E-C)))},t.b2j=function(b){var p=Math.max(0,Math.min(gYe(b,n),a-2)),C=n[p],E=n[p+1];return Math.max(0,Math.min(a-1,p+(b-C)/(E-C)))},t.ab2ij=function(b){return[t.a2i(b[0]),t.b2j(b[1])]},t.i2c=function(b,p){return t.evalxy([],b,p)},t.ab2xy=function(b,p,C){if(!C&&(br[i-1]|pn[a-1]))return[!1,!1];var E=t.a2i(b),A=t.b2j(p),L=t.evalxy([],E,A);if(C){var _=0,k=0,M=[],g,P,T,z;br[i-1]?(g=i-2,P=1,_=(b-r[i-1])/(r[i-1]-r[i-2])):(g=Math.max(0,Math.min(i-2,Math.floor(E))),P=E-g),pn[a-1]?(T=a-2,z=1,k=(p-n[a-1])/(n[a-1]-n[a-2])):(T=Math.max(0,Math.min(a-2,Math.floor(A))),z=A-T),_&&(t.dxydi(M,g,T,P,z),L[0]+=M[0]*_,L[1]+=M[1]*_),k&&(t.dxydj(M,g,T,P,z),L[0]+=M[0]*k,L[1]+=M[1]*k)}return L},t.c2p=function(b,p,C){return[p.c2p(b[0]),C.c2p(b[1])]},t.p2x=function(b,p,C){return[p.p2c(b[0]),C.p2c(b[1])]},t.dadi=function(b){var p=Math.max(0,Math.min(r.length-2,b));return r[p+1]-r[p]},t.dbdj=function(b){var p=Math.max(0,Math.min(n.length-2,b));return n[p+1]-n[p]},t.dxyda=function(b,p,C,E){var A=t.dxydi(null,b,p,C,E),L=t.dadi(b,C);return[A[0]/L,A[1]/L]},t.dxydb=function(b,p,C,E){var A=t.dxydj(null,b,p,C,E),L=t.dbdj(p,E);return[A[0]/L,A[1]/L]},t.dxyda_rough=function(b,p,C){var E=h*(C||.1),A=t.ab2xy(b+E,p,!0),L=t.ab2xy(b-E,p,!0);return[(A[0]-L[0])*.5/E,(A[1]-L[1])*.5/E]},t.dxydb_rough=function(b,p,C){var E=d*(C||.1),A=t.ab2xy(b,p+E,!0),L=t.ab2xy(b,p-E,!0);return[(A[0]-L[0])*.5/E,(A[1]-L[1])*.5/E]},t.dpdx=function(b){return b._m},t.dpdy=function(b){return b._m}}});var MYe=ye((e2r,SYe)=>{"use strict";var X7=ho(),_Ye=Dr().isArray1D,iKt=UZe(),xYe=jZe(),bYe=XZe(),wYe=JZe(),nKt=QZe(),TYe=r8(),AYe=tYe(),aKt=e8(),oKt=yYe();SYe.exports=function(t,r){var n=X7.getFromId(t,r.xaxis),i=X7.getFromId(t,r.yaxis),a=r.aaxis,o=r.baxis,s=r.x,l=r.y,u=[];s&&_Ye(s)&&u.push("x"),l&&_Ye(l)&&u.push("y"),u.length&&aKt(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 d=a.cheatertype==="index"?c.length:c,v=o.cheatertype==="index"?f.length:f;s=iKt(d,v,r.cheaterslope)}r._x=s=TYe(s),r._y=l=TYe(l),AYe(s,c,f),AYe(l,c,f),oKt(r),r.setScale();var x=xYe(s),b=xYe(l),p=.5*(x[1]-x[0]),C=.5*(x[1]+x[0]),E=.5*(b[1]-b[0]),A=.5*(b[1]+b[0]),L=1.3;return x=[C-p*L,C+p*L],b=[A-E*L,A+E*L],r._extremes[n._id]=X7.findExtremes(n,x,{padded:!0}),r._extremes[i._id]=X7.findExtremes(i,b,{padded:!0}),bYe(r,"a","b"),bYe(r,"b","a"),wYe(r,a),wYe(r,o),h.clipsegments=nKt(r._xctrl,r._yctrl,a,o),h.x=s,h.y=l,h.a=c,h.b=f,[h]}});var CYe=ye((t2r,EYe)=>{"use strict";EYe.exports={attributes:N7(),supplyDefaults:EZe(),plot:BZe(),calc:MYe(),animatable:!0,isContainer:!0,moduleType:"trace",name:"carpet",basePlotModule:vh(),categories:["cartesian","svg","carpet","carpetAxis","notLegendIsolatable","noMultiCategory","noHover","noSortingByValue"],meta:{}}});var LYe=ye((r2r,kYe)=>{"use strict";kYe.exports=CYe()});var E$=ye((i2r,IYe)=>{"use strict";var sKt=Eg(),u0=pf(),lKt=Vl(),uKt=Qo().hovertemplateAttrs,cKt=Qo().texttemplateAttrs,PYe=Tu(),kx=Ao().extendFlat,sg=u0.marker,q5=u0.line,fKt=sg.line;IYe.exports={carpet:{valType:"string",editType:"calc"},a:{valType:"data_array",editType:"calc"},b:{valType:"data_array",editType:"calc"},mode:kx({},u0.mode,{dflt:"markers"}),text:kx({},u0.text,{}),texttemplate:cKt({editType:"plot"},{keys:["a","b","text"]}),hovertext:kx({},u0.hovertext,{}),line:{color:q5.color,width:q5.width,dash:q5.dash,backoff:q5.backoff,shape:kx({},q5.shape,{values:["linear","spline"]}),smoothing:q5.smoothing,editType:"calc"},connectgaps:u0.connectgaps,fill:kx({},u0.fill,{values:["none","toself","tonext"],dflt:"none"}),fillcolor:sKt(),marker:kx({symbol:sg.symbol,opacity:sg.opacity,maxdisplayed:sg.maxdisplayed,angle:sg.angle,angleref:sg.angleref,standoff:sg.standoff,size:sg.size,sizeref:sg.sizeref,sizemin:sg.sizemin,sizemode:sg.sizemode,line:kx({width:fKt.width,editType:"calc"},PYe("marker.line")),gradient:sg.gradient,editType:"calc"},PYe("marker")),textfont:u0.textfont,textposition:u0.textposition,selected:u0.selected,unselected:u0.unselected,hoverinfo:kx({},lKt.hoverinfo,{flags:["a","b","text","name"]}),hoveron:u0.hoveron,hovertemplate:uKt(),zorder:u0.zorder}});var zYe=ye((n2r,FYe)=>{"use strict";var RYe=Dr(),hKt=Sm(),B5=Ru(),dKt=$p(),vKt=R0(),DYe=J3(),pKt=D0(),gKt=Ig(),mKt=E$();FYe.exports=function(t,r,n,i){function a(h,d){return RYe.coerce(t,r,mKt,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("hovertext");var u=l{"use strict";OYe.exports=function(t,r){var n={},i=r._carpet,a=i.ab2ij([t.a,t.b]),o=Math.floor(a[0]),s=a[0]-o,l=Math.floor(a[1]),u=a[1]-l,c=i.evalxy([],o,l,s,u);return n.yLabel=c[1].toFixed(3),n}});var Z7=ye((o2r,BYe)=>{"use strict";BYe.exports=function(e,t){for(var r=e._fullData.length,n,i=0;i{"use strict";var NYe=Eo(),yKt=F0(),_Kt=Cm(),xKt=z0(),bKt=O0().calcMarkerSize,wKt=Z7();UYe.exports=function(t,r){var n=r._carpetTrace=wKt(t,r);if(!(!n||!n.visible||n.visible==="legendonly")){var i;r.xaxis=n.xaxis,r.yaxis=n.yaxis;var a=r._length,o=new Array(a),s,l,u=!1;for(i=0;i{"use strict";var TKt=iT(),GYe=ho(),AKt=So();HYe.exports=function(t,r,n,i){var a,o,s,l=n[0][0].carpet,u=GYe.getFromId(t,l.xaxis||"x"),c=GYe.getFromId(t,l.yaxis||"y"),f={xaxis:u,yaxis:c,plot:r.plot};for(a=0;a{"use strict";var SKt=sT(),MKt=Dr().fillText;WYe.exports=function(t,r,n,i){var a=SKt(t,r,n,i);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,d=h._carpet,v=h._module.formatLabels(f,h);o.yLabel=v.yLabel,delete o.text;var x=[];function b(E,A){var L;E.labelprefix&&E.labelprefix.length>0?L=E.labelprefix.replace(/ = $/,""):L=E._hovertitle,x.push(L+": "+A.toFixed(3)+E.labelsuffix)}if(!h.hovertemplate){var p=f.hi||h.hoverinfo,C=p.split("+");C.indexOf("all")!==-1&&(C=["a","b","text"]),C.indexOf("a")!==-1&&b(d.aaxis,f.a),C.indexOf("b")!==-1&&b(d.baxis,f.b),x.push("y: "+o.yLabel),C.indexOf("text")!==-1&&MKt(f,h,x),o.extraText=x.join("
")}return a}});var YYe=ye((c2r,ZYe)=>{"use strict";ZYe.exports=function(t,r,n,i,a){var o=i[a];return t.a=o.a,t.b=o.b,t.y=o.y,t}});var JYe=ye((f2r,KYe)=>{"use strict";KYe.exports={attributes:E$(),supplyDefaults:zYe(),colorbar:$d(),formatLabels:qYe(),calc:VYe(),plot:jYe(),style:ap().style,styleOnSelect:ap().styleOnSelect,hoverPoints:XYe(),selectPoints:lT(),eventData:YYe(),moduleType:"trace",name:"scattercarpet",basePlotModule:vh(),categories:["svg","carpet","symbols","showLegend","carpetDependent","zoomScale"],meta:{}}});var QYe=ye((h2r,$Ye)=>{"use strict";$Ye.exports=JYe()});var C$=ye((d2r,eKe)=>{"use strict";var lg=ET(),g1=E4(),EKt=Tu(),CKt=Ao().extendFlat,ty=g1.contours;eKe.exports=CKt({carpet:{valType:"string",editType:"calc"},z:lg.z,a:lg.x,a0:lg.x0,da:lg.dx,b:lg.y,b0:lg.y0,db:lg.dy,text:lg.text,hovertext:lg.hovertext,transpose:lg.transpose,atype:lg.xtype,btype:lg.ytype,fillcolor:g1.fillcolor,autocontour:g1.autocontour,ncontours:g1.ncontours,contours:{type:ty.type,start:ty.start,end:ty.end,size:ty.size,coloring:{valType:"enumerated",values:["fill","lines","none"],dflt:"fill",editType:"calc"},showlines:ty.showlines,showlabels:ty.showlabels,labelfont:ty.labelfont,labelformat:ty.labelformat,operation:ty.operation,value:ty.value,editType:"calc",impliedEdits:{autocontour:!1}},line:{color:g1.line.color,width:g1.line.width,dash:g1.line.dash,smoothing:g1.line.smoothing,editType:"plot"},zorder:g1.zorder},EKt("",{cLetter:"z",autoColorDflt:!1}))});var k$=ye((v2r,iKe)=>{"use strict";var tKe=Dr(),kKt=JI(),rKe=C$(),LKt=TG(),PKt=b8(),IKt=w8();iKe.exports=function(t,r,n,i){function a(u,c){return tKe.coerce(t,r,rKe,u,c)}function o(u){return tKe.coerce2(t,r,rKe,u)}if(a("carpet"),t.a&&t.b){var s=kKt(t,r,a,i,"a","b");if(!s){r.visible=!1;return}a("text");var l=a("contours.type")==="constraint";l?LKt(t,r,a,i,n,{hasHover:!1}):(PKt(t,r,a,o),IKt(t,r,a,i,{hasHover:!1}))}else r._defaultColor=n,r._length=null;a("zorder")}});var sKe=ye((p2r,oKe)=>{"use strict";var RKt=Fv(),nKe=Dr(),DKt=e8(),FKt=r8(),zKt=i8(),OKt=n8(),aKe=WV(),qKt=k$(),BKt=Z7(),NKt=fG();oKe.exports=function(t,r){var n=r._carpetTrace=BKt(t,r);if(!(!n||!n.visible||n.visible==="legendonly")){if(!r.a||!r.b){var i=t.data[n.index],a=t.data[r.index];a.a||(a.a=i.a),a.b||(a.b=i.b),qKt(a,r,r._defaultColor,t._fullLayout)}var o=UKt(t,r);return NKt(r,r._z),o}};function UKt(e,t){var r=t._carpetTrace,n=r.aaxis,i=r.baxis,a,o,s,l,u,c,f;n._minDtick=0,i._minDtick=0,nKe.isArray1D(t.z)&&DKt(t,n,i,"a","b",["z"]),a=t._a=t._a||t.a,l=t._b=t._b||t.b,a=a?n.makeCalcdata(t,"_a"):[],l=l?i.makeCalcdata(t,"_b"):[],o=t.a0||0,s=t.da||1,u=t.b0||0,c=t.db||1,f=t._z=FKt(t._z||t.z,t.transpose),t._emptypoints=OKt(f),zKt(f,t._emptypoints);var h=nKe.maxRowLength(f),d=t.xtype==="scaled"?"":a,v=aKe(t,d,o,s,h,n),x=t.ytype==="scaled"?"":l,b=aKe(t,x,u,c,f.length,i),p={a:v,b,z:f};return t.contours.type==="levels"&&t.contours.coloring!=="none"&&RKt(e,t,{vals:f,containerStr:"",cLetter:"z"}),[p]}});var uKe=ye((g2r,lKe)=>{"use strict";var VKt=Dr().isArrayOrTypedArray;lKe.exports=function(e,t,r,n){var i,a,o,s,l,u,c,f,h,d,v,x,b,p=VKt(r)?"a":"b",C=p==="a"?e.aaxis:e.baxis,E=C.smoothing,A=p==="a"?e.a2i:e.b2j,L=p==="a"?r:n,_=p==="a"?n:r,k=p==="a"?t.a.length:t.b.length,M=p==="a"?t.b.length:t.a.length,g=Math.floor(p==="a"?e.b2j(_):e.a2i(_)),P=p==="a"?function(_e){return e.evalxy([],_e,g)}:function(_e){return e.evalxy([],g,_e)};E&&(o=Math.max(0,Math.min(M-2,g)),s=g-o,a=p==="a"?function(_e,Me){return e.dxydi([],_e,o,Me,s)}:function(_e,Me){return e.dxydj([],o,_e,s,Me)});var T=A(L[0]),z=A(L[1]),O=T0?Math.floor:Math.ceil,Z=O>0?Math.ceil:Math.floor,H=O>0?Math.min:Math.max,N=O>0?Math.max:Math.min,j=G(T+V),re=Z(z-V);c=P(T);var oe=[[c]];for(i=j;i*O{"use strict";var K7=Oa(),J7=T$(),vKe=A$(),ok=So(),m1=Dr(),GKt=dG(),HKt=vG(),hw=S8(),Y7=k4(),jKt=yG(),WKt=mG(),XKt=_G(),ZKt=Z7(),cKe=uKe();pKe.exports=function(t,r,n,i){var a=r.xaxis,o=r.yaxis;m1.makeTraceGroups(i,n,"contour").each(function(s){var l=K7.select(this),u=s[0],c=u.trace,f=c._carpetTrace=ZKt(t,c),h=t.calcdata[f.index][0];if(!f.visible||f.visible==="legendonly")return;var d=u.a,v=u.b,x=c.contours,b=WKt(x,r,u),p=x.type==="constraint",C=x._operation,E=p?C==="="?"lines":"fill":x.coloring;function A(G){var Z=f.ab2xy(G[0],G[1],!0);return[a.c2p(Z[0]),o.c2p(Z[1])]}var L=[[d[0],v[v.length-1]],[d[d.length-1],v[v.length-1]],[d[d.length-1],v[0]],[d[0],v[0]]];GKt(b);var _=(d[d.length-1]-d[0])*1e-8,k=(v[v.length-1]-v[0])*1e-8;HKt(b,_,k);var M=b;x.type==="constraint"&&(M=jKt(b,C)),YKt(b,A);var g,P,T,z,O=[];for(z=h.clipsegments.length-1;z>=0;z--)g=h.clipsegments[z],P=J7([],g.x,a.c2p),T=J7([],g.y,o.c2p),P.reverse(),T.reverse(),O.push(vKe(P,T,g.bicubic));var V="M"+O.join("L")+"Z";$Kt(l,h.clipsegments,a,o,p,E),QKt(c,l,a,o,M,L,A,f,h,E,V),KKt(l,b,t,u,x,r,f),ok.setClipUrl(l,f._clipPathId,t)})};function YKt(e,t){var r,n,i,a,o,s,l,u,c;for(r=0;rb&&(n.max=b),n.len=n.max-n.min}function fKe(e,t,r){var n=e.getPointAtLength(t),i=e.getPointAtLength(r),a=i.x-n.x,o=i.y-n.y,s=Math.sqrt(a*a+o*o);return[a/s,o/s]}function hKe(e){var t=Math.sqrt(e[0]*e[0]+e[1]*e[1]);return[e[0]/t,e[1]/t]}function dKe(e,t){var r=Math.abs(e[0]*t[0]+e[1]*t[1]),n=Math.sqrt(1-r*r);return n/r}function $Kt(e,t,r,n,i,a){var o,s,l,u,c=m1.ensureSingle(e,"g","contourbg"),f=c.selectAll("path").data(a==="fill"&&!i?[0]:[]);f.enter().append("path"),f.exit().remove();var h=[];for(u=0;u=0&&(d=P,x=b):Math.abs(h[1]-d[1])=0&&(d=P,x=b):m1.log("endpt to newendpt is not vert. or horz.",h,d,P)}if(x>=0)break;u+=M(h,d),h=d}if(x===t.edgepaths.length){m1.log("unclosed perimeter path");break}l=x,f=c.indexOf(l)===-1,f&&(l=c[0],u+=M(h,d)+"Z",h=null)}for(l=0;l{"use strict";mKe.exports={attributes:C$(),supplyDefaults:k$(),colorbar:C8(),calc:sKe(),plot:gKe(),style:E8(),moduleType:"trace",name:"contourcarpet",basePlotModule:vh(),categories:["cartesian","svg","carpet","contour","symbols","showLegend","hasLines","carpetDependent","noHover","noSortingByValue"],meta:{}}});var xKe=ye((_2r,_Ke)=>{"use strict";_Ke.exports=yKe()});var Q7=ye((x2r,SKe)=>{"use strict";var $7=Dr().extendFlat,sk=pf(),bKe=df().axisHoverFormat,TKe=Pd().dash,tJt=i3(),AKe=GT(),rJt=AKe.INCREASING.COLOR,iJt=AKe.DECREASING.COLOR,L$=sk.line;function wKe(e){return{line:{color:$7({},L$.color,{dflt:e}),width:L$.width,dash:TKe,editType:"style"},editType:"style"}}SKe.exports={xperiod:sk.xperiod,xperiod0:sk.xperiod0,xperiodalignment:sk.xperiodalignment,xhoverformat:bKe("x"),yhoverformat:bKe("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:$7({},L$.width,{}),dash:$7({},TKe,{}),editType:"style"},increasing:wKe(rJt),decreasing:wKe(iJt),text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},tickwidth:{valType:"number",min:0,max:.5,dflt:.3,editType:"calc"},hoverlabel:$7({},tJt.hoverlabel,{split:{valType:"boolean",dflt:!1,editType:"style"}}),zorder:sk.zorder}});var P$=ye((b2r,MKe)=>{"use strict";var nJt=qa(),aJt=Dr();MKe.exports=function(t,r,n,i){var a=n("x"),o=n("open"),s=n("high"),l=n("low"),u=n("close");n("hoverlabel.split");var c=nJt.getComponentMethod("calendars","handleTraceDefaults");if(c(t,r,["x"],i),!!(o&&s&&l&&u)){var f=Math.min(o.length,s.length,l.length,u.length);return a&&(f=Math.min(f,aJt.minRowLength(a))),r._length=f,f}}});var kKe=ye((w2r,CKe)=>{"use strict";var oJt=Dr(),sJt=P$(),lJt=Pg(),uJt=Q7();CKe.exports=function(t,r,n,i){function a(s,l){return oJt.coerce(t,r,uJt,s,l)}var o=sJt(t,r,a,i);if(!o){r.visible=!1;return}lJt(t,r,i,a,{x:!0}),a("xhoverformat"),a("yhoverformat"),a("line.width"),a("line.dash"),EKe(t,r,a,"increasing"),EKe(t,r,a,"decreasing"),a("text"),a("hovertext"),a("tickwidth"),i._requestRangeslider[r.xaxis]=!0,a("zorder")};function EKe(e,t,r,n){r(n+".line.color"),r(n+".line.width",t.line.width),r(n+".line.dash",t.line.dash)}});var I$=ye((T2r,PKe)=>{"use strict";var N5=Dr(),e9=N5._,t9=ho(),cJt=Rg(),lk=hs().BADNUM;function fJt(e,t){var r=t9.getFromId(e,t.xaxis),n=t9.getFromId(e,t.yaxis),i=dJt(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=LKe(e,t,o,s,n,hJt);return t._extremes[r._id]=t9.findExtremes(r,s,{vpad:a/2}),l.length?(N5.extendFlat(l[0].t,{wHover:a/2,tickLen:i}),l):[{t:{empty:!0}}]}function hJt(e,t,r,n){return{o:e,h:t,l:r,c:n}}function LKe(e,t,r,n,i,a){for(var o=i.makeCalcdata(t,"open"),s=i.makeCalcdata(t,"high"),l=i.makeCalcdata(t,"low"),u=i.makeCalcdata(t,"close"),c=N5.isArrayOrTypedArray(t.text),f=N5.isArrayOrTypedArray(t.hovertext),h=!0,d=null,v=!!t.xperiodalignment,x=[],b=0;bd):h=L>C,d=L;var _=a(C,E,A,L);_.pos=p,_.yc=(C+L)/2,_.i=b,_.dir=h?"increasing":"decreasing",_.x=_.pos,_.y=[A,E],v&&(_.orig_p=r[b]),c&&(_.tx=t.text[b]),f&&(_.htx=t.hovertext[b]),x.push(_)}else x.push({pos:p,empty:!0})}return t._extremes[i._id]=t9.findExtremes(i,N5.concat(l,s),{padded:!0}),x.length&&(x[0].t={labels:{open:e9(e,"open:")+" ",high:e9(e,"high:")+" ",low:e9(e,"low:")+" ",close:e9(e,"close:")+" "}}),x}function dJt(e,t,r){var n=r._minDiff;if(!n){var i=e._fullData,a=[];n=1/0;var o;for(o=0;o{"use strict";var vJt=Oa(),IKe=Dr();RKe.exports=function(t,r,n,i){var a=r.yaxis,o=r.xaxis,s=!!o.rangebreaks;IKe.makeTraceGroups(i,n,"trace ohlc").each(function(l){var u=vJt.select(this),c=l[0],f=c.t,h=c.trace;if(h.visible!==!0||f.empty){u.remove();return}var d=f.tickLen,v=u.selectAll("path").data(IKe.identity);v.enter().append("path"),v.exit().remove(),v.attr("d",function(x){if(x.empty)return"M0,0Z";var b=o.c2p(x.pos-d,!0),p=o.c2p(x.pos+d,!0),C=s?(b+p)/2:o.c2p(x.pos,!0),E=a.c2p(x.o,!0),A=a.c2p(x.h,!0),L=a.c2p(x.l,!0),_=a.c2p(x.c,!0);return"M"+b+","+E+"H"+C+"M"+C+","+A+"V"+L+"M"+p+","+_+"H"+C})})}});var zKe=ye((S2r,FKe)=>{"use strict";var R$=Oa(),pJt=So(),gJt=Ca();FKe.exports=function(t,r,n){var i=n||R$.select(t).selectAll("g.ohlclayer").selectAll("g.trace");i.style("opacity",function(a){return a[0].trace.opacity}),i.each(function(a){var o=a[0].trace;R$.select(this).selectAll("path").each(function(s){if(!s.empty){var l=o[s.dir].line;R$.select(this).style("fill","none").call(gJt.stroke,l.color).call(pJt.dashLine,l.dash,l.width).style("opacity",o.selectedpoints&&!s.selected?.3:1)}})})}});var F$=ye((M2r,UKe)=>{"use strict";var D$=ho(),mJt=Dr(),r9=vf(),yJt=Ca(),_Jt=Dr().fillText,OKe=GT(),xJt={increasing:OKe.INCREASING.SYMBOL,decreasing:OKe.DECREASING.SYMBOL};function bJt(e,t,r,n){var i=e.cd,a=i[0].trace;return a.hoverlabel.split?BKe(e,t,r,n):NKe(e,t,r,n)}function qKe(e,t,r,n){var i=e.cd,a=e.xa,o=i[0].trace,s=i[0].t,l=o.type,u=l==="ohlc"?"l":"min",c=l==="ohlc"?"h":"max",f,h,d=s.bPos||0,v=function(P){return P.pos+d-t},x=s.bdPos||s.tickLen,b=s.wHover,p=Math.min(1,x/Math.abs(a.r2c(a.range[1])-a.r2c(a.range[0])));f=e.maxHoverDistance-p,h=e.maxSpikeDistance-p;function C(P){var T=v(P);return r9.inbox(T-b,T+b,f)}function E(P){var T=P[u],z=P[c];return T===z||r9.inbox(T-r,z-r,f)}function A(P){return(C(P)+E(P))/2}var L=r9.getDistanceFunction(n,C,E,A);if(r9.getClosest(i,L,e),e.index===!1)return null;var _=i[e.index];if(_.empty)return null;var k=_.dir,M=o[k],g=M.line.color;return yJt.opacity(g)&&M.line.width?e.color=g:e.color=M.fillcolor,e.x0=a.c2p(_.pos+d-x,!0),e.x1=a.c2p(_.pos+d+x,!0),e.xLabelVal=_.orig_p!==void 0?_.orig_p:_.pos,e.spikeDistance=A(_)*h/f,e.xSpike=a.c2p(_.pos,!0),e}function BKe(e,t,r,n){var i=e.cd,a=e.ya,o=i[0].trace,s=i[0].t,l=[],u=qKe(e,t,r,n);if(!u)return[];var c=u.index,f=i[c],h=f.hi||o.hoverinfo,d=h.split("+"),v=h==="all",x=v||d.indexOf("y")!==-1;if(!x)return[];for(var b=["high","open","close","low"],p={},C=0;C"+s.labels[E]+D$.hoverLabelText(a,A,o.yhoverformat)):(_=mJt.extendFlat({},u),_.y0=_.y1=L,_.yLabelVal=A,_.yLabel=s.labels[E]+D$.hoverLabelText(a,A,o.yhoverformat),_.name="",l.push(_),p[A]=_)}return l}function NKe(e,t,r,n){var i=e.cd,a=e.ya,o=i[0].trace,s=i[0].t,l=qKe(e,t,r,n);if(!l)return[];var u=l.index,c=i[u],f=l.index=c.i,h=c.dir;function d(A){return s.labels[A]+D$.hoverLabelText(a,o[A][f],o.yhoverformat)}var v=c.hi||o.hoverinfo,x=v.split("+"),b=v==="all",p=b||x.indexOf("y")!==-1,C=b||x.indexOf("text")!==-1,E=p?[d("open"),d("high"),d("low"),d("close")+" "+xJt[h]]:[];return C&&_Jt(c,o,E),l.extraText=E.join("
"),l.y0=l.y1=a.c2p(c.yc,!0),[l]}UKe.exports={hoverPoints:bJt,hoverSplit:BKe,hoverOnPoints:NKe}});var z$=ye((E2r,VKe)=>{"use strict";VKe.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s,l=n[0].t.bPos||0;if(r===!1)for(s=0;s{"use strict";GKe.exports={moduleType:"trace",name:"ohlc",basePlotModule:vh(),categories:["cartesian","svg","showLegend"],meta:{},attributes:Q7(),supplyDefaults:kKe(),calc:I$().calc,plot:DKe(),style:zKe(),hoverPoints:F$().hoverPoints,selectPoints:z$()}});var WKe=ye((k2r,jKe)=>{"use strict";jKe.exports=HKe()});var q$=ye((L2r,YKe)=>{"use strict";var O$=Dr().extendFlat,XKe=df().axisHoverFormat,c0=Q7(),U5=y4();function ZKe(e){return{line:{color:O$({},U5.line.color,{dflt:e}),width:U5.line.width,editType:"style"},fillcolor:U5.fillcolor,editType:"style"}}YKe.exports={xperiod:c0.xperiod,xperiod0:c0.xperiod0,xperiodalignment:c0.xperiodalignment,xhoverformat:XKe("x"),yhoverformat:XKe("y"),x:c0.x,open:c0.open,high:c0.high,low:c0.low,close:c0.close,line:{width:O$({},U5.line.width,{}),editType:"style"},increasing:ZKe(c0.increasing.line.color.dflt),decreasing:ZKe(c0.decreasing.line.color.dflt),text:c0.text,hovertext:c0.hovertext,whiskerwidth:O$({},U5.whiskerwidth,{dflt:0}),hoverlabel:c0.hoverlabel,zorder:U5.zorder}});var $Ke=ye((P2r,JKe)=>{"use strict";var wJt=Dr(),TJt=Ca(),AJt=P$(),SJt=Pg(),MJt=q$();JKe.exports=function(t,r,n,i){function a(s,l){return wJt.coerce(t,r,MJt,s,l)}var o=AJt(t,r,a,i);if(!o){r.visible=!1;return}SJt(t,r,i,a,{x:!0}),a("xhoverformat"),a("yhoverformat"),a("line.width"),KKe(t,r,a,"increasing"),KKe(t,r,a,"decreasing"),a("text"),a("hovertext"),a("whiskerwidth"),i._requestRangeslider[r.xaxis]=!0,a("zorder")};function KKe(e,t,r,n){var i=r(n+".line.color");r(n+".line.width",t.line.width),r(n+".fillcolor",TJt.addOpacity(i,.5))}});var rJe=ye((I2r,tJe)=>{"use strict";var QKe=Dr(),eJe=ho(),EJt=Rg(),CJt=I$().calcCommon;tJe.exports=function(e,t){var r=e._fullLayout,n=eJe.getFromId(e,t.xaxis),i=eJe.getFromId(e,t.yaxis),a=n.makeCalcdata(t,"x"),o=EJt(t,n,"x",a).vals,s=CJt(e,t,a,o,i,kJt);return s.length?(QKe.extendFlat(s[0].t,{num:r._numBoxes,dPos:QKe.distinctVals(o).minDiff/2,posLetter:"x",valLetter:"y"}),r._numBoxes++,s):[{t:{empty:!0}}]};function kJt(e,t,r,n){return{min:r,q1:Math.min(e,n),med:n,q3:Math.max(e,n),max:t}}});var nJe=ye((R2r,iJe)=>{"use strict";iJe.exports={moduleType:"trace",name:"candlestick",basePlotModule:vh(),categories:["cartesian","svg","showLegend","candlestick","boxLayout"],meta:{},attributes:q$(),layoutAttributes:_4(),supplyLayoutDefaults:jI().supplyLayoutDefaults,crossTraceCalc:XI().crossTraceCalc,supplyDefaults:$Ke(),calc:rJe(),plot:ZI().plot,layerName:"boxlayer",style:YI().style,hoverPoints:F$().hoverPoints,selectPoints:z$()}});var oJe=ye((D2r,aJe)=>{"use strict";aJe.exports=nJe()});var N$=ye((F2r,sJe)=>{"use strict";var n9=Dr(),LJt=ym(),i9=n9.deg2rad,B$=n9.rad2deg;sJe.exports=function(t,r,n){switch(LJt(t,n),t._id){case"x":case"radialaxis":PJt(t,r);break;case"angularaxis":DJt(t,r);break}};function PJt(e,t){var r=t._subplot;e.setGeometry=function(){var n=e._rl[0],i=e._rl[1],a=r.innerRadius,o=(r.radius-a)/(i-n),s=a/o,l=n>i?function(u){return u<=0}:function(u){return u>=0};e.c2g=function(u){var c=e.c2l(u)-n;return(l(c)?c:0)+s},e.g2c=function(u){return e.l2c(u+n-s)},e.g2p=function(u){return u*o},e.c2p=function(u){return e.g2p(e.c2g(u))}}}function IJt(e,t){return t==="degrees"?i9(e):e}function RJt(e,t){return t==="degrees"?B$(e):e}function DJt(e,t){var r=e.type;if(r==="linear"){var n=e.d2c,i=e.c2d;e.d2c=function(a,o){return IJt(n(a),o)},e.c2d=function(a,o){return i(RJt(a,o))}}e.makeCalcdata=function(a,o){var s=a[o],l=a._length,u,c,f=function(b){return e.d2c(b,a.thetaunit)};if(s)for(u=new Array(l),c=0;c{"use strict";lJe.exports={attr:"subplot",name:"polar",axisNames:["angularaxis","radialaxis"],axisName2dataArray:{angularaxis:"theta",radialaxis:"r"},layerNames:["draglayer","plotbg","backplot","angular-grid","radial-grid","frontplot","angular-line","radial-line","angular-axis","radial-axis"],radialDragBoxSize:50,angularDragBoxSize:30,cornerLen:25,cornerHalfWidth:2,MINDRAG:8,MINZOOM:20,OFFEDGE:20}});var s9=ye((O2r,dJe)=>{"use strict";var dw=Dr(),uJe=MM().tester,U$=dw.findIndexOfMin,fJe=dw.isAngleInsideSector,FJt=dw.angleDelta,cJe=dw.angleDist;function zJt(e,t,r,n,i){if(!fJe(t,n))return!1;var a,o;r[0]0?o:1/0},n=U$(t,r),i=dw.mod(n+1,t.length);return[t[n],t[i]]}function o9(e){return Math.abs(e)>1e-10?e:0}function V$(e,t,r){t=t||0,r=r||0;for(var n=e.length,i=new Array(n),a=0;a{"use strict";function vJe(e){return e<0?-1:e>0?1:0}function G5(e){var t=e[0],r=e[1];if(!isFinite(t)||!isFinite(r))return[1,0];var n=(t+1)*(t+1)+r*r;return[(t*t+r*r-1)/n,2*r/n]}function H5(e,t){var r=t[0],n=t[1];return[r*e.radius+e.cx,-n*e.radius+e.cy]}function pJe(e,t){return t*e.radius}function HJt(e,t,r,n){var i=H5(e,G5([r,t])),a=i[0],o=i[1],s=H5(e,G5([n,t])),l=s[0],u=s[1];if(t===0)return["M"+a+","+o,"L"+l+","+u].join(" ");var c=pJe(e,1/Math.abs(t));return["M"+a+","+o,"A"+c+","+c+" 0 0,"+(t<0?1:0)+" "+l+","+u].join(" ")}function jJt(e,t,r,n){var i=pJe(e,1/(t+1)),a=H5(e,G5([t,r])),o=a[0],s=a[1],l=H5(e,G5([t,n])),u=l[0],c=l[1];if(vJe(r)!==vJe(n)){var f=H5(e,G5([t,0])),h=f[0],d=f[1];return["M"+o+","+s,"A"+i+","+i+" 0 0,"+(0{"use strict";var vw=Oa(),WJt=cd(),gw=qa(),Xc=Dr(),ry=Xc.strRotate,xd=Xc.strTranslate,H$=Ca(),uk=So(),XJt=Mc(),hp=ho(),ZJt=ym(),YJt=N$(),KJt=wg().doAutoRange,y1=ON(),c9=gv(),mJe=vf(),JJt=Mb(),$Jt=zf().prepSelect,QJt=zf().selectOnClick,j$=zf().clearOutline,yJe=Tg(),_Je=hM(),xJe=xM().redrawReglTraces,e$t=Kh().MID_SHIFT,Lx=a9(),_1=s9(),f9=G$(),l9=f9.smith,t$t=f9.reactanceArc,r$t=f9.resistanceArc,u9=f9.smithTransform,i$t=Xc._,bJe=Xc.mod,Px=Xc.deg2rad,pw=Xc.rad2deg;function wJe(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 n=e._fullLayout,i="clip"+n._uid+t;this.clipIds.forTraces=i+"-for-traces",this.clipPaths.forTraces=n._clips.append("clipPath").attr("id",this.clipIds.forTraces),this.clipPaths.forTraces.append("path"),this.framework=n["_"+(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 Nd=wJe.prototype;SJe.exports=function(t,r,n){return new wJe(t,r,n)};Nd.plot=function(e,t){for(var r=this,n=t[r.id],i=!1,a=0;ab?(p=u,C=u*b,L=(c-C)/i.h/2,E=[s[0],s[1]],A=[l[0]+L,l[1]-L]):(p=c/b,C=c,L=(u-p)/i.w/2,E=[s[0]+L,s[1]-L],A=[l[0],l[1]]),r.xLength2=p,r.yLength2=C,r.xDomain2=E,r.yDomain2=A;var _=r.xOffset2=i.l+i.w*E[0],k=r.yOffset2=i.t+i.h*(1-A[1]),M=r.radius=p/d,g=r.innerRadius=r.getHole(t)*M,P=r.cx=_-M*h[0],T=r.cy=k+M*h[3],z=r.cxx=P-_,O=r.cyy=T-k,V=a.side,G;V==="counterclockwise"?(G=V,V="top"):V==="clockwise"&&(G=V,V="bottom"),r.radialAxis=r.mockAxis(e,t,a,{_id:"x",side:V,_trueSide:G,domain:[g/i.w,M/i.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:E}),r.yaxis=r.mockCartesianAxis(e,t,{_id:"y",domain:A});var Z=r.pathSubplot();r.clipPaths.forTraces.select("path").attr("d",Z).attr("transform",xd(z,O)),n.frontplot.attr("transform",xd(_,k)).call(uk.setClipUrl,r._hasClipOnAxisFalse?null:r.clipIds.forTraces,r.gd),n.bg.attr("d",Z).attr("transform",xd(P,T)).call(H$.fill,t.bgcolor)};Nd.mockAxis=function(e,t,r,n){var i=Xc.extendFlat({},r,n);return YJt(i,t,e),i};Nd.mockCartesianAxis=function(e,t,r){var n=this,i=n.isSmith,a=r._id,o=Xc.extendFlat({type:"linear"},r);ZJt(o,e);var s={x:[0,2],y:[1,3]};return o.setRange=function(){var l=n.sectorBBox,u=s[a],c=n.radialAxis._rl,f=(c[1]-c[0])/(1-n.getHole(t));o.range=[l[u[0]]*f,l[u[1]]*f]},o.isPtWithinRange=a==="x"&&!i?function(l){return n.isPtInside(l)}:function(){return!0},o.setRange(),o.setScale(),o};Nd.doAutoRange=function(e,t){var r=this,n=r.gd,i=r.radialAxis,a=r.getRadial(t);KJt(n,i);var o=i.range;if(a.range=o.slice(),a._input.range=o.slice(),i._rl=[i.r2l(o[0],null,"gregorian"),i.r2l(o[1],null,"gregorian")],i.minallowed!==void 0){var s=i.r2l(i.minallowed);i._rl[0]>i._rl[1]?i._rl[1]=Math.max(i._rl[1],s):i._rl[0]=Math.max(i._rl[0],s)}if(i.maxallowed!==void 0){var l=i.r2l(i.maxallowed);i._rl[0]90&&c<=270&&(f.tickangle=180);var v=d?function(M){var g=u9(r,l9([M.x,0]));return xd(g[0]-s,g[1]-l)}:function(M){return xd(f.l2p(M.x)+o,0)},x=d?function(M){return r$t(r,M.x,-1/0,1/0)}:function(M){return r.pathArc(f.r2p(M.x)+o)},b=TJe(u);if(r.radialTickLayout!==b&&(i["radial-axis"].selectAll(".xtick").remove(),r.radialTickLayout=b),h){f.setScale();var p=0,C=d?(f.tickvals||[]).filter(function(M){return M>=0}).map(function(M){return hp.tickText(f,M,!0,!1)}):hp.calcTicks(f),E=d?C:hp.clipEnds(f,C),A=hp.getTickSigns(f)[2];d&&((f.ticks==="top"&&f.side==="bottom"||f.ticks==="bottom"&&f.side==="top")&&(A=-A),f.ticks==="top"&&f.side==="top"&&(p=-f.ticklen),f.ticks==="bottom"&&f.side==="bottom"&&(p=f.ticklen)),hp.drawTicks(n,f,{vals:C,layer:i["radial-axis"],path:hp.makeTickPath(f,0,A),transFn:v,crisp:!1}),hp.drawGrid(n,f,{vals:E,layer:i["radial-grid"],path:x,transFn:Xc.noop,crisp:!1}),hp.drawLabels(n,f,{vals:C,layer:i["radial-axis"],transFn:v,labelFns:hp.makeLabelFns(f,p)})}var L=r.radialAxisAngle=r.vangles?pw(AJe(Px(u.angle),r.vangles)):u.angle,_=xd(s,l),k=_+ry(-L);ck(i["radial-axis"],h&&(u.showticklabels||u.ticks),{transform:k}),ck(i["radial-grid"],h&&u.showgrid,{transform:d?"":_}),ck(i["radial-line"].select("line"),h&&u.showline,{x1:d?-a:o,y1:0,x2:a,y2:0,transform:k}).attr("stroke-width",u.linewidth).call(H$.stroke,u.linecolor)};Nd.updateRadialAxisTitle=function(e,t,r){if(!this.isSmith){var n=this,i=n.gd,a=n.radius,o=n.cx,s=n.cy,l=n.getRadial(t),u=n.id+"title",c=0;if(l.title){var f=uk.bBox(n.layers["radial-axis"].node()).height,h=l.title.font.size,d=l.side;c=d==="top"?h:d==="counterclockwise"?-(f+h*.4):f+h*.8}var v=r!==void 0?r:n.radialAxisAngle,x=Px(v),b=Math.cos(x),p=Math.sin(x),C=o+a/2*b+c*p,E=s-a/2*p+c*b;n.layers["radial-axis-title"]=JJt.draw(i,u,{propContainer:l,propName:n.id+".radialaxis.title",placeholder:i$t(i,"Click to enter radial axis title"),attributes:{x:C,y:E,"text-anchor":"middle"},transform:{rotate:-v}})}};Nd.updateAngularAxis=function(e,t){var r=this,n=r.gd,i=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(g){var P=u9(r,l9([0,g.x]));return Math.atan2(P[0]-s,P[1]-l)-Math.PI/2}:function(g){return c.t2g(g.x)};c.type==="linear"&&c.thetaunit==="radians"&&(c.tick0=pw(c.tick0),c.dtick=pw(c.dtick));var d=function(g){return xd(s+a*Math.cos(g),l-a*Math.sin(g))},v=f?function(g){var P=u9(r,l9([0,g.x]));return xd(P[0],P[1])}:function(g){return d(h(g))},x=f?function(g){var P=u9(r,l9([0,g.x])),T=Math.atan2(P[0]-s,P[1]-l)-Math.PI/2;return xd(P[0],P[1])+ry(-pw(T))}:function(g){var P=h(g);return d(P)+ry(-pw(P))},b=f?function(g){return t$t(r,g.x,0,1/0)}:function(g){var P=h(g),T=Math.cos(P),z=Math.sin(P);return"M"+[s+o*T,l-o*z]+"L"+[s+a*T,l-a*z]},p=hp.makeLabelFns(c,0),C=p.labelStandoff,E={};E.xFn=function(g){var P=h(g);return Math.cos(P)*C},E.yFn=function(g){var P=h(g),T=Math.sin(P)>0?.2:1;return-Math.sin(P)*(C+g.fontSize*T)+Math.abs(Math.cos(P))*(g.fontSize*e$t)},E.anchorFn=function(g){var P=h(g),T=Math.cos(P);return Math.abs(T)<.1?"middle":T>0?"start":"end"},E.heightFn=function(g,P,T){var z=h(g);return-.5*(1+Math.sin(z))*T};var A=TJe(u);r.angularTickLayout!==A&&(i["angular-axis"].selectAll("."+c._id+"tick").remove(),r.angularTickLayout=A);var L=f?[1/0].concat(c.tickvals||[]).map(function(g){return hp.tickText(c,g,!0,!1)}):hp.calcTicks(c);f&&(L[0].text="\u221E",L[0].fontSize*=1.75);var _;if(t.gridshape==="linear"?(_=L.map(h),Xc.angleDelta(_[0],_[1])<0&&(_=_.slice().reverse())):_=null,r.vangles=_,c.type==="category"&&(L=L.filter(function(g){return Xc.isAngleInsideSector(h(g),r.sectorInRad)})),c.visible){var k=c.ticks==="inside"?-1:1,M=(c.linewidth||1)/2;hp.drawTicks(n,c,{vals:L,layer:i["angular-axis"],path:"M"+k*M+",0h"+k*c.ticklen,transFn:x,crisp:!1}),hp.drawGrid(n,c,{vals:L,layer:i["angular-grid"],path:b,transFn:Xc.noop,crisp:!1}),hp.drawLabels(n,c,{vals:L,layer:i["angular-axis"],repositionOnUpdate:!0,transFn:v,labelFns:E})}ck(i["angular-line"].select("path"),u.showline,{d:r.pathSubplot(),transform:xd(s,l)}).attr("stroke-width",u.linewidth).call(H$.stroke,u.linecolor)};Nd.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)}};Nd.updateHoverAndMainDrag=function(e){var t=this,r=t.isSmith,n=t.gd,i=t.layers,a=e._zoomlayer,o=Lx.MINZOOM,s=Lx.OFFEDGE,l=t.radius,u=t.innerRadius,c=t.cx,f=t.cy,h=t.cxx,d=t.cyy,v=t.sectorInRad,x=t.vangles,b=t.radialAxis,p=_1.clampTiny,C=_1.findXYatLength,E=_1.findEnclosingVertexAngles,A=Lx.cornerHalfWidth,L=Lx.cornerLen/2,_,k,M=y1.makeDragger(i,"path","maindrag",e.dragmode===!1?"none":"crosshair");vw.select(M).attr("d",t.pathSubplot()).attr("transform",xd(c,f)),M.onmousemove=function(ce){mJe.hover(n,ce,t.id),n._fullLayout._lasthover=M,n._fullLayout._hoversubplot=t.id},M.onmouseout=function(ce){n._dragging||c9.unhover(n,ce)};var g={element:M,gd:n,subplot:t.id,plotinfo:{id:t.id,xaxis:t.xaxis,yaxis:t.yaxis},xaxes:[t.xaxis],yaxes:[t.yaxis]},P,T,z,O,V,G,Z,H,N;function j(ce,Ze){return Math.sqrt(ce*ce+Ze*Ze)}function re(ce,Ze){return j(ce-h,Ze-d)}function oe(ce,Ze){return Math.atan2(d-Ze,ce-h)}function _e(ce,Ze){return[ce*Math.cos(Ze),ce*Math.sin(-Ze)]}function Me(ce,Ze){if(ce===0)return t.pathSector(2*A);var ct=L/ce,pt=Ze-ct,Wt=Ze+ct,st=Math.max(0,Math.min(ce,l)),lt=st-A,Gt=st+A;return"M"+_e(lt,pt)+"A"+[lt,lt]+" 0,0,0 "+_e(lt,Wt)+"L"+_e(Gt,Wt)+"A"+[Gt,Gt]+" 0,0,1 "+_e(Gt,pt)+"Z"}function ke(ce,Ze,ct){if(ce===0)return t.pathSector(2*A);var pt=_e(ce,Ze),Wt=_e(ce,ct),st=p((pt[0]+Wt[0])/2),lt=p((pt[1]+Wt[1])/2),Gt,Nt;if(st&<){var $t=lt/st,sr=-1/$t,wr=C(A,$t,st,lt);Gt=C(L,sr,wr[0][0],wr[0][1]),Nt=C(L,sr,wr[1][0],wr[1][1])}else{var ur,Qe;lt?(ur=L,Qe=A):(ur=A,Qe=L),Gt=[[st-ur,lt-Qe],[st+ur,lt-Qe]],Nt=[[st-ur,lt+Qe],[st+ur,lt+Qe]]}return"M"+Gt.join("L")+"L"+Nt.reverse().join("L")+"Z"}function me(){z=null,O=null,V=t.pathSubplot(),G=!1;var ce=n._fullLayout[t.id];Z=WJt(ce.bgcolor).getLuminance(),H=y1.makeZoombox(a,Z,c,f,V),H.attr("fill-rule","evenodd"),N=y1.makeCorners(a,c,f),j$(n)}function ie(ce,Ze){return Ze=Math.max(Math.min(Ze,l),u),ceo?(ce-1&&ce===1&&QJt(Ze,n,[t.xaxis],[t.yaxis],t.id,g),ct.indexOf("event")>-1&&mJe.click(n,Ze,t.id)}g.prepFn=function(ce,Ze,ct){var pt=n._fullLayout.dragmode,Wt=M.getBoundingClientRect();n._fullLayout._calcInverseTransform(n);var st=n._fullLayout._invTransform;_=n._fullLayout._invScaleX,k=n._fullLayout._invScaleY;var lt=Xc.apply3DTransform(st)(Ze-Wt.left,ct-Wt.top);if(P=lt[0],T=lt[1],x){var Gt=_1.findPolygonOffset(l,v[0],v[1],x);P+=h+Gt[0],T+=d+Gt[1]}switch(pt){case"zoom":g.clickFn=Fe,r||(x?g.moveFn=De:g.moveFn=Le,g.doneFn=Pe,me(ce,Ze,ct));break;case"select":case"lasso":$Jt(ce,Ze,ct,g,pt);break}},c9.init(g)};Nd.updateRadialDrag=function(e,t,r){var n=this,i=n.gd,a=n.layers,o=n.radius,s=n.innerRadius,l=n.cx,u=n.cy,c=n.radialAxis,f=Lx.radialDragBoxSize,h=f/2;if(!c.visible)return;var d=Px(n.radialAxisAngle),v=c._rl,x=v[0],b=v[1],p=v[r],C=.75*(v[1]-v[0])/(1-n.getHole(t))/o,E,A,L;r?(E=l+(o+h)*Math.cos(d),A=u-(o+h)*Math.sin(d),L="radialdrag"):(E=l+(s-h)*Math.cos(d),A=u-(s-h)*Math.sin(d),L="radialdrag-inner");var _=y1.makeRectDragger(a,L,"crosshair",-h,-h,f,f),k={element:_,gd:i};e.dragmode===!1&&(k.dragmode=!1),ck(vw.select(_),c.visible&&s0!=(r?P>x:P=90||i>90&&a>=450?d=1:s<=0&&u<=0?d=0:d=Math.max(s,u),i<=180&&a>=180||i>180&&a>=540?c=-1:o>=0&&l>=0?c=0:c=Math.min(o,l),i<=270&&a>=270||i>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,d]}function AJe(e,t){var r=function(i){return Xc.angleDist(e,i)},n=Xc.findIndexOfMin(t,r);return t[n]}function ck(e,t,r){return t?(e.attr("display",null),e.attr(r)):e&&e.attr("display","none"),e}});var X$=ye((N2r,PJe)=>{"use strict";var a$t=Eh(),ss=Rd(),o$t=kc().attributes,f0=Dr().extendFlat,MJe=mc().overrideAll,EJe=MJe({color:ss.color,showline:f0({},ss.showline,{dflt:!0}),linecolor:ss.linecolor,linewidth:ss.linewidth,showgrid:f0({},ss.showgrid,{dflt:!0}),gridcolor:ss.gridcolor,gridwidth:ss.gridwidth,griddash:ss.griddash},"plot","from-root"),CJe=MJe({tickmode:ss.minor.tickmode,nticks:ss.nticks,tick0:ss.tick0,dtick:ss.dtick,tickvals:ss.tickvals,ticktext:ss.ticktext,ticks:ss.ticks,ticklen:ss.ticklen,tickwidth:ss.tickwidth,tickcolor:ss.tickcolor,ticklabelstep:ss.ticklabelstep,showticklabels:ss.showticklabels,labelalias:ss.labelalias,minorloglabels:ss.minorloglabels,showtickprefix:ss.showtickprefix,tickprefix:ss.tickprefix,showticksuffix:ss.showticksuffix,ticksuffix:ss.ticksuffix,showexponent:ss.showexponent,exponentformat:ss.exponentformat,minexponent:ss.minexponent,separatethousands:ss.separatethousands,tickfont:ss.tickfont,tickangle:ss.tickangle,tickformat:ss.tickformat,tickformatstops:ss.tickformatstops,layer:ss.layer},"plot","from-root"),kJe={visible:f0({},ss.visible,{dflt:!0}),type:f0({},ss.type,{values:["-","linear","log","date","category"]}),autotypenumbers:ss.autotypenumbers,autorangeoptions:{minallowed:ss.autorangeoptions.minallowed,maxallowed:ss.autorangeoptions.maxallowed,clipmin:ss.autorangeoptions.clipmin,clipmax:ss.autorangeoptions.clipmax,include:ss.autorangeoptions.include,editType:"plot"},autorange:f0({},ss.autorange,{editType:"plot"}),rangemode:{valType:"enumerated",values:["tozero","nonnegative","normal"],dflt:"tozero",editType:"calc"},minallowed:f0({},ss.minallowed,{editType:"plot"}),maxallowed:f0({},ss.maxallowed,{editType:"plot"}),range:f0({},ss.range,{items:[{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}}],editType:"plot"}),categoryorder:ss.categoryorder,categoryarray:ss.categoryarray,angle:{valType:"angle",editType:"plot"},autotickangles:ss.autotickangles,side:{valType:"enumerated",values:["clockwise","counterclockwise"],dflt:"clockwise",editType:"plot"},title:{text:f0({},ss.title.text,{editType:"plot",dflt:""}),font:f0({},ss.title.font,{editType:"plot"}),editType:"plot"},hoverformat:ss.hoverformat,uirevision:{valType:"any",editType:"none"},editType:"calc"};f0(kJe,EJe,CJe);var LJe={visible:f0({},ss.visible,{dflt:!0}),type:{valType:"enumerated",values:["-","linear","category"],dflt:"-",editType:"calc",_noTemplating:!0},autotypenumbers:ss.autotypenumbers,categoryorder:ss.categoryorder,categoryarray:ss.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:ss.hoverformat,uirevision:{valType:"any",editType:"none"},editType:"calc"};f0(LJe,EJe,CJe);PJe.exports={domain:o$t({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:a$t.background},radialaxis:kJe,angularaxis:LJe,gridshape:{valType:"enumerated",values:["circular","linear"],dflt:"circular",editType:"plot"},uirevision:{valType:"any",editType:"none"},editType:"calc"}});var FJe=ye((U2r,DJe)=>{"use strict";var h9=Dr(),s$t=Ca(),l$t=pl(),u$t=k_(),c$t=Id().getSubplotData,f$t=xb(),h$t=T3(),d$t=t_(),v$t=r_(),p$t=iI(),g$t=QM(),m$t=pB(),y$t=L3(),RJe=X$(),_$t=N$(),d9=a9(),IJe=d9.axisNames;function x$t(e,t,r,n){var i=r("bgcolor");n.bgColor=s$t.combine(i,n.paper_bgcolor);var a=r("sector");r("hole");var o=c$t(n.fullData,d9.name,n.id),s=n.layoutOut,l;function u(H,N){return r(l+"."+H,N)}for(var c=0;c{"use strict";var w$t=Id().getSubplotCalcData,T$t=Dr().counterRegex,A$t=W$(),OJe=a9(),qJe=OJe.attr,mw=OJe.name,zJe=T$t(mw),BJe={};BJe[qJe]={valType:"subplotid",dflt:mw,editType:"calc"};function S$t(e){for(var t=e._fullLayout,r=e.calcdata,n=t._subplots[mw],i=0;i{"use strict";var E$t=Qo().hovertemplateAttrs,C$t=Qo().texttemplateAttrs,p9=Ao().extendFlat,k$t=Eg(),h0=pf(),L$t=Vl(),j5=h0.line;UJe.exports={mode:h0.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:h0.text,texttemplate:C$t({editType:"plot"},{keys:["r","theta","text"]}),hovertext:h0.hovertext,line:{color:j5.color,width:j5.width,dash:j5.dash,backoff:j5.backoff,shape:p9({},j5.shape,{values:["linear","spline"]}),smoothing:j5.smoothing,editType:"calc"},connectgaps:h0.connectgaps,marker:h0.marker,cliponaxis:p9({},h0.cliponaxis,{dflt:!1}),textposition:h0.textposition,textfont:h0.textfont,fill:p9({},h0.fill,{values:["none","toself","tonext"],dflt:"none"}),fillcolor:k$t(),hoverinfo:p9({},L$t.hoverinfo,{flags:["r","theta","text","name"]}),hoveron:h0.hoveron,hovertemplate:E$t(),selected:h0.selected,unselected:h0.unselected}});var m9=ye((H2r,HJe)=>{"use strict";var g9=Dr(),W5=Ru(),P$t=$p(),I$t=R0(),VJe=J3(),R$t=D0(),D$t=Ig(),F$t=Sm().PTS_LINESONLY,z$t=fk();function O$t(e,t,r,n){function i(s,l){return g9.coerce(e,t,z$t,s,l)}var a=GJe(e,t,n,i);if(!a){t.visible=!1;return}i("thetaunit"),i("mode",a{"use strict";var q$t=Dr(),jJe=ho();WJe.exports=function(t,r,n){var i={},a=n[r.subplot]._subplot,o,s;a?(o=a.radialAxis,s=a.angularAxis):(a=n[r.subplot],o=a.radialaxis,s=a.angularaxis);var l=o.c2l(t.r);i.rLabel=jJe.tickText(o,l,!0).text;var u=s.thetaunit==="degrees"?q$t.rad2deg(t.theta):t.theta;return i.thetaLabel=jJe.tickText(s,u,!0).text,i}});var YJe=ye((W2r,ZJe)=>{"use strict";var XJe=Eo(),B$t=hs().BADNUM,N$t=ho(),U$t=F0(),V$t=Cm(),G$t=z0(),H$t=O0().calcMarkerSize;ZJe.exports=function(t,r){for(var n=t._fullLayout,i=r.subplot,a=n[i].radialaxis,o=n[i].angularaxis,s=a.makeCalcdata(r,"r"),l=o.makeCalcdata(r,"theta"),u=r._length,c=new Array(u),f=0;f{"use strict";var j$t=iT(),KJe=hs().BADNUM;JJe.exports=function(t,r,n){for(var i=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 W$t=sT();function X$t(e,t,r,n){var i=W$t(e,t,r,n);if(!(!i||i[0].index===!1)){var a=i[0];if(a.index===void 0)return i;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,QJe(s,l,o,a),a.hovertemplate=l.hovertemplate,i}}function QJe(e,t,r,n){var i=r.radialAxis,a=r.angularAxis;i._hovertitle="r",a._hovertitle="\u03B8";var o={};o[t.subplot]={_subplot:r};var s=t._module.formatLabels(e,t,o);n.rLabel=s.rLabel,n.thetaLabel=s.thetaLabel;var l=e.hi||t.hoverinfo,u=[];function c(h,d){u.push(h._hovertitle+": "+d)}if(!t.hovertemplate){var f=l.split("+");f.indexOf("all")!==-1&&(f=["r","theta","text"]),f.indexOf("r")!==-1&&c(i,n.rLabel),f.indexOf("theta")!==-1&&c(a,n.thetaLabel),f.indexOf("text")!==-1&&n.text&&(u.push(n.text),delete n.text),n.extraText=u.join("
")}}e$e.exports={hoverPoints:X$t,makeHoverPointText:QJe}});var r$e=ye((Y2r,t$e)=>{"use strict";t$e.exports={moduleType:"trace",name:"scatterpolar",basePlotModule:v9(),categories:["polar","symbols","showLegend","scatter-like"],attributes:fk(),supplyDefaults:m9().supplyDefaults,colorbar:$d(),formatLabels:y9(),calc:YJe(),plot:$Je(),style:ap().style,styleOnSelect:ap().styleOnSelect,hoverPoints:_9().hoverPoints,selectPoints:lT(),meta:{}}});var n$e=ye((K2r,i$e)=>{"use strict";i$e.exports=r$e()});var Z$=ye((J2r,a$e)=>{"use strict";var Up=fk(),x1=sC(),Z$t=Qo().texttemplateAttrs;a$e.exports={mode:Up.mode,r:Up.r,theta:Up.theta,r0:Up.r0,dr:Up.dr,theta0:Up.theta0,dtheta:Up.dtheta,thetaunit:Up.thetaunit,text:Up.text,texttemplate:Z$t({editType:"plot"},{keys:["r","theta","text"]}),hovertext:Up.hovertext,hovertemplate:Up.hovertemplate,line:{color:x1.line.color,width:x1.line.width,dash:x1.line.dash,editType:"calc"},connectgaps:x1.connectgaps,marker:x1.marker,fill:x1.fill,fillcolor:x1.fillcolor,textposition:x1.textposition,textfont:x1.textfont,hoverinfo:Up.hoverinfo,selected:Up.selected,unselected:Up.unselected}});var l$e=ye(($2r,s$e)=>{"use strict";var o$e=Dr(),Y$=Ru(),Y$t=m9().handleRThetaDefaults,K$t=$p(),J$t=R0(),$$t=D0(),Q$t=Ig(),eQt=Sm().PTS_LINESONLY,tQt=Z$();s$e.exports=function(t,r,n,i){function a(s,l){return o$e.coerce(t,r,tQt,s,l)}var o=Y$t(t,r,i,a);if(!o){r.visible=!1;return}a("thetaunit"),a("mode",o{"use strict";var rQt=y9();u$e.exports=function(t,r,n){var i=t.i;return"r"in t||(t.r=r._r[i]),"theta"in t||(t.theta=r._theta[i]),rQt(t,r,n)}});var h$e=ye((ewr,f$e)=>{"use strict";var iQt=F0(),nQt=O0().calcMarkerSize,aQt=Y2(),oQt=ho(),sQt=sx().TOO_MANY_POINTS;f$e.exports=function(t,r){var n=t._fullLayout,i=r.subplot,a=n[i].radialaxis,o=n[i].angularaxis,s=r._r=a.makeCalcdata(r,"r"),l=r._theta=o.makeCalcdata(r,"theta"),u=r._length,c={};u{"use strict";var lQt=OF(),uQt=_9().makeHoverPointText;function cQt(e,t,r,n){var i=e.cd,a=i[0].t,o=a.r,s=a.theta,l=lQt.hoverPoints(e,t,r,n);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,uQt(f,h,c,u),l}}d$e.exports={hoverPoints:cQt}});var g$e=ye((rwr,p$e)=>{"use strict";p$e.exports={moduleType:"trace",name:"scatterpolargl",basePlotModule:v9(),categories:["gl","regl","polar","symbols","showLegend","scatter-like"],attributes:Z$(),supplyDefaults:l$e(),colorbar:$d(),formatLabels:c$e(),calc:h$e(),hoverPoints:v$e().hoverPoints,selectPoints:sY(),meta:{}}});var m$e=ye((iwr,K$)=>{"use strict";var fQt=NF(),hQt=Eo(),dQt=fK(),vQt=nY(),x9=Y2(),b9=Dr(),pQt=sx().TOO_MANY_POINTS,gQt={};K$.exports=function(t,r,n){if(n.length){var i=r.radialAxis,a=r.angularAxis,o=vQt(t,r);return n.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,d=c.theta,v=c.opts,x,b=h.slice(),p=d.slice();for(x=0;x=pQt&&(v.marker.cluster=c.tree),v.marker&&(v.markerSel.positions=v.markerUnsel.positions=v.marker.positions=C),v.line&&C.length>1&&b9.extendFlat(v.line,x9.linePositions(t,u,C)),v.text&&(b9.extendFlat(v.text,{positions:C},x9.textPosition(t,u,v.text,v.marker)),b9.extendFlat(v.textSel,{positions:C},x9.textPosition(t,u,v.text,v.markerSel)),b9.extendFlat(v.textUnsel,{positions:C},x9.textPosition(t,u,v.text,v.markerUnsel))),v.fill&&!o.fill2d&&(o.fill2d=!0),v.marker&&!o.scatter2d&&(o.scatter2d=!0),v.line&&!o.line2d&&(o.line2d=!0),v.text&&!o.glText&&(o.glText=!0),o.lineOptions.push(v.line),o.fillOptions.push(v.fill),o.markerOptions.push(v.marker),o.markerSelectedOptions.push(v.markerSel),o.markerUnselectedOptions.push(v.markerUnsel),o.textOptions.push(v.text),o.textSelectedOptions.push(v.textSel),o.textUnselectedOptions.push(v.textUnsel),o.selectBatch.push([]),o.unselectBatch.push([]),c.x=E,c.y=A,c.rawx=E,c.rawy=A,c.r=h,c.theta=d,c.positions=C,c._scene=o,c.index=o.count,o.count++}}),dQt(t,r,n)}};K$.exports.reglPrecompiled=gQt});var x$e=ye((nwr,_$e)=>{"use strict";var y$e=g$e();y$e.plot=m$e();_$e.exports=y$e});var w$e=ye((awr,b$e)=>{"use strict";b$e.exports=x$e()});var J$=ye((owr,T$e)=>{"use strict";var mQt=Qo().hovertemplateAttrs,X5=Ao().extendFlat,Ix=fk(),Rx=Lm();T$e.exports={r:Ix.r,theta:Ix.theta,r0:Ix.r0,dr:Ix.dr,theta0:Ix.theta0,dtheta:Ix.dtheta,thetaunit:Ix.thetaunit,base:X5({},Rx.base,{}),offset:X5({},Rx.offset,{}),width:X5({},Rx.width,{}),text:X5({},Rx.text,{}),hovertext:X5({},Rx.hovertext,{}),marker:yQt(),hoverinfo:Ix.hoverinfo,hovertemplate:mQt(),selected:Rx.selected,unselected:Rx.unselected};function yQt(){var e=X5({},Rx.marker);return delete e.cornerradius,e}});var $$=ye((swr,A$e)=>{"use strict";A$e.exports={barmode:{valType:"enumerated",values:["stack","overlay"],dflt:"stack",editType:"calc"},bargap:{valType:"number",dflt:.1,min:0,max:1,editType:"calc"}}});var E$e=ye((lwr,M$e)=>{"use strict";var S$e=Dr(),_Qt=m9().handleRThetaDefaults,xQt=BI(),bQt=J$();M$e.exports=function(t,r,n,i){function a(s,l){return S$e.coerce(t,r,bQt,s,l)}var o=_Qt(t,r,i,a);if(!o){r.visible=!1;return}a("thetaunit"),a("base"),a("offset"),a("width"),a("text"),a("hovertext"),a("hovertemplate"),xQt(t,r,a,n,i),S$e.coerceSelectionMarkerOpacity(r,a)}});var k$e=ye((uwr,C$e)=>{"use strict";var wQt=Dr(),TQt=$$();C$e.exports=function(e,t,r){var n={},i;function a(l,u){return wQt.coerce(e[i]||{},t[i],TQt,l,u)}for(var o=0;o{"use strict";var L$e=Dv().hasColorscale,P$e=Fv(),AQt=Dr().isArrayOrTypedArray,SQt=v4(),MQt=Hb().setGroupPositions,EQt=z0(),CQt=qa().traceIs,kQt=Dr().extendFlat;function LQt(e,t){for(var r=e._fullLayout,n=t.subplot,i=r[n].radialaxis,a=r[n].angularaxis,o=i.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 R$e=Oa(),w9=Eo(),Z5=Dr(),IQt=So(),eQ=s9();D$e.exports=function(t,r,n){var i=t._context.staticPlot,a=r.xaxis,o=r.yaxis,s=r.radialAxis,l=r.angularAxis,u=RQt(r),c=r.layers.frontplot.select("g.barlayer");Z5.makeTraceGroups(c,n,"trace bars").each(function(){var f=R$e.select(this),h=Z5.ensureSingle(f,"g","points"),d=h.selectAll("g.point").data(Z5.identity);d.enter().append("g").style("vector-effect",i?"none":"non-scaling-stroke").style("stroke-miterlimit",2).classed("point",!0),d.exit().remove(),d.each(function(v){var x=R$e.select(this),b=v.rp0=s.c2p(v.s0),p=v.rp1=s.c2p(v.s1),C=v.thetag0=l.c2g(v.p0),E=v.thetag1=l.c2g(v.p1),A;if(!w9(b)||!w9(p)||!w9(C)||!w9(E)||b===p||C===E)A="M0,0Z";else{var L=s.c2g(v.s1),_=(C+E)/2;v.ct=[a.c2p(L*Math.cos(_)),o.c2p(L*Math.sin(_))],A=u(b,p,C,E)}Z5.ensureSingle(x,"path").attr("d",A)}),IQt.setClipUrl(f,r._hasClipOnAxisFalse?r.clipIds.forTraces:null,t)})};function RQt(e){var t=e.cxx,r=e.cyy;return e.vangles?function(n,i,a,o){var s,l;Z5.angleDelta(a,o)>0?(s=a,l=o):(s=o,l=a);var u=eQ.findEnclosingVertexAngles(s,e.vangles)[0],c=eQ.findEnclosingVertexAngles(l,e.vangles)[1],f=[u,(s+l)/2,c];return eQ.pathPolygonAnnulus(n,i,s,l,f,t,r)}:function(n,i,a,o){return Z5.pathAnnulus(n,i,a,o,t,r)}}});var O$e=ye((hwr,z$e)=>{"use strict";var DQt=vf(),tQ=Dr(),FQt=TT().getTraceColor,zQt=tQ.fillText,OQt=_9().makeHoverPointText,qQt=s9().isPtInsidePolygon;z$e.exports=function(t,r,n){var i=t.cd,a=i[0].trace,o=t.subplot,s=o.radialAxis,l=o.angularAxis,u=o.vangles,c=u?qQt:tQ.isPtInsideSector,f=t.maxHoverDistance,h=l._period||2*Math.PI,d=Math.abs(s.g2p(Math.sqrt(r*r+n*n))),v=Math.atan2(n,r);s.range[0]>s.range[1]&&(v+=Math.PI);var x=function(E){return c(d,v,[E.rp0,E.rp1],[E.thetag0,E.thetag1],u)?f+Math.min(1,Math.abs(E.thetag1-E.thetag0)/h)-1+(E.rp1-d)/(E.rp1-E.rp0)-1:1/0};if(DQt.getClosest(i,x,t),t.index!==!1){var b=t.index,p=i[b];t.x0=t.x1=p.ct[0],t.y0=t.y1=p.ct[1];var C=tQ.extendFlat({},p,{r:p.s,theta:p.p});return zQt(p,a,t),OQt(C,a,o,t),t.hovertemplate=a.hovertemplate,t.color=FQt(a,p),t.xLabelVal=t.yLabelVal=void 0,p.s<0&&(t.idealAlign="left"),[t]}}});var B$e=ye((dwr,q$e)=>{"use strict";q$e.exports={moduleType:"trace",name:"barpolar",basePlotModule:v9(),categories:["polar","bar","showLegend"],attributes:J$(),layoutAttributes:$$(),supplyDefaults:E$e(),supplyLayoutDefaults:k$e(),calc:Q$().calc,crossTraceCalc:Q$().crossTraceCalc,plot:F$e(),colorbar:$d(),formatLabels:y9(),style:N0().style,styleOnSelect:N0().styleOnSelect,hoverPoints:O$e(),selectPoints:AT(),meta:{}}});var U$e=ye((vwr,N$e)=>{"use strict";N$e.exports=B$e()});var rQ=ye((pwr,V$e)=>{"use strict";V$e.exports={attr:"subplot",name:"smith",axisNames:["realaxis","imaginaryaxis"],axisName2dataArray:{imaginaryaxis:"imag",realaxis:"real"}}});var iQ=ye((gwr,W$e)=>{"use strict";var BQt=Eh(),Nf=Rd(),NQt=kc().attributes,Dx=Dr().extendFlat,G$e=mc().overrideAll,H$e=G$e({color:Nf.color,showline:Dx({},Nf.showline,{dflt:!0}),linecolor:Nf.linecolor,linewidth:Nf.linewidth,showgrid:Dx({},Nf.showgrid,{dflt:!0}),gridcolor:Nf.gridcolor,gridwidth:Nf.gridwidth,griddash:Nf.griddash},"plot","from-root"),j$e=G$e({ticklen:Nf.ticklen,tickwidth:Dx({},Nf.tickwidth,{dflt:2}),tickcolor:Nf.tickcolor,showticklabels:Nf.showticklabels,labelalias:Nf.labelalias,showtickprefix:Nf.showtickprefix,tickprefix:Nf.tickprefix,showticksuffix:Nf.showticksuffix,ticksuffix:Nf.ticksuffix,tickfont:Nf.tickfont,tickformat:Nf.tickformat,hoverformat:Nf.hoverformat,layer:Nf.layer},"plot","from-root"),UQt=Dx({visible:Dx({},Nf.visible,{dflt:!0}),tickvals:{dflt:[.2,.5,1,2,5],valType:"data_array",editType:"plot"},tickangle:Dx({},Nf.tickangle,{dflt:90}),ticks:{valType:"enumerated",values:["top","bottom",""],editType:"ticks"},side:{valType:"enumerated",values:["top","bottom"],dflt:"top",editType:"plot"},editType:"calc"},H$e,j$e),VQt=Dx({visible:Dx({},Nf.visible,{dflt:!0}),tickvals:{valType:"data_array",editType:"plot"},ticks:Nf.ticks,editType:"calc"},H$e,j$e);W$e.exports={domain:NQt({name:"smith",editType:"plot"}),bgcolor:{valType:"color",editType:"plot",dflt:BQt.background},realaxis:UQt,imaginaryaxis:VQt,editType:"calc"}});var Y$e=ye((mwr,Z$e)=>{"use strict";var Y5=Dr(),GQt=Ca(),HQt=pl(),jQt=k_(),WQt=Id().getSubplotData,XQt=r_(),ZQt=t_(),YQt=QM(),KQt=ym(),K5=iQ(),nQ=rQ(),X$e=nQ.axisNames,JQt=QQt(function(e){return Y5.isTypedArray(e)&&(e=Array.from(e)),e.slice().reverse().map(function(t){return-t}).concat([0]).concat(e)},String);function $Qt(e,t,r,n){var i=r("bgcolor");n.bgColor=GQt.combine(i,n.paper_bgcolor);var a=WQt(n.fullData,nQ.name,n.id),o=n.layoutOut,s;function l(L,_){return r(s+"."+L,_)}for(var u=0;u{"use strict";var eer=Id().getSubplotCalcData,ter=Dr().counterRegex,rer=W$(),J$e=rQ(),$$e=J$e.attr,yw=J$e.name,K$e=ter(yw),Q$e={};Q$e[$$e]={valType:"subplotid",dflt:yw,editType:"calc"};function ier(e){for(var t=e._fullLayout,r=e.calcdata,n=t._subplots[yw],i=0;i{"use strict";var aer=Qo().hovertemplateAttrs,oer=Qo().texttemplateAttrs,T9=Ao().extendFlat,ser=Eg(),d0=pf(),ler=Vl(),J5=d0.line;rQe.exports={mode:d0.mode,real:{valType:"data_array",editType:"calc+clearAxisTypes"},imag:{valType:"data_array",editType:"calc+clearAxisTypes"},text:d0.text,texttemplate:oer({editType:"plot"},{keys:["real","imag","text"]}),hovertext:d0.hovertext,line:{color:J5.color,width:J5.width,dash:J5.dash,backoff:J5.backoff,shape:T9({},J5.shape,{values:["linear","spline"]}),smoothing:J5.smoothing,editType:"calc"},connectgaps:d0.connectgaps,marker:d0.marker,cliponaxis:T9({},d0.cliponaxis,{dflt:!1}),textposition:d0.textposition,textfont:d0.textfont,fill:T9({},d0.fill,{values:["none","toself","tonext"],dflt:"none"}),fillcolor:ser(),hoverinfo:T9({},ler.hoverinfo,{flags:["real","imag","text","name"]}),hoveron:d0.hoveron,hovertemplate:aer(),selected:d0.selected,unselected:d0.unselected}});var aQe=ye((xwr,nQe)=>{"use strict";var A9=Dr(),$5=Ru(),uer=$p(),cer=R0(),iQe=J3(),fer=D0(),her=Ig(),der=Sm().PTS_LINESONLY,ver=aQ();nQe.exports=function(t,r,n,i){function a(l,u){return A9.coerce(t,r,ver,l,u)}var o=per(t,r,i,a);if(!o){r.visible=!1;return}a("mode",o{"use strict";var oQe=ho();sQe.exports=function(t,r,n){var i={},a=n[r.subplot]._subplot;return i.realLabel=oQe.tickText(a.radialAxis,t.real,!0).text,i.imagLabel=oQe.tickText(a.angularAxis,t.imag,!0).text,i}});var fQe=ye((wwr,cQe)=>{"use strict";var uQe=Eo(),ger=hs().BADNUM,mer=F0(),yer=Cm(),_er=z0(),xer=O0().calcMarkerSize;cQe.exports=function(t,r){for(var n=t._fullLayout,i=r.subplot,a=n[i].realaxis,o=n[i].imaginaryaxis,s=a.makeCalcdata(r,"real"),l=o.makeCalcdata(r,"imag"),u=r._length,c=new Array(u),f=0;f{"use strict";var ber=iT(),hQe=hs().BADNUM,wer=G$(),Ter=wer.smith;dQe.exports=function(t,r,n){for(var i=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 Aer=sT();function Ser(e,t,r,n){var i=Aer(e,t,r,n);if(!(!i||i[0].index===!1)){var a=i[0];if(a.index===void 0)return i;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,pQe(s,l,o,a),a.hovertemplate=l.hovertemplate,i}}function pQe(e,t,r,n){var i=r.radialAxis,a=r.angularAxis;i._hovertitle="real",a._hovertitle="imag";var o={};o[t.subplot]={_subplot:r};var s=t._module.formatLabels(e,t,o);n.realLabel=s.realLabel,n.imagLabel=s.imagLabel;var l=e.hi||t.hoverinfo,u=[];function c(h,d){u.push(h._hovertitle+": "+d)}if(!t.hovertemplate){var f=l.split("+");f.indexOf("all")!==-1&&(f=["real","imag","text"]),f.indexOf("real")!==-1&&c(i,n.realLabel),f.indexOf("imag")!==-1&&c(a,n.imagLabel),f.indexOf("text")!==-1&&n.text&&(u.push(n.text),delete n.text),n.extraText=u.join("
")}}gQe.exports={hoverPoints:Ser,makeHoverPointText:pQe}});var _Qe=ye((Swr,yQe)=>{"use strict";yQe.exports={moduleType:"trace",name:"scattersmith",basePlotModule:tQe(),categories:["smith","symbols","showLegend","scatter-like"],attributes:aQ(),supplyDefaults:aQe(),colorbar:$d(),formatLabels:lQe(),calc:fQe(),plot:vQe(),style:ap().style,styleOnSelect:ap().styleOnSelect,hoverPoints:mQe().hoverPoints,selectPoints:lT(),meta:{}}});var bQe=ye((Mwr,xQe)=>{"use strict";xQe.exports=_Qe()});var Sv=ye((Ewr,TQe)=>{var M9=Fh();function wQe(){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={}}M9(wQe.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,n,i){return n=(e!=null&&e.year?e.calendar():typeof n=="string"?this.instance(n,i):n)||this.instance(),n.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 n="",i=0;r>0;){var a=r%10;n=(a===0?"":e[a]+t[i])+n,i++,r=Math.floor(r/10)}return n.indexOf(e[1]+t[1])===0&&(n=n.substr(1)),n||e[0]}}});function oQ(e,t,r,n){if(this._calendar=e,this._year=t,this._month=r,this._day=n,this._calendar._validateLevel===0&&!this._calendar.isValid(this._year,this._month,this._day))throw(Hs.local.invalidDate||Hs.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function S9(e,t){return e=""+e,"000000".substring(0,t-e.length)+e}M9(oQ.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(Hs.local.invalidDate||Hs.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(Hs.local.differentCalendars||Hs.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?"-":"")+S9(Math.abs(this.year()),4)+"-"+S9(this.month(),2)+"-"+S9(this.day(),2)}});function sQ(){this.shortYearCutoff="+10"}M9(sQ.prototype,{_validateLevel:0,newDate:function(e,t,r){return e==null?this.today():(e.year&&(this._validate(e,t,r,Hs.local.invalidDate||Hs.regionalOptions[""].invalidDate),r=e.day(),t=e.month(),e=e.year()),new oQ(this,e,t,r))},today:function(){return this.fromJSDate(new Date)},epoch:function(e){var t=this._validate(e,this.minMonth,this.minDay,Hs.local.invalidYear||Hs.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,Hs.local.invalidYear||Hs.regionalOptions[""].invalidYear);return(t.year()<0?"-":"")+S9(Math.abs(t.year()),4)},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,Hs.local.invalidYear||Hs.regionalOptions[""].invalidYear),12},monthOfYear:function(e,t){var r=this._validate(e,t,this.minDay,Hs.local.invalidMonth||Hs.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,Hs.local.invalidMonth||Hs.regionalOptions[""].invalidMonth),r},daysInYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,Hs.local.invalidYear||Hs.regionalOptions[""].invalidYear);return this.leapYear(t)?366:365},dayOfYear:function(e,t,r){var n=this._validate(e,t,r,Hs.local.invalidDate||Hs.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,t,r){var n=this._validate(e,t,r,Hs.local.invalidDate||Hs.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(n))+2)%this.daysInWeek()},extraInfo:function(e,t,r){return this._validate(e,t,r,Hs.local.invalidDate||Hs.regionalOptions[""].invalidDate),{}},add:function(e,t,r){return this._validate(e,this.minMonth,this.minDay,Hs.local.invalidDate||Hs.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 n=e.toJD()+t*(r==="w"?this.daysInWeek():1),i=e.calendar().fromJD(n);return this._validateLevel--,[i.year(),i.month(),i.day()]}try{var a=e.year()+(r==="y"?t:0),o=e.monthOfYear()+(r==="m"?t:0),i=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)),i=Math.min(i,this.daysInMonth(a,this.fromMonthOfYear(a,o)))):r==="m"&&(s(this),i=Math.min(i,this.daysInMonth(a,this.fromMonthOfYear(a,o))));var l=[a,this.fromMonthOfYear(a,o),i];return this._validateLevel--,l}catch(u){throw this._validateLevel--,u}},_correctAdd:function(e,t,r,n){if(!this.hasYearZero&&(n==="y"||n==="m")&&(t[0]===0||e.year()>0!=t[0]>0)){var i={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[n],a=r<0?-1:1;t=this._add(e,r*i[0]+a*i[1],i[2])}return e.date(t[0],t[1],t[2])},set:function(e,t,r){this._validate(e,this.minMonth,this.minDay,Hs.local.invalidDate||Hs.regionalOptions[""].invalidDate);var n=r==="y"?t:e.year(),i=r==="m"?t:e.month(),a=r==="d"?t:e.day();return(r==="y"||r==="m")&&(a=Math.min(a,this.daysInMonth(n,i))),e.date(n,i,a)},isValid:function(e,t,r){this._validateLevel++;var n=this.hasYearZero||e!==0;if(n){var i=this.newDate(e,t,this.minDay);n=t>=this.minMonth&&t-this.minMonth=this.minDay&&r-this.minDay13.5?13:1),u=i-(l>2.5?4716:4715);return u<=0&&u--,this.newDate(u,l,s)},toJSDate:function(e,t,r){var n=this._validate(e,t,r,Hs.local.invalidDate||Hs.regionalOptions[""].invalidDate),i=new Date(n.year(),n.month()-1,n.day());return i.setHours(0),i.setMinutes(0),i.setSeconds(0),i.setMilliseconds(0),i.setHours(i.getHours()>12?i.getHours()+2:0),i},fromJSDate:function(e){return this.newDate(e.getFullYear(),e.getMonth()+1,e.getDate())}});var Hs=TQe.exports=new wQe;Hs.cdate=oQ;Hs.baseCalendar=sQ;Hs.calendars.gregorian=lQ});var AQe=ye(()=>{var uQ=Fh(),Ud=Sv();uQ(Ud.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"});Ud.local=Ud.regionalOptions[""];uQ(Ud.cdate.prototype,{formatDate:function(e,t){return typeof e!="string"&&(t=e,e=""),this._calendar.formatDate(e||"",this,t)}});uQ(Ud.baseCalendar.prototype,{UNIX_EPOCH:Ud.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:24*60*60,TICKS_EPOCH:Ud.instance().jdEpoch,TICKS_PER_DAY:24*60*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 Ud.local.invalidFormat||Ud.regionalOptions[""].invalidFormat;e=e||this.local.dateFormat,r=r||{};for(var n=r.dayNamesShort||this.local.dayNamesShort,i=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(A,L){for(var _=1;E+_1},c=function(A,L,_,k){var M=""+L;if(u(A,k))for(;M.length<_;)M="0"+M;return M},f=function(A,L,_,k){return u(A)?k[L]:_[L]},h=this,d=function(A){return typeof a=="function"?a.call(h,A,u("m")):b(c("m",A.month(),2))},v=function(A,L){return L?typeof s=="function"?s.call(h,A):s[A.month()-h.minMonth]:typeof o=="function"?o.call(h,A):o[A.month()-h.minMonth]},x=this.local.digits,b=function(A){return r.localNumbers&&x?x(A):A},p="",C=!1,E=0;E1},C=function(z,O){var V=p(z,O),G=[2,3,V?4:2,V?4:2,10,11,20]["oyYJ@!".indexOf(z)+1],Z=new RegExp("^-?\\d{1,"+G+"}"),H=t.substring(M).match(Z);if(!H)throw(Ud.local.missingNumberAt||Ud.regionalOptions[""].missingNumberAt).replace(/\{0\}/,M);return M+=H[0].length,parseInt(H[0],10)},E=this,A=function(){if(typeof s=="function"){p("m");var z=s.call(E,t.substring(M));return M+=z.length,z}return C("m")},L=function(z,O,V,G){for(var Z=p(z,G)?V:O,H=0;H-1){h=1,d=v;for(var T=this.daysInMonth(f,h);d>T;T=this.daysInMonth(f,h))h++,d-=T}return c>-1?this.fromJD(c):this.newDate(f,h,d)},determineDate:function(e,t,r,n,i){r&&typeof r!="object"&&(i=n,n=r,r=null),typeof n!="string"&&(i=n,n="");var a=this,o=function(s){try{return a.parseDate(n,s,i)}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 SQe=ye(()=>{var Fx=Sv(),Mer=Fh(),cQ=Fx.instance();function E9(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}E9.prototype=new Fx.baseCalendar;Mer(E9.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(Cer);return r?r[0]:""}var n=this._validateYear(e),i=e.month(),a=""+this.toChineseMonth(n,i);return t&&a.length<2&&(a="0"+a),this.isIntercalaryMonth(n,i)&&(a+="i"),a},monthNames:function(e){if(typeof e=="string"){var t=e.match(ker);return t?t[0]:""}var r=this._validateYear(e),n=e.month(),i=this.toChineseMonth(r,n),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"][i-1];return this.isIntercalaryMonth(r,n)&&(a="\u95F0"+a),a},monthNamesShort:function(e){if(typeof e=="string"){var t=e.match(Ler);return t?t[0]:""}var r=this._validateYear(e),n=e.month(),i=this.toChineseMonth(r,n),a=["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"][i-1];return this.isIntercalaryMonth(r,n)&&(a="\u95F0"+a),a},parseMonth:function(e,t){e=this._validateYear(e);var r=parseInt(t),n;if(isNaN(r))t[0]==="\u95F0"&&(n=!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 i=t[t.length-1];n=i==="i"||i==="I"}var a=this.toMonthIndex(e,r,n);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 n=this.intercalaryMonth(e),i=r&&t!==n;if(i||t<1||t>12)throw Fx.local.invalidMonth.replace(/\{0\}/,this.local.name);var a;return n?!r&&t<=n?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),n=r?12:11;if(t<0||t>n)throw Fx.local.invalidMonth.replace(/\{0\}/,this.local.name);var i;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 n=this._validateYear(e,Fx.local.invalidyear),i=Ox[n-Ox[0]],a=i>>9&4095,o=i>>5&15,s=i&31,l;l=cQ.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=zx[e-zx[0]],n=r>>13,i=n?12:11;if(t>i)throw Fx.local.invalidMonth.replace(/\{0\}/,this.local.name);var a=r&1<<12-t?30:29;return a},weekDay:function(e,t,r){return(this.dayOfWeek(e,t,r)||7)<6},toJD:function(e,t,r){var n=this._validate(e,a,r,Fx.local.invalidDate);e=this._validateYear(n.year()),t=n.month(),r=n.day();var i=this.isIntercalaryMonth(e,t),a=this.toChineseMonth(e,t),o=Ier(e,a,r,i);return cQ.toJD(o.year,o.month,o.day)},fromJD:function(e){var t=cQ.fromJD(e),r=Per(t.year(),t.month(),t.day()),n=this.toMonthIndex(r.year,r.month,r.isIntercalary);return this.newDate(r.year,n,r.day)},fromString:function(e){var t=e.match(Eer),r=this._validateYear(+t[1]),n=+t[2],i=!!t[3],a=this.toMonthIndex(r,n,i),o=+t[4];return this.newDate(r,a,o)},add:function(e,t,r){var n=e.year(),i=e.month(),a=this.isIntercalaryMonth(n,i),o=this.toChineseMonth(n,i),s=Object.getPrototypeOf(E9.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 Eer=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,Cer=/^\d?\d[iI]?/m,ker=/^闰?十?[一二三四五六七八九]?月/m,Ler=/^闰?十?[一二三四五六七八九]?/m;Fx.calendars.chinese=E9;var zx=[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],Ox=[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 Per(e,t,r,n){var i,a;if(typeof e=="object")i=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");i={year:e,month:t,day:r},a=n||{}}var u=Ox[i.year-Ox[0]],c=i.year<<9|i.month<<5|i.day;a.year=c>=u?i.year:i.year-1,u=Ox[a.year-Ox[0]];var f=u>>9&4095,h=u>>5&15,d=u&31,v,x=new Date(f,h-1,d),b=new Date(i.year,i.month-1,i.day);v=Math.round((b-x)/(24*3600*1e3));var p=zx[a.year-zx[0]],C;for(C=0;C<13;C++){var E=p&1<<12-C?30:29;if(v>13;return!A||C=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 n=="object"?(c=!1,a=n):(c=!!n,a=i||{}),o={year:e,month:t,day:r,isIntercalary:c}}var f;f=o.day-1;var h=zx[o.year-zx[0]],d=h>>13,v;d&&(o.month>d||o.isIntercalary)?v=o.month:v=o.month-1;for(var x=0;x>9&4095,E=p>>5&15,A=p&31,L=new Date(C,E-1,A+f);return a.year=L.getFullYear(),a.month=1+L.getMonth(),a.day=L.getDate(),a}});var MQe=ye(()=>{var _w=Sv(),Rer=Fh();function fQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}fQ.prototype=new _w.baseCalendar;Rer(fQ.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,_w.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,_w.local.invalidYear||_w.regionalOptions[""].invalidYear),13},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,_w.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 n=this._validate(e,t,r,_w.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 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 n=Math.floor(t/30)+1,i=t-(n-1)*30+1;return this.newDate(r,n,i)}});_w.calendars.coptic=fQ});var EQe=ye(()=>{var b1=Sv(),Der=Fh();function hQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}hQ.prototype=new b1.baseCalendar;Der(hQ.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,b1.local.invalidYear),!1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,b1.local.invalidYear),13},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,b1.local.invalidYear),400},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/8)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,b1.local.invalidMonth);return this.daysPerMonth[r.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(e,t,r){var n=this._validate(e,t,r,b1.local.invalidDate);return(n.day()+1)%8},weekDay:function(e,t,r){var n=this.dayOfWeek(e,t,r);return n>=2&&n<=6},extraInfo:function(e,t,r){var n=this._validate(e,t,r,b1.local.invalidDate);return{century:Fer[Math.floor((n.year()-1)/100)+1]||""}},toJD:function(e,t,r){var n=this._validate(e,t,r,b1.local.invalidDate);return e=n.year()+(n.year()<0?1:0),t=n.month(),r=n.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,n=e-(r-1)*32+1;return this.newDate(t<=0?t-1:t,r,n)}});var Fer={20:"Fruitbat",21:"Anchovy"};b1.calendars.discworld=hQ});var CQe=ye(()=>{var xw=Sv(),zer=Fh();function dQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}dQ.prototype=new xw.baseCalendar;zer(dQ.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,xw.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,xw.local.invalidYear||xw.regionalOptions[""].invalidYear),13},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,xw.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 n=this._validate(e,t,r,xw.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 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 n=Math.floor(t/30)+1,i=t-(n-1)*30+1;return this.newDate(r,n,i)}});xw.calendars.ethiopian=dQ});var kQe=ye(()=>{var qx=Sv(),Oer=Fh();function vQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}vQ.prototype=new qx.baseCalendar;Oer(vQ.prototype,{name:"Hebrew",jdEpoch:347995.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29,29],hasYearZero:!1,minMonth:1,firstMonth:7,minDay:1,regionalOptions:{"":{name:"Hebrew",epochs:["BAM","AM"],monthNames:["Nisan","Iyar","Sivan","Tammuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Shevat","Adar","Adar II"],monthNamesShort:["Nis","Iya","Siv","Tam","Av","Elu","Tis","Che","Kis","Tev","She","Ada","Ad2"],dayNames:["Yom Rishon","Yom Sheni","Yom Shlishi","Yom Revi'i","Yom Chamishi","Yom Shishi","Yom Shabbat"],dayNamesShort:["Ris","She","Shl","Rev","Cha","Shi","Sha"],dayNamesMin:["Ri","She","Shl","Re","Ch","Shi","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,qx.local.invalidYear);return this._leapYear(t.year())},_leapYear:function(e){return e=e<0?e+1:e,C9(e*7+1,19)<7},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,qx.local.invalidYear),this._leapYear(e.year?e.year():e)?13:12},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,qx.local.invalidYear);return e=t.year(),this.toJD(e===-1?1:e+1,7,1)-this.toJD(e,7,1)},daysInMonth:function(e,t){return e.year&&(t=e.month(),e=e.year()),this._validate(e,t,this.minDay,qx.local.invalidMonth),t===12&&this.leapYear(e)||t===8&&C9(this.daysInYear(e),10)===5?30:t===9&&C9(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 n=this._validate(e,t,r,qx.local.invalidDate);return{yearType:(this.leapYear(n)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(n)%10-3]}},toJD:function(e,t,r){var n=this._validate(e,t,r,qx.local.invalidDate);e=n.year(),t=n.month(),r=n.day();var i=e<=0?e+1:e,a=this.jdEpoch+this._delay1(i)+this._delay2(i)+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 n=e-this.toJD(t,r,1)+1;return this.newDate(t,r,n)}});function C9(e,t){return e-t*Math.floor(e/t)}qx.calendars.hebrew=vQ});var LQe=ye(()=>{var hk=Sv(),qer=Fh();function pQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}pQ.prototype=new hk.baseCalendar;qer(pQ.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,hk.local.invalidYear);return(t.year()*11+14)%30<11},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);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,t){var r=this._validate(e,t,this.minDay,hk.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 n=this._validate(e,t,r,hk.local.invalidDate);return e=n.year(),t=n.month(),r=n.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),n=e-this.toJD(t,r,1)+1;return this.newDate(t,r,n)}});hk.calendars.islamic=pQ});var PQe=ye(()=>{var dk=Sv(),Ber=Fh();function gQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}gQ.prototype=new dk.baseCalendar;Ber(gQ.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,dk.local.invalidYear),r=t.year()<0?t.year()+1:t.year();return r%4===0},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(4-(n.dayOfWeek()||7),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,dk.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 n=this._validate(e,t,r,dk.local.invalidDate);return e=n.year(),t=n.month(),r=n.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,n=Math.floor((r-122.1)/365.25),i=Math.floor(365.25*n),a=Math.floor((r-i)/30.6001),o=a-Math.floor(a<14?1:13),s=n-Math.floor(o>2?4716:4715),l=r-i-Math.floor(30.6001*a);return s<=0&&s--,this.newDate(s,o,l)}});dk.calendars.julian=gQ});var RQe=ye(()=>{var ug=Sv(),Ner=Fh();function yQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}yQ.prototype=new ug.baseCalendar;Ner(yQ.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,ug.local.invalidYear),!1},formatYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,ug.local.invalidYear);e=t.year();var r=Math.floor(e/400);e=e%400,e+=e<0?400:0;var n=Math.floor(e/20);return r+"."+n+"."+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&&n<0)throw"Invalid Mayan year";t=t*20+n}return t},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,ug.local.invalidYear),18},weekOfYear:function(e,t,r){return this._validate(e,t,r,ug.local.invalidDate),0},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,ug.local.invalidYear),360},daysInMonth:function(e,t){return this._validate(e,t,this.minDay,ug.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(e,t,r){var n=this._validate(e,t,r,ug.local.invalidDate);return n.day()},weekDay:function(e,t,r){return this._validate(e,t,r,ug.local.invalidDate),!0},extraInfo:function(e,t,r){var n=this._validate(e,t,r,ug.local.invalidDate),i=n.toJD(),a=this._toHaab(i),o=this._toTzolkin(i);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=mQ(e+8+17*20,365);return[Math.floor(t/20)+1,mQ(t,20)]},_toTzolkin:function(e){return e-=this.jdEpoch,[IQe(e+20,20),IQe(e+4,13)]},toJD:function(e,t,r){var n=this._validate(e,t,r,ug.local.invalidDate);return n.day()+n.month()*20+n.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),n=e%20;return this.newDate(t,r,n)}});function mQ(e,t){return e-t*Math.floor(e/t)}function IQe(e,t){return mQ(e-1,t)+1}ug.calendars.mayan=yQ});var FQe=ye(()=>{var bw=Sv(),Uer=Fh();function _Q(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}_Q.prototype=new bw.baseCalendar;var DQe=bw.instance("gregorian");Uer(_Q.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,bw.local.invalidYear||bw.regionalOptions[""].invalidYear);return DQe.leapYear(t.year()+(t.year()<1?1:0)+1469)},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(1-(n.dayOfWeek()||7),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,bw.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(i,t,r){var n=this._validate(i,t,r,bw.local.invalidMonth),i=n.year();i<0&&i++;for(var a=n.day(),o=1;o=this.toJD(t+1,1,1);)t++;for(var r=e-Math.floor(this.toJD(t,1,1)+.5)+1,n=1;r>this.daysInMonth(t,n);)r-=this.daysInMonth(t,n),n++;return this.newDate(t,n,r)}});bw.calendars.nanakshahi=_Q});var zQe=ye(()=>{var ww=Sv(),Ver=Fh();function xQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}xQ.prototype=new ww.baseCalendar;Ver(xQ.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 n=this.newDate(e,t,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,ww.local.invalidYear);if(e=t.year(),typeof this.NEPALI_CALENDAR_DATA[e]=="undefined")return this.daysPerYear;for(var r=0,n=this.minMonth;n<=12;n++)r+=this.NEPALI_CALENDAR_DATA[e][n];return r},daysInMonth:function(e,t){return e.year&&(t=e.month(),e=e.year()),this._validate(e,t,this.minDay,ww.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 n=this._validate(e,t,r,ww.local.invalidDate);e=n.year(),t=n.month(),r=n.day();var i=ww.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+=i.daysInYear(l))):a+=this.NEPALI_CALENDAR_DATA[s][9]-this.NEPALI_CALENDAR_DATA[s][0],i.newDate(l,1,1).add(a,"d").toJD()},fromJD:function(e){var t=ww.instance(),r=t.fromJD(e),n=r.year(),i=r.dayOfYear(),a=n+56;this._createMissingCalendarData(a);for(var o=9,s=this.NEPALI_CALENDAR_DATA[a][0],l=this.NEPALI_CALENDAR_DATA[a][o]-s+1;i>l;)o++,o>12&&(o=1,a++),l+=this.NEPALI_CALENDAR_DATA[a][o];var u=this.NEPALI_CALENDAR_DATA[a][o]-(l-i);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 Q5=Sv(),Ger=Fh();function L9(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}function k9(e){var t=e-475;e<0&&t++;var r=.242197,n=r*t,i=r*(t+1),a=n-Math.floor(n),o=i-Math.floor(i);return a>o}L9.prototype=new Q5.baseCalendar;Ger(L9.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,Q5.local.invalidYear);return k9(t.year())},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-((n.dayOfWeek()+1)%7),"d"),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,Q5.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 n=this._validate(e,t,r,Q5.local.invalidDate);e=n.year(),t=n.month(),r=n.day();var i=0;if(e>0)for(var a=1;a0?e-1:e)*365+i+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,k9(r)?30:29)&&(r++,r===0&&r++);var n=e-this.toJD(r,1,1)+1,i=n<=186?Math.ceil(n/31):Math.ceil((n-6)/30),a=e-this.toJD(r,i,1)+1;return this.newDate(r,i,a)}});Q5.calendars.persian=L9;Q5.calendars.jalali=L9});var qQe=ye(()=>{var Tw=Sv(),Her=Fh(),P9=Tw.instance();function bQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}bQ.prototype=new Tw.baseCalendar;Her(bQ.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,Tw.local.invalidYear),r=this._t2gYear(t.year());return P9.leapYear(r)},weekOfYear:function(i,t,r){var n=this._validate(i,this.minMonth,this.minDay,Tw.local.invalidYear),i=this._t2gYear(n.year());return P9.weekOfYear(i,n.month(),n.day())},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,Tw.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(i,t,r){var n=this._validate(i,t,r,Tw.local.invalidDate),i=this._t2gYear(n.year());return P9.toJD(i,n.month(),n.day())},fromJD:function(e){var t=P9.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)}});Tw.calendars.taiwan=bQ});var BQe=ye(()=>{var Aw=Sv(),jer=Fh(),I9=Aw.instance();function wQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}wQ.prototype=new Aw.baseCalendar;jer(wQ.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,Aw.local.invalidYear),r=this._t2gYear(t.year());return I9.leapYear(r)},weekOfYear:function(i,t,r){var n=this._validate(i,this.minMonth,this.minDay,Aw.local.invalidYear),i=this._t2gYear(n.year());return I9.weekOfYear(i,n.month(),n.day())},daysInMonth:function(e,t){var r=this._validate(e,t,this.minDay,Aw.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(i,t,r){var n=this._validate(i,t,r,Aw.local.invalidDate),i=this._t2gYear(n.year());return I9.toJD(i,n.month(),n.day())},fromJD:function(e){var t=I9.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)}});Aw.calendars.thai=wQ});var NQe=ye(()=>{var Sw=Sv(),Wer=Fh();function TQ(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}TQ.prototype=new Sw.baseCalendar;Wer(TQ.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,Sw.local.invalidYear);return this.daysInYear(t.year())===355},weekOfYear:function(e,t,r){var n=this.newDate(e,t,r);return n.add(-n.dayOfWeek(),"d"),Math.floor((n.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,Sw.local.invalidMonth),n=r.toJD()-24e5+.5,i=0,a=0;an)return Bx[i]-Bx[i-1];i++}return 30},weekDay:function(e,t,r){return this.dayOfWeek(e,t,r)!==5},toJD:function(e,t,r){var n=this._validate(e,t,r,Sw.local.invalidDate),i=12*(n.year()-1)+n.month()-15292,a=n.day()+Bx[i-1]-1;return a+24e5-.5},fromJD:function(e){for(var t=e-24e5+.5,r=0,n=0;nt);n++)r++;var i=r+15292,a=Math.floor((i-1)/12),o=a+1,s=i-12*a,l=t-Bx[r-1]+1;return this.newDate(o,s,l)},isValid:function(e,t,r){var n=Sw.baseCalendar.prototype.isValid.apply(this,arguments);return n&&(e=e.year!=null?e.year:e,n=e>=1276&&e<=1500),n},_validate:function(e,t,r,n){var i=Sw.baseCalendar.prototype._validate.apply(this,arguments);if(i.year<1276||i.year>1500)throw n.replace(/\{0\}/,this.local.name);return i}});Sw.calendars.ummalqura=TQ;var Bx=[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 VQe=ye((n3r,UQe)=>{"use strict";UQe.exports=Sv();AQe();SQe();MQe();EQe();CQe();kQe();LQe();PQe();RQe();FQe();zQe();OQe();qQe();BQe();NQe()});var YQe=ye((a3r,ZQe)=>{"use strict";var HQe=VQe(),vk=Dr(),jQe=hs(),Xer=jQe.EPOCHJD,Zer=jQe.ONEDAY,MQ={valType:"enumerated",values:vk.sortObjectKeys(HQe.calendars),editType:"calc",dflt:"gregorian"},WQe=function(e,t,r,n){var i={};return i[r]=MQ,vk.coerce(e,t,i,r,n)},Yer=function(e,t,r,n){for(var i=0;i{"use strict";KQe.exports=YQe()});var ttr=ye((s3r,QQe)=>{var $Qe=iye();$Qe.register([a1e(),W1e(),ixe(),Txe(),zxe(),Ibe(),jbe(),P2e(),owe(),Uwe(),E3e(),BEe(),ECe(),m6e(),nLe(),DLe(),iPe(),EIe(),WIe(),c8e(),w8e(),z8e(),J8e(),dRe(),UDe(),sFe(),ABe(),ANe(),DUe(),aVe(),vGe(),kGe(),QGe(),cje(),Sje(),Yje(),iXe(),EXe(),lZe(),LYe(),QYe(),xKe(),WKe(),oJe(),n$e(),w$e(),U$e(),bQe(),JQe()]);QQe.exports=$Qe});return ttr();})(); +/*! + * The buffer module from node.js, for the browser. + * + * @author Feross Aboukhadijeh + * @license MIT + */ +/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */ +/*! + * Determine if an object is a Buffer + * + * @author Feross Aboukhadijeh + * @license MIT + */ +/*! + * pad-left + * + * Copyright (c) 2014-2015, Jon Schlinkert. + * Licensed under the MIT license. + */ +/*! + * repeat-string + * + * Copyright (c) 2014-2015, Jon Schlinkert. + * Licensed under the MIT License. + */ +/*! Bundled license information: + +native-promise-only/lib/npo.src.js: + (*! Native Promise Only + v0.8.1 (c) Kyle Simpson + MIT License: http://getify.mit-license.org + *) + +polybooljs/index.js: + (* + * @copyright 2016 Sean Connelly (@voidqk), http://syntheti.cc + * @license MIT + * @preserve Project Home: https://github.com/voidqk/polybooljs + *) + +ieee754/index.js: + (*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh *) + +buffer/index.js: + (*! + * The buffer module from node.js, for the browser. + * + * @author Feross Aboukhadijeh + * @license MIT + *) + +safe-buffer/index.js: + (*! safe-buffer. MIT License. Feross Aboukhadijeh *) + +assert/build/internal/util/comparisons.js: + (*! + * The buffer module from node.js, for the browser. + * + * @author Feross Aboukhadijeh + * @license MIT + *) + +object-assign/index.js: + (* + object-assign + (c) Sindre Sorhus + @license MIT + *) + +maplibre-gl/dist/maplibre-gl.js: + (** + * MapLibre GL JS + * @license 3-Clause BSD. Full text of license: https://github.com/maplibre/maplibre-gl-js/blob/v4.7.1/LICENSE.txt + *) +*/ + +window.Plotly = Plotly; +return Plotly; +})); diff --git a/src/react_plugin/src/index.tsx b/src/react_plugin/src/index.tsx index 0b482e1..6eb223e 100644 --- a/src/react_plugin/src/index.tsx +++ b/src/react_plugin/src/index.tsx @@ -1,6 +1,6 @@ import * as React from "react"; -import Plot from "react-plotly.js"; -import * as Plotly from "plotly.js"; +// TYPE-ONLY import to avoid bundling plotly; we load from CDN at runtime +import type * as Plotly from "plotly.js"; import { FuncNodesReactPlugin, LATEST_VERSION, @@ -15,70 +15,184 @@ import "./style.css"; // Minimum delay between renders in milliseconds const RENDER_DELAY_MS = 1000; -const PreviewPlotlyImageRenderer: DataViewRendererType = ({ +declare global { + interface Window { + Plotly: any; // runtime Plotly from CDN + } +} + +let LOAD_PLOTLY_PROMISE: Promise | null = null; + +async function importPlotly() { + if (LOAD_PLOTLY_PROMISE) return LOAD_PLOTLY_PROMISE; + + if (typeof window === "undefined") { + // SSR guard: nothing to do during server render + return Promise.resolve(); + } + + if (typeof window.Plotly === "undefined") { + const script = document.createElement("script"); + + script.src = "https://cdn.plot.ly/plotly-3.1.0.min.js"; + script.async = true; + document.head.appendChild(script); + LOAD_PLOTLY_PROMISE = new Promise((resolve) => { + script.onload = () => resolve(); + }); + return LOAD_PLOTLY_PROMISE; + } + + return Promise.resolve(); +} + +function normalizePlotlyLayout( + layout: Plotly.Layout | undefined +): Plotly.Layout { + const out: Plotly.Layout = { ...layout } as Plotly.Layout; + out.autosize = true; + out.font = { ...(out.font || {}), family: "Arial, Helvetica, sans-serif" }; + + return out; +} + +/** + * Core hook that renders a Plotly figure into a DIV without . + * Handles: + * - debounced updates + * - CDN loading + * - responsive resize + * - cleanup/purge + */ +function usePlotlyDivRenderer({ value, -}: DataViewRendererProps) => { - const [renderedValue, setRenderedValue] = React.useState(value); + staticMode, +}: { + value: unknown; + staticMode: boolean; +}) { + const containerRef = React.useRef(null); const latestValueRef = React.useRef(value); const timeoutRef = React.useRef(null); const lastRenderTimeRef = React.useRef(0); + const roRef = React.useRef(null); + const isMountedRef = React.useRef(false); const scheduleRender = React.useCallback(() => { if (timeoutRef.current) { clearTimeout(timeoutRef.current); } - const now = Date.now(); const timeSinceLastRender = now - lastRenderTimeRef.current; const delay = Math.max(0, RENDER_DELAY_MS - timeSinceLastRender); - timeoutRef.current = setTimeout(() => { - setRenderedValue(latestValueRef.current); + timeoutRef.current = window.setTimeout(async () => { + // Load Plotly if needed + // await importPlotly(); + if (!isMountedRef.current) return; + + const v: any = latestValueRef.current; + if (!v || typeof v !== "object" || !("data" in v) || !("layout" in v)) { + return; + } + + const data = (v.data || []) as Plotly.Data[]; + const layout = normalizePlotlyLayout(v.layout as Plotly.Layout); + const config: Partial = { + staticPlot: staticMode, + displayModeBar: !staticMode, + responsive: true, + scrollZoom: false, + doubleClick: false, + }; + + const gd = containerRef.current; + if (!gd || typeof window === "undefined" || !window.Plotly) return; + + try { + // Plotly.react will create or update the plot efficiently + await window.Plotly.react(gd, data, layout, config); + } catch (err) { + // Fail fast — no silent errors + // eslint-disable-next-line no-console + console.error("Plotly.react failed:", err); + } + lastRenderTimeRef.current = Date.now(); timeoutRef.current = null; }, delay); - }, []); + }, [staticMode]); React.useEffect(() => { - latestValueRef.current = value; + isMountedRef.current = true; + + // Set up resize observer for responsiveness + const gd = containerRef.current; + const attachResize = () => { + if (!gd) return; + roRef.current = new ResizeObserver(() => { + if (gd && window.Plotly) { + try { + window.Plotly.Plots.resize(gd); + } catch { + /* ignore */ + } + } + }); + roRef.current.observe(gd); + }; + + attachResize(); + // initial draw attempt scheduleRender(); return () => { - if (timeoutRef.current) { - clearTimeout(timeoutRef.current); + isMountedRef.current = false; + if (timeoutRef.current) clearTimeout(timeoutRef.current); + if (roRef.current) roRef.current.disconnect(); + if (gd && window.Plotly) { + try { + window.Plotly.purge(gd); + } catch { + /* ignore */ + } } }; + // eslint-disable-next-line react-hooks/exhaustive-deps + }, []); + + React.useEffect(() => { + latestValueRef.current = value; + scheduleRender(); }, [value, scheduleRender]); - if (!renderedValue) return <>; - // if not an object, return null - if (typeof renderedValue !== "object") return <>; - if (!("data" in renderedValue) || !("layout" in renderedValue)) return <>; + return containerRef; +} + +const PreviewPlotlyImageRenderer: DataViewRendererType = ({ + value, +}: DataViewRendererProps) => { + const containerRef = usePlotlyDivRenderer({ value, staticMode: true }); + + // SSR guard + if (typeof window === "undefined") return <>; + + // Basic shape checks to avoid flashing an empty div + if ( + !value || + typeof value !== "object" || + !("data" in (value as any)) || + !("layout" in (value as any)) + ) { + return <>; + } - const { data, layout, ...rest } = renderedValue; - // if not an object, return null - const plotlylayout = layout as unknown as Plotly.Layout; - plotlylayout.autosize = true; return ( -
- +
+
); }; @@ -86,66 +200,31 @@ const PreviewPlotlyImageRenderer: DataViewRendererType = ({ const PlotlyImageRenderer: DataViewRendererType = ({ value, }: DataViewRendererProps) => { - const [renderedValue, setRenderedValue] = React.useState(value); - const latestValueRef = React.useRef(value); - const timeoutRef = React.useRef(null); - const lastRenderTimeRef = React.useRef(0); - - const scheduleRender = React.useCallback(() => { - if (timeoutRef.current) { - clearTimeout(timeoutRef.current); - } - - const now = Date.now(); - const timeSinceLastRender = now - lastRenderTimeRef.current; - const delay = Math.max(0, RENDER_DELAY_MS - timeSinceLastRender); - - timeoutRef.current = setTimeout(() => { - setRenderedValue(latestValueRef.current); - lastRenderTimeRef.current = Date.now(); - timeoutRef.current = null; - }, delay); - }, []); - - React.useEffect(() => { - latestValueRef.current = value; - scheduleRender(); + const containerRef = usePlotlyDivRenderer({ value, staticMode: false }); - return () => { - if (timeoutRef.current) { - clearTimeout(timeoutRef.current); - } - }; - }, [value, scheduleRender]); + if (typeof window === "undefined") return <>; - if (!renderedValue) return <>; - // if not an object, return null - if (typeof renderedValue !== "object") return <>; - if (!("data" in renderedValue) || !("layout" in renderedValue)) return <>; + if ( + !value || + typeof value !== "object" || + !("data" in (value as any)) || + !("layout" in (value as any)) + ) { + return <>; + } - const { data, layout, ...rest } = renderedValue; - // if not an object, return null - const plotlylayout = layout as unknown as Plotly.Layout; - plotlylayout.autosize = true; return ( - +
+
+
); }; const renderpluginfactory = ({}: RenderPluginFactoryProps) => { const MyRendererPlugin: RendererPlugin = { - // data_overlay_renderers: { - // "plotly.Figure": PlotlyOverlayRenderer, - // }, data_preview_renderers: { "plotly.Figure": DataViewRendererToDataPreviewViewRenderer( PreviewPlotlyImageRenderer @@ -160,7 +239,7 @@ const renderpluginfactory = ({}: RenderPluginFactoryProps) => { }; const Plugin: FuncNodesReactPlugin = { - renderpluginfactory: renderpluginfactory, + renderpluginfactory, v: LATEST_VERSION, }; diff --git a/src/react_plugin/vite.config.ts b/src/react_plugin/vite.config.ts index 3ecb466..db3b17c 100644 --- a/src/react_plugin/vite.config.ts +++ b/src/react_plugin/vite.config.ts @@ -36,7 +36,13 @@ export default defineConfig(({ mode }) => ({ fileName: (format) => `index.${format}.js`, }, rollupOptions: { - external: ["react", "react-dom", "@linkdlab/funcnodes_react_flow"], + external: [ + "react", + "react-dom", + "@linkdlab/funcnodes_react_flow", + "react-plotly.js", + "plotly.js", + ], output: { globals: { react: "React", From 84dc51bec33243edff2b9968a8aee9204bbad8d9 Mon Sep 17 00:00:00 2001 From: JulianKimmig Date: Mon, 3 Nov 2025 21:34:07 +0100 Subject: [PATCH 5/6] chore: bump version to 1.1.0 and update dependencies - Updated project version from 1.0.0 to 1.1.0 in pyproject.toml and __init__.py. - Added new development dependencies: funcnodes-pandas and funcnodes-files. - Incremented revision number in uv.lock to reflect changes. --- pyproject.toml | 5 +- src/funcnodes_plotly/__init__.py | 2 +- uv.lock | 1941 +++++++++++++++++------------- 3 files changed, 1141 insertions(+), 807 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 0256417..209ad7f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "funcnodes-plotly" -version = "1.0.0" +version = "1.1.0" description = "" readme = "README.md" classifiers = [ @@ -28,6 +28,8 @@ dev = [ "pytest", "pre-commit", "funcnodes-module", + "funcnodes-pandas", + "funcnodes-files", ] [build-system] @@ -58,4 +60,3 @@ update_changelog_on_bump = true [project.entry-points."funcnodes.module"] module = "funcnodes_plotly" shelf = "funcnodes_plotly:NODE_SHELF" - diff --git a/src/funcnodes_plotly/__init__.py b/src/funcnodes_plotly/__init__.py index 1e6dd33..1b8d8f5 100644 --- a/src/funcnodes_plotly/__init__.py +++ b/src/funcnodes_plotly/__init__.py @@ -96,4 +96,4 @@ def figure_byte_encoder(figure: go.Figure, preview) -> fn.BytesEncdata: } -__version__ = "1.0.0" +__version__ = "1.1.0" diff --git a/uv.lock b/uv.lock index 574baad..ed8868e 100644 --- a/uv.lock +++ b/uv.lock @@ -1,5 +1,5 @@ version = 1 -revision = 1 +revision = 2 requires-python = ">=3.11" resolution-markers = [ "python_full_version >= '3.12' and sys_platform == 'win32'", @@ -14,14 +14,14 @@ resolution-markers = [ name = "aiohappyeyeballs" version = "2.6.1" source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/26/30/f84a107a9c4331c14b2b586036f40965c128aa4fee4dda5d3d51cb14ad54/aiohappyeyeballs-2.6.1.tar.gz", hash = "sha256:c3f9d0113123803ccadfdf3f0faa505bc78e6a72d1cc4806cbd719826e943558", size = 22760 } +sdist = { url = "https://files.pythonhosted.org/packages/26/30/f84a107a9c4331c14b2b586036f40965c128aa4fee4dda5d3d51cb14ad54/aiohappyeyeballs-2.6.1.tar.gz", hash = "sha256:c3f9d0113123803ccadfdf3f0faa505bc78e6a72d1cc4806cbd719826e943558", size = 22760, upload-time = "2025-03-12T01:42:48.764Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/0f/15/5bf3b99495fb160b63f95972b81750f18f7f4e02ad051373b669d17d44f2/aiohappyeyeballs-2.6.1-py3-none-any.whl", hash = "sha256:f349ba8f4b75cb25c99c5c2d84e997e485204d2902a9597802b0371f09331fb8", size = 15265 }, + { url = "https://files.pythonhosted.org/packages/0f/15/5bf3b99495fb160b63f95972b81750f18f7f4e02ad051373b669d17d44f2/aiohappyeyeballs-2.6.1-py3-none-any.whl", hash = "sha256:f349ba8f4b75cb25c99c5c2d84e997e485204d2902a9597802b0371f09331fb8", size = 15265, upload-time = "2025-03-12T01:42:47.083Z" }, ] [[package]] name = "aiohttp" -version = "3.11.16" +version = "3.13.2" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "aiohappyeyeballs", marker = "sys_platform != 'emscripten'" }, @@ -32,56 +32,93 @@ dependencies = [ { name = "propcache", marker = "sys_platform != 'emscripten'" }, { name = "yarl", marker = "sys_platform != 'emscripten'" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/f1/d9/1c4721d143e14af753f2bf5e3b681883e1f24b592c0482df6fa6e33597fa/aiohttp-3.11.16.tar.gz", hash = "sha256:16f8a2c9538c14a557b4d309ed4d0a7c60f0253e8ed7b6c9a2859a7582f8b1b8", size = 7676826 } -wheels = [ - { url = "https://files.pythonhosted.org/packages/b1/98/be30539cd84260d9f3ea1936d50445e25aa6029a4cb9707f3b64cfd710f7/aiohttp-3.11.16-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:8cb0688a8d81c63d716e867d59a9ccc389e97ac7037ebef904c2b89334407180", size = 708664 }, - { url = "https://files.pythonhosted.org/packages/e6/27/d51116ce18bdfdea7a2244b55ad38d7b01a4298af55765eed7e8431f013d/aiohttp-3.11.16-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:0ad1fb47da60ae1ddfb316f0ff16d1f3b8e844d1a1e154641928ea0583d486ed", size = 468953 }, - { url = "https://files.pythonhosted.org/packages/34/23/eedf80ec42865ea5355b46265a2433134138eff9a4fea17e1348530fa4ae/aiohttp-3.11.16-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:df7db76400bf46ec6a0a73192b14c8295bdb9812053f4fe53f4e789f3ea66bbb", size = 456065 }, - { url = "https://files.pythonhosted.org/packages/36/23/4a5b1ef6cff994936bf96d981dd817b487d9db755457a0d1c2939920d620/aiohttp-3.11.16-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:cc3a145479a76ad0ed646434d09216d33d08eef0d8c9a11f5ae5cdc37caa3540", size = 1687976 }, - { url = "https://files.pythonhosted.org/packages/d0/5d/c7474b4c3069bb35276d54c82997dff4f7575e4b73f0a7b1b08a39ece1eb/aiohttp-3.11.16-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:d007aa39a52d62373bd23428ba4a2546eed0e7643d7bf2e41ddcefd54519842c", size = 1752711 }, - { url = "https://files.pythonhosted.org/packages/64/4c/ee416987b6729558f2eb1b727c60196580aafdb141e83bd78bb031d1c000/aiohttp-3.11.16-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:f6ddd90d9fb4b501c97a4458f1c1720e42432c26cb76d28177c5b5ad4e332601", size = 1791305 }, - { url = "https://files.pythonhosted.org/packages/58/28/3e1e1884070b95f1f69c473a1995852a6f8516670bb1c29d6cb2dbb73e1c/aiohttp-3.11.16-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:0a2f451849e6b39e5c226803dcacfa9c7133e9825dcefd2f4e837a2ec5a3bb98", size = 1674499 }, - { url = "https://files.pythonhosted.org/packages/ad/55/a032b32fa80a662d25d9eb170ed1e2c2be239304ca114ec66c89dc40f37f/aiohttp-3.11.16-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:8df6612df74409080575dca38a5237282865408016e65636a76a2eb9348c2567", size = 1622313 }, - { url = "https://files.pythonhosted.org/packages/b1/df/ca775605f72abbda4e4746e793c408c84373ca2c6ce7a106a09f853f1e89/aiohttp-3.11.16-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:78e6e23b954644737e385befa0deb20233e2dfddf95dd11e9db752bdd2a294d3", size = 1658274 }, - { url = "https://files.pythonhosted.org/packages/cc/6c/21c45b66124df5b4b0ab638271ecd8c6402b702977120cb4d5be6408e15d/aiohttp-3.11.16-cp311-cp311-musllinux_1_2_armv7l.whl", hash = "sha256:696ef00e8a1f0cec5e30640e64eca75d8e777933d1438f4facc9c0cdf288a810", size = 1666704 }, - { url = "https://files.pythonhosted.org/packages/1d/e2/7d92adc03e3458edd18a21da2575ab84e58f16b1672ae98529e4eeee45ab/aiohttp-3.11.16-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:e3538bc9fe1b902bef51372462e3d7c96fce2b566642512138a480b7adc9d508", size = 1652815 }, - { url = "https://files.pythonhosted.org/packages/3a/52/7549573cd654ad651e3c5786ec3946d8f0ee379023e22deb503ff856b16c/aiohttp-3.11.16-cp311-cp311-musllinux_1_2_ppc64le.whl", hash = "sha256:3ab3367bb7f61ad18793fea2ef71f2d181c528c87948638366bf1de26e239183", size = 1735669 }, - { url = "https://files.pythonhosted.org/packages/d5/54/dcd24a23c7a5a2922123e07a296a5f79ea87ce605f531be068415c326de6/aiohttp-3.11.16-cp311-cp311-musllinux_1_2_s390x.whl", hash = "sha256:56a3443aca82abda0e07be2e1ecb76a050714faf2be84256dae291182ba59049", size = 1760422 }, - { url = "https://files.pythonhosted.org/packages/a7/53/87327fe982fa310944e1450e97bf7b2a28015263771931372a1dfe682c58/aiohttp-3.11.16-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:61c721764e41af907c9d16b6daa05a458f066015abd35923051be8705108ed17", size = 1694457 }, - { url = "https://files.pythonhosted.org/packages/ce/6d/c5ccf41059267bcf89853d3db9d8d217dacf0a04f4086cb6bf278323011f/aiohttp-3.11.16-cp311-cp311-win32.whl", hash = "sha256:3e061b09f6fa42997cf627307f220315e313ece74907d35776ec4373ed718b86", size = 416817 }, - { url = "https://files.pythonhosted.org/packages/e7/dd/01f6fe028e054ef4f909c9d63e3a2399e77021bb2e1bb51d56ca8b543989/aiohttp-3.11.16-cp311-cp311-win_amd64.whl", hash = "sha256:745f1ed5e2c687baefc3c5e7b4304e91bf3e2f32834d07baaee243e349624b24", size = 442986 }, - { url = "https://files.pythonhosted.org/packages/db/38/100d01cbc60553743baf0fba658cb125f8ad674a8a771f765cdc155a890d/aiohttp-3.11.16-cp312-cp312-macosx_10_13_universal2.whl", hash = "sha256:911a6e91d08bb2c72938bc17f0a2d97864c531536b7832abee6429d5296e5b27", size = 704881 }, - { url = "https://files.pythonhosted.org/packages/21/ed/b4102bb6245e36591209e29f03fe87e7956e54cb604ee12e20f7eb47f994/aiohttp-3.11.16-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:6ac13b71761e49d5f9e4d05d33683bbafef753e876e8e5a7ef26e937dd766713", size = 464564 }, - { url = "https://files.pythonhosted.org/packages/3b/e1/a9ab6c47b62ecee080eeb33acd5352b40ecad08fb2d0779bcc6739271745/aiohttp-3.11.16-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:fd36c119c5d6551bce374fcb5c19269638f8d09862445f85a5a48596fd59f4bb", size = 456548 }, - { url = "https://files.pythonhosted.org/packages/80/ad/216c6f71bdff2becce6c8776f0aa32cb0fa5d83008d13b49c3208d2e4016/aiohttp-3.11.16-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d489d9778522fbd0f8d6a5c6e48e3514f11be81cb0a5954bdda06f7e1594b321", size = 1691749 }, - { url = "https://files.pythonhosted.org/packages/bd/ea/7df7bcd3f4e734301605f686ffc87993f2d51b7acb6bcc9b980af223f297/aiohttp-3.11.16-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:69a2cbd61788d26f8f1e626e188044834f37f6ae3f937bd9f08b65fc9d7e514e", size = 1736874 }, - { url = "https://files.pythonhosted.org/packages/51/41/c7724b9c87a29b7cfd1202ec6446bae8524a751473d25e2ff438bc9a02bf/aiohttp-3.11.16-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:cd464ba806e27ee24a91362ba3621bfc39dbbb8b79f2e1340201615197370f7c", size = 1786885 }, - { url = "https://files.pythonhosted.org/packages/86/b3/f61f8492fa6569fa87927ad35a40c159408862f7e8e70deaaead349e2fba/aiohttp-3.11.16-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:1ce63ae04719513dd2651202352a2beb9f67f55cb8490c40f056cea3c5c355ce", size = 1698059 }, - { url = "https://files.pythonhosted.org/packages/ce/be/7097cf860a9ce8bbb0e8960704e12869e111abcd3fbd245153373079ccec/aiohttp-3.11.16-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:09b00dd520d88eac9d1768439a59ab3d145065c91a8fab97f900d1b5f802895e", size = 1626527 }, - { url = "https://files.pythonhosted.org/packages/1d/1d/aaa841c340e8c143a8d53a1f644c2a2961c58cfa26e7b398d6bf75cf5d23/aiohttp-3.11.16-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:7f6428fee52d2bcf96a8aa7b62095b190ee341ab0e6b1bcf50c615d7966fd45b", size = 1644036 }, - { url = "https://files.pythonhosted.org/packages/2c/88/59d870f76e9345e2b149f158074e78db457985c2b4da713038d9da3020a8/aiohttp-3.11.16-cp312-cp312-musllinux_1_2_armv7l.whl", hash = "sha256:13ceac2c5cdcc3f64b9015710221ddf81c900c5febc505dbd8f810e770011540", size = 1685270 }, - { url = "https://files.pythonhosted.org/packages/2b/b1/c6686948d4c79c3745595efc469a9f8a43cab3c7efc0b5991be65d9e8cb8/aiohttp-3.11.16-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:fadbb8f1d4140825069db3fedbbb843290fd5f5bc0a5dbd7eaf81d91bf1b003b", size = 1650852 }, - { url = "https://files.pythonhosted.org/packages/fe/94/3e42a6916fd3441721941e0f1b8438e1ce2a4c49af0e28e0d3c950c9b3c9/aiohttp-3.11.16-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:6a792ce34b999fbe04a7a71a90c74f10c57ae4c51f65461a411faa70e154154e", size = 1704481 }, - { url = "https://files.pythonhosted.org/packages/b1/6d/6ab5854ff59b27075c7a8c610597d2b6c38945f9a1284ee8758bc3720ff6/aiohttp-3.11.16-cp312-cp312-musllinux_1_2_s390x.whl", hash = "sha256:f4065145bf69de124accdd17ea5f4dc770da0a6a6e440c53f6e0a8c27b3e635c", size = 1735370 }, - { url = "https://files.pythonhosted.org/packages/73/2a/08a68eec3c99a6659067d271d7553e4d490a0828d588e1daa3970dc2b771/aiohttp-3.11.16-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:fa73e8c2656a3653ae6c307b3f4e878a21f87859a9afab228280ddccd7369d71", size = 1697619 }, - { url = "https://files.pythonhosted.org/packages/61/d5/fea8dbbfb0cd68fbb56f0ae913270a79422d9a41da442a624febf72d2aaf/aiohttp-3.11.16-cp312-cp312-win32.whl", hash = "sha256:f244b8e541f414664889e2c87cac11a07b918cb4b540c36f7ada7bfa76571ea2", size = 411710 }, - { url = "https://files.pythonhosted.org/packages/33/fb/41cde15fbe51365024550bf77b95a4fc84ef41365705c946da0421f0e1e0/aiohttp-3.11.16-cp312-cp312-win_amd64.whl", hash = "sha256:23a15727fbfccab973343b6d1b7181bfb0b4aa7ae280f36fd2f90f5476805682", size = 438012 }, - { url = "https://files.pythonhosted.org/packages/52/52/7c712b2d9fb4d5e5fd6d12f9ab76e52baddfee71e3c8203ca7a7559d7f51/aiohttp-3.11.16-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:a3814760a1a700f3cfd2f977249f1032301d0a12c92aba74605cfa6ce9f78489", size = 698005 }, - { url = "https://files.pythonhosted.org/packages/51/3e/61057814f7247666d43ac538abcd6335b022869ade2602dab9bf33f607d2/aiohttp-3.11.16-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:9b751a6306f330801665ae69270a8a3993654a85569b3469662efaad6cf5cc50", size = 461106 }, - { url = "https://files.pythonhosted.org/packages/4f/85/6b79fb0ea6e913d596d5b949edc2402b20803f51b1a59e1bbc5bb7ba7569/aiohttp-3.11.16-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:ad497f38a0d6c329cb621774788583ee12321863cd4bd9feee1effd60f2ad133", size = 453394 }, - { url = "https://files.pythonhosted.org/packages/4b/04/e1bb3fcfbd2c26753932c759593a32299aff8625eaa0bf8ff7d9c0c34a36/aiohttp-3.11.16-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ca37057625693d097543bd88076ceebeb248291df9d6ca8481349efc0b05dcd0", size = 1666643 }, - { url = "https://files.pythonhosted.org/packages/0e/27/97bc0fdd1f439b8f060beb3ba8fb47b908dc170280090801158381ad7942/aiohttp-3.11.16-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:a5abcbba9f4b463a45c8ca8b7720891200658f6f46894f79517e6cd11f3405ca", size = 1721948 }, - { url = "https://files.pythonhosted.org/packages/2c/4f/bc4c5119e75c05ef15c5670ef1563bbe25d4ed4893b76c57b0184d815e8b/aiohttp-3.11.16-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:f420bfe862fb357a6d76f2065447ef6f484bc489292ac91e29bc65d2d7a2c84d", size = 1774454 }, - { url = "https://files.pythonhosted.org/packages/73/5b/54b42b2150bb26fdf795464aa55ceb1a49c85f84e98e6896d211eabc6670/aiohttp-3.11.16-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:58ede86453a6cf2d6ce40ef0ca15481677a66950e73b0a788917916f7e35a0bb", size = 1677785 }, - { url = "https://files.pythonhosted.org/packages/10/ee/a0fe68916d3f82eae199b8535624cf07a9c0a0958c7a76e56dd21140487a/aiohttp-3.11.16-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:6fdec0213244c39973674ca2a7f5435bf74369e7d4e104d6c7473c81c9bcc8c4", size = 1608456 }, - { url = "https://files.pythonhosted.org/packages/8b/48/83afd779242b7cf7e1ceed2ff624a86d3221e17798061cf9a79e0b246077/aiohttp-3.11.16-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:72b1b03fb4655c1960403c131740755ec19c5898c82abd3961c364c2afd59fe7", size = 1622424 }, - { url = "https://files.pythonhosted.org/packages/6f/27/452f1d5fca1f516f9f731539b7f5faa9e9d3bf8a3a6c3cd7c4b031f20cbd/aiohttp-3.11.16-cp313-cp313-musllinux_1_2_armv7l.whl", hash = "sha256:780df0d837276276226a1ff803f8d0fa5f8996c479aeef52eb040179f3156cbd", size = 1660943 }, - { url = "https://files.pythonhosted.org/packages/d6/e1/5c7d63143b8d00c83b958b9e78e7048c4a69903c760c1e329bf02bac57a1/aiohttp-3.11.16-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:ecdb8173e6c7aa09eee342ac62e193e6904923bd232e76b4157ac0bfa670609f", size = 1622797 }, - { url = "https://files.pythonhosted.org/packages/46/9e/2ac29cca2746ee8e449e73cd2fcb3d454467393ec03a269d50e49af743f1/aiohttp-3.11.16-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:a6db7458ab89c7d80bc1f4e930cc9df6edee2200127cfa6f6e080cf619eddfbd", size = 1687162 }, - { url = "https://files.pythonhosted.org/packages/ad/6b/eaa6768e02edebaf37d77f4ffb74dd55f5cbcbb6a0dbf798ccec7b0ac23b/aiohttp-3.11.16-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:2540ddc83cc724b13d1838026f6a5ad178510953302a49e6d647f6e1de82bc34", size = 1718518 }, - { url = "https://files.pythonhosted.org/packages/e5/18/dda87cbad29472a51fa058d6d8257dfce168289adaeb358b86bd93af3b20/aiohttp-3.11.16-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:3b4e6db8dc4879015b9955778cfb9881897339c8fab7b3676f8433f849425913", size = 1675254 }, - { url = "https://files.pythonhosted.org/packages/32/d9/d2fb08c614df401d92c12fcbc60e6e879608d5e8909ef75c5ad8d4ad8aa7/aiohttp-3.11.16-cp313-cp313-win32.whl", hash = "sha256:493910ceb2764f792db4dc6e8e4b375dae1b08f72e18e8f10f18b34ca17d0979", size = 410698 }, - { url = "https://files.pythonhosted.org/packages/ce/ed/853e36d5a33c24544cfa46585895547de152dfef0b5c79fa675f6e4b7b87/aiohttp-3.11.16-cp313-cp313-win_amd64.whl", hash = "sha256:42864e70a248f5f6a49fdaf417d9bc62d6e4d8ee9695b24c5916cb4bb666c802", size = 436395 }, +sdist = { url = "https://files.pythonhosted.org/packages/1c/ce/3b83ebba6b3207a7135e5fcaba49706f8a4b6008153b4e30540c982fae26/aiohttp-3.13.2.tar.gz", hash = "sha256:40176a52c186aefef6eb3cad2cdd30cd06e3afbe88fe8ab2af9c0b90f228daca", size = 7837994, upload-time = "2025-10-28T20:59:39.937Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/35/74/b321e7d7ca762638cdf8cdeceb39755d9c745aff7a64c8789be96ddf6e96/aiohttp-3.13.2-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:4647d02df098f6434bafd7f32ad14942f05a9caa06c7016fdcc816f343997dd0", size = 743409, upload-time = "2025-10-28T20:56:00.354Z" }, + { url = "https://files.pythonhosted.org/packages/99/3d/91524b905ec473beaf35158d17f82ef5a38033e5809fe8742e3657cdbb97/aiohttp-3.13.2-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:e3403f24bcb9c3b29113611c3c16a2a447c3953ecf86b79775e7be06f7ae7ccb", size = 497006, upload-time = "2025-10-28T20:56:01.85Z" }, + { url = "https://files.pythonhosted.org/packages/eb/d3/7f68bc02a67716fe80f063e19adbd80a642e30682ce74071269e17d2dba1/aiohttp-3.13.2-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:43dff14e35aba17e3d6d5ba628858fb8cb51e30f44724a2d2f0c75be492c55e9", size = 493195, upload-time = "2025-10-28T20:56:03.314Z" }, + { url = "https://files.pythonhosted.org/packages/98/31/913f774a4708775433b7375c4f867d58ba58ead833af96c8af3621a0d243/aiohttp-3.13.2-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:e2a9ea08e8c58bb17655630198833109227dea914cd20be660f52215f6de5613", size = 1747759, upload-time = "2025-10-28T20:56:04.904Z" }, + { url = "https://files.pythonhosted.org/packages/e8/63/04efe156f4326f31c7c4a97144f82132c3bb21859b7bb84748d452ccc17c/aiohttp-3.13.2-cp311-cp311-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:53b07472f235eb80e826ad038c9d106c2f653584753f3ddab907c83f49eedead", size = 1704456, upload-time = "2025-10-28T20:56:06.986Z" }, + { url = "https://files.pythonhosted.org/packages/8e/02/4e16154d8e0a9cf4ae76f692941fd52543bbb148f02f098ca73cab9b1c1b/aiohttp-3.13.2-cp311-cp311-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:e736c93e9c274fce6419af4aac199984d866e55f8a4cec9114671d0ea9688780", size = 1807572, upload-time = "2025-10-28T20:56:08.558Z" }, + { url = "https://files.pythonhosted.org/packages/34/58/b0583defb38689e7f06798f0285b1ffb3a6fb371f38363ce5fd772112724/aiohttp-3.13.2-cp311-cp311-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:ff5e771f5dcbc81c64898c597a434f7682f2259e0cd666932a913d53d1341d1a", size = 1895954, upload-time = "2025-10-28T20:56:10.545Z" }, + { url = "https://files.pythonhosted.org/packages/6b/f3/083907ee3437425b4e376aa58b2c915eb1a33703ec0dc30040f7ae3368c6/aiohttp-3.13.2-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:a3b6fb0c207cc661fa0bf8c66d8d9b657331ccc814f4719468af61034b478592", size = 1747092, upload-time = "2025-10-28T20:56:12.118Z" }, + { url = "https://files.pythonhosted.org/packages/ac/61/98a47319b4e425cc134e05e5f3fc512bf9a04bf65aafd9fdcda5d57ec693/aiohttp-3.13.2-cp311-cp311-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:97a0895a8e840ab3520e2288db7cace3a1981300d48babeb50e7425609e2e0ab", size = 1606815, upload-time = "2025-10-28T20:56:14.191Z" }, + { url = "https://files.pythonhosted.org/packages/97/4b/e78b854d82f66bb974189135d31fce265dee0f5344f64dd0d345158a5973/aiohttp-3.13.2-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:9e8f8afb552297aca127c90cb840e9a1d4bfd6a10d7d8f2d9176e1acc69bad30", size = 1723789, upload-time = "2025-10-28T20:56:16.101Z" }, + { url = "https://files.pythonhosted.org/packages/ed/fc/9d2ccc794fc9b9acd1379d625c3a8c64a45508b5091c546dea273a41929e/aiohttp-3.13.2-cp311-cp311-musllinux_1_2_armv7l.whl", hash = "sha256:ed2f9c7216e53c3df02264f25d824b079cc5914f9e2deba94155190ef648ee40", size = 1718104, upload-time = "2025-10-28T20:56:17.655Z" }, + { url = "https://files.pythonhosted.org/packages/66/65/34564b8765ea5c7d79d23c9113135d1dd3609173da13084830f1507d56cf/aiohttp-3.13.2-cp311-cp311-musllinux_1_2_ppc64le.whl", hash = "sha256:99c5280a329d5fa18ef30fd10c793a190d996567667908bef8a7f81f8202b948", size = 1785584, upload-time = "2025-10-28T20:56:19.238Z" }, + { url = "https://files.pythonhosted.org/packages/30/be/f6a7a426e02fc82781afd62016417b3948e2207426d90a0e478790d1c8a4/aiohttp-3.13.2-cp311-cp311-musllinux_1_2_riscv64.whl", hash = "sha256:2ca6ffef405fc9c09a746cb5d019c1672cd7f402542e379afc66b370833170cf", size = 1595126, upload-time = "2025-10-28T20:56:20.836Z" }, + { url = "https://files.pythonhosted.org/packages/e5/c7/8e22d5d28f94f67d2af496f14a83b3c155d915d1fe53d94b66d425ec5b42/aiohttp-3.13.2-cp311-cp311-musllinux_1_2_s390x.whl", hash = "sha256:47f438b1a28e926c37632bff3c44df7d27c9b57aaf4e34b1def3c07111fdb782", size = 1800665, upload-time = "2025-10-28T20:56:22.922Z" }, + { url = "https://files.pythonhosted.org/packages/d1/11/91133c8b68b1da9fc16555706aa7276fdf781ae2bb0876c838dd86b8116e/aiohttp-3.13.2-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:9acda8604a57bb60544e4646a4615c1866ee6c04a8edef9b8ee6fd1d8fa2ddc8", size = 1739532, upload-time = "2025-10-28T20:56:25.924Z" }, + { url = "https://files.pythonhosted.org/packages/17/6b/3747644d26a998774b21a616016620293ddefa4d63af6286f389aedac844/aiohttp-3.13.2-cp311-cp311-win32.whl", hash = "sha256:868e195e39b24aaa930b063c08bb0c17924899c16c672a28a65afded9c46c6ec", size = 431876, upload-time = "2025-10-28T20:56:27.524Z" }, + { url = "https://files.pythonhosted.org/packages/c3/63/688462108c1a00eb9f05765331c107f95ae86f6b197b865d29e930b7e462/aiohttp-3.13.2-cp311-cp311-win_amd64.whl", hash = "sha256:7fd19df530c292542636c2a9a85854fab93474396a52f1695e799186bbd7f24c", size = 456205, upload-time = "2025-10-28T20:56:29.062Z" }, + { url = "https://files.pythonhosted.org/packages/29/9b/01f00e9856d0a73260e86dd8ed0c2234a466c5c1712ce1c281548df39777/aiohttp-3.13.2-cp312-cp312-macosx_10_13_universal2.whl", hash = "sha256:b1e56bab2e12b2b9ed300218c351ee2a3d8c8fdab5b1ec6193e11a817767e47b", size = 737623, upload-time = "2025-10-28T20:56:30.797Z" }, + { url = "https://files.pythonhosted.org/packages/5a/1b/4be39c445e2b2bd0aab4ba736deb649fabf14f6757f405f0c9685019b9e9/aiohttp-3.13.2-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:364e25edaabd3d37b1db1f0cbcee8c73c9a3727bfa262b83e5e4cf3489a2a9dc", size = 492664, upload-time = "2025-10-28T20:56:32.708Z" }, + { url = "https://files.pythonhosted.org/packages/28/66/d35dcfea8050e131cdd731dff36434390479b4045a8d0b9d7111b0a968f1/aiohttp-3.13.2-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:c5c94825f744694c4b8db20b71dba9a257cd2ba8e010a803042123f3a25d50d7", size = 491808, upload-time = "2025-10-28T20:56:34.57Z" }, + { url = "https://files.pythonhosted.org/packages/00/29/8e4609b93e10a853b65f8291e64985de66d4f5848c5637cddc70e98f01f8/aiohttp-3.13.2-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:ba2715d842ffa787be87cbfce150d5e88c87a98e0b62e0f5aa489169a393dbbb", size = 1738863, upload-time = "2025-10-28T20:56:36.377Z" }, + { url = "https://files.pythonhosted.org/packages/9d/fa/4ebdf4adcc0def75ced1a0d2d227577cd7b1b85beb7edad85fcc87693c75/aiohttp-3.13.2-cp312-cp312-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:585542825c4bc662221fb257889e011a5aa00f1ae4d75d1d246a5225289183e3", size = 1700586, upload-time = "2025-10-28T20:56:38.034Z" }, + { url = "https://files.pythonhosted.org/packages/da/04/73f5f02ff348a3558763ff6abe99c223381b0bace05cd4530a0258e52597/aiohttp-3.13.2-cp312-cp312-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:39d02cb6025fe1aabca329c5632f48c9532a3dabccd859e7e2f110668972331f", size = 1768625, upload-time = "2025-10-28T20:56:39.75Z" }, + { url = "https://files.pythonhosted.org/packages/f8/49/a825b79ffec124317265ca7d2344a86bcffeb960743487cb11988ffb3494/aiohttp-3.13.2-cp312-cp312-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:e67446b19e014d37342f7195f592a2a948141d15a312fe0e700c2fd2f03124f6", size = 1867281, upload-time = "2025-10-28T20:56:41.471Z" }, + { url = "https://files.pythonhosted.org/packages/b9/48/adf56e05f81eac31edcfae45c90928f4ad50ef2e3ea72cb8376162a368f8/aiohttp-3.13.2-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:4356474ad6333e41ccefd39eae869ba15a6c5299c9c01dfdcfdd5c107be4363e", size = 1752431, upload-time = "2025-10-28T20:56:43.162Z" }, + { url = "https://files.pythonhosted.org/packages/30/ab/593855356eead019a74e862f21523db09c27f12fd24af72dbc3555b9bfd9/aiohttp-3.13.2-cp312-cp312-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:eeacf451c99b4525f700f078becff32c32ec327b10dcf31306a8a52d78166de7", size = 1562846, upload-time = "2025-10-28T20:56:44.85Z" }, + { url = "https://files.pythonhosted.org/packages/39/0f/9f3d32271aa8dc35036e9668e31870a9d3b9542dd6b3e2c8a30931cb27ae/aiohttp-3.13.2-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:d8a9b889aeabd7a4e9af0b7f4ab5ad94d42e7ff679aaec6d0db21e3b639ad58d", size = 1699606, upload-time = "2025-10-28T20:56:46.519Z" }, + { url = "https://files.pythonhosted.org/packages/2c/3c/52d2658c5699b6ef7692a3f7128b2d2d4d9775f2a68093f74bca06cf01e1/aiohttp-3.13.2-cp312-cp312-musllinux_1_2_armv7l.whl", hash = "sha256:fa89cb11bc71a63b69568d5b8a25c3ca25b6d54c15f907ca1c130d72f320b76b", size = 1720663, upload-time = "2025-10-28T20:56:48.528Z" }, + { url = "https://files.pythonhosted.org/packages/9b/d4/8f8f3ff1fb7fb9e3f04fcad4e89d8a1cd8fc7d05de67e3de5b15b33008ff/aiohttp-3.13.2-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:8aa7c807df234f693fed0ecd507192fc97692e61fee5702cdc11155d2e5cadc8", size = 1737939, upload-time = "2025-10-28T20:56:50.77Z" }, + { url = "https://files.pythonhosted.org/packages/03/d3/ddd348f8a27a634daae39a1b8e291ff19c77867af438af844bf8b7e3231b/aiohttp-3.13.2-cp312-cp312-musllinux_1_2_riscv64.whl", hash = "sha256:9eb3e33fdbe43f88c3c75fa608c25e7c47bbd80f48d012763cb67c47f39a7e16", size = 1555132, upload-time = "2025-10-28T20:56:52.568Z" }, + { url = "https://files.pythonhosted.org/packages/39/b8/46790692dc46218406f94374903ba47552f2f9f90dad554eed61bfb7b64c/aiohttp-3.13.2-cp312-cp312-musllinux_1_2_s390x.whl", hash = "sha256:9434bc0d80076138ea986833156c5a48c9c7a8abb0c96039ddbb4afc93184169", size = 1764802, upload-time = "2025-10-28T20:56:54.292Z" }, + { url = "https://files.pythonhosted.org/packages/ba/e4/19ce547b58ab2a385e5f0b8aa3db38674785085abcf79b6e0edd1632b12f/aiohttp-3.13.2-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:ff15c147b2ad66da1f2cbb0622313f2242d8e6e8f9b79b5206c84523a4473248", size = 1719512, upload-time = "2025-10-28T20:56:56.428Z" }, + { url = "https://files.pythonhosted.org/packages/70/30/6355a737fed29dcb6dfdd48682d5790cb5eab050f7b4e01f49b121d3acad/aiohttp-3.13.2-cp312-cp312-win32.whl", hash = "sha256:27e569eb9d9e95dbd55c0fc3ec3a9335defbf1d8bc1d20171a49f3c4c607b93e", size = 426690, upload-time = "2025-10-28T20:56:58.736Z" }, + { url = "https://files.pythonhosted.org/packages/0a/0d/b10ac09069973d112de6ef980c1f6bb31cb7dcd0bc363acbdad58f927873/aiohttp-3.13.2-cp312-cp312-win_amd64.whl", hash = "sha256:8709a0f05d59a71f33fd05c17fc11fcb8c30140506e13c2f5e8ee1b8964e1b45", size = 453465, upload-time = "2025-10-28T20:57:00.795Z" }, + { url = "https://files.pythonhosted.org/packages/bf/78/7e90ca79e5aa39f9694dcfd74f4720782d3c6828113bb1f3197f7e7c4a56/aiohttp-3.13.2-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:7519bdc7dfc1940d201651b52bf5e03f5503bda45ad6eacf64dda98be5b2b6be", size = 732139, upload-time = "2025-10-28T20:57:02.455Z" }, + { url = "https://files.pythonhosted.org/packages/db/ed/1f59215ab6853fbaa5c8495fa6cbc39edfc93553426152b75d82a5f32b76/aiohttp-3.13.2-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:088912a78b4d4f547a1f19c099d5a506df17eacec3c6f4375e2831ec1d995742", size = 490082, upload-time = "2025-10-28T20:57:04.784Z" }, + { url = "https://files.pythonhosted.org/packages/68/7b/fe0fe0f5e05e13629d893c760465173a15ad0039c0a5b0d0040995c8075e/aiohttp-3.13.2-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:5276807b9de9092af38ed23ce120539ab0ac955547b38563a9ba4f5b07b95293", size = 489035, upload-time = "2025-10-28T20:57:06.894Z" }, + { url = "https://files.pythonhosted.org/packages/d2/04/db5279e38471b7ac801d7d36a57d1230feeee130bbe2a74f72731b23c2b1/aiohttp-3.13.2-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:1237c1375eaef0db4dcd7c2559f42e8af7b87ea7d295b118c60c36a6e61cb811", size = 1720387, upload-time = "2025-10-28T20:57:08.685Z" }, + { url = "https://files.pythonhosted.org/packages/31/07/8ea4326bd7dae2bd59828f69d7fdc6e04523caa55e4a70f4a8725a7e4ed2/aiohttp-3.13.2-cp313-cp313-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:96581619c57419c3d7d78703d5b78c1e5e5fc0172d60f555bdebaced82ded19a", size = 1688314, upload-time = "2025-10-28T20:57:10.693Z" }, + { url = "https://files.pythonhosted.org/packages/48/ab/3d98007b5b87ffd519d065225438cc3b668b2f245572a8cb53da5dd2b1bc/aiohttp-3.13.2-cp313-cp313-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:a2713a95b47374169409d18103366de1050fe0ea73db358fc7a7acb2880422d4", size = 1756317, upload-time = "2025-10-28T20:57:12.563Z" }, + { url = "https://files.pythonhosted.org/packages/97/3d/801ca172b3d857fafb7b50c7c03f91b72b867a13abca982ed6b3081774ef/aiohttp-3.13.2-cp313-cp313-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:228a1cd556b3caca590e9511a89444925da87d35219a49ab5da0c36d2d943a6a", size = 1858539, upload-time = "2025-10-28T20:57:14.623Z" }, + { url = "https://files.pythonhosted.org/packages/f7/0d/4764669bdf47bd472899b3d3db91fffbe925c8e3038ec591a2fd2ad6a14d/aiohttp-3.13.2-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:ac6cde5fba8d7d8c6ac963dbb0256a9854e9fafff52fbcc58fdf819357892c3e", size = 1739597, upload-time = "2025-10-28T20:57:16.399Z" }, + { url = "https://files.pythonhosted.org/packages/c4/52/7bd3c6693da58ba16e657eb904a5b6decfc48ecd06e9ac098591653b1566/aiohttp-3.13.2-cp313-cp313-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:f2bef8237544f4e42878c61cef4e2839fee6346dc60f5739f876a9c50be7fcdb", size = 1555006, upload-time = "2025-10-28T20:57:18.288Z" }, + { url = "https://files.pythonhosted.org/packages/48/30/9586667acec5993b6f41d2ebcf96e97a1255a85f62f3c653110a5de4d346/aiohttp-3.13.2-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:16f15a4eac3bc2d76c45f7ebdd48a65d41b242eb6c31c2245463b40b34584ded", size = 1683220, upload-time = "2025-10-28T20:57:20.241Z" }, + { url = "https://files.pythonhosted.org/packages/71/01/3afe4c96854cfd7b30d78333852e8e851dceaec1c40fd00fec90c6402dd2/aiohttp-3.13.2-cp313-cp313-musllinux_1_2_armv7l.whl", hash = "sha256:bb7fb776645af5cc58ab804c58d7eba545a97e047254a52ce89c157b5af6cd0b", size = 1712570, upload-time = "2025-10-28T20:57:22.253Z" }, + { url = "https://files.pythonhosted.org/packages/11/2c/22799d8e720f4697a9e66fd9c02479e40a49de3de2f0bbe7f9f78a987808/aiohttp-3.13.2-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:e1b4951125ec10c70802f2cb09736c895861cd39fd9dcb35107b4dc8ae6220b8", size = 1733407, upload-time = "2025-10-28T20:57:24.37Z" }, + { url = "https://files.pythonhosted.org/packages/34/cb/90f15dd029f07cebbd91f8238a8b363978b530cd128488085b5703683594/aiohttp-3.13.2-cp313-cp313-musllinux_1_2_riscv64.whl", hash = "sha256:550bf765101ae721ee1d37d8095f47b1f220650f85fe1af37a90ce75bab89d04", size = 1550093, upload-time = "2025-10-28T20:57:26.257Z" }, + { url = "https://files.pythonhosted.org/packages/69/46/12dce9be9d3303ecbf4d30ad45a7683dc63d90733c2d9fe512be6716cd40/aiohttp-3.13.2-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:fe91b87fc295973096251e2d25a811388e7d8adf3bd2b97ef6ae78bc4ac6c476", size = 1758084, upload-time = "2025-10-28T20:57:28.349Z" }, + { url = "https://files.pythonhosted.org/packages/f9/c8/0932b558da0c302ffd639fc6362a313b98fdf235dc417bc2493da8394df7/aiohttp-3.13.2-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:e0c8e31cfcc4592cb200160344b2fb6ae0f9e4effe06c644b5a125d4ae5ebe23", size = 1716987, upload-time = "2025-10-28T20:57:30.233Z" }, + { url = "https://files.pythonhosted.org/packages/5d/8b/f5bd1a75003daed099baec373aed678f2e9b34f2ad40d85baa1368556396/aiohttp-3.13.2-cp313-cp313-win32.whl", hash = "sha256:0740f31a60848d6edb296a0df827473eede90c689b8f9f2a4cdde74889eb2254", size = 425859, upload-time = "2025-10-28T20:57:32.105Z" }, + { url = "https://files.pythonhosted.org/packages/5d/28/a8a9fc6957b2cee8902414e41816b5ab5536ecf43c3b1843c10e82c559b2/aiohttp-3.13.2-cp313-cp313-win_amd64.whl", hash = "sha256:a88d13e7ca367394908f8a276b89d04a3652044612b9a408a0bb22a5ed976a1a", size = 452192, upload-time = "2025-10-28T20:57:34.166Z" }, + { url = "https://files.pythonhosted.org/packages/9b/36/e2abae1bd815f01c957cbf7be817b3043304e1c87bad526292a0410fdcf9/aiohttp-3.13.2-cp314-cp314-macosx_10_13_universal2.whl", hash = "sha256:2475391c29230e063ef53a66669b7b691c9bfc3f1426a0f7bcdf1216bdbac38b", size = 735234, upload-time = "2025-10-28T20:57:36.415Z" }, + { url = "https://files.pythonhosted.org/packages/ca/e3/1ee62dde9b335e4ed41db6bba02613295a0d5b41f74a783c142745a12763/aiohttp-3.13.2-cp314-cp314-macosx_10_13_x86_64.whl", hash = "sha256:f33c8748abef4d8717bb20e8fb1b3e07c6adacb7fd6beaae971a764cf5f30d61", size = 490733, upload-time = "2025-10-28T20:57:38.205Z" }, + { url = "https://files.pythonhosted.org/packages/1a/aa/7a451b1d6a04e8d15a362af3e9b897de71d86feac3babf8894545d08d537/aiohttp-3.13.2-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:ae32f24bbfb7dbb485a24b30b1149e2f200be94777232aeadba3eecece4d0aa4", size = 491303, upload-time = "2025-10-28T20:57:40.122Z" }, + { url = "https://files.pythonhosted.org/packages/57/1e/209958dbb9b01174870f6a7538cd1f3f28274fdbc88a750c238e2c456295/aiohttp-3.13.2-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:5d7f02042c1f009ffb70067326ef183a047425bb2ff3bc434ead4dd4a4a66a2b", size = 1717965, upload-time = "2025-10-28T20:57:42.28Z" }, + { url = "https://files.pythonhosted.org/packages/08/aa/6a01848d6432f241416bc4866cae8dc03f05a5a884d2311280f6a09c73d6/aiohttp-3.13.2-cp314-cp314-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:93655083005d71cd6c072cdab54c886e6570ad2c4592139c3fb967bfc19e4694", size = 1667221, upload-time = "2025-10-28T20:57:44.869Z" }, + { url = "https://files.pythonhosted.org/packages/87/4f/36c1992432d31bbc789fa0b93c768d2e9047ec8c7177e5cd84ea85155f36/aiohttp-3.13.2-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:0db1e24b852f5f664cd728db140cf11ea0e82450471232a394b3d1a540b0f906", size = 1757178, upload-time = "2025-10-28T20:57:47.216Z" }, + { url = "https://files.pythonhosted.org/packages/ac/b4/8e940dfb03b7e0f68a82b88fd182b9be0a65cb3f35612fe38c038c3112cf/aiohttp-3.13.2-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:b009194665bcd128e23eaddef362e745601afa4641930848af4c8559e88f18f9", size = 1838001, upload-time = "2025-10-28T20:57:49.337Z" }, + { url = "https://files.pythonhosted.org/packages/d7/ef/39f3448795499c440ab66084a9db7d20ca7662e94305f175a80f5b7e0072/aiohttp-3.13.2-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:c038a8fdc8103cd51dbd986ecdce141473ffd9775a7a8057a6ed9c3653478011", size = 1716325, upload-time = "2025-10-28T20:57:51.327Z" }, + { url = "https://files.pythonhosted.org/packages/d7/51/b311500ffc860b181c05d91c59a1313bdd05c82960fdd4035a15740d431e/aiohttp-3.13.2-cp314-cp314-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:66bac29b95a00db411cd758fea0e4b9bdba6d549dfe333f9a945430f5f2cc5a6", size = 1547978, upload-time = "2025-10-28T20:57:53.554Z" }, + { url = "https://files.pythonhosted.org/packages/31/64/b9d733296ef79815226dab8c586ff9e3df41c6aff2e16c06697b2d2e6775/aiohttp-3.13.2-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:4ebf9cfc9ba24a74cf0718f04aac2a3bbe745902cc7c5ebc55c0f3b5777ef213", size = 1682042, upload-time = "2025-10-28T20:57:55.617Z" }, + { url = "https://files.pythonhosted.org/packages/3f/30/43d3e0f9d6473a6db7d472104c4eff4417b1e9df01774cb930338806d36b/aiohttp-3.13.2-cp314-cp314-musllinux_1_2_armv7l.whl", hash = "sha256:a4b88ebe35ce54205c7074f7302bd08a4cb83256a3e0870c72d6f68a3aaf8e49", size = 1680085, upload-time = "2025-10-28T20:57:57.59Z" }, + { url = "https://files.pythonhosted.org/packages/16/51/c709f352c911b1864cfd1087577760ced64b3e5bee2aa88b8c0c8e2e4972/aiohttp-3.13.2-cp314-cp314-musllinux_1_2_ppc64le.whl", hash = "sha256:98c4fb90bb82b70a4ed79ca35f656f4281885be076f3f970ce315402b53099ae", size = 1728238, upload-time = "2025-10-28T20:57:59.525Z" }, + { url = "https://files.pythonhosted.org/packages/19/e2/19bd4c547092b773caeb48ff5ae4b1ae86756a0ee76c16727fcfd281404b/aiohttp-3.13.2-cp314-cp314-musllinux_1_2_riscv64.whl", hash = "sha256:ec7534e63ae0f3759df3a1ed4fa6bc8f75082a924b590619c0dd2f76d7043caa", size = 1544395, upload-time = "2025-10-28T20:58:01.914Z" }, + { url = "https://files.pythonhosted.org/packages/cf/87/860f2803b27dfc5ed7be532832a3498e4919da61299b4a1f8eb89b8ff44d/aiohttp-3.13.2-cp314-cp314-musllinux_1_2_s390x.whl", hash = "sha256:5b927cf9b935a13e33644cbed6c8c4b2d0f25b713d838743f8fe7191b33829c4", size = 1742965, upload-time = "2025-10-28T20:58:03.972Z" }, + { url = "https://files.pythonhosted.org/packages/67/7f/db2fc7618925e8c7a601094d5cbe539f732df4fb570740be88ed9e40e99a/aiohttp-3.13.2-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:88d6c017966a78c5265d996c19cdb79235be5e6412268d7e2ce7dee339471b7a", size = 1697585, upload-time = "2025-10-28T20:58:06.189Z" }, + { url = "https://files.pythonhosted.org/packages/0c/07/9127916cb09bb38284db5036036042b7b2c514c8ebaeee79da550c43a6d6/aiohttp-3.13.2-cp314-cp314-win32.whl", hash = "sha256:f7c183e786e299b5d6c49fb43a769f8eb8e04a2726a2bd5887b98b5cc2d67940", size = 431621, upload-time = "2025-10-28T20:58:08.636Z" }, + { url = "https://files.pythonhosted.org/packages/fb/41/554a8a380df6d3a2bba8a7726429a23f4ac62aaf38de43bb6d6cde7b4d4d/aiohttp-3.13.2-cp314-cp314-win_amd64.whl", hash = "sha256:fe242cd381e0fb65758faf5ad96c2e460df6ee5b2de1072fe97e4127927e00b4", size = 457627, upload-time = "2025-10-28T20:58:11Z" }, + { url = "https://files.pythonhosted.org/packages/c7/8e/3824ef98c039d3951cb65b9205a96dd2b20f22241ee17d89c5701557c826/aiohttp-3.13.2-cp314-cp314t-macosx_10_13_universal2.whl", hash = "sha256:f10d9c0b0188fe85398c61147bbd2a657d616c876863bfeff43376e0e3134673", size = 767360, upload-time = "2025-10-28T20:58:13.358Z" }, + { url = "https://files.pythonhosted.org/packages/a4/0f/6a03e3fc7595421274fa34122c973bde2d89344f8a881b728fa8c774e4f1/aiohttp-3.13.2-cp314-cp314t-macosx_10_13_x86_64.whl", hash = "sha256:e7c952aefdf2460f4ae55c5e9c3e80aa72f706a6317e06020f80e96253b1accd", size = 504616, upload-time = "2025-10-28T20:58:15.339Z" }, + { url = "https://files.pythonhosted.org/packages/c6/aa/ed341b670f1bc8a6f2c6a718353d13b9546e2cef3544f573c6a1ff0da711/aiohttp-3.13.2-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:c20423ce14771d98353d2e25e83591fa75dfa90a3c1848f3d7c68243b4fbded3", size = 509131, upload-time = "2025-10-28T20:58:17.693Z" }, + { url = "https://files.pythonhosted.org/packages/7f/f0/c68dac234189dae5c4bbccc0f96ce0cc16b76632cfc3a08fff180045cfa4/aiohttp-3.13.2-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:e96eb1a34396e9430c19d8338d2ec33015e4a87ef2b4449db94c22412e25ccdf", size = 1864168, upload-time = "2025-10-28T20:58:20.113Z" }, + { url = "https://files.pythonhosted.org/packages/8f/65/75a9a76db8364b5d0e52a0c20eabc5d52297385d9af9c35335b924fafdee/aiohttp-3.13.2-cp314-cp314t-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:23fb0783bc1a33640036465019d3bba069942616a6a2353c6907d7fe1ccdaf4e", size = 1719200, upload-time = "2025-10-28T20:58:22.583Z" }, + { url = "https://files.pythonhosted.org/packages/f5/55/8df2ed78d7f41d232f6bd3ff866b6f617026551aa1d07e2f03458f964575/aiohttp-3.13.2-cp314-cp314t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:2e1a9bea6244a1d05a4e57c295d69e159a5c50d8ef16aa390948ee873478d9a5", size = 1843497, upload-time = "2025-10-28T20:58:24.672Z" }, + { url = "https://files.pythonhosted.org/packages/e9/e0/94d7215e405c5a02ccb6a35c7a3a6cfff242f457a00196496935f700cde5/aiohttp-3.13.2-cp314-cp314t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:0a3d54e822688b56e9f6b5816fb3de3a3a64660efac64e4c2dc435230ad23bad", size = 1935703, upload-time = "2025-10-28T20:58:26.758Z" }, + { url = "https://files.pythonhosted.org/packages/0b/78/1eeb63c3f9b2d1015a4c02788fb543141aad0a03ae3f7a7b669b2483f8d4/aiohttp-3.13.2-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:7a653d872afe9f33497215745da7a943d1dc15b728a9c8da1c3ac423af35178e", size = 1792738, upload-time = "2025-10-28T20:58:29.787Z" }, + { url = "https://files.pythonhosted.org/packages/41/75/aaf1eea4c188e51538c04cc568040e3082db263a57086ea74a7d38c39e42/aiohttp-3.13.2-cp314-cp314t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:56d36e80d2003fa3fc0207fac644216d8532e9504a785ef9a8fd013f84a42c61", size = 1624061, upload-time = "2025-10-28T20:58:32.529Z" }, + { url = "https://files.pythonhosted.org/packages/9b/c2/3b6034de81fbcc43de8aeb209073a2286dfb50b86e927b4efd81cf848197/aiohttp-3.13.2-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:78cd586d8331fb8e241c2dd6b2f4061778cc69e150514b39a9e28dd050475661", size = 1789201, upload-time = "2025-10-28T20:58:34.618Z" }, + { url = "https://files.pythonhosted.org/packages/c9/38/c15dcf6d4d890217dae79d7213988f4e5fe6183d43893a9cf2fe9e84ca8d/aiohttp-3.13.2-cp314-cp314t-musllinux_1_2_armv7l.whl", hash = "sha256:20b10bbfbff766294fe99987f7bb3b74fdd2f1a2905f2562132641ad434dcf98", size = 1776868, upload-time = "2025-10-28T20:58:38.835Z" }, + { url = "https://files.pythonhosted.org/packages/04/75/f74fd178ac81adf4f283a74847807ade5150e48feda6aef024403716c30c/aiohttp-3.13.2-cp314-cp314t-musllinux_1_2_ppc64le.whl", hash = "sha256:9ec49dff7e2b3c85cdeaa412e9d438f0ecd71676fde61ec57027dd392f00c693", size = 1790660, upload-time = "2025-10-28T20:58:41.507Z" }, + { url = "https://files.pythonhosted.org/packages/e7/80/7368bd0d06b16b3aba358c16b919e9c46cf11587dc572091031b0e9e3ef0/aiohttp-3.13.2-cp314-cp314t-musllinux_1_2_riscv64.whl", hash = "sha256:94f05348c4406450f9d73d38efb41d669ad6cd90c7ee194810d0eefbfa875a7a", size = 1617548, upload-time = "2025-10-28T20:58:43.674Z" }, + { url = "https://files.pythonhosted.org/packages/7d/4b/a6212790c50483cb3212e507378fbe26b5086d73941e1ec4b56a30439688/aiohttp-3.13.2-cp314-cp314t-musllinux_1_2_s390x.whl", hash = "sha256:fa4dcb605c6f82a80c7f95713c2b11c3b8e9893b3ebd2bc9bde93165ed6107be", size = 1817240, upload-time = "2025-10-28T20:58:45.787Z" }, + { url = "https://files.pythonhosted.org/packages/ff/f7/ba5f0ba4ea8d8f3c32850912944532b933acbf0f3a75546b89269b9b7dde/aiohttp-3.13.2-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:cf00e5db968c3f67eccd2778574cf64d8b27d95b237770aa32400bd7a1ca4f6c", size = 1762334, upload-time = "2025-10-28T20:58:47.936Z" }, + { url = "https://files.pythonhosted.org/packages/7e/83/1a5a1856574588b1cad63609ea9ad75b32a8353ac995d830bf5da9357364/aiohttp-3.13.2-cp314-cp314t-win32.whl", hash = "sha256:d23b5fe492b0805a50d3371e8a728a9134d8de5447dce4c885f5587294750734", size = 464685, upload-time = "2025-10-28T20:58:50.642Z" }, + { url = "https://files.pythonhosted.org/packages/9f/4d/d22668674122c08f4d56972297c51a624e64b3ed1efaa40187607a7cb66e/aiohttp-3.13.2-cp314-cp314t-win_amd64.whl", hash = "sha256:ff0a7b0a82a7ab905cbda74006318d1b12e37c797eb1b0d4eb3e316cf47f658f", size = 498093, upload-time = "2025-10-28T20:58:52.782Z" }, ] [[package]] @@ -91,57 +128,58 @@ source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "aiohttp", marker = "sys_platform != 'emscripten'" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/6f/6d/d89e846a5444b3d5eb8985a6ddb0daef3774928e1bfbce8e84ec97b0ffa7/aiohttp_cors-0.8.1.tar.gz", hash = "sha256:ccacf9cb84b64939ea15f859a146af1f662a6b1d68175754a07315e305fb1403", size = 38626 } +sdist = { url = "https://files.pythonhosted.org/packages/6f/6d/d89e846a5444b3d5eb8985a6ddb0daef3774928e1bfbce8e84ec97b0ffa7/aiohttp_cors-0.8.1.tar.gz", hash = "sha256:ccacf9cb84b64939ea15f859a146af1f662a6b1d68175754a07315e305fb1403", size = 38626, upload-time = "2025-03-31T14:16:20.048Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/98/3b/40a68de458904bcc143622015fff2352b6461cd92fd66d3527bf1c6f5716/aiohttp_cors-0.8.1-py3-none-any.whl", hash = "sha256:3180cf304c5c712d626b9162b195b1db7ddf976a2a25172b35bb2448b890a80d", size = 25231 }, + { url = "https://files.pythonhosted.org/packages/98/3b/40a68de458904bcc143622015fff2352b6461cd92fd66d3527bf1c6f5716/aiohttp_cors-0.8.1-py3-none-any.whl", hash = "sha256:3180cf304c5c712d626b9162b195b1db7ddf976a2a25172b35bb2448b890a80d", size = 25231, upload-time = "2025-03-31T14:16:18.478Z" }, ] [[package]] name = "aiosignal" -version = "1.3.2" +version = "1.4.0" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "frozenlist", marker = "sys_platform != 'emscripten'" }, + { name = "typing-extensions", marker = "python_full_version < '3.13' and sys_platform != 'emscripten'" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/ba/b5/6d55e80f6d8a08ce22b982eafa278d823b541c925f11ee774b0b9c43473d/aiosignal-1.3.2.tar.gz", hash = "sha256:a8c255c66fafb1e499c9351d0bf32ff2d8a0321595ebac3b93713656d2436f54", size = 19424 } +sdist = { url = "https://files.pythonhosted.org/packages/61/62/06741b579156360248d1ec624842ad0edf697050bbaf7c3e46394e106ad1/aiosignal-1.4.0.tar.gz", hash = "sha256:f47eecd9468083c2029cc99945502cb7708b082c232f9aca65da147157b251c7", size = 25007, upload-time = "2025-07-03T22:54:43.528Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/ec/6a/bc7e17a3e87a2985d3e8f4da4cd0f481060eb78fb08596c42be62c90a4d9/aiosignal-1.3.2-py2.py3-none-any.whl", hash = "sha256:45cde58e409a301715980c2b01d0c28bdde3770d8290b5eb2173759d9acb31a5", size = 7597 }, + { url = "https://files.pythonhosted.org/packages/fb/76/641ae371508676492379f16e2fa48f4e2c11741bd63c48be4b12a6b09cba/aiosignal-1.4.0-py3-none-any.whl", hash = "sha256:053243f8b92b990551949e63930a839ff0cf0b0ebbe0597b0f3fb19e1a0fe82e", size = 7490, upload-time = "2025-07-03T22:54:42.156Z" }, ] [[package]] name = "appdirs" version = "1.4.4" source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/d7/d8/05696357e0311f5b5c316d7b95f46c669dd9c15aaeecbb48c7d0aeb88c40/appdirs-1.4.4.tar.gz", hash = "sha256:7d5d0167b2b1ba821647616af46a749d1c653740dd0d2415100fe26e27afdf41", size = 13470 } +sdist = { url = "https://files.pythonhosted.org/packages/d7/d8/05696357e0311f5b5c316d7b95f46c669dd9c15aaeecbb48c7d0aeb88c40/appdirs-1.4.4.tar.gz", hash = "sha256:7d5d0167b2b1ba821647616af46a749d1c653740dd0d2415100fe26e27afdf41", size = 13470, upload-time = "2020-05-11T07:59:51.037Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/3b/00/2344469e2084fb287c2e0b57b72910309874c3245463acd6cf5e3db69324/appdirs-1.4.4-py2.py3-none-any.whl", hash = "sha256:a841dacd6b99318a741b166adb07e19ee71a274450e68237b4650ca1055ab128", size = 9566 }, + { url = "https://files.pythonhosted.org/packages/3b/00/2344469e2084fb287c2e0b57b72910309874c3245463acd6cf5e3db69324/appdirs-1.4.4-py2.py3-none-any.whl", hash = "sha256:a841dacd6b99318a741b166adb07e19ee71a274450e68237b4650ca1055ab128", size = 9566, upload-time = "2020-05-11T07:59:49.499Z" }, ] [[package]] name = "asynctoolkit" version = "0.1.3" source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/26/b2/bc03730a79cf107b1aaa5b74100088182ad3917b6caf0458ef2b4f61b848/asynctoolkit-0.1.3.tar.gz", hash = "sha256:e221c54ed30d8cf3989df84ce27ec825009f7d5511347901aa9c734420980f16", size = 11128 } +sdist = { url = "https://files.pythonhosted.org/packages/26/b2/bc03730a79cf107b1aaa5b74100088182ad3917b6caf0458ef2b4f61b848/asynctoolkit-0.1.3.tar.gz", hash = "sha256:e221c54ed30d8cf3989df84ce27ec825009f7d5511347901aa9c734420980f16", size = 11128, upload-time = "2025-02-19T13:53:42.936Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/ba/fb/92a0dc19442753b478a81e701f9949425f95759c55b27079ab23c71f515d/asynctoolkit-0.1.3-py3-none-any.whl", hash = "sha256:09e86077ce42cd360bdfbd16b1ee5b973a90240a2341aa88ffa4086437309a43", size = 10738 }, + { url = "https://files.pythonhosted.org/packages/ba/fb/92a0dc19442753b478a81e701f9949425f95759c55b27079ab23c71f515d/asynctoolkit-0.1.3-py3-none-any.whl", hash = "sha256:09e86077ce42cd360bdfbd16b1ee5b973a90240a2341aa88ffa4086437309a43", size = 10738, upload-time = "2025-02-19T13:53:41.531Z" }, ] [[package]] name = "attrs" version = "23.2.0" source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/e3/fc/f800d51204003fa8ae392c4e8278f256206e7a919b708eef054f5f4b650d/attrs-23.2.0.tar.gz", hash = "sha256:935dc3b529c262f6cf76e50877d35a4bd3c1de194fd41f47a2b7ae8f19971f30", size = 780820 } +sdist = { url = "https://files.pythonhosted.org/packages/e3/fc/f800d51204003fa8ae392c4e8278f256206e7a919b708eef054f5f4b650d/attrs-23.2.0.tar.gz", hash = "sha256:935dc3b529c262f6cf76e50877d35a4bd3c1de194fd41f47a2b7ae8f19971f30", size = 780820, upload-time = "2023-12-31T06:30:32.926Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/e0/44/827b2a91a5816512fcaf3cc4ebc465ccd5d598c45cefa6703fcf4a79018f/attrs-23.2.0-py3-none-any.whl", hash = "sha256:99b87a485a5820b23b879f04c2305b44b951b502fd64be915879d77a7e8fc6f1", size = 60752 }, + { url = "https://files.pythonhosted.org/packages/e0/44/827b2a91a5816512fcaf3cc4ebc465ccd5d598c45cefa6703fcf4a79018f/attrs-23.2.0-py3-none-any.whl", hash = "sha256:99b87a485a5820b23b879f04c2305b44b951b502fd64be915879d77a7e8fc6f1", size = 60752, upload-time = "2023-12-31T06:30:30.772Z" }, ] [[package]] name = "boolean-py" version = "5.0" source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/c4/cf/85379f13b76f3a69bca86b60237978af17d6aa0bc5998978c3b8cf05abb2/boolean_py-5.0.tar.gz", hash = "sha256:60cbc4bad079753721d32649545505362c754e121570ada4658b852a3a318d95", size = 37047 } +sdist = { url = "https://files.pythonhosted.org/packages/c4/cf/85379f13b76f3a69bca86b60237978af17d6aa0bc5998978c3b8cf05abb2/boolean_py-5.0.tar.gz", hash = "sha256:60cbc4bad079753721d32649545505362c754e121570ada4658b852a3a318d95", size = 37047, upload-time = "2025-04-03T10:39:49.734Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/e5/ca/78d423b324b8d77900030fa59c4aa9054261ef0925631cd2501dd015b7b7/boolean_py-5.0-py3-none-any.whl", hash = "sha256:ef28a70bd43115208441b53a045d1549e2f0ec6e3d08a9d142cbc41c1938e8d9", size = 26577 }, + { url = "https://files.pythonhosted.org/packages/e5/ca/78d423b324b8d77900030fa59c4aa9054261ef0925631cd2501dd015b7b7/boolean_py-5.0-py3-none-any.whl", hash = "sha256:ef28a70bd43115208441b53a045d1549e2f0ec6e3d08a9d142cbc41c1938e8d9", size = 26577, upload-time = "2025-04-03T10:39:48.449Z" }, ] [[package]] @@ -151,133 +189,158 @@ source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "attrs" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/29/7b/da4aa2f95afb2f28010453d03d6eedf018f9e085bd001f039e15731aba89/cattrs-24.1.3.tar.gz", hash = "sha256:981a6ef05875b5bb0c7fb68885546186d306f10f0f6718fe9b96c226e68821ff", size = 426684 } +sdist = { url = "https://files.pythonhosted.org/packages/29/7b/da4aa2f95afb2f28010453d03d6eedf018f9e085bd001f039e15731aba89/cattrs-24.1.3.tar.gz", hash = "sha256:981a6ef05875b5bb0c7fb68885546186d306f10f0f6718fe9b96c226e68821ff", size = 426684, upload-time = "2025-03-25T15:01:00.325Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/3c/ee/d68a3de23867a9156bab7e0a22fb9a0305067ee639032a22982cf7f725e7/cattrs-24.1.3-py3-none-any.whl", hash = "sha256:adf957dddd26840f27ffbd060a6c4dd3b2192c5b7c2c0525ef1bd8131d8a83f5", size = 66462 }, + { url = "https://files.pythonhosted.org/packages/3c/ee/d68a3de23867a9156bab7e0a22fb9a0305067ee639032a22982cf7f725e7/cattrs-24.1.3-py3-none-any.whl", hash = "sha256:adf957dddd26840f27ffbd060a6c4dd3b2192c5b7c2c0525ef1bd8131d8a83f5", size = 66462, upload-time = "2025-03-25T15:00:58.663Z" }, ] [[package]] name = "certifi" -version = "2025.1.31" +version = "2025.10.5" source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/1c/ab/c9f1e32b7b1bf505bf26f0ef697775960db7932abeb7b516de930ba2705f/certifi-2025.1.31.tar.gz", hash = "sha256:3d5da6925056f6f18f119200434a4780a94263f10d1c21d032a6f6b2baa20651", size = 167577 } +sdist = { url = "https://files.pythonhosted.org/packages/4c/5b/b6ce21586237c77ce67d01dc5507039d444b630dd76611bbca2d8e5dcd91/certifi-2025.10.5.tar.gz", hash = "sha256:47c09d31ccf2acf0be3f701ea53595ee7e0b8fa08801c6624be771df09ae7b43", size = 164519, upload-time = "2025-10-05T04:12:15.808Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/38/fc/bce832fd4fd99766c04d1ee0eead6b0ec6486fb100ae5e74c1d91292b982/certifi-2025.1.31-py3-none-any.whl", hash = "sha256:ca78db4565a652026a4db2bcdf68f2fb589ea80d0be70e03929ed730746b84fe", size = 166393 }, + { url = "https://files.pythonhosted.org/packages/e4/37/af0d2ef3967ac0d6113837b44a4f0bfe1328c2b9763bd5b1744520e5cfed/certifi-2025.10.5-py3-none-any.whl", hash = "sha256:0f212c2744a9bb6de0c56639a6f68afe01ecd92d91f14ae897c4fe7bbeeef0de", size = 163286, upload-time = "2025-10-05T04:12:14.03Z" }, ] [[package]] name = "cfgv" version = "3.4.0" source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/11/74/539e56497d9bd1d484fd863dd69cbbfa653cd2aa27abfe35653494d85e94/cfgv-3.4.0.tar.gz", hash = "sha256:e52591d4c5f5dead8e0f673fb16db7949d2cfb3f7da4582893288f0ded8fe560", size = 7114 } +sdist = { url = "https://files.pythonhosted.org/packages/11/74/539e56497d9bd1d484fd863dd69cbbfa653cd2aa27abfe35653494d85e94/cfgv-3.4.0.tar.gz", hash = "sha256:e52591d4c5f5dead8e0f673fb16db7949d2cfb3f7da4582893288f0ded8fe560", size = 7114, upload-time = "2023-08-12T20:38:17.776Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/c5/55/51844dd50c4fc7a33b653bfaba4c2456f06955289ca770a5dbd5fd267374/cfgv-3.4.0-py2.py3-none-any.whl", hash = "sha256:b7265b1f29fd3316bfcd2b330d63d024f2bfd8bcb8b0272f8e19a504856c48f9", size = 7249 }, + { url = "https://files.pythonhosted.org/packages/c5/55/51844dd50c4fc7a33b653bfaba4c2456f06955289ca770a5dbd5fd267374/cfgv-3.4.0-py2.py3-none-any.whl", hash = "sha256:b7265b1f29fd3316bfcd2b330d63d024f2bfd8bcb8b0272f8e19a504856c48f9", size = 7249, upload-time = "2023-08-12T20:38:16.269Z" }, ] [[package]] name = "chardet" version = "5.2.0" source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/f3/0d/f7b6ab21ec75897ed80c17d79b15951a719226b9fababf1e40ea74d69079/chardet-5.2.0.tar.gz", hash = "sha256:1b3b6ff479a8c414bc3fa2c0852995695c4a026dcd6d0633b2dd092ca39c1cf7", size = 2069618 } +sdist = { url = "https://files.pythonhosted.org/packages/f3/0d/f7b6ab21ec75897ed80c17d79b15951a719226b9fababf1e40ea74d69079/chardet-5.2.0.tar.gz", hash = "sha256:1b3b6ff479a8c414bc3fa2c0852995695c4a026dcd6d0633b2dd092ca39c1cf7", size = 2069618, upload-time = "2023-08-01T19:23:02.662Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/38/6f/f5fbc992a329ee4e0f288c1fe0e2ad9485ed064cac731ed2fe47dcc38cbf/chardet-5.2.0-py3-none-any.whl", hash = "sha256:e1cf59446890a00105fe7b7912492ea04b6e6f06d4b742b2c788469e34c82970", size = 199385 }, + { url = "https://files.pythonhosted.org/packages/38/6f/f5fbc992a329ee4e0f288c1fe0e2ad9485ed064cac731ed2fe47dcc38cbf/chardet-5.2.0-py3-none-any.whl", hash = "sha256:e1cf59446890a00105fe7b7912492ea04b6e6f06d4b742b2c788469e34c82970", size = 199385, upload-time = "2023-08-01T19:23:00.661Z" }, ] [[package]] name = "charset-normalizer" -version = "3.4.1" -source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/16/b0/572805e227f01586461c80e0fd25d65a2115599cc9dad142fee4b747c357/charset_normalizer-3.4.1.tar.gz", hash = "sha256:44251f18cd68a75b56585dd00dae26183e102cd5e0f9f1466e6df5da2ed64ea3", size = 123188 } -wheels = [ - { url = "https://files.pythonhosted.org/packages/72/80/41ef5d5a7935d2d3a773e3eaebf0a9350542f2cab4eac59a7a4741fbbbbe/charset_normalizer-3.4.1-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:8bfa33f4f2672964266e940dd22a195989ba31669bd84629f05fab3ef4e2d125", size = 194995 }, - { url = "https://files.pythonhosted.org/packages/7a/28/0b9fefa7b8b080ec492110af6d88aa3dea91c464b17d53474b6e9ba5d2c5/charset_normalizer-3.4.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:28bf57629c75e810b6ae989f03c0828d64d6b26a5e205535585f96093e405ed1", size = 139471 }, - { url = "https://files.pythonhosted.org/packages/71/64/d24ab1a997efb06402e3fc07317e94da358e2585165930d9d59ad45fcae2/charset_normalizer-3.4.1-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:f08ff5e948271dc7e18a35641d2f11a4cd8dfd5634f55228b691e62b37125eb3", size = 149831 }, - { url = "https://files.pythonhosted.org/packages/37/ed/be39e5258e198655240db5e19e0b11379163ad7070962d6b0c87ed2c4d39/charset_normalizer-3.4.1-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:234ac59ea147c59ee4da87a0c0f098e9c8d169f4dc2a159ef720f1a61bbe27cd", size = 142335 }, - { url = "https://files.pythonhosted.org/packages/88/83/489e9504711fa05d8dde1574996408026bdbdbd938f23be67deebb5eca92/charset_normalizer-3.4.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:fd4ec41f914fa74ad1b8304bbc634b3de73d2a0889bd32076342a573e0779e00", size = 143862 }, - { url = "https://files.pythonhosted.org/packages/c6/c7/32da20821cf387b759ad24627a9aca289d2822de929b8a41b6241767b461/charset_normalizer-3.4.1-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:eea6ee1db730b3483adf394ea72f808b6e18cf3cb6454b4d86e04fa8c4327a12", size = 145673 }, - { url = "https://files.pythonhosted.org/packages/68/85/f4288e96039abdd5aeb5c546fa20a37b50da71b5cf01e75e87f16cd43304/charset_normalizer-3.4.1-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:c96836c97b1238e9c9e3fe90844c947d5afbf4f4c92762679acfe19927d81d77", size = 140211 }, - { url = "https://files.pythonhosted.org/packages/28/a3/a42e70d03cbdabc18997baf4f0227c73591a08041c149e710045c281f97b/charset_normalizer-3.4.1-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:4d86f7aff21ee58f26dcf5ae81a9addbd914115cdebcbb2217e4f0ed8982e146", size = 148039 }, - { url = "https://files.pythonhosted.org/packages/85/e4/65699e8ab3014ecbe6f5c71d1a55d810fb716bbfd74f6283d5c2aa87febf/charset_normalizer-3.4.1-cp311-cp311-musllinux_1_2_ppc64le.whl", hash = "sha256:09b5e6733cbd160dcc09589227187e242a30a49ca5cefa5a7edd3f9d19ed53fd", size = 151939 }, - { url = "https://files.pythonhosted.org/packages/b1/82/8e9fe624cc5374193de6860aba3ea8070f584c8565ee77c168ec13274bd2/charset_normalizer-3.4.1-cp311-cp311-musllinux_1_2_s390x.whl", hash = "sha256:5777ee0881f9499ed0f71cc82cf873d9a0ca8af166dfa0af8ec4e675b7df48e6", size = 149075 }, - { url = "https://files.pythonhosted.org/packages/3d/7b/82865ba54c765560c8433f65e8acb9217cb839a9e32b42af4aa8e945870f/charset_normalizer-3.4.1-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:237bdbe6159cff53b4f24f397d43c6336c6b0b42affbe857970cefbb620911c8", size = 144340 }, - { url = "https://files.pythonhosted.org/packages/b5/b6/9674a4b7d4d99a0d2df9b215da766ee682718f88055751e1e5e753c82db0/charset_normalizer-3.4.1-cp311-cp311-win32.whl", hash = "sha256:8417cb1f36cc0bc7eaba8ccb0e04d55f0ee52df06df3ad55259b9a323555fc8b", size = 95205 }, - { url = "https://files.pythonhosted.org/packages/1e/ab/45b180e175de4402dcf7547e4fb617283bae54ce35c27930a6f35b6bef15/charset_normalizer-3.4.1-cp311-cp311-win_amd64.whl", hash = "sha256:d7f50a1f8c450f3925cb367d011448c39239bb3eb4117c36a6d354794de4ce76", size = 102441 }, - { url = "https://files.pythonhosted.org/packages/0a/9a/dd1e1cdceb841925b7798369a09279bd1cf183cef0f9ddf15a3a6502ee45/charset_normalizer-3.4.1-cp312-cp312-macosx_10_13_universal2.whl", hash = "sha256:73d94b58ec7fecbc7366247d3b0b10a21681004153238750bb67bd9012414545", size = 196105 }, - { url = "https://files.pythonhosted.org/packages/d3/8c/90bfabf8c4809ecb648f39794cf2a84ff2e7d2a6cf159fe68d9a26160467/charset_normalizer-3.4.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:dad3e487649f498dd991eeb901125411559b22e8d7ab25d3aeb1af367df5efd7", size = 140404 }, - { url = "https://files.pythonhosted.org/packages/ad/8f/e410d57c721945ea3b4f1a04b74f70ce8fa800d393d72899f0a40526401f/charset_normalizer-3.4.1-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:c30197aa96e8eed02200a83fba2657b4c3acd0f0aa4bdc9f6c1af8e8962e0757", size = 150423 }, - { url = "https://files.pythonhosted.org/packages/f0/b8/e6825e25deb691ff98cf5c9072ee0605dc2acfca98af70c2d1b1bc75190d/charset_normalizer-3.4.1-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:2369eea1ee4a7610a860d88f268eb39b95cb588acd7235e02fd5a5601773d4fa", size = 143184 }, - { url = "https://files.pythonhosted.org/packages/3e/a2/513f6cbe752421f16d969e32f3583762bfd583848b763913ddab8d9bfd4f/charset_normalizer-3.4.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:bc2722592d8998c870fa4e290c2eec2c1569b87fe58618e67d38b4665dfa680d", size = 145268 }, - { url = "https://files.pythonhosted.org/packages/74/94/8a5277664f27c3c438546f3eb53b33f5b19568eb7424736bdc440a88a31f/charset_normalizer-3.4.1-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:ffc9202a29ab3920fa812879e95a9e78b2465fd10be7fcbd042899695d75e616", size = 147601 }, - { url = "https://files.pythonhosted.org/packages/7c/5f/6d352c51ee763623a98e31194823518e09bfa48be2a7e8383cf691bbb3d0/charset_normalizer-3.4.1-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:804a4d582ba6e5b747c625bf1255e6b1507465494a40a2130978bda7b932c90b", size = 141098 }, - { url = "https://files.pythonhosted.org/packages/78/d4/f5704cb629ba5ab16d1d3d741396aec6dc3ca2b67757c45b0599bb010478/charset_normalizer-3.4.1-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:0f55e69f030f7163dffe9fd0752b32f070566451afe180f99dbeeb81f511ad8d", size = 149520 }, - { url = "https://files.pythonhosted.org/packages/c5/96/64120b1d02b81785f222b976c0fb79a35875457fa9bb40827678e54d1bc8/charset_normalizer-3.4.1-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:c4c3e6da02df6fa1410a7680bd3f63d4f710232d3139089536310d027950696a", size = 152852 }, - { url = "https://files.pythonhosted.org/packages/84/c9/98e3732278a99f47d487fd3468bc60b882920cef29d1fa6ca460a1fdf4e6/charset_normalizer-3.4.1-cp312-cp312-musllinux_1_2_s390x.whl", hash = "sha256:5df196eb874dae23dcfb968c83d4f8fdccb333330fe1fc278ac5ceeb101003a9", size = 150488 }, - { url = "https://files.pythonhosted.org/packages/13/0e/9c8d4cb99c98c1007cc11eda969ebfe837bbbd0acdb4736d228ccaabcd22/charset_normalizer-3.4.1-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:e358e64305fe12299a08e08978f51fc21fac060dcfcddd95453eabe5b93ed0e1", size = 146192 }, - { url = "https://files.pythonhosted.org/packages/b2/21/2b6b5b860781a0b49427309cb8670785aa543fb2178de875b87b9cc97746/charset_normalizer-3.4.1-cp312-cp312-win32.whl", hash = "sha256:9b23ca7ef998bc739bf6ffc077c2116917eabcc901f88da1b9856b210ef63f35", size = 95550 }, - { url = "https://files.pythonhosted.org/packages/21/5b/1b390b03b1d16c7e382b561c5329f83cc06623916aab983e8ab9239c7d5c/charset_normalizer-3.4.1-cp312-cp312-win_amd64.whl", hash = "sha256:6ff8a4a60c227ad87030d76e99cd1698345d4491638dfa6673027c48b3cd395f", size = 102785 }, - { url = "https://files.pythonhosted.org/packages/38/94/ce8e6f63d18049672c76d07d119304e1e2d7c6098f0841b51c666e9f44a0/charset_normalizer-3.4.1-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:aabfa34badd18f1da5ec1bc2715cadc8dca465868a4e73a0173466b688f29dda", size = 195698 }, - { url = "https://files.pythonhosted.org/packages/24/2e/dfdd9770664aae179a96561cc6952ff08f9a8cd09a908f259a9dfa063568/charset_normalizer-3.4.1-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:22e14b5d70560b8dd51ec22863f370d1e595ac3d024cb8ad7d308b4cd95f8313", size = 140162 }, - { url = "https://files.pythonhosted.org/packages/24/4e/f646b9093cff8fc86f2d60af2de4dc17c759de9d554f130b140ea4738ca6/charset_normalizer-3.4.1-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:8436c508b408b82d87dc5f62496973a1805cd46727c34440b0d29d8a2f50a6c9", size = 150263 }, - { url = "https://files.pythonhosted.org/packages/5e/67/2937f8d548c3ef6e2f9aab0f6e21001056f692d43282b165e7c56023e6dd/charset_normalizer-3.4.1-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:2d074908e1aecee37a7635990b2c6d504cd4766c7bc9fc86d63f9c09af3fa11b", size = 142966 }, - { url = "https://files.pythonhosted.org/packages/52/ed/b7f4f07de100bdb95c1756d3a4d17b90c1a3c53715c1a476f8738058e0fa/charset_normalizer-3.4.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:955f8851919303c92343d2f66165294848d57e9bba6cf6e3625485a70a038d11", size = 144992 }, - { url = "https://files.pythonhosted.org/packages/96/2c/d49710a6dbcd3776265f4c923bb73ebe83933dfbaa841c5da850fe0fd20b/charset_normalizer-3.4.1-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:44ecbf16649486d4aebafeaa7ec4c9fed8b88101f4dd612dcaf65d5e815f837f", size = 147162 }, - { url = "https://files.pythonhosted.org/packages/b4/41/35ff1f9a6bd380303dea55e44c4933b4cc3c4850988927d4082ada230273/charset_normalizer-3.4.1-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:0924e81d3d5e70f8126529951dac65c1010cdf117bb75eb02dd12339b57749dd", size = 140972 }, - { url = "https://files.pythonhosted.org/packages/fb/43/c6a0b685fe6910d08ba971f62cd9c3e862a85770395ba5d9cad4fede33ab/charset_normalizer-3.4.1-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:2967f74ad52c3b98de4c3b32e1a44e32975e008a9cd2a8cc8966d6a5218c5cb2", size = 149095 }, - { url = "https://files.pythonhosted.org/packages/4c/ff/a9a504662452e2d2878512115638966e75633519ec11f25fca3d2049a94a/charset_normalizer-3.4.1-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:c75cb2a3e389853835e84a2d8fb2b81a10645b503eca9bcb98df6b5a43eb8886", size = 152668 }, - { url = "https://files.pythonhosted.org/packages/6c/71/189996b6d9a4b932564701628af5cee6716733e9165af1d5e1b285c530ed/charset_normalizer-3.4.1-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:09b26ae6b1abf0d27570633b2b078a2a20419c99d66fb2823173d73f188ce601", size = 150073 }, - { url = "https://files.pythonhosted.org/packages/e4/93/946a86ce20790e11312c87c75ba68d5f6ad2208cfb52b2d6a2c32840d922/charset_normalizer-3.4.1-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:fa88b843d6e211393a37219e6a1c1df99d35e8fd90446f1118f4216e307e48cd", size = 145732 }, - { url = "https://files.pythonhosted.org/packages/cd/e5/131d2fb1b0dddafc37be4f3a2fa79aa4c037368be9423061dccadfd90091/charset_normalizer-3.4.1-cp313-cp313-win32.whl", hash = "sha256:eb8178fe3dba6450a3e024e95ac49ed3400e506fd4e9e5c32d30adda88cbd407", size = 95391 }, - { url = "https://files.pythonhosted.org/packages/27/f2/4f9a69cc7712b9b5ad8fdb87039fd89abba997ad5cbe690d1835d40405b0/charset_normalizer-3.4.1-cp313-cp313-win_amd64.whl", hash = "sha256:b1ac5992a838106edb89654e0aebfc24f5848ae2547d22c2c3f66454daa11971", size = 102702 }, - { url = "https://files.pythonhosted.org/packages/0e/f6/65ecc6878a89bb1c23a086ea335ad4bf21a588990c3f535a227b9eea9108/charset_normalizer-3.4.1-py3-none-any.whl", hash = "sha256:d98b1668f06378c6dbefec3b92299716b931cd4e6061f3c875a71ced1780ab85", size = 49767 }, +version = "3.4.4" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/13/69/33ddede1939fdd074bce5434295f38fae7136463422fe4fd3e0e89b98062/charset_normalizer-3.4.4.tar.gz", hash = "sha256:94537985111c35f28720e43603b8e7b43a6ecfb2ce1d3058bbe955b73404e21a", size = 129418, upload-time = "2025-10-14T04:42:32.879Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/ed/27/c6491ff4954e58a10f69ad90aca8a1b6fe9c5d3c6f380907af3c37435b59/charset_normalizer-3.4.4-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:6e1fcf0720908f200cd21aa4e6750a48ff6ce4afe7ff5a79a90d5ed8a08296f8", size = 206988, upload-time = "2025-10-14T04:40:33.79Z" }, + { url = "https://files.pythonhosted.org/packages/94/59/2e87300fe67ab820b5428580a53cad894272dbb97f38a7a814a2a1ac1011/charset_normalizer-3.4.4-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:5f819d5fe9234f9f82d75bdfa9aef3a3d72c4d24a6e57aeaebba32a704553aa0", size = 147324, upload-time = "2025-10-14T04:40:34.961Z" }, + { url = "https://files.pythonhosted.org/packages/07/fb/0cf61dc84b2b088391830f6274cb57c82e4da8bbc2efeac8c025edb88772/charset_normalizer-3.4.4-cp311-cp311-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:a59cb51917aa591b1c4e6a43c132f0cdc3c76dbad6155df4e28ee626cc77a0a3", size = 142742, upload-time = "2025-10-14T04:40:36.105Z" }, + { url = "https://files.pythonhosted.org/packages/62/8b/171935adf2312cd745d290ed93cf16cf0dfe320863ab7cbeeae1dcd6535f/charset_normalizer-3.4.4-cp311-cp311-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:8ef3c867360f88ac904fd3f5e1f902f13307af9052646963ee08ff4f131adafc", size = 160863, upload-time = "2025-10-14T04:40:37.188Z" }, + { url = "https://files.pythonhosted.org/packages/09/73/ad875b192bda14f2173bfc1bc9a55e009808484a4b256748d931b6948442/charset_normalizer-3.4.4-cp311-cp311-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:d9e45d7faa48ee908174d8fe84854479ef838fc6a705c9315372eacbc2f02897", size = 157837, upload-time = "2025-10-14T04:40:38.435Z" }, + { url = "https://files.pythonhosted.org/packages/6d/fc/de9cce525b2c5b94b47c70a4b4fb19f871b24995c728e957ee68ab1671ea/charset_normalizer-3.4.4-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:840c25fb618a231545cbab0564a799f101b63b9901f2569faecd6b222ac72381", size = 151550, upload-time = "2025-10-14T04:40:40.053Z" }, + { url = "https://files.pythonhosted.org/packages/55/c2/43edd615fdfba8c6f2dfbd459b25a6b3b551f24ea21981e23fb768503ce1/charset_normalizer-3.4.4-cp311-cp311-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:ca5862d5b3928c4940729dacc329aa9102900382fea192fc5e52eb69d6093815", size = 149162, upload-time = "2025-10-14T04:40:41.163Z" }, + { url = "https://files.pythonhosted.org/packages/03/86/bde4ad8b4d0e9429a4e82c1e8f5c659993a9a863ad62c7df05cf7b678d75/charset_normalizer-3.4.4-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:d9c7f57c3d666a53421049053eaacdd14bbd0a528e2186fcb2e672effd053bb0", size = 150019, upload-time = "2025-10-14T04:40:42.276Z" }, + { url = "https://files.pythonhosted.org/packages/1f/86/a151eb2af293a7e7bac3a739b81072585ce36ccfb4493039f49f1d3cae8c/charset_normalizer-3.4.4-cp311-cp311-musllinux_1_2_armv7l.whl", hash = "sha256:277e970e750505ed74c832b4bf75dac7476262ee2a013f5574dd49075879e161", size = 143310, upload-time = "2025-10-14T04:40:43.439Z" }, + { url = "https://files.pythonhosted.org/packages/b5/fe/43dae6144a7e07b87478fdfc4dbe9efd5defb0e7ec29f5f58a55aeef7bf7/charset_normalizer-3.4.4-cp311-cp311-musllinux_1_2_ppc64le.whl", hash = "sha256:31fd66405eaf47bb62e8cd575dc621c56c668f27d46a61d975a249930dd5e2a4", size = 162022, upload-time = "2025-10-14T04:40:44.547Z" }, + { url = "https://files.pythonhosted.org/packages/80/e6/7aab83774f5d2bca81f42ac58d04caf44f0cc2b65fc6db2b3b2e8a05f3b3/charset_normalizer-3.4.4-cp311-cp311-musllinux_1_2_riscv64.whl", hash = "sha256:0d3d8f15c07f86e9ff82319b3d9ef6f4bf907608f53fe9d92b28ea9ae3d1fd89", size = 149383, upload-time = "2025-10-14T04:40:46.018Z" }, + { url = "https://files.pythonhosted.org/packages/4f/e8/b289173b4edae05c0dde07f69f8db476a0b511eac556dfe0d6bda3c43384/charset_normalizer-3.4.4-cp311-cp311-musllinux_1_2_s390x.whl", hash = "sha256:9f7fcd74d410a36883701fafa2482a6af2ff5ba96b9a620e9e0721e28ead5569", size = 159098, upload-time = "2025-10-14T04:40:47.081Z" }, + { url = "https://files.pythonhosted.org/packages/d8/df/fe699727754cae3f8478493c7f45f777b17c3ef0600e28abfec8619eb49c/charset_normalizer-3.4.4-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:ebf3e58c7ec8a8bed6d66a75d7fb37b55e5015b03ceae72a8e7c74495551e224", size = 152991, upload-time = "2025-10-14T04:40:48.246Z" }, + { url = "https://files.pythonhosted.org/packages/1a/86/584869fe4ddb6ffa3bd9f491b87a01568797fb9bd8933f557dba9771beaf/charset_normalizer-3.4.4-cp311-cp311-win32.whl", hash = "sha256:eecbc200c7fd5ddb9a7f16c7decb07b566c29fa2161a16cf67b8d068bd21690a", size = 99456, upload-time = "2025-10-14T04:40:49.376Z" }, + { url = "https://files.pythonhosted.org/packages/65/f6/62fdd5feb60530f50f7e38b4f6a1d5203f4d16ff4f9f0952962c044e919a/charset_normalizer-3.4.4-cp311-cp311-win_amd64.whl", hash = "sha256:5ae497466c7901d54b639cf42d5b8c1b6a4fead55215500d2f486d34db48d016", size = 106978, upload-time = "2025-10-14T04:40:50.844Z" }, + { url = "https://files.pythonhosted.org/packages/7a/9d/0710916e6c82948b3be62d9d398cb4fcf4e97b56d6a6aeccd66c4b2f2bd5/charset_normalizer-3.4.4-cp311-cp311-win_arm64.whl", hash = "sha256:65e2befcd84bc6f37095f5961e68a6f077bf44946771354a28ad434c2cce0ae1", size = 99969, upload-time = "2025-10-14T04:40:52.272Z" }, + { url = "https://files.pythonhosted.org/packages/f3/85/1637cd4af66fa687396e757dec650f28025f2a2f5a5531a3208dc0ec43f2/charset_normalizer-3.4.4-cp312-cp312-macosx_10_13_universal2.whl", hash = "sha256:0a98e6759f854bd25a58a73fa88833fba3b7c491169f86ce1180c948ab3fd394", size = 208425, upload-time = "2025-10-14T04:40:53.353Z" }, + { url = "https://files.pythonhosted.org/packages/9d/6a/04130023fef2a0d9c62d0bae2649b69f7b7d8d24ea5536feef50551029df/charset_normalizer-3.4.4-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:b5b290ccc2a263e8d185130284f8501e3e36c5e02750fc6b6bdeb2e9e96f1e25", size = 148162, upload-time = "2025-10-14T04:40:54.558Z" }, + { url = "https://files.pythonhosted.org/packages/78/29/62328d79aa60da22c9e0b9a66539feae06ca0f5a4171ac4f7dc285b83688/charset_normalizer-3.4.4-cp312-cp312-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:74bb723680f9f7a6234dcf67aea57e708ec1fbdf5699fb91dfd6f511b0a320ef", size = 144558, upload-time = "2025-10-14T04:40:55.677Z" }, + { url = "https://files.pythonhosted.org/packages/86/bb/b32194a4bf15b88403537c2e120b817c61cd4ecffa9b6876e941c3ee38fe/charset_normalizer-3.4.4-cp312-cp312-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:f1e34719c6ed0b92f418c7c780480b26b5d9c50349e9a9af7d76bf757530350d", size = 161497, upload-time = "2025-10-14T04:40:57.217Z" }, + { url = "https://files.pythonhosted.org/packages/19/89/a54c82b253d5b9b111dc74aca196ba5ccfcca8242d0fb64146d4d3183ff1/charset_normalizer-3.4.4-cp312-cp312-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:2437418e20515acec67d86e12bf70056a33abdacb5cb1655042f6538d6b085a8", size = 159240, upload-time = "2025-10-14T04:40:58.358Z" }, + { url = "https://files.pythonhosted.org/packages/c0/10/d20b513afe03acc89ec33948320a5544d31f21b05368436d580dec4e234d/charset_normalizer-3.4.4-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:11d694519d7f29d6cd09f6ac70028dba10f92f6cdd059096db198c283794ac86", size = 153471, upload-time = "2025-10-14T04:40:59.468Z" }, + { url = "https://files.pythonhosted.org/packages/61/fa/fbf177b55bdd727010f9c0a3c49eefa1d10f960e5f09d1d887bf93c2e698/charset_normalizer-3.4.4-cp312-cp312-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:ac1c4a689edcc530fc9d9aa11f5774b9e2f33f9a0c6a57864e90908f5208d30a", size = 150864, upload-time = "2025-10-14T04:41:00.623Z" }, + { url = "https://files.pythonhosted.org/packages/05/12/9fbc6a4d39c0198adeebbde20b619790e9236557ca59fc40e0e3cebe6f40/charset_normalizer-3.4.4-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:21d142cc6c0ec30d2efee5068ca36c128a30b0f2c53c1c07bd78cb6bc1d3be5f", size = 150647, upload-time = "2025-10-14T04:41:01.754Z" }, + { url = "https://files.pythonhosted.org/packages/ad/1f/6a9a593d52e3e8c5d2b167daf8c6b968808efb57ef4c210acb907c365bc4/charset_normalizer-3.4.4-cp312-cp312-musllinux_1_2_armv7l.whl", hash = "sha256:5dbe56a36425d26d6cfb40ce79c314a2e4dd6211d51d6d2191c00bed34f354cc", size = 145110, upload-time = "2025-10-14T04:41:03.231Z" }, + { url = "https://files.pythonhosted.org/packages/30/42/9a52c609e72471b0fc54386dc63c3781a387bb4fe61c20231a4ebcd58bdd/charset_normalizer-3.4.4-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:5bfbb1b9acf3334612667b61bd3002196fe2a1eb4dd74d247e0f2a4d50ec9bbf", size = 162839, upload-time = "2025-10-14T04:41:04.715Z" }, + { url = "https://files.pythonhosted.org/packages/c4/5b/c0682bbf9f11597073052628ddd38344a3d673fda35a36773f7d19344b23/charset_normalizer-3.4.4-cp312-cp312-musllinux_1_2_riscv64.whl", hash = "sha256:d055ec1e26e441f6187acf818b73564e6e6282709e9bcb5b63f5b23068356a15", size = 150667, upload-time = "2025-10-14T04:41:05.827Z" }, + { url = "https://files.pythonhosted.org/packages/e4/24/a41afeab6f990cf2daf6cb8c67419b63b48cf518e4f56022230840c9bfb2/charset_normalizer-3.4.4-cp312-cp312-musllinux_1_2_s390x.whl", hash = "sha256:af2d8c67d8e573d6de5bc30cdb27e9b95e49115cd9baad5ddbd1a6207aaa82a9", size = 160535, upload-time = "2025-10-14T04:41:06.938Z" }, + { url = "https://files.pythonhosted.org/packages/2a/e5/6a4ce77ed243c4a50a1fecca6aaaab419628c818a49434be428fe24c9957/charset_normalizer-3.4.4-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:780236ac706e66881f3b7f2f32dfe90507a09e67d1d454c762cf642e6e1586e0", size = 154816, upload-time = "2025-10-14T04:41:08.101Z" }, + { url = "https://files.pythonhosted.org/packages/a8/ef/89297262b8092b312d29cdb2517cb1237e51db8ecef2e9af5edbe7b683b1/charset_normalizer-3.4.4-cp312-cp312-win32.whl", hash = "sha256:5833d2c39d8896e4e19b689ffc198f08ea58116bee26dea51e362ecc7cd3ed26", size = 99694, upload-time = "2025-10-14T04:41:09.23Z" }, + { url = "https://files.pythonhosted.org/packages/3d/2d/1e5ed9dd3b3803994c155cd9aacb60c82c331bad84daf75bcb9c91b3295e/charset_normalizer-3.4.4-cp312-cp312-win_amd64.whl", hash = "sha256:a79cfe37875f822425b89a82333404539ae63dbdddf97f84dcbc3d339aae9525", size = 107131, upload-time = "2025-10-14T04:41:10.467Z" }, + { url = "https://files.pythonhosted.org/packages/d0/d9/0ed4c7098a861482a7b6a95603edce4c0d9db2311af23da1fb2b75ec26fc/charset_normalizer-3.4.4-cp312-cp312-win_arm64.whl", hash = "sha256:376bec83a63b8021bb5c8ea75e21c4ccb86e7e45ca4eb81146091b56599b80c3", size = 100390, upload-time = "2025-10-14T04:41:11.915Z" }, + { url = "https://files.pythonhosted.org/packages/97/45/4b3a1239bbacd321068ea6e7ac28875b03ab8bc0aa0966452db17cd36714/charset_normalizer-3.4.4-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:e1f185f86a6f3403aa2420e815904c67b2f9ebc443f045edd0de921108345794", size = 208091, upload-time = "2025-10-14T04:41:13.346Z" }, + { url = "https://files.pythonhosted.org/packages/7d/62/73a6d7450829655a35bb88a88fca7d736f9882a27eacdca2c6d505b57e2e/charset_normalizer-3.4.4-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:6b39f987ae8ccdf0d2642338faf2abb1862340facc796048b604ef14919e55ed", size = 147936, upload-time = "2025-10-14T04:41:14.461Z" }, + { url = "https://files.pythonhosted.org/packages/89/c5/adb8c8b3d6625bef6d88b251bbb0d95f8205831b987631ab0c8bb5d937c2/charset_normalizer-3.4.4-cp313-cp313-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:3162d5d8ce1bb98dd51af660f2121c55d0fa541b46dff7bb9b9f86ea1d87de72", size = 144180, upload-time = "2025-10-14T04:41:15.588Z" }, + { url = "https://files.pythonhosted.org/packages/91/ed/9706e4070682d1cc219050b6048bfd293ccf67b3d4f5a4f39207453d4b99/charset_normalizer-3.4.4-cp313-cp313-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:81d5eb2a312700f4ecaa977a8235b634ce853200e828fbadf3a9c50bab278328", size = 161346, upload-time = "2025-10-14T04:41:16.738Z" }, + { url = "https://files.pythonhosted.org/packages/d5/0d/031f0d95e4972901a2f6f09ef055751805ff541511dc1252ba3ca1f80cf5/charset_normalizer-3.4.4-cp313-cp313-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:5bd2293095d766545ec1a8f612559f6b40abc0eb18bb2f5d1171872d34036ede", size = 158874, upload-time = "2025-10-14T04:41:17.923Z" }, + { url = "https://files.pythonhosted.org/packages/f5/83/6ab5883f57c9c801ce5e5677242328aa45592be8a00644310a008d04f922/charset_normalizer-3.4.4-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:a8a8b89589086a25749f471e6a900d3f662d1d3b6e2e59dcecf787b1cc3a1894", size = 153076, upload-time = "2025-10-14T04:41:19.106Z" }, + { url = "https://files.pythonhosted.org/packages/75/1e/5ff781ddf5260e387d6419959ee89ef13878229732732ee73cdae01800f2/charset_normalizer-3.4.4-cp313-cp313-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:bc7637e2f80d8530ee4a78e878bce464f70087ce73cf7c1caf142416923b98f1", size = 150601, upload-time = "2025-10-14T04:41:20.245Z" }, + { url = "https://files.pythonhosted.org/packages/d7/57/71be810965493d3510a6ca79b90c19e48696fb1ff964da319334b12677f0/charset_normalizer-3.4.4-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:f8bf04158c6b607d747e93949aa60618b61312fe647a6369f88ce2ff16043490", size = 150376, upload-time = "2025-10-14T04:41:21.398Z" }, + { url = "https://files.pythonhosted.org/packages/e5/d5/c3d057a78c181d007014feb7e9f2e65905a6c4ef182c0ddf0de2924edd65/charset_normalizer-3.4.4-cp313-cp313-musllinux_1_2_armv7l.whl", hash = "sha256:554af85e960429cf30784dd47447d5125aaa3b99a6f0683589dbd27e2f45da44", size = 144825, upload-time = "2025-10-14T04:41:22.583Z" }, + { url = "https://files.pythonhosted.org/packages/e6/8c/d0406294828d4976f275ffbe66f00266c4b3136b7506941d87c00cab5272/charset_normalizer-3.4.4-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:74018750915ee7ad843a774364e13a3db91682f26142baddf775342c3f5b1133", size = 162583, upload-time = "2025-10-14T04:41:23.754Z" }, + { url = "https://files.pythonhosted.org/packages/d7/24/e2aa1f18c8f15c4c0e932d9287b8609dd30ad56dbe41d926bd846e22fb8d/charset_normalizer-3.4.4-cp313-cp313-musllinux_1_2_riscv64.whl", hash = "sha256:c0463276121fdee9c49b98908b3a89c39be45d86d1dbaa22957e38f6321d4ce3", size = 150366, upload-time = "2025-10-14T04:41:25.27Z" }, + { url = "https://files.pythonhosted.org/packages/e4/5b/1e6160c7739aad1e2df054300cc618b06bf784a7a164b0f238360721ab86/charset_normalizer-3.4.4-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:362d61fd13843997c1c446760ef36f240cf81d3ebf74ac62652aebaf7838561e", size = 160300, upload-time = "2025-10-14T04:41:26.725Z" }, + { url = "https://files.pythonhosted.org/packages/7a/10/f882167cd207fbdd743e55534d5d9620e095089d176d55cb22d5322f2afd/charset_normalizer-3.4.4-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:9a26f18905b8dd5d685d6d07b0cdf98a79f3c7a918906af7cc143ea2e164c8bc", size = 154465, upload-time = "2025-10-14T04:41:28.322Z" }, + { url = "https://files.pythonhosted.org/packages/89/66/c7a9e1b7429be72123441bfdbaf2bc13faab3f90b933f664db506dea5915/charset_normalizer-3.4.4-cp313-cp313-win32.whl", hash = "sha256:9b35f4c90079ff2e2edc5b26c0c77925e5d2d255c42c74fdb70fb49b172726ac", size = 99404, upload-time = "2025-10-14T04:41:29.95Z" }, + { url = "https://files.pythonhosted.org/packages/c4/26/b9924fa27db384bdcd97ab83b4f0a8058d96ad9626ead570674d5e737d90/charset_normalizer-3.4.4-cp313-cp313-win_amd64.whl", hash = "sha256:b435cba5f4f750aa6c0a0d92c541fb79f69a387c91e61f1795227e4ed9cece14", size = 107092, upload-time = "2025-10-14T04:41:31.188Z" }, + { url = "https://files.pythonhosted.org/packages/af/8f/3ed4bfa0c0c72a7ca17f0380cd9e4dd842b09f664e780c13cff1dcf2ef1b/charset_normalizer-3.4.4-cp313-cp313-win_arm64.whl", hash = "sha256:542d2cee80be6f80247095cc36c418f7bddd14f4a6de45af91dfad36d817bba2", size = 100408, upload-time = "2025-10-14T04:41:32.624Z" }, + { url = "https://files.pythonhosted.org/packages/2a/35/7051599bd493e62411d6ede36fd5af83a38f37c4767b92884df7301db25d/charset_normalizer-3.4.4-cp314-cp314-macosx_10_13_universal2.whl", hash = "sha256:da3326d9e65ef63a817ecbcc0df6e94463713b754fe293eaa03da99befb9a5bd", size = 207746, upload-time = "2025-10-14T04:41:33.773Z" }, + { url = "https://files.pythonhosted.org/packages/10/9a/97c8d48ef10d6cd4fcead2415523221624bf58bcf68a802721a6bc807c8f/charset_normalizer-3.4.4-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:8af65f14dc14a79b924524b1e7fffe304517b2bff5a58bf64f30b98bbc5079eb", size = 147889, upload-time = "2025-10-14T04:41:34.897Z" }, + { url = "https://files.pythonhosted.org/packages/10/bf/979224a919a1b606c82bd2c5fa49b5c6d5727aa47b4312bb27b1734f53cd/charset_normalizer-3.4.4-cp314-cp314-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:74664978bb272435107de04e36db5a9735e78232b85b77d45cfb38f758efd33e", size = 143641, upload-time = "2025-10-14T04:41:36.116Z" }, + { url = "https://files.pythonhosted.org/packages/ba/33/0ad65587441fc730dc7bd90e9716b30b4702dc7b617e6ba4997dc8651495/charset_normalizer-3.4.4-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:752944c7ffbfdd10c074dc58ec2d5a8a4cd9493b314d367c14d24c17684ddd14", size = 160779, upload-time = "2025-10-14T04:41:37.229Z" }, + { url = "https://files.pythonhosted.org/packages/67/ed/331d6b249259ee71ddea93f6f2f0a56cfebd46938bde6fcc6f7b9a3d0e09/charset_normalizer-3.4.4-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:d1f13550535ad8cff21b8d757a3257963e951d96e20ec82ab44bc64aeb62a191", size = 159035, upload-time = "2025-10-14T04:41:38.368Z" }, + { url = "https://files.pythonhosted.org/packages/67/ff/f6b948ca32e4f2a4576aa129d8bed61f2e0543bf9f5f2b7fc3758ed005c9/charset_normalizer-3.4.4-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:ecaae4149d99b1c9e7b88bb03e3221956f68fd6d50be2ef061b2381b61d20838", size = 152542, upload-time = "2025-10-14T04:41:39.862Z" }, + { url = "https://files.pythonhosted.org/packages/16/85/276033dcbcc369eb176594de22728541a925b2632f9716428c851b149e83/charset_normalizer-3.4.4-cp314-cp314-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:cb6254dc36b47a990e59e1068afacdcd02958bdcce30bb50cc1700a8b9d624a6", size = 149524, upload-time = "2025-10-14T04:41:41.319Z" }, + { url = "https://files.pythonhosted.org/packages/9e/f2/6a2a1f722b6aba37050e626530a46a68f74e63683947a8acff92569f979a/charset_normalizer-3.4.4-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:c8ae8a0f02f57a6e61203a31428fa1d677cbe50c93622b4149d5c0f319c1d19e", size = 150395, upload-time = "2025-10-14T04:41:42.539Z" }, + { url = "https://files.pythonhosted.org/packages/60/bb/2186cb2f2bbaea6338cad15ce23a67f9b0672929744381e28b0592676824/charset_normalizer-3.4.4-cp314-cp314-musllinux_1_2_armv7l.whl", hash = "sha256:47cc91b2f4dd2833fddaedd2893006b0106129d4b94fdb6af1f4ce5a9965577c", size = 143680, upload-time = "2025-10-14T04:41:43.661Z" }, + { url = "https://files.pythonhosted.org/packages/7d/a5/bf6f13b772fbb2a90360eb620d52ed8f796f3c5caee8398c3b2eb7b1c60d/charset_normalizer-3.4.4-cp314-cp314-musllinux_1_2_ppc64le.whl", hash = "sha256:82004af6c302b5d3ab2cfc4cc5f29db16123b1a8417f2e25f9066f91d4411090", size = 162045, upload-time = "2025-10-14T04:41:44.821Z" }, + { url = "https://files.pythonhosted.org/packages/df/c5/d1be898bf0dc3ef9030c3825e5d3b83f2c528d207d246cbabe245966808d/charset_normalizer-3.4.4-cp314-cp314-musllinux_1_2_riscv64.whl", hash = "sha256:2b7d8f6c26245217bd2ad053761201e9f9680f8ce52f0fcd8d0755aeae5b2152", size = 149687, upload-time = "2025-10-14T04:41:46.442Z" }, + { url = "https://files.pythonhosted.org/packages/a5/42/90c1f7b9341eef50c8a1cb3f098ac43b0508413f33affd762855f67a410e/charset_normalizer-3.4.4-cp314-cp314-musllinux_1_2_s390x.whl", hash = "sha256:799a7a5e4fb2d5898c60b640fd4981d6a25f1c11790935a44ce38c54e985f828", size = 160014, upload-time = "2025-10-14T04:41:47.631Z" }, + { url = "https://files.pythonhosted.org/packages/76/be/4d3ee471e8145d12795ab655ece37baed0929462a86e72372fd25859047c/charset_normalizer-3.4.4-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:99ae2cffebb06e6c22bdc25801d7b30f503cc87dbd283479e7b606f70aff57ec", size = 154044, upload-time = "2025-10-14T04:41:48.81Z" }, + { url = "https://files.pythonhosted.org/packages/b0/6f/8f7af07237c34a1defe7defc565a9bc1807762f672c0fde711a4b22bf9c0/charset_normalizer-3.4.4-cp314-cp314-win32.whl", hash = "sha256:f9d332f8c2a2fcbffe1378594431458ddbef721c1769d78e2cbc06280d8155f9", size = 99940, upload-time = "2025-10-14T04:41:49.946Z" }, + { url = "https://files.pythonhosted.org/packages/4b/51/8ade005e5ca5b0d80fb4aff72a3775b325bdc3d27408c8113811a7cbe640/charset_normalizer-3.4.4-cp314-cp314-win_amd64.whl", hash = "sha256:8a6562c3700cce886c5be75ade4a5db4214fda19fede41d9792d100288d8f94c", size = 107104, upload-time = "2025-10-14T04:41:51.051Z" }, + { url = "https://files.pythonhosted.org/packages/da/5f/6b8f83a55bb8278772c5ae54a577f3099025f9ade59d0136ac24a0df4bde/charset_normalizer-3.4.4-cp314-cp314-win_arm64.whl", hash = "sha256:de00632ca48df9daf77a2c65a484531649261ec9f25489917f09e455cb09ddb2", size = 100743, upload-time = "2025-10-14T04:41:52.122Z" }, + { url = "https://files.pythonhosted.org/packages/0a/4c/925909008ed5a988ccbb72dcc897407e5d6d3bd72410d69e051fc0c14647/charset_normalizer-3.4.4-py3-none-any.whl", hash = "sha256:7a32c560861a02ff789ad905a2fe94e3f840803362c84fecf1851cb4cf3dc37f", size = 53402, upload-time = "2025-10-14T04:42:31.76Z" }, ] [[package]] name = "colorama" version = "0.4.6" source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/d8/53/6f443c9a4a8358a93a6792e2acffb9d9d5cb0a5cfd8802644b7b1c9a02e4/colorama-0.4.6.tar.gz", hash = "sha256:08695f5cb7ed6e0531a20572697297273c47b8cae5a63ffc6d6ed5c201be6e44", size = 27697 } +sdist = { url = "https://files.pythonhosted.org/packages/d8/53/6f443c9a4a8358a93a6792e2acffb9d9d5cb0a5cfd8802644b7b1c9a02e4/colorama-0.4.6.tar.gz", hash = "sha256:08695f5cb7ed6e0531a20572697297273c47b8cae5a63ffc6d6ed5c201be6e44", size = 27697, upload-time = "2022-10-25T02:36:22.414Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/d1/d6/3965ed04c63042e047cb6a3e6ed1a63a35087b6a609aa3a15ed8ac56c221/colorama-0.4.6-py2.py3-none-any.whl", hash = "sha256:4f1d9991f5acc0ca119f9d443620b77f9d6b33703e51011c16baf57afb285fc6", size = 25335 }, + { url = "https://files.pythonhosted.org/packages/d1/d6/3965ed04c63042e047cb6a3e6ed1a63a35087b6a609aa3a15ed8ac56c221/colorama-0.4.6-py2.py3-none-any.whl", hash = "sha256:4f1d9991f5acc0ca119f9d443620b77f9d6b33703e51011c16baf57afb285fc6", size = 25335, upload-time = "2022-10-25T02:36:20.889Z" }, ] [[package]] name = "dill" version = "0.4.0" source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/12/80/630b4b88364e9a8c8c5797f4602d0f76ef820909ee32f0bacb9f90654042/dill-0.4.0.tar.gz", hash = "sha256:0633f1d2df477324f53a895b02c901fb961bdbf65a17122586ea7019292cbcf0", size = 186976 } +sdist = { url = "https://files.pythonhosted.org/packages/12/80/630b4b88364e9a8c8c5797f4602d0f76ef820909ee32f0bacb9f90654042/dill-0.4.0.tar.gz", hash = "sha256:0633f1d2df477324f53a895b02c901fb961bdbf65a17122586ea7019292cbcf0", size = 186976, upload-time = "2025-04-16T00:41:48.867Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/50/3d/9373ad9c56321fdab5b41197068e1d8c25883b3fea29dd361f9b55116869/dill-0.4.0-py3-none-any.whl", hash = "sha256:44f54bf6412c2c8464c14e8243eb163690a9800dbe2c367330883b19c7561049", size = 119668 }, + { url = "https://files.pythonhosted.org/packages/50/3d/9373ad9c56321fdab5b41197068e1d8c25883b3fea29dd361f9b55116869/dill-0.4.0-py3-none-any.whl", hash = "sha256:44f54bf6412c2c8464c14e8243eb163690a9800dbe2c367330883b19c7561049", size = 119668, upload-time = "2025-04-16T00:41:47.671Z" }, ] [[package]] name = "distlib" -version = "0.3.9" +version = "0.4.0" source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/0d/dd/1bec4c5ddb504ca60fc29472f3d27e8d4da1257a854e1d96742f15c1d02d/distlib-0.3.9.tar.gz", hash = "sha256:a60f20dea646b8a33f3e7772f74dc0b2d0772d2837ee1342a00645c81edf9403", size = 613923 } +sdist = { url = "https://files.pythonhosted.org/packages/96/8e/709914eb2b5749865801041647dc7f4e6d00b549cfe88b65ca192995f07c/distlib-0.4.0.tar.gz", hash = "sha256:feec40075be03a04501a973d81f633735b4b69f98b05450592310c0f401a4e0d", size = 614605, upload-time = "2025-07-17T16:52:00.465Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/91/a1/cf2472db20f7ce4a6be1253a81cfdf85ad9c7885ffbed7047fb72c24cf87/distlib-0.3.9-py2.py3-none-any.whl", hash = "sha256:47f8c22fd27c27e25a65601af709b38e4f0a45ea4fc2e710f65755fa8caaaf87", size = 468973 }, + { url = "https://files.pythonhosted.org/packages/33/6b/e0547afaf41bf2c42e52430072fa5658766e3d65bd4b03a563d1b6336f57/distlib-0.4.0-py2.py3-none-any.whl", hash = "sha256:9659f7d87e46584a30b5780e43ac7a2143098441670ff0a49d5f9034c54a6c16", size = 469047, upload-time = "2025-07-17T16:51:58.613Z" }, ] [[package]] name = "et-xmlfile" version = "2.0.0" source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/d3/38/af70d7ab1ae9d4da450eeec1fa3918940a5fafb9055e934af8d6eb0c2313/et_xmlfile-2.0.0.tar.gz", hash = "sha256:dab3f4764309081ce75662649be815c4c9081e88f0837825f90fd28317d4da54", size = 17234 } +sdist = { url = "https://files.pythonhosted.org/packages/d3/38/af70d7ab1ae9d4da450eeec1fa3918940a5fafb9055e934af8d6eb0c2313/et_xmlfile-2.0.0.tar.gz", hash = "sha256:dab3f4764309081ce75662649be815c4c9081e88f0837825f90fd28317d4da54", size = 17234, upload-time = "2024-10-25T17:25:40.039Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/c1/8b/5fe2cc11fee489817272089c4203e679c63b570a5aaeb18d852ae3cbba6a/et_xmlfile-2.0.0-py3-none-any.whl", hash = "sha256:7a91720bc756843502c3b7504c77b8fe44217c85c537d85037f0f536151b2caa", size = 18059 }, + { url = "https://files.pythonhosted.org/packages/c1/8b/5fe2cc11fee489817272089c4203e679c63b570a5aaeb18d852ae3cbba6a/et_xmlfile-2.0.0-py3-none-any.whl", hash = "sha256:7a91720bc756843502c3b7504c77b8fe44217c85c537d85037f0f536151b2caa", size = 18059, upload-time = "2024-10-25T17:25:39.051Z" }, ] [[package]] name = "exposedfunctionality" -version = "0.3.20" +version = "1.0.2" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "pyyaml" }, { name = "typing-extensions" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/14/2d/293b8dd4a8d021736e3f8c2fe11d44050998886da0cab3f4b8c90b746443/exposedfunctionality-0.3.20.tar.gz", hash = "sha256:f45bfc747177a9306c2c53893818910b32e264246a961ad605202d37bcdbf674", size = 23887 } +sdist = { url = "https://files.pythonhosted.org/packages/b9/e2/b46eec09792009ccee3fa3d8fba3540be1478655612fae8ba3f6f1b871ca/exposedfunctionality-1.0.2.tar.gz", hash = "sha256:6d4a55223041ef91d955d8016c2afbbcedb8e70fd1fdec76dfe69073d9da6f79", size = 68056, upload-time = "2025-09-03T09:38:58.119Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/e2/f9/4b440f7a6592d4f94e4eb084aff7ec4025e8f86292ab4633d6499766252c/exposedfunctionality-0.3.20-py3-none-any.whl", hash = "sha256:aa009389ebf7230493f2b960acd2d5142145eae9fc8f2f679bca9eaa8d1e53c1", size = 27090 }, + { url = "https://files.pythonhosted.org/packages/5f/42/111fdd98410f4cc3c2bcb8cf1e92132f214dc5872b52db5ec84ccf7d16ba/exposedfunctionality-1.0.2-py3-none-any.whl", hash = "sha256:6a58bbd700044a80b11b4fbeaf4458fd034f455847be9036718d9238574d0bc5", size = 28831, upload-time = "2025-09-03T09:38:57.051Z" }, ] [[package]] @@ -288,100 +351,128 @@ dependencies = [ { name = "attrs" }, { name = "tomli" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/4b/b3/ca177719df2db0050599c576023858b86cabe4f54d3beda0e7e673a6892f/fhconfparser-2024.1.tar.gz", hash = "sha256:de8af019f0071e614d523985e1d93e0fce20a409d1c64dead03b1b665d4b2e4d", size = 8357 } +sdist = { url = "https://files.pythonhosted.org/packages/4b/b3/ca177719df2db0050599c576023858b86cabe4f54d3beda0e7e673a6892f/fhconfparser-2024.1.tar.gz", hash = "sha256:de8af019f0071e614d523985e1d93e0fce20a409d1c64dead03b1b665d4b2e4d", size = 8357, upload-time = "2024-01-24T21:48:56.471Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/f6/2b/fd360e1b65ba44179424aa0a8c227c17d7df384f20bb8d38a5cbe23e3ba2/fhconfparser-2024.1-py3-none-any.whl", hash = "sha256:f6048cb646e69a3422a581bc0102150c2b79fe7ff26b82233e5ef52f72820e3e", size = 9221 }, + { url = "https://files.pythonhosted.org/packages/f6/2b/fd360e1b65ba44179424aa0a8c227c17d7df384f20bb8d38a5cbe23e3ba2/fhconfparser-2024.1-py3-none-any.whl", hash = "sha256:f6048cb646e69a3422a581bc0102150c2b79fe7ff26b82233e5ef52f72820e3e", size = 9221, upload-time = "2024-01-24T21:48:54.81Z" }, ] [[package]] name = "filelock" -version = "3.18.0" +version = "3.20.0" source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/0a/10/c23352565a6544bdc5353e0b15fc1c563352101f30e24bf500207a54df9a/filelock-3.18.0.tar.gz", hash = "sha256:adbc88eabb99d2fec8c9c1b229b171f18afa655400173ddc653d5d01501fb9f2", size = 18075 } +sdist = { url = "https://files.pythonhosted.org/packages/58/46/0028a82567109b5ef6e4d2a1f04a583fb513e6cf9527fcdd09afd817deeb/filelock-3.20.0.tar.gz", hash = "sha256:711e943b4ec6be42e1d4e6690b48dc175c822967466bb31c0c293f34334c13f4", size = 18922, upload-time = "2025-10-08T18:03:50.056Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/4d/36/2a115987e2d8c300a974597416d9de88f2444426de9571f4b59b2cca3acc/filelock-3.18.0-py3-none-any.whl", hash = "sha256:c401f4f8377c4464e6db25fff06205fd89bdd83b65eb0488ed1b160f780e21de", size = 16215 }, + { url = "https://files.pythonhosted.org/packages/76/91/7216b27286936c16f5b4d0c530087e4a54eead683e6b0b73dd0c64844af6/filelock-3.20.0-py3-none-any.whl", hash = "sha256:339b4732ffda5cd79b13f4e2711a31b0365ce445d95d243bb996273d072546a2", size = 16054, upload-time = "2025-10-08T18:03:48.35Z" }, ] [[package]] name = "frozenlist" -version = "1.6.0" -source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/ee/f4/d744cba2da59b5c1d88823cf9e8a6c74e4659e2b27604ed973be2a0bf5ab/frozenlist-1.6.0.tar.gz", hash = "sha256:b99655c32c1c8e06d111e7f41c06c29a5318cb1835df23a45518e02a47c63b68", size = 42831 } -wheels = [ - { url = "https://files.pythonhosted.org/packages/53/b5/bc883b5296ec902115c00be161da93bf661199c465ec4c483feec6ea4c32/frozenlist-1.6.0-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:ae8337990e7a45683548ffb2fee1af2f1ed08169284cd829cdd9a7fa7470530d", size = 160912 }, - { url = "https://files.pythonhosted.org/packages/6f/93/51b058b563d0704b39c56baa222828043aafcac17fd3734bec5dbeb619b1/frozenlist-1.6.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:8c952f69dd524558694818a461855f35d36cc7f5c0adddce37e962c85d06eac0", size = 124315 }, - { url = "https://files.pythonhosted.org/packages/c9/e0/46cd35219428d350558b874d595e132d1c17a9471a1bd0d01d518a261e7c/frozenlist-1.6.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:8f5fef13136c4e2dee91bfb9a44e236fff78fc2cd9f838eddfc470c3d7d90afe", size = 122230 }, - { url = "https://files.pythonhosted.org/packages/d1/0f/7ad2ce928ad06d6dd26a61812b959ded573d3e9d0ee6109d96c2be7172e9/frozenlist-1.6.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:716bbba09611b4663ecbb7cd022f640759af8259e12a6ca939c0a6acd49eedba", size = 314842 }, - { url = "https://files.pythonhosted.org/packages/34/76/98cbbd8a20a5c3359a2004ae5e5b216af84a150ccbad67c8f8f30fb2ea91/frozenlist-1.6.0-cp311-cp311-manylinux_2_17_armv7l.manylinux2014_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:7b8c4dc422c1a3ffc550b465090e53b0bf4839047f3e436a34172ac67c45d595", size = 304919 }, - { url = "https://files.pythonhosted.org/packages/9a/fa/258e771ce3a44348c05e6b01dffc2bc67603fba95761458c238cd09a2c77/frozenlist-1.6.0-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:b11534872256e1666116f6587a1592ef395a98b54476addb5e8d352925cb5d4a", size = 324074 }, - { url = "https://files.pythonhosted.org/packages/d5/a4/047d861fd8c538210e12b208c0479912273f991356b6bdee7ea8356b07c9/frozenlist-1.6.0-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:1c6eceb88aaf7221f75be6ab498dc622a151f5f88d536661af3ffc486245a626", size = 321292 }, - { url = "https://files.pythonhosted.org/packages/c0/25/cfec8af758b4525676cabd36efcaf7102c1348a776c0d1ad046b8a7cdc65/frozenlist-1.6.0-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:62c828a5b195570eb4b37369fcbbd58e96c905768d53a44d13044355647838ff", size = 301569 }, - { url = "https://files.pythonhosted.org/packages/87/2f/0c819372fa9f0c07b153124bf58683b8d0ca7bb73ea5ccde9b9ef1745beb/frozenlist-1.6.0-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:e1c6bd2c6399920c9622362ce95a7d74e7f9af9bfec05fff91b8ce4b9647845a", size = 313625 }, - { url = "https://files.pythonhosted.org/packages/50/5f/f0cf8b0fdedffdb76b3745aa13d5dbe404d63493cc211ce8250f2025307f/frozenlist-1.6.0-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:49ba23817781e22fcbd45fd9ff2b9b8cdb7b16a42a4851ab8025cae7b22e96d0", size = 312523 }, - { url = "https://files.pythonhosted.org/packages/e1/6c/38c49108491272d3e84125bbabf2c2d0b304899b52f49f0539deb26ad18d/frozenlist-1.6.0-cp311-cp311-musllinux_1_2_armv7l.whl", hash = "sha256:431ef6937ae0f853143e2ca67d6da76c083e8b1fe3df0e96f3802fd37626e606", size = 322657 }, - { url = "https://files.pythonhosted.org/packages/bd/4b/3bd3bad5be06a9d1b04b1c22be80b5fe65b502992d62fab4bdb25d9366ee/frozenlist-1.6.0-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:9d124b38b3c299ca68433597ee26b7819209cb8a3a9ea761dfe9db3a04bba584", size = 303414 }, - { url = "https://files.pythonhosted.org/packages/5b/89/7e225a30bef6e85dbfe22622c24afe932e9444de3b40d58b1ea589a14ef8/frozenlist-1.6.0-cp311-cp311-musllinux_1_2_ppc64le.whl", hash = "sha256:118e97556306402e2b010da1ef21ea70cb6d6122e580da64c056b96f524fbd6a", size = 320321 }, - { url = "https://files.pythonhosted.org/packages/22/72/7e3acef4dd9e86366cb8f4d8f28e852c2b7e116927e9722b31a6f71ea4b0/frozenlist-1.6.0-cp311-cp311-musllinux_1_2_s390x.whl", hash = "sha256:fb3b309f1d4086b5533cf7bbcf3f956f0ae6469664522f1bde4feed26fba60f1", size = 323975 }, - { url = "https://files.pythonhosted.org/packages/d8/85/e5da03d20507e13c66ce612c9792b76811b7a43e3320cce42d95b85ac755/frozenlist-1.6.0-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:54dece0d21dce4fdb188a1ffc555926adf1d1c516e493c2914d7c370e454bc9e", size = 316553 }, - { url = "https://files.pythonhosted.org/packages/ac/8e/6c609cbd0580ae8a0661c408149f196aade7d325b1ae7adc930501b81acb/frozenlist-1.6.0-cp311-cp311-win32.whl", hash = "sha256:654e4ba1d0b2154ca2f096bed27461cf6160bc7f504a7f9a9ef447c293caf860", size = 115511 }, - { url = "https://files.pythonhosted.org/packages/f2/13/a84804cfde6de12d44ed48ecbf777ba62b12ff09e761f76cdd1ff9e14bb1/frozenlist-1.6.0-cp311-cp311-win_amd64.whl", hash = "sha256:3e911391bffdb806001002c1f860787542f45916c3baf764264a52765d5a5603", size = 120863 }, - { url = "https://files.pythonhosted.org/packages/9c/8a/289b7d0de2fbac832ea80944d809759976f661557a38bb8e77db5d9f79b7/frozenlist-1.6.0-cp312-cp312-macosx_10_13_universal2.whl", hash = "sha256:c5b9e42ace7d95bf41e19b87cec8f262c41d3510d8ad7514ab3862ea2197bfb1", size = 160193 }, - { url = "https://files.pythonhosted.org/packages/19/80/2fd17d322aec7f430549f0669f599997174f93ee17929ea5b92781ec902c/frozenlist-1.6.0-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:ca9973735ce9f770d24d5484dcb42f68f135351c2fc81a7a9369e48cf2998a29", size = 123831 }, - { url = "https://files.pythonhosted.org/packages/99/06/f5812da431273f78c6543e0b2f7de67dfd65eb0a433978b2c9c63d2205e4/frozenlist-1.6.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:6ac40ec76041c67b928ca8aaffba15c2b2ee3f5ae8d0cb0617b5e63ec119ca25", size = 121862 }, - { url = "https://files.pythonhosted.org/packages/d0/31/9e61c6b5fc493cf24d54881731204d27105234d09878be1a5983182cc4a5/frozenlist-1.6.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:95b7a8a3180dfb280eb044fdec562f9b461614c0ef21669aea6f1d3dac6ee576", size = 316361 }, - { url = "https://files.pythonhosted.org/packages/9d/55/22ca9362d4f0222324981470fd50192be200154d51509ee6eb9baa148e96/frozenlist-1.6.0-cp312-cp312-manylinux_2_17_armv7l.manylinux2014_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:c444d824e22da6c9291886d80c7d00c444981a72686e2b59d38b285617cb52c8", size = 307115 }, - { url = "https://files.pythonhosted.org/packages/ae/39/4fff42920a57794881e7bb3898dc7f5f539261711ea411b43bba3cde8b79/frozenlist-1.6.0-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:bb52c8166499a8150bfd38478248572c924c003cbb45fe3bcd348e5ac7c000f9", size = 322505 }, - { url = "https://files.pythonhosted.org/packages/55/f2/88c41f374c1e4cf0092a5459e5f3d6a1e17ed274c98087a76487783df90c/frozenlist-1.6.0-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:b35298b2db9c2468106278537ee529719228950a5fdda686582f68f247d1dc6e", size = 322666 }, - { url = "https://files.pythonhosted.org/packages/75/51/034eeb75afdf3fd03997856195b500722c0b1a50716664cde64e28299c4b/frozenlist-1.6.0-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:d108e2d070034f9d57210f22fefd22ea0d04609fc97c5f7f5a686b3471028590", size = 302119 }, - { url = "https://files.pythonhosted.org/packages/2b/a6/564ecde55ee633270a793999ef4fd1d2c2b32b5a7eec903b1012cb7c5143/frozenlist-1.6.0-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:4e1be9111cb6756868ac242b3c2bd1f09d9aea09846e4f5c23715e7afb647103", size = 316226 }, - { url = "https://files.pythonhosted.org/packages/f1/c8/6c0682c32377f402b8a6174fb16378b683cf6379ab4d2827c580892ab3c7/frozenlist-1.6.0-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:94bb451c664415f02f07eef4ece976a2c65dcbab9c2f1705b7031a3a75349d8c", size = 312788 }, - { url = "https://files.pythonhosted.org/packages/b6/b8/10fbec38f82c5d163ca1750bfff4ede69713badf236a016781cf1f10a0f0/frozenlist-1.6.0-cp312-cp312-musllinux_1_2_armv7l.whl", hash = "sha256:d1a686d0b0949182b8faddea596f3fc11f44768d1f74d4cad70213b2e139d821", size = 325914 }, - { url = "https://files.pythonhosted.org/packages/62/ca/2bf4f3a1bd40cdedd301e6ecfdbb291080d5afc5f9ce350c0739f773d6b9/frozenlist-1.6.0-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:ea8e59105d802c5a38bdbe7362822c522230b3faba2aa35c0fa1765239b7dd70", size = 305283 }, - { url = "https://files.pythonhosted.org/packages/09/64/20cc13ccf94abc2a1f482f74ad210703dc78a590d0b805af1c9aa67f76f9/frozenlist-1.6.0-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:abc4e880a9b920bc5020bf6a431a6bb40589d9bca3975c980495f63632e8382f", size = 319264 }, - { url = "https://files.pythonhosted.org/packages/20/ff/86c6a2bbe98cfc231519f5e6d712a0898488ceac804a917ce014f32e68f6/frozenlist-1.6.0-cp312-cp312-musllinux_1_2_s390x.whl", hash = "sha256:9a79713adfe28830f27a3c62f6b5406c37376c892b05ae070906f07ae4487046", size = 326482 }, - { url = "https://files.pythonhosted.org/packages/2f/da/8e381f66367d79adca245d1d71527aac774e30e291d41ef161ce2d80c38e/frozenlist-1.6.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:9a0318c2068e217a8f5e3b85e35899f5a19e97141a45bb925bb357cfe1daf770", size = 318248 }, - { url = "https://files.pythonhosted.org/packages/39/24/1a1976563fb476ab6f0fa9fefaac7616a4361dbe0461324f9fd7bf425dbe/frozenlist-1.6.0-cp312-cp312-win32.whl", hash = "sha256:853ac025092a24bb3bf09ae87f9127de9fe6e0c345614ac92536577cf956dfcc", size = 115161 }, - { url = "https://files.pythonhosted.org/packages/80/2e/fb4ed62a65f8cd66044706b1013f0010930d8cbb0729a2219561ea075434/frozenlist-1.6.0-cp312-cp312-win_amd64.whl", hash = "sha256:2bdfe2d7e6c9281c6e55523acd6c2bf77963cb422fdc7d142fb0cb6621b66878", size = 120548 }, - { url = "https://files.pythonhosted.org/packages/6f/e5/04c7090c514d96ca00887932417f04343ab94904a56ab7f57861bf63652d/frozenlist-1.6.0-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:1d7fb014fe0fbfee3efd6a94fc635aeaa68e5e1720fe9e57357f2e2c6e1a647e", size = 158182 }, - { url = "https://files.pythonhosted.org/packages/e9/8f/60d0555c61eec855783a6356268314d204137f5e0c53b59ae2fc28938c99/frozenlist-1.6.0-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:01bcaa305a0fdad12745502bfd16a1c75b14558dabae226852f9159364573117", size = 122838 }, - { url = "https://files.pythonhosted.org/packages/5a/a7/d0ec890e3665b4b3b7c05dc80e477ed8dc2e2e77719368e78e2cd9fec9c8/frozenlist-1.6.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:8b314faa3051a6d45da196a2c495e922f987dc848e967d8cfeaee8a0328b1cd4", size = 120980 }, - { url = "https://files.pythonhosted.org/packages/cc/19/9b355a5e7a8eba903a008579964192c3e427444752f20b2144b10bb336df/frozenlist-1.6.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:da62fecac21a3ee10463d153549d8db87549a5e77eefb8c91ac84bb42bb1e4e3", size = 305463 }, - { url = "https://files.pythonhosted.org/packages/9c/8d/5b4c758c2550131d66935ef2fa700ada2461c08866aef4229ae1554b93ca/frozenlist-1.6.0-cp313-cp313-manylinux_2_17_armv7l.manylinux2014_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:d1eb89bf3454e2132e046f9599fbcf0a4483ed43b40f545551a39316d0201cd1", size = 297985 }, - { url = "https://files.pythonhosted.org/packages/48/2c/537ec09e032b5865715726b2d1d9813e6589b571d34d01550c7aeaad7e53/frozenlist-1.6.0-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:d18689b40cb3936acd971f663ccb8e2589c45db5e2c5f07e0ec6207664029a9c", size = 311188 }, - { url = "https://files.pythonhosted.org/packages/31/2f/1aa74b33f74d54817055de9a4961eff798f066cdc6f67591905d4fc82a84/frozenlist-1.6.0-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:e67ddb0749ed066b1a03fba812e2dcae791dd50e5da03be50b6a14d0c1a9ee45", size = 311874 }, - { url = "https://files.pythonhosted.org/packages/bf/f0/cfec18838f13ebf4b37cfebc8649db5ea71a1b25dacd691444a10729776c/frozenlist-1.6.0-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:fc5e64626e6682638d6e44398c9baf1d6ce6bc236d40b4b57255c9d3f9761f1f", size = 291897 }, - { url = "https://files.pythonhosted.org/packages/ea/a5/deb39325cbbea6cd0a46db8ccd76150ae2fcbe60d63243d9df4a0b8c3205/frozenlist-1.6.0-cp313-cp313-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:437cfd39564744ae32ad5929e55b18ebd88817f9180e4cc05e7d53b75f79ce85", size = 305799 }, - { url = "https://files.pythonhosted.org/packages/78/22/6ddec55c5243a59f605e4280f10cee8c95a449f81e40117163383829c241/frozenlist-1.6.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:62dd7df78e74d924952e2feb7357d826af8d2f307557a779d14ddf94d7311be8", size = 302804 }, - { url = "https://files.pythonhosted.org/packages/5d/b7/d9ca9bab87f28855063c4d202936800219e39db9e46f9fb004d521152623/frozenlist-1.6.0-cp313-cp313-musllinux_1_2_armv7l.whl", hash = "sha256:a66781d7e4cddcbbcfd64de3d41a61d6bdde370fc2e38623f30b2bd539e84a9f", size = 316404 }, - { url = "https://files.pythonhosted.org/packages/a6/3a/1255305db7874d0b9eddb4fe4a27469e1fb63720f1fc6d325a5118492d18/frozenlist-1.6.0-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:482fe06e9a3fffbcd41950f9d890034b4a54395c60b5e61fae875d37a699813f", size = 295572 }, - { url = "https://files.pythonhosted.org/packages/2a/f2/8d38eeee39a0e3a91b75867cc102159ecccf441deb6ddf67be96d3410b84/frozenlist-1.6.0-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:e4f9373c500dfc02feea39f7a56e4f543e670212102cc2eeb51d3a99c7ffbde6", size = 307601 }, - { url = "https://files.pythonhosted.org/packages/38/04/80ec8e6b92f61ef085422d7b196822820404f940950dde5b2e367bede8bc/frozenlist-1.6.0-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:e69bb81de06827147b7bfbaeb284d85219fa92d9f097e32cc73675f279d70188", size = 314232 }, - { url = "https://files.pythonhosted.org/packages/3a/58/93b41fb23e75f38f453ae92a2f987274c64637c450285577bd81c599b715/frozenlist-1.6.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:7613d9977d2ab4a9141dde4a149f4357e4065949674c5649f920fec86ecb393e", size = 308187 }, - { url = "https://files.pythonhosted.org/packages/6a/a2/e64df5c5aa36ab3dee5a40d254f3e471bb0603c225f81664267281c46a2d/frozenlist-1.6.0-cp313-cp313-win32.whl", hash = "sha256:4def87ef6d90429f777c9d9de3961679abf938cb6b7b63d4a7eb8a268babfce4", size = 114772 }, - { url = "https://files.pythonhosted.org/packages/a0/77/fead27441e749b2d574bb73d693530d59d520d4b9e9679b8e3cb779d37f2/frozenlist-1.6.0-cp313-cp313-win_amd64.whl", hash = "sha256:37a8a52c3dfff01515e9bbbee0e6063181362f9de3db2ccf9bc96189b557cbfd", size = 119847 }, - { url = "https://files.pythonhosted.org/packages/df/bd/cc6d934991c1e5d9cafda83dfdc52f987c7b28343686aef2e58a9cf89f20/frozenlist-1.6.0-cp313-cp313t-macosx_10_13_universal2.whl", hash = "sha256:46138f5a0773d064ff663d273b309b696293d7a7c00a0994c5c13a5078134b64", size = 174937 }, - { url = "https://files.pythonhosted.org/packages/f2/a2/daf945f335abdbfdd5993e9dc348ef4507436936ab3c26d7cfe72f4843bf/frozenlist-1.6.0-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:f88bc0a2b9c2a835cb888b32246c27cdab5740059fb3688852bf91e915399b91", size = 136029 }, - { url = "https://files.pythonhosted.org/packages/51/65/4c3145f237a31247c3429e1c94c384d053f69b52110a0d04bfc8afc55fb2/frozenlist-1.6.0-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:777704c1d7655b802c7850255639672e90e81ad6fa42b99ce5ed3fbf45e338dd", size = 134831 }, - { url = "https://files.pythonhosted.org/packages/77/38/03d316507d8dea84dfb99bdd515ea245628af964b2bf57759e3c9205cc5e/frozenlist-1.6.0-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:85ef8d41764c7de0dcdaf64f733a27352248493a85a80661f3c678acd27e31f2", size = 392981 }, - { url = "https://files.pythonhosted.org/packages/37/02/46285ef9828f318ba400a51d5bb616ded38db8466836a9cfa39f3903260b/frozenlist-1.6.0-cp313-cp313t-manylinux_2_17_armv7l.manylinux2014_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:da5cb36623f2b846fb25009d9d9215322318ff1c63403075f812b3b2876c8506", size = 371999 }, - { url = "https://files.pythonhosted.org/packages/0d/64/1212fea37a112c3c5c05bfb5f0a81af4836ce349e69be75af93f99644da9/frozenlist-1.6.0-cp313-cp313t-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:cbb56587a16cf0fb8acd19e90ff9924979ac1431baea8681712716a8337577b0", size = 392200 }, - { url = "https://files.pythonhosted.org/packages/81/ce/9a6ea1763e3366e44a5208f76bf37c76c5da570772375e4d0be85180e588/frozenlist-1.6.0-cp313-cp313t-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:c6154c3ba59cda3f954c6333025369e42c3acd0c6e8b6ce31eb5c5b8116c07e0", size = 390134 }, - { url = "https://files.pythonhosted.org/packages/bc/36/939738b0b495b2c6d0c39ba51563e453232813042a8d908b8f9544296c29/frozenlist-1.6.0-cp313-cp313t-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:2e8246877afa3f1ae5c979fe85f567d220f86a50dc6c493b9b7d8191181ae01e", size = 365208 }, - { url = "https://files.pythonhosted.org/packages/b4/8b/939e62e93c63409949c25220d1ba8e88e3960f8ef6a8d9ede8f94b459d27/frozenlist-1.6.0-cp313-cp313t-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:7b0f6cce16306d2e117cf9db71ab3a9e8878a28176aeaf0dbe35248d97b28d0c", size = 385548 }, - { url = "https://files.pythonhosted.org/packages/62/38/22d2873c90102e06a7c5a3a5b82ca47e393c6079413e8a75c72bff067fa8/frozenlist-1.6.0-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:1b8e8cd8032ba266f91136d7105706ad57770f3522eac4a111d77ac126a25a9b", size = 391123 }, - { url = "https://files.pythonhosted.org/packages/44/78/63aaaf533ee0701549500f6d819be092c6065cb5c577edb70c09df74d5d0/frozenlist-1.6.0-cp313-cp313t-musllinux_1_2_armv7l.whl", hash = "sha256:e2ada1d8515d3ea5378c018a5f6d14b4994d4036591a52ceaf1a1549dec8e1ad", size = 394199 }, - { url = "https://files.pythonhosted.org/packages/54/45/71a6b48981d429e8fbcc08454dc99c4c2639865a646d549812883e9c9dd3/frozenlist-1.6.0-cp313-cp313t-musllinux_1_2_i686.whl", hash = "sha256:cdb2c7f071e4026c19a3e32b93a09e59b12000751fc9b0b7758da899e657d215", size = 373854 }, - { url = "https://files.pythonhosted.org/packages/3f/f3/dbf2a5e11736ea81a66e37288bf9f881143a7822b288a992579ba1b4204d/frozenlist-1.6.0-cp313-cp313t-musllinux_1_2_ppc64le.whl", hash = "sha256:03572933a1969a6d6ab509d509e5af82ef80d4a5d4e1e9f2e1cdd22c77a3f4d2", size = 395412 }, - { url = "https://files.pythonhosted.org/packages/b3/f1/c63166806b331f05104d8ea385c4acd511598568b1f3e4e8297ca54f2676/frozenlist-1.6.0-cp313-cp313t-musllinux_1_2_s390x.whl", hash = "sha256:77effc978947548b676c54bbd6a08992759ea6f410d4987d69feea9cd0919911", size = 394936 }, - { url = "https://files.pythonhosted.org/packages/ef/ea/4f3e69e179a430473eaa1a75ff986526571215fefc6b9281cdc1f09a4eb8/frozenlist-1.6.0-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:a2bda8be77660ad4089caf2223fdbd6db1858462c4b85b67fbfa22102021e497", size = 391459 }, - { url = "https://files.pythonhosted.org/packages/d3/c3/0fc2c97dea550df9afd072a37c1e95421652e3206bbeaa02378b24c2b480/frozenlist-1.6.0-cp313-cp313t-win32.whl", hash = "sha256:a4d96dc5bcdbd834ec6b0f91027817214216b5b30316494d2b1aebffb87c534f", size = 128797 }, - { url = "https://files.pythonhosted.org/packages/ae/f5/79c9320c5656b1965634fe4be9c82b12a3305bdbc58ad9cb941131107b20/frozenlist-1.6.0-cp313-cp313t-win_amd64.whl", hash = "sha256:e18036cb4caa17ea151fd5f3d70be9d354c99eb8cf817a3ccde8a7873b074348", size = 134709 }, - { url = "https://files.pythonhosted.org/packages/71/3e/b04a0adda73bd52b390d730071c0d577073d3d26740ee1bad25c3ad0f37b/frozenlist-1.6.0-py3-none-any.whl", hash = "sha256:535eec9987adb04701266b92745d6cdcef2e77669299359c3009c3404dd5d191", size = 12404 }, +version = "1.8.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/2d/f5/c831fac6cc817d26fd54c7eaccd04ef7e0288806943f7cc5bbf69f3ac1f0/frozenlist-1.8.0.tar.gz", hash = "sha256:3ede829ed8d842f6cd48fc7081d7a41001a56f1f38603f9d49bf3020d59a31ad", size = 45875, upload-time = "2025-10-06T05:38:17.865Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/bc/03/077f869d540370db12165c0aa51640a873fb661d8b315d1d4d67b284d7ac/frozenlist-1.8.0-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:09474e9831bc2b2199fad6da3c14c7b0fbdd377cce9d3d77131be28906cb7d84", size = 86912, upload-time = "2025-10-06T05:35:45.98Z" }, + { url = "https://files.pythonhosted.org/packages/df/b5/7610b6bd13e4ae77b96ba85abea1c8cb249683217ef09ac9e0ae93f25a91/frozenlist-1.8.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:17c883ab0ab67200b5f964d2b9ed6b00971917d5d8a92df149dc2c9779208ee9", size = 50046, upload-time = "2025-10-06T05:35:47.009Z" }, + { url = "https://files.pythonhosted.org/packages/6e/ef/0e8f1fe32f8a53dd26bdd1f9347efe0778b0fddf62789ea683f4cc7d787d/frozenlist-1.8.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:fa47e444b8ba08fffd1c18e8cdb9a75db1b6a27f17507522834ad13ed5922b93", size = 50119, upload-time = "2025-10-06T05:35:48.38Z" }, + { url = "https://files.pythonhosted.org/packages/11/b1/71a477adc7c36e5fb628245dfbdea2166feae310757dea848d02bd0689fd/frozenlist-1.8.0-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:2552f44204b744fba866e573be4c1f9048d6a324dfe14475103fd51613eb1d1f", size = 231067, upload-time = "2025-10-06T05:35:49.97Z" }, + { url = "https://files.pythonhosted.org/packages/45/7e/afe40eca3a2dc19b9904c0f5d7edfe82b5304cb831391edec0ac04af94c2/frozenlist-1.8.0-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:957e7c38f250991e48a9a73e6423db1bb9dd14e722a10f6b8bb8e16a0f55f695", size = 233160, upload-time = "2025-10-06T05:35:51.729Z" }, + { url = "https://files.pythonhosted.org/packages/a6/aa/7416eac95603ce428679d273255ffc7c998d4132cfae200103f164b108aa/frozenlist-1.8.0-cp311-cp311-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:8585e3bb2cdea02fc88ffa245069c36555557ad3609e83be0ec71f54fd4abb52", size = 228544, upload-time = "2025-10-06T05:35:53.246Z" }, + { url = "https://files.pythonhosted.org/packages/8b/3d/2a2d1f683d55ac7e3875e4263d28410063e738384d3adc294f5ff3d7105e/frozenlist-1.8.0-cp311-cp311-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:edee74874ce20a373d62dc28b0b18b93f645633c2943fd90ee9d898550770581", size = 243797, upload-time = "2025-10-06T05:35:54.497Z" }, + { url = "https://files.pythonhosted.org/packages/78/1e/2d5565b589e580c296d3bb54da08d206e797d941a83a6fdea42af23be79c/frozenlist-1.8.0-cp311-cp311-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:c9a63152fe95756b85f31186bddf42e4c02c6321207fd6601a1c89ebac4fe567", size = 247923, upload-time = "2025-10-06T05:35:55.861Z" }, + { url = "https://files.pythonhosted.org/packages/aa/c3/65872fcf1d326a7f101ad4d86285c403c87be7d832b7470b77f6d2ed5ddc/frozenlist-1.8.0-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:b6db2185db9be0a04fecf2f241c70b63b1a242e2805be291855078f2b404dd6b", size = 230886, upload-time = "2025-10-06T05:35:57.399Z" }, + { url = "https://files.pythonhosted.org/packages/a0/76/ac9ced601d62f6956f03cc794f9e04c81719509f85255abf96e2510f4265/frozenlist-1.8.0-cp311-cp311-musllinux_1_2_armv7l.whl", hash = "sha256:f4be2e3d8bc8aabd566f8d5b8ba7ecc09249d74ba3c9ed52e54dc23a293f0b92", size = 245731, upload-time = "2025-10-06T05:35:58.563Z" }, + { url = "https://files.pythonhosted.org/packages/b9/49/ecccb5f2598daf0b4a1415497eba4c33c1e8ce07495eb07d2860c731b8d5/frozenlist-1.8.0-cp311-cp311-musllinux_1_2_ppc64le.whl", hash = "sha256:c8d1634419f39ea6f5c427ea2f90ca85126b54b50837f31497f3bf38266e853d", size = 241544, upload-time = "2025-10-06T05:35:59.719Z" }, + { url = "https://files.pythonhosted.org/packages/53/4b/ddf24113323c0bbcc54cb38c8b8916f1da7165e07b8e24a717b4a12cbf10/frozenlist-1.8.0-cp311-cp311-musllinux_1_2_s390x.whl", hash = "sha256:1a7fa382a4a223773ed64242dbe1c9c326ec09457e6b8428efb4118c685c3dfd", size = 241806, upload-time = "2025-10-06T05:36:00.959Z" }, + { url = "https://files.pythonhosted.org/packages/a7/fb/9b9a084d73c67175484ba2789a59f8eebebd0827d186a8102005ce41e1ba/frozenlist-1.8.0-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:11847b53d722050808926e785df837353bd4d75f1d494377e59b23594d834967", size = 229382, upload-time = "2025-10-06T05:36:02.22Z" }, + { url = "https://files.pythonhosted.org/packages/95/a3/c8fb25aac55bf5e12dae5c5aa6a98f85d436c1dc658f21c3ac73f9fa95e5/frozenlist-1.8.0-cp311-cp311-win32.whl", hash = "sha256:27c6e8077956cf73eadd514be8fb04d77fc946a7fe9f7fe167648b0b9085cc25", size = 39647, upload-time = "2025-10-06T05:36:03.409Z" }, + { url = "https://files.pythonhosted.org/packages/0a/f5/603d0d6a02cfd4c8f2a095a54672b3cf967ad688a60fb9faf04fc4887f65/frozenlist-1.8.0-cp311-cp311-win_amd64.whl", hash = "sha256:ac913f8403b36a2c8610bbfd25b8013488533e71e62b4b4adce9c86c8cea905b", size = 44064, upload-time = "2025-10-06T05:36:04.368Z" }, + { url = "https://files.pythonhosted.org/packages/5d/16/c2c9ab44e181f043a86f9a8f84d5124b62dbcb3a02c0977ec72b9ac1d3e0/frozenlist-1.8.0-cp311-cp311-win_arm64.whl", hash = "sha256:d4d3214a0f8394edfa3e303136d0575eece0745ff2b47bd2cb2e66dd92d4351a", size = 39937, upload-time = "2025-10-06T05:36:05.669Z" }, + { url = "https://files.pythonhosted.org/packages/69/29/948b9aa87e75820a38650af445d2ef2b6b8a6fab1a23b6bb9e4ef0be2d59/frozenlist-1.8.0-cp312-cp312-macosx_10_13_universal2.whl", hash = "sha256:78f7b9e5d6f2fdb88cdde9440dc147259b62b9d3b019924def9f6478be254ac1", size = 87782, upload-time = "2025-10-06T05:36:06.649Z" }, + { url = "https://files.pythonhosted.org/packages/64/80/4f6e318ee2a7c0750ed724fa33a4bdf1eacdc5a39a7a24e818a773cd91af/frozenlist-1.8.0-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:229bf37d2e4acdaf808fd3f06e854a4a7a3661e871b10dc1f8f1896a3b05f18b", size = 50594, upload-time = "2025-10-06T05:36:07.69Z" }, + { url = "https://files.pythonhosted.org/packages/2b/94/5c8a2b50a496b11dd519f4a24cb5496cf125681dd99e94c604ccdea9419a/frozenlist-1.8.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:f833670942247a14eafbb675458b4e61c82e002a148f49e68257b79296e865c4", size = 50448, upload-time = "2025-10-06T05:36:08.78Z" }, + { url = "https://files.pythonhosted.org/packages/6a/bd/d91c5e39f490a49df14320f4e8c80161cfcce09f1e2cde1edd16a551abb3/frozenlist-1.8.0-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:494a5952b1c597ba44e0e78113a7266e656b9794eec897b19ead706bd7074383", size = 242411, upload-time = "2025-10-06T05:36:09.801Z" }, + { url = "https://files.pythonhosted.org/packages/8f/83/f61505a05109ef3293dfb1ff594d13d64a2324ac3482be2cedc2be818256/frozenlist-1.8.0-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:96f423a119f4777a4a056b66ce11527366a8bb92f54e541ade21f2374433f6d4", size = 243014, upload-time = "2025-10-06T05:36:11.394Z" }, + { url = "https://files.pythonhosted.org/packages/d8/cb/cb6c7b0f7d4023ddda30cf56b8b17494eb3a79e3fda666bf735f63118b35/frozenlist-1.8.0-cp312-cp312-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:3462dd9475af2025c31cc61be6652dfa25cbfb56cbbf52f4ccfe029f38decaf8", size = 234909, upload-time = "2025-10-06T05:36:12.598Z" }, + { url = "https://files.pythonhosted.org/packages/31/c5/cd7a1f3b8b34af009fb17d4123c5a778b44ae2804e3ad6b86204255f9ec5/frozenlist-1.8.0-cp312-cp312-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:c4c800524c9cd9bac5166cd6f55285957fcfc907db323e193f2afcd4d9abd69b", size = 250049, upload-time = "2025-10-06T05:36:14.065Z" }, + { url = "https://files.pythonhosted.org/packages/c0/01/2f95d3b416c584a1e7f0e1d6d31998c4a795f7544069ee2e0962a4b60740/frozenlist-1.8.0-cp312-cp312-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:d6a5df73acd3399d893dafc71663ad22534b5aa4f94e8a2fabfe856c3c1b6a52", size = 256485, upload-time = "2025-10-06T05:36:15.39Z" }, + { url = "https://files.pythonhosted.org/packages/ce/03/024bf7720b3abaebcff6d0793d73c154237b85bdf67b7ed55e5e9596dc9a/frozenlist-1.8.0-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:405e8fe955c2280ce66428b3ca55e12b3c4e9c336fb2103a4937e891c69a4a29", size = 237619, upload-time = "2025-10-06T05:36:16.558Z" }, + { url = "https://files.pythonhosted.org/packages/69/fa/f8abdfe7d76b731f5d8bd217827cf6764d4f1d9763407e42717b4bed50a0/frozenlist-1.8.0-cp312-cp312-musllinux_1_2_armv7l.whl", hash = "sha256:908bd3f6439f2fef9e85031b59fd4f1297af54415fb60e4254a95f75b3cab3f3", size = 250320, upload-time = "2025-10-06T05:36:17.821Z" }, + { url = "https://files.pythonhosted.org/packages/f5/3c/b051329f718b463b22613e269ad72138cc256c540f78a6de89452803a47d/frozenlist-1.8.0-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:294e487f9ec720bd8ffcebc99d575f7eff3568a08a253d1ee1a0378754b74143", size = 246820, upload-time = "2025-10-06T05:36:19.046Z" }, + { url = "https://files.pythonhosted.org/packages/0f/ae/58282e8f98e444b3f4dd42448ff36fa38bef29e40d40f330b22e7108f565/frozenlist-1.8.0-cp312-cp312-musllinux_1_2_s390x.whl", hash = "sha256:74c51543498289c0c43656701be6b077f4b265868fa7f8a8859c197006efb608", size = 250518, upload-time = "2025-10-06T05:36:20.763Z" }, + { url = "https://files.pythonhosted.org/packages/8f/96/007e5944694d66123183845a106547a15944fbbb7154788cbf7272789536/frozenlist-1.8.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:776f352e8329135506a1d6bf16ac3f87bc25b28e765949282dcc627af36123aa", size = 239096, upload-time = "2025-10-06T05:36:22.129Z" }, + { url = "https://files.pythonhosted.org/packages/66/bb/852b9d6db2fa40be96f29c0d1205c306288f0684df8fd26ca1951d461a56/frozenlist-1.8.0-cp312-cp312-win32.whl", hash = "sha256:433403ae80709741ce34038da08511d4a77062aa924baf411ef73d1146e74faf", size = 39985, upload-time = "2025-10-06T05:36:23.661Z" }, + { url = "https://files.pythonhosted.org/packages/b8/af/38e51a553dd66eb064cdf193841f16f077585d4d28394c2fa6235cb41765/frozenlist-1.8.0-cp312-cp312-win_amd64.whl", hash = "sha256:34187385b08f866104f0c0617404c8eb08165ab1272e884abc89c112e9c00746", size = 44591, upload-time = "2025-10-06T05:36:24.958Z" }, + { url = "https://files.pythonhosted.org/packages/a7/06/1dc65480ab147339fecc70797e9c2f69d9cea9cf38934ce08df070fdb9cb/frozenlist-1.8.0-cp312-cp312-win_arm64.whl", hash = "sha256:fe3c58d2f5db5fbd18c2987cba06d51b0529f52bc3a6cdc33d3f4eab725104bd", size = 40102, upload-time = "2025-10-06T05:36:26.333Z" }, + { url = "https://files.pythonhosted.org/packages/2d/40/0832c31a37d60f60ed79e9dfb5a92e1e2af4f40a16a29abcc7992af9edff/frozenlist-1.8.0-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:8d92f1a84bb12d9e56f818b3a746f3efba93c1b63c8387a73dde655e1e42282a", size = 85717, upload-time = "2025-10-06T05:36:27.341Z" }, + { url = "https://files.pythonhosted.org/packages/30/ba/b0b3de23f40bc55a7057bd38434e25c34fa48e17f20ee273bbde5e0650f3/frozenlist-1.8.0-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:96153e77a591c8adc2ee805756c61f59fef4cf4073a9275ee86fe8cba41241f7", size = 49651, upload-time = "2025-10-06T05:36:28.855Z" }, + { url = "https://files.pythonhosted.org/packages/0c/ab/6e5080ee374f875296c4243c381bbdef97a9ac39c6e3ce1d5f7d42cb78d6/frozenlist-1.8.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:f21f00a91358803399890ab167098c131ec2ddd5f8f5fd5fe9c9f2c6fcd91e40", size = 49417, upload-time = "2025-10-06T05:36:29.877Z" }, + { url = "https://files.pythonhosted.org/packages/d5/4e/e4691508f9477ce67da2015d8c00acd751e6287739123113a9fca6f1604e/frozenlist-1.8.0-cp313-cp313-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:fb30f9626572a76dfe4293c7194a09fb1fe93ba94c7d4f720dfae3b646b45027", size = 234391, upload-time = "2025-10-06T05:36:31.301Z" }, + { url = "https://files.pythonhosted.org/packages/40/76/c202df58e3acdf12969a7895fd6f3bc016c642e6726aa63bd3025e0fc71c/frozenlist-1.8.0-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:eaa352d7047a31d87dafcacbabe89df0aa506abb5b1b85a2fb91bc3faa02d822", size = 233048, upload-time = "2025-10-06T05:36:32.531Z" }, + { url = "https://files.pythonhosted.org/packages/f9/c0/8746afb90f17b73ca5979c7a3958116e105ff796e718575175319b5bb4ce/frozenlist-1.8.0-cp313-cp313-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:03ae967b4e297f58f8c774c7eabcce57fe3c2434817d4385c50661845a058121", size = 226549, upload-time = "2025-10-06T05:36:33.706Z" }, + { url = "https://files.pythonhosted.org/packages/7e/eb/4c7eefc718ff72f9b6c4893291abaae5fbc0c82226a32dcd8ef4f7a5dbef/frozenlist-1.8.0-cp313-cp313-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:f6292f1de555ffcc675941d65fffffb0a5bcd992905015f85d0592201793e0e5", size = 239833, upload-time = "2025-10-06T05:36:34.947Z" }, + { url = "https://files.pythonhosted.org/packages/c2/4e/e5c02187cf704224f8b21bee886f3d713ca379535f16893233b9d672ea71/frozenlist-1.8.0-cp313-cp313-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:29548f9b5b5e3460ce7378144c3010363d8035cea44bc0bf02d57f5a685e084e", size = 245363, upload-time = "2025-10-06T05:36:36.534Z" }, + { url = "https://files.pythonhosted.org/packages/1f/96/cb85ec608464472e82ad37a17f844889c36100eed57bea094518bf270692/frozenlist-1.8.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:ec3cc8c5d4084591b4237c0a272cc4f50a5b03396a47d9caaf76f5d7b38a4f11", size = 229314, upload-time = "2025-10-06T05:36:38.582Z" }, + { url = "https://files.pythonhosted.org/packages/5d/6f/4ae69c550e4cee66b57887daeebe006fe985917c01d0fff9caab9883f6d0/frozenlist-1.8.0-cp313-cp313-musllinux_1_2_armv7l.whl", hash = "sha256:517279f58009d0b1f2e7c1b130b377a349405da3f7621ed6bfae50b10adf20c1", size = 243365, upload-time = "2025-10-06T05:36:40.152Z" }, + { url = "https://files.pythonhosted.org/packages/7a/58/afd56de246cf11780a40a2c28dc7cbabbf06337cc8ddb1c780a2d97e88d8/frozenlist-1.8.0-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:db1e72ede2d0d7ccb213f218df6a078a9c09a7de257c2fe8fcef16d5925230b1", size = 237763, upload-time = "2025-10-06T05:36:41.355Z" }, + { url = "https://files.pythonhosted.org/packages/cb/36/cdfaf6ed42e2644740d4a10452d8e97fa1c062e2a8006e4b09f1b5fd7d63/frozenlist-1.8.0-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:b4dec9482a65c54a5044486847b8a66bf10c9cb4926d42927ec4e8fd5db7fed8", size = 240110, upload-time = "2025-10-06T05:36:42.716Z" }, + { url = "https://files.pythonhosted.org/packages/03/a8/9ea226fbefad669f11b52e864c55f0bd57d3c8d7eb07e9f2e9a0b39502e1/frozenlist-1.8.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:21900c48ae04d13d416f0e1e0c4d81f7931f73a9dfa0b7a8746fb2fe7dd970ed", size = 233717, upload-time = "2025-10-06T05:36:44.251Z" }, + { url = "https://files.pythonhosted.org/packages/1e/0b/1b5531611e83ba7d13ccc9988967ea1b51186af64c42b7a7af465dcc9568/frozenlist-1.8.0-cp313-cp313-win32.whl", hash = "sha256:8b7b94a067d1c504ee0b16def57ad5738701e4ba10cec90529f13fa03c833496", size = 39628, upload-time = "2025-10-06T05:36:45.423Z" }, + { url = "https://files.pythonhosted.org/packages/d8/cf/174c91dbc9cc49bc7b7aab74d8b734e974d1faa8f191c74af9b7e80848e6/frozenlist-1.8.0-cp313-cp313-win_amd64.whl", hash = "sha256:878be833caa6a3821caf85eb39c5ba92d28e85df26d57afb06b35b2efd937231", size = 43882, upload-time = "2025-10-06T05:36:46.796Z" }, + { url = "https://files.pythonhosted.org/packages/c1/17/502cd212cbfa96eb1388614fe39a3fc9ab87dbbe042b66f97acb57474834/frozenlist-1.8.0-cp313-cp313-win_arm64.whl", hash = "sha256:44389d135b3ff43ba8cc89ff7f51f5a0bb6b63d829c8300f79a2fe4fe61bcc62", size = 39676, upload-time = "2025-10-06T05:36:47.8Z" }, + { url = "https://files.pythonhosted.org/packages/d2/5c/3bbfaa920dfab09e76946a5d2833a7cbdf7b9b4a91c714666ac4855b88b4/frozenlist-1.8.0-cp313-cp313t-macosx_10_13_universal2.whl", hash = "sha256:e25ac20a2ef37e91c1b39938b591457666a0fa835c7783c3a8f33ea42870db94", size = 89235, upload-time = "2025-10-06T05:36:48.78Z" }, + { url = "https://files.pythonhosted.org/packages/d2/d6/f03961ef72166cec1687e84e8925838442b615bd0b8854b54923ce5b7b8a/frozenlist-1.8.0-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:07cdca25a91a4386d2e76ad992916a85038a9b97561bf7a3fd12d5d9ce31870c", size = 50742, upload-time = "2025-10-06T05:36:49.837Z" }, + { url = "https://files.pythonhosted.org/packages/1e/bb/a6d12b7ba4c3337667d0e421f7181c82dda448ce4e7ad7ecd249a16fa806/frozenlist-1.8.0-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:4e0c11f2cc6717e0a741f84a527c52616140741cd812a50422f83dc31749fb52", size = 51725, upload-time = "2025-10-06T05:36:50.851Z" }, + { url = "https://files.pythonhosted.org/packages/bc/71/d1fed0ffe2c2ccd70b43714c6cab0f4188f09f8a67a7914a6b46ee30f274/frozenlist-1.8.0-cp313-cp313t-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:b3210649ee28062ea6099cfda39e147fa1bc039583c8ee4481cb7811e2448c51", size = 284533, upload-time = "2025-10-06T05:36:51.898Z" }, + { url = "https://files.pythonhosted.org/packages/c9/1f/fb1685a7b009d89f9bf78a42d94461bc06581f6e718c39344754a5d9bada/frozenlist-1.8.0-cp313-cp313t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:581ef5194c48035a7de2aefc72ac6539823bb71508189e5de01d60c9dcd5fa65", size = 292506, upload-time = "2025-10-06T05:36:53.101Z" }, + { url = "https://files.pythonhosted.org/packages/e6/3b/b991fe1612703f7e0d05c0cf734c1b77aaf7c7d321df4572e8d36e7048c8/frozenlist-1.8.0-cp313-cp313t-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:3ef2d026f16a2b1866e1d86fc4e1291e1ed8a387b2c333809419a2f8b3a77b82", size = 274161, upload-time = "2025-10-06T05:36:54.309Z" }, + { url = "https://files.pythonhosted.org/packages/ca/ec/c5c618767bcdf66e88945ec0157d7f6c4a1322f1473392319b7a2501ded7/frozenlist-1.8.0-cp313-cp313t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:5500ef82073f599ac84d888e3a8c1f77ac831183244bfd7f11eaa0289fb30714", size = 294676, upload-time = "2025-10-06T05:36:55.566Z" }, + { url = "https://files.pythonhosted.org/packages/7c/ce/3934758637d8f8a88d11f0585d6495ef54b2044ed6ec84492a91fa3b27aa/frozenlist-1.8.0-cp313-cp313t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:50066c3997d0091c411a66e710f4e11752251e6d2d73d70d8d5d4c76442a199d", size = 300638, upload-time = "2025-10-06T05:36:56.758Z" }, + { url = "https://files.pythonhosted.org/packages/fc/4f/a7e4d0d467298f42de4b41cbc7ddaf19d3cfeabaf9ff97c20c6c7ee409f9/frozenlist-1.8.0-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:5c1c8e78426e59b3f8005e9b19f6ff46e5845895adbde20ece9218319eca6506", size = 283067, upload-time = "2025-10-06T05:36:57.965Z" }, + { url = "https://files.pythonhosted.org/packages/dc/48/c7b163063d55a83772b268e6d1affb960771b0e203b632cfe09522d67ea5/frozenlist-1.8.0-cp313-cp313t-musllinux_1_2_armv7l.whl", hash = "sha256:eefdba20de0d938cec6a89bd4d70f346a03108a19b9df4248d3cf0d88f1b0f51", size = 292101, upload-time = "2025-10-06T05:36:59.237Z" }, + { url = "https://files.pythonhosted.org/packages/9f/d0/2366d3c4ecdc2fd391e0afa6e11500bfba0ea772764d631bbf82f0136c9d/frozenlist-1.8.0-cp313-cp313t-musllinux_1_2_ppc64le.whl", hash = "sha256:cf253e0e1c3ceb4aaff6df637ce033ff6535fb8c70a764a8f46aafd3d6ab798e", size = 289901, upload-time = "2025-10-06T05:37:00.811Z" }, + { url = "https://files.pythonhosted.org/packages/b8/94/daff920e82c1b70e3618a2ac39fbc01ae3e2ff6124e80739ce5d71c9b920/frozenlist-1.8.0-cp313-cp313t-musllinux_1_2_s390x.whl", hash = "sha256:032efa2674356903cd0261c4317a561a6850f3ac864a63fc1583147fb05a79b0", size = 289395, upload-time = "2025-10-06T05:37:02.115Z" }, + { url = "https://files.pythonhosted.org/packages/e3/20/bba307ab4235a09fdcd3cc5508dbabd17c4634a1af4b96e0f69bfe551ebd/frozenlist-1.8.0-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:6da155091429aeba16851ecb10a9104a108bcd32f6c1642867eadaee401c1c41", size = 283659, upload-time = "2025-10-06T05:37:03.711Z" }, + { url = "https://files.pythonhosted.org/packages/fd/00/04ca1c3a7a124b6de4f8a9a17cc2fcad138b4608e7a3fc5877804b8715d7/frozenlist-1.8.0-cp313-cp313t-win32.whl", hash = "sha256:0f96534f8bfebc1a394209427d0f8a63d343c9779cda6fc25e8e121b5fd8555b", size = 43492, upload-time = "2025-10-06T05:37:04.915Z" }, + { url = "https://files.pythonhosted.org/packages/59/5e/c69f733a86a94ab10f68e496dc6b7e8bc078ebb415281d5698313e3af3a1/frozenlist-1.8.0-cp313-cp313t-win_amd64.whl", hash = "sha256:5d63a068f978fc69421fb0e6eb91a9603187527c86b7cd3f534a5b77a592b888", size = 48034, upload-time = "2025-10-06T05:37:06.343Z" }, + { url = "https://files.pythonhosted.org/packages/16/6c/be9d79775d8abe79b05fa6d23da99ad6e7763a1d080fbae7290b286093fd/frozenlist-1.8.0-cp313-cp313t-win_arm64.whl", hash = "sha256:bf0a7e10b077bf5fb9380ad3ae8ce20ef919a6ad93b4552896419ac7e1d8e042", size = 41749, upload-time = "2025-10-06T05:37:07.431Z" }, + { url = "https://files.pythonhosted.org/packages/f1/c8/85da824b7e7b9b6e7f7705b2ecaf9591ba6f79c1177f324c2735e41d36a2/frozenlist-1.8.0-cp314-cp314-macosx_10_13_universal2.whl", hash = "sha256:cee686f1f4cadeb2136007ddedd0aaf928ab95216e7691c63e50a8ec066336d0", size = 86127, upload-time = "2025-10-06T05:37:08.438Z" }, + { url = "https://files.pythonhosted.org/packages/8e/e8/a1185e236ec66c20afd72399522f142c3724c785789255202d27ae992818/frozenlist-1.8.0-cp314-cp314-macosx_10_13_x86_64.whl", hash = "sha256:119fb2a1bd47307e899c2fac7f28e85b9a543864df47aa7ec9d3c1b4545f096f", size = 49698, upload-time = "2025-10-06T05:37:09.48Z" }, + { url = "https://files.pythonhosted.org/packages/a1/93/72b1736d68f03fda5fdf0f2180fb6caaae3894f1b854d006ac61ecc727ee/frozenlist-1.8.0-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:4970ece02dbc8c3a92fcc5228e36a3e933a01a999f7094ff7c23fbd2beeaa67c", size = 49749, upload-time = "2025-10-06T05:37:10.569Z" }, + { url = "https://files.pythonhosted.org/packages/a7/b2/fabede9fafd976b991e9f1b9c8c873ed86f202889b864756f240ce6dd855/frozenlist-1.8.0-cp314-cp314-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:cba69cb73723c3f329622e34bdbf5ce1f80c21c290ff04256cff1cd3c2036ed2", size = 231298, upload-time = "2025-10-06T05:37:11.993Z" }, + { url = "https://files.pythonhosted.org/packages/3a/3b/d9b1e0b0eed36e70477ffb8360c49c85c8ca8ef9700a4e6711f39a6e8b45/frozenlist-1.8.0-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:778a11b15673f6f1df23d9586f83c4846c471a8af693a22e066508b77d201ec8", size = 232015, upload-time = "2025-10-06T05:37:13.194Z" }, + { url = "https://files.pythonhosted.org/packages/dc/94/be719d2766c1138148564a3960fc2c06eb688da592bdc25adcf856101be7/frozenlist-1.8.0-cp314-cp314-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:0325024fe97f94c41c08872db482cf8ac4800d80e79222c6b0b7b162d5b13686", size = 225038, upload-time = "2025-10-06T05:37:14.577Z" }, + { url = "https://files.pythonhosted.org/packages/e4/09/6712b6c5465f083f52f50cf74167b92d4ea2f50e46a9eea0523d658454ae/frozenlist-1.8.0-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:97260ff46b207a82a7567b581ab4190bd4dfa09f4db8a8b49d1a958f6aa4940e", size = 240130, upload-time = "2025-10-06T05:37:15.781Z" }, + { url = "https://files.pythonhosted.org/packages/f8/d4/cd065cdcf21550b54f3ce6a22e143ac9e4836ca42a0de1022da8498eac89/frozenlist-1.8.0-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:54b2077180eb7f83dd52c40b2750d0a9f175e06a42e3213ce047219de902717a", size = 242845, upload-time = "2025-10-06T05:37:17.037Z" }, + { url = "https://files.pythonhosted.org/packages/62/c3/f57a5c8c70cd1ead3d5d5f776f89d33110b1addae0ab010ad774d9a44fb9/frozenlist-1.8.0-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:2f05983daecab868a31e1da44462873306d3cbfd76d1f0b5b69c473d21dbb128", size = 229131, upload-time = "2025-10-06T05:37:18.221Z" }, + { url = "https://files.pythonhosted.org/packages/6c/52/232476fe9cb64f0742f3fde2b7d26c1dac18b6d62071c74d4ded55e0ef94/frozenlist-1.8.0-cp314-cp314-musllinux_1_2_armv7l.whl", hash = "sha256:33f48f51a446114bc5d251fb2954ab0164d5be02ad3382abcbfe07e2531d650f", size = 240542, upload-time = "2025-10-06T05:37:19.771Z" }, + { url = "https://files.pythonhosted.org/packages/5f/85/07bf3f5d0fb5414aee5f47d33c6f5c77bfe49aac680bfece33d4fdf6a246/frozenlist-1.8.0-cp314-cp314-musllinux_1_2_ppc64le.whl", hash = "sha256:154e55ec0655291b5dd1b8731c637ecdb50975a2ae70c606d100750a540082f7", size = 237308, upload-time = "2025-10-06T05:37:20.969Z" }, + { url = "https://files.pythonhosted.org/packages/11/99/ae3a33d5befd41ac0ca2cc7fd3aa707c9c324de2e89db0e0f45db9a64c26/frozenlist-1.8.0-cp314-cp314-musllinux_1_2_s390x.whl", hash = "sha256:4314debad13beb564b708b4a496020e5306c7333fa9a3ab90374169a20ffab30", size = 238210, upload-time = "2025-10-06T05:37:22.252Z" }, + { url = "https://files.pythonhosted.org/packages/b2/60/b1d2da22f4970e7a155f0adde9b1435712ece01b3cd45ba63702aea33938/frozenlist-1.8.0-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:073f8bf8becba60aa931eb3bc420b217bb7d5b8f4750e6f8b3be7f3da85d38b7", size = 231972, upload-time = "2025-10-06T05:37:23.5Z" }, + { url = "https://files.pythonhosted.org/packages/3f/ab/945b2f32de889993b9c9133216c068b7fcf257d8595a0ac420ac8677cab0/frozenlist-1.8.0-cp314-cp314-win32.whl", hash = "sha256:bac9c42ba2ac65ddc115d930c78d24ab8d4f465fd3fc473cdedfccadb9429806", size = 40536, upload-time = "2025-10-06T05:37:25.581Z" }, + { url = "https://files.pythonhosted.org/packages/59/ad/9caa9b9c836d9ad6f067157a531ac48b7d36499f5036d4141ce78c230b1b/frozenlist-1.8.0-cp314-cp314-win_amd64.whl", hash = "sha256:3e0761f4d1a44f1d1a47996511752cf3dcec5bbdd9cc2b4fe595caf97754b7a0", size = 44330, upload-time = "2025-10-06T05:37:26.928Z" }, + { url = "https://files.pythonhosted.org/packages/82/13/e6950121764f2676f43534c555249f57030150260aee9dcf7d64efda11dd/frozenlist-1.8.0-cp314-cp314-win_arm64.whl", hash = "sha256:d1eaff1d00c7751b7c6662e9c5ba6eb2c17a2306ba5e2a37f24ddf3cc953402b", size = 40627, upload-time = "2025-10-06T05:37:28.075Z" }, + { url = "https://files.pythonhosted.org/packages/c0/c7/43200656ecc4e02d3f8bc248df68256cd9572b3f0017f0a0c4e93440ae23/frozenlist-1.8.0-cp314-cp314t-macosx_10_13_universal2.whl", hash = "sha256:d3bb933317c52d7ea5004a1c442eef86f426886fba134ef8cf4226ea6ee1821d", size = 89238, upload-time = "2025-10-06T05:37:29.373Z" }, + { url = "https://files.pythonhosted.org/packages/d1/29/55c5f0689b9c0fb765055629f472c0de484dcaf0acee2f7707266ae3583c/frozenlist-1.8.0-cp314-cp314t-macosx_10_13_x86_64.whl", hash = "sha256:8009897cdef112072f93a0efdce29cd819e717fd2f649ee3016efd3cd885a7ed", size = 50738, upload-time = "2025-10-06T05:37:30.792Z" }, + { url = "https://files.pythonhosted.org/packages/ba/7d/b7282a445956506fa11da8c2db7d276adcbf2b17d8bb8407a47685263f90/frozenlist-1.8.0-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:2c5dcbbc55383e5883246d11fd179782a9d07a986c40f49abe89ddf865913930", size = 51739, upload-time = "2025-10-06T05:37:32.127Z" }, + { url = "https://files.pythonhosted.org/packages/62/1c/3d8622e60d0b767a5510d1d3cf21065b9db874696a51ea6d7a43180a259c/frozenlist-1.8.0-cp314-cp314t-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:39ecbc32f1390387d2aa4f5a995e465e9e2f79ba3adcac92d68e3e0afae6657c", size = 284186, upload-time = "2025-10-06T05:37:33.21Z" }, + { url = "https://files.pythonhosted.org/packages/2d/14/aa36d5f85a89679a85a1d44cd7a6657e0b1c75f61e7cad987b203d2daca8/frozenlist-1.8.0-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:92db2bf818d5cc8d9c1f1fc56b897662e24ea5adb36ad1f1d82875bd64e03c24", size = 292196, upload-time = "2025-10-06T05:37:36.107Z" }, + { url = "https://files.pythonhosted.org/packages/05/23/6bde59eb55abd407d34f77d39a5126fb7b4f109a3f611d3929f14b700c66/frozenlist-1.8.0-cp314-cp314t-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:2dc43a022e555de94c3b68a4ef0b11c4f747d12c024a520c7101709a2144fb37", size = 273830, upload-time = "2025-10-06T05:37:37.663Z" }, + { url = "https://files.pythonhosted.org/packages/d2/3f/22cff331bfad7a8afa616289000ba793347fcd7bc275f3b28ecea2a27909/frozenlist-1.8.0-cp314-cp314t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:cb89a7f2de3602cfed448095bab3f178399646ab7c61454315089787df07733a", size = 294289, upload-time = "2025-10-06T05:37:39.261Z" }, + { url = "https://files.pythonhosted.org/packages/a4/89/5b057c799de4838b6c69aa82b79705f2027615e01be996d2486a69ca99c4/frozenlist-1.8.0-cp314-cp314t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:33139dc858c580ea50e7e60a1b0ea003efa1fd42e6ec7fdbad78fff65fad2fd2", size = 300318, upload-time = "2025-10-06T05:37:43.213Z" }, + { url = "https://files.pythonhosted.org/packages/30/de/2c22ab3eb2a8af6d69dc799e48455813bab3690c760de58e1bf43b36da3e/frozenlist-1.8.0-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:168c0969a329b416119507ba30b9ea13688fafffac1b7822802537569a1cb0ef", size = 282814, upload-time = "2025-10-06T05:37:45.337Z" }, + { url = "https://files.pythonhosted.org/packages/59/f7/970141a6a8dbd7f556d94977858cfb36fa9b66e0892c6dd780d2219d8cd8/frozenlist-1.8.0-cp314-cp314t-musllinux_1_2_armv7l.whl", hash = "sha256:28bd570e8e189d7f7b001966435f9dac6718324b5be2990ac496cf1ea9ddb7fe", size = 291762, upload-time = "2025-10-06T05:37:46.657Z" }, + { url = "https://files.pythonhosted.org/packages/c1/15/ca1adae83a719f82df9116d66f5bb28bb95557b3951903d39135620ef157/frozenlist-1.8.0-cp314-cp314t-musllinux_1_2_ppc64le.whl", hash = "sha256:b2a095d45c5d46e5e79ba1e5b9cb787f541a8dee0433836cea4b96a2c439dcd8", size = 289470, upload-time = "2025-10-06T05:37:47.946Z" }, + { url = "https://files.pythonhosted.org/packages/ac/83/dca6dc53bf657d371fbc88ddeb21b79891e747189c5de990b9dfff2ccba1/frozenlist-1.8.0-cp314-cp314t-musllinux_1_2_s390x.whl", hash = "sha256:eab8145831a0d56ec9c4139b6c3e594c7a83c2c8be25d5bcf2d86136a532287a", size = 289042, upload-time = "2025-10-06T05:37:49.499Z" }, + { url = "https://files.pythonhosted.org/packages/96/52/abddd34ca99be142f354398700536c5bd315880ed0a213812bc491cff5e4/frozenlist-1.8.0-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:974b28cf63cc99dfb2188d8d222bc6843656188164848c4f679e63dae4b0708e", size = 283148, upload-time = "2025-10-06T05:37:50.745Z" }, + { url = "https://files.pythonhosted.org/packages/af/d3/76bd4ed4317e7119c2b7f57c3f6934aba26d277acc6309f873341640e21f/frozenlist-1.8.0-cp314-cp314t-win32.whl", hash = "sha256:342c97bf697ac5480c0a7ec73cd700ecfa5a8a40ac923bd035484616efecc2df", size = 44676, upload-time = "2025-10-06T05:37:52.222Z" }, + { url = "https://files.pythonhosted.org/packages/89/76/c615883b7b521ead2944bb3480398cbb07e12b7b4e4d073d3752eb721558/frozenlist-1.8.0-cp314-cp314t-win_amd64.whl", hash = "sha256:06be8f67f39c8b1dc671f5d83aaefd3358ae5cdcf8314552c57e7ed3e6475bdd", size = 49451, upload-time = "2025-10-06T05:37:53.425Z" }, + { url = "https://files.pythonhosted.org/packages/e0/a3/5982da14e113d07b325230f95060e2169f5311b1017ea8af2a29b374c289/frozenlist-1.8.0-cp314-cp314t-win_arm64.whl", hash = "sha256:102e6314ca4da683dca92e3b1355490fed5f313b768500084fbe6371fddfdb79", size = 42507, upload-time = "2025-10-06T05:37:54.513Z" }, + { url = "https://files.pythonhosted.org/packages/9a/9a/e35b4a917281c0b8419d4207f4334c8e8c5dbf4f3f5f9ada73958d937dcc/frozenlist-1.8.0-py3-none-any.whl", hash = "sha256:0c18a16eab41e82c295618a77502e17b195883241c563b00f0aa5106fc4eaa0d", size = 13409, upload-time = "2025-10-06T05:38:16.721Z" }, ] [[package]] name = "funcnodes" -version = "0.5.37" +version = "1.1.1" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "funcnodes-basic" }, @@ -395,27 +486,27 @@ dependencies = [ { name = "venvmngr", marker = "sys_platform != 'emscripten'" }, { name = "virtualenv", marker = "sys_platform != 'emscripten'" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/73/06/1214ad0928455311cae3972b5fb5154a6e1131fac1cfbf1b4ac52adff251/funcnodes-0.5.37.tar.gz", hash = "sha256:3e8d16d744124a167d7d9d2fd3d7f034a2fc753a766d452fda69f65e368dffd9", size = 42099 } +sdist = { url = "https://files.pythonhosted.org/packages/4b/a5/e7618d6d269c5e440f2aa6883ed7f58ed6a077c36d7eb753a49f165d91a7/funcnodes-1.1.1.tar.gz", hash = "sha256:53220476ef6b6da09fde20136e2bc4db62e253693c53d64a12bb232bed8ce9eb", size = 10545246, upload-time = "2025-10-22T09:11:47.851Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/04/05/d4e2504aaeccfba16687cf8fb6efdd55080a35b368c3ee704b5a0c44265b/funcnodes-0.5.37-py3-none-any.whl", hash = "sha256:6abfbd293e9859ff0586a04b906645f2920bc4b1d9e8ac06dfbab2347a58b32f", size = 38858 }, + { url = "https://files.pythonhosted.org/packages/52/d1/15d260dbe96f068c2ce4ee8070769960b8431cb360ce1f13ef7d124b4f7f/funcnodes-1.1.1-py3-none-any.whl", hash = "sha256:7b0aa4fcf7f1c2a43b3b885b49db5258fcfa41a30e1a1c542d8fc9df0c3a628f", size = 43495, upload-time = "2025-10-22T09:11:44.592Z" }, ] [[package]] name = "funcnodes-basic" -version = "0.2.2" +version = "1.0.0" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "funcnodes" }, { name = "funcnodes-core" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/b0/2a/266e57488c5afd64731a7d298fa6497024362c01baec9895d2582049c8c7/funcnodes_basic-0.2.2.tar.gz", hash = "sha256:e335cf1b55c8e94110d203926eb97a65c31375ff5cf46f372a13f33a88904857", size = 28433 } +sdist = { url = "https://files.pythonhosted.org/packages/ff/59/4a53dbcbe28919632d466252991adf5abadfd74ec3c00b1ec41e6c2d933f/funcnodes_basic-1.0.0.tar.gz", hash = "sha256:f846b60b130f4e21c543867b41cbf474a5467f0f33797c183e3a0a915eb2fb38", size = 31833, upload-time = "2025-09-16T13:51:51.082Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/89/cd/07c6af3c063379aff946a9c07aba0126dd0ee4e501b8fdf3b32618d74cf4/funcnodes_basic-0.2.2-py3-none-any.whl", hash = "sha256:6da9eed6687bc36b60aa6db9e7994bf2943e65321ccffd0c20c8f06c19548372", size = 23649 }, + { url = "https://files.pythonhosted.org/packages/5c/aa/db3f2cbd554893efd7e8ccfc7e39f4d93b977a0f8693b4949233a8888886/funcnodes_basic-1.0.0-py3-none-any.whl", hash = "sha256:fdf2324595ffb02afbf7e07c28c8d6ef4edbfb30fefd62b680866b6a46e04262", size = 26068, upload-time = "2025-09-16T13:51:49.845Z" }, ] [[package]] name = "funcnodes-core" -version = "0.3.53" +version = "1.0.5" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "dill" }, @@ -424,9 +515,25 @@ dependencies = [ { name = "setuptools" }, { name = "tqdm" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/3d/cf/6c8c7f06abe437355c95b0b7c59e94efe12cea60772df56fac3aa6e850ee/funcnodes_core-0.3.53.tar.gz", hash = "sha256:2356def5c0c41f07ed895da299685e89d4c46537f927e8a1213bf81d440b8aaf", size = 93160 } +sdist = { url = "https://files.pythonhosted.org/packages/ee/7b/2dae3ae4536dd4bad23db1b622dce43987d0fcfb2f5fd8e69c3020233904/funcnodes_core-1.0.5.tar.gz", hash = "sha256:b63e1c557b5f10f8433352a4f11840fe0023f777d2090cb0c1026e13ff217589", size = 177383, upload-time = "2025-09-16T13:35:00.864Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/c1/a5/8755fa71c7f439aa1b1a25eddc4db4a28c1cf8235a24877cf35a9f95c25f/funcnodes_core-1.0.5-py3-none-any.whl", hash = "sha256:a0a0300d0c9d8d550ab36f837cff301a98efc155f3f993415adfb975f9dcfe14", size = 89278, upload-time = "2025-09-16T13:34:59.533Z" }, +] + +[[package]] +name = "funcnodes-files" +version = "1.0.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "asynctoolkit" }, + { name = "funcnodes" }, + { name = "funcnodes-core" }, + { name = "funcnodes-react-flow" }, + { name = "requests", marker = "sys_platform != 'emscripten'" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/0c/1b/fdaf26c926acbcd1c38a70f1dd846f24872481d568152e5a25b98d93b635/funcnodes_files-1.0.0.tar.gz", hash = "sha256:170d395809d6d1adccf357f8b5a48b0225424ee41220b98de01dbc5590354918", size = 189478, upload-time = "2025-08-29T12:59:34.006Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/e5/ea/a6fc4d30cbe3174caac20ef6b1e60d725506b325d8aa5f272ad8c1b6bf4f/funcnodes_core-0.3.53-py3-none-any.whl", hash = "sha256:d3c9d3635d516e26a4236b40da1e368e1e2cc66aa8a839625fb0bb30ee516e49", size = 83813 }, + { url = "https://files.pythonhosted.org/packages/0d/e1/b7a2d502150b6bab47f8c90087cbea45ead264db5a8185a6c156a520698f/funcnodes_files-1.0.0-py3-none-any.whl", hash = "sha256:fa2f454ddf7694190012d6533cf06e8ab5a2a7f382da0eb809f66028239851d2", size = 29336, upload-time = "2025-08-29T12:59:31.865Z" }, ] [[package]] @@ -439,41 +546,41 @@ dependencies = [ { name = "numpy" }, { name = "pillow" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/d9/04/09bfbc60d4fe960bc1d88bf62b7afc8054a14dfdfb670ba60b94f695d808/funcnodes_images-0.2.6.tar.gz", hash = "sha256:8e5be6a4acb936d787367c8405e7375f2580f77641ba18d62dc172355f67b789", size = 24541 } +sdist = { url = "https://files.pythonhosted.org/packages/d9/04/09bfbc60d4fe960bc1d88bf62b7afc8054a14dfdfb670ba60b94f695d808/funcnodes_images-0.2.6.tar.gz", hash = "sha256:8e5be6a4acb936d787367c8405e7375f2580f77641ba18d62dc172355f67b789", size = 24541, upload-time = "2025-03-27T08:05:56.526Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/a2/de/00b128e87b724ce9b741da0fd876fac4b0e5de9e0a93a4870ce6faf88c2c/funcnodes_images-0.2.6-py3-none-any.whl", hash = "sha256:9ac44efddb4904cb9d3d5c59dfe20b45affa0c728ca57af38df9d60cf7d9060a", size = 20884 }, + { url = "https://files.pythonhosted.org/packages/a2/de/00b128e87b724ce9b741da0fd876fac4b0e5de9e0a93a4870ce6faf88c2c/funcnodes_images-0.2.6-py3-none-any.whl", hash = "sha256:9ac44efddb4904cb9d3d5c59dfe20b45affa0c728ca57af38df9d60cf7d9060a", size = 20884, upload-time = "2025-03-27T08:05:54.67Z" }, ] [[package]] name = "funcnodes-module" -version = "0.3.6" +version = "0.4.0" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "funcnodes" }, { name = "licensecheck", marker = "python_full_version < '4'" }, { name = "toml" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/14/f7/7b2bb6224fa5aface78018e96d15541b97a12c31adef5fd53ce6260c81e7/funcnodes_module-0.3.6.tar.gz", hash = "sha256:67391b7e9f2b9351b90eb84cf60d93e7b5e9ee6d760720146a2e03ad519865e7", size = 33753 } +sdist = { url = "https://files.pythonhosted.org/packages/46/39/92986c354fb90d6261fb13cffc8bfc0a31178df692106d07d2a3f82b84ea/funcnodes_module-0.4.0.tar.gz", hash = "sha256:ff8cb4cf6b8fe1517318888908c7ca9e7362e4b3918e6e7a1e26e95d5aa53fe1", size = 163984, upload-time = "2025-09-03T13:38:16.591Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/f1/41/6fb93464ddc329e60cca21b3fe95bb62484bf0aea156f55fc4c15a5c7473/funcnodes_module-0.3.6-py3-none-any.whl", hash = "sha256:23a6426b700a57f490c6b84c8aa2db98f2ee08f6295661b99464e0ae407ff0e5", size = 39182 }, + { url = "https://files.pythonhosted.org/packages/15/ff/f7a19deaed09547e7ccdf4d1203a0307cf2aae75e02f7f99cdeb945ce89c/funcnodes_module-0.4.0-py3-none-any.whl", hash = "sha256:d78c6c07423d2c4356f40b552a558329b4a369ca4f4c71ac66722ff4e329b335", size = 39006, upload-time = "2025-09-03T13:38:15.115Z" }, ] [[package]] name = "funcnodes-numpy" -version = "0.2.10" +version = "0.2.11" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "funcnodes" }, { name = "numpy" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/10/b7/e6986d8a94ac866b5a6393be2c5c8717db7dee155c0a5bd23d67ca4f3a65/funcnodes_numpy-0.2.10.tar.gz", hash = "sha256:7885830d16138c3ef07eefcc8f8ffcaf8b00808f00fbb34b885b8a15f0903425", size = 37598 } +sdist = { url = "https://files.pythonhosted.org/packages/2e/71/918047426c2c8551b61205af027b987cc6b0a46962c7639c501618978936/funcnodes_numpy-0.2.11.tar.gz", hash = "sha256:3881766b4fb4fc77ee1c337e12206011e0d7311a31c54e6c05e343a0792f1794", size = 46576, upload-time = "2025-07-09T19:15:46.881Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/d7/fa/95dbb0ff900804600acd007152d65d5d2c15365ef4ec9d2c978f04aaa9b0/funcnodes_numpy-0.2.10-py3-none-any.whl", hash = "sha256:22f5679d75a18b2945fa32292528f48668d41f270f0849cd77192968ec33cea4", size = 42665 }, + { url = "https://files.pythonhosted.org/packages/90/1e/a499bbc9e123eb623e5307d63fea6fc299885cdd8c09122ab911bc1ea274/funcnodes_numpy-0.2.11-py3-none-any.whl", hash = "sha256:16247001da8d6848483fd5ad0f5734890f98e9e1ec205dc9893381aa2a663b8c", size = 42856, upload-time = "2025-07-09T19:15:45.669Z" }, ] [[package]] name = "funcnodes-pandas" -version = "0.2.12" +version = "1.0.0" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "chardet" }, @@ -482,14 +589,14 @@ dependencies = [ { name = "openpyxl" }, { name = "pandas" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/56/1a/d76e34ce745e4ea5057fb850983a1ac95479376fd13b56b939518c9fac43/funcnodes_pandas-0.2.12.tar.gz", hash = "sha256:102c6453d57c6d8986b4d0f9e6fa49f56a08407684c28b3dbc963f6583397c4f", size = 37485 } +sdist = { url = "https://files.pythonhosted.org/packages/25/ab/a30976239980a4428bf819edc61610a907487f65f809bfdbb71ab6026694/funcnodes_pandas-1.0.0.tar.gz", hash = "sha256:c401e365cb6ed21ea0b12222d077a6b1d269710f601fca0089d23e671d4ead2e", size = 236584, upload-time = "2025-09-19T09:45:36.091Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/35/40/5900478ccec35869ab83f3dba332bc0d5d7015c94230165574c6597a46c5/funcnodes_pandas-0.2.12-py3-none-any.whl", hash = "sha256:c5724123f573d1fe7a320fecb613298199debd079fc6cc30677f5c320f306022", size = 34020 }, + { url = "https://files.pythonhosted.org/packages/5c/b1/d8c2568cd0dd120c3e3cefd8a0c23fd5db28e5c79fd192b367ab418f2ae5/funcnodes_pandas-1.0.0-py3-none-any.whl", hash = "sha256:f59f5edb82c7dadedf6eaf5192ccaf9a364dabe97e3d2f4d17f1649ec44f48e8", size = 34820, upload-time = "2025-09-19T09:45:34.515Z" }, ] [[package]] name = "funcnodes-plotly" -version = "0.3.2" +version = "1.1.0" source = { editable = "." } dependencies = [ { name = "funcnodes" }, @@ -503,7 +610,9 @@ dependencies = [ [package.dev-dependencies] dev = [ + { name = "funcnodes-files" }, { name = "funcnodes-module" }, + { name = "funcnodes-pandas" }, { name = "pre-commit" }, { name = "pytest" }, ] @@ -521,37 +630,41 @@ requires-dist = [ [package.metadata.requires-dev] dev = [ + { name = "funcnodes-files" }, { name = "funcnodes-module" }, + { name = "funcnodes-pandas" }, { name = "pre-commit" }, { name = "pytest" }, ] [[package]] name = "funcnodes-react-flow" -version = "0.4.9" +version = "1.0.3" source = { registry = "https://pypi.org/simple" } dependencies = [ - { name = "funcnodes", marker = "sys_platform != 'emscripten'" }, - { name = "funcnodes-core", marker = "sys_platform != 'emscripten'" }, - { name = "funcnodes-worker", marker = "sys_platform != 'emscripten'" }, + { name = "funcnodes" }, + { name = "funcnodes-core" }, + { name = "funcnodes-worker" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/e9/60/c7977190b22d27f4e891ef315f899a65266f5712c7f758e33971d4fb0107/funcnodes_react_flow-0.4.9.tar.gz", hash = "sha256:3f1271561b12e9f2088b449dad38f7ff4c0ba987528ce511a660a2860d331446", size = 1458125 } +sdist = { url = "https://files.pythonhosted.org/packages/38/9b/faaedfc591d3aefb1e9239b03b19813903169b33a5a37ecd56c0d22cd755/funcnodes_react_flow-1.0.3.tar.gz", hash = "sha256:efa55dc0e6c4cefe3abfab1ce395680330de450979b8cdac0979faa357033d07", size = 1958442, upload-time = "2025-10-17T09:34:15.461Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/39/32/7aedb1d811750df9b02c4b92d106c80661ae7084c633c674fceb7b58eb61/funcnodes_react_flow-0.4.9-py3-none-any.whl", hash = "sha256:bb7f5dc933532442f88eacda05293bf4965e91cf14595c9a7c6a3048bb8a8cfa", size = 1466060 }, + { url = "https://files.pythonhosted.org/packages/fa/ed/2f4687e800ea26353a04bf7662a7dd82584bb4e524810381bd4ccc53e69a/funcnodes_react_flow-1.0.3-py3-none-any.whl", hash = "sha256:ab9ab4473daf42fc0e260b42e419ec1c8ebc869a70edbd52143ea3e9fabd5ff5", size = 1202319, upload-time = "2025-10-17T09:34:14.031Z" }, ] [[package]] name = "funcnodes-worker" -version = "0.3.1" +version = "1.1.1" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "asynctoolkit" }, { name = "funcnodes-core" }, + { name = "packaging" }, { name = "pip" }, + { name = "python-slugify" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/11/7f/619797ebc76e27fad6712dad04ec94997a978763dd431de0664cd07e9362/funcnodes_worker-0.3.1.tar.gz", hash = "sha256:3af4c4ddc4232aac71fadbd85345e4e1678a004095409eb1fb14b65a15dea562", size = 49681 } +sdist = { url = "https://files.pythonhosted.org/packages/6e/96/b7b3a2c7ab08f735328ed12c1cebd4e833554f7a3dd87e1f84007016d6cd/funcnodes_worker-1.1.1.tar.gz", hash = "sha256:0e2830c710b5a528ef5a10dca375955a6e33b0681412d426aa38fc7f91eaa0d2", size = 113062, upload-time = "2025-10-21T22:33:36.876Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/02/22/d3af770e12c90054f9830115b8da89c5cd5f3ac0975c65882ab70374fdc4/funcnodes_worker-0.3.1-py3-none-any.whl", hash = "sha256:0a02bcce5f82d8090dc6ca7fb69444c431dd5ca8b85cfbc34cdd7f4ba2474ff0", size = 47453 }, + { url = "https://files.pythonhosted.org/packages/5c/29/d887820f685e17b6195a9215e1bd6f6a73b086048ba6e318602f2a3fb6b8/funcnodes_worker-1.1.1-py3-none-any.whl", hash = "sha256:1762e805dd9bcd12737095ca8fbfe1e72dbb2dffcae8b2921d8bd261f5e360bb", size = 48008, upload-time = "2025-10-21T22:33:35.478Z" }, ] [package.optional-dependencies] @@ -565,29 +678,29 @@ all = [ [[package]] name = "identify" -version = "2.6.9" +version = "2.6.15" source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/9b/98/a71ab060daec766acc30fb47dfca219d03de34a70d616a79a38c6066c5bf/identify-2.6.9.tar.gz", hash = "sha256:d40dfe3142a1421d8518e3d3985ef5ac42890683e32306ad614a29490abeb6bf", size = 99249 } +sdist = { url = "https://files.pythonhosted.org/packages/ff/e7/685de97986c916a6d93b3876139e00eef26ad5bbbd61925d670ae8013449/identify-2.6.15.tar.gz", hash = "sha256:e4f4864b96c6557ef2a1e1c951771838f4edc9df3a72ec7118b338801b11c7bf", size = 99311, upload-time = "2025-10-02T17:43:40.631Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/07/ce/0845144ed1f0e25db5e7a79c2354c1da4b5ce392b8966449d5db8dca18f1/identify-2.6.9-py2.py3-none-any.whl", hash = "sha256:c98b4322da415a8e5a70ff6e51fbc2d2932c015532d77e9f8537b4ba7813b150", size = 99101 }, + { url = "https://files.pythonhosted.org/packages/0f/1c/e5fd8f973d4f375adb21565739498e2e9a1e54c858a97b9a8ccfdc81da9b/identify-2.6.15-py2.py3-none-any.whl", hash = "sha256:1181ef7608e00704db228516541eb83a88a9f94433a8c80bb9b5bd54b1d81757", size = 99183, upload-time = "2025-10-02T17:43:39.137Z" }, ] [[package]] name = "idna" -version = "3.10" +version = "3.11" source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/f1/70/7703c29685631f5a7590aa73f1f1d3fa9a380e654b86af429e0934a32f7d/idna-3.10.tar.gz", hash = "sha256:12f65c9b470abda6dc35cf8e63cc574b1c52b11df2c86030af0ac09b01b13ea9", size = 190490 } +sdist = { url = "https://files.pythonhosted.org/packages/6f/6d/0703ccc57f3a7233505399edb88de3cbd678da106337b9fcde432b65ed60/idna-3.11.tar.gz", hash = "sha256:795dafcc9c04ed0c1fb032c2aa73654d8e8c5023a7df64a53f39190ada629902", size = 194582, upload-time = "2025-10-12T14:55:20.501Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/76/c6/c88e154df9c4e1a2a66ccf0005a88dfb2650c1dffb6f5ce603dfbd452ce3/idna-3.10-py3-none-any.whl", hash = "sha256:946d195a0d259cbba61165e88e65941f16e9b36ea6ddb97f00452bae8b1287d3", size = 70442 }, + { url = "https://files.pythonhosted.org/packages/0e/61/66938bbb5fc52dbdf84594873d5b51fb1f7c7794e9c0f5bd885f30bc507b/idna-3.11-py3-none-any.whl", hash = "sha256:771a87f49d9defaf64091e6e6fe9c18d4833f140bd19464795bc32d966ca37ea", size = 71008, upload-time = "2025-10-12T14:55:18.883Z" }, ] [[package]] name = "iniconfig" -version = "2.1.0" +version = "2.3.0" source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/f2/97/ebf4da567aa6827c909642694d71c9fcf53e5b504f2d96afea02718862f3/iniconfig-2.1.0.tar.gz", hash = "sha256:3abbd2e30b36733fee78f9c7f7308f2d0050e88f0087fd25c2645f63c773e1c7", size = 4793 } +sdist = { url = "https://files.pythonhosted.org/packages/72/34/14ca021ce8e5dfedc35312d08ba8bf51fdd999c576889fc2c24cb97f4f10/iniconfig-2.3.0.tar.gz", hash = "sha256:c76315c77db068650d49c5b56314774a7804df16fee4402c1f19d6d15d8c4730", size = 20503, upload-time = "2025-10-18T21:55:43.219Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/2c/e1/e6716421ea10d38022b952c159d5161ca1193197fb744506875fbb87ea7b/iniconfig-2.1.0-py3-none-any.whl", hash = "sha256:9deba5723312380e77435581c6bf4935c94cbfab9b1ed33ef8d238ea168eb760", size = 6050 }, + { url = "https://files.pythonhosted.org/packages/cb/b1/3846dd7f199d53cb17f49cba7e651e9ce294d8497c8c150530ed11865bb8/iniconfig-2.3.0-py3-none-any.whl", hash = "sha256:f631c04d2c48c52b84d0d0549c99ff3859c98df65b3101406327ecc7d53fbf12", size = 7484, upload-time = "2025-10-18T21:55:41.639Z" }, ] [[package]] @@ -599,8 +712,8 @@ resolution-markers = [ "python_full_version < '3.12' and sys_platform == 'win32'", ] wheels = [ - { url = "https://files.pythonhosted.org/packages/1e/82/153cdbaf2df0ad39198108063be111b105c46d60e9d0335e668d6af69a6b/kaleido-0.1.0.post1-py2.py3-none-win32.whl", hash = "sha256:636aedcd89f359f54687b4fe331776a7224f7c31c27d03230e4e13c7cf4cb66a", size = 53233834 }, - { url = "https://files.pythonhosted.org/packages/41/90/51523adbedc808e03271c7448fd71da1660cc02603eaaf10b9ab4f102146/kaleido-0.1.0.post1-py2.py3-none-win_amd64.whl", hash = "sha256:2a942606a13c70dfd0a02e092ec140a1083e093ae06661c5e1b1179e477a9e44", size = 55954763 }, + { url = "https://files.pythonhosted.org/packages/1e/82/153cdbaf2df0ad39198108063be111b105c46d60e9d0335e668d6af69a6b/kaleido-0.1.0.post1-py2.py3-none-win32.whl", hash = "sha256:636aedcd89f359f54687b4fe331776a7224f7c31c27d03230e4e13c7cf4cb66a", size = 53233834, upload-time = "2020-12-08T10:15:54.087Z" }, + { url = "https://files.pythonhosted.org/packages/41/90/51523adbedc808e03271c7448fd71da1660cc02603eaaf10b9ab4f102146/kaleido-0.1.0.post1-py2.py3-none-win_amd64.whl", hash = "sha256:2a942606a13c70dfd0a02e092ec140a1083e093ae06661c5e1b1179e477a9e44", size = 55954763, upload-time = "2020-12-08T10:16:16.091Z" }, ] [[package]] @@ -612,22 +725,22 @@ resolution-markers = [ "python_full_version < '3.12' and sys_platform != 'emscripten' and sys_platform != 'win32'", ] wheels = [ - { url = "https://files.pythonhosted.org/packages/e0/f7/0ccaa596ec341963adbb4f839774c36d5659e75a0812d946732b927d480e/kaleido-0.2.1-py2.py3-none-macosx_10_11_x86_64.whl", hash = "sha256:ca6f73e7ff00aaebf2843f73f1d3bacde1930ef5041093fe76b83a15785049a7", size = 85153681 }, - { url = "https://files.pythonhosted.org/packages/45/8e/4297556be5a07b713bb42dde0f748354de9a6918dee251c0e6bdcda341e7/kaleido-0.2.1-py2.py3-none-macosx_11_0_arm64.whl", hash = "sha256:bb9a5d1f710357d5d432ee240ef6658a6d124c3e610935817b4b42da9c787c05", size = 85808197 }, - { url = "https://files.pythonhosted.org/packages/ae/b3/a0f0f4faac229b0011d8c4a7ee6da7c2dca0b6fd08039c95920846f23ca4/kaleido-0.2.1-py2.py3-none-manylinux1_x86_64.whl", hash = "sha256:aa21cf1bf1c78f8fa50a9f7d45e1003c387bd3d6fe0a767cfbbf344b95bdc3a8", size = 79902476 }, - { url = "https://files.pythonhosted.org/packages/a1/2b/680662678a57afab1685f0c431c2aba7783ce4344f06ec162074d485d469/kaleido-0.2.1-py2.py3-none-manylinux2014_aarch64.whl", hash = "sha256:845819844c8082c9469d9c17e42621fbf85c2b237ef8a86ec8a8527f98b6512a", size = 83711746 }, + { url = "https://files.pythonhosted.org/packages/e0/f7/0ccaa596ec341963adbb4f839774c36d5659e75a0812d946732b927d480e/kaleido-0.2.1-py2.py3-none-macosx_10_11_x86_64.whl", hash = "sha256:ca6f73e7ff00aaebf2843f73f1d3bacde1930ef5041093fe76b83a15785049a7", size = 85153681, upload-time = "2021-03-08T10:27:34.202Z" }, + { url = "https://files.pythonhosted.org/packages/45/8e/4297556be5a07b713bb42dde0f748354de9a6918dee251c0e6bdcda341e7/kaleido-0.2.1-py2.py3-none-macosx_11_0_arm64.whl", hash = "sha256:bb9a5d1f710357d5d432ee240ef6658a6d124c3e610935817b4b42da9c787c05", size = 85808197, upload-time = "2021-03-08T10:27:46.561Z" }, + { url = "https://files.pythonhosted.org/packages/ae/b3/a0f0f4faac229b0011d8c4a7ee6da7c2dca0b6fd08039c95920846f23ca4/kaleido-0.2.1-py2.py3-none-manylinux1_x86_64.whl", hash = "sha256:aa21cf1bf1c78f8fa50a9f7d45e1003c387bd3d6fe0a767cfbbf344b95bdc3a8", size = 79902476, upload-time = "2021-03-08T10:27:57.364Z" }, + { url = "https://files.pythonhosted.org/packages/a1/2b/680662678a57afab1685f0c431c2aba7783ce4344f06ec162074d485d469/kaleido-0.2.1-py2.py3-none-manylinux2014_aarch64.whl", hash = "sha256:845819844c8082c9469d9c17e42621fbf85c2b237ef8a86ec8a8527f98b6512a", size = 83711746, upload-time = "2021-03-08T10:28:08.847Z" }, ] [[package]] name = "license-expression" -version = "30.4.1" +version = "30.4.4" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "boolean-py" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/74/6f/8709031ea6e0573e6075d24ea34507b0eb32f83f10e1420f2e34606bf0da/license_expression-30.4.1.tar.gz", hash = "sha256:9f02105f9e0fcecba6a85dfbbed7d94ea1c3a70cf23ddbfb5adf3438a6f6fce0", size = 177184 } +sdist = { url = "https://files.pythonhosted.org/packages/40/71/d89bb0e71b1415453980fd32315f2a037aad9f7f70f695c7cec7035feb13/license_expression-30.4.4.tar.gz", hash = "sha256:73448f0aacd8d0808895bdc4b2c8e01a8d67646e4188f887375398c761f340fd", size = 186402, upload-time = "2025-07-22T11:13:32.17Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/53/84/8a89614b2e7eeeaf0a68a4046d6cfaea4544c8619ea02595ebeec9b2bae3/license_expression-30.4.1-py3-none-any.whl", hash = "sha256:679646bc3261a17690494a3e1cada446e5ee342dbd87dcfa4a0c24cc5dce13ee", size = 111457 }, + { url = "https://files.pythonhosted.org/packages/af/40/791891d4c0c4dab4c5e187c17261cedc26285fd41541577f900470a45a4d/license_expression-30.4.4-py3-none-any.whl", hash = "sha256:421788fdcadb41f049d2dc934ce666626265aeccefddd25e162a26f23bcbf8a4", size = 120615, upload-time = "2025-07-22T11:13:31.217Z" }, ] [[package]] @@ -648,9 +761,9 @@ dependencies = [ { name = "tomli" }, { name = "uv" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/5a/36/2ea057fb11e7f4918bfaffd4eb135f715dd8cdc653fba516b9e2453d16bd/licensecheck-2025.1.0.tar.gz", hash = "sha256:411a1d81606b8be695794c1e7e79cc899b51fe5c501164155361cd2d6f3c5969", size = 79797 } +sdist = { url = "https://files.pythonhosted.org/packages/5a/36/2ea057fb11e7f4918bfaffd4eb135f715dd8cdc653fba516b9e2453d16bd/licensecheck-2025.1.0.tar.gz", hash = "sha256:411a1d81606b8be695794c1e7e79cc899b51fe5c501164155361cd2d6f3c5969", size = 79797, upload-time = "2025-03-26T22:58:04.777Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/65/bd/606e2f7eb0da042bffd8711a7427f7a28ca501aa6b1e3367ae3c7d4dc489/licensecheck-2025.1.0-py3-none-any.whl", hash = "sha256:eb20131cd8f877e5396958fd7b00cdb2225436c37a59dba4cf36d36079133a17", size = 26681 }, + { url = "https://files.pythonhosted.org/packages/65/bd/606e2f7eb0da042bffd8711a7427f7a28ca501aa6b1e3367ae3c7d4dc489/licensecheck-2025.1.0-py3-none-any.whl", hash = "sha256:eb20131cd8f877e5396958fd7b00cdb2225436c37a59dba4cf36d36079133a17", size = 26681, upload-time = "2025-03-26T22:58:03.145Z" }, ] [[package]] @@ -661,182 +774,255 @@ dependencies = [ { name = "colorama", marker = "sys_platform == 'win32'" }, { name = "win32-setctime", marker = "sys_platform == 'win32'" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/3a/05/a1dae3dffd1116099471c643b8924f5aa6524411dc6c63fdae648c4f1aca/loguru-0.7.3.tar.gz", hash = "sha256:19480589e77d47b8d85b2c827ad95d49bf31b0dcde16593892eb51dd18706eb6", size = 63559 } +sdist = { url = "https://files.pythonhosted.org/packages/3a/05/a1dae3dffd1116099471c643b8924f5aa6524411dc6c63fdae648c4f1aca/loguru-0.7.3.tar.gz", hash = "sha256:19480589e77d47b8d85b2c827ad95d49bf31b0dcde16593892eb51dd18706eb6", size = 63559, upload-time = "2024-12-06T11:20:56.608Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/0c/29/0348de65b8cc732daa3e33e67806420b2ae89bdce2b04af740289c5c6c8c/loguru-0.7.3-py3-none-any.whl", hash = "sha256:31a33c10c8e1e10422bfd431aeb5d351c7cf7fa671e3c4df004162264b28220c", size = 61595 }, + { url = "https://files.pythonhosted.org/packages/0c/29/0348de65b8cc732daa3e33e67806420b2ae89bdce2b04af740289c5c6c8c/loguru-0.7.3-py3-none-any.whl", hash = "sha256:31a33c10c8e1e10422bfd431aeb5d351c7cf7fa671e3c4df004162264b28220c", size = 61595, upload-time = "2024-12-06T11:20:54.538Z" }, ] [[package]] name = "markdown" -version = "3.8" +version = "3.9" source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/2f/15/222b423b0b88689c266d9eac4e61396fe2cc53464459d6a37618ac863b24/markdown-3.8.tar.gz", hash = "sha256:7df81e63f0df5c4b24b7d156eb81e4690595239b7d70937d0409f1b0de319c6f", size = 360906 } +sdist = { url = "https://files.pythonhosted.org/packages/8d/37/02347f6d6d8279247a5837082ebc26fc0d5aaeaf75aa013fcbb433c777ab/markdown-3.9.tar.gz", hash = "sha256:d2900fe1782bd33bdbbd56859defef70c2e78fc46668f8eb9df3128138f2cb6a", size = 364585, upload-time = "2025-09-04T20:25:22.885Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/51/3f/afe76f8e2246ffbc867440cbcf90525264df0e658f8a5ca1f872b3f6192a/markdown-3.8-py3-none-any.whl", hash = "sha256:794a929b79c5af141ef5ab0f2f642d0f7b1872981250230e72682346f7cc90dc", size = 106210 }, + { url = "https://files.pythonhosted.org/packages/70/ae/44c4a6a4cbb496d93c6257954260fe3a6e91b7bed2240e5dad2a717f5111/markdown-3.9-py3-none-any.whl", hash = "sha256:9f4d91ed810864ea88a6f32c07ba8bee1346c0cc1f6b1f9f6c822f2a9667d280", size = 107441, upload-time = "2025-09-04T20:25:21.784Z" }, ] [[package]] name = "markdown-it-py" -version = "3.0.0" +version = "4.0.0" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "mdurl" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/38/71/3b932df36c1a044d397a1f92d1cf91ee0a503d91e470cbd670aa66b07ed0/markdown-it-py-3.0.0.tar.gz", hash = "sha256:e3f60a94fa066dc52ec76661e37c851cb232d92f9886b15cb560aaada2df8feb", size = 74596 } +sdist = { url = "https://files.pythonhosted.org/packages/5b/f5/4ec618ed16cc4f8fb3b701563655a69816155e79e24a17b651541804721d/markdown_it_py-4.0.0.tar.gz", hash = "sha256:cb0a2b4aa34f932c007117b194e945bd74e0ec24133ceb5bac59009cda1cb9f3", size = 73070, upload-time = "2025-08-11T12:57:52.854Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/42/d7/1ec15b46af6af88f19b8e5ffea08fa375d433c998b8a7639e76935c14f1f/markdown_it_py-3.0.0-py3-none-any.whl", hash = "sha256:355216845c60bd96232cd8d8c40e8f9765cc86f46880e43a8fd22dc1a1a8cab1", size = 87528 }, + { url = "https://files.pythonhosted.org/packages/94/54/e7d793b573f298e1c9013b8c4dade17d481164aa517d1d7148619c2cedbf/markdown_it_py-4.0.0-py3-none-any.whl", hash = "sha256:87327c59b172c5011896038353a81343b6754500a08cd7a4973bb48c6d578147", size = 87321, upload-time = "2025-08-11T12:57:51.923Z" }, ] [[package]] name = "mdurl" version = "0.1.2" source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/d6/54/cfe61301667036ec958cb99bd3efefba235e65cdeb9c84d24a8293ba1d90/mdurl-0.1.2.tar.gz", hash = "sha256:bb413d29f5eea38f31dd4754dd7377d4465116fb207585f97bf925588687c1ba", size = 8729 } +sdist = { url = "https://files.pythonhosted.org/packages/d6/54/cfe61301667036ec958cb99bd3efefba235e65cdeb9c84d24a8293ba1d90/mdurl-0.1.2.tar.gz", hash = "sha256:bb413d29f5eea38f31dd4754dd7377d4465116fb207585f97bf925588687c1ba", size = 8729, upload-time = "2022-08-14T12:40:10.846Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/b3/38/89ba8ad64ae25be8de66a6d463314cf1eb366222074cfda9ee839c56a4b4/mdurl-0.1.2-py3-none-any.whl", hash = "sha256:84008a41e51615a49fc9966191ff91509e3c40b939176e643fd50a5c2196b8f8", size = 9979 }, + { url = "https://files.pythonhosted.org/packages/b3/38/89ba8ad64ae25be8de66a6d463314cf1eb366222074cfda9ee839c56a4b4/mdurl-0.1.2-py3-none-any.whl", hash = "sha256:84008a41e51615a49fc9966191ff91509e3c40b939176e643fd50a5c2196b8f8", size = 9979, upload-time = "2022-08-14T12:40:09.779Z" }, ] [[package]] name = "multidict" -version = "6.4.3" -source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/da/2c/e367dfb4c6538614a0c9453e510d75d66099edf1c4e69da1b5ce691a1931/multidict-6.4.3.tar.gz", hash = "sha256:3ada0b058c9f213c5f95ba301f922d402ac234f1111a7d8fd70f1b99f3c281ec", size = 89372 } -wheels = [ - { url = "https://files.pythonhosted.org/packages/16/e0/53cf7f27eda48fffa53cfd4502329ed29e00efb9e4ce41362cbf8aa54310/multidict-6.4.3-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:f6f19170197cc29baccd33ccc5b5d6a331058796485857cf34f7635aa25fb0cd", size = 65259 }, - { url = "https://files.pythonhosted.org/packages/44/79/1dcd93ce7070cf01c2ee29f781c42b33c64fce20033808f1cc9ec8413d6e/multidict-6.4.3-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:f2882bf27037eb687e49591690e5d491e677272964f9ec7bc2abbe09108bdfb8", size = 38451 }, - { url = "https://files.pythonhosted.org/packages/f4/35/2292cf29ab5f0d0b3613fad1b75692148959d3834d806be1885ceb49a8ff/multidict-6.4.3-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:fbf226ac85f7d6b6b9ba77db4ec0704fde88463dc17717aec78ec3c8546c70ad", size = 37706 }, - { url = "https://files.pythonhosted.org/packages/f6/d1/6b157110b2b187b5a608b37714acb15ee89ec773e3800315b0107ea648cd/multidict-6.4.3-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:2e329114f82ad4b9dd291bef614ea8971ec119ecd0f54795109976de75c9a852", size = 226669 }, - { url = "https://files.pythonhosted.org/packages/40/7f/61a476450651f177c5570e04bd55947f693077ba7804fe9717ee9ae8de04/multidict-6.4.3-cp311-cp311-manylinux_2_17_armv7l.manylinux2014_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:1f4e0334d7a555c63f5c8952c57ab6f1c7b4f8c7f3442df689fc9f03df315c08", size = 223182 }, - { url = "https://files.pythonhosted.org/packages/51/7b/eaf7502ac4824cdd8edcf5723e2e99f390c879866aec7b0c420267b53749/multidict-6.4.3-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:740915eb776617b57142ce0bb13b7596933496e2f798d3d15a20614adf30d229", size = 235025 }, - { url = "https://files.pythonhosted.org/packages/3b/f6/facdbbd73c96b67a93652774edd5778ab1167854fa08ea35ad004b1b70ad/multidict-6.4.3-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:255dac25134d2b141c944b59a0d2f7211ca12a6d4779f7586a98b4b03ea80508", size = 231481 }, - { url = "https://files.pythonhosted.org/packages/70/57/c008e861b3052405eebf921fd56a748322d8c44dcfcab164fffbccbdcdc4/multidict-6.4.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d4e8535bd4d741039b5aad4285ecd9b902ef9e224711f0b6afda6e38d7ac02c7", size = 223492 }, - { url = "https://files.pythonhosted.org/packages/30/4d/7d8440d3a12a6ae5d6b202d6e7f2ac6ab026e04e99aaf1b73f18e6bc34bc/multidict-6.4.3-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:30c433a33be000dd968f5750722eaa0991037be0be4a9d453eba121774985bc8", size = 217279 }, - { url = "https://files.pythonhosted.org/packages/7f/e7/bca0df4dd057597b94138d2d8af04eb3c27396a425b1b0a52e082f9be621/multidict-6.4.3-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:4eb33b0bdc50acd538f45041f5f19945a1f32b909b76d7b117c0c25d8063df56", size = 228733 }, - { url = "https://files.pythonhosted.org/packages/88/f5/383827c3f1c38d7c92dbad00a8a041760228573b1c542fbf245c37bbca8a/multidict-6.4.3-cp311-cp311-musllinux_1_2_armv7l.whl", hash = "sha256:75482f43465edefd8a5d72724887ccdcd0c83778ded8f0cb1e0594bf71736cc0", size = 218089 }, - { url = "https://files.pythonhosted.org/packages/36/8a/a5174e8a7d8b94b4c8f9c1e2cf5d07451f41368ffe94d05fc957215b8e72/multidict-6.4.3-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:ce5b3082e86aee80b3925ab4928198450d8e5b6466e11501fe03ad2191c6d777", size = 225257 }, - { url = "https://files.pythonhosted.org/packages/8c/76/1d4b7218f0fd00b8e5c90b88df2e45f8af127f652f4e41add947fa54c1c4/multidict-6.4.3-cp311-cp311-musllinux_1_2_ppc64le.whl", hash = "sha256:e413152e3212c4d39f82cf83c6f91be44bec9ddea950ce17af87fbf4e32ca6b2", size = 234728 }, - { url = "https://files.pythonhosted.org/packages/64/44/18372a4f6273fc7ca25630d7bf9ae288cde64f29593a078bff450c7170b6/multidict-6.4.3-cp311-cp311-musllinux_1_2_s390x.whl", hash = "sha256:8aac2eeff69b71f229a405c0a4b61b54bade8e10163bc7b44fcd257949620618", size = 230087 }, - { url = "https://files.pythonhosted.org/packages/0f/ae/28728c314a698d8a6d9491fcacc897077348ec28dd85884d09e64df8a855/multidict-6.4.3-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:ab583ac203af1d09034be41458feeab7863c0635c650a16f15771e1386abf2d7", size = 223137 }, - { url = "https://files.pythonhosted.org/packages/22/50/785bb2b3fe16051bc91c70a06a919f26312da45c34db97fc87441d61e343/multidict-6.4.3-cp311-cp311-win32.whl", hash = "sha256:1b2019317726f41e81154df636a897de1bfe9228c3724a433894e44cd2512378", size = 34959 }, - { url = "https://files.pythonhosted.org/packages/2f/63/2a22e099ae2f4d92897618c00c73a09a08a2a9aa14b12736965bf8d59fd3/multidict-6.4.3-cp311-cp311-win_amd64.whl", hash = "sha256:43173924fa93c7486402217fab99b60baf78d33806af299c56133a3755f69589", size = 38541 }, - { url = "https://files.pythonhosted.org/packages/fc/bb/3abdaf8fe40e9226ce8a2ba5ecf332461f7beec478a455d6587159f1bf92/multidict-6.4.3-cp312-cp312-macosx_10_13_universal2.whl", hash = "sha256:1f1c2f58f08b36f8475f3ec6f5aeb95270921d418bf18f90dffd6be5c7b0e676", size = 64019 }, - { url = "https://files.pythonhosted.org/packages/7e/b5/1b2e8de8217d2e89db156625aa0fe4a6faad98972bfe07a7b8c10ef5dd6b/multidict-6.4.3-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:26ae9ad364fc61b936fb7bf4c9d8bd53f3a5b4417142cd0be5c509d6f767e2f1", size = 37925 }, - { url = "https://files.pythonhosted.org/packages/b4/e2/3ca91c112644a395c8eae017144c907d173ea910c913ff8b62549dcf0bbf/multidict-6.4.3-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:659318c6c8a85f6ecfc06b4e57529e5a78dfdd697260cc81f683492ad7e9435a", size = 37008 }, - { url = "https://files.pythonhosted.org/packages/60/23/79bc78146c7ac8d1ac766b2770ca2e07c2816058b8a3d5da6caed8148637/multidict-6.4.3-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:e1eb72c741fd24d5a28242ce72bb61bc91f8451877131fa3fe930edb195f7054", size = 224374 }, - { url = "https://files.pythonhosted.org/packages/86/35/77950ed9ebd09136003a85c1926ba42001ca5be14feb49710e4334ee199b/multidict-6.4.3-cp312-cp312-manylinux_2_17_armv7l.manylinux2014_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:3cd06d88cb7398252284ee75c8db8e680aa0d321451132d0dba12bc995f0adcc", size = 230869 }, - { url = "https://files.pythonhosted.org/packages/49/97/2a33c6e7d90bc116c636c14b2abab93d6521c0c052d24bfcc231cbf7f0e7/multidict-6.4.3-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:4543d8dc6470a82fde92b035a92529317191ce993533c3c0c68f56811164ed07", size = 231949 }, - { url = "https://files.pythonhosted.org/packages/56/ce/e9b5d9fcf854f61d6686ada7ff64893a7a5523b2a07da6f1265eaaea5151/multidict-6.4.3-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:30a3ebdc068c27e9d6081fca0e2c33fdf132ecea703a72ea216b81a66860adde", size = 231032 }, - { url = "https://files.pythonhosted.org/packages/f0/ac/7ced59dcdfeddd03e601edb05adff0c66d81ed4a5160c443e44f2379eef0/multidict-6.4.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b038f10e23f277153f86f95c777ba1958bcd5993194fda26a1d06fae98b2f00c", size = 223517 }, - { url = "https://files.pythonhosted.org/packages/db/e6/325ed9055ae4e085315193a1b58bdb4d7fc38ffcc1f4975cfca97d015e17/multidict-6.4.3-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:c605a2b2dc14282b580454b9b5d14ebe0668381a3a26d0ac39daa0ca115eb2ae", size = 216291 }, - { url = "https://files.pythonhosted.org/packages/fa/84/eeee6d477dd9dcb7691c3bb9d08df56017f5dd15c730bcc9383dcf201cf4/multidict-6.4.3-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:8bd2b875f4ca2bb527fe23e318ddd509b7df163407b0fb717df229041c6df5d3", size = 228982 }, - { url = "https://files.pythonhosted.org/packages/82/94/4d1f3e74e7acf8b0c85db350e012dcc61701cd6668bc2440bb1ecb423c90/multidict-6.4.3-cp312-cp312-musllinux_1_2_armv7l.whl", hash = "sha256:c2e98c840c9c8e65c0e04b40c6c5066c8632678cd50c8721fdbcd2e09f21a507", size = 226823 }, - { url = "https://files.pythonhosted.org/packages/09/f0/1e54b95bda7cd01080e5732f9abb7b76ab5cc795b66605877caeb2197476/multidict-6.4.3-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:66eb80dd0ab36dbd559635e62fba3083a48a252633164857a1d1684f14326427", size = 222714 }, - { url = "https://files.pythonhosted.org/packages/e7/a2/f6cbca875195bd65a3e53b37ab46486f3cc125bdeab20eefe5042afa31fb/multidict-6.4.3-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:c23831bdee0a2a3cf21be057b5e5326292f60472fb6c6f86392bbf0de70ba731", size = 233739 }, - { url = "https://files.pythonhosted.org/packages/79/68/9891f4d2b8569554723ddd6154375295f789dc65809826c6fb96a06314fd/multidict-6.4.3-cp312-cp312-musllinux_1_2_s390x.whl", hash = "sha256:1535cec6443bfd80d028052e9d17ba6ff8a5a3534c51d285ba56c18af97e9713", size = 230809 }, - { url = "https://files.pythonhosted.org/packages/e6/72/a7be29ba1e87e4fc5ceb44dabc7940b8005fd2436a332a23547709315f70/multidict-6.4.3-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:3b73e7227681f85d19dec46e5b881827cd354aabe46049e1a61d2f9aaa4e285a", size = 226934 }, - { url = "https://files.pythonhosted.org/packages/12/c1/259386a9ad6840ff7afc686da96808b503d152ac4feb3a96c651dc4f5abf/multidict-6.4.3-cp312-cp312-win32.whl", hash = "sha256:8eac0c49df91b88bf91f818e0a24c1c46f3622978e2c27035bfdca98e0e18124", size = 35242 }, - { url = "https://files.pythonhosted.org/packages/06/24/c8fdff4f924d37225dc0c56a28b1dca10728fc2233065fafeb27b4b125be/multidict-6.4.3-cp312-cp312-win_amd64.whl", hash = "sha256:11990b5c757d956cd1db7cb140be50a63216af32cd6506329c2c59d732d802db", size = 38635 }, - { url = "https://files.pythonhosted.org/packages/6c/4b/86fd786d03915c6f49998cf10cd5fe6b6ac9e9a071cb40885d2e080fb90d/multidict-6.4.3-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:7a76534263d03ae0cfa721fea40fd2b5b9d17a6f85e98025931d41dc49504474", size = 63831 }, - { url = "https://files.pythonhosted.org/packages/45/05/9b51fdf7aef2563340a93be0a663acba2c428c4daeaf3960d92d53a4a930/multidict-6.4.3-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:805031c2f599eee62ac579843555ed1ce389ae00c7e9f74c2a1b45e0564a88dd", size = 37888 }, - { url = "https://files.pythonhosted.org/packages/0b/43/53fc25394386c911822419b522181227ca450cf57fea76e6188772a1bd91/multidict-6.4.3-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:c56c179839d5dcf51d565132185409d1d5dd8e614ba501eb79023a6cab25576b", size = 36852 }, - { url = "https://files.pythonhosted.org/packages/8a/68/7b99c751e822467c94a235b810a2fd4047d4ecb91caef6b5c60116991c4b/multidict-6.4.3-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:9c64f4ddb3886dd8ab71b68a7431ad4aa01a8fa5be5b11543b29674f29ca0ba3", size = 223644 }, - { url = "https://files.pythonhosted.org/packages/80/1b/d458d791e4dd0f7e92596667784fbf99e5c8ba040affe1ca04f06b93ae92/multidict-6.4.3-cp313-cp313-manylinux_2_17_armv7l.manylinux2014_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:3002a856367c0b41cad6784f5b8d3ab008eda194ed7864aaa58f65312e2abcac", size = 230446 }, - { url = "https://files.pythonhosted.org/packages/e2/46/9793378d988905491a7806d8987862dc5a0bae8a622dd896c4008c7b226b/multidict-6.4.3-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:3d75e621e7d887d539d6e1d789f0c64271c250276c333480a9e1de089611f790", size = 231070 }, - { url = "https://files.pythonhosted.org/packages/a7/b8/b127d3e1f8dd2a5bf286b47b24567ae6363017292dc6dec44656e6246498/multidict-6.4.3-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:995015cf4a3c0d72cbf453b10a999b92c5629eaf3a0c3e1efb4b5c1f602253bb", size = 229956 }, - { url = "https://files.pythonhosted.org/packages/0c/93/f70a4c35b103fcfe1443059a2bb7f66e5c35f2aea7804105ff214f566009/multidict-6.4.3-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:a2b0fabae7939d09d7d16a711468c385272fa1b9b7fb0d37e51143585d8e72e0", size = 222599 }, - { url = "https://files.pythonhosted.org/packages/63/8c/e28e0eb2fe34921d6aa32bfc4ac75b09570b4d6818cc95d25499fe08dc1d/multidict-6.4.3-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:61ed4d82f8a1e67eb9eb04f8587970d78fe7cddb4e4d6230b77eda23d27938f9", size = 216136 }, - { url = "https://files.pythonhosted.org/packages/72/f5/fbc81f866585b05f89f99d108be5d6ad170e3b6c4d0723d1a2f6ba5fa918/multidict-6.4.3-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:062428944a8dc69df9fdc5d5fc6279421e5f9c75a9ee3f586f274ba7b05ab3c8", size = 228139 }, - { url = "https://files.pythonhosted.org/packages/bb/ba/7d196bad6b85af2307d81f6979c36ed9665f49626f66d883d6c64d156f78/multidict-6.4.3-cp313-cp313-musllinux_1_2_armv7l.whl", hash = "sha256:b90e27b4674e6c405ad6c64e515a505c6d113b832df52fdacb6b1ffd1fa9a1d1", size = 226251 }, - { url = "https://files.pythonhosted.org/packages/cc/e2/fae46a370dce79d08b672422a33df721ec8b80105e0ea8d87215ff6b090d/multidict-6.4.3-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:7d50d4abf6729921e9613d98344b74241572b751c6b37feed75fb0c37bd5a817", size = 221868 }, - { url = "https://files.pythonhosted.org/packages/26/20/bbc9a3dec19d5492f54a167f08546656e7aef75d181d3d82541463450e88/multidict-6.4.3-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:43fe10524fb0a0514be3954be53258e61d87341008ce4914f8e8b92bee6f875d", size = 233106 }, - { url = "https://files.pythonhosted.org/packages/ee/8d/f30ae8f5ff7a2461177f4d8eb0d8f69f27fb6cfe276b54ec4fd5a282d918/multidict-6.4.3-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:236966ca6c472ea4e2d3f02f6673ebfd36ba3f23159c323f5a496869bc8e47c9", size = 230163 }, - { url = "https://files.pythonhosted.org/packages/15/e9/2833f3c218d3c2179f3093f766940ded6b81a49d2e2f9c46ab240d23dfec/multidict-6.4.3-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:422a5ec315018e606473ba1f5431e064cf8b2a7468019233dcf8082fabad64c8", size = 225906 }, - { url = "https://files.pythonhosted.org/packages/f1/31/6edab296ac369fd286b845fa5dd4c409e63bc4655ed8c9510fcb477e9ae9/multidict-6.4.3-cp313-cp313-win32.whl", hash = "sha256:f901a5aace8e8c25d78960dcc24c870c8d356660d3b49b93a78bf38eb682aac3", size = 35238 }, - { url = "https://files.pythonhosted.org/packages/23/57/2c0167a1bffa30d9a1383c3dab99d8caae985defc8636934b5668830d2ef/multidict-6.4.3-cp313-cp313-win_amd64.whl", hash = "sha256:1c152c49e42277bc9a2f7b78bd5fa10b13e88d1b0328221e7aef89d5c60a99a5", size = 38799 }, - { url = "https://files.pythonhosted.org/packages/c9/13/2ead63b9ab0d2b3080819268acb297bd66e238070aa8d42af12b08cbee1c/multidict-6.4.3-cp313-cp313t-macosx_10_13_universal2.whl", hash = "sha256:be8751869e28b9c0d368d94f5afcb4234db66fe8496144547b4b6d6a0645cfc6", size = 68642 }, - { url = "https://files.pythonhosted.org/packages/85/45/f1a751e1eede30c23951e2ae274ce8fad738e8a3d5714be73e0a41b27b16/multidict-6.4.3-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:0d4b31f8a68dccbcd2c0ea04f0e014f1defc6b78f0eb8b35f2265e8716a6df0c", size = 40028 }, - { url = "https://files.pythonhosted.org/packages/a7/29/fcc53e886a2cc5595cc4560df333cb9630257bda65003a7eb4e4e0d8f9c1/multidict-6.4.3-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:032efeab3049e37eef2ff91271884303becc9e54d740b492a93b7e7266e23756", size = 39424 }, - { url = "https://files.pythonhosted.org/packages/f6/f0/056c81119d8b88703971f937b371795cab1407cd3c751482de5bfe1a04a9/multidict-6.4.3-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:9e78006af1a7c8a8007e4f56629d7252668344442f66982368ac06522445e375", size = 226178 }, - { url = "https://files.pythonhosted.org/packages/a3/79/3b7e5fea0aa80583d3a69c9d98b7913dfd4fbc341fb10bb2fb48d35a9c21/multidict-6.4.3-cp313-cp313t-manylinux_2_17_armv7l.manylinux2014_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:daeac9dd30cda8703c417e4fddccd7c4dc0c73421a0b54a7da2713be125846be", size = 222617 }, - { url = "https://files.pythonhosted.org/packages/06/db/3ed012b163e376fc461e1d6a67de69b408339bc31dc83d39ae9ec3bf9578/multidict-6.4.3-cp313-cp313t-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:1f6f90700881438953eae443a9c6f8a509808bc3b185246992c4233ccee37fea", size = 227919 }, - { url = "https://files.pythonhosted.org/packages/b1/db/0433c104bca380989bc04d3b841fc83e95ce0c89f680e9ea4251118b52b6/multidict-6.4.3-cp313-cp313t-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:f84627997008390dd15762128dcf73c3365f4ec0106739cde6c20a07ed198ec8", size = 226097 }, - { url = "https://files.pythonhosted.org/packages/c2/95/910db2618175724dd254b7ae635b6cd8d2947a8b76b0376de7b96d814dab/multidict-6.4.3-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:3307b48cd156153b117c0ea54890a3bdbf858a5b296ddd40dc3852e5f16e9b02", size = 220706 }, - { url = "https://files.pythonhosted.org/packages/d1/af/aa176c6f5f1d901aac957d5258d5e22897fe13948d1e69063ae3d5d0ca01/multidict-6.4.3-cp313-cp313t-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:ead46b0fa1dcf5af503a46e9f1c2e80b5d95c6011526352fa5f42ea201526124", size = 211728 }, - { url = "https://files.pythonhosted.org/packages/e7/42/d51cc5fc1527c3717d7f85137d6c79bb7a93cd214c26f1fc57523774dbb5/multidict-6.4.3-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:1748cb2743bedc339d63eb1bca314061568793acd603a6e37b09a326334c9f44", size = 226276 }, - { url = "https://files.pythonhosted.org/packages/28/6b/d836dea45e0b8432343ba4acf9a8ecaa245da4c0960fb7ab45088a5e568a/multidict-6.4.3-cp313-cp313t-musllinux_1_2_armv7l.whl", hash = "sha256:acc9fa606f76fc111b4569348cc23a771cb52c61516dcc6bcef46d612edb483b", size = 212069 }, - { url = "https://files.pythonhosted.org/packages/55/34/0ee1a7adb3560e18ee9289c6e5f7db54edc312b13e5c8263e88ea373d12c/multidict-6.4.3-cp313-cp313t-musllinux_1_2_i686.whl", hash = "sha256:31469d5832b5885adeb70982e531ce86f8c992334edd2f2254a10fa3182ac504", size = 217858 }, - { url = "https://files.pythonhosted.org/packages/04/08/586d652c2f5acefe0cf4e658eedb4d71d4ba6dfd4f189bd81b400fc1bc6b/multidict-6.4.3-cp313-cp313t-musllinux_1_2_ppc64le.whl", hash = "sha256:ba46b51b6e51b4ef7bfb84b82f5db0dc5e300fb222a8a13b8cd4111898a869cf", size = 226988 }, - { url = "https://files.pythonhosted.org/packages/82/e3/cc59c7e2bc49d7f906fb4ffb6d9c3a3cf21b9f2dd9c96d05bef89c2b1fd1/multidict-6.4.3-cp313-cp313t-musllinux_1_2_s390x.whl", hash = "sha256:389cfefb599edf3fcfd5f64c0410da686f90f5f5e2c4d84e14f6797a5a337af4", size = 220435 }, - { url = "https://files.pythonhosted.org/packages/e0/32/5c3a556118aca9981d883f38c4b1bfae646f3627157f70f4068e5a648955/multidict-6.4.3-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:64bc2bbc5fba7b9db5c2c8d750824f41c6994e3882e6d73c903c2afa78d091e4", size = 221494 }, - { url = "https://files.pythonhosted.org/packages/b9/3b/1599631f59024b75c4d6e3069f4502409970a336647502aaf6b62fb7ac98/multidict-6.4.3-cp313-cp313t-win32.whl", hash = "sha256:0ecdc12ea44bab2807d6b4a7e5eef25109ab1c82a8240d86d3c1fc9f3b72efd5", size = 41775 }, - { url = "https://files.pythonhosted.org/packages/e8/4e/09301668d675d02ca8e8e1a3e6be046619e30403f5ada2ed5b080ae28d02/multidict-6.4.3-cp313-cp313t-win_amd64.whl", hash = "sha256:7146a8742ea71b5d7d955bffcef58a9e6e04efba704b52a460134fefd10a8208", size = 45946 }, - { url = "https://files.pythonhosted.org/packages/96/10/7d526c8974f017f1e7ca584c71ee62a638e9334d8d33f27d7cdfc9ae79e4/multidict-6.4.3-py3-none-any.whl", hash = "sha256:59fe01ee8e2a1e8ceb3f6dbb216b09c8d9f4ef1c22c4fc825d045a147fa2ebc9", size = 10400 }, +version = "6.7.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/80/1e/5492c365f222f907de1039b91f922b93fa4f764c713ee858d235495d8f50/multidict-6.7.0.tar.gz", hash = "sha256:c6e99d9a65ca282e578dfea819cfa9c0a62b2499d8677392e09feaf305e9e6f5", size = 101834, upload-time = "2025-10-06T14:52:30.657Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/34/9e/5c727587644d67b2ed479041e4b1c58e30afc011e3d45d25bbe35781217c/multidict-6.7.0-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:4d409aa42a94c0b3fa617708ef5276dfe81012ba6753a0370fcc9d0195d0a1fc", size = 76604, upload-time = "2025-10-06T14:48:54.277Z" }, + { url = "https://files.pythonhosted.org/packages/17/e4/67b5c27bd17c085a5ea8f1ec05b8a3e5cba0ca734bfcad5560fb129e70ca/multidict-6.7.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:14c9e076eede3b54c636f8ce1c9c252b5f057c62131211f0ceeec273810c9721", size = 44715, upload-time = "2025-10-06T14:48:55.445Z" }, + { url = "https://files.pythonhosted.org/packages/4d/e1/866a5d77be6ea435711bef2a4291eed11032679b6b28b56b4776ab06ba3e/multidict-6.7.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:4c09703000a9d0fa3c3404b27041e574cc7f4df4c6563873246d0e11812a94b6", size = 44332, upload-time = "2025-10-06T14:48:56.706Z" }, + { url = "https://files.pythonhosted.org/packages/31/61/0c2d50241ada71ff61a79518db85ada85fdabfcf395d5968dae1cbda04e5/multidict-6.7.0-cp311-cp311-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:a265acbb7bb33a3a2d626afbe756371dce0279e7b17f4f4eda406459c2b5ff1c", size = 245212, upload-time = "2025-10-06T14:48:58.042Z" }, + { url = "https://files.pythonhosted.org/packages/ac/e0/919666a4e4b57fff1b57f279be1c9316e6cdc5de8a8b525d76f6598fefc7/multidict-6.7.0-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:51cb455de290ae462593e5b1cb1118c5c22ea7f0d3620d9940bf695cea5a4bd7", size = 246671, upload-time = "2025-10-06T14:49:00.004Z" }, + { url = "https://files.pythonhosted.org/packages/a1/cc/d027d9c5a520f3321b65adea289b965e7bcbd2c34402663f482648c716ce/multidict-6.7.0-cp311-cp311-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:db99677b4457c7a5c5a949353e125ba72d62b35f74e26da141530fbb012218a7", size = 225491, upload-time = "2025-10-06T14:49:01.393Z" }, + { url = "https://files.pythonhosted.org/packages/75/c4/bbd633980ce6155a28ff04e6a6492dd3335858394d7bb752d8b108708558/multidict-6.7.0-cp311-cp311-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:f470f68adc395e0183b92a2f4689264d1ea4b40504a24d9882c27375e6662bb9", size = 257322, upload-time = "2025-10-06T14:49:02.745Z" }, + { url = "https://files.pythonhosted.org/packages/4c/6d/d622322d344f1f053eae47e033b0b3f965af01212de21b10bcf91be991fb/multidict-6.7.0-cp311-cp311-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:0db4956f82723cc1c270de9c6e799b4c341d327762ec78ef82bb962f79cc07d8", size = 254694, upload-time = "2025-10-06T14:49:04.15Z" }, + { url = "https://files.pythonhosted.org/packages/a8/9f/78f8761c2705d4c6d7516faed63c0ebdac569f6db1bef95e0d5218fdc146/multidict-6.7.0-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:3e56d780c238f9e1ae66a22d2adf8d16f485381878250db8d496623cd38b22bd", size = 246715, upload-time = "2025-10-06T14:49:05.967Z" }, + { url = "https://files.pythonhosted.org/packages/78/59/950818e04f91b9c2b95aab3d923d9eabd01689d0dcd889563988e9ea0fd8/multidict-6.7.0-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:9d14baca2ee12c1a64740d4531356ba50b82543017f3ad6de0deb943c5979abb", size = 243189, upload-time = "2025-10-06T14:49:07.37Z" }, + { url = "https://files.pythonhosted.org/packages/7a/3d/77c79e1934cad2ee74991840f8a0110966d9599b3af95964c0cd79bb905b/multidict-6.7.0-cp311-cp311-musllinux_1_2_armv7l.whl", hash = "sha256:295a92a76188917c7f99cda95858c822f9e4aae5824246bba9b6b44004ddd0a6", size = 237845, upload-time = "2025-10-06T14:49:08.759Z" }, + { url = "https://files.pythonhosted.org/packages/63/1b/834ce32a0a97a3b70f86437f685f880136677ac00d8bce0027e9fd9c2db7/multidict-6.7.0-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:39f1719f57adbb767ef592a50ae5ebb794220d1188f9ca93de471336401c34d2", size = 246374, upload-time = "2025-10-06T14:49:10.574Z" }, + { url = "https://files.pythonhosted.org/packages/23/ef/43d1c3ba205b5dec93dc97f3fba179dfa47910fc73aaaea4f7ceb41cec2a/multidict-6.7.0-cp311-cp311-musllinux_1_2_ppc64le.whl", hash = "sha256:0a13fb8e748dfc94749f622de065dd5c1def7e0d2216dba72b1d8069a389c6ff", size = 253345, upload-time = "2025-10-06T14:49:12.331Z" }, + { url = "https://files.pythonhosted.org/packages/6b/03/eaf95bcc2d19ead522001f6a650ef32811aa9e3624ff0ad37c445c7a588c/multidict-6.7.0-cp311-cp311-musllinux_1_2_s390x.whl", hash = "sha256:e3aa16de190d29a0ea1b48253c57d99a68492c8dd8948638073ab9e74dc9410b", size = 246940, upload-time = "2025-10-06T14:49:13.821Z" }, + { url = "https://files.pythonhosted.org/packages/e8/df/ec8a5fd66ea6cd6f525b1fcbb23511b033c3e9bc42b81384834ffa484a62/multidict-6.7.0-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:a048ce45dcdaaf1defb76b2e684f997fb5abf74437b6cb7b22ddad934a964e34", size = 242229, upload-time = "2025-10-06T14:49:15.603Z" }, + { url = "https://files.pythonhosted.org/packages/8a/a2/59b405d59fd39ec86d1142630e9049243015a5f5291ba49cadf3c090c541/multidict-6.7.0-cp311-cp311-win32.whl", hash = "sha256:a90af66facec4cebe4181b9e62a68be65e45ac9b52b67de9eec118701856e7ff", size = 41308, upload-time = "2025-10-06T14:49:16.871Z" }, + { url = "https://files.pythonhosted.org/packages/32/0f/13228f26f8b882c34da36efa776c3b7348455ec383bab4a66390e42963ae/multidict-6.7.0-cp311-cp311-win_amd64.whl", hash = "sha256:95b5ffa4349df2887518bb839409bcf22caa72d82beec453216802f475b23c81", size = 46037, upload-time = "2025-10-06T14:49:18.457Z" }, + { url = "https://files.pythonhosted.org/packages/84/1f/68588e31b000535a3207fd3c909ebeec4fb36b52c442107499c18a896a2a/multidict-6.7.0-cp311-cp311-win_arm64.whl", hash = "sha256:329aa225b085b6f004a4955271a7ba9f1087e39dcb7e65f6284a988264a63912", size = 43023, upload-time = "2025-10-06T14:49:19.648Z" }, + { url = "https://files.pythonhosted.org/packages/c2/9e/9f61ac18d9c8b475889f32ccfa91c9f59363480613fc807b6e3023d6f60b/multidict-6.7.0-cp312-cp312-macosx_10_13_universal2.whl", hash = "sha256:8a3862568a36d26e650a19bb5cbbba14b71789032aebc0423f8cc5f150730184", size = 76877, upload-time = "2025-10-06T14:49:20.884Z" }, + { url = "https://files.pythonhosted.org/packages/38/6f/614f09a04e6184f8824268fce4bc925e9849edfa654ddd59f0b64508c595/multidict-6.7.0-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:960c60b5849b9b4f9dcc9bea6e3626143c252c74113df2c1540aebce70209b45", size = 45467, upload-time = "2025-10-06T14:49:22.054Z" }, + { url = "https://files.pythonhosted.org/packages/b3/93/c4f67a436dd026f2e780c433277fff72be79152894d9fc36f44569cab1a6/multidict-6.7.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:2049be98fb57a31b4ccf870bf377af2504d4ae35646a19037ec271e4c07998aa", size = 43834, upload-time = "2025-10-06T14:49:23.566Z" }, + { url = "https://files.pythonhosted.org/packages/7f/f5/013798161ca665e4a422afbc5e2d9e4070142a9ff8905e482139cd09e4d0/multidict-6.7.0-cp312-cp312-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:0934f3843a1860dd465d38895c17fce1f1cb37295149ab05cd1b9a03afacb2a7", size = 250545, upload-time = "2025-10-06T14:49:24.882Z" }, + { url = "https://files.pythonhosted.org/packages/71/2f/91dbac13e0ba94669ea5119ba267c9a832f0cb65419aca75549fcf09a3dc/multidict-6.7.0-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:b3e34f3a1b8131ba06f1a73adab24f30934d148afcd5f5de9a73565a4404384e", size = 258305, upload-time = "2025-10-06T14:49:26.778Z" }, + { url = "https://files.pythonhosted.org/packages/ef/b0/754038b26f6e04488b48ac621f779c341338d78503fb45403755af2df477/multidict-6.7.0-cp312-cp312-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:efbb54e98446892590dc2458c19c10344ee9a883a79b5cec4bc34d6656e8d546", size = 242363, upload-time = "2025-10-06T14:49:28.562Z" }, + { url = "https://files.pythonhosted.org/packages/87/15/9da40b9336a7c9fa606c4cf2ed80a649dffeb42b905d4f63a1d7eb17d746/multidict-6.7.0-cp312-cp312-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:a35c5fc61d4f51eb045061e7967cfe3123d622cd500e8868e7c0c592a09fedc4", size = 268375, upload-time = "2025-10-06T14:49:29.96Z" }, + { url = "https://files.pythonhosted.org/packages/82/72/c53fcade0cc94dfaad583105fd92b3a783af2091eddcb41a6d5a52474000/multidict-6.7.0-cp312-cp312-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:29fe6740ebccba4175af1b9b87bf553e9c15cd5868ee967e010efcf94e4fd0f1", size = 269346, upload-time = "2025-10-06T14:49:31.404Z" }, + { url = "https://files.pythonhosted.org/packages/0d/e2/9baffdae21a76f77ef8447f1a05a96ec4bc0a24dae08767abc0a2fe680b8/multidict-6.7.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:123e2a72e20537add2f33a79e605f6191fba2afda4cbb876e35c1a7074298a7d", size = 256107, upload-time = "2025-10-06T14:49:32.974Z" }, + { url = "https://files.pythonhosted.org/packages/3c/06/3f06f611087dc60d65ef775f1fb5aca7c6d61c6db4990e7cda0cef9b1651/multidict-6.7.0-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:b284e319754366c1aee2267a2036248b24eeb17ecd5dc16022095e747f2f4304", size = 253592, upload-time = "2025-10-06T14:49:34.52Z" }, + { url = "https://files.pythonhosted.org/packages/20/24/54e804ec7945b6023b340c412ce9c3f81e91b3bf5fa5ce65558740141bee/multidict-6.7.0-cp312-cp312-musllinux_1_2_armv7l.whl", hash = "sha256:803d685de7be4303b5a657b76e2f6d1240e7e0a8aa2968ad5811fa2285553a12", size = 251024, upload-time = "2025-10-06T14:49:35.956Z" }, + { url = "https://files.pythonhosted.org/packages/14/48/011cba467ea0b17ceb938315d219391d3e421dfd35928e5dbdc3f4ae76ef/multidict-6.7.0-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:c04a328260dfd5db8c39538f999f02779012268f54614902d0afc775d44e0a62", size = 251484, upload-time = "2025-10-06T14:49:37.631Z" }, + { url = "https://files.pythonhosted.org/packages/0d/2f/919258b43bb35b99fa127435cfb2d91798eb3a943396631ef43e3720dcf4/multidict-6.7.0-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:8a19cdb57cd3df4cd865849d93ee14920fb97224300c88501f16ecfa2604b4e0", size = 263579, upload-time = "2025-10-06T14:49:39.502Z" }, + { url = "https://files.pythonhosted.org/packages/31/22/a0e884d86b5242b5a74cf08e876bdf299e413016b66e55511f7a804a366e/multidict-6.7.0-cp312-cp312-musllinux_1_2_s390x.whl", hash = "sha256:9b2fd74c52accced7e75de26023b7dccee62511a600e62311b918ec5c168fc2a", size = 259654, upload-time = "2025-10-06T14:49:41.32Z" }, + { url = "https://files.pythonhosted.org/packages/b2/e5/17e10e1b5c5f5a40f2fcbb45953c9b215f8a4098003915e46a93f5fcaa8f/multidict-6.7.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:3e8bfdd0e487acf992407a140d2589fe598238eaeffa3da8448d63a63cd363f8", size = 251511, upload-time = "2025-10-06T14:49:46.021Z" }, + { url = "https://files.pythonhosted.org/packages/e3/9a/201bb1e17e7af53139597069c375e7b0dcbd47594604f65c2d5359508566/multidict-6.7.0-cp312-cp312-win32.whl", hash = "sha256:dd32a49400a2c3d52088e120ee00c1e3576cbff7e10b98467962c74fdb762ed4", size = 41895, upload-time = "2025-10-06T14:49:48.718Z" }, + { url = "https://files.pythonhosted.org/packages/46/e2/348cd32faad84eaf1d20cce80e2bb0ef8d312c55bca1f7fa9865e7770aaf/multidict-6.7.0-cp312-cp312-win_amd64.whl", hash = "sha256:92abb658ef2d7ef22ac9f8bb88e8b6c3e571671534e029359b6d9e845923eb1b", size = 46073, upload-time = "2025-10-06T14:49:50.28Z" }, + { url = "https://files.pythonhosted.org/packages/25/ec/aad2613c1910dce907480e0c3aa306905830f25df2e54ccc9dea450cb5aa/multidict-6.7.0-cp312-cp312-win_arm64.whl", hash = "sha256:490dab541a6a642ce1a9d61a4781656b346a55c13038f0b1244653828e3a83ec", size = 43226, upload-time = "2025-10-06T14:49:52.304Z" }, + { url = "https://files.pythonhosted.org/packages/d2/86/33272a544eeb36d66e4d9a920602d1a2f57d4ebea4ef3cdfe5a912574c95/multidict-6.7.0-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:bee7c0588aa0076ce77c0ea5d19a68d76ad81fcd9fe8501003b9a24f9d4000f6", size = 76135, upload-time = "2025-10-06T14:49:54.26Z" }, + { url = "https://files.pythonhosted.org/packages/91/1c/eb97db117a1ebe46d457a3d235a7b9d2e6dcab174f42d1b67663dd9e5371/multidict-6.7.0-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:7ef6b61cad77091056ce0e7ce69814ef72afacb150b7ac6a3e9470def2198159", size = 45117, upload-time = "2025-10-06T14:49:55.82Z" }, + { url = "https://files.pythonhosted.org/packages/f1/d8/6c3442322e41fb1dd4de8bd67bfd11cd72352ac131f6368315617de752f1/multidict-6.7.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:9c0359b1ec12b1d6849c59f9d319610b7f20ef990a6d454ab151aa0e3b9f78ca", size = 43472, upload-time = "2025-10-06T14:49:57.048Z" }, + { url = "https://files.pythonhosted.org/packages/75/3f/e2639e80325af0b6c6febdf8e57cc07043ff15f57fa1ef808f4ccb5ac4cd/multidict-6.7.0-cp313-cp313-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:cd240939f71c64bd658f186330603aac1a9a81bf6273f523fca63673cb7378a8", size = 249342, upload-time = "2025-10-06T14:49:58.368Z" }, + { url = "https://files.pythonhosted.org/packages/5d/cc/84e0585f805cbeaa9cbdaa95f9a3d6aed745b9d25700623ac89a6ecff400/multidict-6.7.0-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:a60a4d75718a5efa473ebd5ab685786ba0c67b8381f781d1be14da49f1a2dc60", size = 257082, upload-time = "2025-10-06T14:49:59.89Z" }, + { url = "https://files.pythonhosted.org/packages/b0/9c/ac851c107c92289acbbf5cfb485694084690c1b17e555f44952c26ddc5bd/multidict-6.7.0-cp313-cp313-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:53a42d364f323275126aff81fb67c5ca1b7a04fda0546245730a55c8c5f24bc4", size = 240704, upload-time = "2025-10-06T14:50:01.485Z" }, + { url = "https://files.pythonhosted.org/packages/50/cc/5f93e99427248c09da95b62d64b25748a5f5c98c7c2ab09825a1d6af0e15/multidict-6.7.0-cp313-cp313-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:3b29b980d0ddbecb736735ee5bef69bb2ddca56eff603c86f3f29a1128299b4f", size = 266355, upload-time = "2025-10-06T14:50:02.955Z" }, + { url = "https://files.pythonhosted.org/packages/ec/0c/2ec1d883ceb79c6f7f6d7ad90c919c898f5d1c6ea96d322751420211e072/multidict-6.7.0-cp313-cp313-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:f8a93b1c0ed2d04b97a5e9336fd2d33371b9a6e29ab7dd6503d63407c20ffbaf", size = 267259, upload-time = "2025-10-06T14:50:04.446Z" }, + { url = "https://files.pythonhosted.org/packages/c6/2d/f0b184fa88d6630aa267680bdb8623fb69cb0d024b8c6f0d23f9a0f406d3/multidict-6.7.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:9ff96e8815eecacc6645da76c413eb3b3d34cfca256c70b16b286a687d013c32", size = 254903, upload-time = "2025-10-06T14:50:05.98Z" }, + { url = "https://files.pythonhosted.org/packages/06/c9/11ea263ad0df7dfabcad404feb3c0dd40b131bc7f232d5537f2fb1356951/multidict-6.7.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:7516c579652f6a6be0e266aec0acd0db80829ca305c3d771ed898538804c2036", size = 252365, upload-time = "2025-10-06T14:50:07.511Z" }, + { url = "https://files.pythonhosted.org/packages/41/88/d714b86ee2c17d6e09850c70c9d310abac3d808ab49dfa16b43aba9d53fd/multidict-6.7.0-cp313-cp313-musllinux_1_2_armv7l.whl", hash = "sha256:040f393368e63fb0f3330e70c26bfd336656bed925e5cbe17c9da839a6ab13ec", size = 250062, upload-time = "2025-10-06T14:50:09.074Z" }, + { url = "https://files.pythonhosted.org/packages/15/fe/ad407bb9e818c2b31383f6131ca19ea7e35ce93cf1310fce69f12e89de75/multidict-6.7.0-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:b3bc26a951007b1057a1c543af845f1c7e3e71cc240ed1ace7bf4484aa99196e", size = 249683, upload-time = "2025-10-06T14:50:10.714Z" }, + { url = "https://files.pythonhosted.org/packages/8c/a4/a89abdb0229e533fb925e7c6e5c40201c2873efebc9abaf14046a4536ee6/multidict-6.7.0-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:7b022717c748dd1992a83e219587aabe45980d88969f01b316e78683e6285f64", size = 261254, upload-time = "2025-10-06T14:50:12.28Z" }, + { url = "https://files.pythonhosted.org/packages/8d/aa/0e2b27bd88b40a4fb8dc53dd74eecac70edaa4c1dd0707eb2164da3675b3/multidict-6.7.0-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:9600082733859f00d79dee64effc7aef1beb26adb297416a4ad2116fd61374bd", size = 257967, upload-time = "2025-10-06T14:50:14.16Z" }, + { url = "https://files.pythonhosted.org/packages/d0/8e/0c67b7120d5d5f6d874ed85a085f9dc770a7f9d8813e80f44a9fec820bb7/multidict-6.7.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:94218fcec4d72bc61df51c198d098ce2b378e0ccbac41ddbed5ef44092913288", size = 250085, upload-time = "2025-10-06T14:50:15.639Z" }, + { url = "https://files.pythonhosted.org/packages/ba/55/b73e1d624ea4b8fd4dd07a3bb70f6e4c7c6c5d9d640a41c6ffe5cdbd2a55/multidict-6.7.0-cp313-cp313-win32.whl", hash = "sha256:a37bd74c3fa9d00be2d7b8eca074dc56bd8077ddd2917a839bd989612671ed17", size = 41713, upload-time = "2025-10-06T14:50:17.066Z" }, + { url = "https://files.pythonhosted.org/packages/32/31/75c59e7d3b4205075b4c183fa4ca398a2daf2303ddf616b04ae6ef55cffe/multidict-6.7.0-cp313-cp313-win_amd64.whl", hash = "sha256:30d193c6cc6d559db42b6bcec8a5d395d34d60c9877a0b71ecd7c204fcf15390", size = 45915, upload-time = "2025-10-06T14:50:18.264Z" }, + { url = "https://files.pythonhosted.org/packages/31/2a/8987831e811f1184c22bc2e45844934385363ee61c0a2dcfa8f71b87e608/multidict-6.7.0-cp313-cp313-win_arm64.whl", hash = "sha256:ea3334cabe4d41b7ccd01e4d349828678794edbc2d3ae97fc162a3312095092e", size = 43077, upload-time = "2025-10-06T14:50:19.853Z" }, + { url = "https://files.pythonhosted.org/packages/e8/68/7b3a5170a382a340147337b300b9eb25a9ddb573bcdfff19c0fa3f31ffba/multidict-6.7.0-cp313-cp313t-macosx_10_13_universal2.whl", hash = "sha256:ad9ce259f50abd98a1ca0aa6e490b58c316a0fce0617f609723e40804add2c00", size = 83114, upload-time = "2025-10-06T14:50:21.223Z" }, + { url = "https://files.pythonhosted.org/packages/55/5c/3fa2d07c84df4e302060f555bbf539310980362236ad49f50eeb0a1c1eb9/multidict-6.7.0-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:07f5594ac6d084cbb5de2df218d78baf55ef150b91f0ff8a21cc7a2e3a5a58eb", size = 48442, upload-time = "2025-10-06T14:50:22.871Z" }, + { url = "https://files.pythonhosted.org/packages/fc/56/67212d33239797f9bd91962bb899d72bb0f4c35a8652dcdb8ed049bef878/multidict-6.7.0-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:0591b48acf279821a579282444814a2d8d0af624ae0bc600aa4d1b920b6e924b", size = 46885, upload-time = "2025-10-06T14:50:24.258Z" }, + { url = "https://files.pythonhosted.org/packages/46/d1/908f896224290350721597a61a69cd19b89ad8ee0ae1f38b3f5cd12ea2ac/multidict-6.7.0-cp313-cp313t-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:749a72584761531d2b9467cfbdfd29487ee21124c304c4b6cb760d8777b27f9c", size = 242588, upload-time = "2025-10-06T14:50:25.716Z" }, + { url = "https://files.pythonhosted.org/packages/ab/67/8604288bbd68680eee0ab568fdcb56171d8b23a01bcd5cb0c8fedf6e5d99/multidict-6.7.0-cp313-cp313t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:6b4c3d199f953acd5b446bf7c0de1fe25d94e09e79086f8dc2f48a11a129cdf1", size = 249966, upload-time = "2025-10-06T14:50:28.192Z" }, + { url = "https://files.pythonhosted.org/packages/20/33/9228d76339f1ba51e3efef7da3ebd91964d3006217aae13211653193c3ff/multidict-6.7.0-cp313-cp313t-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:9fb0211dfc3b51efea2f349ec92c114d7754dd62c01f81c3e32b765b70c45c9b", size = 228618, upload-time = "2025-10-06T14:50:29.82Z" }, + { url = "https://files.pythonhosted.org/packages/f8/2d/25d9b566d10cab1c42b3b9e5b11ef79c9111eaf4463b8c257a3bd89e0ead/multidict-6.7.0-cp313-cp313t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:a027ec240fe73a8d6281872690b988eed307cd7d91b23998ff35ff577ca688b5", size = 257539, upload-time = "2025-10-06T14:50:31.731Z" }, + { url = "https://files.pythonhosted.org/packages/b6/b1/8d1a965e6637fc33de3c0d8f414485c2b7e4af00f42cab3d84e7b955c222/multidict-6.7.0-cp313-cp313t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:d1d964afecdf3a8288789df2f5751dc0a8261138c3768d9af117ed384e538fad", size = 256345, upload-time = "2025-10-06T14:50:33.26Z" }, + { url = "https://files.pythonhosted.org/packages/ba/0c/06b5a8adbdeedada6f4fb8d8f193d44a347223b11939b42953eeb6530b6b/multidict-6.7.0-cp313-cp313t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:caf53b15b1b7df9fbd0709aa01409000a2b4dd03a5f6f5cc548183c7c8f8b63c", size = 247934, upload-time = "2025-10-06T14:50:34.808Z" }, + { url = "https://files.pythonhosted.org/packages/8f/31/b2491b5fe167ca044c6eb4b8f2c9f3b8a00b24c432c365358eadac5d7625/multidict-6.7.0-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:654030da3197d927f05a536a66186070e98765aa5142794c9904555d3a9d8fb5", size = 245243, upload-time = "2025-10-06T14:50:36.436Z" }, + { url = "https://files.pythonhosted.org/packages/61/1a/982913957cb90406c8c94f53001abd9eafc271cb3e70ff6371590bec478e/multidict-6.7.0-cp313-cp313t-musllinux_1_2_armv7l.whl", hash = "sha256:2090d3718829d1e484706a2f525e50c892237b2bf9b17a79b059cb98cddc2f10", size = 235878, upload-time = "2025-10-06T14:50:37.953Z" }, + { url = "https://files.pythonhosted.org/packages/be/c0/21435d804c1a1cf7a2608593f4d19bca5bcbd7a81a70b253fdd1c12af9c0/multidict-6.7.0-cp313-cp313t-musllinux_1_2_i686.whl", hash = "sha256:2d2cfeec3f6f45651b3d408c4acec0ebf3daa9bc8a112a084206f5db5d05b754", size = 243452, upload-time = "2025-10-06T14:50:39.574Z" }, + { url = "https://files.pythonhosted.org/packages/54/0a/4349d540d4a883863191be6eb9a928846d4ec0ea007d3dcd36323bb058ac/multidict-6.7.0-cp313-cp313t-musllinux_1_2_ppc64le.whl", hash = "sha256:4ef089f985b8c194d341eb2c24ae6e7408c9a0e2e5658699c92f497437d88c3c", size = 252312, upload-time = "2025-10-06T14:50:41.612Z" }, + { url = "https://files.pythonhosted.org/packages/26/64/d5416038dbda1488daf16b676e4dbfd9674dde10a0cc8f4fc2b502d8125d/multidict-6.7.0-cp313-cp313t-musllinux_1_2_s390x.whl", hash = "sha256:e93a0617cd16998784bf4414c7e40f17a35d2350e5c6f0bd900d3a8e02bd3762", size = 246935, upload-time = "2025-10-06T14:50:43.972Z" }, + { url = "https://files.pythonhosted.org/packages/9f/8c/8290c50d14e49f35e0bd4abc25e1bc7711149ca9588ab7d04f886cdf03d9/multidict-6.7.0-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:f0feece2ef8ebc42ed9e2e8c78fc4aa3cf455733b507c09ef7406364c94376c6", size = 243385, upload-time = "2025-10-06T14:50:45.648Z" }, + { url = "https://files.pythonhosted.org/packages/ef/a0/f83ae75e42d694b3fbad3e047670e511c138be747bc713cf1b10d5096416/multidict-6.7.0-cp313-cp313t-win32.whl", hash = "sha256:19a1d55338ec1be74ef62440ca9e04a2f001a04d0cc49a4983dc320ff0f3212d", size = 47777, upload-time = "2025-10-06T14:50:47.154Z" }, + { url = "https://files.pythonhosted.org/packages/dc/80/9b174a92814a3830b7357307a792300f42c9e94664b01dee8e457551fa66/multidict-6.7.0-cp313-cp313t-win_amd64.whl", hash = "sha256:3da4fb467498df97e986af166b12d01f05d2e04f978a9c1c680ea1988e0bc4b6", size = 53104, upload-time = "2025-10-06T14:50:48.851Z" }, + { url = "https://files.pythonhosted.org/packages/cc/28/04baeaf0428d95bb7a7bea0e691ba2f31394338ba424fb0679a9ed0f4c09/multidict-6.7.0-cp313-cp313t-win_arm64.whl", hash = "sha256:b4121773c49a0776461f4a904cdf6264c88e42218aaa8407e803ca8025872792", size = 45503, upload-time = "2025-10-06T14:50:50.16Z" }, + { url = "https://files.pythonhosted.org/packages/e2/b1/3da6934455dd4b261d4c72f897e3a5728eba81db59959f3a639245891baa/multidict-6.7.0-cp314-cp314-macosx_10_13_universal2.whl", hash = "sha256:3bab1e4aff7adaa34410f93b1f8e57c4b36b9af0426a76003f441ee1d3c7e842", size = 75128, upload-time = "2025-10-06T14:50:51.92Z" }, + { url = "https://files.pythonhosted.org/packages/14/2c/f069cab5b51d175a1a2cb4ccdf7a2c2dabd58aa5bd933fa036a8d15e2404/multidict-6.7.0-cp314-cp314-macosx_10_13_x86_64.whl", hash = "sha256:b8512bac933afc3e45fb2b18da8e59b78d4f408399a960339598374d4ae3b56b", size = 44410, upload-time = "2025-10-06T14:50:53.275Z" }, + { url = "https://files.pythonhosted.org/packages/42/e2/64bb41266427af6642b6b128e8774ed84c11b80a90702c13ac0a86bb10cc/multidict-6.7.0-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:79dcf9e477bc65414ebfea98ffd013cb39552b5ecd62908752e0e413d6d06e38", size = 43205, upload-time = "2025-10-06T14:50:54.911Z" }, + { url = "https://files.pythonhosted.org/packages/02/68/6b086fef8a3f1a8541b9236c594f0c9245617c29841f2e0395d979485cde/multidict-6.7.0-cp314-cp314-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:31bae522710064b5cbeddaf2e9f32b1abab70ac6ac91d42572502299e9953128", size = 245084, upload-time = "2025-10-06T14:50:56.369Z" }, + { url = "https://files.pythonhosted.org/packages/15/ee/f524093232007cd7a75c1d132df70f235cfd590a7c9eaccd7ff422ef4ae8/multidict-6.7.0-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:4a0df7ff02397bb63e2fd22af2c87dfa39e8c7f12947bc524dbdc528282c7e34", size = 252667, upload-time = "2025-10-06T14:50:57.991Z" }, + { url = "https://files.pythonhosted.org/packages/02/a5/eeb3f43ab45878f1895118c3ef157a480db58ede3f248e29b5354139c2c9/multidict-6.7.0-cp314-cp314-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:7a0222514e8e4c514660e182d5156a415c13ef0aabbd71682fc714e327b95e99", size = 233590, upload-time = "2025-10-06T14:50:59.589Z" }, + { url = "https://files.pythonhosted.org/packages/6a/1e/76d02f8270b97269d7e3dbd45644b1785bda457b474315f8cf999525a193/multidict-6.7.0-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:2397ab4daaf2698eb51a76721e98db21ce4f52339e535725de03ea962b5a3202", size = 264112, upload-time = "2025-10-06T14:51:01.183Z" }, + { url = "https://files.pythonhosted.org/packages/76/0b/c28a70ecb58963847c2a8efe334904cd254812b10e535aefb3bcce513918/multidict-6.7.0-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:8891681594162635948a636c9fe0ff21746aeb3dd5463f6e25d9bea3a8a39ca1", size = 261194, upload-time = "2025-10-06T14:51:02.794Z" }, + { url = "https://files.pythonhosted.org/packages/b4/63/2ab26e4209773223159b83aa32721b4021ffb08102f8ac7d689c943fded1/multidict-6.7.0-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:18706cc31dbf402a7945916dd5cddf160251b6dab8a2c5f3d6d5a55949f676b3", size = 248510, upload-time = "2025-10-06T14:51:04.724Z" }, + { url = "https://files.pythonhosted.org/packages/93/cd/06c1fa8282af1d1c46fd55c10a7930af652afdce43999501d4d68664170c/multidict-6.7.0-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:f844a1bbf1d207dd311a56f383f7eda2d0e134921d45751842d8235e7778965d", size = 248395, upload-time = "2025-10-06T14:51:06.306Z" }, + { url = "https://files.pythonhosted.org/packages/99/ac/82cb419dd6b04ccf9e7e61befc00c77614fc8134362488b553402ecd55ce/multidict-6.7.0-cp314-cp314-musllinux_1_2_armv7l.whl", hash = "sha256:d4393e3581e84e5645506923816b9cc81f5609a778c7e7534054091acc64d1c6", size = 239520, upload-time = "2025-10-06T14:51:08.091Z" }, + { url = "https://files.pythonhosted.org/packages/fa/f3/a0f9bf09493421bd8716a362e0cd1d244f5a6550f5beffdd6b47e885b331/multidict-6.7.0-cp314-cp314-musllinux_1_2_i686.whl", hash = "sha256:fbd18dc82d7bf274b37aa48d664534330af744e03bccf696d6f4c6042e7d19e7", size = 245479, upload-time = "2025-10-06T14:51:10.365Z" }, + { url = "https://files.pythonhosted.org/packages/8d/01/476d38fc73a212843f43c852b0eee266b6971f0e28329c2184a8df90c376/multidict-6.7.0-cp314-cp314-musllinux_1_2_ppc64le.whl", hash = "sha256:b6234e14f9314731ec45c42fc4554b88133ad53a09092cc48a88e771c125dadb", size = 258903, upload-time = "2025-10-06T14:51:12.466Z" }, + { url = "https://files.pythonhosted.org/packages/49/6d/23faeb0868adba613b817d0e69c5f15531b24d462af8012c4f6de4fa8dc3/multidict-6.7.0-cp314-cp314-musllinux_1_2_s390x.whl", hash = "sha256:08d4379f9744d8f78d98c8673c06e202ffa88296f009c71bbafe8a6bf847d01f", size = 252333, upload-time = "2025-10-06T14:51:14.48Z" }, + { url = "https://files.pythonhosted.org/packages/1e/cc/48d02ac22b30fa247f7dad82866e4b1015431092f4ba6ebc7e77596e0b18/multidict-6.7.0-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:9fe04da3f79387f450fd0061d4dd2e45a72749d31bf634aecc9e27f24fdc4b3f", size = 243411, upload-time = "2025-10-06T14:51:16.072Z" }, + { url = "https://files.pythonhosted.org/packages/4a/03/29a8bf5a18abf1fe34535c88adbdfa88c9fb869b5a3b120692c64abe8284/multidict-6.7.0-cp314-cp314-win32.whl", hash = "sha256:fbafe31d191dfa7c4c51f7a6149c9fb7e914dcf9ffead27dcfd9f1ae382b3885", size = 40940, upload-time = "2025-10-06T14:51:17.544Z" }, + { url = "https://files.pythonhosted.org/packages/82/16/7ed27b680791b939de138f906d5cf2b4657b0d45ca6f5dd6236fdddafb1a/multidict-6.7.0-cp314-cp314-win_amd64.whl", hash = "sha256:2f67396ec0310764b9222a1728ced1ab638f61aadc6226f17a71dd9324f9a99c", size = 45087, upload-time = "2025-10-06T14:51:18.875Z" }, + { url = "https://files.pythonhosted.org/packages/cd/3c/e3e62eb35a1950292fe39315d3c89941e30a9d07d5d2df42965ab041da43/multidict-6.7.0-cp314-cp314-win_arm64.whl", hash = "sha256:ba672b26069957ee369cfa7fc180dde1fc6f176eaf1e6beaf61fbebbd3d9c000", size = 42368, upload-time = "2025-10-06T14:51:20.225Z" }, + { url = "https://files.pythonhosted.org/packages/8b/40/cd499bd0dbc5f1136726db3153042a735fffd0d77268e2ee20d5f33c010f/multidict-6.7.0-cp314-cp314t-macosx_10_13_universal2.whl", hash = "sha256:c1dcc7524066fa918c6a27d61444d4ee7900ec635779058571f70d042d86ed63", size = 82326, upload-time = "2025-10-06T14:51:21.588Z" }, + { url = "https://files.pythonhosted.org/packages/13/8a/18e031eca251c8df76daf0288e6790561806e439f5ce99a170b4af30676b/multidict-6.7.0-cp314-cp314t-macosx_10_13_x86_64.whl", hash = "sha256:27e0b36c2d388dc7b6ced3406671b401e84ad7eb0656b8f3a2f46ed0ce483718", size = 48065, upload-time = "2025-10-06T14:51:22.93Z" }, + { url = "https://files.pythonhosted.org/packages/40/71/5e6701277470a87d234e433fb0a3a7deaf3bcd92566e421e7ae9776319de/multidict-6.7.0-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:2a7baa46a22e77f0988e3b23d4ede5513ebec1929e34ee9495be535662c0dfe2", size = 46475, upload-time = "2025-10-06T14:51:24.352Z" }, + { url = "https://files.pythonhosted.org/packages/fe/6a/bab00cbab6d9cfb57afe1663318f72ec28289ea03fd4e8236bb78429893a/multidict-6.7.0-cp314-cp314t-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:7bf77f54997a9166a2f5675d1201520586439424c2511723a7312bdb4bcc034e", size = 239324, upload-time = "2025-10-06T14:51:25.822Z" }, + { url = "https://files.pythonhosted.org/packages/2a/5f/8de95f629fc22a7769ade8b41028e3e5a822c1f8904f618d175945a81ad3/multidict-6.7.0-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:e011555abada53f1578d63389610ac8a5400fc70ce71156b0aa30d326f1a5064", size = 246877, upload-time = "2025-10-06T14:51:27.604Z" }, + { url = "https://files.pythonhosted.org/packages/23/b4/38881a960458f25b89e9f4a4fdcb02ac101cfa710190db6e5528841e67de/multidict-6.7.0-cp314-cp314t-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:28b37063541b897fd6a318007373930a75ca6d6ac7c940dbe14731ffdd8d498e", size = 225824, upload-time = "2025-10-06T14:51:29.664Z" }, + { url = "https://files.pythonhosted.org/packages/1e/39/6566210c83f8a261575f18e7144736059f0c460b362e96e9cf797a24b8e7/multidict-6.7.0-cp314-cp314t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:05047ada7a2fde2631a0ed706f1fd68b169a681dfe5e4cf0f8e4cb6618bbc2cd", size = 253558, upload-time = "2025-10-06T14:51:31.684Z" }, + { url = "https://files.pythonhosted.org/packages/00/a3/67f18315100f64c269f46e6c0319fa87ba68f0f64f2b8e7fd7c72b913a0b/multidict-6.7.0-cp314-cp314t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:716133f7d1d946a4e1b91b1756b23c088881e70ff180c24e864c26192ad7534a", size = 252339, upload-time = "2025-10-06T14:51:33.699Z" }, + { url = "https://files.pythonhosted.org/packages/c8/2a/1cb77266afee2458d82f50da41beba02159b1d6b1f7973afc9a1cad1499b/multidict-6.7.0-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:d1bed1b467ef657f2a0ae62844a607909ef1c6889562de5e1d505f74457d0b96", size = 244895, upload-time = "2025-10-06T14:51:36.189Z" }, + { url = "https://files.pythonhosted.org/packages/dd/72/09fa7dd487f119b2eb9524946ddd36e2067c08510576d43ff68469563b3b/multidict-6.7.0-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:ca43bdfa5d37bd6aee89d85e1d0831fb86e25541be7e9d376ead1b28974f8e5e", size = 241862, upload-time = "2025-10-06T14:51:41.291Z" }, + { url = "https://files.pythonhosted.org/packages/65/92/bc1f8bd0853d8669300f732c801974dfc3702c3eeadae2f60cef54dc69d7/multidict-6.7.0-cp314-cp314t-musllinux_1_2_armv7l.whl", hash = "sha256:44b546bd3eb645fd26fb949e43c02a25a2e632e2ca21a35e2e132c8105dc8599", size = 232376, upload-time = "2025-10-06T14:51:43.55Z" }, + { url = "https://files.pythonhosted.org/packages/09/86/ac39399e5cb9d0c2ac8ef6e10a768e4d3bc933ac808d49c41f9dc23337eb/multidict-6.7.0-cp314-cp314t-musllinux_1_2_i686.whl", hash = "sha256:a6ef16328011d3f468e7ebc326f24c1445f001ca1dec335b2f8e66bed3006394", size = 240272, upload-time = "2025-10-06T14:51:45.265Z" }, + { url = "https://files.pythonhosted.org/packages/3d/b6/fed5ac6b8563ec72df6cb1ea8dac6d17f0a4a1f65045f66b6d3bf1497c02/multidict-6.7.0-cp314-cp314t-musllinux_1_2_ppc64le.whl", hash = "sha256:5aa873cbc8e593d361ae65c68f85faadd755c3295ea2c12040ee146802f23b38", size = 248774, upload-time = "2025-10-06T14:51:46.836Z" }, + { url = "https://files.pythonhosted.org/packages/6b/8d/b954d8c0dc132b68f760aefd45870978deec6818897389dace00fcde32ff/multidict-6.7.0-cp314-cp314t-musllinux_1_2_s390x.whl", hash = "sha256:3d7b6ccce016e29df4b7ca819659f516f0bc7a4b3efa3bb2012ba06431b044f9", size = 242731, upload-time = "2025-10-06T14:51:48.541Z" }, + { url = "https://files.pythonhosted.org/packages/16/9d/a2dac7009125d3540c2f54e194829ea18ac53716c61b655d8ed300120b0f/multidict-6.7.0-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:171b73bd4ee683d307599b66793ac80981b06f069b62eea1c9e29c9241aa66b0", size = 240193, upload-time = "2025-10-06T14:51:50.355Z" }, + { url = "https://files.pythonhosted.org/packages/39/ca/c05f144128ea232ae2178b008d5011d4e2cea86e4ee8c85c2631b1b94802/multidict-6.7.0-cp314-cp314t-win32.whl", hash = "sha256:b2d7f80c4e1fd010b07cb26820aae86b7e73b681ee4889684fb8d2d4537aab13", size = 48023, upload-time = "2025-10-06T14:51:51.883Z" }, + { url = "https://files.pythonhosted.org/packages/ba/8f/0a60e501584145588be1af5cc829265701ba3c35a64aec8e07cbb71d39bb/multidict-6.7.0-cp314-cp314t-win_amd64.whl", hash = "sha256:09929cab6fcb68122776d575e03c6cc64ee0b8fca48d17e135474b042ce515cd", size = 53507, upload-time = "2025-10-06T14:51:53.672Z" }, + { url = "https://files.pythonhosted.org/packages/7f/ae/3148b988a9c6239903e786eac19c889fab607c31d6efa7fb2147e5680f23/multidict-6.7.0-cp314-cp314t-win_arm64.whl", hash = "sha256:cc41db090ed742f32bd2d2c721861725e6109681eddf835d0a82bd3a5c382827", size = 44804, upload-time = "2025-10-06T14:51:55.415Z" }, + { url = "https://files.pythonhosted.org/packages/b7/da/7d22601b625e241d4f23ef1ebff8acfc60da633c9e7e7922e24d10f592b3/multidict-6.7.0-py3-none-any.whl", hash = "sha256:394fc5c42a333c9ffc3e421a4c85e08580d990e08b99f6bf35b4132114c5dcb3", size = 12317, upload-time = "2025-10-06T14:52:29.272Z" }, ] [[package]] name = "narwhals" -version = "1.35.0" +version = "2.10.1" source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/ee/6a/a98fa5e9d530a428a0cd79d27f059ed65efd3a07aad61a8c93e323c9c20b/narwhals-1.35.0.tar.gz", hash = "sha256:07477d18487fbc940243b69818a177ed7119b737910a8a254fb67688b48a7c96", size = 265784 } +sdist = { url = "https://files.pythonhosted.org/packages/79/c4/71f10e273c7192ace91b22766e1955f99be14980079147b492f5f9b5cbd5/narwhals-2.10.1.tar.gz", hash = "sha256:d6e3a9b1c0904a82984dec58a3d12b3bc08e9d61bbee639e7bb05349e663d036", size = 584727, upload-time = "2025-10-31T17:09:30.745Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/80/b3/5781eb874f04cb1e882a7d93cf30abcb00362a3205c5f3708a7434a1a2ac/narwhals-1.35.0-py3-none-any.whl", hash = "sha256:7562af132fa3f8aaaf34dc96d7ec95bdca29d1c795e8fcf14e01edf1d32122bc", size = 325708 }, + { url = "https://files.pythonhosted.org/packages/62/cd/9481a199a086ac9f91eaa232b56cff90ca7fdc2cb6658de93825b1007094/narwhals-2.10.1-py3-none-any.whl", hash = "sha256:eed3d9ec8f821963456fef306c1ad11017995982169fca1f38f71c97d6a97b9b", size = 419490, upload-time = "2025-10-31T17:09:28.898Z" }, ] [[package]] name = "nodeenv" version = "1.9.1" source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/43/16/fc88b08840de0e0a72a2f9d8c6bae36be573e475a6326ae854bcc549fc45/nodeenv-1.9.1.tar.gz", hash = "sha256:6ec12890a2dab7946721edbfbcd91f3319c6ccc9aec47be7c7e6b7011ee6645f", size = 47437 } +sdist = { url = "https://files.pythonhosted.org/packages/43/16/fc88b08840de0e0a72a2f9d8c6bae36be573e475a6326ae854bcc549fc45/nodeenv-1.9.1.tar.gz", hash = "sha256:6ec12890a2dab7946721edbfbcd91f3319c6ccc9aec47be7c7e6b7011ee6645f", size = 47437, upload-time = "2024-06-04T18:44:11.171Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/d2/1d/1b658dbd2b9fa9c4c9f32accbfc0205d532c8c6194dc0f2a4c0428e7128a/nodeenv-1.9.1-py2.py3-none-any.whl", hash = "sha256:ba11c9782d29c27c70ffbdda2d7415098754709be8a7056d79a737cd901155c9", size = 22314 }, + { url = "https://files.pythonhosted.org/packages/d2/1d/1b658dbd2b9fa9c4c9f32accbfc0205d532c8c6194dc0f2a4c0428e7128a/nodeenv-1.9.1-py2.py3-none-any.whl", hash = "sha256:ba11c9782d29c27c70ffbdda2d7415098754709be8a7056d79a737cd901155c9", size = 22314, upload-time = "2024-06-04T18:44:08.352Z" }, ] [[package]] name = "numpy" -version = "2.2.4" -source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/e1/78/31103410a57bc2c2b93a3597340a8119588571f6a4539067546cb9a0bfac/numpy-2.2.4.tar.gz", hash = "sha256:9ba03692a45d3eef66559efe1d1096c4b9b75c0986b5dff5530c378fb8331d4f", size = 20270701 } -wheels = [ - { url = "https://files.pythonhosted.org/packages/16/fb/09e778ee3a8ea0d4dc8329cca0a9c9e65fed847d08e37eba74cb7ed4b252/numpy-2.2.4-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:e9e0a277bb2eb5d8a7407e14688b85fd8ad628ee4e0c7930415687b6564207a4", size = 21254989 }, - { url = "https://files.pythonhosted.org/packages/a2/0a/1212befdbecab5d80eca3cde47d304cad986ad4eec7d85a42e0b6d2cc2ef/numpy-2.2.4-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:9eeea959168ea555e556b8188da5fa7831e21d91ce031e95ce23747b7609f8a4", size = 14425910 }, - { url = "https://files.pythonhosted.org/packages/2b/3e/e7247c1d4f15086bb106c8d43c925b0b2ea20270224f5186fa48d4fb5cbd/numpy-2.2.4-cp311-cp311-macosx_14_0_arm64.whl", hash = "sha256:bd3ad3b0a40e713fc68f99ecfd07124195333f1e689387c180813f0e94309d6f", size = 5426490 }, - { url = "https://files.pythonhosted.org/packages/5d/fa/aa7cd6be51419b894c5787a8a93c3302a1ed4f82d35beb0613ec15bdd0e2/numpy-2.2.4-cp311-cp311-macosx_14_0_x86_64.whl", hash = "sha256:cf28633d64294969c019c6df4ff37f5698e8326db68cc2b66576a51fad634880", size = 6967754 }, - { url = "https://files.pythonhosted.org/packages/d5/ee/96457c943265de9fadeb3d2ffdbab003f7fba13d971084a9876affcda095/numpy-2.2.4-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:2fa8fa7697ad1646b5c93de1719965844e004fcad23c91228aca1cf0800044a1", size = 14373079 }, - { url = "https://files.pythonhosted.org/packages/c5/5c/ceefca458559f0ccc7a982319f37ed07b0d7b526964ae6cc61f8ad1b6119/numpy-2.2.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:f4162988a360a29af158aeb4a2f4f09ffed6a969c9776f8f3bdee9b06a8ab7e5", size = 16428819 }, - { url = "https://files.pythonhosted.org/packages/22/31/9b2ac8eee99e001eb6add9fa27514ef5e9faf176169057a12860af52704c/numpy-2.2.4-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:892c10d6a73e0f14935c31229e03325a7b3093fafd6ce0af704be7f894d95687", size = 15881470 }, - { url = "https://files.pythonhosted.org/packages/f0/dc/8569b5f25ff30484b555ad8a3f537e0225d091abec386c9420cf5f7a2976/numpy-2.2.4-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:db1f1c22173ac1c58db249ae48aa7ead29f534b9a948bc56828337aa84a32ed6", size = 18218144 }, - { url = "https://files.pythonhosted.org/packages/5e/05/463c023a39bdeb9bb43a99e7dee2c664cb68d5bb87d14f92482b9f6011cc/numpy-2.2.4-cp311-cp311-win32.whl", hash = "sha256:ea2bb7e2ae9e37d96835b3576a4fa4b3a97592fbea8ef7c3587078b0068b8f09", size = 6606368 }, - { url = "https://files.pythonhosted.org/packages/8b/72/10c1d2d82101c468a28adc35de6c77b308f288cfd0b88e1070f15b98e00c/numpy-2.2.4-cp311-cp311-win_amd64.whl", hash = "sha256:f7de08cbe5551911886d1ab60de58448c6df0f67d9feb7d1fb21e9875ef95e91", size = 12947526 }, - { url = "https://files.pythonhosted.org/packages/a2/30/182db21d4f2a95904cec1a6f779479ea1ac07c0647f064dea454ec650c42/numpy-2.2.4-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:a7b9084668aa0f64e64bd00d27ba5146ef1c3a8835f3bd912e7a9e01326804c4", size = 20947156 }, - { url = "https://files.pythonhosted.org/packages/24/6d/9483566acfbda6c62c6bc74b6e981c777229d2af93c8eb2469b26ac1b7bc/numpy-2.2.4-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:dbe512c511956b893d2dacd007d955a3f03d555ae05cfa3ff1c1ff6df8851854", size = 14133092 }, - { url = "https://files.pythonhosted.org/packages/27/f6/dba8a258acbf9d2bed2525cdcbb9493ef9bae5199d7a9cb92ee7e9b2aea6/numpy-2.2.4-cp312-cp312-macosx_14_0_arm64.whl", hash = "sha256:bb649f8b207ab07caebba230d851b579a3c8711a851d29efe15008e31bb4de24", size = 5163515 }, - { url = "https://files.pythonhosted.org/packages/62/30/82116199d1c249446723c68f2c9da40d7f062551036f50b8c4caa42ae252/numpy-2.2.4-cp312-cp312-macosx_14_0_x86_64.whl", hash = "sha256:f34dc300df798742b3d06515aa2a0aee20941c13579d7a2f2e10af01ae4901ee", size = 6696558 }, - { url = "https://files.pythonhosted.org/packages/0e/b2/54122b3c6df5df3e87582b2e9430f1bdb63af4023c739ba300164c9ae503/numpy-2.2.4-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:c3f7ac96b16955634e223b579a3e5798df59007ca43e8d451a0e6a50f6bfdfba", size = 14084742 }, - { url = "https://files.pythonhosted.org/packages/02/e2/e2cbb8d634151aab9528ef7b8bab52ee4ab10e076509285602c2a3a686e0/numpy-2.2.4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:4f92084defa704deadd4e0a5ab1dc52d8ac9e8a8ef617f3fbb853e79b0ea3592", size = 16134051 }, - { url = "https://files.pythonhosted.org/packages/8e/21/efd47800e4affc993e8be50c1b768de038363dd88865920439ef7b422c60/numpy-2.2.4-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:7a4e84a6283b36632e2a5b56e121961f6542ab886bc9e12f8f9818b3c266bfbb", size = 15578972 }, - { url = "https://files.pythonhosted.org/packages/04/1e/f8bb88f6157045dd5d9b27ccf433d016981032690969aa5c19e332b138c0/numpy-2.2.4-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:11c43995255eb4127115956495f43e9343736edb7fcdb0d973defd9de14cd84f", size = 17898106 }, - { url = "https://files.pythonhosted.org/packages/2b/93/df59a5a3897c1f036ae8ff845e45f4081bb06943039ae28a3c1c7c780f22/numpy-2.2.4-cp312-cp312-win32.whl", hash = "sha256:65ef3468b53269eb5fdb3a5c09508c032b793da03251d5f8722b1194f1790c00", size = 6311190 }, - { url = "https://files.pythonhosted.org/packages/46/69/8c4f928741c2a8efa255fdc7e9097527c6dc4e4df147e3cadc5d9357ce85/numpy-2.2.4-cp312-cp312-win_amd64.whl", hash = "sha256:2aad3c17ed2ff455b8eaafe06bcdae0062a1db77cb99f4b9cbb5f4ecb13c5146", size = 12644305 }, - { url = "https://files.pythonhosted.org/packages/2a/d0/bd5ad792e78017f5decfb2ecc947422a3669a34f775679a76317af671ffc/numpy-2.2.4-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:1cf4e5c6a278d620dee9ddeb487dc6a860f9b199eadeecc567f777daace1e9e7", size = 20933623 }, - { url = "https://files.pythonhosted.org/packages/c3/bc/2b3545766337b95409868f8e62053135bdc7fa2ce630aba983a2aa60b559/numpy-2.2.4-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:1974afec0b479e50438fc3648974268f972e2d908ddb6d7fb634598cdb8260a0", size = 14148681 }, - { url = "https://files.pythonhosted.org/packages/6a/70/67b24d68a56551d43a6ec9fe8c5f91b526d4c1a46a6387b956bf2d64744e/numpy-2.2.4-cp313-cp313-macosx_14_0_arm64.whl", hash = "sha256:79bd5f0a02aa16808fcbc79a9a376a147cc1045f7dfe44c6e7d53fa8b8a79392", size = 5148759 }, - { url = "https://files.pythonhosted.org/packages/1c/8b/e2fc8a75fcb7be12d90b31477c9356c0cbb44abce7ffb36be39a0017afad/numpy-2.2.4-cp313-cp313-macosx_14_0_x86_64.whl", hash = "sha256:3387dd7232804b341165cedcb90694565a6015433ee076c6754775e85d86f1fc", size = 6683092 }, - { url = "https://files.pythonhosted.org/packages/13/73/41b7b27f169ecf368b52533edb72e56a133f9e86256e809e169362553b49/numpy-2.2.4-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:6f527d8fdb0286fd2fd97a2a96c6be17ba4232da346931d967a0630050dfd298", size = 14081422 }, - { url = "https://files.pythonhosted.org/packages/4b/04/e208ff3ae3ddfbafc05910f89546382f15a3f10186b1f56bd99f159689c2/numpy-2.2.4-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:bce43e386c16898b91e162e5baaad90c4b06f9dcbe36282490032cec98dc8ae7", size = 16132202 }, - { url = "https://files.pythonhosted.org/packages/fe/bc/2218160574d862d5e55f803d88ddcad88beff94791f9c5f86d67bd8fbf1c/numpy-2.2.4-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:31504f970f563d99f71a3512d0c01a645b692b12a63630d6aafa0939e52361e6", size = 15573131 }, - { url = "https://files.pythonhosted.org/packages/a5/78/97c775bc4f05abc8a8426436b7cb1be806a02a2994b195945600855e3a25/numpy-2.2.4-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:81413336ef121a6ba746892fad881a83351ee3e1e4011f52e97fba79233611fd", size = 17894270 }, - { url = "https://files.pythonhosted.org/packages/b9/eb/38c06217a5f6de27dcb41524ca95a44e395e6a1decdc0c99fec0832ce6ae/numpy-2.2.4-cp313-cp313-win32.whl", hash = "sha256:f486038e44caa08dbd97275a9a35a283a8f1d2f0ee60ac260a1790e76660833c", size = 6308141 }, - { url = "https://files.pythonhosted.org/packages/52/17/d0dd10ab6d125c6d11ffb6dfa3423c3571befab8358d4f85cd4471964fcd/numpy-2.2.4-cp313-cp313-win_amd64.whl", hash = "sha256:207a2b8441cc8b6a2a78c9ddc64d00d20c303d79fba08c577752f080c4007ee3", size = 12636885 }, - { url = "https://files.pythonhosted.org/packages/fa/e2/793288ede17a0fdc921172916efb40f3cbc2aa97e76c5c84aba6dc7e8747/numpy-2.2.4-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:8120575cb4882318c791f839a4fd66161a6fa46f3f0a5e613071aae35b5dd8f8", size = 20961829 }, - { url = "https://files.pythonhosted.org/packages/3a/75/bb4573f6c462afd1ea5cbedcc362fe3e9bdbcc57aefd37c681be1155fbaa/numpy-2.2.4-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:a761ba0fa886a7bb33c6c8f6f20213735cb19642c580a931c625ee377ee8bd39", size = 14161419 }, - { url = "https://files.pythonhosted.org/packages/03/68/07b4cd01090ca46c7a336958b413cdbe75002286295f2addea767b7f16c9/numpy-2.2.4-cp313-cp313t-macosx_14_0_arm64.whl", hash = "sha256:ac0280f1ba4a4bfff363a99a6aceed4f8e123f8a9b234c89140f5e894e452ecd", size = 5196414 }, - { url = "https://files.pythonhosted.org/packages/a5/fd/d4a29478d622fedff5c4b4b4cedfc37a00691079623c0575978d2446db9e/numpy-2.2.4-cp313-cp313t-macosx_14_0_x86_64.whl", hash = "sha256:879cf3a9a2b53a4672a168c21375166171bc3932b7e21f622201811c43cdd3b0", size = 6709379 }, - { url = "https://files.pythonhosted.org/packages/41/78/96dddb75bb9be730b87c72f30ffdd62611aba234e4e460576a068c98eff6/numpy-2.2.4-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:f05d4198c1bacc9124018109c5fba2f3201dbe7ab6e92ff100494f236209c960", size = 14051725 }, - { url = "https://files.pythonhosted.org/packages/00/06/5306b8199bffac2a29d9119c11f457f6c7d41115a335b78d3f86fad4dbe8/numpy-2.2.4-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:e2f085ce2e813a50dfd0e01fbfc0c12bbe5d2063d99f8b29da30e544fb6483b8", size = 16101638 }, - { url = "https://files.pythonhosted.org/packages/fa/03/74c5b631ee1ded596945c12027649e6344614144369fd3ec1aaced782882/numpy-2.2.4-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:92bda934a791c01d6d9d8e038363c50918ef7c40601552a58ac84c9613a665bc", size = 15571717 }, - { url = "https://files.pythonhosted.org/packages/cb/dc/4fc7c0283abe0981e3b89f9b332a134e237dd476b0c018e1e21083310c31/numpy-2.2.4-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:ee4d528022f4c5ff67332469e10efe06a267e32f4067dc76bb7e2cddf3cd25ff", size = 17879998 }, - { url = "https://files.pythonhosted.org/packages/e5/2b/878576190c5cfa29ed896b518cc516aecc7c98a919e20706c12480465f43/numpy-2.2.4-cp313-cp313t-win32.whl", hash = "sha256:05c076d531e9998e7e694c36e8b349969c56eadd2cdcd07242958489d79a7286", size = 6366896 }, - { url = "https://files.pythonhosted.org/packages/3e/05/eb7eec66b95cf697f08c754ef26c3549d03ebd682819f794cb039574a0a6/numpy-2.2.4-cp313-cp313t-win_amd64.whl", hash = "sha256:188dcbca89834cc2e14eb2f106c96d6d46f200fe0200310fc29089657379c58d", size = 12739119 }, +version = "2.3.4" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/b5/f4/098d2270d52b41f1bd7db9fc288aaa0400cb48c2a3e2af6fa365d9720947/numpy-2.3.4.tar.gz", hash = "sha256:a7d018bfedb375a8d979ac758b120ba846a7fe764911a64465fd87b8729f4a6a", size = 20582187, upload-time = "2025-10-15T16:18:11.77Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/60/e7/0e07379944aa8afb49a556a2b54587b828eb41dc9adc56fb7615b678ca53/numpy-2.3.4-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:e78aecd2800b32e8347ce49316d3eaf04aed849cd5b38e0af39f829a4e59f5eb", size = 21259519, upload-time = "2025-10-15T16:15:19.012Z" }, + { url = "https://files.pythonhosted.org/packages/d0/cb/5a69293561e8819b09e34ed9e873b9a82b5f2ade23dce4c51dc507f6cfe1/numpy-2.3.4-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:7fd09cc5d65bda1e79432859c40978010622112e9194e581e3415a3eccc7f43f", size = 14452796, upload-time = "2025-10-15T16:15:23.094Z" }, + { url = "https://files.pythonhosted.org/packages/e4/04/ff11611200acd602a1e5129e36cfd25bf01ad8e5cf927baf2e90236eb02e/numpy-2.3.4-cp311-cp311-macosx_14_0_arm64.whl", hash = "sha256:1b219560ae2c1de48ead517d085bc2d05b9433f8e49d0955c82e8cd37bd7bf36", size = 5381639, upload-time = "2025-10-15T16:15:25.572Z" }, + { url = "https://files.pythonhosted.org/packages/ea/77/e95c757a6fe7a48d28a009267408e8aa382630cc1ad1db7451b3bc21dbb4/numpy-2.3.4-cp311-cp311-macosx_14_0_x86_64.whl", hash = "sha256:bafa7d87d4c99752d07815ed7a2c0964f8ab311eb8168f41b910bd01d15b6032", size = 6914296, upload-time = "2025-10-15T16:15:27.079Z" }, + { url = "https://files.pythonhosted.org/packages/a3/d2/137c7b6841c942124eae921279e5c41b1c34bab0e6fc60c7348e69afd165/numpy-2.3.4-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:36dc13af226aeab72b7abad501d370d606326a0029b9f435eacb3b8c94b8a8b7", size = 14591904, upload-time = "2025-10-15T16:15:29.044Z" }, + { url = "https://files.pythonhosted.org/packages/bb/32/67e3b0f07b0aba57a078c4ab777a9e8e6bc62f24fb53a2337f75f9691699/numpy-2.3.4-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:a7b2f9a18b5ff9824a6af80de4f37f4ec3c2aab05ef08f51c77a093f5b89adda", size = 16939602, upload-time = "2025-10-15T16:15:31.106Z" }, + { url = "https://files.pythonhosted.org/packages/95/22/9639c30e32c93c4cee3ccdb4b09c2d0fbff4dcd06d36b357da06146530fb/numpy-2.3.4-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:9984bd645a8db6ca15d850ff996856d8762c51a2239225288f08f9050ca240a0", size = 16372661, upload-time = "2025-10-15T16:15:33.546Z" }, + { url = "https://files.pythonhosted.org/packages/12/e9/a685079529be2b0156ae0c11b13d6be647743095bb51d46589e95be88086/numpy-2.3.4-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:64c5825affc76942973a70acf438a8ab618dbd692b84cd5ec40a0a0509edc09a", size = 18884682, upload-time = "2025-10-15T16:15:36.105Z" }, + { url = "https://files.pythonhosted.org/packages/cf/85/f6f00d019b0cc741e64b4e00ce865a57b6bed945d1bbeb1ccadbc647959b/numpy-2.3.4-cp311-cp311-win32.whl", hash = "sha256:ed759bf7a70342f7817d88376eb7142fab9fef8320d6019ef87fae05a99874e1", size = 6570076, upload-time = "2025-10-15T16:15:38.225Z" }, + { url = "https://files.pythonhosted.org/packages/7d/10/f8850982021cb90e2ec31990291f9e830ce7d94eef432b15066e7cbe0bec/numpy-2.3.4-cp311-cp311-win_amd64.whl", hash = "sha256:faba246fb30ea2a526c2e9645f61612341de1a83fb1e0c5edf4ddda5a9c10996", size = 13089358, upload-time = "2025-10-15T16:15:40.404Z" }, + { url = "https://files.pythonhosted.org/packages/d1/ad/afdd8351385edf0b3445f9e24210a9c3971ef4de8fd85155462fc4321d79/numpy-2.3.4-cp311-cp311-win_arm64.whl", hash = "sha256:4c01835e718bcebe80394fd0ac66c07cbb90147ebbdad3dcecd3f25de2ae7e2c", size = 10462292, upload-time = "2025-10-15T16:15:42.896Z" }, + { url = "https://files.pythonhosted.org/packages/96/7a/02420400b736f84317e759291b8edaeee9dc921f72b045475a9cbdb26b17/numpy-2.3.4-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:ef1b5a3e808bc40827b5fa2c8196151a4c5abe110e1726949d7abddfe5c7ae11", size = 20957727, upload-time = "2025-10-15T16:15:44.9Z" }, + { url = "https://files.pythonhosted.org/packages/18/90/a014805d627aa5750f6f0e878172afb6454552da929144b3c07fcae1bb13/numpy-2.3.4-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:c2f91f496a87235c6aaf6d3f3d89b17dba64996abadccb289f48456cff931ca9", size = 14187262, upload-time = "2025-10-15T16:15:47.761Z" }, + { url = "https://files.pythonhosted.org/packages/c7/e4/0a94b09abe89e500dc748e7515f21a13e30c5c3fe3396e6d4ac108c25fca/numpy-2.3.4-cp312-cp312-macosx_14_0_arm64.whl", hash = "sha256:f77e5b3d3da652b474cc80a14084927a5e86a5eccf54ca8ca5cbd697bf7f2667", size = 5115992, upload-time = "2025-10-15T16:15:50.144Z" }, + { url = "https://files.pythonhosted.org/packages/88/dd/db77c75b055c6157cbd4f9c92c4458daef0dd9cbe6d8d2fe7f803cb64c37/numpy-2.3.4-cp312-cp312-macosx_14_0_x86_64.whl", hash = "sha256:8ab1c5f5ee40d6e01cbe96de5863e39b215a4d24e7d007cad56c7184fdf4aeef", size = 6648672, upload-time = "2025-10-15T16:15:52.442Z" }, + { url = "https://files.pythonhosted.org/packages/e1/e6/e31b0d713719610e406c0ea3ae0d90760465b086da8783e2fd835ad59027/numpy-2.3.4-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:77b84453f3adcb994ddbd0d1c5d11db2d6bda1a2b7fd5ac5bd4649d6f5dc682e", size = 14284156, upload-time = "2025-10-15T16:15:54.351Z" }, + { url = "https://files.pythonhosted.org/packages/f9/58/30a85127bfee6f108282107caf8e06a1f0cc997cb6b52cdee699276fcce4/numpy-2.3.4-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:4121c5beb58a7f9e6dfdee612cb24f4df5cd4db6e8261d7f4d7450a997a65d6a", size = 16641271, upload-time = "2025-10-15T16:15:56.67Z" }, + { url = "https://files.pythonhosted.org/packages/06/f2/2e06a0f2adf23e3ae29283ad96959267938d0efd20a2e25353b70065bfec/numpy-2.3.4-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:65611ecbb00ac9846efe04db15cbe6186f562f6bb7e5e05f077e53a599225d16", size = 16059531, upload-time = "2025-10-15T16:15:59.412Z" }, + { url = "https://files.pythonhosted.org/packages/b0/e7/b106253c7c0d5dc352b9c8fab91afd76a93950998167fa3e5afe4ef3a18f/numpy-2.3.4-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:dabc42f9c6577bcc13001b8810d300fe814b4cfbe8a92c873f269484594f9786", size = 18578983, upload-time = "2025-10-15T16:16:01.804Z" }, + { url = "https://files.pythonhosted.org/packages/73/e3/04ecc41e71462276ee867ccbef26a4448638eadecf1bc56772c9ed6d0255/numpy-2.3.4-cp312-cp312-win32.whl", hash = "sha256:a49d797192a8d950ca59ee2d0337a4d804f713bb5c3c50e8db26d49666e351dc", size = 6291380, upload-time = "2025-10-15T16:16:03.938Z" }, + { url = "https://files.pythonhosted.org/packages/3d/a8/566578b10d8d0e9955b1b6cd5db4e9d4592dd0026a941ff7994cedda030a/numpy-2.3.4-cp312-cp312-win_amd64.whl", hash = "sha256:985f1e46358f06c2a09921e8921e2c98168ed4ae12ccd6e5e87a4f1857923f32", size = 12787999, upload-time = "2025-10-15T16:16:05.801Z" }, + { url = "https://files.pythonhosted.org/packages/58/22/9c903a957d0a8071b607f5b1bff0761d6e608b9a965945411f867d515db1/numpy-2.3.4-cp312-cp312-win_arm64.whl", hash = "sha256:4635239814149e06e2cb9db3dd584b2fa64316c96f10656983b8026a82e6e4db", size = 10197412, upload-time = "2025-10-15T16:16:07.854Z" }, + { url = "https://files.pythonhosted.org/packages/57/7e/b72610cc91edf138bc588df5150957a4937221ca6058b825b4725c27be62/numpy-2.3.4-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:c090d4860032b857d94144d1a9976b8e36709e40386db289aaf6672de2a81966", size = 20950335, upload-time = "2025-10-15T16:16:10.304Z" }, + { url = "https://files.pythonhosted.org/packages/3e/46/bdd3370dcea2f95ef14af79dbf81e6927102ddf1cc54adc0024d61252fd9/numpy-2.3.4-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:a13fc473b6db0be619e45f11f9e81260f7302f8d180c49a22b6e6120022596b3", size = 14179878, upload-time = "2025-10-15T16:16:12.595Z" }, + { url = "https://files.pythonhosted.org/packages/ac/01/5a67cb785bda60f45415d09c2bc245433f1c68dd82eef9c9002c508b5a65/numpy-2.3.4-cp313-cp313-macosx_14_0_arm64.whl", hash = "sha256:3634093d0b428e6c32c3a69b78e554f0cd20ee420dcad5a9f3b2a63762ce4197", size = 5108673, upload-time = "2025-10-15T16:16:14.877Z" }, + { url = "https://files.pythonhosted.org/packages/c2/cd/8428e23a9fcebd33988f4cb61208fda832800ca03781f471f3727a820704/numpy-2.3.4-cp313-cp313-macosx_14_0_x86_64.whl", hash = "sha256:043885b4f7e6e232d7df4f51ffdef8c36320ee9d5f227b380ea636722c7ed12e", size = 6641438, upload-time = "2025-10-15T16:16:16.805Z" }, + { url = "https://files.pythonhosted.org/packages/3e/d1/913fe563820f3c6b079f992458f7331278dcd7ba8427e8e745af37ddb44f/numpy-2.3.4-cp313-cp313-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:4ee6a571d1e4f0ea6d5f22d6e5fbd6ed1dc2b18542848e1e7301bd190500c9d7", size = 14281290, upload-time = "2025-10-15T16:16:18.764Z" }, + { url = "https://files.pythonhosted.org/packages/9e/7e/7d306ff7cb143e6d975cfa7eb98a93e73495c4deabb7d1b5ecf09ea0fd69/numpy-2.3.4-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:fc8a63918b04b8571789688b2780ab2b4a33ab44bfe8ccea36d3eba51228c953", size = 16636543, upload-time = "2025-10-15T16:16:21.072Z" }, + { url = "https://files.pythonhosted.org/packages/47/6a/8cfc486237e56ccfb0db234945552a557ca266f022d281a2f577b98e955c/numpy-2.3.4-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:40cc556d5abbc54aabe2b1ae287042d7bdb80c08edede19f0c0afb36ae586f37", size = 16056117, upload-time = "2025-10-15T16:16:23.369Z" }, + { url = "https://files.pythonhosted.org/packages/b1/0e/42cb5e69ea901e06ce24bfcc4b5664a56f950a70efdcf221f30d9615f3f3/numpy-2.3.4-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:ecb63014bb7f4ce653f8be7f1df8cbc6093a5a2811211770f6606cc92b5a78fd", size = 18577788, upload-time = "2025-10-15T16:16:27.496Z" }, + { url = "https://files.pythonhosted.org/packages/86/92/41c3d5157d3177559ef0a35da50f0cda7fa071f4ba2306dd36818591a5bc/numpy-2.3.4-cp313-cp313-win32.whl", hash = "sha256:e8370eb6925bb8c1c4264fec52b0384b44f675f191df91cbe0140ec9f0955646", size = 6282620, upload-time = "2025-10-15T16:16:29.811Z" }, + { url = "https://files.pythonhosted.org/packages/09/97/fd421e8bc50766665ad35536c2bb4ef916533ba1fdd053a62d96cc7c8b95/numpy-2.3.4-cp313-cp313-win_amd64.whl", hash = "sha256:56209416e81a7893036eea03abcb91c130643eb14233b2515c90dcac963fe99d", size = 12784672, upload-time = "2025-10-15T16:16:31.589Z" }, + { url = "https://files.pythonhosted.org/packages/ad/df/5474fb2f74970ca8eb978093969b125a84cc3d30e47f82191f981f13a8a0/numpy-2.3.4-cp313-cp313-win_arm64.whl", hash = "sha256:a700a4031bc0fd6936e78a752eefb79092cecad2599ea9c8039c548bc097f9bc", size = 10196702, upload-time = "2025-10-15T16:16:33.902Z" }, + { url = "https://files.pythonhosted.org/packages/11/83/66ac031464ec1767ea3ed48ce40f615eb441072945e98693bec0bcd056cc/numpy-2.3.4-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:86966db35c4040fdca64f0816a1c1dd8dbd027d90fca5a57e00e1ca4cd41b879", size = 21049003, upload-time = "2025-10-15T16:16:36.101Z" }, + { url = "https://files.pythonhosted.org/packages/5f/99/5b14e0e686e61371659a1d5bebd04596b1d72227ce36eed121bb0aeab798/numpy-2.3.4-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:838f045478638b26c375ee96ea89464d38428c69170360b23a1a50fa4baa3562", size = 14302980, upload-time = "2025-10-15T16:16:39.124Z" }, + { url = "https://files.pythonhosted.org/packages/2c/44/e9486649cd087d9fc6920e3fc3ac2aba10838d10804b1e179fb7cbc4e634/numpy-2.3.4-cp313-cp313t-macosx_14_0_arm64.whl", hash = "sha256:d7315ed1dab0286adca467377c8381cd748f3dc92235f22a7dfc42745644a96a", size = 5231472, upload-time = "2025-10-15T16:16:41.168Z" }, + { url = "https://files.pythonhosted.org/packages/3e/51/902b24fa8887e5fe2063fd61b1895a476d0bbf46811ab0c7fdf4bd127345/numpy-2.3.4-cp313-cp313t-macosx_14_0_x86_64.whl", hash = "sha256:84f01a4d18b2cc4ade1814a08e5f3c907b079c847051d720fad15ce37aa930b6", size = 6739342, upload-time = "2025-10-15T16:16:43.777Z" }, + { url = "https://files.pythonhosted.org/packages/34/f1/4de9586d05b1962acdcdb1dc4af6646361a643f8c864cef7c852bf509740/numpy-2.3.4-cp313-cp313t-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:817e719a868f0dacde4abdfc5c1910b301877970195db9ab6a5e2c4bd5b121f7", size = 14354338, upload-time = "2025-10-15T16:16:46.081Z" }, + { url = "https://files.pythonhosted.org/packages/1f/06/1c16103b425de7969d5a76bdf5ada0804b476fed05d5f9e17b777f1cbefd/numpy-2.3.4-cp313-cp313t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:85e071da78d92a214212cacea81c6da557cab307f2c34b5f85b628e94803f9c0", size = 16702392, upload-time = "2025-10-15T16:16:48.455Z" }, + { url = "https://files.pythonhosted.org/packages/34/b2/65f4dc1b89b5322093572b6e55161bb42e3e0487067af73627f795cc9d47/numpy-2.3.4-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:2ec646892819370cf3558f518797f16597b4e4669894a2ba712caccc9da53f1f", size = 16134998, upload-time = "2025-10-15T16:16:51.114Z" }, + { url = "https://files.pythonhosted.org/packages/d4/11/94ec578896cdb973aaf56425d6c7f2aff4186a5c00fac15ff2ec46998b46/numpy-2.3.4-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:035796aaaddfe2f9664b9a9372f089cfc88bd795a67bd1bfe15e6e770934cf64", size = 18651574, upload-time = "2025-10-15T16:16:53.429Z" }, + { url = "https://files.pythonhosted.org/packages/62/b7/7efa763ab33dbccf56dade36938a77345ce8e8192d6b39e470ca25ff3cd0/numpy-2.3.4-cp313-cp313t-win32.whl", hash = "sha256:fea80f4f4cf83b54c3a051f2f727870ee51e22f0248d3114b8e755d160b38cfb", size = 6413135, upload-time = "2025-10-15T16:16:55.992Z" }, + { url = "https://files.pythonhosted.org/packages/43/70/aba4c38e8400abcc2f345e13d972fb36c26409b3e644366db7649015f291/numpy-2.3.4-cp313-cp313t-win_amd64.whl", hash = "sha256:15eea9f306b98e0be91eb344a94c0e630689ef302e10c2ce5f7e11905c704f9c", size = 12928582, upload-time = "2025-10-15T16:16:57.943Z" }, + { url = "https://files.pythonhosted.org/packages/67/63/871fad5f0073fc00fbbdd7232962ea1ac40eeaae2bba66c76214f7954236/numpy-2.3.4-cp313-cp313t-win_arm64.whl", hash = "sha256:b6c231c9c2fadbae4011ca5e7e83e12dc4a5072f1a1d85a0a7b3ed754d145a40", size = 10266691, upload-time = "2025-10-15T16:17:00.048Z" }, + { url = "https://files.pythonhosted.org/packages/72/71/ae6170143c115732470ae3a2d01512870dd16e0953f8a6dc89525696069b/numpy-2.3.4-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:81c3e6d8c97295a7360d367f9f8553973651b76907988bb6066376bc2252f24e", size = 20955580, upload-time = "2025-10-15T16:17:02.509Z" }, + { url = "https://files.pythonhosted.org/packages/af/39/4be9222ffd6ca8a30eda033d5f753276a9c3426c397bb137d8e19dedd200/numpy-2.3.4-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:7c26b0b2bf58009ed1f38a641f3db4be8d960a417ca96d14e5b06df1506d41ff", size = 14188056, upload-time = "2025-10-15T16:17:04.873Z" }, + { url = "https://files.pythonhosted.org/packages/6c/3d/d85f6700d0a4aa4f9491030e1021c2b2b7421b2b38d01acd16734a2bfdc7/numpy-2.3.4-cp314-cp314-macosx_14_0_arm64.whl", hash = "sha256:62b2198c438058a20b6704351b35a1d7db881812d8512d67a69c9de1f18ca05f", size = 5116555, upload-time = "2025-10-15T16:17:07.499Z" }, + { url = "https://files.pythonhosted.org/packages/bf/04/82c1467d86f47eee8a19a464c92f90a9bb68ccf14a54c5224d7031241ffb/numpy-2.3.4-cp314-cp314-macosx_14_0_x86_64.whl", hash = "sha256:9d729d60f8d53a7361707f4b68a9663c968882dd4f09e0d58c044c8bf5faee7b", size = 6643581, upload-time = "2025-10-15T16:17:09.774Z" }, + { url = "https://files.pythonhosted.org/packages/0c/d3/c79841741b837e293f48bd7db89d0ac7a4f2503b382b78a790ef1dc778a5/numpy-2.3.4-cp314-cp314-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:bd0c630cf256b0a7fd9d0a11c9413b42fef5101219ce6ed5a09624f5a65392c7", size = 14299186, upload-time = "2025-10-15T16:17:11.937Z" }, + { url = "https://files.pythonhosted.org/packages/e8/7e/4a14a769741fbf237eec5a12a2cbc7a4c4e061852b6533bcb9e9a796c908/numpy-2.3.4-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:d5e081bc082825f8b139f9e9fe42942cb4054524598aaeb177ff476cc76d09d2", size = 16638601, upload-time = "2025-10-15T16:17:14.391Z" }, + { url = "https://files.pythonhosted.org/packages/93/87/1c1de269f002ff0a41173fe01dcc925f4ecff59264cd8f96cf3b60d12c9b/numpy-2.3.4-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:15fb27364ed84114438fff8aaf998c9e19adbeba08c0b75409f8c452a8692c52", size = 16074219, upload-time = "2025-10-15T16:17:17.058Z" }, + { url = "https://files.pythonhosted.org/packages/cd/28/18f72ee77408e40a76d691001ae599e712ca2a47ddd2c4f695b16c65f077/numpy-2.3.4-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:85d9fb2d8cd998c84d13a79a09cc0c1091648e848e4e6249b0ccd7f6b487fa26", size = 18576702, upload-time = "2025-10-15T16:17:19.379Z" }, + { url = "https://files.pythonhosted.org/packages/c3/76/95650169b465ececa8cf4b2e8f6df255d4bf662775e797ade2025cc51ae6/numpy-2.3.4-cp314-cp314-win32.whl", hash = "sha256:e73d63fd04e3a9d6bc187f5455d81abfad05660b212c8804bf3b407e984cd2bc", size = 6337136, upload-time = "2025-10-15T16:17:22.886Z" }, + { url = "https://files.pythonhosted.org/packages/dc/89/a231a5c43ede5d6f77ba4a91e915a87dea4aeea76560ba4d2bf185c683f0/numpy-2.3.4-cp314-cp314-win_amd64.whl", hash = "sha256:3da3491cee49cf16157e70f607c03a217ea6647b1cea4819c4f48e53d49139b9", size = 12920542, upload-time = "2025-10-15T16:17:24.783Z" }, + { url = "https://files.pythonhosted.org/packages/0d/0c/ae9434a888f717c5ed2ff2393b3f344f0ff6f1c793519fa0c540461dc530/numpy-2.3.4-cp314-cp314-win_arm64.whl", hash = "sha256:6d9cd732068e8288dbe2717177320723ccec4fb064123f0caf9bbd90ab5be868", size = 10480213, upload-time = "2025-10-15T16:17:26.935Z" }, + { url = "https://files.pythonhosted.org/packages/83/4b/c4a5f0841f92536f6b9592694a5b5f68c9ab37b775ff342649eadf9055d3/numpy-2.3.4-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:22758999b256b595cf0b1d102b133bb61866ba5ceecf15f759623b64c020c9ec", size = 21052280, upload-time = "2025-10-15T16:17:29.638Z" }, + { url = "https://files.pythonhosted.org/packages/3e/80/90308845fc93b984d2cc96d83e2324ce8ad1fd6efea81b324cba4b673854/numpy-2.3.4-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:9cb177bc55b010b19798dc5497d540dea67fd13a8d9e882b2dae71de0cf09eb3", size = 14302930, upload-time = "2025-10-15T16:17:32.384Z" }, + { url = "https://files.pythonhosted.org/packages/3d/4e/07439f22f2a3b247cec4d63a713faae55e1141a36e77fb212881f7cda3fb/numpy-2.3.4-cp314-cp314t-macosx_14_0_arm64.whl", hash = "sha256:0f2bcc76f1e05e5ab58893407c63d90b2029908fa41f9f1cc51eecce936c3365", size = 5231504, upload-time = "2025-10-15T16:17:34.515Z" }, + { url = "https://files.pythonhosted.org/packages/ab/de/1e11f2547e2fe3d00482b19721855348b94ada8359aef5d40dd57bfae9df/numpy-2.3.4-cp314-cp314t-macosx_14_0_x86_64.whl", hash = "sha256:8dc20bde86802df2ed8397a08d793da0ad7a5fd4ea3ac85d757bf5dd4ad7c252", size = 6739405, upload-time = "2025-10-15T16:17:36.128Z" }, + { url = "https://files.pythonhosted.org/packages/3b/40/8cd57393a26cebe2e923005db5134a946c62fa56a1087dc7c478f3e30837/numpy-2.3.4-cp314-cp314t-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:5e199c087e2aa71c8f9ce1cb7a8e10677dc12457e7cc1be4798632da37c3e86e", size = 14354866, upload-time = "2025-10-15T16:17:38.884Z" }, + { url = "https://files.pythonhosted.org/packages/93/39/5b3510f023f96874ee6fea2e40dfa99313a00bf3ab779f3c92978f34aace/numpy-2.3.4-cp314-cp314t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:85597b2d25ddf655495e2363fe044b0ae999b75bc4d630dc0d886484b03a5eb0", size = 16703296, upload-time = "2025-10-15T16:17:41.564Z" }, + { url = "https://files.pythonhosted.org/packages/41/0d/19bb163617c8045209c1996c4e427bccbc4bbff1e2c711f39203c8ddbb4a/numpy-2.3.4-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:04a69abe45b49c5955923cf2c407843d1c85013b424ae8a560bba16c92fe44a0", size = 16136046, upload-time = "2025-10-15T16:17:43.901Z" }, + { url = "https://files.pythonhosted.org/packages/e2/c1/6dba12fdf68b02a21ac411c9df19afa66bed2540f467150ca64d246b463d/numpy-2.3.4-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:e1708fac43ef8b419c975926ce1eaf793b0c13b7356cfab6ab0dc34c0a02ac0f", size = 18652691, upload-time = "2025-10-15T16:17:46.247Z" }, + { url = "https://files.pythonhosted.org/packages/f8/73/f85056701dbbbb910c51d846c58d29fd46b30eecd2b6ba760fc8b8a1641b/numpy-2.3.4-cp314-cp314t-win32.whl", hash = "sha256:863e3b5f4d9915aaf1b8ec79ae560ad21f0b8d5e3adc31e73126491bb86dee1d", size = 6485782, upload-time = "2025-10-15T16:17:48.872Z" }, + { url = "https://files.pythonhosted.org/packages/17/90/28fa6f9865181cb817c2471ee65678afa8a7e2a1fb16141473d5fa6bacc3/numpy-2.3.4-cp314-cp314t-win_amd64.whl", hash = "sha256:962064de37b9aef801d33bc579690f8bfe6c5e70e29b61783f60bcba838a14d6", size = 13113301, upload-time = "2025-10-15T16:17:50.938Z" }, + { url = "https://files.pythonhosted.org/packages/54/23/08c002201a8e7e1f9afba93b97deceb813252d9cfd0d3351caed123dcf97/numpy-2.3.4-cp314-cp314t-win_arm64.whl", hash = "sha256:8b5a9a39c45d852b62693d9b3f3e0fe052541f804296ff401a72a1b60edafb29", size = 10547532, upload-time = "2025-10-15T16:17:53.48Z" }, + { url = "https://files.pythonhosted.org/packages/b1/b6/64898f51a86ec88ca1257a59c1d7fd077b60082a119affefcdf1dd0df8ca/numpy-2.3.4-pp311-pypy311_pp73-macosx_10_15_x86_64.whl", hash = "sha256:6e274603039f924c0fe5cb73438fa9246699c78a6df1bd3decef9ae592ae1c05", size = 21131552, upload-time = "2025-10-15T16:17:55.845Z" }, + { url = "https://files.pythonhosted.org/packages/ce/4c/f135dc6ebe2b6a3c77f4e4838fa63d350f85c99462012306ada1bd4bc460/numpy-2.3.4-pp311-pypy311_pp73-macosx_11_0_arm64.whl", hash = "sha256:d149aee5c72176d9ddbc6803aef9c0f6d2ceeea7626574fc68518da5476fa346", size = 14377796, upload-time = "2025-10-15T16:17:58.308Z" }, + { url = "https://files.pythonhosted.org/packages/d0/a4/f33f9c23fcc13dd8412fc8614559b5b797e0aba9d8e01dfa8bae10c84004/numpy-2.3.4-pp311-pypy311_pp73-macosx_14_0_arm64.whl", hash = "sha256:6d34ed9db9e6395bb6cd33286035f73a59b058169733a9db9f85e650b88df37e", size = 5306904, upload-time = "2025-10-15T16:18:00.596Z" }, + { url = "https://files.pythonhosted.org/packages/28/af/c44097f25f834360f9fb960fa082863e0bad14a42f36527b2a121abdec56/numpy-2.3.4-pp311-pypy311_pp73-macosx_14_0_x86_64.whl", hash = "sha256:fdebe771ca06bb8d6abce84e51dca9f7921fe6ad34a0c914541b063e9a68928b", size = 6819682, upload-time = "2025-10-15T16:18:02.32Z" }, + { url = "https://files.pythonhosted.org/packages/c5/8c/cd283b54c3c2b77e188f63e23039844f56b23bba1712318288c13fe86baf/numpy-2.3.4-pp311-pypy311_pp73-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:957e92defe6c08211eb77902253b14fe5b480ebc5112bc741fd5e9cd0608f847", size = 14422300, upload-time = "2025-10-15T16:18:04.271Z" }, + { url = "https://files.pythonhosted.org/packages/b0/f0/8404db5098d92446b3e3695cf41c6f0ecb703d701cb0b7566ee2177f2eee/numpy-2.3.4-pp311-pypy311_pp73-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:13b9062e4f5c7ee5c7e5be96f29ba71bc5a37fed3d1d77c37390ae00724d296d", size = 16760806, upload-time = "2025-10-15T16:18:06.668Z" }, + { url = "https://files.pythonhosted.org/packages/95/8e/2844c3959ce9a63acc7c8e50881133d86666f0420bcde695e115ced0920f/numpy-2.3.4-pp311-pypy311_pp73-win_amd64.whl", hash = "sha256:81b3a59793523e552c4a96109dde028aa4448ae06ccac5a76ff6532a85558a7f", size = 12973130, upload-time = "2025-10-15T16:18:09.397Z" }, ] [[package]] @@ -846,23 +1032,23 @@ source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "et-xmlfile" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/3d/f9/88d94a75de065ea32619465d2f77b29a0469500e99012523b91cc4141cd1/openpyxl-3.1.5.tar.gz", hash = "sha256:cf0e3cf56142039133628b5acffe8ef0c12bc902d2aadd3e0fe5878dc08d1050", size = 186464 } +sdist = { url = "https://files.pythonhosted.org/packages/3d/f9/88d94a75de065ea32619465d2f77b29a0469500e99012523b91cc4141cd1/openpyxl-3.1.5.tar.gz", hash = "sha256:cf0e3cf56142039133628b5acffe8ef0c12bc902d2aadd3e0fe5878dc08d1050", size = 186464, upload-time = "2024-06-28T14:03:44.161Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/c0/da/977ded879c29cbd04de313843e76868e6e13408a94ed6b987245dc7c8506/openpyxl-3.1.5-py2.py3-none-any.whl", hash = "sha256:5282c12b107bffeef825f4617dc029afaf41d0ea60823bbb665ef3079dc79de2", size = 250910 }, + { url = "https://files.pythonhosted.org/packages/c0/da/977ded879c29cbd04de313843e76868e6e13408a94ed6b987245dc7c8506/openpyxl-3.1.5-py2.py3-none-any.whl", hash = "sha256:5282c12b107bffeef825f4617dc029afaf41d0ea60823bbb665ef3079dc79de2", size = 250910, upload-time = "2024-06-28T14:03:41.161Z" }, ] [[package]] name = "packaging" -version = "24.2" +version = "25.0" source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/d0/63/68dbb6eb2de9cb10ee4c9c14a0148804425e13c4fb20d61cce69f53106da/packaging-24.2.tar.gz", hash = "sha256:c228a6dc5e932d346bc5739379109d49e8853dd8223571c7c5b55260edc0b97f", size = 163950 } +sdist = { url = "https://files.pythonhosted.org/packages/a1/d4/1fc4078c65507b51b96ca8f8c3ba19e6a61c8253c72794544580a7b6c24d/packaging-25.0.tar.gz", hash = "sha256:d443872c98d677bf60f6a1f2f8c1cb748e8fe762d2bf9d3148b5599295b0fc4f", size = 165727, upload-time = "2025-04-19T11:48:59.673Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/88/ef/eb23f262cca3c0c4eb7ab1933c3b1f03d021f2c48f54763065b6f0e321be/packaging-24.2-py3-none-any.whl", hash = "sha256:09abb1bccd265c01f4a3aa3f7a7db064b36514d2cba19a2f694fe6150451a759", size = 65451 }, + { url = "https://files.pythonhosted.org/packages/20/12/38679034af332785aac8774540895e234f4d07f7545804097de4b666afd8/packaging-25.0-py3-none-any.whl", hash = "sha256:29572ef2b1f17581046b3a2227d5c611fb25ec70ca1ba8554b24b0e69331a484", size = 66469, upload-time = "2025-04-19T11:48:57.875Z" }, ] [[package]] name = "pandas" -version = "2.2.3" +version = "2.3.3" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "numpy" }, @@ -870,139 +1056,180 @@ dependencies = [ { name = "pytz" }, { name = "tzdata" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/9c/d6/9f8431bacc2e19dca897724cd097b1bb224a6ad5433784a44b587c7c13af/pandas-2.2.3.tar.gz", hash = "sha256:4f18ba62b61d7e192368b84517265a99b4d7ee8912f8708660fb4a366cc82667", size = 4399213 } -wheels = [ - { url = "https://files.pythonhosted.org/packages/a8/44/d9502bf0ed197ba9bf1103c9867d5904ddcaf869e52329787fc54ed70cc8/pandas-2.2.3-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:66108071e1b935240e74525006034333f98bcdb87ea116de573a6a0dccb6c039", size = 12602222 }, - { url = "https://files.pythonhosted.org/packages/52/11/9eac327a38834f162b8250aab32a6781339c69afe7574368fffe46387edf/pandas-2.2.3-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:7c2875855b0ff77b2a64a0365e24455d9990730d6431b9e0ee18ad8acee13dbd", size = 11321274 }, - { url = "https://files.pythonhosted.org/packages/45/fb/c4beeb084718598ba19aa9f5abbc8aed8b42f90930da861fcb1acdb54c3a/pandas-2.2.3-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:cd8d0c3be0515c12fed0bdbae072551c8b54b7192c7b1fda0ba56059a0179698", size = 15579836 }, - { url = "https://files.pythonhosted.org/packages/cd/5f/4dba1d39bb9c38d574a9a22548c540177f78ea47b32f99c0ff2ec499fac5/pandas-2.2.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:c124333816c3a9b03fbeef3a9f230ba9a737e9e5bb4060aa2107a86cc0a497fc", size = 13058505 }, - { url = "https://files.pythonhosted.org/packages/b9/57/708135b90391995361636634df1f1130d03ba456e95bcf576fada459115a/pandas-2.2.3-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:63cc132e40a2e084cf01adf0775b15ac515ba905d7dcca47e9a251819c575ef3", size = 16744420 }, - { url = "https://files.pythonhosted.org/packages/86/4a/03ed6b7ee323cf30404265c284cee9c65c56a212e0a08d9ee06984ba2240/pandas-2.2.3-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:29401dbfa9ad77319367d36940cd8a0b3a11aba16063e39632d98b0e931ddf32", size = 14440457 }, - { url = "https://files.pythonhosted.org/packages/ed/8c/87ddf1fcb55d11f9f847e3c69bb1c6f8e46e2f40ab1a2d2abadb2401b007/pandas-2.2.3-cp311-cp311-win_amd64.whl", hash = "sha256:3fc6873a41186404dad67245896a6e440baacc92f5b716ccd1bc9ed2995ab2c5", size = 11617166 }, - { url = "https://files.pythonhosted.org/packages/17/a3/fb2734118db0af37ea7433f57f722c0a56687e14b14690edff0cdb4b7e58/pandas-2.2.3-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:b1d432e8d08679a40e2a6d8b2f9770a5c21793a6f9f47fdd52c5ce1948a5a8a9", size = 12529893 }, - { url = "https://files.pythonhosted.org/packages/e1/0c/ad295fd74bfac85358fd579e271cded3ac969de81f62dd0142c426b9da91/pandas-2.2.3-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:a5a1595fe639f5988ba6a8e5bc9649af3baf26df3998a0abe56c02609392e0a4", size = 11363475 }, - { url = "https://files.pythonhosted.org/packages/c6/2a/4bba3f03f7d07207481fed47f5b35f556c7441acddc368ec43d6643c5777/pandas-2.2.3-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:5de54125a92bb4d1c051c0659e6fcb75256bf799a732a87184e5ea503965bce3", size = 15188645 }, - { url = "https://files.pythonhosted.org/packages/38/f8/d8fddee9ed0d0c0f4a2132c1dfcf0e3e53265055da8df952a53e7eaf178c/pandas-2.2.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:fffb8ae78d8af97f849404f21411c95062db1496aeb3e56f146f0355c9989319", size = 12739445 }, - { url = "https://files.pythonhosted.org/packages/20/e8/45a05d9c39d2cea61ab175dbe6a2de1d05b679e8de2011da4ee190d7e748/pandas-2.2.3-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:6dfcb5ee8d4d50c06a51c2fffa6cff6272098ad6540aed1a76d15fb9318194d8", size = 16359235 }, - { url = "https://files.pythonhosted.org/packages/1d/99/617d07a6a5e429ff90c90da64d428516605a1ec7d7bea494235e1c3882de/pandas-2.2.3-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:062309c1b9ea12a50e8ce661145c6aab431b1e99530d3cd60640e255778bd43a", size = 14056756 }, - { url = "https://files.pythonhosted.org/packages/29/d4/1244ab8edf173a10fd601f7e13b9566c1b525c4f365d6bee918e68381889/pandas-2.2.3-cp312-cp312-win_amd64.whl", hash = "sha256:59ef3764d0fe818125a5097d2ae867ca3fa64df032331b7e0917cf5d7bf66b13", size = 11504248 }, - { url = "https://files.pythonhosted.org/packages/64/22/3b8f4e0ed70644e85cfdcd57454686b9057c6c38d2f74fe4b8bc2527214a/pandas-2.2.3-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:f00d1345d84d8c86a63e476bb4955e46458b304b9575dcf71102b5c705320015", size = 12477643 }, - { url = "https://files.pythonhosted.org/packages/e4/93/b3f5d1838500e22c8d793625da672f3eec046b1a99257666c94446969282/pandas-2.2.3-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:3508d914817e153ad359d7e069d752cdd736a247c322d932eb89e6bc84217f28", size = 11281573 }, - { url = "https://files.pythonhosted.org/packages/f5/94/6c79b07f0e5aab1dcfa35a75f4817f5c4f677931d4234afcd75f0e6a66ca/pandas-2.2.3-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:22a9d949bfc9a502d320aa04e5d02feab689d61da4e7764b62c30b991c42c5f0", size = 15196085 }, - { url = "https://files.pythonhosted.org/packages/e8/31/aa8da88ca0eadbabd0a639788a6da13bb2ff6edbbb9f29aa786450a30a91/pandas-2.2.3-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:f3a255b2c19987fbbe62a9dfd6cff7ff2aa9ccab3fc75218fd4b7530f01efa24", size = 12711809 }, - { url = "https://files.pythonhosted.org/packages/ee/7c/c6dbdb0cb2a4344cacfb8de1c5808ca885b2e4dcfde8008266608f9372af/pandas-2.2.3-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:800250ecdadb6d9c78eae4990da62743b857b470883fa27f652db8bdde7f6659", size = 16356316 }, - { url = "https://files.pythonhosted.org/packages/57/b7/8b757e7d92023b832869fa8881a992696a0bfe2e26f72c9ae9f255988d42/pandas-2.2.3-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:6374c452ff3ec675a8f46fd9ab25c4ad0ba590b71cf0656f8b6daa5202bca3fb", size = 14022055 }, - { url = "https://files.pythonhosted.org/packages/3b/bc/4b18e2b8c002572c5a441a64826252ce5da2aa738855747247a971988043/pandas-2.2.3-cp313-cp313-win_amd64.whl", hash = "sha256:61c5ad4043f791b61dd4752191d9f07f0ae412515d59ba8f005832a532f8736d", size = 11481175 }, - { url = "https://files.pythonhosted.org/packages/76/a3/a5d88146815e972d40d19247b2c162e88213ef51c7c25993942c39dbf41d/pandas-2.2.3-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:3b71f27954685ee685317063bf13c7709a7ba74fc996b84fc6821c59b0f06468", size = 12615650 }, - { url = "https://files.pythonhosted.org/packages/9c/8c/f0fd18f6140ddafc0c24122c8a964e48294acc579d47def376fef12bcb4a/pandas-2.2.3-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:38cf8125c40dae9d5acc10fa66af8ea6fdf760b2714ee482ca691fc66e6fcb18", size = 11290177 }, - { url = "https://files.pythonhosted.org/packages/ed/f9/e995754eab9c0f14c6777401f7eece0943840b7a9fc932221c19d1abee9f/pandas-2.2.3-cp313-cp313t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:ba96630bc17c875161df3818780af30e43be9b166ce51c9a18c1feae342906c2", size = 14651526 }, - { url = "https://files.pythonhosted.org/packages/25/b0/98d6ae2e1abac4f35230aa756005e8654649d305df9a28b16b9ae4353bff/pandas-2.2.3-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:1db71525a1538b30142094edb9adc10be3f3e176748cd7acc2240c2f2e5aa3a4", size = 11871013 }, - { url = "https://files.pythonhosted.org/packages/cc/57/0f72a10f9db6a4628744c8e8f0df4e6e21de01212c7c981d31e50ffc8328/pandas-2.2.3-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:15c0e1e02e93116177d29ff83e8b1619c93ddc9c49083f237d4312337a61165d", size = 15711620 }, - { url = "https://files.pythonhosted.org/packages/ab/5f/b38085618b950b79d2d9164a711c52b10aefc0ae6833b96f626b7021b2ed/pandas-2.2.3-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:ad5b65698ab28ed8d7f18790a0dc58005c7629f227be9ecc1072aa74c0c1d43a", size = 13098436 }, +sdist = { url = "https://files.pythonhosted.org/packages/33/01/d40b85317f86cf08d853a4f495195c73815fdf205eef3993821720274518/pandas-2.3.3.tar.gz", hash = "sha256:e05e1af93b977f7eafa636d043f9f94c7ee3ac81af99c13508215942e64c993b", size = 4495223, upload-time = "2025-09-29T23:34:51.853Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/c1/fa/7ac648108144a095b4fb6aa3de1954689f7af60a14cf25583f4960ecb878/pandas-2.3.3-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:602b8615ebcc4a0c1751e71840428ddebeb142ec02c786e8ad6b1ce3c8dec523", size = 11578790, upload-time = "2025-09-29T23:18:30.065Z" }, + { url = "https://files.pythonhosted.org/packages/9b/35/74442388c6cf008882d4d4bdfc4109be87e9b8b7ccd097ad1e7f006e2e95/pandas-2.3.3-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:8fe25fc7b623b0ef6b5009149627e34d2a4657e880948ec3c840e9402e5c1b45", size = 10833831, upload-time = "2025-09-29T23:38:56.071Z" }, + { url = "https://files.pythonhosted.org/packages/fe/e4/de154cbfeee13383ad58d23017da99390b91d73f8c11856f2095e813201b/pandas-2.3.3-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:b468d3dad6ff947df92dcb32ede5b7bd41a9b3cceef0a30ed925f6d01fb8fa66", size = 12199267, upload-time = "2025-09-29T23:18:41.627Z" }, + { url = "https://files.pythonhosted.org/packages/bf/c9/63f8d545568d9ab91476b1818b4741f521646cbdd151c6efebf40d6de6f7/pandas-2.3.3-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:b98560e98cb334799c0b07ca7967ac361a47326e9b4e5a7dfb5ab2b1c9d35a1b", size = 12789281, upload-time = "2025-09-29T23:18:56.834Z" }, + { url = "https://files.pythonhosted.org/packages/f2/00/a5ac8c7a0e67fd1a6059e40aa08fa1c52cc00709077d2300e210c3ce0322/pandas-2.3.3-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:1d37b5848ba49824e5c30bedb9c830ab9b7751fd049bc7914533e01c65f79791", size = 13240453, upload-time = "2025-09-29T23:19:09.247Z" }, + { url = "https://files.pythonhosted.org/packages/27/4d/5c23a5bc7bd209231618dd9e606ce076272c9bc4f12023a70e03a86b4067/pandas-2.3.3-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:db4301b2d1f926ae677a751eb2bd0e8c5f5319c9cb3f88b0becbbb0b07b34151", size = 13890361, upload-time = "2025-09-29T23:19:25.342Z" }, + { url = "https://files.pythonhosted.org/packages/8e/59/712db1d7040520de7a4965df15b774348980e6df45c129b8c64d0dbe74ef/pandas-2.3.3-cp311-cp311-win_amd64.whl", hash = "sha256:f086f6fe114e19d92014a1966f43a3e62285109afe874f067f5abbdcbb10e59c", size = 11348702, upload-time = "2025-09-29T23:19:38.296Z" }, + { url = "https://files.pythonhosted.org/packages/9c/fb/231d89e8637c808b997d172b18e9d4a4bc7bf31296196c260526055d1ea0/pandas-2.3.3-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:6d21f6d74eb1725c2efaa71a2bfc661a0689579b58e9c0ca58a739ff0b002b53", size = 11597846, upload-time = "2025-09-29T23:19:48.856Z" }, + { url = "https://files.pythonhosted.org/packages/5c/bd/bf8064d9cfa214294356c2d6702b716d3cf3bb24be59287a6a21e24cae6b/pandas-2.3.3-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:3fd2f887589c7aa868e02632612ba39acb0b8948faf5cc58f0850e165bd46f35", size = 10729618, upload-time = "2025-09-29T23:39:08.659Z" }, + { url = "https://files.pythonhosted.org/packages/57/56/cf2dbe1a3f5271370669475ead12ce77c61726ffd19a35546e31aa8edf4e/pandas-2.3.3-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:ecaf1e12bdc03c86ad4a7ea848d66c685cb6851d807a26aa245ca3d2017a1908", size = 11737212, upload-time = "2025-09-29T23:19:59.765Z" }, + { url = "https://files.pythonhosted.org/packages/e5/63/cd7d615331b328e287d8233ba9fdf191a9c2d11b6af0c7a59cfcec23de68/pandas-2.3.3-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:b3d11d2fda7eb164ef27ffc14b4fcab16a80e1ce67e9f57e19ec0afaf715ba89", size = 12362693, upload-time = "2025-09-29T23:20:14.098Z" }, + { url = "https://files.pythonhosted.org/packages/a6/de/8b1895b107277d52f2b42d3a6806e69cfef0d5cf1d0ba343470b9d8e0a04/pandas-2.3.3-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:a68e15f780eddf2b07d242e17a04aa187a7ee12b40b930bfdd78070556550e98", size = 12771002, upload-time = "2025-09-29T23:20:26.76Z" }, + { url = "https://files.pythonhosted.org/packages/87/21/84072af3187a677c5893b170ba2c8fbe450a6ff911234916da889b698220/pandas-2.3.3-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:371a4ab48e950033bcf52b6527eccb564f52dc826c02afd9a1bc0ab731bba084", size = 13450971, upload-time = "2025-09-29T23:20:41.344Z" }, + { url = "https://files.pythonhosted.org/packages/86/41/585a168330ff063014880a80d744219dbf1dd7a1c706e75ab3425a987384/pandas-2.3.3-cp312-cp312-win_amd64.whl", hash = "sha256:a16dcec078a01eeef8ee61bf64074b4e524a2a3f4b3be9326420cabe59c4778b", size = 10992722, upload-time = "2025-09-29T23:20:54.139Z" }, + { url = "https://files.pythonhosted.org/packages/cd/4b/18b035ee18f97c1040d94debd8f2e737000ad70ccc8f5513f4eefad75f4b/pandas-2.3.3-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:56851a737e3470de7fa88e6131f41281ed440d29a9268dcbf0002da5ac366713", size = 11544671, upload-time = "2025-09-29T23:21:05.024Z" }, + { url = "https://files.pythonhosted.org/packages/31/94/72fac03573102779920099bcac1c3b05975c2cb5f01eac609faf34bed1ca/pandas-2.3.3-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:bdcd9d1167f4885211e401b3036c0c8d9e274eee67ea8d0758a256d60704cfe8", size = 10680807, upload-time = "2025-09-29T23:21:15.979Z" }, + { url = "https://files.pythonhosted.org/packages/16/87/9472cf4a487d848476865321de18cc8c920b8cab98453ab79dbbc98db63a/pandas-2.3.3-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:e32e7cc9af0f1cc15548288a51a3b681cc2a219faa838e995f7dc53dbab1062d", size = 11709872, upload-time = "2025-09-29T23:21:27.165Z" }, + { url = "https://files.pythonhosted.org/packages/15/07/284f757f63f8a8d69ed4472bfd85122bd086e637bf4ed09de572d575a693/pandas-2.3.3-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:318d77e0e42a628c04dc56bcef4b40de67918f7041c2b061af1da41dcff670ac", size = 12306371, upload-time = "2025-09-29T23:21:40.532Z" }, + { url = "https://files.pythonhosted.org/packages/33/81/a3afc88fca4aa925804a27d2676d22dcd2031c2ebe08aabd0ae55b9ff282/pandas-2.3.3-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:4e0a175408804d566144e170d0476b15d78458795bb18f1304fb94160cabf40c", size = 12765333, upload-time = "2025-09-29T23:21:55.77Z" }, + { url = "https://files.pythonhosted.org/packages/8d/0f/b4d4ae743a83742f1153464cf1a8ecfafc3ac59722a0b5c8602310cb7158/pandas-2.3.3-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:93c2d9ab0fc11822b5eece72ec9587e172f63cff87c00b062f6e37448ced4493", size = 13418120, upload-time = "2025-09-29T23:22:10.109Z" }, + { url = "https://files.pythonhosted.org/packages/4f/c7/e54682c96a895d0c808453269e0b5928a07a127a15704fedb643e9b0a4c8/pandas-2.3.3-cp313-cp313-win_amd64.whl", hash = "sha256:f8bfc0e12dc78f777f323f55c58649591b2cd0c43534e8355c51d3fede5f4dee", size = 10993991, upload-time = "2025-09-29T23:25:04.889Z" }, + { url = "https://files.pythonhosted.org/packages/f9/ca/3f8d4f49740799189e1395812f3bf23b5e8fc7c190827d55a610da72ce55/pandas-2.3.3-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:75ea25f9529fdec2d2e93a42c523962261e567d250b0013b16210e1d40d7c2e5", size = 12048227, upload-time = "2025-09-29T23:22:24.343Z" }, + { url = "https://files.pythonhosted.org/packages/0e/5a/f43efec3e8c0cc92c4663ccad372dbdff72b60bdb56b2749f04aa1d07d7e/pandas-2.3.3-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:74ecdf1d301e812db96a465a525952f4dde225fdb6d8e5a521d47e1f42041e21", size = 11411056, upload-time = "2025-09-29T23:22:37.762Z" }, + { url = "https://files.pythonhosted.org/packages/46/b1/85331edfc591208c9d1a63a06baa67b21d332e63b7a591a5ba42a10bb507/pandas-2.3.3-cp313-cp313t-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:6435cb949cb34ec11cc9860246ccb2fdc9ecd742c12d3304989017d53f039a78", size = 11645189, upload-time = "2025-09-29T23:22:51.688Z" }, + { url = "https://files.pythonhosted.org/packages/44/23/78d645adc35d94d1ac4f2a3c4112ab6f5b8999f4898b8cdf01252f8df4a9/pandas-2.3.3-cp313-cp313t-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:900f47d8f20860de523a1ac881c4c36d65efcb2eb850e6948140fa781736e110", size = 12121912, upload-time = "2025-09-29T23:23:05.042Z" }, + { url = "https://files.pythonhosted.org/packages/53/da/d10013df5e6aaef6b425aa0c32e1fc1f3e431e4bcabd420517dceadce354/pandas-2.3.3-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:a45c765238e2ed7d7c608fc5bc4a6f88b642f2f01e70c0c23d2224dd21829d86", size = 12712160, upload-time = "2025-09-29T23:23:28.57Z" }, + { url = "https://files.pythonhosted.org/packages/bd/17/e756653095a083d8a37cbd816cb87148debcfcd920129b25f99dd8d04271/pandas-2.3.3-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:c4fc4c21971a1a9f4bdb4c73978c7f7256caa3e62b323f70d6cb80db583350bc", size = 13199233, upload-time = "2025-09-29T23:24:24.876Z" }, + { url = "https://files.pythonhosted.org/packages/04/fd/74903979833db8390b73b3a8a7d30d146d710bd32703724dd9083950386f/pandas-2.3.3-cp314-cp314-macosx_10_13_x86_64.whl", hash = "sha256:ee15f284898e7b246df8087fc82b87b01686f98ee67d85a17b7ab44143a3a9a0", size = 11540635, upload-time = "2025-09-29T23:25:52.486Z" }, + { url = "https://files.pythonhosted.org/packages/21/00/266d6b357ad5e6d3ad55093a7e8efc7dd245f5a842b584db9f30b0f0a287/pandas-2.3.3-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:1611aedd912e1ff81ff41c745822980c49ce4a7907537be8692c8dbc31924593", size = 10759079, upload-time = "2025-09-29T23:26:33.204Z" }, + { url = "https://files.pythonhosted.org/packages/ca/05/d01ef80a7a3a12b2f8bbf16daba1e17c98a2f039cbc8e2f77a2c5a63d382/pandas-2.3.3-cp314-cp314-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:6d2cefc361461662ac48810cb14365a365ce864afe85ef1f447ff5a1e99ea81c", size = 11814049, upload-time = "2025-09-29T23:27:15.384Z" }, + { url = "https://files.pythonhosted.org/packages/15/b2/0e62f78c0c5ba7e3d2c5945a82456f4fac76c480940f805e0b97fcbc2f65/pandas-2.3.3-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:ee67acbbf05014ea6c763beb097e03cd629961c8a632075eeb34247120abcb4b", size = 12332638, upload-time = "2025-09-29T23:27:51.625Z" }, + { url = "https://files.pythonhosted.org/packages/c5/33/dd70400631b62b9b29c3c93d2feee1d0964dc2bae2e5ad7a6c73a7f25325/pandas-2.3.3-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:c46467899aaa4da076d5abc11084634e2d197e9460643dd455ac3db5856b24d6", size = 12886834, upload-time = "2025-09-29T23:28:21.289Z" }, + { url = "https://files.pythonhosted.org/packages/d3/18/b5d48f55821228d0d2692b34fd5034bb185e854bdb592e9c640f6290e012/pandas-2.3.3-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:6253c72c6a1d990a410bc7de641d34053364ef8bcd3126f7e7450125887dffe3", size = 13409925, upload-time = "2025-09-29T23:28:58.261Z" }, + { url = "https://files.pythonhosted.org/packages/a6/3d/124ac75fcd0ecc09b8fdccb0246ef65e35b012030defb0e0eba2cbbbe948/pandas-2.3.3-cp314-cp314-win_amd64.whl", hash = "sha256:1b07204a219b3b7350abaae088f451860223a52cfb8a6c53358e7948735158e5", size = 11109071, upload-time = "2025-09-29T23:32:27.484Z" }, + { url = "https://files.pythonhosted.org/packages/89/9c/0e21c895c38a157e0faa1fb64587a9226d6dd46452cac4532d80c3c4a244/pandas-2.3.3-cp314-cp314t-macosx_10_13_x86_64.whl", hash = "sha256:2462b1a365b6109d275250baaae7b760fd25c726aaca0054649286bcfbb3e8ec", size = 12048504, upload-time = "2025-09-29T23:29:31.47Z" }, + { url = "https://files.pythonhosted.org/packages/d7/82/b69a1c95df796858777b68fbe6a81d37443a33319761d7c652ce77797475/pandas-2.3.3-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:0242fe9a49aa8b4d78a4fa03acb397a58833ef6199e9aa40a95f027bb3a1b6e7", size = 11410702, upload-time = "2025-09-29T23:29:54.591Z" }, + { url = "https://files.pythonhosted.org/packages/f9/88/702bde3ba0a94b8c73a0181e05144b10f13f29ebfc2150c3a79062a8195d/pandas-2.3.3-cp314-cp314t-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:a21d830e78df0a515db2b3d2f5570610f5e6bd2e27749770e8bb7b524b89b450", size = 11634535, upload-time = "2025-09-29T23:30:21.003Z" }, + { url = "https://files.pythonhosted.org/packages/a4/1e/1bac1a839d12e6a82ec6cb40cda2edde64a2013a66963293696bbf31fbbb/pandas-2.3.3-cp314-cp314t-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:2e3ebdb170b5ef78f19bfb71b0dc5dc58775032361fa188e814959b74d726dd5", size = 12121582, upload-time = "2025-09-29T23:30:43.391Z" }, + { url = "https://files.pythonhosted.org/packages/44/91/483de934193e12a3b1d6ae7c8645d083ff88dec75f46e827562f1e4b4da6/pandas-2.3.3-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:d051c0e065b94b7a3cea50eb1ec32e912cd96dba41647eb24104b6c6c14c5788", size = 12699963, upload-time = "2025-09-29T23:31:10.009Z" }, + { url = "https://files.pythonhosted.org/packages/70/44/5191d2e4026f86a2a109053e194d3ba7a31a2d10a9c2348368c63ed4e85a/pandas-2.3.3-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:3869faf4bd07b3b66a9f462417d0ca3a9df29a9f6abd5d0d0dbab15dac7abe87", size = 13202175, upload-time = "2025-09-29T23:31:59.173Z" }, ] [[package]] name = "pillow" -version = "11.2.1" -source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/af/cb/bb5c01fcd2a69335b86c22142b2bccfc3464087efb7fd382eee5ffc7fdf7/pillow-11.2.1.tar.gz", hash = "sha256:a64dd61998416367b7ef979b73d3a85853ba9bec4c2925f74e588879a58716b6", size = 47026707 } -wheels = [ - { url = "https://files.pythonhosted.org/packages/68/08/3fbf4b98924c73037a8e8b4c2c774784805e0fb4ebca6c5bb60795c40125/pillow-11.2.1-cp311-cp311-macosx_10_10_x86_64.whl", hash = "sha256:35ca289f712ccfc699508c4658a1d14652e8033e9b69839edf83cbdd0ba39e70", size = 3198450 }, - { url = "https://files.pythonhosted.org/packages/84/92/6505b1af3d2849d5e714fc75ba9e69b7255c05ee42383a35a4d58f576b16/pillow-11.2.1-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:e0409af9f829f87a2dfb7e259f78f317a5351f2045158be321fd135973fff7bf", size = 3030550 }, - { url = "https://files.pythonhosted.org/packages/3c/8c/ac2f99d2a70ff966bc7eb13dacacfaab57c0549b2ffb351b6537c7840b12/pillow-11.2.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d4e5c5edee874dce4f653dbe59db7c73a600119fbea8d31f53423586ee2aafd7", size = 4415018 }, - { url = "https://files.pythonhosted.org/packages/1f/e3/0a58b5d838687f40891fff9cbaf8669f90c96b64dc8f91f87894413856c6/pillow-11.2.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b93a07e76d13bff9444f1a029e0af2964e654bfc2e2c2d46bfd080df5ad5f3d8", size = 4498006 }, - { url = "https://files.pythonhosted.org/packages/21/f5/6ba14718135f08fbfa33308efe027dd02b781d3f1d5c471444a395933aac/pillow-11.2.1-cp311-cp311-manylinux_2_28_aarch64.whl", hash = "sha256:e6def7eed9e7fa90fde255afaf08060dc4b343bbe524a8f69bdd2a2f0018f600", size = 4517773 }, - { url = "https://files.pythonhosted.org/packages/20/f2/805ad600fc59ebe4f1ba6129cd3a75fb0da126975c8579b8f57abeb61e80/pillow-11.2.1-cp311-cp311-manylinux_2_28_x86_64.whl", hash = "sha256:8f4f3724c068be008c08257207210c138d5f3731af6c155a81c2b09a9eb3a788", size = 4607069 }, - { url = "https://files.pythonhosted.org/packages/71/6b/4ef8a288b4bb2e0180cba13ca0a519fa27aa982875882392b65131401099/pillow-11.2.1-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:a0a6709b47019dff32e678bc12c63008311b82b9327613f534e496dacaefb71e", size = 4583460 }, - { url = "https://files.pythonhosted.org/packages/62/ae/f29c705a09cbc9e2a456590816e5c234382ae5d32584f451c3eb41a62062/pillow-11.2.1-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:f6b0c664ccb879109ee3ca702a9272d877f4fcd21e5eb63c26422fd6e415365e", size = 4661304 }, - { url = "https://files.pythonhosted.org/packages/6e/1a/c8217b6f2f73794a5e219fbad087701f412337ae6dbb956db37d69a9bc43/pillow-11.2.1-cp311-cp311-win32.whl", hash = "sha256:cc5d875d56e49f112b6def6813c4e3d3036d269c008bf8aef72cd08d20ca6df6", size = 2331809 }, - { url = "https://files.pythonhosted.org/packages/e2/72/25a8f40170dc262e86e90f37cb72cb3de5e307f75bf4b02535a61afcd519/pillow-11.2.1-cp311-cp311-win_amd64.whl", hash = "sha256:0f5c7eda47bf8e3c8a283762cab94e496ba977a420868cb819159980b6709193", size = 2676338 }, - { url = "https://files.pythonhosted.org/packages/06/9e/76825e39efee61efea258b479391ca77d64dbd9e5804e4ad0fa453b4ba55/pillow-11.2.1-cp311-cp311-win_arm64.whl", hash = "sha256:4d375eb838755f2528ac8cbc926c3e31cc49ca4ad0cf79cff48b20e30634a4a7", size = 2414918 }, - { url = "https://files.pythonhosted.org/packages/c7/40/052610b15a1b8961f52537cc8326ca6a881408bc2bdad0d852edeb6ed33b/pillow-11.2.1-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:78afba22027b4accef10dbd5eed84425930ba41b3ea0a86fa8d20baaf19d807f", size = 3190185 }, - { url = "https://files.pythonhosted.org/packages/e5/7e/b86dbd35a5f938632093dc40d1682874c33dcfe832558fc80ca56bfcb774/pillow-11.2.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:78092232a4ab376a35d68c4e6d5e00dfd73454bd12b230420025fbe178ee3b0b", size = 3030306 }, - { url = "https://files.pythonhosted.org/packages/a4/5c/467a161f9ed53e5eab51a42923c33051bf8d1a2af4626ac04f5166e58e0c/pillow-11.2.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:25a5f306095c6780c52e6bbb6109624b95c5b18e40aab1c3041da3e9e0cd3e2d", size = 4416121 }, - { url = "https://files.pythonhosted.org/packages/62/73/972b7742e38ae0e2ac76ab137ca6005dcf877480da0d9d61d93b613065b4/pillow-11.2.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:0c7b29dbd4281923a2bfe562acb734cee96bbb129e96e6972d315ed9f232bef4", size = 4501707 }, - { url = "https://files.pythonhosted.org/packages/e4/3a/427e4cb0b9e177efbc1a84798ed20498c4f233abde003c06d2650a6d60cb/pillow-11.2.1-cp312-cp312-manylinux_2_28_aarch64.whl", hash = "sha256:3e645b020f3209a0181a418bffe7b4a93171eef6c4ef6cc20980b30bebf17b7d", size = 4522921 }, - { url = "https://files.pythonhosted.org/packages/fe/7c/d8b1330458e4d2f3f45d9508796d7caf0c0d3764c00c823d10f6f1a3b76d/pillow-11.2.1-cp312-cp312-manylinux_2_28_x86_64.whl", hash = "sha256:b2dbea1012ccb784a65349f57bbc93730b96e85b42e9bf7b01ef40443db720b4", size = 4612523 }, - { url = "https://files.pythonhosted.org/packages/b3/2f/65738384e0b1acf451de5a573d8153fe84103772d139e1e0bdf1596be2ea/pillow-11.2.1-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:da3104c57bbd72948d75f6a9389e6727d2ab6333c3617f0a89d72d4940aa0443", size = 4587836 }, - { url = "https://files.pythonhosted.org/packages/6a/c5/e795c9f2ddf3debb2dedd0df889f2fe4b053308bb59a3cc02a0cd144d641/pillow-11.2.1-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:598174aef4589af795f66f9caab87ba4ff860ce08cd5bb447c6fc553ffee603c", size = 4669390 }, - { url = "https://files.pythonhosted.org/packages/96/ae/ca0099a3995976a9fce2f423166f7bff9b12244afdc7520f6ed38911539a/pillow-11.2.1-cp312-cp312-win32.whl", hash = "sha256:1d535df14716e7f8776b9e7fee118576d65572b4aad3ed639be9e4fa88a1cad3", size = 2332309 }, - { url = "https://files.pythonhosted.org/packages/7c/18/24bff2ad716257fc03da964c5e8f05d9790a779a8895d6566e493ccf0189/pillow-11.2.1-cp312-cp312-win_amd64.whl", hash = "sha256:14e33b28bf17c7a38eede290f77db7c664e4eb01f7869e37fa98a5aa95978941", size = 2676768 }, - { url = "https://files.pythonhosted.org/packages/da/bb/e8d656c9543276517ee40184aaa39dcb41e683bca121022f9323ae11b39d/pillow-11.2.1-cp312-cp312-win_arm64.whl", hash = "sha256:21e1470ac9e5739ff880c211fc3af01e3ae505859392bf65458c224d0bf283eb", size = 2415087 }, - { url = "https://files.pythonhosted.org/packages/36/9c/447528ee3776e7ab8897fe33697a7ff3f0475bb490c5ac1456a03dc57956/pillow-11.2.1-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:fdec757fea0b793056419bca3e9932eb2b0ceec90ef4813ea4c1e072c389eb28", size = 3190098 }, - { url = "https://files.pythonhosted.org/packages/b5/09/29d5cd052f7566a63e5b506fac9c60526e9ecc553825551333e1e18a4858/pillow-11.2.1-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:b0e130705d568e2f43a17bcbe74d90958e8a16263868a12c3e0d9c8162690830", size = 3030166 }, - { url = "https://files.pythonhosted.org/packages/71/5d/446ee132ad35e7600652133f9c2840b4799bbd8e4adba881284860da0a36/pillow-11.2.1-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:7bdb5e09068332578214cadd9c05e3d64d99e0e87591be22a324bdbc18925be0", size = 4408674 }, - { url = "https://files.pythonhosted.org/packages/69/5f/cbe509c0ddf91cc3a03bbacf40e5c2339c4912d16458fcb797bb47bcb269/pillow-11.2.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d189ba1bebfbc0c0e529159631ec72bb9e9bc041f01ec6d3233d6d82eb823bc1", size = 4496005 }, - { url = "https://files.pythonhosted.org/packages/f9/b3/dd4338d8fb8a5f312021f2977fb8198a1184893f9b00b02b75d565c33b51/pillow-11.2.1-cp313-cp313-manylinux_2_28_aarch64.whl", hash = "sha256:191955c55d8a712fab8934a42bfefbf99dd0b5875078240943f913bb66d46d9f", size = 4518707 }, - { url = "https://files.pythonhosted.org/packages/13/eb/2552ecebc0b887f539111c2cd241f538b8ff5891b8903dfe672e997529be/pillow-11.2.1-cp313-cp313-manylinux_2_28_x86_64.whl", hash = "sha256:ad275964d52e2243430472fc5d2c2334b4fc3ff9c16cb0a19254e25efa03a155", size = 4610008 }, - { url = "https://files.pythonhosted.org/packages/72/d1/924ce51bea494cb6e7959522d69d7b1c7e74f6821d84c63c3dc430cbbf3b/pillow-11.2.1-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:750f96efe0597382660d8b53e90dd1dd44568a8edb51cb7f9d5d918b80d4de14", size = 4585420 }, - { url = "https://files.pythonhosted.org/packages/43/ab/8f81312d255d713b99ca37479a4cb4b0f48195e530cdc1611990eb8fd04b/pillow-11.2.1-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:fe15238d3798788d00716637b3d4e7bb6bde18b26e5d08335a96e88564a36b6b", size = 4667655 }, - { url = "https://files.pythonhosted.org/packages/94/86/8f2e9d2dc3d308dfd137a07fe1cc478df0a23d42a6c4093b087e738e4827/pillow-11.2.1-cp313-cp313-win32.whl", hash = "sha256:3fe735ced9a607fee4f481423a9c36701a39719252a9bb251679635f99d0f7d2", size = 2332329 }, - { url = "https://files.pythonhosted.org/packages/6d/ec/1179083b8d6067a613e4d595359b5fdea65d0a3b7ad623fee906e1b3c4d2/pillow-11.2.1-cp313-cp313-win_amd64.whl", hash = "sha256:74ee3d7ecb3f3c05459ba95eed5efa28d6092d751ce9bf20e3e253a4e497e691", size = 2676388 }, - { url = "https://files.pythonhosted.org/packages/23/f1/2fc1e1e294de897df39fa8622d829b8828ddad938b0eaea256d65b84dd72/pillow-11.2.1-cp313-cp313-win_arm64.whl", hash = "sha256:5119225c622403afb4b44bad4c1ca6c1f98eed79db8d3bc6e4e160fc6339d66c", size = 2414950 }, - { url = "https://files.pythonhosted.org/packages/c4/3e/c328c48b3f0ead7bab765a84b4977acb29f101d10e4ef57a5e3400447c03/pillow-11.2.1-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:8ce2e8411c7aaef53e6bb29fe98f28cd4fbd9a1d9be2eeea434331aac0536b22", size = 3192759 }, - { url = "https://files.pythonhosted.org/packages/18/0e/1c68532d833fc8b9f404d3a642991441d9058eccd5606eab31617f29b6d4/pillow-11.2.1-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:9ee66787e095127116d91dea2143db65c7bb1e232f617aa5957c0d9d2a3f23a7", size = 3033284 }, - { url = "https://files.pythonhosted.org/packages/b7/cb/6faf3fb1e7705fd2db74e070f3bf6f88693601b0ed8e81049a8266de4754/pillow-11.2.1-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:9622e3b6c1d8b551b6e6f21873bdcc55762b4b2126633014cea1803368a9aa16", size = 4445826 }, - { url = "https://files.pythonhosted.org/packages/07/94/8be03d50b70ca47fb434a358919d6a8d6580f282bbb7af7e4aa40103461d/pillow-11.2.1-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:63b5dff3a68f371ea06025a1a6966c9a1e1ee452fc8020c2cd0ea41b83e9037b", size = 4527329 }, - { url = "https://files.pythonhosted.org/packages/fd/a4/bfe78777076dc405e3bd2080bc32da5ab3945b5a25dc5d8acaa9de64a162/pillow-11.2.1-cp313-cp313t-manylinux_2_28_aarch64.whl", hash = "sha256:31df6e2d3d8fc99f993fd253e97fae451a8db2e7207acf97859732273e108406", size = 4549049 }, - { url = "https://files.pythonhosted.org/packages/65/4d/eaf9068dc687c24979e977ce5677e253624bd8b616b286f543f0c1b91662/pillow-11.2.1-cp313-cp313t-manylinux_2_28_x86_64.whl", hash = "sha256:062b7a42d672c45a70fa1f8b43d1d38ff76b63421cbbe7f88146b39e8a558d91", size = 4635408 }, - { url = "https://files.pythonhosted.org/packages/1d/26/0fd443365d9c63bc79feb219f97d935cd4b93af28353cba78d8e77b61719/pillow-11.2.1-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:4eb92eca2711ef8be42fd3f67533765d9fd043b8c80db204f16c8ea62ee1a751", size = 4614863 }, - { url = "https://files.pythonhosted.org/packages/49/65/dca4d2506be482c2c6641cacdba5c602bc76d8ceb618fd37de855653a419/pillow-11.2.1-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:f91ebf30830a48c825590aede79376cb40f110b387c17ee9bd59932c961044f9", size = 4692938 }, - { url = "https://files.pythonhosted.org/packages/b3/92/1ca0c3f09233bd7decf8f7105a1c4e3162fb9142128c74adad0fb361b7eb/pillow-11.2.1-cp313-cp313t-win32.whl", hash = "sha256:e0b55f27f584ed623221cfe995c912c61606be8513bfa0e07d2c674b4516d9dd", size = 2335774 }, - { url = "https://files.pythonhosted.org/packages/a5/ac/77525347cb43b83ae905ffe257bbe2cc6fd23acb9796639a1f56aa59d191/pillow-11.2.1-cp313-cp313t-win_amd64.whl", hash = "sha256:36d6b82164c39ce5482f649b437382c0fb2395eabc1e2b1702a6deb8ad647d6e", size = 2681895 }, - { url = "https://files.pythonhosted.org/packages/67/32/32dc030cfa91ca0fc52baebbba2e009bb001122a1daa8b6a79ad830b38d3/pillow-11.2.1-cp313-cp313t-win_arm64.whl", hash = "sha256:225c832a13326e34f212d2072982bb1adb210e0cc0b153e688743018c94a2681", size = 2417234 }, - { url = "https://files.pythonhosted.org/packages/a4/ad/2613c04633c7257d9481ab21d6b5364b59fc5d75faafd7cb8693523945a3/pillow-11.2.1-pp311-pypy311_pp73-macosx_10_15_x86_64.whl", hash = "sha256:80f1df8dbe9572b4b7abdfa17eb5d78dd620b1d55d9e25f834efdbee872d3aed", size = 3181734 }, - { url = "https://files.pythonhosted.org/packages/a4/fd/dcdda4471ed667de57bb5405bb42d751e6cfdd4011a12c248b455c778e03/pillow-11.2.1-pp311-pypy311_pp73-macosx_11_0_arm64.whl", hash = "sha256:ea926cfbc3957090becbcbbb65ad177161a2ff2ad578b5a6ec9bb1e1cd78753c", size = 2999841 }, - { url = "https://files.pythonhosted.org/packages/ac/89/8a2536e95e77432833f0db6fd72a8d310c8e4272a04461fb833eb021bf94/pillow-11.2.1-pp311-pypy311_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:738db0e0941ca0376804d4de6a782c005245264edaa253ffce24e5a15cbdc7bd", size = 3437470 }, - { url = "https://files.pythonhosted.org/packages/9d/8f/abd47b73c60712f88e9eda32baced7bfc3e9bd6a7619bb64b93acff28c3e/pillow-11.2.1-pp311-pypy311_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:9db98ab6565c69082ec9b0d4e40dd9f6181dab0dd236d26f7a50b8b9bfbd5076", size = 3460013 }, - { url = "https://files.pythonhosted.org/packages/f6/20/5c0a0aa83b213b7a07ec01e71a3d6ea2cf4ad1d2c686cc0168173b6089e7/pillow-11.2.1-pp311-pypy311_pp73-manylinux_2_28_aarch64.whl", hash = "sha256:036e53f4170e270ddb8797d4c590e6dd14d28e15c7da375c18978045f7e6c37b", size = 3527165 }, - { url = "https://files.pythonhosted.org/packages/58/0e/2abab98a72202d91146abc839e10c14f7cf36166f12838ea0c4db3ca6ecb/pillow-11.2.1-pp311-pypy311_pp73-manylinux_2_28_x86_64.whl", hash = "sha256:14f73f7c291279bd65fda51ee87affd7c1e097709f7fdd0188957a16c264601f", size = 3571586 }, - { url = "https://files.pythonhosted.org/packages/21/2c/5e05f58658cf49b6667762cca03d6e7d85cededde2caf2ab37b81f80e574/pillow-11.2.1-pp311-pypy311_pp73-win_amd64.whl", hash = "sha256:208653868d5c9ecc2b327f9b9ef34e0e42a4cdd172c2988fd81d62d2bc9bc044", size = 2674751 }, +version = "12.0.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/5a/b0/cace85a1b0c9775a9f8f5d5423c8261c858760e2466c79b2dd184638b056/pillow-12.0.0.tar.gz", hash = "sha256:87d4f8125c9988bfbed67af47dd7a953e2fc7b0cc1e7800ec6d2080d490bb353", size = 47008828, upload-time = "2025-10-15T18:24:14.008Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/0e/5a/a2f6773b64edb921a756eb0729068acad9fc5208a53f4a349396e9436721/pillow-12.0.0-cp311-cp311-macosx_10_10_x86_64.whl", hash = "sha256:0fd00cac9c03256c8b2ff58f162ebcd2587ad3e1f2e397eab718c47e24d231cc", size = 5289798, upload-time = "2025-10-15T18:21:47.763Z" }, + { url = "https://files.pythonhosted.org/packages/2e/05/069b1f8a2e4b5a37493da6c5868531c3f77b85e716ad7a590ef87d58730d/pillow-12.0.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:a3475b96f5908b3b16c47533daaa87380c491357d197564e0ba34ae75c0f3257", size = 4650589, upload-time = "2025-10-15T18:21:49.515Z" }, + { url = "https://files.pythonhosted.org/packages/61/e3/2c820d6e9a36432503ead175ae294f96861b07600a7156154a086ba7111a/pillow-12.0.0-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:110486b79f2d112cf6add83b28b627e369219388f64ef2f960fef9ebaf54c642", size = 6230472, upload-time = "2025-10-15T18:21:51.052Z" }, + { url = "https://files.pythonhosted.org/packages/4f/89/63427f51c64209c5e23d4d52071c8d0f21024d3a8a487737caaf614a5795/pillow-12.0.0-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:5269cc1caeedb67e6f7269a42014f381f45e2e7cd42d834ede3c703a1d915fe3", size = 8033887, upload-time = "2025-10-15T18:21:52.604Z" }, + { url = "https://files.pythonhosted.org/packages/f6/1b/c9711318d4901093c15840f268ad649459cd81984c9ec9887756cca049a5/pillow-12.0.0-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:aa5129de4e174daccbc59d0a3b6d20eaf24417d59851c07ebb37aeb02947987c", size = 6343964, upload-time = "2025-10-15T18:21:54.619Z" }, + { url = "https://files.pythonhosted.org/packages/41/1e/db9470f2d030b4995083044cd8738cdd1bf773106819f6d8ba12597d5352/pillow-12.0.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:bee2a6db3a7242ea309aa7ee8e2780726fed67ff4e5b40169f2c940e7eb09227", size = 7034756, upload-time = "2025-10-15T18:21:56.151Z" }, + { url = "https://files.pythonhosted.org/packages/cc/b0/6177a8bdd5ee4ed87cba2de5a3cc1db55ffbbec6176784ce5bb75aa96798/pillow-12.0.0-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:90387104ee8400a7b4598253b4c406f8958f59fcf983a6cea2b50d59f7d63d0b", size = 6458075, upload-time = "2025-10-15T18:21:57.759Z" }, + { url = "https://files.pythonhosted.org/packages/bc/5e/61537aa6fa977922c6a03253a0e727e6e4a72381a80d63ad8eec350684f2/pillow-12.0.0-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:bc91a56697869546d1b8f0a3ff35224557ae7f881050e99f615e0119bf934b4e", size = 7125955, upload-time = "2025-10-15T18:21:59.372Z" }, + { url = "https://files.pythonhosted.org/packages/1f/3d/d5033539344ee3cbd9a4d69e12e63ca3a44a739eb2d4c8da350a3d38edd7/pillow-12.0.0-cp311-cp311-win32.whl", hash = "sha256:27f95b12453d165099c84f8a8bfdfd46b9e4bda9e0e4b65f0635430027f55739", size = 6298440, upload-time = "2025-10-15T18:22:00.982Z" }, + { url = "https://files.pythonhosted.org/packages/4d/42/aaca386de5cc8bd8a0254516957c1f265e3521c91515b16e286c662854c4/pillow-12.0.0-cp311-cp311-win_amd64.whl", hash = "sha256:b583dc9070312190192631373c6c8ed277254aa6e6084b74bdd0a6d3b221608e", size = 6999256, upload-time = "2025-10-15T18:22:02.617Z" }, + { url = "https://files.pythonhosted.org/packages/ba/f1/9197c9c2d5708b785f631a6dfbfa8eb3fb9672837cb92ae9af812c13b4ed/pillow-12.0.0-cp311-cp311-win_arm64.whl", hash = "sha256:759de84a33be3b178a64c8ba28ad5c135900359e85fb662bc6e403ad4407791d", size = 2436025, upload-time = "2025-10-15T18:22:04.598Z" }, + { url = "https://files.pythonhosted.org/packages/2c/90/4fcce2c22caf044e660a198d740e7fbc14395619e3cb1abad12192c0826c/pillow-12.0.0-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:53561a4ddc36facb432fae7a9d8afbfaf94795414f5cdc5fc52f28c1dca90371", size = 5249377, upload-time = "2025-10-15T18:22:05.993Z" }, + { url = "https://files.pythonhosted.org/packages/fd/e0/ed960067543d080691d47d6938ebccbf3976a931c9567ab2fbfab983a5dd/pillow-12.0.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:71db6b4c1653045dacc1585c1b0d184004f0d7e694c7b34ac165ca70c0838082", size = 4650343, upload-time = "2025-10-15T18:22:07.718Z" }, + { url = "https://files.pythonhosted.org/packages/e7/a1/f81fdeddcb99c044bf7d6faa47e12850f13cee0849537a7d27eeab5534d4/pillow-12.0.0-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:2fa5f0b6716fc88f11380b88b31fe591a06c6315e955c096c35715788b339e3f", size = 6232981, upload-time = "2025-10-15T18:22:09.287Z" }, + { url = "https://files.pythonhosted.org/packages/88/e1/9098d3ce341a8750b55b0e00c03f1630d6178f38ac191c81c97a3b047b44/pillow-12.0.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:82240051c6ca513c616f7f9da06e871f61bfd7805f566275841af15015b8f98d", size = 8041399, upload-time = "2025-10-15T18:22:10.872Z" }, + { url = "https://files.pythonhosted.org/packages/a7/62/a22e8d3b602ae8cc01446d0c57a54e982737f44b6f2e1e019a925143771d/pillow-12.0.0-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:55f818bd74fe2f11d4d7cbc65880a843c4075e0ac7226bc1a23261dbea531953", size = 6347740, upload-time = "2025-10-15T18:22:12.769Z" }, + { url = "https://files.pythonhosted.org/packages/4f/87/424511bdcd02c8d7acf9f65caa09f291a519b16bd83c3fb3374b3d4ae951/pillow-12.0.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:b87843e225e74576437fd5b6a4c2205d422754f84a06942cfaf1dc32243e45a8", size = 7040201, upload-time = "2025-10-15T18:22:14.813Z" }, + { url = "https://files.pythonhosted.org/packages/dc/4d/435c8ac688c54d11755aedfdd9f29c9eeddf68d150fe42d1d3dbd2365149/pillow-12.0.0-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:c607c90ba67533e1b2355b821fef6764d1dd2cbe26b8c1005ae84f7aea25ff79", size = 6462334, upload-time = "2025-10-15T18:22:16.375Z" }, + { url = "https://files.pythonhosted.org/packages/2b/f2/ad34167a8059a59b8ad10bc5c72d4d9b35acc6b7c0877af8ac885b5f2044/pillow-12.0.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:21f241bdd5080a15bc86d3466a9f6074a9c2c2b314100dd896ac81ee6db2f1ba", size = 7134162, upload-time = "2025-10-15T18:22:17.996Z" }, + { url = "https://files.pythonhosted.org/packages/0c/b1/a7391df6adacf0a5c2cf6ac1cf1fcc1369e7d439d28f637a847f8803beb3/pillow-12.0.0-cp312-cp312-win32.whl", hash = "sha256:dd333073e0cacdc3089525c7df7d39b211bcdf31fc2824e49d01c6b6187b07d0", size = 6298769, upload-time = "2025-10-15T18:22:19.923Z" }, + { url = "https://files.pythonhosted.org/packages/a2/0b/d87733741526541c909bbf159e338dcace4f982daac6e5a8d6be225ca32d/pillow-12.0.0-cp312-cp312-win_amd64.whl", hash = "sha256:9fe611163f6303d1619bbcb653540a4d60f9e55e622d60a3108be0d5b441017a", size = 7001107, upload-time = "2025-10-15T18:22:21.644Z" }, + { url = "https://files.pythonhosted.org/packages/bc/96/aaa61ce33cc98421fb6088af2a03be4157b1e7e0e87087c888e2370a7f45/pillow-12.0.0-cp312-cp312-win_arm64.whl", hash = "sha256:7dfb439562f234f7d57b1ac6bc8fe7f838a4bd49c79230e0f6a1da93e82f1fad", size = 2436012, upload-time = "2025-10-15T18:22:23.621Z" }, + { url = "https://files.pythonhosted.org/packages/62/f2/de993bb2d21b33a98d031ecf6a978e4b61da207bef02f7b43093774c480d/pillow-12.0.0-cp313-cp313-ios_13_0_arm64_iphoneos.whl", hash = "sha256:0869154a2d0546545cde61d1789a6524319fc1897d9ee31218eae7a60ccc5643", size = 4045493, upload-time = "2025-10-15T18:22:25.758Z" }, + { url = "https://files.pythonhosted.org/packages/0e/b6/bc8d0c4c9f6f111a783d045310945deb769b806d7574764234ffd50bc5ea/pillow-12.0.0-cp313-cp313-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:a7921c5a6d31b3d756ec980f2f47c0cfdbce0fc48c22a39347a895f41f4a6ea4", size = 4120461, upload-time = "2025-10-15T18:22:27.286Z" }, + { url = "https://files.pythonhosted.org/packages/5d/57/d60d343709366a353dc56adb4ee1e7d8a2cc34e3fbc22905f4167cfec119/pillow-12.0.0-cp313-cp313-ios_13_0_x86_64_iphonesimulator.whl", hash = "sha256:1ee80a59f6ce048ae13cda1abf7fbd2a34ab9ee7d401c46be3ca685d1999a399", size = 3576912, upload-time = "2025-10-15T18:22:28.751Z" }, + { url = "https://files.pythonhosted.org/packages/a4/a4/a0a31467e3f83b94d37568294b01d22b43ae3c5d85f2811769b9c66389dd/pillow-12.0.0-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:c50f36a62a22d350c96e49ad02d0da41dbd17ddc2e29750dbdba4323f85eb4a5", size = 5249132, upload-time = "2025-10-15T18:22:30.641Z" }, + { url = "https://files.pythonhosted.org/packages/83/06/48eab21dd561de2914242711434c0c0eb992ed08ff3f6107a5f44527f5e9/pillow-12.0.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:5193fde9a5f23c331ea26d0cf171fbf67e3f247585f50c08b3e205c7aeb4589b", size = 4650099, upload-time = "2025-10-15T18:22:32.73Z" }, + { url = "https://files.pythonhosted.org/packages/fc/bd/69ed99fd46a8dba7c1887156d3572fe4484e3f031405fcc5a92e31c04035/pillow-12.0.0-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:bde737cff1a975b70652b62d626f7785e0480918dece11e8fef3c0cf057351c3", size = 6230808, upload-time = "2025-10-15T18:22:34.337Z" }, + { url = "https://files.pythonhosted.org/packages/ea/94/8fad659bcdbf86ed70099cb60ae40be6acca434bbc8c4c0d4ef356d7e0de/pillow-12.0.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:a6597ff2b61d121172f5844b53f21467f7082f5fb385a9a29c01414463f93b07", size = 8037804, upload-time = "2025-10-15T18:22:36.402Z" }, + { url = "https://files.pythonhosted.org/packages/20/39/c685d05c06deecfd4e2d1950e9a908aa2ca8bc4e6c3b12d93b9cafbd7837/pillow-12.0.0-cp313-cp313-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:0b817e7035ea7f6b942c13aa03bb554fc44fea70838ea21f8eb31c638326584e", size = 6345553, upload-time = "2025-10-15T18:22:38.066Z" }, + { url = "https://files.pythonhosted.org/packages/38/57/755dbd06530a27a5ed74f8cb0a7a44a21722ebf318edbe67ddbd7fb28f88/pillow-12.0.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:f4f1231b7dec408e8670264ce63e9c71409d9583dd21d32c163e25213ee2a344", size = 7037729, upload-time = "2025-10-15T18:22:39.769Z" }, + { url = "https://files.pythonhosted.org/packages/ca/b6/7e94f4c41d238615674d06ed677c14883103dce1c52e4af16f000338cfd7/pillow-12.0.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:6e51b71417049ad6ab14c49608b4a24d8fb3fe605e5dfabfe523b58064dc3d27", size = 6459789, upload-time = "2025-10-15T18:22:41.437Z" }, + { url = "https://files.pythonhosted.org/packages/9c/14/4448bb0b5e0f22dd865290536d20ec8a23b64e2d04280b89139f09a36bb6/pillow-12.0.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:d120c38a42c234dc9a8c5de7ceaaf899cf33561956acb4941653f8bdc657aa79", size = 7130917, upload-time = "2025-10-15T18:22:43.152Z" }, + { url = "https://files.pythonhosted.org/packages/dd/ca/16c6926cc1c015845745d5c16c9358e24282f1e588237a4c36d2b30f182f/pillow-12.0.0-cp313-cp313-win32.whl", hash = "sha256:4cc6b3b2efff105c6a1656cfe59da4fdde2cda9af1c5e0b58529b24525d0a098", size = 6302391, upload-time = "2025-10-15T18:22:44.753Z" }, + { url = "https://files.pythonhosted.org/packages/6d/2a/dd43dcfd6dae9b6a49ee28a8eedb98c7d5ff2de94a5d834565164667b97b/pillow-12.0.0-cp313-cp313-win_amd64.whl", hash = "sha256:4cf7fed4b4580601c4345ceb5d4cbf5a980d030fd5ad07c4d2ec589f95f09905", size = 7007477, upload-time = "2025-10-15T18:22:46.838Z" }, + { url = "https://files.pythonhosted.org/packages/77/f0/72ea067f4b5ae5ead653053212af05ce3705807906ba3f3e8f58ddf617e6/pillow-12.0.0-cp313-cp313-win_arm64.whl", hash = "sha256:9f0b04c6b8584c2c193babcccc908b38ed29524b29dd464bc8801bf10d746a3a", size = 2435918, upload-time = "2025-10-15T18:22:48.399Z" }, + { url = "https://files.pythonhosted.org/packages/f5/5e/9046b423735c21f0487ea6cb5b10f89ea8f8dfbe32576fe052b5ba9d4e5b/pillow-12.0.0-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:7fa22993bac7b77b78cae22bad1e2a987ddf0d9015c63358032f84a53f23cdc3", size = 5251406, upload-time = "2025-10-15T18:22:49.905Z" }, + { url = "https://files.pythonhosted.org/packages/12/66/982ceebcdb13c97270ef7a56c3969635b4ee7cd45227fa707c94719229c5/pillow-12.0.0-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:f135c702ac42262573fe9714dfe99c944b4ba307af5eb507abef1667e2cbbced", size = 4653218, upload-time = "2025-10-15T18:22:51.587Z" }, + { url = "https://files.pythonhosted.org/packages/16/b3/81e625524688c31859450119bf12674619429cab3119eec0e30a7a1029cb/pillow-12.0.0-cp313-cp313t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:c85de1136429c524e55cfa4e033b4a7940ac5c8ee4d9401cc2d1bf48154bbc7b", size = 6266564, upload-time = "2025-10-15T18:22:53.215Z" }, + { url = "https://files.pythonhosted.org/packages/98/59/dfb38f2a41240d2408096e1a76c671d0a105a4a8471b1871c6902719450c/pillow-12.0.0-cp313-cp313t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:38df9b4bfd3db902c9c2bd369bcacaf9d935b2fff73709429d95cc41554f7b3d", size = 8069260, upload-time = "2025-10-15T18:22:54.933Z" }, + { url = "https://files.pythonhosted.org/packages/dc/3d/378dbea5cd1874b94c312425ca77b0f47776c78e0df2df751b820c8c1d6c/pillow-12.0.0-cp313-cp313t-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:7d87ef5795da03d742bf49439f9ca4d027cde49c82c5371ba52464aee266699a", size = 6379248, upload-time = "2025-10-15T18:22:56.605Z" }, + { url = "https://files.pythonhosted.org/packages/84/b0/d525ef47d71590f1621510327acec75ae58c721dc071b17d8d652ca494d8/pillow-12.0.0-cp313-cp313t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:aff9e4d82d082ff9513bdd6acd4f5bd359f5b2c870907d2b0a9c5e10d40c88fe", size = 7066043, upload-time = "2025-10-15T18:22:58.53Z" }, + { url = "https://files.pythonhosted.org/packages/61/2c/aced60e9cf9d0cde341d54bf7932c9ffc33ddb4a1595798b3a5150c7ec4e/pillow-12.0.0-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:8d8ca2b210ada074d57fcee40c30446c9562e542fc46aedc19baf758a93532ee", size = 6490915, upload-time = "2025-10-15T18:23:00.582Z" }, + { url = "https://files.pythonhosted.org/packages/ef/26/69dcb9b91f4e59f8f34b2332a4a0a951b44f547c4ed39d3e4dcfcff48f89/pillow-12.0.0-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:99a7f72fb6249302aa62245680754862a44179b545ded638cf1fef59befb57ef", size = 7157998, upload-time = "2025-10-15T18:23:02.627Z" }, + { url = "https://files.pythonhosted.org/packages/61/2b/726235842220ca95fa441ddf55dd2382b52ab5b8d9c0596fe6b3f23dafe8/pillow-12.0.0-cp313-cp313t-win32.whl", hash = "sha256:4078242472387600b2ce8d93ade8899c12bf33fa89e55ec89fe126e9d6d5d9e9", size = 6306201, upload-time = "2025-10-15T18:23:04.709Z" }, + { url = "https://files.pythonhosted.org/packages/c0/3d/2afaf4e840b2df71344ababf2f8edd75a705ce500e5dc1e7227808312ae1/pillow-12.0.0-cp313-cp313t-win_amd64.whl", hash = "sha256:2c54c1a783d6d60595d3514f0efe9b37c8808746a66920315bfd34a938d7994b", size = 7013165, upload-time = "2025-10-15T18:23:06.46Z" }, + { url = "https://files.pythonhosted.org/packages/6f/75/3fa09aa5cf6ed04bee3fa575798ddf1ce0bace8edb47249c798077a81f7f/pillow-12.0.0-cp313-cp313t-win_arm64.whl", hash = "sha256:26d9f7d2b604cd23aba3e9faf795787456ac25634d82cd060556998e39c6fa47", size = 2437834, upload-time = "2025-10-15T18:23:08.194Z" }, + { url = "https://files.pythonhosted.org/packages/54/2a/9a8c6ba2c2c07b71bec92cf63e03370ca5e5f5c5b119b742bcc0cde3f9c5/pillow-12.0.0-cp314-cp314-ios_13_0_arm64_iphoneos.whl", hash = "sha256:beeae3f27f62308f1ddbcfb0690bf44b10732f2ef43758f169d5e9303165d3f9", size = 4045531, upload-time = "2025-10-15T18:23:10.121Z" }, + { url = "https://files.pythonhosted.org/packages/84/54/836fdbf1bfb3d66a59f0189ff0b9f5f666cee09c6188309300df04ad71fa/pillow-12.0.0-cp314-cp314-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:d4827615da15cd59784ce39d3388275ec093ae3ee8d7f0c089b76fa87af756c2", size = 4120554, upload-time = "2025-10-15T18:23:12.14Z" }, + { url = "https://files.pythonhosted.org/packages/0d/cd/16aec9f0da4793e98e6b54778a5fbce4f375c6646fe662e80600b8797379/pillow-12.0.0-cp314-cp314-ios_13_0_x86_64_iphonesimulator.whl", hash = "sha256:3e42edad50b6909089750e65c91aa09aaf1e0a71310d383f11321b27c224ed8a", size = 3576812, upload-time = "2025-10-15T18:23:13.962Z" }, + { url = "https://files.pythonhosted.org/packages/f6/b7/13957fda356dc46339298b351cae0d327704986337c3c69bb54628c88155/pillow-12.0.0-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:e5d8efac84c9afcb40914ab49ba063d94f5dbdf5066db4482c66a992f47a3a3b", size = 5252689, upload-time = "2025-10-15T18:23:15.562Z" }, + { url = "https://files.pythonhosted.org/packages/fc/f5/eae31a306341d8f331f43edb2e9122c7661b975433de5e447939ae61c5da/pillow-12.0.0-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:266cd5f2b63ff316d5a1bba46268e603c9caf5606d44f38c2873c380950576ad", size = 4650186, upload-time = "2025-10-15T18:23:17.379Z" }, + { url = "https://files.pythonhosted.org/packages/86/62/2a88339aa40c4c77e79108facbd307d6091e2c0eb5b8d3cf4977cfca2fe6/pillow-12.0.0-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:58eea5ebe51504057dd95c5b77d21700b77615ab0243d8152793dc00eb4faf01", size = 6230308, upload-time = "2025-10-15T18:23:18.971Z" }, + { url = "https://files.pythonhosted.org/packages/c7/33/5425a8992bcb32d1cb9fa3dd39a89e613d09a22f2c8083b7bf43c455f760/pillow-12.0.0-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:f13711b1a5ba512d647a0e4ba79280d3a9a045aaf7e0cc6fbe96b91d4cdf6b0c", size = 8039222, upload-time = "2025-10-15T18:23:20.909Z" }, + { url = "https://files.pythonhosted.org/packages/d8/61/3f5d3b35c5728f37953d3eec5b5f3e77111949523bd2dd7f31a851e50690/pillow-12.0.0-cp314-cp314-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:6846bd2d116ff42cba6b646edf5bf61d37e5cbd256425fa089fee4ff5c07a99e", size = 6346657, upload-time = "2025-10-15T18:23:23.077Z" }, + { url = "https://files.pythonhosted.org/packages/3a/be/ee90a3d79271227e0f0a33c453531efd6ed14b2e708596ba5dd9be948da3/pillow-12.0.0-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:c98fa880d695de164b4135a52fd2e9cd7b7c90a9d8ac5e9e443a24a95ef9248e", size = 7038482, upload-time = "2025-10-15T18:23:25.005Z" }, + { url = "https://files.pythonhosted.org/packages/44/34/a16b6a4d1ad727de390e9bd9f19f5f669e079e5826ec0f329010ddea492f/pillow-12.0.0-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:fa3ed2a29a9e9d2d488b4da81dcb54720ac3104a20bf0bd273f1e4648aff5af9", size = 6461416, upload-time = "2025-10-15T18:23:27.009Z" }, + { url = "https://files.pythonhosted.org/packages/b6/39/1aa5850d2ade7d7ba9f54e4e4c17077244ff7a2d9e25998c38a29749eb3f/pillow-12.0.0-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:d034140032870024e6b9892c692fe2968493790dd57208b2c37e3fb35f6df3ab", size = 7131584, upload-time = "2025-10-15T18:23:29.752Z" }, + { url = "https://files.pythonhosted.org/packages/bf/db/4fae862f8fad0167073a7733973bfa955f47e2cac3dc3e3e6257d10fab4a/pillow-12.0.0-cp314-cp314-win32.whl", hash = "sha256:1b1b133e6e16105f524a8dec491e0586d072948ce15c9b914e41cdadd209052b", size = 6400621, upload-time = "2025-10-15T18:23:32.06Z" }, + { url = "https://files.pythonhosted.org/packages/2b/24/b350c31543fb0107ab2599464d7e28e6f856027aadda995022e695313d94/pillow-12.0.0-cp314-cp314-win_amd64.whl", hash = "sha256:8dc232e39d409036af549c86f24aed8273a40ffa459981146829a324e0848b4b", size = 7142916, upload-time = "2025-10-15T18:23:34.71Z" }, + { url = "https://files.pythonhosted.org/packages/0f/9b/0ba5a6fd9351793996ef7487c4fdbde8d3f5f75dbedc093bb598648fddf0/pillow-12.0.0-cp314-cp314-win_arm64.whl", hash = "sha256:d52610d51e265a51518692045e372a4c363056130d922a7351429ac9f27e70b0", size = 2523836, upload-time = "2025-10-15T18:23:36.967Z" }, + { url = "https://files.pythonhosted.org/packages/f5/7a/ceee0840aebc579af529b523d530840338ecf63992395842e54edc805987/pillow-12.0.0-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:1979f4566bb96c1e50a62d9831e2ea2d1211761e5662afc545fa766f996632f6", size = 5255092, upload-time = "2025-10-15T18:23:38.573Z" }, + { url = "https://files.pythonhosted.org/packages/44/76/20776057b4bfd1aef4eeca992ebde0f53a4dce874f3ae693d0ec90a4f79b/pillow-12.0.0-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:b2e4b27a6e15b04832fe9bf292b94b5ca156016bbc1ea9c2c20098a0320d6cf6", size = 4653158, upload-time = "2025-10-15T18:23:40.238Z" }, + { url = "https://files.pythonhosted.org/packages/82/3f/d9ff92ace07be8836b4e7e87e6a4c7a8318d47c2f1463ffcf121fc57d9cb/pillow-12.0.0-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:fb3096c30df99fd01c7bf8e544f392103d0795b9f98ba71a8054bcbf56b255f1", size = 6267882, upload-time = "2025-10-15T18:23:42.434Z" }, + { url = "https://files.pythonhosted.org/packages/9f/7a/4f7ff87f00d3ad33ba21af78bfcd2f032107710baf8280e3722ceec28cda/pillow-12.0.0-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:7438839e9e053ef79f7112c881cef684013855016f928b168b81ed5835f3e75e", size = 8071001, upload-time = "2025-10-15T18:23:44.29Z" }, + { url = "https://files.pythonhosted.org/packages/75/87/fcea108944a52dad8cca0715ae6247e271eb80459364a98518f1e4f480c1/pillow-12.0.0-cp314-cp314t-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:5d5c411a8eaa2299322b647cd932586b1427367fd3184ffbb8f7a219ea2041ca", size = 6380146, upload-time = "2025-10-15T18:23:46.065Z" }, + { url = "https://files.pythonhosted.org/packages/91/52/0d31b5e571ef5fd111d2978b84603fce26aba1b6092f28e941cb46570745/pillow-12.0.0-cp314-cp314t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:d7e091d464ac59d2c7ad8e7e08105eaf9dafbc3883fd7265ffccc2baad6ac925", size = 7067344, upload-time = "2025-10-15T18:23:47.898Z" }, + { url = "https://files.pythonhosted.org/packages/7b/f4/2dd3d721f875f928d48e83bb30a434dee75a2531bca839bb996bb0aa5a91/pillow-12.0.0-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:792a2c0be4dcc18af9d4a2dfd8a11a17d5e25274a1062b0ec1c2d79c76f3e7f8", size = 6491864, upload-time = "2025-10-15T18:23:49.607Z" }, + { url = "https://files.pythonhosted.org/packages/30/4b/667dfcf3d61fc309ba5a15b141845cece5915e39b99c1ceab0f34bf1d124/pillow-12.0.0-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:afbefa430092f71a9593a99ab6a4e7538bc9eabbf7bf94f91510d3503943edc4", size = 7158911, upload-time = "2025-10-15T18:23:51.351Z" }, + { url = "https://files.pythonhosted.org/packages/a2/2f/16cabcc6426c32218ace36bf0d55955e813f2958afddbf1d391849fee9d1/pillow-12.0.0-cp314-cp314t-win32.whl", hash = "sha256:3830c769decf88f1289680a59d4f4c46c72573446352e2befec9a8512104fa52", size = 6408045, upload-time = "2025-10-15T18:23:53.177Z" }, + { url = "https://files.pythonhosted.org/packages/35/73/e29aa0c9c666cf787628d3f0dcf379f4791fba79f4936d02f8b37165bdf8/pillow-12.0.0-cp314-cp314t-win_amd64.whl", hash = "sha256:905b0365b210c73afb0ebe9101a32572152dfd1c144c7e28968a331b9217b94a", size = 7148282, upload-time = "2025-10-15T18:23:55.316Z" }, + { url = "https://files.pythonhosted.org/packages/c1/70/6b41bdcddf541b437bbb9f47f94d2db5d9ddef6c37ccab8c9107743748a4/pillow-12.0.0-cp314-cp314t-win_arm64.whl", hash = "sha256:99353a06902c2e43b43e8ff74ee65a7d90307d82370604746738a1e0661ccca7", size = 2525630, upload-time = "2025-10-15T18:23:57.149Z" }, + { url = "https://files.pythonhosted.org/packages/1d/b3/582327e6c9f86d037b63beebe981425d6811104cb443e8193824ef1a2f27/pillow-12.0.0-pp311-pypy311_pp73-macosx_10_15_x86_64.whl", hash = "sha256:b22bd8c974942477156be55a768f7aa37c46904c175be4e158b6a86e3a6b7ca8", size = 5215068, upload-time = "2025-10-15T18:23:59.594Z" }, + { url = "https://files.pythonhosted.org/packages/fd/d6/67748211d119f3b6540baf90f92fae73ae51d5217b171b0e8b5f7e5d558f/pillow-12.0.0-pp311-pypy311_pp73-macosx_11_0_arm64.whl", hash = "sha256:805ebf596939e48dbb2e4922a1d3852cfc25c38160751ce02da93058b48d252a", size = 4614994, upload-time = "2025-10-15T18:24:01.669Z" }, + { url = "https://files.pythonhosted.org/packages/2d/e1/f8281e5d844c41872b273b9f2c34a4bf64ca08905668c8ae730eedc7c9fa/pillow-12.0.0-pp311-pypy311_pp73-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:cae81479f77420d217def5f54b5b9d279804d17e982e0f2fa19b1d1e14ab5197", size = 5246639, upload-time = "2025-10-15T18:24:03.403Z" }, + { url = "https://files.pythonhosted.org/packages/94/5a/0d8ab8ffe8a102ff5df60d0de5af309015163bf710c7bb3e8311dd3b3ad0/pillow-12.0.0-pp311-pypy311_pp73-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:aeaefa96c768fc66818730b952a862235d68825c178f1b3ffd4efd7ad2edcb7c", size = 6986839, upload-time = "2025-10-15T18:24:05.344Z" }, + { url = "https://files.pythonhosted.org/packages/20/2e/3434380e8110b76cd9eb00a363c484b050f949b4bbe84ba770bb8508a02c/pillow-12.0.0-pp311-pypy311_pp73-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:09f2d0abef9e4e2f349305a4f8cc784a8a6c2f58a8c4892eea13b10a943bd26e", size = 5313505, upload-time = "2025-10-15T18:24:07.137Z" }, + { url = "https://files.pythonhosted.org/packages/57/ca/5a9d38900d9d74785141d6580950fe705de68af735ff6e727cb911b64740/pillow-12.0.0-pp311-pypy311_pp73-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:bdee52571a343d721fb2eb3b090a82d959ff37fc631e3f70422e0c2e029f3e76", size = 5963654, upload-time = "2025-10-15T18:24:09.579Z" }, + { url = "https://files.pythonhosted.org/packages/95/7e/f896623c3c635a90537ac093c6a618ebe1a90d87206e42309cb5d98a1b9e/pillow-12.0.0-pp311-pypy311_pp73-win_amd64.whl", hash = "sha256:b290fd8aa38422444d4b50d579de197557f182ef1068b75f5aa8558638b8d0a5", size = 6997850, upload-time = "2025-10-15T18:24:11.495Z" }, ] [[package]] name = "pip" -version = "25.0.1" +version = "25.3" source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/70/53/b309b4a497b09655cb7e07088966881a57d082f48ac3cb54ea729fd2c6cf/pip-25.0.1.tar.gz", hash = "sha256:88f96547ea48b940a3a385494e181e29fb8637898f88d88737c5049780f196ea", size = 1950850 } +sdist = { url = "https://files.pythonhosted.org/packages/fe/6e/74a3f0179a4a73a53d66ce57fdb4de0080a8baa1de0063de206d6167acc2/pip-25.3.tar.gz", hash = "sha256:8d0538dbbd7babbd207f261ed969c65de439f6bc9e5dbd3b3b9a77f25d95f343", size = 1803014, upload-time = "2025-10-25T00:55:41.394Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/c9/bc/b7db44f5f39f9d0494071bddae6880eb645970366d0a200022a1a93d57f5/pip-25.0.1-py3-none-any.whl", hash = "sha256:c46efd13b6aa8279f33f2864459c8ce587ea6a1a59ee20de055868d8f7688f7f", size = 1841526 }, + { url = "https://files.pythonhosted.org/packages/44/3c/d717024885424591d5376220b5e836c2d5293ce2011523c9de23ff7bf068/pip-25.3-py3-none-any.whl", hash = "sha256:9655943313a94722b7774661c21049070f6bbb0a1516bf02f7c8d5d9201514cd", size = 1778622, upload-time = "2025-10-25T00:55:39.247Z" }, ] [[package]] name = "platformdirs" -version = "4.3.7" +version = "4.5.0" source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/b6/2d/7d512a3913d60623e7eb945c6d1b4f0bddf1d0b7ada5225274c87e5b53d1/platformdirs-4.3.7.tar.gz", hash = "sha256:eb437d586b6a0986388f0d6f74aa0cde27b48d0e3d66843640bfb6bdcdb6e351", size = 21291 } +sdist = { url = "https://files.pythonhosted.org/packages/61/33/9611380c2bdb1225fdef633e2a9610622310fed35ab11dac9620972ee088/platformdirs-4.5.0.tar.gz", hash = "sha256:70ddccdd7c99fc5942e9fc25636a8b34d04c24b335100223152c2803e4063312", size = 21632, upload-time = "2025-10-08T17:44:48.791Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/6d/45/59578566b3275b8fd9157885918fcd0c4d74162928a5310926887b856a51/platformdirs-4.3.7-py3-none-any.whl", hash = "sha256:a03875334331946f13c549dbd8f4bac7a13a50a895a0eb1e8c6a8ace80d40a94", size = 18499 }, + { url = "https://files.pythonhosted.org/packages/73/cb/ac7874b3e5d58441674fb70742e6c374b28b0c7cb988d37d991cde47166c/platformdirs-4.5.0-py3-none-any.whl", hash = "sha256:e578a81bb873cbb89a41fcc904c7ef523cc18284b7e3b3ccf06aca1403b7ebd3", size = 18651, upload-time = "2025-10-08T17:44:47.223Z" }, ] [[package]] name = "plotly" -version = "6.0.1" +version = "6.3.1" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "narwhals" }, { name = "packaging" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/c7/cc/e41b5f697ae403f0b50e47b7af2e36642a193085f553bf7cc1169362873a/plotly-6.0.1.tar.gz", hash = "sha256:dd8400229872b6e3c964b099be699f8d00c489a974f2cfccfad5e8240873366b", size = 8094643 } +sdist = { url = "https://files.pythonhosted.org/packages/0c/63/961d47c9ffd592a575495891cdcf7875dc0903ebb33ac238935714213789/plotly-6.3.1.tar.gz", hash = "sha256:dd896e3d940e653a7ce0470087e82c2bd903969a55e30d1b01bb389319461bb0", size = 6956460, upload-time = "2025-10-02T16:10:34.16Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/02/65/ad2bc85f7377f5cfba5d4466d5474423a3fb7f6a97fd807c06f92dd3e721/plotly-6.0.1-py3-none-any.whl", hash = "sha256:4714db20fea57a435692c548a4eb4fae454f7daddf15f8d8ba7e1045681d7768", size = 14805757 }, + { url = "https://files.pythonhosted.org/packages/3f/93/023955c26b0ce614342d11cc0652f1e45e32393b6ab9d11a664a60e9b7b7/plotly-6.3.1-py3-none-any.whl", hash = "sha256:8b4420d1dcf2b040f5983eed433f95732ed24930e496d36eb70d211923532e64", size = 9833698, upload-time = "2025-10-02T16:10:22.584Z" }, ] [[package]] name = "pluggy" -version = "1.5.0" +version = "1.6.0" source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/96/2d/02d4312c973c6050a18b314a5ad0b3210edb65a906f868e31c111dede4a6/pluggy-1.5.0.tar.gz", hash = "sha256:2cffa88e94fdc978c4c574f15f9e59b7f4201d439195c3715ca9e2486f1d0cf1", size = 67955 } +sdist = { url = "https://files.pythonhosted.org/packages/f9/e2/3e91f31a7d2b083fe6ef3fa267035b518369d9511ffab804f839851d2779/pluggy-1.6.0.tar.gz", hash = "sha256:7dcc130b76258d33b90f61b658791dede3486c3e6bfb003ee5c9bfb396dd22f3", size = 69412, upload-time = "2025-05-15T12:30:07.975Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/88/5f/e351af9a41f866ac3f1fac4ca0613908d9a41741cfcf2228f4ad853b697d/pluggy-1.5.0-py3-none-any.whl", hash = "sha256:44e1ad92c8ca002de6377e165f3e0f1be63266ab4d554740532335b9d75ea669", size = 20556 }, + { url = "https://files.pythonhosted.org/packages/54/20/4d324d65cc6d9205fabedc306948156824eb9f0ee1633355a8f7ec5c66bf/pluggy-1.6.0-py3-none-any.whl", hash = "sha256:e920276dd6813095e9377c0bc5566d94c932c33b27a3e3945d8389c374dd4746", size = 20538, upload-time = "2025-05-15T12:30:06.134Z" }, ] [[package]] name = "pre-commit" -version = "4.2.0" +version = "4.3.0" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "cfgv" }, @@ -1011,121 +1238,159 @@ dependencies = [ { name = "pyyaml" }, { name = "virtualenv" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/08/39/679ca9b26c7bb2999ff122d50faa301e49af82ca9c066ec061cfbc0c6784/pre_commit-4.2.0.tar.gz", hash = "sha256:601283b9757afd87d40c4c4a9b2b5de9637a8ea02eaff7adc2d0fb4e04841146", size = 193424 } +sdist = { url = "https://files.pythonhosted.org/packages/ff/29/7cf5bbc236333876e4b41f56e06857a87937ce4bf91e117a6991a2dbb02a/pre_commit-4.3.0.tar.gz", hash = "sha256:499fe450cc9d42e9d58e606262795ecb64dd05438943c62b66f6a8673da30b16", size = 193792, upload-time = "2025-08-09T18:56:14.651Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/88/74/a88bf1b1efeae488a0c0b7bdf71429c313722d1fc0f377537fbe554e6180/pre_commit-4.2.0-py2.py3-none-any.whl", hash = "sha256:a009ca7205f1eb497d10b845e52c838a98b6cdd2102a6c8e4540e94ee75c58bd", size = 220707 }, + { url = "https://files.pythonhosted.org/packages/5b/a5/987a405322d78a73b66e39e4a90e4ef156fd7141bf71df987e50717c321b/pre_commit-4.3.0-py2.py3-none-any.whl", hash = "sha256:2b0747ad7e6e967169136edffee14c16e148a778a54e4f967921aa1ebf2308d8", size = 220965, upload-time = "2025-08-09T18:56:13.192Z" }, ] [[package]] name = "propcache" -version = "0.3.1" -source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/07/c8/fdc6686a986feae3541ea23dcaa661bd93972d3940460646c6bb96e21c40/propcache-0.3.1.tar.gz", hash = "sha256:40d980c33765359098837527e18eddefc9a24cea5b45e078a7f3bb5b032c6ecf", size = 43651 } -wheels = [ - { url = "https://files.pythonhosted.org/packages/90/0f/5a5319ee83bd651f75311fcb0c492c21322a7fc8f788e4eef23f44243427/propcache-0.3.1-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:7f30241577d2fef2602113b70ef7231bf4c69a97e04693bde08ddab913ba0ce5", size = 80243 }, - { url = "https://files.pythonhosted.org/packages/ce/84/3db5537e0879942783e2256616ff15d870a11d7ac26541336fe1b673c818/propcache-0.3.1-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:43593c6772aa12abc3af7784bff4a41ffa921608dd38b77cf1dfd7f5c4e71371", size = 46503 }, - { url = "https://files.pythonhosted.org/packages/e2/c8/b649ed972433c3f0d827d7f0cf9ea47162f4ef8f4fe98c5f3641a0bc63ff/propcache-0.3.1-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:a75801768bbe65499495660b777e018cbe90c7980f07f8aa57d6be79ea6f71da", size = 45934 }, - { url = "https://files.pythonhosted.org/packages/59/f9/4c0a5cf6974c2c43b1a6810c40d889769cc8f84cea676cbe1e62766a45f8/propcache-0.3.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:f6f1324db48f001c2ca26a25fa25af60711e09b9aaf4b28488602776f4f9a744", size = 233633 }, - { url = "https://files.pythonhosted.org/packages/e7/64/66f2f4d1b4f0007c6e9078bd95b609b633d3957fe6dd23eac33ebde4b584/propcache-0.3.1-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:5cdb0f3e1eb6dfc9965d19734d8f9c481b294b5274337a8cb5cb01b462dcb7e0", size = 241124 }, - { url = "https://files.pythonhosted.org/packages/aa/bf/7b8c9fd097d511638fa9b6af3d986adbdf567598a567b46338c925144c1b/propcache-0.3.1-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:1eb34d90aac9bfbced9a58b266f8946cb5935869ff01b164573a7634d39fbcb5", size = 240283 }, - { url = "https://files.pythonhosted.org/packages/fa/c9/e85aeeeaae83358e2a1ef32d6ff50a483a5d5248bc38510d030a6f4e2816/propcache-0.3.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:f35c7070eeec2cdaac6fd3fe245226ed2a6292d3ee8c938e5bb645b434c5f256", size = 232498 }, - { url = "https://files.pythonhosted.org/packages/8e/66/acb88e1f30ef5536d785c283af2e62931cb934a56a3ecf39105887aa8905/propcache-0.3.1-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:b23c11c2c9e6d4e7300c92e022046ad09b91fd00e36e83c44483df4afa990073", size = 221486 }, - { url = "https://files.pythonhosted.org/packages/f5/f9/233ddb05ffdcaee4448508ee1d70aa7deff21bb41469ccdfcc339f871427/propcache-0.3.1-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:3e19ea4ea0bf46179f8a3652ac1426e6dcbaf577ce4b4f65be581e237340420d", size = 222675 }, - { url = "https://files.pythonhosted.org/packages/98/b8/eb977e28138f9e22a5a789daf608d36e05ed93093ef12a12441030da800a/propcache-0.3.1-cp311-cp311-musllinux_1_2_armv7l.whl", hash = "sha256:bd39c92e4c8f6cbf5f08257d6360123af72af9f4da75a690bef50da77362d25f", size = 215727 }, - { url = "https://files.pythonhosted.org/packages/89/2d/5f52d9c579f67b8ee1edd9ec073c91b23cc5b7ff7951a1e449e04ed8fdf3/propcache-0.3.1-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:b0313e8b923b3814d1c4a524c93dfecea5f39fa95601f6a9b1ac96cd66f89ea0", size = 217878 }, - { url = "https://files.pythonhosted.org/packages/7a/fd/5283e5ed8a82b00c7a989b99bb6ea173db1ad750bf0bf8dff08d3f4a4e28/propcache-0.3.1-cp311-cp311-musllinux_1_2_ppc64le.whl", hash = "sha256:e861ad82892408487be144906a368ddbe2dc6297074ade2d892341b35c59844a", size = 230558 }, - { url = "https://files.pythonhosted.org/packages/90/38/ab17d75938ef7ac87332c588857422ae126b1c76253f0f5b1242032923ca/propcache-0.3.1-cp311-cp311-musllinux_1_2_s390x.whl", hash = "sha256:61014615c1274df8da5991a1e5da85a3ccb00c2d4701ac6f3383afd3ca47ab0a", size = 233754 }, - { url = "https://files.pythonhosted.org/packages/06/5d/3b921b9c60659ae464137508d3b4c2b3f52f592ceb1964aa2533b32fcf0b/propcache-0.3.1-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:71ebe3fe42656a2328ab08933d420df5f3ab121772eef78f2dc63624157f0ed9", size = 226088 }, - { url = "https://files.pythonhosted.org/packages/54/6e/30a11f4417d9266b5a464ac5a8c5164ddc9dd153dfa77bf57918165eb4ae/propcache-0.3.1-cp311-cp311-win32.whl", hash = "sha256:58aa11f4ca8b60113d4b8e32d37e7e78bd8af4d1a5b5cb4979ed856a45e62005", size = 40859 }, - { url = "https://files.pythonhosted.org/packages/1d/3a/8a68dd867da9ca2ee9dfd361093e9cb08cb0f37e5ddb2276f1b5177d7731/propcache-0.3.1-cp311-cp311-win_amd64.whl", hash = "sha256:9532ea0b26a401264b1365146c440a6d78269ed41f83f23818d4b79497aeabe7", size = 45153 }, - { url = "https://files.pythonhosted.org/packages/41/aa/ca78d9be314d1e15ff517b992bebbed3bdfef5b8919e85bf4940e57b6137/propcache-0.3.1-cp312-cp312-macosx_10_13_universal2.whl", hash = "sha256:f78eb8422acc93d7b69964012ad7048764bb45a54ba7a39bb9e146c72ea29723", size = 80430 }, - { url = "https://files.pythonhosted.org/packages/1a/d8/f0c17c44d1cda0ad1979af2e593ea290defdde9eaeb89b08abbe02a5e8e1/propcache-0.3.1-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:89498dd49c2f9a026ee057965cdf8192e5ae070ce7d7a7bd4b66a8e257d0c976", size = 46637 }, - { url = "https://files.pythonhosted.org/packages/ae/bd/c1e37265910752e6e5e8a4c1605d0129e5b7933c3dc3cf1b9b48ed83b364/propcache-0.3.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:09400e98545c998d57d10035ff623266927cb784d13dd2b31fd33b8a5316b85b", size = 46123 }, - { url = "https://files.pythonhosted.org/packages/d4/b0/911eda0865f90c0c7e9f0415d40a5bf681204da5fd7ca089361a64c16b28/propcache-0.3.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:aa8efd8c5adc5a2c9d3b952815ff8f7710cefdcaf5f2c36d26aff51aeca2f12f", size = 243031 }, - { url = "https://files.pythonhosted.org/packages/0a/06/0da53397c76a74271621807265b6eb61fb011451b1ddebf43213df763669/propcache-0.3.1-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:c2fe5c910f6007e716a06d269608d307b4f36e7babee5f36533722660e8c4a70", size = 249100 }, - { url = "https://files.pythonhosted.org/packages/f1/eb/13090e05bf6b963fc1653cdc922133ced467cb4b8dab53158db5a37aa21e/propcache-0.3.1-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:a0ab8cf8cdd2194f8ff979a43ab43049b1df0b37aa64ab7eca04ac14429baeb7", size = 250170 }, - { url = "https://files.pythonhosted.org/packages/3b/4c/f72c9e1022b3b043ec7dc475a0f405d4c3e10b9b1d378a7330fecf0652da/propcache-0.3.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:563f9d8c03ad645597b8d010ef4e9eab359faeb11a0a2ac9f7b4bc8c28ebef25", size = 245000 }, - { url = "https://files.pythonhosted.org/packages/e8/fd/970ca0e22acc829f1adf5de3724085e778c1ad8a75bec010049502cb3a86/propcache-0.3.1-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:fb6e0faf8cb6b4beea5d6ed7b5a578254c6d7df54c36ccd3d8b3eb00d6770277", size = 230262 }, - { url = "https://files.pythonhosted.org/packages/c4/42/817289120c6b9194a44f6c3e6b2c3277c5b70bbad39e7df648f177cc3634/propcache-0.3.1-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:1c5c7ab7f2bb3f573d1cb921993006ba2d39e8621019dffb1c5bc94cdbae81e8", size = 236772 }, - { url = "https://files.pythonhosted.org/packages/7c/9c/3b3942b302badd589ad6b672da3ca7b660a6c2f505cafd058133ddc73918/propcache-0.3.1-cp312-cp312-musllinux_1_2_armv7l.whl", hash = "sha256:050b571b2e96ec942898f8eb46ea4bfbb19bd5502424747e83badc2d4a99a44e", size = 231133 }, - { url = "https://files.pythonhosted.org/packages/98/a1/75f6355f9ad039108ff000dfc2e19962c8dea0430da9a1428e7975cf24b2/propcache-0.3.1-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:e1c4d24b804b3a87e9350f79e2371a705a188d292fd310e663483af6ee6718ee", size = 230741 }, - { url = "https://files.pythonhosted.org/packages/67/0c/3e82563af77d1f8731132166da69fdfd95e71210e31f18edce08a1eb11ea/propcache-0.3.1-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:e4fe2a6d5ce975c117a6bb1e8ccda772d1e7029c1cca1acd209f91d30fa72815", size = 244047 }, - { url = "https://files.pythonhosted.org/packages/f7/50/9fb7cca01532a08c4d5186d7bb2da6c4c587825c0ae134b89b47c7d62628/propcache-0.3.1-cp312-cp312-musllinux_1_2_s390x.whl", hash = "sha256:feccd282de1f6322f56f6845bf1207a537227812f0a9bf5571df52bb418d79d5", size = 246467 }, - { url = "https://files.pythonhosted.org/packages/a9/02/ccbcf3e1c604c16cc525309161d57412c23cf2351523aedbb280eb7c9094/propcache-0.3.1-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:ec314cde7314d2dd0510c6787326bbffcbdc317ecee6b7401ce218b3099075a7", size = 241022 }, - { url = "https://files.pythonhosted.org/packages/db/19/e777227545e09ca1e77a6e21274ae9ec45de0f589f0ce3eca2a41f366220/propcache-0.3.1-cp312-cp312-win32.whl", hash = "sha256:7d2d5a0028d920738372630870e7d9644ce437142197f8c827194fca404bf03b", size = 40647 }, - { url = "https://files.pythonhosted.org/packages/24/bb/3b1b01da5dd04c77a204c84e538ff11f624e31431cfde7201d9110b092b1/propcache-0.3.1-cp312-cp312-win_amd64.whl", hash = "sha256:88c423efef9d7a59dae0614eaed718449c09a5ac79a5f224a8b9664d603f04a3", size = 44784 }, - { url = "https://files.pythonhosted.org/packages/58/60/f645cc8b570f99be3cf46714170c2de4b4c9d6b827b912811eff1eb8a412/propcache-0.3.1-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:f1528ec4374617a7a753f90f20e2f551121bb558fcb35926f99e3c42367164b8", size = 77865 }, - { url = "https://files.pythonhosted.org/packages/6f/d4/c1adbf3901537582e65cf90fd9c26fde1298fde5a2c593f987112c0d0798/propcache-0.3.1-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:dc1915ec523b3b494933b5424980831b636fe483d7d543f7afb7b3bf00f0c10f", size = 45452 }, - { url = "https://files.pythonhosted.org/packages/d1/b5/fe752b2e63f49f727c6c1c224175d21b7d1727ce1d4873ef1c24c9216830/propcache-0.3.1-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:a110205022d077da24e60b3df8bcee73971be9575dec5573dd17ae5d81751111", size = 44800 }, - { url = "https://files.pythonhosted.org/packages/62/37/fc357e345bc1971e21f76597028b059c3d795c5ca7690d7a8d9a03c9708a/propcache-0.3.1-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d249609e547c04d190e820d0d4c8ca03ed4582bcf8e4e160a6969ddfb57b62e5", size = 225804 }, - { url = "https://files.pythonhosted.org/packages/0d/f1/16e12c33e3dbe7f8b737809bad05719cff1dccb8df4dafbcff5575002c0e/propcache-0.3.1-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:5ced33d827625d0a589e831126ccb4f5c29dfdf6766cac441d23995a65825dcb", size = 230650 }, - { url = "https://files.pythonhosted.org/packages/3e/a2/018b9f2ed876bf5091e60153f727e8f9073d97573f790ff7cdf6bc1d1fb8/propcache-0.3.1-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:4114c4ada8f3181af20808bedb250da6bae56660e4b8dfd9cd95d4549c0962f7", size = 234235 }, - { url = "https://files.pythonhosted.org/packages/45/5f/3faee66fc930dfb5da509e34c6ac7128870631c0e3582987fad161fcb4b1/propcache-0.3.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:975af16f406ce48f1333ec5e912fe11064605d5c5b3f6746969077cc3adeb120", size = 228249 }, - { url = "https://files.pythonhosted.org/packages/62/1e/a0d5ebda5da7ff34d2f5259a3e171a94be83c41eb1e7cd21a2105a84a02e/propcache-0.3.1-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:a34aa3a1abc50740be6ac0ab9d594e274f59960d3ad253cd318af76b996dd654", size = 214964 }, - { url = "https://files.pythonhosted.org/packages/db/a0/d72da3f61ceab126e9be1f3bc7844b4e98c6e61c985097474668e7e52152/propcache-0.3.1-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:9cec3239c85ed15bfaded997773fdad9fb5662b0a7cbc854a43f291eb183179e", size = 222501 }, - { url = "https://files.pythonhosted.org/packages/18/6d/a008e07ad7b905011253adbbd97e5b5375c33f0b961355ca0a30377504ac/propcache-0.3.1-cp313-cp313-musllinux_1_2_armv7l.whl", hash = "sha256:05543250deac8e61084234d5fc54f8ebd254e8f2b39a16b1dce48904f45b744b", size = 217917 }, - { url = "https://files.pythonhosted.org/packages/98/37/02c9343ffe59e590e0e56dc5c97d0da2b8b19fa747ebacf158310f97a79a/propcache-0.3.1-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:5cb5918253912e088edbf023788de539219718d3b10aef334476b62d2b53de53", size = 217089 }, - { url = "https://files.pythonhosted.org/packages/53/1b/d3406629a2c8a5666d4674c50f757a77be119b113eedd47b0375afdf1b42/propcache-0.3.1-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:f3bbecd2f34d0e6d3c543fdb3b15d6b60dd69970c2b4c822379e5ec8f6f621d5", size = 228102 }, - { url = "https://files.pythonhosted.org/packages/cd/a7/3664756cf50ce739e5f3abd48febc0be1a713b1f389a502ca819791a6b69/propcache-0.3.1-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:aca63103895c7d960a5b9b044a83f544b233c95e0dcff114389d64d762017af7", size = 230122 }, - { url = "https://files.pythonhosted.org/packages/35/36/0bbabaacdcc26dac4f8139625e930f4311864251276033a52fd52ff2a274/propcache-0.3.1-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:5a0a9898fdb99bf11786265468571e628ba60af80dc3f6eb89a3545540c6b0ef", size = 226818 }, - { url = "https://files.pythonhosted.org/packages/cc/27/4e0ef21084b53bd35d4dae1634b6d0bad35e9c58ed4f032511acca9d4d26/propcache-0.3.1-cp313-cp313-win32.whl", hash = "sha256:3a02a28095b5e63128bcae98eb59025924f121f048a62393db682f049bf4ac24", size = 40112 }, - { url = "https://files.pythonhosted.org/packages/a6/2c/a54614d61895ba6dd7ac8f107e2b2a0347259ab29cbf2ecc7b94fa38c4dc/propcache-0.3.1-cp313-cp313-win_amd64.whl", hash = "sha256:813fbb8b6aea2fc9659815e585e548fe706d6f663fa73dff59a1677d4595a037", size = 44034 }, - { url = "https://files.pythonhosted.org/packages/5a/a8/0a4fd2f664fc6acc66438370905124ce62e84e2e860f2557015ee4a61c7e/propcache-0.3.1-cp313-cp313t-macosx_10_13_universal2.whl", hash = "sha256:a444192f20f5ce8a5e52761a031b90f5ea6288b1eef42ad4c7e64fef33540b8f", size = 82613 }, - { url = "https://files.pythonhosted.org/packages/4d/e5/5ef30eb2cd81576256d7b6caaa0ce33cd1d2c2c92c8903cccb1af1a4ff2f/propcache-0.3.1-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:0fbe94666e62ebe36cd652f5fc012abfbc2342de99b523f8267a678e4dfdee3c", size = 47763 }, - { url = "https://files.pythonhosted.org/packages/87/9a/87091ceb048efeba4d28e903c0b15bcc84b7c0bf27dc0261e62335d9b7b8/propcache-0.3.1-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:f011f104db880f4e2166bcdcf7f58250f7a465bc6b068dc84c824a3d4a5c94dc", size = 47175 }, - { url = "https://files.pythonhosted.org/packages/3e/2f/854e653c96ad1161f96194c6678a41bbb38c7947d17768e8811a77635a08/propcache-0.3.1-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:3e584b6d388aeb0001d6d5c2bd86b26304adde6d9bb9bfa9c4889805021b96de", size = 292265 }, - { url = "https://files.pythonhosted.org/packages/40/8d/090955e13ed06bc3496ba4a9fb26c62e209ac41973cb0d6222de20c6868f/propcache-0.3.1-cp313-cp313t-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:8a17583515a04358b034e241f952f1715243482fc2c2945fd99a1b03a0bd77d6", size = 294412 }, - { url = "https://files.pythonhosted.org/packages/39/e6/d51601342e53cc7582449e6a3c14a0479fab2f0750c1f4d22302e34219c6/propcache-0.3.1-cp313-cp313t-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:5aed8d8308215089c0734a2af4f2e95eeb360660184ad3912686c181e500b2e7", size = 294290 }, - { url = "https://files.pythonhosted.org/packages/3b/4d/be5f1a90abc1881884aa5878989a1acdafd379a91d9c7e5e12cef37ec0d7/propcache-0.3.1-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6d8e309ff9a0503ef70dc9a0ebd3e69cf7b3894c9ae2ae81fc10943c37762458", size = 282926 }, - { url = "https://files.pythonhosted.org/packages/57/2b/8f61b998c7ea93a2b7eca79e53f3e903db1787fca9373af9e2cf8dc22f9d/propcache-0.3.1-cp313-cp313t-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:b655032b202028a582d27aeedc2e813299f82cb232f969f87a4fde491a233f11", size = 267808 }, - { url = "https://files.pythonhosted.org/packages/11/1c/311326c3dfce59c58a6098388ba984b0e5fb0381ef2279ec458ef99bd547/propcache-0.3.1-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:9f64d91b751df77931336b5ff7bafbe8845c5770b06630e27acd5dbb71e1931c", size = 290916 }, - { url = "https://files.pythonhosted.org/packages/4b/74/91939924b0385e54dc48eb2e4edd1e4903ffd053cf1916ebc5347ac227f7/propcache-0.3.1-cp313-cp313t-musllinux_1_2_armv7l.whl", hash = "sha256:19a06db789a4bd896ee91ebc50d059e23b3639c25d58eb35be3ca1cbe967c3bf", size = 262661 }, - { url = "https://files.pythonhosted.org/packages/c2/d7/e6079af45136ad325c5337f5dd9ef97ab5dc349e0ff362fe5c5db95e2454/propcache-0.3.1-cp313-cp313t-musllinux_1_2_i686.whl", hash = "sha256:bef100c88d8692864651b5f98e871fb090bd65c8a41a1cb0ff2322db39c96c27", size = 264384 }, - { url = "https://files.pythonhosted.org/packages/b7/d5/ba91702207ac61ae6f1c2da81c5d0d6bf6ce89e08a2b4d44e411c0bbe867/propcache-0.3.1-cp313-cp313t-musllinux_1_2_ppc64le.whl", hash = "sha256:87380fb1f3089d2a0b8b00f006ed12bd41bd858fabfa7330c954c70f50ed8757", size = 291420 }, - { url = "https://files.pythonhosted.org/packages/58/70/2117780ed7edcd7ba6b8134cb7802aada90b894a9810ec56b7bb6018bee7/propcache-0.3.1-cp313-cp313t-musllinux_1_2_s390x.whl", hash = "sha256:e474fc718e73ba5ec5180358aa07f6aded0ff5f2abe700e3115c37d75c947e18", size = 290880 }, - { url = "https://files.pythonhosted.org/packages/4a/1f/ecd9ce27710021ae623631c0146719280a929d895a095f6d85efb6a0be2e/propcache-0.3.1-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:17d1c688a443355234f3c031349da69444be052613483f3e4158eef751abcd8a", size = 287407 }, - { url = "https://files.pythonhosted.org/packages/3e/66/2e90547d6b60180fb29e23dc87bd8c116517d4255240ec6d3f7dc23d1926/propcache-0.3.1-cp313-cp313t-win32.whl", hash = "sha256:359e81a949a7619802eb601d66d37072b79b79c2505e6d3fd8b945538411400d", size = 42573 }, - { url = "https://files.pythonhosted.org/packages/cb/8f/50ad8599399d1861b4d2b6b45271f0ef6af1b09b0a2386a46dbaf19c9535/propcache-0.3.1-cp313-cp313t-win_amd64.whl", hash = "sha256:e7fb9a84c9abbf2b2683fa3e7b0d7da4d8ecf139a1c635732a8bda29c5214b0e", size = 46757 }, - { url = "https://files.pythonhosted.org/packages/b8/d3/c3cb8f1d6ae3b37f83e1de806713a9b3642c5895f0215a62e1a4bd6e5e34/propcache-0.3.1-py3-none-any.whl", hash = "sha256:9a8ecf38de50a7f518c21568c80f985e776397b902f1ce0b01f799aba1608b40", size = 12376 }, +version = "0.4.1" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/9e/da/e9fc233cf63743258bff22b3dfa7ea5baef7b5bc324af47a0ad89b8ffc6f/propcache-0.4.1.tar.gz", hash = "sha256:f48107a8c637e80362555f37ecf49abe20370e557cc4ab374f04ec4423c97c3d", size = 46442, upload-time = "2025-10-08T19:49:02.291Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/8c/d4/4e2c9aaf7ac2242b9358f98dccd8f90f2605402f5afeff6c578682c2c491/propcache-0.4.1-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:60a8fda9644b7dfd5dece8c61d8a85e271cb958075bfc4e01083c148b61a7caf", size = 80208, upload-time = "2025-10-08T19:46:24.597Z" }, + { url = "https://files.pythonhosted.org/packages/c2/21/d7b68e911f9c8e18e4ae43bdbc1e1e9bbd971f8866eb81608947b6f585ff/propcache-0.4.1-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:c30b53e7e6bda1d547cabb47c825f3843a0a1a42b0496087bb58d8fedf9f41b5", size = 45777, upload-time = "2025-10-08T19:46:25.733Z" }, + { url = "https://files.pythonhosted.org/packages/d3/1d/11605e99ac8ea9435651ee71ab4cb4bf03f0949586246476a25aadfec54a/propcache-0.4.1-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:6918ecbd897443087a3b7cd978d56546a812517dcaaca51b49526720571fa93e", size = 47647, upload-time = "2025-10-08T19:46:27.304Z" }, + { url = "https://files.pythonhosted.org/packages/58/1a/3c62c127a8466c9c843bccb503d40a273e5cc69838805f322e2826509e0d/propcache-0.4.1-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:3d902a36df4e5989763425a8ab9e98cd8ad5c52c823b34ee7ef307fd50582566", size = 214929, upload-time = "2025-10-08T19:46:28.62Z" }, + { url = "https://files.pythonhosted.org/packages/56/b9/8fa98f850960b367c4b8fe0592e7fc341daa7a9462e925228f10a60cf74f/propcache-0.4.1-cp311-cp311-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:a9695397f85973bb40427dedddf70d8dc4a44b22f1650dd4af9eedf443d45165", size = 221778, upload-time = "2025-10-08T19:46:30.358Z" }, + { url = "https://files.pythonhosted.org/packages/46/a6/0ab4f660eb59649d14b3d3d65c439421cf2f87fe5dd68591cbe3c1e78a89/propcache-0.4.1-cp311-cp311-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:2bb07ffd7eaad486576430c89f9b215f9e4be68c4866a96e97db9e97fead85dc", size = 228144, upload-time = "2025-10-08T19:46:32.607Z" }, + { url = "https://files.pythonhosted.org/packages/52/6a/57f43e054fb3d3a56ac9fc532bc684fc6169a26c75c353e65425b3e56eef/propcache-0.4.1-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:fd6f30fdcf9ae2a70abd34da54f18da086160e4d7d9251f81f3da0ff84fc5a48", size = 210030, upload-time = "2025-10-08T19:46:33.969Z" }, + { url = "https://files.pythonhosted.org/packages/40/e2/27e6feebb5f6b8408fa29f5efbb765cd54c153ac77314d27e457a3e993b7/propcache-0.4.1-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:fc38cba02d1acba4e2869eef1a57a43dfbd3d49a59bf90dda7444ec2be6a5570", size = 208252, upload-time = "2025-10-08T19:46:35.309Z" }, + { url = "https://files.pythonhosted.org/packages/9e/f8/91c27b22ccda1dbc7967f921c42825564fa5336a01ecd72eb78a9f4f53c2/propcache-0.4.1-cp311-cp311-musllinux_1_2_armv7l.whl", hash = "sha256:67fad6162281e80e882fb3ec355398cf72864a54069d060321f6cd0ade95fe85", size = 202064, upload-time = "2025-10-08T19:46:36.993Z" }, + { url = "https://files.pythonhosted.org/packages/f2/26/7f00bd6bd1adba5aafe5f4a66390f243acab58eab24ff1a08bebb2ef9d40/propcache-0.4.1-cp311-cp311-musllinux_1_2_ppc64le.whl", hash = "sha256:f10207adf04d08bec185bae14d9606a1444715bc99180f9331c9c02093e1959e", size = 212429, upload-time = "2025-10-08T19:46:38.398Z" }, + { url = "https://files.pythonhosted.org/packages/84/89/fd108ba7815c1117ddca79c228f3f8a15fc82a73bca8b142eb5de13b2785/propcache-0.4.1-cp311-cp311-musllinux_1_2_s390x.whl", hash = "sha256:e9b0d8d0845bbc4cfcdcbcdbf5086886bc8157aa963c31c777ceff7846c77757", size = 216727, upload-time = "2025-10-08T19:46:39.732Z" }, + { url = "https://files.pythonhosted.org/packages/79/37/3ec3f7e3173e73f1d600495d8b545b53802cbf35506e5732dd8578db3724/propcache-0.4.1-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:981333cb2f4c1896a12f4ab92a9cc8f09ea664e9b7dbdc4eff74627af3a11c0f", size = 205097, upload-time = "2025-10-08T19:46:41.025Z" }, + { url = "https://files.pythonhosted.org/packages/61/b0/b2631c19793f869d35f47d5a3a56fb19e9160d3c119f15ac7344fc3ccae7/propcache-0.4.1-cp311-cp311-win32.whl", hash = "sha256:f1d2f90aeec838a52f1c1a32fe9a619fefd5e411721a9117fbf82aea638fe8a1", size = 38084, upload-time = "2025-10-08T19:46:42.693Z" }, + { url = "https://files.pythonhosted.org/packages/f4/78/6cce448e2098e9f3bfc91bb877f06aa24b6ccace872e39c53b2f707c4648/propcache-0.4.1-cp311-cp311-win_amd64.whl", hash = "sha256:364426a62660f3f699949ac8c621aad6977be7126c5807ce48c0aeb8e7333ea6", size = 41637, upload-time = "2025-10-08T19:46:43.778Z" }, + { url = "https://files.pythonhosted.org/packages/9c/e9/754f180cccd7f51a39913782c74717c581b9cc8177ad0e949f4d51812383/propcache-0.4.1-cp311-cp311-win_arm64.whl", hash = "sha256:e53f3a38d3510c11953f3e6a33f205c6d1b001129f972805ca9b42fc308bc239", size = 38064, upload-time = "2025-10-08T19:46:44.872Z" }, + { url = "https://files.pythonhosted.org/packages/a2/0f/f17b1b2b221d5ca28b4b876e8bb046ac40466513960646bda8e1853cdfa2/propcache-0.4.1-cp312-cp312-macosx_10_13_universal2.whl", hash = "sha256:e153e9cd40cc8945138822807139367f256f89c6810c2634a4f6902b52d3b4e2", size = 80061, upload-time = "2025-10-08T19:46:46.075Z" }, + { url = "https://files.pythonhosted.org/packages/76/47/8ccf75935f51448ba9a16a71b783eb7ef6b9ee60f5d14c7f8a8a79fbeed7/propcache-0.4.1-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:cd547953428f7abb73c5ad82cbb32109566204260d98e41e5dfdc682eb7f8403", size = 46037, upload-time = "2025-10-08T19:46:47.23Z" }, + { url = "https://files.pythonhosted.org/packages/0a/b6/5c9a0e42df4d00bfb4a3cbbe5cf9f54260300c88a0e9af1f47ca5ce17ac0/propcache-0.4.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:f048da1b4f243fc44f205dfd320933a951b8d89e0afd4c7cacc762a8b9165207", size = 47324, upload-time = "2025-10-08T19:46:48.384Z" }, + { url = "https://files.pythonhosted.org/packages/9e/d3/6c7ee328b39a81ee877c962469f1e795f9db87f925251efeb0545e0020d0/propcache-0.4.1-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:ec17c65562a827bba85e3872ead335f95405ea1674860d96483a02f5c698fa72", size = 225505, upload-time = "2025-10-08T19:46:50.055Z" }, + { url = "https://files.pythonhosted.org/packages/01/5d/1c53f4563490b1d06a684742cc6076ef944bc6457df6051b7d1a877c057b/propcache-0.4.1-cp312-cp312-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:405aac25c6394ef275dee4c709be43745d36674b223ba4eb7144bf4d691b7367", size = 230242, upload-time = "2025-10-08T19:46:51.815Z" }, + { url = "https://files.pythonhosted.org/packages/20/e1/ce4620633b0e2422207c3cb774a0ee61cac13abc6217763a7b9e2e3f4a12/propcache-0.4.1-cp312-cp312-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:0013cb6f8dde4b2a2f66903b8ba740bdfe378c943c4377a200551ceb27f379e4", size = 238474, upload-time = "2025-10-08T19:46:53.208Z" }, + { url = "https://files.pythonhosted.org/packages/46/4b/3aae6835b8e5f44ea6a68348ad90f78134047b503765087be2f9912140ea/propcache-0.4.1-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:15932ab57837c3368b024473a525e25d316d8353016e7cc0e5ba9eb343fbb1cf", size = 221575, upload-time = "2025-10-08T19:46:54.511Z" }, + { url = "https://files.pythonhosted.org/packages/6e/a5/8a5e8678bcc9d3a1a15b9a29165640d64762d424a16af543f00629c87338/propcache-0.4.1-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:031dce78b9dc099f4c29785d9cf5577a3faf9ebf74ecbd3c856a7b92768c3df3", size = 216736, upload-time = "2025-10-08T19:46:56.212Z" }, + { url = "https://files.pythonhosted.org/packages/f1/63/b7b215eddeac83ca1c6b934f89d09a625aa9ee4ba158338854c87210cc36/propcache-0.4.1-cp312-cp312-musllinux_1_2_armv7l.whl", hash = "sha256:ab08df6c9a035bee56e31af99be621526bd237bea9f32def431c656b29e41778", size = 213019, upload-time = "2025-10-08T19:46:57.595Z" }, + { url = "https://files.pythonhosted.org/packages/57/74/f580099a58c8af587cac7ba19ee7cb418506342fbbe2d4a4401661cca886/propcache-0.4.1-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:4d7af63f9f93fe593afbf104c21b3b15868efb2c21d07d8732c0c4287e66b6a6", size = 220376, upload-time = "2025-10-08T19:46:59.067Z" }, + { url = "https://files.pythonhosted.org/packages/c4/ee/542f1313aff7eaf19c2bb758c5d0560d2683dac001a1c96d0774af799843/propcache-0.4.1-cp312-cp312-musllinux_1_2_s390x.whl", hash = "sha256:cfc27c945f422e8b5071b6e93169679e4eb5bf73bbcbf1ba3ae3a83d2f78ebd9", size = 226988, upload-time = "2025-10-08T19:47:00.544Z" }, + { url = "https://files.pythonhosted.org/packages/8f/18/9c6b015dd9c6930f6ce2229e1f02fb35298b847f2087ea2b436a5bfa7287/propcache-0.4.1-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:35c3277624a080cc6ec6f847cbbbb5b49affa3598c4535a0a4682a697aaa5c75", size = 215615, upload-time = "2025-10-08T19:47:01.968Z" }, + { url = "https://files.pythonhosted.org/packages/80/9e/e7b85720b98c45a45e1fca6a177024934dc9bc5f4d5dd04207f216fc33ed/propcache-0.4.1-cp312-cp312-win32.whl", hash = "sha256:671538c2262dadb5ba6395e26c1731e1d52534bfe9ae56d0b5573ce539266aa8", size = 38066, upload-time = "2025-10-08T19:47:03.503Z" }, + { url = "https://files.pythonhosted.org/packages/54/09/d19cff2a5aaac632ec8fc03737b223597b1e347416934c1b3a7df079784c/propcache-0.4.1-cp312-cp312-win_amd64.whl", hash = "sha256:cb2d222e72399fcf5890d1d5cc1060857b9b236adff2792ff48ca2dfd46c81db", size = 41655, upload-time = "2025-10-08T19:47:04.973Z" }, + { url = "https://files.pythonhosted.org/packages/68/ab/6b5c191bb5de08036a8c697b265d4ca76148efb10fa162f14af14fb5f076/propcache-0.4.1-cp312-cp312-win_arm64.whl", hash = "sha256:204483131fb222bdaaeeea9f9e6c6ed0cac32731f75dfc1d4a567fc1926477c1", size = 37789, upload-time = "2025-10-08T19:47:06.077Z" }, + { url = "https://files.pythonhosted.org/packages/bf/df/6d9c1b6ac12b003837dde8a10231a7344512186e87b36e855bef32241942/propcache-0.4.1-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:43eedf29202c08550aac1d14e0ee619b0430aaef78f85864c1a892294fbc28cf", size = 77750, upload-time = "2025-10-08T19:47:07.648Z" }, + { url = "https://files.pythonhosted.org/packages/8b/e8/677a0025e8a2acf07d3418a2e7ba529c9c33caf09d3c1f25513023c1db56/propcache-0.4.1-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:d62cdfcfd89ccb8de04e0eda998535c406bf5e060ffd56be6c586cbcc05b3311", size = 44780, upload-time = "2025-10-08T19:47:08.851Z" }, + { url = "https://files.pythonhosted.org/packages/89/a4/92380f7ca60f99ebae761936bc48a72a639e8a47b29050615eef757cb2a7/propcache-0.4.1-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:cae65ad55793da34db5f54e4029b89d3b9b9490d8abe1b4c7ab5d4b8ec7ebf74", size = 46308, upload-time = "2025-10-08T19:47:09.982Z" }, + { url = "https://files.pythonhosted.org/packages/2d/48/c5ac64dee5262044348d1d78a5f85dd1a57464a60d30daee946699963eb3/propcache-0.4.1-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:333ddb9031d2704a301ee3e506dc46b1fe5f294ec198ed6435ad5b6a085facfe", size = 208182, upload-time = "2025-10-08T19:47:11.319Z" }, + { url = "https://files.pythonhosted.org/packages/c6/0c/cd762dd011a9287389a6a3eb43aa30207bde253610cca06824aeabfe9653/propcache-0.4.1-cp313-cp313-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:fd0858c20f078a32cf55f7e81473d96dcf3b93fd2ccdb3d40fdf54b8573df3af", size = 211215, upload-time = "2025-10-08T19:47:13.146Z" }, + { url = "https://files.pythonhosted.org/packages/30/3e/49861e90233ba36890ae0ca4c660e95df565b2cd15d4a68556ab5865974e/propcache-0.4.1-cp313-cp313-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:678ae89ebc632c5c204c794f8dab2837c5f159aeb59e6ed0539500400577298c", size = 218112, upload-time = "2025-10-08T19:47:14.913Z" }, + { url = "https://files.pythonhosted.org/packages/f1/8b/544bc867e24e1bd48f3118cecd3b05c694e160a168478fa28770f22fd094/propcache-0.4.1-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:d472aeb4fbf9865e0c6d622d7f4d54a4e101a89715d8904282bb5f9a2f476c3f", size = 204442, upload-time = "2025-10-08T19:47:16.277Z" }, + { url = "https://files.pythonhosted.org/packages/50/a6/4282772fd016a76d3e5c0df58380a5ea64900afd836cec2c2f662d1b9bb3/propcache-0.4.1-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:4d3df5fa7e36b3225954fba85589da77a0fe6a53e3976de39caf04a0db4c36f1", size = 199398, upload-time = "2025-10-08T19:47:17.962Z" }, + { url = "https://files.pythonhosted.org/packages/3e/ec/d8a7cd406ee1ddb705db2139f8a10a8a427100347bd698e7014351c7af09/propcache-0.4.1-cp313-cp313-musllinux_1_2_armv7l.whl", hash = "sha256:ee17f18d2498f2673e432faaa71698032b0127ebf23ae5974eeaf806c279df24", size = 196920, upload-time = "2025-10-08T19:47:19.355Z" }, + { url = "https://files.pythonhosted.org/packages/f6/6c/f38ab64af3764f431e359f8baf9e0a21013e24329e8b85d2da32e8ed07ca/propcache-0.4.1-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:580e97762b950f993ae618e167e7be9256b8353c2dcd8b99ec100eb50f5286aa", size = 203748, upload-time = "2025-10-08T19:47:21.338Z" }, + { url = "https://files.pythonhosted.org/packages/d6/e3/fa846bd70f6534d647886621388f0a265254d30e3ce47e5c8e6e27dbf153/propcache-0.4.1-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:501d20b891688eb8e7aa903021f0b72d5a55db40ffaab27edefd1027caaafa61", size = 205877, upload-time = "2025-10-08T19:47:23.059Z" }, + { url = "https://files.pythonhosted.org/packages/e2/39/8163fc6f3133fea7b5f2827e8eba2029a0277ab2c5beee6c1db7b10fc23d/propcache-0.4.1-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:9a0bd56e5b100aef69bd8562b74b46254e7c8812918d3baa700c8a8009b0af66", size = 199437, upload-time = "2025-10-08T19:47:24.445Z" }, + { url = "https://files.pythonhosted.org/packages/93/89/caa9089970ca49c7c01662bd0eeedfe85494e863e8043565aeb6472ce8fe/propcache-0.4.1-cp313-cp313-win32.whl", hash = "sha256:bcc9aaa5d80322bc2fb24bb7accb4a30f81e90ab8d6ba187aec0744bc302ad81", size = 37586, upload-time = "2025-10-08T19:47:25.736Z" }, + { url = "https://files.pythonhosted.org/packages/f5/ab/f76ec3c3627c883215b5c8080debb4394ef5a7a29be811f786415fc1e6fd/propcache-0.4.1-cp313-cp313-win_amd64.whl", hash = "sha256:381914df18634f5494334d201e98245c0596067504b9372d8cf93f4bb23e025e", size = 40790, upload-time = "2025-10-08T19:47:26.847Z" }, + { url = "https://files.pythonhosted.org/packages/59/1b/e71ae98235f8e2ba5004d8cb19765a74877abf189bc53fc0c80d799e56c3/propcache-0.4.1-cp313-cp313-win_arm64.whl", hash = "sha256:8873eb4460fd55333ea49b7d189749ecf6e55bf85080f11b1c4530ed3034cba1", size = 37158, upload-time = "2025-10-08T19:47:27.961Z" }, + { url = "https://files.pythonhosted.org/packages/83/ce/a31bbdfc24ee0dcbba458c8175ed26089cf109a55bbe7b7640ed2470cfe9/propcache-0.4.1-cp313-cp313t-macosx_10_13_universal2.whl", hash = "sha256:92d1935ee1f8d7442da9c0c4fa7ac20d07e94064184811b685f5c4fada64553b", size = 81451, upload-time = "2025-10-08T19:47:29.445Z" }, + { url = "https://files.pythonhosted.org/packages/25/9c/442a45a470a68456e710d96cacd3573ef26a1d0a60067e6a7d5e655621ed/propcache-0.4.1-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:473c61b39e1460d386479b9b2f337da492042447c9b685f28be4f74d3529e566", size = 46374, upload-time = "2025-10-08T19:47:30.579Z" }, + { url = "https://files.pythonhosted.org/packages/f4/bf/b1d5e21dbc3b2e889ea4327044fb16312a736d97640fb8b6aa3f9c7b3b65/propcache-0.4.1-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:c0ef0aaafc66fbd87842a3fe3902fd889825646bc21149eafe47be6072725835", size = 48396, upload-time = "2025-10-08T19:47:31.79Z" }, + { url = "https://files.pythonhosted.org/packages/f4/04/5b4c54a103d480e978d3c8a76073502b18db0c4bc17ab91b3cb5092ad949/propcache-0.4.1-cp313-cp313t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:f95393b4d66bfae908c3ca8d169d5f79cd65636ae15b5e7a4f6e67af675adb0e", size = 275950, upload-time = "2025-10-08T19:47:33.481Z" }, + { url = "https://files.pythonhosted.org/packages/b4/c1/86f846827fb969c4b78b0af79bba1d1ea2156492e1b83dea8b8a6ae27395/propcache-0.4.1-cp313-cp313t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:c07fda85708bc48578467e85099645167a955ba093be0a2dcba962195676e859", size = 273856, upload-time = "2025-10-08T19:47:34.906Z" }, + { url = "https://files.pythonhosted.org/packages/36/1d/fc272a63c8d3bbad6878c336c7a7dea15e8f2d23a544bda43205dfa83ada/propcache-0.4.1-cp313-cp313t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:af223b406d6d000830c6f65f1e6431783fc3f713ba3e6cc8c024d5ee96170a4b", size = 280420, upload-time = "2025-10-08T19:47:36.338Z" }, + { url = "https://files.pythonhosted.org/packages/07/0c/01f2219d39f7e53d52e5173bcb09c976609ba30209912a0680adfb8c593a/propcache-0.4.1-cp313-cp313t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:a78372c932c90ee474559c5ddfffd718238e8673c340dc21fe45c5b8b54559a0", size = 263254, upload-time = "2025-10-08T19:47:37.692Z" }, + { url = "https://files.pythonhosted.org/packages/2d/18/cd28081658ce597898f0c4d174d4d0f3c5b6d4dc27ffafeef835c95eb359/propcache-0.4.1-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:564d9f0d4d9509e1a870c920a89b2fec951b44bf5ba7d537a9e7c1ccec2c18af", size = 261205, upload-time = "2025-10-08T19:47:39.659Z" }, + { url = "https://files.pythonhosted.org/packages/7a/71/1f9e22eb8b8316701c2a19fa1f388c8a3185082607da8e406a803c9b954e/propcache-0.4.1-cp313-cp313t-musllinux_1_2_armv7l.whl", hash = "sha256:17612831fda0138059cc5546f4d12a2aacfb9e47068c06af35c400ba58ba7393", size = 247873, upload-time = "2025-10-08T19:47:41.084Z" }, + { url = "https://files.pythonhosted.org/packages/4a/65/3d4b61f36af2b4eddba9def857959f1016a51066b4f1ce348e0cf7881f58/propcache-0.4.1-cp313-cp313t-musllinux_1_2_ppc64le.whl", hash = "sha256:41a89040cb10bd345b3c1a873b2bf36413d48da1def52f268a055f7398514874", size = 262739, upload-time = "2025-10-08T19:47:42.51Z" }, + { url = "https://files.pythonhosted.org/packages/2a/42/26746ab087faa77c1c68079b228810436ccd9a5ce9ac85e2b7307195fd06/propcache-0.4.1-cp313-cp313t-musllinux_1_2_s390x.whl", hash = "sha256:e35b88984e7fa64aacecea39236cee32dd9bd8c55f57ba8a75cf2399553f9bd7", size = 263514, upload-time = "2025-10-08T19:47:43.927Z" }, + { url = "https://files.pythonhosted.org/packages/94/13/630690fe201f5502d2403dd3cfd451ed8858fe3c738ee88d095ad2ff407b/propcache-0.4.1-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:6f8b465489f927b0df505cbe26ffbeed4d6d8a2bbc61ce90eb074ff129ef0ab1", size = 257781, upload-time = "2025-10-08T19:47:45.448Z" }, + { url = "https://files.pythonhosted.org/packages/92/f7/1d4ec5841505f423469efbfc381d64b7b467438cd5a4bbcbb063f3b73d27/propcache-0.4.1-cp313-cp313t-win32.whl", hash = "sha256:2ad890caa1d928c7c2965b48f3a3815c853180831d0e5503d35cf00c472f4717", size = 41396, upload-time = "2025-10-08T19:47:47.202Z" }, + { url = "https://files.pythonhosted.org/packages/48/f0/615c30622316496d2cbbc29f5985f7777d3ada70f23370608c1d3e081c1f/propcache-0.4.1-cp313-cp313t-win_amd64.whl", hash = "sha256:f7ee0e597f495cf415bcbd3da3caa3bd7e816b74d0d52b8145954c5e6fd3ff37", size = 44897, upload-time = "2025-10-08T19:47:48.336Z" }, + { url = "https://files.pythonhosted.org/packages/fd/ca/6002e46eccbe0e33dcd4069ef32f7f1c9e243736e07adca37ae8c4830ec3/propcache-0.4.1-cp313-cp313t-win_arm64.whl", hash = "sha256:929d7cbe1f01bb7baffb33dc14eb5691c95831450a26354cd210a8155170c93a", size = 39789, upload-time = "2025-10-08T19:47:49.876Z" }, + { url = "https://files.pythonhosted.org/packages/8e/5c/bca52d654a896f831b8256683457ceddd490ec18d9ec50e97dfd8fc726a8/propcache-0.4.1-cp314-cp314-macosx_10_13_universal2.whl", hash = "sha256:3f7124c9d820ba5548d431afb4632301acf965db49e666aa21c305cbe8c6de12", size = 78152, upload-time = "2025-10-08T19:47:51.051Z" }, + { url = "https://files.pythonhosted.org/packages/65/9b/03b04e7d82a5f54fb16113d839f5ea1ede58a61e90edf515f6577c66fa8f/propcache-0.4.1-cp314-cp314-macosx_10_13_x86_64.whl", hash = "sha256:c0d4b719b7da33599dfe3b22d3db1ef789210a0597bc650b7cee9c77c2be8c5c", size = 44869, upload-time = "2025-10-08T19:47:52.594Z" }, + { url = "https://files.pythonhosted.org/packages/b2/fa/89a8ef0468d5833a23fff277b143d0573897cf75bd56670a6d28126c7d68/propcache-0.4.1-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:9f302f4783709a78240ebc311b793f123328716a60911d667e0c036bc5dcbded", size = 46596, upload-time = "2025-10-08T19:47:54.073Z" }, + { url = "https://files.pythonhosted.org/packages/86/bd/47816020d337f4a746edc42fe8d53669965138f39ee117414c7d7a340cfe/propcache-0.4.1-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:c80ee5802e3fb9ea37938e7eecc307fb984837091d5fd262bb37238b1ae97641", size = 206981, upload-time = "2025-10-08T19:47:55.715Z" }, + { url = "https://files.pythonhosted.org/packages/df/f6/c5fa1357cc9748510ee55f37173eb31bfde6d94e98ccd9e6f033f2fc06e1/propcache-0.4.1-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:ed5a841e8bb29a55fb8159ed526b26adc5bdd7e8bd7bf793ce647cb08656cdf4", size = 211490, upload-time = "2025-10-08T19:47:57.499Z" }, + { url = "https://files.pythonhosted.org/packages/80/1e/e5889652a7c4a3846683401a48f0f2e5083ce0ec1a8a5221d8058fbd1adf/propcache-0.4.1-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:55c72fd6ea2da4c318e74ffdf93c4fe4e926051133657459131a95c846d16d44", size = 215371, upload-time = "2025-10-08T19:47:59.317Z" }, + { url = "https://files.pythonhosted.org/packages/b2/f2/889ad4b2408f72fe1a4f6a19491177b30ea7bf1a0fd5f17050ca08cfc882/propcache-0.4.1-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:8326e144341460402713f91df60ade3c999d601e7eb5ff8f6f7862d54de0610d", size = 201424, upload-time = "2025-10-08T19:48:00.67Z" }, + { url = "https://files.pythonhosted.org/packages/27/73/033d63069b57b0812c8bd19f311faebeceb6ba31b8f32b73432d12a0b826/propcache-0.4.1-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:060b16ae65bc098da7f6d25bf359f1f31f688384858204fe5d652979e0015e5b", size = 197566, upload-time = "2025-10-08T19:48:02.604Z" }, + { url = "https://files.pythonhosted.org/packages/dc/89/ce24f3dc182630b4e07aa6d15f0ff4b14ed4b9955fae95a0b54c58d66c05/propcache-0.4.1-cp314-cp314-musllinux_1_2_armv7l.whl", hash = "sha256:89eb3fa9524f7bec9de6e83cf3faed9d79bffa560672c118a96a171a6f55831e", size = 193130, upload-time = "2025-10-08T19:48:04.499Z" }, + { url = "https://files.pythonhosted.org/packages/a9/24/ef0d5fd1a811fb5c609278d0209c9f10c35f20581fcc16f818da959fc5b4/propcache-0.4.1-cp314-cp314-musllinux_1_2_ppc64le.whl", hash = "sha256:dee69d7015dc235f526fe80a9c90d65eb0039103fe565776250881731f06349f", size = 202625, upload-time = "2025-10-08T19:48:06.213Z" }, + { url = "https://files.pythonhosted.org/packages/f5/02/98ec20ff5546f68d673df2f7a69e8c0d076b5abd05ca882dc7ee3a83653d/propcache-0.4.1-cp314-cp314-musllinux_1_2_s390x.whl", hash = "sha256:5558992a00dfd54ccbc64a32726a3357ec93825a418a401f5cc67df0ac5d9e49", size = 204209, upload-time = "2025-10-08T19:48:08.432Z" }, + { url = "https://files.pythonhosted.org/packages/a0/87/492694f76759b15f0467a2a93ab68d32859672b646aa8a04ce4864e7932d/propcache-0.4.1-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:c9b822a577f560fbd9554812526831712c1436d2c046cedee4c3796d3543b144", size = 197797, upload-time = "2025-10-08T19:48:09.968Z" }, + { url = "https://files.pythonhosted.org/packages/ee/36/66367de3575db1d2d3f3d177432bd14ee577a39d3f5d1b3d5df8afe3b6e2/propcache-0.4.1-cp314-cp314-win32.whl", hash = "sha256:ab4c29b49d560fe48b696cdcb127dd36e0bc2472548f3bf56cc5cb3da2b2984f", size = 38140, upload-time = "2025-10-08T19:48:11.232Z" }, + { url = "https://files.pythonhosted.org/packages/0c/2a/a758b47de253636e1b8aef181c0b4f4f204bf0dd964914fb2af90a95b49b/propcache-0.4.1-cp314-cp314-win_amd64.whl", hash = "sha256:5a103c3eb905fcea0ab98be99c3a9a5ab2de60228aa5aceedc614c0281cf6153", size = 41257, upload-time = "2025-10-08T19:48:12.707Z" }, + { url = "https://files.pythonhosted.org/packages/34/5e/63bd5896c3fec12edcbd6f12508d4890d23c265df28c74b175e1ef9f4f3b/propcache-0.4.1-cp314-cp314-win_arm64.whl", hash = "sha256:74c1fb26515153e482e00177a1ad654721bf9207da8a494a0c05e797ad27b992", size = 38097, upload-time = "2025-10-08T19:48:13.923Z" }, + { url = "https://files.pythonhosted.org/packages/99/85/9ff785d787ccf9bbb3f3106f79884a130951436f58392000231b4c737c80/propcache-0.4.1-cp314-cp314t-macosx_10_13_universal2.whl", hash = "sha256:824e908bce90fb2743bd6b59db36eb4f45cd350a39637c9f73b1c1ea66f5b75f", size = 81455, upload-time = "2025-10-08T19:48:15.16Z" }, + { url = "https://files.pythonhosted.org/packages/90/85/2431c10c8e7ddb1445c1f7c4b54d886e8ad20e3c6307e7218f05922cad67/propcache-0.4.1-cp314-cp314t-macosx_10_13_x86_64.whl", hash = "sha256:c2b5e7db5328427c57c8e8831abda175421b709672f6cfc3d630c3b7e2146393", size = 46372, upload-time = "2025-10-08T19:48:16.424Z" }, + { url = "https://files.pythonhosted.org/packages/01/20/b0972d902472da9bcb683fa595099911f4d2e86e5683bcc45de60dd05dc3/propcache-0.4.1-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:6f6ff873ed40292cd4969ef5310179afd5db59fdf055897e282485043fc80ad0", size = 48411, upload-time = "2025-10-08T19:48:17.577Z" }, + { url = "https://files.pythonhosted.org/packages/e2/e3/7dc89f4f21e8f99bad3d5ddb3a3389afcf9da4ac69e3deb2dcdc96e74169/propcache-0.4.1-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:49a2dc67c154db2c1463013594c458881a069fcf98940e61a0569016a583020a", size = 275712, upload-time = "2025-10-08T19:48:18.901Z" }, + { url = "https://files.pythonhosted.org/packages/20/67/89800c8352489b21a8047c773067644e3897f02ecbbd610f4d46b7f08612/propcache-0.4.1-cp314-cp314t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:005f08e6a0529984491e37d8dbc3dd86f84bd78a8ceb5fa9a021f4c48d4984be", size = 273557, upload-time = "2025-10-08T19:48:20.762Z" }, + { url = "https://files.pythonhosted.org/packages/e2/a1/b52b055c766a54ce6d9c16d9aca0cad8059acd9637cdf8aa0222f4a026ef/propcache-0.4.1-cp314-cp314t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:5c3310452e0d31390da9035c348633b43d7e7feb2e37be252be6da45abd1abcc", size = 280015, upload-time = "2025-10-08T19:48:22.592Z" }, + { url = "https://files.pythonhosted.org/packages/48/c8/33cee30bd890672c63743049f3c9e4be087e6780906bfc3ec58528be59c1/propcache-0.4.1-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:4c3c70630930447f9ef1caac7728c8ad1c56bc5015338b20fed0d08ea2480b3a", size = 262880, upload-time = "2025-10-08T19:48:23.947Z" }, + { url = "https://files.pythonhosted.org/packages/0c/b1/8f08a143b204b418285c88b83d00edbd61afbc2c6415ffafc8905da7038b/propcache-0.4.1-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:8e57061305815dfc910a3634dcf584f08168a8836e6999983569f51a8544cd89", size = 260938, upload-time = "2025-10-08T19:48:25.656Z" }, + { url = "https://files.pythonhosted.org/packages/cf/12/96e4664c82ca2f31e1c8dff86afb867348979eb78d3cb8546a680287a1e9/propcache-0.4.1-cp314-cp314t-musllinux_1_2_armv7l.whl", hash = "sha256:521a463429ef54143092c11a77e04056dd00636f72e8c45b70aaa3140d639726", size = 247641, upload-time = "2025-10-08T19:48:27.207Z" }, + { url = "https://files.pythonhosted.org/packages/18/ed/e7a9cfca28133386ba52278136d42209d3125db08d0a6395f0cba0c0285c/propcache-0.4.1-cp314-cp314t-musllinux_1_2_ppc64le.whl", hash = "sha256:120c964da3fdc75e3731aa392527136d4ad35868cc556fd09bb6d09172d9a367", size = 262510, upload-time = "2025-10-08T19:48:28.65Z" }, + { url = "https://files.pythonhosted.org/packages/f5/76/16d8bf65e8845dd62b4e2b57444ab81f07f40caa5652b8969b87ddcf2ef6/propcache-0.4.1-cp314-cp314t-musllinux_1_2_s390x.whl", hash = "sha256:d8f353eb14ee3441ee844ade4277d560cdd68288838673273b978e3d6d2c8f36", size = 263161, upload-time = "2025-10-08T19:48:30.133Z" }, + { url = "https://files.pythonhosted.org/packages/e7/70/c99e9edb5d91d5ad8a49fa3c1e8285ba64f1476782fed10ab251ff413ba1/propcache-0.4.1-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:ab2943be7c652f09638800905ee1bab2c544e537edb57d527997a24c13dc1455", size = 257393, upload-time = "2025-10-08T19:48:31.567Z" }, + { url = "https://files.pythonhosted.org/packages/08/02/87b25304249a35c0915d236575bc3574a323f60b47939a2262b77632a3ee/propcache-0.4.1-cp314-cp314t-win32.whl", hash = "sha256:05674a162469f31358c30bcaa8883cb7829fa3110bf9c0991fe27d7896c42d85", size = 42546, upload-time = "2025-10-08T19:48:32.872Z" }, + { url = "https://files.pythonhosted.org/packages/cb/ef/3c6ecf8b317aa982f309835e8f96987466123c6e596646d4e6a1dfcd080f/propcache-0.4.1-cp314-cp314t-win_amd64.whl", hash = "sha256:990f6b3e2a27d683cb7602ed6c86f15ee6b43b1194736f9baaeb93d0016633b1", size = 46259, upload-time = "2025-10-08T19:48:34.226Z" }, + { url = "https://files.pythonhosted.org/packages/c4/2d/346e946d4951f37eca1e4f55be0f0174c52cd70720f84029b02f296f4a38/propcache-0.4.1-cp314-cp314t-win_arm64.whl", hash = "sha256:ecef2343af4cc68e05131e45024ba34f6095821988a9d0a02aa7c73fcc448aa9", size = 40428, upload-time = "2025-10-08T19:48:35.441Z" }, + { url = "https://files.pythonhosted.org/packages/5b/5a/bc7b4a4ef808fa59a816c17b20c4bef6884daebbdf627ff2a161da67da19/propcache-0.4.1-py3-none-any.whl", hash = "sha256:af2a6052aeb6cf17d3e46ee169099044fd8224cbaf75c76a2ef596e8163e2237", size = 13305, upload-time = "2025-10-08T19:49:00.792Z" }, ] [[package]] name = "psutil" -version = "7.0.0" -source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/2a/80/336820c1ad9286a4ded7e845b2eccfcb27851ab8ac6abece774a6ff4d3de/psutil-7.0.0.tar.gz", hash = "sha256:7be9c3eba38beccb6495ea33afd982a44074b78f28c434a1f51cc07fd315c456", size = 497003 } -wheels = [ - { url = "https://files.pythonhosted.org/packages/ed/e6/2d26234410f8b8abdbf891c9da62bee396583f713fb9f3325a4760875d22/psutil-7.0.0-cp36-abi3-macosx_10_9_x86_64.whl", hash = "sha256:101d71dc322e3cffd7cea0650b09b3d08b8e7c4109dd6809fe452dfd00e58b25", size = 238051 }, - { url = "https://files.pythonhosted.org/packages/04/8b/30f930733afe425e3cbfc0e1468a30a18942350c1a8816acfade80c005c4/psutil-7.0.0-cp36-abi3-macosx_11_0_arm64.whl", hash = "sha256:39db632f6bb862eeccf56660871433e111b6ea58f2caea825571951d4b6aa3da", size = 239535 }, - { url = "https://files.pythonhosted.org/packages/2a/ed/d362e84620dd22876b55389248e522338ed1bf134a5edd3b8231d7207f6d/psutil-7.0.0-cp36-abi3-manylinux_2_12_i686.manylinux2010_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:1fcee592b4c6f146991ca55919ea3d1f8926497a713ed7faaf8225e174581e91", size = 275004 }, - { url = "https://files.pythonhosted.org/packages/bf/b9/b0eb3f3cbcb734d930fdf839431606844a825b23eaf9a6ab371edac8162c/psutil-7.0.0-cp36-abi3-manylinux_2_12_x86_64.manylinux2010_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:4b1388a4f6875d7e2aff5c4ca1cc16c545ed41dd8bb596cefea80111db353a34", size = 277986 }, - { url = "https://files.pythonhosted.org/packages/eb/a2/709e0fe2f093556c17fbafda93ac032257242cabcc7ff3369e2cb76a97aa/psutil-7.0.0-cp36-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a5f098451abc2828f7dc6b58d44b532b22f2088f4999a937557b603ce72b1993", size = 279544 }, - { url = "https://files.pythonhosted.org/packages/50/e6/eecf58810b9d12e6427369784efe814a1eec0f492084ce8eb8f4d89d6d61/psutil-7.0.0-cp37-abi3-win32.whl", hash = "sha256:ba3fcef7523064a6c9da440fc4d6bd07da93ac726b5733c29027d7dc95b39d99", size = 241053 }, - { url = "https://files.pythonhosted.org/packages/50/1b/6921afe68c74868b4c9fa424dad3be35b095e16687989ebbb50ce4fceb7c/psutil-7.0.0-cp37-abi3-win_amd64.whl", hash = "sha256:4cf3d4eb1aa9b348dec30105c55cd9b7d4629285735a102beb4441e38db90553", size = 244885 }, +version = "7.1.3" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/e1/88/bdd0a41e5857d5d703287598cbf08dad90aed56774ea52ae071bae9071b6/psutil-7.1.3.tar.gz", hash = "sha256:6c86281738d77335af7aec228328e944b30930899ea760ecf33a4dba66be5e74", size = 489059, upload-time = "2025-11-02T12:25:54.619Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/bd/93/0c49e776b8734fef56ec9c5c57f923922f2cf0497d62e0f419465f28f3d0/psutil-7.1.3-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:0005da714eee687b4b8decd3d6cc7c6db36215c9e74e5ad2264b90c3df7d92dc", size = 239751, upload-time = "2025-11-02T12:25:58.161Z" }, + { url = "https://files.pythonhosted.org/packages/6f/8d/b31e39c769e70780f007969815195a55c81a63efebdd4dbe9e7a113adb2f/psutil-7.1.3-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:19644c85dcb987e35eeeaefdc3915d059dac7bd1167cdcdbf27e0ce2df0c08c0", size = 240368, upload-time = "2025-11-02T12:26:00.491Z" }, + { url = "https://files.pythonhosted.org/packages/62/61/23fd4acc3c9eebbf6b6c78bcd89e5d020cfde4acf0a9233e9d4e3fa698b4/psutil-7.1.3-cp313-cp313t-manylinux2010_x86_64.manylinux_2_12_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:95ef04cf2e5ba0ab9eaafc4a11eaae91b44f4ef5541acd2ee91d9108d00d59a7", size = 287134, upload-time = "2025-11-02T12:26:02.613Z" }, + { url = "https://files.pythonhosted.org/packages/30/1c/f921a009ea9ceb51aa355cb0cc118f68d354db36eae18174bab63affb3e6/psutil-7.1.3-cp313-cp313t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:1068c303be3a72f8e18e412c5b2a8f6d31750fb152f9cb106b54090296c9d251", size = 289904, upload-time = "2025-11-02T12:26:05.207Z" }, + { url = "https://files.pythonhosted.org/packages/a6/82/62d68066e13e46a5116df187d319d1724b3f437ddd0f958756fc052677f4/psutil-7.1.3-cp313-cp313t-win_amd64.whl", hash = "sha256:18349c5c24b06ac5612c0428ec2a0331c26443d259e2a0144a9b24b4395b58fa", size = 249642, upload-time = "2025-11-02T12:26:07.447Z" }, + { url = "https://files.pythonhosted.org/packages/df/ad/c1cd5fe965c14a0392112f68362cfceb5230819dbb5b1888950d18a11d9f/psutil-7.1.3-cp313-cp313t-win_arm64.whl", hash = "sha256:c525ffa774fe4496282fb0b1187725793de3e7c6b29e41562733cae9ada151ee", size = 245518, upload-time = "2025-11-02T12:26:09.719Z" }, + { url = "https://files.pythonhosted.org/packages/2e/bb/6670bded3e3236eb4287c7bcdc167e9fae6e1e9286e437f7111caed2f909/psutil-7.1.3-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:b403da1df4d6d43973dc004d19cee3b848e998ae3154cc8097d139b77156c353", size = 239843, upload-time = "2025-11-02T12:26:11.968Z" }, + { url = "https://files.pythonhosted.org/packages/b8/66/853d50e75a38c9a7370ddbeefabdd3d3116b9c31ef94dc92c6729bc36bec/psutil-7.1.3-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:ad81425efc5e75da3f39b3e636293360ad8d0b49bed7df824c79764fb4ba9b8b", size = 240369, upload-time = "2025-11-02T12:26:14.358Z" }, + { url = "https://files.pythonhosted.org/packages/41/bd/313aba97cb5bfb26916dc29cf0646cbe4dd6a89ca69e8c6edce654876d39/psutil-7.1.3-cp314-cp314t-manylinux2010_x86_64.manylinux_2_12_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:8f33a3702e167783a9213db10ad29650ebf383946e91bc77f28a5eb083496bc9", size = 288210, upload-time = "2025-11-02T12:26:16.699Z" }, + { url = "https://files.pythonhosted.org/packages/c2/fa/76e3c06e760927a0cfb5705eb38164254de34e9bd86db656d4dbaa228b04/psutil-7.1.3-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:fac9cd332c67f4422504297889da5ab7e05fd11e3c4392140f7370f4208ded1f", size = 291182, upload-time = "2025-11-02T12:26:18.848Z" }, + { url = "https://files.pythonhosted.org/packages/0f/1d/5774a91607035ee5078b8fd747686ebec28a962f178712de100d00b78a32/psutil-7.1.3-cp314-cp314t-win_amd64.whl", hash = "sha256:3792983e23b69843aea49c8f5b8f115572c5ab64c153bada5270086a2123c7e7", size = 250466, upload-time = "2025-11-02T12:26:21.183Z" }, + { url = "https://files.pythonhosted.org/packages/00/ca/e426584bacb43a5cb1ac91fae1937f478cd8fbe5e4ff96574e698a2c77cd/psutil-7.1.3-cp314-cp314t-win_arm64.whl", hash = "sha256:31d77fcedb7529f27bb3a0472bea9334349f9a04160e8e6e5020f22c59893264", size = 245756, upload-time = "2025-11-02T12:26:23.148Z" }, + { url = "https://files.pythonhosted.org/packages/ef/94/46b9154a800253e7ecff5aaacdf8ebf43db99de4a2dfa18575b02548654e/psutil-7.1.3-cp36-abi3-macosx_10_9_x86_64.whl", hash = "sha256:2bdbcd0e58ca14996a42adf3621a6244f1bb2e2e528886959c72cf1e326677ab", size = 238359, upload-time = "2025-11-02T12:26:25.284Z" }, + { url = "https://files.pythonhosted.org/packages/68/3a/9f93cff5c025029a36d9a92fef47220ab4692ee7f2be0fba9f92813d0cb8/psutil-7.1.3-cp36-abi3-macosx_11_0_arm64.whl", hash = "sha256:bc31fa00f1fbc3c3802141eede66f3a2d51d89716a194bf2cd6fc68310a19880", size = 239171, upload-time = "2025-11-02T12:26:27.23Z" }, + { url = "https://files.pythonhosted.org/packages/ce/b1/5f49af514f76431ba4eea935b8ad3725cdeb397e9245ab919dbc1d1dc20f/psutil-7.1.3-cp36-abi3-manylinux2010_x86_64.manylinux_2_12_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:3bb428f9f05c1225a558f53e30ccbad9930b11c3fc206836242de1091d3e7dd3", size = 263261, upload-time = "2025-11-02T12:26:29.48Z" }, + { url = "https://files.pythonhosted.org/packages/e0/95/992c8816a74016eb095e73585d747e0a8ea21a061ed3689474fabb29a395/psutil-7.1.3-cp36-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:56d974e02ca2c8eb4812c3f76c30e28836fffc311d55d979f1465c1feeb2b68b", size = 264635, upload-time = "2025-11-02T12:26:31.74Z" }, + { url = "https://files.pythonhosted.org/packages/55/4c/c3ed1a622b6ae2fd3c945a366e64eb35247a31e4db16cf5095e269e8eb3c/psutil-7.1.3-cp37-abi3-win_amd64.whl", hash = "sha256:f39c2c19fe824b47484b96f9692932248a54c43799a84282cfe58d05a6449efd", size = 247633, upload-time = "2025-11-02T12:26:33.887Z" }, + { url = "https://files.pythonhosted.org/packages/c9/ad/33b2ccec09bf96c2b2ef3f9a6f66baac8253d7565d8839e024a6b905d45d/psutil-7.1.3-cp37-abi3-win_arm64.whl", hash = "sha256:bd0d69cee829226a761e92f28140bec9a5ee9d5b4fb4b0cc589068dbfff559b1", size = 244608, upload-time = "2025-11-02T12:26:36.136Z" }, ] [[package]] name = "pygments" -version = "2.19.1" +version = "2.19.2" source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/7c/2d/c3338d48ea6cc0feb8446d8e6937e1408088a72a39937982cc6111d17f84/pygments-2.19.1.tar.gz", hash = "sha256:61c16d2a8576dc0649d9f39e089b5f02bcd27fba10d8fb4dcc28173f7a45151f", size = 4968581 } +sdist = { url = "https://files.pythonhosted.org/packages/b0/77/a5b8c569bf593b0140bde72ea885a803b82086995367bf2037de0159d924/pygments-2.19.2.tar.gz", hash = "sha256:636cb2477cec7f8952536970bc533bc43743542f70392ae026374600add5b887", size = 4968631, upload-time = "2025-06-21T13:39:12.283Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/8a/0b/9fcc47d19c48b59121088dd6da2488a49d5f72dacf8262e2790a1d2c7d15/pygments-2.19.1-py3-none-any.whl", hash = "sha256:9ea1544ad55cecf4b8242fab6dd35a93bbce657034b0611ee383099054ab6d8c", size = 1225293 }, + { url = "https://files.pythonhosted.org/packages/c7/21/705964c7812476f378728bdf590ca4b771ec72385c533964653c68e86bdc/pygments-2.19.2-py3-none-any.whl", hash = "sha256:86540386c03d588bb81d44bc3928634ff26449851e99741617ecb9037ee5ec0b", size = 1225217, upload-time = "2025-06-21T13:39:07.939Z" }, ] [[package]] name = "pytest" -version = "8.3.5" +version = "8.4.2" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "colorama", marker = "sys_platform == 'win32'" }, { name = "iniconfig" }, { name = "packaging" }, { name = "pluggy" }, + { name = "pygments" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/ae/3c/c9d525a414d506893f0cd8a8d0de7706446213181570cdbd766691164e40/pytest-8.3.5.tar.gz", hash = "sha256:f4efe70cc14e511565ac476b57c279e12a855b11f48f212af1080ef2263d3845", size = 1450891 } +sdist = { url = "https://files.pythonhosted.org/packages/a3/5c/00a0e072241553e1a7496d638deababa67c5058571567b92a7eaa258397c/pytest-8.4.2.tar.gz", hash = "sha256:86c0d0b93306b961d58d62a4db4879f27fe25513d4b969df351abdddb3c30e01", size = 1519618, upload-time = "2025-09-04T14:34:22.711Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/30/3d/64ad57c803f1fa1e963a7946b6e0fea4a70df53c1a7fed304586539c2bac/pytest-8.3.5-py3-none-any.whl", hash = "sha256:c69214aa47deac29fad6c2a4f590b9c4a9fdb16a403176fe154b79c0b4d4d820", size = 343634 }, + { url = "https://files.pythonhosted.org/packages/a8/a4/20da314d277121d6534b3a980b29035dcd51e6744bd79075a6ce8fa4eb8d/pytest-8.4.2-py3-none-any.whl", hash = "sha256:872f880de3fc3a5bdc88a11b39c9710c3497a547cfa9320bc3c5e62fbf272e79", size = 365750, upload-time = "2025-09-04T14:34:20.226Z" }, ] [[package]] @@ -1135,67 +1400,99 @@ source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "six" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/66/c0/0c8b6ad9f17a802ee498c46e004a0eb49bc148f2fd230864601a86dcf6db/python-dateutil-2.9.0.post0.tar.gz", hash = "sha256:37dd54208da7e1cd875388217d5e00ebd4179249f90fb72437e91a35459a0ad3", size = 342432 } +sdist = { url = "https://files.pythonhosted.org/packages/66/c0/0c8b6ad9f17a802ee498c46e004a0eb49bc148f2fd230864601a86dcf6db/python-dateutil-2.9.0.post0.tar.gz", hash = "sha256:37dd54208da7e1cd875388217d5e00ebd4179249f90fb72437e91a35459a0ad3", size = 342432, upload-time = "2024-03-01T18:36:20.211Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/ec/57/56b9bcc3c9c6a792fcbaf139543cee77261f3651ca9da0c93f5c1221264b/python_dateutil-2.9.0.post0-py2.py3-none-any.whl", hash = "sha256:a8b2bc7bffae282281c8140a97d3aa9c14da0b136dfe83f850eea9a5f7470427", size = 229892 }, + { url = "https://files.pythonhosted.org/packages/ec/57/56b9bcc3c9c6a792fcbaf139543cee77261f3651ca9da0c93f5c1221264b/python_dateutil-2.9.0.post0-py2.py3-none-any.whl", hash = "sha256:a8b2bc7bffae282281c8140a97d3aa9c14da0b136dfe83f850eea9a5f7470427", size = 229892, upload-time = "2024-03-01T18:36:18.57Z" }, ] [[package]] name = "python-dotenv" -version = "1.1.0" +version = "1.2.1" source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/88/2c/7bb1416c5620485aa793f2de31d3df393d3686aa8a8506d11e10e13c5baf/python_dotenv-1.1.0.tar.gz", hash = "sha256:41f90bc6f5f177fb41f53e87666db362025010eb28f60a01c9143bfa33a2b2d5", size = 39920 } +sdist = { url = "https://files.pythonhosted.org/packages/f0/26/19cadc79a718c5edbec86fd4919a6b6d3f681039a2f6d66d14be94e75fb9/python_dotenv-1.2.1.tar.gz", hash = "sha256:42667e897e16ab0d66954af0e60a9caa94f0fd4ecf3aaf6d2d260eec1aa36ad6", size = 44221, upload-time = "2025-10-26T15:12:10.434Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/1e/18/98a99ad95133c6a6e2005fe89faedf294a748bd5dc803008059409ac9b1e/python_dotenv-1.1.0-py3-none-any.whl", hash = "sha256:d7c01d9e2293916c18baf562d95698754b0dbbb5e74d457c45d4f6561fb9d55d", size = 20256 }, + { url = "https://files.pythonhosted.org/packages/14/1b/a298b06749107c305e1fe0f814c6c74aea7b2f1e10989cb30f544a1b3253/python_dotenv-1.2.1-py3-none-any.whl", hash = "sha256:b81ee9561e9ca4004139c6cbba3a238c32b03e4894671e181b671e8cb8425d61", size = 21230, upload-time = "2025-10-26T15:12:09.109Z" }, +] + +[[package]] +name = "python-slugify" +version = "8.0.4" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "text-unidecode" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/87/c7/5e1547c44e31da50a460df93af11a535ace568ef89d7a811069ead340c4a/python-slugify-8.0.4.tar.gz", hash = "sha256:59202371d1d05b54a9e7720c5e038f928f45daaffe41dd10822f3907b937c856", size = 10921, upload-time = "2024-02-08T18:32:45.488Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/a4/62/02da182e544a51a5c3ccf4b03ab79df279f9c60c5e82d5e8bec7ca26ac11/python_slugify-8.0.4-py2.py3-none-any.whl", hash = "sha256:276540b79961052b66b7d116620b36518847f52d5fd9e3a70164fc8c50faa6b8", size = 10051, upload-time = "2024-02-08T18:32:43.911Z" }, ] [[package]] name = "pytz" version = "2025.2" source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/f8/bf/abbd3cdfb8fbc7fb3d4d38d320f2441b1e7cbe29be4f23797b4a2b5d8aac/pytz-2025.2.tar.gz", hash = "sha256:360b9e3dbb49a209c21ad61809c7fb453643e048b38924c765813546746e81c3", size = 320884 } +sdist = { url = "https://files.pythonhosted.org/packages/f8/bf/abbd3cdfb8fbc7fb3d4d38d320f2441b1e7cbe29be4f23797b4a2b5d8aac/pytz-2025.2.tar.gz", hash = "sha256:360b9e3dbb49a209c21ad61809c7fb453643e048b38924c765813546746e81c3", size = 320884, upload-time = "2025-03-25T02:25:00.538Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/81/c4/34e93fe5f5429d7570ec1fa436f1986fb1f00c3e0f43a589fe2bbcd22c3f/pytz-2025.2-py2.py3-none-any.whl", hash = "sha256:5ddf76296dd8c44c26eb8f4b6f35488f3ccbf6fbbd7adee0b7262d43f0ec2f00", size = 509225 }, + { url = "https://files.pythonhosted.org/packages/81/c4/34e93fe5f5429d7570ec1fa436f1986fb1f00c3e0f43a589fe2bbcd22c3f/pytz-2025.2-py2.py3-none-any.whl", hash = "sha256:5ddf76296dd8c44c26eb8f4b6f35488f3ccbf6fbbd7adee0b7262d43f0ec2f00", size = 509225, upload-time = "2025-03-25T02:24:58.468Z" }, ] [[package]] name = "pyyaml" -version = "6.0.2" -source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/54/ed/79a089b6be93607fa5cdaedf301d7dfb23af5f25c398d5ead2525b063e17/pyyaml-6.0.2.tar.gz", hash = "sha256:d584d9ec91ad65861cc08d42e834324ef890a082e591037abe114850ff7bbc3e", size = 130631 } -wheels = [ - { url = "https://files.pythonhosted.org/packages/f8/aa/7af4e81f7acba21a4c6be026da38fd2b872ca46226673c89a758ebdc4fd2/PyYAML-6.0.2-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:cc1c1159b3d456576af7a3e4d1ba7e6924cb39de8f67111c735f6fc832082774", size = 184612 }, - { url = "https://files.pythonhosted.org/packages/8b/62/b9faa998fd185f65c1371643678e4d58254add437edb764a08c5a98fb986/PyYAML-6.0.2-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:1e2120ef853f59c7419231f3bf4e7021f1b936f6ebd222406c3b60212205d2ee", size = 172040 }, - { url = "https://files.pythonhosted.org/packages/ad/0c/c804f5f922a9a6563bab712d8dcc70251e8af811fce4524d57c2c0fd49a4/PyYAML-6.0.2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:5d225db5a45f21e78dd9358e58a98702a0302f2659a3c6cd320564b75b86f47c", size = 736829 }, - { url = "https://files.pythonhosted.org/packages/51/16/6af8d6a6b210c8e54f1406a6b9481febf9c64a3109c541567e35a49aa2e7/PyYAML-6.0.2-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:5ac9328ec4831237bec75defaf839f7d4564be1e6b25ac710bd1a96321cc8317", size = 764167 }, - { url = "https://files.pythonhosted.org/packages/75/e4/2c27590dfc9992f73aabbeb9241ae20220bd9452df27483b6e56d3975cc5/PyYAML-6.0.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:3ad2a3decf9aaba3d29c8f537ac4b243e36bef957511b4766cb0057d32b0be85", size = 762952 }, - { url = "https://files.pythonhosted.org/packages/9b/97/ecc1abf4a823f5ac61941a9c00fe501b02ac3ab0e373c3857f7d4b83e2b6/PyYAML-6.0.2-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:ff3824dc5261f50c9b0dfb3be22b4567a6f938ccce4587b38952d85fd9e9afe4", size = 735301 }, - { url = "https://files.pythonhosted.org/packages/45/73/0f49dacd6e82c9430e46f4a027baa4ca205e8b0a9dce1397f44edc23559d/PyYAML-6.0.2-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:797b4f722ffa07cc8d62053e4cff1486fa6dc094105d13fea7b1de7d8bf71c9e", size = 756638 }, - { url = "https://files.pythonhosted.org/packages/22/5f/956f0f9fc65223a58fbc14459bf34b4cc48dec52e00535c79b8db361aabd/PyYAML-6.0.2-cp311-cp311-win32.whl", hash = "sha256:11d8f3dd2b9c1207dcaf2ee0bbbfd5991f571186ec9cc78427ba5bd32afae4b5", size = 143850 }, - { url = "https://files.pythonhosted.org/packages/ed/23/8da0bbe2ab9dcdd11f4f4557ccaf95c10b9811b13ecced089d43ce59c3c8/PyYAML-6.0.2-cp311-cp311-win_amd64.whl", hash = "sha256:e10ce637b18caea04431ce14fabcf5c64a1c61ec9c56b071a4b7ca131ca52d44", size = 161980 }, - { url = "https://files.pythonhosted.org/packages/86/0c/c581167fc46d6d6d7ddcfb8c843a4de25bdd27e4466938109ca68492292c/PyYAML-6.0.2-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:c70c95198c015b85feafc136515252a261a84561b7b1d51e3384e0655ddf25ab", size = 183873 }, - { url = "https://files.pythonhosted.org/packages/a8/0c/38374f5bb272c051e2a69281d71cba6fdb983413e6758b84482905e29a5d/PyYAML-6.0.2-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:ce826d6ef20b1bc864f0a68340c8b3287705cae2f8b4b1d932177dcc76721725", size = 173302 }, - { url = "https://files.pythonhosted.org/packages/c3/93/9916574aa8c00aa06bbac729972eb1071d002b8e158bd0e83a3b9a20a1f7/PyYAML-6.0.2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:1f71ea527786de97d1a0cc0eacd1defc0985dcf6b3f17bb77dcfc8c34bec4dc5", size = 739154 }, - { url = "https://files.pythonhosted.org/packages/95/0f/b8938f1cbd09739c6da569d172531567dbcc9789e0029aa070856f123984/PyYAML-6.0.2-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:9b22676e8097e9e22e36d6b7bda33190d0d400f345f23d4065d48f4ca7ae0425", size = 766223 }, - { url = "https://files.pythonhosted.org/packages/b9/2b/614b4752f2e127db5cc206abc23a8c19678e92b23c3db30fc86ab731d3bd/PyYAML-6.0.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:80bab7bfc629882493af4aa31a4cfa43a4c57c83813253626916b8c7ada83476", size = 767542 }, - { url = "https://files.pythonhosted.org/packages/d4/00/dd137d5bcc7efea1836d6264f049359861cf548469d18da90cd8216cf05f/PyYAML-6.0.2-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:0833f8694549e586547b576dcfaba4a6b55b9e96098b36cdc7ebefe667dfed48", size = 731164 }, - { url = "https://files.pythonhosted.org/packages/c9/1f/4f998c900485e5c0ef43838363ba4a9723ac0ad73a9dc42068b12aaba4e4/PyYAML-6.0.2-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:8b9c7197f7cb2738065c481a0461e50ad02f18c78cd75775628afb4d7137fb3b", size = 756611 }, - { url = "https://files.pythonhosted.org/packages/df/d1/f5a275fdb252768b7a11ec63585bc38d0e87c9e05668a139fea92b80634c/PyYAML-6.0.2-cp312-cp312-win32.whl", hash = "sha256:ef6107725bd54b262d6dedcc2af448a266975032bc85ef0172c5f059da6325b4", size = 140591 }, - { url = "https://files.pythonhosted.org/packages/0c/e8/4f648c598b17c3d06e8753d7d13d57542b30d56e6c2dedf9c331ae56312e/PyYAML-6.0.2-cp312-cp312-win_amd64.whl", hash = "sha256:7e7401d0de89a9a855c839bc697c079a4af81cf878373abd7dc625847d25cbd8", size = 156338 }, - { url = "https://files.pythonhosted.org/packages/ef/e3/3af305b830494fa85d95f6d95ef7fa73f2ee1cc8ef5b495c7c3269fb835f/PyYAML-6.0.2-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:efdca5630322a10774e8e98e1af481aad470dd62c3170801852d752aa7a783ba", size = 181309 }, - { url = "https://files.pythonhosted.org/packages/45/9f/3b1c20a0b7a3200524eb0076cc027a970d320bd3a6592873c85c92a08731/PyYAML-6.0.2-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:50187695423ffe49e2deacb8cd10510bc361faac997de9efef88badc3bb9e2d1", size = 171679 }, - { url = "https://files.pythonhosted.org/packages/7c/9a/337322f27005c33bcb656c655fa78325b730324c78620e8328ae28b64d0c/PyYAML-6.0.2-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:0ffe8360bab4910ef1b9e87fb812d8bc0a308b0d0eef8c8f44e0254ab3b07133", size = 733428 }, - { url = "https://files.pythonhosted.org/packages/a3/69/864fbe19e6c18ea3cc196cbe5d392175b4cf3d5d0ac1403ec3f2d237ebb5/PyYAML-6.0.2-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:17e311b6c678207928d649faa7cb0d7b4c26a0ba73d41e99c4fff6b6c3276484", size = 763361 }, - { url = "https://files.pythonhosted.org/packages/04/24/b7721e4845c2f162d26f50521b825fb061bc0a5afcf9a386840f23ea19fa/PyYAML-6.0.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:70b189594dbe54f75ab3a1acec5f1e3faa7e8cf2f1e08d9b561cb41b845f69d5", size = 759523 }, - { url = "https://files.pythonhosted.org/packages/2b/b2/e3234f59ba06559c6ff63c4e10baea10e5e7df868092bf9ab40e5b9c56b6/PyYAML-6.0.2-cp313-cp313-musllinux_1_1_aarch64.whl", hash = "sha256:41e4e3953a79407c794916fa277a82531dd93aad34e29c2a514c2c0c5fe971cc", size = 726660 }, - { url = "https://files.pythonhosted.org/packages/fe/0f/25911a9f080464c59fab9027482f822b86bf0608957a5fcc6eaac85aa515/PyYAML-6.0.2-cp313-cp313-musllinux_1_1_x86_64.whl", hash = "sha256:68ccc6023a3400877818152ad9a1033e3db8625d899c72eacb5a668902e4d652", size = 751597 }, - { url = "https://files.pythonhosted.org/packages/14/0d/e2c3b43bbce3cf6bd97c840b46088a3031085179e596d4929729d8d68270/PyYAML-6.0.2-cp313-cp313-win32.whl", hash = "sha256:bc2fa7c6b47d6bc618dd7fb02ef6fdedb1090ec036abab80d4681424b84c1183", size = 140527 }, - { url = "https://files.pythonhosted.org/packages/fa/de/02b54f42487e3d3c6efb3f89428677074ca7bf43aae402517bc7cca949f3/PyYAML-6.0.2-cp313-cp313-win_amd64.whl", hash = "sha256:8388ee1976c416731879ac16da0aff3f63b286ffdd57cdeb95f3f2e085687563", size = 156446 }, +version = "6.0.3" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/05/8e/961c0007c59b8dd7729d542c61a4d537767a59645b82a0b521206e1e25c2/pyyaml-6.0.3.tar.gz", hash = "sha256:d76623373421df22fb4cf8817020cbb7ef15c725b9d5e45f17e189bfc384190f", size = 130960, upload-time = "2025-09-25T21:33:16.546Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/6d/16/a95b6757765b7b031c9374925bb718d55e0a9ba8a1b6a12d25962ea44347/pyyaml-6.0.3-cp311-cp311-macosx_10_13_x86_64.whl", hash = "sha256:44edc647873928551a01e7a563d7452ccdebee747728c1080d881d68af7b997e", size = 185826, upload-time = "2025-09-25T21:31:58.655Z" }, + { url = "https://files.pythonhosted.org/packages/16/19/13de8e4377ed53079ee996e1ab0a9c33ec2faf808a4647b7b4c0d46dd239/pyyaml-6.0.3-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:652cb6edd41e718550aad172851962662ff2681490a8a711af6a4d288dd96824", size = 175577, upload-time = "2025-09-25T21:32:00.088Z" }, + { url = "https://files.pythonhosted.org/packages/0c/62/d2eb46264d4b157dae1275b573017abec435397aa59cbcdab6fc978a8af4/pyyaml-6.0.3-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:10892704fc220243f5305762e276552a0395f7beb4dbf9b14ec8fd43b57f126c", size = 775556, upload-time = "2025-09-25T21:32:01.31Z" }, + { url = "https://files.pythonhosted.org/packages/10/cb/16c3f2cf3266edd25aaa00d6c4350381c8b012ed6f5276675b9eba8d9ff4/pyyaml-6.0.3-cp311-cp311-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:850774a7879607d3a6f50d36d04f00ee69e7fc816450e5f7e58d7f17f1ae5c00", size = 882114, upload-time = "2025-09-25T21:32:03.376Z" }, + { url = "https://files.pythonhosted.org/packages/71/60/917329f640924b18ff085ab889a11c763e0b573da888e8404ff486657602/pyyaml-6.0.3-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:b8bb0864c5a28024fac8a632c443c87c5aa6f215c0b126c449ae1a150412f31d", size = 806638, upload-time = "2025-09-25T21:32:04.553Z" }, + { url = "https://files.pythonhosted.org/packages/dd/6f/529b0f316a9fd167281a6c3826b5583e6192dba792dd55e3203d3f8e655a/pyyaml-6.0.3-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:1d37d57ad971609cf3c53ba6a7e365e40660e3be0e5175fa9f2365a379d6095a", size = 767463, upload-time = "2025-09-25T21:32:06.152Z" }, + { url = "https://files.pythonhosted.org/packages/f2/6a/b627b4e0c1dd03718543519ffb2f1deea4a1e6d42fbab8021936a4d22589/pyyaml-6.0.3-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:37503bfbfc9d2c40b344d06b2199cf0e96e97957ab1c1b546fd4f87e53e5d3e4", size = 794986, upload-time = "2025-09-25T21:32:07.367Z" }, + { url = "https://files.pythonhosted.org/packages/45/91/47a6e1c42d9ee337c4839208f30d9f09caa9f720ec7582917b264defc875/pyyaml-6.0.3-cp311-cp311-win32.whl", hash = "sha256:8098f252adfa6c80ab48096053f512f2321f0b998f98150cea9bd23d83e1467b", size = 142543, upload-time = "2025-09-25T21:32:08.95Z" }, + { url = "https://files.pythonhosted.org/packages/da/e3/ea007450a105ae919a72393cb06f122f288ef60bba2dc64b26e2646fa315/pyyaml-6.0.3-cp311-cp311-win_amd64.whl", hash = "sha256:9f3bfb4965eb874431221a3ff3fdcddc7e74e3b07799e0e84ca4a0f867d449bf", size = 158763, upload-time = "2025-09-25T21:32:09.96Z" }, + { url = "https://files.pythonhosted.org/packages/d1/33/422b98d2195232ca1826284a76852ad5a86fe23e31b009c9886b2d0fb8b2/pyyaml-6.0.3-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:7f047e29dcae44602496db43be01ad42fc6f1cc0d8cd6c83d342306c32270196", size = 182063, upload-time = "2025-09-25T21:32:11.445Z" }, + { url = "https://files.pythonhosted.org/packages/89/a0/6cf41a19a1f2f3feab0e9c0b74134aa2ce6849093d5517a0c550fe37a648/pyyaml-6.0.3-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:fc09d0aa354569bc501d4e787133afc08552722d3ab34836a80547331bb5d4a0", size = 173973, upload-time = "2025-09-25T21:32:12.492Z" }, + { url = "https://files.pythonhosted.org/packages/ed/23/7a778b6bd0b9a8039df8b1b1d80e2e2ad78aa04171592c8a5c43a56a6af4/pyyaml-6.0.3-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:9149cad251584d5fb4981be1ecde53a1ca46c891a79788c0df828d2f166bda28", size = 775116, upload-time = "2025-09-25T21:32:13.652Z" }, + { url = "https://files.pythonhosted.org/packages/65/30/d7353c338e12baef4ecc1b09e877c1970bd3382789c159b4f89d6a70dc09/pyyaml-6.0.3-cp312-cp312-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:5fdec68f91a0c6739b380c83b951e2c72ac0197ace422360e6d5a959d8d97b2c", size = 844011, upload-time = "2025-09-25T21:32:15.21Z" }, + { url = "https://files.pythonhosted.org/packages/8b/9d/b3589d3877982d4f2329302ef98a8026e7f4443c765c46cfecc8858c6b4b/pyyaml-6.0.3-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:ba1cc08a7ccde2d2ec775841541641e4548226580ab850948cbfda66a1befcdc", size = 807870, upload-time = "2025-09-25T21:32:16.431Z" }, + { url = "https://files.pythonhosted.org/packages/05/c0/b3be26a015601b822b97d9149ff8cb5ead58c66f981e04fedf4e762f4bd4/pyyaml-6.0.3-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:8dc52c23056b9ddd46818a57b78404882310fb473d63f17b07d5c40421e47f8e", size = 761089, upload-time = "2025-09-25T21:32:17.56Z" }, + { url = "https://files.pythonhosted.org/packages/be/8e/98435a21d1d4b46590d5459a22d88128103f8da4c2d4cb8f14f2a96504e1/pyyaml-6.0.3-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:41715c910c881bc081f1e8872880d3c650acf13dfa8214bad49ed4cede7c34ea", size = 790181, upload-time = "2025-09-25T21:32:18.834Z" }, + { url = "https://files.pythonhosted.org/packages/74/93/7baea19427dcfbe1e5a372d81473250b379f04b1bd3c4c5ff825e2327202/pyyaml-6.0.3-cp312-cp312-win32.whl", hash = "sha256:96b533f0e99f6579b3d4d4995707cf36df9100d67e0c8303a0c55b27b5f99bc5", size = 137658, upload-time = "2025-09-25T21:32:20.209Z" }, + { url = "https://files.pythonhosted.org/packages/86/bf/899e81e4cce32febab4fb42bb97dcdf66bc135272882d1987881a4b519e9/pyyaml-6.0.3-cp312-cp312-win_amd64.whl", hash = "sha256:5fcd34e47f6e0b794d17de1b4ff496c00986e1c83f7ab2fb8fcfe9616ff7477b", size = 154003, upload-time = "2025-09-25T21:32:21.167Z" }, + { url = "https://files.pythonhosted.org/packages/1a/08/67bd04656199bbb51dbed1439b7f27601dfb576fb864099c7ef0c3e55531/pyyaml-6.0.3-cp312-cp312-win_arm64.whl", hash = "sha256:64386e5e707d03a7e172c0701abfb7e10f0fb753ee1d773128192742712a98fd", size = 140344, upload-time = "2025-09-25T21:32:22.617Z" }, + { url = "https://files.pythonhosted.org/packages/d1/11/0fd08f8192109f7169db964b5707a2f1e8b745d4e239b784a5a1dd80d1db/pyyaml-6.0.3-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:8da9669d359f02c0b91ccc01cac4a67f16afec0dac22c2ad09f46bee0697eba8", size = 181669, upload-time = "2025-09-25T21:32:23.673Z" }, + { url = "https://files.pythonhosted.org/packages/b1/16/95309993f1d3748cd644e02e38b75d50cbc0d9561d21f390a76242ce073f/pyyaml-6.0.3-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:2283a07e2c21a2aa78d9c4442724ec1eb15f5e42a723b99cb3d822d48f5f7ad1", size = 173252, upload-time = "2025-09-25T21:32:25.149Z" }, + { url = "https://files.pythonhosted.org/packages/50/31/b20f376d3f810b9b2371e72ef5adb33879b25edb7a6d072cb7ca0c486398/pyyaml-6.0.3-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:ee2922902c45ae8ccada2c5b501ab86c36525b883eff4255313a253a3160861c", size = 767081, upload-time = "2025-09-25T21:32:26.575Z" }, + { url = "https://files.pythonhosted.org/packages/49/1e/a55ca81e949270d5d4432fbbd19dfea5321eda7c41a849d443dc92fd1ff7/pyyaml-6.0.3-cp313-cp313-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:a33284e20b78bd4a18c8c2282d549d10bc8408a2a7ff57653c0cf0b9be0afce5", size = 841159, upload-time = "2025-09-25T21:32:27.727Z" }, + { url = "https://files.pythonhosted.org/packages/74/27/e5b8f34d02d9995b80abcef563ea1f8b56d20134d8f4e5e81733b1feceb2/pyyaml-6.0.3-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:0f29edc409a6392443abf94b9cf89ce99889a1dd5376d94316ae5145dfedd5d6", size = 801626, upload-time = "2025-09-25T21:32:28.878Z" }, + { url = "https://files.pythonhosted.org/packages/f9/11/ba845c23988798f40e52ba45f34849aa8a1f2d4af4b798588010792ebad6/pyyaml-6.0.3-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:f7057c9a337546edc7973c0d3ba84ddcdf0daa14533c2065749c9075001090e6", size = 753613, upload-time = "2025-09-25T21:32:30.178Z" }, + { url = "https://files.pythonhosted.org/packages/3d/e0/7966e1a7bfc0a45bf0a7fb6b98ea03fc9b8d84fa7f2229e9659680b69ee3/pyyaml-6.0.3-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:eda16858a3cab07b80edaf74336ece1f986ba330fdb8ee0d6c0d68fe82bc96be", size = 794115, upload-time = "2025-09-25T21:32:31.353Z" }, + { url = "https://files.pythonhosted.org/packages/de/94/980b50a6531b3019e45ddeada0626d45fa85cbe22300844a7983285bed3b/pyyaml-6.0.3-cp313-cp313-win32.whl", hash = "sha256:d0eae10f8159e8fdad514efdc92d74fd8d682c933a6dd088030f3834bc8e6b26", size = 137427, upload-time = "2025-09-25T21:32:32.58Z" }, + { url = "https://files.pythonhosted.org/packages/97/c9/39d5b874e8b28845e4ec2202b5da735d0199dbe5b8fb85f91398814a9a46/pyyaml-6.0.3-cp313-cp313-win_amd64.whl", hash = "sha256:79005a0d97d5ddabfeeea4cf676af11e647e41d81c9a7722a193022accdb6b7c", size = 154090, upload-time = "2025-09-25T21:32:33.659Z" }, + { url = "https://files.pythonhosted.org/packages/73/e8/2bdf3ca2090f68bb3d75b44da7bbc71843b19c9f2b9cb9b0f4ab7a5a4329/pyyaml-6.0.3-cp313-cp313-win_arm64.whl", hash = "sha256:5498cd1645aa724a7c71c8f378eb29ebe23da2fc0d7a08071d89469bf1d2defb", size = 140246, upload-time = "2025-09-25T21:32:34.663Z" }, + { url = "https://files.pythonhosted.org/packages/9d/8c/f4bd7f6465179953d3ac9bc44ac1a8a3e6122cf8ada906b4f96c60172d43/pyyaml-6.0.3-cp314-cp314-macosx_10_13_x86_64.whl", hash = "sha256:8d1fab6bb153a416f9aeb4b8763bc0f22a5586065f86f7664fc23339fc1c1fac", size = 181814, upload-time = "2025-09-25T21:32:35.712Z" }, + { url = "https://files.pythonhosted.org/packages/bd/9c/4d95bb87eb2063d20db7b60faa3840c1b18025517ae857371c4dd55a6b3a/pyyaml-6.0.3-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:34d5fcd24b8445fadc33f9cf348c1047101756fd760b4dacb5c3e99755703310", size = 173809, upload-time = "2025-09-25T21:32:36.789Z" }, + { url = "https://files.pythonhosted.org/packages/92/b5/47e807c2623074914e29dabd16cbbdd4bf5e9b2db9f8090fa64411fc5382/pyyaml-6.0.3-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:501a031947e3a9025ed4405a168e6ef5ae3126c59f90ce0cd6f2bfc477be31b7", size = 766454, upload-time = "2025-09-25T21:32:37.966Z" }, + { url = "https://files.pythonhosted.org/packages/02/9e/e5e9b168be58564121efb3de6859c452fccde0ab093d8438905899a3a483/pyyaml-6.0.3-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:b3bc83488de33889877a0f2543ade9f70c67d66d9ebb4ac959502e12de895788", size = 836355, upload-time = "2025-09-25T21:32:39.178Z" }, + { url = "https://files.pythonhosted.org/packages/88/f9/16491d7ed2a919954993e48aa941b200f38040928474c9e85ea9e64222c3/pyyaml-6.0.3-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:c458b6d084f9b935061bc36216e8a69a7e293a2f1e68bf956dcd9e6cbcd143f5", size = 794175, upload-time = "2025-09-25T21:32:40.865Z" }, + { url = "https://files.pythonhosted.org/packages/dd/3f/5989debef34dc6397317802b527dbbafb2b4760878a53d4166579111411e/pyyaml-6.0.3-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:7c6610def4f163542a622a73fb39f534f8c101d690126992300bf3207eab9764", size = 755228, upload-time = "2025-09-25T21:32:42.084Z" }, + { url = "https://files.pythonhosted.org/packages/d7/ce/af88a49043cd2e265be63d083fc75b27b6ed062f5f9fd6cdc223ad62f03e/pyyaml-6.0.3-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:5190d403f121660ce8d1d2c1bb2ef1bd05b5f68533fc5c2ea899bd15f4399b35", size = 789194, upload-time = "2025-09-25T21:32:43.362Z" }, + { url = "https://files.pythonhosted.org/packages/23/20/bb6982b26a40bb43951265ba29d4c246ef0ff59c9fdcdf0ed04e0687de4d/pyyaml-6.0.3-cp314-cp314-win_amd64.whl", hash = "sha256:4a2e8cebe2ff6ab7d1050ecd59c25d4c8bd7e6f400f5f82b96557ac0abafd0ac", size = 156429, upload-time = "2025-09-25T21:32:57.844Z" }, + { url = "https://files.pythonhosted.org/packages/f4/f4/a4541072bb9422c8a883ab55255f918fa378ecf083f5b85e87fc2b4eda1b/pyyaml-6.0.3-cp314-cp314-win_arm64.whl", hash = "sha256:93dda82c9c22deb0a405ea4dc5f2d0cda384168e466364dec6255b293923b2f3", size = 143912, upload-time = "2025-09-25T21:32:59.247Z" }, + { url = "https://files.pythonhosted.org/packages/7c/f9/07dd09ae774e4616edf6cda684ee78f97777bdd15847253637a6f052a62f/pyyaml-6.0.3-cp314-cp314t-macosx_10_13_x86_64.whl", hash = "sha256:02893d100e99e03eda1c8fd5c441d8c60103fd175728e23e431db1b589cf5ab3", size = 189108, upload-time = "2025-09-25T21:32:44.377Z" }, + { url = "https://files.pythonhosted.org/packages/4e/78/8d08c9fb7ce09ad8c38ad533c1191cf27f7ae1effe5bb9400a46d9437fcf/pyyaml-6.0.3-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:c1ff362665ae507275af2853520967820d9124984e0f7466736aea23d8611fba", size = 183641, upload-time = "2025-09-25T21:32:45.407Z" }, + { url = "https://files.pythonhosted.org/packages/7b/5b/3babb19104a46945cf816d047db2788bcaf8c94527a805610b0289a01c6b/pyyaml-6.0.3-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:6adc77889b628398debc7b65c073bcb99c4a0237b248cacaf3fe8a557563ef6c", size = 831901, upload-time = "2025-09-25T21:32:48.83Z" }, + { url = "https://files.pythonhosted.org/packages/8b/cc/dff0684d8dc44da4d22a13f35f073d558c268780ce3c6ba1b87055bb0b87/pyyaml-6.0.3-cp314-cp314t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:a80cb027f6b349846a3bf6d73b5e95e782175e52f22108cfa17876aaeff93702", size = 861132, upload-time = "2025-09-25T21:32:50.149Z" }, + { url = "https://files.pythonhosted.org/packages/b1/5e/f77dc6b9036943e285ba76b49e118d9ea929885becb0a29ba8a7c75e29fe/pyyaml-6.0.3-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:00c4bdeba853cc34e7dd471f16b4114f4162dc03e6b7afcc2128711f0eca823c", size = 839261, upload-time = "2025-09-25T21:32:51.808Z" }, + { url = "https://files.pythonhosted.org/packages/ce/88/a9db1376aa2a228197c58b37302f284b5617f56a5d959fd1763fb1675ce6/pyyaml-6.0.3-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:66e1674c3ef6f541c35191caae2d429b967b99e02040f5ba928632d9a7f0f065", size = 805272, upload-time = "2025-09-25T21:32:52.941Z" }, + { url = "https://files.pythonhosted.org/packages/da/92/1446574745d74df0c92e6aa4a7b0b3130706a4142b2d1a5869f2eaa423c6/pyyaml-6.0.3-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:16249ee61e95f858e83976573de0f5b2893b3677ba71c9dd36b9cf8be9ac6d65", size = 829923, upload-time = "2025-09-25T21:32:54.537Z" }, + { url = "https://files.pythonhosted.org/packages/f0/7a/1c7270340330e575b92f397352af856a8c06f230aa3e76f86b39d01b416a/pyyaml-6.0.3-cp314-cp314t-win_amd64.whl", hash = "sha256:4ad1906908f2f5ae4e5a8ddfce73c320c2a1429ec52eafd27138b7f1cbe341c9", size = 174062, upload-time = "2025-09-25T21:32:55.767Z" }, + { url = "https://files.pythonhosted.org/packages/f1/12/de94a39c2ef588c7e6455cfbe7343d3b2dc9d6b6b2f40c4c6565744c873d/pyyaml-6.0.3-cp314-cp314t-win_arm64.whl", hash = "sha256:ebc55a14a21cb14062aa4162f906cd962b28e2e9ea38f9b4391244cd8de4ae0b", size = 149341, upload-time = "2025-09-25T21:32:56.828Z" }, ] [[package]] name = "requests" -version = "2.32.3" +version = "2.32.5" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "certifi" }, @@ -1203,9 +1500,9 @@ dependencies = [ { name = "idna" }, { name = "urllib3" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/63/70/2bf7780ad2d390a8d301ad0b550f1581eadbd9a20f896afe06353c2a2913/requests-2.32.3.tar.gz", hash = "sha256:55365417734eb18255590a9ff9eb97e9e1da868d4ccd6402399eaf68af20a760", size = 131218 } +sdist = { url = "https://files.pythonhosted.org/packages/c9/74/b3ff8e6c8446842c3f5c837e9c3dfcfe2018ea6ecef224c710c85ef728f4/requests-2.32.5.tar.gz", hash = "sha256:dbba0bac56e100853db0ea71b82b4dfd5fe2bf6d3754a8893c3af500cec7d7cf", size = 134517, upload-time = "2025-08-18T20:46:02.573Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/f9/9b/335f9764261e915ed497fcdeb11df5dfd6f7bf257d4a6a2a686d80da4d54/requests-2.32.3-py3-none-any.whl", hash = "sha256:70761cfe03c773ceb22aa2f671b4757976145175cdfca038c02654d061d6dcc6", size = 64928 }, + { url = "https://files.pythonhosted.org/packages/1e/db/4254e3eabe8020b458f1a747140d32277ec7a271daf1d235b70dc0b4e6e3/requests-2.32.5-py3-none-any.whl", hash = "sha256:2462f94637a34fd532264295e186976db0f5d453d1cdd31473c85a6a161affb6", size = 64738, upload-time = "2025-08-18T20:46:00.542Z" }, ] [[package]] @@ -1220,114 +1517,132 @@ dependencies = [ { name = "url-normalize" }, { name = "urllib3" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/1a/be/7b2a95a9e7a7c3e774e43d067c51244e61dea8b120ae2deff7089a93fb2b/requests_cache-1.2.1.tar.gz", hash = "sha256:68abc986fdc5b8d0911318fbb5f7c80eebcd4d01bfacc6685ecf8876052511d1", size = 3018209 } +sdist = { url = "https://files.pythonhosted.org/packages/1a/be/7b2a95a9e7a7c3e774e43d067c51244e61dea8b120ae2deff7089a93fb2b/requests_cache-1.2.1.tar.gz", hash = "sha256:68abc986fdc5b8d0911318fbb5f7c80eebcd4d01bfacc6685ecf8876052511d1", size = 3018209, upload-time = "2024-06-18T17:18:03.774Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/4e/2e/8f4051119f460cfc786aa91f212165bb6e643283b533db572d7b33952bd2/requests_cache-1.2.1-py3-none-any.whl", hash = "sha256:1285151cddf5331067baa82598afe2d47c7495a1334bfe7a7d329b43e9fd3603", size = 61425 }, + { url = "https://files.pythonhosted.org/packages/4e/2e/8f4051119f460cfc786aa91f212165bb6e643283b533db572d7b33952bd2/requests_cache-1.2.1-py3-none-any.whl", hash = "sha256:1285151cddf5331067baa82598afe2d47c7495a1334bfe7a7d329b43e9fd3603", size = 61425, upload-time = "2024-06-18T17:17:45Z" }, ] [[package]] name = "requirements-parser" -version = "0.11.0" +version = "0.13.0" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "packaging" }, - { name = "types-setuptools" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/05/70/80ed53ebd21853855aad552d4ed6c4934df62cd32fe9a3669fcdef59429c/requirements_parser-0.11.0.tar.gz", hash = "sha256:35f36dc969d14830bf459803da84f314dc3d17c802592e9e970f63d0359e5920", size = 23663 } +sdist = { url = "https://files.pythonhosted.org/packages/95/96/fb6dbfebb524d5601d359a47c78fe7ba1eef90fc4096404aa60c9a906fbb/requirements_parser-0.13.0.tar.gz", hash = "sha256:0843119ca2cb2331de4eb31b10d70462e39ace698fd660a915c247d2301a4418", size = 22630, upload-time = "2025-05-21T13:42:05.464Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/88/33/190393a7d36872e237cbc99e6c44d9a078a1ba7b406462fe6eafd5a28e04/requirements_parser-0.11.0-py3-none-any.whl", hash = "sha256:50379eb50311834386c2568263ae5225d7b9d0867fb55cf4ecc93959de2c2684", size = 14800 }, + { url = "https://files.pythonhosted.org/packages/bd/60/50fbb6ffb35f733654466f1a90d162bcbea358adc3b0871339254fbc37b2/requirements_parser-0.13.0-py3-none-any.whl", hash = "sha256:2b3173faecf19ec5501971b7222d38f04cb45bb9d87d0ad629ca71e2e62ded14", size = 14782, upload-time = "2025-05-21T13:42:04.007Z" }, ] [[package]] name = "rich" -version = "14.0.0" +version = "14.2.0" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "markdown-it-py" }, { name = "pygments" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/a1/53/830aa4c3066a8ab0ae9a9955976fb770fe9c6102117c8ec4ab3ea62d89e8/rich-14.0.0.tar.gz", hash = "sha256:82f1bc23a6a21ebca4ae0c45af9bdbc492ed20231dcb63f297d6d1021a9d5725", size = 224078 } +sdist = { url = "https://files.pythonhosted.org/packages/fb/d2/8920e102050a0de7bfabeb4c4614a49248cf8d5d7a8d01885fbb24dc767a/rich-14.2.0.tar.gz", hash = "sha256:73ff50c7c0c1c77c8243079283f4edb376f0f6442433aecb8ce7e6d0b92d1fe4", size = 219990, upload-time = "2025-10-09T14:16:53.064Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/0d/9b/63f4c7ebc259242c89b3acafdb37b41d1185c07ff0011164674e9076b491/rich-14.0.0-py3-none-any.whl", hash = "sha256:1c9491e1951aac09caffd42f448ee3d04e58923ffe14993f6e83068dc395d7e0", size = 243229 }, + { url = "https://files.pythonhosted.org/packages/25/7a/b0178788f8dc6cafce37a212c99565fa1fe7872c70c6c9c1e1a372d9d88f/rich-14.2.0-py3-none-any.whl", hash = "sha256:76bc51fe2e57d2b1be1f96c524b890b816e334ab4c1e45888799bfaab0021edd", size = 243393, upload-time = "2025-10-09T14:16:51.245Z" }, ] [[package]] name = "setuptools" -version = "78.1.0" +version = "80.9.0" source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/a9/5a/0db4da3bc908df06e5efae42b44e75c81dd52716e10192ff36d0c1c8e379/setuptools-78.1.0.tar.gz", hash = "sha256:18fd474d4a82a5f83dac888df697af65afa82dec7323d09c3e37d1f14288da54", size = 1367827 } +sdist = { url = "https://files.pythonhosted.org/packages/18/5d/3bf57dcd21979b887f014ea83c24ae194cfcd12b9e0fda66b957c69d1fca/setuptools-80.9.0.tar.gz", hash = "sha256:f36b47402ecde768dbfafc46e8e4207b4360c654f1f3bb84475f0a28628fb19c", size = 1319958, upload-time = "2025-05-27T00:56:51.443Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/54/21/f43f0a1fa8b06b32812e0975981f4677d28e0f3271601dc88ac5a5b83220/setuptools-78.1.0-py3-none-any.whl", hash = "sha256:3e386e96793c8702ae83d17b853fb93d3e09ef82ec62722e61da5cd22376dcd8", size = 1256108 }, + { url = "https://files.pythonhosted.org/packages/a3/dc/17031897dae0efacfea57dfd3a82fdd2a2aeb58e0ff71b77b87e44edc772/setuptools-80.9.0-py3-none-any.whl", hash = "sha256:062d34222ad13e0cc312a4c02d73f059e86a4acbfbdea8f8f76b28c99f306922", size = 1201486, upload-time = "2025-05-27T00:56:49.664Z" }, ] [[package]] name = "six" version = "1.17.0" source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/94/e7/b2c673351809dca68a0e064b6af791aa332cf192da575fd474ed7d6f16a2/six-1.17.0.tar.gz", hash = "sha256:ff70335d468e7eb6ec65b95b99d3a2836546063f63acc5171de367e834932a81", size = 34031 } +sdist = { url = "https://files.pythonhosted.org/packages/94/e7/b2c673351809dca68a0e064b6af791aa332cf192da575fd474ed7d6f16a2/six-1.17.0.tar.gz", hash = "sha256:ff70335d468e7eb6ec65b95b99d3a2836546063f63acc5171de367e834932a81", size = 34031, upload-time = "2024-12-04T17:35:28.174Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/b7/ce/149a00dd41f10bc29e5921b496af8b574d8413afcd5e30dfa0ed46c2cc5e/six-1.17.0-py2.py3-none-any.whl", hash = "sha256:4721f391ed90541fddacab5acf947aa0d3dc7d27b2e1e8eda2be8970586c3274", size = 11050 }, + { url = "https://files.pythonhosted.org/packages/b7/ce/149a00dd41f10bc29e5921b496af8b574d8413afcd5e30dfa0ed46c2cc5e/six-1.17.0-py2.py3-none-any.whl", hash = "sha256:4721f391ed90541fddacab5acf947aa0d3dc7d27b2e1e8eda2be8970586c3274", size = 11050, upload-time = "2024-12-04T17:35:26.475Z" }, ] [[package]] name = "subprocess-monitor" -version = "0.2.6" +version = "0.3.0" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "aiohttp", marker = "sys_platform != 'emscripten'" }, { name = "psutil", marker = "sys_platform != 'emscripten'" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/bd/7c/7aa525e96ada762c91e0cfeb7baf67bde57296e9f526c00f69a74c8e8fd9/subprocess_monitor-0.2.6.tar.gz", hash = "sha256:7196df2cc1ac4f952b4dcae798ab81f9544f1535d7c77862a3fa99c30f9ee28d", size = 7494 } +sdist = { url = "https://files.pythonhosted.org/packages/47/e1/1034846227a49627f1fc3a74367de16321970f7de72aebcca7660552e1b7/subprocess_monitor-0.3.0.tar.gz", hash = "sha256:5a11eb91777e1f8b2e558076cca79bbed62591824eb7e90a72b4944ebee5584d", size = 97265, upload-time = "2025-07-15T22:23:35.909Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/52/57/979ab56e413c0c1523370cb96e7118cdca9c8a891ac7dd5ad7eeabfb3da0/subprocess_monitor-0.3.0-py3-none-any.whl", hash = "sha256:0b6aae269beabf523d85ee2e1b9c64558c73ea9469eefc7c20b465c29fed7399", size = 19698, upload-time = "2025-07-15T22:23:34.359Z" }, +] + +[[package]] +name = "text-unidecode" +version = "1.3" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/ab/e2/e9a00f0ccb71718418230718b3d900e71a5d16e701a3dae079a21e9cd8f8/text-unidecode-1.3.tar.gz", hash = "sha256:bad6603bb14d279193107714b288be206cac565dfa49aa5b105294dd5c4aab93", size = 76885, upload-time = "2019-08-30T21:36:45.405Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/34/df/19b5352ca01a32453df7a8d70bd03c1b9a1d61461304e646f42a2d21f748/subprocess_monitor-0.2.6-py3-none-any.whl", hash = "sha256:32ff513f791fcead57e1deee9bf8acf263db0b064c8e03c223555f6e3eeef22e", size = 9772 }, + { url = "https://files.pythonhosted.org/packages/a6/a5/c0b6468d3824fe3fde30dbb5e1f687b291608f9473681bbf7dabbf5a87d7/text_unidecode-1.3-py2.py3-none-any.whl", hash = "sha256:1311f10e8b895935241623731c2ba64f4c455287888b18189350b67134a822e8", size = 78154, upload-time = "2019-08-30T21:37:03.543Z" }, ] [[package]] name = "toml" version = "0.10.2" source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/be/ba/1f744cdc819428fc6b5084ec34d9b30660f6f9daaf70eead706e3203ec3c/toml-0.10.2.tar.gz", hash = "sha256:b3bda1d108d5dd99f4a20d24d9c348e91c4db7ab1b749200bded2f839ccbe68f", size = 22253 } +sdist = { url = "https://files.pythonhosted.org/packages/be/ba/1f744cdc819428fc6b5084ec34d9b30660f6f9daaf70eead706e3203ec3c/toml-0.10.2.tar.gz", hash = "sha256:b3bda1d108d5dd99f4a20d24d9c348e91c4db7ab1b749200bded2f839ccbe68f", size = 22253, upload-time = "2020-11-01T01:40:22.204Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/44/6f/7120676b6d73228c96e17f1f794d8ab046fc910d781c8d151120c3f1569e/toml-0.10.2-py2.py3-none-any.whl", hash = "sha256:806143ae5bfb6a3c6e736a764057db0e6a0e05e338b5630894a5f779cabb4f9b", size = 16588 }, + { url = "https://files.pythonhosted.org/packages/44/6f/7120676b6d73228c96e17f1f794d8ab046fc910d781c8d151120c3f1569e/toml-0.10.2-py2.py3-none-any.whl", hash = "sha256:806143ae5bfb6a3c6e736a764057db0e6a0e05e338b5630894a5f779cabb4f9b", size = 16588, upload-time = "2020-11-01T01:40:20.672Z" }, ] [[package]] name = "tomli" -version = "2.2.1" -source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/18/87/302344fed471e44a87289cf4967697d07e532f2421fdaf868a303cbae4ff/tomli-2.2.1.tar.gz", hash = "sha256:cd45e1dc79c835ce60f7404ec8119f2eb06d38b1deba146f07ced3bbc44505ff", size = 17175 } -wheels = [ - { url = "https://files.pythonhosted.org/packages/43/ca/75707e6efa2b37c77dadb324ae7d9571cb424e61ea73fad7c56c2d14527f/tomli-2.2.1-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:678e4fa69e4575eb77d103de3df8a895e1591b48e740211bd1067378c69e8249", size = 131077 }, - { url = "https://files.pythonhosted.org/packages/c7/16/51ae563a8615d472fdbffc43a3f3d46588c264ac4f024f63f01283becfbb/tomli-2.2.1-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:023aa114dd824ade0100497eb2318602af309e5a55595f76b626d6d9f3b7b0a6", size = 123429 }, - { url = "https://files.pythonhosted.org/packages/f1/dd/4f6cd1e7b160041db83c694abc78e100473c15d54620083dbd5aae7b990e/tomli-2.2.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ece47d672db52ac607a3d9599a9d48dcb2f2f735c6c2d1f34130085bb12b112a", size = 226067 }, - { url = "https://files.pythonhosted.org/packages/a9/6b/c54ede5dc70d648cc6361eaf429304b02f2871a345bbdd51e993d6cdf550/tomli-2.2.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6972ca9c9cc9f0acaa56a8ca1ff51e7af152a9f87fb64623e31d5c83700080ee", size = 236030 }, - { url = "https://files.pythonhosted.org/packages/1f/47/999514fa49cfaf7a92c805a86c3c43f4215621855d151b61c602abb38091/tomli-2.2.1-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:c954d2250168d28797dd4e3ac5cf812a406cd5a92674ee4c8f123c889786aa8e", size = 240898 }, - { url = "https://files.pythonhosted.org/packages/73/41/0a01279a7ae09ee1573b423318e7934674ce06eb33f50936655071d81a24/tomli-2.2.1-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:8dd28b3e155b80f4d54beb40a441d366adcfe740969820caf156c019fb5c7ec4", size = 229894 }, - { url = "https://files.pythonhosted.org/packages/55/18/5d8bc5b0a0362311ce4d18830a5d28943667599a60d20118074ea1b01bb7/tomli-2.2.1-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:e59e304978767a54663af13c07b3d1af22ddee3bb2fb0618ca1593e4f593a106", size = 245319 }, - { url = "https://files.pythonhosted.org/packages/92/a3/7ade0576d17f3cdf5ff44d61390d4b3febb8a9fc2b480c75c47ea048c646/tomli-2.2.1-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:33580bccab0338d00994d7f16f4c4ec25b776af3ffaac1ed74e0b3fc95e885a8", size = 238273 }, - { url = "https://files.pythonhosted.org/packages/72/6f/fa64ef058ac1446a1e51110c375339b3ec6be245af9d14c87c4a6412dd32/tomli-2.2.1-cp311-cp311-win32.whl", hash = "sha256:465af0e0875402f1d226519c9904f37254b3045fc5084697cefb9bdde1ff99ff", size = 98310 }, - { url = "https://files.pythonhosted.org/packages/6a/1c/4a2dcde4a51b81be3530565e92eda625d94dafb46dbeb15069df4caffc34/tomli-2.2.1-cp311-cp311-win_amd64.whl", hash = "sha256:2d0f2fdd22b02c6d81637a3c95f8cd77f995846af7414c5c4b8d0545afa1bc4b", size = 108309 }, - { url = "https://files.pythonhosted.org/packages/52/e1/f8af4c2fcde17500422858155aeb0d7e93477a0d59a98e56cbfe75070fd0/tomli-2.2.1-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:4a8f6e44de52d5e6c657c9fe83b562f5f4256d8ebbfe4ff922c495620a7f6cea", size = 132762 }, - { url = "https://files.pythonhosted.org/packages/03/b8/152c68bb84fc00396b83e7bbddd5ec0bd3dd409db4195e2a9b3e398ad2e3/tomli-2.2.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:8d57ca8095a641b8237d5b079147646153d22552f1c637fd3ba7f4b0b29167a8", size = 123453 }, - { url = "https://files.pythonhosted.org/packages/c8/d6/fc9267af9166f79ac528ff7e8c55c8181ded34eb4b0e93daa767b8841573/tomli-2.2.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:4e340144ad7ae1533cb897d406382b4b6fede8890a03738ff1683af800d54192", size = 233486 }, - { url = "https://files.pythonhosted.org/packages/5c/51/51c3f2884d7bab89af25f678447ea7d297b53b5a3b5730a7cb2ef6069f07/tomli-2.2.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:db2b95f9de79181805df90bedc5a5ab4c165e6ec3fe99f970d0e302f384ad222", size = 242349 }, - { url = "https://files.pythonhosted.org/packages/ab/df/bfa89627d13a5cc22402e441e8a931ef2108403db390ff3345c05253935e/tomli-2.2.1-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:40741994320b232529c802f8bc86da4e1aa9f413db394617b9a256ae0f9a7f77", size = 252159 }, - { url = "https://files.pythonhosted.org/packages/9e/6e/fa2b916dced65763a5168c6ccb91066f7639bdc88b48adda990db10c8c0b/tomli-2.2.1-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:400e720fe168c0f8521520190686ef8ef033fb19fc493da09779e592861b78c6", size = 237243 }, - { url = "https://files.pythonhosted.org/packages/b4/04/885d3b1f650e1153cbb93a6a9782c58a972b94ea4483ae4ac5cedd5e4a09/tomli-2.2.1-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:02abe224de6ae62c19f090f68da4e27b10af2b93213d36cf44e6e1c5abd19fdd", size = 259645 }, - { url = "https://files.pythonhosted.org/packages/9c/de/6b432d66e986e501586da298e28ebeefd3edc2c780f3ad73d22566034239/tomli-2.2.1-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:b82ebccc8c8a36f2094e969560a1b836758481f3dc360ce9a3277c65f374285e", size = 244584 }, - { url = "https://files.pythonhosted.org/packages/1c/9a/47c0449b98e6e7d1be6cbac02f93dd79003234ddc4aaab6ba07a9a7482e2/tomli-2.2.1-cp312-cp312-win32.whl", hash = "sha256:889f80ef92701b9dbb224e49ec87c645ce5df3fa2cc548664eb8a25e03127a98", size = 98875 }, - { url = "https://files.pythonhosted.org/packages/ef/60/9b9638f081c6f1261e2688bd487625cd1e660d0a85bd469e91d8db969734/tomli-2.2.1-cp312-cp312-win_amd64.whl", hash = "sha256:7fc04e92e1d624a4a63c76474610238576942d6b8950a2d7f908a340494e67e4", size = 109418 }, - { url = "https://files.pythonhosted.org/packages/04/90/2ee5f2e0362cb8a0b6499dc44f4d7d48f8fff06d28ba46e6f1eaa61a1388/tomli-2.2.1-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:f4039b9cbc3048b2416cc57ab3bda989a6fcf9b36cf8937f01a6e731b64f80d7", size = 132708 }, - { url = "https://files.pythonhosted.org/packages/c0/ec/46b4108816de6b385141f082ba99e315501ccd0a2ea23db4a100dd3990ea/tomli-2.2.1-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:286f0ca2ffeeb5b9bd4fcc8d6c330534323ec51b2f52da063b11c502da16f30c", size = 123582 }, - { url = "https://files.pythonhosted.org/packages/a0/bd/b470466d0137b37b68d24556c38a0cc819e8febe392d5b199dcd7f578365/tomli-2.2.1-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a92ef1a44547e894e2a17d24e7557a5e85a9e1d0048b0b5e7541f76c5032cb13", size = 232543 }, - { url = "https://files.pythonhosted.org/packages/d9/e5/82e80ff3b751373f7cead2815bcbe2d51c895b3c990686741a8e56ec42ab/tomli-2.2.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:9316dc65bed1684c9a98ee68759ceaed29d229e985297003e494aa825ebb0281", size = 241691 }, - { url = "https://files.pythonhosted.org/packages/05/7e/2a110bc2713557d6a1bfb06af23dd01e7dde52b6ee7dadc589868f9abfac/tomli-2.2.1-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:e85e99945e688e32d5a35c1ff38ed0b3f41f43fad8df0bdf79f72b2ba7bc5272", size = 251170 }, - { url = "https://files.pythonhosted.org/packages/64/7b/22d713946efe00e0adbcdfd6d1aa119ae03fd0b60ebed51ebb3fa9f5a2e5/tomli-2.2.1-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:ac065718db92ca818f8d6141b5f66369833d4a80a9d74435a268c52bdfa73140", size = 236530 }, - { url = "https://files.pythonhosted.org/packages/38/31/3a76f67da4b0cf37b742ca76beaf819dca0ebef26d78fc794a576e08accf/tomli-2.2.1-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:d920f33822747519673ee656a4b6ac33e382eca9d331c87770faa3eef562aeb2", size = 258666 }, - { url = "https://files.pythonhosted.org/packages/07/10/5af1293da642aded87e8a988753945d0cf7e00a9452d3911dd3bb354c9e2/tomli-2.2.1-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:a198f10c4d1b1375d7687bc25294306e551bf1abfa4eace6650070a5c1ae2744", size = 243954 }, - { url = "https://files.pythonhosted.org/packages/5b/b9/1ed31d167be802da0fc95020d04cd27b7d7065cc6fbefdd2f9186f60d7bd/tomli-2.2.1-cp313-cp313-win32.whl", hash = "sha256:d3f5614314d758649ab2ab3a62d4f2004c825922f9e370b29416484086b264ec", size = 98724 }, - { url = "https://files.pythonhosted.org/packages/c7/32/b0963458706accd9afcfeb867c0f9175a741bf7b19cd424230714d722198/tomli-2.2.1-cp313-cp313-win_amd64.whl", hash = "sha256:a38aa0308e754b0e3c67e344754dff64999ff9b513e691d0e786265c93583c69", size = 109383 }, - { url = "https://files.pythonhosted.org/packages/6e/c2/61d3e0f47e2b74ef40a68b9e6ad5984f6241a942f7cd3bbfbdbd03861ea9/tomli-2.2.1-py3-none-any.whl", hash = "sha256:cb55c73c5f4408779d0cf3eef9f762b9c9f147a77de7b258bef0a5628adc85cc", size = 14257 }, +version = "2.3.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/52/ed/3f73f72945444548f33eba9a87fc7a6e969915e7b1acc8260b30e1f76a2f/tomli-2.3.0.tar.gz", hash = "sha256:64be704a875d2a59753d80ee8a533c3fe183e3f06807ff7dc2232938ccb01549", size = 17392, upload-time = "2025-10-08T22:01:47.119Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/b3/2e/299f62b401438d5fe1624119c723f5d877acc86a4c2492da405626665f12/tomli-2.3.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:88bd15eb972f3664f5ed4b57c1634a97153b4bac4479dcb6a495f41921eb7f45", size = 153236, upload-time = "2025-10-08T22:01:00.137Z" }, + { url = "https://files.pythonhosted.org/packages/86/7f/d8fffe6a7aefdb61bced88fcb5e280cfd71e08939da5894161bd71bea022/tomli-2.3.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:883b1c0d6398a6a9d29b508c331fa56adbcdff647f6ace4dfca0f50e90dfd0ba", size = 148084, upload-time = "2025-10-08T22:01:01.63Z" }, + { url = "https://files.pythonhosted.org/packages/47/5c/24935fb6a2ee63e86d80e4d3b58b222dafaf438c416752c8b58537c8b89a/tomli-2.3.0-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:d1381caf13ab9f300e30dd8feadb3de072aeb86f1d34a8569453ff32a7dea4bf", size = 234832, upload-time = "2025-10-08T22:01:02.543Z" }, + { url = "https://files.pythonhosted.org/packages/89/da/75dfd804fc11e6612846758a23f13271b76d577e299592b4371a4ca4cd09/tomli-2.3.0-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:a0e285d2649b78c0d9027570d4da3425bdb49830a6156121360b3f8511ea3441", size = 242052, upload-time = "2025-10-08T22:01:03.836Z" }, + { url = "https://files.pythonhosted.org/packages/70/8c/f48ac899f7b3ca7eb13af73bacbc93aec37f9c954df3c08ad96991c8c373/tomli-2.3.0-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:0a154a9ae14bfcf5d8917a59b51ffd5a3ac1fd149b71b47a3a104ca4edcfa845", size = 239555, upload-time = "2025-10-08T22:01:04.834Z" }, + { url = "https://files.pythonhosted.org/packages/ba/28/72f8afd73f1d0e7829bfc093f4cb98ce0a40ffc0cc997009ee1ed94ba705/tomli-2.3.0-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:74bf8464ff93e413514fefd2be591c3b0b23231a77f901db1eb30d6f712fc42c", size = 245128, upload-time = "2025-10-08T22:01:05.84Z" }, + { url = "https://files.pythonhosted.org/packages/b6/eb/a7679c8ac85208706d27436e8d421dfa39d4c914dcf5fa8083a9305f58d9/tomli-2.3.0-cp311-cp311-win32.whl", hash = "sha256:00b5f5d95bbfc7d12f91ad8c593a1659b6387b43f054104cda404be6bda62456", size = 96445, upload-time = "2025-10-08T22:01:06.896Z" }, + { url = "https://files.pythonhosted.org/packages/0a/fe/3d3420c4cb1ad9cb462fb52967080575f15898da97e21cb6f1361d505383/tomli-2.3.0-cp311-cp311-win_amd64.whl", hash = "sha256:4dc4ce8483a5d429ab602f111a93a6ab1ed425eae3122032db7e9acf449451be", size = 107165, upload-time = "2025-10-08T22:01:08.107Z" }, + { url = "https://files.pythonhosted.org/packages/ff/b7/40f36368fcabc518bb11c8f06379a0fd631985046c038aca08c6d6a43c6e/tomli-2.3.0-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:d7d86942e56ded512a594786a5ba0a5e521d02529b3826e7761a05138341a2ac", size = 154891, upload-time = "2025-10-08T22:01:09.082Z" }, + { url = "https://files.pythonhosted.org/packages/f9/3f/d9dd692199e3b3aab2e4e4dd948abd0f790d9ded8cd10cbaae276a898434/tomli-2.3.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:73ee0b47d4dad1c5e996e3cd33b8a76a50167ae5f96a2607cbe8cc773506ab22", size = 148796, upload-time = "2025-10-08T22:01:10.266Z" }, + { url = "https://files.pythonhosted.org/packages/60/83/59bff4996c2cf9f9387a0f5a3394629c7efa5ef16142076a23a90f1955fa/tomli-2.3.0-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:792262b94d5d0a466afb5bc63c7daa9d75520110971ee269152083270998316f", size = 242121, upload-time = "2025-10-08T22:01:11.332Z" }, + { url = "https://files.pythonhosted.org/packages/45/e5/7c5119ff39de8693d6baab6c0b6dcb556d192c165596e9fc231ea1052041/tomli-2.3.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:4f195fe57ecceac95a66a75ac24d9d5fbc98ef0962e09b2eddec5d39375aae52", size = 250070, upload-time = "2025-10-08T22:01:12.498Z" }, + { url = "https://files.pythonhosted.org/packages/45/12/ad5126d3a278f27e6701abde51d342aa78d06e27ce2bb596a01f7709a5a2/tomli-2.3.0-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:e31d432427dcbf4d86958c184b9bfd1e96b5b71f8eb17e6d02531f434fd335b8", size = 245859, upload-time = "2025-10-08T22:01:13.551Z" }, + { url = "https://files.pythonhosted.org/packages/fb/a1/4d6865da6a71c603cfe6ad0e6556c73c76548557a8d658f9e3b142df245f/tomli-2.3.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:7b0882799624980785240ab732537fcfc372601015c00f7fc367c55308c186f6", size = 250296, upload-time = "2025-10-08T22:01:14.614Z" }, + { url = "https://files.pythonhosted.org/packages/a0/b7/a7a7042715d55c9ba6e8b196d65d2cb662578b4d8cd17d882d45322b0d78/tomli-2.3.0-cp312-cp312-win32.whl", hash = "sha256:ff72b71b5d10d22ecb084d345fc26f42b5143c5533db5e2eaba7d2d335358876", size = 97124, upload-time = "2025-10-08T22:01:15.629Z" }, + { url = "https://files.pythonhosted.org/packages/06/1e/f22f100db15a68b520664eb3328fb0ae4e90530887928558112c8d1f4515/tomli-2.3.0-cp312-cp312-win_amd64.whl", hash = "sha256:1cb4ed918939151a03f33d4242ccd0aa5f11b3547d0cf30f7c74a408a5b99878", size = 107698, upload-time = "2025-10-08T22:01:16.51Z" }, + { url = "https://files.pythonhosted.org/packages/89/48/06ee6eabe4fdd9ecd48bf488f4ac783844fd777f547b8d1b61c11939974e/tomli-2.3.0-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:5192f562738228945d7b13d4930baffda67b69425a7f0da96d360b0a3888136b", size = 154819, upload-time = "2025-10-08T22:01:17.964Z" }, + { url = "https://files.pythonhosted.org/packages/f1/01/88793757d54d8937015c75dcdfb673c65471945f6be98e6a0410fba167ed/tomli-2.3.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:be71c93a63d738597996be9528f4abe628d1adf5e6eb11607bc8fe1a510b5dae", size = 148766, upload-time = "2025-10-08T22:01:18.959Z" }, + { url = "https://files.pythonhosted.org/packages/42/17/5e2c956f0144b812e7e107f94f1cc54af734eb17b5191c0bbfb72de5e93e/tomli-2.3.0-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:c4665508bcbac83a31ff8ab08f424b665200c0e1e645d2bd9ab3d3e557b6185b", size = 240771, upload-time = "2025-10-08T22:01:20.106Z" }, + { url = "https://files.pythonhosted.org/packages/d5/f4/0fbd014909748706c01d16824eadb0307115f9562a15cbb012cd9b3512c5/tomli-2.3.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:4021923f97266babc6ccab9f5068642a0095faa0a51a246a6a02fccbb3514eaf", size = 248586, upload-time = "2025-10-08T22:01:21.164Z" }, + { url = "https://files.pythonhosted.org/packages/30/77/fed85e114bde5e81ecf9bc5da0cc69f2914b38f4708c80ae67d0c10180c5/tomli-2.3.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:a4ea38c40145a357d513bffad0ed869f13c1773716cf71ccaa83b0fa0cc4e42f", size = 244792, upload-time = "2025-10-08T22:01:22.417Z" }, + { url = "https://files.pythonhosted.org/packages/55/92/afed3d497f7c186dc71e6ee6d4fcb0acfa5f7d0a1a2878f8beae379ae0cc/tomli-2.3.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:ad805ea85eda330dbad64c7ea7a4556259665bdf9d2672f5dccc740eb9d3ca05", size = 248909, upload-time = "2025-10-08T22:01:23.859Z" }, + { url = "https://files.pythonhosted.org/packages/f8/84/ef50c51b5a9472e7265ce1ffc7f24cd4023d289e109f669bdb1553f6a7c2/tomli-2.3.0-cp313-cp313-win32.whl", hash = "sha256:97d5eec30149fd3294270e889b4234023f2c69747e555a27bd708828353ab606", size = 96946, upload-time = "2025-10-08T22:01:24.893Z" }, + { url = "https://files.pythonhosted.org/packages/b2/b7/718cd1da0884f281f95ccfa3a6cc572d30053cba64603f79d431d3c9b61b/tomli-2.3.0-cp313-cp313-win_amd64.whl", hash = "sha256:0c95ca56fbe89e065c6ead5b593ee64b84a26fca063b5d71a1122bf26e533999", size = 107705, upload-time = "2025-10-08T22:01:26.153Z" }, + { url = "https://files.pythonhosted.org/packages/19/94/aeafa14a52e16163008060506fcb6aa1949d13548d13752171a755c65611/tomli-2.3.0-cp314-cp314-macosx_10_13_x86_64.whl", hash = "sha256:cebc6fe843e0733ee827a282aca4999b596241195f43b4cc371d64fc6639da9e", size = 154244, upload-time = "2025-10-08T22:01:27.06Z" }, + { url = "https://files.pythonhosted.org/packages/db/e4/1e58409aa78eefa47ccd19779fc6f36787edbe7d4cd330eeeedb33a4515b/tomli-2.3.0-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:4c2ef0244c75aba9355561272009d934953817c49f47d768070c3c94355c2aa3", size = 148637, upload-time = "2025-10-08T22:01:28.059Z" }, + { url = "https://files.pythonhosted.org/packages/26/b6/d1eccb62f665e44359226811064596dd6a366ea1f985839c566cd61525ae/tomli-2.3.0-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:c22a8bf253bacc0cf11f35ad9808b6cb75ada2631c2d97c971122583b129afbc", size = 241925, upload-time = "2025-10-08T22:01:29.066Z" }, + { url = "https://files.pythonhosted.org/packages/70/91/7cdab9a03e6d3d2bb11beae108da5bdc1c34bdeb06e21163482544ddcc90/tomli-2.3.0-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:0eea8cc5c5e9f89c9b90c4896a8deefc74f518db5927d0e0e8d4a80953d774d0", size = 249045, upload-time = "2025-10-08T22:01:31.98Z" }, + { url = "https://files.pythonhosted.org/packages/15/1b/8c26874ed1f6e4f1fcfeb868db8a794cbe9f227299402db58cfcc858766c/tomli-2.3.0-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:b74a0e59ec5d15127acdabd75ea17726ac4c5178ae51b85bfe39c4f8a278e879", size = 245835, upload-time = "2025-10-08T22:01:32.989Z" }, + { url = "https://files.pythonhosted.org/packages/fd/42/8e3c6a9a4b1a1360c1a2a39f0b972cef2cc9ebd56025168c4137192a9321/tomli-2.3.0-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:b5870b50c9db823c595983571d1296a6ff3e1b88f734a4c8f6fc6188397de005", size = 253109, upload-time = "2025-10-08T22:01:34.052Z" }, + { url = "https://files.pythonhosted.org/packages/22/0c/b4da635000a71b5f80130937eeac12e686eefb376b8dee113b4a582bba42/tomli-2.3.0-cp314-cp314-win32.whl", hash = "sha256:feb0dacc61170ed7ab602d3d972a58f14ee3ee60494292d384649a3dc38ef463", size = 97930, upload-time = "2025-10-08T22:01:35.082Z" }, + { url = "https://files.pythonhosted.org/packages/b9/74/cb1abc870a418ae99cd5c9547d6bce30701a954e0e721821df483ef7223c/tomli-2.3.0-cp314-cp314-win_amd64.whl", hash = "sha256:b273fcbd7fc64dc3600c098e39136522650c49bca95df2d11cf3b626422392c8", size = 107964, upload-time = "2025-10-08T22:01:36.057Z" }, + { url = "https://files.pythonhosted.org/packages/54/78/5c46fff6432a712af9f792944f4fcd7067d8823157949f4e40c56b8b3c83/tomli-2.3.0-cp314-cp314t-macosx_10_13_x86_64.whl", hash = "sha256:940d56ee0410fa17ee1f12b817b37a4d4e4dc4d27340863cc67236c74f582e77", size = 163065, upload-time = "2025-10-08T22:01:37.27Z" }, + { url = "https://files.pythonhosted.org/packages/39/67/f85d9bd23182f45eca8939cd2bc7050e1f90c41f4a2ecbbd5963a1d1c486/tomli-2.3.0-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:f85209946d1fe94416debbb88d00eb92ce9cd5266775424ff81bc959e001acaf", size = 159088, upload-time = "2025-10-08T22:01:38.235Z" }, + { url = "https://files.pythonhosted.org/packages/26/5a/4b546a0405b9cc0659b399f12b6adb750757baf04250b148d3c5059fc4eb/tomli-2.3.0-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:a56212bdcce682e56b0aaf79e869ba5d15a6163f88d5451cbde388d48b13f530", size = 268193, upload-time = "2025-10-08T22:01:39.712Z" }, + { url = "https://files.pythonhosted.org/packages/42/4f/2c12a72ae22cf7b59a7fe75b3465b7aba40ea9145d026ba41cb382075b0e/tomli-2.3.0-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:c5f3ffd1e098dfc032d4d3af5c0ac64f6d286d98bc148698356847b80fa4de1b", size = 275488, upload-time = "2025-10-08T22:01:40.773Z" }, + { url = "https://files.pythonhosted.org/packages/92/04/a038d65dbe160c3aa5a624e93ad98111090f6804027d474ba9c37c8ae186/tomli-2.3.0-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:5e01decd096b1530d97d5d85cb4dff4af2d8347bd35686654a004f8dea20fc67", size = 272669, upload-time = "2025-10-08T22:01:41.824Z" }, + { url = "https://files.pythonhosted.org/packages/be/2f/8b7c60a9d1612a7cbc39ffcca4f21a73bf368a80fc25bccf8253e2563267/tomli-2.3.0-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:8a35dd0e643bb2610f156cca8db95d213a90015c11fee76c946aa62b7ae7e02f", size = 279709, upload-time = "2025-10-08T22:01:43.177Z" }, + { url = "https://files.pythonhosted.org/packages/7e/46/cc36c679f09f27ded940281c38607716c86cf8ba4a518d524e349c8b4874/tomli-2.3.0-cp314-cp314t-win32.whl", hash = "sha256:a1f7f282fe248311650081faafa5f4732bdbfef5d45fe3f2e702fbc6f2d496e0", size = 107563, upload-time = "2025-10-08T22:01:44.233Z" }, + { url = "https://files.pythonhosted.org/packages/84/ff/426ca8683cf7b753614480484f6437f568fd2fda2edbdf57a2d3d8b27a0b/tomli-2.3.0-cp314-cp314t-win_amd64.whl", hash = "sha256:70a251f8d4ba2d9ac2542eecf008b3c8a9fc5c3f9f02c56a9d7952612be2fdba", size = 119756, upload-time = "2025-10-08T22:01:45.234Z" }, + { url = "https://files.pythonhosted.org/packages/77/b8/0135fadc89e73be292b473cb820b4f5a08197779206b33191e801feeae40/tomli-2.3.0-py3-none-any.whl", hash = "sha256:e95b1af3c5b07d9e643909b5abbec77cd9f1217e6d0bca72b0234736b9fb1f1b", size = 14408, upload-time = "2025-10-08T22:01:46.04Z" }, ] [[package]] @@ -1337,203 +1652,221 @@ source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "colorama", marker = "sys_platform == 'win32'" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/a8/4b/29b4ef32e036bb34e4ab51796dd745cdba7ed47ad142a9f4a1eb8e0c744d/tqdm-4.67.1.tar.gz", hash = "sha256:f8aef9c52c08c13a65f30ea34f4e5aac3fd1a34959879d7e59e63027286627f2", size = 169737 } +sdist = { url = "https://files.pythonhosted.org/packages/a8/4b/29b4ef32e036bb34e4ab51796dd745cdba7ed47ad142a9f4a1eb8e0c744d/tqdm-4.67.1.tar.gz", hash = "sha256:f8aef9c52c08c13a65f30ea34f4e5aac3fd1a34959879d7e59e63027286627f2", size = 169737, upload-time = "2024-11-24T20:12:22.481Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/d0/30/dc54f88dd4a2b5dc8a0279bdd7270e735851848b762aeb1c1184ed1f6b14/tqdm-4.67.1-py3-none-any.whl", hash = "sha256:26445eca388f82e72884e0d580d5464cd801a3ea01e63e5601bdff9ba6a48de2", size = 78540 }, -] - -[[package]] -name = "types-setuptools" -version = "78.1.0.20250329" -source = { registry = "https://pypi.org/simple" } -dependencies = [ - { name = "setuptools" }, -] -sdist = { url = "https://files.pythonhosted.org/packages/e9/6e/c54e6705e5fe67c3606e4c7c91123ecf10d7e1e6d7a9c11b52970cf2196c/types_setuptools-78.1.0.20250329.tar.gz", hash = "sha256:31e62950c38b8cc1c5114b077504e36426860a064287cac11b9666ab3a483234", size = 43942 } -wheels = [ - { url = "https://files.pythonhosted.org/packages/7d/31/85d0264705d8ef47680d28f4dc9bb1e27d8cace785fbe3f8d009fad6cb88/types_setuptools-78.1.0.20250329-py3-none-any.whl", hash = "sha256:ea47eab891afb506f470eee581dcde44d64dc99796665da794da6f83f50f6776", size = 66985 }, + { url = "https://files.pythonhosted.org/packages/d0/30/dc54f88dd4a2b5dc8a0279bdd7270e735851848b762aeb1c1184ed1f6b14/tqdm-4.67.1-py3-none-any.whl", hash = "sha256:26445eca388f82e72884e0d580d5464cd801a3ea01e63e5601bdff9ba6a48de2", size = 78540, upload-time = "2024-11-24T20:12:19.698Z" }, ] [[package]] name = "typing-extensions" -version = "4.13.2" +version = "4.15.0" source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/f6/37/23083fcd6e35492953e8d2aaaa68b860eb422b34627b13f2ce3eb6106061/typing_extensions-4.13.2.tar.gz", hash = "sha256:e6c81219bd689f51865d9e372991c540bda33a0379d5573cddb9a3a23f7caaef", size = 106967 } +sdist = { url = "https://files.pythonhosted.org/packages/72/94/1a15dd82efb362ac84269196e94cf00f187f7ed21c242792a923cdb1c61f/typing_extensions-4.15.0.tar.gz", hash = "sha256:0cea48d173cc12fa28ecabc3b837ea3cf6f38c6d1136f85cbaaf598984861466", size = 109391, upload-time = "2025-08-25T13:49:26.313Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/8b/54/b1ae86c0973cc6f0210b53d508ca3641fb6d0c56823f288d108bc7ab3cc8/typing_extensions-4.13.2-py3-none-any.whl", hash = "sha256:a439e7c04b49fec3e5d3e2beaa21755cadbbdc391694e28ccdd36ca4a1408f8c", size = 45806 }, + { url = "https://files.pythonhosted.org/packages/18/67/36e9267722cc04a6b9f15c7f3441c2363321a3ea07da7ae0c0707beb2a9c/typing_extensions-4.15.0-py3-none-any.whl", hash = "sha256:f0fa19c6845758ab08074a0cfa8b7aecb71c999ca73d62883bc25cc018c4e548", size = 44614, upload-time = "2025-08-25T13:49:24.86Z" }, ] [[package]] name = "tzdata" version = "2025.2" source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/95/32/1a225d6164441be760d75c2c42e2780dc0873fe382da3e98a2e1e48361e5/tzdata-2025.2.tar.gz", hash = "sha256:b60a638fcc0daffadf82fe0f57e53d06bdec2f36c4df66280ae79bce6bd6f2b9", size = 196380 } +sdist = { url = "https://files.pythonhosted.org/packages/95/32/1a225d6164441be760d75c2c42e2780dc0873fe382da3e98a2e1e48361e5/tzdata-2025.2.tar.gz", hash = "sha256:b60a638fcc0daffadf82fe0f57e53d06bdec2f36c4df66280ae79bce6bd6f2b9", size = 196380, upload-time = "2025-03-23T13:54:43.652Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/5c/23/c7abc0ca0a1526a0774eca151daeb8de62ec457e77262b66b359c3c7679e/tzdata-2025.2-py2.py3-none-any.whl", hash = "sha256:1a403fada01ff9221ca8044d701868fa132215d84beb92242d9acd2147f667a8", size = 347839 }, + { url = "https://files.pythonhosted.org/packages/5c/23/c7abc0ca0a1526a0774eca151daeb8de62ec457e77262b66b359c3c7679e/tzdata-2025.2-py2.py3-none-any.whl", hash = "sha256:1a403fada01ff9221ca8044d701868fa132215d84beb92242d9acd2147f667a8", size = 347839, upload-time = "2025-03-23T13:54:41.845Z" }, ] [[package]] name = "url-normalize" -version = "2.2.0" +version = "2.2.1" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "idna" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/1c/94/d79b960d66b933492f7dfbec8db799fa7033e7fbc98090f46fa581ca3a94/url_normalize-2.2.0.tar.gz", hash = "sha256:0f0b7cc95a95d2d9b0c9a51d47a326559bc05bd1558accdada21bb0c9504de85", size = 18201 } +sdist = { url = "https://files.pythonhosted.org/packages/80/31/febb777441e5fcdaacb4522316bf2a527c44551430a4873b052d545e3279/url_normalize-2.2.1.tar.gz", hash = "sha256:74a540a3b6eba1d95bdc610c24f2c0141639f3ba903501e61a52a8730247ff37", size = 18846, upload-time = "2025-04-26T20:37:58.553Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/f9/ce/73b35517cf49836ed8c7ca74c7da7808feca367788986f38e5e63f93e6cf/url_normalize-2.2.0-py3-none-any.whl", hash = "sha256:3fe387b62f5b66db94304bc703bf6d34de52aaa9590d4d1f1bbdf305a1430064", size = 14234 }, + { url = "https://files.pythonhosted.org/packages/bc/d9/5ec15501b675f7bc07c5d16aa70d8d778b12375686b6efd47656efdc67cd/url_normalize-2.2.1-py3-none-any.whl", hash = "sha256:3deb687587dc91f7b25c9ae5162ffc0f057ae85d22b1e15cf5698311247f567b", size = 14728, upload-time = "2025-04-26T20:37:57.217Z" }, ] [[package]] name = "urllib3" -version = "2.4.0" +version = "2.5.0" source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/8a/78/16493d9c386d8e60e442a35feac5e00f0913c0f4b7c217c11e8ec2ff53e0/urllib3-2.4.0.tar.gz", hash = "sha256:414bc6535b787febd7567804cc015fee39daab8ad86268f1310a9250697de466", size = 390672 } +sdist = { url = "https://files.pythonhosted.org/packages/15/22/9ee70a2574a4f4599c47dd506532914ce044817c7752a79b6a51286319bc/urllib3-2.5.0.tar.gz", hash = "sha256:3fc47733c7e419d4bc3f6b3dc2b4f890bb743906a30d56ba4a5bfa4bbff92760", size = 393185, upload-time = "2025-06-18T14:07:41.644Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/6b/11/cc635220681e93a0183390e26485430ca2c7b5f9d33b15c74c2861cb8091/urllib3-2.4.0-py3-none-any.whl", hash = "sha256:4e16665048960a0900c702d4a66415956a584919c03361cac9f1df5c5dd7e813", size = 128680 }, + { url = "https://files.pythonhosted.org/packages/a7/c2/fe1e52489ae3122415c51f387e221dd0773709bad6c6cdaa599e8a2c5185/urllib3-2.5.0-py3-none-any.whl", hash = "sha256:e6b01673c0fa6a13e374b50871808eb3bf7046c4b125b216f6bf1cc604cff0dc", size = 129795, upload-time = "2025-06-18T14:07:40.39Z" }, ] [[package]] name = "uv" -version = "0.6.14" -source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/e5/eb/07bc000a3c05372448b63c45da98630c532ec4e059d848488c3e774d017a/uv-0.6.14.tar.gz", hash = "sha256:a117466f307d164a74444949cc94ec4328ec880fb489cbaa7df324dab14c5c98", size = 3134567 } -wheels = [ - { url = "https://files.pythonhosted.org/packages/6b/bf/3e87dec7728b249458967f39a301376cb776e559c90261c1dac963686dc3/uv-0.6.14-py3-none-linux_armv6l.whl", hash = "sha256:c775e5d7a80ff43cb88856bbdcd838918d5ac3dc362414317e6bbaeb615fff98", size = 16228143 }, - { url = "https://files.pythonhosted.org/packages/24/b2/111e1ea40453d93c849f36a67397b51d9b458e6e598c3629ffe76d11b490/uv-0.6.14-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:2578f6f8cdbcc036ffad1043f9f66ade3ac0babf29def6abd9eefd4a7c6621cb", size = 16273279 }, - { url = "https://files.pythonhosted.org/packages/72/89/e7fc8a047f08234cc26d1e37e5f573887744205d087f8e8e6f3d0feb04ce/uv-0.6.14-py3-none-macosx_11_0_arm64.whl", hash = "sha256:9fc8fe58871b4fe02a863b05b8b1b25ef1b6c60d4d224e85338f5c2be0ab4f0e", size = 15115451 }, - { url = "https://files.pythonhosted.org/packages/20/1e/72ac3d1e0805d3b49b0a4de46483489ea1989827440f42b0cfb444cdc67f/uv-0.6.14-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.musllinux_1_1_aarch64.whl", hash = "sha256:2fb2cd7f6aae21b81474b0051d30e7ed939a9a71714948c47f58b0e7acdd2a80", size = 15540456 }, - { url = "https://files.pythonhosted.org/packages/fd/47/5aeb7fb80c673bc28ccf3ab99e376b1cd92eac41af6b9b48c0e38b114c54/uv-0.6.14-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:d6ca3f99c1a6c1c430ae8f451133fb4e8c3a22f661c257425402a5d9430bb797", size = 15979820 }, - { url = "https://files.pythonhosted.org/packages/1f/44/c3ad856473f2ef5f22c865a73a0a37ee82d11fcca78ae82f5ac895a7023a/uv-0.6.14-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:ed41877b679e0a1af9ab65427d829b87a81b499017e59c70756d4ba02ca43fcb", size = 16650494 }, - { url = "https://files.pythonhosted.org/packages/7a/f6/8a1245530c282d470909db78cf56831693c58b90d9b819e35aa2d85fbbe8/uv-0.6.14-py3-none-manylinux_2_17_ppc64.manylinux2014_ppc64.whl", hash = "sha256:fe9b4361b1c8055301b715fdd94d94eb512053dc4545fec40d3fe3657f655987", size = 17505028 }, - { url = "https://files.pythonhosted.org/packages/a5/70/0806268440651e2ad1b3542af42b800e20bb7e43050a9ca78f3d1eb4c660/uv-0.6.14-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:998b67bb1cebbe044fc2c5cb251c29cffc56f62a6d55719d6f4e960461d6edad", size = 17245854 }, - { url = "https://files.pythonhosted.org/packages/2a/3a/0da9780868626466d8c4977fb02d1b0daa80e6f7504d7b662cae3fb4af3d/uv-0.6.14-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:6d433925db6e2ef46047b68962d136ff2ef17a7b5609168615f19e60674232c9", size = 21584756 }, - { url = "https://files.pythonhosted.org/packages/eb/fd/21a82b78173be1a2ea20f4f55154e7252bd80d21ed60b9bbbc0e2047b8d0/uv-0.6.14-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:36aaeb00a70a10f748e16c7a1fc410862e2ba905806e7e9dfbc3e64596309404", size = 16878847 }, - { url = "https://files.pythonhosted.org/packages/6c/9a/7c84650ae9fb801ecc848d49dcba201243989d9234fe3ec4a4e935ff21c0/uv-0.6.14-py3-none-manylinux_2_28_aarch64.whl", hash = "sha256:11779beb3bd1f92814bc8d8cd350d5228e8f9198cca2f52138b53030a4061d93", size = 15810089 }, - { url = "https://files.pythonhosted.org/packages/0b/b3/efcbd3a2d298801109b24feee655bb80fe4178aa6bf68e49664c48b342b2/uv-0.6.14-py3-none-musllinux_1_1_armv7l.whl", hash = "sha256:bf1ec103cf9a0850f03935dc6a93cacc680fa2c90c3b41cfc10da311afab8f5b", size = 15962056 }, - { url = "https://files.pythonhosted.org/packages/3f/53/c92c894cb34e9578c2e6dc195bcd4eb0a140dd57c96a60207d847521a902/uv-0.6.14-py3-none-musllinux_1_1_i686.whl", hash = "sha256:955e36c98a438a249e178988d4f13b1bb831eb57264d73c459f171b5afd7b023", size = 16255226 }, - { url = "https://files.pythonhosted.org/packages/df/eb/38bc37856691d53008bf094d03d9e7ab0c2927523a3901c83e152e7c9915/uv-0.6.14-py3-none-musllinux_1_1_x86_64.whl", hash = "sha256:2d534e7dc1299c8b53eb7b4c7575e4f0933673ea8b1275d3f3022f5670e311db", size = 17005225 }, - { url = "https://files.pythonhosted.org/packages/d8/fe/087d5193603e16bc5f67556d94cf8fa8634785c5863cccdec825f14e9a4c/uv-0.6.14-py3-none-win32.whl", hash = "sha256:7cdf3c8d927b07d4eaffc44809eb57523d449705f10dabbdd6f34f7bdfc7d5fe", size = 16131231 }, - { url = "https://files.pythonhosted.org/packages/40/17/33c5c1503c35c874932d4a21ec10a55051e3695dba12b7de700bcfad0cca/uv-0.6.14-py3-none-win_amd64.whl", hash = "sha256:012f46bef6909209c4a6749e4019eb755ba762d37d7ceaaf76da9cb4b7f771e9", size = 17628508 }, - { url = "https://files.pythonhosted.org/packages/77/09/163062d439ddc0d89e527ae0e631abf1f7781b183442d8823c48af368f5d/uv-0.6.14-py3-none-win_arm64.whl", hash = "sha256:7465081b4d0b213d0055ccb48de7fe546b5cf0853c6d3601115760760634f6d8", size = 16387232 }, +version = "0.9.7" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/cc/f6/9914f57d152cfcb85f3a26f8fbac3c88e4eb9cbe88639076241e16819334/uv-0.9.7.tar.gz", hash = "sha256:555ee72146b8782c73d755e4a21c9885c6bfc81db0ffca2220d52dddae007eb7", size = 3705596, upload-time = "2025-10-30T22:17:18.652Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/58/38/cee64a9dcefd46f83a922c4e31d9cd9d91ce0d27a594192f7df677151eb4/uv-0.9.7-py3-none-linux_armv6l.whl", hash = "sha256:134e0daac56f9e399ccdfc9e4635bc0a13c234cad9224994c67bae462e07399a", size = 20614967, upload-time = "2025-10-30T22:16:31.274Z" }, + { url = "https://files.pythonhosted.org/packages/6f/b7/1b1ff8dfde05e9d27abf29ebf22da48428fe1e16f0b4d65a839bd2211303/uv-0.9.7-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:1aaf79b4234400e9e2fbf5b50b091726ccbb0b6d4d032edd3dfd4c9673d89dca", size = 19692886, upload-time = "2025-10-30T22:16:35.893Z" }, + { url = "https://files.pythonhosted.org/packages/f5/7d/b618174d8a8216af350398ace03805b2b2df6267b1745abf45556c2fda58/uv-0.9.7-py3-none-macosx_11_0_arm64.whl", hash = "sha256:0fdbfad5b367e7a3968264af6da5bbfffd4944a90319042f166e8df1a2d9de09", size = 18345022, upload-time = "2025-10-30T22:16:38.45Z" }, + { url = "https://files.pythonhosted.org/packages/13/4c/03fafb7d28289d54ac7a34507f1e97e527971f8b0ee2c5e957045966a1a6/uv-0.9.7-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.musllinux_1_1_aarch64.whl", hash = "sha256:635e82c2d0d8b001618af82e4f2724350f15814f6462a71b3ebd44adec21f03c", size = 20170427, upload-time = "2025-10-30T22:16:41.099Z" }, + { url = "https://files.pythonhosted.org/packages/35/0e/f1316da150453755bb88cf4232e8934de71a0091eb274a8b69d948535453/uv-0.9.7-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:56a440ccde7624a7bc070e1c2492b358c67aea9b8f17bc243ea27c5871c8d02c", size = 20234277, upload-time = "2025-10-30T22:16:43.521Z" }, + { url = "https://files.pythonhosted.org/packages/37/b8/cb62cd78151b235c5da9290f0e3fb032b36706f2922208a691678aa0f2df/uv-0.9.7-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:b5f1fb8203a77853db176000e8f30d5815ab175dc46199db059f97a72fc51110", size = 21180078, upload-time = "2025-10-30T22:16:45.857Z" }, + { url = "https://files.pythonhosted.org/packages/be/e5/6107249d23f06fa1739496e89699e76169037b4643144b28b324efc3075d/uv-0.9.7-py3-none-manylinux_2_17_ppc64.manylinux2014_ppc64.whl", hash = "sha256:bb8bfcc2897f7653522abc2cae80233af756ad857bfbbbbe176f79460cbba417", size = 22743896, upload-time = "2025-10-30T22:16:48.487Z" }, + { url = "https://files.pythonhosted.org/packages/df/94/69d8e0bb29c140305e7677bc8c98c765468a55cb10966e77bb8c69bf815d/uv-0.9.7-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:89697fa0d7384ba047daf75df844ee7800235105e41d08e0c876861a2b4aa90e", size = 22361126, upload-time = "2025-10-30T22:16:51.366Z" }, + { url = "https://files.pythonhosted.org/packages/c0/0d/d186456cd0d7972ed026e5977b8a12e1f94c923fc3d6e86c7826c6f0d1fe/uv-0.9.7-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:c9810ee8173dce129c49b338d5e97f3d7c7e9435f73e0b9b26c2f37743d3bb9e", size = 21477489, upload-time = "2025-10-30T22:16:53.757Z" }, + { url = "https://files.pythonhosted.org/packages/c7/59/61d8e9f1734069049abe9e593961de602397c7194712346906c075fec65f/uv-0.9.7-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:8cf6bc2482d1293cc630f66b862b494c09acda9b7faff7307ef52667a2b3ad49", size = 21382006, upload-time = "2025-10-30T22:16:56.117Z" }, + { url = "https://files.pythonhosted.org/packages/74/ac/090dbde63abb56001190392d29ca2aa654eebc146a693b5dda68da0df2fb/uv-0.9.7-py3-none-manylinux_2_28_aarch64.whl", hash = "sha256:7019f4416925f4091b9d28c1cf3e8444cf910c4ede76bdf1f6b9a56ca5f97985", size = 20255103, upload-time = "2025-10-30T22:16:58.434Z" }, + { url = "https://files.pythonhosted.org/packages/56/e7/ca2d99a4ce86366731547a84b5a2c946528b8d6d28c74ac659c925955a0c/uv-0.9.7-py3-none-manylinux_2_31_riscv64.whl", hash = "sha256:edd768f6730bba06aa10fdbd80ee064569f7236806f636bf65b68136a430aad0", size = 21311768, upload-time = "2025-10-30T22:17:01.259Z" }, + { url = "https://files.pythonhosted.org/packages/d8/1a/c5d9e57f52aa30bfee703e6b9e5b5072102cfc706f3444377bb0de79eac7/uv-0.9.7-py3-none-musllinux_1_1_armv7l.whl", hash = "sha256:d6e5fe28ca05a4b576c0e8da5f69251dc187a67054829cfc4afb2bfa1767114b", size = 20239129, upload-time = "2025-10-30T22:17:03.815Z" }, + { url = "https://files.pythonhosted.org/packages/aa/ab/16110ca6b1c4aaad79b4f2c6bc102c416a906e5d29947d0dc774f6ef4365/uv-0.9.7-py3-none-musllinux_1_1_i686.whl", hash = "sha256:34fe0af83fcafb9e2b786f4bd633a06c878d548a7c479594ffb5607db8778471", size = 20647326, upload-time = "2025-10-30T22:17:06.33Z" }, + { url = "https://files.pythonhosted.org/packages/89/a9/2a8129c796831279cc0c53ffdd19dd6133d514805e52b1ef8a2aa0ff8912/uv-0.9.7-py3-none-musllinux_1_1_x86_64.whl", hash = "sha256:777bb1de174319245a35e4f805d3b4484d006ebedae71d3546f95e7c28a5f436", size = 21604958, upload-time = "2025-10-30T22:17:09.046Z" }, + { url = "https://files.pythonhosted.org/packages/73/97/616650cb4dd5fbaabf8237469e1bc84710ae878095d359999982e1bc8ecf/uv-0.9.7-py3-none-win32.whl", hash = "sha256:bcf878528bd079fe8ae15928b5dfa232fac8b0e1854a2102da6ae1a833c31276", size = 19418913, upload-time = "2025-10-30T22:17:11.384Z" }, + { url = "https://files.pythonhosted.org/packages/de/7f/e3cdaffac70852f5ff933b04c7b8a06c0f91f41e563f04b689caa65b71bd/uv-0.9.7-py3-none-win_amd64.whl", hash = "sha256:62b315f62669899076a1953fba6baf50bd2b57f66f656280491331dcedd7e6c6", size = 21443513, upload-time = "2025-10-30T22:17:13.785Z" }, + { url = "https://files.pythonhosted.org/packages/89/79/8278452acae2fe96829485d32e1a2363829c9e42674704562ffcfc06b140/uv-0.9.7-py3-none-win_arm64.whl", hash = "sha256:d13da6521d4e841b1e0a9fda82e793dcf8458a323a9e8955f50903479d0bfa97", size = 19946729, upload-time = "2025-10-30T22:17:16.669Z" }, ] [[package]] name = "venvmngr" -version = "0.1.14" +version = "0.2.0" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "packaging", marker = "sys_platform != 'emscripten'" }, + { name = "psutil", marker = "sys_platform != 'emscripten'" }, { name = "requests", marker = "sys_platform != 'emscripten'" }, { name = "subprocess-monitor", marker = "sys_platform != 'emscripten'" }, { name = "uv", marker = "sys_platform != 'emscripten'" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/87/1d/811ae8948c35e1d513c29d789f40e4c1c2b0dfc0a87c89e088be01b8cf8c/venvmngr-0.1.14.tar.gz", hash = "sha256:1f7d1e4d14188e0e45df8b52e1aebc4dc8c2c694aa08a8e741f4931afd09d5d2", size = 9251 } +sdist = { url = "https://files.pythonhosted.org/packages/67/6b/eb6f900a5c319c8728326fddfd39297be59fb429c3d6fa213922385b23e0/venvmngr-0.2.0.tar.gz", hash = "sha256:3edd4d31a068a23fa081542b3d0ce53d2f92d95e0eee5881e4c95b25d074f8d5", size = 125610, upload-time = "2025-10-18T13:03:11.971Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/ee/04/7a75503e85b0c1fb81438ac9023d3117f769021642077424ce0f90dda3fe/venvmngr-0.1.14-py3-none-any.whl", hash = "sha256:6d65d49e0e92e6ceaa69588ec54136305e9086b0f9aa5ac0cff0c6fde105a6ce", size = 12921 }, + { url = "https://files.pythonhosted.org/packages/cc/01/a71620f0d11ab4a715f0265c554d98d44553be99ce7bb5a90db31def9328/venvmngr-0.2.0-py3-none-any.whl", hash = "sha256:c4858b3d07137e8ef65b055034a92011c053b7a55c169e10e6c8d7b17b730669", size = 20607, upload-time = "2025-10-18T13:03:10.337Z" }, ] [[package]] name = "virtualenv" -version = "20.30.0" +version = "20.35.4" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "distlib" }, { name = "filelock" }, { name = "platformdirs" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/38/e0/633e369b91bbc664df47dcb5454b6c7cf441e8f5b9d0c250ce9f0546401e/virtualenv-20.30.0.tar.gz", hash = "sha256:800863162bcaa5450a6e4d721049730e7f2dae07720e0902b0e4040bd6f9ada8", size = 4346945 } +sdist = { url = "https://files.pythonhosted.org/packages/20/28/e6f1a6f655d620846bd9df527390ecc26b3805a0c5989048c210e22c5ca9/virtualenv-20.35.4.tar.gz", hash = "sha256:643d3914d73d3eeb0c552cbb12d7e82adf0e504dbf86a3182f8771a153a1971c", size = 6028799, upload-time = "2025-10-29T06:57:40.511Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/4c/ed/3cfeb48175f0671ec430ede81f628f9fb2b1084c9064ca67ebe8c0ed6a05/virtualenv-20.30.0-py3-none-any.whl", hash = "sha256:e34302959180fca3af42d1800df014b35019490b119eba981af27f2fa486e5d6", size = 4329461 }, + { url = "https://files.pythonhosted.org/packages/79/0c/c05523fa3181fdf0c9c52a6ba91a23fbf3246cc095f26f6516f9c60e6771/virtualenv-20.35.4-py3-none-any.whl", hash = "sha256:c21c9cede36c9753eeade68ba7d523529f228a403463376cf821eaae2b650f1b", size = 6005095, upload-time = "2025-10-29T06:57:37.598Z" }, ] [[package]] name = "win32-setctime" version = "1.2.0" source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/b3/8f/705086c9d734d3b663af0e9bb3d4de6578d08f46b1b101c2442fd9aecaa2/win32_setctime-1.2.0.tar.gz", hash = "sha256:ae1fdf948f5640aae05c511ade119313fb6a30d7eabe25fef9764dca5873c4c0", size = 4867 } +sdist = { url = "https://files.pythonhosted.org/packages/b3/8f/705086c9d734d3b663af0e9bb3d4de6578d08f46b1b101c2442fd9aecaa2/win32_setctime-1.2.0.tar.gz", hash = "sha256:ae1fdf948f5640aae05c511ade119313fb6a30d7eabe25fef9764dca5873c4c0", size = 4867, upload-time = "2024-12-07T15:28:28.314Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/e1/07/c6fe3ad3e685340704d314d765b7912993bcb8dc198f0e7a89382d37974b/win32_setctime-1.2.0-py3-none-any.whl", hash = "sha256:95d644c4e708aba81dc3704a116d8cbc974d70b3bdb8be1d150e36be6e9d1390", size = 4083 }, + { url = "https://files.pythonhosted.org/packages/e1/07/c6fe3ad3e685340704d314d765b7912993bcb8dc198f0e7a89382d37974b/win32_setctime-1.2.0-py3-none-any.whl", hash = "sha256:95d644c4e708aba81dc3704a116d8cbc974d70b3bdb8be1d150e36be6e9d1390", size = 4083, upload-time = "2024-12-07T15:28:26.465Z" }, ] [[package]] name = "yarl" -version = "1.20.0" +version = "1.22.0" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "idna", marker = "sys_platform != 'emscripten'" }, { name = "multidict", marker = "sys_platform != 'emscripten'" }, { name = "propcache", marker = "sys_platform != 'emscripten'" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/62/51/c0edba5219027f6eab262e139f73e2417b0f4efffa23bf562f6e18f76ca5/yarl-1.20.0.tar.gz", hash = "sha256:686d51e51ee5dfe62dec86e4866ee0e9ed66df700d55c828a615640adc885307", size = 185258 } -wheels = [ - { url = "https://files.pythonhosted.org/packages/60/82/a59d8e21b20ffc836775fa7daedac51d16bb8f3010c4fcb495c4496aa922/yarl-1.20.0-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:fdb5204d17cb32b2de2d1e21c7461cabfacf17f3645e4b9039f210c5d3378bf3", size = 145178 }, - { url = "https://files.pythonhosted.org/packages/ba/81/315a3f6f95947cfbf37c92d6fbce42a1a6207b6c38e8c2b452499ec7d449/yarl-1.20.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:eaddd7804d8e77d67c28d154ae5fab203163bd0998769569861258e525039d2a", size = 96859 }, - { url = "https://files.pythonhosted.org/packages/ad/17/9b64e575583158551b72272a1023cdbd65af54fe13421d856b2850a6ddb7/yarl-1.20.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:634b7ba6b4a85cf67e9df7c13a7fb2e44fa37b5d34501038d174a63eaac25ee2", size = 94647 }, - { url = "https://files.pythonhosted.org/packages/2c/29/8f291e7922a58a21349683f6120a85701aeefaa02e9f7c8a2dc24fe3f431/yarl-1.20.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:6d409e321e4addf7d97ee84162538c7258e53792eb7c6defd0c33647d754172e", size = 355788 }, - { url = "https://files.pythonhosted.org/packages/26/6d/b4892c80b805c42c228c6d11e03cafabf81662d371b0853e7f0f513837d5/yarl-1.20.0-cp311-cp311-manylinux_2_17_armv7l.manylinux2014_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:ea52f7328a36960ba3231c6677380fa67811b414798a6e071c7085c57b6d20a9", size = 344613 }, - { url = "https://files.pythonhosted.org/packages/d7/0e/517aa28d3f848589bae9593717b063a544b86ba0a807d943c70f48fcf3bb/yarl-1.20.0-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:c8703517b924463994c344dcdf99a2d5ce9eca2b6882bb640aa555fb5efc706a", size = 370953 }, - { url = "https://files.pythonhosted.org/packages/5f/9b/5bd09d2f1ad6e6f7c2beae9e50db78edd2cca4d194d227b958955573e240/yarl-1.20.0-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:077989b09ffd2f48fb2d8f6a86c5fef02f63ffe6b1dd4824c76de7bb01e4f2e2", size = 369204 }, - { url = "https://files.pythonhosted.org/packages/9c/85/d793a703cf4bd0d4cd04e4b13cc3d44149470f790230430331a0c1f52df5/yarl-1.20.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:0acfaf1da020253f3533526e8b7dd212838fdc4109959a2c53cafc6db611bff2", size = 358108 }, - { url = "https://files.pythonhosted.org/packages/6f/54/b6c71e13549c1f6048fbc14ce8d930ac5fb8bafe4f1a252e621a24f3f1f9/yarl-1.20.0-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:b4230ac0b97ec5eeb91d96b324d66060a43fd0d2a9b603e3327ed65f084e41f8", size = 346610 }, - { url = "https://files.pythonhosted.org/packages/a0/1a/d6087d58bdd0d8a2a37bbcdffac9d9721af6ebe50d85304d9f9b57dfd862/yarl-1.20.0-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:0a6a1e6ae21cdd84011c24c78d7a126425148b24d437b5702328e4ba640a8902", size = 365378 }, - { url = "https://files.pythonhosted.org/packages/02/84/e25ddff4cbc001dbc4af76f8d41a3e23818212dd1f0a52044cbc60568872/yarl-1.20.0-cp311-cp311-musllinux_1_2_armv7l.whl", hash = "sha256:86de313371ec04dd2531f30bc41a5a1a96f25a02823558ee0f2af0beaa7ca791", size = 356919 }, - { url = "https://files.pythonhosted.org/packages/04/76/898ae362353bf8f64636495d222c8014c8e5267df39b1a9fe1e1572fb7d0/yarl-1.20.0-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:dd59c9dd58ae16eaa0f48c3d0cbe6be8ab4dc7247c3ff7db678edecbaf59327f", size = 364248 }, - { url = "https://files.pythonhosted.org/packages/1b/b0/9d9198d83a622f1c40fdbf7bd13b224a6979f2e1fc2cf50bfb1d8773c495/yarl-1.20.0-cp311-cp311-musllinux_1_2_ppc64le.whl", hash = "sha256:a0bc5e05f457b7c1994cc29e83b58f540b76234ba6b9648a4971ddc7f6aa52da", size = 378418 }, - { url = "https://files.pythonhosted.org/packages/c7/ce/1f50c1cc594cf5d3f5bf4a9b616fca68680deaec8ad349d928445ac52eb8/yarl-1.20.0-cp311-cp311-musllinux_1_2_s390x.whl", hash = "sha256:c9471ca18e6aeb0e03276b5e9b27b14a54c052d370a9c0c04a68cefbd1455eb4", size = 383850 }, - { url = "https://files.pythonhosted.org/packages/89/1e/a59253a87b35bfec1a25bb5801fb69943330b67cfd266278eb07e0609012/yarl-1.20.0-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:40ed574b4df723583a26c04b298b283ff171bcc387bc34c2683235e2487a65a5", size = 381218 }, - { url = "https://files.pythonhosted.org/packages/85/b0/26f87df2b3044b0ef1a7cf66d321102bdca091db64c5ae853fcb2171c031/yarl-1.20.0-cp311-cp311-win32.whl", hash = "sha256:db243357c6c2bf3cd7e17080034ade668d54ce304d820c2a58514a4e51d0cfd6", size = 86606 }, - { url = "https://files.pythonhosted.org/packages/33/46/ca335c2e1f90446a77640a45eeb1cd8f6934f2c6e4df7db0f0f36ef9f025/yarl-1.20.0-cp311-cp311-win_amd64.whl", hash = "sha256:8c12cd754d9dbd14204c328915e23b0c361b88f3cffd124129955e60a4fbfcfb", size = 93374 }, - { url = "https://files.pythonhosted.org/packages/c3/e8/3efdcb83073df978bb5b1a9cc0360ce596680e6c3fac01f2a994ccbb8939/yarl-1.20.0-cp312-cp312-macosx_10_13_universal2.whl", hash = "sha256:e06b9f6cdd772f9b665e5ba8161968e11e403774114420737f7884b5bd7bdf6f", size = 147089 }, - { url = "https://files.pythonhosted.org/packages/60/c3/9e776e98ea350f76f94dd80b408eaa54e5092643dbf65fd9babcffb60509/yarl-1.20.0-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:b9ae2fbe54d859b3ade40290f60fe40e7f969d83d482e84d2c31b9bff03e359e", size = 97706 }, - { url = "https://files.pythonhosted.org/packages/0c/5b/45cdfb64a3b855ce074ae607b9fc40bc82e7613b94e7612b030255c93a09/yarl-1.20.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:6d12b8945250d80c67688602c891237994d203d42427cb14e36d1a732eda480e", size = 95719 }, - { url = "https://files.pythonhosted.org/packages/2d/4e/929633b249611eeed04e2f861a14ed001acca3ef9ec2a984a757b1515889/yarl-1.20.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:087e9731884621b162a3e06dc0d2d626e1542a617f65ba7cc7aeab279d55ad33", size = 343972 }, - { url = "https://files.pythonhosted.org/packages/49/fd/047535d326c913f1a90407a3baf7ff535b10098611eaef2c527e32e81ca1/yarl-1.20.0-cp312-cp312-manylinux_2_17_armv7l.manylinux2014_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:69df35468b66c1a6e6556248e6443ef0ec5f11a7a4428cf1f6281f1879220f58", size = 339639 }, - { url = "https://files.pythonhosted.org/packages/48/2f/11566f1176a78f4bafb0937c0072410b1b0d3640b297944a6a7a556e1d0b/yarl-1.20.0-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:3b2992fe29002fd0d4cbaea9428b09af9b8686a9024c840b8a2b8f4ea4abc16f", size = 353745 }, - { url = "https://files.pythonhosted.org/packages/26/17/07dfcf034d6ae8837b33988be66045dd52f878dfb1c4e8f80a7343f677be/yarl-1.20.0-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:4c903e0b42aab48abfbac668b5a9d7b6938e721a6341751331bcd7553de2dcae", size = 354178 }, - { url = "https://files.pythonhosted.org/packages/15/45/212604d3142d84b4065d5f8cab6582ed3d78e4cc250568ef2a36fe1cf0a5/yarl-1.20.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:bf099e2432131093cc611623e0b0bcc399b8cddd9a91eded8bfb50402ec35018", size = 349219 }, - { url = "https://files.pythonhosted.org/packages/e6/e0/a10b30f294111c5f1c682461e9459935c17d467a760c21e1f7db400ff499/yarl-1.20.0-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:8a7f62f5dc70a6c763bec9ebf922be52aa22863d9496a9a30124d65b489ea672", size = 337266 }, - { url = "https://files.pythonhosted.org/packages/33/a6/6efa1d85a675d25a46a167f9f3e80104cde317dfdf7f53f112ae6b16a60a/yarl-1.20.0-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:54ac15a8b60382b2bcefd9a289ee26dc0920cf59b05368c9b2b72450751c6eb8", size = 360873 }, - { url = "https://files.pythonhosted.org/packages/77/67/c8ab718cb98dfa2ae9ba0f97bf3cbb7d45d37f13fe1fbad25ac92940954e/yarl-1.20.0-cp312-cp312-musllinux_1_2_armv7l.whl", hash = "sha256:25b3bc0763a7aca16a0f1b5e8ef0f23829df11fb539a1b70476dcab28bd83da7", size = 360524 }, - { url = "https://files.pythonhosted.org/packages/bd/e8/c3f18660cea1bc73d9f8a2b3ef423def8dadbbae6c4afabdb920b73e0ead/yarl-1.20.0-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:b2586e36dc070fc8fad6270f93242124df68b379c3a251af534030a4a33ef594", size = 365370 }, - { url = "https://files.pythonhosted.org/packages/c9/99/33f3b97b065e62ff2d52817155a89cfa030a1a9b43fee7843ef560ad9603/yarl-1.20.0-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:866349da9d8c5290cfefb7fcc47721e94de3f315433613e01b435473be63daa6", size = 373297 }, - { url = "https://files.pythonhosted.org/packages/3d/89/7519e79e264a5f08653d2446b26d4724b01198a93a74d2e259291d538ab1/yarl-1.20.0-cp312-cp312-musllinux_1_2_s390x.whl", hash = "sha256:33bb660b390a0554d41f8ebec5cd4475502d84104b27e9b42f5321c5192bfcd1", size = 378771 }, - { url = "https://files.pythonhosted.org/packages/3a/58/6c460bbb884abd2917c3eef6f663a4a873f8dc6f498561fc0ad92231c113/yarl-1.20.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:737e9f171e5a07031cbee5e9180f6ce21a6c599b9d4b2c24d35df20a52fabf4b", size = 375000 }, - { url = "https://files.pythonhosted.org/packages/3b/2a/dd7ed1aa23fea996834278d7ff178f215b24324ee527df53d45e34d21d28/yarl-1.20.0-cp312-cp312-win32.whl", hash = "sha256:839de4c574169b6598d47ad61534e6981979ca2c820ccb77bf70f4311dd2cc64", size = 86355 }, - { url = "https://files.pythonhosted.org/packages/ca/c6/333fe0338305c0ac1c16d5aa7cc4841208d3252bbe62172e0051006b5445/yarl-1.20.0-cp312-cp312-win_amd64.whl", hash = "sha256:3d7dbbe44b443b0c4aa0971cb07dcb2c2060e4a9bf8d1301140a33a93c98e18c", size = 92904 }, - { url = "https://files.pythonhosted.org/packages/0f/6f/514c9bff2900c22a4f10e06297714dbaf98707143b37ff0bcba65a956221/yarl-1.20.0-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:2137810a20b933b1b1b7e5cf06a64c3ed3b4747b0e5d79c9447c00db0e2f752f", size = 145030 }, - { url = "https://files.pythonhosted.org/packages/4e/9d/f88da3fa319b8c9c813389bfb3463e8d777c62654c7168e580a13fadff05/yarl-1.20.0-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:447c5eadd750db8389804030d15f43d30435ed47af1313303ed82a62388176d3", size = 96894 }, - { url = "https://files.pythonhosted.org/packages/cd/57/92e83538580a6968b2451d6c89c5579938a7309d4785748e8ad42ddafdce/yarl-1.20.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:42fbe577272c203528d402eec8bf4b2d14fd49ecfec92272334270b850e9cd7d", size = 94457 }, - { url = "https://files.pythonhosted.org/packages/e9/ee/7ee43bd4cf82dddd5da97fcaddb6fa541ab81f3ed564c42f146c83ae17ce/yarl-1.20.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:18e321617de4ab170226cd15006a565d0fa0d908f11f724a2c9142d6b2812ab0", size = 343070 }, - { url = "https://files.pythonhosted.org/packages/4a/12/b5eccd1109e2097bcc494ba7dc5de156e41cf8309fab437ebb7c2b296ce3/yarl-1.20.0-cp313-cp313-manylinux_2_17_armv7l.manylinux2014_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:4345f58719825bba29895011e8e3b545e6e00257abb984f9f27fe923afca2501", size = 337739 }, - { url = "https://files.pythonhosted.org/packages/7d/6b/0eade8e49af9fc2585552f63c76fa59ef469c724cc05b29519b19aa3a6d5/yarl-1.20.0-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:5d9b980d7234614bc4674468ab173ed77d678349c860c3af83b1fffb6a837ddc", size = 351338 }, - { url = "https://files.pythonhosted.org/packages/45/cb/aaaa75d30087b5183c7b8a07b4fb16ae0682dd149a1719b3a28f54061754/yarl-1.20.0-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:af4baa8a445977831cbaa91a9a84cc09debb10bc8391f128da2f7bd070fc351d", size = 353636 }, - { url = "https://files.pythonhosted.org/packages/98/9d/d9cb39ec68a91ba6e66fa86d97003f58570327d6713833edf7ad6ce9dde5/yarl-1.20.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:123393db7420e71d6ce40d24885a9e65eb1edefc7a5228db2d62bcab3386a5c0", size = 348061 }, - { url = "https://files.pythonhosted.org/packages/72/6b/103940aae893d0cc770b4c36ce80e2ed86fcb863d48ea80a752b8bda9303/yarl-1.20.0-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:ab47acc9332f3de1b39e9b702d9c916af7f02656b2a86a474d9db4e53ef8fd7a", size = 334150 }, - { url = "https://files.pythonhosted.org/packages/ef/b2/986bd82aa222c3e6b211a69c9081ba46484cffa9fab2a5235e8d18ca7a27/yarl-1.20.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:4a34c52ed158f89876cba9c600b2c964dfc1ca52ba7b3ab6deb722d1d8be6df2", size = 362207 }, - { url = "https://files.pythonhosted.org/packages/14/7c/63f5922437b873795d9422cbe7eb2509d4b540c37ae5548a4bb68fd2c546/yarl-1.20.0-cp313-cp313-musllinux_1_2_armv7l.whl", hash = "sha256:04d8cfb12714158abf2618f792c77bc5c3d8c5f37353e79509608be4f18705c9", size = 361277 }, - { url = "https://files.pythonhosted.org/packages/81/83/450938cccf732466953406570bdb42c62b5ffb0ac7ac75a1f267773ab5c8/yarl-1.20.0-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:7dc63ad0d541c38b6ae2255aaa794434293964677d5c1ec5d0116b0e308031f5", size = 364990 }, - { url = "https://files.pythonhosted.org/packages/b4/de/af47d3a47e4a833693b9ec8e87debb20f09d9fdc9139b207b09a3e6cbd5a/yarl-1.20.0-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:f9d02b591a64e4e6ca18c5e3d925f11b559c763b950184a64cf47d74d7e41877", size = 374684 }, - { url = "https://files.pythonhosted.org/packages/62/0b/078bcc2d539f1faffdc7d32cb29a2d7caa65f1a6f7e40795d8485db21851/yarl-1.20.0-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:95fc9876f917cac7f757df80a5dda9de59d423568460fe75d128c813b9af558e", size = 382599 }, - { url = "https://files.pythonhosted.org/packages/74/a9/4fdb1a7899f1fb47fd1371e7ba9e94bff73439ce87099d5dd26d285fffe0/yarl-1.20.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:bb769ae5760cd1c6a712135ee7915f9d43f11d9ef769cb3f75a23e398a92d384", size = 378573 }, - { url = "https://files.pythonhosted.org/packages/fd/be/29f5156b7a319e4d2e5b51ce622b4dfb3aa8d8204cd2a8a339340fbfad40/yarl-1.20.0-cp313-cp313-win32.whl", hash = "sha256:70e0c580a0292c7414a1cead1e076c9786f685c1fc4757573d2967689b370e62", size = 86051 }, - { url = "https://files.pythonhosted.org/packages/52/56/05fa52c32c301da77ec0b5f63d2d9605946fe29defacb2a7ebd473c23b81/yarl-1.20.0-cp313-cp313-win_amd64.whl", hash = "sha256:4c43030e4b0af775a85be1fa0433119b1565673266a70bf87ef68a9d5ba3174c", size = 92742 }, - { url = "https://files.pythonhosted.org/packages/d4/2f/422546794196519152fc2e2f475f0e1d4d094a11995c81a465faf5673ffd/yarl-1.20.0-cp313-cp313t-macosx_10_13_universal2.whl", hash = "sha256:b6c4c3d0d6a0ae9b281e492b1465c72de433b782e6b5001c8e7249e085b69051", size = 163575 }, - { url = "https://files.pythonhosted.org/packages/90/fc/67c64ddab6c0b4a169d03c637fb2d2a212b536e1989dec8e7e2c92211b7f/yarl-1.20.0-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:8681700f4e4df891eafa4f69a439a6e7d480d64e52bf460918f58e443bd3da7d", size = 106121 }, - { url = "https://files.pythonhosted.org/packages/6d/00/29366b9eba7b6f6baed7d749f12add209b987c4cfbfa418404dbadc0f97c/yarl-1.20.0-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:84aeb556cb06c00652dbf87c17838eb6d92cfd317799a8092cee0e570ee11229", size = 103815 }, - { url = "https://files.pythonhosted.org/packages/28/f4/a2a4c967c8323c03689383dff73396281ced3b35d0ed140580825c826af7/yarl-1.20.0-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:f166eafa78810ddb383e930d62e623d288fb04ec566d1b4790099ae0f31485f1", size = 408231 }, - { url = "https://files.pythonhosted.org/packages/0f/a1/66f7ffc0915877d726b70cc7a896ac30b6ac5d1d2760613603b022173635/yarl-1.20.0-cp313-cp313t-manylinux_2_17_armv7l.manylinux2014_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:5d3d6d14754aefc7a458261027a562f024d4f6b8a798adb472277f675857b1eb", size = 390221 }, - { url = "https://files.pythonhosted.org/packages/41/15/cc248f0504610283271615e85bf38bc014224122498c2016d13a3a1b8426/yarl-1.20.0-cp313-cp313t-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:2a8f64df8ed5d04c51260dbae3cc82e5649834eebea9eadfd829837b8093eb00", size = 411400 }, - { url = "https://files.pythonhosted.org/packages/5c/af/f0823d7e092bfb97d24fce6c7269d67fcd1aefade97d0a8189c4452e4d5e/yarl-1.20.0-cp313-cp313t-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:4d9949eaf05b4d30e93e4034a7790634bbb41b8be2d07edd26754f2e38e491de", size = 411714 }, - { url = "https://files.pythonhosted.org/packages/83/70/be418329eae64b9f1b20ecdaac75d53aef098797d4c2299d82ae6f8e4663/yarl-1.20.0-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:9c366b254082d21cc4f08f522ac201d0d83a8b8447ab562732931d31d80eb2a5", size = 404279 }, - { url = "https://files.pythonhosted.org/packages/19/f5/52e02f0075f65b4914eb890eea1ba97e6fd91dd821cc33a623aa707b2f67/yarl-1.20.0-cp313-cp313t-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:91bc450c80a2e9685b10e34e41aef3d44ddf99b3a498717938926d05ca493f6a", size = 384044 }, - { url = "https://files.pythonhosted.org/packages/6a/36/b0fa25226b03d3f769c68d46170b3e92b00ab3853d73127273ba22474697/yarl-1.20.0-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:9c2aa4387de4bc3a5fe158080757748d16567119bef215bec643716b4fbf53f9", size = 416236 }, - { url = "https://files.pythonhosted.org/packages/cb/3a/54c828dd35f6831dfdd5a79e6c6b4302ae2c5feca24232a83cb75132b205/yarl-1.20.0-cp313-cp313t-musllinux_1_2_armv7l.whl", hash = "sha256:d2cbca6760a541189cf87ee54ff891e1d9ea6406079c66341008f7ef6ab61145", size = 402034 }, - { url = "https://files.pythonhosted.org/packages/10/97/c7bf5fba488f7e049f9ad69c1b8fdfe3daa2e8916b3d321aa049e361a55a/yarl-1.20.0-cp313-cp313t-musllinux_1_2_i686.whl", hash = "sha256:798a5074e656f06b9fad1a162be5a32da45237ce19d07884d0b67a0aa9d5fdda", size = 407943 }, - { url = "https://files.pythonhosted.org/packages/fd/a4/022d2555c1e8fcff08ad7f0f43e4df3aba34f135bff04dd35d5526ce54ab/yarl-1.20.0-cp313-cp313t-musllinux_1_2_ppc64le.whl", hash = "sha256:f106e75c454288472dbe615accef8248c686958c2e7dd3b8d8ee2669770d020f", size = 423058 }, - { url = "https://files.pythonhosted.org/packages/4c/f6/0873a05563e5df29ccf35345a6ae0ac9e66588b41fdb7043a65848f03139/yarl-1.20.0-cp313-cp313t-musllinux_1_2_s390x.whl", hash = "sha256:3b60a86551669c23dc5445010534d2c5d8a4e012163218fc9114e857c0586fdd", size = 423792 }, - { url = "https://files.pythonhosted.org/packages/9e/35/43fbbd082708fa42e923f314c24f8277a28483d219e049552e5007a9aaca/yarl-1.20.0-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:3e429857e341d5e8e15806118e0294f8073ba9c4580637e59ab7b238afca836f", size = 422242 }, - { url = "https://files.pythonhosted.org/packages/ed/f7/f0f2500cf0c469beb2050b522c7815c575811627e6d3eb9ec7550ddd0bfe/yarl-1.20.0-cp313-cp313t-win32.whl", hash = "sha256:65a4053580fe88a63e8e4056b427224cd01edfb5f951498bfefca4052f0ce0ac", size = 93816 }, - { url = "https://files.pythonhosted.org/packages/3f/93/f73b61353b2a699d489e782c3f5998b59f974ec3156a2050a52dfd7e8946/yarl-1.20.0-cp313-cp313t-win_amd64.whl", hash = "sha256:53b2da3a6ca0a541c1ae799c349788d480e5144cac47dba0266c7cb6c76151fe", size = 101093 }, - { url = "https://files.pythonhosted.org/packages/ea/1f/70c57b3d7278e94ed22d85e09685d3f0a38ebdd8c5c73b65ba4c0d0fe002/yarl-1.20.0-py3-none-any.whl", hash = "sha256:5d0fe6af927a47a230f31e6004621fd0959eaa915fc62acfafa67ff7229a3124", size = 46124 }, +sdist = { url = "https://files.pythonhosted.org/packages/57/63/0c6ebca57330cd313f6102b16dd57ffaf3ec4c83403dcb45dbd15c6f3ea1/yarl-1.22.0.tar.gz", hash = "sha256:bebf8557577d4401ba8bd9ff33906f1376c877aa78d1fe216ad01b4d6745af71", size = 187169, upload-time = "2025-10-06T14:12:55.963Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/4d/27/5ab13fc84c76a0250afd3d26d5936349a35be56ce5785447d6c423b26d92/yarl-1.22.0-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:1ab72135b1f2db3fed3997d7e7dc1b80573c67138023852b6efb336a5eae6511", size = 141607, upload-time = "2025-10-06T14:09:16.298Z" }, + { url = "https://files.pythonhosted.org/packages/6a/a1/d065d51d02dc02ce81501d476b9ed2229d9a990818332242a882d5d60340/yarl-1.22.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:669930400e375570189492dc8d8341301578e8493aec04aebc20d4717f899dd6", size = 94027, upload-time = "2025-10-06T14:09:17.786Z" }, + { url = "https://files.pythonhosted.org/packages/c1/da/8da9f6a53f67b5106ffe902c6fa0164e10398d4e150d85838b82f424072a/yarl-1.22.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:792a2af6d58177ef7c19cbf0097aba92ca1b9cb3ffdd9c7470e156c8f9b5e028", size = 94963, upload-time = "2025-10-06T14:09:19.662Z" }, + { url = "https://files.pythonhosted.org/packages/68/fe/2c1f674960c376e29cb0bec1249b117d11738db92a6ccc4a530b972648db/yarl-1.22.0-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:3ea66b1c11c9150f1372f69afb6b8116f2dd7286f38e14ea71a44eee9ec51b9d", size = 368406, upload-time = "2025-10-06T14:09:21.402Z" }, + { url = "https://files.pythonhosted.org/packages/95/26/812a540e1c3c6418fec60e9bbd38e871eaba9545e94fa5eff8f4a8e28e1e/yarl-1.22.0-cp311-cp311-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:3e2daa88dc91870215961e96a039ec73e4937da13cf77ce17f9cad0c18df3503", size = 336581, upload-time = "2025-10-06T14:09:22.98Z" }, + { url = "https://files.pythonhosted.org/packages/0b/f5/5777b19e26fdf98563985e481f8be3d8a39f8734147a6ebf459d0dab5a6b/yarl-1.22.0-cp311-cp311-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:ba440ae430c00eee41509353628600212112cd5018d5def7e9b05ea7ac34eb65", size = 388924, upload-time = "2025-10-06T14:09:24.655Z" }, + { url = "https://files.pythonhosted.org/packages/86/08/24bd2477bd59c0bbd994fe1d93b126e0472e4e3df5a96a277b0a55309e89/yarl-1.22.0-cp311-cp311-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:e6438cc8f23a9c1478633d216b16104a586b9761db62bfacb6425bac0a36679e", size = 392890, upload-time = "2025-10-06T14:09:26.617Z" }, + { url = "https://files.pythonhosted.org/packages/46/00/71b90ed48e895667ecfb1eaab27c1523ee2fa217433ed77a73b13205ca4b/yarl-1.22.0-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:4c52a6e78aef5cf47a98ef8e934755abf53953379b7d53e68b15ff4420e6683d", size = 365819, upload-time = "2025-10-06T14:09:28.544Z" }, + { url = "https://files.pythonhosted.org/packages/30/2d/f715501cae832651d3282387c6a9236cd26bd00d0ff1e404b3dc52447884/yarl-1.22.0-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:3b06bcadaac49c70f4c88af4ffcfbe3dc155aab3163e75777818092478bcbbe7", size = 363601, upload-time = "2025-10-06T14:09:30.568Z" }, + { url = "https://files.pythonhosted.org/packages/f8/f9/a678c992d78e394e7126ee0b0e4e71bd2775e4334d00a9278c06a6cce96a/yarl-1.22.0-cp311-cp311-musllinux_1_2_armv7l.whl", hash = "sha256:6944b2dc72c4d7f7052683487e3677456050ff77fcf5e6204e98caf785ad1967", size = 358072, upload-time = "2025-10-06T14:09:32.528Z" }, + { url = "https://files.pythonhosted.org/packages/2c/d1/b49454411a60edb6fefdcad4f8e6dbba7d8019e3a508a1c5836cba6d0781/yarl-1.22.0-cp311-cp311-musllinux_1_2_ppc64le.whl", hash = "sha256:d5372ca1df0f91a86b047d1277c2aaf1edb32d78bbcefffc81b40ffd18f027ed", size = 385311, upload-time = "2025-10-06T14:09:34.634Z" }, + { url = "https://files.pythonhosted.org/packages/87/e5/40d7a94debb8448c7771a916d1861d6609dddf7958dc381117e7ba36d9e8/yarl-1.22.0-cp311-cp311-musllinux_1_2_s390x.whl", hash = "sha256:51af598701f5299012b8416486b40fceef8c26fc87dc6d7d1f6fc30609ea0aa6", size = 381094, upload-time = "2025-10-06T14:09:36.268Z" }, + { url = "https://files.pythonhosted.org/packages/35/d8/611cc282502381ad855448643e1ad0538957fc82ae83dfe7762c14069e14/yarl-1.22.0-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:b266bd01fedeffeeac01a79ae181719ff848a5a13ce10075adbefc8f1daee70e", size = 370944, upload-time = "2025-10-06T14:09:37.872Z" }, + { url = "https://files.pythonhosted.org/packages/2d/df/fadd00fb1c90e1a5a8bd731fa3d3de2e165e5a3666a095b04e31b04d9cb6/yarl-1.22.0-cp311-cp311-win32.whl", hash = "sha256:a9b1ba5610a4e20f655258d5a1fdc7ebe3d837bb0e45b581398b99eb98b1f5ca", size = 81804, upload-time = "2025-10-06T14:09:39.359Z" }, + { url = "https://files.pythonhosted.org/packages/b5/f7/149bb6f45f267cb5c074ac40c01c6b3ea6d8a620d34b337f6321928a1b4d/yarl-1.22.0-cp311-cp311-win_amd64.whl", hash = "sha256:078278b9b0b11568937d9509b589ee83ef98ed6d561dfe2020e24a9fd08eaa2b", size = 86858, upload-time = "2025-10-06T14:09:41.068Z" }, + { url = "https://files.pythonhosted.org/packages/2b/13/88b78b93ad3f2f0b78e13bfaaa24d11cbc746e93fe76d8c06bf139615646/yarl-1.22.0-cp311-cp311-win_arm64.whl", hash = "sha256:b6a6f620cfe13ccec221fa312139135166e47ae169f8253f72a0abc0dae94376", size = 81637, upload-time = "2025-10-06T14:09:42.712Z" }, + { url = "https://files.pythonhosted.org/packages/75/ff/46736024fee3429b80a165a732e38e5d5a238721e634ab41b040d49f8738/yarl-1.22.0-cp312-cp312-macosx_10_13_universal2.whl", hash = "sha256:e340382d1afa5d32b892b3ff062436d592ec3d692aeea3bef3a5cfe11bbf8c6f", size = 142000, upload-time = "2025-10-06T14:09:44.631Z" }, + { url = "https://files.pythonhosted.org/packages/5a/9a/b312ed670df903145598914770eb12de1bac44599549b3360acc96878df8/yarl-1.22.0-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:f1e09112a2c31ffe8d80be1b0988fa6a18c5d5cad92a9ffbb1c04c91bfe52ad2", size = 94338, upload-time = "2025-10-06T14:09:46.372Z" }, + { url = "https://files.pythonhosted.org/packages/ba/f5/0601483296f09c3c65e303d60c070a5c19fcdbc72daa061e96170785bc7d/yarl-1.22.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:939fe60db294c786f6b7c2d2e121576628468f65453d86b0fe36cb52f987bd74", size = 94909, upload-time = "2025-10-06T14:09:48.648Z" }, + { url = "https://files.pythonhosted.org/packages/60/41/9a1fe0b73dbcefce72e46cf149b0e0a67612d60bfc90fb59c2b2efdfbd86/yarl-1.22.0-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:e1651bf8e0398574646744c1885a41198eba53dc8a9312b954073f845c90a8df", size = 372940, upload-time = "2025-10-06T14:09:50.089Z" }, + { url = "https://files.pythonhosted.org/packages/17/7a/795cb6dfee561961c30b800f0ed616b923a2ec6258b5def2a00bf8231334/yarl-1.22.0-cp312-cp312-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:b8a0588521a26bf92a57a1705b77b8b59044cdceccac7151bd8d229e66b8dedb", size = 345825, upload-time = "2025-10-06T14:09:52.142Z" }, + { url = "https://files.pythonhosted.org/packages/d7/93/a58f4d596d2be2ae7bab1a5846c4d270b894958845753b2c606d666744d3/yarl-1.22.0-cp312-cp312-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:42188e6a615c1a75bcaa6e150c3fe8f3e8680471a6b10150c5f7e83f47cc34d2", size = 386705, upload-time = "2025-10-06T14:09:54.128Z" }, + { url = "https://files.pythonhosted.org/packages/61/92/682279d0e099d0e14d7fd2e176bd04f48de1484f56546a3e1313cd6c8e7c/yarl-1.22.0-cp312-cp312-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:f6d2cb59377d99718913ad9a151030d6f83ef420a2b8f521d94609ecc106ee82", size = 396518, upload-time = "2025-10-06T14:09:55.762Z" }, + { url = "https://files.pythonhosted.org/packages/db/0f/0d52c98b8a885aeda831224b78f3be7ec2e1aa4a62091f9f9188c3c65b56/yarl-1.22.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:50678a3b71c751d58d7908edc96d332af328839eea883bb554a43f539101277a", size = 377267, upload-time = "2025-10-06T14:09:57.958Z" }, + { url = "https://files.pythonhosted.org/packages/22/42/d2685e35908cbeaa6532c1fc73e89e7f2efb5d8a7df3959ea8e37177c5a3/yarl-1.22.0-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:1e8fbaa7cec507aa24ea27a01456e8dd4b6fab829059b69844bd348f2d467124", size = 365797, upload-time = "2025-10-06T14:09:59.527Z" }, + { url = "https://files.pythonhosted.org/packages/a2/83/cf8c7bcc6355631762f7d8bdab920ad09b82efa6b722999dfb05afa6cfac/yarl-1.22.0-cp312-cp312-musllinux_1_2_armv7l.whl", hash = "sha256:433885ab5431bc3d3d4f2f9bd15bfa1614c522b0f1405d62c4f926ccd69d04fa", size = 365535, upload-time = "2025-10-06T14:10:01.139Z" }, + { url = "https://files.pythonhosted.org/packages/25/e1/5302ff9b28f0c59cac913b91fe3f16c59a033887e57ce9ca5d41a3a94737/yarl-1.22.0-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:b790b39c7e9a4192dc2e201a282109ed2985a1ddbd5ac08dc56d0e121400a8f7", size = 382324, upload-time = "2025-10-06T14:10:02.756Z" }, + { url = "https://files.pythonhosted.org/packages/bf/cd/4617eb60f032f19ae3a688dc990d8f0d89ee0ea378b61cac81ede3e52fae/yarl-1.22.0-cp312-cp312-musllinux_1_2_s390x.whl", hash = "sha256:31f0b53913220599446872d757257be5898019c85e7971599065bc55065dc99d", size = 383803, upload-time = "2025-10-06T14:10:04.552Z" }, + { url = "https://files.pythonhosted.org/packages/59/65/afc6e62bb506a319ea67b694551dab4a7e6fb7bf604e9bd9f3e11d575fec/yarl-1.22.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:a49370e8f711daec68d09b821a34e1167792ee2d24d405cbc2387be4f158b520", size = 374220, upload-time = "2025-10-06T14:10:06.489Z" }, + { url = "https://files.pythonhosted.org/packages/e7/3d/68bf18d50dc674b942daec86a9ba922d3113d8399b0e52b9897530442da2/yarl-1.22.0-cp312-cp312-win32.whl", hash = "sha256:70dfd4f241c04bd9239d53b17f11e6ab672b9f1420364af63e8531198e3f5fe8", size = 81589, upload-time = "2025-10-06T14:10:09.254Z" }, + { url = "https://files.pythonhosted.org/packages/c8/9a/6ad1a9b37c2f72874f93e691b2e7ecb6137fb2b899983125db4204e47575/yarl-1.22.0-cp312-cp312-win_amd64.whl", hash = "sha256:8884d8b332a5e9b88e23f60bb166890009429391864c685e17bd73a9eda9105c", size = 87213, upload-time = "2025-10-06T14:10:11.369Z" }, + { url = "https://files.pythonhosted.org/packages/44/c5/c21b562d1680a77634d748e30c653c3ca918beb35555cff24986fff54598/yarl-1.22.0-cp312-cp312-win_arm64.whl", hash = "sha256:ea70f61a47f3cc93bdf8b2f368ed359ef02a01ca6393916bc8ff877427181e74", size = 81330, upload-time = "2025-10-06T14:10:13.112Z" }, + { url = "https://files.pythonhosted.org/packages/ea/f3/d67de7260456ee105dc1d162d43a019ecad6b91e2f51809d6cddaa56690e/yarl-1.22.0-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:8dee9c25c74997f6a750cd317b8ca63545169c098faee42c84aa5e506c819b53", size = 139980, upload-time = "2025-10-06T14:10:14.601Z" }, + { url = "https://files.pythonhosted.org/packages/01/88/04d98af0b47e0ef42597b9b28863b9060bb515524da0a65d5f4db160b2d5/yarl-1.22.0-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:01e73b85a5434f89fc4fe27dcda2aff08ddf35e4d47bbbea3bdcd25321af538a", size = 93424, upload-time = "2025-10-06T14:10:16.115Z" }, + { url = "https://files.pythonhosted.org/packages/18/91/3274b215fd8442a03975ce6bee5fe6aa57a8326b29b9d3d56234a1dca244/yarl-1.22.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:22965c2af250d20c873cdbee8ff958fb809940aeb2e74ba5f20aaf6b7ac8c70c", size = 93821, upload-time = "2025-10-06T14:10:17.993Z" }, + { url = "https://files.pythonhosted.org/packages/61/3a/caf4e25036db0f2da4ca22a353dfeb3c9d3c95d2761ebe9b14df8fc16eb0/yarl-1.22.0-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:b4f15793aa49793ec8d1c708ab7f9eded1aa72edc5174cae703651555ed1b601", size = 373243, upload-time = "2025-10-06T14:10:19.44Z" }, + { url = "https://files.pythonhosted.org/packages/6e/9e/51a77ac7516e8e7803b06e01f74e78649c24ee1021eca3d6a739cb6ea49c/yarl-1.22.0-cp313-cp313-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:e5542339dcf2747135c5c85f68680353d5cb9ffd741c0f2e8d832d054d41f35a", size = 342361, upload-time = "2025-10-06T14:10:21.124Z" }, + { url = "https://files.pythonhosted.org/packages/d4/f8/33b92454789dde8407f156c00303e9a891f1f51a0330b0fad7c909f87692/yarl-1.22.0-cp313-cp313-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:5c401e05ad47a75869c3ab3e35137f8468b846770587e70d71e11de797d113df", size = 387036, upload-time = "2025-10-06T14:10:22.902Z" }, + { url = "https://files.pythonhosted.org/packages/d9/9a/c5db84ea024f76838220280f732970aa4ee154015d7f5c1bfb60a267af6f/yarl-1.22.0-cp313-cp313-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:243dda95d901c733f5b59214d28b0120893d91777cb8aa043e6ef059d3cddfe2", size = 397671, upload-time = "2025-10-06T14:10:24.523Z" }, + { url = "https://files.pythonhosted.org/packages/11/c9/cd8538dc2e7727095e0c1d867bad1e40c98f37763e6d995c1939f5fdc7b1/yarl-1.22.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:bec03d0d388060058f5d291a813f21c011041938a441c593374da6077fe21b1b", size = 377059, upload-time = "2025-10-06T14:10:26.406Z" }, + { url = "https://files.pythonhosted.org/packages/a1/b9/ab437b261702ced75122ed78a876a6dec0a1b0f5e17a4ac7a9a2482d8abe/yarl-1.22.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:b0748275abb8c1e1e09301ee3cf90c8a99678a4e92e4373705f2a2570d581273", size = 365356, upload-time = "2025-10-06T14:10:28.461Z" }, + { url = "https://files.pythonhosted.org/packages/b2/9d/8e1ae6d1d008a9567877b08f0ce4077a29974c04c062dabdb923ed98e6fe/yarl-1.22.0-cp313-cp313-musllinux_1_2_armv7l.whl", hash = "sha256:47fdb18187e2a4e18fda2c25c05d8251a9e4a521edaed757fef033e7d8498d9a", size = 361331, upload-time = "2025-10-06T14:10:30.541Z" }, + { url = "https://files.pythonhosted.org/packages/ca/5a/09b7be3905962f145b73beb468cdd53db8aa171cf18c80400a54c5b82846/yarl-1.22.0-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:c7044802eec4524fde550afc28edda0dd5784c4c45f0be151a2d3ba017daca7d", size = 382590, upload-time = "2025-10-06T14:10:33.352Z" }, + { url = "https://files.pythonhosted.org/packages/aa/7f/59ec509abf90eda5048b0bc3e2d7b5099dffdb3e6b127019895ab9d5ef44/yarl-1.22.0-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:139718f35149ff544caba20fce6e8a2f71f1e39b92c700d8438a0b1d2a631a02", size = 385316, upload-time = "2025-10-06T14:10:35.034Z" }, + { url = "https://files.pythonhosted.org/packages/e5/84/891158426bc8036bfdfd862fabd0e0fa25df4176ec793e447f4b85cf1be4/yarl-1.22.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:e1b51bebd221006d3d2f95fbe124b22b247136647ae5dcc8c7acafba66e5ee67", size = 374431, upload-time = "2025-10-06T14:10:37.76Z" }, + { url = "https://files.pythonhosted.org/packages/bb/49/03da1580665baa8bef5e8ed34c6df2c2aca0a2f28bf397ed238cc1bbc6f2/yarl-1.22.0-cp313-cp313-win32.whl", hash = "sha256:d3e32536234a95f513bd374e93d717cf6b2231a791758de6c509e3653f234c95", size = 81555, upload-time = "2025-10-06T14:10:39.649Z" }, + { url = "https://files.pythonhosted.org/packages/9a/ee/450914ae11b419eadd067c6183ae08381cfdfcb9798b90b2b713bbebddda/yarl-1.22.0-cp313-cp313-win_amd64.whl", hash = "sha256:47743b82b76d89a1d20b83e60d5c20314cbd5ba2befc9cda8f28300c4a08ed4d", size = 86965, upload-time = "2025-10-06T14:10:41.313Z" }, + { url = "https://files.pythonhosted.org/packages/98/4d/264a01eae03b6cf629ad69bae94e3b0e5344741e929073678e84bf7a3e3b/yarl-1.22.0-cp313-cp313-win_arm64.whl", hash = "sha256:5d0fcda9608875f7d052eff120c7a5da474a6796fe4d83e152e0e4d42f6d1a9b", size = 81205, upload-time = "2025-10-06T14:10:43.167Z" }, + { url = "https://files.pythonhosted.org/packages/88/fc/6908f062a2f77b5f9f6d69cecb1747260831ff206adcbc5b510aff88df91/yarl-1.22.0-cp313-cp313t-macosx_10_13_universal2.whl", hash = "sha256:719ae08b6972befcba4310e49edb1161a88cdd331e3a694b84466bd938a6ab10", size = 146209, upload-time = "2025-10-06T14:10:44.643Z" }, + { url = "https://files.pythonhosted.org/packages/65/47/76594ae8eab26210b4867be6f49129861ad33da1f1ebdf7051e98492bf62/yarl-1.22.0-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:47d8a5c446df1c4db9d21b49619ffdba90e77c89ec6e283f453856c74b50b9e3", size = 95966, upload-time = "2025-10-06T14:10:46.554Z" }, + { url = "https://files.pythonhosted.org/packages/ab/ce/05e9828a49271ba6b5b038b15b3934e996980dd78abdfeb52a04cfb9467e/yarl-1.22.0-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:cfebc0ac8333520d2d0423cbbe43ae43c8838862ddb898f5ca68565e395516e9", size = 97312, upload-time = "2025-10-06T14:10:48.007Z" }, + { url = "https://files.pythonhosted.org/packages/d1/c5/7dffad5e4f2265b29c9d7ec869c369e4223166e4f9206fc2243ee9eea727/yarl-1.22.0-cp313-cp313t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:4398557cbf484207df000309235979c79c4356518fd5c99158c7d38203c4da4f", size = 361967, upload-time = "2025-10-06T14:10:49.997Z" }, + { url = "https://files.pythonhosted.org/packages/50/b2/375b933c93a54bff7fc041e1a6ad2c0f6f733ffb0c6e642ce56ee3b39970/yarl-1.22.0-cp313-cp313t-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:2ca6fd72a8cd803be290d42f2dec5cdcd5299eeb93c2d929bf060ad9efaf5de0", size = 323949, upload-time = "2025-10-06T14:10:52.004Z" }, + { url = "https://files.pythonhosted.org/packages/66/50/bfc2a29a1d78644c5a7220ce2f304f38248dc94124a326794e677634b6cf/yarl-1.22.0-cp313-cp313t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:ca1f59c4e1ab6e72f0a23c13fca5430f889634166be85dbf1013683e49e3278e", size = 361818, upload-time = "2025-10-06T14:10:54.078Z" }, + { url = "https://files.pythonhosted.org/packages/46/96/f3941a46af7d5d0f0498f86d71275696800ddcdd20426298e572b19b91ff/yarl-1.22.0-cp313-cp313t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:6c5010a52015e7c70f86eb967db0f37f3c8bd503a695a49f8d45700144667708", size = 372626, upload-time = "2025-10-06T14:10:55.767Z" }, + { url = "https://files.pythonhosted.org/packages/c1/42/8b27c83bb875cd89448e42cd627e0fb971fa1675c9ec546393d18826cb50/yarl-1.22.0-cp313-cp313t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:9d7672ecf7557476642c88497c2f8d8542f8e36596e928e9bcba0e42e1e7d71f", size = 341129, upload-time = "2025-10-06T14:10:57.985Z" }, + { url = "https://files.pythonhosted.org/packages/49/36/99ca3122201b382a3cf7cc937b95235b0ac944f7e9f2d5331d50821ed352/yarl-1.22.0-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:3b7c88eeef021579d600e50363e0b6ee4f7f6f728cd3486b9d0f3ee7b946398d", size = 346776, upload-time = "2025-10-06T14:10:59.633Z" }, + { url = "https://files.pythonhosted.org/packages/85/b4/47328bf996acd01a4c16ef9dcd2f59c969f495073616586f78cd5f2efb99/yarl-1.22.0-cp313-cp313t-musllinux_1_2_armv7l.whl", hash = "sha256:f4afb5c34f2c6fecdcc182dfcfc6af6cccf1aa923eed4d6a12e9d96904e1a0d8", size = 334879, upload-time = "2025-10-06T14:11:01.454Z" }, + { url = "https://files.pythonhosted.org/packages/c2/ad/b77d7b3f14a4283bffb8e92c6026496f6de49751c2f97d4352242bba3990/yarl-1.22.0-cp313-cp313t-musllinux_1_2_ppc64le.whl", hash = "sha256:59c189e3e99a59cf8d83cbb31d4db02d66cda5a1a4374e8a012b51255341abf5", size = 350996, upload-time = "2025-10-06T14:11:03.452Z" }, + { url = "https://files.pythonhosted.org/packages/81/c8/06e1d69295792ba54d556f06686cbd6a7ce39c22307100e3fb4a2c0b0a1d/yarl-1.22.0-cp313-cp313t-musllinux_1_2_s390x.whl", hash = "sha256:5a3bf7f62a289fa90f1990422dc8dff5a458469ea71d1624585ec3a4c8d6960f", size = 356047, upload-time = "2025-10-06T14:11:05.115Z" }, + { url = "https://files.pythonhosted.org/packages/4b/b8/4c0e9e9f597074b208d18cef227d83aac36184bfbc6eab204ea55783dbc5/yarl-1.22.0-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:de6b9a04c606978fdfe72666fa216ffcf2d1a9f6a381058d4378f8d7b1e5de62", size = 342947, upload-time = "2025-10-06T14:11:08.137Z" }, + { url = "https://files.pythonhosted.org/packages/e0/e5/11f140a58bf4c6ad7aca69a892bff0ee638c31bea4206748fc0df4ebcb3a/yarl-1.22.0-cp313-cp313t-win32.whl", hash = "sha256:1834bb90991cc2999f10f97f5f01317f99b143284766d197e43cd5b45eb18d03", size = 86943, upload-time = "2025-10-06T14:11:10.284Z" }, + { url = "https://files.pythonhosted.org/packages/31/74/8b74bae38ed7fe6793d0c15a0c8207bbb819cf287788459e5ed230996cdd/yarl-1.22.0-cp313-cp313t-win_amd64.whl", hash = "sha256:ff86011bd159a9d2dfc89c34cfd8aff12875980e3bd6a39ff097887520e60249", size = 93715, upload-time = "2025-10-06T14:11:11.739Z" }, + { url = "https://files.pythonhosted.org/packages/69/66/991858aa4b5892d57aef7ee1ba6b4d01ec3b7eb3060795d34090a3ca3278/yarl-1.22.0-cp313-cp313t-win_arm64.whl", hash = "sha256:7861058d0582b847bc4e3a4a4c46828a410bca738673f35a29ba3ca5db0b473b", size = 83857, upload-time = "2025-10-06T14:11:13.586Z" }, + { url = "https://files.pythonhosted.org/packages/46/b3/e20ef504049f1a1c54a814b4b9bed96d1ac0e0610c3b4da178f87209db05/yarl-1.22.0-cp314-cp314-macosx_10_13_universal2.whl", hash = "sha256:34b36c2c57124530884d89d50ed2c1478697ad7473efd59cfd479945c95650e4", size = 140520, upload-time = "2025-10-06T14:11:15.465Z" }, + { url = "https://files.pythonhosted.org/packages/e4/04/3532d990fdbab02e5ede063676b5c4260e7f3abea2151099c2aa745acc4c/yarl-1.22.0-cp314-cp314-macosx_10_13_x86_64.whl", hash = "sha256:0dd9a702591ca2e543631c2a017e4a547e38a5c0f29eece37d9097e04a7ac683", size = 93504, upload-time = "2025-10-06T14:11:17.106Z" }, + { url = "https://files.pythonhosted.org/packages/11/63/ff458113c5c2dac9a9719ac68ee7c947cb621432bcf28c9972b1c0e83938/yarl-1.22.0-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:594fcab1032e2d2cc3321bb2e51271e7cd2b516c7d9aee780ece81b07ff8244b", size = 94282, upload-time = "2025-10-06T14:11:19.064Z" }, + { url = "https://files.pythonhosted.org/packages/a7/bc/315a56aca762d44a6aaaf7ad253f04d996cb6b27bad34410f82d76ea8038/yarl-1.22.0-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:f3d7a87a78d46a2e3d5b72587ac14b4c16952dd0887dbb051451eceac774411e", size = 372080, upload-time = "2025-10-06T14:11:20.996Z" }, + { url = "https://files.pythonhosted.org/packages/3f/3f/08e9b826ec2e099ea6e7c69a61272f4f6da62cb5b1b63590bb80ca2e4a40/yarl-1.22.0-cp314-cp314-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:852863707010316c973162e703bddabec35e8757e67fcb8ad58829de1ebc8590", size = 338696, upload-time = "2025-10-06T14:11:22.847Z" }, + { url = "https://files.pythonhosted.org/packages/e3/9f/90360108e3b32bd76789088e99538febfea24a102380ae73827f62073543/yarl-1.22.0-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:131a085a53bfe839a477c0845acf21efc77457ba2bcf5899618136d64f3303a2", size = 387121, upload-time = "2025-10-06T14:11:24.889Z" }, + { url = "https://files.pythonhosted.org/packages/98/92/ab8d4657bd5b46a38094cfaea498f18bb70ce6b63508fd7e909bd1f93066/yarl-1.22.0-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:078a8aefd263f4d4f923a9677b942b445a2be970ca24548a8102689a3a8ab8da", size = 394080, upload-time = "2025-10-06T14:11:27.307Z" }, + { url = "https://files.pythonhosted.org/packages/f5/e7/d8c5a7752fef68205296201f8ec2bf718f5c805a7a7e9880576c67600658/yarl-1.22.0-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:bca03b91c323036913993ff5c738d0842fc9c60c4648e5c8d98331526df89784", size = 372661, upload-time = "2025-10-06T14:11:29.387Z" }, + { url = "https://files.pythonhosted.org/packages/b6/2e/f4d26183c8db0bb82d491b072f3127fb8c381a6206a3a56332714b79b751/yarl-1.22.0-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:68986a61557d37bb90d3051a45b91fa3d5c516d177dfc6dd6f2f436a07ff2b6b", size = 364645, upload-time = "2025-10-06T14:11:31.423Z" }, + { url = "https://files.pythonhosted.org/packages/80/7c/428e5812e6b87cd00ee8e898328a62c95825bf37c7fa87f0b6bb2ad31304/yarl-1.22.0-cp314-cp314-musllinux_1_2_armv7l.whl", hash = "sha256:4792b262d585ff0dff6bcb787f8492e40698443ec982a3568c2096433660c694", size = 355361, upload-time = "2025-10-06T14:11:33.055Z" }, + { url = "https://files.pythonhosted.org/packages/ec/2a/249405fd26776f8b13c067378ef4d7dd49c9098d1b6457cdd152a99e96a9/yarl-1.22.0-cp314-cp314-musllinux_1_2_ppc64le.whl", hash = "sha256:ebd4549b108d732dba1d4ace67614b9545b21ece30937a63a65dd34efa19732d", size = 381451, upload-time = "2025-10-06T14:11:35.136Z" }, + { url = "https://files.pythonhosted.org/packages/67/a8/fb6b1adbe98cf1e2dd9fad71003d3a63a1bc22459c6e15f5714eb9323b93/yarl-1.22.0-cp314-cp314-musllinux_1_2_s390x.whl", hash = "sha256:f87ac53513d22240c7d59203f25cc3beac1e574c6cd681bbfd321987b69f95fd", size = 383814, upload-time = "2025-10-06T14:11:37.094Z" }, + { url = "https://files.pythonhosted.org/packages/d9/f9/3aa2c0e480fb73e872ae2814c43bc1e734740bb0d54e8cb2a95925f98131/yarl-1.22.0-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:22b029f2881599e2f1b06f8f1db2ee63bd309e2293ba2d566e008ba12778b8da", size = 370799, upload-time = "2025-10-06T14:11:38.83Z" }, + { url = "https://files.pythonhosted.org/packages/50/3c/af9dba3b8b5eeb302f36f16f92791f3ea62e3f47763406abf6d5a4a3333b/yarl-1.22.0-cp314-cp314-win32.whl", hash = "sha256:6a635ea45ba4ea8238463b4f7d0e721bad669f80878b7bfd1f89266e2ae63da2", size = 82990, upload-time = "2025-10-06T14:11:40.624Z" }, + { url = "https://files.pythonhosted.org/packages/ac/30/ac3a0c5bdc1d6efd1b41fa24d4897a4329b3b1e98de9449679dd327af4f0/yarl-1.22.0-cp314-cp314-win_amd64.whl", hash = "sha256:0d6e6885777af0f110b0e5d7e5dda8b704efed3894da26220b7f3d887b839a79", size = 88292, upload-time = "2025-10-06T14:11:42.578Z" }, + { url = "https://files.pythonhosted.org/packages/df/0a/227ab4ff5b998a1b7410abc7b46c9b7a26b0ca9e86c34ba4b8d8bc7c63d5/yarl-1.22.0-cp314-cp314-win_arm64.whl", hash = "sha256:8218f4e98d3c10d683584cb40f0424f4b9fd6e95610232dd75e13743b070ee33", size = 82888, upload-time = "2025-10-06T14:11:44.863Z" }, + { url = "https://files.pythonhosted.org/packages/06/5e/a15eb13db90abd87dfbefb9760c0f3f257ac42a5cac7e75dbc23bed97a9f/yarl-1.22.0-cp314-cp314t-macosx_10_13_universal2.whl", hash = "sha256:45c2842ff0e0d1b35a6bf1cd6c690939dacb617a70827f715232b2e0494d55d1", size = 146223, upload-time = "2025-10-06T14:11:46.796Z" }, + { url = "https://files.pythonhosted.org/packages/18/82/9665c61910d4d84f41a5bf6837597c89e665fa88aa4941080704645932a9/yarl-1.22.0-cp314-cp314t-macosx_10_13_x86_64.whl", hash = "sha256:d947071e6ebcf2e2bee8fce76e10faca8f7a14808ca36a910263acaacef08eca", size = 95981, upload-time = "2025-10-06T14:11:48.845Z" }, + { url = "https://files.pythonhosted.org/packages/5d/9a/2f65743589809af4d0a6d3aa749343c4b5f4c380cc24a8e94a3c6625a808/yarl-1.22.0-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:334b8721303e61b00019474cc103bdac3d7b1f65e91f0bfedeec2d56dfe74b53", size = 97303, upload-time = "2025-10-06T14:11:50.897Z" }, + { url = "https://files.pythonhosted.org/packages/b0/ab/5b13d3e157505c43c3b43b5a776cbf7b24a02bc4cccc40314771197e3508/yarl-1.22.0-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:1e7ce67c34138a058fd092f67d07a72b8e31ff0c9236e751957465a24b28910c", size = 361820, upload-time = "2025-10-06T14:11:52.549Z" }, + { url = "https://files.pythonhosted.org/packages/fb/76/242a5ef4677615cf95330cfc1b4610e78184400699bdda0acb897ef5e49a/yarl-1.22.0-cp314-cp314t-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:d77e1b2c6d04711478cb1c4ab90db07f1609ccf06a287d5607fcd90dc9863acf", size = 323203, upload-time = "2025-10-06T14:11:54.225Z" }, + { url = "https://files.pythonhosted.org/packages/8c/96/475509110d3f0153b43d06164cf4195c64d16999e0c7e2d8a099adcd6907/yarl-1.22.0-cp314-cp314t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:c4647674b6150d2cae088fc07de2738a84b8bcedebef29802cf0b0a82ab6face", size = 363173, upload-time = "2025-10-06T14:11:56.069Z" }, + { url = "https://files.pythonhosted.org/packages/c9/66/59db471aecfbd559a1fd48aedd954435558cd98c7d0da8b03cc6c140a32c/yarl-1.22.0-cp314-cp314t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:efb07073be061c8f79d03d04139a80ba33cbd390ca8f0297aae9cce6411e4c6b", size = 373562, upload-time = "2025-10-06T14:11:58.783Z" }, + { url = "https://files.pythonhosted.org/packages/03/1f/c5d94abc91557384719da10ff166b916107c1b45e4d0423a88457071dd88/yarl-1.22.0-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:e51ac5435758ba97ad69617e13233da53908beccc6cfcd6c34bbed8dcbede486", size = 339828, upload-time = "2025-10-06T14:12:00.686Z" }, + { url = "https://files.pythonhosted.org/packages/5f/97/aa6a143d3afba17b6465733681c70cf175af89f76ec8d9286e08437a7454/yarl-1.22.0-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:33e32a0dd0c8205efa8e83d04fc9f19313772b78522d1bdc7d9aed706bfd6138", size = 347551, upload-time = "2025-10-06T14:12:02.628Z" }, + { url = "https://files.pythonhosted.org/packages/43/3c/45a2b6d80195959239a7b2a8810506d4eea5487dce61c2a3393e7fc3c52e/yarl-1.22.0-cp314-cp314t-musllinux_1_2_armv7l.whl", hash = "sha256:bf4a21e58b9cde0e401e683ebd00f6ed30a06d14e93f7c8fd059f8b6e8f87b6a", size = 334512, upload-time = "2025-10-06T14:12:04.871Z" }, + { url = "https://files.pythonhosted.org/packages/86/a0/c2ab48d74599c7c84cb104ebd799c5813de252bea0f360ffc29d270c2caa/yarl-1.22.0-cp314-cp314t-musllinux_1_2_ppc64le.whl", hash = "sha256:e4b582bab49ac33c8deb97e058cd67c2c50dac0dd134874106d9c774fd272529", size = 352400, upload-time = "2025-10-06T14:12:06.624Z" }, + { url = "https://files.pythonhosted.org/packages/32/75/f8919b2eafc929567d3d8411f72bdb1a2109c01caaab4ebfa5f8ffadc15b/yarl-1.22.0-cp314-cp314t-musllinux_1_2_s390x.whl", hash = "sha256:0b5bcc1a9c4839e7e30b7b30dd47fe5e7e44fb7054ec29b5bb8d526aa1041093", size = 357140, upload-time = "2025-10-06T14:12:08.362Z" }, + { url = "https://files.pythonhosted.org/packages/cf/72/6a85bba382f22cf78add705d8c3731748397d986e197e53ecc7835e76de7/yarl-1.22.0-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:c0232bce2170103ec23c454e54a57008a9a72b5d1c3105dc2496750da8cfa47c", size = 341473, upload-time = "2025-10-06T14:12:10.994Z" }, + { url = "https://files.pythonhosted.org/packages/35/18/55e6011f7c044dc80b98893060773cefcfdbf60dfefb8cb2f58b9bacbd83/yarl-1.22.0-cp314-cp314t-win32.whl", hash = "sha256:8009b3173bcd637be650922ac455946197d858b3630b6d8787aa9e5c4564533e", size = 89056, upload-time = "2025-10-06T14:12:13.317Z" }, + { url = "https://files.pythonhosted.org/packages/f9/86/0f0dccb6e59a9e7f122c5afd43568b1d31b8ab7dda5f1b01fb5c7025c9a9/yarl-1.22.0-cp314-cp314t-win_amd64.whl", hash = "sha256:9fb17ea16e972c63d25d4a97f016d235c78dd2344820eb35bc034bc32012ee27", size = 96292, upload-time = "2025-10-06T14:12:15.398Z" }, + { url = "https://files.pythonhosted.org/packages/48/b7/503c98092fb3b344a179579f55814b613c1fbb1c23b3ec14a7b008a66a6e/yarl-1.22.0-cp314-cp314t-win_arm64.whl", hash = "sha256:9f6d73c1436b934e3f01df1e1b21ff765cd1d28c77dfb9ace207f746d4610ee1", size = 85171, upload-time = "2025-10-06T14:12:16.935Z" }, + { url = "https://files.pythonhosted.org/packages/73/ae/b48f95715333080afb75a4504487cbe142cae1268afc482d06692d605ae6/yarl-1.22.0-py3-none-any.whl", hash = "sha256:1380560bdba02b6b6c90de54133c81c9f2a453dee9912fe58c1dcced1edb7cff", size = 46814, upload-time = "2025-10-06T14:12:53.872Z" }, ] From 34cc829c5554b38391bc0308cd0f6b7be69987a2 Mon Sep 17 00:00:00 2001 From: JulianKimmig Date: Mon, 3 Nov 2025 21:38:39 +0100 Subject: [PATCH 6/6] chore: update dependencies and add new packages - Replaced individual kaleido versions with a single plotly[kaleido] dependency in pyproject.toml. - Added new packages: choreographer, logistro, orjson, pytest-timeout, and simplejson in uv.lock. - Updated markdown version from 3.9 to 3.10. - Adjusted resolution markers in uv.lock for better compatibility. --- pyproject.toml | 5 +- uv.lock | 205 +++++++++++++++++++++++++++++++++++++++++-------- 2 files changed, 173 insertions(+), 37 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 209ad7f..336c57a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -12,9 +12,8 @@ dependencies = [ "funcnodes_pandas>=0.2.3", "funcnodes_core>=0.3.51", "funcnodes_images", - "plotly>=6.0.0", - "kaleido==0.1.0post1; sys_platform == 'win32'", - "kaleido==0.2.1; sys_platform != 'win32' and sys_platform != 'emscripten'", + "plotly[kaleido]>=6.0.0", + ] requires-python = ">=3.11" [[project.authors]] diff --git a/uv.lock b/uv.lock index ed8868e..1e8ae53 100644 --- a/uv.lock +++ b/uv.lock @@ -2,12 +2,10 @@ version = 1 revision = 2 requires-python = ">=3.11" resolution-markers = [ - "python_full_version >= '3.12' and sys_platform == 'win32'", - "python_full_version < '3.12' and sys_platform == 'win32'", - "python_full_version >= '3.12' and sys_platform != 'emscripten' and sys_platform != 'win32'", - "python_full_version < '3.12' and sys_platform != 'emscripten' and sys_platform != 'win32'", "python_full_version >= '3.12' and sys_platform == 'emscripten'", "python_full_version < '3.12' and sys_platform == 'emscripten'", + "python_full_version >= '3.12' and sys_platform != 'emscripten'", + "python_full_version < '3.12' and sys_platform != 'emscripten'", ] [[package]] @@ -294,6 +292,19 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/0a/4c/925909008ed5a988ccbb72dcc897407e5d6d3bd72410d69e051fc0c14647/charset_normalizer-3.4.4-py3-none-any.whl", hash = "sha256:7a32c560861a02ff789ad905a2fe94e3f840803362c84fecf1851cb4cf3dc37f", size = 53402, upload-time = "2025-10-14T04:42:31.76Z" }, ] +[[package]] +name = "choreographer" +version = "1.2.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "logistro" }, + { name = "simplejson" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/c0/3a/1188b57af6d96a6dad9418a10d00e20109d3ac64db0545205222b53306ee/choreographer-1.2.0.tar.gz", hash = "sha256:c94eaf6eb3dbc81d68e1476139e69e9e072f4e90fcae1990e5c988d15079d346", size = 45001, upload-time = "2025-10-23T00:32:57.11Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/54/b9/c3693aa56c0da6acd66b553837b16a770b4feaf0df9bafc203ab2e42eeb9/choreographer-1.2.0-py3-none-any.whl", hash = "sha256:00892baf912fc08b169488a56a9000d61c221d7a024eb4726dc623bc2e2f1b07", size = 56361, upload-time = "2025-10-23T00:32:55.694Z" }, +] + [[package]] name = "colorama" version = "0.4.6" @@ -603,9 +614,7 @@ dependencies = [ { name = "funcnodes-core" }, { name = "funcnodes-images" }, { name = "funcnodes-pandas" }, - { name = "kaleido", version = "0.1.0.post1", source = { registry = "https://pypi.org/simple" }, marker = "sys_platform == 'win32'" }, - { name = "kaleido", version = "0.2.1", source = { registry = "https://pypi.org/simple" }, marker = "sys_platform != 'emscripten' and sys_platform != 'win32'" }, - { name = "plotly" }, + { name = "plotly", extra = ["kaleido"] }, ] [package.dev-dependencies] @@ -623,9 +632,7 @@ requires-dist = [ { name = "funcnodes-core", specifier = ">=0.3.51" }, { name = "funcnodes-images" }, { name = "funcnodes-pandas", specifier = ">=0.2.3" }, - { name = "kaleido", marker = "sys_platform != 'emscripten' and sys_platform != 'win32'", specifier = "==0.2.1" }, - { name = "kaleido", marker = "sys_platform == 'win32'", specifier = "==0.1.0.post1" }, - { name = "plotly", specifier = ">=6.0.0" }, + { name = "plotly", extras = ["kaleido"], specifier = ">=6.0.0" }, ] [package.metadata.requires-dev] @@ -705,30 +712,18 @@ wheels = [ [[package]] name = "kaleido" -version = "0.1.0.post1" -source = { registry = "https://pypi.org/simple" } -resolution-markers = [ - "python_full_version >= '3.12' and sys_platform == 'win32'", - "python_full_version < '3.12' and sys_platform == 'win32'", -] -wheels = [ - { url = "https://files.pythonhosted.org/packages/1e/82/153cdbaf2df0ad39198108063be111b105c46d60e9d0335e668d6af69a6b/kaleido-0.1.0.post1-py2.py3-none-win32.whl", hash = "sha256:636aedcd89f359f54687b4fe331776a7224f7c31c27d03230e4e13c7cf4cb66a", size = 53233834, upload-time = "2020-12-08T10:15:54.087Z" }, - { url = "https://files.pythonhosted.org/packages/41/90/51523adbedc808e03271c7448fd71da1660cc02603eaaf10b9ab4f102146/kaleido-0.1.0.post1-py2.py3-none-win_amd64.whl", hash = "sha256:2a942606a13c70dfd0a02e092ec140a1083e093ae06661c5e1b1179e477a9e44", size = 55954763, upload-time = "2020-12-08T10:16:16.091Z" }, -] - -[[package]] -name = "kaleido" -version = "0.2.1" +version = "1.1.0" source = { registry = "https://pypi.org/simple" } -resolution-markers = [ - "python_full_version >= '3.12' and sys_platform != 'emscripten' and sys_platform != 'win32'", - "python_full_version < '3.12' and sys_platform != 'emscripten' and sys_platform != 'win32'", +dependencies = [ + { name = "choreographer" }, + { name = "logistro" }, + { name = "orjson" }, + { name = "packaging" }, + { name = "pytest-timeout" }, ] +sdist = { url = "https://files.pythonhosted.org/packages/49/0c/3624462629aeb9f5bb043583848ce300b4315e8249b393c494c84149b953/kaleido-1.1.0.tar.gz", hash = "sha256:5747703a56d4c034efa69abea4a9c2bfe8ef516ba848e0ec485c65b3b0ab52b6", size = 62044, upload-time = "2025-09-10T19:31:13.925Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/e0/f7/0ccaa596ec341963adbb4f839774c36d5659e75a0812d946732b927d480e/kaleido-0.2.1-py2.py3-none-macosx_10_11_x86_64.whl", hash = "sha256:ca6f73e7ff00aaebf2843f73f1d3bacde1930ef5041093fe76b83a15785049a7", size = 85153681, upload-time = "2021-03-08T10:27:34.202Z" }, - { url = "https://files.pythonhosted.org/packages/45/8e/4297556be5a07b713bb42dde0f748354de9a6918dee251c0e6bdcda341e7/kaleido-0.2.1-py2.py3-none-macosx_11_0_arm64.whl", hash = "sha256:bb9a5d1f710357d5d432ee240ef6658a6d124c3e610935817b4b42da9c787c05", size = 85808197, upload-time = "2021-03-08T10:27:46.561Z" }, - { url = "https://files.pythonhosted.org/packages/ae/b3/a0f0f4faac229b0011d8c4a7ee6da7c2dca0b6fd08039c95920846f23ca4/kaleido-0.2.1-py2.py3-none-manylinux1_x86_64.whl", hash = "sha256:aa21cf1bf1c78f8fa50a9f7d45e1003c387bd3d6fe0a767cfbbf344b95bdc3a8", size = 79902476, upload-time = "2021-03-08T10:27:57.364Z" }, - { url = "https://files.pythonhosted.org/packages/a1/2b/680662678a57afab1685f0c431c2aba7783ce4344f06ec162074d485d469/kaleido-0.2.1-py2.py3-none-manylinux2014_aarch64.whl", hash = "sha256:845819844c8082c9469d9c17e42621fbf85c2b237ef8a86ec8a8527f98b6512a", size = 83711746, upload-time = "2021-03-08T10:28:08.847Z" }, + { url = "https://files.pythonhosted.org/packages/5a/bf/10b009e3b96a803f25af126951bc167402354d765006a94d11ba46a2f667/kaleido-1.1.0-py3-none-any.whl", hash = "sha256:839ed2357b89dd2f93c478960f41c401fe4038d404ae33e2fdbde028c18d7430", size = 66347, upload-time = "2025-09-10T19:31:12.869Z" }, ] [[package]] @@ -766,6 +761,15 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/65/bd/606e2f7eb0da042bffd8711a7427f7a28ca501aa6b1e3367ae3c7d4dc489/licensecheck-2025.1.0-py3-none-any.whl", hash = "sha256:eb20131cd8f877e5396958fd7b00cdb2225436c37a59dba4cf36d36079133a17", size = 26681, upload-time = "2025-03-26T22:58:03.145Z" }, ] +[[package]] +name = "logistro" +version = "2.0.1" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/08/90/bfd7a6fab22bdfafe48ed3c4831713cb77b4779d18ade5e248d5dbc0ca22/logistro-2.0.1.tar.gz", hash = "sha256:8446affc82bab2577eb02bfcbcae196ae03129287557287b6a070f70c1985047", size = 8398, upload-time = "2025-11-01T02:41:18.81Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/54/20/6aa79ba3570bddd1bf7e951c6123f806751e58e8cce736bad77b2cf348d7/logistro-2.0.1-py3-none-any.whl", hash = "sha256:06ffa127b9fb4ac8b1972ae6b2a9d7fde57598bf5939cd708f43ec5bba2d31eb", size = 8555, upload-time = "2025-11-01T02:41:17.587Z" }, +] + [[package]] name = "loguru" version = "0.7.3" @@ -781,11 +785,11 @@ wheels = [ [[package]] name = "markdown" -version = "3.9" +version = "3.10" source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/8d/37/02347f6d6d8279247a5837082ebc26fc0d5aaeaf75aa013fcbb433c777ab/markdown-3.9.tar.gz", hash = "sha256:d2900fe1782bd33bdbbd56859defef70c2e78fc46668f8eb9df3128138f2cb6a", size = 364585, upload-time = "2025-09-04T20:25:22.885Z" } +sdist = { url = "https://files.pythonhosted.org/packages/7d/ab/7dd27d9d863b3376fcf23a5a13cb5d024aed1db46f963f1b5735ae43b3be/markdown-3.10.tar.gz", hash = "sha256:37062d4f2aa4b2b6b32aefb80faa300f82cc790cb949a35b8caede34f2b68c0e", size = 364931, upload-time = "2025-11-03T19:51:15.007Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/70/ae/44c4a6a4cbb496d93c6257954260fe3a6e91b7bed2240e5dad2a717f5111/markdown-3.9-py3-none-any.whl", hash = "sha256:9f4d91ed810864ea88a6f32c07ba8bee1346c0cc1f6b1f9f6c822f2a9667d280", size = 107441, upload-time = "2025-09-04T20:25:21.784Z" }, + { url = "https://files.pythonhosted.org/packages/70/81/54e3ce63502cd085a0c556652a4e1b919c45a446bd1e5300e10c44c8c521/markdown-3.10-py3-none-any.whl", hash = "sha256:b5b99d6951e2e4948d939255596523444c0e677c669700b1d17aa4a8a464cb7c", size = 107678, upload-time = "2025-11-03T19:51:13.887Z" }, ] [[package]] @@ -1037,6 +1041,74 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/c0/da/977ded879c29cbd04de313843e76868e6e13408a94ed6b987245dc7c8506/openpyxl-3.1.5-py2.py3-none-any.whl", hash = "sha256:5282c12b107bffeef825f4617dc029afaf41d0ea60823bbb665ef3079dc79de2", size = 250910, upload-time = "2024-06-28T14:03:41.161Z" }, ] +[[package]] +name = "orjson" +version = "3.11.4" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/c6/fe/ed708782d6709cc60eb4c2d8a361a440661f74134675c72990f2c48c785f/orjson-3.11.4.tar.gz", hash = "sha256:39485f4ab4c9b30a3943cfe99e1a213c4776fb69e8abd68f66b83d5a0b0fdc6d", size = 5945188, upload-time = "2025-10-24T15:50:38.027Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/63/1d/1ea6005fffb56715fd48f632611e163d1604e8316a5bad2288bee9a1c9eb/orjson-3.11.4-cp311-cp311-macosx_10_15_x86_64.macosx_11_0_arm64.macosx_10_15_universal2.whl", hash = "sha256:5e59d23cd93ada23ec59a96f215139753fbfe3a4d989549bcb390f8c00370b39", size = 243498, upload-time = "2025-10-24T15:48:48.101Z" }, + { url = "https://files.pythonhosted.org/packages/37/d7/ffed10c7da677f2a9da307d491b9eb1d0125b0307019c4ad3d665fd31f4f/orjson-3.11.4-cp311-cp311-macosx_15_0_arm64.whl", hash = "sha256:5c3aedecfc1beb988c27c79d52ebefab93b6c3921dbec361167e6559aba2d36d", size = 128961, upload-time = "2025-10-24T15:48:49.571Z" }, + { url = "https://files.pythonhosted.org/packages/a2/96/3e4d10a18866d1368f73c8c44b7fe37cc8a15c32f2a7620be3877d4c55a3/orjson-3.11.4-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:da9e5301f1c2caa2a9a4a303480d79c9ad73560b2e7761de742ab39fe59d9175", size = 130321, upload-time = "2025-10-24T15:48:50.713Z" }, + { url = "https://files.pythonhosted.org/packages/eb/1f/465f66e93f434f968dd74d5b623eb62c657bdba2332f5a8be9f118bb74c7/orjson-3.11.4-cp311-cp311-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:8873812c164a90a79f65368f8f96817e59e35d0cc02786a5356f0e2abed78040", size = 129207, upload-time = "2025-10-24T15:48:52.193Z" }, + { url = "https://files.pythonhosted.org/packages/28/43/d1e94837543321c119dff277ae8e348562fe8c0fafbb648ef7cb0c67e521/orjson-3.11.4-cp311-cp311-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:5d7feb0741ebb15204e748f26c9638e6665a5fa93c37a2c73d64f1669b0ddc63", size = 136323, upload-time = "2025-10-24T15:48:54.806Z" }, + { url = "https://files.pythonhosted.org/packages/bf/04/93303776c8890e422a5847dd012b4853cdd88206b8bbd3edc292c90102d1/orjson-3.11.4-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:01ee5487fefee21e6910da4c2ee9eef005bee568a0879834df86f888d2ffbdd9", size = 137440, upload-time = "2025-10-24T15:48:56.326Z" }, + { url = "https://files.pythonhosted.org/packages/1e/ef/75519d039e5ae6b0f34d0336854d55544ba903e21bf56c83adc51cd8bf82/orjson-3.11.4-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:3d40d46f348c0321df01507f92b95a377240c4ec31985225a6668f10e2676f9a", size = 136680, upload-time = "2025-10-24T15:48:57.476Z" }, + { url = "https://files.pythonhosted.org/packages/b5/18/bf8581eaae0b941b44efe14fee7b7862c3382fbc9a0842132cfc7cf5ecf4/orjson-3.11.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:95713e5fc8af84d8edc75b785d2386f653b63d62b16d681687746734b4dfc0be", size = 136160, upload-time = "2025-10-24T15:48:59.631Z" }, + { url = "https://files.pythonhosted.org/packages/c4/35/a6d582766d351f87fc0a22ad740a641b0a8e6fc47515e8614d2e4790ae10/orjson-3.11.4-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:ad73ede24f9083614d6c4ca9a85fe70e33be7bf047ec586ee2363bc7418fe4d7", size = 140318, upload-time = "2025-10-24T15:49:00.834Z" }, + { url = "https://files.pythonhosted.org/packages/76/b3/5a4801803ab2e2e2d703bce1a56540d9f99a9143fbec7bf63d225044fef8/orjson-3.11.4-cp311-cp311-musllinux_1_2_armv7l.whl", hash = "sha256:842289889de515421f3f224ef9c1f1efb199a32d76d8d2ca2706fa8afe749549", size = 406330, upload-time = "2025-10-24T15:49:02.327Z" }, + { url = "https://files.pythonhosted.org/packages/80/55/a8f682f64833e3a649f620eafefee175cbfeb9854fc5b710b90c3bca45df/orjson-3.11.4-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:3b2427ed5791619851c52a1261b45c233930977e7de8cf36de05636c708fa905", size = 149580, upload-time = "2025-10-24T15:49:03.517Z" }, + { url = "https://files.pythonhosted.org/packages/ad/e4/c132fa0c67afbb3eb88274fa98df9ac1f631a675e7877037c611805a4413/orjson-3.11.4-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:3c36e524af1d29982e9b190573677ea02781456b2e537d5840e4538a5ec41907", size = 139846, upload-time = "2025-10-24T15:49:04.761Z" }, + { url = "https://files.pythonhosted.org/packages/54/06/dc3491489efd651fef99c5908e13951abd1aead1257c67f16135f95ce209/orjson-3.11.4-cp311-cp311-win32.whl", hash = "sha256:87255b88756eab4a68ec61837ca754e5d10fa8bc47dc57f75cedfeaec358d54c", size = 135781, upload-time = "2025-10-24T15:49:05.969Z" }, + { url = "https://files.pythonhosted.org/packages/79/b7/5e5e8d77bd4ea02a6ac54c42c818afb01dd31961be8a574eb79f1d2cfb1e/orjson-3.11.4-cp311-cp311-win_amd64.whl", hash = "sha256:e2d5d5d798aba9a0e1fede8d853fa899ce2cb930ec0857365f700dffc2c7af6a", size = 131391, upload-time = "2025-10-24T15:49:07.355Z" }, + { url = "https://files.pythonhosted.org/packages/0f/dc/9484127cc1aa213be398ed735f5f270eedcb0c0977303a6f6ddc46b60204/orjson-3.11.4-cp311-cp311-win_arm64.whl", hash = "sha256:6bb6bb41b14c95d4f2702bce9975fda4516f1db48e500102fc4d8119032ff045", size = 126252, upload-time = "2025-10-24T15:49:08.869Z" }, + { url = "https://files.pythonhosted.org/packages/63/51/6b556192a04595b93e277a9ff71cd0cc06c21a7df98bcce5963fa0f5e36f/orjson-3.11.4-cp312-cp312-macosx_10_15_x86_64.macosx_11_0_arm64.macosx_10_15_universal2.whl", hash = "sha256:d4371de39319d05d3f482f372720b841c841b52f5385bd99c61ed69d55d9ab50", size = 243571, upload-time = "2025-10-24T15:49:10.008Z" }, + { url = "https://files.pythonhosted.org/packages/1c/2c/2602392ddf2601d538ff11848b98621cd465d1a1ceb9db9e8043181f2f7b/orjson-3.11.4-cp312-cp312-macosx_15_0_arm64.whl", hash = "sha256:e41fd3b3cac850eaae78232f37325ed7d7436e11c471246b87b2cd294ec94853", size = 128891, upload-time = "2025-10-24T15:49:11.297Z" }, + { url = "https://files.pythonhosted.org/packages/4e/47/bf85dcf95f7a3a12bf223394a4f849430acd82633848d52def09fa3f46ad/orjson-3.11.4-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:600e0e9ca042878c7fdf189cf1b028fe2c1418cc9195f6cb9824eb6ed99cb938", size = 130137, upload-time = "2025-10-24T15:49:12.544Z" }, + { url = "https://files.pythonhosted.org/packages/b4/4d/a0cb31007f3ab6f1fd2a1b17057c7c349bc2baf8921a85c0180cc7be8011/orjson-3.11.4-cp312-cp312-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:7bbf9b333f1568ef5da42bc96e18bf30fd7f8d54e9ae066d711056add508e415", size = 129152, upload-time = "2025-10-24T15:49:13.754Z" }, + { url = "https://files.pythonhosted.org/packages/f7/ef/2811def7ce3d8576b19e3929fff8f8f0d44bc5eb2e0fdecb2e6e6cc6c720/orjson-3.11.4-cp312-cp312-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:4806363144bb6e7297b8e95870e78d30a649fdc4e23fc84daa80c8ebd366ce44", size = 136834, upload-time = "2025-10-24T15:49:15.307Z" }, + { url = "https://files.pythonhosted.org/packages/00/d4/9aee9e54f1809cec8ed5abd9bc31e8a9631d19460e3b8470145d25140106/orjson-3.11.4-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:ad355e8308493f527d41154e9053b86a5be892b3b359a5c6d5d95cda23601cb2", size = 137519, upload-time = "2025-10-24T15:49:16.557Z" }, + { url = "https://files.pythonhosted.org/packages/db/ea/67bfdb5465d5679e8ae8d68c11753aaf4f47e3e7264bad66dc2f2249e643/orjson-3.11.4-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:c8a7517482667fb9f0ff1b2f16fe5829296ed7a655d04d68cd9711a4d8a4e708", size = 136749, upload-time = "2025-10-24T15:49:17.796Z" }, + { url = "https://files.pythonhosted.org/packages/01/7e/62517dddcfce6d53a39543cd74d0dccfcbdf53967017c58af68822100272/orjson-3.11.4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:97eb5942c7395a171cbfecc4ef6701fc3c403e762194683772df4c54cfbb2210", size = 136325, upload-time = "2025-10-24T15:49:19.347Z" }, + { url = "https://files.pythonhosted.org/packages/18/ae/40516739f99ab4c7ec3aaa5cc242d341fcb03a45d89edeeaabc5f69cb2cf/orjson-3.11.4-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:149d95d5e018bdd822e3f38c103b1a7c91f88d38a88aada5c4e9b3a73a244241", size = 140204, upload-time = "2025-10-24T15:49:20.545Z" }, + { url = "https://files.pythonhosted.org/packages/82/18/ff5734365623a8916e3a4037fcef1cd1782bfc14cf0992afe7940c5320bf/orjson-3.11.4-cp312-cp312-musllinux_1_2_armv7l.whl", hash = "sha256:624f3951181eb46fc47dea3d221554e98784c823e7069edb5dbd0dc826ac909b", size = 406242, upload-time = "2025-10-24T15:49:21.884Z" }, + { url = "https://files.pythonhosted.org/packages/e1/43/96436041f0a0c8c8deca6a05ebeaf529bf1de04839f93ac5e7c479807aec/orjson-3.11.4-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:03bfa548cf35e3f8b3a96c4e8e41f753c686ff3d8e182ce275b1751deddab58c", size = 150013, upload-time = "2025-10-24T15:49:23.185Z" }, + { url = "https://files.pythonhosted.org/packages/1b/48/78302d98423ed8780479a1e682b9aecb869e8404545d999d34fa486e573e/orjson-3.11.4-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:525021896afef44a68148f6ed8a8bf8375553d6066c7f48537657f64823565b9", size = 139951, upload-time = "2025-10-24T15:49:24.428Z" }, + { url = "https://files.pythonhosted.org/packages/4a/7b/ad613fdcdaa812f075ec0875143c3d37f8654457d2af17703905425981bf/orjson-3.11.4-cp312-cp312-win32.whl", hash = "sha256:b58430396687ce0f7d9eeb3dd47761ca7d8fda8e9eb92b3077a7a353a75efefa", size = 136049, upload-time = "2025-10-24T15:49:25.973Z" }, + { url = "https://files.pythonhosted.org/packages/b9/3c/9cf47c3ff5f39b8350fb21ba65d789b6a1129d4cbb3033ba36c8a9023520/orjson-3.11.4-cp312-cp312-win_amd64.whl", hash = "sha256:c6dbf422894e1e3c80a177133c0dda260f81428f9de16d61041949f6a2e5c140", size = 131461, upload-time = "2025-10-24T15:49:27.259Z" }, + { url = "https://files.pythonhosted.org/packages/c6/3b/e2425f61e5825dc5b08c2a5a2b3af387eaaca22a12b9c8c01504f8614c36/orjson-3.11.4-cp312-cp312-win_arm64.whl", hash = "sha256:d38d2bc06d6415852224fcc9c0bfa834c25431e466dc319f0edd56cca81aa96e", size = 126167, upload-time = "2025-10-24T15:49:28.511Z" }, + { url = "https://files.pythonhosted.org/packages/23/15/c52aa7112006b0f3d6180386c3a46ae057f932ab3425bc6f6ac50431cca1/orjson-3.11.4-cp313-cp313-macosx_10_15_x86_64.macosx_11_0_arm64.macosx_10_15_universal2.whl", hash = "sha256:2d6737d0e616a6e053c8b4acc9eccea6b6cce078533666f32d140e4f85002534", size = 243525, upload-time = "2025-10-24T15:49:29.737Z" }, + { url = "https://files.pythonhosted.org/packages/ec/38/05340734c33b933fd114f161f25a04e651b0c7c33ab95e9416ade5cb44b8/orjson-3.11.4-cp313-cp313-macosx_15_0_arm64.whl", hash = "sha256:afb14052690aa328cc118a8e09f07c651d301a72e44920b887c519b313d892ff", size = 128871, upload-time = "2025-10-24T15:49:31.109Z" }, + { url = "https://files.pythonhosted.org/packages/55/b9/ae8d34899ff0c012039b5a7cb96a389b2476e917733294e498586b45472d/orjson-3.11.4-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:38aa9e65c591febb1b0aed8da4d469eba239d434c218562df179885c94e1a3ad", size = 130055, upload-time = "2025-10-24T15:49:33.382Z" }, + { url = "https://files.pythonhosted.org/packages/33/aa/6346dd5073730451bee3681d901e3c337e7ec17342fb79659ec9794fc023/orjson-3.11.4-cp313-cp313-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:f2cf4dfaf9163b0728d061bebc1e08631875c51cd30bf47cb9e3293bfbd7dcd5", size = 129061, upload-time = "2025-10-24T15:49:34.935Z" }, + { url = "https://files.pythonhosted.org/packages/39/e4/8eea51598f66a6c853c380979912d17ec510e8e66b280d968602e680b942/orjson-3.11.4-cp313-cp313-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:89216ff3dfdde0e4070932e126320a1752c9d9a758d6a32ec54b3b9334991a6a", size = 136541, upload-time = "2025-10-24T15:49:36.923Z" }, + { url = "https://files.pythonhosted.org/packages/9a/47/cb8c654fa9adcc60e99580e17c32b9e633290e6239a99efa6b885aba9dbc/orjson-3.11.4-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:9daa26ca8e97fae0ce8aa5d80606ef8f7914e9b129b6b5df9104266f764ce436", size = 137535, upload-time = "2025-10-24T15:49:38.307Z" }, + { url = "https://files.pythonhosted.org/packages/43/92/04b8cc5c2b729f3437ee013ce14a60ab3d3001465d95c184758f19362f23/orjson-3.11.4-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:5c8b2769dc31883c44a9cd126560327767f848eb95f99c36c9932f51090bfce9", size = 136703, upload-time = "2025-10-24T15:49:40.795Z" }, + { url = "https://files.pythonhosted.org/packages/aa/fd/d0733fcb9086b8be4ebcfcda2d0312865d17d0d9884378b7cffb29d0763f/orjson-3.11.4-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:1469d254b9884f984026bd9b0fa5bbab477a4bfe558bba6848086f6d43eb5e73", size = 136293, upload-time = "2025-10-24T15:49:42.347Z" }, + { url = "https://files.pythonhosted.org/packages/c2/d7/3c5514e806837c210492d72ae30ccf050ce3f940f45bf085bab272699ef4/orjson-3.11.4-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:68e44722541983614e37117209a194e8c3ad07838ccb3127d96863c95ec7f1e0", size = 140131, upload-time = "2025-10-24T15:49:43.638Z" }, + { url = "https://files.pythonhosted.org/packages/9c/dd/ba9d32a53207babf65bd510ac4d0faaa818bd0df9a9c6f472fe7c254f2e3/orjson-3.11.4-cp313-cp313-musllinux_1_2_armv7l.whl", hash = "sha256:8e7805fda9672c12be2f22ae124dcd7b03928d6c197544fe12174b86553f3196", size = 406164, upload-time = "2025-10-24T15:49:45.498Z" }, + { url = "https://files.pythonhosted.org/packages/8e/f9/f68ad68f4af7c7bde57cd514eaa2c785e500477a8bc8f834838eb696a685/orjson-3.11.4-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:04b69c14615fb4434ab867bf6f38b2d649f6f300af30a6705397e895f7aec67a", size = 149859, upload-time = "2025-10-24T15:49:46.981Z" }, + { url = "https://files.pythonhosted.org/packages/b6/d2/7f847761d0c26818395b3d6b21fb6bc2305d94612a35b0a30eae65a22728/orjson-3.11.4-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:639c3735b8ae7f970066930e58cf0ed39a852d417c24acd4a25fc0b3da3c39a6", size = 139926, upload-time = "2025-10-24T15:49:48.321Z" }, + { url = "https://files.pythonhosted.org/packages/9f/37/acd14b12dc62db9a0e1d12386271b8661faae270b22492580d5258808975/orjson-3.11.4-cp313-cp313-win32.whl", hash = "sha256:6c13879c0d2964335491463302a6ca5ad98105fc5db3565499dcb80b1b4bd839", size = 136007, upload-time = "2025-10-24T15:49:49.938Z" }, + { url = "https://files.pythonhosted.org/packages/c0/a9/967be009ddf0a1fffd7a67de9c36656b28c763659ef91352acc02cbe364c/orjson-3.11.4-cp313-cp313-win_amd64.whl", hash = "sha256:09bf242a4af98732db9f9a1ec57ca2604848e16f132e3f72edfd3c5c96de009a", size = 131314, upload-time = "2025-10-24T15:49:51.248Z" }, + { url = "https://files.pythonhosted.org/packages/cb/db/399abd6950fbd94ce125cb8cd1a968def95174792e127b0642781e040ed4/orjson-3.11.4-cp313-cp313-win_arm64.whl", hash = "sha256:a85f0adf63319d6c1ba06fb0dbf997fced64a01179cf17939a6caca662bf92de", size = 126152, upload-time = "2025-10-24T15:49:52.922Z" }, + { url = "https://files.pythonhosted.org/packages/25/e3/54ff63c093cc1697e758e4fceb53164dd2661a7d1bcd522260ba09f54533/orjson-3.11.4-cp314-cp314-macosx_10_15_x86_64.macosx_11_0_arm64.macosx_10_15_universal2.whl", hash = "sha256:42d43a1f552be1a112af0b21c10a5f553983c2a0938d2bbb8ecd8bc9fb572803", size = 243501, upload-time = "2025-10-24T15:49:54.288Z" }, + { url = "https://files.pythonhosted.org/packages/ac/7d/e2d1076ed2e8e0ae9badca65bf7ef22710f93887b29eaa37f09850604e09/orjson-3.11.4-cp314-cp314-macosx_15_0_arm64.whl", hash = "sha256:26a20f3fbc6c7ff2cb8e89c4c5897762c9d88cf37330c6a117312365d6781d54", size = 128862, upload-time = "2025-10-24T15:49:55.961Z" }, + { url = "https://files.pythonhosted.org/packages/9f/37/ca2eb40b90621faddfa9517dfe96e25f5ae4d8057a7c0cdd613c17e07b2c/orjson-3.11.4-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:6e3f20be9048941c7ffa8fc523ccbd17f82e24df1549d1d1fe9317712d19938e", size = 130047, upload-time = "2025-10-24T15:49:57.406Z" }, + { url = "https://files.pythonhosted.org/packages/c7/62/1021ed35a1f2bad9040f05fa4cc4f9893410df0ba3eaa323ccf899b1c90a/orjson-3.11.4-cp314-cp314-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:aac364c758dc87a52e68e349924d7e4ded348dedff553889e4d9f22f74785316", size = 129073, upload-time = "2025-10-24T15:49:58.782Z" }, + { url = "https://files.pythonhosted.org/packages/e8/3f/f84d966ec2a6fd5f73b1a707e7cd876813422ae4bf9f0145c55c9c6a0f57/orjson-3.11.4-cp314-cp314-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:d5c54a6d76e3d741dcc3f2707f8eeb9ba2a791d3adbf18f900219b62942803b1", size = 136597, upload-time = "2025-10-24T15:50:00.12Z" }, + { url = "https://files.pythonhosted.org/packages/32/78/4fa0aeca65ee82bbabb49e055bd03fa4edea33f7c080c5c7b9601661ef72/orjson-3.11.4-cp314-cp314-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:f28485bdca8617b79d44627f5fb04336897041dfd9fa66d383a49d09d86798bc", size = 137515, upload-time = "2025-10-24T15:50:01.57Z" }, + { url = "https://files.pythonhosted.org/packages/c1/9d/0c102e26e7fde40c4c98470796d050a2ec1953897e2c8ab0cb95b0759fa2/orjson-3.11.4-cp314-cp314-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:bfc2a484cad3585e4ba61985a6062a4c2ed5c7925db6d39f1fa267c9d166487f", size = 136703, upload-time = "2025-10-24T15:50:02.944Z" }, + { url = "https://files.pythonhosted.org/packages/df/ac/2de7188705b4cdfaf0b6c97d2f7849c17d2003232f6e70df98602173f788/orjson-3.11.4-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:e34dbd508cb91c54f9c9788923daca129fe5b55c5b4eebe713bf5ed3791280cf", size = 136311, upload-time = "2025-10-24T15:50:04.441Z" }, + { url = "https://files.pythonhosted.org/packages/e0/52/847fcd1a98407154e944feeb12e3b4d487a0e264c40191fb44d1269cbaa1/orjson-3.11.4-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:b13c478fa413d4b4ee606ec8e11c3b2e52683a640b006bb586b3041c2ca5f606", size = 140127, upload-time = "2025-10-24T15:50:07.398Z" }, + { url = "https://files.pythonhosted.org/packages/c1/ae/21d208f58bdb847dd4d0d9407e2929862561841baa22bdab7aea10ca088e/orjson-3.11.4-cp314-cp314-musllinux_1_2_armv7l.whl", hash = "sha256:724ca721ecc8a831b319dcd72cfa370cc380db0bf94537f08f7edd0a7d4e1780", size = 406201, upload-time = "2025-10-24T15:50:08.796Z" }, + { url = "https://files.pythonhosted.org/packages/8d/55/0789d6de386c8366059db098a628e2ad8798069e94409b0d8935934cbcb9/orjson-3.11.4-cp314-cp314-musllinux_1_2_i686.whl", hash = "sha256:977c393f2e44845ce1b540e19a786e9643221b3323dae190668a98672d43fb23", size = 149872, upload-time = "2025-10-24T15:50:10.234Z" }, + { url = "https://files.pythonhosted.org/packages/cc/1d/7ff81ea23310e086c17b41d78a72270d9de04481e6113dbe2ac19118f7fb/orjson-3.11.4-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:1e539e382cf46edec157ad66b0b0872a90d829a6b71f17cb633d6c160a223155", size = 139931, upload-time = "2025-10-24T15:50:11.623Z" }, + { url = "https://files.pythonhosted.org/packages/77/92/25b886252c50ed64be68c937b562b2f2333b45afe72d53d719e46a565a50/orjson-3.11.4-cp314-cp314-win32.whl", hash = "sha256:d63076d625babab9db5e7836118bdfa086e60f37d8a174194ae720161eb12394", size = 136065, upload-time = "2025-10-24T15:50:13.025Z" }, + { url = "https://files.pythonhosted.org/packages/63/b8/718eecf0bb7e9d64e4956afaafd23db9f04c776d445f59fe94f54bdae8f0/orjson-3.11.4-cp314-cp314-win_amd64.whl", hash = "sha256:0a54d6635fa3aaa438ae32e8570b9f0de36f3f6562c308d2a2a452e8b0592db1", size = 131310, upload-time = "2025-10-24T15:50:14.46Z" }, + { url = "https://files.pythonhosted.org/packages/1a/bf/def5e25d4d8bfce296a9a7c8248109bf58622c21618b590678f945a2c59c/orjson-3.11.4-cp314-cp314-win_arm64.whl", hash = "sha256:78b999999039db3cf58f6d230f524f04f75f129ba3d1ca2ed121f8657e575d3d", size = 126151, upload-time = "2025-10-24T15:50:15.878Z" }, +] + [[package]] name = "packaging" version = "25.0" @@ -1218,6 +1290,11 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/3f/93/023955c26b0ce614342d11cc0652f1e45e32393b6ab9d11a664a60e9b7b7/plotly-6.3.1-py3-none-any.whl", hash = "sha256:8b4420d1dcf2b040f5983eed433f95732ed24930e496d36eb70d211923532e64", size = 9833698, upload-time = "2025-10-02T16:10:22.584Z" }, ] +[package.optional-dependencies] +kaleido = [ + { name = "kaleido" }, +] + [[package]] name = "pluggy" version = "1.6.0" @@ -1393,6 +1470,18 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/a8/a4/20da314d277121d6534b3a980b29035dcd51e6744bd79075a6ce8fa4eb8d/pytest-8.4.2-py3-none-any.whl", hash = "sha256:872f880de3fc3a5bdc88a11b39c9710c3497a547cfa9320bc3c5e62fbf272e79", size = 365750, upload-time = "2025-09-04T14:34:20.226Z" }, ] +[[package]] +name = "pytest-timeout" +version = "2.4.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "pytest" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/ac/82/4c9ecabab13363e72d880f2fb504c5f750433b2b6f16e99f4ec21ada284c/pytest_timeout-2.4.0.tar.gz", hash = "sha256:7e68e90b01f9eff71332b25001f85c75495fc4e3a836701876183c4bcfd0540a", size = 17973, upload-time = "2025-05-05T19:44:34.99Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/fa/b6/3127540ecdf1464a00e5a01ee60a1b09175f6913f0644ac748494d9c4b21/pytest_timeout-2.4.0-py3-none-any.whl", hash = "sha256:c42667e5cdadb151aeb5b26d114aff6bdf5a907f176a007a30b940d3d865b5c2", size = 14382, upload-time = "2025-05-05T19:44:33.502Z" }, +] + [[package]] name = "python-dateutil" version = "2.9.0.post0" @@ -1556,6 +1645,54 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/a3/dc/17031897dae0efacfea57dfd3a82fdd2a2aeb58e0ff71b77b87e44edc772/setuptools-80.9.0-py3-none-any.whl", hash = "sha256:062d34222ad13e0cc312a4c02d73f059e86a4acbfbdea8f8f76b28c99f306922", size = 1201486, upload-time = "2025-05-27T00:56:49.664Z" }, ] +[[package]] +name = "simplejson" +version = "3.20.2" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/41/f4/a1ac5ed32f7ed9a088d62a59d410d4c204b3b3815722e2ccfb491fa8251b/simplejson-3.20.2.tar.gz", hash = "sha256:5fe7a6ce14d1c300d80d08695b7f7e633de6cd72c80644021874d985b3393649", size = 85784, upload-time = "2025-09-26T16:29:36.64Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/b9/3e/96898c6c66d9dca3f9bd14d7487bf783b4acc77471b42f979babbb68d4ca/simplejson-3.20.2-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:06190b33cd7849efc413a5738d3da00b90e4a5382fd3d584c841ac20fb828c6f", size = 92633, upload-time = "2025-09-26T16:27:45.028Z" }, + { url = "https://files.pythonhosted.org/packages/6b/a2/cd2e10b880368305d89dd540685b8bdcc136df2b3c76b5ddd72596254539/simplejson-3.20.2-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:4ad4eac7d858947a30d2c404e61f16b84d16be79eb6fb316341885bdde864fa8", size = 75309, upload-time = "2025-09-26T16:27:46.142Z" }, + { url = "https://files.pythonhosted.org/packages/5d/02/290f7282eaa6ebe945d35c47e6534348af97472446951dce0d144e013f4c/simplejson-3.20.2-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:b392e11c6165d4a0fde41754a0e13e1d88a5ad782b245a973dd4b2bdb4e5076a", size = 75308, upload-time = "2025-09-26T16:27:47.542Z" }, + { url = "https://files.pythonhosted.org/packages/43/91/43695f17b69e70c4b0b03247aa47fb3989d338a70c4b726bbdc2da184160/simplejson-3.20.2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:51eccc4e353eed3c50e0ea2326173acdc05e58f0c110405920b989d481287e51", size = 143733, upload-time = "2025-09-26T16:27:48.673Z" }, + { url = "https://files.pythonhosted.org/packages/9b/4b/fdcaf444ac1c3cbf1c52bf00320c499e1cf05d373a58a3731ae627ba5e2d/simplejson-3.20.2-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:306e83d7c331ad833d2d43c76a67f476c4b80c4a13334f6e34bb110e6105b3bd", size = 153397, upload-time = "2025-09-26T16:27:49.89Z" }, + { url = "https://files.pythonhosted.org/packages/c4/83/21550f81a50cd03599f048a2d588ffb7f4c4d8064ae091511e8e5848eeaa/simplejson-3.20.2-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:f820a6ac2ef0bc338ae4963f4f82ccebdb0824fe9caf6d660670c578abe01013", size = 141654, upload-time = "2025-09-26T16:27:51.168Z" }, + { url = "https://files.pythonhosted.org/packages/cf/54/d76c0e72ad02450a3e723b65b04f49001d0e73218ef6a220b158a64639cb/simplejson-3.20.2-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:21e7a066528a5451433eb3418184f05682ea0493d14e9aae690499b7e1eb6b81", size = 144913, upload-time = "2025-09-26T16:27:52.331Z" }, + { url = "https://files.pythonhosted.org/packages/3f/49/976f59b42a6956d4aeb075ada16ad64448a985704bc69cd427a2245ce835/simplejson-3.20.2-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:438680ddde57ea87161a4824e8de04387b328ad51cfdf1eaf723623a3014b7aa", size = 144568, upload-time = "2025-09-26T16:27:53.41Z" }, + { url = "https://files.pythonhosted.org/packages/60/c7/30bae30424ace8cd791ca660fed454ed9479233810fe25c3f3eab3d9dc7b/simplejson-3.20.2-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:cac78470ae68b8d8c41b6fca97f5bf8e024ca80d5878c7724e024540f5cdaadb", size = 146239, upload-time = "2025-09-26T16:27:54.502Z" }, + { url = "https://files.pythonhosted.org/packages/79/3e/7f3b7b97351c53746e7b996fcd106986cda1954ab556fd665314756618d2/simplejson-3.20.2-cp311-cp311-musllinux_1_2_ppc64le.whl", hash = "sha256:7524e19c2da5ef281860a3d74668050c6986be15c9dd99966034ba47c68828c2", size = 154497, upload-time = "2025-09-26T16:27:55.885Z" }, + { url = "https://files.pythonhosted.org/packages/1d/48/7241daa91d0bf19126589f6a8dcbe8287f4ed3d734e76fd4a092708947be/simplejson-3.20.2-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:0e9b6d845a603b2eef3394eb5e21edb8626cd9ae9a8361d14e267eb969dbe413", size = 148069, upload-time = "2025-09-26T16:27:57.039Z" }, + { url = "https://files.pythonhosted.org/packages/e6/f4/ef18d2962fe53e7be5123d3784e623859eec7ed97060c9c8536c69d34836/simplejson-3.20.2-cp311-cp311-win32.whl", hash = "sha256:47d8927e5ac927fdd34c99cc617938abb3624b06ff86e8e219740a86507eb961", size = 74158, upload-time = "2025-09-26T16:27:58.265Z" }, + { url = "https://files.pythonhosted.org/packages/35/fd/3d1158ecdc573fdad81bf3cc78df04522bf3959758bba6597ba4c956c74d/simplejson-3.20.2-cp311-cp311-win_amd64.whl", hash = "sha256:ba4edf3be8e97e4713d06c3d302cba1ff5c49d16e9d24c209884ac1b8455520c", size = 75911, upload-time = "2025-09-26T16:27:59.292Z" }, + { url = "https://files.pythonhosted.org/packages/9d/9e/1a91e7614db0416885eab4136d49b7303de20528860ffdd798ce04d054db/simplejson-3.20.2-cp312-cp312-macosx_10_9_universal2.whl", hash = "sha256:4376d5acae0d1e91e78baeba4ee3cf22fbf6509d81539d01b94e0951d28ec2b6", size = 93523, upload-time = "2025-09-26T16:28:00.356Z" }, + { url = "https://files.pythonhosted.org/packages/5e/2b/d2413f5218fc25608739e3d63fe321dfa85c5f097aa6648dbe72513a5f12/simplejson-3.20.2-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:f8fe6de652fcddae6dec8f281cc1e77e4e8f3575249e1800090aab48f73b4259", size = 75844, upload-time = "2025-09-26T16:28:01.756Z" }, + { url = "https://files.pythonhosted.org/packages/ad/f1/efd09efcc1e26629e120fef59be059ce7841cc6e1f949a4db94f1ae8a918/simplejson-3.20.2-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:25ca2663d99328d51e5a138f22018e54c9162438d831e26cfc3458688616eca8", size = 75655, upload-time = "2025-09-26T16:28:03.037Z" }, + { url = "https://files.pythonhosted.org/packages/97/ec/5c6db08e42f380f005d03944be1af1a6bd501cc641175429a1cbe7fb23b9/simplejson-3.20.2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:12a6b2816b6cab6c3fd273d43b1948bc9acf708272074c8858f579c394f4cbc9", size = 150335, upload-time = "2025-09-26T16:28:05.027Z" }, + { url = "https://files.pythonhosted.org/packages/81/f5/808a907485876a9242ec67054da7cbebefe0ee1522ef1c0be3bfc90f96f6/simplejson-3.20.2-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:ac20dc3fcdfc7b8415bfc3d7d51beccd8695c3f4acb7f74e3a3b538e76672868", size = 158519, upload-time = "2025-09-26T16:28:06.5Z" }, + { url = "https://files.pythonhosted.org/packages/66/af/b8a158246834645ea890c36136584b0cc1c0e4b83a73b11ebd9c2a12877c/simplejson-3.20.2-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:db0804d04564e70862ef807f3e1ace2cc212ef0e22deb1b3d6f80c45e5882c6b", size = 148571, upload-time = "2025-09-26T16:28:07.715Z" }, + { url = "https://files.pythonhosted.org/packages/20/05/ed9b2571bbf38f1a2425391f18e3ac11cb1e91482c22d644a1640dea9da7/simplejson-3.20.2-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:979ce23ea663895ae39106946ef3d78527822d918a136dbc77b9e2b7f006237e", size = 152367, upload-time = "2025-09-26T16:28:08.921Z" }, + { url = "https://files.pythonhosted.org/packages/81/2c/bad68b05dd43e93f77994b920505634d31ed239418eb6a88997d06599983/simplejson-3.20.2-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:a2ba921b047bb029805726800819675249ef25d2f65fd0edb90639c5b1c3033c", size = 150205, upload-time = "2025-09-26T16:28:10.086Z" }, + { url = "https://files.pythonhosted.org/packages/69/46/90c7fc878061adafcf298ce60cecdee17a027486e9dce507e87396d68255/simplejson-3.20.2-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:12d3d4dc33770069b780cc8f5abef909fe4a3f071f18f55f6d896a370fd0f970", size = 151823, upload-time = "2025-09-26T16:28:11.329Z" }, + { url = "https://files.pythonhosted.org/packages/ab/27/b85b03349f825ae0f5d4f780cdde0bbccd4f06c3d8433f6a3882df887481/simplejson-3.20.2-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:aff032a59a201b3683a34be1169e71ddda683d9c3b43b261599c12055349251e", size = 158997, upload-time = "2025-09-26T16:28:12.917Z" }, + { url = "https://files.pythonhosted.org/packages/71/ad/d7f3c331fb930638420ac6d236db68e9f4c28dab9c03164c3cd0e7967e15/simplejson-3.20.2-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:30e590e133b06773f0dc9c3f82e567463df40598b660b5adf53eb1c488202544", size = 154367, upload-time = "2025-09-26T16:28:14.393Z" }, + { url = "https://files.pythonhosted.org/packages/f0/46/5c67324addd40fa2966f6e886cacbbe0407c03a500db94fb8bb40333fcdf/simplejson-3.20.2-cp312-cp312-win32.whl", hash = "sha256:8d7be7c99939cc58e7c5bcf6bb52a842a58e6c65e1e9cdd2a94b697b24cddb54", size = 74285, upload-time = "2025-09-26T16:28:15.931Z" }, + { url = "https://files.pythonhosted.org/packages/fa/c9/5cc2189f4acd3a6e30ffa9775bf09b354302dbebab713ca914d7134d0f29/simplejson-3.20.2-cp312-cp312-win_amd64.whl", hash = "sha256:2c0b4a67e75b945489052af6590e7dca0ed473ead5d0f3aad61fa584afe814ab", size = 75969, upload-time = "2025-09-26T16:28:17.017Z" }, + { url = "https://files.pythonhosted.org/packages/5e/9e/f326d43f6bf47f4e7704a4426c36e044c6bedfd24e072fb8e27589a373a5/simplejson-3.20.2-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:90d311ba8fcd733a3677e0be21804827226a57144130ba01c3c6a325e887dd86", size = 93530, upload-time = "2025-09-26T16:28:18.07Z" }, + { url = "https://files.pythonhosted.org/packages/35/28/5a4b8f3483fbfb68f3f460bc002cef3a5735ef30950e7c4adce9c8da15c7/simplejson-3.20.2-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:feed6806f614bdf7f5cb6d0123cb0c1c5f40407ef103aa935cffaa694e2e0c74", size = 75846, upload-time = "2025-09-26T16:28:19.12Z" }, + { url = "https://files.pythonhosted.org/packages/7a/4d/30dfef83b9ac48afae1cf1ab19c2867e27b8d22b5d9f8ca7ce5a0a157d8c/simplejson-3.20.2-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:6b1d8d7c3e1a205c49e1aee6ba907dcb8ccea83651e6c3e2cb2062f1e52b0726", size = 75661, upload-time = "2025-09-26T16:28:20.219Z" }, + { url = "https://files.pythonhosted.org/packages/09/1d/171009bd35c7099d72ef6afd4bb13527bab469965c968a17d69a203d62a6/simplejson-3.20.2-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:552f55745044a24c3cb7ec67e54234be56d5d6d0e054f2e4cf4fb3e297429be5", size = 150579, upload-time = "2025-09-26T16:28:21.337Z" }, + { url = "https://files.pythonhosted.org/packages/61/ae/229bbcf90a702adc6bfa476e9f0a37e21d8c58e1059043038797cbe75b8c/simplejson-3.20.2-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:c2da97ac65165d66b0570c9e545786f0ac7b5de5854d3711a16cacbcaa8c472d", size = 158797, upload-time = "2025-09-26T16:28:22.53Z" }, + { url = "https://files.pythonhosted.org/packages/90/c5/fefc0ac6b86b9108e302e0af1cf57518f46da0baedd60a12170791d56959/simplejson-3.20.2-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:f59a12966daa356bf68927fca5a67bebac0033cd18b96de9c2d426cd11756cd0", size = 148851, upload-time = "2025-09-26T16:28:23.733Z" }, + { url = "https://files.pythonhosted.org/packages/43/f1/b392952200f3393bb06fbc4dd975fc63a6843261705839355560b7264eb2/simplejson-3.20.2-cp313-cp313-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:133ae2098a8e162c71da97cdab1f383afdd91373b7ff5fe65169b04167da976b", size = 152598, upload-time = "2025-09-26T16:28:24.962Z" }, + { url = "https://files.pythonhosted.org/packages/f4/b4/d6b7279e52a3e9c0fa8c032ce6164e593e8d9cf390698ee981ed0864291b/simplejson-3.20.2-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:7977640af7b7d5e6a852d26622057d428706a550f7f5083e7c4dd010a84d941f", size = 150498, upload-time = "2025-09-26T16:28:26.114Z" }, + { url = "https://files.pythonhosted.org/packages/62/22/ec2490dd859224326d10c2fac1353e8ad5c84121be4837a6dd6638ba4345/simplejson-3.20.2-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:b530ad6d55e71fa9e93e1109cf8182f427a6355848a4ffa09f69cc44e1512522", size = 152129, upload-time = "2025-09-26T16:28:27.552Z" }, + { url = "https://files.pythonhosted.org/packages/33/ce/b60214d013e93dd9e5a705dcb2b88b6c72bada442a97f79828332217f3eb/simplejson-3.20.2-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:bd96a7d981bf64f0e42345584768da4435c05b24fd3c364663f5fbc8fabf82e3", size = 159359, upload-time = "2025-09-26T16:28:28.667Z" }, + { url = "https://files.pythonhosted.org/packages/99/21/603709455827cdf5b9d83abe726343f542491ca8dc6a2528eb08de0cf034/simplejson-3.20.2-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:f28ee755fadb426ba2e464d6fcf25d3f152a05eb6b38e0b4f790352f5540c769", size = 154717, upload-time = "2025-09-26T16:28:30.288Z" }, + { url = "https://files.pythonhosted.org/packages/3c/f9/dc7f7a4bac16cf7eb55a4df03ad93190e11826d2a8950052949d3dfc11e2/simplejson-3.20.2-cp313-cp313-win32.whl", hash = "sha256:472785b52e48e3eed9b78b95e26a256f59bb1ee38339be3075dad799e2e1e661", size = 74289, upload-time = "2025-09-26T16:28:31.809Z" }, + { url = "https://files.pythonhosted.org/packages/87/10/d42ad61230436735c68af1120622b28a782877146a83d714da7b6a2a1c4e/simplejson-3.20.2-cp313-cp313-win_amd64.whl", hash = "sha256:a1a85013eb33e4820286139540accbe2c98d2da894b2dcefd280209db508e608", size = 75972, upload-time = "2025-09-26T16:28:32.883Z" }, + { url = "https://files.pythonhosted.org/packages/05/5b/83e1ff87eb60ca706972f7e02e15c0b33396e7bdbd080069a5d1b53cf0d8/simplejson-3.20.2-py3-none-any.whl", hash = "sha256:3b6bb7fb96efd673eac2e4235200bfffdc2353ad12c54117e1e4e2fc485ac017", size = 57309, upload-time = "2025-09-26T16:29:35.312Z" }, +] + [[package]] name = "six" version = "1.17.0"